@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,5 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import { DatePickerView } from "./date-picker.types";
|
|
3
|
+
import { DateUtils } from "../../utils/datepicker/date-picker-util";
|
|
3
4
|
export class B2bDatePicker {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.DISABLED_DATE_ERROR_MESSAGE = 'Auswahl nicht möglich, bitte gültiges Datum auswählen.';
|
|
@@ -83,9 +84,17 @@ export class B2bDatePicker {
|
|
|
83
84
|
this.disablePastDates = undefined;
|
|
84
85
|
this.disableFutureDates = undefined;
|
|
85
86
|
this.disableWeekends = undefined;
|
|
86
|
-
this.
|
|
87
|
+
this.disableDates = [];
|
|
88
|
+
this.label = 'Zeitpunkt auswählen';
|
|
87
89
|
this.preSelectedDate = undefined;
|
|
88
90
|
this.showHint = true;
|
|
91
|
+
this.width = 300;
|
|
92
|
+
this.disableDays = [];
|
|
93
|
+
this.disableDatesUntil = undefined;
|
|
94
|
+
this.disableDatesFrom = undefined;
|
|
95
|
+
this.hint = 'Format: TT.MM.JJJJ';
|
|
96
|
+
this.placeholder = null;
|
|
97
|
+
this.language = 'de';
|
|
89
98
|
this.showDatePicker = false;
|
|
90
99
|
this.focused = false;
|
|
91
100
|
this.datePickerView = DatePickerView.Days;
|
|
@@ -96,8 +105,44 @@ export class B2bDatePicker {
|
|
|
96
105
|
this.userInputDate = '';
|
|
97
106
|
this.invalid = false;
|
|
98
107
|
this.errorMessage = this.FORMATTING_ERROR_MESSAGE;
|
|
108
|
+
this.datesToBeDisabled = [];
|
|
109
|
+
this.normalizedDisableEvery = [];
|
|
110
|
+
this.normalizedDisableDatesUntil = undefined;
|
|
111
|
+
this.normalizedDisableDatesFrom = undefined;
|
|
112
|
+
}
|
|
113
|
+
isWithWithinLimit() {
|
|
114
|
+
return this.width >= 300 && this.width <= 600;
|
|
115
|
+
}
|
|
116
|
+
normalizeArrayInput(value) {
|
|
117
|
+
if (Array.isArray(value)) {
|
|
118
|
+
return value;
|
|
119
|
+
}
|
|
120
|
+
if (typeof value === 'string') {
|
|
121
|
+
return JSON.parse(value);
|
|
122
|
+
}
|
|
123
|
+
return [];
|
|
124
|
+
}
|
|
125
|
+
normalizeDisableDatesUntilAndFrom(givenDate) {
|
|
126
|
+
const [day, month, year] = givenDate.split('.').map(Number);
|
|
127
|
+
return new Date(year, month - 1, day);
|
|
99
128
|
}
|
|
100
129
|
componentWillLoad() {
|
|
130
|
+
if (this.disableDates !== '' || this.disableDates.length > 0) {
|
|
131
|
+
const dateString = this.normalizeArrayInput(this.disableDates);
|
|
132
|
+
this.datesToBeDisabled = dateString.map(date => {
|
|
133
|
+
const [day, month, year] = date.split('.').map(Number);
|
|
134
|
+
return new Date(year, month - 1, day);
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
if (this.disableDays !== '' || this.disableDays.length > 0) {
|
|
138
|
+
this.normalizedDisableEvery = this.normalizeArrayInput(this.disableDays);
|
|
139
|
+
}
|
|
140
|
+
if (this.disableDatesUntil !== '' && this.disableDatesUntil !== undefined) {
|
|
141
|
+
this.normalizedDisableDatesUntil = this.normalizeDisableDatesUntilAndFrom(this.disableDatesUntil);
|
|
142
|
+
}
|
|
143
|
+
if (this.disableDatesFrom !== '' && this.disableDatesFrom !== undefined) {
|
|
144
|
+
this.normalizedDisableDatesFrom = this.normalizeDisableDatesUntilAndFrom(this.disableDatesFrom);
|
|
145
|
+
}
|
|
101
146
|
if (this.preSelectedDate !== undefined) {
|
|
102
147
|
const [day, month, year] = this.preSelectedDate.split('.').map(Number);
|
|
103
148
|
this.selectedDay = day;
|
|
@@ -163,6 +208,7 @@ export class B2bDatePicker {
|
|
|
163
208
|
}
|
|
164
209
|
isValidDate(day, month, year) {
|
|
165
210
|
const date = new Date(year, month - 1, day);
|
|
211
|
+
const todayWithoutTime = new Date(this.today.getFullYear(), this.today.getMonth(), this.today.getDate());
|
|
166
212
|
const isValidDay = date.getDate() === day;
|
|
167
213
|
const isValidMonth = date.getMonth() + 1 === month;
|
|
168
214
|
const isValidYear = date.getFullYear() === year && year >= 1900 && year <= 2100;
|
|
@@ -171,15 +217,16 @@ export class B2bDatePicker {
|
|
|
171
217
|
return false;
|
|
172
218
|
}
|
|
173
219
|
let isValidRange = true;
|
|
174
|
-
if (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
220
|
+
if (DateUtils.isDisabledDate(date, {
|
|
221
|
+
disableDates: this.datesToBeDisabled,
|
|
222
|
+
disablePastDates: this.disablePastDates,
|
|
223
|
+
disableFutureDates: this.disableFutureDates,
|
|
224
|
+
disableWeekends: this.disableWeekends,
|
|
225
|
+
todayWithoutTime: todayWithoutTime,
|
|
226
|
+
disableEvery: this.normalizedDisableEvery,
|
|
227
|
+
disableDatesUntil: this.normalizedDisableDatesUntil,
|
|
228
|
+
disableDatesFrom: this.normalizedDisableDatesFrom,
|
|
229
|
+
})) {
|
|
183
230
|
this.errorMessage = this.DISABLED_DATE_ERROR_MESSAGE;
|
|
184
231
|
isValidRange = false;
|
|
185
232
|
}
|
|
@@ -276,19 +323,21 @@ export class B2bDatePicker {
|
|
|
276
323
|
}
|
|
277
324
|
}
|
|
278
325
|
render() {
|
|
279
|
-
|
|
326
|
+
if (!this.isWithWithinLimit())
|
|
327
|
+
return null;
|
|
328
|
+
return (h(Host, null, h("div", { class: "b2b-date-picker" }, h("div", { class: "b2b-date-picker-label" }, this.label), h("div", { style: { width: `${this.width}px` }, class: {
|
|
280
329
|
'b2b-date-picker-input-wrapper': true,
|
|
281
330
|
'b2b-date-picker-input-wrapper--focused': this.focused || this.showDatePicker,
|
|
282
331
|
'b2b-date-picker-input-wrapper--error': this.invalid,
|
|
283
|
-
} }, h("div", {
|
|
332
|
+
} }, h("div", { class: "b2b-date-picker-input-focus-wrapper", onClick: () => {
|
|
284
333
|
this.moveFocusToInputComponent();
|
|
285
|
-
} }, h("input", {
|
|
334
|
+
} }, h("input", { type: "text", tabindex: 0, class: {
|
|
286
335
|
'b2b-date-picker-input': true,
|
|
287
336
|
'b2b-date-picker-input--error': this.invalid,
|
|
288
337
|
}, value: this.userInputDate, onInput: this.handleInputChange, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus, onBlur: () => {
|
|
289
338
|
this.focused = false;
|
|
290
339
|
this.handleFocusOut();
|
|
291
|
-
} })), h("div", {
|
|
340
|
+
}, placeholder: this.placeholder })), h("div", { class: "b2b-icons" }, this.userInputDate && (h("div", { tabIndex: 0, onClick: () => {
|
|
292
341
|
this.invalid = false;
|
|
293
342
|
this.clearDateInput();
|
|
294
343
|
}, class: "b2b-close-icon", onKeyDown: event => {
|
|
@@ -296,7 +345,7 @@ export class B2bDatePicker {
|
|
|
296
345
|
this.invalid = false;
|
|
297
346
|
this.clearDateInput();
|
|
298
347
|
}
|
|
299
|
-
} }, h("b2b-icon", { icon: "b2b_icon-close", "aria-label": "clear input", clickable: true }))), h("div", {
|
|
348
|
+
} }, h("b2b-icon", { icon: "b2b_icon-close", "aria-label": "clear input", clickable: true }))), h("div", { tabindex: 0, onClick: () => {
|
|
300
349
|
if (this.invalid) {
|
|
301
350
|
this.invalid = false;
|
|
302
351
|
}
|
|
@@ -308,17 +357,15 @@ export class B2bDatePicker {
|
|
|
308
357
|
}
|
|
309
358
|
this.showHideDatePicker();
|
|
310
359
|
}
|
|
311
|
-
}, class: "b2b-event-icon" }, h("b2b-icon", {
|
|
360
|
+
}, class: "b2b-event-icon" }, h("b2b-icon", { "aria-label": this.showDatePicker
|
|
312
361
|
? 'close date picker'
|
|
313
|
-
: 'open date picker', icon: "b2b_icon-event", clickable: true }))))), h("div", {
|
|
362
|
+
: 'open date picker', icon: "b2b_icon-event", clickable: true }))))), h("div", { class: {
|
|
314
363
|
'b2b-date-picker-body': true,
|
|
315
364
|
'b2b-date-picker-body--hidden': !this.showDatePicker,
|
|
316
|
-
} }, this.datePickerView === DatePickerView.Days && (h("div", null, h("b2b-date-picker-header", { selectedMonth: this.selectedMonth, selectedYear: this.selectedYear }), h("b2b-date-picker-days-header",
|
|
365
|
+
} }, this.datePickerView === DatePickerView.Days && (h("div", null, h("b2b-date-picker-header", { language: this.language, selectedMonth: this.selectedMonth, selectedYear: this.selectedYear }), h("b2b-date-picker-days-header", { language: this.language }), h("b2b-date-picker-days", { selectedMonth: this.selectedMonth, selectedYear: this.selectedYear, selectedDay: this.selectedDay, disableWeekends: this.disableWeekends, disableFutureDates: this.disableFutureDates, disablePastDates: this.disablePastDates, disableDates: this.datesToBeDisabled, disableDatesUntil: this.normalizedDisableDatesUntil, disableEvery: this.normalizedDisableEvery, disableDatesFrom: this.normalizedDisableDatesFrom }))), this.datePickerView === DatePickerView.Months && (h("b2b-date-picker-months", { language: this.language, selectedMonth: this.selectedMonth })), this.datePickerView === DatePickerView.Years && (h("b2b-date-picker-years", { selectedYear: this.selectedYear }))), this.showDatePicker && (h("div", { class: "b2b-date-picker__backdrop", onClick: this.handleBackdropDismiss })), !this.showDatePicker && (h("span", { class: {
|
|
317
366
|
'b2b-date-picker-hint': true,
|
|
318
367
|
'b2b-date-picker-hint--error': this.invalid,
|
|
319
|
-
} }, this.invalid
|
|
320
|
-
? this.errorMessage
|
|
321
|
-
: this.showHint && 'Format: TT.MM.JJJJ'))));
|
|
368
|
+
} }, this.invalid ? this.errorMessage : this.showHint && this.hint))));
|
|
322
369
|
}
|
|
323
370
|
static get is() { return "b2b-date-picker"; }
|
|
324
371
|
static get encapsulation() { return "shadow"; }
|
|
@@ -385,6 +432,24 @@ export class B2bDatePicker {
|
|
|
385
432
|
"attribute": "disable-weekends",
|
|
386
433
|
"reflect": false
|
|
387
434
|
},
|
|
435
|
+
"disableDates": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"mutable": false,
|
|
438
|
+
"complexType": {
|
|
439
|
+
"original": "string | string[]",
|
|
440
|
+
"resolved": "string | string[]",
|
|
441
|
+
"references": {}
|
|
442
|
+
},
|
|
443
|
+
"required": false,
|
|
444
|
+
"optional": false,
|
|
445
|
+
"docs": {
|
|
446
|
+
"tags": [],
|
|
447
|
+
"text": "The dates that are part of this array are disabled. By default, this is an empty array."
|
|
448
|
+
},
|
|
449
|
+
"attribute": "disable-dates",
|
|
450
|
+
"reflect": false,
|
|
451
|
+
"defaultValue": "[]"
|
|
452
|
+
},
|
|
388
453
|
"label": {
|
|
389
454
|
"type": "string",
|
|
390
455
|
"mutable": false,
|
|
@@ -401,7 +466,7 @@ export class B2bDatePicker {
|
|
|
401
466
|
},
|
|
402
467
|
"attribute": "label",
|
|
403
468
|
"reflect": false,
|
|
404
|
-
"defaultValue": "'
|
|
469
|
+
"defaultValue": "'Zeitpunkt ausw\u00E4hlen'"
|
|
405
470
|
},
|
|
406
471
|
"preSelectedDate": {
|
|
407
472
|
"type": "string",
|
|
@@ -438,6 +503,130 @@ export class B2bDatePicker {
|
|
|
438
503
|
"attribute": "show-hint",
|
|
439
504
|
"reflect": false,
|
|
440
505
|
"defaultValue": "true"
|
|
506
|
+
},
|
|
507
|
+
"width": {
|
|
508
|
+
"type": "number",
|
|
509
|
+
"mutable": false,
|
|
510
|
+
"complexType": {
|
|
511
|
+
"original": "number",
|
|
512
|
+
"resolved": "number",
|
|
513
|
+
"references": {}
|
|
514
|
+
},
|
|
515
|
+
"required": false,
|
|
516
|
+
"optional": false,
|
|
517
|
+
"docs": {
|
|
518
|
+
"tags": [],
|
|
519
|
+
"text": "The width of the input field of the date picker in pixel. Minimum is 250, maximum is 600px."
|
|
520
|
+
},
|
|
521
|
+
"attribute": "width",
|
|
522
|
+
"reflect": false,
|
|
523
|
+
"defaultValue": "300"
|
|
524
|
+
},
|
|
525
|
+
"disableDays": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"mutable": false,
|
|
528
|
+
"complexType": {
|
|
529
|
+
"original": "| 'Mo'\n | 'Di'\n | 'Mi'\n | 'Do'\n | 'Fr'\n | 'Sa'\n | 'So'\n | 'Tu'\n | 'We'\n | 'Th'\n | 'Su'\n | string\n | string[]",
|
|
530
|
+
"resolved": "string | string[]",
|
|
531
|
+
"references": {}
|
|
532
|
+
},
|
|
533
|
+
"required": false,
|
|
534
|
+
"optional": false,
|
|
535
|
+
"docs": {
|
|
536
|
+
"tags": [],
|
|
537
|
+
"text": "Disable the days of the week specified here."
|
|
538
|
+
},
|
|
539
|
+
"attribute": "disable-days",
|
|
540
|
+
"reflect": false,
|
|
541
|
+
"defaultValue": "[]"
|
|
542
|
+
},
|
|
543
|
+
"disableDatesUntil": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"mutable": false,
|
|
546
|
+
"complexType": {
|
|
547
|
+
"original": "string",
|
|
548
|
+
"resolved": "string",
|
|
549
|
+
"references": {}
|
|
550
|
+
},
|
|
551
|
+
"required": false,
|
|
552
|
+
"optional": false,
|
|
553
|
+
"docs": {
|
|
554
|
+
"tags": [],
|
|
555
|
+
"text": "All the dates until the given specified date will be disabled."
|
|
556
|
+
},
|
|
557
|
+
"attribute": "disable-dates-until",
|
|
558
|
+
"reflect": false
|
|
559
|
+
},
|
|
560
|
+
"disableDatesFrom": {
|
|
561
|
+
"type": "string",
|
|
562
|
+
"mutable": false,
|
|
563
|
+
"complexType": {
|
|
564
|
+
"original": "string",
|
|
565
|
+
"resolved": "string",
|
|
566
|
+
"references": {}
|
|
567
|
+
},
|
|
568
|
+
"required": false,
|
|
569
|
+
"optional": false,
|
|
570
|
+
"docs": {
|
|
571
|
+
"tags": [],
|
|
572
|
+
"text": "All the dates until the given specified date will be disabled."
|
|
573
|
+
},
|
|
574
|
+
"attribute": "disable-dates-from",
|
|
575
|
+
"reflect": false
|
|
576
|
+
},
|
|
577
|
+
"hint": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"mutable": false,
|
|
580
|
+
"complexType": {
|
|
581
|
+
"original": "string",
|
|
582
|
+
"resolved": "string",
|
|
583
|
+
"references": {}
|
|
584
|
+
},
|
|
585
|
+
"required": false,
|
|
586
|
+
"optional": false,
|
|
587
|
+
"docs": {
|
|
588
|
+
"tags": [],
|
|
589
|
+
"text": "Hint text that should be displayed when showHint is true"
|
|
590
|
+
},
|
|
591
|
+
"attribute": "hint",
|
|
592
|
+
"reflect": false,
|
|
593
|
+
"defaultValue": "'Format: TT.MM.JJJJ'"
|
|
594
|
+
},
|
|
595
|
+
"placeholder": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"mutable": false,
|
|
598
|
+
"complexType": {
|
|
599
|
+
"original": "string",
|
|
600
|
+
"resolved": "string",
|
|
601
|
+
"references": {}
|
|
602
|
+
},
|
|
603
|
+
"required": false,
|
|
604
|
+
"optional": false,
|
|
605
|
+
"docs": {
|
|
606
|
+
"tags": [],
|
|
607
|
+
"text": "The placeholder shown in the date picker."
|
|
608
|
+
},
|
|
609
|
+
"attribute": "placeholder",
|
|
610
|
+
"reflect": true,
|
|
611
|
+
"defaultValue": "null"
|
|
612
|
+
},
|
|
613
|
+
"language": {
|
|
614
|
+
"type": "string",
|
|
615
|
+
"mutable": false,
|
|
616
|
+
"complexType": {
|
|
617
|
+
"original": "'de' | 'en'",
|
|
618
|
+
"resolved": "\"de\" | \"en\"",
|
|
619
|
+
"references": {}
|
|
620
|
+
},
|
|
621
|
+
"required": false,
|
|
622
|
+
"optional": false,
|
|
623
|
+
"docs": {
|
|
624
|
+
"tags": [],
|
|
625
|
+
"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"
|
|
626
|
+
},
|
|
627
|
+
"attribute": "language",
|
|
628
|
+
"reflect": false,
|
|
629
|
+
"defaultValue": "'de'"
|
|
441
630
|
}
|
|
442
631
|
};
|
|
443
632
|
}
|
|
@@ -452,7 +641,11 @@ export class B2bDatePicker {
|
|
|
452
641
|
"selectedDate": {},
|
|
453
642
|
"userInputDate": {},
|
|
454
643
|
"invalid": {},
|
|
455
|
-
"errorMessage": {}
|
|
644
|
+
"errorMessage": {},
|
|
645
|
+
"datesToBeDisabled": {},
|
|
646
|
+
"normalizedDisableEvery": {},
|
|
647
|
+
"normalizedDisableDatesUntil": {},
|
|
648
|
+
"normalizedDisableDatesFrom": {}
|
|
456
649
|
};
|
|
457
650
|
}
|
|
458
651
|
static get events() {
|
|
@@ -20,11 +20,19 @@ const meta = {
|
|
|
20
20
|
disablePastDates: false,
|
|
21
21
|
disableFutureDates: false,
|
|
22
22
|
disableWeekends: false,
|
|
23
|
+
disableDates: [],
|
|
23
24
|
label: 'Zeitraum auswählen',
|
|
24
25
|
preSelectedDate: '',
|
|
25
26
|
showHint: true,
|
|
27
|
+
disableDays: [],
|
|
28
|
+
disableDatesUntil: '',
|
|
29
|
+
disableDatesFrom: '',
|
|
30
|
+
hint: 'Format: TT.MM.JJJJ',
|
|
31
|
+
placeholder: '',
|
|
32
|
+
width: 600,
|
|
33
|
+
language: 'de',
|
|
26
34
|
},
|
|
27
|
-
argTypes: Object.assign(Object.assign({}, getArgTypes('b2b-date-picker')), { preSelectedDate: { control: false } }),
|
|
35
|
+
argTypes: Object.assign(Object.assign({}, getArgTypes('b2b-date-picker')), { preSelectedDate: { control: false }, width: { control: { type: 'range', min: 300, max: 600, step: 1 } } }),
|
|
28
36
|
render: (_a) => {
|
|
29
37
|
var args = __rest(_a, []);
|
|
30
38
|
if (args.preSelectedDate === '') {
|
|
@@ -34,8 +42,16 @@ const meta = {
|
|
|
34
42
|
disable-past-dates=${args.disablePastDates}
|
|
35
43
|
disable-future-dates=${args.disableFutureDates}
|
|
36
44
|
disable-weekends=${args.disableWeekends}
|
|
45
|
+
disable-dates=${args.disableDates}
|
|
37
46
|
.pre-selected-date="${args.preSelectedDate}"
|
|
38
|
-
|
|
47
|
+
disable-days=${args.disableDays}
|
|
48
|
+
disable-dates-until=${args.disableDatesUntil}
|
|
49
|
+
disable-dates-from=${args.disableDatesFrom}
|
|
50
|
+
show-hint=${args.showHint}
|
|
51
|
+
hint=${args.hint}
|
|
52
|
+
placeholder=${args.placeholder}
|
|
53
|
+
width=${args.width}
|
|
54
|
+
language=${args.language}></b2b-date-picker>
|
|
39
55
|
</div>`;
|
|
40
56
|
}
|
|
41
57
|
else {
|
|
@@ -45,8 +61,16 @@ const meta = {
|
|
|
45
61
|
disable-past-dates=${args.disablePastDates}
|
|
46
62
|
disable-future-dates=${args.disableFutureDates}
|
|
47
63
|
disable-weekends=${args.disableWeekends}
|
|
64
|
+
disable-dates=${args.disableDates}
|
|
48
65
|
pre-selected-date="${args.preSelectedDate}"
|
|
49
|
-
|
|
66
|
+
disable-days=${args.disableDays}
|
|
67
|
+
disable-dates-until=${args.disableDatesUntil}
|
|
68
|
+
disable-dates-from=${args.disableDatesFrom}
|
|
69
|
+
show-hint=${args.showHint}
|
|
70
|
+
hint=${args.hint}
|
|
71
|
+
placeholder=${args.placeholder}
|
|
72
|
+
width=${args.width}
|
|
73
|
+
language=${args.language}></b2b-date-picker>
|
|
50
74
|
</div>`;
|
|
51
75
|
}
|
|
52
76
|
},
|
|
@@ -58,7 +82,7 @@ export const Default = {
|
|
|
58
82
|
setTimeout(async () => {
|
|
59
83
|
var _a;
|
|
60
84
|
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
61
|
-
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-wrapper');
|
|
85
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
62
86
|
await userEvent.click(b2bDatePickerInputWrapper);
|
|
63
87
|
}, 500);
|
|
64
88
|
},
|
|
@@ -69,7 +93,7 @@ export const DisablePastDates = {
|
|
|
69
93
|
setTimeout(async () => {
|
|
70
94
|
var _a;
|
|
71
95
|
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
72
|
-
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-wrapper');
|
|
96
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
73
97
|
await userEvent.click(b2bDatePickerInputWrapper);
|
|
74
98
|
}, 500);
|
|
75
99
|
},
|
|
@@ -80,7 +104,7 @@ export const DisableFutureDates = {
|
|
|
80
104
|
setTimeout(async () => {
|
|
81
105
|
var _a;
|
|
82
106
|
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
83
|
-
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-wrapper');
|
|
107
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
84
108
|
await userEvent.click(b2bDatePickerInputWrapper);
|
|
85
109
|
}, 500);
|
|
86
110
|
},
|
|
@@ -91,7 +115,79 @@ export const DisableWeekends = {
|
|
|
91
115
|
setTimeout(async () => {
|
|
92
116
|
var _a;
|
|
93
117
|
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
94
|
-
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-wrapper');
|
|
118
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
119
|
+
await userEvent.click(b2bDatePickerInputWrapper);
|
|
120
|
+
}, 500);
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
export const DisableDates = {
|
|
124
|
+
args: Object.assign(Object.assign({}, meta.args), { disableWeekends: true, disableDates: '["21.01.2025", "10.01.2025"]' }),
|
|
125
|
+
play: async ({ canvasElement }) => {
|
|
126
|
+
setTimeout(async () => {
|
|
127
|
+
var _a;
|
|
128
|
+
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
129
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
130
|
+
await userEvent.click(b2bDatePickerInputWrapper);
|
|
131
|
+
}, 500);
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
export const DisableDays = {
|
|
135
|
+
args: Object.assign(Object.assign({}, meta.args), { disableWeekends: true, disableDays: '["Mo", "Tu"]' }),
|
|
136
|
+
play: async ({ canvasElement }) => {
|
|
137
|
+
setTimeout(async () => {
|
|
138
|
+
var _a;
|
|
139
|
+
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
140
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
141
|
+
await userEvent.click(b2bDatePickerInputWrapper);
|
|
142
|
+
}, 500);
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
export const DisableDatesUntil = {
|
|
146
|
+
args: Object.assign(Object.assign({}, meta.args), { disableDatesUntil: '20.01.2025' }),
|
|
147
|
+
play: async ({ canvasElement }) => {
|
|
148
|
+
setTimeout(async () => {
|
|
149
|
+
var _a;
|
|
150
|
+
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
151
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
152
|
+
await userEvent.click(b2bDatePickerInputWrapper);
|
|
153
|
+
}, 500);
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
export const DisableDatesFrom = {
|
|
157
|
+
args: Object.assign(Object.assign({}, meta.args), { disableDatesFrom: '20.01.2025' }),
|
|
158
|
+
play: async ({ canvasElement }) => {
|
|
159
|
+
setTimeout(async () => {
|
|
160
|
+
var _a;
|
|
161
|
+
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
162
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
163
|
+
await userEvent.click(b2bDatePickerInputWrapper);
|
|
164
|
+
}, 500);
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
export const WithCustomHintMessage = {
|
|
168
|
+
args: Object.assign(Object.assign({}, meta.args), { showHint: true, hint: 'This is a long hint text message which is longer than the normal default hint message' }),
|
|
169
|
+
};
|
|
170
|
+
export const WithPlaceholder = {
|
|
171
|
+
args: Object.assign(Object.assign({}, meta.args), { placeholder: 'this is date picker' }),
|
|
172
|
+
};
|
|
173
|
+
export const WithWidth = {
|
|
174
|
+
args: Object.assign(Object.assign({}, meta.args), { width: 500 }),
|
|
175
|
+
play: async ({ canvasElement }) => {
|
|
176
|
+
setTimeout(async () => {
|
|
177
|
+
var _a;
|
|
178
|
+
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
179
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
180
|
+
await userEvent.click(b2bDatePickerInputWrapper);
|
|
181
|
+
}, 500);
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
export const EnglishDatepicker = {
|
|
185
|
+
args: Object.assign(Object.assign({}, meta.args), { language: 'en' }),
|
|
186
|
+
play: async ({ canvasElement }) => {
|
|
187
|
+
setTimeout(async () => {
|
|
188
|
+
var _a;
|
|
189
|
+
const datePicker = canvasElement.querySelector('b2b-date-picker');
|
|
190
|
+
const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
|
|
95
191
|
await userEvent.click(b2bDatePickerInputWrapper);
|
|
96
192
|
}, 500);
|
|
97
193
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const MonthsGerman = [
|
|
2
2
|
'Jan',
|
|
3
3
|
'Feb',
|
|
4
4
|
'Mär',
|
|
@@ -12,7 +12,38 @@ export const Months = [
|
|
|
12
12
|
'Nov',
|
|
13
13
|
'Dez',
|
|
14
14
|
];
|
|
15
|
-
export const
|
|
15
|
+
export const WeekdaysGerman = [
|
|
16
|
+
'Mo',
|
|
17
|
+
'Di',
|
|
18
|
+
'Mi',
|
|
19
|
+
'Do',
|
|
20
|
+
'Fr',
|
|
21
|
+
'Sa',
|
|
22
|
+
'So',
|
|
23
|
+
];
|
|
24
|
+
export const WeekdaysEnglish = [
|
|
25
|
+
'Mo',
|
|
26
|
+
'Tu',
|
|
27
|
+
'We',
|
|
28
|
+
'Th',
|
|
29
|
+
'Fr',
|
|
30
|
+
'Sa',
|
|
31
|
+
'Su',
|
|
32
|
+
];
|
|
33
|
+
export const MonthsEnglish = [
|
|
34
|
+
'Jan',
|
|
35
|
+
'Feb',
|
|
36
|
+
'Mar',
|
|
37
|
+
'Apr',
|
|
38
|
+
'May',
|
|
39
|
+
'Jun',
|
|
40
|
+
'Jul',
|
|
41
|
+
'Aug',
|
|
42
|
+
'Sep',
|
|
43
|
+
'Oct',
|
|
44
|
+
'Nov',
|
|
45
|
+
'Dec',
|
|
46
|
+
];
|
|
16
47
|
export var DatePickerView;
|
|
17
48
|
(function (DatePickerView) {
|
|
18
49
|
DatePickerView["Days"] = "Days";
|
|
@@ -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 */
|
|
@@ -43,11 +43,11 @@ export class DropdownComponent {
|
|
|
43
43
|
selectElement.append(...options);
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'e4eb8019f2b434acde4f3adbe597bb255e0cf872', class: {
|
|
47
47
|
'b2b-dropdown': true,
|
|
48
48
|
'b2b-dropdown--error': this.invalid && !this.disabled,
|
|
49
49
|
'b2b-dropdown--disabled': this.disabled,
|
|
50
|
-
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '
|
|
50
|
+
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '3a780ca3f170a59ef73f3e72d3668f9941812e9c', class: "b2b-dropdown__select", "aria-labelledby": this.name, name: this.name, disabled: this.disabled, onChange: this.onSelect, onFocus: this.onFocus, onBlur: this.onBlur }), (this.hint !== undefined && !this.invalid) ||
|
|
51
51
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "b2b-dropdown"; }
|
|
@@ -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 */
|
|
@@ -16,7 +16,7 @@ export class FlyoutMenuOptionComponent {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '3dc359231f65e0d900c87a90fb16917dec1cef05', class: {
|
|
20
20
|
'b2b-flyout-menu__option': true,
|
|
21
21
|
'b2b-flyout-menu__option--disabled': this.disabled,
|
|
22
22
|
'b2b-flyout-menu__option--separator': this.separator,
|
|
@@ -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 */
|
|
@@ -144,12 +144,12 @@ export class FlyoutMenuComponent {
|
|
|
144
144
|
options[index].focus();
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: '44ec3f9b4e574a3327717361bd6c09c5f1958d41' }, h("div", { key: '9ea8f1494bfede3a0853a0e74a5d5854e0bdf082', class: {
|
|
148
148
|
'b2b-flyout-menu': true,
|
|
149
|
-
} }, h("div", { key: '
|
|
149
|
+
} }, h("div", { key: 'c48765324a3ca6ef0b885d23405269e9351c14c6', class: "b2b-flyout-menu__trigger" }, h("slot", { key: '756bdb0f2adbf262397bc5207cb5e6add87e4ef2', name: "trigger" })), h("div", { key: 'ef57778748783ffb269f5023b67eabd681cfb37d', onFocusout: this.blurMenu, class: {
|
|
150
150
|
'b2b-flyout-menu__options__container': true,
|
|
151
151
|
'b2b-flyout-menu__options__container--on': this.opened,
|
|
152
|
-
} }, h("div", { key: '
|
|
152
|
+
} }, h("div", { key: '9ae1550fb14f6bbe584935169796375f58916891', class: "b2b-flyout-menu__arrow" }), h("slot", { key: '10ff787b762245d5457cdb4f70f8affa9f0375e8', name: "option" })))));
|
|
153
153
|
}
|
|
154
154
|
static get is() { return "b2b-flyout-menu"; }
|
|
155
155
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,7 +24,7 @@ export class B2bGridColumnComponent {
|
|
|
24
24
|
this.textAlign = 'left';
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: 'f83b2c034afd37db56dd216e61b17718c96fc3ec', style: Object.assign(Object.assign({}, this.calculateGrowDimension(this.span)), { ['text-align']: `${this.textAlign}` }) }, h("slot", { key: 'ddf44e8dab7ed9267c2be3e4a2a1ff6ba13bb53b' })));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "b2b-grid-col"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|