@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,21 +1,15 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class BackgroundBoxComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** Sets max width to 1212px. Per default, it is false */
|
|
5
4
|
this.maxWidth = false;
|
|
6
|
-
/** Whether the box should have a padding. Per default, padding is enabled */
|
|
7
5
|
this.noPadding = false;
|
|
8
|
-
/** Whether the box should have a top border. Per default, the border is enabled */
|
|
9
6
|
this.borderTop = 'default';
|
|
10
|
-
/** Whether the box should have a right border. Per default, the border is enabled */
|
|
11
7
|
this.borderRight = 'default';
|
|
12
|
-
/** Whether the box should have a bottom border. Per default, the border is enabled */
|
|
13
8
|
this.borderBottom = 'default';
|
|
14
|
-
/** Whether the box should have a left border. Per default, the border is enabled */
|
|
15
9
|
this.borderLeft = 'default';
|
|
16
10
|
}
|
|
17
11
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '3f5519f808f26a88fde93a7f933b11c9b3f96992', class: {
|
|
19
13
|
'b2b-background-box': true,
|
|
20
14
|
'b2b-background-box--max-width': this.maxWidth,
|
|
21
15
|
'b2b-background-box--no-padding': this.noPadding,
|
|
@@ -23,7 +17,7 @@ export class BackgroundBoxComponent {
|
|
|
23
17
|
'b2b-background-box--hide-border-right': this.borderRight === 'none',
|
|
24
18
|
'b2b-background-box--hide-border-bottom': this.borderBottom === 'none',
|
|
25
19
|
'b2b-background-box--hide-border-left': this.borderLeft === 'none',
|
|
26
|
-
} }, h("slot", { key: '
|
|
20
|
+
} }, h("slot", { key: '35bd80fb92b66ab216db1cf86ce7817a9087fe19' })));
|
|
27
21
|
}
|
|
28
22
|
static get is() { return "b2b-background-box"; }
|
|
29
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,7 +35,6 @@ export class BackgroundBoxComponent {
|
|
|
41
35
|
return {
|
|
42
36
|
"maxWidth": {
|
|
43
37
|
"type": "boolean",
|
|
44
|
-
"attribute": "max-width",
|
|
45
38
|
"mutable": false,
|
|
46
39
|
"complexType": {
|
|
47
40
|
"original": "boolean",
|
|
@@ -54,14 +47,12 @@ export class BackgroundBoxComponent {
|
|
|
54
47
|
"tags": [],
|
|
55
48
|
"text": "Sets max width to 1212px. Per default, it is false"
|
|
56
49
|
},
|
|
57
|
-
"
|
|
58
|
-
"setter": false,
|
|
50
|
+
"attribute": "max-width",
|
|
59
51
|
"reflect": false,
|
|
60
52
|
"defaultValue": "false"
|
|
61
53
|
},
|
|
62
54
|
"noPadding": {
|
|
63
55
|
"type": "boolean",
|
|
64
|
-
"attribute": "no-padding",
|
|
65
56
|
"mutable": false,
|
|
66
57
|
"complexType": {
|
|
67
58
|
"original": "boolean",
|
|
@@ -74,14 +65,12 @@ export class BackgroundBoxComponent {
|
|
|
74
65
|
"tags": [],
|
|
75
66
|
"text": "Whether the box should have a padding. Per default, padding is enabled"
|
|
76
67
|
},
|
|
77
|
-
"
|
|
78
|
-
"setter": false,
|
|
68
|
+
"attribute": "no-padding",
|
|
79
69
|
"reflect": false,
|
|
80
70
|
"defaultValue": "false"
|
|
81
71
|
},
|
|
82
72
|
"borderTop": {
|
|
83
73
|
"type": "string",
|
|
84
|
-
"attribute": "border-top",
|
|
85
74
|
"mutable": false,
|
|
86
75
|
"complexType": {
|
|
87
76
|
"original": "'default' | 'none'",
|
|
@@ -94,14 +83,12 @@ export class BackgroundBoxComponent {
|
|
|
94
83
|
"tags": [],
|
|
95
84
|
"text": "Whether the box should have a top border. Per default, the border is enabled"
|
|
96
85
|
},
|
|
97
|
-
"
|
|
98
|
-
"setter": false,
|
|
86
|
+
"attribute": "border-top",
|
|
99
87
|
"reflect": false,
|
|
100
88
|
"defaultValue": "'default'"
|
|
101
89
|
},
|
|
102
90
|
"borderRight": {
|
|
103
91
|
"type": "string",
|
|
104
|
-
"attribute": "border-right",
|
|
105
92
|
"mutable": false,
|
|
106
93
|
"complexType": {
|
|
107
94
|
"original": "'default' | 'none'",
|
|
@@ -114,14 +101,12 @@ export class BackgroundBoxComponent {
|
|
|
114
101
|
"tags": [],
|
|
115
102
|
"text": "Whether the box should have a right border. Per default, the border is enabled"
|
|
116
103
|
},
|
|
117
|
-
"
|
|
118
|
-
"setter": false,
|
|
104
|
+
"attribute": "border-right",
|
|
119
105
|
"reflect": false,
|
|
120
106
|
"defaultValue": "'default'"
|
|
121
107
|
},
|
|
122
108
|
"borderBottom": {
|
|
123
109
|
"type": "string",
|
|
124
|
-
"attribute": "border-bottom",
|
|
125
110
|
"mutable": false,
|
|
126
111
|
"complexType": {
|
|
127
112
|
"original": "'default' | 'none'",
|
|
@@ -134,14 +119,12 @@ export class BackgroundBoxComponent {
|
|
|
134
119
|
"tags": [],
|
|
135
120
|
"text": "Whether the box should have a bottom border. Per default, the border is enabled"
|
|
136
121
|
},
|
|
137
|
-
"
|
|
138
|
-
"setter": false,
|
|
122
|
+
"attribute": "border-bottom",
|
|
139
123
|
"reflect": false,
|
|
140
124
|
"defaultValue": "'default'"
|
|
141
125
|
},
|
|
142
126
|
"borderLeft": {
|
|
143
127
|
"type": "string",
|
|
144
|
-
"attribute": "border-left",
|
|
145
128
|
"mutable": false,
|
|
146
129
|
"complexType": {
|
|
147
130
|
"original": "'default' | 'none'",
|
|
@@ -154,8 +137,7 @@ export class BackgroundBoxComponent {
|
|
|
154
137
|
"tags": [],
|
|
155
138
|
"text": "Whether the box should have a left border. Per default, the border is enabled"
|
|
156
139
|
},
|
|
157
|
-
"
|
|
158
|
-
"setter": false,
|
|
140
|
+
"attribute": "border-left",
|
|
159
141
|
"reflect": false,
|
|
160
142
|
"defaultValue": "'default'"
|
|
161
143
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { h } from "@stencil/core";
|
|
3
|
+
import { BackgroundBoxComponent } from "./background-box";
|
|
4
|
+
it('should render the background box with default values', async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [BackgroundBoxComponent],
|
|
7
|
+
template: () => h("b2b-background-box", null, "B2B Background Box"),
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`
|
|
10
|
+
<b2b-background-box class="b2b-background-box">
|
|
11
|
+
<mock:shadow-root>
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</mock:shadow-root>
|
|
14
|
+
B2B Background Box
|
|
15
|
+
</b2b-background-box>
|
|
16
|
+
`);
|
|
17
|
+
});
|
|
18
|
+
it('should render the background box with max width', async () => {
|
|
19
|
+
const page = await newSpecPage({
|
|
20
|
+
components: [BackgroundBoxComponent],
|
|
21
|
+
template: () => (h("b2b-background-box", { "max-width": true }, "B2B Background Box")),
|
|
22
|
+
});
|
|
23
|
+
expect(page.root).toEqualHtml(`
|
|
24
|
+
<b2b-background-box class="b2b-background-box b2b-background-box--max-width" max-width="">
|
|
25
|
+
<mock:shadow-root>
|
|
26
|
+
<slot></slot>
|
|
27
|
+
</mock:shadow-root>
|
|
28
|
+
B2B Background Box
|
|
29
|
+
</b2b-background-box>
|
|
30
|
+
`);
|
|
31
|
+
});
|
|
32
|
+
it('should render the background box without padding', async () => {
|
|
33
|
+
const page = await newSpecPage({
|
|
34
|
+
components: [BackgroundBoxComponent],
|
|
35
|
+
template: () => (h("b2b-background-box", { "no-padding": true }, "B2B Background Box")),
|
|
36
|
+
});
|
|
37
|
+
expect(page.root).toEqualHtml(`
|
|
38
|
+
<b2b-background-box class="b2b-background-box b2b-background-box--no-padding" no-padding="">
|
|
39
|
+
<mock:shadow-root>
|
|
40
|
+
<slot></slot>
|
|
41
|
+
</mock:shadow-root>
|
|
42
|
+
B2B Background Box
|
|
43
|
+
</b2b-background-box>
|
|
44
|
+
`);
|
|
45
|
+
});
|
|
46
|
+
it('should render with no borders when specified', async () => {
|
|
47
|
+
const page = await newSpecPage({
|
|
48
|
+
components: [BackgroundBoxComponent],
|
|
49
|
+
template: () => (h("b2b-background-box", { "border-top": "none", "border-right": "none", "border-bottom": "none", "border-left": "none" }, "B2B Background Box")),
|
|
50
|
+
});
|
|
51
|
+
expect(page.root).toEqualHtml(`
|
|
52
|
+
<b2b-background-box
|
|
53
|
+
class="b2b-background-box b2b-background-box--hide-border-top b2b-background-box--hide-border-right b2b-background-box--hide-border-bottom b2b-background-box--hide-border-left"
|
|
54
|
+
border-top="none"
|
|
55
|
+
border-right="none"
|
|
56
|
+
border-bottom="none"
|
|
57
|
+
border-left="none">
|
|
58
|
+
<mock:shadow-root>
|
|
59
|
+
<slot></slot>
|
|
60
|
+
</mock:shadow-root>
|
|
61
|
+
B2B Background Box
|
|
62
|
+
</b2b-background-box>
|
|
63
|
+
`);
|
|
64
|
+
});
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class BreadCrumbItemComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** If defined, an anchor tag will be rendered instead of a span, opening the specified link in the same context when clicked. */
|
|
5
|
-
this.href = null;
|
|
6
|
-
/** If the item is currently selected. If true, it will not emit an event when clicked and does not have a hover state.*/
|
|
7
|
-
this.active = false;
|
|
8
4
|
this.onClick = () => {
|
|
9
5
|
if (this.active || this.href != null) {
|
|
10
6
|
return;
|
|
@@ -19,9 +15,12 @@ export class BreadCrumbItemComponent {
|
|
|
19
15
|
this.b2bChange.emit();
|
|
20
16
|
this.active = true;
|
|
21
17
|
};
|
|
18
|
+
this.href = null;
|
|
19
|
+
this.value = undefined;
|
|
20
|
+
this.active = false;
|
|
22
21
|
}
|
|
23
22
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'a0e98de57d8664a9a360fba87f0bd54ceaa26f45', onClick: this.onClick, onKeyDown: this.onKeyDown, tabindex: Boolean(this.href) ? null : 0 }, h("span", { key: '18df4ab47446ea909c073956309c7892907f4bb6', class: {
|
|
25
24
|
'b2b-breadcrumb-nav__item': true,
|
|
26
25
|
'b2b-breadcrumb-nav__item--active': this.active,
|
|
27
26
|
} }, this.href != null ? (h("a", { href: this.href }, h("slot", null))) : (h("slot", null)))));
|
|
@@ -42,7 +41,6 @@ export class BreadCrumbItemComponent {
|
|
|
42
41
|
return {
|
|
43
42
|
"href": {
|
|
44
43
|
"type": "string",
|
|
45
|
-
"attribute": "href",
|
|
46
44
|
"mutable": false,
|
|
47
45
|
"complexType": {
|
|
48
46
|
"original": "string",
|
|
@@ -55,14 +53,12 @@ export class BreadCrumbItemComponent {
|
|
|
55
53
|
"tags": [],
|
|
56
54
|
"text": "If defined, an anchor tag will be rendered instead of a span, opening the specified link in the same context when clicked."
|
|
57
55
|
},
|
|
58
|
-
"
|
|
59
|
-
"setter": false,
|
|
56
|
+
"attribute": "href",
|
|
60
57
|
"reflect": false,
|
|
61
58
|
"defaultValue": "null"
|
|
62
59
|
},
|
|
63
60
|
"value": {
|
|
64
61
|
"type": "any",
|
|
65
|
-
"attribute": "value",
|
|
66
62
|
"mutable": false,
|
|
67
63
|
"complexType": {
|
|
68
64
|
"original": "any",
|
|
@@ -75,13 +71,11 @@ export class BreadCrumbItemComponent {
|
|
|
75
71
|
"tags": [],
|
|
76
72
|
"text": "The value associated with the current page. It is required, must be unique and can be a page title, an id or something similar."
|
|
77
73
|
},
|
|
78
|
-
"
|
|
79
|
-
"setter": false,
|
|
74
|
+
"attribute": "value",
|
|
80
75
|
"reflect": false
|
|
81
76
|
},
|
|
82
77
|
"active": {
|
|
83
78
|
"type": "boolean",
|
|
84
|
-
"attribute": "active",
|
|
85
79
|
"mutable": true,
|
|
86
80
|
"complexType": {
|
|
87
81
|
"original": "boolean",
|
|
@@ -94,8 +88,7 @@ export class BreadCrumbItemComponent {
|
|
|
94
88
|
"tags": [],
|
|
95
89
|
"text": "If the item is currently selected. If true, it will not emit an event when clicked and does not have a hover state."
|
|
96
90
|
},
|
|
97
|
-
"
|
|
98
|
-
"setter": false,
|
|
91
|
+
"attribute": "active",
|
|
99
92
|
"reflect": false,
|
|
100
93
|
"defaultValue": "false"
|
|
101
94
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B-Breadcrumb', () => {
|
|
3
|
+
let page;
|
|
4
|
+
beforeEach(async () => {
|
|
5
|
+
page = await newE2EPage();
|
|
6
|
+
await page.setContent(`<b2b-breadcrumb>
|
|
7
|
+
<b2b-breadcrumb-item value="one">First Page</b2b-breadcrumb-item>
|
|
8
|
+
<b2b-breadcrumb-item value="two" active>Second Page</b2b-breadcrumb-item>
|
|
9
|
+
<b2b-breadcrumb-item value="three" href="test">Last Page</b2b-breadcrumb-item>
|
|
10
|
+
</b2b-breadcrumb>`);
|
|
11
|
+
});
|
|
12
|
+
it('should render the breadcrumb', async () => {
|
|
13
|
+
const element = await page.find('b2b-breadcrumb');
|
|
14
|
+
const items = await page.findAll('b2b-breadcrumb-item');
|
|
15
|
+
expect(element).toBeDefined();
|
|
16
|
+
expect(items).toBeDefined();
|
|
17
|
+
expect(items.length).toBe(3);
|
|
18
|
+
});
|
|
19
|
+
it('should emit when an item is clicked', async () => {
|
|
20
|
+
const selectEventSpy = await page.spyOnEvent('b2b-selected');
|
|
21
|
+
const item = await page.find({ text: 'First Page' });
|
|
22
|
+
await item.click();
|
|
23
|
+
await page.waitForChanges();
|
|
24
|
+
expect(selectEventSpy).toHaveReceivedEventDetail({ value: 'one' });
|
|
25
|
+
expect(await item.getProperty('active')).toBe(true);
|
|
26
|
+
});
|
|
27
|
+
it('should not emit when an item with a link is clicked', async () => {
|
|
28
|
+
const selectEventSpy = await page.spyOnEvent('b2b-selected');
|
|
29
|
+
const item = await page.find({ text: 'Last Page' });
|
|
30
|
+
await item.click();
|
|
31
|
+
await page.waitForChanges();
|
|
32
|
+
expect(selectEventSpy).not.toHaveReceivedEvent();
|
|
33
|
+
});
|
|
34
|
+
it('should not emit when an item is currently selected and clicked', async () => {
|
|
35
|
+
const selectEventSpy = await page.spyOnEvent('b2b-selected');
|
|
36
|
+
const item = await page.find({ text: 'Second Page' });
|
|
37
|
+
await item.click();
|
|
38
|
+
await page.waitForChanges();
|
|
39
|
+
expect(selectEventSpy).not.toHaveReceivedEvent();
|
|
40
|
+
});
|
|
41
|
+
it('should change state of all other items when an item that is not currently selected is clicked', async () => {
|
|
42
|
+
const item = await page.find({ text: 'First Page' });
|
|
43
|
+
await item.click();
|
|
44
|
+
await page.waitForChanges();
|
|
45
|
+
const second = await page.find({ text: 'Second Page' });
|
|
46
|
+
const third = await page.find({ text: 'Last Page' });
|
|
47
|
+
expect(await second.getProperty('active')).toBe(false);
|
|
48
|
+
expect(await third.getProperty('active')).toBe(false);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
2
|
export class B2bBreadCrumbComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** Padding for the top of the breadcrumb component */
|
|
5
|
-
this.paddingTop = 0; // Default value is 0px
|
|
6
|
-
/** Padding for the bottom of the breadcrumb component */
|
|
7
|
-
this.paddingBottom = 0; // Default value is 0px
|
|
8
4
|
this.getBreadcrumbItems = () => {
|
|
9
5
|
return Array.from(this.host.querySelectorAll('b2b-breadcrumb-item'));
|
|
10
6
|
};
|
|
@@ -13,6 +9,8 @@ export class B2bBreadCrumbComponent {
|
|
|
13
9
|
.filter(x => x.value !== newItem.value)
|
|
14
10
|
.forEach(x => (x.active = false));
|
|
15
11
|
};
|
|
12
|
+
this.paddingTop = 0;
|
|
13
|
+
this.paddingBottom = 0;
|
|
16
14
|
}
|
|
17
15
|
onSelectedChange(event) {
|
|
18
16
|
const item = event.target;
|
|
@@ -20,10 +18,10 @@ export class B2bBreadCrumbComponent {
|
|
|
20
18
|
this.b2bSelected.emit({ value: item.value });
|
|
21
19
|
}
|
|
22
20
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '28af1dc12b85c9c3a77829b9db6bc28d4ef8c079', style: {
|
|
24
22
|
paddingTop: `${this.paddingTop}px`,
|
|
25
23
|
paddingBottom: `${this.paddingBottom}px`,
|
|
26
|
-
} }, h("div", { key: '
|
|
24
|
+
} }, h("div", { key: 'e422ae486a483f52cb54ea114a51e1ae67c5241f', class: "b2b-breadcrumb-nav" }, h("slot", { key: '017dd20d5b8463563aa4f4d74e72557f5c703af5' }))));
|
|
27
25
|
}
|
|
28
26
|
static get is() { return "b2b-breadcrumb"; }
|
|
29
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,7 +39,6 @@ export class B2bBreadCrumbComponent {
|
|
|
41
39
|
return {
|
|
42
40
|
"paddingTop": {
|
|
43
41
|
"type": "number",
|
|
44
|
-
"attribute": "padding-top",
|
|
45
42
|
"mutable": false,
|
|
46
43
|
"complexType": {
|
|
47
44
|
"original": "number",
|
|
@@ -54,14 +51,12 @@ export class B2bBreadCrumbComponent {
|
|
|
54
51
|
"tags": [],
|
|
55
52
|
"text": "Padding for the top of the breadcrumb component"
|
|
56
53
|
},
|
|
57
|
-
"
|
|
58
|
-
"setter": false,
|
|
54
|
+
"attribute": "padding-top",
|
|
59
55
|
"reflect": false,
|
|
60
56
|
"defaultValue": "0"
|
|
61
57
|
},
|
|
62
58
|
"paddingBottom": {
|
|
63
59
|
"type": "number",
|
|
64
|
-
"attribute": "padding-bottom",
|
|
65
60
|
"mutable": false,
|
|
66
61
|
"complexType": {
|
|
67
62
|
"original": "number",
|
|
@@ -74,8 +69,7 @@ export class B2bBreadCrumbComponent {
|
|
|
74
69
|
"tags": [],
|
|
75
70
|
"text": "Padding for the bottom of the breadcrumb component"
|
|
76
71
|
},
|
|
77
|
-
"
|
|
78
|
-
"setter": false,
|
|
72
|
+
"attribute": "padding-bottom",
|
|
79
73
|
"reflect": false,
|
|
80
74
|
"defaultValue": "0"
|
|
81
75
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B-Button', () => {
|
|
3
|
+
let page;
|
|
4
|
+
beforeEach(async () => {
|
|
5
|
+
page = await newE2EPage();
|
|
6
|
+
await page.setContent(`<b2b-button>Hello World</b2b-button>`);
|
|
7
|
+
});
|
|
8
|
+
it('should render the button component', async () => {
|
|
9
|
+
const element = await page.find('b2b-button');
|
|
10
|
+
expect(element).not.toBeNull();
|
|
11
|
+
});
|
|
12
|
+
it('should display text', async () => {
|
|
13
|
+
const element = await page.find('b2b-button');
|
|
14
|
+
expect(element).toEqualText('Hello World');
|
|
15
|
+
});
|
|
16
|
+
it('should emit click event when clicked', async () => {
|
|
17
|
+
const eventSpy = await page.spyOnEvent('click');
|
|
18
|
+
await page.click('b2b-button');
|
|
19
|
+
expect(eventSpy).toHaveReceivedEvent();
|
|
20
|
+
});
|
|
21
|
+
it('should not be able to click when disabled', async () => {
|
|
22
|
+
page = await newE2EPage();
|
|
23
|
+
await page.setContent(`<b2b-button disabled={true}>Hello World</b2b-button>`);
|
|
24
|
+
const eventSpy = await page.spyOnEvent('click');
|
|
25
|
+
await page.click('b2b-button');
|
|
26
|
+
expect(eventSpy).not.toHaveReceivedEvent();
|
|
27
|
+
});
|
|
28
|
+
it('should not be able to click when loading', async () => {
|
|
29
|
+
page = await newE2EPage();
|
|
30
|
+
await page.setContent(`<b2b-button loading={true}>Hello World</b2b-button>`);
|
|
31
|
+
const eventSpy = await page.spyOnEvent('click');
|
|
32
|
+
await page.click('b2b-button');
|
|
33
|
+
expect(eventSpy).not.toHaveReceivedEvent();
|
|
34
|
+
});
|
|
35
|
+
it('should support form submission from shadow dom', async () => {
|
|
36
|
+
const form = `
|
|
37
|
+
<form>
|
|
38
|
+
<b2b-button type='submit'>Hello World</b2b-button>
|
|
39
|
+
</form>
|
|
40
|
+
`;
|
|
41
|
+
page = await newE2EPage();
|
|
42
|
+
await page.setContent(form);
|
|
43
|
+
const submitEventSpy = await page.spyOnEvent('submit');
|
|
44
|
+
const formdataEventSpy = await page.spyOnEvent('formdata');
|
|
45
|
+
await page.click('b2b-button');
|
|
46
|
+
expect(submitEventSpy).toHaveReceivedEvent();
|
|
47
|
+
expect(formdataEventSpy).toHaveReceivedEvent();
|
|
48
|
+
});
|
|
49
|
+
it('should reduce padding on the button if there is only an icon', async () => {
|
|
50
|
+
page = await newE2EPage();
|
|
51
|
+
await page.setContent(`<b2b-button variant="primary" size="100">
|
|
52
|
+
<b2b-icon-100 slot="end" icon="b2b_icon-check"></b2b-icon-100>
|
|
53
|
+
</b2b-button>`);
|
|
54
|
+
const button = await page.find('b2b-button');
|
|
55
|
+
expect(button).toHaveClass('b2b-button--icon-only');
|
|
56
|
+
});
|
|
57
|
+
it('should not reduce padding on the button if there is text', async () => {
|
|
58
|
+
page = await newE2EPage();
|
|
59
|
+
await page.setContent(`<b2b-button variant="primary" size="100">
|
|
60
|
+
<span>Hello World</span>
|
|
61
|
+
<b2b-icon-100 slot="end" icon="b2b_icon-check"></b2b-icon-100>
|
|
62
|
+
</b2b-button>`);
|
|
63
|
+
const button = await page.find('b2b-button');
|
|
64
|
+
expect(button).not.toHaveClass('b2b-button--icon-only');
|
|
65
|
+
});
|
|
66
|
+
it('should not submit a form when the button is not of type submit', async () => {
|
|
67
|
+
const form = `
|
|
68
|
+
<form>
|
|
69
|
+
<b2b-button>Hello World</b2b-button>
|
|
70
|
+
</form>
|
|
71
|
+
`;
|
|
72
|
+
page = await newE2EPage();
|
|
73
|
+
await page.setContent(form);
|
|
74
|
+
const submitEventSpy = await page.spyOnEvent('submit');
|
|
75
|
+
const button = await page.find({ text: 'Hello World' });
|
|
76
|
+
await button.click();
|
|
77
|
+
page.waitForChanges();
|
|
78
|
+
expect(submitEventSpy).not.toHaveReceivedEvent();
|
|
79
|
+
});
|
|
80
|
+
});
|