@otto-de/b2b-core-components 1.27.0 → 1.28.1
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/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/{p-487a51a9.entry.js → p-08c8a952.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b550622b.entry.js → p-14a72105.entry.js} +1 -1
- package/dist/b2b-core-components/{p-739297b7.entry.js → p-22dd07cc.entry.js} +1 -1
- package/dist/b2b-core-components/{p-5969da16.entry.js → p-2647450d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c4e22b08.entry.js → p-348f152b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b68cb8bd.entry.js → p-3568c300.entry.js} +1 -1
- package/dist/b2b-core-components/p-383d0a10.entry.js +1 -0
- package/dist/b2b-core-components/{p-51cf8998.entry.js → p-3cc11116.entry.js} +1 -1
- package/dist/b2b-core-components/p-400fa973.entry.js +1 -0
- package/dist/b2b-core-components/{p-ad19a73e.entry.js → p-5450ce1c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-d9632863.entry.js → p-561b8fd3.entry.js} +1 -1
- package/dist/b2b-core-components/p-5e6aa5f2.entry.js +1 -0
- package/dist/b2b-core-components/{p-33b09ea0.entry.js → p-659c5d92.entry.js} +1 -1
- package/dist/b2b-core-components/{p-561f2676.entry.js → p-6cf5561b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-00cc0f43.entry.js → p-6ff0ffdf.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8ee0ece8.entry.js → p-77eabb15.entry.js} +1 -1
- package/dist/b2b-core-components/{p-17599645.entry.js → p-7e5a8e61.entry.js} +1 -1
- package/dist/b2b-core-components/{p-eb50ea0e.entry.js → p-80c5af85.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c6a303c2.entry.js → p-8d73c38a.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a6d5456a.entry.js → p-9356a466.entry.js} +1 -1
- package/dist/b2b-core-components/{p-44445e5d.entry.js → p-93bf8bbe.entry.js} +1 -1
- package/dist/b2b-core-components/{p-6b1a08fd.entry.js → p-9487b0bf.entry.js} +1 -1
- package/dist/b2b-core-components/p-97fa0bb3.entry.js +1 -0
- package/dist/b2b-core-components/{p-ee371752.entry.js → p-a155219a.entry.js} +1 -1
- package/dist/b2b-core-components/p-a9ba47d6.entry.js +1 -0
- package/dist/b2b-core-components/{p-aa43914c.entry.js → p-aa8b6283.entry.js} +1 -1
- package/dist/b2b-core-components/{p-739575f8.entry.js → p-bbbbd519.entry.js} +1 -1
- package/dist/b2b-core-components/{p-7b843179.entry.js → p-bf0a5d26.entry.js} +1 -1
- package/dist/b2b-core-components/{p-abf90077.entry.js → p-c2a7f367.entry.js} +1 -1
- package/dist/b2b-core-components/{p-41d54ae8.entry.js → p-c6cc2dea.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c2cd0b94.entry.js → p-c8a68b79.entry.js} +1 -1
- package/dist/b2b-core-components/{p-bbcc4de6.entry.js → p-d1c8105b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-aac2ed9c.entry.js → p-d93b45d6.entry.js} +1 -1
- package/dist/b2b-core-components/{p-d754db45.entry.js → p-dad8f664.entry.js} +1 -1
- package/dist/b2b-core-components/p-db205434.entry.js +1 -0
- package/dist/b2b-core-components/p-dd96c384.entry.js +1 -0
- package/dist/b2b-core-components/{p-d8d67dd8.entry.js → p-f51f72d4.entry.js} +1 -1
- package/dist/b2b-core-components/p-f5786cad.entry.js +1 -0
- package/dist/b2b-core-components/{p-eaa1c6b6.entry.js → p-f67e3fbe.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c1d43d73.entry.js → p-f982a075.entry.js} +1 -1
- package/dist/b2b-core-components/{p-cbea64bc.entry.js → p-fbb917b5.entry.js} +1 -1
- package/dist/b2b-core-components/{p-398a82f6.entry.js → p-fdc01d9c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-47f31e7c.entry.js → p-fe75bd7e.entry.js} +1 -1
- package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-chip-component_2.cjs.entry.js +2 -2
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-date-picker.cjs.entry.js +35 -11
- package/dist/cjs/b2b-dropdown.cjs.entry.js +115 -32
- package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +1 -1
- package/dist/cjs/b2b-flyout-menu.cjs.entry.js +3 -3
- package/dist/cjs/b2b-grid-col.cjs.entry.js +1 -1
- package/dist/cjs/b2b-grid-row.cjs.entry.js +2 -2
- package/dist/cjs/b2b-grid.cjs.entry.js +2 -2
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +3 -3
- package/dist/cjs/b2b-input-label.cjs.entry.js +2 -2
- package/dist/cjs/b2b-input_2.cjs.entry.js +5 -5
- package/dist/cjs/b2b-label.cjs.entry.js +2 -2
- package/dist/cjs/b2b-modal.cjs.entry.js +2 -2
- package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +65 -22
- package/dist/cjs/b2b-pagination.cjs.entry.js +1 -1
- package/dist/cjs/b2b-paragraph.cjs.entry.js +2 -2
- package/dist/cjs/b2b-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/b2b-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/b2b-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/b2b-required-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-rounded-icon.cjs.entry.js +4 -4
- package/dist/cjs/b2b-scrollable-container.cjs.entry.js +1 -1
- package/dist/cjs/b2b-search.cjs.entry.js +1 -1
- package/dist/cjs/b2b-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-shimmer.cjs.entry.js +1 -1
- package/dist/cjs/b2b-snackbar.cjs.entry.js +19 -13
- package/dist/cjs/b2b-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table-cell_2.cjs.entry.js +3 -3
- package/dist/cjs/b2b-table-row.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table.cjs.entry.js +2 -2
- package/dist/cjs/b2b-textarea.cjs.entry.js +2 -2
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-chip.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +2 -2
- package/dist/cjs/b2b-toggle-switch.cjs.entry.js +4 -4
- package/dist/cjs/b2b-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/b2b-wizard-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-wizard-step.cjs.entry.js +2 -2
- package/dist/cjs/b2b-wizard.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/alert/alert.css +2 -2
- package/dist/collection/components/anchor/anchor.css +2 -2
- package/dist/collection/components/background-box/background-box.css +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
- package/dist/collection/components/button/button.css +2 -2
- package/dist/collection/components/card/card.css +2 -2
- package/dist/collection/components/checkbox/checkbox.css +2 -2
- package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
- package/dist/collection/components/chip/chip.css +2 -2
- package/dist/collection/components/date-picker/date-picker-days-header.css +2 -2
- package/dist/collection/components/date-picker/date-picker-days.css +2 -2
- package/dist/collection/components/date-picker/date-picker-header.css +2 -2
- package/dist/collection/components/date-picker/date-picker-months.css +2 -2
- package/dist/collection/components/date-picker/date-picker-years.css +2 -2
- package/dist/collection/components/date-picker/date-picker.css +2 -2
- package/dist/collection/components/date-picker/date-picker.js +40 -11
- package/dist/collection/components/dropdown/dropdown.css +61 -5
- package/dist/collection/components/dropdown/dropdown.e2e.js +8 -0
- package/dist/collection/components/dropdown/dropdown.js +147 -31
- package/dist/collection/components/dropdown/dropdown.stories.js +6 -0
- package/dist/collection/components/flyout-menu/flyout-menu-option.css +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu-option.js +1 -1
- package/dist/collection/components/flyout-menu/flyout-menu.css +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu.js +3 -3
- package/dist/collection/components/grid/column.js +2 -2
- package/dist/collection/components/grid/grid.css +0 -6
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/grid/row.js +2 -2
- package/dist/collection/components/headline/headline.css +2 -2
- package/dist/collection/components/icon/icon.css +2 -2
- package/dist/collection/components/icon-100/icon-100.css +2 -2
- package/dist/collection/components/icon-50/icon-50.css +2 -2
- package/dist/collection/components/input/input.css +2 -2
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/input-group/input-group.css +2 -2
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/input-label/input-label.js +2 -2
- package/dist/collection/components/input-list/input-list-option.js +1 -1
- package/dist/collection/components/input-list/input-list.css +2 -2
- package/dist/collection/components/input-list/input-list.js +2 -2
- package/dist/collection/components/label/label.css +2 -2
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/modal/modal.css +2 -2
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +73 -14
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.e2e.js +60 -87
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +155 -21
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.stories.js +32 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +2 -2
- package/dist/collection/components/pagination/pagination.css +2 -2
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/paragraph/paragraph.css +2 -2
- package/dist/collection/components/paragraph/paragraph.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.css +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +3 -3
- package/dist/collection/components/radio/radio.css +2 -2
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- package/dist/collection/components/required-separator/required-separator.css +2 -2
- package/dist/collection/components/required-separator/required-separator.js +1 -1
- package/dist/collection/components/rounded-icon/rounded-icon.css +2 -2
- package/dist/collection/components/rounded-icon/rounded-icon.js +4 -4
- package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
- package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
- package/dist/collection/components/search/search.js +1 -1
- package/dist/collection/components/separator/separator.css +2 -2
- package/dist/collection/components/separator/separator.js +1 -1
- package/dist/collection/components/shimmer/shimmer.css +2 -2
- package/dist/collection/components/shimmer/shimmer.js +1 -1
- package/dist/collection/components/snackbar/snackbar.css +2 -2
- package/dist/collection/components/snackbar/snackbar.e2e.js +0 -2
- package/dist/collection/components/snackbar/snackbar.js +20 -14
- package/dist/collection/components/snackbar/snackbar.stories.js +4 -3
- package/dist/collection/components/spinner/spinner.css +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/tab/tab.css +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-group/tab-group.js +1 -1
- package/dist/collection/components/tab-panel/tab-panel.css +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table-cell/table-cell.css +2 -2
- package/dist/collection/components/table/table-cell/table-cell.js +2 -2
- package/dist/collection/components/table/table-header/table-header.css +2 -2
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-row/table-row.css +2 -2
- package/dist/collection/components/table/table-row/table-row.js +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +2 -2
- package/dist/collection/components/table/table.css +2 -2
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/textarea/textarea.css +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/toggle-button/toggle-button.css +2 -2
- package/dist/collection/components/toggle-button/toggle-button.js +3 -3
- package/dist/collection/components/toggle-chip/toggle-chip.css +2 -2
- package/dist/collection/components/toggle-chip/toggle-chip.js +3 -3
- package/dist/collection/components/toggle-group/toggle-group.css +2 -2
- package/dist/collection/components/toggle-group/toggle-group.js +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.css +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
- package/dist/collection/components/tooltip/tooltip.css +2 -2
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/wizard/wizard-step.js +2 -2
- package/dist/collection/components/wizard/wizard.css +2 -2
- package/dist/collection/components/wizard/wizard.js +1 -1
- package/dist/collection/components/wizard-icon/wizard-icon.css +2 -2
- package/dist/collection/components/wizard-icon/wizard-icon.js +1 -1
- package/dist/components/b2b-date-picker.js +39 -12
- package/dist/components/b2b-dropdown.js +124 -33
- package/dist/components/b2b-flyout-menu-option.js +1 -1
- package/dist/components/b2b-flyout-menu.js +3 -3
- package/dist/components/b2b-grid-col.js +1 -1
- package/dist/components/b2b-grid-row.js +2 -2
- package/dist/components/b2b-grid.js +2 -2
- package/dist/components/b2b-label.js +2 -2
- package/dist/components/b2b-modal.js +2 -2
- package/dist/components/b2b-multiselect-dropdown.js +72 -22
- package/dist/components/b2b-pagination.js +1 -1
- package/dist/components/b2b-paragraph.js +2 -2
- package/dist/components/b2b-progress-bar.js +3 -3
- package/dist/components/b2b-radio-button.js +2 -2
- package/dist/components/b2b-radio-group.js +2 -2
- package/dist/components/b2b-required-separator.js +1 -1
- package/dist/components/b2b-scrollable-container.js +1 -1
- package/dist/components/b2b-search.js +1 -1
- package/dist/components/b2b-shimmer.js +1 -1
- package/dist/components/b2b-snackbar.js +20 -14
- package/dist/components/b2b-tab-group.js +1 -1
- package/dist/components/b2b-tab-panel.js +1 -1
- package/dist/components/b2b-tab.js +2 -2
- package/dist/components/b2b-table-row.js +2 -2
- package/dist/components/b2b-table-rowgroup.js +2 -2
- package/dist/components/b2b-table.js +2 -2
- package/dist/components/b2b-textarea.js +2 -2
- package/dist/components/b2b-toggle-button.js +3 -3
- package/dist/components/b2b-toggle-chip.js +3 -3
- package/dist/components/b2b-toggle-group.js +2 -2
- package/dist/components/b2b-toggle-switch.js +4 -4
- package/dist/components/b2b-tooltip.js +3 -3
- package/dist/components/b2b-wizard-step.js +2 -2
- package/dist/components/b2b-wizard.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input-label.js +2 -2
- package/dist/components/input-list-option.js +1 -1
- package/dist/components/input-list.js +2 -2
- package/dist/components/input.js +4 -4
- package/dist/components/multiselect-option.js +2 -2
- package/dist/components/rounded-icon.js +4 -4
- package/dist/components/separator.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/table-cell.js +2 -2
- package/dist/components/table-header.js +1 -1
- package/dist/components/wizard-icon.js +1 -1
- package/dist/custom-elements.json +21 -1
- package/dist/esm/b2b-button_2.entry.js +1 -1
- package/dist/esm/b2b-chip-component_2.entry.js +2 -2
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-date-picker.entry.js +35 -11
- package/dist/esm/b2b-dropdown.entry.js +115 -32
- package/dist/esm/b2b-flyout-menu-option.entry.js +1 -1
- package/dist/esm/b2b-flyout-menu.entry.js +3 -3
- package/dist/esm/b2b-grid-col.entry.js +1 -1
- package/dist/esm/b2b-grid-row.entry.js +2 -2
- package/dist/esm/b2b-grid.entry.js +2 -2
- package/dist/esm/b2b-input-group_2.entry.js +3 -3
- package/dist/esm/b2b-input-label.entry.js +2 -2
- package/dist/esm/b2b-input_2.entry.js +5 -5
- package/dist/esm/b2b-label.entry.js +2 -2
- package/dist/esm/b2b-modal.entry.js +2 -2
- package/dist/esm/b2b-multiselect-dropdown.entry.js +65 -22
- package/dist/esm/b2b-pagination.entry.js +1 -1
- package/dist/esm/b2b-paragraph.entry.js +2 -2
- package/dist/esm/b2b-progress-bar.entry.js +3 -3
- package/dist/esm/b2b-radio-button.entry.js +2 -2
- package/dist/esm/b2b-radio-group.entry.js +2 -2
- package/dist/esm/b2b-required-separator.entry.js +1 -1
- package/dist/esm/b2b-rounded-icon.entry.js +4 -4
- package/dist/esm/b2b-scrollable-container.entry.js +1 -1
- package/dist/esm/b2b-search.entry.js +1 -1
- package/dist/esm/b2b-separator.entry.js +1 -1
- package/dist/esm/b2b-shimmer.entry.js +1 -1
- package/dist/esm/b2b-snackbar.entry.js +19 -13
- package/dist/esm/b2b-tab-group.entry.js +1 -1
- package/dist/esm/b2b-tab-panel.entry.js +1 -1
- package/dist/esm/b2b-tab.entry.js +2 -2
- package/dist/esm/b2b-table-cell_2.entry.js +3 -3
- package/dist/esm/b2b-table-row.entry.js +2 -2
- package/dist/esm/b2b-table-rowgroup.entry.js +2 -2
- package/dist/esm/b2b-table.entry.js +2 -2
- package/dist/esm/b2b-textarea.entry.js +2 -2
- package/dist/esm/b2b-toggle-button.entry.js +3 -3
- package/dist/esm/b2b-toggle-chip.entry.js +3 -3
- package/dist/esm/b2b-toggle-group.entry.js +2 -2
- package/dist/esm/b2b-toggle-switch.entry.js +4 -4
- package/dist/esm/b2b-tooltip.entry.js +3 -3
- package/dist/esm/b2b-wizard-icon.entry.js +1 -1
- package/dist/esm/b2b-wizard-step.entry.js +2 -2
- package/dist/esm/b2b-wizard.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +2 -0
- package/dist/types/components/dropdown/dropdown.d.ts +24 -5
- package/dist/types/components/grid/column.d.ts +1 -1
- package/dist/types/components/multiselect-dropdown/multiselect-dropdown.d.ts +15 -3
- package/dist/types/components/multiselect-dropdown/multiselect-dropdown.stories.d.ts +5 -0
- package/dist/types/components/snackbar/snackbar.d.ts +2 -0
- package/dist/types/components.d.ts +46 -2
- package/dist/web-types.json +50 -2
- package/package.json +3 -3
- package/dist/b2b-core-components/p-2e0dbdb6.entry.js +0 -1
- package/dist/b2b-core-components/p-37cdfc83.entry.js +0 -1
- package/dist/b2b-core-components/p-5b91c61d.entry.js +0 -1
- package/dist/b2b-core-components/p-b7afa702.entry.js +0 -1
- package/dist/b2b-core-components/p-d2c93cb5.entry.js +0 -1
- package/dist/b2b-core-components/p-dcf7aad4.entry.js +0 -1
- package/dist/b2b-core-components/p-e565db52.entry.js +0 -1
- package/dist/b2b-core-components/p-f6e8c4e9.entry.js +0 -1
|
@@ -119,7 +119,15 @@ export class B2bDatePicker {
|
|
|
119
119
|
return value;
|
|
120
120
|
}
|
|
121
121
|
if (typeof value === 'string') {
|
|
122
|
-
|
|
122
|
+
try {
|
|
123
|
+
return JSON.parse(value);
|
|
124
|
+
}
|
|
125
|
+
catch (_a) {
|
|
126
|
+
return value
|
|
127
|
+
.split(',')
|
|
128
|
+
.map(v => v.trim())
|
|
129
|
+
.filter(Boolean);
|
|
130
|
+
}
|
|
123
131
|
}
|
|
124
132
|
return [];
|
|
125
133
|
}
|
|
@@ -128,23 +136,24 @@ export class B2bDatePicker {
|
|
|
128
136
|
return new Date(year, month - 1, day);
|
|
129
137
|
}
|
|
130
138
|
componentWillLoad() {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
this.datesToBeDisabled =
|
|
139
|
+
const disableDatesArray = this.normalizeArrayInput(this.disableDates);
|
|
140
|
+
if (disableDatesArray.length > 0) {
|
|
141
|
+
this.datesToBeDisabled = disableDatesArray.map(date => {
|
|
134
142
|
const [day, month, year] = date.split('.').map(Number);
|
|
135
143
|
return new Date(year, month - 1, day);
|
|
136
144
|
});
|
|
137
145
|
}
|
|
138
|
-
|
|
139
|
-
|
|
146
|
+
const disableDaysArray = this.normalizeArrayInput(this.disableDays);
|
|
147
|
+
if (disableDaysArray.length > 0) {
|
|
148
|
+
this.normalizedDisableEvery = disableDaysArray;
|
|
140
149
|
}
|
|
141
|
-
if (this.disableDatesUntil
|
|
150
|
+
if (this.disableDatesUntil && this.disableDatesUntil !== '') {
|
|
142
151
|
this.normalizedDisableDatesUntil = this.normalizeDisableDatesUntilAndFrom(this.disableDatesUntil);
|
|
143
152
|
}
|
|
144
|
-
if (this.disableDatesFrom
|
|
153
|
+
if (this.disableDatesFrom && this.disableDatesFrom !== '') {
|
|
145
154
|
this.normalizedDisableDatesFrom = this.normalizeDisableDatesUntilAndFrom(this.disableDatesFrom);
|
|
146
155
|
}
|
|
147
|
-
if (this.preSelectedDate
|
|
156
|
+
if (this.preSelectedDate) {
|
|
148
157
|
const [day, month, year] = this.preSelectedDate.split('.').map(Number);
|
|
149
158
|
this.selectedDay = day;
|
|
150
159
|
this.selectedMonth = month - 1;
|
|
@@ -153,9 +162,10 @@ export class B2bDatePicker {
|
|
|
153
162
|
this.showDatePicker = false;
|
|
154
163
|
}
|
|
155
164
|
else {
|
|
165
|
+
const today = new Date();
|
|
156
166
|
this.selectedDay = undefined;
|
|
157
|
-
this.selectedMonth =
|
|
158
|
-
this.selectedYear =
|
|
167
|
+
this.selectedMonth = today.getMonth();
|
|
168
|
+
this.selectedYear = today.getFullYear();
|
|
159
169
|
this.userInputDate = '';
|
|
160
170
|
}
|
|
161
171
|
}
|
|
@@ -178,6 +188,16 @@ export class B2bDatePicker {
|
|
|
178
188
|
this.setCurrentMonth(this.selectedMonth - 1);
|
|
179
189
|
}
|
|
180
190
|
}
|
|
191
|
+
handleDisableDatesChanged(newVal) {
|
|
192
|
+
const parsed = this.normalizeArrayInput(newVal);
|
|
193
|
+
this.datesToBeDisabled = parsed.map(date => {
|
|
194
|
+
const [day, month, year] = date.split('.').map(Number);
|
|
195
|
+
return new Date(year, month - 1, day);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
handleDisableDaysChanged(newVal) {
|
|
199
|
+
this.normalizedDisableEvery = this.normalizeArrayInput(newVal);
|
|
200
|
+
}
|
|
181
201
|
parseDateInput(dateString) {
|
|
182
202
|
const regex = /^(0[1-9]|[12][0-9]|3[01])\.(0[1-9]|1[0-2])\.\d{4}$/;
|
|
183
203
|
if (dateString == '' || dateString === undefined) {
|
|
@@ -692,6 +712,15 @@ export class B2bDatePicker {
|
|
|
692
712
|
}];
|
|
693
713
|
}
|
|
694
714
|
static get elementRef() { return "host"; }
|
|
715
|
+
static get watchers() {
|
|
716
|
+
return [{
|
|
717
|
+
"propName": "disableDates",
|
|
718
|
+
"methodName": "handleDisableDatesChanged"
|
|
719
|
+
}, {
|
|
720
|
+
"propName": "disableDays",
|
|
721
|
+
"methodName": "handleDisableDaysChanged"
|
|
722
|
+
}];
|
|
723
|
+
}
|
|
695
724
|
static get listeners() {
|
|
696
725
|
return [{
|
|
697
726
|
"name": "b2b-date-picker-escape",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Do not edit directly
|
|
127
|
-
* Generated on
|
|
127
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
128
128
|
*/
|
|
129
129
|
:root [data-theme="dark"] {
|
|
130
130
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -223,12 +223,20 @@
|
|
|
223
223
|
--b2b-border-radius: var(--b2b-size-border-radius-100);
|
|
224
224
|
--b2b-border-right: 1px solid var(--b2b-color-grey-200);
|
|
225
225
|
display: block;
|
|
226
|
+
position: relative;
|
|
226
227
|
width: 100%;
|
|
227
228
|
min-width: fit-content;
|
|
228
229
|
font-family: var(--b2b-font-family-default);
|
|
229
230
|
font-size: var(--b2b-size-copy-100);
|
|
230
231
|
max-width: 600px;
|
|
231
232
|
}
|
|
233
|
+
:host(.b2b-dropdown) .b2b-dropdown__wrapper {
|
|
234
|
+
display: flex;
|
|
235
|
+
position: relative;
|
|
236
|
+
width: 100%;
|
|
237
|
+
box-sizing: border-box;
|
|
238
|
+
flex: 1;
|
|
239
|
+
}
|
|
232
240
|
:host(.b2b-dropdown) .b2b-dropdown__select {
|
|
233
241
|
font-family: var(--b2b-font-family-default);
|
|
234
242
|
font-size: var(--b2b-size-copy-100);
|
|
@@ -248,14 +256,62 @@
|
|
|
248
256
|
height: var(--b2b-size-90);
|
|
249
257
|
line-height: var(--b2b-size-copy-line-height-100);
|
|
250
258
|
box-sizing: border-box;
|
|
251
|
-
|
|
259
|
+
text-align: left;
|
|
260
|
+
overflow-x: auto;
|
|
261
|
+
overflow-y: hidden;
|
|
252
262
|
}
|
|
253
|
-
:host(.b2b-dropdown) .b2b-dropdown__select
|
|
263
|
+
:host(.b2b-dropdown) .b2b-dropdown__select--focused {
|
|
254
264
|
outline: 2px solid Highlight;
|
|
255
265
|
outline: 2px solid -webkit-focus-ring-color;
|
|
256
266
|
border-radius: var(--b2b-border-radius);
|
|
257
267
|
outline-offset: -1px;
|
|
258
|
-
z-index:
|
|
268
|
+
z-index: 300;
|
|
269
|
+
}
|
|
270
|
+
:host(.b2b-dropdown) .b2b-dropdown__select--open {
|
|
271
|
+
outline: 2px solid Highlight;
|
|
272
|
+
outline: 2px solid -webkit-focus-ring-color;
|
|
273
|
+
border-radius: var(--b2b-border-radius);
|
|
274
|
+
outline-offset: -1px;
|
|
275
|
+
z-index: 1001;
|
|
276
|
+
}
|
|
277
|
+
:host(.b2b-dropdown) .b2b-dropdown__options {
|
|
278
|
+
display: block;
|
|
279
|
+
background-color: var(--b2b-color-white-100);
|
|
280
|
+
max-height: 288px;
|
|
281
|
+
overflow-y: auto;
|
|
282
|
+
margin: 0;
|
|
283
|
+
border-right: var(--b2b-size-1) solid var(--b2b-color-black-100);
|
|
284
|
+
border-left: var(--b2b-size-1) solid var(--b2b-color-black-100);
|
|
285
|
+
border-bottom: var(--b2b-size-1) solid var(--b2b-color-black-100);
|
|
286
|
+
margin-top: 0;
|
|
287
|
+
border-top: none;
|
|
288
|
+
text-align: left;
|
|
289
|
+
top: 100%;
|
|
290
|
+
position: absolute;
|
|
291
|
+
left: 0;
|
|
292
|
+
right: 0;
|
|
293
|
+
width: 100%;
|
|
294
|
+
z-index: 1000;
|
|
295
|
+
box-sizing: border-box;
|
|
296
|
+
white-space: pre-wrap;
|
|
297
|
+
}
|
|
298
|
+
:host(.b2b-dropdown) .b2b-dropdown__option {
|
|
299
|
+
padding: 10px;
|
|
300
|
+
cursor: pointer;
|
|
301
|
+
font-size: var(--b2b-size-copy-100);
|
|
302
|
+
margin-top: 0;
|
|
303
|
+
border-top: none;
|
|
304
|
+
display: block;
|
|
305
|
+
width: 100%;
|
|
306
|
+
box-sizing: border-box;
|
|
307
|
+
}
|
|
308
|
+
:host(.b2b-dropdown) .b2b-dropdown__option:hover {
|
|
309
|
+
background-color: var(--b2b-color-hover-default);
|
|
310
|
+
}
|
|
311
|
+
:host(.b2b-dropdown) .b2b-dropdown__option--disabled {
|
|
312
|
+
color: var(--b2b-color-grey-250);
|
|
313
|
+
background-color: var(--b2b-color-white-100);
|
|
314
|
+
pointer-events: none;
|
|
259
315
|
}
|
|
260
316
|
:host(.b2b-dropdown) b2b-input-label {
|
|
261
317
|
display: block;
|
|
@@ -45,4 +45,12 @@ describe('B2B-Dropdown', () => {
|
|
|
45
45
|
await page.waitForChanges();
|
|
46
46
|
expect(element).toHaveClass('b2b-dropdown--error');
|
|
47
47
|
});
|
|
48
|
+
it('should clear the selection and reset to placeholder', async () => {
|
|
49
|
+
const dropdown = await page.find('b2b-dropdown');
|
|
50
|
+
await dropdown.callMethod('clearSelection');
|
|
51
|
+
await page.waitForChanges();
|
|
52
|
+
const selectedTextElementAfter = await dropdown.shadowRoot.querySelector('.b2b-dropdown__select');
|
|
53
|
+
expect(selectedTextElementAfter).not.toBeNull();
|
|
54
|
+
expect(selectedTextElementAfter.textContent).toBe('Select an option...');
|
|
55
|
+
});
|
|
48
56
|
});
|
|
@@ -1,26 +1,60 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
export class DropdownComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.
|
|
5
|
-
|
|
6
|
-
this.
|
|
4
|
+
this.truncatedText = '';
|
|
5
|
+
this.onClickOutside = (ev) => {
|
|
6
|
+
if (!this.hostElement.contains(ev.target))
|
|
7
|
+
this.isOpen = false;
|
|
8
|
+
};
|
|
9
|
+
this.toggleDropdown = () => {
|
|
10
|
+
if (!this.disabled)
|
|
11
|
+
this.isOpen = !this.isOpen;
|
|
7
12
|
};
|
|
8
13
|
this.onFocus = (ev) => {
|
|
14
|
+
this.focused = true;
|
|
9
15
|
this.b2bFocus.emit(ev);
|
|
10
16
|
};
|
|
11
17
|
this.onBlur = (ev) => {
|
|
18
|
+
this.focused = false;
|
|
12
19
|
this.b2bBlur.emit(ev);
|
|
13
20
|
};
|
|
14
|
-
this.
|
|
15
|
-
|
|
21
|
+
this.onSelect = (event) => {
|
|
22
|
+
var _a;
|
|
23
|
+
const target = event.target;
|
|
24
|
+
const value = target.getAttribute('data-value');
|
|
25
|
+
const label = (_a = target.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
26
|
+
if (value) {
|
|
27
|
+
this.selectedValue = value;
|
|
28
|
+
this.selectedText = label || '';
|
|
29
|
+
this.b2bChange.emit(value);
|
|
30
|
+
this.options = this.options.map(opt => (Object.assign(Object.assign({}, opt), { selected: opt.value === value })));
|
|
31
|
+
this.isOpen = false;
|
|
32
|
+
this.updateTruncatedText();
|
|
33
|
+
}
|
|
16
34
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
35
|
+
this.updateTruncatedText = () => {
|
|
36
|
+
if (!this.selectEl)
|
|
37
|
+
return;
|
|
38
|
+
const rawText = this.selectedText || this.placeholder;
|
|
39
|
+
const style = window.getComputedStyle(this.selectEl);
|
|
40
|
+
const canvas = document.createElement('canvas');
|
|
41
|
+
const ctx = canvas.getContext('2d');
|
|
42
|
+
if (!ctx)
|
|
43
|
+
return;
|
|
44
|
+
ctx.font = `${style.fontWeight} ${style.fontSize} ${style.fontFamily}`;
|
|
45
|
+
const availableWidth = this.selectEl.clientWidth - parseFloat(style.paddingRight || '0') - 24;
|
|
46
|
+
if (ctx.measureText(rawText).width <= availableWidth) {
|
|
47
|
+
this.truncatedText = rawText;
|
|
48
|
+
return;
|
|
23
49
|
}
|
|
50
|
+
let truncated = '';
|
|
51
|
+
for (let i = 0; i < rawText.length; i++) {
|
|
52
|
+
const test = rawText.slice(0, i + 1) + '…';
|
|
53
|
+
if (ctx.measureText(test).width > availableWidth)
|
|
54
|
+
break;
|
|
55
|
+
truncated = rawText.slice(0, i + 1);
|
|
56
|
+
}
|
|
57
|
+
this.truncatedText = truncated + '…';
|
|
24
58
|
};
|
|
25
59
|
this.label = undefined;
|
|
26
60
|
this.required = false;
|
|
@@ -31,33 +65,79 @@ export class DropdownComponent {
|
|
|
31
65
|
this.invalid = false;
|
|
32
66
|
this.hint = undefined;
|
|
33
67
|
this.error = undefined;
|
|
68
|
+
this.isOpen = false;
|
|
69
|
+
this.focused = false;
|
|
70
|
+
this.selectedValue = '';
|
|
71
|
+
this.selectedText = '';
|
|
72
|
+
this.options = [];
|
|
34
73
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
74
|
+
/** Method to programmatically clear selection of the dropdown. */
|
|
75
|
+
async clearSelection() {
|
|
76
|
+
this.selectedValue = this.placeholderValue || '';
|
|
77
|
+
this.selectedText = this.placeholder || 'Select an option...';
|
|
78
|
+
this.options = this.options.map(opt => (Object.assign(Object.assign({}, opt), { selected: false })));
|
|
79
|
+
this.isOpen = false;
|
|
80
|
+
this.updateTruncatedText();
|
|
81
|
+
}
|
|
82
|
+
componentWillLoad() {
|
|
83
|
+
this.selectedValue = this.placeholderValue || '';
|
|
84
|
+
this.selectedText = '';
|
|
40
85
|
}
|
|
41
|
-
// we need to attach the options to the correct element here
|
|
42
86
|
componentDidLoad() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
87
|
+
this.initializeOptions();
|
|
88
|
+
this.updateTruncatedText();
|
|
89
|
+
document.addEventListener('click', this.onClickOutside);
|
|
90
|
+
window.addEventListener('resize', this.updateTruncatedText);
|
|
91
|
+
}
|
|
92
|
+
disconnectedCallback() {
|
|
93
|
+
document.removeEventListener('click', this.onClickOutside);
|
|
94
|
+
window.removeEventListener('resize', this.updateTruncatedText);
|
|
95
|
+
}
|
|
96
|
+
watchDropdownState() {
|
|
97
|
+
if (this.isOpen)
|
|
98
|
+
this.closeOtherDropdowns();
|
|
99
|
+
}
|
|
100
|
+
initializeOptions() {
|
|
101
|
+
const nativeOptions = Array.from(this.hostElement.querySelectorAll('option'));
|
|
102
|
+
this.options = nativeOptions.map(opt => {
|
|
103
|
+
var _a;
|
|
104
|
+
return ({
|
|
105
|
+
value: opt.value,
|
|
106
|
+
label: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '',
|
|
107
|
+
selected: opt.hasAttribute('selected'),
|
|
108
|
+
disabled: opt.hasAttribute('disabled'),
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
const selected = this.options.find(o => o.selected);
|
|
112
|
+
if (selected) {
|
|
113
|
+
this.selectedValue = selected.value;
|
|
114
|
+
this.selectedText = selected.label;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
closeOtherDropdowns() {
|
|
118
|
+
const others = document.querySelectorAll('b2b-dropdown');
|
|
119
|
+
others.forEach(el => {
|
|
120
|
+
if (el !== this.hostElement)
|
|
121
|
+
el.isOpen = false;
|
|
122
|
+
});
|
|
53
123
|
}
|
|
54
124
|
render() {
|
|
55
|
-
|
|
125
|
+
const hasError = this.invalid && !this.disabled;
|
|
126
|
+
const showHint = this.hint && (!this.invalid || this.disabled);
|
|
127
|
+
const showError = this.error && hasError;
|
|
128
|
+
return (h(Host, { key: '09be0fe07181c102f688599b581973d03c6347ae', class: {
|
|
56
129
|
'b2b-dropdown': true,
|
|
57
|
-
'b2b-dropdown--error':
|
|
130
|
+
'b2b-dropdown--error': hasError,
|
|
58
131
|
'b2b-dropdown--disabled': this.disabled,
|
|
59
|
-
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("
|
|
60
|
-
|
|
132
|
+
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("div", { key: 'f4756d9f9550c1adc4aa618e9e7c673bfd89037a', class: "b2b-dropdown__wrapper", onFocus: this.onFocus, onBlur: this.onBlur }, h("div", { key: '5fed7fbb2599116576887c05d85b884367e2bf0e', class: {
|
|
133
|
+
'b2b-dropdown__select': true,
|
|
134
|
+
'b2b-dropdown__select--open': this.isOpen,
|
|
135
|
+
'b2b-dropdown__select--focused': this.focused,
|
|
136
|
+
}, ref: el => (this.selectEl = el), onClick: this.toggleDropdown, role: "combobox", "aria-expanded": `${this.isOpen}`, "aria-labelledby": this.name }, this.selectedText ? this.truncatedText : this.placeholder), this.isOpen && (h("div", { class: "b2b-dropdown__options", role: "listbox" }, this.options.map(option => (h("div", { key: option.value, class: {
|
|
137
|
+
'b2b-dropdown__option': true,
|
|
138
|
+
'b2b-dropdown__option--selected': option.selected,
|
|
139
|
+
'b2b-dropdown__option--disabled': option.disabled,
|
|
140
|
+
}, "data-value": option.value, onClick: !option.disabled ? this.onSelect : undefined, role: "option", "aria-selected": option.selected ? 'true' : 'false', "aria-disabled": option.disabled ? 'true' : 'false' }, option.label)))))), showHint && h("span", null, this.hint), showError && h("span", null, this.error)));
|
|
61
141
|
}
|
|
62
142
|
static get is() { return "b2b-dropdown"; }
|
|
63
143
|
static get encapsulation() { return "shadow"; }
|
|
@@ -233,6 +313,15 @@ export class DropdownComponent {
|
|
|
233
313
|
}
|
|
234
314
|
};
|
|
235
315
|
}
|
|
316
|
+
static get states() {
|
|
317
|
+
return {
|
|
318
|
+
"isOpen": {},
|
|
319
|
+
"focused": {},
|
|
320
|
+
"selectedValue": {},
|
|
321
|
+
"selectedText": {},
|
|
322
|
+
"options": {}
|
|
323
|
+
};
|
|
324
|
+
}
|
|
236
325
|
static get events() {
|
|
237
326
|
return [{
|
|
238
327
|
"method": "b2bChange",
|
|
@@ -291,5 +380,32 @@ export class DropdownComponent {
|
|
|
291
380
|
}
|
|
292
381
|
}];
|
|
293
382
|
}
|
|
383
|
+
static get methods() {
|
|
384
|
+
return {
|
|
385
|
+
"clearSelection": {
|
|
386
|
+
"complexType": {
|
|
387
|
+
"signature": "() => Promise<void>",
|
|
388
|
+
"parameters": [],
|
|
389
|
+
"references": {
|
|
390
|
+
"Promise": {
|
|
391
|
+
"location": "global",
|
|
392
|
+
"id": "global::Promise"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"return": "Promise<void>"
|
|
396
|
+
},
|
|
397
|
+
"docs": {
|
|
398
|
+
"text": "Method to programmatically clear selection of the dropdown.",
|
|
399
|
+
"tags": []
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
}
|
|
294
404
|
static get elementRef() { return "hostElement"; }
|
|
405
|
+
static get watchers() {
|
|
406
|
+
return [{
|
|
407
|
+
"propName": "isOpen",
|
|
408
|
+
"methodName": "watchDropdownState"
|
|
409
|
+
}];
|
|
410
|
+
}
|
|
295
411
|
}
|
|
@@ -14,6 +14,12 @@ const Template = ({ label, required, name, disabled, invalid, hint, error, }) =>
|
|
|
14
14
|
<option value="orange">Orange</option>
|
|
15
15
|
<option value="banana">Banana</option>
|
|
16
16
|
<option value="pineapple">Pineapple</option>
|
|
17
|
+
<option value="grapes">Grapes</option>
|
|
18
|
+
<option value="watermelon">Watermelon</option>
|
|
19
|
+
<option value="papaya">Papaya</option>
|
|
20
|
+
<option value="blueberry">Blueberry</option>
|
|
21
|
+
<option value="kiwi">Kiwi</option>
|
|
22
|
+
<option value="pomegranate">Pomegranate</option>
|
|
17
23
|
<option value="apple" disabled>Apple</option>
|
|
18
24
|
</b2b-dropdown>`;
|
|
19
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Do not edit directly
|
|
127
|
-
* Generated on
|
|
127
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
128
128
|
*/
|
|
129
129
|
:root [data-theme="dark"] {
|
|
130
130
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -16,7 +16,7 @@ export class FlyoutMenuOptionComponent {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '091032b33e9695886e133e065d4b5c72480373e8', class: {
|
|
20
20
|
'b2b-flyout-menu__option': true,
|
|
21
21
|
'b2b-flyout-menu__option--disabled': this.disabled,
|
|
22
22
|
'b2b-flyout-menu__option--separator': this.separator,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Do not edit directly
|
|
127
|
-
* Generated on
|
|
127
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
128
128
|
*/
|
|
129
129
|
:root [data-theme="dark"] {
|
|
130
130
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -144,12 +144,12 @@ export class FlyoutMenuComponent {
|
|
|
144
144
|
options[index].focus();
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: '2c09480c749bcee0f8fd7807deb41b4862c1221e' }, h("div", { key: 'a087ad4e5ff06f7fdc586b415f2cc1196daae515', class: {
|
|
148
148
|
'b2b-flyout-menu': true,
|
|
149
|
-
} }, h("div", { key: '
|
|
149
|
+
} }, h("div", { key: 'e36aff2c778c2277e5d5d90c13d7f7d92ef7e04c', class: "b2b-flyout-menu__trigger" }, h("slot", { key: '1581b6010ef02e5745b726d0f73fd3cc8caf67fe', name: "trigger" })), h("div", { key: '3d2f97df8aad17d0963601f62c4c18b488393d6d', onFocusout: this.blurMenu, class: {
|
|
150
150
|
'b2b-flyout-menu__options__container': true,
|
|
151
151
|
'b2b-flyout-menu__options__container--on': this.opened,
|
|
152
|
-
} }, h("div", { key: '
|
|
152
|
+
} }, h("div", { key: 'db72e397e2dde6129468e657aaf49fdf5a470426', class: "b2b-flyout-menu__arrow" }), h("slot", { key: 'ac802410833c596abdf5056f8a6e09bc12f885a6', name: "option" })))));
|
|
153
153
|
}
|
|
154
154
|
static get is() { return "b2b-flyout-menu"; }
|
|
155
155
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class B2bGridColumnComponent {
|
|
|
13
13
|
this.textAlign = 'left';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '935d5d42d247393cdcf7d247212182bb040998da', style: Object.assign(Object.assign({}, this.calculateGrowDimension(this.span)), { ['text-align']: `${this.textAlign}` }) }, h("slot", { key: 'd3d0ce4a59f9d17b2b5dc9bdae249135c31b771c' })));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "b2b-grid-col"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class B2bGridColumnComponent {
|
|
|
48
48
|
"optional": false,
|
|
49
49
|
"docs": {
|
|
50
50
|
"tags": [],
|
|
51
|
-
"text": "The alignment of text placed inside
|
|
51
|
+
"text": "The alignment of text placed inside a column. Note that this will apply to all children."
|
|
52
52
|
},
|
|
53
53
|
"attribute": "text-align",
|
|
54
54
|
"reflect": false,
|
|
@@ -4,7 +4,7 @@ export class B2bGridComponent {
|
|
|
4
4
|
this.margin = 24;
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'a07f27f3ed6961913c048630d3860ba7a9668cc8', style: { ['padding']: `${this.margin}px` }, class: "b2b-grid" }, h("slot", { key: '6390574c52c986c73c84912586d073383ee035d8' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "b2b-grid"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -66,7 +66,7 @@ export class B2bGridRowComponent {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: '9c863ba4e90c06366599c6244f2307c842448d6a', style: {
|
|
70
70
|
['justify-content']: `${this.justify}`,
|
|
71
71
|
['gap']: `${this.columnGap}px`,
|
|
72
72
|
['margin']: `${this.rowGap}px 0`,
|
|
@@ -74,7 +74,7 @@ export class B2bGridRowComponent {
|
|
|
74
74
|
['display']: 'flex',
|
|
75
75
|
['flex-wrap']: 'wrap',
|
|
76
76
|
['box-sizing']: 'border-box',
|
|
77
|
-
} }, h("slot", { key: '
|
|
77
|
+
} }, h("slot", { key: 'c71d99c0c3f9073620237493528a4216033ce02e' })));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "b2b-grid-row"; }
|
|
80
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Do not edit directly
|
|
127
|
-
* Generated on
|
|
127
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
128
128
|
*/
|
|
129
129
|
:root [data-theme="dark"] {
|
|
130
130
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Do not edit directly
|
|
127
|
-
* Generated on
|
|
127
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
128
128
|
*/
|
|
129
129
|
:root [data-theme="dark"] {
|
|
130
130
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Do not edit directly
|
|
127
|
-
* Generated on
|
|
127
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
128
128
|
*/
|
|
129
129
|
:root [data-theme="dark"] {
|
|
130
130
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Do not edit directly
|
|
127
|
-
* Generated on
|
|
127
|
+
* Generated on Wed, 14 May 2025 12:50:46 GMT
|
|
128
128
|
*/
|
|
129
129
|
:root [data-theme="dark"] {
|
|
130
130
|
--b2b-size-200: 5rem; /* 80px */
|