@brandsync/wc 1.6.0 → 1.8.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/custom-elements.json +1302 -90
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-387ed85f.entry.js → p-002d258d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e35249c4.entry.js → p-03b08508.entry.js} +1 -1
- package/dist/brandsync-wc/{p-db46376b.entry.js → p-051d3064.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c054f493.entry.js → p-05c7de28.entry.js} +1 -1
- package/dist/brandsync-wc/{p-639946e7.entry.js → p-062cfa34.entry.js} +1 -1
- package/dist/brandsync-wc/p-0e39b9cc.entry.js +1 -0
- package/dist/brandsync-wc/{p-9fb8848c.entry.js → p-114d2fd8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ef68f29b.entry.js → p-153da845.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6754dfa9.entry.js → p-1c0db4d6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4a1a5d6e.entry.js → p-1f7208cb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-43617f2e.entry.js → p-235ae012.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2700a63e.entry.js → p-275072dd.entry.js} +1 -1
- package/dist/brandsync-wc/p-2891d40b.entry.js +1 -0
- package/dist/brandsync-wc/p-29027559.entry.js +1 -0
- package/dist/brandsync-wc/p-2e7a1082.entry.js +1 -0
- package/dist/brandsync-wc/{p-604553a0.entry.js → p-3176d1d3.entry.js} +1 -1
- package/dist/brandsync-wc/p-33e44094.entry.js +1 -0
- package/dist/brandsync-wc/p-360452c2.entry.js +1 -0
- package/dist/brandsync-wc/p-3ec74d35.entry.js +1 -0
- package/dist/brandsync-wc/p-4574a707.entry.js +1 -0
- package/dist/brandsync-wc/p-4e5dcaff.entry.js +1 -0
- package/dist/brandsync-wc/p-612cf79c.entry.js +1 -0
- package/dist/brandsync-wc/p-61c1a2a3.entry.js +1 -0
- package/dist/brandsync-wc/{p-11224cab.entry.js → p-6331de9c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d03eba2b.entry.js → p-652d4068.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a603a13a.entry.js → p-6bf2f116.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9b72cc12.entry.js → p-70f64b25.entry.js} +1 -1
- package/dist/brandsync-wc/{p-44bfdd4b.entry.js → p-7b00dd36.entry.js} +1 -1
- package/dist/brandsync-wc/p-7c94e6ae.entry.js +1 -0
- package/dist/brandsync-wc/p-835a8dc7.entry.js +1 -0
- package/dist/brandsync-wc/{p-0aca5f0e.entry.js → p-8ee0153b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bb77098b.entry.js → p-9f65f998.entry.js} +1 -1
- package/dist/brandsync-wc/p-9f8852a0.entry.js +1 -0
- package/dist/brandsync-wc/{p-DuyFft7h.js → p-AgoOSYvW.js} +2 -2
- package/dist/brandsync-wc/{p-a8e2a2b2.entry.js → p-a09e157f.entry.js} +1 -1
- package/dist/brandsync-wc/p-a0d5a620.entry.js +1 -0
- package/dist/brandsync-wc/{p-525504c2.entry.js → p-a5feaad4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-cbaa19ab.entry.js → p-a92eec48.entry.js} +1 -1
- package/dist/brandsync-wc/{p-57e1dc35.entry.js → p-ae978c9a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f2ce9a1f.entry.js → p-bbcc47b0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fcd4ec60.entry.js → p-bc69a96c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-80cf96ff.entry.js → p-be2c1740.entry.js} +1 -1
- package/dist/brandsync-wc/p-bf53ad52.entry.js +1 -0
- package/dist/brandsync-wc/p-c10d2529.entry.js +1 -0
- package/dist/brandsync-wc/{p-abda1d69.entry.js → p-c4de155c.entry.js} +1 -1
- package/dist/brandsync-wc/p-c7f4c114.entry.js +1 -0
- package/dist/brandsync-wc/{p-52d5f6a9.entry.js → p-cfcf3f0a.entry.js} +1 -1
- package/dist/brandsync-wc/p-de7c946d.entry.js +1 -0
- package/dist/brandsync-wc/{p-a8cdf449.entry.js → p-e9b43754.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c5011746.entry.js → p-ee7da23d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4bff9b4b.entry.js → p-f006d962.entry.js} +1 -1
- package/dist/brandsync-wc/p-f074f94e.entry.js +1 -0
- package/dist/brandsync-wc/p-f7d47c17.entry.js +1 -0
- package/dist/brandsync-wc/{p-7609221f.entry.js → p-fc58c663.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a3a4d541.entry.js → p-fddc7bd1.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment-list.cjs.entry.js +3 -3
- package/dist/cjs/bs-attachment.cjs.entry.js +2 -2
- package/dist/cjs/bs-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +2 -2
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button.cjs.entry.js +23 -4
- package/dist/cjs/bs-card.cjs.entry.js +2 -2
- package/dist/cjs/bs-carousel.cjs.entry.js +196 -0
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +3 -3
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +3 -3
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +48 -3
- package/dist/cjs/bs-chip-filter.cjs.entry.js +3 -3
- package/dist/cjs/bs-chip-informative.cjs.entry.js +3 -3
- package/dist/cjs/bs-chip-input.cjs.entry.js +3 -3
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer.cjs.entry.js +2 -2
- package/dist/cjs/bs-data-table.cjs.entry.js +4 -4
- package/dist/cjs/bs-dialog.cjs.entry.js +2 -2
- package/dist/cjs/bs-file-upload-item.cjs.entry.js +85 -0
- package/dist/cjs/bs-file-upload.cjs.entry.js +110 -0
- package/dist/cjs/bs-icon-button.cjs.entry.js +22 -3
- package/dist/cjs/bs-inline-tab.cjs.entry.js +7 -3
- package/dist/cjs/bs-input.cjs.entry.js +69 -5
- package/dist/cjs/bs-logo.cjs.entry.js +1 -1
- package/dist/cjs/bs-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-menu.cjs.entry.js +25 -3
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- package/dist/cjs/bs-progress-linear.cjs.entry.js +8 -3
- package/dist/cjs/bs-progress.cjs.entry.js +8 -3
- package/dist/cjs/bs-radio.cjs.entry.js +81 -12
- package/dist/cjs/bs-slider.cjs.entry.js +54 -2
- package/dist/cjs/bs-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/bs-source-link.cjs.entry.js +4 -4
- package/dist/cjs/bs-stepper-step.cjs.entry.js +3 -3
- package/dist/cjs/bs-stepper.cjs.entry.js +3 -2
- package/dist/cjs/bs-switch.cjs.entry.js +36 -3
- package/dist/cjs/bs-tab.cjs.entry.js +7 -3
- package/dist/cjs/bs-tabs.cjs.entry.js +51 -2
- package/dist/cjs/bs-toast.cjs.entry.js +2 -2
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-D7e6DfLV.js → index-kk9YXF2S.js} +43 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/bs-a11y.cmp.test.js +54 -0
- package/dist/collection/components/bs-accordion/bs-accordion.cmp.test.js +5 -0
- package/dist/collection/components/bs-accordion/bs-accordion.css +5 -5
- 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-attachment/bs-attachment.css +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.css +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.css +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.css +17 -10
- package/dist/collection/components/bs-button/bs-button/bs-button.js +16 -3
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +16 -3
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.css +4 -0
- package/dist/collection/components/bs-carousel/bs-carousel.cmp.test.js +198 -0
- package/dist/collection/components/bs-carousel/bs-carousel.css +107 -0
- package/dist/collection/components/bs-carousel/bs-carousel.js +531 -0
- package/dist/collection/components/bs-carousel/bs-carousel.stories.js +68 -0
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.css +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.css +3 -3
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.css +8 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +100 -2
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.css +4 -4
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.css +4 -4
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.css +5 -5
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +1 -1
- 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-data-table/bs-data-table.css +1 -1
- package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
- package/dist/collection/components/bs-dialog/bs-dialog.css +5 -1
- package/dist/collection/components/bs-file-upload/bs-file-upload.cmp.test.js +119 -0
- package/dist/collection/components/bs-file-upload/bs-file-upload.css +139 -0
- package/dist/collection/components/bs-file-upload/bs-file-upload.js +342 -0
- package/dist/collection/components/bs-file-upload/bs-file-upload.stories.js +116 -0
- package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.cmp.test.js +115 -0
- package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.css +154 -0
- package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +329 -0
- package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.stories.js +54 -0
- package/dist/collection/components/bs-form-association.cmp.test.js +172 -0
- package/dist/collection/components/bs-input/bs-input.css +10 -4
- package/dist/collection/components/bs-input/bs-input.js +82 -4
- package/dist/collection/components/bs-keyboard-nav.cmp.test.js +100 -0
- package/dist/collection/components/bs-menu/bs-menu.css +4 -0
- package/dist/collection/components/bs-menu/bs-menu.js +33 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
- package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
- package/dist/collection/components/bs-progress/bs-progress.js +27 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +27 -2
- package/dist/collection/components/bs-radio/bs-radio.cmp.test.js +4 -10
- package/dist/collection/components/bs-radio/bs-radio.css +7 -1
- package/dist/collection/components/bs-radio/bs-radio.js +92 -14
- package/dist/collection/components/bs-radio/bs-radio.stories.js +1 -10
- package/dist/collection/components/bs-slider/bs-slider.js +68 -2
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
- package/dist/collection/components/bs-source-link/bs-source-link.css +2 -2
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +3 -2
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.css +3 -3
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
- package/dist/collection/components/bs-switch/bs-switch.css +10 -1
- package/dist/collection/components/bs-switch/bs-switch.js +69 -2
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.css +2 -2
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +24 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.css +2 -2
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +24 -1
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +57 -1
- 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/forms/forms.stories.js +63 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +1 -1
- 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/collection/test/helpers/conventions.js +46 -0
- package/dist/collection/test/helpers/conventions.unit.test.js +38 -0
- package/dist/components/bs-accordion.js +1 -1
- package/dist/components/bs-ai-disclaimer.js +1 -1
- package/dist/components/bs-ai-greeting.js +1 -1
- package/dist/components/bs-ai-thinking.js +1 -1
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- package/dist/components/bs-avatar.js +1 -1
- package/dist/components/bs-badge.js +1 -1
- package/dist/components/bs-breadcrumb-overflow.js +1 -1
- package/dist/components/bs-breadcrumb.js +1 -1
- package/dist/components/bs-breadcrumbs.js +1 -1
- package/dist/components/bs-button-skeleton.js +1 -1
- package/dist/components/bs-button.js +1 -1
- package/dist/components/bs-card.js +1 -1
- package/dist/components/bs-carousel.d.ts +11 -0
- package/dist/components/bs-carousel.js +1 -0
- package/dist/components/bs-chatbot-feedback.js +1 -1
- package/dist/components/bs-chatbot-header.js +1 -1
- package/dist/components/bs-chatbot-response-action.js +1 -1
- package/dist/components/bs-chatbot-sources-drawer.js +1 -1
- package/dist/components/bs-chatbot-suggestion-button.js +1 -1
- package/dist/components/bs-checkbox-skeleton.js +1 -1
- package/dist/components/bs-checkbox.js +1 -1
- package/dist/components/bs-chip-filter.js +1 -1
- package/dist/components/bs-chip-informative.js +1 -1
- package/dist/components/bs-chip-input.js +1 -1
- package/dist/components/bs-composer-status-banner.js +1 -1
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-data-table.js +1 -1
- package/dist/components/bs-dialog.js +1 -1
- package/dist/components/bs-file-upload-item.d.ts +11 -0
- package/dist/components/bs-file-upload-item.js +1 -0
- package/dist/components/bs-file-upload.d.ts +11 -0
- package/dist/components/bs-file-upload.js +1 -0
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-inline-tab.js +1 -1
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-logo.js +1 -1
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.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-pagination.js +1 -1
- package/dist/components/bs-progress-linear.js +1 -1
- package/dist/components/bs-progress.js +1 -1
- package/dist/components/bs-radio.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-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-toast.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-B8eut73c.js → p-BA3c9Rom.js} +1 -1
- package/dist/components/{p-DIezWdNu.js → p-BfEyD6Ku.js} +1 -1
- package/dist/components/p-BkHYJIyj.js +1 -0
- package/dist/components/p-Buly0d5G.js +1 -0
- package/dist/components/p-CpUHnsq9.js +1 -0
- package/dist/components/p-EtXc94lJ.js +1 -0
- package/dist/components/{p-mnGJPH85.js → p-JYlmcxBn.js} +1 -1
- package/dist/components/{p-BhvV55-6.js → p-R2MlkUzD.js} +1 -1
- package/dist/components/p-wei0Ija2.js +1 -0
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-accordion.entry.js +2 -2
- package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
- package/dist/esm/bs-ai-greeting.entry.js +2 -2
- package/dist/esm/bs-ai-thinking.entry.js +2 -2
- package/dist/esm/bs-attachment-list.entry.js +3 -3
- package/dist/esm/bs-attachment.entry.js +2 -2
- package/dist/esm/bs-avatar.entry.js +1 -1
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-breadcrumb-overflow.entry.js +2 -2
- package/dist/esm/bs-breadcrumb.entry.js +1 -1
- package/dist/esm/bs-breadcrumbs.entry.js +2 -2
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button.entry.js +23 -4
- package/dist/esm/bs-card.entry.js +2 -2
- package/dist/esm/bs-carousel.entry.js +194 -0
- package/dist/esm/bs-chatbot-feedback.entry.js +3 -3
- package/dist/esm/bs-chatbot-header.entry.js +2 -2
- package/dist/esm/bs-chatbot-response-action.entry.js +3 -3
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
- package/dist/esm/bs-checkbox-skeleton.entry.js +2 -2
- package/dist/esm/bs-checkbox.entry.js +48 -3
- package/dist/esm/bs-chip-filter.entry.js +3 -3
- package/dist/esm/bs-chip-informative.entry.js +3 -3
- package/dist/esm/bs-chip-input.entry.js +3 -3
- package/dist/esm/bs-composer-status-banner.entry.js +2 -2
- package/dist/esm/bs-composer.entry.js +2 -2
- package/dist/esm/bs-data-table.entry.js +4 -4
- package/dist/esm/bs-dialog.entry.js +2 -2
- package/dist/esm/bs-file-upload-item.entry.js +83 -0
- package/dist/esm/bs-file-upload.entry.js +108 -0
- package/dist/esm/bs-icon-button.entry.js +22 -3
- package/dist/esm/bs-inline-tab.entry.js +7 -3
- package/dist/esm/bs-input.entry.js +69 -5
- package/dist/esm/bs-logo.entry.js +1 -1
- package/dist/esm/bs-menu-item.entry.js +2 -2
- package/dist/esm/bs-menu.entry.js +25 -3
- package/dist/esm/bs-navigation-drawer-item.entry.js +2 -2
- package/dist/esm/bs-navigation-drawer.entry.js +2 -2
- package/dist/esm/bs-navigation-header.entry.js +2 -2
- package/dist/esm/bs-pagination.entry.js +2 -2
- package/dist/esm/bs-progress-linear.entry.js +8 -3
- package/dist/esm/bs-progress.entry.js +8 -3
- package/dist/esm/bs-radio.entry.js +81 -12
- package/dist/esm/bs-slider.entry.js +54 -2
- package/dist/esm/bs-snackbar.entry.js +2 -2
- package/dist/esm/bs-source-link.entry.js +4 -4
- package/dist/esm/bs-stepper-step.entry.js +3 -3
- package/dist/esm/bs-stepper.entry.js +3 -2
- package/dist/esm/bs-switch.entry.js +36 -3
- package/dist/esm/bs-tab.entry.js +7 -3
- package/dist/esm/bs-tabs.entry.js +51 -2
- package/dist/esm/bs-toast.entry.js +2 -2
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/{index-DuyFft7h.js → index-AgoOSYvW.js} +43 -5
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-a11y.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-button/bs-button/bs-button.d.ts +4 -1
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.d.ts +4 -1
- package/dist/types/components/bs-carousel/bs-carousel.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-carousel/bs-carousel.d.ts +101 -0
- package/dist/types/components/bs-carousel/bs-carousel.stories.d.ts +17 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.d.ts +12 -0
- package/dist/types/components/bs-file-upload/bs-file-upload.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-file-upload/bs-file-upload.d.ts +59 -0
- package/dist/types/components/bs-file-upload/bs-file-upload.stories.d.ts +21 -0
- package/dist/types/components/bs-file-upload-item/bs-file-upload-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-file-upload-item/bs-file-upload-item.d.ts +58 -0
- package/dist/types/components/bs-file-upload-item/bs-file-upload-item.stories.d.ts +18 -0
- package/dist/types/components/bs-form-association.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-input/bs-input.d.ts +12 -0
- package/dist/types/components/bs-keyboard-nav.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-menu/bs-menu.d.ts +4 -0
- package/dist/types/components/bs-progress/bs-progress.d.ts +5 -0
- package/dist/types/components/bs-progress-linear/bs-progress-linear.d.ts +5 -0
- package/dist/types/components/bs-radio/bs-radio.d.ts +23 -9
- package/dist/types/components/bs-slider/bs-slider.d.ts +9 -0
- package/dist/types/components/bs-switch/bs-switch.d.ts +10 -0
- package/dist/types/components/bs-tab/bs-inline-tab/bs-inline-tab.d.ts +4 -0
- package/dist/types/components/bs-tab/bs-tab/bs-tab.d.ts +4 -0
- package/dist/types/components/bs-tab/bs-tabs/bs-tabs.d.ts +7 -0
- package/dist/types/components/forms/forms.stories.d.ts +6 -0
- package/dist/types/components.d.ts +735 -7
- package/dist/types/test/helpers/conventions.d.ts +21 -0
- package/dist/types/test/helpers/conventions.unit.test.d.ts +1 -0
- package/package.json +2 -1
- package/readme.md +14 -0
- package/dist/brandsync-wc/p-00f733ef.entry.js +0 -1
- package/dist/brandsync-wc/p-18c59979.entry.js +0 -1
- package/dist/brandsync-wc/p-3cb58df8.entry.js +0 -1
- package/dist/brandsync-wc/p-3ed5b215.entry.js +0 -1
- package/dist/brandsync-wc/p-413a1ee0.entry.js +0 -1
- package/dist/brandsync-wc/p-512dafc6.entry.js +0 -1
- package/dist/brandsync-wc/p-57609703.entry.js +0 -1
- package/dist/brandsync-wc/p-6bf8a5bd.entry.js +0 -1
- package/dist/brandsync-wc/p-6c769a1d.entry.js +0 -1
- package/dist/brandsync-wc/p-6d0c054b.entry.js +0 -1
- package/dist/brandsync-wc/p-7b9598d9.entry.js +0 -1
- package/dist/brandsync-wc/p-98021881.entry.js +0 -1
- package/dist/brandsync-wc/p-a96856fd.entry.js +0 -1
- package/dist/brandsync-wc/p-bb68e236.entry.js +0 -1
- package/dist/brandsync-wc/p-cfb49342.entry.js +0 -1
- package/dist/brandsync-wc/p-e2ac61c4.entry.js +0 -1
- package/dist/brandsync-wc/p-f714683d.entry.js +0 -1
- package/dist/brandsync-wc/p-fe778b6b.entry.js +0 -1
- package/dist/components/p-3gs695M6.js +0 -1
- package/dist/components/p-BaxFLlKS.js +0 -1
- package/dist/components/p-DKMMCLxx.js +0 -1
package/dist/esm/loader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-AgoOSYvW.js';
|
|
2
|
+
export { s as setNonce } from './index-AgoOSYvW.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy([["bs-input",[[
|
|
7
|
+
return bootstrapLazy([["bs-carousel",[[769,"bs-carousel",{"tracker":[1],"slidesPerView":[2,"slides-per-view"],"currentPage":[1538,"current-page"],"autoplay":[4],"interval":[2],"paused":[1540],"label":[1],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"],"pauseLabel":[1,"pause-label"],"playLabel":[1,"play-label"],"slideCount":[32],"interacting":[32]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{"currentPage":[{"onCurrentPageChange":0}],"autoplay":[{"updateTimer":0}],"paused":[{"updateTimer":0}],"interval":[{"updateTimer":0}],"interacting":[{"updateTimer":0}],"slideCount":[{"updateTimer":0}],"slidesPerView":[{"updateTimer":0}]}]]],["bs-file-upload-item",[[769,"bs-file-upload-item",{"state":[513],"fileName":[1,"file-name"],"fileSize":[1,"file-size"],"progress":[2],"message":[1],"thumbnailSrc":[1,"thumbnail-src"],"thumbnailAlt":[1,"thumbnail-alt"],"cancelLabel":[1,"cancel-label"],"removeLabel":[1,"remove-label"]}]]],["bs-input",[[849,"bs-input",{"name":[513],"value":[1025],"type":[1],"label":[1],"placeholder":[1],"description":[1],"error":[1],"disabled":[516],"required":[4],"step":[2],"min":[2],"max":[2],"options":[16],"rows":[2],"chips":[16],"titleOptions":[16],"initialsTitle":[1,"initials-title"],"countryOptions":[16],"country":[1],"length":[2],"open":[1540],"hasIcon":[32],"hasEndIcon":[32],"passwordVisible":[32],"chipDraft":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]],{"value":[{"onFormStateChange":0}],"type":[{"onFormStateChange":0}],"chips":[{"onFormStateChange":0}],"required":[{"onFormStateChange":0}]}]]],["bs-snackbar",[[769,"bs-snackbar",{"variant":[1],"loading":[4],"actionLabel":[1,"action-label"]}]]],["bs-attachment",[[513,"bs-attachment",{"type":[1],"fileName":[1,"file-name"],"imageSrc":[1,"image-src"],"imageAlt":[1,"image-alt"],"loading":[4],"removable":[4]}]]],["bs-breadcrumb-overflow",[[513,"bs-breadcrumb-overflow",{"items":[16],"overflowLabel":[1,"overflow-label"],"size":[513],"open":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]]]]],["bs-chatbot-header",[[769,"bs-chatbot-header",{"heading":[1],"expanded":[1540]}]]],["bs-dialog",[[769,"bs-dialog",{"open":[1540],"heading":[1],"size":[1],"centered":[516],"hasFooter":[32],"hasImage":[32],"hasIcon":[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]]]]],["bs-file-upload",[[769,"bs-file-upload",{"direction":[513],"heading":[1],"description":[1],"buttonLabel":[1,"button-label"],"accept":[1],"multiple":[4],"disabled":[516],"dragging":[1540]}]]],["bs-navigation-drawer",[[769,"bs-navigation-drawer",{"heading":[1],"collapsible":[4],"collapsed":[1540],"logoBackground":[1,"logo-background"],"showLogo":[4,"show-logo"]},null,{"collapsed":[{"onCollapsedChange":0}]}]]],["bs-navigation-header",[[769,"bs-navigation-header",{"alignment":[1],"ariaLabel":[1,"aria-label"],"skipToContentHref":[1,"skip-to-content-href"],"skipToContentLabel":[1,"skip-to-content-label"],"logoBackground":[1,"logo-background"]}]]],["bs-accordion",[[769,"bs-accordion",{"expanded":[516],"size":[1],"disabled":[4],"showIcon":[4,"show-icon"],"showPreview":[4,"show-preview"]}]]],["bs-ai-disclaimer",[[257,"bs-ai-disclaimer"]]],["bs-ai-greeting",[[513,"bs-ai-greeting",{"assistantName":[1,"assistant-name"],"productName":[1,"product-name"]}]]],["bs-ai-thinking",[[513,"bs-ai-thinking",{"label":[1]}]]],["bs-attachment-list",[[769,"bs-attachment-list",{"ariaLabel":[1,"aria-label"],"canScrollRight":[32]}]]],["bs-avatar",[[513,"bs-avatar",{"type":[1],"size":[1],"initials":[1],"src":[1],"alt":[1],"ariaLabel":[1,"aria-label"],"disabled":[516]}]]],["bs-badge",[[769,"bs-badge",{"variant":[1]}]]],["bs-breadcrumb",[[769,"bs-breadcrumb",{"href":[1],"current":[516],"size":[513]}]]],["bs-breadcrumbs",[[769,"bs-breadcrumbs",{"label":[1],"size":[1]},null,{"size":[{"onSizeChange":0}]}]]],["bs-button-skeleton",[[513,"bs-button-skeleton",{"size":[1]}]]],["bs-card",[[769,"bs-card",{"surface":[1],"hasImage":[32]}]]],["bs-chatbot-feedback",[[513,"bs-chatbot-feedback",{"rating":[1538],"submitted":[1540],"comment":[1025],"heading":[1],"subtitle":[1]}]]],["bs-chatbot-response-action",[[769,"bs-chatbot-response-action",{"sourcesCount":[2,"sources-count"],"menuOpen":[1540,"menu-open"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]]],["bs-chatbot-sources-drawer",[[769,"bs-chatbot-sources-drawer",{"heading":[1],"count":[2],"slottedCount":[32]}]]],["bs-chatbot-suggestion-button",[[769,"bs-chatbot-suggestion-button",{"disabled":[4]}]]],["bs-checkbox",[[849,"bs-checkbox",{"name":[513],"value":[1],"required":[4],"size":[1],"checked":[1540],"indeterminate":[1540],"disabled":[516],"error":[4],"ariaLabel":[1,"aria-label"]},null,{"checked":[{"syncFormValue":0}],"value":[{"syncFormValue":0}],"required":[{"syncFormValue":0}],"indeterminate":[{"onIndeterminateChange":0}]}]]],["bs-checkbox-skeleton",[[513,"bs-checkbox-skeleton",{"size":[1]}]]],["bs-chip-filter",[[785,"bs-chip-filter",{"size":[1],"selected":[516],"dropdown":[4],"disabled":[4],"ariaLabel":[1,"aria-label"],"hasIcon":[32]}]]],["bs-chip-informative",[[769,"bs-chip-informative",{"color":[1],"size":[1],"disabled":[516],"hasIcon":[32]}]]],["bs-chip-input",[[785,"bs-chip-input",{"size":[1],"selected":[1540],"disabled":[516],"hasIcon":[32],"labelText":[32]}]]],["bs-composer",[[785,"bs-composer",{"variant":[1],"placeholder":[1],"value":[1025],"state":[513],"ariaLabel":[1,"aria-label"],"hasAttachments":[32]}]]],["bs-composer-status-banner",[[769,"bs-composer-status-banner",{"type":[1],"message":[1],"showIcon":[4,"show-icon"],"showButton":[4,"show-button"],"actionLabel":[1,"action-label"],"allowClose":[4,"allow-close"]}]]],["bs-data-table",[[513,"bs-data-table",{"columns":[16],"rows":[16],"sortColumn":[1,"sort-column"],"sortDirection":[1,"sort-direction"],"selectable":[4],"cellRenderer":[16],"selectedIds":[32],"clearSelection":[64]}]]],["bs-inline-tab",[[769,"bs-inline-tab",{"selected":[516],"disabled":[4],"ariaLabel":[1,"aria-label"],"tabbable":[4],"hasIcon":[32],"hasLabel":[32]}]]],["bs-navigation-drawer-item",[[769,"bs-navigation-drawer-item",{"selected":[516],"expandable":[4],"expanded":[1540],"nested":[4],"ariaLabel":[1,"aria-label"],"collapsed":[516],"hasIcon":[32]}]]],["bs-progress",[[513,"bs-progress",{"type":[1],"size":[1],"strokeWidth":[2,"stroke-width"],"value":[2],"showLabel":[4,"show-label"],"ariaLabel":[1,"aria-label"]}]]],["bs-radio",[[849,"bs-radio",{"name":[513],"value":[1],"checked":[1540],"disabled":[516],"groupHasChecked":[32]},[[4,"bsChange","onAnyRadioChange"]],{"checked":[{"onCheckedChange":0}],"value":[{"onCheckedChange":0}]}]]],["bs-slider",[[593,"bs-slider",{"type":[1],"name":[513],"showLabel":[4,"show-label"],"label":[1],"min":[2],"max":[2],"step":[2],"value":[1026],"valueStart":[1026,"value-start"],"valueEnd":[1026,"value-end"],"segments":[2],"disabled":[516],"ariaLabel":[1,"aria-label"]},null,{"value":[{"syncFormValue":0}],"valueStart":[{"syncFormValue":0}],"valueEnd":[{"syncFormValue":0}],"type":[{"syncFormValue":0}]}]]],["bs-source-link",[[769,"bs-source-link",{"fileName":[1,"file-name"],"sourceName":[1,"source-name"],"version":[1],"href":[1],"target":[1]}]]],["bs-stepper",[[769,"bs-stepper",{"currentStep":[2,"current-step"],"direction":[513],"showDescription":[4,"show-description"]},null,{"currentStep":[{"onPropChange":0}],"direction":[{"onPropChange":0}],"showDescription":[{"onPropChange":0}]}]]],["bs-stepper-step",[[513,"bs-stepper-step",{"name":[1],"description":[1],"error":[4],"disabled":[4],"computedState":[1,"computed-state"],"direction":[1],"showDescription":[4,"show-description"]}]]],["bs-switch",[[849,"bs-switch",{"name":[513],"value":[1],"size":[1],"checked":[1540],"disabled":[516],"ariaLabel":[1,"aria-label"]},null,{"checked":[{"syncFormValue":0}],"value":[{"syncFormValue":0}]}]]],["bs-tab",[[769,"bs-tab",{"selected":[516],"disabled":[4],"iconPosition":[1,"icon-position"],"ariaLabel":[1,"aria-label"],"tabbable":[4],"hasIcon":[32],"hasLabel":[32],"hasBadge":[32]}]]],["bs-tabs",[[769,"bs-tabs",{"type":[1],"orientation":[1]},[[0,"bsSelect","onTabSelect"],[0,"keydown","onKeyDown"]],{"orientation":[{"syncRovingTabindex":0}]}]]],["bs-toast",[[769,"bs-toast",{"state":[1]}]]],["bs-menu-item",[[769,"bs-menu-item",{"disabled":[4],"hasIcon":[32]}]]],["bs-pagination",[[513,"bs-pagination",{"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"siblingCount":[2,"sibling-count"],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"]}]]],["bs-progress-linear",[[769,"bs-progress-linear",{"type":[1],"size":[1],"value":[2],"showLabel":[4,"show-label"],"ariaLabel":[1,"aria-label"],"hasLabelContent":[32]}]]],["bs-tooltip",[[769,"bs-tooltip",{"placement":[1]}]]],["bs-logo",[[513,"bs-logo",{"variant":[1],"background":[1],"src":[1],"alt":[1]}]]],["bs-menu",[[257,"bs-menu",null,[[0,"keydown","onKeyDown"]]]]],["bs-button",[[849,"bs-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasEndIcon":[32],"hasLabel":[32]}]]],["bs-icon-button",[[849,"bs-icon-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"]}]]]], options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -36,6 +36,7 @@ export type BsButtonSize = 'sm' | 'md' | 'lg';
|
|
|
36
36
|
*/
|
|
37
37
|
export declare class BsButton {
|
|
38
38
|
el: HTMLElement;
|
|
39
|
+
internals: ElementInternals;
|
|
39
40
|
/**
|
|
40
41
|
* Visual style. Maps directly to the brandsync-tokens `--bs-button-*` semantic set.
|
|
41
42
|
* `error` is for destructive/irreversible actions per BrandSync guidance, not a stronger
|
|
@@ -46,7 +47,8 @@ export declare class BsButton {
|
|
|
46
47
|
size: BsButtonSize;
|
|
47
48
|
/** Disables the button and applies the disabled token set. */
|
|
48
49
|
disabled: boolean;
|
|
49
|
-
/**
|
|
50
|
+
/** Button type. `submit` submits the surrounding `<form>` (via `requestSubmit()`, so validation
|
|
51
|
+
* runs); `reset` resets it; `button` (default) does nothing on its own. */
|
|
50
52
|
type: 'button' | 'submit' | 'reset';
|
|
51
53
|
/**
|
|
52
54
|
* Accessible name for the button. Required for icon-only usage (no visible label text via the
|
|
@@ -85,5 +87,6 @@ export declare class BsButton {
|
|
|
85
87
|
private onIconSlotchange;
|
|
86
88
|
private onEndIconSlotchange;
|
|
87
89
|
private onLabelSlotchange;
|
|
90
|
+
private onClick;
|
|
88
91
|
render(): any;
|
|
89
92
|
}
|
|
@@ -26,6 +26,7 @@ export type BsIconButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
|
26
26
|
*/
|
|
27
27
|
export declare class BsIconButton {
|
|
28
28
|
el: HTMLElement;
|
|
29
|
+
internals: ElementInternals;
|
|
29
30
|
/**
|
|
30
31
|
* Visual style. Maps to the same semantic token families as `bs-button`'s `variant`.
|
|
31
32
|
* `error` is for destructive/irreversible actions per BrandSync guidance, not a stronger
|
|
@@ -39,7 +40,8 @@ export declare class BsIconButton {
|
|
|
39
40
|
size: BsIconButtonSize;
|
|
40
41
|
/** Disables the button and applies the disabled token set. */
|
|
41
42
|
disabled: boolean;
|
|
42
|
-
/**
|
|
43
|
+
/** Button type. `submit` submits the surrounding `<form>` (via `requestSubmit()`, so validation
|
|
44
|
+
* runs); `reset` resets it; `button` (default) does nothing on its own. */
|
|
43
45
|
type: 'button' | 'submit' | 'reset';
|
|
44
46
|
/**
|
|
45
47
|
* Accessible name for the button. Required -- this component is always icon-only, so there's
|
|
@@ -47,5 +49,6 @@ export declare class BsIconButton {
|
|
|
47
49
|
* prop to the `aria-label` HTML attribute automatically.
|
|
48
50
|
*/
|
|
49
51
|
ariaLabel: string | null;
|
|
52
|
+
private onClick;
|
|
50
53
|
render(): any;
|
|
51
54
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type BsCarouselTracker = 'dots' | 'numbers';
|
|
3
|
+
/**
|
|
4
|
+
* A carousel that shows a page of slides at a time, with a tracker (dots or numbered blocks) and
|
|
5
|
+
* previous/next controls, and optional auto-advance with a Pause/Play button.
|
|
6
|
+
*
|
|
7
|
+
* Slides are the default slot's direct children (a `bs-card`, an image, anything). The carousel
|
|
8
|
+
* shows `slidesPerView` of them at once, so there are `ceil(slides / slidesPerView)` pages. It
|
|
9
|
+
* manages two things on those slide elements: the `hidden` attribute (off-page slides are hidden,
|
|
10
|
+
* so they leave the tab order and the accessibility tree) and, only when not already set,
|
|
11
|
+
* `role="group"`, `aria-roledescription="slide"` and an `aria-label` of "n of N".
|
|
12
|
+
*
|
|
13
|
+
* Composes `bs-pagination` (`tracker="numbers"`), `bs-icon-button` (previous/next for
|
|
14
|
+
* `tracker="dots"`) and `bs-button` (Pause/Play) rather than re-implementing them.
|
|
15
|
+
*
|
|
16
|
+
* ## When to use
|
|
17
|
+
* - Browsing a set of related items (cards, images, announcements) where only a few fit at once.
|
|
18
|
+
* - Rotating promotional or highlight content, where auto-advance with a Pause control is wanted.
|
|
19
|
+
*
|
|
20
|
+
* ## When not to use
|
|
21
|
+
* - Content users must see in full to complete a task -- hiding it behind paging hurts discovery;
|
|
22
|
+
* lay it out in a list or grid instead.
|
|
23
|
+
* - A strict sequence of steps -- use `bs-stepper`.
|
|
24
|
+
* - Paging through a large, addressable result set -- use `bs-pagination`.
|
|
25
|
+
*
|
|
26
|
+
* @slot - Default slot: the slides. Each direct child is one slide.
|
|
27
|
+
* @part carousel - The outer region (`role="region"`, `aria-roledescription="carousel"`).
|
|
28
|
+
* @part slides - The row holding the visible slides.
|
|
29
|
+
* @part tracker - The row holding the tracker and the Pause/Play button.
|
|
30
|
+
* @part prev - The previous button (`tracker="dots"`).
|
|
31
|
+
* @part next - The next button (`tracker="dots"`).
|
|
32
|
+
* @part dots - The dot group (`tracker="dots"`).
|
|
33
|
+
* @part dot - Each dot (`tracker="dots"`).
|
|
34
|
+
* @part current - The current page's dot (in addition to `dot`).
|
|
35
|
+
* @part pagination - The numbered tracker (`tracker="numbers"`).
|
|
36
|
+
* @part pause - The Pause/Play button (only rendered when `autoplay`).
|
|
37
|
+
*/
|
|
38
|
+
export declare class BsCarousel {
|
|
39
|
+
el: HTMLElement;
|
|
40
|
+
/** Which tracker to show under the slides. `dots` is a compact dot row between previous/next
|
|
41
|
+
* buttons (the dots are an indicator, not buttons); `numbers` is a numbered `bs-pagination`
|
|
42
|
+
* where each page can be jumped to directly. */
|
|
43
|
+
tracker: BsCarouselTracker;
|
|
44
|
+
/** How many slides are visible at once. The tracker counts pages: `ceil(slides / slidesPerView)`. */
|
|
45
|
+
slidesPerView: number;
|
|
46
|
+
/** The visible page, 1-based (same convention as `bs-pagination`). Mutable so the carousel
|
|
47
|
+
* advances it itself (tracker, previous/next, autoplay). Clamped to the available pages. */
|
|
48
|
+
currentPage: number;
|
|
49
|
+
/** Auto-advances to the next page every `interval` ms, looping from the last page to the first.
|
|
50
|
+
* Off by default. The Pause/Play button is only rendered when this is set. Auto-advance also
|
|
51
|
+
* stops while the pointer is over the carousel or focus is inside it, and starts paused for
|
|
52
|
+
* users who prefer reduced motion. */
|
|
53
|
+
autoplay: boolean;
|
|
54
|
+
/** Milliseconds between auto-advances, when `autoplay` is set. */
|
|
55
|
+
interval: number;
|
|
56
|
+
/** Whether auto-advance is paused by the user (the Pause/Play button). Mutable and reflected so
|
|
57
|
+
* the state is visible to CSS and settable from outside. Only meaningful with `autoplay`. */
|
|
58
|
+
paused: boolean;
|
|
59
|
+
/** Accessible name of the carousel region (e.g. "Featured articles"). */
|
|
60
|
+
label: string;
|
|
61
|
+
/** Accessible name of the previous button (`tracker="dots"`) -- override for localisation. */
|
|
62
|
+
previousLabel: string;
|
|
63
|
+
/** Accessible name of the next button (`tracker="dots"`) -- override for localisation. */
|
|
64
|
+
nextLabel: string;
|
|
65
|
+
/** Label of the Pause/Play button while auto-advance is running. */
|
|
66
|
+
pauseLabel: string;
|
|
67
|
+
/** Label of the Pause/Play button while auto-advance is paused. */
|
|
68
|
+
playLabel: string;
|
|
69
|
+
/** Fires after the visible page changes via the tracker, previous/next or autoplay, with the
|
|
70
|
+
* new 1-based page. */
|
|
71
|
+
bsPageChange: EventEmitter<number>;
|
|
72
|
+
/** Fires when the user toggles the Pause/Play button, with the new `paused` value. */
|
|
73
|
+
bsPauseChange: EventEmitter<boolean>;
|
|
74
|
+
slideCount: number;
|
|
75
|
+
/** True while the pointer is over the carousel or focus is inside it (auto-advance holds). */
|
|
76
|
+
interacting: boolean;
|
|
77
|
+
private timer?;
|
|
78
|
+
private get slides();
|
|
79
|
+
private get perView();
|
|
80
|
+
private get pageCount();
|
|
81
|
+
private get page();
|
|
82
|
+
componentWillLoad(): void;
|
|
83
|
+
componentDidLoad(): void;
|
|
84
|
+
componentDidRender(): void;
|
|
85
|
+
disconnectedCallback(): void;
|
|
86
|
+
onCurrentPageChange(): void;
|
|
87
|
+
updateTimer(): void;
|
|
88
|
+
private stopTimer;
|
|
89
|
+
onMouseEnter(): void;
|
|
90
|
+
onMouseLeave(): void;
|
|
91
|
+
onFocusIn(): void;
|
|
92
|
+
onFocusOut(): void;
|
|
93
|
+
private goTo;
|
|
94
|
+
/** Shows only the current page's slides and labels each slide. */
|
|
95
|
+
private applySlides;
|
|
96
|
+
private onSlotChange;
|
|
97
|
+
private onTogglePause;
|
|
98
|
+
private renderPause;
|
|
99
|
+
private renderDotsTracker;
|
|
100
|
+
render(): any;
|
|
101
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import type { BsCarouselTracker } from './bs-carousel';
|
|
3
|
+
interface BsCarouselArgs {
|
|
4
|
+
tracker: BsCarouselTracker;
|
|
5
|
+
slidesPerView: number;
|
|
6
|
+
slides: number;
|
|
7
|
+
autoplay: boolean;
|
|
8
|
+
interval: number;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
declare const meta: Meta<BsCarouselArgs>;
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<BsCarouselArgs>;
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
export declare const Numbers: Story;
|
|
16
|
+
export declare const NoAutoplay: Story;
|
|
17
|
+
export declare const OneSlideAtATime: Story;
|
|
@@ -20,7 +20,15 @@ export type BsCheckboxSize = 'sm' | 'md' | 'lg';
|
|
|
20
20
|
*/
|
|
21
21
|
export declare class BsCheckbox {
|
|
22
22
|
el: HTMLElement;
|
|
23
|
+
internals: ElementInternals;
|
|
23
24
|
private inputEl?;
|
|
25
|
+
private initialChecked;
|
|
26
|
+
/** The `name` the value is submitted under in a surrounding `<form>`'s `FormData`. */
|
|
27
|
+
name?: string;
|
|
28
|
+
/** The value submitted when checked (native checkbox default: `"on"`). */
|
|
29
|
+
value: string;
|
|
30
|
+
/** Marks the checkbox as required: the surrounding form fails validation while unchecked. */
|
|
31
|
+
required: boolean;
|
|
24
32
|
/** Sizing scale. Controls the box's width/height and border width; corner radius is constant
|
|
25
33
|
* across all sizes. */
|
|
26
34
|
size: BsCheckboxSize;
|
|
@@ -56,6 +64,10 @@ export declare class BsCheckbox {
|
|
|
56
64
|
bsChange: EventEmitter<boolean>;
|
|
57
65
|
/** Keeps the native input's `.indeterminate` JS property in sync -- this can't be expressed as a
|
|
58
66
|
* JSX attribute in Stencil, it must be set imperatively on the element. */
|
|
67
|
+
syncFormValue(): void;
|
|
68
|
+
/** Called by the browser when the surrounding `<form>` is reset. */
|
|
69
|
+
formResetCallback(): void;
|
|
70
|
+
componentWillLoad(): void;
|
|
59
71
|
onIndeterminateChange(): void;
|
|
60
72
|
componentDidLoad(): void;
|
|
61
73
|
componentDidUpdate(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type BsFileUploadDirection = 'horizontal' | 'vertical';
|
|
3
|
+
/**
|
|
4
|
+
* A file dropzone: drag files onto it, or press "Browse file" to open the file picker. It reports
|
|
5
|
+
* the chosen files and does nothing else -- the consuming app owns the upload itself and shows its
|
|
6
|
+
* progress with `bs-file-upload-item`.
|
|
7
|
+
*
|
|
8
|
+
* ## When to use
|
|
9
|
+
* - Letting users add one or more files (documents, images) to upload.
|
|
10
|
+
*
|
|
11
|
+
* ## When not to use
|
|
12
|
+
* - Attaching files to a chat message -- see `bs-composer` / `bs-attachment`.
|
|
13
|
+
* - A file input that must submit with a native `<form>`: this component is **not**
|
|
14
|
+
* form-associated. Read the files from `bsFilesSelect` and submit them yourself.
|
|
15
|
+
*
|
|
16
|
+
* @slot icon - Replaces the default upload icon inside the round icon area.
|
|
17
|
+
* @part dropzone - The dashed drop area.
|
|
18
|
+
* @part icon - The round icon area.
|
|
19
|
+
* @part heading - The heading text.
|
|
20
|
+
* @part description - The guidelines text under the heading.
|
|
21
|
+
* @part browse - The "Browse file" button.
|
|
22
|
+
*/
|
|
23
|
+
export declare class BsFileUpload {
|
|
24
|
+
el: HTMLElement;
|
|
25
|
+
private inputEl?;
|
|
26
|
+
/** Layout: icon beside the text (`horizontal`) or stacked above it, centered (`vertical`). */
|
|
27
|
+
direction: BsFileUploadDirection;
|
|
28
|
+
/** Heading text (e.g. "Upload your documents"). */
|
|
29
|
+
heading?: string;
|
|
30
|
+
/** Guidelines under the heading (e.g. "PDF or JPG, up to 8MB"). */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Label of the browse button. Override for localisation. */
|
|
33
|
+
buttonLabel: string;
|
|
34
|
+
/** Which files are accepted, same syntax as the native `accept` attribute: comma-separated
|
|
35
|
+
* extensions (`.pdf`), MIME types (`image/png`) or wildcards (`image/*`). Applied to the picker
|
|
36
|
+
* and also to dropped files, which the browser does not filter. */
|
|
37
|
+
accept?: string;
|
|
38
|
+
/** Allows selecting/dropping more than one file. Without it only the first file is taken. */
|
|
39
|
+
multiple: boolean;
|
|
40
|
+
/** Disables the browse button and ignores drops. */
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
/** Whether a file is currently being dragged over the dropzone (the Figma "Drop" state). Set by
|
|
43
|
+
* the component during a drag; mutable and reflected so it can also be set to show the state
|
|
44
|
+
* statically. */
|
|
45
|
+
dragging: boolean;
|
|
46
|
+
/** Fires with the accepted files, after the picker closes or files are dropped. */
|
|
47
|
+
bsFilesSelect: EventEmitter<File[]>;
|
|
48
|
+
/** Fires with files that were not taken: they didn't match `accept`, or were extra files
|
|
49
|
+
* dropped while `multiple` is off. */
|
|
50
|
+
bsFilesReject: EventEmitter<File[]>;
|
|
51
|
+
private matchesAccept;
|
|
52
|
+
private handleFiles;
|
|
53
|
+
private onBrowse;
|
|
54
|
+
private onInputChange;
|
|
55
|
+
private onDragOver;
|
|
56
|
+
private onDragLeave;
|
|
57
|
+
private onDrop;
|
|
58
|
+
render(): any;
|
|
59
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import type { BsFileUploadDirection } from './bs-file-upload';
|
|
3
|
+
interface BsFileUploadArgs {
|
|
4
|
+
direction: BsFileUploadDirection;
|
|
5
|
+
heading: string;
|
|
6
|
+
description: string;
|
|
7
|
+
buttonLabel: string;
|
|
8
|
+
accept: string;
|
|
9
|
+
multiple: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
dragging: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const meta: Meta<BsFileUploadArgs>;
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<BsFileUploadArgs>;
|
|
16
|
+
export declare const Default: Story;
|
|
17
|
+
export declare const Vertical: Story;
|
|
18
|
+
export declare const Dragging: Story;
|
|
19
|
+
export declare const Disabled: Story;
|
|
20
|
+
export declare const AllVariants: Story;
|
|
21
|
+
export declare const WithUploadList: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type BsFileUploadItemState = 'loading' | 'in-progress' | 'error' | 'success';
|
|
3
|
+
/**
|
|
4
|
+
* One file in an upload list: a thumbnail, the file name and size, a status line (a progress bar
|
|
5
|
+
* while uploading, or a success / error message) and an action button (cancel while uploading or
|
|
6
|
+
* after an error, remove once uploaded).
|
|
7
|
+
*
|
|
8
|
+
* Presentational only -- the consuming app owns the upload and drives `state`, `progress` and
|
|
9
|
+
* `message` from it. Pair with `bs-file-upload` (the dropzone that picks the files).
|
|
10
|
+
*
|
|
11
|
+
* ## When to use
|
|
12
|
+
* - Showing the status of each file the user has added, in a list under a `bs-file-upload`.
|
|
13
|
+
*
|
|
14
|
+
* ## When not to use
|
|
15
|
+
* - Attaching files to a chat message -- use `bs-attachment`.
|
|
16
|
+
*
|
|
17
|
+
* @slot thumbnail - Replaces the thumbnail content (the image-placeholder icon, or `thumbnailSrc`).
|
|
18
|
+
* @part item - The card.
|
|
19
|
+
* @part thumbnail - The thumbnail box.
|
|
20
|
+
* @part name - The file name.
|
|
21
|
+
* @part size - The file size text.
|
|
22
|
+
* @part progress - The progress bar (`loading` / `in-progress`).
|
|
23
|
+
* @part status - The success / error message line.
|
|
24
|
+
* @part action - The cancel / remove button.
|
|
25
|
+
*/
|
|
26
|
+
export declare class BsFileUploadItem {
|
|
27
|
+
/** Where the upload is. `loading` = working with no known percentage (indeterminate bar);
|
|
28
|
+
* `in-progress` = uploading with a known `progress`; `error` and `success` are final. */
|
|
29
|
+
state: BsFileUploadItemState;
|
|
30
|
+
/** The file name. */
|
|
31
|
+
fileName: string;
|
|
32
|
+
/** The file size, already formatted (e.g. "8MB"). */
|
|
33
|
+
fileSize?: string;
|
|
34
|
+
/** Upload progress, 0-100. Only used when `state="in-progress"`. */
|
|
35
|
+
progress: number;
|
|
36
|
+
/** The status text. Defaults per state: "Loading..." (`loading`), "{progress}% uploaded"
|
|
37
|
+
* (`in-progress`), "Upload failed" (`error`), "File uploaded successfully" (`success`). Provide
|
|
38
|
+
* your own for localisation or a specific error. */
|
|
39
|
+
message?: string;
|
|
40
|
+
/** A preview image of the file. Shown instead of the placeholder icon when set. */
|
|
41
|
+
thumbnailSrc?: string;
|
|
42
|
+
/** Alt text for `thumbnailSrc`. Leave empty when the file name already says it all. */
|
|
43
|
+
thumbnailAlt: string;
|
|
44
|
+
/** Accessible name of the cancel button (`loading`, `in-progress`, `error`). */
|
|
45
|
+
cancelLabel: string;
|
|
46
|
+
/** Accessible name of the remove button (`success`). */
|
|
47
|
+
removeLabel: string;
|
|
48
|
+
/** Fires when the cancel button is clicked (`loading`, `in-progress`, `error`). The consumer
|
|
49
|
+
* stops the upload and removes the item. */
|
|
50
|
+
bsCancel: EventEmitter<void>;
|
|
51
|
+
/** Fires when the remove button is clicked (`success`). The consumer removes the file. */
|
|
52
|
+
bsRemove: EventEmitter<void>;
|
|
53
|
+
private get clampedProgress();
|
|
54
|
+
private get statusText();
|
|
55
|
+
private onAction;
|
|
56
|
+
private renderStatus;
|
|
57
|
+
render(): any;
|
|
58
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import type { BsFileUploadItemState } from './bs-file-upload-item';
|
|
3
|
+
interface BsFileUploadItemArgs {
|
|
4
|
+
state: BsFileUploadItemState;
|
|
5
|
+
fileName: string;
|
|
6
|
+
fileSize: string;
|
|
7
|
+
progress: number;
|
|
8
|
+
message: string;
|
|
9
|
+
thumbnailSrc: string;
|
|
10
|
+
}
|
|
11
|
+
declare const meta: Meta<BsFileUploadItemArgs>;
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<BsFileUploadItemArgs>;
|
|
14
|
+
export declare const Loading: Story;
|
|
15
|
+
export declare const InProgress: Story;
|
|
16
|
+
export declare const ErrorState: Story;
|
|
17
|
+
export declare const Success: Story;
|
|
18
|
+
export declare const AllStates: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -46,6 +46,10 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
46
46
|
*/
|
|
47
47
|
export declare class BsInput {
|
|
48
48
|
el: HTMLElement;
|
|
49
|
+
internals: ElementInternals;
|
|
50
|
+
private initialValue;
|
|
51
|
+
/** The `name` the value is submitted under in a surrounding `<form>`'s `FormData`. */
|
|
52
|
+
name?: string;
|
|
49
53
|
/** Current value. Native `input`/`change` events don't cross the Shadow DOM boundary, so this
|
|
50
54
|
* component re-dispatches them as `bsInput`/`bsChange` custom events instead. Mutable so the
|
|
51
55
|
* `number` type's stepper buttons can update it directly. */
|
|
@@ -128,6 +132,14 @@ export declare class BsInput {
|
|
|
128
132
|
* children, before first render -- see `bs-button`'s `componentWillLoad` for why `slotchange`
|
|
129
133
|
* alone isn't enough for a slot that starts (and stays) empty. */
|
|
130
134
|
componentWillLoad(): void;
|
|
135
|
+
onFormStateChange(): void;
|
|
136
|
+
/** Pushes the current value + validity to the surrounding form. `chip` submits one entry per
|
|
137
|
+
* chip under `name`; every other type submits `value` as a single string. */
|
|
138
|
+
private syncFormValue;
|
|
139
|
+
/** Called by the browser when the surrounding `<form>` is reset. */
|
|
140
|
+
formResetCallback(): void;
|
|
141
|
+
/** Called when the browser restores form state (back/forward navigation, autofill). */
|
|
142
|
+
formStateRestoreCallback(state: string | FormData | null): void;
|
|
131
143
|
private hasSlottedContent;
|
|
132
144
|
private onIconSlotchange;
|
|
133
145
|
private onEndIconSlotchange;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -20,5 +20,9 @@
|
|
|
20
20
|
* @prop --bs-menu-shadow - Elevation shadow of the menu box. Aliased to `--bs-shadow-sm`.
|
|
21
21
|
*/
|
|
22
22
|
export declare class BsMenu {
|
|
23
|
+
el: HTMLElement;
|
|
24
|
+
/** WAI-ARIA menu pattern: Up/Down move focus between enabled items (wrapping), Home/End jump
|
|
25
|
+
* to the first/last. Items are the slotted `bs-menu-item` children. */
|
|
26
|
+
onKeyDown(ev: KeyboardEvent): void;
|
|
23
27
|
render(): any;
|
|
24
28
|
}
|
|
@@ -38,6 +38,11 @@ export declare class BsProgress {
|
|
|
38
38
|
* `indeterminate` never shows a label regardless of this prop, since there's no percentage to
|
|
39
39
|
* show. Defaults to `true`. */
|
|
40
40
|
showLabel: boolean;
|
|
41
|
+
/** Accessible name for the progress bar (e.g. "Uploading report"). Required for assistive tech --
|
|
42
|
+
* a `role="progressbar"` with no name is an axe-core `aria-progressbar-name` violation. Setting
|
|
43
|
+
* `aria-label` on the host doesn't reach the inner element across the shadow boundary, so this
|
|
44
|
+
* prop binds it directly -- same pattern as `bs-button`'s `ariaLabel`. */
|
|
45
|
+
ariaLabel: string | null;
|
|
41
46
|
private get clampedValue();
|
|
42
47
|
private get diameter();
|
|
43
48
|
private get radius();
|
|
@@ -41,6 +41,11 @@ export declare class BsProgressLinear {
|
|
|
41
41
|
/** Shows the slotted label below the bar. When `false`, or when no content is slotted, the
|
|
42
42
|
* label wrapper isn't rendered at all. Defaults to `true`. */
|
|
43
43
|
showLabel: boolean;
|
|
44
|
+
/** Accessible name for the progress bar (e.g. "Uploading report"). Required for assistive tech --
|
|
45
|
+
* a `role="progressbar"` with no name is an axe-core `aria-progressbar-name` violation. Setting
|
|
46
|
+
* `aria-label` on the host doesn't reach the inner element across the shadow boundary, so this
|
|
47
|
+
* prop binds it directly -- same pattern as `bs-button`'s `ariaLabel`. */
|
|
48
|
+
ariaLabel: string | null;
|
|
44
49
|
private get clampedValue();
|
|
45
50
|
render(): any;
|
|
46
51
|
componentWillLoad(): void;
|
|
@@ -19,13 +19,10 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
19
19
|
export declare class BsRadio {
|
|
20
20
|
el: HTMLElement;
|
|
21
21
|
/** The native radio input's `name` attribute. Passed straight through to the native input inside.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* bs-radio.mdx's Accessibility section for this known gap; consumers building a group currently
|
|
27
|
-
* need to manage mutual exclusivity themselves (e.g. via `bsChange`) until a `bs-radio-group`
|
|
28
|
-
* wrapper exists. */
|
|
22
|
+
* Also the group key: `bs-radio` elements sharing a `name` within the same root (document or
|
|
23
|
+
* shadow root) behave as one radio group -- checking one unchecks the others, arrow keys move
|
|
24
|
+
* between them, and only one is in the tab order. Native grouping can't cross each radio's own
|
|
25
|
+
* shadow root, so this component implements it itself. */
|
|
29
26
|
name: string;
|
|
30
27
|
/** The native radio input's `value` attribute -- read from `event.target.value`, or used when
|
|
31
28
|
* wiring the group up to a form. */
|
|
@@ -37,9 +34,26 @@ export declare class BsRadio {
|
|
|
37
34
|
disabled: boolean;
|
|
38
35
|
/** Emitted with this radio's own `value` when it becomes checked via user interaction. Since
|
|
39
36
|
* native same-`name` grouping doesn't cross shadow-root boundaries (see the `name` prop's doc),
|
|
40
|
-
* a consumer wiring up a group of `bs-radio`s
|
|
41
|
-
* response to this event -- there's no automatic un-checking to rely on here. */
|
|
37
|
+
* a consumer wiring up a group of `bs-radio`s does not need to un-check the others itself. */
|
|
42
38
|
bsChange: EventEmitter<string>;
|
|
39
|
+
internals: ElementInternals;
|
|
40
|
+
private initialChecked;
|
|
41
|
+
/** Whether any radio in this group is checked -- drives roving tabindex (an unchecked radio is
|
|
42
|
+
* only tabbable while nothing in its group is checked). */
|
|
43
|
+
groupHasChecked: boolean;
|
|
44
|
+
/** Other `bs-radio`s sharing this one's `name` within the same root, in DOM order (including
|
|
45
|
+
* this one). */
|
|
46
|
+
private groupMembers;
|
|
47
|
+
onCheckedChange(): void;
|
|
48
|
+
onAnyRadioChange(): void;
|
|
49
|
+
private refreshGroupState;
|
|
50
|
+
componentWillLoad(): void;
|
|
51
|
+
componentDidLoad(): void;
|
|
52
|
+
/** Called by the browser when the surrounding `<form>` is reset. */
|
|
53
|
+
formResetCallback(): void;
|
|
54
|
+
/** WAI-ARIA radio group pattern: arrows move selection (and focus) to the previous/next enabled
|
|
55
|
+
* radio in the group, wrapping at the ends. */
|
|
56
|
+
private onKeyDown;
|
|
43
57
|
private onChange;
|
|
44
58
|
render(): any;
|
|
45
59
|
}
|
|
@@ -31,6 +31,9 @@ export declare class BsSlider {
|
|
|
31
31
|
* and `segmented` use one thumb (`value`). `segmented` additionally draws `segments` tick marks
|
|
32
32
|
* along the track. */
|
|
33
33
|
type: BsSliderType;
|
|
34
|
+
/** The `name` the value is submitted under in a surrounding `<form>`'s `FormData`. `type="range"`
|
|
35
|
+
* submits two entries under this name: the start value, then the end value. */
|
|
36
|
+
name?: string;
|
|
34
37
|
/** Shows/hides the "Label" text and editable percentage field(s) above the track, and the
|
|
35
38
|
* static min/max bound labels flanking it. When `false`, only the bare track (and its
|
|
36
39
|
* knob/knobs) renders. */
|
|
@@ -80,6 +83,12 @@ export declare class BsSlider {
|
|
|
80
83
|
start: number;
|
|
81
84
|
end: number;
|
|
82
85
|
}>;
|
|
86
|
+
internals: ElementInternals;
|
|
87
|
+
private initial;
|
|
88
|
+
componentWillLoad(): void;
|
|
89
|
+
syncFormValue(): void;
|
|
90
|
+
/** Called by the browser when the surrounding `<form>` is reset. */
|
|
91
|
+
formResetCallback(): void;
|
|
83
92
|
private get effectiveValueStart();
|
|
84
93
|
private get effectiveValueEnd();
|
|
85
94
|
/** Effective step for the native range input(s): `step` as-is, except for `type="segmented"`,
|
|
@@ -19,6 +19,12 @@ export type BsSwitchSize = 'md' | 'lg';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare class BsSwitch {
|
|
21
21
|
el: HTMLElement;
|
|
22
|
+
internals: ElementInternals;
|
|
23
|
+
private initialChecked;
|
|
24
|
+
/** The `name` the value is submitted under in a surrounding `<form>`'s `FormData`. */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** The value submitted when on (native checkbox default: `"on"`). */
|
|
27
|
+
value: string;
|
|
22
28
|
/** Sizing scale. Controls the track's width/height and the knob's diameter. */
|
|
23
29
|
size: BsSwitchSize;
|
|
24
30
|
/** Whether the switch is on. Mutable so clicking the label/input toggles it directly, and
|
|
@@ -40,6 +46,10 @@ export declare class BsSwitch {
|
|
|
40
46
|
ariaLabel: string | null;
|
|
41
47
|
/** Emitted when the checked state changes via user interaction, with the new `checked` value. */
|
|
42
48
|
bsChange: EventEmitter<boolean>;
|
|
49
|
+
syncFormValue(): void;
|
|
50
|
+
/** Called by the browser when the surrounding `<form>` is reset. */
|
|
51
|
+
formResetCallback(): void;
|
|
52
|
+
componentWillLoad(): void;
|
|
43
53
|
private onChange;
|
|
44
54
|
render(): any;
|
|
45
55
|
}
|
|
@@ -45,6 +45,10 @@ export declare class BsInlineTab {
|
|
|
45
45
|
* violation). Stencil reflects this camelCase prop to the `aria-label` HTML attribute
|
|
46
46
|
* automatically, same as `bs-tab`'s identical prop. */
|
|
47
47
|
ariaLabel: string | null;
|
|
48
|
+
/** Set by a parent `bs-tabs` to implement roving tabindex (only one tab in the group is in the
|
|
49
|
+
* Tab order; arrow keys move between them). Left `undefined` for a standalone tab, which stays
|
|
50
|
+
* a normal tab stop. */
|
|
51
|
+
tabbable?: boolean;
|
|
48
52
|
/** Tracks whether the `icon` slot has assigned content. */
|
|
49
53
|
hasIcon: boolean;
|
|
50
54
|
/** Tracks whether the default (label) slot has assigned content. */
|
|
@@ -51,6 +51,10 @@ export declare class BsTab {
|
|
|
51
51
|
* violation). Stencil reflects this camelCase prop to the `aria-label` HTML attribute
|
|
52
52
|
* automatically, same as `bs-button`'s identical prop. */
|
|
53
53
|
ariaLabel: string | null;
|
|
54
|
+
/** Set by a parent `bs-tabs` to implement roving tabindex (only one tab in the group is in the
|
|
55
|
+
* Tab order; arrow keys move between them). Left `undefined` for a standalone tab, which stays
|
|
56
|
+
* a normal tab stop. */
|
|
57
|
+
tabbable?: boolean;
|
|
54
58
|
/** Tracks whether the `icon` slot has assigned content. */
|
|
55
59
|
hasIcon: boolean;
|
|
56
60
|
/** Tracks whether the default (label) slot has assigned content. */
|