@brandsync/wc 1.17.0 → 1.18.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 +11 -0
- package/REFERENCE.md +245 -0
- package/custom-elements.json +5218 -3031
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-a7fb0b59.entry.js → p-0082db6a.entry.js} +1 -1
- package/dist/brandsync-wc/p-07e0b444.entry.js +1 -0
- package/dist/brandsync-wc/{p-5c61eb06.entry.js → p-08e0e704.entry.js} +1 -1
- package/dist/brandsync-wc/{p-35f76ea7.entry.js → p-0a6f22fe.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b02bf1ca.entry.js → p-14b4f4c4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-54d91ac9.entry.js → p-15f06226.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a5659499.entry.js → p-186e3b78.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1bd99669.entry.js → p-1a47774e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-70c650b2.entry.js → p-1a62e5b7.entry.js} +1 -1
- package/dist/brandsync-wc/p-1aa0f9a3.entry.js +1 -0
- package/dist/brandsync-wc/{p-9d740928.entry.js → p-1d8c2ec1.entry.js} +1 -1
- package/dist/brandsync-wc/p-246036cd.entry.js +1 -0
- package/dist/brandsync-wc/{p-d25adab2.entry.js → p-31ca98c3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-84d6d6eb.entry.js → p-344695a8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4f4c0c68.entry.js → p-345b5ef3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e0a9f2d1.entry.js → p-34851d6d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-eb0dc5bf.entry.js → p-348fef11.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d2a15599.entry.js → p-3e6f430a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-065c7e7c.entry.js → p-43f8afda.entry.js} +1 -1
- package/dist/brandsync-wc/{p-361aef36.entry.js → p-47929dca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-67f125e8.entry.js → p-47ce984f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d5a6098d.entry.js → p-4d4997af.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d9184940.entry.js → p-4ff649f1.entry.js} +1 -1
- package/dist/brandsync-wc/p-50c116eb.entry.js +1 -0
- package/dist/brandsync-wc/{p-f3eca1ce.entry.js → p-50f60ed6.entry.js} +1 -1
- package/dist/brandsync-wc/p-52d61070.entry.js +1 -0
- package/dist/brandsync-wc/{p-43d5f708.entry.js → p-55d336da.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f43a7f16.entry.js → p-55d97d1d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b142d8c9.entry.js → p-56a45582.entry.js} +1 -1
- package/dist/brandsync-wc/{p-07673a48.entry.js → p-58179e15.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9396c67e.entry.js → p-5868793d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-90ba3032.entry.js → p-5ac75555.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f82a9f0d.entry.js → p-5cd1abc7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dfad8c0a.entry.js → p-5e36d46f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-08e96f13.entry.js → p-64f8eb7e.entry.js} +1 -1
- package/dist/brandsync-wc/p-6b019a88.entry.js +1 -0
- package/dist/brandsync-wc/{p-f98dfa85.entry.js → p-6c987bc9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b5710db6.entry.js → p-757cd066.entry.js} +1 -1
- package/dist/brandsync-wc/{p-47b7fe76.entry.js → p-78114ea3.entry.js} +1 -1
- package/dist/brandsync-wc/p-7c29678d.entry.js +1 -0
- package/dist/brandsync-wc/{p-9d12b1fb.entry.js → p-7cfb1be6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-844205d9.entry.js → p-841a80b4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5057e4fe.entry.js → p-87a10ee1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c05ee501.entry.js → p-8962abe0.entry.js} +1 -1
- package/dist/brandsync-wc/p-8e46a262.entry.js +1 -0
- package/dist/brandsync-wc/p-8f82ea7e.entry.js +1 -0
- package/dist/brandsync-wc/p-95c7f350.entry.js +1 -0
- package/dist/brandsync-wc/{p-6ea02b98.entry.js → p-9787bc0f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-be7aac52.entry.js → p-998b95d3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-11d80e17.entry.js → p-9bd739e5.entry.js} +1 -1
- package/dist/brandsync-wc/p-a424a709.entry.js +1 -0
- package/dist/brandsync-wc/{p-4eaa9ed4.entry.js → p-a51355d9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3bad5e1b.entry.js → p-a8c2855c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-61deb48c.entry.js → p-a9d0a730.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2bd30709.entry.js → p-ae207fd5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8048d033.entry.js → p-b1edc9b7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-79fc849c.entry.js → p-b759ae72.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e8ae626d.entry.js → p-b7bbc52f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-aec2dfeb.entry.js → p-bd901b06.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c835afb7.entry.js → p-be7272ce.entry.js} +1 -1
- package/dist/brandsync-wc/{p-857987f9.entry.js → p-bfff7cbb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8134f97c.entry.js → p-c020ffdf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3cb79512.entry.js → p-c02ed03d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a7fa839a.entry.js → p-cb002195.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ffc07eb5.entry.js → p-d3fe8cea.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ffccc1ee.entry.js → p-d42a26c1.entry.js} +1 -1
- package/dist/brandsync-wc/p-d985e569.entry.js +1 -0
- package/dist/brandsync-wc/{p-debc83cc.entry.js → p-e2491db8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fdc168ec.entry.js → p-e32a6df1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-57ff14ca.entry.js → p-e3e15670.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3c6ec5d0.entry.js → p-e4e9c961.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d7956c51.entry.js → p-e99c0937.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ab14a07d.entry.js → p-e9adfa44.entry.js} +1 -1
- package/dist/brandsync-wc/{p-32297416.entry.js → p-eb3bacb9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3d2c62a6.entry.js → p-ee00d3a5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3bdeeb9d.entry.js → p-ee63423c.entry.js} +1 -1
- package/dist/brandsync-wc/p-f4628861.entry.js +1 -0
- package/dist/brandsync-wc/{p-4b460eda.entry.js → p-f47b8673.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8c4dfccb.entry.js → p-f6caa623.entry.js} +1 -1
- package/dist/brandsync-wc/p-f86b58bf.entry.js +1 -0
- package/dist/brandsync-wc/{p-00be9a64.entry.js → p-fa91106e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5b933ff4.entry.js → p-fb84002e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b4511ad3.entry.js → p-fbc219c6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0bbaef51.entry.js → p-fd78ff22.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.js +1 -1
- package/dist/cjs/bs-accordion-group.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 +133 -0
- package/dist/cjs/bs-app-shell.cjs.entry.js +1 -1
- package/dist/cjs/bs-app-switcher.cjs.entry.js +208 -0
- package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
- package/dist/cjs/bs-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb.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.cjs.entry.js +1 -1
- package/dist/cjs/bs-card.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-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-checkbox.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 +46 -0
- package/dist/cjs/bs-company-switcher.cjs.entry.js +211 -0
- 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-divider.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-icon-button.cjs.entry.js +8 -1
- package/dist/cjs/bs-icon-tile.cjs.entry.js +10 -2
- package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/bs-input_3.cjs.entry.js +4 -4
- 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-list-item_2.cjs.entry.js +215 -0
- package/dist/cjs/bs-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-mega-menu.cjs.entry.js +70 -0
- 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 +5 -2
- package/dist/cjs/bs-page-header.cjs.entry.js +66 -0
- package/dist/cjs/bs-pagination.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.cjs.entry.js +1 -1
- package/dist/cjs/bs-search-item.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-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 +2 -2
- package/dist/cjs/bs-spinner.cjs.entry.js +1 -1
- 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-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-timepicker.cjs.entry.js +2 -2
- package/dist/cjs/bs-toast.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/collection-manifest.json +8 -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.cmp.test.js +52 -0
- package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.css +111 -0
- package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.js +184 -0
- package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.stories.js +28 -0
- package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
- package/dist/collection/components/bs-app-switcher/bs-app-switcher.cmp.test.js +179 -0
- package/dist/collection/components/bs-app-switcher/bs-app-switcher.css +173 -0
- package/dist/collection/components/bs-app-switcher/bs-app-switcher.js +902 -0
- package/dist/collection/components/bs-app-switcher/bs-app-switcher.stories.js +91 -0
- package/dist/collection/components/bs-app-tile/bs-app-tile.cmp.test.js +58 -0
- package/dist/collection/components/bs-app-tile/bs-app-tile.css +104 -0
- package/dist/collection/components/bs-app-tile/bs-app-tile.js +190 -0
- package/dist/collection/components/bs-app-tile/bs-app-tile.stories.js +43 -0
- package/dist/collection/components/bs-attachment/bs-attachment.js +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-avatar/bs-avatar.css +3 -3
- package/dist/collection/components/bs-badge/bs-badge.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.js +1 -1
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.cmp.test.js +13 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +27 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.js +1 -1
- package/dist/collection/components/bs-carousel/bs-carousel.js +1 -1
- 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/bs-checkbox.js +1 -1
- 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.cmp.test.js +32 -0
- package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.css +43 -0
- package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.js +67 -0
- package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.stories.js +25 -0
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.cmp.test.js +171 -0
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.css +196 -0
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.js +720 -0
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.stories.js +78 -0
- package/dist/collection/components/bs-composer/bs-composer.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-divider/bs-divider.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-icon-tile/bs-icon-tile.js +11 -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-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.cmp.test.js +131 -0
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.css +139 -0
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.js +358 -0
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.stories.js +188 -0
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-block/bs-menu-block.cmp.test.js +44 -0
- package/dist/collection/components/bs-menu-block/bs-menu-block.css +106 -0
- package/dist/collection/components/bs-menu-block/bs-menu-block.js +147 -0
- package/dist/collection/components/bs-menu-block/bs-menu-block.stories.js +36 -0
- 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.cmp.test.js +206 -0
- package/dist/collection/components/bs-page-header/bs-page-header.css +252 -0
- package/dist/collection/components/bs-page-header/bs-page-header.js +351 -0
- package/dist/collection/components/bs-page-header/bs-page-header.stories.js +177 -0
- 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-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-search-item/bs-search-item.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-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 +2 -2
- 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-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-tabs/bs-tabs.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-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.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.cmp.test.js +79 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.css +46 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +10 -1
- package/dist/components/bs-accordion-group.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.d.ts +11 -0
- package/dist/components/bs-app-recent-item.js +1 -0
- package/dist/components/bs-app-shell.js +1 -1
- package/dist/components/bs-app-switcher.d.ts +11 -0
- package/dist/components/bs-app-switcher.js +1 -0
- package/dist/components/bs-app-tile.d.ts +11 -0
- package/dist/components/bs-app-tile.js +1 -0
- 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-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-command-palette.js +1 -1
- package/dist/components/bs-compact-menu-block.d.ts +11 -0
- package/dist/components/bs-compact-menu-block.js +1 -0
- package/dist/components/bs-company-switcher.d.ts +11 -0
- package/dist/components/bs-company-switcher.js +1 -0
- 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-dialog.js +1 -1
- package/dist/components/bs-divider.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-icon-button.js +1 -1
- package/dist/components/bs-icon-tile.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-list-item.js +1 -1
- package/dist/components/bs-list.js +1 -1
- package/dist/components/bs-mega-menu.d.ts +11 -0
- package/dist/components/bs-mega-menu.js +1 -0
- package/dist/components/bs-menu-block.d.ts +11 -0
- package/dist/components/bs-menu-block.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/bs-page-header.js +1 -0
- package/dist/components/bs-pagination.js +1 -1
- package/dist/components/bs-popover.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.js +1 -1
- package/dist/components/bs-search-item.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-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-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-tabs.js +1 -1
- package/dist/components/bs-timepicker.js +1 -1
- package/dist/components/bs-toast.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-B6KgEbdM.js +1 -0
- package/dist/components/{p-DYDk73TF.js → p-B8kw9EOx.js} +1 -1
- package/dist/components/p-BLPNwyiT.js +1 -0
- package/dist/components/{p-D8bvv9QQ.js → p-BP1l6Q3Z.js} +1 -1
- package/dist/components/p-BS7ySxJZ.js +1 -0
- package/dist/components/{p-DYuzgzxI.js → p-BmdSbmFg.js} +1 -1
- package/dist/components/{p-CRtvJlh8.js → p-C1owRphU.js} +1 -1
- package/dist/components/{p-TAY9S9yG.js → p-C2rRVRIu.js} +1 -1
- package/dist/components/p-C3erqJFy.js +1 -0
- package/dist/components/{p-BcYNrEOB.js → p-Cd7p-48Q.js} +1 -1
- package/dist/components/{p-DtYTs9Kh.js → p-CmlzHRkn.js} +1 -1
- package/dist/components/{p-Bp3DIxjT.js → p-Co36mHEU.js} +1 -1
- package/dist/components/p-D4_8H0vn.js +1 -0
- package/dist/components/{p-DMLfXpva.js → p-D9dDFyPB.js} +1 -1
- package/dist/components/{p-DvNED6Lb.js → p-DBvhi__l.js} +1 -1
- package/dist/components/{p-CRM1wIX9.js → p-DFd4pP4i.js} +1 -1
- package/dist/components/{p-BUpnOUIM.js → p-DVjuZdjF.js} +1 -1
- package/dist/components/{p-D7AXo5NT.js → p-DW0Dw2LS.js} +1 -1
- package/dist/components/p-DcdFuKG9.js +1 -0
- package/dist/components/{p-CH5atin4.js → p-Deq0LzGO.js} +1 -1
- package/dist/components/p-DgY5pxXd.js +1 -0
- package/dist/components/{p-w-DkdA4O.js → p-DhhXayh6.js} +1 -1
- package/dist/components/p-DiORQQg3.js +1 -0
- package/dist/components/{p-Dt4JNhHT.js → p-Dl0FedE5.js} +1 -1
- package/dist/components/p-DsBToIYE.js +1 -0
- package/dist/components/{p-DG9eT5yi.js → p-DtbeCgXo.js} +1 -1
- package/dist/components/{p-DcjgRtSQ.js → p-DzvXbBvk.js} +1 -1
- package/dist/components/{p-CervX0wH.js → p-I1_Q3HQu.js} +1 -1
- package/dist/components/{p-Cpe2k7ZC.js → p-TXAiCnSZ.js} +1 -1
- package/dist/components/p-c-g3-oVu.js +1 -0
- package/dist/components/p-erdtytMq.js +1 -0
- package/dist/components/{p-BDnZvjlq.js → p-qXdgl7VG.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-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 +129 -0
- package/dist/esm/bs-app-shell.entry.js +1 -1
- package/dist/esm/bs-app-switcher.entry.js +206 -0
- package/dist/esm/bs-attachment-list.entry.js +1 -1
- package/dist/esm/bs-attachment.entry.js +1 -1
- package/dist/esm/bs-avatar.entry.js +1 -1
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
- package/dist/esm/bs-breadcrumb.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.entry.js +1 -1
- package/dist/esm/bs-card.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-skeleton.entry.js +1 -1
- package/dist/esm/bs-checkbox.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 +43 -0
- package/dist/esm/bs-company-switcher.entry.js +209 -0
- 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-divider.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-icon-button.entry.js +8 -1
- package/dist/esm/bs-icon-tile.entry.js +11 -3
- package/dist/esm/bs-inline-tab.entry.js +1 -1
- package/dist/esm/bs-input_3.entry.js +4 -4
- 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-list-item_2.entry.js +212 -0
- package/dist/esm/bs-list.entry.js +1 -1
- package/dist/esm/bs-mega-menu.entry.js +68 -0
- 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 +5 -2
- package/dist/esm/bs-page-header.entry.js +64 -0
- package/dist/esm/bs-pagination.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.entry.js +1 -1
- package/dist/esm/bs-search-item.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-slider.entry.js +1 -1
- package/dist/esm/bs-snackbar.entry.js +1 -1
- package/dist/esm/bs-source-link.entry.js +2 -2
- package/dist/esm/bs-spinner.entry.js +1 -1
- package/dist/esm/bs-split-pane.entry.js +1 -1
- package/dist/esm/bs-stack.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-timepicker.entry.js +2 -2
- package/dist/esm/bs-toast.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-app-recent-item/bs-app-recent-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-app-recent-item/bs-app-recent-item.d.ts +51 -0
- package/dist/types/components/bs-app-recent-item/bs-app-recent-item.stories.d.ts +15 -0
- package/dist/types/components/bs-app-switcher/bs-app-switcher.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-app-switcher/bs-app-switcher.d.ts +159 -0
- package/dist/types/components/bs-app-switcher/bs-app-switcher.stories.d.ts +34 -0
- package/dist/types/components/bs-app-tile/bs-app-tile.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-app-tile/bs-app-tile.d.ts +51 -0
- package/dist/types/components/bs-app-tile/bs-app-tile.stories.d.ts +18 -0
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.d.ts +7 -0
- package/dist/types/components/bs-compact-menu-block/bs-compact-menu-block.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-compact-menu-block/bs-compact-menu-block.d.ts +28 -0
- package/dist/types/components/bs-compact-menu-block/bs-compact-menu-block.stories.d.ts +10 -0
- package/dist/types/components/bs-company-switcher/bs-company-switcher.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-company-switcher/bs-company-switcher.d.ts +130 -0
- package/dist/types/components/bs-company-switcher/bs-company-switcher.stories.d.ts +25 -0
- package/dist/types/components/bs-icon-tile/bs-icon-tile.d.ts +5 -0
- package/dist/types/components/bs-mega-menu/bs-mega-menu.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-mega-menu/bs-mega-menu.d.ts +110 -0
- package/dist/types/components/bs-mega-menu/bs-mega-menu.stories.d.ts +55 -0
- package/dist/types/components/bs-menu-block/bs-menu-block.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-menu-block/bs-menu-block.d.ts +47 -0
- package/dist/types/components/bs-menu-block/bs-menu-block.stories.d.ts +15 -0
- package/dist/types/components/bs-page-header/bs-page-header.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-page-header/bs-page-header.d.ts +100 -0
- package/dist/types/components/bs-page-header/bs-page-header.stories.d.ts +41 -0
- package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.d.ts +7 -1
- package/dist/types/components.d.ts +2047 -24
- package/dist/types/svg-inline.d.ts +5 -0
- package/package.json +2 -1
- package/reference.d.ts +26 -2
- package/reference.json +947 -56
- package/dist/brandsync-wc/p-044ac86c.entry.js +0 -1
- package/dist/brandsync-wc/p-225148be.entry.js +0 -1
- package/dist/brandsync-wc/p-3789c7a5.entry.js +0 -1
- package/dist/brandsync-wc/p-3d7b0708.entry.js +0 -1
- package/dist/brandsync-wc/p-5eb5795f.entry.js +0 -1
- package/dist/brandsync-wc/p-7ed071fb.entry.js +0 -1
- package/dist/brandsync-wc/p-baa39c08.entry.js +0 -1
- package/dist/brandsync-wc/p-dcbeb143.entry.js +0 -1
- package/dist/brandsync-wc/p-e123b391.entry.js +0 -1
- package/dist/brandsync-wc/p-e8e22238.entry.js +0 -1
- package/dist/cjs/bs-list-item.cjs.entry.js +0 -66
- package/dist/cjs/bs-popover.cjs.entry.js +0 -153
- package/dist/cjs/bs-skeleton.cjs.entry.js +0 -51
- package/dist/components/p-B32Kl4IB.js +0 -1
- package/dist/components/p-BcbaiZLh.js +0 -1
- package/dist/components/p-CYzBTzzf.js +0 -1
- package/dist/components/p-ChcaPfNL.js +0 -1
- package/dist/esm/bs-list-item.entry.js +0 -64
- package/dist/esm/bs-popover.entry.js +0 -151
- package/dist/esm/bs-skeleton.entry.js +0 -49
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { componentDescription } from "../../stories-utils";
|
|
3
|
+
import { ICONS } from "../bs-app-switcher/bs-app-switcher.stories";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/bs-app-recent-item',
|
|
6
|
+
parameters: { layout: 'padded', docs: { description: { component: componentDescription('bs-app-recent-item') } } },
|
|
7
|
+
argTypes: { name: { control: 'text' }, description: { control: 'text' }, current: { control: 'boolean' }, disabled: { control: 'boolean' } },
|
|
8
|
+
args: { name: 'Accounting', description: 'Opened 10 min ago · Nordlys Handel AS', current: false, disabled: false },
|
|
9
|
+
render: args => html `
|
|
10
|
+
<div style="width: 328px">
|
|
11
|
+
<bs-app-recent-item .icon=${ICONS.accounting} name=${args.name} description=${args.description} ?current=${args.current} ?disabled=${args.disabled}></bs-app-recent-item>
|
|
12
|
+
</div>
|
|
13
|
+
`,
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const Default = {};
|
|
17
|
+
/** Default, Current and Disabled. Hover, pressed and focus come from the native element: point, press or Tab to see them. */
|
|
18
|
+
export const States = {
|
|
19
|
+
render: () => html `
|
|
20
|
+
<div style="display:flex;flex-direction:column;gap:8px;width:328px">
|
|
21
|
+
<bs-app-recent-item .icon=${ICONS.accounting} name="Default" description="Opened 10 min ago · Nordlys Handel AS"></bs-app-recent-item>
|
|
22
|
+
<bs-app-recent-item .icon=${ICONS.accounting} name="Current" description="Opened 10 min ago · Nordlys Handel AS" current></bs-app-recent-item>
|
|
23
|
+
<bs-app-recent-item .icon=${ICONS.accounting} name="Disabled" description="Opened 10 min ago · Nordlys Handel AS" disabled></bs-app-recent-item>
|
|
24
|
+
</div>
|
|
25
|
+
`,
|
|
26
|
+
};
|
|
27
|
+
export const Current = { args: { current: true } };
|
|
28
|
+
export const Disabled = { args: { disabled: true } };
|
|
@@ -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: 'e81aecf9ac19aff77ce4f6024bb48d051a9240a7', class: "bs-app-shell", part: "container" }, h("div", { key: '3bd113852f0db029d2515d9fe88292746e85764f', class: "bs-app-shell__header", part: "header" }, h("slot", { key: 'a538e654c63deb0bc3ad6075fc85ecde683e7587', name: "header" })), h("div", { key: '3b36be978c2db51d44fa807799e96aadc082fb77', class: "bs-app-shell__navigation", part: "navigation" }, h("slot", { key: 'eb74b091c1810fd6f981b3d1b553a17f01d9d3fc', name: "navigation" })), h("main", { key: 'f822e4277e77ec40d66e9ae49cf4bbf812c49ff3', class: "bs-app-shell__main", part: "main" }, h("slot", { key: '5fc343fcbfb1ed1e058ce27ca7be2d518b911927' })), h("div", { key: 'cee504b33b4cb5b4c38d3c4e61da8f31277fb865', class: "bs-app-shell__aside", part: "aside" }, h("slot", { key: '1c7cb896f2b9ef2b7aeccc5ed0b14c9c1317218c', name: "aside" }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "bs-app-shell"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
import axe from "axe-core";
|
|
3
|
+
import { assertShadowParts, assertCssCustomProperties } from "../../test/helpers/conventions";
|
|
4
|
+
import { APPS, RECENT } from "./bs-app-switcher.stories";
|
|
5
|
+
const q = (el, s) => el.shadowRoot.querySelector(s);
|
|
6
|
+
const qa = (el, s) => Array.from(el.shadowRoot.querySelectorAll(s));
|
|
7
|
+
const settle = (ms = 60) => new Promise(r => setTimeout(r, ms));
|
|
8
|
+
const make = async (props = {}) => {
|
|
9
|
+
const r = await render(h("div", { style: { width: '420px' } }, h("bs-app-switcher", null)));
|
|
10
|
+
const el = r.root.querySelector('bs-app-switcher');
|
|
11
|
+
Object.assign(el, { apps: APPS, ...props });
|
|
12
|
+
await r.waitForChanges();
|
|
13
|
+
await settle();
|
|
14
|
+
const type = async (query) => {
|
|
15
|
+
q(el, 'bs-input').dispatchEvent(new CustomEvent('bsInput', { detail: query }));
|
|
16
|
+
await r.waitForChanges();
|
|
17
|
+
};
|
|
18
|
+
return { ...r, el, type };
|
|
19
|
+
};
|
|
20
|
+
const headers = (el) => qa(el, '[part="group-header"]').map(h => h.textContent);
|
|
21
|
+
const events = (el, ...names) => {
|
|
22
|
+
const got = [];
|
|
23
|
+
for (const n of names)
|
|
24
|
+
el.addEventListener(n, e => got.push([n, e.detail]));
|
|
25
|
+
return got;
|
|
26
|
+
};
|
|
27
|
+
describe('bs-app-switcher', () => {
|
|
28
|
+
it('renders a 360px panel with heading, Manage, search, a 3-column grid and the footer link', async () => {
|
|
29
|
+
const { el } = await make();
|
|
30
|
+
expect(Math.round(q(el, '[part="panel"]').getBoundingClientRect().width)).toBe(360);
|
|
31
|
+
expect(q(el, '[part="heading"]').textContent).toBe('EG apps');
|
|
32
|
+
expect(q(el, '[part="manage"]').textContent).toBe('Manage');
|
|
33
|
+
expect(headers(el)).toEqual(['Your apps']);
|
|
34
|
+
expect(qa(el, '[part="tile"]').length).toBe(9);
|
|
35
|
+
const tops = new Set(qa(el, '[part="tile"]').slice(0, 3).map(t => Math.round(t.getBoundingClientRect().top)));
|
|
36
|
+
expect(tops.size).toBe(1);
|
|
37
|
+
expect(Math.round(qa(el, '[part="tile"]')[0].getBoundingClientRect().height)).toBe(100);
|
|
38
|
+
expect(q(el, '[part="browse"]').textContent).toContain('Browse all EG products');
|
|
39
|
+
assertShadowParts(el.shadowRoot, ['panel', 'header', 'heading', 'manage', 'search', 'group', 'group-header', 'grid', 'tile', 'footer', 'browse']);
|
|
40
|
+
assertCssCustomProperties(el, ['--bs-app-switcher-width', '--bs-app-switcher-radius', '--bs-app-switcher-shadow']);
|
|
41
|
+
});
|
|
42
|
+
it('shows Recent rows and All apps compact tiles when there are recent apps, and marks the current app', async () => {
|
|
43
|
+
const { el } = await make({ recent: RECENT, currentId: 'accounting' });
|
|
44
|
+
expect(headers(el)).toEqual(['Recent', 'All apps']);
|
|
45
|
+
const rows = qa(el, '[part="row"]');
|
|
46
|
+
expect(rows.length).toBe(3);
|
|
47
|
+
expect(rows[0].description).toBe('Opened 10 min ago · Nordlys Handel AS');
|
|
48
|
+
expect(Math.round(rows[0].getBoundingClientRect().height)).toBe(52);
|
|
49
|
+
const tiles = qa(el, '[part="tile"]');
|
|
50
|
+
expect(tiles.length).toBe(9);
|
|
51
|
+
expect(tiles[0].size).toBe('compact');
|
|
52
|
+
expect(tiles[0].current).toBe(true);
|
|
53
|
+
expect(tiles[1].current).toBe(false);
|
|
54
|
+
});
|
|
55
|
+
it('filters by name or description with a result count, and announces it', async () => {
|
|
56
|
+
const { el, type } = await make({ recent: RECENT });
|
|
57
|
+
await type('pay');
|
|
58
|
+
expect(headers(el)).toEqual(['2 results']);
|
|
59
|
+
expect(qa(el, '[part="row"]').map(r => r.name)).toEqual(['Payroll', 'Bank']);
|
|
60
|
+
expect(qa(el, '[part="row"]')[0].description).toBe('Salaries, payslips and holiday pay');
|
|
61
|
+
expect(el.query).toBe('pay');
|
|
62
|
+
expect(q(el, '[role="status"]').textContent).toBe('2 results');
|
|
63
|
+
await type('stock');
|
|
64
|
+
expect(headers(el)).toEqual(['1 result']);
|
|
65
|
+
});
|
|
66
|
+
it('shows the no-results state with the query, and Clear search restores the groups', async () => {
|
|
67
|
+
const { el, type, waitForChanges } = await make();
|
|
68
|
+
const got = events(el, 'bsClearSearch', 'bsQueryChange');
|
|
69
|
+
await type('lønn');
|
|
70
|
+
const empty = q(el, '[part="empty"]');
|
|
71
|
+
expect(empty.heading).toBe('No apps match “lønn”');
|
|
72
|
+
expect(q(el, '[role="status"]').textContent).toBe('No apps match “lønn”');
|
|
73
|
+
empty.querySelector('bs-button').click();
|
|
74
|
+
await waitForChanges();
|
|
75
|
+
expect(el.query).toBe('');
|
|
76
|
+
expect(got.map(g => g[0])).toEqual(['bsQueryChange', 'bsQueryChange', 'bsClearSearch']);
|
|
77
|
+
expect(headers(el)).toEqual(['Your apps']);
|
|
78
|
+
});
|
|
79
|
+
it('Escape clears the search and stops the event; with an empty field it is left alone', async () => {
|
|
80
|
+
const { el, type, waitForChanges } = await make();
|
|
81
|
+
let escapes = 0;
|
|
82
|
+
el.parentElement.addEventListener('keydown', e => e.key === 'Escape' && escapes++);
|
|
83
|
+
await type('pay');
|
|
84
|
+
q(el, 'bs-input').dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true, composed: true, cancelable: true }));
|
|
85
|
+
await waitForChanges();
|
|
86
|
+
expect(el.query).toBe('');
|
|
87
|
+
expect(escapes).toBe(0);
|
|
88
|
+
q(el, 'bs-input').dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true, composed: true, cancelable: true }));
|
|
89
|
+
expect(escapes).toBe(1);
|
|
90
|
+
});
|
|
91
|
+
it('loading shows aria-busy skeleton tiles, announces the label, and hides the search', async () => {
|
|
92
|
+
const { el } = await make({ status: 'loading' });
|
|
93
|
+
expect(q(el, '[aria-busy="true"]')).not.toBeNull();
|
|
94
|
+
expect(qa(el, 'bs-skeleton').length).toBeGreaterThanOrEqual(18);
|
|
95
|
+
expect(q(el, 'bs-input')).toBeNull();
|
|
96
|
+
expect(q(el, '[role="status"]').textContent).toBe('Loading apps…');
|
|
97
|
+
});
|
|
98
|
+
it('error shows an alert with Try again, which fires bsRetry', async () => {
|
|
99
|
+
const { el } = await make({ status: 'error' });
|
|
100
|
+
const got = events(el, 'bsRetry');
|
|
101
|
+
expect(q(el, '[role="alert"]')).not.toBeNull();
|
|
102
|
+
const empty = q(el, '[part="empty"]');
|
|
103
|
+
expect(empty.heading).toBe('Couldn’t load your apps');
|
|
104
|
+
expect(empty.intent).toBe('error');
|
|
105
|
+
empty.querySelector('bs-button').click();
|
|
106
|
+
expect(got.length).toBe(1);
|
|
107
|
+
});
|
|
108
|
+
it('empty (no apps) shows Request access, which fires bsRequestAccess', async () => {
|
|
109
|
+
const { el } = await make({ apps: [] });
|
|
110
|
+
const got = events(el, 'bsRequestAccess');
|
|
111
|
+
expect(q(el, '[part="empty"]').heading).toBe('No apps assigned yet');
|
|
112
|
+
expect(q(el, 'bs-input')).toBeNull();
|
|
113
|
+
q(el, '[part="empty"] bs-button').click();
|
|
114
|
+
expect(got.length).toBe(1);
|
|
115
|
+
});
|
|
116
|
+
it('fires bsAppSelect (cancelable) and bsManage / bsBrowseAll', async () => {
|
|
117
|
+
const { el } = await make({ apps: APPS, currentId: 'bank' });
|
|
118
|
+
const got = events(el, 'bsAppSelect', 'bsManage', 'bsBrowseAll');
|
|
119
|
+
qa(el, '[part="tile"]')[2].click();
|
|
120
|
+
q(el, '[part="manage"]').click();
|
|
121
|
+
q(el, '[part="browse"]').click();
|
|
122
|
+
expect(got.map(g => g[0])).toEqual(['bsAppSelect', 'bsManage', 'bsBrowseAll']);
|
|
123
|
+
expect(got[0][1].id).toBe('payroll');
|
|
124
|
+
});
|
|
125
|
+
it('does not fire bsAppSelect for a disabled app, and preventDefault cancels the click', async () => {
|
|
126
|
+
const { el, waitForChanges } = await make({ apps: [{ ...APPS[0], disabled: true }, APPS[1]] });
|
|
127
|
+
const got = events(el, 'bsAppSelect');
|
|
128
|
+
qa(el, '[part="tile"]')[0].click();
|
|
129
|
+
expect(got.length).toBe(0);
|
|
130
|
+
el.addEventListener('bsAppSelect', e => e.preventDefault());
|
|
131
|
+
const btn = qa(el, '[part="tile"]')[1].shadowRoot.querySelector('button');
|
|
132
|
+
// dispatchEvent returns false when a listener called preventDefault.
|
|
133
|
+
const notPrevented = btn.dispatchEvent(new MouseEvent('click', { bubbles: true, composed: true, cancelable: true }));
|
|
134
|
+
await waitForChanges();
|
|
135
|
+
expect(notPrevented).toBe(false);
|
|
136
|
+
});
|
|
137
|
+
it('names the panel by its heading and each group by its header', async () => {
|
|
138
|
+
const { el } = await make({ recent: RECENT });
|
|
139
|
+
const panel = q(el, '[part="panel"]');
|
|
140
|
+
expect(panel.getAttribute('role')).toBe('region');
|
|
141
|
+
expect(el.shadowRoot.getElementById(panel.getAttribute('aria-labelledby'))?.textContent).toBe('EG apps');
|
|
142
|
+
for (const g of qa(el, '[part="group"]')) {
|
|
143
|
+
expect(el.shadowRoot.getElementById(g.getAttribute('aria-labelledby'))).not.toBeNull();
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
it('renders Manage and Browse as links when given URLs', async () => {
|
|
147
|
+
const { el } = await make({ manageHref: '#m', browseHref: '#b' });
|
|
148
|
+
expect(q(el, '[part="manage"]').tagName).toBe('A');
|
|
149
|
+
expect(q(el, '[part="browse"]').getAttribute('href')).toBe('#b');
|
|
150
|
+
});
|
|
151
|
+
it('translates every string through its label prop', async () => {
|
|
152
|
+
const { el } = await make({ heading: 'EG apper', manageLabel: 'Administrer', yourAppsLabel: 'Dine apper', browseLabel: 'Se alle' });
|
|
153
|
+
expect(q(el, '[part="heading"]').textContent).toBe('EG apper');
|
|
154
|
+
expect(q(el, '[part="manage"]').textContent).toBe('Administrer');
|
|
155
|
+
expect(headers(el)).toEqual(['Dine apper']);
|
|
156
|
+
expect(q(el, '[part="browse"]').textContent).toContain('Se alle');
|
|
157
|
+
});
|
|
158
|
+
it('has no axe violations in any state', async () => {
|
|
159
|
+
const states = {
|
|
160
|
+
default: {},
|
|
161
|
+
links: { manageHref: '#m', browseHref: '#b' },
|
|
162
|
+
recent: { recent: RECENT, currentId: 'accounting' },
|
|
163
|
+
disabled: { apps: [{ ...APPS[0], disabled: true }, ...APPS.slice(1)] },
|
|
164
|
+
loading: { status: 'loading' },
|
|
165
|
+
error: { status: 'error' },
|
|
166
|
+
empty: { apps: [] },
|
|
167
|
+
};
|
|
168
|
+
for (const [name, props] of Object.entries(states)) {
|
|
169
|
+
const { el } = await make(props);
|
|
170
|
+
const results = await axe.run(el);
|
|
171
|
+
expect(results.violations.map(v => `${name} ${v.id}: ${v.help}`)).toEqual([]);
|
|
172
|
+
}
|
|
173
|
+
const { el, type } = await make();
|
|
174
|
+
await type('pay');
|
|
175
|
+
expect((await axe.run(el)).violations.map(v => `searching ${v.id}: ${v.help}`)).toEqual([]);
|
|
176
|
+
await type('lønn');
|
|
177
|
+
expect((await axe.run(el)).violations.map(v => `no-results ${v.id}: ${v.help}`)).toEqual([]);
|
|
178
|
+
});
|
|
179
|
+
});
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: var(--bs-app-switcher-width);
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
--bs-app-switcher-width: 360px;
|
|
7
|
+
--bs-app-switcher-radius: var(--bs-border-radius-150);
|
|
8
|
+
--bs-app-switcher-bg: var(--bs-surface-base);
|
|
9
|
+
--bs-app-switcher-border-color: var(--bs-border-default);
|
|
10
|
+
--bs-app-switcher-shadow: var(--bs-shadow-position-0) var(--bs-shadow-position-100) var(--bs-shadow-blur-200) var(--bs-elevation-higher);
|
|
11
|
+
--bs-app-switcher-padding: var(--bs-spacing-150);
|
|
12
|
+
--bs-app-switcher-text-color: var(--bs-text-default);
|
|
13
|
+
--bs-app-switcher-header-color: var(--bs-text-secondary);
|
|
14
|
+
--bs-app-switcher-link-color: var(--bs-text-action);
|
|
15
|
+
--bs-app-switcher-focus-ring: var(--bs-border-neutral-focus);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.bs-app-switcher {
|
|
19
|
+
display: block;
|
|
20
|
+
position: relative;
|
|
21
|
+
--bs-card-bg: var(--bs-app-switcher-bg);
|
|
22
|
+
--bs-card-radius: var(--bs-app-switcher-radius);
|
|
23
|
+
--bs-card-padding: 0px;
|
|
24
|
+
--bs-card-border-width: 1px;
|
|
25
|
+
--bs-card-border-color: var(--bs-app-switcher-border-color);
|
|
26
|
+
--bs-card-shadow: var(--bs-app-switcher-shadow);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.bs-app-switcher__header,
|
|
30
|
+
.bs-app-switcher__footer {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
padding: var(--bs-spacing-150) var(--bs-spacing-200);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.bs-app-switcher__heading {
|
|
38
|
+
margin: 0;
|
|
39
|
+
color: var(--bs-app-switcher-text-color);
|
|
40
|
+
font-family: var(--bs-typography-font-family-heading, Roboto), sans-serif;
|
|
41
|
+
font-size: var(--bs-fontsize-heading-h6);
|
|
42
|
+
font-weight: var(--bs-font-weight-bold);
|
|
43
|
+
line-height: calc(var(--bs-line-height-heading-h6) * 1px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bs-app-switcher__manage,
|
|
47
|
+
.bs-app-switcher__browse {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: var(--bs-spacing-50);
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
border: 0;
|
|
54
|
+
border-radius: var(--bs-border-radius-50);
|
|
55
|
+
background: none;
|
|
56
|
+
font-family: var(--bs-typography-font-family-body, Roboto), sans-serif;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.bs-app-switcher__manage {
|
|
61
|
+
color: var(--bs-app-switcher-text-color);
|
|
62
|
+
font-size: var(--bs-fontsize-body-sm);
|
|
63
|
+
font-weight: var(--bs-font-weight-medium);
|
|
64
|
+
line-height: calc(var(--bs-line-height-body-sm) * 1px);
|
|
65
|
+
text-decoration: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.bs-app-switcher__browse {
|
|
69
|
+
color: var(--bs-app-switcher-link-color);
|
|
70
|
+
font-size: var(--bs-fontsize-caption-sm);
|
|
71
|
+
line-height: calc(var(--bs-line-height-caption-sm) * 1px);
|
|
72
|
+
text-decoration: underline;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.bs-app-switcher__manage:hover,
|
|
76
|
+
.bs-app-switcher__browse:hover {
|
|
77
|
+
color: var(--bs-text-action-hover);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.bs-app-switcher__manage:focus-visible,
|
|
81
|
+
.bs-app-switcher__browse:focus-visible {
|
|
82
|
+
outline: var(--bs-spacing-25) solid var(--bs-app-switcher-focus-ring);
|
|
83
|
+
outline-offset: var(--bs-spacing-25);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.bs-app-switcher__external {
|
|
87
|
+
width: var(--bs-spacing-150);
|
|
88
|
+
height: var(--bs-spacing-150);
|
|
89
|
+
flex: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.bs-app-switcher__search {
|
|
93
|
+
padding: var(--bs-spacing-150) var(--bs-app-switcher-padding) var(--bs-spacing-50);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.bs-app-switcher__search bs-input {
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.bs-app-switcher__body {
|
|
101
|
+
padding: var(--bs-spacing-50) var(--bs-app-switcher-padding) var(--bs-spacing-150);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.bs-app-switcher__group-header {
|
|
105
|
+
padding: var(--bs-spacing-100) var(--bs-spacing-100) var(--bs-spacing-50);
|
|
106
|
+
color: var(--bs-app-switcher-header-color);
|
|
107
|
+
font-family: var(--bs-typography-font-family-body, Roboto), sans-serif;
|
|
108
|
+
font-size: var(--bs-fontsize-caption-sm);
|
|
109
|
+
font-weight: var(--bs-font-weight-semibold);
|
|
110
|
+
line-height: calc(var(--bs-line-height-caption-sm) * 1px);
|
|
111
|
+
letter-spacing: var(--bs-letter-spacing-wide);
|
|
112
|
+
text-transform: uppercase;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.bs-app-switcher__grid,
|
|
116
|
+
.bs-app-switcher__list {
|
|
117
|
+
display: grid;
|
|
118
|
+
margin: 0;
|
|
119
|
+
padding: 0;
|
|
120
|
+
list-style: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.bs-app-switcher__grid--grid {
|
|
124
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
125
|
+
gap: var(--bs-spacing-150);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.bs-app-switcher__grid--compact {
|
|
129
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
130
|
+
gap: var(--bs-spacing-100);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.bs-app-switcher__section-divider {
|
|
134
|
+
display: block;
|
|
135
|
+
width: calc(100% + var(--bs-app-switcher-padding) * 2);
|
|
136
|
+
margin: 0 calc(var(--bs-app-switcher-padding) * -1);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.bs-app-switcher__empty {
|
|
140
|
+
--bs-empty-state-padding-y: var(--bs-spacing-300);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.bs-app-switcher__skeleton-header {
|
|
144
|
+
--bs-skeleton-width: var(--bs-sizing-1000);
|
|
145
|
+
display: block;
|
|
146
|
+
padding: var(--bs-spacing-100);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.bs-app-switcher__skeleton-tile {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
align-items: center;
|
|
153
|
+
gap: var(--bs-spacing-150);
|
|
154
|
+
padding: var(--bs-spacing-150);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.bs-app-switcher__skeleton-icon {
|
|
158
|
+
--bs-skeleton-width: calc(var(--bs-sizing-500) + var(--bs-spacing-50));
|
|
159
|
+
--bs-skeleton-rect-height: calc(var(--bs-sizing-500) + var(--bs-spacing-50));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.bs-app-switcher__skeleton-label {
|
|
163
|
+
--bs-skeleton-width: var(--bs-sizing-800);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.bs-app-switcher__live {
|
|
167
|
+
position: absolute;
|
|
168
|
+
width: 1px;
|
|
169
|
+
height: 1px;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
clip-path: inset(50%);
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
}
|