@otto-de/b2b-core-components 1.32.3 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/icons-100/b2b_icon-arrow-misdirected.svg +3 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-clipboard-check.svg +3 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-cosmetics.svg +3 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-lock-open.svg +4 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-person-wheelchair.svg +3 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-speech-bubble-sparkles.svg +3 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-sustainable-organic-food.svg +3 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-universal-access.svg +3 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-voice-sparkles.svg +3 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-webhook.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-long-left.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-long-right.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-misdirected.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-return.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-callback.svg +10 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-feedback.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-flag-chequered.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-flame.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-inplace-zoom.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-lock-closed.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-lock-open.svg +10 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-notification.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-pending.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-phone.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-print.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-qr-code.svg +10 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-skip-link.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-smiley-angry.svg +13 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-smiley-happy.svg +10 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-smiley-negative.svg +10 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-smiley-neutral.svg +10 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-sparkles.svg +10 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-voucher.svg +3 -0
- package/dist/b2b-core-components/{p-28a06853.entry.js → p-04ac661d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-660c758b.entry.js → p-04f5748b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2d625559.entry.js → p-0648230f.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0bd177d4.entry.js → p-0aa0c59a.entry.js} +1 -1
- package/dist/b2b-core-components/{p-7df12ddf.entry.js → p-0ab41eb5.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e7590b6e.entry.js → p-13d37dec.entry.js} +1 -1
- package/dist/b2b-core-components/{p-bf9c8817.entry.js → p-17778cfc.entry.js} +1 -1
- package/dist/b2b-core-components/p-1af4d133.entry.js +1 -0
- package/dist/b2b-core-components/{p-fc431bbe.entry.js → p-2486830b.entry.js} +1 -1
- package/dist/b2b-core-components/p-2488ef54.entry.js +1 -0
- package/dist/b2b-core-components/{p-78b6ee25.entry.js → p-24c6aa56.entry.js} +1 -1
- package/dist/b2b-core-components/p-260dcc05.entry.js +1 -0
- package/dist/b2b-core-components/{p-797c85c2.entry.js → p-371df3f8.entry.js} +1 -1
- package/dist/b2b-core-components/p-3c3edafd.entry.js +1 -0
- package/dist/b2b-core-components/p-3d8e14e6.entry.js +1 -0
- package/dist/b2b-core-components/{p-521303c4.entry.js → p-433a3f3e.entry.js} +1 -1
- package/dist/b2b-core-components/{p-fb0338a8.entry.js → p-4b27240b.entry.js} +1 -1
- package/dist/b2b-core-components/p-4e0ed246.entry.js +1 -0
- package/dist/b2b-core-components/p-5dacf68a.entry.js +1 -0
- package/dist/b2b-core-components/p-5f3ba5e6.js +1 -0
- package/dist/b2b-core-components/{p-6749d668.entry.js → p-66c435c1.entry.js} +1 -1
- package/dist/b2b-core-components/p-703da47c.entry.js +1 -0
- package/dist/b2b-core-components/{p-db92de92.entry.js → p-79a01d0d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-092855b3.entry.js → p-81cffff6.entry.js} +1 -1
- package/dist/b2b-core-components/p-89e817e9.entry.js +1 -0
- package/dist/b2b-core-components/{p-26755654.entry.js → p-8aba659a.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0322b052.entry.js → p-8ae9c2fe.entry.js} +1 -1
- package/dist/b2b-core-components/p-953fc46b.js +1 -0
- package/dist/b2b-core-components/{p-16872771.entry.js → p-997a232e.entry.js} +1 -1
- package/dist/b2b-core-components/p-a46674a7.entry.js +1 -0
- package/dist/b2b-core-components/{p-848e4af7.entry.js → p-a9c9552f.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1abe3f2f.entry.js → p-b175fb79.entry.js} +1 -1
- package/dist/b2b-core-components/{p-bade1cab.entry.js → p-b4310b58.entry.js} +1 -1
- package/dist/b2b-core-components/p-b481eb09.entry.js +1 -0
- package/dist/b2b-core-components/{p-40371f89.entry.js → p-b9a6ad5d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-4dad7870.entry.js → p-bc2b17c6.entry.js} +1 -1
- package/dist/b2b-core-components/{p-01f46118.entry.js → p-c086532b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-58e9953b.entry.js → p-c25832e1.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ff6a0874.entry.js → p-c43e067a.entry.js} +1 -1
- package/dist/b2b-core-components/p-c8b5c7e2.entry.js +1 -0
- package/dist/b2b-core-components/{p-190a7350.entry.js → p-c8cc1797.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ed5c6006.entry.js → p-d163d252.entry.js} +1 -1
- package/dist/b2b-core-components/{p-dcef84a5.entry.js → p-d2f4db88.entry.js} +1 -1
- package/dist/b2b-core-components/{p-fedefca2.entry.js → p-d62e615b.entry.js} +1 -1
- package/dist/b2b-core-components/p-d97a7119.entry.js +1 -0
- package/dist/b2b-core-components/p-dff37884.entry.js +1 -0
- package/dist/b2b-core-components/{p-b1191aa7.entry.js → p-e3877fc1.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e2518c43.entry.js → p-e512628d.entry.js} +1 -1
- package/dist/b2b-core-components/p-e8151556.entry.js +1 -0
- package/dist/b2b-core-components/p-e90d3aba.entry.js +1 -0
- package/dist/b2b-core-components/{p-3a088f2b.entry.js → p-f3c0fe56.entry.js} +1 -1
- package/dist/b2b-core-components/p-f4f20944.entry.js +1 -0
- package/dist/b2b-core-components/{p-ef598009.entry.js → p-f9f9820a.entry.js} +1 -1
- package/dist/b2b-core-components/p-fea90226.entry.js +1 -0
- package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-checkbox-group.cjs.entry.js +5 -12
- package/dist/cjs/b2b-checkbox.cjs.entry.js +6 -4
- package/dist/cjs/b2b-chip-component_2.cjs.entry.js +4 -2
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-custom-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/{b2b-date-picker-days_5.cjs.entry.js → b2b-date-picker-days-header_4.cjs.entry.js} +30 -196
- package/dist/cjs/b2b-date-picker-days.cjs.entry.js +180 -0
- package/dist/cjs/b2b-date-picker.cjs.entry.js +10 -5
- package/dist/cjs/b2b-date-range-picker-days_2.cjs.entry.js +201 -0
- package/dist/cjs/b2b-date-range-picker.cjs.entry.js +159 -0
- package/dist/cjs/b2b-dropdown.cjs.entry.js +34 -29
- package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +1 -1
- package/dist/cjs/b2b-flyout-menu.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-icon-100.cjs.entry.js +401 -392
- package/dist/cjs/b2b-icon-50.cjs.entry.js +57 -35
- package/dist/cjs/b2b-icon.cjs.entry.js +355 -356
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +6 -13
- package/dist/cjs/b2b-input-label.cjs.entry.js +2 -2
- package/dist/cjs/b2b-input_2.cjs.entry.js +8 -10
- package/dist/cjs/b2b-label.cjs.entry.js +2 -2
- package/dist/cjs/b2b-modal.cjs.entry.js +2 -2
- package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +82 -55
- package/dist/cjs/b2b-pagination.cjs.entry.js +1 -1
- package/dist/cjs/b2b-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/b2b-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/b2b-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/b2b-required-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-rounded-icon.cjs.entry.js +4 -4
- package/dist/cjs/b2b-scrollable-container.cjs.entry.js +1 -1
- package/dist/cjs/b2b-search.cjs.entry.js +1 -1
- package/dist/cjs/b2b-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-shimmer.cjs.entry.js +1 -1
- package/dist/cjs/b2b-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/b2b-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table-cell_2.cjs.entry.js +3 -3
- package/dist/cjs/b2b-table-row.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table.cjs.entry.js +2 -2
- package/dist/cjs/b2b-textarea.cjs.entry.js +2 -2
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-chip.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +2 -2
- package/dist/cjs/b2b-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/b2b-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/b2b-wizard-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-wizard-step.cjs.entry.js +2 -2
- package/dist/cjs/b2b-wizard.cjs.entry.js +1 -1
- package/dist/cjs/date-range-picker-utils-f4b4f5bf.js +135 -0
- package/dist/cjs/index-668808fd.js +14 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{request-801c6ba1.js → request-a16ba589.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/checkbox/checkbox.js +6 -4
- package/dist/collection/components/checkbox-group/checkbox-group.js +5 -12
- package/dist/collection/components/custom-dropdown/custom-dropdown.js +6 -6
- package/dist/collection/components/date-picker/date-picker-months.js +38 -10
- package/dist/collection/components/date-picker/date-picker-years.js +35 -15
- package/dist/collection/components/date-picker/date-picker.css +3 -4
- package/dist/collection/components/date-picker/date-picker.js +11 -6
- package/dist/collection/components/date-picker/date-picker.stories.js +9 -3
- package/dist/collection/components/date-range-picker/date-range-picker-days.css +280 -0
- package/dist/collection/components/date-range-picker/date-range-picker-days.e2e.js +19 -0
- package/dist/collection/components/date-range-picker/date-range-picker-days.js +349 -0
- package/dist/collection/components/date-range-picker/date-range-picker-utils.js +126 -0
- package/dist/collection/components/date-range-picker/date-range-picker-utils.spec.js +189 -0
- package/dist/collection/components/date-range-picker/date-range-picker.css +327 -0
- package/dist/collection/components/date-range-picker/date-range-picker.e2e.js +45 -0
- package/dist/collection/components/date-range-picker/date-range-picker.js +466 -0
- package/dist/collection/components/date-range-picker/date-range-picker.spec.js +18 -0
- package/dist/collection/components/date-range-picker/date-range-picker.stories.js +131 -0
- package/dist/collection/components/dropdown/dropdown.css +4 -0
- package/dist/collection/components/dropdown/dropdown.e2e.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +56 -29
- package/dist/collection/components/dropdown/dropdown.stories.js +17 -4
- package/dist/collection/components/flyout-menu/flyout-menu-option.js +1 -1
- package/dist/collection/components/flyout-menu/flyout-menu.e2e.js +7 -2
- package/dist/collection/components/flyout-menu/flyout-menu.js +3 -3
- package/dist/collection/components/grid/column.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/grid/row.js +2 -2
- package/dist/collection/components/icon/types.js +354 -355
- package/dist/collection/components/icon-100/icon-100.js +1 -1
- package/dist/collection/components/icon-100/icon-100.stories.js +1 -1
- package/dist/collection/components/icon-100/icons-100/b2b_icon-arrow-misdirected.svg +3 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-clipboard-check.svg +3 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-cosmetics.svg +3 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-lock-open.svg +4 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-person-wheelchair.svg +3 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-speech-bubble-sparkles.svg +3 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-sustainable-organic-food.svg +3 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-universal-access.svg +3 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-voice-sparkles.svg +3 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-webhook.svg +3 -0
- package/dist/collection/components/icon-100/types.js +400 -391
- package/dist/collection/components/icon-50/icon-50.js +1 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-long-left.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-long-right.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-misdirected.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-return.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-callback.svg +10 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-feedback.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-flag-chequered.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-flame.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-inplace-zoom.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-lock-closed.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-lock-open.svg +10 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-notification.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-pending.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-phone.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-print.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-qr-code.svg +10 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-skip-link.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-angry.svg +13 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-happy.svg +10 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-negative.svg +10 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-neutral.svg +10 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-sparkles.svg +10 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-voucher.svg +3 -0
- package/dist/collection/components/icon-50/types.js +56 -34
- package/dist/collection/components/input/input.js +7 -9
- package/dist/collection/components/input-group/input-group.js +4 -11
- package/dist/collection/components/input-label/input-label.js +2 -2
- package/dist/collection/components/input-list/input-list-option.js +1 -1
- package/dist/collection/components/input-list/input-list.js +2 -2
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.e2e.js +15 -0
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +121 -61
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.stories.js +44 -11
- package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +22 -3
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/paragraph/paragraph.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +3 -3
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- package/dist/collection/components/required-separator/required-separator.js +1 -1
- package/dist/collection/components/rounded-icon/rounded-icon.js +4 -4
- package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
- package/dist/collection/components/search/search.js +1 -1
- package/dist/collection/components/separator/separator.js +1 -1
- package/dist/collection/components/shimmer/shimmer.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +5 -5
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-group/tab-group.js +1 -1
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table-cell/table-cell.js +2 -2
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-row/table-row.js +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +2 -2
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/toggle-button/toggle-button.js +3 -3
- package/dist/collection/components/toggle-chip/toggle-chip.js +3 -3
- package/dist/collection/components/toggle-group/toggle-group.js +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.css +1 -1
- package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
- package/dist/collection/components/toggle-switch/toggle-switch.stories.js +15 -9
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/wizard/wizard-step.js +2 -2
- package/dist/collection/components/wizard/wizard.js +1 -1
- package/dist/collection/components/wizard-icon/wizard-icon.js +1 -1
- package/dist/collection/docs/config/utils.js +10 -7
- package/dist/collection/utils/icon/request.js +1 -1
- package/dist/components/b2b-checkbox-group.js +5 -12
- package/dist/components/b2b-custom-dropdown.js +5 -5
- package/dist/components/b2b-date-picker.js +10 -5
- package/dist/components/b2b-date-range-picker-days.d.ts +11 -0
- package/dist/components/b2b-date-range-picker-days.js +6 -0
- package/dist/components/b2b-date-range-picker.d.ts +11 -0
- package/dist/components/b2b-date-range-picker.js +246 -0
- package/dist/components/b2b-dropdown.js +36 -29
- package/dist/components/b2b-flyout-menu-option.js +1 -1
- package/dist/components/b2b-flyout-menu.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-icon-50.js +56 -34
- package/dist/components/b2b-icon.js +354 -355
- package/dist/components/b2b-label.js +2 -2
- package/dist/components/b2b-modal.js +2 -2
- package/dist/components/b2b-multiselect-dropdown.js +85 -55
- package/dist/components/b2b-pagination.js +1 -1
- package/dist/components/b2b-paragraph.js +1 -51
- package/dist/components/b2b-progress-bar.js +3 -3
- package/dist/components/b2b-radio-button.js +2 -2
- package/dist/components/b2b-radio-group.js +2 -2
- package/dist/components/b2b-required-separator.js +1 -1
- package/dist/components/b2b-scrollable-container.js +1 -1
- package/dist/components/b2b-search.js +1 -1
- package/dist/components/b2b-shimmer.js +1 -1
- package/dist/components/b2b-snackbar.js +4 -4
- package/dist/components/b2b-tab-group.js +1 -1
- package/dist/components/b2b-tab-panel.js +1 -1
- package/dist/components/b2b-tab.js +2 -2
- package/dist/components/b2b-table-row.js +2 -2
- package/dist/components/b2b-table-rowgroup.js +2 -2
- package/dist/components/b2b-table.js +2 -2
- package/dist/components/b2b-textarea.js +2 -2
- package/dist/components/b2b-toggle-button.js +3 -3
- package/dist/components/b2b-toggle-chip.js +3 -3
- package/dist/components/b2b-toggle-group.js +2 -2
- package/dist/components/b2b-toggle-switch.js +5 -5
- package/dist/components/b2b-tooltip.js +3 -3
- package/dist/components/b2b-wizard-step.js +2 -2
- package/dist/components/b2b-wizard.js +1 -1
- package/dist/components/checkbox.js +6 -4
- package/dist/components/date-picker-months.js +16 -8
- package/dist/components/date-picker-years.js +14 -14
- package/dist/components/date-range-picker-days.js +316 -0
- package/dist/components/icon-100.js +400 -391
- package/dist/components/input-group.js +4 -11
- package/dist/components/input-label.js +2 -2
- package/dist/components/input-list-option.js +1 -1
- package/dist/components/input-list.js +2 -2
- package/dist/components/input.js +7 -9
- package/dist/components/multiselect-option.js +5 -2
- package/dist/{cjs/b2b-paragraph.cjs.entry.js → components/paragraph.js} +31 -13
- package/dist/components/request.js +1 -1
- package/dist/components/rounded-icon.js +4 -4
- package/dist/components/separator.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/table-cell.js +2 -2
- package/dist/components/table-header.js +1 -1
- package/dist/components/wizard-icon.js +1 -1
- package/dist/custom-elements.json +175 -2
- package/dist/esm/b2b-button_2.entry.js +1 -1
- package/dist/esm/b2b-checkbox-group.entry.js +5 -12
- package/dist/esm/b2b-checkbox.entry.js +6 -4
- package/dist/esm/b2b-chip-component_2.entry.js +4 -2
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-custom-dropdown.entry.js +5 -5
- package/dist/esm/{b2b-date-picker-days_5.entry.js → b2b-date-picker-days-header_4.entry.js} +32 -197
- package/dist/esm/b2b-date-picker-days.entry.js +176 -0
- package/dist/esm/b2b-date-picker.entry.js +10 -5
- package/dist/esm/b2b-date-range-picker-days_2.entry.js +196 -0
- package/dist/esm/b2b-date-range-picker.entry.js +155 -0
- package/dist/esm/b2b-dropdown.entry.js +34 -29
- package/dist/esm/b2b-flyout-menu-option.entry.js +1 -1
- package/dist/esm/b2b-flyout-menu.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-icon-100.entry.js +401 -392
- package/dist/esm/b2b-icon-50.entry.js +57 -35
- package/dist/esm/b2b-icon.entry.js +355 -356
- package/dist/esm/b2b-input-group_2.entry.js +6 -13
- package/dist/esm/b2b-input-label.entry.js +2 -2
- package/dist/esm/b2b-input_2.entry.js +8 -10
- package/dist/esm/b2b-label.entry.js +2 -2
- package/dist/esm/b2b-modal.entry.js +2 -2
- package/dist/esm/b2b-multiselect-dropdown.entry.js +82 -55
- package/dist/esm/b2b-pagination.entry.js +1 -1
- package/dist/esm/b2b-progress-bar.entry.js +3 -3
- package/dist/esm/b2b-radio-button.entry.js +2 -2
- package/dist/esm/b2b-radio-group.entry.js +2 -2
- package/dist/esm/b2b-required-separator.entry.js +1 -1
- package/dist/esm/b2b-rounded-icon.entry.js +4 -4
- package/dist/esm/b2b-scrollable-container.entry.js +1 -1
- package/dist/esm/b2b-search.entry.js +1 -1
- package/dist/esm/b2b-separator.entry.js +1 -1
- package/dist/esm/b2b-shimmer.entry.js +1 -1
- package/dist/esm/b2b-snackbar.entry.js +4 -4
- package/dist/esm/b2b-tab-group.entry.js +1 -1
- package/dist/esm/b2b-tab-panel.entry.js +1 -1
- package/dist/esm/b2b-tab.entry.js +2 -2
- package/dist/esm/b2b-table-cell_2.entry.js +3 -3
- package/dist/esm/b2b-table-row.entry.js +2 -2
- package/dist/esm/b2b-table-rowgroup.entry.js +2 -2
- package/dist/esm/b2b-table.entry.js +2 -2
- package/dist/esm/b2b-textarea.entry.js +2 -2
- package/dist/esm/b2b-toggle-button.entry.js +3 -3
- package/dist/esm/b2b-toggle-chip.entry.js +3 -3
- package/dist/esm/b2b-toggle-group.entry.js +2 -2
- package/dist/esm/b2b-toggle-switch.entry.js +5 -5
- package/dist/esm/b2b-tooltip.entry.js +3 -3
- package/dist/esm/b2b-wizard-icon.entry.js +1 -1
- package/dist/esm/b2b-wizard-step.entry.js +2 -2
- package/dist/esm/b2b-wizard.entry.js +1 -1
- package/dist/esm/date-range-picker-utils-92a5fb50.js +128 -0
- package/dist/esm/index-ab9eb36d.js +14 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{request-1d048f8a.js → request-6bb66f19.js} +1 -1
- package/dist/types/components/custom-dropdown/custom-dropdown.d.ts +5 -3
- package/dist/types/components/date-picker/date-picker-months.d.ts +7 -4
- package/dist/types/components/date-picker/date-picker-years.d.ts +6 -5
- package/dist/types/components/date-picker/date-picker.d.ts +4 -4
- package/dist/types/components/date-range-picker/date-range-picker-days.d.ts +57 -0
- package/dist/types/components/date-range-picker/date-range-picker-utils.d.ts +58 -0
- package/dist/types/components/date-range-picker/date-range-picker.d.ts +89 -0
- package/dist/types/components/date-range-picker/date-range-picker.stories.d.ts +23 -0
- package/dist/types/components/dropdown/dropdown.d.ts +4 -2
- package/dist/types/components/dropdown/dropdown.stories.d.ts +1 -0
- package/dist/types/components/icon/types.d.ts +1 -1
- package/dist/types/components/icon-100/types.d.ts +2 -2
- package/dist/types/components/icon-50/types.d.ts +2 -2
- package/dist/types/components/multiselect-dropdown/multiselect-dropdown.d.ts +19 -9
- package/dist/types/components/multiselect-dropdown/multiselect-dropdown.stories.d.ts +23 -4
- package/dist/types/components/multiselect-dropdown/multiselect-option/multiselect-option.d.ts +3 -1
- package/dist/types/components/snackbar/snackbar.d.ts +2 -2
- package/dist/types/components/toggle-switch/toggle-switch.stories.d.ts +16 -4
- package/dist/types/components.d.ts +248 -10
- package/dist/types/docs/config/utils.d.ts +14 -0
- package/dist/types/utils/interfaces/form.interface.d.ts +6 -2
- package/dist/web-types.json +247 -15
- package/package.json +2 -2
- package/dist/b2b-core-components/p-0bf2c192.entry.js +0 -1
- package/dist/b2b-core-components/p-15df2a47.entry.js +0 -1
- package/dist/b2b-core-components/p-1d6f73dd.entry.js +0 -1
- package/dist/b2b-core-components/p-54eee61c.entry.js +0 -1
- package/dist/b2b-core-components/p-61b2a6ad.js +0 -1
- package/dist/b2b-core-components/p-639d68a2.entry.js +0 -1
- package/dist/b2b-core-components/p-67484ecc.entry.js +0 -1
- package/dist/b2b-core-components/p-6b291a01.entry.js +0 -1
- package/dist/b2b-core-components/p-6c60d337.entry.js +0 -1
- package/dist/b2b-core-components/p-6d64a994.entry.js +0 -1
- package/dist/b2b-core-components/p-82a2809e.entry.js +0 -1
- package/dist/b2b-core-components/p-a614bd46.entry.js +0 -1
- package/dist/b2b-core-components/p-ae7ec34a.entry.js +0 -1
- package/dist/b2b-core-components/p-b4d46a07.entry.js +0 -1
- package/dist/b2b-core-components/p-d88113f5.entry.js +0 -1
- package/dist/b2b-core-components/p-f661154c.entry.js +0 -1
- package/dist/b2b-core-components/p-f83dd748.entry.js +0 -1
- package/dist/esm/b2b-paragraph.entry.js +0 -31
|
@@ -28,16 +28,9 @@ const B2BInputGroup = class {
|
|
|
28
28
|
};
|
|
29
29
|
this.toggleAllDisabled = () => {
|
|
30
30
|
let nodes = this.getChildNodes();
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
nodes.forEach(node => {
|
|
38
|
-
node.groupDisabled = this.disabled;
|
|
39
|
-
});
|
|
40
|
-
}
|
|
31
|
+
nodes.forEach(node => {
|
|
32
|
+
node.groupDisabled = this.disabled;
|
|
33
|
+
});
|
|
41
34
|
};
|
|
42
35
|
this.getChildNodes = () => {
|
|
43
36
|
return Array.from(this.host.children);
|
|
@@ -61,7 +54,7 @@ const B2BInputGroup = class {
|
|
|
61
54
|
}
|
|
62
55
|
}
|
|
63
56
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '30fc190f60b27b6f11fdcc7ed37cc95eee557e5e' }, h("div", { key: '054b44ad5994365e1ea8034a854e2d1b23c6d5e2', class: { 'b2b-input-wrapper': true } }, h("slot", { key: '73b19a2684e84873ada8ec3b2f5c4f465f1fb382', name: "start" }), h("slot", { key: 'f0d15628f49e1d7c83eafaa7a631bd71a673ff97' }), h("slot", { key: '00209dc3c6bf3b3e4418e79dcb6387effc0d8531', name: "end" })), (this.hint || (this.invalid && !this.disabled)) && (h("span", { class: {
|
|
65
58
|
'b2b-input-wrapper__hint': true,
|
|
66
59
|
'b2b-input-wrapper__hint--error': this.invalid && !this.disabled,
|
|
67
60
|
} }, this.invalid && !this.disabled ? this.error : this.hint))));
|
|
@@ -217,13 +210,13 @@ const InputListComponent = class {
|
|
|
217
210
|
*/
|
|
218
211
|
render() {
|
|
219
212
|
const groupOrderClass = this.getGroupOrderClassName() || '';
|
|
220
|
-
return (h(Host, { key: '
|
|
213
|
+
return (h(Host, { key: 'c22a6a73eca142a88eb7cc3f4c975b579df1d709', onBlur: this.setElementOnBlur, onFocus: this.setElementOnFocus }, h("div", { key: '3fb28f6a327c958fcf9d178c4d1814915a13ad3a', class: {
|
|
221
214
|
'b2b-input-list': true,
|
|
222
215
|
'b2b-input-list__options-on': this.hasOptionList &&
|
|
223
216
|
this.isElementFocused &&
|
|
224
217
|
Boolean(this.value),
|
|
225
218
|
[groupOrderClass]: true,
|
|
226
|
-
} }, h("b2b-input", { key: '
|
|
219
|
+
} }, h("b2b-input", { key: '2cd2ba2a073ca4b1980ac5621b60f0ee351e5cca', type: "text", label: this.label, value: this.value, disabled: this.disabled || this.groupDisabled, "onb2b-input": this.handleInput, placeholder: this.placeholder, required: this.required }, !(this.disabled || this.groupDisabled) && Boolean(this.value) && (h("b2b-icon-100", { icon: "b2b_icon-close", "aria-label": "reset", slot: "end", tabIndex: 0, onMouseDown: this.resetInput, onKeyDown: this.resetInput }))), this.isElementFocused && Boolean(this.value) ? (h("div", { class: "b2b-input-list__options-container" }, this.hasOptionList ? (h("div", { class: "b2b-input-list__options", role: "listbox" }, this.optionsList.map(option => (h("b2b-input-list-option", { option: option, tabIndex: -1, "onb2b-option-selected": this.onOptionSelected }))))) : (h("slot", null)))) : null)));
|
|
227
220
|
}
|
|
228
221
|
get hostElement() { return getElement(this); }
|
|
229
222
|
static get watchers() { return {
|
|
@@ -10,11 +10,11 @@ const InputLabelComponent = class {
|
|
|
10
10
|
this.disabled = false;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '87fe33e03bfe683d013e8d992bba9e3863834514' }, h("label", { key: 'e88216535eb3d9638fc75a638daffb81bcdf0bb1', class: {
|
|
14
14
|
'b2b-input-label': true,
|
|
15
15
|
'b2b-input-label--required': this.required,
|
|
16
16
|
'b2b-input-label--disabled': this.disabled,
|
|
17
|
-
} }, h("slot", { key: '
|
|
17
|
+
} }, h("slot", { key: 'cf1736baaf9fd224071f3e21122c263b9865c318' }))));
|
|
18
18
|
}
|
|
19
19
|
get hostElement() { return getElement(this); }
|
|
20
20
|
};
|
|
@@ -26,9 +26,7 @@ const InputComponent = class {
|
|
|
26
26
|
};
|
|
27
27
|
this.onInput = (ev) => {
|
|
28
28
|
const input = ev.target;
|
|
29
|
-
|
|
30
|
-
this.value = input.value || '';
|
|
31
|
-
}
|
|
29
|
+
this.value = (input === null || input === void 0 ? void 0 : input.value) || '';
|
|
32
30
|
this.b2bInput.emit(input);
|
|
33
31
|
};
|
|
34
32
|
this.getSlottedText = () => {
|
|
@@ -105,19 +103,19 @@ const InputComponent = class {
|
|
|
105
103
|
this.filterHintSlotContent();
|
|
106
104
|
}
|
|
107
105
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
106
|
+
return (h(Host, { key: 'b18e9dad8fdc84804b77049fd7b94c6b05541c3f', class: {
|
|
109
107
|
'b2b-input': true,
|
|
110
108
|
'b2b-input--error': this.invalid && !this.disabled,
|
|
111
|
-
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("div", { key: '
|
|
109
|
+
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("div", { key: '655f632484049add498904c26d766670eb3b9203', class: {
|
|
112
110
|
'b2b-input__wrapper': true,
|
|
113
111
|
'b2b-input__wrapper--focused': this.hasFocus,
|
|
114
112
|
'b2b-input__wrapper--disabled': this.disabled || this.groupDisabled,
|
|
115
|
-
} }, h("slot", { key: '
|
|
113
|
+
} }, h("slot", { key: '1d0650fa02aa56cf183a8c3c89e5791a53c54944', name: "start" }), this.hasTextPrefix && h("div", { class: "border" }), h("input", { key: '88e9aa5076bd6dd59eafac8491d6fafc9eec8b5e', class: {
|
|
116
114
|
'b2b-input__native-input': true,
|
|
117
115
|
['b2b-input__native-input--align-' + this.inputTextAlign]: true,
|
|
118
|
-
'b2b-input__native-input--disabled': this.disabled,
|
|
119
|
-
}, "aria-labelledby": this.name, type: this.type, placeholder: this.placeholder, value: this.value, name: this.name, disabled: this.disabled || this.groupDisabled, autoFocus: this.focusOnLoad, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, ref: el => (this.focusableElement = el) }), this.hasTextSuffix && h("div", { class: "border" }), h("slot", { key: '
|
|
120
|
-
(!this.invalid || this.disabled) ? (h("span", null, h("slot", { name: "hint" }, this.hint))) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
|
|
116
|
+
'b2b-input__native-input--disabled': this.disabled || this.groupDisabled,
|
|
117
|
+
}, "aria-labelledby": this.name, type: this.type, placeholder: this.placeholder, value: this.value, name: this.name, disabled: this.disabled || this.groupDisabled, autoFocus: this.focusOnLoad, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, ref: el => (this.focusableElement = el) }), this.hasTextSuffix && h("div", { class: "border" }), h("slot", { key: 'c93445fb93de27a7e1d4681bc7a48d44bb8baa1a', name: "end" })), (this.hint !== undefined || this.hintSlot) &&
|
|
118
|
+
(!this.invalid || this.disabled || this.groupDisabled) ? (h("span", null, h("slot", { name: "hint" }, this.hint))) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
|
|
121
119
|
}
|
|
122
120
|
get hostElement() { return getElement(this); }
|
|
123
121
|
};
|
|
@@ -141,7 +139,7 @@ const InputListOptionComponent = class {
|
|
|
141
139
|
}
|
|
142
140
|
}
|
|
143
141
|
render() {
|
|
144
|
-
return (h(Host, { key: '
|
|
142
|
+
return (h(Host, { key: '566b7cf1696550467c5b8c29cedccf5f8821dc6e', class: "b2b-input-list__option", onClick: this.handleClick, role: "option" }, this.option));
|
|
145
143
|
}
|
|
146
144
|
};
|
|
147
145
|
InputListOptionComponent.style = B2bInputListOptionStyle0;
|
|
@@ -9,10 +9,10 @@ const LabelComponent = class {
|
|
|
9
9
|
this.type = 'neutral';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h("span", { key: '
|
|
12
|
+
return (h("span", { key: '8b3e3c895c71501e761b6a80843403df68190cca', class: {
|
|
13
13
|
'b2b-label': true,
|
|
14
14
|
[`b2b-label--${this.type}`]: true,
|
|
15
|
-
} }, h("slot", { key: '
|
|
15
|
+
} }, h("slot", { key: '737f1fff0fd98d426cc910a6af713786aa7bd1cc' })));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
LabelComponent.style = B2bLabelStyle0;
|
|
@@ -206,10 +206,10 @@ const ModalComponent = class {
|
|
|
206
206
|
this.attemptFocus(this.getFirstFocusableElement());
|
|
207
207
|
}
|
|
208
208
|
render() {
|
|
209
|
-
return (h(Host, { key: '
|
|
209
|
+
return (h(Host, { key: '1ae4da3d85c98d784c5aa3254eec819791538b75' }, h("div", { key: 'a504235885dd6d98d6f909d9cf3d67adf0f1f6c0', class: { 'b2b-modal': true, 'b2b-modal--open': this.opened } }, h("div", { key: 'fffccabe0df78b009dc23f7dac95f5bbf7ce07e4', "data-focus-trap-edge": true, onFocus: this.handleTopFocus, tabIndex: 0 }), h("div", { key: 'd4c09be02aa93046ad8835da3affb70c0d7685dc', class: {
|
|
210
210
|
'b2b-modal__dialog': true,
|
|
211
211
|
[`b2b-modal__dialog--${this.variant}`]: true,
|
|
212
|
-
} }, h("div", { key: '
|
|
212
|
+
} }, h("div", { key: '85add6446151ec3df71ba825bab64d100306bc10', class: "b2b-modal__dialog__header" }, h("div", { key: '3fc56d466fe2eb9e6ca594ff867c48fe05ffda09', class: "b2b-modal__dialog__header-left" }, h("b2b-headline", { key: 'cf348827107b36494427ddaac019a539c379364a', align: "center", size: "200", noMargin: true }, this.heading), h("slot", { key: '8df87ec03dcdb11bbf96c1c49c9ea9d81a84a558', name: "header-icon" })), h("div", { key: '80f6e9e7d7ad6e71c15525a7a12eb885c48c6c2a', class: "b2b-modal__dialog__header-right" }, h("button", { key: '7e2373011323d5abc38803862f30aa0b3ae394e6', type: "button", class: "b2b-modal__dialog__close", onMouseEnter: this.toggleIconHover, onMouseLeave: this.toggleIconHover, onClick: this.handleClickDismiss, ref: el => (this.closeButton = el) }, h("b2b-icon-100", { key: 'a4955d65f73cf81cd919e5dbcf63db3251cf7449', clickable: true, icon: "b2b_icon-close", color: this.iconHover ? 'primary' : 'secondary' })))), h("div", { key: '3147b6a75f66f90d45f1a404f9dfb140634a6a35', class: "b2b-modal__dialog__body" }, h("slot", { key: '7ad81c8b9e610720c3ed918d255017a32d4128d4' })), h("div", { key: '7e7b6105f3bc4b1ad06eb7b7c7f43c91eb310c51', class: "b2b-modal__dialog__footer" }, h("div", { key: 'd3abac0aade1244074f2bb038e736e981d67f5ae', class: "b2b-modal__dialog__footer-left" }, h("slot", { key: '61599dfd481e53897522fabc44915546ac3d0f59', name: "footer-left" })), h("div", { key: '07c6cfca3f4e1545644292e4c04c9f02149d37b8', class: "b2b-modal__dialog__footer-right" }, h("slot", { key: '7b161e0e61c4e36c0ae1a2930b95e39991d72879', name: "footer-right" })))), h("div", { key: 'd5ac30a02abfd2b89dce1d913971a417198cd155', "data-focus-trap-edge": true, onFocus: this.handleBottomFocus, tabIndex: 0 }), h("div", { key: '570e98eefabd147193cb04d9d493e46a08411e3f', class: "b2b-modal__backdrop", onClick: this.handleBackdropDismiss }))));
|
|
213
213
|
}
|
|
214
214
|
get hostElement() { return getElement(this); }
|
|
215
215
|
static get watchers() { return {
|
|
@@ -8,18 +8,17 @@ const B2bMultiSelectDropdown = class {
|
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
this.b2bChange = createEvent(this, "b2b-selected", 7);
|
|
11
|
-
this.handleInput = event => {
|
|
12
|
-
if (this.disabled)
|
|
11
|
+
this.handleInput = (event) => {
|
|
12
|
+
if (this.disabled || this.groupDisabled)
|
|
13
13
|
return;
|
|
14
|
-
|
|
15
|
-
this.value =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
14
|
+
const term = event.target.value.toLowerCase();
|
|
15
|
+
this.value = term;
|
|
16
|
+
const list = this.normalizedOptions;
|
|
17
|
+
this.currentList =
|
|
18
|
+
term === ''
|
|
19
|
+
? list
|
|
20
|
+
: list.filter(o => o.label.toLowerCase().includes(term) ||
|
|
21
|
+
o.value.toLowerCase().includes(term));
|
|
23
22
|
};
|
|
24
23
|
this.getOptions = () => {
|
|
25
24
|
return Array.from(this.hostElement.shadowRoot.querySelectorAll('b2b-multiselect-option')).slice(1);
|
|
@@ -27,10 +26,10 @@ const B2bMultiSelectDropdown = class {
|
|
|
27
26
|
this.renderChips = () => {
|
|
28
27
|
return this.currentSelectedValues.map((option, index) => {
|
|
29
28
|
if (index < this.maxOptionsVisible) {
|
|
30
|
-
return (h("b2b-chip-component", { label: option, value: option, "onB2b-close": this.handleChipClose }));
|
|
29
|
+
return (h("b2b-chip-component", { label: option.label, value: option.value, disabled: this.disabled || this.groupDisabled, "onB2b-close": this.handleChipClose }));
|
|
31
30
|
}
|
|
32
31
|
else if (index === this.maxOptionsVisible) {
|
|
33
|
-
return (h("b2b-chip-component", { label: "...", class: "b2b-multiselect-dropdown__option--show-more-button",
|
|
32
|
+
return (h("b2b-chip-component", { label: "...", class: "b2b-multiselect-dropdown__option--show-more-button", disabled: this.disabled || this.groupDisabled, onClick: this.handleOverflowOptionsClick }));
|
|
34
33
|
}
|
|
35
34
|
else {
|
|
36
35
|
return;
|
|
@@ -42,18 +41,24 @@ const B2bMultiSelectDropdown = class {
|
|
|
42
41
|
this.setElementOnFocus();
|
|
43
42
|
}
|
|
44
43
|
};
|
|
45
|
-
this.handleSelectedChange = event => {
|
|
46
|
-
const
|
|
44
|
+
this.handleSelectedChange = (event) => {
|
|
45
|
+
const value = event.detail.selectedOption;
|
|
46
|
+
const opt = this.normalizedOptions.find(o => o.value === value);
|
|
47
|
+
if (opt === undefined)
|
|
48
|
+
return;
|
|
47
49
|
if (event.detail.selected) {
|
|
48
|
-
this.currentSelectedValues
|
|
50
|
+
if (!this.currentSelectedValues.some(o => o.value === value)) {
|
|
51
|
+
this.currentSelectedValues = [...this.currentSelectedValues, opt];
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
else {
|
|
51
|
-
this.currentSelectedValues = this.currentSelectedValues.filter(
|
|
55
|
+
this.currentSelectedValues = this.currentSelectedValues.filter(o => o.value !== value);
|
|
52
56
|
}
|
|
53
57
|
};
|
|
54
|
-
this.handleChipClose = event => {
|
|
55
|
-
|
|
56
|
-
this.
|
|
58
|
+
this.handleChipClose = (event) => {
|
|
59
|
+
const value = event.detail.value;
|
|
60
|
+
this.currentSelectedValues = this.currentSelectedValues.filter(o => o.value !== value);
|
|
61
|
+
this.updateOption(value);
|
|
57
62
|
this.isOpen = true;
|
|
58
63
|
this.resetFocus();
|
|
59
64
|
};
|
|
@@ -62,21 +67,22 @@ const B2bMultiSelectDropdown = class {
|
|
|
62
67
|
const optionToUpdate = options.find(el => el.option === option);
|
|
63
68
|
optionToUpdate.selected = false;
|
|
64
69
|
};
|
|
65
|
-
this.updateAllOptions = options => {
|
|
66
|
-
// Deselect all to avoid caching issues in Vue
|
|
70
|
+
this.updateAllOptions = (options) => {
|
|
67
71
|
options.forEach(option => (option.selected = false));
|
|
72
|
+
const selectedSet = new Set(this.currentSelectedValues.map(o => o.value));
|
|
68
73
|
options
|
|
69
|
-
.filter(option =>
|
|
74
|
+
.filter(option => selectedSet.has(option.option))
|
|
70
75
|
.forEach(option => (option.selected = true));
|
|
71
76
|
};
|
|
72
77
|
this.setElementOnFocus = () => {
|
|
73
|
-
if (this.disabled)
|
|
78
|
+
if (this.disabled || this.groupDisabled)
|
|
74
79
|
return;
|
|
75
80
|
this.isElementFocused = true;
|
|
76
81
|
};
|
|
77
82
|
this.setElementOnBlur = (event) => {
|
|
78
83
|
const nextFocusedElement = event === null || event === void 0 ? void 0 : event.relatedTarget;
|
|
79
|
-
if (!nextFocusedElement
|
|
84
|
+
if (!(nextFocusedElement instanceof Node) ||
|
|
85
|
+
!this.hostElement.contains(nextFocusedElement)) {
|
|
80
86
|
this.isOpen = false;
|
|
81
87
|
}
|
|
82
88
|
else {
|
|
@@ -85,14 +91,14 @@ const B2bMultiSelectDropdown = class {
|
|
|
85
91
|
this.isElementFocused = false;
|
|
86
92
|
};
|
|
87
93
|
this.resetFocus = () => {
|
|
88
|
-
if (this.disabled)
|
|
94
|
+
if (this.disabled || this.groupDisabled)
|
|
89
95
|
return;
|
|
90
96
|
const el = this.hostElement.shadowRoot.querySelector('.b2b-multiselect-dropdown');
|
|
91
97
|
el.focus();
|
|
92
98
|
};
|
|
93
99
|
this.handleMouseDown = (event) => {
|
|
94
100
|
/** Keep dropdown open if a tag is removed */
|
|
95
|
-
if (this.disabled) {
|
|
101
|
+
if (this.disabled || this.groupDisabled) {
|
|
96
102
|
event.preventDefault();
|
|
97
103
|
return;
|
|
98
104
|
}
|
|
@@ -104,7 +110,7 @@ const B2bMultiSelectDropdown = class {
|
|
|
104
110
|
}
|
|
105
111
|
};
|
|
106
112
|
this.handleKeyDown = (event) => {
|
|
107
|
-
if (this.disabled)
|
|
113
|
+
if (this.disabled || this.groupDisabled)
|
|
108
114
|
return;
|
|
109
115
|
if (event.key === 'Enter') {
|
|
110
116
|
event.preventDefault();
|
|
@@ -115,19 +121,21 @@ const B2bMultiSelectDropdown = class {
|
|
|
115
121
|
this.setElementOnBlur();
|
|
116
122
|
}
|
|
117
123
|
};
|
|
118
|
-
this.handleSelectAll = event => {
|
|
124
|
+
this.handleSelectAll = (event) => {
|
|
119
125
|
const newVal = event.detail.selected;
|
|
120
126
|
const options = this.getOptions();
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
options[i].selected = newVal;
|
|
124
|
-
}
|
|
127
|
+
const values = options.map(el => el.option);
|
|
128
|
+
options.forEach(el => (el.selected = newVal));
|
|
125
129
|
if (newVal) {
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
const toAdd = this.normalizedOptions.filter(o => values.includes(o.value));
|
|
131
|
+
const set = new Set(this.currentSelectedValues.map(o => o.value));
|
|
132
|
+
this.currentSelectedValues = [
|
|
133
|
+
...this.currentSelectedValues,
|
|
134
|
+
...toAdd.filter(o => !set.has(o.value)),
|
|
135
|
+
];
|
|
128
136
|
}
|
|
129
137
|
else {
|
|
130
|
-
this.currentSelectedValues = this.currentSelectedValues.filter(
|
|
138
|
+
this.currentSelectedValues = this.currentSelectedValues.filter(o => !values.includes(o.value));
|
|
131
139
|
}
|
|
132
140
|
};
|
|
133
141
|
this.updateSelectAll = (options) => {
|
|
@@ -149,35 +157,51 @@ const B2bMultiSelectDropdown = class {
|
|
|
149
157
|
this.errorMessage = undefined;
|
|
150
158
|
this.hint = undefined;
|
|
151
159
|
this.disabled = false;
|
|
160
|
+
this.groupDisabled = false;
|
|
152
161
|
this.currentSelectedValues = [];
|
|
153
|
-
this.currentList =
|
|
162
|
+
this.currentList = [];
|
|
154
163
|
this.value = '';
|
|
155
164
|
this.isElementFocused = false;
|
|
156
165
|
this.isOpen = false;
|
|
166
|
+
this.normalizedOptions = [];
|
|
167
|
+
this.normalizedSelected = [];
|
|
157
168
|
this.hasOptionList = this.optionsList.length > 0;
|
|
158
169
|
}
|
|
170
|
+
parsePropToOptArray(value) {
|
|
171
|
+
if (Array.isArray(value) && typeof value[0] === 'object') {
|
|
172
|
+
return value;
|
|
173
|
+
}
|
|
174
|
+
return parsePropToArray(value).map(v => ({
|
|
175
|
+
label: v,
|
|
176
|
+
value: v,
|
|
177
|
+
}));
|
|
178
|
+
}
|
|
159
179
|
componentWillLoad() {
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
162
|
-
this.currentList = this.
|
|
163
|
-
this.
|
|
180
|
+
this.normalizedSelected = this.parsePropToOptArray(this.selectedValues);
|
|
181
|
+
this.normalizedOptions = this.parsePropToOptArray(this.optionsList);
|
|
182
|
+
this.currentList = this.normalizedOptions;
|
|
183
|
+
this.hasOptionList = this.normalizedOptions.length > 0;
|
|
184
|
+
const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
|
|
185
|
+
this.currentSelectedValues = this.normalizedOptions.filter(opt => selectedSet.has(opt.value));
|
|
164
186
|
}
|
|
165
187
|
/** Needed to trigger a re-render for async data */
|
|
166
188
|
watchPropHandler(newList) {
|
|
167
|
-
this.
|
|
168
|
-
this.hasOptionList = this.
|
|
189
|
+
this.normalizedOptions = this.parsePropToOptArray(newList);
|
|
190
|
+
this.hasOptionList = this.normalizedOptions.length > 0;
|
|
169
191
|
if (this.hasOptionList) {
|
|
170
|
-
this.currentList = this.
|
|
171
|
-
|
|
192
|
+
this.currentList = this.normalizedOptions;
|
|
193
|
+
const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
|
|
194
|
+
this.currentSelectedValues = this.normalizedOptions.filter(opt => selectedSet.has(opt.value));
|
|
172
195
|
}
|
|
173
196
|
}
|
|
174
197
|
/** Needed to trigger a re-render for async data */
|
|
175
198
|
handleSelectedValuesChangeFromOutside(newVal) {
|
|
176
|
-
this.
|
|
177
|
-
|
|
199
|
+
this.normalizedSelected = this.parsePropToOptArray(newVal);
|
|
200
|
+
const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
|
|
201
|
+
this.currentSelectedValues = this.normalizedOptions.filter(o => selectedSet.has(o.value));
|
|
178
202
|
}
|
|
179
203
|
handleSelectedValuesChange(newValues) {
|
|
180
|
-
this.b2bChange.emit(newValues);
|
|
204
|
+
this.b2bChange.emit(newValues.map(o => o.value));
|
|
181
205
|
}
|
|
182
206
|
componentDidUpdate() {
|
|
183
207
|
const options = this.getOptions();
|
|
@@ -185,18 +209,21 @@ const B2bMultiSelectDropdown = class {
|
|
|
185
209
|
this.updateSelectAll(options);
|
|
186
210
|
}
|
|
187
211
|
render() {
|
|
188
|
-
|
|
212
|
+
const disabled = this.disabled || this.groupDisabled;
|
|
213
|
+
const hasError = this.invalid && !disabled;
|
|
214
|
+
const showHint = this.hint && !hasError;
|
|
215
|
+
const showError = this.errorMessage && hasError;
|
|
216
|
+
return (h(Host, { key: 'ce7c585a53dfb0dc39216bca8de421f5c6f6bb63', onFocus: this.setElementOnFocus, onBlur: this.setElementOnBlur, onClick: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("b2b-input-label", { key: '5f70368b3502a9e3f313f701e254d0efefae6fd8', required: this.required }, this.label), h("div", { key: '3bc73b137d9b53d54b8a692965b83c299a09faa1', class: {
|
|
189
217
|
'b2b-multiselect-dropdown': true,
|
|
190
218
|
'b2b-multiselect-dropdown--open': this.isOpen,
|
|
191
|
-
'b2b-multiselect-dropdown--error':
|
|
192
|
-
'b2b-multiselect-dropdown--disabled':
|
|
219
|
+
'b2b-multiselect-dropdown--error': hasError,
|
|
220
|
+
'b2b-multiselect-dropdown--disabled': disabled,
|
|
193
221
|
'b2b-multiselect-dropdown--focused': this.invalid && this.isElementFocused,
|
|
194
|
-
}, tabindex: 0, role: "combobox", onClick: () => (this.isOpen = !this.isOpen), "aria-expanded": this.isElementFocused }, h("div", { key: '
|
|
222
|
+
}, tabindex: 0, role: "combobox", onClick: () => (this.isOpen = !this.isOpen && !disabled), "aria-expanded": this.isElementFocused }, h("div", { key: 'b4e95e6072ebe7a49f1ff092521758bef17c9443', class: "b2b-multiselect-dropdown__chip-container" }, this.currentSelectedValues.length === 0 ? (h("span", { class: "b2b-multiselect-dropdown__placeholder" }, this.placeholder)) : (this.renderChips())), h("b2b-icon-100", { key: 'a79e61c1e78be92e394772e4fe45ccaa840bb23c', icon: "b2b_icon-arrow-down" })), h("div", { key: 'f8b8c5d70b18c1ffc175b966e1568ec719fd5aa6', class: {
|
|
195
223
|
'b2b-multiselect-dropdown__options-container': true,
|
|
196
224
|
'b2b-multiselect-dropdown__options-container--visible': this.isOpen,
|
|
197
|
-
} }, h("div", { key: '
|
|
198
|
-
this.currentList.map(option => (h("b2b-multiselect-option", { "onB2b-option-selected": this.handleSelectedChange, option: option }))))), (this.hint
|
|
199
|
-
(this.hint !== undefined && this.disabled) ? (h("span", { class: "b2b-multiselect-dropdown__hint" }, this.hint)) : (''), this.errorMessage !== undefined && this.invalid && !this.disabled ? (h("span", { class: "b2b-multiselect-dropdown__error-message" }, this.errorMessage)) : ('')));
|
|
225
|
+
} }, h("div", { key: '94b799c83a30906027023ee78c9202afc152cb98', class: "b2b-multiselect-dropdown__options", role: "listbox", "aria-label": this.label, tabIndex: -1 }, h("div", { key: 'c844dc9be611cf2533549cf03bdc1fb5cf7e5755', class: "b2b-multiselect-dropdown__option__search" }, h("input", { key: 'ec3380739b47ae8ee490ed4bf9369a81045f2d3b', type: "text", onInput: this.handleInput, class: "b2b-multiselect-dropdown__option__search__input", placeholder: this.searchPlaceholder })), h("b2b-multiselect-option", { key: 'bf17215713121f4f359872c8c1f6ed4f1ec32e45', class: "b2b-multiselect-dropdown__option__select-all", option: this.selectAllLabel, id: "select-all", "onB2b-option-selected": this.handleSelectAll }), this.hasOptionList &&
|
|
226
|
+
this.currentList.map(option => (h("b2b-multiselect-option", { "onB2b-option-selected": this.handleSelectedChange, option: option.value, label: option.label }))))), showHint && (h("span", { class: "b2b-multiselect-dropdown__hint" }, this.hint)), showError && (h("span", { class: "b2b-multiselect-dropdown__error-message" }, this.errorMessage))));
|
|
200
227
|
}
|
|
201
228
|
get hostElement() { return getElement(this); }
|
|
202
229
|
static get watchers() { return {
|
|
@@ -97,7 +97,7 @@ const PaginationComponent = class {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (h("nav", { key: '
|
|
100
|
+
return (h("nav", { key: '6f43e77c9989aafe2f5ff9d7de619853f807ceb9' }, h("ol", { key: 'ebc029acf51035b9859ed5793a29fc689c536484', class: "b2b-pagination" }, this.activePage !== 1 && (h("li", { class: "b2b-pagination--previous" }, h("b2b-button", { onClick: this.selectPreviousPage, size: "50", variant: "secondary", "aria-label": this.ariaLabelPreviousPage }, "\u2039" /* PaginationConstants.BACK */))), this.navItems.map((navItem, index) => {
|
|
101
101
|
const isItemActive = this.activePage === navItem;
|
|
102
102
|
return (h("li", { class: this.getItemClass(navItem) }, h("b2b-button", { onClick: () => this.setSelectedPage(navItem, index), active: isItemActive, disabled: isItemActive, size: "50", variant: "secondary" }, navItem)));
|
|
103
103
|
}), this.activePage !== this.totalPages && (h("li", { class: "b2b-pagination--next" }, h("b2b-button", { onClick: this.selectNextPage, size: "50", variant: "secondary", "aria-label": this.ariaLabelNextPage }, "\u203A" /* PaginationConstants.NEXT */))))));
|
|
@@ -22,11 +22,11 @@ const ProgressBarComponent = class {
|
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
24
|
const labelExists = this.label !== undefined && this.label !== '';
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '4511acab06e497842a84eed7cfa9beb7d575dbe7' }, h("div", { key: '03b04648866fed3e0c276ca8218201639b23f6fc', class: {
|
|
26
26
|
[`b2b-progress-bar__${this.labelPosition}-${this.labelType}`]: true,
|
|
27
|
-
} }, h("div", { key: '
|
|
27
|
+
} }, h("div", { key: '8ddd2295fd43f56b8393178e38ea414e96f332ed', class: "b2b-progress-bar__wrapper" }, h("div", { key: 'e6ea32124f8df1b937dd8f62e1e06d306229cd75', class: "b2b-progress-bar__progress", style: {
|
|
28
28
|
width: `${this.getProgress()}%`,
|
|
29
|
-
} })), h("div", { key: '
|
|
29
|
+
} })), h("div", { key: '36a7f3c4c5229350ea3a37827fa0613db0ab33b7', class: {
|
|
30
30
|
'b2b-progress-bar__label': labelExists,
|
|
31
31
|
'b2b-progress-bar__label-none': !labelExists,
|
|
32
32
|
[`b2b-progress-bar__label__${this.labelPosition}-${this.labelType}`]: labelExists,
|
|
@@ -61,11 +61,11 @@ const B2bRadioButtonComponent = class {
|
|
|
61
61
|
return Array.from(document.querySelectorAll(`b2b-radio-button[name="${this.name}"]`)).filter((radio) => radio.value !== this.value);
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '5fbc72c2f038679ea04d1c99a6f687e4829d7d51', onClick: this.onClick }, h("div", { key: '895c751c5086b2f7d466635020a39a96d1c9f220', class: {
|
|
65
65
|
'b2b-radio': true,
|
|
66
66
|
'b2b-radio--error': this.invalid && !this.disabled,
|
|
67
67
|
'b2b-radio--disabled': this.disabled,
|
|
68
|
-
} }, h("div", { key: '
|
|
68
|
+
} }, h("div", { key: '0f6b79277a4ad8520b77054c79bf835e6e2a0a7c', class: "b2b-radio-items" }, h("input", { key: 'bd9d51857f574d9c37d482ae6b23bd25027369a5', class: "b2b-radio-input", "aria-labelledby": this.name, type: "radio", checked: this.checked, disabled: this.disabled, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, value: this.value }), h("b2b-input-label", { key: '8ab71684ff2f26fdbe119c852109ce3b44ed1c4f', id: this.name, required: this.required, disabled: this.disabled }, h("slot", { key: '474cc5a22301f4be53130579845152da0caa849b', name: "label" }, this.label))), (this.hint !== undefined && !this.invalid) ||
|
|
69
69
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
70
70
|
}
|
|
71
71
|
get host() { return getElement(this); }
|
|
@@ -73,11 +73,11 @@ const RadioButtonGroupComponent = class {
|
|
|
73
73
|
this.removeChildText();
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: 'c47db22cd7ab5484813e052db015d2b8d1405bb9' }, h("div", { key: '1e7fc6246f83ea53debd5ef7fc42772e3c41a936', class: {
|
|
77
77
|
'b2b-radio-group': true,
|
|
78
78
|
'b2b-radio-group--error': this.invalid && !this.disabled,
|
|
79
79
|
[`b2b-radio-group--${this.alignment}`]: true,
|
|
80
|
-
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("fieldset", { key: '
|
|
80
|
+
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("fieldset", { key: 'a406988d11f921c8eb16296820212da84d014e8c' }, h("div", { key: '2b6fb5ac504cdc65b354d8d30727b0fb6e725376', class: "b2b-radio-group-options" }, h("slot", { key: 'd7161d2da1c4241830815da13fe87067ecb55931' }))), (this.hint !== undefined && !this.invalid) ||
|
|
81
81
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
82
82
|
}
|
|
83
83
|
get host() { return getElement(this); }
|
|
@@ -9,7 +9,7 @@ const B2BRequiredSeparator = class {
|
|
|
9
9
|
this.label = 'Pflichtfeld';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'dbb1404fe0a21058185803fc23cbe4a53378d25f' }, h("div", { key: 'fa4568e39ddc882fde2a8ae6c667145e6b0ff71f', class: "b2b-required-separator__label" }, h("span", { key: 'cff2204e59e777da55f39e4fa4be2a376fd7645b', class: "b2b-required-separator__asterisk" }, "* "), h("span", { key: '8d57dbea0fe1841c2fd52e65e2268c60eea7ea60' }, this.label)), h("b2b-separator", { key: '653ca12e5bed8038775144314e7a0c424437c33f' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
B2BRequiredSeparator.style = B2bRequiredSeparatorStyle0;
|
|
@@ -11,16 +11,16 @@ const RoundedIconComponent = class {
|
|
|
11
11
|
this.contentColor = 'var(--b2b-color-copy-default)';
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '1d7eea4ad65056f16127e2029811239e0540560b' }, h("div", { key: '153f0ace757daff8776fac4fbe1cc9a05e9c0dfa', style: {
|
|
15
15
|
['background-color']: this.color,
|
|
16
16
|
['border']: `1px solid ${this.borderColor || this.color}`,
|
|
17
17
|
}, class: {
|
|
18
18
|
'b2b-rounded-icon': true,
|
|
19
|
-
} }, h("div", { key: '
|
|
19
|
+
} }, h("div", { key: '7b28d41d6d5cb38c21aa4487cca0ce070663909a', style: {
|
|
20
20
|
['color']: this.contentColor,
|
|
21
|
-
} }, h("slot", { key: '
|
|
21
|
+
} }, h("slot", { key: '32e90de259f352aff82118dd1f9904475fc875e2', name: "icon" })), h("div", { key: '38f7a97f95191cd039a4bbbcf20a9b5ce1826a8e', style: {
|
|
22
22
|
['color']: this.contentColor,
|
|
23
|
-
} }, h("slot", { key: '
|
|
23
|
+
} }, h("slot", { key: 'e994e7fbd49f656c865ce8517833be0d6bbb852e', name: "text" })))));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
RoundedIconComponent.style = B2bRoundedIconStyle0;
|
|
@@ -8,7 +8,7 @@ const ScrollableContainerComponent = class {
|
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'c5c71924d38f1788a60b19e49ad09a3aa5d637f6' }, h("slot", { key: '4fa412e60d51aa58e9e6d40936bb4f4a4725dab5' })));
|
|
12
12
|
}
|
|
13
13
|
get host() { return getElement(this); }
|
|
14
14
|
};
|
|
@@ -25,7 +25,7 @@ const SearchComponent = class {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '65315a3718f55f1d9b63c2b3a437bd292a512eb3' }, h("b2b-input-group", { key: '7f1e64e2fe99e4b8ecca7f90547c7e08b0c2a8f3', disabled: this.disabled }, h("b2b-input-list", { key: '7a140c8635b7f193125597a4b6a1df62c81796f3', slot: "start", value: this.value, placeholder: this.placeholder, optionsList: this.optionsList, "onb2b-input": this.onInput, "onb2b-option-selected": this.onOptionSelected }, h("slot", { key: '2674546c9fc2e6347c42350f94dc91876357e336' })), h("b2b-button", { key: '75cdcd94bb0f25af3448bb76ed6f5103ceb6711c', slot: "end", variant: "primary", onClick: this.onSearchClicked }, h("b2b-icon-100", { key: '0d846a636b31a4e8b67933611b2da76442ad7795', icon: "b2b_icon-search", clickable: true })))));
|
|
29
29
|
}
|
|
30
30
|
get hostElement() { return getElement(this); }
|
|
31
31
|
};
|
|
@@ -9,7 +9,7 @@ const B2bSeparatorComponent = class {
|
|
|
9
9
|
this.alignment = 'horizontal';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'f1ab4806be7ac4128d95a047421be58502b0cadf' }, h("div", { key: 'c478fc67a79c15a6d74af39eb6747d25d3d58922', class: {
|
|
13
13
|
[`b2b-separator--${this.alignment}`]: true,
|
|
14
14
|
} })));
|
|
15
15
|
}
|
|
@@ -15,7 +15,7 @@ const ShimmerComponent = class {
|
|
|
15
15
|
width: `${this.width}px`,
|
|
16
16
|
height: `${this.height}px`,
|
|
17
17
|
};
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '82fc3e95ff0f946ae6cfd5c59ab1a0e04df62ca5' }, this.loading ? (h("div", { class: "b2b-shimmer", style: shimmerStyle })) : (h("slot", null))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
ShimmerComponent.style = B2bShimmerStyle0;
|
|
@@ -93,17 +93,17 @@ const SnackbarComponent = class {
|
|
|
93
93
|
clearTimeout(this.timeoutId);
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: '55fbed7dd9fa44a54d25277ca6f1e75429ba1b37', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("div", { key: 'dff92b0614f3e59e0c809b975310646814b8145e', class: {
|
|
97
97
|
'b2b-snackbar': true,
|
|
98
98
|
[`b2b-snackbar--${this.type}`]: true,
|
|
99
99
|
'b2b-snackbar--opened': this.opened,
|
|
100
|
-
}, style:
|
|
100
|
+
}, style: { width: this.width || 'auto' } }, h("div", { key: '1fc6e6367e35c1b1a05f43ea2660a905f22c9711', class: "b2b-snackbar__content" }, h("span", { key: 'c8e4bc8512f84f110f520f6678df3a1b140a0367', class: { [`b2b-snackbar--${this.type}__icon`]: true } }, this.chooseIcon()), h("p", { key: '746bbc4361665af9e7ca661a2961bf000f4e073d', class: "b2b-snackbar__content__description" }, this.description)), this.isActionPresent() && (h("div", { class: {
|
|
101
101
|
'b2b-snackbar__action': true,
|
|
102
102
|
[`b2b-snackbar__action--${this.type}`]: true,
|
|
103
|
-
}, onClick: this.handleActionClick }, h("a", null, this.actionLabel))), h("div", { key: '
|
|
103
|
+
}, onClick: this.handleActionClick }, h("a", null, this.actionLabel))), h("div", { key: 'c8384158b5bdec6af91cae1adc66763cbdf528d1', class: {
|
|
104
104
|
'b2b-snackbar__close-icon': true,
|
|
105
105
|
[`b2b-snackbar__close-icon--${this.type}`]: true,
|
|
106
|
-
}, onClick: this.close }, h("b2b-icon-100", { key: '
|
|
106
|
+
}, onClick: this.close }, h("b2b-icon-100", { key: '8315309a832f0767ecbbc40ef147b0005a66ce7a', clickable: true, size: 24, icon: "b2b_icon-close" })))));
|
|
107
107
|
}
|
|
108
108
|
static get watchers() { return {
|
|
109
109
|
"opened": ["onVisibleChange"]
|
|
@@ -124,7 +124,7 @@ const B2bTabGroupComponent = class {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (h(Host, { key: '
|
|
127
|
+
return (h(Host, { key: 'a652623572354f06d1b773b9a98760a7c9ec9cf7' }, h("slot", { key: 'f80657d44b37339fb026e92873fb177b2393e841', name: "tab" }), h("b2b-separator", { key: 'e82a1891e3c509fab6f2b17e74f39796645bbdd2' }), h("slot", { key: 'e9ccf361a9bfa3424fc861b6ba8f685510ef39bd', name: "panel" })));
|
|
128
128
|
}
|
|
129
129
|
get hostElement() { return getElement(this); }
|
|
130
130
|
};
|
|
@@ -10,7 +10,7 @@ const B2bTabPanelComponent = class {
|
|
|
10
10
|
this.generatedId = i++;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '09b20e44ef0677b3ce5babd5da199ac5803e60c2', id: `b2b-tab-panel-${this.generatedId}`, role: "tabpanel" }, h("div", { key: '72ddbd132da8c1bcb7810397dd50530d722eb5ce', class: "b2b-tab-panel" }, h("slot", { key: '6318fea037462b2b43f33bde3bd0e6ee42c1dc18' }))));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
B2bTabPanelComponent.style = B2bTabPanelStyle0;
|