@otto-de/b2b-core-components 1.5.0 → 1.6.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-01fd54a1.entry.js +1 -0
- package/dist/b2b-core-components/{p-b95089a7.entry.js → p-04fc18cd.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c20baf90.entry.js → p-077217b3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-03beebf5.entry.js → p-0965b990.entry.js} +1 -1
- package/dist/b2b-core-components/p-0beabdb4.entry.js +1 -0
- package/dist/b2b-core-components/p-163466cf.entry.js +1 -0
- package/dist/b2b-core-components/p-197c1a6d.entry.js +1 -0
- package/dist/b2b-core-components/{p-75f84f53.entry.js → p-1d007eea.entry.js} +1 -1
- package/dist/b2b-core-components/{p-6997ceb0.entry.js → p-1e2752b2.entry.js} +1 -1
- package/dist/b2b-core-components/{p-06ef4c5e.entry.js → p-2328144b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-9184036b.entry.js → p-2ad8bdb6.entry.js} +1 -1
- package/dist/b2b-core-components/p-2d01e68a.entry.js +1 -0
- package/dist/b2b-core-components/{p-60c7f6f7.entry.js → p-3c0671ef.entry.js} +1 -1
- package/dist/b2b-core-components/p-42e7f397.entry.js +1 -0
- package/dist/b2b-core-components/{p-163fe245.entry.js → p-44ccd8f4.entry.js} +1 -1
- package/dist/b2b-core-components/{p-38791fb9.entry.js → p-542a358a.entry.js} +1 -1
- package/dist/b2b-core-components/p-54fd68eb.entry.js +1 -0
- package/dist/b2b-core-components/p-60badad5.entry.js +1 -0
- package/dist/b2b-core-components/{p-e1622cb8.entry.js → p-6140304e.entry.js} +1 -1
- package/dist/b2b-core-components/p-62e43f91.entry.js +1 -0
- package/dist/b2b-core-components/{p-f0aa5e83.entry.js → p-681d6880.entry.js} +1 -1
- package/dist/b2b-core-components/{p-bcf36531.entry.js → p-8ad1bb92.entry.js} +1 -1
- package/dist/b2b-core-components/p-90a3ffed.entry.js +1 -0
- package/dist/b2b-core-components/p-97ef9805.entry.js +1 -0
- package/dist/b2b-core-components/{p-48d4d224.entry.js → p-a50ea33f.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c8294029.entry.js → p-b3ccfc58.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2b3a67db.entry.js → p-b6a8a06f.entry.js} +1 -1
- package/dist/b2b-core-components/{p-5c2db521.entry.js → p-b8049234.entry.js} +1 -1
- package/dist/b2b-core-components/p-c294dd0c.entry.js +1 -0
- package/dist/b2b-core-components/{p-5d7866e8.entry.js → p-d07210e2.entry.js} +1 -1
- package/dist/b2b-core-components/p-d7bb8aa1.entry.js +1 -0
- package/dist/b2b-core-components/{p-76e240f8.entry.js → p-d83c2084.entry.js} +1 -1
- package/dist/b2b-core-components/{p-dcd80266.entry.js → p-db7d2ec3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-9facba86.entry.js → p-dd79ab5b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-bda69b9a.entry.js → p-e5b78075.entry.js} +1 -1
- package/dist/b2b-core-components/{p-7b04f40b.entry.js → p-e811411a.entry.js} +1 -1
- package/dist/b2b-core-components/p-f190bf79.entry.js +1 -0
- package/dist/b2b-core-components/{p-1e1bdb50.entry.js → p-f24515bf.entry.js} +1 -1
- package/dist/b2b-core-components/p-f3ce95bf.js +2 -0
- package/dist/b2b-core-components/p-f7e9f889.entry.js +1 -0
- package/dist/cjs/b2b-alert.cjs.entry.js +4 -4
- package/dist/cjs/b2b-anchor.cjs.entry.js +1 -1
- package/dist/cjs/b2b-button_2.cjs.entry.js +12 -8
- package/dist/cjs/b2b-card.cjs.entry.js +1 -1
- package/dist/cjs/b2b-checkbox-group.cjs.entry.js +7 -5
- package/dist/cjs/{b2b-table-cell_2.cjs.entry.js → b2b-checkbox_3.cjs.entry.js} +94 -7
- package/dist/cjs/b2b-core-components.cjs.js +3 -3
- package/dist/cjs/b2b-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/b2b-grid-col.cjs.entry.js +1 -1
- package/dist/cjs/b2b-grid-row.cjs.entry.js +2 -2
- package/dist/cjs/b2b-grid.cjs.entry.js +1 -1
- package/dist/cjs/b2b-headline.cjs.entry.js +1 -1
- package/dist/cjs/b2b-icon.cjs.entry.js +4 -4
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +10 -21
- package/dist/cjs/b2b-input-label.cjs.entry.js +1 -1
- package/dist/cjs/b2b-input_2.cjs.entry.js +8 -7
- package/dist/cjs/b2b-label.cjs.entry.js +1 -1
- package/dist/cjs/b2b-modal.cjs.entry.js +5 -5
- package/dist/cjs/b2b-pagination.cjs.entry.js +5 -5
- package/dist/cjs/b2b-paragraph.cjs.entry.js +5 -5
- package/dist/cjs/b2b-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/b2b-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-required-separator.cjs.entry.js +3 -3
- package/dist/cjs/b2b-rounded-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-scrollable-container.cjs.entry.js +1 -1
- package/dist/cjs/b2b-search.cjs.entry.js +1 -1
- package/dist/cjs/b2b-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab.cjs.entry.js +1 -1
- package/dist/cjs/b2b-table-row.cjs.entry.js +77 -21
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +85 -24
- package/dist/cjs/b2b-table.cjs.entry.js +10 -10
- package/dist/cjs/b2b-textarea.cjs.entry.js +1 -1
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +7 -7
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +3 -3
- package/dist/cjs/b2b-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/b2b-wizard-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-wizard-step.cjs.entry.js +4 -4
- package/dist/cjs/b2b-wizard.cjs.entry.js +2 -2
- package/dist/cjs/{index-496aa5dd.js → index-04e07a00.js} +88 -31
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{table.types-bb0926c7.js → table.types-00c8228a.js} +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/alert/alert.css +7 -7
- package/dist/collection/components/alert/alert.e2e.js +67 -0
- package/dist/collection/components/alert/alert.js +2 -2
- package/dist/collection/components/anchor/anchor.css +2 -2
- package/dist/collection/components/anchor/anchor.spec.js +68 -0
- package/dist/collection/components/button/button.css +35 -39
- package/dist/collection/components/button/button.e2e.js +80 -0
- package/dist/collection/components/button/button.js +31 -6
- package/dist/collection/components/card/card.css +2 -2
- package/dist/collection/components/card/card.e2e.js +110 -0
- package/dist/collection/components/card/card.spec.js +32 -0
- package/dist/collection/components/checkbox/checkbox.css +34 -13
- package/dist/collection/components/checkbox/checkbox.e2e.js +30 -0
- package/dist/collection/components/checkbox/checkbox.js +81 -6
- package/dist/collection/components/checkbox/checkbox.spec.js +45 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +5 -5
- package/dist/collection/components/checkbox-group/checkbox-group.e2e.js +78 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +5 -3
- package/dist/collection/components/checkbox-group/checkbox-group.spec.js +38 -0
- package/dist/collection/components/dropdown/dropdown.css +7 -7
- package/dist/collection/components/dropdown/dropdown.e2e.js +48 -0
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/dropdown.spec.js +52 -0
- package/dist/collection/components/grid/grid.e2e.js +17 -0
- package/dist/collection/components/grid/row.js +1 -1
- package/dist/collection/components/headline/headline.css +2 -2
- package/dist/collection/components/headline/headline.e2e.js +13 -0
- package/dist/collection/components/headline/headline.spec.js +67 -0
- package/dist/collection/components/icon/icon.css +9 -9
- package/dist/collection/components/icon/icon.js +2 -2
- package/dist/collection/components/icon/icon.spec.js +21 -0
- package/dist/collection/components/input/input.css +14 -14
- package/dist/collection/components/input/input.e2e.js +43 -0
- package/dist/collection/components/input/input.js +26 -4
- package/dist/collection/components/input/input.spec.js +45 -0
- package/dist/collection/components/input-group/input-group.css +4 -4
- package/dist/collection/components/input-group/input-group.e2e.js +76 -0
- package/dist/collection/components/input-group/input-group.js +4 -21
- 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-list/input-list.css +7 -7
- package/dist/collection/components/input-list/input-list.e2e.js +227 -0
- package/dist/collection/components/input-list/input-list.js +24 -2
- package/dist/collection/components/label/label.css +2 -2
- package/dist/collection/components/label/label.e2e.js +17 -0
- package/dist/collection/components/label/label.spec.js +58 -0
- package/dist/collection/components/modal/modal.css +13 -18
- package/dist/collection/components/modal/modal.e2e.js +115 -0
- package/dist/collection/components/modal/modal.js +3 -3
- package/dist/collection/components/pagination/pagination.css +7 -7
- package/dist/collection/components/pagination/pagination.e2e.js +256 -0
- package/dist/collection/components/pagination/pagination.js +3 -3
- package/dist/collection/components/pagination/pagination.spec.js +104 -0
- package/dist/collection/components/paragraph/paragraph.css +9 -9
- package/dist/collection/components/paragraph/paragraph.e2e.js +13 -0
- package/dist/collection/components/paragraph/paragraph.js +3 -3
- package/dist/collection/components/radio/radio.css +2 -2
- package/dist/collection/components/radio/radio.e2e.js +36 -0
- package/dist/collection/components/radio/radio.spec.js +38 -0
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/radio-group/radio-group.e2e.js +71 -0
- package/dist/collection/components/radio-group/radio-group.spec.js +31 -0
- package/dist/collection/components/required-separator/required-separator.css +4 -4
- package/dist/collection/components/required-separator/required-separator.e2e.js +17 -0
- package/dist/collection/components/required-separator/required-separator.js +1 -1
- package/dist/collection/components/rounded-icon/rounded-icon.css +2 -2
- package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
- package/dist/collection/components/search/search.e2e.js +97 -0
- package/dist/collection/components/separator/separator.css +2 -2
- package/dist/collection/components/separator/separator.e2e.js +22 -0
- package/dist/collection/components/spinner/spinner.css +2 -2
- package/dist/collection/components/spinner/spinner.e2e.js +12 -0
- package/dist/collection/components/spinner/spinner.spec.js +41 -0
- package/dist/collection/components/tab/tab.css +2 -2
- package/dist/collection/components/tab/tab.e2e.js +35 -0
- package/dist/collection/components/tab/tab.spec.js +31 -0
- package/dist/collection/components/tab-group/tab-group.e2e.js +98 -0
- package/dist/collection/components/tab-panel/tab-panel.css +2 -2
- package/dist/collection/components/tab-panel/tab-panel.e2e.js +12 -0
- package/dist/collection/components/tab-panel/tab-panel.spec.js +10 -0
- package/dist/collection/components/table/stories.data.js +6 -6
- package/dist/collection/components/table/table-cell/table-cell.css +2 -2
- package/dist/collection/components/table/table-header/table-header.css +17 -17
- package/dist/collection/components/table/table-header/table-header.js +4 -4
- package/dist/collection/components/table/table-row/table-row.css +3 -3
- package/dist/collection/components/table/table-row/table-row.js +185 -25
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +3 -3
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +118 -23
- package/dist/collection/components/table/table.css +2 -2
- package/dist/collection/components/table/table.e2e.js +370 -0
- package/dist/collection/components/table/table.js +8 -8
- package/dist/collection/components/table/table.stories.js +16 -7
- package/dist/collection/components/table/utils.js +18 -0
- package/dist/collection/components/textarea/textarea.css +2 -2
- package/dist/collection/components/textarea/textarea.e2e.js +91 -0
- package/dist/collection/components/toggle-button/toggle-button.css +9 -9
- package/dist/collection/components/toggle-button/toggle-button.e2e.js +44 -0
- package/dist/collection/components/toggle-button/toggle-button.js +5 -5
- package/dist/collection/components/toggle-group/toggle-group.css +3 -3
- package/dist/collection/components/toggle-group/toggle-group.e2e.js +65 -0
- package/dist/collection/components/toggle-group/toggle-group.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +14 -14
- package/dist/collection/components/tooltip/tooltip.e2e.js +64 -0
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/components/wizard/wizard-step.js +2 -2
- package/dist/collection/components/wizard/wizard.css +3 -3
- package/dist/collection/components/wizard/wizard.e2e.js +149 -0
- package/dist/collection/components/wizard-icon/wizard-icon.css +2 -2
- package/dist/collection/docs/config/replace-prop-controls.spec.js +32 -0
- package/dist/collection/utils/types/table.types.js +5 -1
- package/dist/collection/utils/utils.spec.js +15 -0
- package/dist/components/b2b-alert.js +4 -4
- package/dist/components/b2b-anchor.js +1 -1
- package/dist/components/b2b-card.js +1 -1
- package/dist/components/b2b-checkbox-group.js +7 -5
- package/dist/components/b2b-checkbox.js +1 -99
- package/dist/components/b2b-dropdown.js +3 -3
- package/dist/components/b2b-grid-col.js +1 -1
- package/dist/components/b2b-grid-row.js +2 -2
- package/dist/components/b2b-grid.js +1 -1
- package/dist/components/b2b-label.js +1 -1
- package/dist/components/b2b-modal.js +5 -5
- package/dist/components/b2b-pagination.js +5 -5
- package/dist/components/b2b-paragraph.js +5 -5
- package/dist/components/b2b-radio-button.js +1 -1
- package/dist/components/b2b-radio-group.js +1 -1
- package/dist/components/b2b-required-separator.js +3 -3
- package/dist/components/b2b-scrollable-container.js +1 -1
- package/dist/components/b2b-search.js +1 -1
- package/dist/components/b2b-tab-group.js +1 -1
- package/dist/components/b2b-tab-panel.js +1 -1
- package/dist/components/b2b-tab.js +1 -1
- package/dist/components/b2b-table-row.js +97 -25
- package/dist/components/b2b-table-rowgroup.js +91 -27
- package/dist/components/b2b-table.js +9 -9
- package/dist/components/b2b-textarea.js +1 -1
- package/dist/components/b2b-toggle-button.js +7 -7
- package/dist/components/b2b-toggle-group.js +3 -3
- package/dist/components/b2b-tooltip.js +4 -4
- package/dist/components/b2b-wizard-step.js +4 -4
- package/dist/components/b2b-wizard.js +2 -2
- package/dist/components/button.js +13 -8
- package/dist/{esm/b2b-checkbox.entry.js → components/checkbox.js} +66 -13
- package/dist/components/headline.js +1 -1
- package/dist/components/icon.js +4 -4
- package/dist/components/input-group.js +7 -20
- package/dist/components/input-label.js +1 -1
- package/dist/components/input-list-option.js +2 -2
- package/dist/components/input-list.js +6 -4
- package/dist/components/input.js +8 -6
- package/dist/components/rounded-icon.js +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +6 -6
- package/dist/components/table.types.js +2 -2
- package/dist/components/wizard-icon.js +1 -1
- package/dist/custom-elements.json +22 -13
- package/dist/esm/b2b-alert.entry.js +4 -4
- package/dist/esm/b2b-anchor.entry.js +1 -1
- package/dist/esm/b2b-button_2.entry.js +12 -8
- package/dist/esm/b2b-card.entry.js +1 -1
- package/dist/esm/b2b-checkbox-group.entry.js +7 -5
- package/dist/esm/{b2b-table-cell_2.entry.js → b2b-checkbox_3.entry.js} +94 -8
- package/dist/esm/b2b-core-components.js +4 -4
- package/dist/esm/b2b-dropdown.entry.js +3 -3
- package/dist/esm/b2b-grid-col.entry.js +1 -1
- package/dist/esm/b2b-grid-row.entry.js +2 -2
- package/dist/esm/b2b-grid.entry.js +1 -1
- package/dist/esm/b2b-headline.entry.js +1 -1
- package/dist/esm/b2b-icon.entry.js +4 -4
- package/dist/esm/b2b-input-group_2.entry.js +10 -21
- package/dist/esm/b2b-input-label.entry.js +1 -1
- package/dist/esm/b2b-input_2.entry.js +8 -7
- package/dist/esm/b2b-label.entry.js +1 -1
- package/dist/esm/b2b-modal.entry.js +5 -5
- package/dist/esm/b2b-pagination.entry.js +5 -5
- package/dist/esm/b2b-paragraph.entry.js +5 -5
- package/dist/esm/b2b-radio-button.entry.js +1 -1
- package/dist/esm/b2b-radio-group.entry.js +1 -1
- package/dist/esm/b2b-required-separator.entry.js +3 -3
- package/dist/esm/b2b-rounded-icon.entry.js +1 -1
- package/dist/esm/b2b-scrollable-container.entry.js +1 -1
- package/dist/esm/b2b-search.entry.js +1 -1
- package/dist/esm/b2b-separator.entry.js +1 -1
- package/dist/esm/b2b-tab-group.entry.js +1 -1
- package/dist/esm/b2b-tab-panel.entry.js +1 -1
- package/dist/esm/b2b-tab.entry.js +1 -1
- package/dist/esm/b2b-table-row.entry.js +77 -21
- package/dist/esm/b2b-table-rowgroup.entry.js +85 -24
- package/dist/esm/b2b-table.entry.js +10 -10
- package/dist/esm/b2b-textarea.entry.js +1 -1
- package/dist/esm/b2b-toggle-button.entry.js +7 -7
- package/dist/esm/b2b-toggle-group.entry.js +3 -3
- package/dist/esm/b2b-tooltip.entry.js +4 -4
- package/dist/esm/b2b-wizard-icon.entry.js +1 -1
- package/dist/esm/b2b-wizard-step.entry.js +4 -4
- package/dist/esm/b2b-wizard.entry.js +2 -2
- package/dist/esm/{index-026605c2.js → index-dfdbf4b9.js} +88 -31
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{table.types-9943c937.js → table.types-dd829d83.js} +2 -2
- package/dist/types/components/alert/alert.stories.d.ts +1 -1
- package/dist/types/components/anchor/anchor.stories.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +2 -0
- package/dist/types/components/button/button.stories.d.ts +1 -1
- package/dist/types/components/card/card.stories.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +8 -1
- package/dist/types/components/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/types/components/checkbox-group/checkbox-group.stories.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.stories.d.ts +1 -1
- package/dist/types/components/grid/grid.stories.d.ts +1 -1
- package/dist/types/components/headline/headline.stories.d.ts +1 -1
- package/dist/types/components/icon/icon.stories.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +2 -0
- package/dist/types/components/input/input.stories.d.ts +1 -1
- package/dist/types/components/input-group/input-group.d.ts +0 -4
- package/dist/types/components/input-group/input-group.stories.d.ts +1 -1
- package/dist/types/components/input-list/input-list.d.ts +2 -0
- package/dist/types/components/input-list/input-list.stories.d.ts +1 -1
- package/dist/types/components/label/label.stories.d.ts +1 -1
- package/dist/types/components/modal/modal.stories.d.ts +1 -1
- package/dist/types/components/pagination/pagination.stories.d.ts +1 -1
- package/dist/types/components/paragraph/paragraph.stories.d.ts +1 -1
- package/dist/types/components/radio/radio.stories.d.ts +1 -1
- package/dist/types/components/radio-group/radio-group.stories.d.ts +1 -1
- package/dist/types/components/required-separator/required-separator.stories.d.ts +1 -1
- package/dist/types/components/rounded-icon/rounded-icon.stories.d.ts +1 -1
- package/dist/types/components/scrollable-container/scrollable-container.stories.d.ts +1 -1
- package/dist/types/components/search/search.stories.d.ts +1 -1
- package/dist/types/components/separator/separator.stories.d.ts +1 -1
- package/dist/types/components/spinner/spinner.stories.d.ts +1 -1
- package/dist/types/components/tab-group/tab-group.stories.d.ts +1 -1
- package/dist/types/components/table/table-row/table-row.d.ts +23 -7
- package/dist/types/components/table/table-rowgroup/table-rowgroup.d.ts +12 -2
- package/dist/types/components/table/table.d.ts +1 -1
- package/dist/types/components/table/table.stories.d.ts +2 -1
- package/dist/types/components/table/utils.d.ts +4 -0
- package/dist/types/components/textarea/textarea.stories.d.ts +1 -1
- package/dist/types/components/toggle-group/toggle-group.stories.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.stories.d.ts +1 -1
- package/dist/types/components/wizard/wizard.stories.d.ts +1 -1
- package/dist/types/components/wizard-icon/wizard-icon.stories.d.ts +1 -1
- package/dist/types/components.d.ts +71 -9
- package/dist/types/docs/tokens/color.stories.d.ts +1 -1
- package/dist/types/docs/tokens/font.stories.d.ts +1 -1
- package/dist/types/docs/tokens/size.stories.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -0
- package/dist/types/utils/interfaces/content.interface.d.ts +4 -0
- package/dist/types/utils/interfaces/form.interface.d.ts +1 -0
- package/dist/types/utils/types/table.types.d.ts +7 -2
- package/dist/web-types.json +76 -6
- package/loader/index.d.ts +1 -1
- package/package.json +4 -4
- package/dist/b2b-core-components/p-0675225a.entry.js +0 -1
- package/dist/b2b-core-components/p-080a0741.entry.js +0 -1
- package/dist/b2b-core-components/p-0f8bd310.entry.js +0 -1
- package/dist/b2b-core-components/p-14f1b674.entry.js +0 -1
- package/dist/b2b-core-components/p-1eb784f9.entry.js +0 -1
- package/dist/b2b-core-components/p-21bfe96a.entry.js +0 -1
- package/dist/b2b-core-components/p-3cd9088a.entry.js +0 -1
- package/dist/b2b-core-components/p-42da7a57.entry.js +0 -1
- package/dist/b2b-core-components/p-4fc894c8.entry.js +0 -1
- package/dist/b2b-core-components/p-710600ca.entry.js +0 -1
- package/dist/b2b-core-components/p-83cb9d03.entry.js +0 -1
- package/dist/b2b-core-components/p-a7417890.js +0 -2
- package/dist/b2b-core-components/p-c9dcb35a.entry.js +0 -1
- package/dist/b2b-core-components/p-cf010e88.entry.js +0 -1
- package/dist/b2b-core-components/p-e3cd216c.entry.js +0 -1
- package/dist/b2b-core-components/p-fa6cd2ac.entry.js +0 -1
- package/dist/b2b-core-components/p-fe96d81a.entry.js +0 -1
- package/dist/cjs/b2b-checkbox.cjs.entry.js +0 -74
- /package/dist/b2b-core-components/{p-de2c1003.js → p-34eb99cb.js} +0 -0
|
@@ -793,16 +793,17 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
793
793
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
794
794
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
795
795
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
796
|
-
* @param vnode a VNode
|
|
797
|
-
* @param elm an element
|
|
798
796
|
*/
|
|
799
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
800
|
-
for (
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
elm
|
|
797
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
798
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
799
|
+
const vnode = vnodes[index];
|
|
800
|
+
if (vnode) {
|
|
801
|
+
const elm = vnode.$elm$;
|
|
802
|
+
nullifyVNodeRefs(vnode);
|
|
803
|
+
if (elm) {
|
|
804
|
+
// remove the vnode's element from the dom
|
|
805
|
+
elm.remove();
|
|
806
|
+
}
|
|
806
807
|
}
|
|
807
808
|
}
|
|
808
809
|
};
|
|
@@ -1061,10 +1062,17 @@ const patch = (oldVNode, newVNode) => {
|
|
|
1061
1062
|
elm.data = text;
|
|
1062
1063
|
}
|
|
1063
1064
|
};
|
|
1064
|
-
|
|
1065
|
+
/**
|
|
1066
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
|
|
1067
|
+
* calling them with `null`. This signals that the DOM element corresponding to
|
|
1068
|
+
* the VDom node has been removed from the DOM.
|
|
1069
|
+
*
|
|
1070
|
+
* @param vNode a virtual DOM node
|
|
1071
|
+
*/
|
|
1072
|
+
const nullifyVNodeRefs = (vNode) => {
|
|
1065
1073
|
{
|
|
1066
1074
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1067
|
-
vNode.$children$ && vNode.$children$.map(
|
|
1075
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1068
1076
|
}
|
|
1069
1077
|
};
|
|
1070
1078
|
/**
|
|
@@ -1119,30 +1127,86 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1119
1127
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1120
1128
|
return writeTask(dispatch) ;
|
|
1121
1129
|
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
1132
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
1133
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
1134
|
+
*
|
|
1135
|
+
* @param hostRef a reference to a host DOM node
|
|
1136
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
1137
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
1138
|
+
* the component
|
|
1139
|
+
*/
|
|
1122
1140
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1123
1141
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
1124
1142
|
const instance = hostRef.$lazyInstance$ ;
|
|
1125
|
-
|
|
1143
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
1144
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
1145
|
+
// the first function to the queue we'll set this variable to be that
|
|
1146
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
1147
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
1148
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
1149
|
+
// queue two nice properties:
|
|
1150
|
+
//
|
|
1151
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
1152
|
+
// synchronously right away.
|
|
1153
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
1154
|
+
// called in order after `dispatchHooks` exits.
|
|
1155
|
+
let maybePromise;
|
|
1126
1156
|
if (isInitialLoad) {
|
|
1127
1157
|
{
|
|
1128
1158
|
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
1129
1159
|
if (hostRef.$queuedListeners$) {
|
|
1130
1160
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1131
|
-
hostRef.$queuedListeners$ =
|
|
1161
|
+
hostRef.$queuedListeners$ = undefined;
|
|
1132
1162
|
}
|
|
1133
1163
|
}
|
|
1134
1164
|
{
|
|
1135
|
-
|
|
1165
|
+
// If `componentWillLoad` returns a `Promise` then we want to wait on
|
|
1166
|
+
// whatever's going on in that `Promise` before we launch into
|
|
1167
|
+
// rendering the component, doing other lifecycle stuff, etc. So
|
|
1168
|
+
// in that case we assign the returned promise to the variable we
|
|
1169
|
+
// declared above to hold a possible 'queueing' Promise
|
|
1170
|
+
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1136
1171
|
}
|
|
1137
1172
|
}
|
|
1138
1173
|
{
|
|
1139
|
-
|
|
1174
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
|
|
1140
1175
|
}
|
|
1141
1176
|
endSchedule();
|
|
1142
|
-
return
|
|
1177
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1143
1178
|
};
|
|
1179
|
+
/**
|
|
1180
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
1181
|
+
* of functions to be called.
|
|
1182
|
+
*
|
|
1183
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
1184
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
1185
|
+
* be called synchronously (although note that this function may return a
|
|
1186
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
1187
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
1188
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
1189
|
+
* as the first argument.
|
|
1190
|
+
*
|
|
1191
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
1192
|
+
* @param fn a function to enqueue
|
|
1193
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
1194
|
+
*/
|
|
1195
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
1196
|
+
/**
|
|
1197
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
|
1198
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
|
1199
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
|
1200
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
|
1201
|
+
* defined and a function.
|
|
1202
|
+
*
|
|
1203
|
+
* @param maybePromise it might be a promise!
|
|
1204
|
+
* @returns whether it is or not
|
|
1205
|
+
*/
|
|
1206
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
1207
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
1144
1208
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1145
|
-
|
|
1209
|
+
var _a;
|
|
1146
1210
|
const elm = hostRef.$hostElement$;
|
|
1147
1211
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
1148
1212
|
const rc = elm['s-rc'];
|
|
@@ -1164,7 +1228,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1164
1228
|
endRender();
|
|
1165
1229
|
endUpdate();
|
|
1166
1230
|
{
|
|
1167
|
-
const childrenPromises = elm['s-p'];
|
|
1231
|
+
const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
|
|
1168
1232
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1169
1233
|
if (childrenPromises.length === 0) {
|
|
1170
1234
|
postUpdate();
|
|
@@ -1268,9 +1332,6 @@ const safeCall = (instance, method, arg) => {
|
|
|
1268
1332
|
}
|
|
1269
1333
|
return undefined;
|
|
1270
1334
|
};
|
|
1271
|
-
const then = (promise, thenFn) => {
|
|
1272
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1273
|
-
};
|
|
1274
1335
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1275
1336
|
;
|
|
1276
1337
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1434,9 +1495,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1434
1495
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1435
1496
|
// initializeComponent
|
|
1436
1497
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1498
|
+
// Let the runtime know that the component has been initialized
|
|
1499
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1437
1500
|
{
|
|
1438
|
-
// we haven't initialized this element yet
|
|
1439
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1440
1501
|
// lazy loaded components
|
|
1441
1502
|
// request the component's implementation to be
|
|
1442
1503
|
// wired up with the host element
|
|
@@ -1797,10 +1858,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1797
1858
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1798
1859
|
/* webpackMode: "lazy" */
|
|
1799
1860
|
'./b2b-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1800
|
-
case 'b2b-checkbox.cjs':
|
|
1801
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1802
|
-
/* webpackMode: "lazy" */
|
|
1803
|
-
'./b2b-checkbox.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1804
1861
|
case 'b2b-checkbox-group.cjs':
|
|
1805
1862
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1806
1863
|
/* webpackMode: "lazy" */
|
|
@@ -1905,6 +1962,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1905
1962
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1906
1963
|
/* webpackMode: "lazy" */
|
|
1907
1964
|
'./b2b-wizard-step.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1965
|
+
case 'b2b-checkbox_3.cjs':
|
|
1966
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1967
|
+
/* webpackMode: "lazy" */
|
|
1968
|
+
'./b2b-checkbox_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1908
1969
|
case 'b2b-headline.cjs':
|
|
1909
1970
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1910
1971
|
/* webpackMode: "lazy" */
|
|
@@ -1913,10 +1974,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1913
1974
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1914
1975
|
/* webpackMode: "lazy" */
|
|
1915
1976
|
'./b2b-input-group_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1916
|
-
case 'b2b-table-cell_2.cjs':
|
|
1917
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1918
|
-
/* webpackMode: "lazy" */
|
|
1919
|
-
'./b2b-table-cell_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1920
1977
|
case 'b2b-wizard-icon.cjs':
|
|
1921
1978
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1922
1979
|
/* webpackMode: "lazy" */
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-04e07a00.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v3.
|
|
8
|
+
Stencil Client Patch Esm v3.4.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["b2b-search.cjs",[[1,"b2b-search",{"placeholder":[1],"optionsList":[16],"value":[1537],"disabled":[516],"closed":[32]},[[0,"keydown","handleKeyDown"]]]]],["b2b-table-row.cjs",[[1,"b2b-table-row",{"highlight":[4],"color":[1],"type":[1],"isOpen":[32],"toggleAccordion":[64]}]]],["b2b-wizard-step.cjs",[[1,"b2b-wizard-step",{"state":[1],"step":[1],"checkIcon":[4,"check-icon"]}]]],["b2b-modal.cjs",[[1,"b2b-modal",{"heading":[1],"opened":[1540],"backdropDismiss":[4,"backdrop-dismiss"],"escDismiss":[4,"esc-dismiss"],"variant":[1],"iconHover":[32],"isOpen":[32]},[[0,"keydown","handleKeypress"]]]]],["b2b-pagination.cjs",[[1,"b2b-pagination",{"totalPages":[2,"total-pages"],"activePage":[1538,"active-page"],"ariaLabelNextPage":[1,"aria-label-next-page"],"ariaLabelPreviousPage":[1,"aria-label-previous-page"]}]]],["b2b-alert.cjs",[[1,"b2b-alert",{"type":[1],"size":[1],"opened":[1028],"hasCloseButton":[4,"has-close-button"],"customIcon":[4,"custom-icon"]}]]],["b2b-checkbox
|
|
17
|
+
return index.bootstrapLazy([["b2b-search.cjs",[[1,"b2b-search",{"placeholder":[1],"optionsList":[16],"value":[1537],"disabled":[516],"closed":[32]},[[0,"keydown","handleKeyDown"]]]]],["b2b-table-row.cjs",[[1,"b2b-table-row",{"highlight":[4],"color":[1],"accordionType":[1,"accordion-type"],"selectable":[4],"value":[1],"indeterminate":[4],"checked":[1028],"isOpen":[32],"toggleAccordion":[64]},[[0,"b2b-change","toggleSelected"]]]]],["b2b-wizard-step.cjs",[[1,"b2b-wizard-step",{"state":[1],"step":[1],"checkIcon":[4,"check-icon"]}]]],["b2b-modal.cjs",[[1,"b2b-modal",{"heading":[1],"opened":[1540],"backdropDismiss":[4,"backdrop-dismiss"],"escDismiss":[4,"esc-dismiss"],"variant":[1],"iconHover":[32],"isOpen":[32]},[[0,"keydown","handleKeypress"]]]]],["b2b-pagination.cjs",[[1,"b2b-pagination",{"totalPages":[2,"total-pages"],"activePage":[1538,"active-page"],"ariaLabelNextPage":[1,"aria-label-next-page"],"ariaLabelPreviousPage":[1,"aria-label-previous-page"]}]]],["b2b-alert.cjs",[[1,"b2b-alert",{"type":[1],"size":[1],"opened":[1028],"hasCloseButton":[4,"has-close-button"],"customIcon":[4,"custom-icon"]}]]],["b2b-checkbox-group.cjs",[[1,"b2b-checkbox-group",{"label":[1],"required":[4],"disabled":[4],"invalid":[4],"alignment":[1],"hint":[1],"error":[1]},[[0,"b2b-change","handleCheckboxChange"]]]]],["b2b-dropdown.cjs",[[1,"b2b-dropdown",{"label":[1],"required":[516],"name":[513],"disabled":[516],"invalid":[516],"hint":[1],"error":[1]}]]],["b2b-radio-button.cjs",[[1,"b2b-radio-button",{"label":[1],"required":[516],"name":[513],"checked":[1540],"disabled":[516],"invalid":[4],"value":[513],"hint":[1],"error":[1]}]]],["b2b-radio-group.cjs",[[1,"b2b-radio-group",{"name":[1],"label":[1],"required":[4],"alignment":[1],"disabled":[516],"invalid":[516],"hint":[1],"error":[1],"currentValue":[32]},[[0,"b2b-change","handleRadioButtonChange"]]]]],["b2b-required-separator.cjs",[[1,"b2b-required-separator",{"label":[1]}]]],["b2b-tab-group.cjs",[[1,"b2b-tab-group",{"useRouter":[4,"use-router"]},[[0,"click","handleClick"],[0,"keydown","handleKeydown"]]]]],["b2b-textarea.cjs",[[1,"b2b-textarea",{"label":[1],"required":[516],"placeholder":[513],"disabled":[516],"invalid":[516],"autofocus":[516],"resize":[513],"hint":[1],"error":[1],"value":[1537],"name":[513],"maxLength":[514,"max-length"]}]]],["b2b-anchor.cjs",[[1,"b2b-anchor",{"href":[1],"download":[1],"target":[1],"size":[1]}]]],["b2b-card.cjs",[[1,"b2b-card",{"disabled":[4],"href":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","onKeyDown"]]]]],["b2b-grid.cjs",[[1,"b2b-grid",{"margin":[2]}]]],["b2b-grid-col.cjs",[[1,"b2b-grid-col",{"span":[514],"textAlign":[1,"text-align"]}]]],["b2b-grid-row.cjs",[[1,"b2b-grid-row",{"columnGap":[2,"column-gap"],"rowGap":[2,"row-gap"],"alignItems":[1,"align-items"],"justify":[1]}]]],["b2b-label.cjs",[[1,"b2b-label",{"type":[1]}]]],["b2b-paragraph.cjs",[[1,"b2b-paragraph",{"weight":[1],"size":[1],"align":[1]}]]],["b2b-scrollable-container.cjs",[[1,"b2b-scrollable-container"]]],["b2b-tab.cjs",[[1,"b2b-tab",{"selected":[516],"disabled":[4],"invalid":[4]}]]],["b2b-tab-panel.cjs",[[1,"b2b-tab-panel"]]],["b2b-table.cjs",[[1,"b2b-table",{"size":[1]},[[0,"b2b-change","onColumnSelected"]]]]],["b2b-table-rowgroup.cjs",[[1,"b2b-table-rowgroup",{"type":[1],"accordion":[4],"selectable":[4],"opened":[516],"selectedValues":[32],"indeterminate":[32]},[[0,"b2b-open","handleOpenChange"],[0,"b2b-row-selected","handleSelectedChange"]]]]],["b2b-toggle-button.cjs",[[1,"b2b-toggle-button",{"label":[1],"name":[513],"checked":[1540],"disabled":[516],"value":[513]}]]],["b2b-toggle-group.cjs",[[1,"b2b-toggle-group",{"name":[1],"disabled":[516],"currentValue":[32]},[[0,"b2b-change","handleToggleButtonChange"]]]]],["b2b-tooltip.cjs",[[1,"b2b-tooltip",{"position":[1],"content":[1],"trigger":[1],"opened":[1540]}]]],["b2b-wizard.cjs",[[1,"b2b-wizard",{"activeStep":[1,"active-step"],"custom":[4],"checkIcon":[4,"check-icon"]}]]],["b2b-wizard-icon.cjs",[[1,"b2b-wizard-icon",{"step":[1],"state":[1],"checkIcon":[4,"check-icon"]}]]],["b2b-headline.cjs",[[1,"b2b-headline",{"size":[1],"align":[1],"noMargin":[4,"no-margin"]}]]],["b2b-input-group_2.cjs",[[1,"b2b-input-list",{"label":[1],"required":[516],"placeholder":[513],"optionsList":[16],"value":[1537],"disabled":[516],"groupDisabled":[4,"group-disabled"],"hasOptionList":[32],"isElementFocused":[32]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-input-group",{"invalid":[4],"disabled":[4],"error":[1],"hint":[1]}]]],["b2b-rounded-icon.cjs",[[1,"b2b-rounded-icon",{"color":[1],"borderColor":[1,"border-color"],"contentColor":[1,"content-color"]}]]],["b2b-separator.cjs",[[1,"b2b-separator",{"alignment":[1]}]]],["b2b-input-label.cjs",[[1,"b2b-input-label",{"required":[4],"disabled":[4]}]]],["b2b-checkbox_3.cjs",[[1,"b2b-checkbox",{"label":[1],"required":[516],"checked":[1540],"disabled":[516],"indeterminate":[1028],"error":[1],"hint":[1],"name":[513],"value":[520],"invalid":[4],"standalone":[4],"groupDisabled":[4,"group-disabled"]}],[1,"b2b-table-cell",{"textWrap":[516,"text-wrap"],"size":[1],"align":[1],"divider":[4],"color":[1],"useTextEllipsis":[32]}],[1,"b2b-table-header",{"divider":[4],"fixed":[4],"sortDirection":[1537,"sort-direction"],"sortId":[1,"sort-id"],"active":[32]}]]],["b2b-input_2.cjs",[[1,"b2b-input",{"label":[1],"required":[516],"type":[513],"disabled":[516],"invalid":[516],"placeholder":[513],"value":[1537],"name":[513],"hint":[1],"error":[1],"autofocus":[4],"groupDisabled":[4,"group-disabled"],"hasFocus":[32],"hasTextPrefix":[32],"hasTextSuffix":[32],"setFocus":[64],"clearInput":[64]}],[0,"b2b-input-list-option",{"option":[1]},[[0,"keydown","handleKeyDown"]]]]],["b2b-button_2.cjs",[[1,"b2b-button",{"variant":[1],"type":[1],"size":[1],"disabled":[516],"loading":[4],"active":[516],"href":[1],"target":[1],"download":[1],"groupDisabled":[4,"group-disabled"],"setFocus":[64]},[[2,"click","handleHostClick"]]],[1,"b2b-spinner",{"size":[1],"color":[1]}]]],["b2b-icon.cjs",[[1,"b2b-icon",{"icon":[1],"color":[1],"size":[1],"clickable":[4],"pathData":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -19,7 +19,7 @@ const TableSortDirections = {
|
|
|
19
19
|
ASC: 'ascending',
|
|
20
20
|
DESC: 'descending',
|
|
21
21
|
};
|
|
22
|
-
const
|
|
22
|
+
const TableAccordionRowTypes = {
|
|
23
23
|
PARENT: 'parent',
|
|
24
24
|
CHILD: 'child',
|
|
25
25
|
HEADER: 'header',
|
|
@@ -31,8 +31,8 @@ const TableColourOptions = {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
exports.ContentAlignment = ContentAlignment;
|
|
34
|
+
exports.TableAccordionRowTypes = TableAccordionRowTypes;
|
|
34
35
|
exports.TableColourOptions = TableColourOptions;
|
|
35
|
-
exports.TableRowTypes = TableRowTypes;
|
|
36
36
|
exports.TableRowgroupTypes = TableRowgroupTypes;
|
|
37
37
|
exports.TableSizes = TableSizes;
|
|
38
38
|
exports.TableSortDirections = TableSortDirections;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 22 Aug 2023 12:55:37 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on
|
|
125
|
+
* Generated on Tue, 22 Aug 2023 12:55:37 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
.b2b-alert--info {
|
|
227
227
|
background-color: var(--b2b-color-info-50);
|
|
228
228
|
}
|
|
229
|
-
.b2b-alert--
|
|
229
|
+
.b2b-alert--info__icon {
|
|
230
230
|
color: var(--b2b-color-info-100);
|
|
231
231
|
}
|
|
232
232
|
.b2b-alert--warning {
|
|
@@ -239,10 +239,10 @@
|
|
|
239
239
|
.b2b-alert--success {
|
|
240
240
|
background-color: var(--b2b-color-success-50);
|
|
241
241
|
}
|
|
242
|
-
.b2b-alert--
|
|
242
|
+
.b2b-alert--success__icon {
|
|
243
243
|
color: var(--b2b-color-success-100);
|
|
244
244
|
}
|
|
245
|
-
.b2b-
|
|
245
|
+
.b2b-alert__close-icon {
|
|
246
246
|
padding-top: var(--b2b-size-7);
|
|
247
247
|
width: var(--b2b-size-30);
|
|
248
248
|
height: var(--b2b-size-35);
|
|
@@ -250,13 +250,13 @@
|
|
|
250
250
|
fill: var(--b2b-color-grey-400);
|
|
251
251
|
flex-shrink: 0;
|
|
252
252
|
}
|
|
253
|
-
.b2b-
|
|
253
|
+
.b2b-alert__content {
|
|
254
254
|
display: flex;
|
|
255
255
|
align-items: center;
|
|
256
256
|
flex: 2;
|
|
257
257
|
gap: var(--b2b-size-30);
|
|
258
258
|
}
|
|
259
|
-
.b2b-
|
|
259
|
+
.b2b-alert__content p {
|
|
260
260
|
width: 100%;
|
|
261
261
|
margin: 0;
|
|
262
262
|
padding: var(--b2b-size-5) 0 var(--b2b-size-1) 0;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { newE2EPage } from '@stencil/core/testing';
|
|
2
|
+
describe('B2B-Alert', () => {
|
|
3
|
+
it('should render the alert component', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent(`<b2b-alert></alert>`);
|
|
6
|
+
const element = await page.find('b2b-alert');
|
|
7
|
+
expect(element).not.toBeNull();
|
|
8
|
+
});
|
|
9
|
+
it('should not be visible by default', async () => {
|
|
10
|
+
const page = await newE2EPage();
|
|
11
|
+
await page.setContent(`<b2b-alert></alert>`);
|
|
12
|
+
const element = await page.find('b2b-alert >>> div.b2b-alert');
|
|
13
|
+
expect(element).not.toHaveClass('b2b-alert--open');
|
|
14
|
+
const alert = await page.find('b2b-alert');
|
|
15
|
+
expect(await alert.getProperty('opened')).toBe(false);
|
|
16
|
+
});
|
|
17
|
+
it('should open the alert', async () => {
|
|
18
|
+
const page = await newE2EPage();
|
|
19
|
+
await page.setContent(`<b2b-alert opened></b2b-alert>`);
|
|
20
|
+
const element = await page.find('b2b-alert >>> div');
|
|
21
|
+
expect(await element.isVisible()).toBe(true);
|
|
22
|
+
});
|
|
23
|
+
it('should not render text in a small alert', async () => {
|
|
24
|
+
const page = await newE2EPage();
|
|
25
|
+
await page.setContent(`<b2b-alert opened>test</b2b-alert>`);
|
|
26
|
+
const element = await page.find('b2b-alert >>> p');
|
|
27
|
+
expect(element).toBeNull();
|
|
28
|
+
});
|
|
29
|
+
it('should render a large alert with text', async () => {
|
|
30
|
+
const page = await newE2EPage();
|
|
31
|
+
await page.setContent(`<b2b-alert opened size={large}>test</b2b-alert>`);
|
|
32
|
+
const element = await page.find({ text: 'test' });
|
|
33
|
+
expect(element).not.toBeNull();
|
|
34
|
+
});
|
|
35
|
+
it('should render a close button by default in a large alert', async () => {
|
|
36
|
+
const page = await newE2EPage();
|
|
37
|
+
await page.setContent(`<b2b-alert opened size="large">test</b2b-alert>`);
|
|
38
|
+
const alert = await page.find('b2b-alert >>> div');
|
|
39
|
+
const element = await page.find('b2b-alert >>> div.b2b-alert__close-icon');
|
|
40
|
+
expect(element).not.toBeNull();
|
|
41
|
+
await page.evaluate(() => {
|
|
42
|
+
document
|
|
43
|
+
.querySelector('b2b-alert')
|
|
44
|
+
.shadowRoot.querySelector('.b2b-alert__close-icon').click();
|
|
45
|
+
});
|
|
46
|
+
await page.waitForChanges();
|
|
47
|
+
expect(await alert.isVisible()).toBeFalsy();
|
|
48
|
+
});
|
|
49
|
+
it('should not render a close button on an error alert', async () => {
|
|
50
|
+
const page = await newE2EPage();
|
|
51
|
+
await page.setContent(`<b2b-alert opened size="large" type="error">test</b2b-alert>`);
|
|
52
|
+
const element = await page.find('b2b-alert >>> div.b2b-alert__close-icon');
|
|
53
|
+
expect(element).toBeNull();
|
|
54
|
+
});
|
|
55
|
+
it('should not render a close button in a small alert', async () => {
|
|
56
|
+
const page = await newE2EPage();
|
|
57
|
+
await page.setContent(`<b2b-alert opened>test</b2b-alert>`);
|
|
58
|
+
const element = await page.find('b2b-alert >>> div.b2b-alert__close-icon');
|
|
59
|
+
expect(element).toBeNull();
|
|
60
|
+
});
|
|
61
|
+
it('should render with a custom icon', async () => {
|
|
62
|
+
const page = await newE2EPage();
|
|
63
|
+
await page.setContent(`<b2b-alert opened custom-icon><b2b-icon icon="b2b_icon-menu"></b2b-icon></b2b-alert>`);
|
|
64
|
+
const element = await page.find('b2b-icon');
|
|
65
|
+
expect(element).not.toBeNull();
|
|
66
|
+
});
|
|
67
|
+
});
|
|
@@ -30,9 +30,9 @@ export class AlertComponent {
|
|
|
30
30
|
[`b2b-alert--${this.type}`]: true,
|
|
31
31
|
[`b2b-alert--${this.size}`]: true,
|
|
32
32
|
'b2b-alert--open': this.opened,
|
|
33
|
-
} }, h("div", { class: "b2b-
|
|
33
|
+
} }, h("div", { class: "b2b-alert__content" }, h("span", { class: { [`b2b-alert--${this.type}__icon`]: true } }, this.canCustomizeIcon() ? h("slot", null) : this.chooseIcon()), this.size === 'large' && (h("p", null, h("slot", null)))), this.canClose() && (
|
|
34
34
|
//using a custom icon as this component needs an icon size that is not supported in the icon component
|
|
35
|
-
h("div", { class: "b2b-
|
|
35
|
+
h("div", { class: "b2b-alert__close-icon", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { d: "M17.886 16l8.057-8.057a1.333 1.333 0 1 0-1.885-1.886l-8.057 8.057-8.057-8.057a1.333 1.333 0 1 0-1.886 1.886L14.115 16l-8.057 8.057a1.332 1.332 0 1 0 1.886 1.885l8.057-8.057 8.057 8.057a1.331 1.331 0 0 0 1.886 0 1.332 1.332 0 0 0 0-1.885L17.887 16z" })))))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "b2b-alert"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 22 Aug 2023 12:55:37 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on
|
|
125
|
+
* Generated on Tue, 22 Aug 2023 12:55:37 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { newSpecPage } from '@stencil/core/testing';
|
|
2
|
+
import { h } from '@stencil/core';
|
|
3
|
+
import { AnchorComponent } from './anchor';
|
|
4
|
+
const testRef = 'https://www.otto.de';
|
|
5
|
+
it('should render the anchor component with default values', async () => {
|
|
6
|
+
const page = await newSpecPage({
|
|
7
|
+
components: [AnchorComponent],
|
|
8
|
+
template: () => (h("b2b-anchor", { href: testRef }, "This is a test anchor.")),
|
|
9
|
+
});
|
|
10
|
+
expect(page.root).toEqualHtml(`
|
|
11
|
+
<b2b-anchor>
|
|
12
|
+
<mock:shadow-root>
|
|
13
|
+
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit" target="_self">
|
|
14
|
+
<slot></slot>
|
|
15
|
+
</a>
|
|
16
|
+
</mock:shadow-root>
|
|
17
|
+
This is a test anchor.
|
|
18
|
+
</b2b-anchor>
|
|
19
|
+
`);
|
|
20
|
+
});
|
|
21
|
+
it('should change the font size of the anchor component if specified', async () => {
|
|
22
|
+
const page = await newSpecPage({
|
|
23
|
+
components: [AnchorComponent],
|
|
24
|
+
template: () => (h("b2b-anchor", { href: testRef, size: "100" }, "This is a test anchor.")),
|
|
25
|
+
});
|
|
26
|
+
expect(page.root).toEqualHtml(`
|
|
27
|
+
<b2b-anchor>
|
|
28
|
+
<mock:shadow-root>
|
|
29
|
+
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--100" target="_self">
|
|
30
|
+
<slot></slot>
|
|
31
|
+
</a>
|
|
32
|
+
</mock:shadow-root>
|
|
33
|
+
This is a test anchor.
|
|
34
|
+
</b2b-anchor>
|
|
35
|
+
`);
|
|
36
|
+
});
|
|
37
|
+
it('should change the download string if specified', async () => {
|
|
38
|
+
const page = await newSpecPage({
|
|
39
|
+
components: [AnchorComponent],
|
|
40
|
+
template: () => (h("b2b-anchor", { href: testRef, download: "This is a test download" }, "This is a test anchor.")),
|
|
41
|
+
});
|
|
42
|
+
expect(page.root).toEqualHtml(`
|
|
43
|
+
<b2b-anchor>
|
|
44
|
+
<mock:shadow-root>
|
|
45
|
+
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit" target="_self" download="This is a test download">
|
|
46
|
+
<slot></slot>
|
|
47
|
+
</a>
|
|
48
|
+
</mock:shadow-root>
|
|
49
|
+
This is a test anchor.
|
|
50
|
+
</b2b-anchor>
|
|
51
|
+
`);
|
|
52
|
+
});
|
|
53
|
+
it('should change the target property if specified', async () => {
|
|
54
|
+
const page = await newSpecPage({
|
|
55
|
+
components: [AnchorComponent],
|
|
56
|
+
template: () => (h("b2b-anchor", { href: testRef, target: "parent" }, "This is a test anchor.")),
|
|
57
|
+
});
|
|
58
|
+
expect(page.root).toEqualHtml(`
|
|
59
|
+
<b2b-anchor>
|
|
60
|
+
<mock:shadow-root>
|
|
61
|
+
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit" target="_parent">
|
|
62
|
+
<slot></slot>
|
|
63
|
+
</a>
|
|
64
|
+
</mock:shadow-root>
|
|
65
|
+
This is a test anchor.
|
|
66
|
+
</b2b-anchor>
|
|
67
|
+
`);
|
|
68
|
+
});
|