@otto-de/b2b-core-components 1.30.0 → 1.31.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-00666ca7.entry.js +1 -0
- package/dist/b2b-core-components/p-0a63f5f8.entry.js +1 -0
- package/dist/b2b-core-components/{p-9cfba835.entry.js → p-0bf05f33.entry.js} +1 -1
- package/dist/b2b-core-components/{p-68e07419.entry.js → p-0edac105.entry.js} +1 -1
- package/dist/b2b-core-components/p-0ffc90ee.entry.js +1 -0
- package/dist/b2b-core-components/p-168c8684.entry.js +1 -0
- package/dist/b2b-core-components/p-19392020.js +1 -0
- package/dist/b2b-core-components/p-1a908833.entry.js +1 -0
- package/dist/b2b-core-components/{p-a37d6cea.entry.js → p-1dff8b34.entry.js} +1 -1
- package/dist/b2b-core-components/p-2d5df8f7.entry.js +1 -0
- package/dist/b2b-core-components/p-2dc0c5c0.entry.js +1 -0
- package/dist/b2b-core-components/p-318eb15e.entry.js +1 -0
- package/dist/b2b-core-components/p-33c01bb2.entry.js +1 -0
- package/dist/b2b-core-components/p-375cefbd.entry.js +1 -0
- package/dist/b2b-core-components/p-383d0a10.entry.js +1 -0
- package/dist/b2b-core-components/{p-08577a40.entry.js → p-400fa973.entry.js} +1 -1
- package/dist/b2b-core-components/p-413729d1.entry.js +1 -0
- package/dist/b2b-core-components/p-49bafb74.entry.js +1 -0
- package/dist/b2b-core-components/{p-745ad406.entry.js → p-4bc0ec9a.entry.js} +1 -1
- package/dist/b2b-core-components/p-564c62d0.entry.js +1 -0
- package/dist/b2b-core-components/{p-6040dca2.entry.js → p-6025d667.entry.js} +1 -1
- package/dist/b2b-core-components/p-61b2a6ad.js +1 -0
- package/dist/b2b-core-components/{p-54d478b6.entry.js → p-661d0249.entry.js} +1 -1
- package/dist/b2b-core-components/p-6dd7fd7b.entry.js +1 -0
- package/dist/b2b-core-components/p-6ff5114b.entry.js +1 -0
- package/dist/b2b-core-components/p-742a18f1.entry.js +1 -0
- package/dist/b2b-core-components/{p-23acc468.entry.js → p-781611fb.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0847e62e.entry.js → p-7bb6f06e.entry.js} +1 -1
- package/dist/b2b-core-components/p-7dd8f3cb.entry.js +1 -0
- package/dist/b2b-core-components/p-815d7a53.entry.js +1 -0
- package/dist/b2b-core-components/{p-5063e5b7.entry.js → p-850c8e01.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e8b1fee4.entry.js → p-86ff8e6c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-552f43c1.entry.js → p-9819f622.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ccf78e23.entry.js → p-9dde1af0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-24c94653.entry.js → p-9f88b476.entry.js} +1 -1
- package/dist/b2b-core-components/p-a155219a.entry.js +1 -0
- package/dist/b2b-core-components/p-a96c8ba0.entry.js +1 -0
- package/dist/b2b-core-components/p-b33059ab.entry.js +1 -0
- package/dist/b2b-core-components/p-b5fdf7df.entry.js +1 -0
- package/dist/b2b-core-components/p-b6a753e8.js +2 -0
- package/dist/b2b-core-components/p-bba0b41b.entry.js +1 -0
- package/dist/b2b-core-components/p-be93498d.entry.js +1 -0
- package/dist/b2b-core-components/p-bfbe4aff.entry.js +1 -0
- package/dist/b2b-core-components/p-c597637e.entry.js +1 -0
- package/dist/b2b-core-components/{p-eb01bb4f.entry.js → p-c67bcebc.entry.js} +1 -1
- package/dist/b2b-core-components/p-cb4cc427.entry.js +1 -0
- package/dist/b2b-core-components/{p-a63dfd99.entry.js → p-d1c8105b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2f9efe3f.entry.js → p-d26ec403.entry.js} +1 -1
- package/dist/b2b-core-components/p-d3204d75.entry.js +1 -0
- package/dist/b2b-core-components/p-d6457a1d.entry.js +1 -0
- package/dist/b2b-core-components/p-db205434.entry.js +1 -0
- package/dist/b2b-core-components/p-e1255160.js +1 -0
- package/dist/b2b-core-components/p-e40069cd.entry.js +1 -0
- package/dist/b2b-core-components/p-e520c7cf.entry.js +1 -0
- package/dist/b2b-core-components/p-f2fdce36.entry.js +1 -0
- package/dist/b2b-core-components/p-f5786cad.entry.js +1 -0
- package/dist/b2b-core-components/{p-58fb3508.entry.js → p-f5e9dbf4.entry.js} +1 -1
- package/dist/b2b-core-components/p-f9e278da.entry.js +1 -0
- package/dist/b2b-core-components/p-fa85955c.entry.js +1 -0
- package/dist/b2b-core-components/{p-eb78706f.entry.js → p-fae54521.entry.js} +1 -1
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/b2b-alert.cjs.entry.js +13 -15
- package/dist/cjs/b2b-anchor.cjs.entry.js +8 -10
- package/dist/cjs/b2b-background-box.cjs.entry.js +7 -10
- package/dist/cjs/b2b-breadcrumb-item.cjs.entry.js +10 -8
- package/dist/cjs/b2b-breadcrumb.cjs.entry.js +10 -9
- package/dist/cjs/b2b-button_2.cjs.entry.js +20 -25
- package/dist/cjs/b2b-card.cjs.entry.js +8 -8
- package/dist/cjs/b2b-checkbox-group.cjs.entry.js +15 -13
- package/dist/cjs/b2b-checkbox.cjs.entry.js +22 -19
- package/dist/cjs/b2b-chip-component_2.cjs.entry.js +24 -20
- package/dist/cjs/b2b-core-components.cjs.js +14 -13
- package/dist/cjs/b2b-date-picker-days_5.cjs.entry.js +50 -40
- package/dist/cjs/b2b-date-picker.cjs.entry.js +37 -36
- package/dist/cjs/b2b-dropdown.cjs.entry.js +26 -24
- package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +10 -8
- package/dist/cjs/b2b-flyout-menu.cjs.entry.js +9 -7
- package/dist/cjs/b2b-grid-col.cjs.entry.js +6 -4
- package/dist/cjs/b2b-grid-row.cjs.entry.js +5 -7
- package/dist/cjs/b2b-grid.cjs.entry.js +6 -4
- package/dist/cjs/b2b-headline.cjs.entry.js +5 -5
- package/dist/cjs/b2b-icon-100.cjs.entry.js +12 -12
- package/dist/cjs/b2b-icon-50.cjs.entry.js +10 -9
- package/dist/cjs/b2b-icon.cjs.entry.js +12 -12
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +24 -24
- package/dist/cjs/b2b-input-label.cjs.entry.js +7 -6
- package/dist/cjs/b2b-input_2.cjs.entry.js +33 -33
- package/dist/cjs/b2b-label.cjs.entry.js +7 -5
- package/dist/cjs/b2b-modal.cjs.entry.js +16 -18
- package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +27 -24
- package/dist/cjs/b2b-pagination.cjs.entry.js +12 -13
- package/dist/cjs/b2b-paragraph.cjs.entry.js +7 -10
- package/dist/cjs/b2b-progress-bar.cjs.entry.js +12 -9
- package/dist/cjs/b2b-radio-button.cjs.entry.js +19 -15
- package/dist/cjs/b2b-radio-group.cjs.entry.js +17 -13
- package/dist/cjs/b2b-required-separator.cjs.entry.js +6 -4
- package/dist/cjs/b2b-rounded-icon.cjs.entry.js +10 -12
- package/dist/cjs/b2b-scrollable-container.cjs.entry.js +6 -3
- package/dist/cjs/b2b-search.cjs.entry.js +10 -9
- package/dist/cjs/b2b-separator.cjs.entry.js +6 -4
- package/dist/cjs/b2b-shimmer.cjs.entry.js +9 -3
- package/dist/cjs/b2b-snackbar.cjs.entry.js +19 -18
- package/dist/cjs/b2b-tab-group.cjs.entry.js +6 -6
- package/dist/cjs/b2b-tab-panel.cjs.entry.js +6 -3
- package/dist/cjs/b2b-tab.cjs.entry.js +8 -8
- package/dist/cjs/b2b-table-cell_2.cjs.entry.js +30 -37
- package/dist/cjs/b2b-table-row.cjs.entry.js +19 -17
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +16 -23
- package/dist/cjs/b2b-table.cjs.entry.js +10 -13
- package/dist/cjs/b2b-textarea.cjs.entry.js +23 -17
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +14 -10
- package/dist/cjs/b2b-toggle-chip.cjs.entry.js +14 -10
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +11 -7
- package/dist/cjs/b2b-toggle-switch.cjs.entry.js +15 -13
- package/dist/cjs/b2b-tooltip.cjs.entry.js +12 -11
- package/dist/cjs/b2b-wizard-icon.cjs.entry.js +9 -8
- package/dist/cjs/b2b-wizard-step.cjs.entry.js +8 -9
- package/dist/cjs/b2b-wizard.cjs.entry.js +10 -12
- package/dist/cjs/index-668808fd.js +2516 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/{request-Dwsj-gbA.js → request-801c6ba1.js} +0 -2
- package/dist/cjs/{utils--ZrBSHVe.js → utils-499e9db5.js} +9 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/alert/alert.e2e.js +67 -0
- package/dist/collection/components/alert/alert.js +12 -27
- package/dist/collection/components/anchor/anchor.js +9 -26
- package/dist/collection/components/anchor/anchor.spec.js +68 -0
- package/dist/collection/components/background-box/background-box.e2e.js +63 -0
- package/dist/collection/components/background-box/background-box.js +8 -26
- package/dist/collection/components/background-box/background-box.spec.js +64 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +7 -14
- package/dist/collection/components/breadcrumb/breadcrumb.e2e.js +50 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +6 -12
- package/dist/collection/components/button/button.e2e.js +80 -0
- package/dist/collection/components/button/button.js +23 -52
- package/dist/collection/components/card/card.e2e.js +110 -0
- package/dist/collection/components/card/card.js +5 -14
- package/dist/collection/components/card/card.spec.js +32 -0
- package/dist/collection/components/checkbox/checkbox.e2e.js +36 -0
- package/dist/collection/components/checkbox/checkbox.js +26 -50
- package/dist/collection/components/checkbox/checkbox.spec.js +45 -0
- package/dist/collection/components/checkbox-group/checkbox-group.e2e.js +78 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +16 -31
- package/dist/collection/components/checkbox-group/checkbox-group.spec.js +38 -0
- package/dist/collection/components/chip/chip.e2e.js +99 -0
- package/dist/collection/components/chip/chip.js +17 -30
- package/dist/collection/components/date-picker/date-picker-days-header.js +3 -6
- package/dist/collection/components/date-picker/date-picker-days.js +20 -44
- package/dist/collection/components/date-picker/date-picker-header.e2e.js +38 -0
- package/dist/collection/components/date-picker/date-picker-header.js +10 -15
- package/dist/collection/components/date-picker/date-picker-months.e2e.js +39 -0
- package/dist/collection/components/date-picker/date-picker-months.js +5 -9
- package/dist/collection/components/date-picker/date-picker-years.e2e.js +39 -0
- package/dist/collection/components/date-picker/date-picker-years.js +4 -5
- package/dist/collection/components/date-picker/date-picker.e2e.js +137 -0
- package/dist/collection/components/date-picker/date-picker.js +44 -76
- package/dist/collection/components/dropdown/dropdown.e2e.js +86 -0
- package/dist/collection/components/dropdown/dropdown.js +27 -46
- package/dist/collection/components/dropdown/dropdown.spec.js +52 -0
- package/dist/collection/components/flyout-menu/flyout-menu-option.js +7 -14
- package/dist/collection/components/flyout-menu/flyout-menu.e2e.js +97 -0
- package/dist/collection/components/flyout-menu/flyout-menu.js +5 -8
- package/dist/collection/components/grid/column.js +5 -9
- package/dist/collection/components/grid/grid.e2e.js +17 -0
- package/dist/collection/components/grid/grid.js +2 -5
- package/dist/collection/components/grid/row.js +6 -18
- package/dist/collection/components/headline/headline.e2e.js +13 -0
- package/dist/collection/components/headline/headline.js +3 -12
- package/dist/collection/components/headline/headline.spec.js +67 -0
- package/dist/collection/components/icon/icon.js +11 -24
- package/dist/collection/components/icon/icon.spec.js +21 -0
- package/dist/collection/components/icon-100/icon-100.e2e.js +40 -0
- package/dist/collection/components/icon-100/icon-100.js +11 -24
- package/dist/collection/components/icon-50/icon-50.e2e.js +32 -0
- package/dist/collection/components/icon-50/icon-50.js +8 -18
- package/dist/collection/components/input/input.e2e.js +81 -0
- package/dist/collection/components/input/input.js +33 -64
- package/dist/collection/components/input/input.spec.js +45 -0
- package/dist/collection/components/input-group/input-group.e2e.js +76 -0
- package/dist/collection/components/input-group/input-group.js +9 -17
- package/dist/collection/components/input-group/input-group.spec.js +56 -0
- package/dist/collection/components/input-label/input-label.e2e.js +10 -0
- package/dist/collection/components/input-label/input-label.js +4 -10
- package/dist/collection/components/input-list/input-list-option.js +3 -4
- package/dist/collection/components/input-list/input-list.e2e.js +241 -0
- package/dist/collection/components/input-list/input-list.js +17 -36
- package/dist/collection/components/label/label.e2e.js +17 -0
- package/dist/collection/components/label/label.js +3 -6
- package/dist/collection/components/label/label.spec.js +58 -0
- package/dist/collection/components/modal/modal.e2e.js +115 -0
- package/dist/collection/components/modal/modal.js +14 -29
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.e2e.js +74 -0
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +33 -57
- package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +8 -15
- package/dist/collection/components/pagination/pagination.e2e.js +255 -0
- package/dist/collection/components/pagination/pagination.js +10 -22
- package/dist/collection/components/pagination/pagination.spec.js +103 -0
- package/dist/collection/components/paragraph/paragraph.e2e.js +13 -0
- package/dist/collection/components/paragraph/paragraph.js +8 -26
- package/dist/collection/components/progress-bar/progress-bar.e2e.js +43 -0
- package/dist/collection/components/progress-bar/progress-bar.js +11 -19
- package/dist/collection/components/radio/radio.e2e.js +45 -0
- package/dist/collection/components/radio/radio.js +20 -37
- package/dist/collection/components/radio/radio.spec.js +38 -0
- package/dist/collection/components/radio-group/radio-group.e2e.js +83 -0
- package/dist/collection/components/radio-group/radio-group.js +19 -34
- package/dist/collection/components/radio-group/radio-group.spec.js +31 -0
- package/dist/collection/components/required-separator/required-separator.e2e.js +17 -0
- package/dist/collection/components/required-separator/required-separator.js +2 -5
- package/dist/collection/components/rounded-icon/rounded-icon.js +8 -19
- package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
- package/dist/collection/components/search/search.e2e.js +97 -0
- package/dist/collection/components/search/search.js +9 -19
- package/dist/collection/components/separator/separator.e2e.js +22 -0
- package/dist/collection/components/separator/separator.js +2 -5
- package/dist/collection/components/shimmer/shimmer.e2e.js +18 -0
- package/dist/collection/components/shimmer/shimmer.js +9 -10
- package/dist/collection/components/shimmer/shimmer.spec.js +35 -0
- package/dist/collection/components/snackbar/snackbar.e2e.js +61 -0
- package/dist/collection/components/snackbar/snackbar.js +20 -38
- package/dist/collection/components/spinner/spinner.e2e.js +12 -0
- package/dist/collection/components/spinner/spinner.js +3 -9
- package/dist/collection/components/spinner/spinner.spec.js +41 -0
- package/dist/collection/components/tab/tab.e2e.js +35 -0
- package/dist/collection/components/tab/tab.js +5 -14
- package/dist/collection/components/tab/tab.spec.js +31 -0
- package/dist/collection/components/tab-group/tab-group.e2e.js +99 -0
- package/dist/collection/components/tab-group/tab-group.js +3 -7
- package/dist/collection/components/tab-panel/tab-panel.e2e.js +12 -0
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tab-panel/tab-panel.spec.js +10 -0
- package/dist/collection/components/table/table-cell/table-cell.js +17 -40
- package/dist/collection/components/table/table-header/table-header.js +19 -37
- package/dist/collection/components/table/table-row/table-row.js +18 -33
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +15 -37
- package/dist/collection/components/table/table.e2e.js +401 -0
- package/dist/collection/components/table/table.js +4 -12
- package/dist/collection/components/textarea/textarea.e2e.js +91 -0
- package/dist/collection/components/textarea/textarea.js +28 -51
- package/dist/collection/components/toggle-button/toggle-button.e2e.js +44 -0
- package/dist/collection/components/toggle-button/toggle-button.js +13 -22
- package/dist/collection/components/toggle-chip/toggle-chip.e2e.js +47 -0
- package/dist/collection/components/toggle-chip/toggle-chip.js +13 -22
- package/dist/collection/components/toggle-group/toggle-group.e2e.js +65 -0
- package/dist/collection/components/toggle-group/toggle-group.js +7 -10
- package/dist/collection/components/toggle-switch/toggle-switch.e2e.js +50 -0
- package/dist/collection/components/toggle-switch/toggle-switch.js +14 -25
- package/dist/collection/components/tooltip/tooltip.e2e.js +64 -0
- package/dist/collection/components/tooltip/tooltip.js +11 -21
- package/dist/collection/components/wizard/wizard-step.js +5 -15
- package/dist/collection/components/wizard/wizard.e2e.js +149 -0
- package/dist/collection/components/wizard/wizard.js +7 -18
- package/dist/collection/components/wizard-icon/wizard-icon.js +6 -14
- package/dist/collection/docs/config/replace-prop-controls.spec.js +32 -0
- package/dist/collection/utils/utils.spec.js +15 -0
- package/dist/components/b2b-alert.js +13 -17
- package/dist/components/b2b-anchor.js +7 -11
- package/dist/components/b2b-background-box.js +6 -11
- package/dist/components/b2b-breadcrumb-item.js +9 -9
- package/dist/components/b2b-breadcrumb.js +9 -10
- package/dist/components/b2b-button.js +1 -1
- package/dist/components/b2b-card.js +7 -9
- package/dist/components/b2b-checkbox-group.js +15 -15
- package/dist/components/b2b-checkbox.js +1 -1
- package/dist/components/b2b-chip-component.js +1 -1
- package/dist/components/b2b-date-picker-days-header.js +1 -1
- package/dist/components/b2b-date-picker-days.js +1 -1
- package/dist/components/b2b-date-picker-header.js +1 -1
- package/dist/components/b2b-date-picker-months.js +1 -1
- package/dist/components/b2b-date-picker-years.js +1 -1
- package/dist/components/b2b-date-picker.js +43 -44
- package/dist/components/b2b-dropdown.js +26 -26
- package/dist/components/b2b-flyout-menu-option.js +9 -9
- package/dist/components/b2b-flyout-menu.js +8 -8
- package/dist/components/b2b-grid-col.js +5 -5
- package/dist/components/b2b-grid-row.js +4 -8
- package/dist/components/b2b-grid.js +5 -5
- package/dist/components/b2b-headline.js +1 -1
- package/dist/components/b2b-icon-100.js +1 -1
- package/dist/components/b2b-icon-50.js +13 -11
- package/dist/components/b2b-icon.js +16 -15
- package/dist/components/b2b-input-group.js +1 -1
- package/dist/components/b2b-input-label.js +1 -1
- package/dist/components/b2b-input-list-option.js +1 -1
- package/dist/components/b2b-input-list.js +1 -1
- package/dist/components/b2b-input.js +1 -1
- package/dist/components/b2b-label.js +6 -6
- package/dist/components/b2b-modal.js +17 -21
- package/dist/components/b2b-multiselect-dropdown.js +31 -30
- package/dist/components/b2b-multiselect-option.js +1 -1
- package/dist/components/b2b-pagination.js +13 -16
- package/dist/components/b2b-paragraph.js +6 -11
- package/dist/components/b2b-progress-bar.js +11 -10
- package/dist/components/b2b-radio-button.js +19 -17
- package/dist/components/b2b-radio-group.js +17 -15
- package/dist/components/b2b-required-separator.js +6 -6
- package/dist/components/b2b-rounded-icon.js +1 -1
- package/dist/components/b2b-scrollable-container.js +5 -4
- package/dist/components/b2b-search.js +18 -19
- package/dist/components/b2b-separator.js +1 -1
- package/dist/components/b2b-shimmer.js +8 -4
- package/dist/components/b2b-snackbar.js +19 -20
- package/dist/components/b2b-spinner.js +1 -1
- package/dist/components/b2b-tab-group.js +6 -8
- package/dist/components/b2b-tab-panel.js +5 -4
- package/dist/components/b2b-tab.js +7 -9
- package/dist/components/b2b-table-cell.js +1 -1
- package/dist/components/b2b-table-header.js +1 -1
- package/dist/components/b2b-table-row.js +23 -23
- package/dist/components/b2b-table-rowgroup.js +15 -24
- package/dist/components/b2b-table.js +9 -14
- package/dist/components/b2b-textarea.js +23 -19
- package/dist/components/b2b-toggle-button.js +13 -11
- package/dist/components/b2b-toggle-chip.js +13 -11
- package/dist/components/b2b-toggle-group.js +10 -8
- package/dist/components/b2b-toggle-switch.js +14 -14
- package/dist/components/b2b-tooltip.js +11 -12
- package/dist/components/b2b-wizard-icon.js +1 -1
- package/dist/components/b2b-wizard-step.js +10 -13
- package/dist/components/b2b-wizard.js +9 -13
- package/dist/components/{p-CE7t2D9r.js → button.js} +17 -23
- package/dist/components/{p-CLYM9t6v.js → checkbox.js} +22 -21
- package/dist/components/{p-ClL49BcQ.js → chip.js} +15 -13
- package/dist/components/{p-FI-HbnMh.js → date-picker-days-header.js} +7 -7
- package/dist/components/{p-0Vy4494O.js → date-picker-days.js} +24 -21
- package/dist/components/{p-C_U38W4s.js → date-picker-header.js} +17 -15
- package/dist/components/{p-1ZoTG5p9.js → date-picker-months.js} +9 -8
- package/dist/components/{p-dMZsx2Fh.js → date-picker-years.js} +8 -6
- package/dist/components/{p-Bo-B8kdb.js → headline.js} +4 -6
- package/dist/components/{p-B9RvgUY3.js → icon-100.js} +15 -14
- package/dist/components/index.js +1 -1929
- package/dist/components/{p-TB2jJFV6.js → input-group.js} +9 -8
- package/dist/components/{p-Zg4AtKjq.js → input-label.js} +6 -7
- package/dist/components/{p-QTGqu3he.js → input-list-option.js} +7 -5
- package/dist/components/{p-BacBJzW_.js → input-list.js} +21 -24
- package/dist/components/{p-CuUquHzL.js → input.js} +28 -32
- package/dist/components/{p-B7bjXySI.js → multiselect-option.js} +12 -12
- package/dist/{esm/request-B8W50WyB.js → components/request.js} +5 -2
- package/dist/components/{p-i758rnm2.js → rounded-icon.js} +9 -13
- package/dist/components/{p-DO7N8IC0.js → separator.js} +5 -5
- package/dist/components/{p-3cu_Madt.js → spinner.js} +5 -6
- package/dist/components/{p-9OQH2pET.js → table-cell.js} +15 -23
- package/dist/components/{p-BVLpVPNb.js → table-header.js} +17 -18
- package/dist/{esm/utils-BA6KE1BD.js → components/utils.js} +10 -3
- package/dist/components/{p-N6d2-6pL.js → wizard-icon.js} +10 -11
- package/dist/custom-elements.json +0 -24
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/b2b-alert.entry.js +11 -15
- package/dist/esm/b2b-anchor.entry.js +6 -10
- package/dist/esm/b2b-background-box.entry.js +5 -10
- package/dist/esm/b2b-breadcrumb-item.entry.js +8 -8
- package/dist/esm/b2b-breadcrumb.entry.js +8 -9
- package/dist/esm/b2b-button_2.entry.js +18 -25
- package/dist/esm/b2b-card.entry.js +6 -8
- package/dist/esm/b2b-checkbox-group.entry.js +13 -13
- package/dist/esm/b2b-checkbox.entry.js +20 -19
- package/dist/esm/b2b-chip-component_2.entry.js +22 -20
- package/dist/esm/b2b-core-components.js +12 -12
- package/dist/esm/b2b-date-picker-days_5.entry.js +48 -40
- package/dist/esm/b2b-date-picker.entry.js +35 -36
- package/dist/esm/b2b-dropdown.entry.js +24 -24
- package/dist/esm/b2b-flyout-menu-option.entry.js +8 -8
- package/dist/esm/b2b-flyout-menu.entry.js +7 -7
- package/dist/esm/b2b-grid-col.entry.js +4 -4
- package/dist/esm/b2b-grid-row.entry.js +3 -7
- package/dist/esm/b2b-grid.entry.js +4 -4
- package/dist/esm/b2b-headline.entry.js +3 -5
- package/dist/esm/b2b-icon-100.entry.js +10 -12
- package/dist/esm/b2b-icon-50.entry.js +8 -9
- package/dist/esm/b2b-icon.entry.js +10 -12
- package/dist/esm/b2b-input-group_2.entry.js +22 -24
- package/dist/esm/b2b-input-label.entry.js +5 -6
- package/dist/esm/b2b-input_2.entry.js +31 -33
- package/dist/esm/b2b-label.entry.js +5 -5
- package/dist/esm/b2b-modal.entry.js +14 -18
- package/dist/esm/b2b-multiselect-dropdown.entry.js +25 -24
- package/dist/esm/b2b-pagination.entry.js +10 -13
- package/dist/esm/b2b-paragraph.entry.js +5 -10
- package/dist/esm/b2b-progress-bar.entry.js +10 -9
- package/dist/esm/b2b-radio-button.entry.js +17 -15
- package/dist/esm/b2b-radio-group.entry.js +15 -13
- package/dist/esm/b2b-required-separator.entry.js +4 -4
- package/dist/esm/b2b-rounded-icon.entry.js +8 -12
- package/dist/esm/b2b-scrollable-container.entry.js +4 -3
- package/dist/esm/b2b-search.entry.js +8 -9
- package/dist/esm/b2b-separator.entry.js +4 -4
- package/dist/esm/b2b-shimmer.entry.js +7 -3
- package/dist/esm/b2b-snackbar.entry.js +17 -18
- package/dist/esm/b2b-tab-group.entry.js +4 -6
- package/dist/esm/b2b-tab-panel.entry.js +4 -3
- package/dist/esm/b2b-tab.entry.js +6 -8
- package/dist/esm/b2b-table-cell_2.entry.js +28 -37
- package/dist/esm/b2b-table-row.entry.js +17 -17
- package/dist/esm/b2b-table-rowgroup.entry.js +14 -23
- package/dist/esm/b2b-table.entry.js +8 -13
- package/dist/esm/b2b-textarea.entry.js +21 -17
- package/dist/esm/b2b-toggle-button.entry.js +12 -10
- package/dist/esm/b2b-toggle-chip.entry.js +12 -10
- package/dist/esm/b2b-toggle-group.entry.js +9 -7
- package/dist/esm/b2b-toggle-switch.entry.js +13 -13
- package/dist/esm/b2b-tooltip.entry.js +10 -11
- package/dist/esm/b2b-wizard-icon.entry.js +7 -8
- package/dist/esm/b2b-wizard-step.entry.js +6 -9
- package/dist/esm/b2b-wizard.entry.js +8 -12
- package/dist/esm/index-ab9eb36d.js +2487 -0
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/{components/p-CPfvpKl5.js → esm/request-1d048f8a.js} +0 -2
- package/dist/{components/p-BA6KE1BD.js → esm/utils-868299de.js} +10 -3
- package/dist/loader/cdn.js +3 -1
- package/dist/loader/index.cjs.js +3 -1
- package/dist/loader/index.d.ts +0 -3
- package/dist/loader/index.es2017.js +3 -1
- package/dist/loader/index.js +3 -1
- package/dist/loader/package.json +11 -0
- package/dist/types/components.d.ts +0 -413
- package/dist/types/stencil-public-runtime.d.ts +11 -32
- package/dist/web-types.json +7 -7
- package/package.json +8 -11
- package/dist/b2b-core-components/p-0002d8d5.entry.js +0 -1
- package/dist/b2b-core-components/p-0386f660.entry.js +0 -1
- package/dist/b2b-core-components/p-0a08e2c8.entry.js +0 -1
- package/dist/b2b-core-components/p-0d8cc4eb.entry.js +0 -1
- package/dist/b2b-core-components/p-197dc9c0.entry.js +0 -1
- package/dist/b2b-core-components/p-220b8c79.entry.js +0 -1
- package/dist/b2b-core-components/p-2933f053.entry.js +0 -1
- package/dist/b2b-core-components/p-3a9f7db8.entry.js +0 -1
- package/dist/b2b-core-components/p-3e0919b3.entry.js +0 -1
- package/dist/b2b-core-components/p-42d9f79d.entry.js +0 -1
- package/dist/b2b-core-components/p-4bb42493.entry.js +0 -1
- package/dist/b2b-core-components/p-4c550170.entry.js +0 -1
- package/dist/b2b-core-components/p-50559efd.entry.js +0 -1
- package/dist/b2b-core-components/p-55db3d57.entry.js +0 -1
- package/dist/b2b-core-components/p-6e7abebc.entry.js +0 -1
- package/dist/b2b-core-components/p-7b75a0a4.entry.js +0 -1
- package/dist/b2b-core-components/p-7cbe33ef.entry.js +0 -1
- package/dist/b2b-core-components/p-8544b7e1.entry.js +0 -1
- package/dist/b2b-core-components/p-88037ad2.entry.js +0 -1
- package/dist/b2b-core-components/p-930425a1.entry.js +0 -1
- package/dist/b2b-core-components/p-B9l4NfeG.js +0 -1
- package/dist/b2b-core-components/p-BA6KE1BD.js +0 -1
- package/dist/b2b-core-components/p-a1a4efd4.entry.js +0 -1
- package/dist/b2b-core-components/p-a61eecf7.entry.js +0 -1
- package/dist/b2b-core-components/p-ada918c2.entry.js +0 -1
- package/dist/b2b-core-components/p-bb020c1c.entry.js +0 -1
- package/dist/b2b-core-components/p-bbb4c6f3.entry.js +0 -1
- package/dist/b2b-core-components/p-c0af184a.entry.js +0 -1
- package/dist/b2b-core-components/p-c40f7176.entry.js +0 -1
- package/dist/b2b-core-components/p-c6043d6a.entry.js +0 -1
- package/dist/b2b-core-components/p-c649c112.entry.js +0 -1
- package/dist/b2b-core-components/p-c69e9220.entry.js +0 -1
- package/dist/b2b-core-components/p-d1b46208.entry.js +0 -1
- package/dist/b2b-core-components/p-d2d40ae5.entry.js +0 -1
- package/dist/b2b-core-components/p-e8e156a4.entry.js +0 -1
- package/dist/b2b-core-components/p-ebcc2cce.entry.js +0 -1
- package/dist/b2b-core-components/p-edea84cc.entry.js +0 -1
- package/dist/b2b-core-components/p-f831e483.entry.js +0 -1
- package/dist/b2b-core-components/p-fdfb094e.entry.js +0 -1
- package/dist/b2b-core-components/p-zl-jO_Vq.js +0 -2
- package/dist/cjs/index-CIrNIFXs.js +0 -2406
- package/dist/esm/index-zl-jO_Vq.js +0 -2378
- /package/dist/b2b-core-components/{p-B8geQC3V.js → p-48608c23.js} +0 -0
- /package/dist/b2b-core-components/{p-BgHEmQ44.js → p-c500d93c.js} +0 -0
- /package/dist/cjs/{date-picker-util-VbL9p5ie.js → date-picker-util-51276571.js} +0 -0
- /package/dist/cjs/{wizard.types-uAv3s7tK.js → wizard.types-40a1058c.js} +0 -0
- /package/dist/components/{p-BsfreBZY.js → date-picker.types.js} +0 -0
- /package/dist/components/{p-BgHEmQ44.js → wizard.types.js} +0 -0
- /package/dist/esm/{date-picker-util-B8geQC3V.js → date-picker-util-44201ca6.js} +0 -0
- /package/dist/esm/{wizard.types-BgHEmQ44.js → wizard.types-40ae9b73.js} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B Required Separator', () => {
|
|
3
|
+
let page;
|
|
4
|
+
it('should render', async () => {
|
|
5
|
+
page = await newE2EPage();
|
|
6
|
+
await page.setContent(`<b2b-required-separator></b2b-required-separator>`);
|
|
7
|
+
const element = await page.find('b2b-required-separator');
|
|
8
|
+
expect(element).not.toBeNull();
|
|
9
|
+
});
|
|
10
|
+
it('should change the label', async () => {
|
|
11
|
+
page = await newE2EPage();
|
|
12
|
+
await page.setContent(`<b2b-required-separator label="Required"></b2b-required-separator>`);
|
|
13
|
+
const element = await page.find({ text: 'Required' });
|
|
14
|
+
const label = element.textContent;
|
|
15
|
+
expect(label).toEqualText('Required');
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class B2BRequiredSeparator {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** The required label. Per default it is the german 'Pflichtfeld', but can be altered. */
|
|
5
4
|
this.label = 'Pflichtfeld';
|
|
6
5
|
}
|
|
7
6
|
render() {
|
|
8
|
-
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' })));
|
|
9
8
|
}
|
|
10
9
|
static get is() { return "b2b-required-separator"; }
|
|
11
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +22,6 @@ export class B2BRequiredSeparator {
|
|
|
23
22
|
return {
|
|
24
23
|
"label": {
|
|
25
24
|
"type": "string",
|
|
26
|
-
"attribute": "label",
|
|
27
25
|
"mutable": false,
|
|
28
26
|
"complexType": {
|
|
29
27
|
"original": "string",
|
|
@@ -36,8 +34,7 @@ export class B2BRequiredSeparator {
|
|
|
36
34
|
"tags": [],
|
|
37
35
|
"text": "The required label. Per default it is the german 'Pflichtfeld', but can be altered."
|
|
38
36
|
},
|
|
39
|
-
"
|
|
40
|
-
"setter": false,
|
|
37
|
+
"attribute": "label",
|
|
41
38
|
"reflect": false,
|
|
42
39
|
"defaultValue": "'Pflichtfeld'"
|
|
43
40
|
}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class RoundedIconComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** The color of the circle around the icon or text.
|
|
5
|
-
* Use any type including hex, rgb or css custom properties
|
|
6
|
-
* as long as you pass it as a string */
|
|
7
4
|
this.color = 'var(--b2b-color-info-50)';
|
|
8
|
-
|
|
9
|
-
* Use any type including hex, rgb or css custom properties
|
|
10
|
-
* as long as you pass it as a string */
|
|
5
|
+
this.borderColor = undefined;
|
|
11
6
|
this.contentColor = 'var(--b2b-color-copy-default)';
|
|
12
7
|
}
|
|
13
8
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'cd603c194ebc3a9d6aad8e16b126ac40e47e4715' }, h("div", { key: '102c49254d5e135173553379ce5ced7022dddaa7', style: {
|
|
15
10
|
['background-color']: this.color,
|
|
16
11
|
['border']: `1px solid ${this.borderColor || this.color}`,
|
|
17
12
|
}, class: {
|
|
18
13
|
'b2b-rounded-icon': true,
|
|
19
|
-
} }, h("div", { key: '
|
|
14
|
+
} }, h("div", { key: '447ece59e96780c6c6e0ddccc878354756e46ff7', style: {
|
|
20
15
|
['color']: this.contentColor,
|
|
21
|
-
} }, h("slot", { key: '
|
|
16
|
+
} }, h("slot", { key: 'a25891a5262400e671243fd8716f72d3b0035520', name: "icon" })), h("div", { key: 'b08770631a2ca349d90e0a9e7dd445aecf9135d9', style: {
|
|
22
17
|
['color']: this.contentColor,
|
|
23
|
-
} }, h("slot", { key: '
|
|
18
|
+
} }, h("slot", { key: '64619abcebfc3d8e80e9edc26c9808876860de8d', name: "text" })))));
|
|
24
19
|
}
|
|
25
20
|
static get is() { return "b2b-rounded-icon"; }
|
|
26
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +33,6 @@ export class RoundedIconComponent {
|
|
|
38
33
|
return {
|
|
39
34
|
"color": {
|
|
40
35
|
"type": "string",
|
|
41
|
-
"attribute": "color",
|
|
42
36
|
"mutable": false,
|
|
43
37
|
"complexType": {
|
|
44
38
|
"original": "string",
|
|
@@ -51,14 +45,12 @@ export class RoundedIconComponent {
|
|
|
51
45
|
"tags": [],
|
|
52
46
|
"text": "The color of the circle around the icon or text.\nUse any type including hex, rgb or css custom properties\nas long as you pass it as a string"
|
|
53
47
|
},
|
|
54
|
-
"
|
|
55
|
-
"setter": false,
|
|
48
|
+
"attribute": "color",
|
|
56
49
|
"reflect": false,
|
|
57
50
|
"defaultValue": "'var(--b2b-color-info-50)'"
|
|
58
51
|
},
|
|
59
52
|
"borderColor": {
|
|
60
53
|
"type": "string",
|
|
61
|
-
"attribute": "border-color",
|
|
62
54
|
"mutable": false,
|
|
63
55
|
"complexType": {
|
|
64
56
|
"original": "string",
|
|
@@ -71,13 +63,11 @@ export class RoundedIconComponent {
|
|
|
71
63
|
"tags": [],
|
|
72
64
|
"text": "The color of the border of the circle around the icon or text.\nUse any type including hex, rgb or css custom properties\nas long as you pass it as a string"
|
|
73
65
|
},
|
|
74
|
-
"
|
|
75
|
-
"setter": false,
|
|
66
|
+
"attribute": "border-color",
|
|
76
67
|
"reflect": false
|
|
77
68
|
},
|
|
78
69
|
"contentColor": {
|
|
79
70
|
"type": "string",
|
|
80
|
-
"attribute": "content-color",
|
|
81
71
|
"mutable": false,
|
|
82
72
|
"complexType": {
|
|
83
73
|
"original": "string",
|
|
@@ -90,8 +80,7 @@ export class RoundedIconComponent {
|
|
|
90
80
|
"tags": [],
|
|
91
81
|
"text": "The color of the text or icon within the circle.\nUse any type including hex, rgb or css custom properties\nas long as you pass it as a string"
|
|
92
82
|
},
|
|
93
|
-
"
|
|
94
|
-
"setter": false,
|
|
83
|
+
"attribute": "content-color",
|
|
95
84
|
"reflect": false,
|
|
96
85
|
"defaultValue": "'var(--b2b-color-copy-default)'"
|
|
97
86
|
}
|
|
@@ -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"; }
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B-Search', () => {
|
|
3
|
+
let page;
|
|
4
|
+
const optionsList = ['option1', 'option2', 'option3'];
|
|
5
|
+
const setOptionsList = async () => {
|
|
6
|
+
const search = await page.find('b2b-search');
|
|
7
|
+
search.setProperty('optionsList', optionsList);
|
|
8
|
+
await page.waitForChanges();
|
|
9
|
+
};
|
|
10
|
+
const typeInput = async (key = '8') => {
|
|
11
|
+
let input = await page.find('b2b-search >>> b2b-input-list');
|
|
12
|
+
// focus on input element, focus method did not work
|
|
13
|
+
await input.click();
|
|
14
|
+
await input.press(key);
|
|
15
|
+
await page.waitForChanges();
|
|
16
|
+
};
|
|
17
|
+
beforeEach(async () => {
|
|
18
|
+
page = await newE2EPage();
|
|
19
|
+
await page.setContent(`
|
|
20
|
+
<b2b-search placeholder='search here'></b2b-search>
|
|
21
|
+
`);
|
|
22
|
+
});
|
|
23
|
+
it('should register input text when enabled', async () => {
|
|
24
|
+
const search = await page.find('b2b-search');
|
|
25
|
+
await typeInput('8');
|
|
26
|
+
let inputValue = search.getAttribute('value');
|
|
27
|
+
expect(inputValue).toBe('8');
|
|
28
|
+
});
|
|
29
|
+
it('should not receive input text when disabled', async () => {
|
|
30
|
+
const search = await page.find('b2b-search');
|
|
31
|
+
search.setAttribute('disabled', true);
|
|
32
|
+
await page.waitForChanges();
|
|
33
|
+
await typeInput();
|
|
34
|
+
let inputValue = search.getAttribute('value');
|
|
35
|
+
expect(inputValue).toBe(null);
|
|
36
|
+
});
|
|
37
|
+
it('should emit search event when clicking search button', async () => {
|
|
38
|
+
const searchEventSpy = await page.spyOnEvent('b2b-search');
|
|
39
|
+
const button = await page.find('b2b-search >>> b2b-button');
|
|
40
|
+
await button.click();
|
|
41
|
+
expect(searchEventSpy).toHaveReceivedEvent();
|
|
42
|
+
});
|
|
43
|
+
it('should emit search event with search input data', async () => {
|
|
44
|
+
const searchString = 'some search value';
|
|
45
|
+
const searchEventSpy = await page.spyOnEvent('b2b-search');
|
|
46
|
+
const searchInputEventSpy = await page.spyOnEvent('b2b-input');
|
|
47
|
+
const input = await page.find('b2b-search >>> b2b-input-list');
|
|
48
|
+
await input.triggerEvent('b2b-input', { detail: { value: searchString } });
|
|
49
|
+
await page.waitForChanges();
|
|
50
|
+
const button = await page.find('b2b-search >>> b2b-button');
|
|
51
|
+
await button.click();
|
|
52
|
+
expect(searchInputEventSpy).toHaveReceivedEvent();
|
|
53
|
+
expect(searchEventSpy).toHaveReceivedEventDetail({
|
|
54
|
+
searchTerm: searchString,
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
it('should emit search event on enter press', async () => {
|
|
58
|
+
const searchString = 'some search value';
|
|
59
|
+
const searchEventSpy = await page.spyOnEvent('b2b-search');
|
|
60
|
+
const searchInputEventSpy = await page.spyOnEvent('b2b-input');
|
|
61
|
+
const input = await page.find('b2b-search >>> b2b-input-list');
|
|
62
|
+
await input.triggerEvent('b2b-input', { detail: { value: searchString } });
|
|
63
|
+
await page.waitForChanges();
|
|
64
|
+
await page.keyboard.press('Tab');
|
|
65
|
+
await page.keyboard.press('Enter');
|
|
66
|
+
expect(searchInputEventSpy).toHaveReceivedEvent();
|
|
67
|
+
expect(searchEventSpy).toHaveReceivedEventDetail({
|
|
68
|
+
searchTerm: searchString,
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
it('should emit input event when typing on input', async () => {
|
|
72
|
+
const searchString = 'some search value';
|
|
73
|
+
const inputEventSpy = await page.spyOnEvent('b2b-input');
|
|
74
|
+
const input = await page.find('b2b-search >>> b2b-input-list');
|
|
75
|
+
await input.triggerEvent('b2b-input', { detail: { value: searchString } });
|
|
76
|
+
await page.waitForChanges();
|
|
77
|
+
expect(inputEventSpy).toHaveReceivedEvent();
|
|
78
|
+
expect(inputEventSpy).toHaveReceivedEventDetail({ value: searchString });
|
|
79
|
+
});
|
|
80
|
+
it('should emit selected option when clicking search button', async () => {
|
|
81
|
+
await setOptionsList();
|
|
82
|
+
const searchEventSpy = await page.spyOnEvent('b2b-search');
|
|
83
|
+
const input = await page.find('b2b-search >>> b2b-input-list');
|
|
84
|
+
// focus on input element, focus method did not work
|
|
85
|
+
await input.click();
|
|
86
|
+
await input.press('8');
|
|
87
|
+
await page.waitForChanges();
|
|
88
|
+
// Click first option on the list
|
|
89
|
+
const option = await page.find({ text: optionsList[0] });
|
|
90
|
+
await option.click();
|
|
91
|
+
const button = await page.find('b2b-search >>> b2b-button');
|
|
92
|
+
await button.click();
|
|
93
|
+
expect(searchEventSpy).toHaveReceivedEventDetail({
|
|
94
|
+
searchTerm: optionsList[0],
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
});
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
export class SearchComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** 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. */
|
|
5
|
-
this.optionsList = [];
|
|
6
|
-
/** The default value of the search input field. If defined, it will prefill the input. */
|
|
7
|
-
this.value = null;
|
|
8
|
-
/** Whether or not the input is disabled. Default is false. */
|
|
9
|
-
this.disabled = false;
|
|
10
4
|
this.onSearchClicked = () => {
|
|
11
5
|
this.b2bSearch.emit({ searchTerm: this.value });
|
|
12
6
|
};
|
|
@@ -16,6 +10,11 @@ export class SearchComponent {
|
|
|
16
10
|
this.onOptionSelected = event => {
|
|
17
11
|
this.value = event.detail.selectedOption;
|
|
18
12
|
};
|
|
13
|
+
this.placeholder = undefined;
|
|
14
|
+
this.optionsList = [];
|
|
15
|
+
this.value = null;
|
|
16
|
+
this.disabled = false;
|
|
17
|
+
this.closed = undefined;
|
|
19
18
|
}
|
|
20
19
|
handleKeyDown(event) {
|
|
21
20
|
if (event.key === 'Enter') {
|
|
@@ -23,7 +22,7 @@ export class SearchComponent {
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
render() {
|
|
26
|
-
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 })))));
|
|
27
26
|
}
|
|
28
27
|
static get is() { return "b2b-search"; }
|
|
29
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +30,6 @@ export class SearchComponent {
|
|
|
31
30
|
return {
|
|
32
31
|
"placeholder": {
|
|
33
32
|
"type": "string",
|
|
34
|
-
"attribute": "placeholder",
|
|
35
33
|
"mutable": false,
|
|
36
34
|
"complexType": {
|
|
37
35
|
"original": "string",
|
|
@@ -44,13 +42,11 @@ export class SearchComponent {
|
|
|
44
42
|
"tags": [],
|
|
45
43
|
"text": "The placeholder shown in the input field."
|
|
46
44
|
},
|
|
47
|
-
"
|
|
48
|
-
"setter": false,
|
|
45
|
+
"attribute": "placeholder",
|
|
49
46
|
"reflect": false
|
|
50
47
|
},
|
|
51
48
|
"optionsList": {
|
|
52
49
|
"type": "unknown",
|
|
53
|
-
"attribute": "options-list",
|
|
54
50
|
"mutable": false,
|
|
55
51
|
"complexType": {
|
|
56
52
|
"original": "string[]",
|
|
@@ -63,13 +59,10 @@ export class SearchComponent {
|
|
|
63
59
|
"tags": [],
|
|
64
60
|
"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."
|
|
65
61
|
},
|
|
66
|
-
"getter": false,
|
|
67
|
-
"setter": false,
|
|
68
62
|
"defaultValue": "[]"
|
|
69
63
|
},
|
|
70
64
|
"value": {
|
|
71
65
|
"type": "string",
|
|
72
|
-
"attribute": "value",
|
|
73
66
|
"mutable": true,
|
|
74
67
|
"complexType": {
|
|
75
68
|
"original": "string",
|
|
@@ -82,14 +75,12 @@ export class SearchComponent {
|
|
|
82
75
|
"tags": [],
|
|
83
76
|
"text": "The default value of the search input field. If defined, it will prefill the input."
|
|
84
77
|
},
|
|
85
|
-
"
|
|
86
|
-
"setter": false,
|
|
78
|
+
"attribute": "value",
|
|
87
79
|
"reflect": true,
|
|
88
80
|
"defaultValue": "null"
|
|
89
81
|
},
|
|
90
82
|
"disabled": {
|
|
91
83
|
"type": "boolean",
|
|
92
|
-
"attribute": "disabled",
|
|
93
84
|
"mutable": false,
|
|
94
85
|
"complexType": {
|
|
95
86
|
"original": "boolean",
|
|
@@ -102,8 +93,7 @@ export class SearchComponent {
|
|
|
102
93
|
"tags": [],
|
|
103
94
|
"text": "Whether or not the input is disabled. Default is false."
|
|
104
95
|
},
|
|
105
|
-
"
|
|
106
|
-
"setter": false,
|
|
96
|
+
"attribute": "disabled",
|
|
107
97
|
"reflect": true,
|
|
108
98
|
"defaultValue": "false"
|
|
109
99
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B-Separator', () => {
|
|
3
|
+
let page;
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
page = await newE2EPage();
|
|
6
|
+
await page.setContent(`<b2b-separator></b2b-separator>`);
|
|
7
|
+
const element = await page.find('b2b-separator');
|
|
8
|
+
expect(element).not.toBeNull();
|
|
9
|
+
});
|
|
10
|
+
it('displays a vertical separator', async () => {
|
|
11
|
+
page = await newE2EPage();
|
|
12
|
+
await page.setContent(`<div style="height: 18px;"><b2b-separator alignment="vertical"></b2b-separator></div>`);
|
|
13
|
+
const element = await page.find('b2b-separator >>> div');
|
|
14
|
+
expect(element).toHaveClass('b2b-separator--vertical');
|
|
15
|
+
});
|
|
16
|
+
it('displays a horizontal separator', async () => {
|
|
17
|
+
page = await newE2EPage();
|
|
18
|
+
await page.setContent(`<div style="width: 18px;"><b2b-separator alignment="horizontal"></b2b-separator></div>`);
|
|
19
|
+
const element = await page.find('b2b-separator >>> div');
|
|
20
|
+
expect(element).toHaveClass('b2b-separator--horizontal');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class B2bSeparatorComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** The alignment of the separator. Per default it is horizontal. */
|
|
5
4
|
this.alignment = 'horizontal';
|
|
6
5
|
}
|
|
7
6
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '06f767c6c587079b6ed216081a4df3c9e599d28f' }, h("div", { key: 'c4439cc5b13f6b2932e982c03a3c2518341ef8f2', class: {
|
|
9
8
|
[`b2b-separator--${this.alignment}`]: true,
|
|
10
9
|
} })));
|
|
11
10
|
}
|
|
@@ -25,7 +24,6 @@ export class B2bSeparatorComponent {
|
|
|
25
24
|
return {
|
|
26
25
|
"alignment": {
|
|
27
26
|
"type": "string",
|
|
28
|
-
"attribute": "alignment",
|
|
29
27
|
"mutable": false,
|
|
30
28
|
"complexType": {
|
|
31
29
|
"original": "'vertical' | 'horizontal'",
|
|
@@ -38,8 +36,7 @@ export class B2bSeparatorComponent {
|
|
|
38
36
|
"tags": [],
|
|
39
37
|
"text": "The alignment of the separator. Per default it is horizontal."
|
|
40
38
|
},
|
|
41
|
-
"
|
|
42
|
-
"setter": false,
|
|
39
|
+
"attribute": "alignment",
|
|
43
40
|
"reflect": false,
|
|
44
41
|
"defaultValue": "'horizontal'"
|
|
45
42
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B-Shimmer', () => {
|
|
3
|
+
let page;
|
|
4
|
+
beforeEach(async () => {
|
|
5
|
+
page = await newE2EPage();
|
|
6
|
+
await page.setContent('<b2b-shimmer loading="true" width="100" height="100"></b2b-shimmer>');
|
|
7
|
+
});
|
|
8
|
+
it('should render shimmer component', async () => {
|
|
9
|
+
const element = await page.find('b2b-shimmer');
|
|
10
|
+
expect(element).toBeDefined();
|
|
11
|
+
});
|
|
12
|
+
it('should show slot content if loading is false', async () => {
|
|
13
|
+
const page = await newE2EPage();
|
|
14
|
+
await page.setContent('<b2b-shimmer><h1>dummy content</h1></b2b-shimmer>');
|
|
15
|
+
const element = await page.find('h1');
|
|
16
|
+
expect(element).toEqualText('dummy content');
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class ShimmerComponent {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.loading = undefined;
|
|
5
|
+
this.width = undefined;
|
|
6
|
+
this.height = undefined;
|
|
7
|
+
}
|
|
3
8
|
render() {
|
|
4
9
|
const shimmerStyle = {
|
|
5
10
|
width: `${this.width}px`,
|
|
6
11
|
height: `${this.height}px`,
|
|
7
12
|
};
|
|
8
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'd56356a77a4cc11ceee13d7e579a4df5aa9826f1' }, this.loading ? (h("div", { class: "b2b-shimmer", style: shimmerStyle })) : (h("slot", null))));
|
|
9
14
|
}
|
|
10
15
|
static get is() { return "b2b-shimmer"; }
|
|
11
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +28,6 @@ export class ShimmerComponent {
|
|
|
23
28
|
return {
|
|
24
29
|
"loading": {
|
|
25
30
|
"type": "boolean",
|
|
26
|
-
"attribute": "loading",
|
|
27
31
|
"mutable": false,
|
|
28
32
|
"complexType": {
|
|
29
33
|
"original": "boolean",
|
|
@@ -36,13 +40,11 @@ export class ShimmerComponent {
|
|
|
36
40
|
"tags": [],
|
|
37
41
|
"text": "Whether the shimmer effect is shown or not."
|
|
38
42
|
},
|
|
39
|
-
"
|
|
40
|
-
"setter": false,
|
|
43
|
+
"attribute": "loading",
|
|
41
44
|
"reflect": false
|
|
42
45
|
},
|
|
43
46
|
"width": {
|
|
44
47
|
"type": "number",
|
|
45
|
-
"attribute": "width",
|
|
46
48
|
"mutable": false,
|
|
47
49
|
"complexType": {
|
|
48
50
|
"original": "number",
|
|
@@ -55,13 +57,11 @@ export class ShimmerComponent {
|
|
|
55
57
|
"tags": [],
|
|
56
58
|
"text": "The width of the shimmer effect im px."
|
|
57
59
|
},
|
|
58
|
-
"
|
|
59
|
-
"setter": false,
|
|
60
|
+
"attribute": "width",
|
|
60
61
|
"reflect": false
|
|
61
62
|
},
|
|
62
63
|
"height": {
|
|
63
64
|
"type": "number",
|
|
64
|
-
"attribute": "height",
|
|
65
65
|
"mutable": false,
|
|
66
66
|
"complexType": {
|
|
67
67
|
"original": "number",
|
|
@@ -74,8 +74,7 @@ export class ShimmerComponent {
|
|
|
74
74
|
"tags": [],
|
|
75
75
|
"text": "The height of the shimmer effect in px."
|
|
76
76
|
},
|
|
77
|
-
"
|
|
78
|
-
"setter": false,
|
|
77
|
+
"attribute": "height",
|
|
79
78
|
"reflect": false
|
|
80
79
|
}
|
|
81
80
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { ShimmerComponent } from "./shimmer";
|
|
3
|
+
import { h } from "@stencil/core";
|
|
4
|
+
describe('B2B-Shimmer', () => {
|
|
5
|
+
async function renderPage(template) {
|
|
6
|
+
return newSpecPage({
|
|
7
|
+
components: [ShimmerComponent],
|
|
8
|
+
template: () => template,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
it('should render shimmer effect with width 100 and height 100 attributes', async () => {
|
|
12
|
+
const dummyContent = 'Dummy content';
|
|
13
|
+
const page = await renderPage(h("b2b-shimmer", { loading: true, width: 100, height: 100 }, dummyContent));
|
|
14
|
+
expect(page.root).toEqualHtml(`
|
|
15
|
+
<b2b-shimmer>
|
|
16
|
+
<mock:shadow-root>
|
|
17
|
+
<div class="b2b-shimmer" style="width: 100px; height: 100px;"></div>
|
|
18
|
+
</mock:shadow-root>
|
|
19
|
+
${dummyContent}
|
|
20
|
+
</b2b-shimmer>
|
|
21
|
+
`);
|
|
22
|
+
});
|
|
23
|
+
it('should show slot content and hide shimmer effect', async () => {
|
|
24
|
+
const dummyContent = 'Dummy content';
|
|
25
|
+
const page = await renderPage(h("b2b-shimmer", { loading: false, width: 100, height: 100 }, dummyContent));
|
|
26
|
+
expect(page.root).toEqualHtml(`
|
|
27
|
+
<b2b-shimmer>
|
|
28
|
+
<mock:shadow-root>
|
|
29
|
+
<slot></slot>
|
|
30
|
+
</mock:shadow-root>
|
|
31
|
+
${dummyContent}
|
|
32
|
+
</b2b-shimmer>
|
|
33
|
+
`);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B-Snackbar', () => {
|
|
3
|
+
it('should render the snackbar component', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent(`<b2b-snackbar description="test"></b2b-snackbar>`);
|
|
6
|
+
const element = await page.find('b2b-snackbar >>> .b2b-snackbar__content__description');
|
|
7
|
+
expect(element).not.toBeNull();
|
|
8
|
+
expect(element.textContent).toBe('test');
|
|
9
|
+
});
|
|
10
|
+
it('should not be opened by default', async () => {
|
|
11
|
+
const page = await newE2EPage();
|
|
12
|
+
await page.setContent(`<b2b-snackbar></b2b-snackbar>`);
|
|
13
|
+
const element = await page.find('b2b-snackbar >>> div.b2b-snackbar');
|
|
14
|
+
expect(element).not.toHaveClass('b2b-snackbar--opened');
|
|
15
|
+
const snackbar = await page.find('b2b-snackbar');
|
|
16
|
+
expect(await snackbar.getProperty('opened')).toBe(false);
|
|
17
|
+
});
|
|
18
|
+
it('should make the snackbar opened', async () => {
|
|
19
|
+
const page = await newE2EPage();
|
|
20
|
+
await page.setContent(`<b2b-snackbar opened></b2b-snackbar>`);
|
|
21
|
+
const element = await page.find('b2b-snackbar >>> div');
|
|
22
|
+
expect(await element.isVisible()).toBe(true);
|
|
23
|
+
});
|
|
24
|
+
it('should render snackbar with CTA and close button', async () => {
|
|
25
|
+
const page = await newE2EPage();
|
|
26
|
+
await page.setContent(`<b2b-snackbar opened has-action="true" action-label="Call to action"></b2b-snackbar>`);
|
|
27
|
+
await page.waitForChanges();
|
|
28
|
+
const b2bActionClick = await page.spyOnEvent('b2b-action-click');
|
|
29
|
+
const snackbar = await page.find('b2b-snackbar');
|
|
30
|
+
expect(await snackbar.isVisible()).toBe(true);
|
|
31
|
+
const cta = await page.find('b2b-snackbar >>> div.b2b-snackbar__action');
|
|
32
|
+
expect(cta).not.toBeNull();
|
|
33
|
+
await cta.click();
|
|
34
|
+
expect(b2bActionClick).toHaveReceivedEvent();
|
|
35
|
+
});
|
|
36
|
+
it('should render snackbar that disappears after certain amount of time', async () => {
|
|
37
|
+
const page = await newE2EPage();
|
|
38
|
+
await page.setContent(`<b2b-snackbar opened timed="true" duration="1000">test</b2b-snackbar>`);
|
|
39
|
+
const element = await page.find('b2b-snackbar >>> div');
|
|
40
|
+
expect(await element.isVisible()).toBe(true);
|
|
41
|
+
await new Promise(res => setTimeout(res, 2000));
|
|
42
|
+
await page.waitForChanges();
|
|
43
|
+
const snackbar = await page.find('b2b-snackbar');
|
|
44
|
+
const isOpened = await snackbar.getProperty('opened');
|
|
45
|
+
expect(isOpened).toBe(false);
|
|
46
|
+
});
|
|
47
|
+
it('if snackbar is of type error, cannot be timed', async () => {
|
|
48
|
+
const page = await newE2EPage();
|
|
49
|
+
await page.setContent(`<b2b-snackbar opened type="error" timed="true" duration="1000"></b2b-snackbar>`);
|
|
50
|
+
const element = await page.find('b2b-snackbar >>> div');
|
|
51
|
+
expect(await element.isVisible()).toBe(true);
|
|
52
|
+
const closeIcon = await page.find('b2b-snackbar >>> div.b2b-snackbar__close-icon');
|
|
53
|
+
expect(closeIcon).not.toBeNull();
|
|
54
|
+
expect(element).toHaveClass('b2b-snackbar--opened');
|
|
55
|
+
await element.hover();
|
|
56
|
+
await page.mouse.move(0, 0);
|
|
57
|
+
await new Promise(res => setTimeout(res, 3500));
|
|
58
|
+
await page.waitForChanges();
|
|
59
|
+
expect(element).toHaveClass('b2b-snackbar--opened');
|
|
60
|
+
});
|
|
61
|
+
});
|