@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
|
@@ -2,18 +2,17 @@ import { h, Host, } from "@stencil/core";
|
|
|
2
2
|
import { parsePropToArray } from "../../utils/json-property-binding-util";
|
|
3
3
|
export class B2bMultiSelectDropdown {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.handleInput = event => {
|
|
6
|
-
if (this.disabled)
|
|
5
|
+
this.handleInput = (event) => {
|
|
6
|
+
if (this.disabled || this.groupDisabled)
|
|
7
7
|
return;
|
|
8
|
-
|
|
9
|
-
this.value =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
8
|
+
const term = event.target.value.toLowerCase();
|
|
9
|
+
this.value = term;
|
|
10
|
+
const list = this.normalizedOptions;
|
|
11
|
+
this.currentList =
|
|
12
|
+
term === ''
|
|
13
|
+
? list
|
|
14
|
+
: list.filter(o => o.label.toLowerCase().includes(term) ||
|
|
15
|
+
o.value.toLowerCase().includes(term));
|
|
17
16
|
};
|
|
18
17
|
this.getOptions = () => {
|
|
19
18
|
return Array.from(this.hostElement.shadowRoot.querySelectorAll('b2b-multiselect-option')).slice(1);
|
|
@@ -21,10 +20,10 @@ export class B2bMultiSelectDropdown {
|
|
|
21
20
|
this.renderChips = () => {
|
|
22
21
|
return this.currentSelectedValues.map((option, index) => {
|
|
23
22
|
if (index < this.maxOptionsVisible) {
|
|
24
|
-
return (h("b2b-chip-component", { label: option, value: option, "onB2b-close": this.handleChipClose }));
|
|
23
|
+
return (h("b2b-chip-component", { label: option.label, value: option.value, disabled: this.disabled || this.groupDisabled, "onB2b-close": this.handleChipClose }));
|
|
25
24
|
}
|
|
26
25
|
else if (index === this.maxOptionsVisible) {
|
|
27
|
-
return (h("b2b-chip-component", { label: "...", class: "b2b-multiselect-dropdown__option--show-more-button",
|
|
26
|
+
return (h("b2b-chip-component", { label: "...", class: "b2b-multiselect-dropdown__option--show-more-button", disabled: this.disabled || this.groupDisabled, onClick: this.handleOverflowOptionsClick }));
|
|
28
27
|
}
|
|
29
28
|
else {
|
|
30
29
|
return;
|
|
@@ -36,18 +35,24 @@ export class B2bMultiSelectDropdown {
|
|
|
36
35
|
this.setElementOnFocus();
|
|
37
36
|
}
|
|
38
37
|
};
|
|
39
|
-
this.handleSelectedChange = event => {
|
|
40
|
-
const
|
|
38
|
+
this.handleSelectedChange = (event) => {
|
|
39
|
+
const value = event.detail.selectedOption;
|
|
40
|
+
const opt = this.normalizedOptions.find(o => o.value === value);
|
|
41
|
+
if (opt === undefined)
|
|
42
|
+
return;
|
|
41
43
|
if (event.detail.selected) {
|
|
42
|
-
this.currentSelectedValues
|
|
44
|
+
if (!this.currentSelectedValues.some(o => o.value === value)) {
|
|
45
|
+
this.currentSelectedValues = [...this.currentSelectedValues, opt];
|
|
46
|
+
}
|
|
43
47
|
}
|
|
44
48
|
else {
|
|
45
|
-
this.currentSelectedValues = this.currentSelectedValues.filter(
|
|
49
|
+
this.currentSelectedValues = this.currentSelectedValues.filter(o => o.value !== value);
|
|
46
50
|
}
|
|
47
51
|
};
|
|
48
|
-
this.handleChipClose = event => {
|
|
49
|
-
|
|
50
|
-
this.
|
|
52
|
+
this.handleChipClose = (event) => {
|
|
53
|
+
const value = event.detail.value;
|
|
54
|
+
this.currentSelectedValues = this.currentSelectedValues.filter(o => o.value !== value);
|
|
55
|
+
this.updateOption(value);
|
|
51
56
|
this.isOpen = true;
|
|
52
57
|
this.resetFocus();
|
|
53
58
|
};
|
|
@@ -56,21 +61,22 @@ export class B2bMultiSelectDropdown {
|
|
|
56
61
|
const optionToUpdate = options.find(el => el.option === option);
|
|
57
62
|
optionToUpdate.selected = false;
|
|
58
63
|
};
|
|
59
|
-
this.updateAllOptions = options => {
|
|
60
|
-
// Deselect all to avoid caching issues in Vue
|
|
64
|
+
this.updateAllOptions = (options) => {
|
|
61
65
|
options.forEach(option => (option.selected = false));
|
|
66
|
+
const selectedSet = new Set(this.currentSelectedValues.map(o => o.value));
|
|
62
67
|
options
|
|
63
|
-
.filter(option =>
|
|
68
|
+
.filter(option => selectedSet.has(option.option))
|
|
64
69
|
.forEach(option => (option.selected = true));
|
|
65
70
|
};
|
|
66
71
|
this.setElementOnFocus = () => {
|
|
67
|
-
if (this.disabled)
|
|
72
|
+
if (this.disabled || this.groupDisabled)
|
|
68
73
|
return;
|
|
69
74
|
this.isElementFocused = true;
|
|
70
75
|
};
|
|
71
76
|
this.setElementOnBlur = (event) => {
|
|
72
77
|
const nextFocusedElement = event === null || event === void 0 ? void 0 : event.relatedTarget;
|
|
73
|
-
if (!nextFocusedElement
|
|
78
|
+
if (!(nextFocusedElement instanceof Node) ||
|
|
79
|
+
!this.hostElement.contains(nextFocusedElement)) {
|
|
74
80
|
this.isOpen = false;
|
|
75
81
|
}
|
|
76
82
|
else {
|
|
@@ -79,14 +85,14 @@ export class B2bMultiSelectDropdown {
|
|
|
79
85
|
this.isElementFocused = false;
|
|
80
86
|
};
|
|
81
87
|
this.resetFocus = () => {
|
|
82
|
-
if (this.disabled)
|
|
88
|
+
if (this.disabled || this.groupDisabled)
|
|
83
89
|
return;
|
|
84
90
|
const el = this.hostElement.shadowRoot.querySelector('.b2b-multiselect-dropdown');
|
|
85
91
|
el.focus();
|
|
86
92
|
};
|
|
87
93
|
this.handleMouseDown = (event) => {
|
|
88
94
|
/** Keep dropdown open if a tag is removed */
|
|
89
|
-
if (this.disabled) {
|
|
95
|
+
if (this.disabled || this.groupDisabled) {
|
|
90
96
|
event.preventDefault();
|
|
91
97
|
return;
|
|
92
98
|
}
|
|
@@ -98,7 +104,7 @@ export class B2bMultiSelectDropdown {
|
|
|
98
104
|
}
|
|
99
105
|
};
|
|
100
106
|
this.handleKeyDown = (event) => {
|
|
101
|
-
if (this.disabled)
|
|
107
|
+
if (this.disabled || this.groupDisabled)
|
|
102
108
|
return;
|
|
103
109
|
if (event.key === 'Enter') {
|
|
104
110
|
event.preventDefault();
|
|
@@ -109,19 +115,21 @@ export class B2bMultiSelectDropdown {
|
|
|
109
115
|
this.setElementOnBlur();
|
|
110
116
|
}
|
|
111
117
|
};
|
|
112
|
-
this.handleSelectAll = event => {
|
|
118
|
+
this.handleSelectAll = (event) => {
|
|
113
119
|
const newVal = event.detail.selected;
|
|
114
120
|
const options = this.getOptions();
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
options[i].selected = newVal;
|
|
118
|
-
}
|
|
121
|
+
const values = options.map(el => el.option);
|
|
122
|
+
options.forEach(el => (el.selected = newVal));
|
|
119
123
|
if (newVal) {
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
const toAdd = this.normalizedOptions.filter(o => values.includes(o.value));
|
|
125
|
+
const set = new Set(this.currentSelectedValues.map(o => o.value));
|
|
126
|
+
this.currentSelectedValues = [
|
|
127
|
+
...this.currentSelectedValues,
|
|
128
|
+
...toAdd.filter(o => !set.has(o.value)),
|
|
129
|
+
];
|
|
122
130
|
}
|
|
123
131
|
else {
|
|
124
|
-
this.currentSelectedValues = this.currentSelectedValues.filter(
|
|
132
|
+
this.currentSelectedValues = this.currentSelectedValues.filter(o => !values.includes(o.value));
|
|
125
133
|
}
|
|
126
134
|
};
|
|
127
135
|
this.updateSelectAll = (options) => {
|
|
@@ -143,35 +151,51 @@ export class B2bMultiSelectDropdown {
|
|
|
143
151
|
this.errorMessage = undefined;
|
|
144
152
|
this.hint = undefined;
|
|
145
153
|
this.disabled = false;
|
|
154
|
+
this.groupDisabled = false;
|
|
146
155
|
this.currentSelectedValues = [];
|
|
147
|
-
this.currentList =
|
|
156
|
+
this.currentList = [];
|
|
148
157
|
this.value = '';
|
|
149
158
|
this.isElementFocused = false;
|
|
150
159
|
this.isOpen = false;
|
|
160
|
+
this.normalizedOptions = [];
|
|
161
|
+
this.normalizedSelected = [];
|
|
151
162
|
this.hasOptionList = this.optionsList.length > 0;
|
|
152
163
|
}
|
|
164
|
+
parsePropToOptArray(value) {
|
|
165
|
+
if (Array.isArray(value) && typeof value[0] === 'object') {
|
|
166
|
+
return value;
|
|
167
|
+
}
|
|
168
|
+
return parsePropToArray(value).map(v => ({
|
|
169
|
+
label: v,
|
|
170
|
+
value: v,
|
|
171
|
+
}));
|
|
172
|
+
}
|
|
153
173
|
componentWillLoad() {
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
156
|
-
this.currentList = this.
|
|
157
|
-
this.
|
|
174
|
+
this.normalizedSelected = this.parsePropToOptArray(this.selectedValues);
|
|
175
|
+
this.normalizedOptions = this.parsePropToOptArray(this.optionsList);
|
|
176
|
+
this.currentList = this.normalizedOptions;
|
|
177
|
+
this.hasOptionList = this.normalizedOptions.length > 0;
|
|
178
|
+
const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
|
|
179
|
+
this.currentSelectedValues = this.normalizedOptions.filter(opt => selectedSet.has(opt.value));
|
|
158
180
|
}
|
|
159
181
|
/** Needed to trigger a re-render for async data */
|
|
160
182
|
watchPropHandler(newList) {
|
|
161
|
-
this.
|
|
162
|
-
this.hasOptionList = this.
|
|
183
|
+
this.normalizedOptions = this.parsePropToOptArray(newList);
|
|
184
|
+
this.hasOptionList = this.normalizedOptions.length > 0;
|
|
163
185
|
if (this.hasOptionList) {
|
|
164
|
-
this.currentList = this.
|
|
165
|
-
|
|
186
|
+
this.currentList = this.normalizedOptions;
|
|
187
|
+
const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
|
|
188
|
+
this.currentSelectedValues = this.normalizedOptions.filter(opt => selectedSet.has(opt.value));
|
|
166
189
|
}
|
|
167
190
|
}
|
|
168
191
|
/** Needed to trigger a re-render for async data */
|
|
169
192
|
handleSelectedValuesChangeFromOutside(newVal) {
|
|
170
|
-
this.
|
|
171
|
-
|
|
193
|
+
this.normalizedSelected = this.parsePropToOptArray(newVal);
|
|
194
|
+
const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
|
|
195
|
+
this.currentSelectedValues = this.normalizedOptions.filter(o => selectedSet.has(o.value));
|
|
172
196
|
}
|
|
173
197
|
handleSelectedValuesChange(newValues) {
|
|
174
|
-
this.b2bChange.emit(newValues);
|
|
198
|
+
this.b2bChange.emit(newValues.map(o => o.value));
|
|
175
199
|
}
|
|
176
200
|
componentDidUpdate() {
|
|
177
201
|
const options = this.getOptions();
|
|
@@ -179,18 +203,21 @@ export class B2bMultiSelectDropdown {
|
|
|
179
203
|
this.updateSelectAll(options);
|
|
180
204
|
}
|
|
181
205
|
render() {
|
|
182
|
-
|
|
206
|
+
const disabled = this.disabled || this.groupDisabled;
|
|
207
|
+
const hasError = this.invalid && !disabled;
|
|
208
|
+
const showHint = this.hint && !hasError;
|
|
209
|
+
const showError = this.errorMessage && hasError;
|
|
210
|
+
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: {
|
|
183
211
|
'b2b-multiselect-dropdown': true,
|
|
184
212
|
'b2b-multiselect-dropdown--open': this.isOpen,
|
|
185
|
-
'b2b-multiselect-dropdown--error':
|
|
186
|
-
'b2b-multiselect-dropdown--disabled':
|
|
213
|
+
'b2b-multiselect-dropdown--error': hasError,
|
|
214
|
+
'b2b-multiselect-dropdown--disabled': disabled,
|
|
187
215
|
'b2b-multiselect-dropdown--focused': this.invalid && this.isElementFocused,
|
|
188
|
-
}, tabindex: 0, role: "combobox", onClick: () => (this.isOpen = !this.isOpen), "aria-expanded": this.isElementFocused }, h("div", { key: '
|
|
216
|
+
}, 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: {
|
|
189
217
|
'b2b-multiselect-dropdown__options-container': true,
|
|
190
218
|
'b2b-multiselect-dropdown__options-container--visible': this.isOpen,
|
|
191
|
-
} }, h("div", { key: '
|
|
192
|
-
this.currentList.map(option => (h("b2b-multiselect-option", { "onB2b-option-selected": this.handleSelectedChange, option: option }))))), (this.hint
|
|
193
|
-
(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)) : ('')));
|
|
219
|
+
} }, 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 &&
|
|
220
|
+
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))));
|
|
194
221
|
}
|
|
195
222
|
static get is() { return "b2b-multiselect-dropdown"; }
|
|
196
223
|
static get encapsulation() { return "shadow"; }
|
|
@@ -244,9 +271,14 @@ export class B2bMultiSelectDropdown {
|
|
|
244
271
|
"type": "string",
|
|
245
272
|
"mutable": false,
|
|
246
273
|
"complexType": {
|
|
247
|
-
"original": "string | string[]",
|
|
248
|
-
"resolved": "string | string[]",
|
|
249
|
-
"references": {
|
|
274
|
+
"original": "string | string[] | Option[]",
|
|
275
|
+
"resolved": "Option[] | string | string[]",
|
|
276
|
+
"references": {
|
|
277
|
+
"Option": {
|
|
278
|
+
"location": "global",
|
|
279
|
+
"id": "global::Option"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
250
282
|
},
|
|
251
283
|
"required": false,
|
|
252
284
|
"optional": false,
|
|
@@ -262,9 +294,14 @@ export class B2bMultiSelectDropdown {
|
|
|
262
294
|
"type": "string",
|
|
263
295
|
"mutable": false,
|
|
264
296
|
"complexType": {
|
|
265
|
-
"original": "string | string[]",
|
|
266
|
-
"resolved": "string | string[]",
|
|
267
|
-
"references": {
|
|
297
|
+
"original": "string | string[] | Option[]",
|
|
298
|
+
"resolved": "Option[] | string | string[]",
|
|
299
|
+
"references": {
|
|
300
|
+
"Option": {
|
|
301
|
+
"location": "global",
|
|
302
|
+
"id": "global::Option"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
268
305
|
},
|
|
269
306
|
"required": false,
|
|
270
307
|
"optional": false,
|
|
@@ -415,6 +452,27 @@ export class B2bMultiSelectDropdown {
|
|
|
415
452
|
"attribute": "disabled",
|
|
416
453
|
"reflect": true,
|
|
417
454
|
"defaultValue": "false"
|
|
455
|
+
},
|
|
456
|
+
"groupDisabled": {
|
|
457
|
+
"type": "boolean",
|
|
458
|
+
"mutable": false,
|
|
459
|
+
"complexType": {
|
|
460
|
+
"original": "boolean",
|
|
461
|
+
"resolved": "boolean",
|
|
462
|
+
"references": {}
|
|
463
|
+
},
|
|
464
|
+
"required": false,
|
|
465
|
+
"optional": false,
|
|
466
|
+
"docs": {
|
|
467
|
+
"tags": [{
|
|
468
|
+
"name": "internal",
|
|
469
|
+
"text": "Whether the parent input group is disabled. Per default, it is false."
|
|
470
|
+
}],
|
|
471
|
+
"text": ""
|
|
472
|
+
},
|
|
473
|
+
"attribute": "group-disabled",
|
|
474
|
+
"reflect": false,
|
|
475
|
+
"defaultValue": "false"
|
|
418
476
|
}
|
|
419
477
|
};
|
|
420
478
|
}
|
|
@@ -425,6 +483,8 @@ export class B2bMultiSelectDropdown {
|
|
|
425
483
|
"value": {},
|
|
426
484
|
"isElementFocused": {},
|
|
427
485
|
"isOpen": {},
|
|
486
|
+
"normalizedOptions": {},
|
|
487
|
+
"normalizedSelected": {},
|
|
428
488
|
"hasOptionList": {}
|
|
429
489
|
};
|
|
430
490
|
}
|
|
@@ -13,8 +13,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { getArgTypes } from "../../docs/config/utils";
|
|
14
14
|
import { html } from "lit-html";
|
|
15
15
|
import fruits from "./stories.data.json";
|
|
16
|
+
import fruitOptions from "./stories.data2.json";
|
|
16
17
|
const multiselectArgs = getArgTypes('b2b-multiselect-dropdown');
|
|
17
|
-
|
|
18
|
+
export default {
|
|
18
19
|
title: 'Components/Form/Multiselect Dropdown',
|
|
19
20
|
component: 'b2b-multiselect-dropdown',
|
|
20
21
|
args: {
|
|
@@ -51,12 +52,8 @@ const meta = {
|
|
|
51
52
|
</div>`;
|
|
52
53
|
},
|
|
53
54
|
};
|
|
54
|
-
export
|
|
55
|
-
export const Default = {
|
|
56
|
-
args: Object.assign({}, meta.args),
|
|
57
|
-
};
|
|
55
|
+
export const Default = {};
|
|
58
56
|
export const InitialSelectedValues = {
|
|
59
|
-
args: Object.assign({}, meta.args),
|
|
60
57
|
render: (_a) => {
|
|
61
58
|
var args = __rest(_a, []);
|
|
62
59
|
return html `<div style="width: 400px">
|
|
@@ -78,17 +75,53 @@ export const InitialSelectedValues = {
|
|
|
78
75
|
},
|
|
79
76
|
};
|
|
80
77
|
export const Required = {
|
|
81
|
-
args:
|
|
78
|
+
args: {
|
|
79
|
+
required: true,
|
|
80
|
+
},
|
|
82
81
|
};
|
|
83
82
|
export const Hint = {
|
|
84
|
-
args:
|
|
83
|
+
args: {
|
|
84
|
+
hint: 'please select a value',
|
|
85
|
+
},
|
|
85
86
|
};
|
|
86
87
|
export const Disabled = {
|
|
87
|
-
args:
|
|
88
|
+
args: {
|
|
89
|
+
disabled: true,
|
|
90
|
+
},
|
|
88
91
|
};
|
|
89
92
|
export const Invalid = {
|
|
90
|
-
args:
|
|
93
|
+
args: {
|
|
94
|
+
invalid: true,
|
|
95
|
+
},
|
|
91
96
|
};
|
|
92
97
|
export const InvalidWithErrorMessage = {
|
|
93
|
-
args:
|
|
98
|
+
args: {
|
|
99
|
+
invalid: true,
|
|
100
|
+
errorMessage: 'error has occurred',
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
export const WithOptionsArray = {
|
|
104
|
+
args: {
|
|
105
|
+
optionsList: [...fruitOptions],
|
|
106
|
+
selectedValues: ['1', '5'],
|
|
107
|
+
},
|
|
108
|
+
render: (_a) => {
|
|
109
|
+
var args = __rest(_a, []);
|
|
110
|
+
return html `<div style="width: 400px">
|
|
111
|
+
<b2b-multiselect-dropdown
|
|
112
|
+
label=${args.label}
|
|
113
|
+
max-options-visible=${args.maxOptionsVisible}
|
|
114
|
+
select-all-label=${args.selectAllLabel}
|
|
115
|
+
placeholder=${args.placeholder}
|
|
116
|
+
search-placeholder=${args.searchPlaceholder}
|
|
117
|
+
.optionsList=${args.optionsList}
|
|
118
|
+
.selectedValues=${args.selectedValues}
|
|
119
|
+
required=${args.required}
|
|
120
|
+
hint=${args.hint}
|
|
121
|
+
disabled=${args.disabled}
|
|
122
|
+
invalid=${args.invalid}
|
|
123
|
+
error-message=${args.errorMessage}>
|
|
124
|
+
</b2b-multiselect-dropdown>
|
|
125
|
+
</div>`;
|
|
126
|
+
},
|
|
94
127
|
};
|
package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js
CHANGED
|
@@ -9,13 +9,15 @@ export class B2bMultiSelectOption {
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
this.option = undefined;
|
|
12
|
+
this.label = undefined;
|
|
12
13
|
this.selected = false;
|
|
13
14
|
this.indeterminate = false;
|
|
14
15
|
}
|
|
15
16
|
render() {
|
|
16
|
-
|
|
17
|
+
var _a;
|
|
18
|
+
return (h(Host, { key: '0147313a2d52d7cdf334f118f8a5eae6fb2a73df', role: "option", class: {
|
|
17
19
|
'b2b-multiselect-dropdown__option': true,
|
|
18
|
-
} }, h("b2b-checkbox", { key: '
|
|
20
|
+
} }, h("b2b-checkbox", { key: 'bf1504c0924dbda95990369b31c010804b2ceac7', checked: this.selected, "onB2b-change": this.handleCheckboxChange, label: (_a = this.label) !== null && _a !== void 0 ? _a : this.option, indeterminate: this.indeterminate, value: this.option })));
|
|
19
21
|
}
|
|
20
22
|
static get is() { return "b2b-multiselect-option"; }
|
|
21
23
|
static get originalStyleUrls() {
|
|
@@ -42,11 +44,28 @@ export class B2bMultiSelectOption {
|
|
|
42
44
|
"optional": false,
|
|
43
45
|
"docs": {
|
|
44
46
|
"tags": [],
|
|
45
|
-
"text": "The label of the option."
|
|
47
|
+
"text": "The label and value of the option."
|
|
46
48
|
},
|
|
47
49
|
"attribute": "option",
|
|
48
50
|
"reflect": false
|
|
49
51
|
},
|
|
52
|
+
"label": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "string",
|
|
57
|
+
"resolved": "string",
|
|
58
|
+
"references": {}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": true,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": "Will provide the label instead of option if set"
|
|
65
|
+
},
|
|
66
|
+
"attribute": "label",
|
|
67
|
+
"reflect": false
|
|
68
|
+
},
|
|
50
69
|
"selected": {
|
|
51
70
|
"type": "boolean",
|
|
52
71
|
"mutable": true,
|
|
@@ -91,7 +91,7 @@ export class PaginationComponent {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return (h("nav", { key: '
|
|
94
|
+
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) => {
|
|
95
95
|
const isItemActive = this.activePage === navItem;
|
|
96
96
|
return (h("li", { class: this.getItemClass(navItem) }, h("b2b-button", { onClick: () => this.setSelectedPage(navItem, index), active: isItemActive, disabled: isItemActive, size: "50", variant: "secondary" }, navItem)));
|
|
97
97
|
}), 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 */))))));
|
|
@@ -13,7 +13,7 @@ export class ParagraphComponent {
|
|
|
13
13
|
this.display = 'block';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("p", { key: '
|
|
16
|
+
return (h("p", { key: '9372543c8a22d33c6ed0c53e3e8b277e0ce78883', style: {
|
|
17
17
|
display: this.display,
|
|
18
18
|
}, class: {
|
|
19
19
|
'b2b-paragraph': true,
|
|
@@ -22,7 +22,7 @@ export class ParagraphComponent {
|
|
|
22
22
|
['b2b-paragraph--align-' + this.align]: true,
|
|
23
23
|
['b2b-paragraph--no-margin']: !this.margin,
|
|
24
24
|
['b2b-paragraph--variant-' + this.variant]: true,
|
|
25
|
-
} }, h("slot", { key: '
|
|
25
|
+
} }, h("slot", { key: 'ca3169be5b0239e40911fa2071c744404a6bbbae' })));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "b2b-paragraph"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,11 +17,11 @@ export class ProgressBarComponent {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const labelExists = this.label !== undefined && this.label !== '';
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '4511acab06e497842a84eed7cfa9beb7d575dbe7' }, h("div", { key: '03b04648866fed3e0c276ca8218201639b23f6fc', class: {
|
|
21
21
|
[`b2b-progress-bar__${this.labelPosition}-${this.labelType}`]: true,
|
|
22
|
-
} }, h("div", { key: '
|
|
22
|
+
} }, h("div", { key: '8ddd2295fd43f56b8393178e38ea414e96f332ed', class: "b2b-progress-bar__wrapper" }, h("div", { key: 'e6ea32124f8df1b937dd8f62e1e06d306229cd75', class: "b2b-progress-bar__progress", style: {
|
|
23
23
|
width: `${this.getProgress()}%`,
|
|
24
|
-
} })), h("div", { key: '
|
|
24
|
+
} })), h("div", { key: '36a7f3c4c5229350ea3a37827fa0613db0ab33b7', class: {
|
|
25
25
|
'b2b-progress-bar__label': labelExists,
|
|
26
26
|
'b2b-progress-bar__label-none': !labelExists,
|
|
27
27
|
[`b2b-progress-bar__label__${this.labelPosition}-${this.labelType}`]: labelExists,
|
|
@@ -53,11 +53,11 @@ export class B2bRadioButtonComponent {
|
|
|
53
53
|
return Array.from(document.querySelectorAll(`b2b-radio-button[name="${this.name}"]`)).filter((radio) => radio.value !== this.value);
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '5fbc72c2f038679ea04d1c99a6f687e4829d7d51', onClick: this.onClick }, h("div", { key: '895c751c5086b2f7d466635020a39a96d1c9f220', class: {
|
|
57
57
|
'b2b-radio': true,
|
|
58
58
|
'b2b-radio--error': this.invalid && !this.disabled,
|
|
59
59
|
'b2b-radio--disabled': this.disabled,
|
|
60
|
-
} }, h("div", { key: '
|
|
60
|
+
} }, 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) ||
|
|
61
61
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "b2b-radio-button"; }
|
|
@@ -67,11 +67,11 @@ export class RadioButtonGroupComponent {
|
|
|
67
67
|
this.removeChildText();
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: 'c47db22cd7ab5484813e052db015d2b8d1405bb9' }, h("div", { key: '1e7fc6246f83ea53debd5ef7fc42772e3c41a936', class: {
|
|
71
71
|
'b2b-radio-group': true,
|
|
72
72
|
'b2b-radio-group--error': this.invalid && !this.disabled,
|
|
73
73
|
[`b2b-radio-group--${this.alignment}`]: true,
|
|
74
|
-
} }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("fieldset", { key: '
|
|
74
|
+
} }, (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) ||
|
|
75
75
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "b2b-radio-group"; }
|
|
@@ -4,7 +4,7 @@ export class B2BRequiredSeparator {
|
|
|
4
4
|
this.label = 'Pflichtfeld';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
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' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "b2b-required-separator"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,16 +6,16 @@ export class RoundedIconComponent {
|
|
|
6
6
|
this.contentColor = 'var(--b2b-color-copy-default)';
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '1d7eea4ad65056f16127e2029811239e0540560b' }, h("div", { key: '153f0ace757daff8776fac4fbe1cc9a05e9c0dfa', style: {
|
|
10
10
|
['background-color']: this.color,
|
|
11
11
|
['border']: `1px solid ${this.borderColor || this.color}`,
|
|
12
12
|
}, class: {
|
|
13
13
|
'b2b-rounded-icon': true,
|
|
14
|
-
} }, h("div", { key: '
|
|
14
|
+
} }, h("div", { key: '7b28d41d6d5cb38c21aa4487cca0ce070663909a', style: {
|
|
15
15
|
['color']: this.contentColor,
|
|
16
|
-
} }, h("slot", { key: '
|
|
16
|
+
} }, h("slot", { key: '32e90de259f352aff82118dd1f9904475fc875e2', name: "icon" })), h("div", { key: '38f7a97f95191cd039a4bbbcf20a9b5ce1826a8e', style: {
|
|
17
17
|
['color']: this.contentColor,
|
|
18
|
-
} }, h("slot", { key: '
|
|
18
|
+
} }, h("slot", { key: 'e994e7fbd49f656c865ce8517833be0d6bbb852e', name: "text" })))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "b2b-rounded-icon"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class ScrollableContainerComponent {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'c5c71924d38f1788a60b19e49ad09a3aa5d637f6' }, h("slot", { key: '4fa412e60d51aa58e9e6d40936bb4f4a4725dab5' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "b2b-scrollable-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,7 +22,7 @@ export class SearchComponent {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
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 })))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "b2b-search"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class B2bSeparatorComponent {
|
|
|
4
4
|
this.alignment = 'horizontal';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'f1ab4806be7ac4128d95a047421be58502b0cadf' }, h("div", { key: 'c478fc67a79c15a6d74af39eb6747d25d3d58922', class: {
|
|
8
8
|
[`b2b-separator--${this.alignment}`]: true,
|
|
9
9
|
} })));
|
|
10
10
|
}
|
|
@@ -10,7 +10,7 @@ export class ShimmerComponent {
|
|
|
10
10
|
width: `${this.width}px`,
|
|
11
11
|
height: `${this.height}px`,
|
|
12
12
|
};
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '82fc3e95ff0f946ae6cfd5c59ab1a0e04df62ca5' }, this.loading ? (h("div", { class: "b2b-shimmer", style: shimmerStyle })) : (h("slot", null))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "b2b-shimmer"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|