@brandsync/wc 1.15.0 → 1.17.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 +16 -0
- package/REFERENCE.md +313 -0
- package/custom-elements.json +4760 -1555
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/p-044ac86c.entry.js +1 -0
- package/dist/brandsync-wc/p-065c7e7c.entry.js +1 -0
- package/dist/brandsync-wc/p-07673a48.entry.js +1 -0
- package/dist/brandsync-wc/{p-54f9529f.entry.js → p-08e96f13.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f3cc961b.entry.js → p-0bbaef51.entry.js} +1 -1
- package/dist/brandsync-wc/p-11d80e17.entry.js +1 -0
- package/dist/brandsync-wc/{p-c85fe37b.entry.js → p-1bd99669.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f4d1d56e.entry.js → p-225148be.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6df48031.entry.js → p-2bd30709.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e294f698.entry.js → p-32297416.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d165a742.entry.js → p-35f76ea7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4ca40386.entry.js → p-3bad5e1b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ed71eb02.entry.js → p-3bdeeb9d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1bf8fbbb.entry.js → p-3c6ec5d0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-abfa43f5.entry.js → p-3cb79512.entry.js} +1 -1
- package/dist/brandsync-wc/p-3d2c62a6.entry.js +1 -0
- package/dist/brandsync-wc/{p-23379d7c.entry.js → p-3d7b0708.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2e285364.entry.js → p-43d5f708.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d81c4f58.entry.js → p-4b460eda.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b6081bba.entry.js → p-4eaa9ed4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c25553bc.entry.js → p-4f4c0c68.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a56bc608.entry.js → p-5057e4fe.entry.js} +1 -1
- package/dist/brandsync-wc/p-54d91ac9.entry.js +1 -0
- package/dist/brandsync-wc/{p-65fa1b21.entry.js → p-57ff14ca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-538d5b58.entry.js → p-5b933ff4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b67a0c8f.entry.js → p-5c61eb06.entry.js} +1 -1
- package/dist/brandsync-wc/{p-86774165.entry.js → p-5eb5795f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b663ee67.entry.js → p-61deb48c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ac9472ec.entry.js → p-67f125e8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3488c4fc.entry.js → p-6ea02b98.entry.js} +1 -1
- package/dist/brandsync-wc/p-70c650b2.entry.js +1 -0
- package/dist/brandsync-wc/p-79fc849c.entry.js +1 -0
- package/dist/brandsync-wc/{p-5a45ef51.entry.js → p-7ed071fb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3c21d0bf.entry.js → p-8134f97c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4ed00786.entry.js → p-844205d9.entry.js} +1 -1
- package/dist/brandsync-wc/p-84d6d6eb.entry.js +1 -0
- package/dist/brandsync-wc/{p-401b3d3d.entry.js → p-857987f9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b9c9bcba.entry.js → p-8c4dfccb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-38ac9aad.entry.js → p-90ba3032.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1ca8b01e.entry.js → p-9396c67e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e9b6b30f.entry.js → p-9d740928.entry.js} +1 -1
- package/dist/brandsync-wc/{p-baa3d37a.entry.js → p-a7fa839a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f271e1d2.entry.js → p-a7fb0b59.entry.js} +1 -1
- package/dist/brandsync-wc/{p-89ea6366.entry.js → p-ab14a07d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-912629c6.entry.js → p-aec2dfeb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8390a155.entry.js → p-b02bf1ca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9beeb30c.entry.js → p-b142d8c9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7a072e64.entry.js → p-b4511ad3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5ed1f45e.entry.js → p-b5710db6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-34b0c048.entry.js → p-baa39c08.entry.js} +1 -1
- package/dist/brandsync-wc/{p-87d44938.entry.js → p-be7aac52.entry.js} +1 -1
- package/dist/brandsync-wc/p-c835afb7.entry.js +1 -0
- package/dist/brandsync-wc/{p-45986ad4.entry.js → p-d25adab2.entry.js} +1 -1
- package/dist/brandsync-wc/p-d2a15599.entry.js +1 -0
- package/dist/brandsync-wc/{p-b9c0b481.entry.js → p-d7956c51.entry.js} +1 -1
- package/dist/brandsync-wc/p-d9184940.entry.js +1 -0
- package/dist/brandsync-wc/{p-0f97fe35.entry.js → p-dcbeb143.entry.js} +1 -1
- package/dist/brandsync-wc/{p-cf287ff1.entry.js → p-debc83cc.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dcacee29.entry.js → p-e0a9f2d1.entry.js} +1 -1
- package/dist/brandsync-wc/p-e123b391.entry.js +1 -0
- package/dist/brandsync-wc/p-e8ae626d.entry.js +1 -0
- package/dist/brandsync-wc/p-e8e22238.entry.js +1 -0
- package/dist/brandsync-wc/{p-6cb21302.entry.js → p-eb0dc5bf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1b4c0971.entry.js → p-f43a7f16.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7b3518b8.entry.js → p-f82a9f0d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f0be9125.entry.js → p-f98dfa85.entry.js} +1 -1
- package/dist/brandsync-wc/{p-36fe783a.entry.js → p-fdc168ec.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bc97ece8.entry.js → p-ffccc1ee.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-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-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-citation-preview.cjs.entry.js +1 -1
- package/dist/cjs/bs-command-palette.cjs.entry.js +374 -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 +47 -0
- 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 +326 -0
- package/dist/cjs/bs-grid.cjs.entry.js +2 -2
- 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-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 +39 -0
- package/dist/cjs/bs-key.cjs.entry.js +28 -0
- package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +112 -0
- package/dist/cjs/bs-list-item.cjs.entry.js +66 -0
- package/dist/cjs/bs-list.cjs.entry.js +103 -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 +1 -1
- package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
- package/dist/cjs/bs-popover.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 +47 -0
- package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
- package/dist/cjs/bs-shortcut-row.cjs.entry.js +27 -0
- package/dist/cjs/bs-skeleton.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 +94 -0
- package/dist/cjs/bs-tree.cjs.entry.js +197 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +13 -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-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-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-citation-preview/bs-citation-preview.js +1 -1
- package/dist/collection/components/bs-command-palette/bs-command-palette.cmp.test.js +207 -0
- package/dist/collection/components/bs-command-palette/bs-command-palette.css +214 -0
- package/dist/collection/components/bs-command-palette/bs-command-palette.js +1114 -0
- package/dist/collection/components/bs-command-palette/bs-command-palette.stories.js +194 -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.cmp.test.js +102 -0
- package/dist/collection/components/bs-empty-state/bs-empty-state.css +45 -0
- package/dist/collection/components/bs-empty-state/bs-empty-state.js +175 -0
- package/dist/collection/components/bs-empty-state/bs-empty-state.stories.js +52 -0
- 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.cmp.test.js +491 -0
- package/dist/collection/components/bs-global-search/bs-global-search.css +115 -0
- package/dist/collection/components/bs-global-search/bs-global-search.js +1024 -0
- package/dist/collection/components/bs-global-search/bs-global-search.stories.js +146 -0
- package/dist/collection/components/bs-grid/bs-grid.js +2 -2
- 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.cmp.test.js +59 -0
- package/dist/collection/components/bs-key/bs-key.css +58 -0
- package/dist/collection/components/bs-key/bs-key.js +84 -0
- package/dist/collection/components/bs-key/bs-key.stories.js +19 -0
- package/dist/collection/components/bs-key-caps/bs-key-caps.cmp.test.js +60 -0
- package/dist/collection/components/bs-key-caps/bs-key-caps.css +28 -0
- package/dist/collection/components/bs-key-caps/bs-key-caps.js +120 -0
- package/dist/collection/components/bs-key-caps/bs-key-caps.stories.js +29 -0
- package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.cmp.test.js +194 -0
- package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.css +138 -0
- package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +485 -0
- package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.js +111 -0
- package/dist/collection/components/bs-list/bs-list.cmp.test.js +99 -0
- package/dist/collection/components/bs-list/bs-list.css +15 -0
- package/dist/collection/components/bs-list/bs-list.js +241 -0
- package/dist/collection/components/bs-list/bs-list.stories.js +43 -0
- package/dist/collection/components/bs-list-item/bs-list-item.cmp.test.js +137 -0
- package/dist/collection/components/bs-list-item/bs-list-item.css +139 -0
- package/dist/collection/components/bs-list-item/bs-list-item.js +343 -0
- package/dist/collection/components/bs-list-item/bs-list-item.stories.js +86 -0
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.cmp.test.js +6 -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-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.cmp.test.js +147 -0
- package/dist/collection/components/bs-search-item/bs-search-item.css +112 -0
- package/dist/collection/components/bs-search-item/bs-search-item.js +222 -0
- package/dist/collection/components/bs-search-item/bs-search-item.stories.js +31 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
- package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.cmp.test.js +60 -0
- package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.css +42 -0
- package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +154 -0
- package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.stories.js +24 -0
- 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.cmp.test.js +166 -0
- package/dist/collection/components/bs-tree/bs-tree.css +8 -0
- package/dist/collection/components/bs-tree/bs-tree.js +354 -0
- package/dist/collection/components/bs-tree/bs-tree.stories.js +34 -0
- package/dist/collection/components/bs-tree-item/bs-tree-item.cmp.test.js +187 -0
- package/dist/collection/components/bs-tree-item/bs-tree-item.css +161 -0
- package/dist/collection/components/bs-tree-item/bs-tree-item.js +305 -0
- package/dist/collection/components/bs-tree-item/bs-tree-item.stories.js +54 -0
- 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.js +1 -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-shell.js +1 -1
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.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-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-citation-preview.js +1 -1
- package/dist/components/bs-command-palette.d.ts +11 -0
- package/dist/components/bs-command-palette.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.d.ts +11 -0
- package/dist/components/bs-empty-state.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/bs-global-search.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/bs-key-caps.js +1 -0
- package/dist/components/bs-key.d.ts +11 -0
- package/dist/components/bs-key.js +1 -0
- package/dist/components/bs-keyboard-shortcuts.d.ts +11 -0
- package/dist/components/bs-keyboard-shortcuts.js +1 -0
- package/dist/components/bs-list-item.d.ts +11 -0
- package/dist/components/bs-list-item.js +1 -0
- package/dist/components/bs-list.d.ts +11 -0
- package/dist/components/bs-list.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-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.d.ts +11 -0
- package/dist/components/bs-search-item.js +1 -0
- package/dist/components/bs-session-timeout.js +1 -1
- package/dist/components/bs-shortcut-row.d.ts +11 -0
- package/dist/components/bs-shortcut-row.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/bs-tree-item.js +1 -0
- package/dist/components/bs-tree.d.ts +11 -0
- package/dist/components/bs-tree.js +1 -0
- package/dist/components/bs-whats-new-entry.js +1 -1
- package/dist/components/bs-whats-new.js +1 -1
- package/dist/components/{p-GTDI4Ibw.js → p-B32Kl4IB.js} +1 -1
- package/dist/components/{p-B128GX8H.js → p-BDnZvjlq.js} +1 -1
- package/dist/components/{p-Bqe4waKJ.js → p-BUpnOUIM.js} +1 -1
- package/dist/components/p-BcYNrEOB.js +1 -0
- package/dist/components/{p-B80vOwH6.js → p-BcbaiZLh.js} +1 -1
- package/dist/components/p-Bp3DIxjT.js +1 -0
- package/dist/components/p-CH5atin4.js +1 -0
- package/dist/components/{p-kDJsWjTN.js → p-CRM1wIX9.js} +1 -1
- package/dist/components/{p-Mf1jorXP.js → p-CYzBTzzf.js} +1 -1
- package/dist/components/p-CervX0wH.js +1 -0
- package/dist/components/{p-ElcsxZSh.js → p-Cpe2k7ZC.js} +1 -1
- package/dist/components/{p-BvYkZcOU.js → p-D7AXo5NT.js} +1 -1
- package/dist/components/{p-B3l4WpgS.js → p-D8bvv9QQ.js} +1 -1
- package/dist/components/{p-ByKcHsj0.js → p-DG9eT5yi.js} +1 -1
- package/dist/components/{p-D0KM1R2i.js → p-DMLfXpva.js} +1 -1
- package/dist/components/{p-CQjSDdH7.js → p-DYDk73TF.js} +1 -1
- package/dist/components/{p-C7RZ6qZC.js → p-DcjgRtSQ.js} +1 -1
- package/dist/components/p-Dt4JNhHT.js +1 -0
- package/dist/components/{p-CK7fiES5.js → p-DtYTs9Kh.js} +1 -1
- package/dist/components/{p-BsbtyRJV.js → p-TAY9S9yG.js} +1 -1
- package/dist/components/{p-ByLUtXxO.js → p-w-DkdA4O.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-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-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-citation-preview.entry.js +1 -1
- package/dist/esm/bs-command-palette.entry.js +372 -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 +45 -0
- 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 +324 -0
- package/dist/esm/bs-grid.entry.js +2 -2
- package/dist/esm/bs-icon-button.entry.js +1 -1
- package/dist/esm/bs-icon-tile.entry.js +2 -2
- 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 +37 -0
- package/dist/esm/bs-key.entry.js +26 -0
- package/dist/esm/bs-keyboard-shortcuts.entry.js +110 -0
- package/dist/esm/bs-list-item.entry.js +64 -0
- package/dist/esm/bs-list.entry.js +101 -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 +1 -1
- package/dist/esm/bs-pagination.entry.js +1 -1
- package/dist/esm/bs-popover.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 +45 -0
- package/dist/esm/bs-session-timeout.entry.js +1 -1
- package/dist/esm/bs-shortcut-row.entry.js +25 -0
- package/dist/esm/bs-skeleton.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 +92 -0
- package/dist/esm/bs-tree.entry.js +195 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/bs-command-palette/bs-command-palette.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-command-palette/bs-command-palette.d.ts +172 -0
- package/dist/types/components/bs-command-palette/bs-command-palette.stories.d.ts +56 -0
- package/dist/types/components/bs-empty-state/bs-empty-state.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-empty-state/bs-empty-state.d.ts +50 -0
- package/dist/types/components/bs-empty-state/bs-empty-state.stories.d.ts +13 -0
- package/dist/types/components/bs-global-search/bs-global-search.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-global-search/bs-global-search.d.ts +166 -0
- package/dist/types/components/bs-global-search/bs-global-search.stories.d.ts +61 -0
- package/dist/types/components/bs-key/bs-key.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-key/bs-key.d.ts +36 -0
- package/dist/types/components/bs-key/bs-key.stories.d.ts +11 -0
- package/dist/types/components/bs-key-caps/bs-key-caps.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-key-caps/bs-key-caps.d.ts +31 -0
- package/dist/types/components/bs-key-caps/bs-key-caps.stories.d.ts +15 -0
- package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.d.ts +95 -0
- package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.d.ts +43 -0
- package/dist/types/components/bs-list/bs-list.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-list/bs-list.d.ts +42 -0
- package/dist/types/components/bs-list/bs-list.stories.d.ts +13 -0
- package/dist/types/components/bs-list-item/bs-list-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-list-item/bs-list-item.d.ts +85 -0
- package/dist/types/components/bs-list-item/bs-list-item.stories.d.ts +22 -0
- package/dist/types/components/bs-search-item/bs-search-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-search-item/bs-search-item.d.ts +61 -0
- package/dist/types/components/bs-search-item/bs-search-item.stories.d.ts +13 -0
- package/dist/types/components/bs-shortcut-row/bs-shortcut-row.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-shortcut-row/bs-shortcut-row.d.ts +38 -0
- package/dist/types/components/bs-shortcut-row/bs-shortcut-row.stories.d.ts +13 -0
- package/dist/types/components/bs-tree/bs-tree.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-tree/bs-tree.d.ts +53 -0
- package/dist/types/components/bs-tree/bs-tree.stories.d.ts +11 -0
- package/dist/types/components/bs-tree-item/bs-tree-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-tree-item/bs-tree-item.d.ts +60 -0
- package/dist/types/components/bs-tree-item/bs-tree-item.stories.d.ts +19 -0
- package/dist/types/components.d.ts +2700 -199
- package/package.json +1 -1
- package/reference.d.ts +36 -0
- package/reference.json +1076 -47
- package/dist/brandsync-wc/p-769c5b4a.entry.js +0 -1
- package/dist/brandsync-wc/p-e5f50e93.entry.js +0 -1
- package/dist/brandsync-wc/p-e72dd05e.entry.js +0 -1
|
@@ -34,7 +34,7 @@ const BsBreadcrumbs = class {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("nav", { key: '
|
|
37
|
+
return (h("nav", { key: '598006bc4c7ef1bfba83ec4770b6e52c4dac8fe7', "aria-label": this.label }, h("ol", { key: '450ddcd3f5739d074bead021f32c91aaa8149559', part: "list", class: "bs-breadcrumbs__list" }, h("slot", { key: '772821437007761a6367a1d4d7dacf7a34739f9a', onSlotchange: this.onSlotChange }))));
|
|
38
38
|
}
|
|
39
39
|
static get watchers() { return {
|
|
40
40
|
"size": [{
|
|
@@ -11,7 +11,7 @@ const BsButtonSkeleton = class {
|
|
|
11
11
|
/** Accessible name announced for the loading placeholder. */
|
|
12
12
|
loadingLabel = 'Loading';
|
|
13
13
|
render() {
|
|
14
|
-
return h("span", { key: '
|
|
14
|
+
return h("span", { key: '248ee140711040c1a4a35cd8539431d79d5f5c7c', part: "container", class: `bs-button-skeleton bs-button-skeleton--${this.size}`, role: "status", "aria-label": this.loadingLabel });
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
BsButtonSkeleton.style = bsButtonSkeletonCss();
|
|
@@ -96,7 +96,7 @@ const BsChatbotFeedback = class {
|
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
98
|
const stars = [1, 2, 3, 4, 5];
|
|
99
|
-
return (h("div", { key: '
|
|
99
|
+
return (h("div", { key: '64c7f8d329b25d54264ccc3fd2046c7b91b0a928', class: "bs-chatbot-feedback", role: "region", "aria-label": this.computedHeading() }, h("button", { key: '3b4f619db2a8f1f44fdc7229d3fda8726728483e', type: "button", part: "close", class: "bs-chatbot-feedback__close", "aria-label": this.closeLabel, onClick: this.onCloseClick }, h(CloseIcon, { key: 'c7c698aeb2b70255e3515b7f2aa505b326d26e53' })), h("div", { key: '6d076b4c3ce3ceb29e77faa28b8c9ff378166977', class: "bs-chatbot-feedback__top" }, h("div", { key: '4417e15cea995e2ae22cf606d0b13ca7f7c28a6d', class: "bs-chatbot-feedback__text" }, h("p", { key: 'c36b0301127b7f522cc7a491d4ef2fbb691ed082', part: "heading", class: "bs-chatbot-feedback__heading" }, this.computedHeading()), h("p", { key: 'bde47a0de3f408bf8f3deab1fd4bc6b44782528d', part: "subtitle", class: "bs-chatbot-feedback__subtitle" }, this.computedSubtitle())), h("div", { key: 'd6a28296298b30340ae249582a02f2242ddde6fd', 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(StarIcon, { filled: this.rating >= value }))))), !this.submitted && (h("div", { key: 'a3d957978212ba546914eb8f19a6c0b6776b4cda', class: "bs-chatbot-feedback__field" }, h("label", { key: 'ccbda1eeff0a7963704e1c095349ce503c76d6cc', part: "label", class: "bs-chatbot-feedback__label", htmlFor: "bs-chatbot-feedback-comment" }, this.commentLabel), h("textarea", { key: 'c1676c31a10315e8bccabe1841b8abc990f32158', 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: 'ca1fc129a1fa0645a9aa85fdbf0d0de73c24f8e6', part: "comment", class: "bs-chatbot-feedback__comment" }, this.comment))), h("div", { key: 'd6f9ae5f1c52de30bb07a22e6dcbe97fce7e5a97', class: "bs-chatbot-feedback__actions" }, !this.submitted && (h("button", { key: 'dd46f42be756a4f1af593c83c130ea25f1fcd312', type: "button", part: "submit", class: "bs-chatbot-feedback__submit", disabled: this.rating === 0, onClick: this.onSubmitClick }, h(SendIcon, { key: 'b462d0786b439f5543659d12875d1e42f5e649e6' }), this.submitLabel)), h("button", { key: '818daeb3198f4adfbb5d55b8bdfd07f6904c84d5', 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(EditIcon, { key: '504ed8bd1ac4b325afb3ed082105510bfebe4bd4' }), this.newChatLabel))));
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
const StarIcon = ({ filled }) => (h("svg", { viewBox: "0 0 24 24", fill: filled ? 'currentColor' : 'none', xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M12 2.5L15.09 8.75L22 9.77L17 14.62L18.18 21.5L12 18.22L5.82 21.5L7 14.62L2 9.77L8.91 8.75L12 2.5Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -148,7 +148,7 @@ const BsChatbotHeader = class {
|
|
|
148
148
|
this.bsClose.emit();
|
|
149
149
|
};
|
|
150
150
|
render() {
|
|
151
|
-
return (h("div", { key: '
|
|
151
|
+
return (h("div", { key: 'a3bf82b419fe181054ef681938edee90b3a7370c', class: "bs-chatbot-header", role: "banner", "aria-label": this.heading }, h("div", { key: '194e0c8da2af153b8a6c525db7c09d2960d00766', part: "logo", class: "bs-chatbot-header__logo", role: "img", "aria-label": this.heading, innerHTML: GENIE_LOGO_SVG }), h("div", { key: 'c5b7c45960c14dd1052fd6e0e16d9100e87f6065', class: "bs-chatbot-header__actions" }, h("slot", { key: 'ffb35bd3e7694623c672b086db42ee69e14606ae', name: "actions" }), !this.hideNewChat && (h("span", { key: '00870907a0971458c484c88082176f809f8eaa8e', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: '2b12b13ac7595a39b2f90bbfccf784d643ccb8a6', type: "button", part: "new-chat", class: "bs-chatbot-header__button", "aria-label": this.newChatLabel, onClick: this.onNewChatClick }, h("slot", { key: '12ffde1876b46f492d8690796e27c9e716020a6f', name: "new-chat-icon" }, h(NewChatIcon, { key: 'a720b894daaa12a6bb4e89391ac400a00217e2a1' }))), h("bs-tooltip", { key: 'f4a8aebd32eea278cc45d7ec67de564e539671c4', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.newChatLabel))), !this.hideHistory && (h("span", { key: '38668bf4d54439e8b6aff21aed277753a9bfd05c', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: 'fd7dbd9db931baaa42a74523952bb58fd81f8c59', type: "button", part: "history", class: "bs-chatbot-header__button", "aria-label": this.historyLabel, onClick: this.onHistoryClick }, h("slot", { key: '8677cb10b69e30f1ed63f760a6d1384e43ee889a', name: "history-icon" }, h(HistoryIcon, { key: 'f3dbc6e2ad0e498d975ff12127ea5a04aa5feabb' }))), h("bs-tooltip", { key: 'f95bef141e03ea75a803786961d56cb57c4c4419', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.historyLabel))), !this.hideExpand && (h("span", { key: 'cfc6b76abab457ddbb0f800c9421755fa4a7356f', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: '2413fa727f2eb5d6963ec0a60a0f52bce91a50bb', 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: '2291b453f5d21ed2c605b9637530e719fd50b979', name: "expand-icon" }, h(ExpandIcon, { key: 'b8ed1f8839eea3714532283e15a6cd0fe5fe6fb4' }))), h("bs-tooltip", { key: '392da3045534004015b4b894f0948876e1f12141', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.expanded ? this.collapseLabel : this.expandLabel))), !this.hideClose && (h("span", { key: '136d790708106fb64c1c83371af5d76e37cb57fd', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: 'b500c7104dace70ad434b556fa913fa650f95ce2', type: "button", part: "close", class: "bs-chatbot-header__button", "aria-label": this.closeLabel, onClick: this.onCloseClick }, h("slot", { key: '3ede2fe906f8819e496d1c8537b3520cf29698d7', name: "close-icon" }, h(CloseIcon, { key: '9d26f8d6b36cb51d564b7d44d375828af4671d6c' }))), h("bs-tooltip", { key: '14c17d47ac9e6bb7ed78a49fb8005879c6674718', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.closeLabel))))));
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
const NewChatIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M12 15H9V12L18 3L21 6L12 15Z", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M15.75 5.25L18.75 8.25", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M20.25 12V19.5C20.25 19.6989 20.171 19.8897 20.0303 20.0303C19.8897 20.171 19.6989 20.25 19.5 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3.75 19.6989 3.75 19.5V4.5C3.75 4.30109 3.82902 4.11032 3.96967 3.96967C4.11032 3.82902 4.30109 3.75 4.5 3.75H12", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -98,7 +98,7 @@ const BsChatbotResponseAction = class {
|
|
|
98
98
|
};
|
|
99
99
|
render() {
|
|
100
100
|
const hasSources = !!this.sourcesCount && this.sourcesCount > 0;
|
|
101
|
-
return (h("div", { key: '
|
|
101
|
+
return (h("div", { key: 'ebc6d993ea58554ab0a5d36c9148da333424ed8c', class: "bs-chatbot-response-action" }, h("button", { key: 'f171f6c7be3a81f75b036a6e19d8d25c60da45de', type: "button", part: "like", class: "bs-chatbot-response-action__button", "aria-label": this.likeLabel, "aria-pressed": this.liked ? 'true' : 'false', onClick: this.onLikeClick }, h("slot", { key: '36697458bd76eeb31d6a3cd0c793ba9b12850bb5', name: "like-icon" }, h(ThumbsUpIcon, { key: '3f07e995a80dff4a9ad993ec943e20dfba199828' }))), h("button", { key: '70a982907bfd4ea1843a157db2830dc251b6cce3', type: "button", part: "dislike", class: "bs-chatbot-response-action__button", "aria-label": this.dislikeLabel, "aria-pressed": this.disliked ? 'true' : 'false', onClick: this.onDislikeClick }, h("slot", { key: 'f74a10e3488db4167c7aeadb12dfe18e07bd8375', name: "dislike-icon" }, h(ThumbsDownIcon, { key: 'a84fd41bdb0b04f0899186f9dc7c3b3f9a01c4e4' }))), h("button", { key: 'f9607a0b7fb610308437fd348291a39a1a75c48f', type: "button", part: "copy", class: "bs-chatbot-response-action__button", "aria-label": this.copyLabel, onClick: this.onCopyClick }, h("slot", { key: '50d0ee6d299b0b9eaa2f2a76c8e163c62b0b1c46', name: "copy-icon" }, h(CopyIcon, { key: '4393f5f8613f96b3040bef7fb3ab56002bec882a' }))), !this.hideRegenerate && (h("button", { key: 'a7df160d71f63455807b0641fdb4ecc7c963262f', type: "button", part: "regenerate", class: "bs-chatbot-response-action__button", "aria-label": this.regenerateLabel, onClick: this.onRegenerateClick }, h("slot", { key: '746a947dcdc2513dcc14a2c45ad43e8c5689b155', name: "regenerate-icon" }, h(RegenerateIcon, { key: '6d64c1b4a2795d4700bbf398098bb660e1b7a61d' })))), h("div", { key: '6b3969c13b586c593f0e5a1a98407fd5514b5038', class: "bs-chatbot-response-action__menu-wrapper" }, h("button", { key: 'ce57cbfbb40b2a4888cc1aae725d94f330203dce', 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("slot", { key: 'c301f66e32e50b915374bb660f8e8ebfda5fece2', name: "menu-icon" }, h(MenuIcon, { key: '3cb0895245598879d982ff9f206a278d6c8332fc' }))), this.menuOpen && (h("div", { key: 'bc20c2db7f705d5b10d6d6f770ad0fc15de0cf55', class: "bs-chatbot-response-action__menu-popup" }, h("slot", { key: '0a429d4727cdc0138da8044e0b813722f1f17eec', name: "menu" })))), hasSources && (h("button", { key: '35dc4762ead97f292db9652a18f4fbb41a1ce4d2', type: "button", part: "sources", class: "bs-chatbot-response-action__sources", onClick: this.onSourcesClick }, h("slot", { key: 'fb308abbcfbef564e9e424ccdbfaaac95911bf6b', name: "sources-icon" }, h(SourcesIcon, { key: '281a8fbb031ff7af27b176894bfd287c78a4de97' })), h("span", { key: '6afee37c37811f052b9d83089f220b354dd161b7', class: "bs-chatbot-response-action__sources-label" }, this.sourcesCount, " ", this.sourcesCount === 1 ? this.sourceLabel : this.sourcesLabel)))));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
const ThumbsUpIcon = () => (h("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M2.5 8.125H6.25V16.25H2.5C2.33424 16.25 2.17527 16.1842 2.05806 16.0669C1.94085 15.9497 1.875 15.7908 1.875 15.625V8.75C1.875 8.58424 1.94085 8.42527 2.05806 8.30806C2.17527 8.19085 2.33424 8.125 2.5 8.125Z", stroke: "currentColor", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M6.25 8.125L9.375 1.875C10.038 1.875 10.6739 2.13839 11.1428 2.60723C11.6116 3.07607 11.875 3.71196 11.875 4.375V6.25H16.875C17.0523 6.25005 17.2276 6.28782 17.3892 6.36081C17.5508 6.4338 17.695 6.54033 17.8123 6.67333C17.9295 6.80634 18.0172 6.96277 18.0693 7.13223C18.1215 7.3017 18.137 7.48033 18.1148 7.65625L17.1773 15.1562C17.1393 15.4583 16.9923 15.736 16.7641 15.9374C16.5358 16.1388 16.2419 16.2499 15.9375 16.25H6.25", stroke: "currentColor", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -29,7 +29,7 @@ const BsChatbotSourcesDrawer = class {
|
|
|
29
29
|
};
|
|
30
30
|
render() {
|
|
31
31
|
const displayCount = this.count ?? this.slottedCount;
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '00bae658c31f1b0cb31cde007056aad03bf0ad77', class: "bs-chatbot-sources-drawer", role: "region", "aria-label": this.heading }, h("div", { key: 'ee2f47d76139560f152dc730d8d4252c550c4874', class: "bs-chatbot-sources-drawer__header" }, h("div", { key: 'dacf3742bd6db7b2b4ab7dfa25a569d48fef4ae8', class: "bs-chatbot-sources-drawer__title-group" }, h("h2", { key: '4a574daa2822b1acd984268e1e758f457bf40c4f', part: "heading", class: "bs-chatbot-sources-drawer__heading" }, this.heading), displayCount > 0 && (h("span", { key: 'cef7cd7a050ecb145d62a8f0992e795405c8f8d6', part: "count", class: "bs-chatbot-sources-drawer__count" }, displayCount))), h("button", { key: '8a1c6a8c16de70836555fed325602e3e2152c618', type: "button", part: "collapse", class: "bs-chatbot-sources-drawer__collapse", "aria-label": this.collapseLabel, onClick: this.onCollapseClick }, h("slot", { key: '9dd216a247757d22fb6dea3b75e07dc9ed3e6cb0', name: "collapse-icon" }, h(CaretRightIcon, { key: '8c6a8d2dd8b1fa71812e257e43939990be25ce04' })))), h("div", { key: '4d057db59b72db7c13eacaa2113cb9964caef1c9', part: "list", class: "bs-chatbot-sources-drawer__list" }, h("slot", { key: '5e5e753897ed08f1b2e1e37919e7ac4ed721a893', onSlotchange: this.onSlotchange }))));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
const CaretRightIcon = () => (h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M7.5 4.375L13.125 10L7.5 15.625", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -15,7 +15,7 @@ const BsChatbotSuggestionButton = class {
|
|
|
15
15
|
this.bsSelect.emit();
|
|
16
16
|
};
|
|
17
17
|
render() {
|
|
18
|
-
return (h("button", { key: '
|
|
18
|
+
return (h("button", { key: '9773b5f3b62675a48eacc9a63fd52cd92172fe68', type: "button", part: "button", class: "bs-chatbot-suggestion-button", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: '1fbe7d378fb81cebc348b232c5fbe00fe31daf78' })));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
BsChatbotSuggestionButton.style = bsChatbotSuggestionButtonCss();
|
|
@@ -12,7 +12,7 @@ const BsCheckboxSkeleton = class {
|
|
|
12
12
|
/** Accessible name announced for the loading placeholder. */
|
|
13
13
|
loadingLabel = 'Loading';
|
|
14
14
|
render() {
|
|
15
|
-
return (h("span", { key: '
|
|
15
|
+
return (h("span", { key: '553af2d9b475730b4f399da364a42a8fe61de077', part: "container", class: "bs-checkbox-skeleton", role: "status", "aria-label": this.loadingLabel }, h("span", { key: '06b4a8dcb9b436f1f79a9d59144430d22081d89d', part: "box", class: `bs-checkbox-skeleton__box bs-checkbox-skeleton__box--${this.size}` }), h("span", { key: 'd56789d4ad329edf3336cabef6a7b5200f977210', part: "label", class: "bs-checkbox-skeleton__label" })));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
BsCheckboxSkeleton.style = bsCheckboxSkeletonCss();
|
|
@@ -19,7 +19,7 @@ const BsCitationPreview = class {
|
|
|
19
19
|
bsOpen;
|
|
20
20
|
render() {
|
|
21
21
|
const hasPage = this.page !== undefined && this.page !== null && this.page !== '';
|
|
22
|
-
return (h("bs-card", { key: '
|
|
22
|
+
return (h("bs-card", { key: 'ea8213ae775ca510bf853f2cb2f8ece97f95001f', part: "container", class: "bs-citation-preview", surface: "base" }, h("div", { key: 'd10d32d872cbaabb10a090c1ce8b3ef514c61937', class: "bs-citation-preview__body" }, h("bs-source-link", { key: 'ae1213e1bd69cdf3e56ce9231d76ff4f9f2a5ac0', part: "header", fileName: this.fileName, sourceName: this.sourceName, href: this.href, onBsOpen: () => this.bsOpen.emit() }), h("div", { key: 'ed6b1225fb0ce6f545c4a2e3d1d644cb607c7e78', part: "snippet", class: "bs-citation-preview__snippet" }, h("slot", { key: 'bf00115e8845869813b8ee2a75b25da773d8e0d3' })), h("div", { key: '1770276d58af8961bed809c1e958458c0e20c302', class: "bs-citation-preview__footer" }, h("slot", { key: '78fe989b67646fe2c2aa2e6d5f98fd13c91eb436', name: "footer" }, hasPage && (h("span", { key: '15d025d294c68ec6452a501ac50547278c54d105', part: "page", class: "bs-citation-preview__page" }, "Page ", this.page)))))));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
BsCitationPreview.style = bsCitationPreviewCss();
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-D3SkQJpw.js';
|
|
2
|
+
|
|
3
|
+
const bsCommandPaletteCss = () => `:host{display:contents;--bs-command-palette-width:640px;--bs-command-palette-top:12vh;--bs-command-palette-max-height:60vh;--bs-command-palette-radius:var(--bs-border-radius-150);--bs-command-palette-bg:var(--bs-surface-base);--bs-command-palette-shadow:0 var(--bs-shadow-position-100) var(--bs-shadow-blur-200) 0 var(--bs-elevation-higher);--bs-command-palette-overlay:var(--bs-surface-overlay);--bs-command-palette-footer-bg:var(--bs-surface-container);--bs-command-palette-divider-color:var(--bs-border-default);--bs-command-palette-header-border-color:var(--bs-border-neutral-container);--bs-command-palette-header-color:var(--bs-text-muted);--bs-command-palette-hint-color:var(--bs-text-secondary);--bs-command-palette-z-index:var(--bs-z-index-modal)}.bs-command-palette{box-sizing:border-box;width:min(var(--bs-command-palette-width), calc(100vw - 2 * var(--bs-spacing-200)));max-width:none;max-height:none;margin:var(--bs-command-palette-top) auto auto;padding:0;border:0;background:transparent;color:var(--bs-text-default);overflow:visible;z-index:var(--bs-command-palette-z-index)}.bs-command-palette::backdrop{background:var(--bs-command-palette-overlay, var(--bs-surface-overlay))}.bs-command-palette__panel{display:flex;flex-direction:column;box-sizing:border-box;overflow:clip;border-radius:var(--bs-command-palette-radius);background:var(--bs-command-palette-bg);box-shadow:var(--bs-command-palette-shadow)}@media (prefers-reduced-motion: no-preference){.bs-command-palette[open] .bs-command-palette__panel{animation:bs-command-palette-in 120ms ease-out}}@keyframes bs-command-palette-in{from{opacity:0;transform:scale(0.98)}}.bs-command-palette__search{position:relative;display:flex;align-items:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-150)}.bs-command-palette__field{flex:1 1 auto;min-width:0}.bs-command-palette__field bs-input{width:100%}.bs-command-palette__scope{flex:none}.bs-command-palette__esc{position:absolute;top:50%;right:calc(var(--bs-spacing-150) + 9px);transform:translateY(-50%);display:inline-flex;pointer-events:none}.bs-command-palette__divider{height:1px;background:var(--bs-command-palette-divider-color)}.bs-command-palette__results{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-spacing-100);padding:var(--bs-spacing-100);max-height:var(--bs-command-palette-max-height);overflow-y:auto}.bs-command-palette__list{display:flex;flex-direction:column;gap:var(--bs-spacing-100)}.bs-command-palette__section{display:flex;flex-direction:column}.bs-command-palette__section-header{padding:var(--bs-spacing-150) var(--bs-spacing-150) var(--bs-spacing-100);border-bottom:1px solid var(--bs-command-palette-header-border-color);color:var(--bs-command-palette-header-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-command-palette__loading{display:flex;align-items:center;justify-content:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-300) var(--bs-spacing-200);color:var(--bs-text-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-command-palette__empty{display:flex;flex-direction:column;align-items:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-300) var(--bs-spacing-200);text-align:center}.bs-command-palette__empty-icon{width:32px;height:32px;color:var(--bs-icon-default)}.bs-command-palette__empty-heading{color:var(--bs-text-default);font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:24px}.bs-command-palette__empty-description{color:var(--bs-text-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-command-palette__link{margin:0;padding:0;border:0;border-bottom:1px solid var(--bs-border-info);background:none;color:var(--bs-text-link);font:inherit;line-height:20px;cursor:pointer}.bs-command-palette__link:focus-visible{outline:2px solid var(--bs-border-info);outline-offset:2px}.bs-command-palette__footer{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:10px var(--bs-spacing-200);background:var(--bs-command-palette-footer-bg)}.bs-command-palette__hint{display:inline-flex;align-items:center;gap:var(--bs-spacing-50);color:var(--bs-command-palette-hint-color);font-size:var(--bs-font-size-sm);line-height:20px;white-space:nowrap}.bs-command-palette__spacer{flex:1 1 0}.bs-command-palette__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}`;
|
|
4
|
+
|
|
5
|
+
/** The result sections, in display (and keyboard) order. */
|
|
6
|
+
const RESULT_SECTIONS = ['recent', 'suggested', 'commands', 'navigation', 'records'];
|
|
7
|
+
const ALL_SECTIONS = [...RESULT_SECTIONS, 'try-instead'];
|
|
8
|
+
let uid = 0;
|
|
9
|
+
const svgProps = {
|
|
10
|
+
viewBox: '0 0 24 24',
|
|
11
|
+
fill: 'none',
|
|
12
|
+
stroke: 'currentColor',
|
|
13
|
+
'stroke-width': '1.8',
|
|
14
|
+
'stroke-linecap': 'round',
|
|
15
|
+
'stroke-linejoin': 'round',
|
|
16
|
+
'aria-hidden': 'true',
|
|
17
|
+
};
|
|
18
|
+
const BsCommandPalette = class {
|
|
19
|
+
constructor(hostRef) {
|
|
20
|
+
registerInstance(this, hostRef);
|
|
21
|
+
this.bsInput = createEvent(this, "bsInput");
|
|
22
|
+
this.bsSelect = createEvent(this, "bsSelect");
|
|
23
|
+
this.bsSuggestion = createEvent(this, "bsSuggestion");
|
|
24
|
+
this.bsOpenChange = createEvent(this, "bsOpenChange");
|
|
25
|
+
this.bsScopeExit = createEvent(this, "bsScopeExit");
|
|
26
|
+
}
|
|
27
|
+
get el() { return getElement(this); }
|
|
28
|
+
id = `bs-cp-${++uid}`;
|
|
29
|
+
itemSeq = 0;
|
|
30
|
+
observer;
|
|
31
|
+
dialogEl;
|
|
32
|
+
comboEl;
|
|
33
|
+
inputEl;
|
|
34
|
+
previousFocus;
|
|
35
|
+
userMoved = false;
|
|
36
|
+
/** The field value. Two-way. A leading `>` means commands-only mode. */
|
|
37
|
+
value = '';
|
|
38
|
+
/** Whether the palette is open. */
|
|
39
|
+
open = false;
|
|
40
|
+
/** Derived from `value` (it starts with `>`). Read-only; set `value` instead. */
|
|
41
|
+
commandsOnly = false;
|
|
42
|
+
/** Which view to show. You choose it; nothing is inferred from `value`. `default` and `results` render the same; they differ for screen readers only. */
|
|
43
|
+
status = 'default';
|
|
44
|
+
/** Accessible name of the dialog. */
|
|
45
|
+
label = 'Command palette';
|
|
46
|
+
/** Placeholder of the field. */
|
|
47
|
+
placeholder = 'Type a command or search…';
|
|
48
|
+
/** Keep the palette open after an item is chosen. */
|
|
49
|
+
keepOpenOnSelect = false;
|
|
50
|
+
/** Shows the footer of keyboard hints. */
|
|
51
|
+
showFooter = true;
|
|
52
|
+
/** Global shortcut that toggles the palette, e.g. `mod+k` (`mod` is Cmd on Mac, Ctrl elsewhere). Empty = off. */
|
|
53
|
+
hotkey = '';
|
|
54
|
+
/** Nested scope: shows this text as a chip before the field. Backspace on an empty field emits `bsScopeExit`. */
|
|
55
|
+
scopeLabel;
|
|
56
|
+
/** Section headers. */
|
|
57
|
+
recentLabel = 'Recent';
|
|
58
|
+
suggestedLabel = 'Suggested';
|
|
59
|
+
commandsLabel = 'Commands';
|
|
60
|
+
navigationLabel = 'Navigation';
|
|
61
|
+
recordsLabel = 'Records';
|
|
62
|
+
tryInsteadLabel = 'Try instead';
|
|
63
|
+
/** Footer hint texts. */
|
|
64
|
+
navigateLabel = 'Navigate';
|
|
65
|
+
openLabel = 'Open';
|
|
66
|
+
closeLabel = 'Close';
|
|
67
|
+
commandsOnlyLabel = 'Commands only';
|
|
68
|
+
allResultsLabel = 'All results';
|
|
69
|
+
/** No-results view copy. Include the query in `emptyHeading` yourself. */
|
|
70
|
+
emptyHeading = 'No commands or records';
|
|
71
|
+
emptyDescription = 'Check the spelling, or search records instead.';
|
|
72
|
+
/** A suggested correction; the "Did you mean" line shows while it is set. */
|
|
73
|
+
didYouMean;
|
|
74
|
+
didYouMeanLabel = 'Did you mean';
|
|
75
|
+
/** Text of the loading row. */
|
|
76
|
+
loadingLabel = 'Loading…';
|
|
77
|
+
/** Accessible name of the results listbox. */
|
|
78
|
+
listLabel = 'Results';
|
|
79
|
+
filled = { recent: false, suggested: false, commands: false, navigation: false, records: false, 'try-instead': false };
|
|
80
|
+
activeId = null;
|
|
81
|
+
/** Fires on every keystroke with `{ value, query, commandsOnly }`. */
|
|
82
|
+
bsInput;
|
|
83
|
+
/** Fires when an item is chosen (click or Enter) with `{ value, section, commandsOnly }`. */
|
|
84
|
+
bsSelect;
|
|
85
|
+
/** Fires when the "Did you mean" suggestion is pressed, with its text. */
|
|
86
|
+
bsSuggestion;
|
|
87
|
+
/** Fires when the palette opens or closes through user interaction (hotkey, Esc, scrim, selection). */
|
|
88
|
+
bsOpenChange;
|
|
89
|
+
/** Fires on Backspace in an empty field while `scopeLabel` is set. */
|
|
90
|
+
bsScopeExit;
|
|
91
|
+
/** Opens the palette. */
|
|
92
|
+
async show() {
|
|
93
|
+
this.open = true;
|
|
94
|
+
}
|
|
95
|
+
/** Closes the palette and restores focus. */
|
|
96
|
+
async close() {
|
|
97
|
+
this.open = false;
|
|
98
|
+
}
|
|
99
|
+
onValueChange() {
|
|
100
|
+
this.commandsOnly = this.value.startsWith('>');
|
|
101
|
+
}
|
|
102
|
+
resetMoved() {
|
|
103
|
+
this.userMoved = false;
|
|
104
|
+
}
|
|
105
|
+
componentWillLoad() {
|
|
106
|
+
this.commandsOnly = this.value.startsWith('>');
|
|
107
|
+
this.readFilled();
|
|
108
|
+
this.prepareItems();
|
|
109
|
+
}
|
|
110
|
+
connectedCallback() {
|
|
111
|
+
document.addEventListener('keydown', this.onDocKeyDown);
|
|
112
|
+
this.observer = new MutationObserver(() => {
|
|
113
|
+
this.readFilled();
|
|
114
|
+
this.prepareItems();
|
|
115
|
+
this.syncActive();
|
|
116
|
+
});
|
|
117
|
+
this.observer.observe(this.el, { childList: true });
|
|
118
|
+
}
|
|
119
|
+
disconnectedCallback() {
|
|
120
|
+
document.removeEventListener('keydown', this.onDocKeyDown);
|
|
121
|
+
this.observer?.disconnect();
|
|
122
|
+
if (this.dialogEl?.open)
|
|
123
|
+
this.dialogEl.close();
|
|
124
|
+
}
|
|
125
|
+
componentDidRender() {
|
|
126
|
+
this.syncDialog();
|
|
127
|
+
this.prepareItems();
|
|
128
|
+
this.syncActive();
|
|
129
|
+
}
|
|
130
|
+
syncDialog() {
|
|
131
|
+
const d = this.dialogEl;
|
|
132
|
+
if (!d)
|
|
133
|
+
return;
|
|
134
|
+
if (this.open && !d.open) {
|
|
135
|
+
this.previousFocus = document.activeElement;
|
|
136
|
+
d.showModal();
|
|
137
|
+
this.focusInput();
|
|
138
|
+
}
|
|
139
|
+
else if (!this.open && d.open) {
|
|
140
|
+
d.close();
|
|
141
|
+
const prev = this.previousFocus;
|
|
142
|
+
this.previousFocus = null;
|
|
143
|
+
if (prev && prev.isConnected)
|
|
144
|
+
prev.focus?.();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
focusInput() {
|
|
148
|
+
this.inputEl?.focus();
|
|
149
|
+
const native = this.inputEl?.shadowRoot?.querySelector('input');
|
|
150
|
+
native?.select?.();
|
|
151
|
+
}
|
|
152
|
+
onDocKeyDown = (ev) => {
|
|
153
|
+
if (!this.hotkey || ev.defaultPrevented)
|
|
154
|
+
return;
|
|
155
|
+
const parts = this.hotkey.toLowerCase().split('+').map(p => p.trim());
|
|
156
|
+
const key = parts[parts.length - 1];
|
|
157
|
+
const mods = parts.slice(0, -1);
|
|
158
|
+
const isMac = /mac|iphone|ipad/i.test(navigator.platform || navigator.userAgent);
|
|
159
|
+
const want = (m) => mods.includes(m);
|
|
160
|
+
const wantMeta = want('meta') || want('cmd') || (want('mod') && isMac);
|
|
161
|
+
const wantCtrl = want('ctrl') || (want('mod') && !isMac);
|
|
162
|
+
if (ev.key.toLowerCase() !== key)
|
|
163
|
+
return;
|
|
164
|
+
if (ev.metaKey !== wantMeta || ev.ctrlKey !== wantCtrl || ev.altKey !== want('alt') || ev.shiftKey !== want('shift'))
|
|
165
|
+
return;
|
|
166
|
+
ev.preventDefault();
|
|
167
|
+
this.setOpen(!this.open);
|
|
168
|
+
};
|
|
169
|
+
setOpen(next) {
|
|
170
|
+
if (this.open === next)
|
|
171
|
+
return;
|
|
172
|
+
this.open = next;
|
|
173
|
+
this.bsOpenChange.emit(next);
|
|
174
|
+
}
|
|
175
|
+
allItems() {
|
|
176
|
+
return Array.from(this.el.children).filter(c => c.tagName === 'BS-SEARCH-ITEM' && ALL_SECTIONS.includes(c.getAttribute('slot')));
|
|
177
|
+
}
|
|
178
|
+
shownSections() {
|
|
179
|
+
if (this.status === 'loading')
|
|
180
|
+
return [];
|
|
181
|
+
if (this.status === 'empty')
|
|
182
|
+
return ['try-instead'];
|
|
183
|
+
return RESULT_SECTIONS;
|
|
184
|
+
}
|
|
185
|
+
visibleItems() {
|
|
186
|
+
if (!this.open)
|
|
187
|
+
return [];
|
|
188
|
+
const items = this.allItems();
|
|
189
|
+
return this.shownSections().flatMap(s => items.filter(i => i.getAttribute('slot') === s));
|
|
190
|
+
}
|
|
191
|
+
enabledItems() {
|
|
192
|
+
return this.visibleItems().filter(i => !i.disabled);
|
|
193
|
+
}
|
|
194
|
+
readFilled() {
|
|
195
|
+
const next = { ...this.filled };
|
|
196
|
+
let changed = false;
|
|
197
|
+
for (const s of ALL_SECTIONS) {
|
|
198
|
+
const has = Array.from(this.el.children).some(c => c.getAttribute('slot') === s);
|
|
199
|
+
if (next[s] !== has) {
|
|
200
|
+
next[s] = has;
|
|
201
|
+
changed = true;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (changed)
|
|
205
|
+
this.filled = next;
|
|
206
|
+
}
|
|
207
|
+
prepareItems() {
|
|
208
|
+
for (const item of this.allItems()) {
|
|
209
|
+
if (item.selectionRole !== 'option')
|
|
210
|
+
item.selectionRole = 'option';
|
|
211
|
+
if (!item.id)
|
|
212
|
+
item.id = `${this.id}-opt-${++this.itemSeq}`;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/** First enabled item is active unless the user moved the highlight (and it still exists). */
|
|
216
|
+
syncActive() {
|
|
217
|
+
const enabled = this.enabledItems();
|
|
218
|
+
let id = this.activeId;
|
|
219
|
+
if (!this.open || !enabled.length)
|
|
220
|
+
id = null;
|
|
221
|
+
else if (!this.userMoved || !enabled.some(i => i.id === id))
|
|
222
|
+
id = enabled[0].id;
|
|
223
|
+
if (id !== this.activeId)
|
|
224
|
+
this.activeId = id;
|
|
225
|
+
let activeItem;
|
|
226
|
+
for (const item of this.allItems()) {
|
|
227
|
+
const on = !!id && item.id === id;
|
|
228
|
+
if (on)
|
|
229
|
+
activeItem = item;
|
|
230
|
+
if (item.active !== on)
|
|
231
|
+
item.active = on;
|
|
232
|
+
}
|
|
233
|
+
// The items live in the light DOM, so an id reference cannot reach them from this shadow root; the
|
|
234
|
+
// element-reference property can (the light DOM is an ancestor scope).
|
|
235
|
+
if (this.comboEl)
|
|
236
|
+
this.comboEl.ariaActiveDescendantElement = activeItem ?? null;
|
|
237
|
+
}
|
|
238
|
+
setActive(item) {
|
|
239
|
+
this.userMoved = true;
|
|
240
|
+
this.activeId = item.id;
|
|
241
|
+
for (const i of this.allItems())
|
|
242
|
+
i.active = i.id === item.id;
|
|
243
|
+
if (this.comboEl)
|
|
244
|
+
this.comboEl.ariaActiveDescendantElement = item;
|
|
245
|
+
item.scrollIntoView?.({ block: 'nearest' });
|
|
246
|
+
}
|
|
247
|
+
onInput = (ev) => {
|
|
248
|
+
ev.stopPropagation();
|
|
249
|
+
this.value = ev.detail;
|
|
250
|
+
this.userMoved = false;
|
|
251
|
+
const commandsOnly = this.value.startsWith('>');
|
|
252
|
+
this.bsInput.emit({ value: this.value, query: (commandsOnly ? this.value.slice(1) : this.value).trim(), commandsOnly });
|
|
253
|
+
};
|
|
254
|
+
onKeyDown = (ev) => {
|
|
255
|
+
switch (ev.key) {
|
|
256
|
+
case 'ArrowDown':
|
|
257
|
+
case 'ArrowUp': {
|
|
258
|
+
ev.preventDefault();
|
|
259
|
+
const items = this.enabledItems();
|
|
260
|
+
if (!items.length)
|
|
261
|
+
return;
|
|
262
|
+
const idx = items.findIndex(i => i.id === this.activeId);
|
|
263
|
+
const next = ev.key === 'ArrowDown' ? (idx + 1) % items.length : idx <= 0 ? items.length - 1 : idx - 1;
|
|
264
|
+
this.setActive(items[next]);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
case 'Enter': {
|
|
268
|
+
const active = this.enabledItems().find(i => i.id === this.activeId);
|
|
269
|
+
if (active) {
|
|
270
|
+
ev.preventDefault();
|
|
271
|
+
active.click();
|
|
272
|
+
}
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
case 'Backspace':
|
|
276
|
+
if (this.scopeLabel && this.value === '')
|
|
277
|
+
this.bsScopeExit.emit();
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
onDialogKeyDown = (ev) => {
|
|
282
|
+
if (ev.key === 'Escape') {
|
|
283
|
+
ev.preventDefault();
|
|
284
|
+
ev.stopPropagation();
|
|
285
|
+
this.setOpen(false);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
/** Native cancel (Esc through another path): handle it ourselves so state and focus stay in sync. */
|
|
289
|
+
onCancel = (ev) => {
|
|
290
|
+
ev.preventDefault();
|
|
291
|
+
this.setOpen(false);
|
|
292
|
+
};
|
|
293
|
+
/** A click that lands on the `<dialog>` itself is a click on the backdrop (the scrim). */
|
|
294
|
+
onDialogClick = (ev) => {
|
|
295
|
+
if (ev.target === this.dialogEl)
|
|
296
|
+
this.setOpen(false);
|
|
297
|
+
};
|
|
298
|
+
onItemSelect(ev) {
|
|
299
|
+
const item = ev.target;
|
|
300
|
+
if (!item || item.tagName !== 'BS-SEARCH-ITEM')
|
|
301
|
+
return;
|
|
302
|
+
ev.stopPropagation();
|
|
303
|
+
this.bsSelect.emit({ value: ev.detail, section: item.getAttribute('slot') ?? '', commandsOnly: this.commandsOnly });
|
|
304
|
+
if (!this.keepOpenOnSelect)
|
|
305
|
+
this.setOpen(false);
|
|
306
|
+
}
|
|
307
|
+
onResultsMouseOver = (ev) => {
|
|
308
|
+
const item = ev.composedPath().find(n => n.tagName === 'BS-SEARCH-ITEM');
|
|
309
|
+
if (item && !item.disabled && item.id !== this.activeId)
|
|
310
|
+
this.setActive(item);
|
|
311
|
+
};
|
|
312
|
+
sectionLabel(s) {
|
|
313
|
+
return {
|
|
314
|
+
recent: this.recentLabel,
|
|
315
|
+
suggested: this.suggestedLabel,
|
|
316
|
+
commands: this.commandsLabel,
|
|
317
|
+
navigation: this.navigationLabel,
|
|
318
|
+
records: this.recordsLabel,
|
|
319
|
+
'try-instead': this.tryInsteadLabel,
|
|
320
|
+
}[s];
|
|
321
|
+
}
|
|
322
|
+
renderSection(s) {
|
|
323
|
+
const hid = `${this.id}-h-${s}`;
|
|
324
|
+
return (h("div", { part: "section", class: "bs-command-palette__section", role: "group", "aria-labelledby": hid }, h("div", { part: "section-header", id: hid, class: "bs-command-palette__section-header" }, this.sectionLabel(s)), h("slot", { name: s })));
|
|
325
|
+
}
|
|
326
|
+
renderHint(keys, label) {
|
|
327
|
+
return (h("span", { part: "hint", class: "bs-command-palette__hint" }, keys, h("span", { class: "bs-command-palette__hint-text" }, label)));
|
|
328
|
+
}
|
|
329
|
+
renderFooter() {
|
|
330
|
+
const arrow = (d) => (h("bs-key", null, h("svg", { slot: "icon", ...svgProps }, h("path", { d: d }))));
|
|
331
|
+
return (h("div", { part: "footer", class: "bs-command-palette__footer" }, this.renderHint([arrow('M12 19V5M5 12l7-7 7 7'), arrow('M12 5v14M5 12l7 7 7-7')], this.navigateLabel), this.renderHint([
|
|
332
|
+
h("bs-key", null, h("svg", { slot: "icon", ...svgProps }, h("path", { d: "M9 14 4 9l5-5" }), h("path", { d: "M4 9h10.5a5.5 5.5 0 0 1 0 11H11" }))),
|
|
333
|
+
], this.openLabel), this.renderHint([h("bs-key", { label: "Esc" })], this.closeLabel), h("span", { class: "bs-command-palette__spacer" }), this.commandsOnly
|
|
334
|
+
? this.renderHint([h("bs-key", { label: "Backspace" })], this.allResultsLabel)
|
|
335
|
+
: this.renderHint([h("bs-key", { label: ">" })], this.commandsOnlyLabel)));
|
|
336
|
+
}
|
|
337
|
+
renderEmpty() {
|
|
338
|
+
return (h("div", { part: "empty", class: "bs-command-palette__empty" }, h("svg", { class: "bs-command-palette__empty-icon", ...svgProps, "stroke-width": "1.5" }, h("circle", { cx: "11", cy: "11", r: "7" }), h("path", { d: "m20 20-3.5-3.5M8.5 11h5" })), h("div", { class: "bs-command-palette__empty-heading" }, this.emptyHeading), h("div", { class: "bs-command-palette__empty-description" }, this.emptyDescription), this.didYouMean && (h("div", { class: "bs-command-palette__empty-description" }, this.didYouMeanLabel, ' ', h("button", { type: "button", class: "bs-command-palette__link", onClick: () => this.bsSuggestion.emit(this.didYouMean) }, this.didYouMean)))));
|
|
339
|
+
}
|
|
340
|
+
announcement() {
|
|
341
|
+
if (!this.open)
|
|
342
|
+
return '';
|
|
343
|
+
if (this.status === 'empty')
|
|
344
|
+
return this.emptyHeading;
|
|
345
|
+
if (this.status === 'loading')
|
|
346
|
+
return this.loadingLabel;
|
|
347
|
+
return '';
|
|
348
|
+
}
|
|
349
|
+
render() {
|
|
350
|
+
const listId = `${this.id}-listbox`;
|
|
351
|
+
const loading = this.status === 'loading';
|
|
352
|
+
const empty = this.status === 'empty';
|
|
353
|
+
const sections = this.shownSections().filter(s => this.filled[s]);
|
|
354
|
+
const hasList = sections.length > 0;
|
|
355
|
+
const showResults = loading || empty || hasList;
|
|
356
|
+
return (h("dialog", { key: '55a38e90a59faa6f0314c7e26ae90326fc82d7dc', 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: '793f0509daba42c4a208d3f5ff3cdfa7d963989a', part: "panel", class: "bs-command-palette__panel" }, h("div", { key: '9af1794a677b7696e242df6a4e9e7775a8efdbea', part: "search", class: "bs-command-palette__search" }, this.scopeLabel && (h("bs-chip-informative", { key: '506dd50cecd610c48d61b24723e5a700a05ec693', class: "bs-command-palette__scope", color: "info" }, this.scopeLabel)), h("div", { key: 'ae0d016a687820e4960b9ff3d59c74cd937796bf', 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: 'd444f70cfd6878434d19364ee1668987ae7da1c2', part: "input", ref: el => (this.inputEl = el), type: "search", value: this.value, placeholder: this.placeholder, onBsInput: this.onInput })), h("span", { key: '8baa325a3af0bd2c4b09e7201c315fbbb37f55e9', class: "bs-command-palette__esc", "aria-hidden": "true" }, h("bs-key", { key: 'a9bc3f695d63b32ab227b93a8a46db33da56da27', label: "Esc" }))), showResults && h("div", { key: 'e97114037b44d14a51872929314773aa637d64f1', class: "bs-command-palette__divider", role: "presentation" }), showResults && (h("div", { key: 'c8bc5e63b0ff902c8a2730775ae7294f025a7dc6', part: "results", class: "bs-command-palette__results", "aria-busy": String(loading), onMouseOver: this.onResultsMouseOver }, loading && (h("div", { key: 'c4bfacce3dc902aab472d825494d1e67ca593c32', class: "bs-command-palette__loading", role: "status" }, h("bs-spinner", { key: 'fcf43a2a30cc94b67075bbded0eaae329c4e18a4', size: "sm" }), h("span", { key: 'b9f195cacbd6ad6acfcd151f47c52b0c937ff1f5' }, this.loadingLabel))), empty && this.renderEmpty(), hasList && (h("div", { key: 'e4da543ad73a9b7dc209876d6e8dd1d057f4048e', 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: 'c4aab5214af689a0332a9730753ca187b91b5ec3', class: "bs-command-palette__live", "aria-live": "polite" }, this.announcement())));
|
|
357
|
+
}
|
|
358
|
+
static get watchers() { return {
|
|
359
|
+
"value": [{
|
|
360
|
+
"onValueChange": 0
|
|
361
|
+
}],
|
|
362
|
+
"status": [{
|
|
363
|
+
"resetMoved": 0
|
|
364
|
+
}],
|
|
365
|
+
"open": [{
|
|
366
|
+
"resetMoved": 0
|
|
367
|
+
}]
|
|
368
|
+
}; }
|
|
369
|
+
};
|
|
370
|
+
BsCommandPalette.style = bsCommandPaletteCss();
|
|
371
|
+
|
|
372
|
+
export { BsCommandPalette as bs_command_palette };
|
|
@@ -49,7 +49,7 @@ const BsComposerStatusBanner = class {
|
|
|
49
49
|
return this.type === 'error' || this.type === 'warning' ? h(WarningIcon, null) : h(ClockIcon, null);
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h("div", { key: '
|
|
52
|
+
return (h("div", { key: '9a18ded6392d5374cdf4357650498f1eff8bc896', role: this.roleForType(), "aria-busy": this.loading ? 'true' : undefined, class: `bs-composer-status-banner bs-composer-status-banner--${this.type}` }, h("div", { key: '8acfc215792a889e80d01a08e86a0aa96bfe8967', class: "bs-composer-status-banner__message-group" }, this.showIcon && (h("span", { key: '2a4e0a5fe6b4f2fef30d534eae0c15009f813d33', part: "icon", class: "bs-composer-status-banner__icon" }, h("slot", { key: '5378cfaf8b1fed689eedac4f6a2bf892dda043f8', name: "icon" }, this.renderDefaultIcon()))), h("p", { key: '9fe869051bbf300c12f0ec8006d409abf4bebf56', part: "message", class: "bs-composer-status-banner__message" }, this.message)), this.showButton && (h("button", { key: '6fe2f55c57523ee917ae6d96e2a070f1006f0a44', type: "button", part: "action", class: "bs-composer-status-banner__action", onClick: this.onActionClick }, this.actionLabel)), this.allowClose && (h("button", { key: '18d5ec846134a57c11c46810bb0b35acac0a20b6', type: "button", part: "close", class: "bs-composer-status-banner__close", "aria-label": this.closeLabel, onClick: this.onCloseClick }, h(CloseIcon, { key: 'cbf7993e299eacc8a05efc55cf0dc4539ba9d424' })))));
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
const SpinnerIcon = () => (h("svg", { class: "bs-composer-status-banner__spinner", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("circle", { cx: "10", cy: "10", r: "7.25", stroke: "currentColor", "stroke-opacity": "0.25", "stroke-width": "1.5" }), h("path", { d: "M17.25 10A7.25 7.25 0 0 0 10 2.75", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round" })));
|
|
@@ -197,7 +197,7 @@ const BsComposer = class {
|
|
|
197
197
|
const placeholder = this.placeholder ?? DEFAULT_PLACEHOLDERS[this.variant];
|
|
198
198
|
const disabled = this.state === 'disabled';
|
|
199
199
|
const recording = this.state === 'recording';
|
|
200
|
-
return (h("div", { key: '
|
|
200
|
+
return (h("div", { key: 'f1ccd8ab2299efcf83dc8f858845e87ba87f9c41', class: `bs-composer bs-composer--${this.state} bs-composer--${this.variant}` }, h("div", { key: '2edd5ab5b6a67d108d2f8067a639e74b6ab4f39f', part: "attachments", class: `bs-composer__attachments-row ${this.hasAttachments ? 'bs-composer__attachments-row--visible' : ''}` }, h("slot", { key: 'a7b2acfea4b2498792749e24aaf9329e521a93df', name: "attachments", onSlotchange: this.onAttachmentsSlotchange })), h("div", { key: '0de284b100f38a60b472eadfd89f06690023a1a1', class: "bs-composer__text-row" }, h("textarea", { key: '0c46b8e4f54234b2df62af566f0b6bf9b1f978d1', ref: el => (this.inputEl = el), part: "input", class: "bs-composer__input", rows: 1, value: this.value, placeholder: placeholder, disabled: disabled, maxLength: this.maxLength, "aria-label": this.ariaLabel, onInput: this.onInput, onKeyDown: this.onInputKeydown })), h("div", { key: 'a3ca22299095e398b6dd7a62c9b6ce93a4d49dab', class: "bs-composer__controls-row" }, !this.hideAttach && (h("button", { key: 'c06cad301027ce2fdef180189945bebd2f876081', type: "button", part: "attach", class: "bs-composer__attach", "aria-label": this.attachLabel, onClick: this.onAttachClick }, h(PlusIcon, { key: 'd863cc1734ca9b67447b2cbbe19a2ba75266d169' }))), recording ? (h("span", { class: "bs-composer__waveform", "aria-hidden": "true" }, WAVEFORM_BAR_HEIGHTS.map(height => (h("span", { class: "bs-composer__waveform-bar", style: { '--bs-composer-bar-height': `${height}px` } }))))) : (h("span", { class: "bs-composer__spacer" })), !this.hideMic && (h("button", { key: 'aadf13bf18c9215045cf7ea326bbc1495ab21288', type: "button", part: "mic", class: `bs-composer__mic ${recording ? 'bs-composer__mic--recording' : ''}`, "aria-label": recording ? this.stopRecordingLabel : this.micLabel, disabled: disabled, onClick: this.onMicClick }, recording ? h(StopIcon, null) : h(MicIcon, null))), h("button", { key: '36ca7d3824349cd65473553e0a20b14c41b74b8b', type: "button", part: "action", class: `bs-composer__action bs-composer__action--${this.state}`, "aria-label": this.actionLabel(), disabled: disabled, "aria-busy": this.loading && this.state === 'idle' ? 'true' : undefined, onClick: this.onActionClick }, this.renderActionIcon()), h("slot", { key: '0965e567d4cb590d7cd072ecf72c10c2c97e1f69', name: "actions-end" }))));
|
|
201
201
|
}
|
|
202
202
|
static get delegatesFocus() { return true; }
|
|
203
203
|
};
|
|
@@ -13,7 +13,7 @@ const BsContainer = class {
|
|
|
13
13
|
padding = '300';
|
|
14
14
|
render() {
|
|
15
15
|
const pad = SPACING_TOKENS.includes(String(this.padding)) ? String(this.padding) : '300';
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'af5052dbda078e66b8afcf84e842f124748353b9', style: { '--bs-container-padding-token': `var(--bs-spacing-${pad})` } }, h("slot", { key: '2493e7614d7fcaf07b24e350e68a65b06fd77640' })));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
BsContainer.style = bsContainerCss();
|
|
@@ -74,11 +74,11 @@ const BsDataTable = class {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h("table", { key: '
|
|
77
|
+
return (h("table", { key: '72d4058323ac137aa589476e5b89ed47bd8b996e', part: "table", class: "bs-data-table" }, h("thead", { key: '65e27a1aba0b9eb6892df5b0581672c9fb18ce13', part: "head" }, h("tr", { key: '690d1fab0effa5b0e9e44160ac91d77ab1290079' }, this.selectable && (h("th", { key: 'cf96e314093743b5e6341cf2fce3e0ac6b5e99ef', class: "bs-data-table__select-col" }, this.rows.length > 0 && (h("input", { key: 'fe6fe4d41420f9a37f11337044173ce5b13340d4', type: "checkbox", "aria-label": this.selectAllLabel, checked: this.selectedIds.size > 0 && this.selectedIds.size === this.rows.length, indeterminate: this.selectedIds.size > 0 && this.selectedIds.size < this.rows.length, onChange: this.onSelectAllChange })))), this.columns.map(column => {
|
|
78
78
|
const isSorted = this.sortColumn === column.key;
|
|
79
79
|
const ariaSort = column.sortable ? (isSorted ? (this.sortDirection === 'asc' ? 'ascending' : 'descending') : 'none') : undefined;
|
|
80
80
|
return (h("th", { part: "header-cell", class: "bs-data-table__header-cell", "aria-sort": ariaSort }, column.sortable ? (h("button", { type: "button", class: "bs-data-table__sort-button", onClick: () => this.onHeaderClick(column) }, column.label, isSorted && h("span", { class: "bs-data-table__sort-indicator" }, this.sortDirection === 'asc' ? ' ▲' : ' ▼'))) : (column.label)));
|
|
81
|
-
}))), h("tbody", { key: '
|
|
81
|
+
}))), h("tbody", { key: '34e3bb93c663862d1d8b29956c22392b3c2400ac', part: "body" }, this.rows.map(row => (h("tr", { part: "row", class: "bs-data-table__row" }, this.selectable && (h("td", { class: "bs-data-table__select-col" }, h("input", { type: "checkbox", checked: this.selectedIds.has(row.id), onChange: ev => this.onRowCheckboxChange(row, ev) }))), this.columns.map(column => this.cellRenderer ? (
|
|
82
82
|
// cellRenderer is a developer-supplied, trusted function (JS-property-only, never
|
|
83
83
|
// derived from untrusted input) -- its HTML output is intentionally not escaped,
|
|
84
84
|
// same trust model as React's dangerouslySetInnerHTML.
|