@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
|
@@ -2,6 +2,9 @@ import { h, Host, } from "@stencil/core";
|
|
|
2
2
|
export class B2bMultiSelectDropdown {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.handleInput = event => {
|
|
5
|
+
if (this.disabled) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
5
8
|
this.value = event.target.value.toLowerCase();
|
|
6
9
|
if (this.value !== '') {
|
|
7
10
|
const filteredList = this.optionsList.filter(option => option.toLowerCase().indexOf(this.value) > -1);
|
|
@@ -44,6 +47,7 @@ export class B2bMultiSelectDropdown {
|
|
|
44
47
|
this.handleChipClose = event => {
|
|
45
48
|
this.currentSelectedValues = this.currentSelectedValues.filter(el => el !== event.detail.value);
|
|
46
49
|
this.updateOption(event.detail.value);
|
|
50
|
+
this.isOpen = true;
|
|
47
51
|
this.resetFocus();
|
|
48
52
|
};
|
|
49
53
|
this.updateOption = (option) => {
|
|
@@ -59,17 +63,32 @@ export class B2bMultiSelectDropdown {
|
|
|
59
63
|
.forEach(option => (option.selected = true));
|
|
60
64
|
};
|
|
61
65
|
this.setElementOnFocus = () => {
|
|
66
|
+
if (this.disabled)
|
|
67
|
+
return;
|
|
62
68
|
this.isElementFocused = true;
|
|
63
69
|
};
|
|
64
|
-
this.setElementOnBlur = () => {
|
|
70
|
+
this.setElementOnBlur = (event) => {
|
|
71
|
+
const nextFocusedElement = event === null || event === void 0 ? void 0 : event.relatedTarget;
|
|
72
|
+
if (!nextFocusedElement || !this.hostElement.contains(nextFocusedElement)) {
|
|
73
|
+
this.isOpen = false;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.isOpen = true;
|
|
77
|
+
}
|
|
65
78
|
this.isElementFocused = false;
|
|
66
79
|
};
|
|
67
80
|
this.resetFocus = () => {
|
|
81
|
+
if (this.disabled)
|
|
82
|
+
return;
|
|
68
83
|
const el = this.hostElement.shadowRoot.querySelector('.b2b-multiselect-dropdown');
|
|
69
84
|
el.focus();
|
|
70
85
|
};
|
|
71
86
|
this.handleMouseDown = (event) => {
|
|
72
87
|
/** Keep dropdown open if a tag is removed */
|
|
88
|
+
if (this.disabled) {
|
|
89
|
+
event.preventDefault();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
73
92
|
if (this.isElementFocused) {
|
|
74
93
|
event.preventDefault();
|
|
75
94
|
}
|
|
@@ -78,6 +97,8 @@ export class B2bMultiSelectDropdown {
|
|
|
78
97
|
}
|
|
79
98
|
};
|
|
80
99
|
this.handleKeyDown = (event) => {
|
|
100
|
+
if (this.disabled)
|
|
101
|
+
return;
|
|
81
102
|
if (event.key === 'Enter') {
|
|
82
103
|
event.preventDefault();
|
|
83
104
|
this.resetFocus();
|
|
@@ -116,51 +137,72 @@ export class B2bMultiSelectDropdown {
|
|
|
116
137
|
this.searchPlaceholder = undefined;
|
|
117
138
|
this.selectAllLabel = undefined;
|
|
118
139
|
this.maxOptionsVisible = 8;
|
|
140
|
+
this.required = false;
|
|
141
|
+
this.invalid = false;
|
|
142
|
+
this.errorMessage = undefined;
|
|
143
|
+
this.hint = undefined;
|
|
144
|
+
this.disabled = false;
|
|
119
145
|
this.currentSelectedValues = [];
|
|
120
146
|
this.currentList = this.optionsList;
|
|
121
147
|
this.value = '';
|
|
122
148
|
this.isElementFocused = false;
|
|
149
|
+
this.isOpen = false;
|
|
123
150
|
this.hasOptionList = this.optionsList.length > 0;
|
|
124
151
|
}
|
|
152
|
+
parsePropToArray(value) {
|
|
153
|
+
if (Array.isArray(value))
|
|
154
|
+
return value;
|
|
155
|
+
try {
|
|
156
|
+
return JSON.parse(value);
|
|
157
|
+
}
|
|
158
|
+
catch (_a) {
|
|
159
|
+
return value
|
|
160
|
+
.split(',')
|
|
161
|
+
.map(v => v.trim())
|
|
162
|
+
.filter(Boolean);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
125
165
|
componentWillLoad() {
|
|
126
|
-
this.
|
|
166
|
+
this.selectedValues = this.parsePropToArray(this.selectedValues);
|
|
167
|
+
this.optionsList = this.parsePropToArray(this.optionsList);
|
|
168
|
+
this.currentList = this.optionsList;
|
|
127
169
|
this.currentSelectedValues = this.selectedValues.filter(value => this.optionsList.includes(value));
|
|
128
170
|
}
|
|
129
171
|
/** Needed to trigger a re-render for async data */
|
|
130
172
|
watchPropHandler(newList) {
|
|
131
|
-
this.
|
|
173
|
+
this.optionsList = this.parsePropToArray(newList);
|
|
174
|
+
this.hasOptionList = this.optionsList.length > 0;
|
|
132
175
|
if (this.hasOptionList) {
|
|
133
|
-
this.currentList =
|
|
176
|
+
this.currentList = this.optionsList;
|
|
177
|
+
this.currentSelectedValues = this.selectedValues.filter(value => this.optionsList.includes(value));
|
|
134
178
|
}
|
|
135
179
|
}
|
|
180
|
+
/** Needed to trigger a re-render for async data */
|
|
181
|
+
handleSelectedValuesChangeFromOutside(newVal) {
|
|
182
|
+
this.selectedValues = this.parsePropToArray(newVal);
|
|
183
|
+
this.currentSelectedValues = this.selectedValues.filter(val => this.optionsList.includes(val));
|
|
184
|
+
}
|
|
136
185
|
handleSelectedValuesChange(newValues) {
|
|
137
186
|
this.b2bChange.emit(newValues);
|
|
138
187
|
}
|
|
139
|
-
parseSelectedValuesAndOptionsList() {
|
|
140
|
-
if (typeof this.selectedValues === 'string') {
|
|
141
|
-
this.selectedValues = this.parseStringToArray(this.selectedValues);
|
|
142
|
-
}
|
|
143
|
-
if (typeof this.optionsList === 'string') {
|
|
144
|
-
this.optionsList = this.parseStringToArray(this.optionsList);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
parseStringToArray(value) {
|
|
148
|
-
return JSON.parse(value);
|
|
149
|
-
}
|
|
150
188
|
componentDidUpdate() {
|
|
151
189
|
const options = this.getOptions();
|
|
152
190
|
this.updateAllOptions(options);
|
|
153
191
|
this.updateSelectAll(options);
|
|
154
192
|
}
|
|
155
193
|
render() {
|
|
156
|
-
return (h(Host, { key: '
|
|
194
|
+
return (h(Host, { key: 'c105c46f7461d0a2692282ed15d07460e31273b9', onFocus: this.setElementOnFocus, onBlur: this.setElementOnBlur, onClick: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("b2b-input-label", { key: '93fc16c4f74cb669bc7d0d82a673b414224eb4b1', required: this.required }, this.label), h("div", { key: '397e2d0b2315f5fdce8c2cf041ac4a92f9effea5', class: {
|
|
157
195
|
'b2b-multiselect-dropdown': true,
|
|
158
|
-
'b2b-multiselect-dropdown--open': this.
|
|
159
|
-
|
|
196
|
+
'b2b-multiselect-dropdown--open': this.isOpen,
|
|
197
|
+
'b2b-multiselect-dropdown--error': this.invalid && !this.disabled,
|
|
198
|
+
'b2b-multiselect-dropdown--disabled': this.disabled,
|
|
199
|
+
'b2b-multiselect-dropdown--focused': this.invalid && this.isElementFocused,
|
|
200
|
+
}, tabindex: 0, role: "combobox", onClick: () => (this.isOpen = !this.isOpen), "aria-expanded": this.isElementFocused }, h("div", { key: '2b3693ab1bd0fb6be6b13efa8eb8561b10480104', class: "b2b-multiselect-dropdown__chip-container" }, this.currentSelectedValues.length === 0 ? (h("span", { class: "b2b-multiselect-dropdown__placeholder" }, this.placeholder)) : (this.renderChips())), h("b2b-icon-100", { key: 'ee601f312e28840cdc16501dc60b016a6106cc3e', icon: "b2b_icon-arrow-down" })), h("div", { key: '50b47c0f1f20afd3ec6ed093237a202ed1d9a59b', class: {
|
|
160
201
|
'b2b-multiselect-dropdown__options-container': true,
|
|
161
|
-
'b2b-multiselect-dropdown__options-container--visible': this.
|
|
162
|
-
} }, h("div", { key: '
|
|
163
|
-
this.currentList.map(option => (h("b2b-multiselect-option", { "onB2b-option-selected": this.handleSelectedChange, option: option }))))))
|
|
202
|
+
'b2b-multiselect-dropdown__options-container--visible': this.isOpen,
|
|
203
|
+
} }, h("div", { key: 'b8c651872eca608e3c02c42920cf0d8e6d117aa9', class: "b2b-multiselect-dropdown__options", role: "listbox", "aria-label": this.label, tabIndex: -1 }, h("div", { key: '2a0d909d9994ac59a22e60c0ed729cf90d74cf92', class: "b2b-multiselect-dropdown__option__search" }, h("input", { key: '66081cd675bb03da68a445c090c69632611e1a32', type: "text", onInput: this.handleInput, class: "b2b-multiselect-dropdown__option__search__input", placeholder: this.searchPlaceholder })), h("b2b-multiselect-option", { key: 'a1b146c742e206c05341aab80f49629a536b9c09', class: "b2b-multiselect-dropdown__option__select-all", option: this.selectAllLabel, id: "select-all", "onB2b-option-selected": this.handleSelectAll }), this.hasOptionList &&
|
|
204
|
+
this.currentList.map(option => (h("b2b-multiselect-option", { "onB2b-option-selected": this.handleSelectedChange, option: option }))))), (this.hint !== undefined && !this.invalid) ||
|
|
205
|
+
(this.hint !== undefined && this.disabled) ? (h("span", { class: "b2b-multiselect-dropdown__hint" }, this.hint)) : (''), this.errorMessage !== undefined && this.invalid && !this.disabled ? (h("span", { class: "b2b-multiselect-dropdown__error-message" }, this.errorMessage)) : ('')));
|
|
164
206
|
}
|
|
165
207
|
static get is() { return "b2b-multiselect-dropdown"; }
|
|
166
208
|
static get encapsulation() { return "shadow"; }
|
|
@@ -297,6 +339,94 @@ export class B2bMultiSelectDropdown {
|
|
|
297
339
|
"attribute": "max-options-visible",
|
|
298
340
|
"reflect": false,
|
|
299
341
|
"defaultValue": "8"
|
|
342
|
+
},
|
|
343
|
+
"required": {
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "boolean",
|
|
348
|
+
"resolved": "boolean",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Adds an asterisk at the end of the label to signify that the field is required."
|
|
356
|
+
},
|
|
357
|
+
"attribute": "required",
|
|
358
|
+
"reflect": true,
|
|
359
|
+
"defaultValue": "false"
|
|
360
|
+
},
|
|
361
|
+
"invalid": {
|
|
362
|
+
"type": "boolean",
|
|
363
|
+
"mutable": false,
|
|
364
|
+
"complexType": {
|
|
365
|
+
"original": "boolean",
|
|
366
|
+
"resolved": "boolean",
|
|
367
|
+
"references": {}
|
|
368
|
+
},
|
|
369
|
+
"required": false,
|
|
370
|
+
"optional": false,
|
|
371
|
+
"docs": {
|
|
372
|
+
"tags": [],
|
|
373
|
+
"text": "Whether the multi select dropdown is currently invalid. Per default, it is false."
|
|
374
|
+
},
|
|
375
|
+
"attribute": "invalid",
|
|
376
|
+
"reflect": true,
|
|
377
|
+
"defaultValue": "false"
|
|
378
|
+
},
|
|
379
|
+
"errorMessage": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"mutable": false,
|
|
382
|
+
"complexType": {
|
|
383
|
+
"original": "string",
|
|
384
|
+
"resolved": "string",
|
|
385
|
+
"references": {}
|
|
386
|
+
},
|
|
387
|
+
"required": false,
|
|
388
|
+
"optional": true,
|
|
389
|
+
"docs": {
|
|
390
|
+
"tags": [],
|
|
391
|
+
"text": "The error message that is shown if the multi select dropdown is invalid."
|
|
392
|
+
},
|
|
393
|
+
"attribute": "error-message",
|
|
394
|
+
"reflect": false
|
|
395
|
+
},
|
|
396
|
+
"hint": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"mutable": false,
|
|
399
|
+
"complexType": {
|
|
400
|
+
"original": "string",
|
|
401
|
+
"resolved": "string",
|
|
402
|
+
"references": {}
|
|
403
|
+
},
|
|
404
|
+
"required": false,
|
|
405
|
+
"optional": true,
|
|
406
|
+
"docs": {
|
|
407
|
+
"tags": [],
|
|
408
|
+
"text": "The hint text that appears underneath the multi select dropdown field."
|
|
409
|
+
},
|
|
410
|
+
"attribute": "hint",
|
|
411
|
+
"reflect": false
|
|
412
|
+
},
|
|
413
|
+
"disabled": {
|
|
414
|
+
"type": "boolean",
|
|
415
|
+
"mutable": false,
|
|
416
|
+
"complexType": {
|
|
417
|
+
"original": "boolean",
|
|
418
|
+
"resolved": "boolean",
|
|
419
|
+
"references": {}
|
|
420
|
+
},
|
|
421
|
+
"required": false,
|
|
422
|
+
"optional": false,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [],
|
|
425
|
+
"text": "Whether or not the field is disabled. Default is false."
|
|
426
|
+
},
|
|
427
|
+
"attribute": "disabled",
|
|
428
|
+
"reflect": true,
|
|
429
|
+
"defaultValue": "false"
|
|
300
430
|
}
|
|
301
431
|
};
|
|
302
432
|
}
|
|
@@ -306,6 +436,7 @@ export class B2bMultiSelectDropdown {
|
|
|
306
436
|
"currentList": {},
|
|
307
437
|
"value": {},
|
|
308
438
|
"isElementFocused": {},
|
|
439
|
+
"isOpen": {},
|
|
309
440
|
"hasOptionList": {}
|
|
310
441
|
};
|
|
311
442
|
}
|
|
@@ -332,6 +463,9 @@ export class B2bMultiSelectDropdown {
|
|
|
332
463
|
return [{
|
|
333
464
|
"propName": "optionsList",
|
|
334
465
|
"methodName": "watchPropHandler"
|
|
466
|
+
}, {
|
|
467
|
+
"propName": "selectedValues",
|
|
468
|
+
"methodName": "handleSelectedValuesChangeFromOutside"
|
|
335
469
|
}, {
|
|
336
470
|
"propName": "currentSelectedValues",
|
|
337
471
|
"methodName": "handleSelectedValuesChange"
|
|
@@ -25,6 +25,11 @@ const meta = {
|
|
|
25
25
|
selectAllLabel: 'Select All',
|
|
26
26
|
maxOptionsVisible: 8,
|
|
27
27
|
selectedValues: ['Watermelon', 'Banana'],
|
|
28
|
+
required: false,
|
|
29
|
+
hint: '',
|
|
30
|
+
disabled: false,
|
|
31
|
+
invalid: false,
|
|
32
|
+
errorMessage: '',
|
|
28
33
|
},
|
|
29
34
|
argTypes: Object.assign(Object.assign({}, multiselectArgs), { optionsList: { table: { disable: true } }, selectedValues: { table: { disable: true } } }),
|
|
30
35
|
render: (_a) => {
|
|
@@ -36,7 +41,12 @@ const meta = {
|
|
|
36
41
|
select-all-label=${args.selectAllLabel}
|
|
37
42
|
placeholder=${args.placeholder}
|
|
38
43
|
search-placeholder=${args.searchPlaceholder}
|
|
39
|
-
.optionsList=${args.optionsList}
|
|
44
|
+
.optionsList=${args.optionsList}
|
|
45
|
+
required=${args.required}
|
|
46
|
+
hint=${args.hint}
|
|
47
|
+
disabled=${args.disabled}
|
|
48
|
+
invalid=${args.invalid}
|
|
49
|
+
error-message=${args.errorMessage}>
|
|
40
50
|
</b2b-multiselect-dropdown>
|
|
41
51
|
</div>`;
|
|
42
52
|
},
|
|
@@ -57,8 +67,28 @@ export const InitialSelectedValues = {
|
|
|
57
67
|
placeholder=${args.placeholder}
|
|
58
68
|
search-placeholder=${args.searchPlaceholder}
|
|
59
69
|
.optionsList=${args.optionsList}
|
|
60
|
-
.selectedValues=${args.selectedValues}
|
|
70
|
+
.selectedValues=${args.selectedValues}
|
|
71
|
+
required=${args.required}
|
|
72
|
+
hint=${args.hint}
|
|
73
|
+
disabled=${args.disabled}
|
|
74
|
+
invalid=${args.invalid}
|
|
75
|
+
error-message=${args.errorMessage}>
|
|
61
76
|
</b2b-multiselect-dropdown>
|
|
62
77
|
</div>`;
|
|
63
78
|
},
|
|
64
79
|
};
|
|
80
|
+
export const Required = {
|
|
81
|
+
args: Object.assign(Object.assign({}, meta.args), { required: true }),
|
|
82
|
+
};
|
|
83
|
+
export const Hint = {
|
|
84
|
+
args: Object.assign(Object.assign({}, meta.args), { hint: 'please select a value' }),
|
|
85
|
+
};
|
|
86
|
+
export const Disabled = {
|
|
87
|
+
args: Object.assign(Object.assign({}, meta.args), { disabled: true }),
|
|
88
|
+
};
|
|
89
|
+
export const Invalid = {
|
|
90
|
+
args: Object.assign(Object.assign({}, meta.args), { invalid: true }),
|
|
91
|
+
};
|
|
92
|
+
export const InvalidWithErrorMessage = {
|
|
93
|
+
args: Object.assign(Object.assign({}, meta.args), { invalid: true, errorMessage: 'error has occurred' }),
|
|
94
|
+
};
|
package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js
CHANGED
|
@@ -13,9 +13,9 @@ export class B2bMultiSelectOption {
|
|
|
13
13
|
this.indeterminate = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'c3c1955fd6ff4019b2cbc860ded4a0d51dc7b4ee', role: "option", class: {
|
|
17
17
|
'b2b-multiselect-dropdown__option': true,
|
|
18
|
-
} }, h("b2b-checkbox", { key: '
|
|
18
|
+
} }, h("b2b-checkbox", { key: '898231cd21f30da27314fa0b938a030c39fedbca', checked: this.selected, "onB2b-change": this.handleCheckboxChange, label: this.option, indeterminate: this.indeterminate, value: this.option })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "b2b-multiselect-option"; }
|
|
21
21
|
static get originalStyleUrls() {
|
|
@@ -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 */
|
|
@@ -92,7 +92,7 @@ export class PaginationComponent {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
return (h("nav", { key: '
|
|
95
|
+
return (h("nav", { key: '24405723ea4d2d6427911f1546c4edfabbf98ca0' }, h("ol", { key: 'a1af6ca952107fde2f97c26d3d152ef191142bea', class: "b2b-pagination" }, this.activePage !== 1 && (h("li", { class: "b2b-pagination--previous" }, h("b2b-button", { onClick: this.selectPreviousPage, size: "50", variant: "secondary", "aria-label": this.ariaLabelPreviousPage }, PaginationConstants.BACK))), this.navItems.map((navItem, index) => {
|
|
96
96
|
const isItemActive = this.activePage === navItem;
|
|
97
97
|
return (h("li", { class: this.getItemClass(navItem) }, h("b2b-button", { onClick: () => this.setSelectedPage(navItem, index), active: isItemActive, disabled: isItemActive, size: "50", variant: "secondary" }, navItem)));
|
|
98
98
|
}), this.activePage !== this.totalPages && (h("li", { class: "b2b-pagination--next" }, h("b2b-button", { onClick: this.selectNextPage, size: "50", variant: "secondary", "aria-label": this.ariaLabelNextPage }, PaginationConstants.NEXT))))));
|
|
@@ -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 */
|
|
@@ -13,7 +13,7 @@ export class ParagraphComponent {
|
|
|
13
13
|
this.display = 'block';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("p", { key: '
|
|
16
|
+
return (h("p", { key: 'c3781dc7215762d8dd038791943a541231731653', style: {
|
|
17
17
|
display: this.display,
|
|
18
18
|
}, class: {
|
|
19
19
|
'b2b-paragraph': true,
|
|
@@ -22,7 +22,7 @@ export class ParagraphComponent {
|
|
|
22
22
|
['b2b-paragraph--align-' + this.align]: true,
|
|
23
23
|
['b2b-paragraph--no-margin']: !this.margin,
|
|
24
24
|
['b2b-paragraph--variant-' + this.variant]: true,
|
|
25
|
-
} }, h("slot", { key: '
|
|
25
|
+
} }, h("slot", { key: '5afb431d2d782751f50741a6c10a210df7b1e3e4' })));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "b2b-paragraph"; }
|
|
28
28
|
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 */
|
|
@@ -17,11 +17,11 @@ export class ProgressBarComponent {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const labelExists = this.label !== undefined && this.label !== '';
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '2c21a98038eb5f9139de509825204d5536b28186' }, h("div", { key: '53b8271100890ccbf94e6452f6811f10edbbe268', class: {
|
|
21
21
|
[`b2b-progress-bar__${this.labelPosition}-${this.labelType}`]: true,
|
|
22
|
-
} }, h("div", { key: '
|
|
22
|
+
} }, h("div", { key: '2925cf1b343596249f110944f946ecfc01258556', class: "b2b-progress-bar__wrapper" }, h("div", { key: '32a8f9c88a507c697c45513037a4473736585efa', class: "b2b-progress-bar__progress", style: {
|
|
23
23
|
width: `${this.getProgress()}%`,
|
|
24
|
-
} })), h("div", { key: '
|
|
24
|
+
} })), h("div", { key: 'e91835897125808aedeaed4cc4b7eda49eab2383', class: {
|
|
25
25
|
'b2b-progress-bar__label': labelExists,
|
|
26
26
|
'b2b-progress-bar__label-none': !labelExists,
|
|
27
27
|
[`b2b-progress-bar__label__${this.labelPosition}-${this.labelType}`]: labelExists,
|
|
@@ -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 */
|
|
@@ -53,11 +53,11 @@ export class B2bRadioButtonComponent {
|
|
|
53
53
|
return Array.from(document.querySelectorAll(`b2b-radio-button[name="${this.name}"]`)).filter((radio) => radio.value !== this.value);
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '28bb8bc8c3741839657f687abed7314c8cdcf7bf', onClick: this.onClick }, h("div", { key: '6d865dff87760dcaef8be42268e73f6d90ddb1c6', class: {
|
|
57
57
|
'b2b-radio': true,
|
|
58
58
|
'b2b-radio--error': this.invalid && !this.disabled,
|
|
59
59
|
'b2b-radio--disabled': this.disabled,
|
|
60
|
-
} }, h("div", { key: '
|
|
60
|
+
} }, h("div", { key: '6c5ca53c8d308e381d26c8802cb8521d6e987256', class: "b2b-radio-items" }, h("input", { key: 'a3ed2ab8d4defc593bcc69b5058e9d6fb674a626', class: "b2b-radio-input", "aria-labelledby": this.name, type: "radio", checked: this.checked, disabled: this.disabled, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, value: this.value }), h("b2b-input-label", { key: '69cb16d121d9283cc95ffbb0642a18d9744deece', id: this.name, required: this.required, disabled: this.disabled }, h("slot", { key: 'db1e57a9e65a52df671fa3ff35f1a9f372eca47b', name: "label" }, this.label))), (this.hint !== undefined && !this.invalid) ||
|
|
61
61
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "b2b-radio-button"; }
|
|
@@ -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 */
|
|
@@ -69,11 +69,11 @@ export class RadioButtonGroupComponent {
|
|
|
69
69
|
this.removeChildText();
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '5b36240943436717e043f0c25483eef6f90229f0' }, h("div", { key: 'b9d174d04e5a280beed928e37f4355d8c1edf1aa', class: {
|
|
73
73
|
'b2b-radio-group': true,
|
|
74
74
|
'b2b-radio-group--error': this.invalid && !this.disabled,
|
|
75
75
|
[`b2b-radio-group--${this.alignment}`]: true,
|
|
76
|
-
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("fieldset", { key: '
|
|
76
|
+
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("fieldset", { key: 'd4e428dda283b88ed29f4259c3c7ad71d484648d' }, h("div", { key: '4ac819b081787a2dc468ebc3c0c84d8d182c7353', class: "b2b-radio-group-options" }, h("slot", { key: '4c8ee699036c8b3b672fbedbffc8efbbdaf86fa3' }))), (this.hint !== undefined && !this.invalid) ||
|
|
77
77
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "b2b-radio-group"; }
|
|
@@ -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 */
|
|
@@ -4,7 +4,7 @@ export class B2BRequiredSeparator {
|
|
|
4
4
|
this.label = 'Pflichtfeld';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '989e81600d0748d74b57f59df342bdb8ea1646ef' }, h("div", { key: '558b14f88f32f0b21c423554290fbe72c4fa9696', class: "b2b-required-separator__label" }, h("span", { key: '65a8ed5c4af4d0e3aee00785727aad0a74eb0323', class: "b2b-required-separator__asterisk" }, "* "), h("span", { key: 'e170084c3b0d4447a9d151b17422479f78a3f6b7' }, this.label)), h("b2b-separator", { key: '42b320e566f4f7594d87f930438b3b0ba8662b7f' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "b2b-required-separator"; }
|
|
10
10
|
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 */
|
|
@@ -6,16 +6,16 @@ export class RoundedIconComponent {
|
|
|
6
6
|
this.contentColor = 'var(--b2b-color-copy-default)';
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'cd603c194ebc3a9d6aad8e16b126ac40e47e4715' }, h("div", { key: '102c49254d5e135173553379ce5ced7022dddaa7', style: {
|
|
10
10
|
['background-color']: this.color,
|
|
11
11
|
['border']: `1px solid ${this.borderColor || this.color}`,
|
|
12
12
|
}, class: {
|
|
13
13
|
'b2b-rounded-icon': true,
|
|
14
|
-
} }, h("div", { key: '
|
|
14
|
+
} }, h("div", { key: '447ece59e96780c6c6e0ddccc878354756e46ff7', style: {
|
|
15
15
|
['color']: this.contentColor,
|
|
16
|
-
} }, h("slot", { key: '
|
|
16
|
+
} }, h("slot", { key: 'a25891a5262400e671243fd8716f72d3b0035520', name: "icon" })), h("div", { key: 'b08770631a2ca349d90e0a9e7dd445aecf9135d9', style: {
|
|
17
17
|
['color']: this.contentColor,
|
|
18
|
-
} }, h("slot", { key: '
|
|
18
|
+
} }, h("slot", { key: '64619abcebfc3d8e80e9edc26c9808876860de8d', name: "text" })))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "b2b-rounded-icon"; }
|
|
21
21
|
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,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class ScrollableContainerComponent {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '234c8e341e9dc85b7c8d7fc742445f61045b9cf6' }, h("slot", { key: 'd67a95c9c3a1a9f7ac75924d639c095578fcb2f1' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "b2b-scrollable-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,7 +22,7 @@ export class SearchComponent {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '08be0d3238571d8a4e268d7a54d382114cd05ab4' }, h("b2b-input-group", { key: 'dbba9867d3b05f80edbf79973ca51cd9d7c9ec73', disabled: this.disabled }, h("b2b-input-list", { key: 'fec8bfb0012836b4ff458569130a016d36bbef2b', slot: "start", value: this.value, placeholder: this.placeholder, optionsList: this.optionsList, "onb2b-input": this.onInput, "onb2b-option-selected": this.onOptionSelected }, h("slot", { key: '04bdd57ddbbde6f5f41f4704a2bbfa048df32aed' })), h("b2b-button", { key: '7e4d662ed1fd9423e77ee8e89beda95367f0a4a2', slot: "end", variant: "primary", onClick: this.onSearchClicked }, h("b2b-icon-100", { key: '44d5ac8b006f1fabf6d81735d6d626e0dcbbc339', icon: "b2b_icon-search", clickable: true })))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "b2b-search"; }
|
|
28
28
|
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 */
|