@brandsync/wc 1.14.0 → 1.16.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 +13 -0
- package/REFERENCE.md +159 -0
- package/custom-elements.json +1739 -196
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-e0927a9a.entry.js → p-0159f0da.entry.js} +1 -1
- package/dist/brandsync-wc/p-0228a584.entry.js +1 -0
- package/dist/brandsync-wc/{p-9d660c03.entry.js → p-0f97fe35.entry.js} +1 -1
- package/dist/brandsync-wc/{p-31cd66e0.entry.js → p-15f4c343.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b6ac1b50.entry.js → p-1ca8b01e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-47cd19aa.entry.js → p-23379d7c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-16c78ff6.entry.js → p-298158da.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b793a0d6.entry.js → p-2e285364.entry.js} +1 -1
- package/dist/brandsync-wc/{p-204cc690.entry.js → p-3488c4fc.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e1b7bea7.entry.js → p-34b0c048.entry.js} +1 -1
- package/dist/brandsync-wc/p-36fe783a.entry.js +1 -0
- package/dist/brandsync-wc/{p-8184d7de.entry.js → p-38ac9aad.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c488cc8b.entry.js → p-38fe9d07.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6e923ebc.entry.js → p-401b3d3d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2c1efaa1.entry.js → p-42b79d95.entry.js} +1 -1
- package/dist/brandsync-wc/p-45986ad4.entry.js +1 -0
- package/dist/brandsync-wc/{p-227a5182.entry.js → p-4ca40386.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9125632c.entry.js → p-4ed00786.entry.js} +1 -1
- package/dist/brandsync-wc/{p-80700878.entry.js → p-521d0fc2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bee30626.entry.js → p-538d5b58.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9fa67924.entry.js → p-54f9529f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1b5cc9b8.entry.js → p-5a45ef51.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ce16f038.entry.js → p-5ed1f45e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-10290c41.entry.js → p-65fa1b21.entry.js} +1 -1
- package/dist/brandsync-wc/{p-df3e7973.entry.js → p-67629178.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e6fc2cd4.entry.js → p-6cb21302.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3477539c.entry.js → p-76748795.entry.js} +1 -1
- package/dist/brandsync-wc/p-769c5b4a.entry.js +1 -0
- package/dist/brandsync-wc/p-7b3518b8.entry.js +1 -0
- package/dist/brandsync-wc/p-7dc59e0b.entry.js +1 -0
- package/dist/brandsync-wc/{p-658532b7.entry.js → p-86774165.entry.js} +1 -1
- package/dist/brandsync-wc/{p-cc1055e6.entry.js → p-89ea6366.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4b40a596.entry.js → p-912629c6.entry.js} +1 -1
- package/dist/brandsync-wc/p-949a4270.entry.js +1 -0
- package/dist/brandsync-wc/{p-c67bc817.entry.js → p-9beeb30c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d892277f.entry.js → p-a12691d8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-315b510c.entry.js → p-a56bc608.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2967240d.entry.js → p-abfa43f5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-686297f1.entry.js → p-b6081bba.entry.js} +1 -1
- package/dist/brandsync-wc/{p-833f9dc4.entry.js → p-b663ee67.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dd52209a.entry.js → p-b67a0c8f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fa6b9750.entry.js → p-b9c9bcba.entry.js} +1 -1
- package/dist/brandsync-wc/{p-617bd76d.entry.js → p-baa3d37a.entry.js} +1 -1
- package/dist/brandsync-wc/p-c25553bc.entry.js +1 -0
- package/dist/brandsync-wc/{p-45cb3e6d.entry.js → p-c85fe37b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2e68b76e.entry.js → p-cc4c8c1d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-056608f0.entry.js → p-cf287ff1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-cc25ee67.entry.js → p-d165a742.entry.js} +1 -1
- package/dist/brandsync-wc/{p-51f40972.entry.js → p-d81c4f58.entry.js} +1 -1
- package/dist/brandsync-wc/{p-94d435a2.entry.js → p-dcacee29.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3dabf202.entry.js → p-e5f50e93.entry.js} +1 -1
- package/dist/brandsync-wc/{p-221244a9.entry.js → p-e72dd05e.entry.js} +1 -1
- package/dist/brandsync-wc/p-e9afb553.entry.js +1 -0
- package/dist/brandsync-wc/{p-0cb6fc39.entry.js → p-e9b6b30f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a2e59aca.entry.js → p-ed71eb02.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e65d286c.entry.js → p-f0be9125.entry.js} +1 -1
- package/dist/brandsync-wc/p-f3cc961b.entry.js +1 -0
- package/dist/brandsync-wc/{p-6ca1e51b.entry.js → p-f4d1d56e.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 +19 -0
- 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-container.cjs.entry.js +23 -0
- 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 +29 -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-grid.cjs.entry.js +55 -0
- 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-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-session-timeout.cjs.entry.js +1 -1
- 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 +81 -0
- 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 +9 -0
- package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
- package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
- package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
- package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
- package/dist/collection/components/bs-app-shell/bs-app-shell.cmp.test.js +71 -0
- package/dist/collection/components/bs-app-shell/bs-app-shell.css +58 -0
- package/dist/collection/components/bs-app-shell/bs-app-shell.js +79 -0
- package/dist/collection/components/bs-app-shell/bs-app-shell.stories.js +34 -0
- 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-container/bs-container.cmp.test.js +59 -0
- package/dist/collection/components/bs-container/bs-container.css +16 -0
- package/dist/collection/components/bs-container/bs-container.js +88 -0
- package/dist/collection/components/bs-container/bs-container.stories.js +24 -0
- 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.cmp.test.js +47 -0
- package/dist/collection/components/bs-divider/bs-divider.css +47 -0
- package/dist/collection/components/bs-divider/bs-divider.js +147 -0
- package/dist/collection/components/bs-divider/bs-divider.stories.js +32 -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-grid/bs-grid.cmp.test.js +58 -0
- package/dist/collection/components/bs-grid/bs-grid.css +10 -0
- package/dist/collection/components/bs-grid/bs-grid.js +208 -0
- package/dist/collection/components/bs-grid/bs-grid.stories.js +38 -0
- 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-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-session-timeout/bs-session-timeout.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.cmp.test.js +113 -0
- package/dist/collection/components/bs-stack/bs-stack.css +22 -0
- package/dist/collection/components/bs-stack/bs-stack.js +252 -0
- package/dist/collection/components/bs-stack/bs-stack.stories.js +36 -0
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
- package/dist/collection/components/bs-switch/bs-switch.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.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.d.ts +11 -0
- package/dist/components/bs-app-shell.js +1 -0
- 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-container.d.ts +11 -0
- package/dist/components/bs-container.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/bs-divider.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-grid.d.ts +11 -0
- package/dist/components/bs-grid.js +1 -0
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-icon-tile.js +1 -1
- package/dist/components/bs-inline-tab.js +1 -1
- package/dist/components/bs-input.js +1 -1
- 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-session-timeout.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.d.ts +11 -0
- package/dist/components/bs-stack.js +1 -0
- package/dist/components/bs-stepper-step.js +1 -1
- package/dist/components/bs-stepper.js +1 -1
- package/dist/components/bs-switch.js +1 -1
- package/dist/components/bs-tab.js +1 -1
- package/dist/components/bs-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-CrmEXUwm.js → p-B128GX8H.js} +1 -1
- package/dist/components/{p-Rx4bpeYN.js → p-B80vOwH6.js} +1 -1
- package/dist/components/p-BaJEv6rL.js +1 -0
- package/dist/components/{p-BESyTlfT.js → p-Bb1-2M8K.js} +1 -1
- package/dist/components/{p-nC2VxRNo.js → p-BdkE4auv.js} +1 -1
- package/dist/components/{p-BIW9eUic.js → p-BsbtyRJV.js} +1 -1
- package/dist/components/{p-BJR8KVFc.js → p-ByLUtXxO.js} +1 -1
- package/dist/components/p-C7RZ6qZC.js +1 -0
- package/dist/components/{p-HzaOqQ0U.js → p-C93ymWm7.js} +1 -1
- package/dist/components/{p-DpVeeIko.js → p-CK7fiES5.js} +1 -1
- package/dist/components/{p-QnTjSed5.js → p-CQjSDdH7.js} +1 -1
- package/dist/components/{p-HAmR4gM2.js → p-D0KM1R2i.js} +1 -1
- package/dist/components/{p-CDYw4Eyj.js → p-DFKc3lLA.js} +1 -1
- package/dist/components/{p-DAwSBMeM.js → p-GTDI4Ibw.js} +1 -1
- package/dist/components/{p-Dm3TqgV_.js → p-J9cxcDhY.js} +1 -1
- package/dist/components/{p-CiSEDtbE.js → p-kDJsWjTN.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 +17 -0
- 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-container.entry.js +21 -0
- 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 +27 -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-grid.entry.js +53 -0
- 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-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-session-timeout.entry.js +1 -1
- 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 +79 -0
- 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-app-shell/bs-app-shell.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-app-shell/bs-app-shell.d.ts +40 -0
- package/dist/types/components/bs-app-shell/bs-app-shell.stories.d.ts +11 -0
- package/dist/types/components/bs-container/bs-container.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-container/bs-container.d.ts +22 -0
- package/dist/types/components/bs-container/bs-container.stories.d.ts +15 -0
- package/dist/types/components/bs-divider/bs-divider.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-divider/bs-divider.d.ts +29 -0
- package/dist/types/components/bs-divider/bs-divider.stories.d.ts +16 -0
- package/dist/types/components/bs-grid/bs-grid.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-grid/bs-grid.d.ts +43 -0
- package/dist/types/components/bs-grid/bs-grid.stories.d.ts +18 -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-stack/bs-stack.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-stack/bs-stack.d.ts +46 -0
- package/dist/types/components/bs-stack/bs-stack.stories.d.ts +18 -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 +1257 -0
- package/package.json +1 -1
- package/reference.d.ts +27 -0
- package/reference.json +428 -0
- package/dist/brandsync-wc/p-0e738622.entry.js +0 -1
- package/dist/components/p-zscW5LNR.js +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* A single row of a list: optional leading media (avatar, icon, image), a label, a description and
|
|
4
|
+
* optional support text, and an optional trailing caret or custom trailing content.
|
|
5
|
+
*
|
|
6
|
+
* ## When to use
|
|
7
|
+
* - As a child of `bs-list`, one per record, person, file or option.
|
|
8
|
+
* - Standalone as a plain information row (non-interactive), or with `interactive` as a button-like row.
|
|
9
|
+
*
|
|
10
|
+
* ## When not to use
|
|
11
|
+
* - A popup list of actions -- use `bs-menu` / `bs-menu-item`.
|
|
12
|
+
* - App navigation with an active route -- use `bs-navigation-drawer-item`.
|
|
13
|
+
* - Tabular data with columns, sorting or paging -- use `bs-data-table`.
|
|
14
|
+
*
|
|
15
|
+
* Composed from: leading media (`bs-avatar`) and trailing controls (`bs-icon-button`) are supplied by the
|
|
16
|
+
* consumer through the `leading` and `trailing` slots; the row itself only reserves layout. The default
|
|
17
|
+
* trailing caret is inline SVG.
|
|
18
|
+
*
|
|
19
|
+
* Roles are driven by the parent `bs-list` (via `selectionRole`). Standalone, the row has no role
|
|
20
|
+
* (`listitem` is only valid inside a list) unless `interactive` is set, which makes it a focusable
|
|
21
|
+
* `role="button"`.
|
|
22
|
+
*
|
|
23
|
+
* @slot leading - Leading media: a `bs-avatar size="lg"` (64px), a 32px icon, or a 72x56 `<img>`.
|
|
24
|
+
* @slot trailing - Replaces the default caret. Rendered when `showArrow` is set or the slot has content.
|
|
25
|
+
* @slot - Rich content that replaces `label`, `description` and `supportText` entirely.
|
|
26
|
+
* @part container - The row.
|
|
27
|
+
* @part leading - Wrapper around the leading slot.
|
|
28
|
+
* @part content - The text column.
|
|
29
|
+
* @part label - The label line.
|
|
30
|
+
* @part description - The description line.
|
|
31
|
+
* @part support-text - The support text line.
|
|
32
|
+
* @part trailing - Wrapper around the trailing slot / caret.
|
|
33
|
+
* @prop --bs-list-item-min-height - Minimum row height. Aliased to `--bs-spacing-1000`.
|
|
34
|
+
* @prop --bs-list-item-padding-y - Aliased to `--bs-spacing-150`.
|
|
35
|
+
* @prop --bs-list-item-padding-x - Aliased to `--bs-spacing-200`.
|
|
36
|
+
* @prop --bs-list-item-gap - Gap between leading, content and trailing. Aliased to `--bs-spacing-200`.
|
|
37
|
+
* @prop --bs-list-item-content-gap - Gap between text lines. Aliased to `--bs-spacing-25`.
|
|
38
|
+
* @prop --bs-list-item-radius - Aliased to `--bs-border-radius-100`.
|
|
39
|
+
* @prop --bs-list-item-bg - Enabled background. `transparent`.
|
|
40
|
+
* @prop --bs-list-item-bg-hover - Aliased to `--bs-surface-hover`.
|
|
41
|
+
* @prop --bs-list-item-bg-pressed - Aliased to `--bs-surface-pressed`.
|
|
42
|
+
* @prop --bs-list-item-bg-focus - Aliased to `--bs-surface-focus`.
|
|
43
|
+
* @prop --bs-list-item-bg-selected - Aliased to `--bs-surface-selected`.
|
|
44
|
+
* @prop --bs-list-item-bg-selected-hover - Aliased to `--bs-surface-selected-hover`.
|
|
45
|
+
* @prop --bs-list-item-bg-selected-pressed - Aliased to `--bs-surface-selected-pressed`.
|
|
46
|
+
* @prop --bs-list-item-bg-selected-focus - Aliased to `--bs-surface-selected-focus`.
|
|
47
|
+
* @prop --bs-list-item-bg-disabled - Aliased to `--bs-surface-action-disabled`.
|
|
48
|
+
* @prop --bs-list-item-color - Text colour. Aliased to `--bs-text-default`.
|
|
49
|
+
* @prop --bs-list-item-color-disabled - Aliased to `--bs-text-on-disabled`.
|
|
50
|
+
* @prop --bs-list-item-focus-ring - Focus ring colour. Aliased to `--bs-border-neutral-focus`.
|
|
51
|
+
* @prop --bs-list-item-image-width - Leading image width. 72px.
|
|
52
|
+
* @prop --bs-list-item-image-height - Leading image height. 56px.
|
|
53
|
+
*/
|
|
54
|
+
export declare class BsListItem {
|
|
55
|
+
el: HTMLElement;
|
|
56
|
+
/** First text line (semibold). */
|
|
57
|
+
label: string | null;
|
|
58
|
+
/** Second text line (the "paragraph"). */
|
|
59
|
+
description: string | null;
|
|
60
|
+
/** Optional third text line. */
|
|
61
|
+
supportText: string | null;
|
|
62
|
+
/** Marks the row as selected. Managed by the parent `bs-list` when it is `selectable`. */
|
|
63
|
+
selected: boolean;
|
|
64
|
+
/** Disables the row: dimmed, not focusable, no click event. */
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
/** Shows a trailing caret (unless the `trailing` slot has content). */
|
|
67
|
+
showArrow: boolean;
|
|
68
|
+
/** Identifies the item; emitted by `bsItemClick` and matched against `bs-list`'s `value`. */
|
|
69
|
+
value: string | null;
|
|
70
|
+
/** Makes a standalone row a focusable `role="button"` that emits `bsItemClick`. */
|
|
71
|
+
interactive: boolean;
|
|
72
|
+
/** Set by the parent `bs-list`: `listitem` (plain list) or `option` (selectable list). Do not set by hand. */
|
|
73
|
+
selectionRole: 'listitem' | 'option' | null;
|
|
74
|
+
hasLeading: boolean;
|
|
75
|
+
hasTrailing: boolean;
|
|
76
|
+
hasDefault: boolean;
|
|
77
|
+
/** Fires on click / Enter / Space when the row is interactive and not disabled. Payload is `value`. */
|
|
78
|
+
bsItemClick: EventEmitter<string | null>;
|
|
79
|
+
private get isInteractive();
|
|
80
|
+
private activate;
|
|
81
|
+
onClick(): void;
|
|
82
|
+
onKeyDown(ev: KeyboardEvent): void;
|
|
83
|
+
private slotHas;
|
|
84
|
+
render(): any;
|
|
85
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
interface BsListItemArgs {
|
|
3
|
+
label: string;
|
|
4
|
+
description: string;
|
|
5
|
+
supportText: string;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
showArrow: boolean;
|
|
9
|
+
interactive: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const meta: Meta<BsListItemArgs>;
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<BsListItemArgs>;
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
export declare const Text: Story;
|
|
16
|
+
export declare const Avatar: Story;
|
|
17
|
+
export declare const Icon: Story;
|
|
18
|
+
export declare const Image: Story;
|
|
19
|
+
export declare const Selected: Story;
|
|
20
|
+
export declare const Disabled: Story;
|
|
21
|
+
export declare const WithArrow: Story;
|
|
22
|
+
export declare const WithSupportText: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type BsStackDirection = 'vertical' | 'horizontal';
|
|
2
|
+
export type BsStackAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
3
|
+
export type BsStackJustify = 'start' | 'center' | 'end' | 'between' | 'around';
|
|
4
|
+
/**
|
|
5
|
+
* A flex layout that arranges its children in a row or column with a token-based gap, optionally
|
|
6
|
+
* drawing a divider between children.
|
|
7
|
+
*
|
|
8
|
+
* Built from: `bs-divider` (when `divider` is set).
|
|
9
|
+
*
|
|
10
|
+
* With `divider`, each child is given a generated `slot="bs-stack-item-N"` attribute (plus a
|
|
11
|
+
* `data-bs-stack-item` marker) so a divider can be rendered between the named slots. Light-DOM
|
|
12
|
+
* nodes are never moved; the attributes are removed again when `divider` is turned off.
|
|
13
|
+
*
|
|
14
|
+
* ## When to use
|
|
15
|
+
* - Spacing and aligning a short run of siblings (form fields, button rows, card content).
|
|
16
|
+
*
|
|
17
|
+
* ## When not to use
|
|
18
|
+
* - Two-dimensional grids (use CSS grid).
|
|
19
|
+
* - Resizable panes (use `bs-split-pane`).
|
|
20
|
+
*
|
|
21
|
+
* @slot - The items to arrange.
|
|
22
|
+
* @part divider - Each generated `bs-divider` (only with `divider`).
|
|
23
|
+
* @prop --bs-stack-gap - Space between items. Defaults from the `gap` prop (`--bs-spacing-<gap>`); may be overridden directly.
|
|
24
|
+
*/
|
|
25
|
+
export declare class BsStack {
|
|
26
|
+
el: HTMLElement;
|
|
27
|
+
/** Main axis: `vertical` stacks children in a column, `horizontal` in a row. */
|
|
28
|
+
direction: BsStackDirection;
|
|
29
|
+
/** Spacing token name (e.g. `200` => `--bs-spacing-200`). Invalid values fall back to `100`. */
|
|
30
|
+
gap: string;
|
|
31
|
+
/** Cross-axis alignment. */
|
|
32
|
+
align: BsStackAlign;
|
|
33
|
+
/** Main-axis distribution. */
|
|
34
|
+
justify: BsStackJustify;
|
|
35
|
+
/** Lets items wrap onto further lines. */
|
|
36
|
+
wrap: boolean;
|
|
37
|
+
/** Renders a decorative `bs-divider` between each child. */
|
|
38
|
+
divider: boolean;
|
|
39
|
+
itemCount: number;
|
|
40
|
+
dividerChanged(): void;
|
|
41
|
+
private sync;
|
|
42
|
+
private clearSlots;
|
|
43
|
+
componentDidLoad(): void;
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
render(): any;
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
interface BsStackArgs {
|
|
3
|
+
direction: 'vertical' | 'horizontal';
|
|
4
|
+
gap: string;
|
|
5
|
+
align: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
6
|
+
justify: 'start' | 'center' | 'end' | 'between' | 'around';
|
|
7
|
+
wrap: boolean;
|
|
8
|
+
divider: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const meta: Meta<BsStackArgs>;
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<BsStackArgs>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Horizontal: Story;
|
|
15
|
+
export declare const WithDividers: Story;
|
|
16
|
+
export declare const HorizontalWithDividers: Story;
|
|
17
|
+
export declare const Wrapping: Story;
|
|
18
|
+
export declare const SpaceBetween: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* A hierarchical list of `bs-tree-item` rows with single selection, expand/collapse and the
|
|
4
|
+
* WAI-ARIA tree keyboard pattern.
|
|
5
|
+
*
|
|
6
|
+
* The tree owns `role="tree"`, the roving `tabindex` (exactly one enabled, visible item is
|
|
7
|
+
* tabbable: the selected one, otherwise the first), selection (kept in sync with each item's
|
|
8
|
+
* `selected`) and keyboard navigation over the visible (rendered, non-disabled) items. Items own
|
|
9
|
+
* their expansion state and emit `bsSelect` / `bsToggle`.
|
|
10
|
+
*
|
|
11
|
+
* Built from: `bs-tree-item` rows.
|
|
12
|
+
*
|
|
13
|
+
* @slot - Default slot: top-level `bs-tree-item` elements (nested ones go inside their parent item).
|
|
14
|
+
* @part container - The `role="tree"` wrapper.
|
|
15
|
+
*/
|
|
16
|
+
export declare class BsTree {
|
|
17
|
+
el: HTMLElement;
|
|
18
|
+
/** Accessible name of the tree. Bound onto the internal `role="tree"` element (an `aria-label`
|
|
19
|
+
* on the host would not reach it). */
|
|
20
|
+
ariaLabel: string | null;
|
|
21
|
+
/** The `value` (or, when empty, the `label`) of the selected item. Two-way synced with each
|
|
22
|
+
* item's `selected` (single selection). Setting it from code does not emit `bsChange`. */
|
|
23
|
+
value: string;
|
|
24
|
+
/** When `false`, rows do not select (clicks and Enter/Space do nothing) but parents still
|
|
25
|
+
* expand and collapse. */
|
|
26
|
+
selectable: boolean;
|
|
27
|
+
/** Emitted when the user changes the selection (click, Enter/Space), with the new value. Not
|
|
28
|
+
* emitted when `value` is set from code. */
|
|
29
|
+
bsChange: EventEmitter<string>;
|
|
30
|
+
private observer?;
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
componentDidLoad(): void;
|
|
34
|
+
onValueChange(): void;
|
|
35
|
+
/** Expands every parent item. */
|
|
36
|
+
expandAll(): Promise<void>;
|
|
37
|
+
/** Collapses every parent item. */
|
|
38
|
+
collapseAll(): Promise<void>;
|
|
39
|
+
private items;
|
|
40
|
+
private keyOf;
|
|
41
|
+
private isParent;
|
|
42
|
+
private isRendered;
|
|
43
|
+
private navigable;
|
|
44
|
+
private syncSelection;
|
|
45
|
+
/** Roving tabindex: one tabbable item (selected if navigable, else the first). */
|
|
46
|
+
private refresh;
|
|
47
|
+
private focusItem;
|
|
48
|
+
private select;
|
|
49
|
+
onItemSelect(e: CustomEvent<string>): void;
|
|
50
|
+
onFocusIn(e: FocusEvent): void;
|
|
51
|
+
onKeyDown(e: KeyboardEvent): void;
|
|
52
|
+
render(): any;
|
|
53
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
interface BsTreeArgs {
|
|
3
|
+
value: string;
|
|
4
|
+
selectable: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const meta: Meta<BsTreeArgs>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<BsTreeArgs>;
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
export declare const ControlledValue: Story;
|
|
11
|
+
export declare const NonSelectable: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* A single row of a `bs-tree`. An item that contains child `bs-tree-item` elements is a parent
|
|
4
|
+
* (it gets an expand/collapse caret and a folder icon); an item without children is a leaf (no
|
|
5
|
+
* caret, file icon).
|
|
6
|
+
*
|
|
7
|
+
* The host carries `role="treeitem"` and the `aria-*` state; the owning `bs-tree` manages the
|
|
8
|
+
* roving `tabindex`, selection and keyboard navigation. Nesting depth is computed automatically
|
|
9
|
+
* from the number of ancestor `bs-tree-item` elements and exposed as `aria-level` -- it is not a
|
|
10
|
+
* prop. Clicking the row selects it; clicking the caret (or pressing Right/Left in a tree) toggles
|
|
11
|
+
* expansion -- the two are deliberately separate.
|
|
12
|
+
*
|
|
13
|
+
* Built from: inline SVG icons only (no existing `bs-*` component covers a tree row).
|
|
14
|
+
*
|
|
15
|
+
* @slot - Default slot: child `bs-tree-item` elements (the subtree). Only rendered, inside a
|
|
16
|
+
* `role="group"` wrapper, while the item is expanded; collapsed children are not accessible.
|
|
17
|
+
* @slot label - Overrides the `label` text.
|
|
18
|
+
* @slot icon - Overrides the default folder / file icon. Only used when `showIcon` is `true`.
|
|
19
|
+
* @part container - The highlighted row pill (carries the hover / selected / focus states).
|
|
20
|
+
* @part caret - The expand/collapse caret (parents only).
|
|
21
|
+
* @part icon - The icon wrapper.
|
|
22
|
+
* @part label - The label wrapper.
|
|
23
|
+
* @part group - The `role="group"` wrapper around the child items (while expanded).
|
|
24
|
+
*/
|
|
25
|
+
export declare class BsTreeItem {
|
|
26
|
+
el: HTMLElement;
|
|
27
|
+
/** The row's text. Use the `label` slot for rich content. */
|
|
28
|
+
label: string;
|
|
29
|
+
/** Whether the child items are shown. Only meaningful for parents. Mutable: the caret, the
|
|
30
|
+
* keyboard and the owning tree toggle it. Reflected. */
|
|
31
|
+
expanded: boolean;
|
|
32
|
+
/** Marks the row as selected. Owned by the tree (single selection, synced with its `value`).
|
|
33
|
+
* Reflected. */
|
|
34
|
+
selected: boolean;
|
|
35
|
+
/** Disables the row: not focusable, ignores clicks, dimmed. Reflected. */
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
/** Shows the leading icon (default folder / file, or the `icon` slot). */
|
|
38
|
+
showIcon: boolean;
|
|
39
|
+
/** Identifier used in events and for the tree's `value`. Falls back to `label` when empty. */
|
|
40
|
+
value: string;
|
|
41
|
+
/** Emitted when the user toggles expansion (caret click or keyboard), with the new `expanded`
|
|
42
|
+
* value. Not emitted when `expanded` is set from code. */
|
|
43
|
+
bsToggle: EventEmitter<boolean>;
|
|
44
|
+
/** Emitted (bubbling, composed) when the user activates the row, with the item's value. The
|
|
45
|
+
* owning `bs-tree` listens and updates the selection. */
|
|
46
|
+
bsSelect: EventEmitter<string>;
|
|
47
|
+
level: number;
|
|
48
|
+
hasChildren: boolean;
|
|
49
|
+
private observer?;
|
|
50
|
+
connectedCallback(): void;
|
|
51
|
+
disconnectedCallback(): void;
|
|
52
|
+
private computeLevel;
|
|
53
|
+
private computeHasChildren;
|
|
54
|
+
/** Sets `expanded` as a user action: updates the prop and emits `bsToggle`. No-op for leaves,
|
|
55
|
+
* disabled items, or when the value would not change. */
|
|
56
|
+
setExpanded(next: boolean): Promise<void>;
|
|
57
|
+
private onCaretClick;
|
|
58
|
+
private onRowClick;
|
|
59
|
+
render(): any;
|
|
60
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
interface BsTreeItemArgs {
|
|
3
|
+
label: string;
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
showIcon: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const meta: Meta<BsTreeItemArgs>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<BsTreeItemArgs>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const Open: Story;
|
|
14
|
+
export declare const Selected: Story;
|
|
15
|
+
export declare const Disabled: Story;
|
|
16
|
+
export declare const WithoutIcon: Story;
|
|
17
|
+
export declare const Child: Story;
|
|
18
|
+
export declare const Levels: Story;
|
|
19
|
+
export declare const CustomIcon: Story;
|