@otto-de/b2b-core-components 1.30.0 → 1.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/p-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-4528e98c.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-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 +38 -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 +83 -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 +89 -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 +84 -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 +77 -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 +242 -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 +257 -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 +86 -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 +98 -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 +405 -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 +30 -52
- 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 +8 -7
- package/package.json +10 -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
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
export class B2BToggleGroup {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** Whether or not the toggle group is disabled as a whole. Per default it is false. */
|
|
5
|
-
this.disabled = false;
|
|
6
4
|
this.toggleAllDisabled = () => {
|
|
7
5
|
let nodes = this.getChildNodes();
|
|
8
6
|
if (this.disabled) {
|
|
@@ -23,6 +21,9 @@ export class B2BToggleGroup {
|
|
|
23
21
|
this.getChildNodes = () => {
|
|
24
22
|
return Array.from(this.host.querySelectorAll(`b2b-toggle-button`));
|
|
25
23
|
};
|
|
24
|
+
this.name = undefined;
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.currentValue = undefined;
|
|
26
27
|
}
|
|
27
28
|
handleToggleButtonChange(ev) {
|
|
28
29
|
this.currentValue = ev.detail.value;
|
|
@@ -44,10 +45,10 @@ export class B2BToggleGroup {
|
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'e81f98de29ab06594da8b9e19e68f4ec9f3c878f' }, h("div", { key: 'a590585c94ab40ea54abd08031ab9b1482bc4a78', class: {
|
|
48
49
|
'b2b-toggle-group': true,
|
|
49
50
|
'b2b-toggle-group--disabled': this.disabled,
|
|
50
|
-
} }, h("fieldset", { key: '
|
|
51
|
+
} }, h("fieldset", { key: 'f8a20fb30c7b5fd958171f91a2219a2efbd7a5ca' }, h("slot", { key: '3e0bc10d09053d008a9d771721c57463ce437e27' })))));
|
|
51
52
|
}
|
|
52
53
|
static get is() { return "b2b-toggle-group"; }
|
|
53
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,7 +66,6 @@ export class B2BToggleGroup {
|
|
|
65
66
|
return {
|
|
66
67
|
"name": {
|
|
67
68
|
"type": "string",
|
|
68
|
-
"attribute": "name",
|
|
69
69
|
"mutable": false,
|
|
70
70
|
"complexType": {
|
|
71
71
|
"original": "string",
|
|
@@ -78,13 +78,11 @@ export class B2BToggleGroup {
|
|
|
78
78
|
"tags": [],
|
|
79
79
|
"text": "The toggle group name used to group them together programmatically. This is required."
|
|
80
80
|
},
|
|
81
|
-
"
|
|
82
|
-
"setter": false,
|
|
81
|
+
"attribute": "name",
|
|
83
82
|
"reflect": false
|
|
84
83
|
},
|
|
85
84
|
"disabled": {
|
|
86
85
|
"type": "boolean",
|
|
87
|
-
"attribute": "disabled",
|
|
88
86
|
"mutable": false,
|
|
89
87
|
"complexType": {
|
|
90
88
|
"original": "boolean",
|
|
@@ -97,8 +95,7 @@ export class B2BToggleGroup {
|
|
|
97
95
|
"tags": [],
|
|
98
96
|
"text": "Whether or not the toggle group is disabled as a whole. Per default it is false."
|
|
99
97
|
},
|
|
100
|
-
"
|
|
101
|
-
"setter": false,
|
|
98
|
+
"attribute": "disabled",
|
|
102
99
|
"reflect": true,
|
|
103
100
|
"defaultValue": "false"
|
|
104
101
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B-InputList', () => {
|
|
3
|
+
it('should render toggle-switch', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent(`
|
|
6
|
+
<b2b-toggle-switch
|
|
7
|
+
label="label"
|
|
8
|
+
disabled="false"
|
|
9
|
+
state="true"></b2b-toggle-switch>
|
|
10
|
+
`);
|
|
11
|
+
const toggleSwitch = await page.find('b2b-toggle-switch');
|
|
12
|
+
expect(toggleSwitch).not.toBeNull();
|
|
13
|
+
});
|
|
14
|
+
it('should render toggle-switch with given label on left by default', async () => {
|
|
15
|
+
const page = await newE2EPage();
|
|
16
|
+
await page.setContent(`
|
|
17
|
+
<b2b-toggle-switch
|
|
18
|
+
label="IT-test-label"
|
|
19
|
+
disabled="false"
|
|
20
|
+
state="true"></b2b-toggle-switch>
|
|
21
|
+
`);
|
|
22
|
+
const label = await page.find('b2b-toggle-switch >>> .b2b-toggle__text');
|
|
23
|
+
expect(label.textContent).toBe('IT-test-label');
|
|
24
|
+
});
|
|
25
|
+
it('should render toggle-switch with label on right', async () => {
|
|
26
|
+
const page = await newE2EPage();
|
|
27
|
+
await page.setContent(`
|
|
28
|
+
<b2b-toggle-switch
|
|
29
|
+
label="IT-test-label-right"
|
|
30
|
+
label-position="right"
|
|
31
|
+
disabled="false"
|
|
32
|
+
state="true"></b2b-toggle-switch>
|
|
33
|
+
`);
|
|
34
|
+
const label = await page.find('b2b-toggle-switch >>> .b2b-toggle__text');
|
|
35
|
+
expect(label.textContent).toBe('IT-test-label-right');
|
|
36
|
+
});
|
|
37
|
+
it('should render disabled toggle-switch', async () => {
|
|
38
|
+
const page = await newE2EPage();
|
|
39
|
+
await page.setContent(`
|
|
40
|
+
<b2b-toggle-switch
|
|
41
|
+
label="IT-test-label-right"
|
|
42
|
+
label-position="right"
|
|
43
|
+
disabled="true"
|
|
44
|
+
state="true"></b2b-toggle-switch>
|
|
45
|
+
`);
|
|
46
|
+
const toggleSwitch = await page.find('b2b-toggle-switch');
|
|
47
|
+
let disabledAttribute = toggleSwitch.getAttribute('disabled');
|
|
48
|
+
expect(disabledAttribute).not.toBeNull();
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
2
|
export class B2bToggleSwitchComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** The alignment of the toggle switch label. */
|
|
5
|
-
this.labelPosition = 'left';
|
|
6
|
-
/** Whether or not the toggle button is currently disabled. Per default it is false. */
|
|
7
|
-
this.disabled = false;
|
|
8
|
-
/** Whether or not the toggle button is currently on or off. Per default it is off. */
|
|
9
|
-
this.state = false;
|
|
10
4
|
this.emitDetail = () => {
|
|
11
5
|
this.b2bChange.emit({
|
|
12
6
|
value: this.state,
|
|
@@ -35,21 +29,26 @@ export class B2bToggleSwitchComponent {
|
|
|
35
29
|
}
|
|
36
30
|
this.emitDetail();
|
|
37
31
|
};
|
|
32
|
+
this.label = undefined;
|
|
33
|
+
this.name = undefined;
|
|
34
|
+
this.labelPosition = 'left';
|
|
35
|
+
this.disabled = false;
|
|
36
|
+
this.state = false;
|
|
38
37
|
}
|
|
39
38
|
render() {
|
|
40
39
|
// workaround for purgecss as safelist doesn't work
|
|
41
40
|
const isLeft = this.labelPosition === 'left';
|
|
42
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: 'ead51ac66423aad33f3714724dd943f76c9a5a2d' }, h("div", { key: 'bd253f3dac1128d188d1fcee84fd35c1dcb07a2d', class: {
|
|
43
42
|
'b2b-toggle': true,
|
|
44
43
|
'b2b-toggle--disabled': this.disabled,
|
|
45
44
|
'b2b-toggle--checked': this.state,
|
|
46
|
-
} }, h("div", { key: '
|
|
45
|
+
} }, h("div", { key: '69f605ce7363e4aa7aa89b0783721ae30c8897ca', class: {
|
|
47
46
|
'b2b-toggle__label': true,
|
|
48
47
|
'b2b-toggle__label--left': isLeft,
|
|
49
|
-
} }, h("span", { key: '
|
|
48
|
+
} }, h("span", { key: 'b52b3852d95df99a32aa095532d7fe6897e7b638', class: "b2b-toggle__switch", role: "switch", tabIndex: 0, onKeyDown: this.onKeyDown, onClick: this.onClick }, h("svg", { key: 'c8752f6668e05da681f6682e604441fdac6b1365', class: {
|
|
50
49
|
'b2b-toggle__icon': true,
|
|
51
50
|
'b2b-toggle__icon--show': this.state,
|
|
52
|
-
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '
|
|
51
|
+
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '09d63539b5f10f54089658ea44fa081bbd3fceb7', d: "M11.798 25.082c-.341 0-.681-.13-.942-.389l-7.132-7.115a1.334 1.334 0 0 1 1.884-1.888l6.19 6.175L26.391 7.307a1.334 1.334 0 0 1 1.884 1.888L12.74 24.693c-.26.259-.601.389-.942.389z" }))), this.label && (h("span", { class: {
|
|
53
52
|
'b2b-toggle__text': true,
|
|
54
53
|
'b2b-toggle__text--left': isLeft,
|
|
55
54
|
} }, this.label))))));
|
|
@@ -70,7 +69,6 @@ export class B2bToggleSwitchComponent {
|
|
|
70
69
|
return {
|
|
71
70
|
"label": {
|
|
72
71
|
"type": "string",
|
|
73
|
-
"attribute": "label",
|
|
74
72
|
"mutable": false,
|
|
75
73
|
"complexType": {
|
|
76
74
|
"original": "string",
|
|
@@ -83,13 +81,11 @@ export class B2bToggleSwitchComponent {
|
|
|
83
81
|
"tags": [],
|
|
84
82
|
"text": "An optional label for the toggle switch."
|
|
85
83
|
},
|
|
86
|
-
"
|
|
87
|
-
"setter": false,
|
|
84
|
+
"attribute": "label",
|
|
88
85
|
"reflect": false
|
|
89
86
|
},
|
|
90
87
|
"name": {
|
|
91
88
|
"type": "string",
|
|
92
|
-
"attribute": "name",
|
|
93
89
|
"mutable": false,
|
|
94
90
|
"complexType": {
|
|
95
91
|
"original": "string",
|
|
@@ -102,13 +98,11 @@ export class B2bToggleSwitchComponent {
|
|
|
102
98
|
"tags": [],
|
|
103
99
|
"text": "The toggle name. Use this if the toggle switch is used in a form group."
|
|
104
100
|
},
|
|
105
|
-
"
|
|
106
|
-
"setter": false,
|
|
101
|
+
"attribute": "name",
|
|
107
102
|
"reflect": false
|
|
108
103
|
},
|
|
109
104
|
"labelPosition": {
|
|
110
105
|
"type": "string",
|
|
111
|
-
"attribute": "label-position",
|
|
112
106
|
"mutable": false,
|
|
113
107
|
"complexType": {
|
|
114
108
|
"original": "'left' | 'right'",
|
|
@@ -121,14 +115,12 @@ export class B2bToggleSwitchComponent {
|
|
|
121
115
|
"tags": [],
|
|
122
116
|
"text": "The alignment of the toggle switch label."
|
|
123
117
|
},
|
|
124
|
-
"
|
|
125
|
-
"setter": false,
|
|
118
|
+
"attribute": "label-position",
|
|
126
119
|
"reflect": false,
|
|
127
120
|
"defaultValue": "'left'"
|
|
128
121
|
},
|
|
129
122
|
"disabled": {
|
|
130
123
|
"type": "boolean",
|
|
131
|
-
"attribute": "disabled",
|
|
132
124
|
"mutable": false,
|
|
133
125
|
"complexType": {
|
|
134
126
|
"original": "boolean",
|
|
@@ -141,14 +133,12 @@ export class B2bToggleSwitchComponent {
|
|
|
141
133
|
"tags": [],
|
|
142
134
|
"text": "Whether or not the toggle button is currently disabled. Per default it is false."
|
|
143
135
|
},
|
|
144
|
-
"
|
|
145
|
-
"setter": false,
|
|
136
|
+
"attribute": "disabled",
|
|
146
137
|
"reflect": false,
|
|
147
138
|
"defaultValue": "false"
|
|
148
139
|
},
|
|
149
140
|
"state": {
|
|
150
141
|
"type": "boolean",
|
|
151
|
-
"attribute": "state",
|
|
152
142
|
"mutable": true,
|
|
153
143
|
"complexType": {
|
|
154
144
|
"original": "boolean",
|
|
@@ -161,8 +151,7 @@ export class B2bToggleSwitchComponent {
|
|
|
161
151
|
"tags": [],
|
|
162
152
|
"text": "Whether or not the toggle button is currently on or off. Per default it is off."
|
|
163
153
|
},
|
|
164
|
-
"
|
|
165
|
-
"setter": false,
|
|
154
|
+
"attribute": "state",
|
|
166
155
|
"reflect": false,
|
|
167
156
|
"defaultValue": "false"
|
|
168
157
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B Tooltip', () => {
|
|
3
|
+
const expectToBeVisibleAfterTransition = async (page, tooltipDiv) => {
|
|
4
|
+
await page.$eval('b2b-tooltip', el => {
|
|
5
|
+
const tooltipElm = el.shadowRoot.querySelector('div');
|
|
6
|
+
tooltipElm.addEventListener('transitioned', () => {
|
|
7
|
+
expect(tooltipDiv.isVisible()).toBe(true);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
it('renders', async () => {
|
|
12
|
+
const page = await newE2EPage();
|
|
13
|
+
await page.setContent('<b2b-tooltip content="I am a tooltip">trigger</b2b-tooltip>');
|
|
14
|
+
const element = await page.find('b2b-tooltip');
|
|
15
|
+
expect(element).toHaveClass('hydrated');
|
|
16
|
+
const tooltipDiv = await page.find('b2b-tooltip >>> div');
|
|
17
|
+
expect(await tooltipDiv.isVisible()).toBe(false);
|
|
18
|
+
});
|
|
19
|
+
it('appears on hover when no trigger is specified', async () => {
|
|
20
|
+
const page = await newE2EPage();
|
|
21
|
+
await page.setContent('<b2b-tooltip content="I am a tooltip">trigger</b2b-tooltip>');
|
|
22
|
+
const trigger = await page.find('b2b-tooltip >>> span');
|
|
23
|
+
await trigger.hover();
|
|
24
|
+
await page.waitForChanges();
|
|
25
|
+
const tooltipDiv = await page.find('b2b-tooltip >>> div');
|
|
26
|
+
expect(tooltipDiv.className).toContain('b2b-tooltip--visible');
|
|
27
|
+
});
|
|
28
|
+
it('appears on focus when a focusable element is slotted and the trigger is set to focus', async () => {
|
|
29
|
+
const page = await newE2EPage();
|
|
30
|
+
await page.setContent('<b2b-tooltip content="I am a tooltip" trigger="focus"><button>Focus me</button></b2b-tooltip>');
|
|
31
|
+
const tooltipDiv = await page.find('b2b-tooltip >>> div');
|
|
32
|
+
expect(await tooltipDiv.isVisible()).toBe(false);
|
|
33
|
+
await page.keyboard.press('Tab');
|
|
34
|
+
await page.waitForChanges();
|
|
35
|
+
await expectToBeVisibleAfterTransition(page, tooltipDiv);
|
|
36
|
+
});
|
|
37
|
+
it('does not appear on hover when the trigger is set to focus', async () => {
|
|
38
|
+
const page = await newE2EPage();
|
|
39
|
+
await page.setContent('<b2b-tooltip content="I am a tooltip" trigger="focus"><button>Focus me</button></b2b-tooltip>');
|
|
40
|
+
const tooltipDiv = await page.find('b2b-tooltip >>> div');
|
|
41
|
+
const trigger = await page.find('b2b-tooltip >>> span');
|
|
42
|
+
await trigger.hover();
|
|
43
|
+
await page.waitForChanges();
|
|
44
|
+
expect(await tooltipDiv.isVisible()).toBe(false);
|
|
45
|
+
});
|
|
46
|
+
it('does not appear on hover when the trigger is set to custom', async () => {
|
|
47
|
+
const page = await newE2EPage();
|
|
48
|
+
await page.setContent('<b2b-tooltip content="I am a tooltip" trigger="custom"><button>Focus me</button></b2b-tooltip>');
|
|
49
|
+
const tooltipDiv = await page.find('b2b-tooltip >>> div');
|
|
50
|
+
const trigger = await page.find('b2b-tooltip >>> span');
|
|
51
|
+
await trigger.hover();
|
|
52
|
+
await page.waitForChanges();
|
|
53
|
+
expect(await tooltipDiv.isVisible()).toBe(false);
|
|
54
|
+
});
|
|
55
|
+
it('appears when the trigger is set to custom and the opened property changes', async () => {
|
|
56
|
+
const page = await newE2EPage();
|
|
57
|
+
await page.setContent('<b2b-tooltip content="I am a tooltip" trigger="custom" opened="false"><button>Focus me</button></b2b-tooltip>');
|
|
58
|
+
const element = await page.find('b2b-tooltip');
|
|
59
|
+
const tooltipDiv = await page.find('b2b-tooltip >>> div');
|
|
60
|
+
element.setAttribute('opened', true);
|
|
61
|
+
await page.waitForChanges();
|
|
62
|
+
await expectToBeVisibleAfterTransition(page, tooltipDiv);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -7,12 +7,6 @@ import { h, Host } from "@stencil/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export class B2BTooltipComponent {
|
|
9
9
|
constructor() {
|
|
10
|
-
/** Position of the tooltip. */
|
|
11
|
-
this.position = 'right';
|
|
12
|
-
/** The trigger for the tooltip. Can be on hover, on focus or custom, i.e. for an onboarding sequence. Per default it is hover. */
|
|
13
|
-
this.trigger = 'hover';
|
|
14
|
-
/** Whether the tooltip is currently opened or not. When the trigger is set to custom, changing this prop will change the tooltip's visibility. */
|
|
15
|
-
this.opened = false;
|
|
16
10
|
this.triggerEl = undefined;
|
|
17
11
|
this.onFocus = () => {
|
|
18
12
|
if (this.getTrigger('focus')) {
|
|
@@ -38,6 +32,10 @@ export class B2BTooltipComponent {
|
|
|
38
32
|
const triggers = this.trigger.split(' ');
|
|
39
33
|
return triggers.includes(trigger);
|
|
40
34
|
};
|
|
35
|
+
this.position = 'right';
|
|
36
|
+
this.content = undefined;
|
|
37
|
+
this.trigger = 'hover';
|
|
38
|
+
this.opened = false;
|
|
41
39
|
}
|
|
42
40
|
handleOpenedChange(newValue) {
|
|
43
41
|
this.opened = newValue;
|
|
@@ -61,13 +59,13 @@ export class B2BTooltipComponent {
|
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '85d4ea6d00cc0a1cb3f411e2ea2d57f064ba114d', onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave }, h("span", { key: '8503ac0f0638dd3501a62741a9cb668bd08a4c55', class: {
|
|
65
63
|
[`b2b-tooltip--${this.position}`]: true,
|
|
66
64
|
'b2b-tooltip__trigger': true,
|
|
67
|
-
} }, h("slot", { key: '
|
|
65
|
+
} }, h("slot", { key: '009c743af15c9ebc54bdf6dee620f15e43e306ee' }), h("div", { key: '7b655965e432651456d26f147fef251bdd505cce', class: {
|
|
68
66
|
'b2b-tooltip__content': true,
|
|
69
67
|
'b2b-tooltip--visible': this.opened,
|
|
70
|
-
} }, h("slot", { key: '
|
|
68
|
+
} }, h("slot", { key: 'f653061d233472af5731448814e16872c189c4c9', name: "content" }, this.content)))));
|
|
71
69
|
}
|
|
72
70
|
static get is() { return "b2b-tooltip"; }
|
|
73
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -85,7 +83,6 @@ export class B2BTooltipComponent {
|
|
|
85
83
|
return {
|
|
86
84
|
"position": {
|
|
87
85
|
"type": "string",
|
|
88
|
-
"attribute": "position",
|
|
89
86
|
"mutable": false,
|
|
90
87
|
"complexType": {
|
|
91
88
|
"original": "'left' | 'right' | 'top' | 'bottom'",
|
|
@@ -98,14 +95,12 @@ export class B2BTooltipComponent {
|
|
|
98
95
|
"tags": [],
|
|
99
96
|
"text": "Position of the tooltip."
|
|
100
97
|
},
|
|
101
|
-
"
|
|
102
|
-
"setter": false,
|
|
98
|
+
"attribute": "position",
|
|
103
99
|
"reflect": false,
|
|
104
100
|
"defaultValue": "'right'"
|
|
105
101
|
},
|
|
106
102
|
"content": {
|
|
107
103
|
"type": "string",
|
|
108
|
-
"attribute": "content",
|
|
109
104
|
"mutable": false,
|
|
110
105
|
"complexType": {
|
|
111
106
|
"original": "string",
|
|
@@ -118,13 +113,11 @@ export class B2BTooltipComponent {
|
|
|
118
113
|
"tags": [],
|
|
119
114
|
"text": "The content of the tooltip. Should be a string. If you need custom content like a b2b-link, use the named slot content."
|
|
120
115
|
},
|
|
121
|
-
"
|
|
122
|
-
"setter": false,
|
|
116
|
+
"attribute": "content",
|
|
123
117
|
"reflect": false
|
|
124
118
|
},
|
|
125
119
|
"trigger": {
|
|
126
120
|
"type": "string",
|
|
127
|
-
"attribute": "trigger",
|
|
128
121
|
"mutable": false,
|
|
129
122
|
"complexType": {
|
|
130
123
|
"original": "'hover' | 'focus' | 'custom'",
|
|
@@ -137,14 +130,12 @@ export class B2BTooltipComponent {
|
|
|
137
130
|
"tags": [],
|
|
138
131
|
"text": "The trigger for the tooltip. Can be on hover, on focus or custom, i.e. for an onboarding sequence. Per default it is hover."
|
|
139
132
|
},
|
|
140
|
-
"
|
|
141
|
-
"setter": false,
|
|
133
|
+
"attribute": "trigger",
|
|
142
134
|
"reflect": false,
|
|
143
135
|
"defaultValue": "'hover'"
|
|
144
136
|
},
|
|
145
137
|
"opened": {
|
|
146
138
|
"type": "boolean",
|
|
147
|
-
"attribute": "opened",
|
|
148
139
|
"mutable": true,
|
|
149
140
|
"complexType": {
|
|
150
141
|
"original": "boolean",
|
|
@@ -157,8 +148,7 @@ export class B2BTooltipComponent {
|
|
|
157
148
|
"tags": [],
|
|
158
149
|
"text": "Whether the tooltip is currently opened or not. When the trigger is set to custom, changing this prop will change the tooltip's visibility."
|
|
159
150
|
},
|
|
160
|
-
"
|
|
161
|
-
"setter": false,
|
|
151
|
+
"attribute": "opened",
|
|
162
152
|
"reflect": true,
|
|
163
153
|
"defaultValue": "false"
|
|
164
154
|
}
|
|
@@ -2,19 +2,15 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { WizardStatus } from "../../utils/types/wizard.types";
|
|
3
3
|
export class WizardStepComponent {
|
|
4
4
|
constructor() {
|
|
5
|
-
/** Use when wizard has property custom true. The state of the step */
|
|
6
5
|
this.state = 'pending';
|
|
7
|
-
/** Use when wizard has property custom true. The step number */
|
|
8
6
|
this.step = '1';
|
|
9
|
-
/** Defaults to true. It will show a checkmark icon when a step is completed.
|
|
10
|
-
* Set as false to show the step number */
|
|
11
7
|
this.checkIcon = true;
|
|
12
8
|
}
|
|
13
9
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '549e0e7ff5030f4a5fc472e046f65fbe964f89cf' }, h("div", { key: 'a2f9dd5665eb063c5c51df700765509dca2c1616', class: "b2b_wizard__step" }, h("b2b-wizard-icon", { key: 'cdd5ed4aa979be3b2f878c7f735afc11fa2936bd', step: this.step, state: this.state, checkIcon: this.checkIcon }), h("div", { key: '84c4d7608daf542354ca707881730de8a3c65783', class: {
|
|
15
11
|
'b2b_wizard__step__label': true,
|
|
16
12
|
'b2b_wizard__step__label--default': this.state === WizardStatus.DEFAULT,
|
|
17
|
-
} }, h("slot", { key: '
|
|
13
|
+
} }, h("slot", { key: '00837facfab31ae121002e62277c0bc907161bf6' })))));
|
|
18
14
|
}
|
|
19
15
|
static get is() { return "b2b-wizard-step"; }
|
|
20
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,7 +28,6 @@ export class WizardStepComponent {
|
|
|
32
28
|
return {
|
|
33
29
|
"state": {
|
|
34
30
|
"type": "string",
|
|
35
|
-
"attribute": "state",
|
|
36
31
|
"mutable": false,
|
|
37
32
|
"complexType": {
|
|
38
33
|
"original": "WizardStatus",
|
|
@@ -51,14 +46,12 @@ export class WizardStepComponent {
|
|
|
51
46
|
"tags": [],
|
|
52
47
|
"text": "Use when wizard has property custom true. The state of the step"
|
|
53
48
|
},
|
|
54
|
-
"
|
|
55
|
-
"setter": false,
|
|
49
|
+
"attribute": "state",
|
|
56
50
|
"reflect": false,
|
|
57
51
|
"defaultValue": "'pending'"
|
|
58
52
|
},
|
|
59
53
|
"step": {
|
|
60
54
|
"type": "string",
|
|
61
|
-
"attribute": "step",
|
|
62
55
|
"mutable": false,
|
|
63
56
|
"complexType": {
|
|
64
57
|
"original": "WizardSteps",
|
|
@@ -77,14 +70,12 @@ export class WizardStepComponent {
|
|
|
77
70
|
"tags": [],
|
|
78
71
|
"text": "Use when wizard has property custom true. The step number"
|
|
79
72
|
},
|
|
80
|
-
"
|
|
81
|
-
"setter": false,
|
|
73
|
+
"attribute": "step",
|
|
82
74
|
"reflect": false,
|
|
83
75
|
"defaultValue": "'1'"
|
|
84
76
|
},
|
|
85
77
|
"checkIcon": {
|
|
86
78
|
"type": "boolean",
|
|
87
|
-
"attribute": "check-icon",
|
|
88
79
|
"mutable": false,
|
|
89
80
|
"complexType": {
|
|
90
81
|
"original": "boolean",
|
|
@@ -97,8 +88,7 @@ export class WizardStepComponent {
|
|
|
97
88
|
"tags": [],
|
|
98
89
|
"text": "Defaults to true. It will show a checkmark icon when a step is completed.\nSet as false to show the step number"
|
|
99
90
|
},
|
|
100
|
-
"
|
|
101
|
-
"setter": false,
|
|
91
|
+
"attribute": "check-icon",
|
|
102
92
|
"reflect": false,
|
|
103
93
|
"defaultValue": "true"
|
|
104
94
|
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
import { WizardStatus } from "../../utils/types/wizard.types";
|
|
3
|
+
describe('B2B-Wizard', () => {
|
|
4
|
+
let page;
|
|
5
|
+
it('should render wizard component', async () => {
|
|
6
|
+
page = await newE2EPage();
|
|
7
|
+
await page.setContent(`<b2b-wizard active-step="3" check-icon>
|
|
8
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
9
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
10
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
11
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
12
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
13
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
14
|
+
</b2b-wizard>`);
|
|
15
|
+
const element = await page.find('b2b-wizard');
|
|
16
|
+
expect(element).not.toBeNull();
|
|
17
|
+
});
|
|
18
|
+
it('should render steps in order for default mode', async () => {
|
|
19
|
+
page = await newE2EPage();
|
|
20
|
+
await page.setContent(`<b2b-wizard active-step="3" check-icon>
|
|
21
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
22
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
23
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
24
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
25
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
26
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
27
|
+
</b2b-wizard>`);
|
|
28
|
+
const steps = await page.findAll('b2b-wizard b2b-wizard-step');
|
|
29
|
+
steps.map(async (step, index) => {
|
|
30
|
+
const stepNumber = await step.getProperty('step');
|
|
31
|
+
const expectedStep = (index + 1).toString();
|
|
32
|
+
expect(stepNumber).toBe(expectedStep);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
it('should render active step with pending state', async () => {
|
|
36
|
+
page = await newE2EPage();
|
|
37
|
+
await page.setContent(`<b2b-wizard active-step="3" check-icon>
|
|
38
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
39
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
40
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
41
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
42
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
43
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
44
|
+
</b2b-wizard>`);
|
|
45
|
+
const steps = await page.findAll('b2b-wizard b2b-wizard-step');
|
|
46
|
+
const activeStep = steps[2];
|
|
47
|
+
const stepState = await activeStep.getProperty('state');
|
|
48
|
+
expect(stepState).toBe(WizardStatus.PENDING);
|
|
49
|
+
});
|
|
50
|
+
it('should render incomplete steps with default state', async () => {
|
|
51
|
+
page = await newE2EPage();
|
|
52
|
+
await page.setContent(`<b2b-wizard active-step="3" check-icon>
|
|
53
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
54
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
55
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
56
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
57
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
58
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
59
|
+
</b2b-wizard>`);
|
|
60
|
+
const steps = await page.findAll('b2b-wizard b2b-wizard-step');
|
|
61
|
+
const incompleteSteps = [steps[3], steps[4], steps[5]];
|
|
62
|
+
incompleteSteps.map(async (step) => {
|
|
63
|
+
const stepState = await step.getProperty('state');
|
|
64
|
+
expect(stepState).toBe(WizardStatus.DEFAULT);
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
it('should render completed steps with completed state', async () => {
|
|
68
|
+
page = await newE2EPage();
|
|
69
|
+
await page.setContent(`<b2b-wizard active-step="3" check-icon>
|
|
70
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
71
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
72
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
73
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
74
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
75
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
76
|
+
</b2b-wizard>`);
|
|
77
|
+
const steps = await page.findAll('b2b-wizard b2b-wizard-step');
|
|
78
|
+
const incompleteSteps = [steps[0], steps[1]];
|
|
79
|
+
incompleteSteps.map(async (step) => {
|
|
80
|
+
const stepState = await step.getProperty('state');
|
|
81
|
+
expect(stepState).toBe(WizardStatus.COMPLETED);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
it('should not set steps state and order for custom mode', async () => {
|
|
85
|
+
page = await newE2EPage();
|
|
86
|
+
await page.setContent(`<b2b-wizard active-step="3" check-icon custom>
|
|
87
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
88
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
89
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
90
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
91
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
92
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
93
|
+
</b2b-wizard>`);
|
|
94
|
+
const steps = await page.findAll('b2b-wizard b2b-wizard-step');
|
|
95
|
+
steps.map(async (step) => {
|
|
96
|
+
// Expect default values
|
|
97
|
+
const stepNumber = await step.getProperty('step');
|
|
98
|
+
expect(stepNumber).toBe('1');
|
|
99
|
+
});
|
|
100
|
+
steps.map(async (step) => {
|
|
101
|
+
const stepState = await step.getProperty('state');
|
|
102
|
+
expect(stepState).toBe(WizardStatus.PENDING);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
it('should render all steps completed when active-step is zero', async () => {
|
|
106
|
+
page = await newE2EPage();
|
|
107
|
+
await page.setContent(`<b2b-wizard active-step="0" check-icon>
|
|
108
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
109
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
110
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
111
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
112
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
113
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
114
|
+
</b2b-wizard>`);
|
|
115
|
+
const steps = await page.findAll('b2b-wizard b2b-wizard-step');
|
|
116
|
+
steps.map(async (step) => {
|
|
117
|
+
const stepState = await step.getProperty('state');
|
|
118
|
+
expect(stepState).toBe(WizardStatus.COMPLETED);
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
it('should be emitting a warning if rendering more than 6 steps', async () => {
|
|
122
|
+
global.console.warn = jest.fn();
|
|
123
|
+
page = await newE2EPage();
|
|
124
|
+
await page.setContent(`<b2b-wizard>
|
|
125
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
126
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
127
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
128
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
129
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
130
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
131
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
132
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
133
|
+
</b2b-wizard>`);
|
|
134
|
+
expect(console.warn).toBeCalled();
|
|
135
|
+
});
|
|
136
|
+
it('should be emitting an error if active-step is higher than total steps', async () => {
|
|
137
|
+
global.console.error = jest.fn();
|
|
138
|
+
page = await newE2EPage();
|
|
139
|
+
await page.setContent(`<b2b-wizard active-step="7" check-icon>
|
|
140
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
141
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
142
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
143
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
144
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
145
|
+
<b2b-wizard-step>This is the text</b2b-wizard-step>
|
|
146
|
+
</b2b-wizard>`);
|
|
147
|
+
expect(console.error).toBeCalled();
|
|
148
|
+
});
|
|
149
|
+
});
|