@otto-de/b2b-core-components 1.35.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/{p-d2f4db88.entry.js → p-01f2aca4.entry.js} +1 -1
- package/dist/b2b-core-components/p-02bb4145.entry.js +1 -0
- package/dist/b2b-core-components/{p-7889e94a.entry.js → p-0cd95c1e.entry.js} +1 -1
- package/dist/b2b-core-components/{p-04f5748b.entry.js → p-0e994814.entry.js} +1 -1
- package/dist/b2b-core-components/{p-419de188.entry.js → p-121ead75.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b9a6ad5d.entry.js → p-1875aef7.entry.js} +1 -1
- package/dist/b2b-core-components/p-19a043a8.entry.js +1 -0
- package/dist/b2b-core-components/{p-e3877fc1.entry.js → p-1e5732bb.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a46674a7.entry.js → p-212d2e61.entry.js} +1 -1
- package/dist/b2b-core-components/p-22967672.entry.js +1 -0
- package/dist/b2b-core-components/{p-18bb4d69.entry.js → p-253502a0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-21644e6c.entry.js → p-2aaa326b.entry.js} +1 -1
- package/dist/b2b-core-components/p-3628e4cb.entry.js +1 -0
- package/dist/b2b-core-components/{p-c8b5c7e2.entry.js → p-3752cc70.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c086532b.entry.js → p-3b52a3fb.entry.js} +1 -1
- package/dist/b2b-core-components/{p-997a232e.entry.js → p-3c6abe16.entry.js} +1 -1
- package/dist/b2b-core-components/{p-f9f9820a.entry.js → p-4b8c879e.entry.js} +1 -1
- package/dist/b2b-core-components/p-51086123.entry.js +1 -0
- package/dist/b2b-core-components/{p-0648230f.entry.js → p-696b9e54.entry.js} +1 -1
- package/dist/b2b-core-components/{p-d62e615b.entry.js → p-6b3788ae.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8cb6813a.entry.js → p-6f5dbb23.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b4310b58.entry.js → p-6f607a94.entry.js} +1 -1
- package/dist/b2b-core-components/{p-23af5193.entry.js → p-73db8251.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ae7a752e.entry.js → p-7d2fb5f3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-540a8b9c.entry.js → p-80104e55.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0aa0c59a.entry.js → p-861dba01.entry.js} +1 -1
- package/dist/b2b-core-components/{p-17778cfc.entry.js → p-96211730.entry.js} +1 -1
- package/dist/b2b-core-components/{p-d163d252.entry.js → p-9cbda7b3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2486830b.entry.js → p-9f0dbb21.entry.js} +1 -1
- package/dist/b2b-core-components/p-a2d97f5d.entry.js +1 -0
- package/dist/b2b-core-components/{p-a9c9552f.entry.js → p-a5cc60f3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0ab41eb5.entry.js → p-acdcb8c8.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c8cc1797.entry.js → p-b0abf9e3.entry.js} +1 -1
- package/dist/b2b-core-components/p-b95b2de3.entry.js +1 -0
- package/dist/b2b-core-components/{p-433a3f3e.entry.js → p-bb0f31a9.entry.js} +1 -1
- package/dist/b2b-core-components/{p-89e817e9.entry.js → p-bf1d5618.entry.js} +1 -1
- package/dist/b2b-core-components/{p-703da47c.entry.js → p-c9a10980.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c25832e1.entry.js → p-ceab4af0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-79a01d0d.entry.js → p-db898e98.entry.js} +1 -1
- package/dist/b2b-core-components/p-e143cad0.entry.js +1 -0
- package/dist/b2b-core-components/p-e52728b3.entry.js +1 -0
- package/dist/b2b-core-components/{p-670e355a.entry.js → p-ef93e944.entry.js} +1 -1
- package/dist/b2b-core-components/{p-f3c0fe56.entry.js → p-f32e783e.entry.js} +1 -1
- package/dist/b2b-core-components/{p-4b27240b.entry.js → p-f9e61af5.entry.js} +1 -1
- package/dist/b2b-core-components/{p-dcaff8ab.entry.js → p-fa050815.entry.js} +1 -1
- package/dist/cjs/b2b-background-box.cjs.entry.js +1 -1
- package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-checkbox.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-dropdown.cjs.entry.js +52 -5
- package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +1 -1
- package/dist/cjs/b2b-flyout-menu.cjs.entry.js +4 -4
- 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 +1 -1
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +17 -4
- package/dist/cjs/b2b-input-label.cjs.entry.js +2 -2
- package/dist/cjs/b2b-input-list-option.cjs.entry.js +30 -0
- package/dist/cjs/{b2b-input_2.cjs.entry.js → b2b-input.cjs.entry.js} +4 -28
- 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 +3 -3
- package/dist/cjs/b2b-pagination.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 +4 -4
- 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 +4 -3
- package/dist/cjs/b2b-table.cjs.entry.js +2 -2
- package/dist/cjs/b2b-textarea.cjs.entry.js +2 -2
- package/dist/cjs/b2b-time-picker.cjs.entry.js +6 -6
- 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/index-668808fd.js +6 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/background-box/background-box.css +2 -2
- package/dist/collection/components/background-box/background-box.e2e.js +1 -1
- package/dist/collection/components/background-box/background-box.stories.js +1 -1
- package/dist/collection/components/checkbox/checkbox.css +3 -3
- package/dist/collection/components/dropdown/dropdown.css +11 -0
- package/dist/collection/components/dropdown/dropdown.e2e.js +73 -0
- package/dist/collection/components/dropdown/dropdown.js +88 -4
- package/dist/collection/components/dropdown/dropdown.stories.js +15 -3
- package/dist/collection/components/flyout-menu/flyout-menu-option.js +1 -1
- package/dist/collection/components/flyout-menu/flyout-menu.css +5 -3
- package/dist/collection/components/flyout-menu/flyout-menu.js +3 -3
- package/dist/collection/components/grid/column.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/grid/row.js +2 -2
- package/dist/collection/components/input/input.js +4 -4
- 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 +5 -3
- package/dist/collection/components/input-list/input-list.e2e.js +5 -5
- package/dist/collection/components/input-list/input-list.js +23 -6
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +3 -3
- package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +2 -2
- package/dist/collection/components/pagination/pagination.css +5 -3
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +3 -3
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- package/dist/collection/components/required-separator/required-separator.js +1 -1
- package/dist/collection/components/rounded-icon/rounded-icon.js +4 -4
- package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
- package/dist/collection/components/search/search.e2e.js +1 -1
- package/dist/collection/components/search/search.js +1 -1
- package/dist/collection/components/separator/separator.js +1 -1
- package/dist/collection/components/shimmer/shimmer.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +4 -4
- package/dist/collection/components/spinner/spinner.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/table/table-cell/table-cell.js +2 -2
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-row/table-row.js +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +4 -3
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/time-picker/time-picker.js +6 -6
- package/dist/collection/components/toggle-button/toggle-button.js +3 -3
- package/dist/collection/components/toggle-chip/toggle-chip.js +3 -3
- package/dist/collection/components/toggle-group/toggle-group.js +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
- 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.js +1 -1
- package/dist/collection/components/wizard-icon/wizard-icon.js +1 -1
- package/dist/components/b2b-dropdown.js +68 -6
- package/dist/components/b2b-flyout-menu-option.js +1 -1
- package/dist/components/b2b-flyout-menu.js +4 -4
- package/dist/components/b2b-grid-col.js +1 -1
- package/dist/components/b2b-grid-row.js +2 -2
- package/dist/components/b2b-grid.js +1 -1
- package/dist/components/b2b-label.js +2 -2
- package/dist/components/b2b-modal.js +2 -2
- package/dist/components/b2b-multiselect-dropdown.js +3 -3
- package/dist/components/b2b-pagination.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 +4 -4
- 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 +4 -3
- package/dist/components/b2b-table.js +2 -2
- package/dist/components/b2b-textarea.js +2 -2
- package/dist/components/b2b-time-picker.js +6 -6
- 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/background-box.js +1 -1
- package/dist/components/checkbox.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 +2 -2
- package/dist/components/input-list.js +20 -5
- 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 +12 -0
- package/dist/esm/b2b-background-box.entry.js +1 -1
- package/dist/esm/b2b-button_2.entry.js +1 -1
- package/dist/esm/b2b-checkbox.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-dropdown.entry.js +52 -5
- package/dist/esm/b2b-flyout-menu-option.entry.js +1 -1
- package/dist/esm/b2b-flyout-menu.entry.js +4 -4
- 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 +1 -1
- package/dist/esm/b2b-input-group_2.entry.js +17 -4
- package/dist/esm/b2b-input-label.entry.js +2 -2
- package/dist/esm/b2b-input-list-option.entry.js +26 -0
- package/dist/esm/{b2b-input_2.entry.js → b2b-input.entry.js} +5 -28
- 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 +3 -3
- package/dist/esm/b2b-pagination.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 +4 -4
- 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 +4 -3
- package/dist/esm/b2b-table.entry.js +2 -2
- package/dist/esm/b2b-textarea.entry.js +2 -2
- package/dist/esm/b2b-time-picker.entry.js +6 -6
- 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/index-ab9eb36d.js +6 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +10 -1
- package/dist/types/components/dropdown/dropdown.stories.d.ts +2 -0
- package/dist/types/components/input-list/input-list.d.ts +4 -1
- package/dist/types/components.d.ts +18 -2
- package/dist/web-types.json +24 -4
- package/package.json +2 -2
- package/dist/b2b-core-components/p-04ac661d.entry.js +0 -1
- package/dist/b2b-core-components/p-260dcc05.entry.js +0 -1
- package/dist/b2b-core-components/p-4e0ed246.entry.js +0 -1
- package/dist/b2b-core-components/p-b175fb79.entry.js +0 -1
- package/dist/b2b-core-components/p-b481eb09.entry.js +0 -1
- package/dist/b2b-core-components/p-c430b5ba.entry.js +0 -1
- package/dist/b2b-core-components/p-dff37884.entry.js +0 -1
- package/dist/b2b-core-components/p-e8151556.entry.js +0 -1
|
@@ -49,7 +49,7 @@ export class B2BInputGroup {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: 'fa99a4e2f8a5923b14d6304378fc574e8fa0f451' }, h("div", { key: 'ac085ec1ba4ae6566e29192fcf41487a5aeaf2dd', class: { 'b2b-input-wrapper': true } }, h("slot", { key: '9412332e469771720376b5d16b101b21867a29ad', name: "start" }), h("slot", { key: 'eb2201d7243365abd486e6a17c99ba84e942415d' }), h("slot", { key: 'c4d8b4c1b837de6bf80049d8b94e402dbb1e663d', name: "end" })), (this.hint || (this.invalid && !this.disabled)) && (h("span", { class: {
|
|
53
53
|
'b2b-input-wrapper__hint': true,
|
|
54
54
|
'b2b-input-wrapper__hint--error': this.invalid && !this.disabled,
|
|
55
55
|
} }, this.invalid && !this.disabled ? this.error : this.hint))));
|
|
@@ -5,11 +5,11 @@ export class InputLabelComponent {
|
|
|
5
5
|
this.disabled = false;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '8cdefd0d3cafc0bdf9dba5fa7a15080a4a288379' }, h("label", { key: '04d4659be8363b1b8760c94e5607a3048e02cebf', class: {
|
|
9
9
|
'b2b-input-label': true,
|
|
10
10
|
'b2b-input-label--required': this.required,
|
|
11
11
|
'b2b-input-label--disabled': this.disabled,
|
|
12
|
-
} }, h("slot", { key: '
|
|
12
|
+
} }, h("slot", { key: 'a858c509020588bb10669c4fa0bc682ba97a5675' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "b2b-input-label"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class InputListOptionComponent {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'e9c7180cdbf328d435b5bcac76e4e11a234d4dcc', class: "b2b-input-list__option", onClick: this.handleClick, role: "option" }, this.option));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "b2b-input-list-option"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -237,9 +237,6 @@
|
|
|
237
237
|
display: flex;
|
|
238
238
|
flex-direction: column;
|
|
239
239
|
min-width: 7rem;
|
|
240
|
-
/* this is a workaround to force purgecss to include the overwrites of
|
|
241
|
-
the variables --b2b-border-right and --b2b-border-radius
|
|
242
|
-
*/
|
|
243
240
|
}
|
|
244
241
|
.b2b-input-list.b2b-input-list__options-on b2b-input {
|
|
245
242
|
--b2b-border-radius: var(--b2b-size-border-no-radius-bottom);
|
|
@@ -300,6 +297,11 @@
|
|
|
300
297
|
.b2b-input-list b2b-icon-100 {
|
|
301
298
|
--b2b-icon-cursor: pointer;
|
|
302
299
|
}
|
|
300
|
+
.b2b-input-list {
|
|
301
|
+
/* this is a workaround to force purgecss to include the overwrites of
|
|
302
|
+
the variables --b2b-border-right and --b2b-border-radius
|
|
303
|
+
*/
|
|
304
|
+
}
|
|
303
305
|
.b2b-input-list .purge-css-include-variables {
|
|
304
306
|
border-radius: var(--b2b-border-radius);
|
|
305
307
|
border-right: var(--b2b-border-right);
|
|
@@ -7,7 +7,7 @@ describe('B2B-InputList', () => {
|
|
|
7
7
|
search.setProperty('optionsList', optionsList);
|
|
8
8
|
await page.waitForChanges();
|
|
9
9
|
};
|
|
10
|
-
const typeInput = async (key = '
|
|
10
|
+
const typeInput = async (key = 'o') => {
|
|
11
11
|
let input = await page.find('b2b-input-list >>> b2b-input');
|
|
12
12
|
// focus on input element, focus method did not work
|
|
13
13
|
await input.click();
|
|
@@ -62,11 +62,11 @@ describe('B2B-InputList', () => {
|
|
|
62
62
|
it('should not show search list when the input has no value', async () => {
|
|
63
63
|
await setOptionsList();
|
|
64
64
|
const input = await page.find('b2b-input-list');
|
|
65
|
-
// focus on input element, focus method did not work
|
|
66
65
|
await input.click();
|
|
67
|
-
await input.press('
|
|
66
|
+
await input.press('1');
|
|
68
67
|
await page.waitForChanges();
|
|
69
68
|
let searchListResults = await page.find({ text: optionsList[0] });
|
|
69
|
+
expect(searchListResults).not.toBeNull();
|
|
70
70
|
expect(await searchListResults.isVisible()).toBe(true);
|
|
71
71
|
await input.click();
|
|
72
72
|
await input.press('Backspace');
|
|
@@ -105,10 +105,10 @@ describe('B2B-InputList', () => {
|
|
|
105
105
|
});
|
|
106
106
|
it('should fill up input value with option selected', async () => {
|
|
107
107
|
await setOptionsList();
|
|
108
|
-
await typeInput('
|
|
108
|
+
await typeInput('1');
|
|
109
109
|
const input = await page.find('b2b-input-list >>> b2b-input');
|
|
110
110
|
let inputValue = await input.getProperty('value');
|
|
111
|
-
expect(inputValue).toBe('
|
|
111
|
+
expect(inputValue).toBe('1');
|
|
112
112
|
// Click first option on the list
|
|
113
113
|
const option = await page.find({ text: optionsList[0] });
|
|
114
114
|
await option.click();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { parsePropToArray } from "../../utils/json-property-binding-util";
|
|
2
3
|
const keys = {
|
|
3
4
|
ARROW_UP: 'ArrowUp',
|
|
4
5
|
ARROW_DOWN: 'ArrowDown',
|
|
@@ -21,6 +22,11 @@ export class InputListComponent {
|
|
|
21
22
|
// needed to trigger re-render
|
|
22
23
|
this.handleInput = event => {
|
|
23
24
|
this.value = event.detail.value;
|
|
25
|
+
const term = event.target.value.toLowerCase();
|
|
26
|
+
const list = parsePropToArray(this.optionsList);
|
|
27
|
+
this.currentList =
|
|
28
|
+
term === '' ? list : list.filter(o => o.toLowerCase().includes(term));
|
|
29
|
+
this.searchValue = term;
|
|
24
30
|
if (this.value === '' || null || undefined) {
|
|
25
31
|
this.setElementOnBlur();
|
|
26
32
|
}
|
|
@@ -81,7 +87,13 @@ export class InputListComponent {
|
|
|
81
87
|
this.disabled = false;
|
|
82
88
|
this.groupDisabled = false;
|
|
83
89
|
this.hasOptionList = this.optionsList.length > 0;
|
|
90
|
+
this.currentList = [];
|
|
84
91
|
this.isElementFocused = false;
|
|
92
|
+
this.searchValue = '';
|
|
93
|
+
}
|
|
94
|
+
componentWillLoad() {
|
|
95
|
+
this.currentList = parsePropToArray(this.optionsList);
|
|
96
|
+
this.hasOptionList = this.optionsList.length > 0;
|
|
85
97
|
}
|
|
86
98
|
handleKeyDown(event) {
|
|
87
99
|
/** we need to be informed when a user changes focus to the clear button
|
|
@@ -129,6 +141,7 @@ export class InputListComponent {
|
|
|
129
141
|
}
|
|
130
142
|
watchPropHandler(newList) {
|
|
131
143
|
this.hasOptionList = newList.length > 0;
|
|
144
|
+
this.currentList = [...newList];
|
|
132
145
|
}
|
|
133
146
|
/* Notes:
|
|
134
147
|
Needs onFocusin and onFocusout in the Host element so that the click would
|
|
@@ -137,13 +150,13 @@ export class InputListComponent {
|
|
|
137
150
|
*/
|
|
138
151
|
render() {
|
|
139
152
|
const groupOrderClass = this.getGroupOrderClassName() || '';
|
|
140
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: 'a3b50598632e6a0a796a9eb141f26fe12b29e8be', onBlur: this.setElementOnBlur, onFocus: this.setElementOnFocus }, h("div", { key: '9d7e4f051f2593947ce3cbf5602f6a4a602fbdfc', class: {
|
|
141
154
|
'b2b-input-list': true,
|
|
142
155
|
'b2b-input-list__options-on': this.hasOptionList &&
|
|
143
156
|
this.isElementFocused &&
|
|
144
157
|
Boolean(this.value),
|
|
145
158
|
[groupOrderClass]: true,
|
|
146
|
-
} }, h("b2b-input", { key: '
|
|
159
|
+
} }, h("b2b-input", { key: '654211622b3bc8094ce6b20edd2b3c19f2ac28c3', type: "text", label: this.label, value: this.value, disabled: this.disabled || this.groupDisabled, "onb2b-input": this.handleInput, placeholder: this.placeholder, required: this.required }, !(this.disabled || this.groupDisabled) && Boolean(this.value) && (h("b2b-icon-100", { icon: "b2b_icon-close", "aria-label": "reset", slot: "end", tabIndex: 0, onMouseDown: this.resetInput, onKeyDown: this.resetInput }))), this.isElementFocused && Boolean(this.value) ? (h("div", { class: "b2b-input-list__options-container" }, this.hasOptionList ? (h("div", { class: "b2b-input-list__options", role: "listbox" }, this.currentList.map(option => (h("b2b-input-list-option", { option: option, tabIndex: -1, "onb2b-option-selected": this.onOptionSelected }))))) : (h("slot", null)))) : null)));
|
|
147
160
|
}
|
|
148
161
|
static get is() { return "b2b-input-list"; }
|
|
149
162
|
static get encapsulation() { return "shadow"; }
|
|
@@ -212,11 +225,11 @@ export class InputListComponent {
|
|
|
212
225
|
"reflect": true
|
|
213
226
|
},
|
|
214
227
|
"optionsList": {
|
|
215
|
-
"type": "
|
|
228
|
+
"type": "string",
|
|
216
229
|
"mutable": false,
|
|
217
230
|
"complexType": {
|
|
218
|
-
"original": "string[]",
|
|
219
|
-
"resolved": "string[]",
|
|
231
|
+
"original": "string | string[]",
|
|
232
|
+
"resolved": "string | string[]",
|
|
220
233
|
"references": {}
|
|
221
234
|
},
|
|
222
235
|
"required": false,
|
|
@@ -225,6 +238,8 @@ export class InputListComponent {
|
|
|
225
238
|
"tags": [],
|
|
226
239
|
"text": "The list of options passed into the search dropdown. Can be static or dynamic, i.e. updated when the b2b-search or b2b-input emitters fire."
|
|
227
240
|
},
|
|
241
|
+
"attribute": "options-list",
|
|
242
|
+
"reflect": false,
|
|
228
243
|
"defaultValue": "[]"
|
|
229
244
|
},
|
|
230
245
|
"value": {
|
|
@@ -289,7 +304,9 @@ export class InputListComponent {
|
|
|
289
304
|
static get states() {
|
|
290
305
|
return {
|
|
291
306
|
"hasOptionList": {},
|
|
292
|
-
"
|
|
307
|
+
"currentList": {},
|
|
308
|
+
"isElementFocused": {},
|
|
309
|
+
"searchValue": {}
|
|
293
310
|
};
|
|
294
311
|
}
|
|
295
312
|
static get events() {
|
|
@@ -4,10 +4,10 @@ export class LabelComponent {
|
|
|
4
4
|
this.type = 'neutral';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h("span", { key: '
|
|
7
|
+
return (h("span", { key: '86d64389cf254eb3fb56e58c9399087e4d053f5f', class: {
|
|
8
8
|
'b2b-label': true,
|
|
9
9
|
[`b2b-label--${this.type}`]: true,
|
|
10
|
-
} }, h("slot", { key: '
|
|
10
|
+
} }, h("slot", { key: 'd85ee68f76a02a02c4c10e2ef634fdc4c412229a' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "b2b-label"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -82,10 +82,10 @@ export class ModalComponent {
|
|
|
82
82
|
this.attemptFocus(this.getFirstFocusableElement());
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: 'bea74834a3926bc7efd9100f065eb4a8603e8bd4' }, h("div", { key: '5d5cca368682bcd7de4f77fe05e702b87943f762', class: { 'b2b-modal': true, 'b2b-modal--open': this.opened } }, h("div", { key: 'ba06899cee12d6ef3d3e71a96040daccfdf3b364', "data-focus-trap-edge": true, onFocus: this.handleTopFocus, tabIndex: 0 }), h("div", { key: '0be5c5dcc62576e1662ed7f6185b0ff24afaadc4', class: {
|
|
86
86
|
'b2b-modal__dialog': true,
|
|
87
87
|
[`b2b-modal__dialog--${this.variant}`]: true,
|
|
88
|
-
} }, h("div", { key: '
|
|
88
|
+
} }, h("div", { key: '11b056ce706f572663e3a64cd5115ccc45109190', class: "b2b-modal__dialog__header" }, h("div", { key: '073420de4937e8f18a2172a45eb7088caef4624e', class: "b2b-modal__dialog__header-left" }, h("b2b-headline", { key: '3fdaeaccfd4606560ae82c8cbc8ad8eb65a9dfa8', align: "center", size: "200", noMargin: true }, this.heading), h("slot", { key: 'f280675fcff7e81d1dc6388820f04110de703f8f', name: "header-icon" })), h("div", { key: '6a821204fdce083dfa0267714e1bc438b3dfcd56', class: "b2b-modal__dialog__header-right" }, h("button", { key: 'aa97e6cf511417d3a283017419577e6da8f65fff', type: "button", class: "b2b-modal__dialog__close", onMouseEnter: this.toggleIconHover, onMouseLeave: this.toggleIconHover, onClick: this.handleClickDismiss, ref: el => (this.closeButton = el) }, h("b2b-icon-100", { key: 'c4ff1783dc4d7c7d7b85bc739d0b5154fc60eacb', clickable: true, icon: "b2b_icon-close", color: this.iconHover ? 'primary' : 'secondary' })))), h("div", { key: 'ebf5d6a280718bf7f4c98e41846dea91dbde6943', class: "b2b-modal__dialog__body" }, h("slot", { key: 'b9b1b56a4b45760e88f6cb7e54281cd468137ccc' })), h("div", { key: 'ff0f612d9581c5f5bd48bd99699b1fc1348a577a', class: "b2b-modal__dialog__footer" }, h("div", { key: 'bf034c403f883695a72bd5ee0ec7a6b5c40f6ef1', class: "b2b-modal__dialog__footer-left" }, h("slot", { key: '52a6a99d0a722bf37c8659290ceaec53d5acc546', name: "footer-left" })), h("div", { key: '5d5a6786dfe6708cb17ca37e92c0f5c4366b6e0c', class: "b2b-modal__dialog__footer-right" }, h("slot", { key: '37f62cb0bf38031673f53f7ef2578e2c5c5219f9', name: "footer-right" })))), h("div", { key: 'b0eb907e93024c42e2b3668316f51b1e6b7d5aa3', "data-focus-trap-edge": true, onFocus: this.handleBottomFocus, tabIndex: 0 }), h("div", { key: '6d6762fb11007e46c3d3872ab208e40aa0e28d4a', class: "b2b-modal__backdrop", onClick: this.handleBackdropDismiss }))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "b2b-modal"; }
|
|
91
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -207,16 +207,16 @@ export class B2bMultiSelectDropdown {
|
|
|
207
207
|
const hasError = this.invalid && !disabled;
|
|
208
208
|
const showHint = this.hint && !hasError;
|
|
209
209
|
const showError = this.errorMessage && hasError;
|
|
210
|
-
return (h(Host, { key: '
|
|
210
|
+
return (h(Host, { key: '67df2c8968bd816fdd57b9e1c0b3dcd37f9bc401', onFocus: this.setElementOnFocus, onBlur: this.setElementOnBlur, onClick: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("b2b-input-label", { key: '32d25f1327ffab15969ca4dcb4faa953bf9923c3', required: this.required }, this.label), h("div", { key: 'b4d0182e211f6aab9c3061eeffccdd1ceddbf03a', class: {
|
|
211
211
|
'b2b-multiselect-dropdown': true,
|
|
212
212
|
'b2b-multiselect-dropdown--open': this.isOpen,
|
|
213
213
|
'b2b-multiselect-dropdown--error': hasError,
|
|
214
214
|
'b2b-multiselect-dropdown--disabled': disabled,
|
|
215
215
|
'b2b-multiselect-dropdown--focused': this.invalid && this.isElementFocused,
|
|
216
|
-
}, tabindex: 0, role: "combobox", onClick: () => (this.isOpen = !this.isOpen && !disabled), "aria-expanded": this.isElementFocused }, h("div", { key: '
|
|
216
|
+
}, tabindex: 0, role: "combobox", onClick: () => (this.isOpen = !this.isOpen && !disabled), "aria-expanded": this.isElementFocused }, h("div", { key: 'b6a69e9160fa5869d06cc2fc1f6f2d56c8964114', 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: '99a6b2e5baba4598a46f328e808b06e6e4b9d725', icon: "b2b_icon-arrow-down" })), h("div", { key: '0de344aa373d4ca82bf716df966448e95b5717f8', class: {
|
|
217
217
|
'b2b-multiselect-dropdown__options-container': true,
|
|
218
218
|
'b2b-multiselect-dropdown__options-container--visible': this.isOpen,
|
|
219
|
-
} }, h("div", { key: '
|
|
219
|
+
} }, h("div", { key: '53e6ef0829f30ab13e0441eb54118b19835ce353', class: "b2b-multiselect-dropdown__options", role: "listbox", "aria-label": this.label, tabIndex: -1 }, h("div", { key: 'eb30f1caec191fb6021c172fae01ccf30e7d4f68', class: "b2b-multiselect-dropdown__option__search" }, h("input", { key: '7b29fd3710eb4fecc9dc8d3c29dfae60ec3ea375', type: "text", onInput: this.handleInput, class: "b2b-multiselect-dropdown__option__search__input", placeholder: this.searchPlaceholder })), h("b2b-multiselect-option", { key: '9efd9cac0ef3c2c9d61d32292bbf5ade76991996', class: "b2b-multiselect-dropdown__option__select-all", option: this.selectAllLabel, id: "select-all", "onB2b-option-selected": this.handleSelectAll }), this.hasOptionList &&
|
|
220
220
|
this.currentList.map(option => (h("b2b-multiselect-option", { "onB2b-option-selected": this.handleSelectedChange, option: option.value, label: option.label }))))), showHint && (h("span", { class: "b2b-multiselect-dropdown__hint" }, this.hint)), showError && (h("span", { class: "b2b-multiselect-dropdown__error-message" }, this.errorMessage))));
|
|
221
221
|
}
|
|
222
222
|
static get is() { return "b2b-multiselect-dropdown"; }
|
package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js
CHANGED
|
@@ -15,9 +15,9 @@ export class B2bMultiSelectOption {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
var _a;
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'f1a1faa0a97e00af9fbfa291aba3c53ea92ad44c', role: "option", class: {
|
|
19
19
|
'b2b-multiselect-dropdown__option': true,
|
|
20
|
-
} }, h("b2b-checkbox", { key: '
|
|
20
|
+
} }, h("b2b-checkbox", { key: '251ccb65111ecb72b57c19786df65a11a1432ab7', checked: this.selected, "onB2b-change": this.handleCheckboxChange, label: (_a = this.label) !== null && _a !== void 0 ? _a : this.option, indeterminate: this.indeterminate, value: this.option })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "b2b-multiselect-option"; }
|
|
23
23
|
static get originalStyleUrls() {
|
|
@@ -234,9 +234,6 @@
|
|
|
234
234
|
list-style: none;
|
|
235
235
|
padding: 0;
|
|
236
236
|
margin: 0;
|
|
237
|
-
/* this is a workaround to force purgecss to include the overwrites of
|
|
238
|
-
the variables --b2b-border-right and --b2b-border-radius
|
|
239
|
-
*/
|
|
240
237
|
}
|
|
241
238
|
.b2b-pagination li {
|
|
242
239
|
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
@@ -258,6 +255,11 @@
|
|
|
258
255
|
--b2b-border-right: 1px solid var(--b2b-button-secondary-border-color);
|
|
259
256
|
--b2b-border-radius: var(--b2b-size-border-no-radius-left);
|
|
260
257
|
}
|
|
258
|
+
.b2b-pagination {
|
|
259
|
+
/* this is a workaround to force purgecss to include the overwrites of
|
|
260
|
+
the variables --b2b-border-right and --b2b-border-radius
|
|
261
|
+
*/
|
|
262
|
+
}
|
|
261
263
|
.b2b-pagination .purge-css-include-variables {
|
|
262
264
|
border-radius: var(--b2b-border-radius);
|
|
263
265
|
border-right: var(--b2b-border-right);
|
|
@@ -91,7 +91,7 @@ export class PaginationComponent {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return (h("nav", { key: '
|
|
94
|
+
return (h("nav", { key: '88eb108790c1be9f974f7c88f602afa2ee35f1e9' }, h("ol", { key: '19a0fff8f2ac83913593530d921e8915e496400b', 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 }, "\u2039" /* PaginationConstants.BACK */))), this.navItems.map((navItem, index) => {
|
|
95
95
|
const isItemActive = this.activePage === navItem;
|
|
96
96
|
return (h("li", { class: this.getItemClass(navItem) }, h("b2b-button", { onClick: () => this.setSelectedPage(navItem, index), active: isItemActive, disabled: isItemActive, size: "50", variant: "secondary" }, navItem)));
|
|
97
97
|
}), this.activePage !== this.totalPages && (h("li", { class: "b2b-pagination--next" }, h("b2b-button", { onClick: this.selectNextPage, size: "50", variant: "secondary", "aria-label": this.ariaLabelNextPage }, "\u203A" /* PaginationConstants.NEXT */))))));
|
|
@@ -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: 'b0060404440e78b3a2331df11a2d56d4071c7e19' }, h("div", { key: '031bd2160763920981cd6491bc1099636f3c21fd', class: {
|
|
21
21
|
[`b2b-progress-bar__${this.labelPosition}-${this.labelType}`]: true,
|
|
22
|
-
} }, h("div", { key: '
|
|
22
|
+
} }, h("div", { key: '945e5c7bf601cd8d34b0cd095245a8cc6b801cea', class: "b2b-progress-bar__wrapper" }, h("div", { key: '93086dd441221a8ff681d9de2da8ff2f2d4ae0b5', class: "b2b-progress-bar__progress", style: {
|
|
23
23
|
width: `${this.getProgress()}%`,
|
|
24
|
-
} })), h("div", { key: '
|
|
24
|
+
} })), h("div", { key: '82ce3cabe0897878d2715ca96a07ba8347f42590', 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,
|
|
@@ -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: 'fd1084fd2df24d7de2727441f69c03f9aa497f22', onClick: this.onClick }, h("div", { key: 'a4d0e872905049f686a1d70a883aba37bc7b3823', 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: 'e334d57a546380ae10aad7bd6c8c1688650d5107', class: "b2b-radio-items" }, h("input", { key: '20b59620275ef3c93ecec45c4c84fd8098ce47dc', 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: '71e1468f0d8046d9c80cb0bb159081a772e2b871', id: this.name, required: this.required, disabled: this.disabled }, h("slot", { key: '00b2e6022ff3cc78ef450d7a7611f08e6a5d0adb', 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"; }
|
|
@@ -67,11 +67,11 @@ export class RadioButtonGroupComponent {
|
|
|
67
67
|
this.removeChildText();
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '0ae32b84f0c10b153284933bddbb15e0450723a9' }, h("div", { key: '04f3fc2aa309f7e5b59ec15c2667620d1c4d4473', class: {
|
|
71
71
|
'b2b-radio-group': true,
|
|
72
72
|
'b2b-radio-group--error': this.invalid && !this.disabled,
|
|
73
73
|
[`b2b-radio-group--${this.alignment}`]: true,
|
|
74
|
-
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("fieldset", { key: '
|
|
74
|
+
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("fieldset", { key: '219771596262fd4551efebb096fe3a1f84075155' }, h("div", { key: '9fd874e3297a02c71f76fa533972276f09fb2d41', class: "b2b-radio-group-options" }, h("slot", { key: 'e912fcca4012b8512fbe4b4cc485bc66158ad26e' }))), (this.hint !== undefined && !this.invalid) ||
|
|
75
75
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "b2b-radio-group"; }
|
|
@@ -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: '9aa9e447faee8fc6a4d794815ec5ef38b8aeb1fd' }, h("div", { key: '655024bc9e4790117f4f940743ccd0b99c58cc81', class: "b2b-required-separator__label" }, h("span", { key: '194c31216547c20ec3ad50879012d201536db660', class: "b2b-required-separator__asterisk" }, "* "), h("span", { key: 'c70e239fae2007202edfc38349c1f06e004fc720' }, this.label)), h("b2b-separator", { key: '18e7aa82496629262a0b6a6eace005abe775461d' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "b2b-required-separator"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '913fba2af4e94c6e7d216077cea966fcb82890e2' }, h("div", { key: '78d110134ffcbba85ab5f5bdb2a70680986503f0', 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: 'b4b397689fb44687dd1cdc588ac3ebc12d655d19', style: {
|
|
15
15
|
['color']: this.contentColor,
|
|
16
|
-
} }, h("slot", { key: '
|
|
16
|
+
} }, h("slot", { key: '1d7fe83ff0e4ea10ee9d4bc6cd24346ee5ef2b5e', name: "icon" })), h("div", { key: '0d820dcc8d71da4932f1c2a969d80decfacbee7b', style: {
|
|
17
17
|
['color']: this.contentColor,
|
|
18
|
-
} }, h("slot", { key: '
|
|
18
|
+
} }, h("slot", { key: 'be1ee3143843af1227fc48d58fb47498acd615e0', name: "text" })))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "b2b-rounded-icon"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '577b0d6563b9dbd02bdc52659719bd9b8bc93abf' }, h("slot", { key: 'c08d17e55359e8a3bc3616bf401bebc91699a50c' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "b2b-scrollable-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -84,7 +84,7 @@ describe('B2B-Search', () => {
|
|
|
84
84
|
const input = await page.find('b2b-search >>> b2b-input-list');
|
|
85
85
|
// focus on input element, focus method did not work
|
|
86
86
|
await input.click();
|
|
87
|
-
await input.press('
|
|
87
|
+
await input.press('1');
|
|
88
88
|
await page.waitForChanges();
|
|
89
89
|
// Click first option on the list
|
|
90
90
|
const option = await page.find({ text: optionsList[0] });
|
|
@@ -22,7 +22,7 @@ export class SearchComponent {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'aea5b63ad99666f54f0bb28641b94f0cf2a7826f' }, h("b2b-input-group", { key: 'abf3db241031678e7494f259afacdd5286bf706c', disabled: this.disabled }, h("b2b-input-list", { key: 'c15698d8e4ea0df49b8aaae34530d24a88adc6a5', slot: "start", value: this.value, placeholder: this.placeholder, optionsList: this.optionsList, "onb2b-input": this.onInput, "onb2b-option-selected": this.onOptionSelected }, h("slot", { key: '6b6f678fa0420061de5d2f2534c8b81a9461dd6d' })), h("b2b-button", { key: 'dc33effb80da2d1e80f3f2c82fec517410403e53', slot: "end", variant: "primary", onClick: this.onSearchClicked }, h("b2b-icon-100", { key: '147dd58698d5e51cba2934b454525895e3b5c6d8', icon: "b2b_icon-search", clickable: true })))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "b2b-search"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class B2bSeparatorComponent {
|
|
|
4
4
|
this.alignment = 'horizontal';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '3d72ec054841ab058eaf6e57f222001690fc253f' }, h("div", { key: '4638385437636a79b35a5254dd920d85a2531800', class: {
|
|
8
8
|
[`b2b-separator--${this.alignment}`]: true,
|
|
9
9
|
} })));
|
|
10
10
|
}
|
|
@@ -10,7 +10,7 @@ export class ShimmerComponent {
|
|
|
10
10
|
width: `${this.width}px`,
|
|
11
11
|
height: `${this.height}px`,
|
|
12
12
|
};
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'fb6af2424eef31132e91f98c08d7fdc445a52aa4' }, this.loading ? (h("div", { class: "b2b-shimmer", style: shimmerStyle })) : (h("slot", null))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "b2b-shimmer"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,17 +86,17 @@ export class SnackbarComponent {
|
|
|
86
86
|
clearTimeout(this.timeoutId);
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '58090fac24ced577a62bae4e1fe0101aeaf91b29', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("div", { key: '64c5630d12184b91c1cfba84c93c1e3a5860f9c8', class: {
|
|
90
90
|
'b2b-snackbar': true,
|
|
91
91
|
[`b2b-snackbar--${this.type}`]: true,
|
|
92
92
|
'b2b-snackbar--opened': this.opened,
|
|
93
|
-
}, style: { width: this.width || 'auto' } }, h("div", { key: '
|
|
93
|
+
}, style: { width: this.width || 'auto' } }, h("div", { key: 'd5094808134bcea3cfc96190fdde31c929d02097', class: "b2b-snackbar__content" }, h("span", { key: '78d3c42ed255d7137236485dd4dab3d03e53c16c', class: { [`b2b-snackbar--${this.type}__icon`]: true } }, this.chooseIcon()), h("p", { key: '9ec8d4ca79c7c285acac581ecd51eedc46ce0122', class: "b2b-snackbar__content__description" }, this.description)), this.isActionPresent() && (h("div", { class: {
|
|
94
94
|
'b2b-snackbar__action': true,
|
|
95
95
|
[`b2b-snackbar__action--${this.type}`]: true,
|
|
96
|
-
}, onClick: this.handleActionClick }, h("a", null, this.actionLabel))), h("div", { key: '
|
|
96
|
+
}, onClick: this.handleActionClick }, h("a", null, this.actionLabel))), h("div", { key: 'dfd85891f9f75aaa4431a5e739cb800bb2d33d58', class: {
|
|
97
97
|
'b2b-snackbar__close-icon': true,
|
|
98
98
|
[`b2b-snackbar__close-icon--${this.type}`]: true,
|
|
99
|
-
}, onClick: this.close }, h("b2b-icon-100", { key: '
|
|
99
|
+
}, onClick: this.close }, h("b2b-icon-100", { key: '68222a852700593f0c135ac855467d517bd6f649', clickable: true, size: 24, icon: "b2b_icon-close" })))));
|
|
100
100
|
}
|
|
101
101
|
static get is() { return "b2b-snackbar"; }
|
|
102
102
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class SpinnerComponent {
|
|
|
9
9
|
this.color = 'primary';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: '0c447cbf277dcfe6f91ab0d3537262a5757b789c', class: {
|
|
13
13
|
'b2b-spinner': true,
|
|
14
14
|
['b2b-spinner--size-' + this.size]: true,
|
|
15
15
|
['b2b-spinner--color-' + this.color]: true,
|
|
@@ -17,12 +17,12 @@ export class B2bTabComponent {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '41b47b38d655fb6bfc42c8e2444e8aee1776ad2b', id: `b2b-tab-${this.generatedId}`, "aria-role": "tab", "aria-selected": this.selected, role: this.disabled ? false : 'tab', disabled: this.disabled, tabindex: this.disabled ? false : this.selected ? '0' : '-1' }, h("span", { key: '544a01d49daaf6542ba7e367d014ded65f813d89', class: {
|
|
21
21
|
'b2b-tab': true,
|
|
22
22
|
'b2b-tab--selected': this.selected,
|
|
23
23
|
'b2b-tab--disabled': this.disabled,
|
|
24
24
|
'b2b-tab--error': this.invalid,
|
|
25
|
-
} }, h("slot", { key: '
|
|
25
|
+
} }, h("slot", { key: '221f1a424a292b4d4f1e6b02f67f7e4602b9eb3f' }))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "b2b-tab"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -121,7 +121,7 @@ export class B2bTabGroupComponent {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
render() {
|
|
124
|
-
return (h(Host, { key: '
|
|
124
|
+
return (h(Host, { key: '52d6f3b4803f41853eedf2b92790ad353548498b' }, h("slot", { key: '7a59390254d38c9d40dbc1c882082536921c4c02', name: "tab" }), h("b2b-separator", { key: '67d11fcb5798e23b58205672054c40ab7dec12f8' }), h("slot", { key: '8e2bc99d1aa2f2e71cdebdc723b61d1b8be23f29', name: "panel" })));
|
|
125
125
|
}
|
|
126
126
|
static get is() { return "b2b-tab-group"; }
|
|
127
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class B2bTabPanelComponent {
|
|
|
5
5
|
this.generatedId = i++;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '25b0780d337b5904862224f6194834de6e7af2ee', id: `b2b-tab-panel-${this.generatedId}`, role: "tabpanel" }, h("div", { key: 'd6722fed4150424eef6c2d828efe6728ec406ce5', class: "b2b-tab-panel" }, h("slot", { key: 'b37b3b6f6b43ba1ef55574492dd3791ddf478037' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "b2b-tab-panel"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,14 +36,14 @@ export class TableCellComponent {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '31a2402a856935d1441e5b7225adcb98fa092e02', onMouseEnter: this.addExpandStyles, onMouseLeave: this.removeExpandStyles, class: {
|
|
40
40
|
'b2b-table-cell': true,
|
|
41
41
|
['b2b-table-cell--colspan']: this.size === TableSizes.COLSPAN,
|
|
42
42
|
['b2b-table-cell--ellipsis']: this.useTextEllipsis,
|
|
43
43
|
['b2b-table-cell--' + this.align]: true,
|
|
44
44
|
['b2b-table-cell--divider']: this.divider,
|
|
45
45
|
[`b2b-table-cell-color-${this.color}`]: true,
|
|
46
|
-
}, role: "cell" }, h("slot", { key: '
|
|
46
|
+
}, role: "cell" }, h("slot", { key: '82c708c878e124e34ec189df23947634e5172e9b' })));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "b2b-table-cell"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -72,7 +72,7 @@ export class TableHeaderComponent {
|
|
|
72
72
|
this.setIconPlacement();
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: '191554770ee6fc218ece0f555dd2aca07637623a', class: {
|
|
76
76
|
[`b2b-table-header--${this.sortDirection && this.iconAlign}`]: true,
|
|
77
77
|
'b2b-table-header--divider': this.divider,
|
|
78
78
|
[`b2b-table-header--${this.size}`]: true,
|
|
@@ -110,12 +110,12 @@ export class TableRowComponent {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: '8464ef3dedf1ef893088ccae661282c3552b52e7', class: {
|
|
114
114
|
'b2b-table-row': true,
|
|
115
115
|
['b2b-table-row--colspan']: this.size === TableSizes.COLSPAN,
|
|
116
116
|
['b2b-table-row--highlight']: this.highlight,
|
|
117
117
|
[`b2b-table-row--color-${this.getRowColor()}`]: true,
|
|
118
|
-
}, role: "row" }, this.getAccordionColumns(), this.getCheckbox(), h("slot", { key: '
|
|
118
|
+
}, role: "row" }, this.getAccordionColumns(), this.getCheckbox(), h("slot", { key: 'f25f2457e0ff940f31b0a03cf528336448f5af5b' })));
|
|
119
119
|
}
|
|
120
120
|
static get is() { return "b2b-table-row"; }
|
|
121
121
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,8 @@ export class TableRowgroupComponent {
|
|
|
11
11
|
.map(child => child.value);
|
|
12
12
|
};
|
|
13
13
|
this.toggleList = (list, event) => {
|
|
14
|
-
list.forEach(child => ((child.checked = event.detail.checked),
|
|
14
|
+
list.forEach(child => ((child.checked = event.detail.checked),
|
|
15
|
+
(child.indeterminate = false)));
|
|
15
16
|
};
|
|
16
17
|
this.addCheckboxColumn = () => {
|
|
17
18
|
const children = getAllRows(this.host);
|
|
@@ -113,11 +114,11 @@ export class TableRowgroupComponent {
|
|
|
113
114
|
this.makeHeaderRowNotSelectable();
|
|
114
115
|
}
|
|
115
116
|
render() {
|
|
116
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: 'f2f488f6392f9b6f2ee3b766d7746dda4fde1764', class: {
|
|
117
118
|
['b2b-table-rowgroup__' + this.type]: true,
|
|
118
119
|
'b2b-table-rowgroup--fixed': this.fixed,
|
|
119
120
|
'b2b-table-rowgroup--colspan': this.size === TableSizes.COLSPAN,
|
|
120
|
-
}, role: "rowgroup" }, h("slot", { key: '
|
|
121
|
+
}, role: "rowgroup" }, h("slot", { key: '7671fbb227a9d4e51e48a58eee682ed4bb8c8fe4' })));
|
|
121
122
|
}
|
|
122
123
|
static get is() { return "b2b-table-rowgroup"; }
|
|
123
124
|
static get encapsulation() { return "shadow"; }
|
|
@@ -60,9 +60,9 @@ export class TableComponent {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '4e54f9b98d02bed540e4748bbcf20837647ce796', class: {
|
|
64
64
|
['b2b-table--' + this.size]: true,
|
|
65
|
-
}, role: "table" }, h("slot", { key: '
|
|
65
|
+
}, role: "table" }, h("slot", { key: '7e70f4f9b9ff302e7f3e283753591c5f4dd79312' })));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "b2b-table"; }
|
|
68
68
|
static get encapsulation() { return "shadow"; }
|