@brandsync/wc 1.20.0 → 1.21.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 +14 -0
- package/REFERENCE.md +2 -2
- package/custom-elements.json +23 -4
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-1daf48b1.entry.js → p-001f3790.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1ce4395a.entry.js → p-023dae02.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6adc9c4f.entry.js → p-05698f65.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5b48a6c7.entry.js → p-05a9cbda.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6bdd9ef9.entry.js → p-06277bb8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-baca1abf.entry.js → p-0762a4dd.entry.js} +1 -1
- package/dist/brandsync-wc/{p-28a34097.entry.js → p-08af052c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-23b3958e.entry.js → p-0d3d56ef.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9e93b482.entry.js → p-0d3d8b6c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8d674f11.entry.js → p-1187a158.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fbd204b6.entry.js → p-171db2b0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d555984e.entry.js → p-189eb922.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b7545d9b.entry.js → p-1b41823c.entry.js} +1 -1
- package/dist/brandsync-wc/p-1bf91b43.entry.js +1 -0
- package/dist/brandsync-wc/{p-47fc5f29.entry.js → p-1cf40f44.entry.js} +1 -1
- package/dist/brandsync-wc/{p-040d4755.entry.js → p-1d2bc5b4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-50a154b8.entry.js → p-1ddcd867.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b0f4cbca.entry.js → p-205a1ccf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-53b1c545.entry.js → p-21781ce5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-520b277a.entry.js → p-237f583d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a6cbb6c6.entry.js → p-2be42af3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e2268c96.entry.js → p-2e654764.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f71d7582.entry.js → p-2eed5ff2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e8027825.entry.js → p-324f0d11.entry.js} +1 -1
- package/dist/brandsync-wc/p-34dd0976.entry.js +1 -0
- package/dist/brandsync-wc/{p-eb1b1497.entry.js → p-3592e6f3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1a549f9a.entry.js → p-383c076f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2a96ce61.entry.js → p-3937bc23.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d263deec.entry.js → p-40aeeacf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-548b96f7.entry.js → p-44c7fa4a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e4033ebc.entry.js → p-4865d4e1.entry.js} +1 -1
- package/dist/brandsync-wc/p-48ce098c.entry.js +1 -0
- package/dist/brandsync-wc/p-4cdb1c8c.entry.js +1 -0
- package/dist/brandsync-wc/{p-69489f45.entry.js → p-4ec0dca9.entry.js} +1 -1
- package/dist/brandsync-wc/p-513fa325.entry.js +1 -0
- package/dist/brandsync-wc/{p-2621b1b2.entry.js → p-56bd821c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-08a5e178.entry.js → p-59ddf12e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-806bb471.entry.js → p-5c1ccf35.entry.js} +1 -1
- package/dist/brandsync-wc/{p-338b5e39.entry.js → p-5cd95a12.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2210c680.entry.js → p-5e3fcc47.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fa894893.entry.js → p-5f96d808.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a3c7b4e7.entry.js → p-64ef4a9f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b1663378.entry.js → p-64fbd43a.entry.js} +1 -1
- package/dist/brandsync-wc/p-6b1ba5ec.entry.js +1 -0
- package/dist/brandsync-wc/{p-66f1ca2e.entry.js → p-6cf303f1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6096900b.entry.js → p-6f0b5a91.entry.js} +1 -1
- package/dist/brandsync-wc/{p-debc308d.entry.js → p-7c627563.entry.js} +1 -1
- package/dist/brandsync-wc/{p-452f6c13.entry.js → p-7cdcf7e7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dd3499ab.entry.js → p-7ee43b50.entry.js} +1 -1
- package/dist/brandsync-wc/p-80feac7e.entry.js +1 -0
- package/dist/brandsync-wc/{p-ca8a1e51.entry.js → p-82c8fde1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-409cf56b.entry.js → p-83ea17b6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d67840f5.entry.js → p-8560fb54.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4f19e8d8.entry.js → p-8a3095d5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d8a299a9.entry.js → p-9065d825.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8a4d64fd.entry.js → p-953d0191.entry.js} +1 -1
- package/dist/brandsync-wc/{p-32157c7a.entry.js → p-99db8fca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-50ac6889.entry.js → p-9ca0d2db.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2f58b161.entry.js → p-a30d456d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4d6f2fec.entry.js → p-ab74da02.entry.js} +1 -1
- package/dist/brandsync-wc/p-abaab890.entry.js +1 -0
- package/dist/brandsync-wc/{p-a86560e6.entry.js → p-ac7f9aa0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a1d34ff3.entry.js → p-aea1e4f9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-eb4ad606.entry.js → p-b0b73f22.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f22d2db8.entry.js → p-b3284eca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ecb1a27d.entry.js → p-b6b880c0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8c83cc99.entry.js → p-b9014d87.entry.js} +1 -1
- package/dist/brandsync-wc/{p-13d98ec3.entry.js → p-bc489296.entry.js} +1 -1
- package/dist/brandsync-wc/p-bcb1730e.entry.js +1 -0
- package/dist/brandsync-wc/{p-319b7baa.entry.js → p-bd37c086.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e18e45bc.entry.js → p-bef6e54b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ff85a9d8.entry.js → p-c1207ce6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4810bcc8.entry.js → p-c305bde7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-23367a4d.entry.js → p-c542d67f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fc7df528.entry.js → p-c5fa5d02.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0ebb60a8.entry.js → p-c700a860.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3f6be3f7.entry.js → p-cd1adef0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-32004fb3.entry.js → p-cf297373.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bfdd135b.entry.js → p-cf615c99.entry.js} +1 -1
- package/dist/brandsync-wc/{p-89dbb3c8.entry.js → p-da934f7b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c39e6be9.entry.js → p-dae0348e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-16f15ba5.entry.js → p-dc59a735.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6db03e96.entry.js → p-dd8f593a.entry.js} +1 -1
- package/dist/brandsync-wc/p-e56cc6ac.entry.js +1 -0
- package/dist/brandsync-wc/{p-08d08dc9.entry.js → p-ea4ea55d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-587be2c6.entry.js → p-eadbc160.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fe6f71da.entry.js → p-eb8da874.entry.js} +1 -1
- package/dist/brandsync-wc/{p-90442341.entry.js → p-f0596399.entry.js} +1 -1
- package/dist/brandsync-wc/{p-32d83763.entry.js → p-f5bbbff2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-70924681.entry.js → p-f89d12d7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d6600c7c.entry.js → p-faea22be.entry.js} +1 -1
- package/dist/brandsync-wc/{p-78e4dd14.entry.js → p-fbd33eb3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e18cb639.entry.js → p-fc859e89.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f229f59a.entry.js → p-fe070433.entry.js} +1 -1
- package/dist/brandsync-wc/p-ffeea95f.entry.js +1 -0
- package/dist/cjs/brandsync-wc.cjs.js +1 -1
- package/dist/cjs/bs-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/bs-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
- package/dist/cjs/bs-app-recent-item_3.cjs.entry.js +4 -4
- package/dist/cjs/bs-app-shell.cjs.entry.js +1 -1
- package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-button_2.cjs.entry.js +1 -1
- package/dist/cjs/bs-carousel.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-checkbox-group.cjs.entry.js +8 -3
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-filter.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-informative.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-input.cjs.entry.js +1 -1
- package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
- package/dist/cjs/bs-command-palette.cjs.entry.js +1 -1
- package/dist/cjs/bs-compact-menu-block_2.cjs.entry.js +4 -4
- package/dist/cjs/bs-company-switcher.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
- package/dist/cjs/bs-composer.cjs.entry.js +1 -1
- package/dist/cjs/bs-container.cjs.entry.js +1 -1
- package/dist/cjs/bs-data-table.cjs.entry.js +2 -2
- package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/bs-description-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-description-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-divider.cjs.entry.js +1 -1
- package/dist/cjs/bs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/bs-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
- package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/bs-global-search.cjs.entry.js +2 -2
- package/dist/cjs/bs-grid.cjs.entry.js +2 -2
- package/dist/cjs/bs-heading.cjs.entry.js +1 -1
- package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-icon-tile.cjs.entry.js +2 -2
- package/dist/cjs/bs-icon.cjs.entry.js +1 -1
- package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/bs-input_4.cjs.entry.js +5 -5
- package/dist/cjs/bs-key-caps.cjs.entry.js +1 -1
- package/dist/cjs/bs-key.cjs.entry.js +1 -1
- package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/bs-link.cjs.entry.js +1 -1
- package/dist/cjs/bs-list-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-mega-menu.cjs.entry.js +1 -1
- package/dist/cjs/bs-message-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-message.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-page-header.cjs.entry.js +1 -1
- package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
- package/dist/cjs/bs-popover.cjs.entry.js +25 -1
- package/dist/cjs/bs-presence.cjs.entry.js +1 -1
- package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
- package/dist/cjs/bs-progress.cjs.entry.js +2 -2
- package/dist/cjs/bs-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/bs-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/bs-radio.cjs.entry.js +1 -1
- package/dist/cjs/bs-search-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-select.cjs.entry.js +1 -1
- package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
- package/dist/cjs/bs-shortcut-row.cjs.entry.js +1 -1
- package/dist/cjs/bs-skip-link.cjs.entry.js +1 -1
- package/dist/cjs/bs-slider.cjs.entry.js +1 -1
- package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-split-pane.cjs.entry.js +1 -1
- package/dist/cjs/bs-stack.cjs.entry.js +1 -1
- package/dist/cjs/bs-stat.cjs.entry.js +1 -1
- package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
- package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
- package/dist/cjs/bs-switch.cjs.entry.js +1 -1
- package/dist/cjs/bs-tab_3.cjs.entry.js +3 -3
- package/dist/cjs/bs-table-of-contents.cjs.entry.js +1 -1
- package/dist/cjs/bs-tag.cjs.entry.js +2 -2
- package/dist/cjs/bs-text.cjs.entry.js +1 -1
- package/dist/cjs/bs-timepicker.cjs.entry.js +2 -2
- package/dist/cjs/bs-toast.cjs.entry.js +1 -1
- package/dist/cjs/bs-toggle-button-group.cjs.entry.js +1 -1
- package/dist/cjs/bs-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +1 -1
- package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/bs-tree-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-tree.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/bs-accordion/bs-accordion.js +1 -1
- 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-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-carousel/bs-carousel.js +2 -2
- package/dist/collection/components/bs-carousel/bs-carousel.stories.js +9 -5
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
- 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.js +1 -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 +9 -0
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.css +13 -0
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.js +28 -3
- 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-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.cmp.test.js +13 -7
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.js +2 -2
- package/dist/collection/components/bs-composer/bs-composer.js +1 -1
- package/dist/collection/components/bs-composer/bs-composer.stories.js +1 -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-data-table/bs-data-table.js +2 -2
- package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
- package/dist/collection/components/bs-description-item/bs-description-item.js +1 -1
- package/dist/collection/components/bs-description-list/bs-description-list.js +1 -1
- package/dist/collection/components/bs-divider/bs-divider.js +1 -1
- package/dist/collection/components/bs-dropdown/bs-dropdown.cmp.test.js +1 -3
- package/dist/collection/components/bs-dropdown/bs-dropdown.js +1 -1
- package/dist/collection/components/bs-empty-state/bs-empty-state.js +1 -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.js +1 -1
- package/dist/collection/components/bs-icon/bs-icon.js +1 -1
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- 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.js +1 -1
- package/dist/collection/components/bs-list/bs-list.js +1 -1
- package/dist/collection/components/bs-list-item/bs-list-item.js +1 -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-menu-item/bs-menu-item.stories.js +19 -15
- 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.cmp.test.js +11 -4
- package/dist/collection/components/bs-popover/bs-popover.js +26 -2
- 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.js +2 -2
- package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
- package/dist/collection/components/bs-radio/bs-radio.js +1 -1
- package/dist/collection/components/bs-radio-group/bs-radio-group.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.stories.js +7 -7
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.js +1 -1
- package/dist/collection/components/bs-tag/bs-tag.js +2 -2
- package/dist/collection/components/bs-text/bs-text.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.js +1 -1
- package/dist/collection/components/bs-toolbar/bs-toolbar.cmp.test.js +1 -6
- package/dist/collection/components/bs-toolbar/bs-toolbar.js +1 -1
- 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-tree-item/bs-tree-item.stories.js +6 -4
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
- package/dist/collection/components/disabled-aria.cmp.test.js +19 -0
- 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.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +2 -2
- 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-breadcrumb-overflow.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-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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/bs-description-list.js +1 -1
- package/dist/components/bs-dialog.js +1 -1
- package/dist/components/bs-divider.js +1 -1
- package/dist/components/bs-dropdown.js +1 -1
- 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.js +1 -1
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-icon-tile.js +1 -1
- package/dist/components/bs-icon.js +1 -1
- 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.js +1 -1
- package/dist/components/bs-list-item.js +1 -1
- package/dist/components/bs-list.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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/bs-tabs.js +1 -1
- package/dist/components/bs-tag.js +1 -1
- package/dist/components/bs-text.js +1 -1
- package/dist/components/bs-timepicker.js +1 -1
- package/dist/components/bs-toast.js +1 -1
- package/dist/components/bs-toggle-button-group.js +1 -1
- package/dist/components/bs-toggle-button.js +1 -1
- package/dist/components/bs-toolbar.js +1 -1
- 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/{p-CZfbB-t_.js → p--AN2lu8b.js} +1 -1
- package/dist/components/{p-Dlp2c-Ii.js → p-AlcZrDeY.js} +1 -1
- package/dist/components/{p-DnagAPBF.js → p-B-gdXga9.js} +1 -1
- package/dist/components/{p-abyVFrPp.js → p-B1Id2OKX.js} +1 -1
- package/dist/components/{p-DYpJMHAH.js → p-BCbaDQnq.js} +1 -1
- package/dist/components/{p-wscU7FUD.js → p-BFv-3K2u.js} +1 -1
- package/dist/components/{p-DaKBSL2O.js → p-BPxT7mqc.js} +1 -1
- package/dist/components/{p-DMp5CvEJ.js → p-BVX8P6fl.js} +1 -1
- package/dist/components/{p-Ba8J2kHD.js → p-BabS3w3f.js} +1 -1
- package/dist/components/{p-DL9HtG41.js → p-BanNal67.js} +1 -1
- package/dist/components/{p-DLNoxNuW.js → p-Bm1A449h.js} +1 -1
- package/dist/components/{p-DHZ_DStJ.js → p-Bn3Yxpe1.js} +1 -1
- package/dist/components/p-BoAmKy-C.js +1 -0
- package/dist/components/{p-DO4sVZCh.js → p-C0RV5-An.js} +1 -1
- package/dist/components/{p-wd9-vGpQ.js → p-C7IrV6pt.js} +1 -1
- package/dist/components/{p-DK1uv2fu.js → p-C7Qr4akd.js} +1 -1
- package/dist/components/p-CFjeYXmC.js +1 -0
- package/dist/components/{p-Cz38kNDe.js → p-CGFmvCoE.js} +1 -1
- package/dist/components/{p-D4W5LcEW.js → p-CJw83LkA.js} +1 -1
- package/dist/components/p-CWcci6TX.js +1 -0
- package/dist/components/p-CkQ7TJdL.js +1 -0
- package/dist/components/{p-DARbgzSz.js → p-Cm-s0vin.js} +1 -1
- package/dist/components/{p-DOW-YekD.js → p-CrSwhBz7.js} +1 -1
- package/dist/components/{p-CL99S8-7.js → p-CvaS1abm.js} +1 -1
- package/dist/components/{p-DztU3DwY.js → p-Cz7CuNiM.js} +1 -1
- package/dist/components/{p-D3XmFqCQ.js → p-DE2x8-lX.js} +1 -1
- package/dist/components/{p-CALH_mHQ.js → p-DY2EHN4U.js} +1 -1
- package/dist/components/{p-Cso2DKAz.js → p-DrlNm0Cv.js} +1 -1
- package/dist/components/p-U9f09E0n.js +1 -0
- package/dist/components/{p-BLJL4BVY.js → p-bsKorXp2.js} +1 -1
- package/dist/components/{p-KiyJJwzr.js → p-hfcWxH0R.js} +1 -1
- package/dist/components/{p-BB1HiIxJ.js → p-i5Q__opK.js} +1 -1
- package/dist/components/{p-BR7C-aKy.js → p-oc6e6_D0.js} +1 -1
- package/dist/esm/brandsync-wc.js +1 -1
- package/dist/esm/bs-accordion-group.entry.js +1 -1
- package/dist/esm/bs-accordion.entry.js +1 -1
- package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
- package/dist/esm/bs-ai-greeting.entry.js +1 -1
- package/dist/esm/bs-ai-thinking.entry.js +1 -1
- package/dist/esm/bs-app-recent-item_3.entry.js +4 -4
- package/dist/esm/bs-app-shell.entry.js +1 -1
- package/dist/esm/bs-attachment-list.entry.js +1 -1
- package/dist/esm/bs-breadcrumbs.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.entry.js +1 -1
- package/dist/esm/bs-button_2.entry.js +1 -1
- package/dist/esm/bs-carousel.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
- package/dist/esm/bs-chatbot-header.entry.js +1 -1
- package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
- package/dist/esm/bs-checkbox-group.entry.js +8 -3
- package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
- package/dist/esm/bs-chip-filter.entry.js +1 -1
- package/dist/esm/bs-chip-informative.entry.js +1 -1
- package/dist/esm/bs-chip-input.entry.js +1 -1
- package/dist/esm/bs-citation-preview.entry.js +1 -1
- package/dist/esm/bs-command-palette.entry.js +1 -1
- package/dist/esm/bs-compact-menu-block_2.entry.js +4 -4
- package/dist/esm/bs-company-switcher.entry.js +2 -2
- package/dist/esm/bs-composer-status-banner.entry.js +1 -1
- package/dist/esm/bs-composer.entry.js +1 -1
- package/dist/esm/bs-container.entry.js +1 -1
- package/dist/esm/bs-data-table.entry.js +2 -2
- package/dist/esm/bs-datepicker.entry.js +1 -1
- package/dist/esm/bs-description-item.entry.js +1 -1
- package/dist/esm/bs-description-list.entry.js +1 -1
- package/dist/esm/bs-divider.entry.js +1 -1
- package/dist/esm/bs-dropdown.entry.js +1 -1
- package/dist/esm/bs-empty-state.entry.js +1 -1
- package/dist/esm/bs-error-page.entry.js +1 -1
- package/dist/esm/bs-file-upload-item.entry.js +1 -1
- package/dist/esm/bs-file-upload.entry.js +1 -1
- package/dist/esm/bs-global-search.entry.js +2 -2
- package/dist/esm/bs-grid.entry.js +2 -2
- package/dist/esm/bs-heading.entry.js +1 -1
- package/dist/esm/bs-icon-button.entry.js +1 -1
- package/dist/esm/bs-icon-tile.entry.js +2 -2
- package/dist/esm/bs-icon.entry.js +1 -1
- package/dist/esm/bs-inline-tab.entry.js +1 -1
- package/dist/esm/bs-input_4.entry.js +5 -5
- package/dist/esm/bs-key-caps.entry.js +1 -1
- package/dist/esm/bs-key.entry.js +1 -1
- package/dist/esm/bs-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/bs-link.entry.js +1 -1
- package/dist/esm/bs-list-item.entry.js +1 -1
- package/dist/esm/bs-list.entry.js +1 -1
- package/dist/esm/bs-mega-menu.entry.js +1 -1
- package/dist/esm/bs-message-list.entry.js +1 -1
- package/dist/esm/bs-message.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer.entry.js +2 -2
- package/dist/esm/bs-navigation-header.entry.js +2 -2
- package/dist/esm/bs-page-header.entry.js +1 -1
- package/dist/esm/bs-pagination.entry.js +1 -1
- package/dist/esm/bs-popover.entry.js +25 -1
- package/dist/esm/bs-presence.entry.js +1 -1
- package/dist/esm/bs-progress-linear.entry.js +2 -2
- package/dist/esm/bs-progress.entry.js +2 -2
- package/dist/esm/bs-qr-code.entry.js +1 -1
- package/dist/esm/bs-radio-group.entry.js +1 -1
- package/dist/esm/bs-radio.entry.js +1 -1
- package/dist/esm/bs-search-item.entry.js +1 -1
- package/dist/esm/bs-select.entry.js +1 -1
- package/dist/esm/bs-session-timeout.entry.js +1 -1
- package/dist/esm/bs-shortcut-row.entry.js +1 -1
- package/dist/esm/bs-skip-link.entry.js +1 -1
- package/dist/esm/bs-slider.entry.js +1 -1
- package/dist/esm/bs-snackbar.entry.js +1 -1
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-split-pane.entry.js +1 -1
- package/dist/esm/bs-stack.entry.js +1 -1
- package/dist/esm/bs-stat.entry.js +1 -1
- package/dist/esm/bs-stepper-step.entry.js +1 -1
- package/dist/esm/bs-stepper.entry.js +1 -1
- package/dist/esm/bs-switch.entry.js +1 -1
- package/dist/esm/bs-tab_3.entry.js +3 -3
- package/dist/esm/bs-table-of-contents.entry.js +1 -1
- package/dist/esm/bs-tag.entry.js +2 -2
- package/dist/esm/bs-text.entry.js +1 -1
- package/dist/esm/bs-timepicker.entry.js +2 -2
- package/dist/esm/bs-toast.entry.js +1 -1
- package/dist/esm/bs-toggle-button-group.entry.js +1 -1
- package/dist/esm/bs-toggle-button.entry.js +1 -1
- package/dist/esm/bs-toolbar.entry.js +1 -1
- package/dist/esm/bs-tooltip-trigger.entry.js +1 -1
- package/dist/esm/bs-tooltip.entry.js +1 -1
- package/dist/esm/bs-tree-item.entry.js +2 -2
- package/dist/esm/bs-tree.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/bs-carousel/bs-carousel.d.ts +1 -1
- package/dist/types/components/bs-checkbox-group/bs-checkbox-group.d.ts +3 -1
- package/dist/types/components/bs-popover/bs-popover.d.ts +9 -1
- package/dist/types/components/disabled-aria.cmp.test.d.ts +1 -0
- package/dist/types/components.d.ts +13 -2
- package/package.json +6 -1
- package/reference.json +2 -2
- package/dist/brandsync-wc/p-050270f5.entry.js +0 -1
- package/dist/brandsync-wc/p-0f864a4f.entry.js +0 -1
- package/dist/brandsync-wc/p-105c316e.entry.js +0 -1
- package/dist/brandsync-wc/p-23affb5d.entry.js +0 -1
- package/dist/brandsync-wc/p-28723df1.entry.js +0 -1
- package/dist/brandsync-wc/p-4ae7b8b9.entry.js +0 -1
- package/dist/brandsync-wc/p-7632f773.entry.js +0 -1
- package/dist/brandsync-wc/p-86fdbe8f.entry.js +0 -1
- package/dist/brandsync-wc/p-c9888d09.entry.js +0 -1
- package/dist/brandsync-wc/p-e6f57fae.entry.js +0 -1
- package/dist/brandsync-wc/p-ff14edb6.entry.js +0 -1
- package/dist/components/p-CXv8kx8w.js +0 -1
- package/dist/components/p-CePOtLtZ.js +0 -1
- package/dist/components/p-CxNNy2m6.js +0 -1
- package/dist/components/p-DBgafacj.js +0 -1
- package/dist/components/p-Dt3b6VYT.js +0 -1
|
@@ -113,7 +113,7 @@ export class BsAccordion {
|
|
|
113
113
|
// `<div role="button">`: it gets click, keyboard activation (Enter/Space), focus-visible
|
|
114
114
|
// styling, and `disabled` semantics (not focusable, no events) for free, and flexbox handles
|
|
115
115
|
// laying out its children as easily as a <div>'s -- no layout reason to hand-roll any of that.
|
|
116
|
-
return (h("div", { key: '
|
|
116
|
+
return (h("div", { key: '5b7922ce5d634a43d1ca3020b02e61b2749646f1', part: "container", class: `bs-accordion bs-accordion--${this.size} ${this.disabled ? 'bs-accordion--disabled' : ''}`, "aria-disabled": this.disabled ? 'true' : undefined }, h("button", { key: '36a5a7504c9d4301db2268652037a28cee8cc395', type: "button", part: "header", class: `bs-accordion__header bs-accordion__header--${this.size} ${this.showIcon ? '' : 'bs-accordion__header--no-icon'}`, disabled: this.disabled, "aria-expanded": String(this.expanded), onClick: this.onActivate }, this.showIcon && (h("span", { key: '2933f14e71ec7902e310761481c7408aa5afdb07', part: "icon", class: `bs-accordion__icon bs-accordion__icon--${this.size}`, "aria-hidden": "true" }, h("slot", { key: 'd156fc7944f2177764a5622c6753c45190176549', name: "icon" }, h(PlusIcon, { key: 'c570019c3b65661d9237c9d182ab5b0aa6fcc808' })))), h("span", { key: 'dafef9038d6d29fa3193515d605244d371efc2bb', part: "label", class: `bs-accordion__label ${this.showIcon ? '' : 'bs-accordion__label--no-icon'}` }, h("slot", { key: 'c752f678a8032bd3cb01b1d9d43eb9d863707a67', name: "label" })), h("span", { key: '20fd3835f885ad26ebfea64c02bd16dfd0c3fea1', part: "caret", class: `bs-accordion__caret bs-accordion__caret--${this.size} ${this.expanded ? 'bs-accordion__caret--open' : ''}`, "aria-hidden": "true" }, h(CaretDownIcon, { key: 'af7922ee4c4280e17dddd51f6681415c70389ef6' }))), (this.expanded || this.showPreview || this.closing) && (h("div", { key: 'ac8fb07634032e1035e88c0f713841d9276df2f8', ref: el => (this.contentEl = el), part: "content", class: `bs-accordion__content ${this.showIcon ? '' : 'bs-accordion__content--no-icon'} ${this.expanded ? 'bs-accordion__content--expanded' : 'bs-accordion__content--collapsed'}` }, h("slot", { key: '6263559f2a03fd514cdc98538e1c9faee0767313' })))));
|
|
117
117
|
}
|
|
118
118
|
static get is() { return "bs-accordion"; }
|
|
119
119
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,7 +35,7 @@ export class BsAccordionGroup {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h("div", { key: '
|
|
38
|
+
return (h("div", { key: 'edff9463cdb80a4a2ab059e1e6f112fe5c0c7e78', part: "group", class: "bs-accordion-group" }, h("slot", { key: 'dff1387c96a96081a606cf72d6edd73ea0c98a4f' })));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "bs-accordion-group"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ import { h } from "@stencil/core";
|
|
|
25
25
|
export class BsAiDisclaimer {
|
|
26
26
|
render() {
|
|
27
27
|
https: //images.unsplash.com/photo-1512917774080-9991f1c4c750?w=200&h=200&fit=crop
|
|
28
|
-
return (h("div", { key: '
|
|
28
|
+
return (h("div", { key: 'e278d4d1772590c5b615f4b379d56dbd5d8abbeb', class: "bs-ai-disclaimer" }, h("p", { key: '1fc3de4109fd41baa4a4e63e1a18ead5e915ea6b', part: "text", class: "bs-ai-disclaimer__text" }, h("slot", { key: '2fc77b3a59545f1cf2eb8501653e646bdb48cfcd' }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "bs-ai-disclaimer"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,7 +43,7 @@ export class BsAiGreeting {
|
|
|
43
43
|
const subtext = this.productName
|
|
44
44
|
? `How can I help you with ${this.productName} today?`
|
|
45
45
|
: 'How can I help you today?';
|
|
46
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: 'c3603a92b56d091e336f968657827eaec98e1f0b', class: "bs-ai-greeting" }, h("div", { key: '3345cdd320647c45d83bcc242e42f0e2b6b6ef86', part: "heading", class: "bs-ai-greeting__heading" }, h("p", { key: 'e70e9d6aef4aee791f1bed5a61cfa73b12b3d2b4', class: "bs-ai-greeting__heading-line" }, "Hi. I'm ", this.assistantName, ","), h("p", { key: '1be6d5cfc0cd2b2441c8a74a0a3bd7b628444f95', class: "bs-ai-greeting__heading-line" }, "your AI assistant.")), h("p", { key: 'a7cf1f0518520f6ff8b3eaaad009323861a9421a', part: "subtext", class: "bs-ai-greeting__subtext" }, subtext)));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "bs-ai-greeting"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,7 +29,7 @@ export class BsAiThinking {
|
|
|
29
29
|
/** The status text shown next to the icon, e.g. "Retrieving", "Thinking", "Searching". */
|
|
30
30
|
label = 'Thinking';
|
|
31
31
|
render() {
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: 'c89cb6cbb5029fbbac505318512d90418bb6bdf3', class: "bs-ai-thinking", role: "status", "aria-live": "polite" }, h("img", { key: 'acfb3e6bf6bf5e94e9e12ad3643117939f753704', part: "icon", class: "bs-ai-thinking__icon", src: GENIE_MARK_ICON, alt: "", "aria-hidden": "true" }), h("span", { key: '0ee3689b4fa5cb3d7c9d80df3f465427eca4107c', part: "label", class: "bs-ai-thinking__label" }, this.label)));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "bs-ai-thinking"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,10 +63,10 @@ export class BsAppRecentItem {
|
|
|
63
63
|
onClick: this.onClick,
|
|
64
64
|
};
|
|
65
65
|
const body = [
|
|
66
|
-
h("bs-icon-tile", { key: '
|
|
67
|
-
h("span", { key: '
|
|
66
|
+
h("bs-icon-tile", { key: '7d1245df8491ddc9818dc6220fd0f2f20b8139cc', part: "icon", class: "bs-app-recent-item__icon", size: "md" }, this.icon ? h("span", { class: "bs-app-recent-item__glyph", style: { '--bs-app-recent-item-glyph': `url(${JSON.stringify(this.icon)})` } }) : h("slot", null)),
|
|
67
|
+
h("span", { key: '9380b0bc32e849512093e734ecaedc772ed6eb08', class: "bs-app-recent-item__text" }, h("span", { key: '75f63018f674976f8fa8b2edb41108b154f6403f', part: "name", class: "bs-app-recent-item__name" }, this.name), this.description && (h("span", { key: '4e91058be7ce643b86cf222a10da1efbb9484b64', part: "description", class: "bs-app-recent-item__description" }, this.description))),
|
|
68
68
|
];
|
|
69
|
-
return (h("button", { key: '
|
|
69
|
+
return (h("button", { key: 'f147140ab6ced0a63f5925c84bf632a2da196f7c', ...common, type: "button" }, body));
|
|
70
70
|
}
|
|
71
71
|
static get is() { return "bs-app-recent-item"; }
|
|
72
72
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +38,7 @@ export class BsAppShell {
|
|
|
38
38
|
/** When true the host is `height: 100%`; when false it is content-sized with `min-height: 100vh`. */
|
|
39
39
|
fullHeight = true;
|
|
40
40
|
render() {
|
|
41
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: '47e707c4f3c743b6b523dd76e80d6ae38aaf5353', class: "bs-app-shell", part: "container" }, h("div", { key: 'd1b0bb4599dc1e9a13017364ce6e7c69c3316978', class: "bs-app-shell__header", part: "header" }, h("slot", { key: '775f89967e83d97f0ea129b35e7d8df2742edc9d', name: "header" })), h("div", { key: 'fbea84a9cbfc0d3ebb73485da6c5184c4dddb158', class: "bs-app-shell__navigation", part: "navigation" }, h("slot", { key: '95f1a3641a8107e5c1511c73b4a758c56fe15d17', name: "navigation" })), h("main", { key: '0f4fac865fb895e1111088a943d442fa02bda6de', class: "bs-app-shell__main", part: "main" }, h("slot", { key: '5bc1dc42ad1a78100636403cd7972a1ee970ee4c' })), h("div", { key: '409d54f79b190319281ece75c7afe533e10f4d69', class: "bs-app-shell__aside", part: "aside" }, h("slot", { key: '1ff69b7cc7f1b670c8074e8e8db37e96c2d0526a', name: "aside" }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "bs-app-shell"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,7 +58,7 @@ export class BsAttachmentList {
|
|
|
58
58
|
this.canScrollRight = row.scrollWidth - row.clientWidth - row.scrollLeft > 1;
|
|
59
59
|
};
|
|
60
60
|
render() {
|
|
61
|
-
return (h("div", { key: '
|
|
61
|
+
return (h("div", { key: 'cc51d61bedb719b9e4f53ff06ad0e49280941216', class: "bs-attachment-list" }, h("div", { key: 'ad60db1aa180756c3363977cd3b99fea072ed8fb', part: "row", class: "bs-attachment-list__row", ref: el => (this.row = el), onScroll: this.onScroll, role: "group", "aria-label": this.ariaLabel, tabIndex: 0 }, h("slot", { key: '72a1bb83c74108685a10d6e3b2f2288ac13a88dd', onSlotchange: this.onSlotchange })), this.canScrollRight && h("div", { key: '89a6c24b102bc994cf2535ec3122ed4abfa23d46', part: "fade", class: "bs-attachment-list__fade", "aria-hidden": "true" })));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "bs-attachment-list"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -61,7 +61,7 @@ export class BsBreadcrumbs {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h("nav", { key: '
|
|
64
|
+
return (h("nav", { key: '0c84afcbcfd5b6f92847d5688ed5201d4d94de23', "aria-label": this.label }, h("ol", { key: '03d527ed21c159d74cbb1215107479dbbd72b4a4', part: "list", class: "bs-breadcrumbs__list" }, h("slot", { key: '7c5d8aa5aef659e6c140ef1bb6992f35ab150d1c', onSlotchange: this.onSlotChange }))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "bs-breadcrumbs"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,7 +77,7 @@ export class BsIconButton {
|
|
|
77
77
|
form.reset();
|
|
78
78
|
};
|
|
79
79
|
render() {
|
|
80
|
-
return (h("button", { key: '
|
|
80
|
+
return (h("button", { key: 'ea9b6a4289caec8f3e2649ccaf028bdc3461b107', class: `bs-icon-button bs-icon-button--${this.variant} bs-icon-button--${this.size}`, type: this.type, disabled: this.disabled, "aria-label": this.ariaLabel, "aria-expanded": this.ariaExpanded, "aria-controls": this.ariaControls, "aria-haspopup": this.ariaHasPopup, "aria-pressed": this.pressed === undefined ? undefined : String(this.pressed), onClick: this.onClick }, h("bs-ripple", { key: 'c09697cdd641eedc4423d3dccb220b5f50265ec0', part: "ripple", centered: true, disabled: this.disabled }), h("span", { key: 'f0baf9d4d9555a0c8385d60690c29ae04c15aeaa', part: "icon", class: "bs-icon-button__icon" }, h("slot", { key: 'b9d1cb1b892a0cb2b735e84afcf255d93b8957f2' }))));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "bs-icon-button"; }
|
|
83
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class BsButtonSkeleton {
|
|
|
27
27
|
/** Accessible name announced for the loading placeholder. */
|
|
28
28
|
loadingLabel = 'Loading';
|
|
29
29
|
render() {
|
|
30
|
-
return h("span", { key: '
|
|
30
|
+
return h("span", { key: '7d56c2312dd4ab1d088a1b7a80ec7663cb896353', part: "container", class: `bs-button-skeleton bs-button-skeleton--${this.size}`, role: "status", "aria-label": this.loadingLabel });
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "bs-button-skeleton"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@ import { h } from "@stencil/core";
|
|
|
28
28
|
* - A strict sequence of steps -- use `bs-stepper`.
|
|
29
29
|
* - Paging through a large, addressable result set -- use `bs-pagination`.
|
|
30
30
|
*
|
|
31
|
-
* @slot - Default slot: the slides. Each direct child is one slide.
|
|
31
|
+
* @slot - Default slot: the slides. Each direct child is one slide and gets `role="group"`, so wrap an image in an element (don't slot a bare `<img>`).
|
|
32
32
|
* @part carousel - The outer region (`role="region"`, `aria-roledescription="carousel"`).
|
|
33
33
|
* @part slides - The row holding the visible slides.
|
|
34
34
|
* @part tracker - The row holding the tracker and the Pause/Play button.
|
|
@@ -257,7 +257,7 @@ export class BsCarousel {
|
|
|
257
257
|
// While auto-advance is actually running, slide changes must not be announced (it would
|
|
258
258
|
// interrupt the user constantly); otherwise announce them politely.
|
|
259
259
|
const rotating = this.autoplay && !this.paused && !this.interacting;
|
|
260
|
-
return (h("section", { key: '
|
|
260
|
+
return (h("section", { key: 'cc9bb48b594809276ba1d7a37bdab86e6406ce4b', part: "carousel", class: "bs-carousel", role: "region", "aria-roledescription": "carousel", "aria-label": this.label, style: { '--bs-carousel-slides-per-view': String(this.perView) } }, h("div", { key: 'd6505ef1cf25ba7ad7f43e733c72324e54138882', part: "slides", class: "bs-carousel__slides", "aria-live": rotating ? 'off' : 'polite' }, h("slot", { key: 'd619f41a54d346f05e56dae300fc8e6f8e0d9161', onSlotchange: this.onSlotChange })), showTracker && (h("div", { key: '4cc21ab05421bdba11a2588a6628041f8ef57e64', part: "tracker", class: "bs-carousel__tracker" }, this.tracker === 'numbers' ? (h("bs-pagination", { part: "pagination", totalPages: this.pageCount, currentPage: this.page, onBsPageChange: (ev) => {
|
|
261
261
|
ev.stopPropagation();
|
|
262
262
|
this.goTo(ev.detail);
|
|
263
263
|
} })) : (h("div", { class: "bs-carousel__nav" }, this.renderDotsTracker())), this.renderPause()))));
|
|
@@ -19,12 +19,16 @@ const PHOTO_IDS = [
|
|
|
19
19
|
'photo-1512917774080-9991f1c4c750',
|
|
20
20
|
'photo-1660496247667-3fb697c396af',
|
|
21
21
|
];
|
|
22
|
+
// Each slide is a wrapper <div>, not a bare <img>: the carousel gives every slide role="group" and an
|
|
23
|
+
// "n of N" label, which is invalid on an <img> (and would replace its alt text).
|
|
22
24
|
const slot = (n) => html `
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
<div>
|
|
26
|
+
<img
|
|
27
|
+
src="https://images.unsplash.com/${PHOTO_IDS[(n - 1) % PHOTO_IDS.length]}?fm=jpg&q=80&w=640&h=360&fit=crop&auto=format"
|
|
28
|
+
alt="Landscape photograph ${n}"
|
|
29
|
+
style="display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bs-border-radius-100);"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
28
32
|
`;
|
|
29
33
|
const meta = {
|
|
30
34
|
title: 'Components/bs-carousel',
|
|
@@ -139,7 +139,7 @@ export class BsChatbotFeedback {
|
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
141
|
const stars = [1, 2, 3, 4, 5];
|
|
142
|
-
return (h("div", { key: '
|
|
142
|
+
return (h("div", { key: 'abe96e022470e207c9f7f809f0411decc3d5f15d', class: "bs-chatbot-feedback", role: "region", "aria-label": this.computedHeading() }, h("button", { key: 'bc4b49b49197f519c907a2d251f87dda32f692af', type: "button", part: "close", class: "bs-chatbot-feedback__close", "aria-label": this.closeLabel, onClick: this.onCloseClick }, h("bs-icon", { key: '9752026097d6059c5e42849f5ac1199cf1b62f1a', name: "x", tone: "inherit", size: "md" })), h("div", { key: '4a99b4d73ec91e57451c2fa8c39065d25bae3eff', class: "bs-chatbot-feedback__top" }, h("div", { key: '0a2a34e66a6cc804a6079024f2c988eb7772d9b8', class: "bs-chatbot-feedback__text" }, h("p", { key: '83b9fb4d2f1dcd4ab27ded8decc9895785ef8990', part: "heading", class: "bs-chatbot-feedback__heading" }, this.computedHeading()), h("p", { key: 'b6488793210e32bf867cc86adbd1fb18faaf402a', part: "subtitle", class: "bs-chatbot-feedback__subtitle" }, this.computedSubtitle())), h("div", { key: 'dc54e8f6b9c1baf511a90f382a88c15618c2c99a', class: "bs-chatbot-feedback__stars", role: "radiogroup", "aria-label": this.ratingLabel }, stars.map(value => (h("button", { type: "button", part: "star", class: "bs-chatbot-feedback__star", role: "radio", "aria-checked": (this.rating >= value).toString(), "aria-label": `${value} ${value > 1 ? this.starsLabel : this.starLabel}`, disabled: this.submitted, onClick: () => this.onStarClick(value) }, h("bs-icon", { name: this.rating >= value ? 'star-fill' : 'star', tone: "inherit" }))))), !this.submitted && (h("div", { key: '0cbd5a3e6419fe89fc6a2825aca72b4555e3b769', class: "bs-chatbot-feedback__field" }, h("label", { key: 'f7ecb448ac6ac8f0bea24122840d57f120bfeca0', part: "label", class: "bs-chatbot-feedback__label", htmlFor: "bs-chatbot-feedback-comment" }, this.commentLabel), h("textarea", { key: 'b3a71294376092dca5d196e21c4206a0299a7484', part: "textarea", id: "bs-chatbot-feedback-comment", class: "bs-chatbot-feedback__textarea", placeholder: this.commentPlaceholder, value: this.comment, onInput: this.onCommentInput }))), this.submitted && this.comment && (h("p", { key: 'd3fdc0be81a0cb12173a80d9f4b80e7e17fb6b88', part: "comment", class: "bs-chatbot-feedback__comment" }, this.comment))), h("div", { key: 'd20530168baf7b3905128550156ac30b328c4c4a', class: "bs-chatbot-feedback__actions" }, !this.submitted && (h("button", { key: '166e8a801f9ce7c9a1bbd3e03d4884b3e3819e77', type: "button", part: "submit", class: "bs-chatbot-feedback__submit", disabled: this.rating === 0, onClick: this.onSubmitClick }, h("bs-icon", { key: 'd1681fddde19c9303c5a5a716c9bcc41c7e81919', name: "paper-plane-right", tone: "inherit" }), this.submitLabel)), h("button", { key: '69218e0d70231f8930c3ede9bedd8cddc62e0425', type: "button", part: "new-chat", class: `bs-chatbot-feedback__new-chat ${this.submitted ? 'bs-chatbot-feedback__new-chat--primary' : 'bs-chatbot-feedback__new-chat--outlined'}`, onClick: this.onNewChatClick }, h("bs-icon", { key: '66e6151ed8f172e40c09ac8e9ace5970d2626f02', name: "note-pencil", tone: "inherit" }), this.newChatLabel))));
|
|
143
143
|
}
|
|
144
144
|
static get is() { return "bs-chatbot-feedback"; }
|
|
145
145
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,7 +93,7 @@ export class BsChatbotHeader {
|
|
|
93
93
|
this.bsClose.emit();
|
|
94
94
|
};
|
|
95
95
|
render() {
|
|
96
|
-
return (h("div", { key: '
|
|
96
|
+
return (h("div", { key: '2ddb9c205074cb798c819fa134697066ac74e007', class: "bs-chatbot-header", role: "banner", "aria-label": this.heading }, h("div", { key: '67c82de0246c79ea51c57ea8ff4a092355540a9d', part: "logo", class: "bs-chatbot-header__logo", role: "img", "aria-label": this.heading, innerHTML: GENIE_LOGO_SVG }), h("div", { key: 'a6f34d2e08e5db2c0ee53f650a6c4f0630e82f58', class: "bs-chatbot-header__actions" }, h("slot", { key: '7706d8c443cdd66dc493024a8bbe82004e8a4aab', name: "actions" }), !this.hideNewChat && (h("span", { key: '2a3628094dec7ef3275b197483e7d051d3cf19de', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: 'ca3ff416db460b27a54c1fc0a26c2247963f4421', type: "button", part: "new-chat", class: "bs-chatbot-header__button", "aria-label": this.newChatLabel, onClick: this.onNewChatClick }, h("slot", { key: '02021477c347faf9dc91a03632f5940a0902358e', name: "new-chat-icon" }, h("bs-icon", { key: '7007f65e886288ad0d7358712aae7f1cea2bc261', name: "note-pencil", tone: "inherit" }))), h("bs-tooltip", { key: 'ed13af0265b1a5e0fd4f510395a125e4104172fb', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.newChatLabel))), !this.hideHistory && (h("span", { key: '0a544d3f67182c982a12536f964a6c3ff61e3b6b', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: 'c228101de7b8fcbfcbfae91bcc8ad5a8c16f0caa', type: "button", part: "history", class: "bs-chatbot-header__button", "aria-label": this.historyLabel, onClick: this.onHistoryClick }, h("slot", { key: '3f2bfe403db42cc3e699d557639cddd75981f221', name: "history-icon" }, h("bs-icon", { key: '1fde5494b813ee00c79d675a0a153d56852990da', name: "clock-counter-clockwise", tone: "inherit" }))), h("bs-tooltip", { key: '6e7ffda760c642815d5b403e16852df7675f835f', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.historyLabel))), !this.hideExpand && (h("span", { key: 'e3ed6e2d4531f603b7911cb26d3213f212fe845c', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: '888df9fbf9464b634865e01ee9c41cfaab854566', type: "button", part: "expand", class: "bs-chatbot-header__button", "aria-label": this.expanded ? this.collapseLabel : this.expandLabel, "aria-pressed": this.expanded ? 'true' : 'false', onClick: this.onExpandClick }, h("slot", { key: '9b8e079238abfb6cb423e43aad42c740c6ff49b9', name: "expand-icon" }, h("bs-icon", { key: 'ea854b094594e1a818a2dc3fd74c4b6cc039075e', name: "arrows-out-simple", tone: "inherit" }))), h("bs-tooltip", { key: '6105372ca30141f913bc1f1d006a7c256585d18d', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.expanded ? this.collapseLabel : this.expandLabel))), !this.hideClose && (h("span", { key: 'c0c950c5d1c2efb3e3cb3bf603ca1a69456616fb', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: '3bec7ad338519220f4a80166cbd1ee2a2cf6e50a', type: "button", part: "close", class: "bs-chatbot-header__button", "aria-label": this.closeLabel, onClick: this.onCloseClick }, h("slot", { key: 'a3ab965313ae0909298b1fea50a84fd7be57a3f6', name: "close-icon" }, h("bs-icon", { key: 'bb95e5d9d7e972d901372e3af56ab5fd8e5ec8ac', name: "x", tone: "inherit" }))), h("bs-tooltip", { key: 'cc11deddfb77797722df5f4abf9f97e7f91d3d15', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.closeLabel))))));
|
|
97
97
|
}
|
|
98
98
|
static get is() { return "bs-chatbot-header"; }
|
|
99
99
|
static get encapsulation() { return "shadow"; }
|
|
@@ -128,7 +128,7 @@ export class BsChatbotResponseAction {
|
|
|
128
128
|
};
|
|
129
129
|
render() {
|
|
130
130
|
const hasSources = !!this.sourcesCount && this.sourcesCount > 0;
|
|
131
|
-
return (h("div", { key: '
|
|
131
|
+
return (h("div", { key: '4263ebed958bc24b67606be50a6a0f35602f6628', class: "bs-chatbot-response-action" }, h("button", { key: '6805493edf715e0977b046321f6f646c63012854', type: "button", part: "like", class: "bs-chatbot-response-action__button", "aria-label": this.likeLabel, "aria-pressed": this.liked ? 'true' : 'false', onClick: this.onLikeClick }, h("bs-ripple", { key: 'd239a216c3203eacc16a0f79bf5dc1e9ff9f9bb0', part: "ripple", centered: true }), h("slot", { key: 'b4e94465648fac5ab8063987f26ab95b9ec91ec9', name: "like-icon" }, h(ThumbsUpIcon, { key: 'b2ed36b80507555a6c719f4b253efd335bc8183a' }))), h("button", { key: 'ea84c74cd3cc0fddcfe46d17a521a3f972605516', type: "button", part: "dislike", class: "bs-chatbot-response-action__button", "aria-label": this.dislikeLabel, "aria-pressed": this.disliked ? 'true' : 'false', onClick: this.onDislikeClick }, h("bs-ripple", { key: '614061ea5267ce73b18893cb9134e416dba3501d', part: "ripple", centered: true }), h("slot", { key: 'b674da463ed8425a37c25eb1b8916ceb29f0fa74', name: "dislike-icon" }, h(ThumbsDownIcon, { key: '21104656e544086f66efd225d9a528e1726106dc' }))), h("button", { key: '3b13edb4d339c4ddf17c31c7ae1a1346caaffc10', type: "button", part: "copy", class: "bs-chatbot-response-action__button", "aria-label": this.copyLabel, onClick: this.onCopyClick }, h("bs-ripple", { key: '50775922e1996a662b9e9776e640c93b82e1353e', part: "ripple", centered: true }), h("slot", { key: '1de3aab0b4fc2c33797a3b92588c803edd893879', name: "copy-icon" }, h(CopyIcon, { key: '0fdc76095ed5e91889a479fbc0e6e430929d29b3' }))), !this.hideRegenerate && (h("button", { key: 'a4437c1135e3de9f00f6a6f6647a8cbf2278786d', type: "button", part: "regenerate", class: "bs-chatbot-response-action__button", "aria-label": this.regenerateLabel, onClick: this.onRegenerateClick }, h("bs-ripple", { key: '571a630b9b5834d7839ae76451b77e57a02c379c', part: "ripple", centered: true }), h("slot", { key: '910c06c47b93d7f54de30d13e665118a18d0b1e6', name: "regenerate-icon" }, h(RegenerateIcon, { key: '710a4c6ff5acbf447572c948fbeb289ff929a6f6' })))), h("div", { key: '30acbf6c546a10b2d76ff50ce913b8b8b1d36c38', class: "bs-chatbot-response-action__menu-wrapper" }, h("button", { key: '1ce53c3c29d74c58ff7087d7b486de5f64564423', type: "button", part: "menu", class: "bs-chatbot-response-action__button", "aria-label": this.menuLabel, "aria-haspopup": "menu", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: this.onMenuClick }, h("bs-ripple", { key: '9310b86d9067dd5c5ad86a29eb8c8d27ac183d23', part: "ripple", centered: true }), h("slot", { key: '1fd1370969fcdb9eb54fad72856dcbc40683f096', name: "menu-icon" }, h(MenuIcon, { key: '7c28c2c086c19378540dac7f2630be777e379e5e' }))), this.menuOpen && (h("div", { key: '677046c5003b0c34e631b2659017cc695ff0f72f', class: "bs-chatbot-response-action__menu-popup" }, h("slot", { key: 'e074a06431dbfd44f67604e935d40f3b91116cf5', name: "menu" })))), hasSources && (h("button", { key: 'b9fcdfde8f2969b12b1dc7ecaa0149a2d35ab3aa', type: "button", part: "sources", class: "bs-chatbot-response-action__sources", onClick: this.onSourcesClick }, h("slot", { key: 'a5a509eb6bb7c877a9dd7f8659191b073f1c0ccb', name: "sources-icon" }, h(SourcesIcon, { key: '49407e046d01a4f520b15b550121e8509aef053f' })), h("span", { key: 'f326640b200efcf12347714db2029327c95805f0', class: "bs-chatbot-response-action__sources-label" }, this.sourcesCount, " ", this.sourcesCount === 1 ? this.sourceLabel : this.sourcesLabel)))));
|
|
132
132
|
}
|
|
133
133
|
static get is() { return "bs-chatbot-response-action"; }
|
|
134
134
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class BsChatbotSourcesDrawer {
|
|
|
59
59
|
};
|
|
60
60
|
render() {
|
|
61
61
|
const displayCount = this.count ?? this.slottedCount;
|
|
62
|
-
return (h("div", { key: '
|
|
62
|
+
return (h("div", { key: '72666e1a78127010e3ac2ebe6ce0f94117c4b432', class: "bs-chatbot-sources-drawer", role: "region", "aria-label": this.heading }, h("div", { key: 'a82c23071c94ab034e5618d03bdea9f23bf83f1f', class: "bs-chatbot-sources-drawer__header" }, h("div", { key: '592aa5597e26e34b9583dd3987e98a202f1f515e', class: "bs-chatbot-sources-drawer__title-group" }, h("h2", { key: 'd7d0841ad59dea22cda3c80cca96423c752760f3', part: "heading", class: "bs-chatbot-sources-drawer__heading" }, this.heading), displayCount > 0 && (h("span", { key: 'ca952fc240dc656ecb3b8626fe6ff04a6205b0b6', part: "count", class: "bs-chatbot-sources-drawer__count" }, displayCount))), h("button", { key: '733c375428582c657025ddde7b412174a4095324', type: "button", part: "collapse", class: "bs-chatbot-sources-drawer__collapse", "aria-label": this.collapseLabel, onClick: this.onCollapseClick }, h("slot", { key: '5b40e0be91f2c0d7370d597ca54854fea05d9c28', name: "collapse-icon" }, h(CaretRightIcon, { key: '0e0386e798e8c437ba6440d0d5a2f77afcd5b989' })))), h("div", { key: '71e980ce1ebbc1c6f1e61f61cfa669a85088d09e', part: "list", class: "bs-chatbot-sources-drawer__list" }, h("slot", { key: '3ad1f3ddb4b91b5e7f22167e471977708b8649cd', onSlotchange: this.onSlotchange }))));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "bs-chatbot-sources-drawer"; }
|
|
65
65
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js
CHANGED
|
@@ -46,7 +46,7 @@ export class BsChatbotSuggestionButton {
|
|
|
46
46
|
this.bsSelect.emit();
|
|
47
47
|
};
|
|
48
48
|
render() {
|
|
49
|
-
return (h("button", { key: '
|
|
49
|
+
return (h("button", { key: 'f7d29f1919ff885bc1f05626829bf58fae38be61', type: "button", part: "button", class: "bs-chatbot-suggestion-button", disabled: this.disabled, onClick: this.onClick }, h("bs-ripple", { key: '770017f5a44729eba5208878c17b31efdcab7952', part: "ripple", centered: false, disabled: this.disabled }), h("slot", { key: '6642b4c2cd8e3111fdf911b3fc6a01f67454da46' })));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "bs-chatbot-suggestion-button"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,7 +35,7 @@ export class BsCheckboxSkeleton {
|
|
|
35
35
|
/** Accessible name announced for the loading placeholder. */
|
|
36
36
|
loadingLabel = 'Loading';
|
|
37
37
|
render() {
|
|
38
|
-
return (h("span", { key: '
|
|
38
|
+
return (h("span", { key: 'f8a4306f0371bcbc8ddec0ad91b3b7dd38dcd5da', part: "container", class: "bs-checkbox-skeleton", role: "status", "aria-label": this.loadingLabel }, h("span", { key: '253a8bf78c65ed31f05d89df7f3e6fa9438df197', part: "box", class: `bs-checkbox-skeleton__box bs-checkbox-skeleton__box--${this.size}` }), h("span", { key: 'ff994f5895f52fae3074be5c75ff4093ab27eef9', part: "label", class: "bs-checkbox-skeleton__label" })));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "bs-checkbox-skeleton"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,6 +4,15 @@ const boxes = (root) => Array.from(root.querySelectorAll('bs-checkbox'));
|
|
|
4
4
|
const input = (b) => b.shadowRoot.querySelector('input');
|
|
5
5
|
const basic = (extra = {}) => (h("bs-checkbox-group", { label: "Notify by", ...extra }, h("bs-checkbox", { value: "email" }, "Email"), h("bs-checkbox", { value: "sms" }, "SMS"), h("bs-checkbox", { value: "push" }, "Push")));
|
|
6
6
|
describe('bs-checkbox-group', () => {
|
|
7
|
+
it('announces required via legend text, not aria-required (invalid on a fieldset)', async () => {
|
|
8
|
+
const { root } = await render(basic({ required: true }));
|
|
9
|
+
const group = root.shadowRoot.querySelector('fieldset');
|
|
10
|
+
expect(group.hasAttribute('aria-required')).toBe(false);
|
|
11
|
+
expect(root.shadowRoot.querySelector('legend').textContent).toContain('(required)');
|
|
12
|
+
root.requiredLabel = 'påkrævet';
|
|
13
|
+
await new Promise(r => setTimeout(r, 50));
|
|
14
|
+
expect(root.shadowRoot.querySelector('legend').textContent).toContain('(påkrævet)');
|
|
15
|
+
});
|
|
7
16
|
it('is a fieldset with a legend', async () => {
|
|
8
17
|
const { root } = await render(basic());
|
|
9
18
|
expect(root.shadowRoot.querySelector('fieldset')).not.toBeNull();
|
|
@@ -63,3 +63,16 @@
|
|
|
63
63
|
.bs-checkbox-group__error {
|
|
64
64
|
color: var(--bs-checkbox-group-error-color);
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
/* Visually hidden, still read by screen readers. */
|
|
68
|
+
.bs-checkbox-group__sr-only {
|
|
69
|
+
position: absolute;
|
|
70
|
+
width: 1px;
|
|
71
|
+
height: 1px;
|
|
72
|
+
margin: -1px;
|
|
73
|
+
padding: 0;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
clip: rect(0 0 0 0);
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
border: 0;
|
|
78
|
+
}
|
|
@@ -31,8 +31,10 @@ export class BsCheckboxGroup {
|
|
|
31
31
|
error;
|
|
32
32
|
/** Layout of the checkboxes. */
|
|
33
33
|
orientation = 'vertical';
|
|
34
|
-
/** Marks the group as required: shows an asterisk after the label and
|
|
34
|
+
/** Marks the group as required: shows an asterisk after the label and adds the `requiredLabel` text to the legend for assistive tech. */
|
|
35
35
|
required = false;
|
|
36
|
+
/** Text appended (visually hidden) to the legend when `required`, so screen readers announce it. `aria-required` is not valid on a `fieldset`. */
|
|
37
|
+
requiredLabel = 'required';
|
|
36
38
|
/** `value`s of the checked checkboxes. An array, so set it as a JS property, not an attribute. Setting it checks the matching boxes and unchecks the rest. */
|
|
37
39
|
value = [];
|
|
38
40
|
/** Emitted with the new array of checked `value`s when the user toggles a checkbox. Replaces the checkboxes' own `bsChange`, which does not reach listeners outside the group. */
|
|
@@ -75,7 +77,10 @@ export class BsCheckboxGroup {
|
|
|
75
77
|
render() {
|
|
76
78
|
const descId = `${this.id}-desc`;
|
|
77
79
|
const note = this.error || this.description;
|
|
78
|
-
return (h("fieldset", { key: '
|
|
80
|
+
return (h("fieldset", { key: '8f7fb1a067e1f56befc8b0482405333f4eb5d3b1', part: "group", class: { 'bs-checkbox-group': true, 'bs-checkbox-group--error': !!this.error }, "aria-describedby": note ? descId : undefined, "aria-invalid": this.error ? 'true' : undefined }, this.label && (h("legend", { key: '4184cdfef2d458b06159289c44ed62093ec43fbe', part: "label", class: "bs-checkbox-group__label" }, this.label, this.required && [
|
|
81
|
+
h("span", { key: '7c50ad16bb5a62aee6bb7c1c6171fb7fc7843cbc', "aria-hidden": "true" }, " *"),
|
|
82
|
+
h("span", { key: '07c282bd08e6ba04aa245f37987985bd3e19e842', class: "bs-checkbox-group__sr-only" }, " (", this.requiredLabel, ")"),
|
|
83
|
+
])), h("div", { key: '2f418bcf802da9f6c312b103a0f49096e7bd0f08', part: "options", class: "bs-checkbox-group__options" }, h("slot", { key: '276403e8a81f0d6801ede58375a0802b382841a0', onSlotchange: this.onSlotchange })), note && (h("span", { key: 'bd3e98d357755bf1135c9dd9e3defb35090559da', id: descId, part: this.error ? 'error' : 'description', class: this.error ? 'bs-checkbox-group__error' : 'bs-checkbox-group__description' }, this.error || this.description))));
|
|
79
84
|
}
|
|
80
85
|
static get is() { return "bs-checkbox-group"; }
|
|
81
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -186,7 +191,7 @@ export class BsCheckboxGroup {
|
|
|
186
191
|
"optional": false,
|
|
187
192
|
"docs": {
|
|
188
193
|
"tags": [],
|
|
189
|
-
"text": "Marks the group as required: shows an asterisk after the label and
|
|
194
|
+
"text": "Marks the group as required: shows an asterisk after the label and adds the `requiredLabel` text to the legend for assistive tech."
|
|
190
195
|
},
|
|
191
196
|
"getter": false,
|
|
192
197
|
"setter": false,
|
|
@@ -194,6 +199,26 @@ export class BsCheckboxGroup {
|
|
|
194
199
|
"attribute": "required",
|
|
195
200
|
"defaultValue": "false"
|
|
196
201
|
},
|
|
202
|
+
"requiredLabel": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"mutable": false,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "string",
|
|
207
|
+
"resolved": "string",
|
|
208
|
+
"references": {}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": "Text appended (visually hidden) to the legend when `required`, so screen readers announce it. `aria-required` is not valid on a `fieldset`."
|
|
215
|
+
},
|
|
216
|
+
"getter": false,
|
|
217
|
+
"setter": false,
|
|
218
|
+
"reflect": false,
|
|
219
|
+
"attribute": "required-label",
|
|
220
|
+
"defaultValue": "'required'"
|
|
221
|
+
},
|
|
197
222
|
"value": {
|
|
198
223
|
"type": "unknown",
|
|
199
224
|
"mutable": true,
|
|
@@ -71,7 +71,7 @@ export class BsChipFilter {
|
|
|
71
71
|
// label-only edge gets more -- except when NEITHER edge has a glyph, where both edges use a
|
|
72
72
|
// third, larger value rather than the label-only one (see bs-chip-filter.css's own comment).
|
|
73
73
|
const paddingVariant = this.hasIcon && this.dropdown ? 'icon-dropdown' : this.hasIcon ? 'icon-only' : this.dropdown ? 'dropdown-only' : 'text-only';
|
|
74
|
-
return (h("button", { key: '
|
|
74
|
+
return (h("button", { key: '7cfdd0089c8023f1409ccf9751ffe03329a6d884', type: "button", class: `bs-chip-filter bs-chip-filter--${this.size} bs-chip-filter--${paddingVariant} ${this.selected ? 'bs-chip-filter--selected' : ''}`, disabled: this.disabled, "aria-pressed": String(this.selected), "aria-label": this.ariaLabel, onClick: this.onClick }, h("bs-ripple", { key: '3aa54019b1985b8cf77834c31b1df31a56e28774', part: "ripple", centered: false, disabled: this.disabled }), h("span", { key: '752fbf3f55aad2206e38f27e6841a4a8cb775449', part: "icon", class: `bs-chip-filter__icon ${this.hasIcon ? 'bs-chip-filter__icon--visible' : ''}` }, h("slot", { key: '51435c1edb40d989241b59413dc6e30b353b5b46', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '34db254d4ee9616e2497705bc57237bcaac3b6a2', part: "label", class: "bs-chip-filter__label" }, h("slot", { key: '35a15ed0702180ab8cb58e6249b78d1322ee4b5b' })), this.dropdown && (h("span", { key: 'e72f4c5612cf67848711c31f2ab32403bdc645f2', part: "caret", class: "bs-chip-filter__caret", "aria-hidden": "true" }, h(ChevronDownIcon, { key: '513939f3b41904070b43fed9ac8169fb2c92ef6d' })))));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "bs-chip-filter"; }
|
|
77
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,7 +44,7 @@ export class BsChipInformative {
|
|
|
44
44
|
};
|
|
45
45
|
render() {
|
|
46
46
|
const paddingVariant = this.hasIcon ? 'icon' : 'text';
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: 'd44cc865c85a33561d688c16ba73f325d42b5dd9', class: `bs-chip-informative bs-chip-informative--${this.color} bs-chip-informative--${this.size} bs-chip-informative--${paddingVariant}`, "aria-disabled": this.disabled ? 'true' : undefined }, h("span", { key: '287ae0812ffdb137d42c23ec1423a2939c57d316', part: "icon", class: `bs-chip-informative__icon ${this.hasIcon ? 'bs-chip-informative__icon--visible' : ''}` }, h("slot", { key: 'fbb9a6bd70dccc1873e77872a0b636acb2cbcd47', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'f4e3bc9305c5698b131da8724518d3fffd02d822', part: "label", class: "bs-chip-informative__label" }, h("slot", { key: 'ee13386ec9bf45e425b724bfbd0f9030f926fe79' }))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "bs-chip-informative"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -80,7 +80,7 @@ export class BsChipInput {
|
|
|
80
80
|
};
|
|
81
81
|
render() {
|
|
82
82
|
const paddingVariant = this.hasIcon ? 'icon' : 'text';
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '15fae1671d90d277794f39e32920c890b34d44d7', class: `bs-chip-input bs-chip-input--${this.size} bs-chip-input--${paddingVariant}` }, h("button", { key: '5961600e9394099821e8e33edc7de71cf6a1ad9b', type: "button", part: "body", class: "bs-chip-input__body", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.onBodyClick }, h("bs-ripple", { key: 'c1c90c8d5ab81d0c23edb4b4596e68b384aa8b0c', part: "ripple", centered: false, disabled: this.disabled }), h("span", { key: 'e6fd75f8cb1d8b8802a2d64e0852ebcaeefaa187', part: "icon", class: `bs-chip-input__icon ${this.hasIcon ? 'bs-chip-input__icon--visible' : ''}` }, h("slot", { key: '42997a9d073a6fab53fd23136115592cf71a62a4', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'd319b4e1e40d2486482866dbf8aa3717c4b0ee7f', part: "label", class: "bs-chip-input__label" }, h("slot", { key: '6cc26505fad8432f85df93ba4f764fcdc0489eaf', onSlotchange: this.onLabelSlotchange }))), h("button", { key: 'd78649e00740738908ccbdc268720dee41340cf9', type: "button", part: "remove", class: "bs-chip-input__remove", disabled: this.disabled, "aria-label": `${this.removeLabel} ${this.labelText}`, onClick: this.onRemoveClick }, h("bs-ripple", { key: 'dff2a2d6b215262f03bc36e34e0e083a7cf22e90', part: "ripple", centered: true, disabled: this.disabled }), h(CloseIcon, { key: 'b3b0ad0dbf5335c9225dcbbc5ed04f9960900c0e' }))));
|
|
84
84
|
}
|
|
85
85
|
static get is() { return "bs-chip-input"; }
|
|
86
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +38,7 @@ export class BsCitationPreview {
|
|
|
38
38
|
bsOpen;
|
|
39
39
|
render() {
|
|
40
40
|
const hasPage = this.page !== undefined && this.page !== null && this.page !== '';
|
|
41
|
-
return (h("bs-card", { key: '
|
|
41
|
+
return (h("bs-card", { key: '87d8ef821fbdfe846de40a2d74287e757d4d98c6', part: "container", class: "bs-citation-preview", surface: "base" }, h("div", { key: 'edecc65323eb56ec502e4f6242376d9ca535b08b', class: "bs-citation-preview__body" }, h("bs-source-link", { key: 'a00f41ef78e294f5009e2182bc0db921137d2322', part: "header", fileName: this.fileName, sourceName: this.sourceName, href: this.href, onBsOpen: () => this.bsOpen.emit() }), h("div", { key: 'c37e3ae17dc1835461ebc53002b9e596930cfaae', part: "snippet", class: "bs-citation-preview__snippet" }, h("slot", { key: '12ec7437fe56aa736d8ae751bed7a77109044071' })), h("div", { key: '3c2b6b1c2bf1802b835812a65865f25917b43868', class: "bs-citation-preview__footer" }, h("slot", { key: '49614ce08f91e86cacd6881b4e02f6c6cdf8046b', name: "footer" }, hasPage && (h("span", { key: '98fac4f066e02be5d7909756b1fdb6e37105b06e', part: "page", class: "bs-citation-preview__page" }, "Page ", this.page)))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "bs-citation-preview"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -393,7 +393,7 @@ export class BsCommandPalette {
|
|
|
393
393
|
const sections = this.shownSections().filter(s => this.filled[s]);
|
|
394
394
|
const hasList = sections.length > 0;
|
|
395
395
|
const showResults = loading || empty || hasList;
|
|
396
|
-
return (h("dialog", { key: '
|
|
396
|
+
return (h("dialog", { key: '664b76ce5f0466f35a0d75aba0f49600dfcba6ba', ref: el => (this.dialogEl = el), part: "dialog", class: "bs-command-palette", "aria-label": this.label, "aria-modal": "true", role: "dialog", onCancel: this.onCancel, onClose: () => this.open && this.setOpen(false), onClick: this.onDialogClick, onKeyDown: this.onDialogKeyDown }, h("div", { key: 'fe4e085c97b20ff85a8a2a7d1573b76cdfa102e6', part: "panel", class: "bs-command-palette__panel" }, h("div", { key: '398c5d4d9941ad6701733c170f87d4eef77a8bc9', part: "search", class: "bs-command-palette__search" }, this.scopeLabel && (h("bs-chip-informative", { key: 'bef7179a406e7870b67c7056d76d71c29e685c18', class: "bs-command-palette__scope", color: "info" }, this.scopeLabel)), h("div", { key: '64f7a2f90e696d2dfbefa73c7fcac4baeb1e3d66', class: "bs-command-palette__field", ref: el => (this.comboEl = el), role: "combobox", "aria-label": this.placeholder, "aria-expanded": String(hasList), "aria-haspopup": "listbox", "aria-controls": hasList ? listId : undefined, onKeyDown: this.onKeyDown }, h("bs-input", { key: 'dbc847385e89117d3756af9940afe3ee6af683ef', part: "input", ref: el => (this.inputEl = el), type: "search", value: this.value, placeholder: this.placeholder, onBsInput: this.onInput })), h("span", { key: '525119e7dda244394c2f54116ea27246390fe2a2', class: "bs-command-palette__esc", "aria-hidden": "true" }, h("bs-key", { key: 'c6172bc9bacb7e8001fa8b8a29c57cbea8cdc18b', label: "Esc" }))), showResults && h("div", { key: '0962bd70a0b883facafcf68180ab9f9c7bae3684', class: "bs-command-palette__divider", role: "presentation" }), showResults && (h("div", { key: '454715382ba589366df9c6b1b3964d8a79d47b2b', part: "results", class: "bs-command-palette__results", "aria-busy": String(loading), onMouseOver: this.onResultsMouseOver }, loading && (h("div", { key: '236e33c68396fa11b7701528f4de539d72f09000', class: "bs-command-palette__loading", role: "status" }, h("bs-spinner", { key: 'f028777638b9c0e3abae0011c2e572f027412efa', size: "sm" }), h("span", { key: '5656e7a12e0593de16e1c5bf7ff3d2e924f655ad' }, this.loadingLabel))), empty && this.renderEmpty(), hasList && (h("div", { key: '58033f868ecb4285748616d6cb7e3d95b5d8db68', id: listId, class: "bs-command-palette__list", role: "listbox", "aria-label": this.listLabel }, sections.map(s => this.renderSection(s)))))), this.showFooter && this.renderFooter()), h("span", { key: 'c9b46f7ce8a76f4b48776bf88f1e58242fb71ebf', class: "bs-command-palette__live", "aria-live": "polite" }, this.announcement())));
|
|
397
397
|
}
|
|
398
398
|
static get is() { return "bs-command-palette"; }
|
|
399
399
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class BsCompactMenuBlock {
|
|
|
27
27
|
name;
|
|
28
28
|
render() {
|
|
29
29
|
const common = { part: 'container', class: 'bs-compact-menu-block' };
|
|
30
|
-
return (h("button", { key: '
|
|
30
|
+
return (h("button", { key: 'e97588e286f39cdd4d61e8bee3ec91ae192242c2', ...common, type: "button" }, this.name));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "bs-compact-menu-block"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -85,6 +85,17 @@ describe('bs-company-switcher', () => {
|
|
|
85
85
|
expect(q(el, '[part="list"]')).toBeNull();
|
|
86
86
|
expect(q(el, '[part="footer"]')).not.toBeNull();
|
|
87
87
|
});
|
|
88
|
+
it('reports the search combobox as expanded only while there is a listbox to control', async () => {
|
|
89
|
+
const { el, type } = await make({ open: true });
|
|
90
|
+
const search = q(el, '[part="search"]');
|
|
91
|
+
expect(search.getAttribute('aria-expanded')).toBe('true');
|
|
92
|
+
expect(search.getAttribute('aria-controls')).toBe(q(el, '[part="list"]').id);
|
|
93
|
+
await type('zzz');
|
|
94
|
+
expect(search.getAttribute('aria-expanded')).toBe('false');
|
|
95
|
+
expect(search.hasAttribute('aria-controls')).toBe(false);
|
|
96
|
+
await type('');
|
|
97
|
+
expect(search.getAttribute('aria-expanded')).toBe('true');
|
|
98
|
+
});
|
|
88
99
|
it('navigates with arrow keys and switches with Enter', async () => {
|
|
89
100
|
const { el, press, waitForChanges } = await make({ open: true });
|
|
90
101
|
await settle();
|
|
@@ -157,15 +168,10 @@ describe('bs-company-switcher', () => {
|
|
|
157
168
|
expect(q(el, 'bs-input').placeholder).toBe('Finn selskap');
|
|
158
169
|
expect(q(el, '[part="footer"]').textContent).toContain('Administrer');
|
|
159
170
|
});
|
|
160
|
-
it('has no axe violations open
|
|
171
|
+
it('has no axe violations open', async () => {
|
|
161
172
|
const { el } = await make({ open: true });
|
|
162
|
-
// Known gap in bs-popover: its trigger wrapper <div> carries aria-expanded/haspopup without a role
|
|
163
|
-
// (bs-popover's own tests assert those attributes), so axe flags aria-allowed-attr on it.
|
|
164
173
|
const results = await axe.run(el);
|
|
165
|
-
const violations = results.violations
|
|
166
|
-
.map(v => ({ ...v, nodes: v.nodes.filter(n => !n.html.includes('bs-popover__trigger')) }))
|
|
167
|
-
.filter(v => v.nodes.length)
|
|
168
|
-
.map(v => `${v.id}: ${v.help}`);
|
|
174
|
+
const violations = results.violations.map(v => `${v.id}: ${v.help}`);
|
|
169
175
|
expect(violations).toEqual([]);
|
|
170
176
|
});
|
|
171
177
|
});
|
|
@@ -234,10 +234,10 @@ export class BsCompanySwitcher {
|
|
|
234
234
|
const empty = !!this.q && groups.length === 0;
|
|
235
235
|
const listId = `${this.id}-listbox`;
|
|
236
236
|
const total = groups.reduce((n, g) => n + g.items.length, 0);
|
|
237
|
-
return (h("bs-popover", { key: '
|
|
237
|
+
return (h("bs-popover", { key: '48e99f7fe5b6f6fbb7d70f30eb11d929e3e93ae6', class: "bs-company-switcher", open: this.open, placement: "bottom-start", onBsOpenChange: this.onPopoverOpenChange }, this.renderTrigger(), h("bs-card", { key: 'b14bd8f8c3e0666c4526b3ab7bb45be674def1ee', part: "panel", class: "bs-company-switcher__panel", surface: "base" }, h("div", { key: '0a1874d70f6702be9a159415597a58ed59cefac4', class: "bs-company-switcher__search", onMouseDown: (ev) => ev.preventDefault() }, h("div", { key: 'd1d3cd795aec21ccf0e2acb2ac05fbf51dc49a73', part: "search", role: "combobox", "aria-label": this.searchPlaceholder, "aria-expanded": groups.length ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": groups.length ? listId : undefined, "aria-activedescendant": this.activeId ?? undefined, onKeyDown: this.onKeyDown }, h("bs-input", { key: '84868f1a5641c314d5777dea0a0edc6e2d723328', ref: el => (this.inputEl = el), type: "search", value: this.query, placeholder: this.searchPlaceholder, onBsInput: this.onInput }))), groups.length > 0 && (h("div", { key: 'fe8bc69ac3f65664b33dbe2c3ee2700c96b1703b', id: listId, part: "list", class: "bs-company-switcher__list", role: "listbox", "aria-label": this.listLabel, onMouseDown: (ev) => ev.preventDefault(), onMouseLeave: () => (this.activeId = null) }, groups.map(g => {
|
|
238
238
|
const hid = `${this.id}-h-${g.key}`;
|
|
239
239
|
return (h("div", { part: "group", class: "bs-company-switcher__group", role: "group", "aria-labelledby": hid }, h("div", { part: "group-header", id: hid, class: "bs-company-switcher__group-header" }, g.header), g.items.map(c => this.renderRow(c))));
|
|
240
|
-
}))), empty && (h("bs-empty-state", { key: '
|
|
240
|
+
}))), empty && (h("bs-empty-state", { key: 'ff3af7847fa2b6355ef464b03d7e2dae9af74e15', part: "empty", class: "bs-company-switcher__empty", heading: this.emptyHeading.replace('{query}', this.query.trim()), description: this.emptyDescription }, h("svg", { key: '43ee6aed173cf88d57bbfd0e92f724d782b15963', slot: "icon", ...svgProps }, h("circle", { key: '4834a47d151c62739bfd2019a4b761b49995d422', cx: "11", cy: "11", r: "7" }), h("path", { key: 'aefafbcdd557cfaf2493558a59a380090b6edc08', d: "m20 20-3.5-3.5" })))), h("bs-divider", { key: '08a39c4e8e5dbaf731579afd4d1e611fe30c361b', class: "bs-company-switcher__divider", decorative: true }), h("div", { key: 'e76be7acc1cde67c5dd3fb59a2033ec3a4d42674', part: "footer", class: "bs-company-switcher__footer" }, h("bs-button", { key: 'a05c921783996a3762635a25f3861ed55692e7b4', variant: "subtle", size: "sm", onClick: () => this.bsManageCompanies.emit() }, h("svg", { key: 'c402e76faa03fb68d303ce0e9dd1eb21c439d66f', slot: "icon", ...svgProps }, h("circle", { key: '27a640d8953fd9541d304c53ead6089a1f433886', cx: "12", cy: "12", r: "3" }), h("path", { key: 'd791ff4ac79664dfd91da361b07e03975e697d09', d: "M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z" })), this.manageLabel), h("bs-button", { key: '125ced539bfc749c8bceaa5f3ed1c7dece3a5bde', variant: "subtle", size: "sm", onClick: () => this.bsAddCompanies.emit() }, h("svg", { key: '57af672d2154bcec2698f5885fc1db529d36e83c', slot: "icon", ...svgProps }, h("path", { key: '26ac9276c6a4af2abcb927b29e938ea4c3b93a02', d: "M12 5v14M5 12h14" })), this.addLabel)), h("span", { key: '474d0275c005bdf8c9436eaf8962ee1681c70f6c', class: "bs-company-switcher__live", "aria-live": "polite" }, this.open && this.q ? (empty ? this.emptyHeading.replace('{query}', this.query.trim()) : `${total} ${total === 1 ? this.matchLabel : this.matchesLabel}`) : ''))));
|
|
241
241
|
}
|
|
242
242
|
static get is() { return "bs-company-switcher"; }
|
|
243
243
|
static get encapsulation() { return "shadow"; }
|