@otto-de/b2b-core-components 1.20.0 → 1.22.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/b2b_icon-chatbot.svg +2 -20
- package/dist/b2b-core-components/icons-100/b2b_icon-bullet-list.svg +1 -0
- package/dist/b2b-core-components/icons-100/b2b_icon-chatbot.svg +2 -20
- package/dist/b2b-core-components/icons-100/b2b_icon-ordered-list.svg +1 -0
- package/dist/b2b-core-components/{p-7a9088d2.entry.js → p-01c05f0c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-64a2aebd.entry.js → p-05ad52a3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-19b13dcc.entry.js → p-078a9f04.entry.js} +1 -1
- package/dist/b2b-core-components/{p-4ac8b0ba.entry.js → p-15988a15.entry.js} +1 -1
- package/dist/b2b-core-components/{p-171722c3.entry.js → p-1930be42.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1887174e.entry.js → p-19b5503c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-189f3e25.entry.js → p-1c048a27.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ae0d9209.entry.js → p-20d53606.entry.js} +1 -1
- package/dist/b2b-core-components/p-212fa6a0.entry.js +1 -0
- package/dist/b2b-core-components/{p-4e7ad473.entry.js → p-228e1449.entry.js} +1 -1
- package/dist/b2b-core-components/{p-d51551c9.entry.js → p-232acfe1.entry.js} +1 -1
- package/dist/b2b-core-components/{p-72e23a4e.entry.js → p-271d44a7.entry.js} +1 -1
- package/dist/b2b-core-components/{p-56573a91.entry.js → p-296f824d.entry.js} +1 -1
- package/dist/b2b-core-components/p-2bab8c7f.entry.js +1 -0
- package/dist/b2b-core-components/{p-00700a00.entry.js → p-2c8f2fa9.entry.js} +1 -1
- package/dist/b2b-core-components/{p-31df26eb.entry.js → p-3ef45a4b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-bcb7e042.entry.js → p-48e693a5.entry.js} +1 -1
- package/dist/b2b-core-components/p-545b6ba2.entry.js +1 -0
- package/dist/b2b-core-components/{p-08a26519.entry.js → p-5958af69.entry.js} +1 -1
- package/dist/b2b-core-components/{p-f8cf06c5.entry.js → p-5a7e3db7.entry.js} +1 -1
- package/dist/b2b-core-components/p-6f3a6904.entry.js +1 -0
- package/dist/b2b-core-components/{p-39651255.entry.js → p-7264f359.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a7221803.entry.js → p-744e8fc3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c33bc1a2.entry.js → p-752d38c8.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ab8d496b.entry.js → p-7afbfa3b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e9537c12.entry.js → p-88c0c97c.entry.js} +1 -1
- package/dist/b2b-core-components/p-928ab618.entry.js +1 -0
- package/dist/b2b-core-components/p-92a809de.entry.js +1 -0
- package/dist/b2b-core-components/p-94f80a44.entry.js +1 -0
- package/dist/b2b-core-components/{p-54d15111.entry.js → p-9f453acb.entry.js} +1 -1
- package/dist/b2b-core-components/p-a923feb6.js +1 -0
- package/dist/b2b-core-components/{p-758ff932.entry.js → p-ad0df2f2.entry.js} +1 -1
- package/dist/b2b-core-components/{p-35dca1b0.entry.js → p-b03d197a.entry.js} +1 -1
- package/dist/b2b-core-components/{p-6847b3bf.entry.js → p-b045e097.entry.js} +1 -1
- package/dist/b2b-core-components/{p-f5fa0721.entry.js → p-b368015e.entry.js} +1 -1
- package/dist/b2b-core-components/p-b7afa702.entry.js +1 -0
- package/dist/b2b-core-components/{p-1135d0ce.entry.js → p-c10ee62f.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ad99ec44.entry.js → p-c365567c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-67ad8770.entry.js → p-c97990e8.entry.js} +1 -1
- package/dist/b2b-core-components/p-cad3574a.entry.js +1 -0
- package/dist/b2b-core-components/{p-0e7e3e44.entry.js → p-cd520262.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1c8825d1.entry.js → p-d0035d7d.entry.js} +1 -1
- package/dist/b2b-core-components/p-d3a04423.entry.js +1 -0
- package/dist/b2b-core-components/{p-30d6787c.entry.js → p-ef01f7b2.entry.js} +1 -1
- package/dist/b2b-core-components/p-f1287a36.entry.js +1 -0
- package/dist/b2b-core-components/{p-e350e4ab.entry.js → p-f8f280fc.entry.js} +1 -1
- package/dist/cjs/b2b-alert.cjs.entry.js +1 -1
- package/dist/cjs/b2b-anchor.cjs.entry.js +7 -3
- package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-chip-component_2.cjs.entry.js +2 -2
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-date-picker-days_5.cjs.entry.js +35 -33
- package/dist/cjs/b2b-date-picker.cjs.entry.js +73 -27
- package/dist/cjs/b2b-dropdown.cjs.entry.js +2 -2
- 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 +2 -0
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +3 -3
- package/dist/cjs/b2b-input-label.cjs.entry.js +2 -2
- package/dist/cjs/b2b-input_2.cjs.entry.js +5 -5
- 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 +4 -4
- package/dist/cjs/b2b-pagination.cjs.entry.js +1 -1
- package/dist/cjs/b2b-paragraph.cjs.entry.js +2 -2
- package/dist/cjs/b2b-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/b2b-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/b2b-radio-group.cjs.entry.js +5 -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-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 +29 -8
- 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 +4 -4
- 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-picker-util-8596688b.js +109 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/alert/alert.css +2 -2
- package/dist/collection/components/alert/alert.e2e.js +2 -2
- package/dist/collection/components/alert/alert.js +2 -2
- package/dist/collection/components/anchor/anchor.css +16 -7
- package/dist/collection/components/anchor/anchor.js +42 -2
- package/dist/collection/components/anchor/anchor.spec.js +8 -8
- package/dist/collection/components/anchor/anchor.stories.js +22 -2
- package/dist/collection/components/background-box/background-box.css +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
- package/dist/collection/components/button/button.css +2 -2
- package/dist/collection/components/card/card.css +2 -2
- package/dist/collection/components/checkbox/checkbox.css +2 -2
- package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
- package/dist/collection/components/chip/chip.css +2 -2
- package/dist/collection/components/date-picker/date-picker-days-header.css +2 -2
- package/dist/collection/components/date-picker/date-picker-days-header.js +27 -3
- package/dist/collection/components/date-picker/date-picker-days.css +2 -2
- package/dist/collection/components/date-picker/date-picker-days.js +93 -19
- package/dist/collection/components/date-picker/date-picker-header.css +2 -2
- package/dist/collection/components/date-picker/date-picker-header.js +26 -6
- package/dist/collection/components/date-picker/date-picker-months.css +2 -2
- package/dist/collection/components/date-picker/date-picker-months.e2e.js +3 -3
- package/dist/collection/components/date-picker/date-picker-months.js +22 -2
- package/dist/collection/components/date-picker/date-picker-years.css +2 -2
- package/dist/collection/components/date-picker/date-picker.css +2 -4
- package/dist/collection/components/date-picker/date-picker.js +216 -23
- package/dist/collection/components/date-picker/date-picker.stories.js +103 -7
- package/dist/collection/components/date-picker/date-picker.types.js +33 -2
- package/dist/collection/components/dropdown/dropdown.css +2 -2
- package/dist/collection/components/dropdown/dropdown.js +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu-option.css +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu-option.js +1 -1
- package/dist/collection/components/flyout-menu/flyout-menu.css +2 -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/headline/headline.css +2 -2
- package/dist/collection/components/headline/headline.stories.js +9 -2
- package/dist/collection/components/icon/icon.css +2 -2
- package/dist/collection/components/icon/icons/b2b_icon-chatbot.svg +2 -20
- package/dist/collection/components/icon-100/icon-100.css +2 -2
- package/dist/collection/components/icon-100/icon-100.js +1 -1
- package/dist/collection/components/icon-100/icons-100/b2b_icon-bullet-list.svg +1 -0
- package/dist/collection/components/icon-100/icons-100/b2b_icon-chatbot.svg +2 -20
- package/dist/collection/components/icon-100/icons-100/b2b_icon-ordered-list.svg +1 -0
- package/dist/collection/components/icon-100/types.js +2 -0
- package/dist/collection/components/icon-50/icon-50.css +2 -2
- package/dist/collection/components/input/input.css +2 -2
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/input-group/input-group.css +2 -2
- package/dist/collection/components/input-group/input-group.js +1 -1
- 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.css +2 -2
- package/dist/collection/components/input-list/input-list.js +2 -2
- package/dist/collection/components/label/label.css +2 -2
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/modal/modal.css +2 -2
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +4 -4
- package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +2 -2
- package/dist/collection/components/pagination/pagination.css +2 -2
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/paragraph/paragraph.css +2 -2
- package/dist/collection/components/paragraph/paragraph.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.css +5 -2
- package/dist/collection/components/progress-bar/progress-bar.js +3 -3
- package/dist/collection/components/radio/radio.css +2 -2
- package/dist/collection/components/radio/radio.e2e.js +9 -0
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/radio/radio.stories.js +7 -0
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/radio-group/radio-group.e2e.js +12 -0
- package/dist/collection/components/radio-group/radio-group.js +5 -2
- package/dist/collection/components/radio-group/radio-group.stories.js +15 -0
- package/dist/collection/components/required-separator/required-separator.css +2 -2
- package/dist/collection/components/required-separator/required-separator.js +1 -1
- package/dist/collection/components/rounded-icon/rounded-icon.css +2 -2
- package/dist/collection/components/rounded-icon/rounded-icon.js +4 -4
- package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
- 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.css +2 -2
- package/dist/collection/components/separator/separator.js +1 -1
- package/dist/collection/components/spinner/spinner.css +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/tab/tab.css +2 -2
- 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.css +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table-cell/table-cell.css +2 -2
- package/dist/collection/components/table/table-cell/table-cell.js +2 -2
- package/dist/collection/components/table/table-header/table-header.css +2 -2
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-row/table-row.css +2 -2
- package/dist/collection/components/table/table-row/table-row.js +31 -9
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +3 -3
- package/dist/collection/components/table/table.css +2 -2
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/textarea/textarea.css +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/toggle-button/toggle-button.css +2 -2
- package/dist/collection/components/toggle-button/toggle-button.js +3 -3
- package/dist/collection/components/toggle-chip/toggle-chip.css +2 -2
- package/dist/collection/components/toggle-chip/toggle-chip.js +3 -3
- package/dist/collection/components/toggle-group/toggle-group.css +2 -2
- package/dist/collection/components/toggle-group/toggle-group.js +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.css +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
- package/dist/collection/components/tooltip/tooltip.css +2 -2
- 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.css +2 -2
- package/dist/collection/components/wizard/wizard.js +1 -1
- package/dist/collection/components/wizard-icon/wizard-icon.css +2 -2
- package/dist/collection/components/wizard-icon/wizard-icon.js +1 -1
- package/dist/collection/utils/datepicker/date-picker-util.js +48 -0
- package/dist/components/b2b-alert.js +1 -1
- package/dist/components/b2b-anchor.js +10 -4
- package/dist/components/b2b-date-picker.js +82 -24
- package/dist/components/b2b-dropdown.js +2 -2
- 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-100.js +2 -0
- package/dist/components/b2b-label.js +2 -2
- package/dist/components/b2b-modal.js +2 -2
- package/dist/components/b2b-multiselect-dropdown.js +4 -4
- package/dist/components/b2b-pagination.js +1 -1
- package/dist/components/b2b-paragraph.js +2 -2
- package/dist/components/b2b-progress-bar.js +4 -4
- package/dist/components/b2b-radio-button.js +2 -2
- package/dist/components/b2b-radio-group.js +5 -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-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 +30 -8
- package/dist/components/b2b-table-rowgroup.js +3 -3
- 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 +4 -4
- 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/date-picker-days-header.js +8 -4
- package/dist/components/date-picker-days.js +69 -20
- package/dist/components/date-picker-header.js +10 -7
- package/dist/components/date-picker-months.js +6 -3
- package/dist/components/date-picker.types.js +34 -3
- package/dist/components/input-group.js +1 -1
- 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 +4 -4
- package/dist/components/multiselect-option.js +2 -2
- 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 +100 -1
- package/dist/esm/b2b-alert.entry.js +1 -1
- package/dist/esm/b2b-anchor.entry.js +7 -3
- package/dist/esm/b2b-button_2.entry.js +1 -1
- package/dist/esm/b2b-chip-component_2.entry.js +2 -2
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-date-picker-days_5.entry.js +30 -28
- package/dist/esm/b2b-date-picker.entry.js +69 -23
- package/dist/esm/b2b-dropdown.entry.js +2 -2
- 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 +2 -0
- package/dist/esm/b2b-input-group_2.entry.js +3 -3
- package/dist/esm/b2b-input-label.entry.js +2 -2
- package/dist/esm/b2b-input_2.entry.js +5 -5
- 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 +4 -4
- package/dist/esm/b2b-pagination.entry.js +1 -1
- package/dist/esm/b2b-paragraph.entry.js +2 -2
- package/dist/esm/b2b-progress-bar.entry.js +4 -4
- package/dist/esm/b2b-radio-button.entry.js +2 -2
- package/dist/esm/b2b-radio-group.entry.js +5 -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-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 +29 -8
- 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 +4 -4
- 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-picker-util-10878a70.js +103 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/anchor/anchor.d.ts +4 -0
- package/dist/types/components/anchor/anchor.stories.d.ts +3 -1
- package/dist/types/components/date-picker/date-picker-days-header.d.ts +2 -0
- package/dist/types/components/date-picker/date-picker-days.d.ts +8 -1
- package/dist/types/components/date-picker/date-picker-header.d.ts +2 -0
- package/dist/types/components/date-picker/date-picker-months.d.ts +2 -0
- package/dist/types/components/date-picker/date-picker.d.ts +24 -2
- package/dist/types/components/date-picker/date-picker.stories.d.ts +8 -0
- package/dist/types/components/date-picker/date-picker.types.d.ts +4 -2
- package/dist/types/components/headline/headline.stories.d.ts +1 -0
- package/dist/types/components/icon-100/types.d.ts +1 -1
- package/dist/types/components/radio/radio.stories.d.ts +2 -1
- package/dist/types/components/radio-group/radio-group.d.ts +2 -0
- package/dist/types/components/radio-group/radio-group.stories.d.ts +2 -1
- package/dist/types/components/table/table-row/table-row.d.ts +6 -2
- package/dist/types/components.d.ts +161 -1
- package/dist/types/utils/datepicker/date-picker-util.d.ts +14 -0
- package/dist/web-types.json +174 -7
- package/package.json +3 -2
- package/dist/b2b-core-components/p-062b3042.entry.js +0 -1
- package/dist/b2b-core-components/p-101e08d9.entry.js +0 -1
- package/dist/b2b-core-components/p-376ba9ef.entry.js +0 -1
- package/dist/b2b-core-components/p-441657b2.js +0 -1
- package/dist/b2b-core-components/p-670a0599.entry.js +0 -1
- package/dist/b2b-core-components/p-68a836cb.entry.js +0 -1
- package/dist/b2b-core-components/p-6f17d047.entry.js +0 -1
- package/dist/b2b-core-components/p-931c9dc7.entry.js +0 -1
- package/dist/b2b-core-components/p-baa99f00.entry.js +0 -1
- package/dist/b2b-core-components/p-d0e8d48b.entry.js +0 -1
- package/dist/b2b-core-components/p-d0e930f2.entry.js +0 -1
- package/dist/b2b-core-components/p-d3f86dfe.entry.js +0 -1
- package/dist/cjs/date-picker.types-79f4bba0.js +0 -26
- package/dist/esm/date-picker.types-e21b2096.js +0 -23
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { DateUtils } from "../../utils/datepicker/date-picker-util";
|
|
2
3
|
const keys = {
|
|
3
4
|
ARROW_UP: 'ArrowUp',
|
|
4
5
|
ARROW_DOWN: 'ArrowDown',
|
|
@@ -33,23 +34,6 @@ export class B2bDatePickerDays {
|
|
|
33
34
|
date.focus();
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
|
-
this.isDisabledDate = (givenDate) => {
|
|
37
|
-
if (this.disablePastDates) {
|
|
38
|
-
if (givenDate < this.todayWithoutTime)
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
else if (this.disableFutureDates) {
|
|
42
|
-
if (givenDate > this.todayWithoutTime)
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
else if (this.disableWeekends) {
|
|
46
|
-
if (givenDate.getDay() == 0 || givenDate.getDay() == 6)
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
37
|
this.handleClick = (event) => {
|
|
54
38
|
/** Remove focus from the clicked element */
|
|
55
39
|
event.target.blur();
|
|
@@ -66,7 +50,16 @@ export class B2bDatePickerDays {
|
|
|
66
50
|
/** Populate days array with day numbers. */
|
|
67
51
|
for (let i = 1; i <= daysInMonth; i++) {
|
|
68
52
|
let givenDate = new Date(this.selectedYear, this.selectedMonth, i);
|
|
69
|
-
let disabled =
|
|
53
|
+
let disabled = DateUtils.isDisabledDate(givenDate, {
|
|
54
|
+
disableDates: this.disableDates,
|
|
55
|
+
disablePastDates: this.disablePastDates,
|
|
56
|
+
disableFutureDates: this.disableFutureDates,
|
|
57
|
+
disableWeekends: this.disableWeekends,
|
|
58
|
+
todayWithoutTime: this.todayWithoutTime,
|
|
59
|
+
disableEvery: this.disableEvery,
|
|
60
|
+
disableDatesUntil: this.disableDatesUntil,
|
|
61
|
+
disableDatesFrom: this.disableDatesFrom,
|
|
62
|
+
});
|
|
70
63
|
days.push(h("div", { class: {
|
|
71
64
|
'b2b-date-picker-day': true,
|
|
72
65
|
'b2b-date-picker-day--disabled': disabled,
|
|
@@ -89,6 +82,10 @@ export class B2bDatePickerDays {
|
|
|
89
82
|
this.disablePastDates = false;
|
|
90
83
|
this.disableFutureDates = false;
|
|
91
84
|
this.disableWeekends = false;
|
|
85
|
+
this.disableDates = [];
|
|
86
|
+
this.disableEvery = [];
|
|
87
|
+
this.disableDatesUntil = undefined;
|
|
88
|
+
this.disableDatesFrom = undefined;
|
|
92
89
|
this.disabled = false;
|
|
93
90
|
}
|
|
94
91
|
componentDidLoad() {
|
|
@@ -163,7 +160,7 @@ export class B2bDatePickerDays {
|
|
|
163
160
|
});
|
|
164
161
|
}
|
|
165
162
|
render() {
|
|
166
|
-
return (h(Host, { key: '
|
|
163
|
+
return (h(Host, { key: 'c739f1a046740cc9141140354bd262916c04b42c' }, h("div", { key: 'd08a86f51331b971209f11d8b2c783a1d7d91b05', class: "b2b-date-picker-days" }, this.renderDatePickerDays())));
|
|
167
164
|
}
|
|
168
165
|
static get is() { return "b2b-date-picker-days"; }
|
|
169
166
|
static get encapsulation() { return "shadow"; }
|
|
@@ -283,6 +280,83 @@ export class B2bDatePickerDays {
|
|
|
283
280
|
"attribute": "disable-weekends",
|
|
284
281
|
"reflect": false,
|
|
285
282
|
"defaultValue": "false"
|
|
283
|
+
},
|
|
284
|
+
"disableDates": {
|
|
285
|
+
"type": "unknown",
|
|
286
|
+
"mutable": false,
|
|
287
|
+
"complexType": {
|
|
288
|
+
"original": "Date[]",
|
|
289
|
+
"resolved": "Date[]",
|
|
290
|
+
"references": {
|
|
291
|
+
"Date": {
|
|
292
|
+
"location": "global",
|
|
293
|
+
"id": "global::Date"
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [],
|
|
301
|
+
"text": "Internal the dates that are part of this array are disabled. By default, this is an empty array."
|
|
302
|
+
},
|
|
303
|
+
"defaultValue": "[]"
|
|
304
|
+
},
|
|
305
|
+
"disableEvery": {
|
|
306
|
+
"type": "unknown",
|
|
307
|
+
"mutable": false,
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "string[]",
|
|
310
|
+
"resolved": "string[]",
|
|
311
|
+
"references": {}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": false,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [],
|
|
317
|
+
"text": "Internal the specific days of the week that need to be disabled"
|
|
318
|
+
},
|
|
319
|
+
"defaultValue": "[]"
|
|
320
|
+
},
|
|
321
|
+
"disableDatesUntil": {
|
|
322
|
+
"type": "unknown",
|
|
323
|
+
"mutable": false,
|
|
324
|
+
"complexType": {
|
|
325
|
+
"original": "Date",
|
|
326
|
+
"resolved": "Date",
|
|
327
|
+
"references": {
|
|
328
|
+
"Date": {
|
|
329
|
+
"location": "global",
|
|
330
|
+
"id": "global::Date"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": "Internal all the dates until the given specified date will be disabled."
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"disableDatesFrom": {
|
|
342
|
+
"type": "unknown",
|
|
343
|
+
"mutable": false,
|
|
344
|
+
"complexType": {
|
|
345
|
+
"original": "Date",
|
|
346
|
+
"resolved": "Date",
|
|
347
|
+
"references": {
|
|
348
|
+
"Date": {
|
|
349
|
+
"location": "global",
|
|
350
|
+
"id": "global::Date"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"required": false,
|
|
355
|
+
"optional": false,
|
|
356
|
+
"docs": {
|
|
357
|
+
"tags": [],
|
|
358
|
+
"text": "Internal all the dates from the given specified date will be disabled."
|
|
359
|
+
}
|
|
286
360
|
}
|
|
287
361
|
};
|
|
288
362
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 30 Jan 2025 18:09:12 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
125
|
+
* Generated on Thu, 30 Jan 2025 18:09:12 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
-
import { DatePickerView,
|
|
2
|
+
import { DatePickerView, MonthsGerman, MonthsEnglish, } from "./date-picker.types";
|
|
3
3
|
export class B2bDatePickerHeader {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.selectedMonth = undefined;
|
|
6
6
|
this.selectedYear = undefined;
|
|
7
|
+
this.language = 'de';
|
|
7
8
|
}
|
|
8
9
|
render() {
|
|
9
|
-
|
|
10
|
+
const Months = this.language === 'en' ? MonthsEnglish : MonthsGerman;
|
|
11
|
+
return (h(Host, { key: '7cafcdef8033dbe03700fc48b523290ea8d1577a' }, h("div", { key: '2ea038c03c6a8d8295adf41477724334f07180bd', class: "b2b-date-picker-header" }, h("button", { key: 'b9b9365fd1f454f7e6176d7b4e8c77cecdefa9e8', class: "b2b-date-picker-nav--left", onClick: this.b2bDatePickerPreviousMonth.emit, onMouseOut: event => {
|
|
10
12
|
event.target.blur();
|
|
11
|
-
}, "aria-label": "previous month" }, h("b2b-icon", { key: '
|
|
13
|
+
}, "aria-label": "previous month" }, h("b2b-icon", { key: '1910bbb66a8f1a91794588317418660b84ac0fb0', icon: "b2b_icon-arrow-left", clickable: true })), h("b2b-headline", { key: '3fd3ead55341abfbe3d89192882f33a86c73523d', size: '100', align: 'center', class: "b2b-date-picker-month", "aria-label": "select month", tabindex: 0, onClick: () => {
|
|
12
14
|
this.b2bDatePickerViewChanged.emit({
|
|
13
15
|
value: DatePickerView.Months,
|
|
14
16
|
});
|
|
@@ -18,7 +20,7 @@ export class B2bDatePickerHeader {
|
|
|
18
20
|
value: DatePickerView.Months,
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
|
-
} }, Months[this.selectedMonth]), h("b2b-headline", { key: '
|
|
23
|
+
} }, Months[this.selectedMonth]), h("b2b-headline", { key: 'cee9e20e84f0a7470c22256990f2e194fe099bd3', size: '100', align: 'center', class: "b2b-date-picker-year", "aria-label": "select year", tabindex: 0, onClick: () => {
|
|
22
24
|
this.b2bDatePickerViewChanged.emit({
|
|
23
25
|
value: DatePickerView.Years,
|
|
24
26
|
});
|
|
@@ -28,9 +30,9 @@ export class B2bDatePickerHeader {
|
|
|
28
30
|
value: DatePickerView.Years,
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
|
-
} }, this.selectedYear), h("button", { key: '
|
|
33
|
+
} }, this.selectedYear), h("button", { key: 'a14a7321c8489a37ea13e08c3fc3b56988178fc8', class: "b2b-date-picker-nav--right", onClick: this.b2bDatePickerNextMonth.emit, onMouseOut: event => {
|
|
32
34
|
event.target.blur();
|
|
33
|
-
}, "aria-label": "next month" }, h("b2b-icon", { key: '
|
|
35
|
+
}, "aria-label": "next month" }, h("b2b-icon", { key: 'db899a7ee62a70e264f8db0298be0e71875ce4d1', icon: "b2b_icon-arrow-right", clickable: true })))));
|
|
34
36
|
}
|
|
35
37
|
static get is() { return "b2b-date-picker-header"; }
|
|
36
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,6 +81,24 @@ export class B2bDatePickerHeader {
|
|
|
79
81
|
},
|
|
80
82
|
"attribute": "selected-year",
|
|
81
83
|
"reflect": false
|
|
84
|
+
},
|
|
85
|
+
"language": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"mutable": false,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "'de' | 'en'",
|
|
90
|
+
"resolved": "\"de\" | \"en\"",
|
|
91
|
+
"references": {}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": "The language for month and the weekdays will be decided based on the given input. By default, this will be de which is german"
|
|
98
|
+
},
|
|
99
|
+
"attribute": "language",
|
|
100
|
+
"reflect": false,
|
|
101
|
+
"defaultValue": "'de'"
|
|
82
102
|
}
|
|
83
103
|
};
|
|
84
104
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 30 Jan 2025 18:09:12 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
125
|
+
* Generated on Thu, 30 Jan 2025 18:09:12 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import {
|
|
2
|
+
import { MonthsGerman } from "./date-picker.types";
|
|
3
3
|
describe('B2B-Date-Picker-Months', () => {
|
|
4
4
|
let page;
|
|
5
5
|
beforeEach(async () => {
|
|
@@ -10,13 +10,13 @@ describe('B2B-Date-Picker-Months', () => {
|
|
|
10
10
|
const monthElements = (await page.findAll('b2b-date-picker-months >>> .b2b-date-picker-month'));
|
|
11
11
|
expect(monthElements.length).toBe(12);
|
|
12
12
|
monthElements.forEach((monthElement, index) => {
|
|
13
|
-
expect(monthElement.textContent).toBe(
|
|
13
|
+
expect(monthElement.textContent).toBe(MonthsGerman[index]);
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
it('should show the selected month', async () => {
|
|
17
17
|
await page.setContent(`<b2b-date-picker-months selected-month="4"></b2b-date-picker-months>`);
|
|
18
18
|
const selectedMonth = await page.find('b2b-date-picker-months >>> .b2b-date-picker-month--selected');
|
|
19
|
-
expect(selectedMonth.textContent).toBe(
|
|
19
|
+
expect(selectedMonth.textContent).toBe(MonthsGerman[4]);
|
|
20
20
|
});
|
|
21
21
|
it('should emit month selected event when new month is selected', async () => {
|
|
22
22
|
await page.setContent(`<b2b-date-picker-months selected-month="10"></b2b-date-picker-months>`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { MonthsGerman, MonthsEnglish } from "./date-picker.types";
|
|
3
3
|
const keys = {
|
|
4
4
|
ARROW_UP: 'ArrowUp',
|
|
5
5
|
ARROW_DOWN: 'ArrowDown',
|
|
@@ -25,6 +25,7 @@ export class B2bDatePickerMonths {
|
|
|
25
25
|
};
|
|
26
26
|
this.renderDatePickerMonths = () => {
|
|
27
27
|
let months = [];
|
|
28
|
+
const Months = this.language === 'en' ? MonthsEnglish : MonthsGerman;
|
|
28
29
|
for (let i = 0; i < 12; i++) {
|
|
29
30
|
months.push(h("div", { class: {
|
|
30
31
|
'b2b-date-picker-month': true,
|
|
@@ -34,6 +35,7 @@ export class B2bDatePickerMonths {
|
|
|
34
35
|
return months;
|
|
35
36
|
};
|
|
36
37
|
this.selectedMonth = undefined;
|
|
38
|
+
this.language = 'de';
|
|
37
39
|
}
|
|
38
40
|
handleKeyDown(event) {
|
|
39
41
|
event.preventDefault();
|
|
@@ -71,7 +73,7 @@ export class B2bDatePickerMonths {
|
|
|
71
73
|
this.focusCurrentMonth(months[index]);
|
|
72
74
|
}
|
|
73
75
|
render() {
|
|
74
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: 'a6b5d77d82b661f742e95eba15f60ff01ff6d080' }, h("div", { key: '29dce426b9f6d3401c04c07d5be997f4be09b9d6', class: "b2b-date-picker-months" }, this.renderDatePickerMonths())));
|
|
75
77
|
}
|
|
76
78
|
static get is() { return "b2b-date-picker-months"; }
|
|
77
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -103,6 +105,24 @@ export class B2bDatePickerMonths {
|
|
|
103
105
|
},
|
|
104
106
|
"attribute": "selected-month",
|
|
105
107
|
"reflect": false
|
|
108
|
+
},
|
|
109
|
+
"language": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "'de' | 'en'",
|
|
114
|
+
"resolved": "\"de\" | \"en\"",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Internal The language for month and the weekdays will be decided based on the given input. By default, this will be de which is german"
|
|
122
|
+
},
|
|
123
|
+
"attribute": "language",
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"defaultValue": "'de'"
|
|
106
126
|
}
|
|
107
127
|
};
|
|
108
128
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 30 Jan 2025 18:09:12 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
125
|
+
* Generated on Thu, 30 Jan 2025 18:09:12 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 30 Jan 2025 18:09:12 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
125
|
+
* Generated on Thu, 30 Jan 2025 18:09:12 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -242,7 +242,6 @@
|
|
|
242
242
|
justify-content: flex-start; /* Aligns the input to the left */
|
|
243
243
|
border-radius: var(--b2b-size-7);
|
|
244
244
|
padding: var(--b2b-size-15) var(--b2b-size-20);
|
|
245
|
-
max-width: 600px;
|
|
246
245
|
background-color: var(--b2b-color-white-100);
|
|
247
246
|
transition: outline 0.2s ease-in-out, border-color 0.2s ease-in-out;
|
|
248
247
|
}
|
|
@@ -263,7 +262,6 @@
|
|
|
263
262
|
margin-left: 0;
|
|
264
263
|
padding-left: 0;
|
|
265
264
|
height: 100%;
|
|
266
|
-
width: 100%;
|
|
267
265
|
color: var(--b2b-color-black-100);
|
|
268
266
|
font-size: var(--b2b-size-35);
|
|
269
267
|
line-height: var(--b2b-size-copy-line-height-100);
|