@brandsync/wc 1.8.0 → 1.10.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 +4493 -3458
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-c4de155c.entry.js → p-0132a2d1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-051d3064.entry.js → p-041776c0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a09e157f.entry.js → p-08c99a60.entry.js} +1 -1
- package/dist/brandsync-wc/{p-70f64b25.entry.js → p-18c3c22c.entry.js} +1 -1
- package/dist/brandsync-wc/p-1c3a43c7.entry.js +1 -0
- package/dist/brandsync-wc/{p-fddc7bd1.entry.js → p-1c427ffb.entry.js} +1 -1
- package/dist/brandsync-wc/p-2181378f.entry.js +1 -0
- package/dist/brandsync-wc/{p-29027559.entry.js → p-2e958566.entry.js} +1 -1
- package/dist/brandsync-wc/{p-235ae012.entry.js → p-301b2455.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8ee0153b.entry.js → p-32cd69f1.entry.js} +1 -1
- package/dist/brandsync-wc/p-4f2c4929.entry.js +1 -0
- package/dist/brandsync-wc/{p-a0d5a620.entry.js → p-50a251a4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0e39b9cc.entry.js → p-5f3cd501.entry.js} +1 -1
- package/dist/brandsync-wc/p-701ebf4a.entry.js +1 -0
- package/dist/brandsync-wc/p-763876f5.entry.js +1 -0
- package/dist/brandsync-wc/{p-f7d47c17.entry.js → p-76e1c295.entry.js} +1 -1
- package/dist/brandsync-wc/p-790db8b3.entry.js +1 -0
- package/dist/brandsync-wc/{p-4e5dcaff.entry.js → p-796a1860.entry.js} +1 -1
- package/dist/brandsync-wc/p-806a5347.entry.js +1 -0
- package/dist/brandsync-wc/{p-6331de9c.entry.js → p-8eba7f90.entry.js} +1 -1
- package/dist/brandsync-wc/p-96ed9386.entry.js +1 -0
- package/dist/brandsync-wc/{p-cfcf3f0a.entry.js → p-9e88f19c.entry.js} +1 -1
- package/dist/brandsync-wc/p-9f6fe37d.entry.js +1 -0
- package/dist/brandsync-wc/{p-de7c946d.entry.js → p-a71d2811.entry.js} +1 -1
- package/dist/brandsync-wc/{p-33e44094.entry.js → p-a8e2a829.entry.js} +1 -1
- package/dist/brandsync-wc/p-addfa0a0.entry.js +1 -0
- package/dist/brandsync-wc/{p-4574a707.entry.js → p-af2bf957.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6bf2f116.entry.js → p-b2074a32.entry.js} +1 -1
- package/dist/brandsync-wc/{p-03b08508.entry.js → p-c3f72584.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7c94e6ae.entry.js → p-c99b6a66.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2891d40b.entry.js → p-c9a72416.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9f65f998.entry.js → p-d3f44cb7.entry.js} +1 -1
- package/dist/brandsync-wc/p-d42b1c2b.entry.js +1 -0
- package/dist/brandsync-wc/{p-3ec74d35.entry.js → p-daab6b22.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ee7da23d.entry.js → p-dbcbe682.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3176d1d3.entry.js → p-e8a5b8eb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-062cfa34.entry.js → p-ea4e20ef.entry.js} +1 -1
- package/dist/brandsync-wc/p-f370b8fa.entry.js +1 -0
- package/dist/brandsync-wc/{p-05c7de28.entry.js → p-f89de457.entry.js} +1 -1
- package/dist/brandsync-wc/{p-114d2fd8.entry.js → p-fd254972.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.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-attachment-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +13 -1
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +15 -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-data-table.cjs.entry.js +18 -4
- package/dist/cjs/bs-datepicker.cjs.entry.js +410 -0
- 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-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-inline-tab.cjs.entry.js +5 -1
- package/dist/cjs/{bs-input.cjs.entry.js → bs-input_2.cjs.entry.js} +37 -4
- package/dist/cjs/bs-menu.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 +118 -5
- package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
- package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
- package/dist/cjs/bs-progress.cjs.entry.js +2 -2
- package/dist/cjs/bs-radio.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-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.cjs.entry.js +5 -1
- package/dist/cjs/bs-tabs.cjs.entry.js +47 -2
- package/dist/cjs/bs-timepicker.cjs.entry.js +209 -0
- package/dist/cjs/bs-toast.cjs.entry.js +1 -1
- package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/bs-a11y.cmp.test.js +4 -0
- 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-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.cmp.test.js +63 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +32 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.cmp.test.js +45 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.js +30 -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.cmp.test.js +20 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.css +21 -4
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +3 -2
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.stories.js +10 -0
- 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-data-table/bs-data-table.cmp.test.js +19 -0
- package/dist/collection/components/bs-data-table/bs-data-table.js +19 -5
- package/dist/collection/components/bs-data-table/bs-data-table.stories.js +8 -1
- package/dist/collection/components/bs-datepicker/bs-datepicker.cmp.test.js +182 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.css +315 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.js +782 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.stories.js +63 -0
- 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-input/bs-input.js +7 -4
- package/dist/collection/components/bs-logo/bs-logo.cmp.test.js +52 -3
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu/bs-menu.stories.js +54 -0
- 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 +2 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
- package/dist/collection/components/bs-radio/bs-radio.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-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 +24 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +24 -1
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.cmp.test.js +88 -0
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +83 -2
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.stories.js +24 -0
- package/dist/collection/components/bs-timepicker/bs-timepicker.cmp.test.js +141 -0
- package/dist/collection/components/bs-timepicker/bs-timepicker.css +200 -0
- package/dist/collection/components/bs-timepicker/bs-timepicker.js +509 -0
- package/dist/collection/components/bs-timepicker/bs-timepicker.stories.js +44 -0
- 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/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.cmp.test.js +173 -5
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.css +106 -34
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +181 -5
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.stories.js +48 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.cmp.test.js +68 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.css +31 -17
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.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-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-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-data-table.js +1 -1
- package/dist/components/bs-datepicker.d.ts +11 -0
- package/dist/components/bs-datepicker.js +1 -0
- package/dist/components/bs-dialog.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-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-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-timepicker.d.ts +11 -0
- package/dist/components/bs-timepicker.js +1 -0
- package/dist/components/bs-toast.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/{p-BA3c9Rom.js → p-B7Icv1ho.js} +1 -1
- package/dist/components/{p-wei0Ija2.js → p-BTvme8CE.js} +1 -1
- package/dist/components/p-BYR_ZC8v.js +1 -0
- package/dist/components/p-Ba860ej1.js +1 -0
- package/dist/components/p-CPvqZNO8.js +1 -0
- package/dist/components/{p-EtXc94lJ.js → p-DkIVyFOP.js} +1 -1
- package/dist/components/{p-BfEyD6Ku.js → p-ZK8p5zax.js} +1 -1
- package/dist/components/p-jDO25SfF.js +1 -0
- package/dist/esm/brandsync-wc.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-attachment-list.entry.js +1 -1
- package/dist/esm/bs-breadcrumb-overflow.entry.js +14 -2
- package/dist/esm/bs-breadcrumb.entry.js +16 -2
- 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-data-table.entry.js +18 -4
- package/dist/esm/bs-datepicker.entry.js +408 -0
- 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-icon-button.entry.js +2 -2
- package/dist/esm/bs-inline-tab.entry.js +5 -1
- package/dist/esm/{bs-input.entry.js → bs-input_2.entry.js} +37 -5
- package/dist/esm/bs-menu.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer.entry.js +119 -6
- package/dist/esm/bs-navigation-header.entry.js +2 -2
- package/dist/esm/bs-pagination.entry.js +1 -1
- package/dist/esm/bs-progress-linear.entry.js +2 -2
- package/dist/esm/bs-progress.entry.js +2 -2
- package/dist/esm/bs-radio.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-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.entry.js +5 -1
- package/dist/esm/bs-tabs.entry.js +48 -3
- package/dist/esm/bs-timepicker.entry.js +207 -0
- package/dist/esm/bs-toast.entry.js +1 -1
- package/dist/esm/bs-tooltip.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.d.ts +10 -0
- package/dist/types/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.d.ts +8 -0
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.d.ts +2 -1
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.stories.d.ts +1 -0
- package/dist/types/components/bs-data-table/bs-data-table.d.ts +16 -2
- package/dist/types/components/bs-datepicker/bs-datepicker.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-datepicker/bs-datepicker.d.ts +136 -0
- package/dist/types/components/bs-datepicker/bs-datepicker.stories.d.ts +20 -0
- package/dist/types/components/bs-menu/bs-menu.stories.d.ts +1 -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 +17 -0
- package/dist/types/components/bs-tab/bs-tabs/bs-tabs.stories.d.ts +1 -0
- package/dist/types/components/bs-timepicker/bs-timepicker.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-timepicker/bs-timepicker.d.ts +101 -0
- package/dist/types/components/bs-timepicker/bs-timepicker.stories.d.ts +14 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.d.ts +50 -1
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.stories.d.ts +2 -0
- package/dist/types/components.d.ts +645 -2
- package/package.json +1 -1
- package/dist/brandsync-wc/p-002d258d.entry.js +0 -1
- package/dist/brandsync-wc/p-153da845.entry.js +0 -1
- package/dist/brandsync-wc/p-2e7a1082.entry.js +0 -1
- package/dist/brandsync-wc/p-612cf79c.entry.js +0 -1
- package/dist/brandsync-wc/p-652d4068.entry.js +0 -1
- package/dist/brandsync-wc/p-7b00dd36.entry.js +0 -1
- package/dist/brandsync-wc/p-ae978c9a.entry.js +0 -1
- package/dist/brandsync-wc/p-bc69a96c.entry.js +0 -1
- package/dist/brandsync-wc/p-bf53ad52.entry.js +0 -1
- package/dist/brandsync-wc/p-c10d2529.entry.js +0 -1
- package/dist/brandsync-wc/p-c7f4c114.entry.js +0 -1
- package/dist/cjs/bs-menu-item.cjs.entry.js +0 -34
- package/dist/components/p-BkHYJIyj.js +0 -1
- package/dist/components/p-Buly0d5G.js +0 -1
- package/dist/esm/bs-menu-item.entry.js +0 -32
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export interface BsTimepickerChange {
|
|
3
|
+
/** The confirmed time as 24-hour `HH:mm`, whatever `format` is displayed. */
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* An inline time picker: hour and minute spinners (up/down carets, or the arrow keys on the value),
|
|
8
|
+
* an AM/PM dropdown in 12-hour mode, a 24h switch, and Cancel/Confirm buttons. Matches the Figma
|
|
9
|
+
* "Time picker" component's two formats (12h with AM/PM, and 24h).
|
|
10
|
+
*
|
|
11
|
+
* The picker works on a draft: nothing is committed until the user presses Confirm, which updates
|
|
12
|
+
* `value` and fires `bsChange`. Cancel discards the draft and fires `bsCancel`.
|
|
13
|
+
*
|
|
14
|
+
* `value` is always 24-hour `HH:mm` (e.g. `"14:30"`), regardless of the displayed `format`.
|
|
15
|
+
*
|
|
16
|
+
* The picker renders inline at a fixed width; to show it as a popover, put it in your own overlay
|
|
17
|
+
* and close that overlay from `bsChange`/`bsCancel`.
|
|
18
|
+
*
|
|
19
|
+
* ## When to use
|
|
20
|
+
* - Picking a time of day where the user steps through hours and minutes.
|
|
21
|
+
*
|
|
22
|
+
* ## When not to use
|
|
23
|
+
* - A time the user can type faster than step to -- a plain `bs-input` is quicker.
|
|
24
|
+
*
|
|
25
|
+
* ## Keyboard
|
|
26
|
+
* Tab to the hour or minute value, then ArrowUp/ArrowDown step it (wrapping), Home/End jump to the
|
|
27
|
+
* first/last value, and typing digits sets it directly.
|
|
28
|
+
*
|
|
29
|
+
* @part container - The outer card.
|
|
30
|
+
* @part header - The title row.
|
|
31
|
+
* @part title - The heading text.
|
|
32
|
+
* @part format-toggle - The 24h switch.
|
|
33
|
+
* @part selector - The row of spinners.
|
|
34
|
+
* @part spinner - Each hour/minute column.
|
|
35
|
+
* @part step - Each up/down caret button.
|
|
36
|
+
* @part value - Each hour/minute value (a `spinbutton`).
|
|
37
|
+
* @part separator - The colon between hours and minutes.
|
|
38
|
+
* @part period - The AM/PM dropdown (12h only).
|
|
39
|
+
* @part footer - The Cancel/Confirm row.
|
|
40
|
+
* @part cancel - The Cancel button.
|
|
41
|
+
* @part confirm - The Confirm button.
|
|
42
|
+
*/
|
|
43
|
+
export declare class BsTimepicker {
|
|
44
|
+
el: HTMLElement;
|
|
45
|
+
internals: ElementInternals;
|
|
46
|
+
private initialValue;
|
|
47
|
+
private typed;
|
|
48
|
+
/** The `name` the confirmed value is submitted under in a surrounding `<form>`. */
|
|
49
|
+
name?: string;
|
|
50
|
+
/** The confirmed time, 24-hour `HH:mm`. Empty means no time chosen yet (the picker opens on
|
|
51
|
+
* 00:00). Mutable so Confirm updates it directly; `bsChange` still fires. */
|
|
52
|
+
value: string;
|
|
53
|
+
/** Display format: `12h` (with an AM/PM dropdown) or `24h`. The user can switch it with the
|
|
54
|
+
* 24h switch. Does not change `value`, which is always 24-hour. */
|
|
55
|
+
format: '12h' | '24h';
|
|
56
|
+
/** Step, in minutes, of the minute spinner's carets and arrow keys. Typing is not constrained. */
|
|
57
|
+
minuteStep: number;
|
|
58
|
+
/** Heading text. */
|
|
59
|
+
heading: string;
|
|
60
|
+
/** Label of the 24h switch. */
|
|
61
|
+
formatLabel: string;
|
|
62
|
+
/** Label of the Confirm button. */
|
|
63
|
+
confirmLabel: string;
|
|
64
|
+
/** Label of the Cancel button. */
|
|
65
|
+
cancelLabel: string;
|
|
66
|
+
/** Accessible name of the hour spinner. */
|
|
67
|
+
hourLabel: string;
|
|
68
|
+
/** Accessible name of the minute spinner. */
|
|
69
|
+
minuteLabel: string;
|
|
70
|
+
/** Accessible name of the AM/PM dropdown. */
|
|
71
|
+
periodLabel: string;
|
|
72
|
+
/** Fires when the user presses Confirm: `{ value }` as 24-hour `HH:mm`. Not fired when `value` is
|
|
73
|
+
* set programmatically. */
|
|
74
|
+
bsChange: EventEmitter<BsTimepickerChange>;
|
|
75
|
+
/** Fires when the user presses Cancel. The draft is reset to `value`. */
|
|
76
|
+
bsCancel: EventEmitter<void>;
|
|
77
|
+
/** Draft hour, 0-23. */
|
|
78
|
+
hour: number;
|
|
79
|
+
/** Draft minute, 0-59. */
|
|
80
|
+
minute: number;
|
|
81
|
+
componentWillLoad(): void;
|
|
82
|
+
onValueChange(): void;
|
|
83
|
+
onNameChange(): void;
|
|
84
|
+
/** Called by the browser when the surrounding `<form>` is reset. */
|
|
85
|
+
formResetCallback(): void;
|
|
86
|
+
private resetDraft;
|
|
87
|
+
private syncFormValue;
|
|
88
|
+
private get step();
|
|
89
|
+
private get is12h();
|
|
90
|
+
private get isPm();
|
|
91
|
+
/** The number shown in a column. In 12h mode the hour reads 1-12. */
|
|
92
|
+
private shown;
|
|
93
|
+
private bounds;
|
|
94
|
+
private setShown;
|
|
95
|
+
private stepBy;
|
|
96
|
+
private onKeyDown;
|
|
97
|
+
private confirm;
|
|
98
|
+
private cancel;
|
|
99
|
+
private renderColumn;
|
|
100
|
+
render(): any;
|
|
101
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
interface BsTimepickerArgs {
|
|
3
|
+
value: string;
|
|
4
|
+
format: '12h' | '24h';
|
|
5
|
+
minuteStep: number;
|
|
6
|
+
heading: string;
|
|
7
|
+
}
|
|
8
|
+
declare const meta: Meta<BsTimepickerArgs>;
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<BsTimepickerArgs>;
|
|
11
|
+
export declare const Default: Story;
|
|
12
|
+
export declare const TwentyFourHour: Story;
|
|
13
|
+
export declare const WithValue: Story;
|
|
14
|
+
export declare const FifteenMinuteStep: Story;
|
|
@@ -37,6 +37,14 @@ import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
|
37
37
|
* that state, so this deliberately does not add the same "flip on toggle" idiom the drawer item's
|
|
38
38
|
* own disclosure chevron does (that one really is an unconfirmed addition; this one was checked).
|
|
39
39
|
*
|
|
40
|
+
* **Small screens (768px and below)** switch to an off-canvas overlay instead of a permanent rail:
|
|
41
|
+
* the drawer is hidden until `open` is set, then slides in over the page with a backdrop, fully
|
|
42
|
+
* expanded (labels visible, nested items reachable). Escape or a click on the backdrop closes it and
|
|
43
|
+
* emits `bsClose`; focus moves into it on open and back to whatever opened it on close. The
|
|
44
|
+
* collapse toggle and the compact search trigger are not shown in this mode (nothing sits behind
|
|
45
|
+
* them). The drawer has no trigger of its own -- put a button in your header and set `open` from it.
|
|
46
|
+
* On wider screens `open` is ignored and nothing changes.
|
|
47
|
+
*
|
|
40
48
|
* @slot search - Reserved for a search field, e.g. a `bs-input type="search"`. This component
|
|
41
49
|
* does not build one itself. Hidden while `collapsed` (see above).
|
|
42
50
|
* @slot - Default slot: the scrollable list of nav items, typically one or more
|
|
@@ -52,6 +60,7 @@ import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
|
52
60
|
* @part search - The wrapper around the `search` slot.
|
|
53
61
|
* @part search-trigger - The compact search button shown instead of the `search` slot while `collapsed`.
|
|
54
62
|
* @part items - The wrapper around the default (items) slot.
|
|
63
|
+
* @part backdrop - The scrim behind the overlay (small screens only; clicking it closes the overlay).
|
|
55
64
|
*/
|
|
56
65
|
export declare class BsNavigationDrawer {
|
|
57
66
|
el: HTMLElement;
|
|
@@ -90,8 +99,48 @@ export declare class BsNavigationDrawer {
|
|
|
90
99
|
* pairing works too: a header that keeps its own logo (`alignment="default"`) paired with this
|
|
91
100
|
* drawer set to `showLogo={false}`, so the brand mark only ever appears once. */
|
|
92
101
|
showLogo: boolean;
|
|
93
|
-
|
|
102
|
+
/** Small screens only (768px and below): whether the off-canvas overlay is shown. Mutable and
|
|
103
|
+
* reflected -- the drawer sets it back to `false` itself when the user dismisses it (Escape or
|
|
104
|
+
* the backdrop), and emits `bsClose`. Ignored on wider screens, where the drawer is always in
|
|
105
|
+
* the page flow. There is no built-in trigger: set this from your own button. */
|
|
106
|
+
open: boolean;
|
|
107
|
+
/** Fires when the user dismisses the overlay (Escape, or a click on the backdrop), after `open`
|
|
108
|
+
* has been set back to `false`. Does not fire when you set `open = false` yourself. */
|
|
109
|
+
bsClose: EventEmitter<void>;
|
|
110
|
+
/** Whether the viewport is in the small-screen range (<= 768px), tracked with `matchMedia`. */
|
|
111
|
+
mobile: boolean;
|
|
112
|
+
private mediaQuery?;
|
|
113
|
+
private focusPending;
|
|
114
|
+
private navRef?;
|
|
115
|
+
private previouslyFocused?;
|
|
116
|
+
private bodyOverflowBefore?;
|
|
117
|
+
private get overlayOpen();
|
|
118
|
+
connectedCallback(): void;
|
|
119
|
+
disconnectedCallback(): void;
|
|
120
|
+
private onMediaChange;
|
|
121
|
+
onCollapsedChange(): void;
|
|
122
|
+
onMobileChange(): void;
|
|
123
|
+
onOpenChange(): void;
|
|
94
124
|
componentDidLoad(): void;
|
|
125
|
+
componentDidRender(): void;
|
|
126
|
+
/** Focus is moved only after the render that makes the panel visible -- focusing earlier races the
|
|
127
|
+
* re-render (the panel is still `visibility: hidden`), and a hidden element can't take focus. */
|
|
128
|
+
private flushFocus;
|
|
129
|
+
/** In the small-screen overlay the items always use their expanded layout -- the collapsed
|
|
130
|
+
* (icon-above-caption) layout is for the desktop rail, and would clip labels in a full-width
|
|
131
|
+
* panel and hide nested items. */
|
|
132
|
+
private syncItems;
|
|
133
|
+
/** Scroll lock, focus entry and focus return for the overlay, mirroring `bs-dialog`: the focus
|
|
134
|
+
* move is deferred a frame because focusing right after the panel becomes visible does not
|
|
135
|
+
* reliably land. */
|
|
136
|
+
private applyOverlayState;
|
|
137
|
+
private unlockScroll;
|
|
138
|
+
private requestClose;
|
|
139
|
+
onDocumentKeydown(ev: KeyboardEvent): void;
|
|
140
|
+
/** Keeps focus inside the open overlay: focus that lands anywhere outside this component is
|
|
141
|
+
* pulled back in. `composedPath()` is used so this works across shadow-DOM boundaries (same
|
|
142
|
+
* approach as `bs-dialog`). */
|
|
143
|
+
onDocumentFocusIn(ev: FocusEvent): void;
|
|
95
144
|
/** Keeps every direct-child `bs-navigation-drawer-item`'s `collapsed` prop in sync with this
|
|
96
145
|
* component's own -- same direct-children-prop-sync approach `bs-tabs` uses for `selected`
|
|
97
146
|
* across its `bs-tab` children. Only direct children (top-level items): Figma's collapsed rail
|