@otto-de/b2b-core-components 1.16.0 → 1.18.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-light-bulb.svg +2 -2
- package/dist/b2b-core-components/icons/b2b_icon-module-operations.svg +3 -1
- package/dist/b2b-core-components/icons-100/b2b_icon-light-bulb.svg +2 -2
- package/dist/b2b-core-components/icons-100/b2b_icon-module-operations.svg +3 -1
- package/dist/b2b-core-components/p-000d700d.entry.js +1 -0
- package/dist/b2b-core-components/p-00700a00.entry.js +1 -0
- package/dist/b2b-core-components/{p-37d472be.entry.js → p-029da6d8.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c95e15c5.entry.js → p-0af31837.entry.js} +1 -1
- package/dist/b2b-core-components/{p-9a655bb8.entry.js → p-0e7e3e44.entry.js} +1 -1
- package/dist/b2b-core-components/p-101e08d9.entry.js +1 -0
- package/dist/b2b-core-components/{p-695df630.entry.js → p-1135d0ce.entry.js} +1 -1
- package/dist/b2b-core-components/{p-57a450fb.entry.js → p-171722c3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a7bf8a8d.entry.js → p-1887174e.entry.js} +1 -1
- package/dist/b2b-core-components/{p-3eed5a96.entry.js → p-19b13dcc.entry.js} +1 -1
- package/dist/b2b-core-components/{p-4b431289.entry.js → p-1c8825d1.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b2cc9955.entry.js → p-2c60a909.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8b63166d.entry.js → p-2d3de3a7.entry.js} +1 -1
- package/dist/b2b-core-components/{p-4d32cb20.entry.js → p-30d6787c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e78ef517.entry.js → p-31df26eb.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b6545cbd.entry.js → p-35dca1b0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0fcdf7c2.entry.js → p-39254a15.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ab5470b1.entry.js → p-39651255.entry.js} +1 -1
- package/dist/b2b-core-components/{p-827e29e8.entry.js → p-3ffba273.entry.js} +1 -1
- package/dist/b2b-core-components/p-441657b2.js +1 -0
- package/dist/b2b-core-components/{p-915b5435.entry.js → p-4e7ad473.entry.js} +1 -1
- package/dist/b2b-core-components/{p-56692503.entry.js → p-54d15111.entry.js} +1 -1
- package/dist/b2b-core-components/{p-7e288599.entry.js → p-56573a91.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1feda700.entry.js → p-6148866a.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c0ac6164.entry.js → p-619f67f6.entry.js} +1 -1
- package/dist/b2b-core-components/{p-43736fcf.entry.js → p-64a2aebd.entry.js} +1 -1
- package/dist/b2b-core-components/{p-3249337d.entry.js → p-67ad8770.entry.js} +1 -1
- package/dist/b2b-core-components/{p-45d76e40.entry.js → p-6847b3bf.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8bde6dd3.entry.js → p-6f17d047.entry.js} +1 -1
- package/dist/b2b-core-components/{p-6a1be129.entry.js → p-7128c388.entry.js} +1 -1
- package/dist/b2b-core-components/{p-4b96e3f1.entry.js → p-758ff932.entry.js} +1 -1
- package/dist/b2b-core-components/{p-5139e33a.entry.js → p-7a9088d2.entry.js} +1 -1
- package/dist/b2b-core-components/{p-02f15c3b.entry.js → p-92bfd54e.entry.js} +1 -1
- package/dist/b2b-core-components/p-931c9dc7.entry.js +1 -0
- package/dist/b2b-core-components/p-a37ad232.entry.js +1 -0
- package/dist/b2b-core-components/p-a6fa7831.entry.js +1 -0
- package/dist/b2b-core-components/{p-3d2bcff9.entry.js → p-a7221803.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a6bb2610.entry.js → p-ad99ec44.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a82d46df.entry.js → p-ae0d9209.entry.js} +1 -1
- package/dist/b2b-core-components/p-baa99f00.entry.js +1 -0
- package/dist/b2b-core-components/{p-c46f674e.entry.js → p-bcb7e042.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8000be8d.entry.js → p-c33bc1a2.entry.js} +1 -1
- package/dist/b2b-core-components/{p-3b0998d6.entry.js → p-d3f86dfe.entry.js} +1 -1
- package/dist/b2b-core-components/{p-7a82ba07.entry.js → p-d4ab2a73.entry.js} +1 -1
- package/dist/b2b-core-components/{p-7ba3e59f.entry.js → p-e1672700.entry.js} +1 -1
- package/dist/b2b-core-components/{p-eea515b3.entry.js → p-e350e4ab.entry.js} +1 -1
- package/dist/b2b-core-components/{p-343078a1.entry.js → p-e9537c12.entry.js} +1 -1
- package/dist/b2b-core-components/{p-f727e8dc.entry.js → p-f5fa0721.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1f57cab5.entry.js → p-f8cf06c5.entry.js} +1 -1
- package/dist/cjs/b2b-background-box.cjs.entry.js +27 -0
- package/dist/cjs/b2b-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/b2b-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/b2b-button_2.cjs.entry.js +2 -2
- package/dist/cjs/b2b-card.cjs.entry.js +2 -2
- package/dist/cjs/b2b-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/b2b-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/b2b-chip-component_2.cjs.entry.js +4 -4
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-date-picker-days_5.cjs.entry.js +444 -0
- package/dist/cjs/b2b-date-picker.cjs.entry.js +323 -0
- package/dist/cjs/b2b-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +2 -2
- package/dist/cjs/b2b-flyout-menu.cjs.entry.js +23 -9
- 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-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 +3 -3
- 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 +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-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 +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.types-79f4bba0.js +26 -0
- package/dist/cjs/index-668808fd.js +12 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +7 -4
- package/dist/collection/components/alert/alert.css +2 -2
- package/dist/collection/components/anchor/anchor.css +2 -2
- package/dist/collection/components/background-box/background-box.css +233 -0
- package/dist/collection/components/background-box/background-box.e2e.js +37 -0
- package/dist/collection/components/background-box/background-box.js +67 -0
- package/dist/collection/components/background-box/background-box.spec.js +45 -0
- package/dist/collection/components/background-box/background-box.stories.js +45 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/button/button.css +2 -2
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card.css +2 -2
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.css +2 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
- package/dist/collection/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/collection/components/chip/chip.css +2 -2
- package/dist/collection/components/chip/chip.js +2 -2
- package/dist/collection/components/{calendar/calendar-days-header.css → date-picker/date-picker-days-header.css} +6 -6
- package/dist/collection/components/date-picker/date-picker-days-header.js +29 -0
- package/dist/collection/components/{calendar/calendar-days.css → date-picker/date-picker-days.css} +15 -16
- package/dist/collection/components/{calendar/calendar-days.js → date-picker/date-picker-days.js} +38 -22
- package/dist/collection/components/{calendar/calendar-header.css → date-picker/date-picker-header.css} +29 -25
- package/dist/collection/components/date-picker/date-picker-header.e2e.js +38 -0
- package/dist/collection/components/date-picker/date-picker-header.js +152 -0
- package/dist/collection/components/{calendar/calendar.css → date-picker/date-picker-months.css} +25 -40
- package/dist/collection/components/date-picker/date-picker-months.e2e.js +39 -0
- package/dist/collection/components/date-picker/date-picker-months.js +143 -0
- package/dist/collection/components/date-picker/date-picker-years.css +252 -0
- package/dist/collection/components/date-picker/date-picker-years.e2e.js +39 -0
- package/dist/collection/components/date-picker/date-picker-years.js +175 -0
- package/dist/collection/components/date-picker/date-picker.css +324 -0
- package/dist/collection/components/date-picker/date-picker.e2e.js +136 -0
- package/dist/collection/components/date-picker/date-picker.js +514 -0
- package/dist/collection/components/date-picker/date-picker.stories.js +104 -0
- package/dist/collection/components/{calendar/calendar.types.js → date-picker/date-picker.types.js} +6 -0
- 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 +8 -3
- 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 +23 -9
- 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/icon/icon.css +2 -2
- package/dist/collection/components/icon/icons/b2b_icon-light-bulb.svg +2 -2
- package/dist/collection/components/icon/icons/b2b_icon-module-operations.svg +3 -1
- package/dist/collection/components/icon-100/icon-100.css +2 -2
- package/dist/collection/components/icon-100/icons-100/b2b_icon-light-bulb.svg +2 -2
- package/dist/collection/components/icon-100/icons-100/b2b_icon-module-operations.svg +3 -1
- 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 +3 -3
- 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 +2 -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.js +2 -2
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- 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 +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +2 -2
- 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/components/{b2b-calendar-days.d.ts → b2b-background-box.d.ts} +4 -4
- package/dist/components/b2b-background-box.js +44 -0
- package/dist/components/b2b-breadcrumb-item.js +1 -1
- package/dist/components/b2b-breadcrumb.js +1 -1
- package/dist/components/b2b-card.js +2 -2
- package/dist/components/b2b-checkbox-group.js +2 -2
- package/dist/components/b2b-date-picker-days-header.d.ts +11 -0
- package/dist/components/b2b-date-picker-days-header.js +6 -0
- package/dist/components/{b2b-calendar-header.d.ts → b2b-date-picker-days.d.ts} +4 -4
- package/dist/components/b2b-date-picker-days.js +6 -0
- package/dist/components/b2b-date-picker-header.d.ts +11 -0
- package/dist/components/b2b-date-picker-header.js +6 -0
- package/dist/components/b2b-date-picker-months.d.ts +11 -0
- package/dist/components/b2b-date-picker-months.js +6 -0
- package/dist/components/b2b-date-picker-years.d.ts +11 -0
- package/dist/components/b2b-date-picker-years.js +6 -0
- package/dist/components/{b2b-calendar.d.ts → b2b-date-picker.d.ts} +4 -4
- package/dist/components/b2b-date-picker.js +396 -0
- package/dist/components/b2b-dropdown.js +2 -2
- package/dist/components/b2b-flyout-menu-option.js +2 -2
- package/dist/components/b2b-flyout-menu.js +23 -9
- package/dist/components/b2b-grid-col.js +1 -1
- package/dist/components/b2b-grid-row.js +2 -2
- package/dist/components/b2b-grid.js +1 -1
- package/dist/components/b2b-label.js +2 -2
- package/dist/components/b2b-modal.js +2 -2
- package/dist/components/b2b-multiselect-dropdown.js +3 -3
- package/dist/components/b2b-pagination.js +1 -1
- package/dist/components/b2b-paragraph.js +2 -2
- 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-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 +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/button.js +1 -1
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +2 -2
- package/dist/components/date-picker-days-header.js +40 -0
- package/dist/components/date-picker-days.js +202 -0
- package/dist/components/date-picker-header.js +77 -0
- package/dist/components/date-picker-months.js +103 -0
- package/dist/components/date-picker-years.js +131 -0
- package/dist/components/date-picker.types.js +23 -0
- 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 +134 -83
- package/dist/esm/b2b-background-box.entry.js +23 -0
- package/dist/esm/b2b-breadcrumb-item.entry.js +1 -1
- package/dist/esm/b2b-breadcrumb.entry.js +1 -1
- package/dist/esm/b2b-button_2.entry.js +2 -2
- package/dist/esm/b2b-card.entry.js +2 -2
- package/dist/esm/b2b-checkbox-group.entry.js +2 -2
- package/dist/esm/b2b-checkbox.entry.js +2 -2
- package/dist/esm/b2b-chip-component_2.entry.js +4 -4
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-date-picker-days_5.entry.js +436 -0
- package/dist/esm/b2b-date-picker.entry.js +319 -0
- package/dist/esm/b2b-dropdown.entry.js +2 -2
- package/dist/esm/b2b-flyout-menu-option.entry.js +2 -2
- package/dist/esm/b2b-flyout-menu.entry.js +23 -9
- 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-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 +3 -3
- 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 +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-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 +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.types-e21b2096.js +23 -0
- package/dist/esm/index-ab9eb36d.js +12 -8
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/background-box/background-box.d.ts +8 -0
- package/dist/types/components/background-box/background-box.stories.d.ts +7 -0
- package/dist/types/components/date-picker/date-picker-days-header.d.ts +5 -0
- package/dist/types/components/{calendar/calendar-days.d.ts → date-picker/date-picker-days.d.ts} +8 -5
- package/dist/types/components/date-picker/date-picker-header.d.ts +16 -0
- package/dist/types/components/date-picker/date-picker-months.d.ts +15 -0
- package/dist/types/components/date-picker/date-picker-years.d.ts +19 -0
- package/dist/types/components/date-picker/date-picker.d.ts +60 -0
- package/dist/types/components/{calendar/calendar.stories.d.ts → date-picker/date-picker.stories.d.ts} +2 -0
- package/dist/types/components/{calendar/calendar.types.d.ts → date-picker/date-picker.types.d.ts} +5 -0
- package/dist/types/components/flyout-menu/flyout-menu.d.ts +1 -1
- package/dist/types/components.d.ts +349 -219
- package/dist/types/utils/interfaces/form.interface.d.ts +16 -1
- package/dist/types/utils/interfaces/interaction.interface.d.ts +1 -3
- package/dist/web-types.json +346 -217
- package/package.json +2 -2
- package/dist/b2b-core-components/p-0291eff0.entry.js +0 -1
- package/dist/b2b-core-components/p-038a0f4a.entry.js +0 -1
- package/dist/b2b-core-components/p-0db8724d.entry.js +0 -1
- package/dist/b2b-core-components/p-1a0a4821.entry.js +0 -1
- package/dist/b2b-core-components/p-1bfac51e.entry.js +0 -1
- package/dist/b2b-core-components/p-cff628e7.entry.js +0 -1
- package/dist/cjs/b2b-calendar-days_3.cjs.entry.js +0 -228
- package/dist/cjs/b2b-calendar.cjs.entry.js +0 -113
- package/dist/collection/components/calendar/calendar-days-header.js +0 -29
- package/dist/collection/components/calendar/calendar-header.e2e.js +0 -22
- package/dist/collection/components/calendar/calendar-header.js +0 -111
- package/dist/collection/components/calendar/calendar.e2e.js +0 -67
- package/dist/collection/components/calendar/calendar.js +0 -245
- package/dist/collection/components/calendar/calendar.stories.js +0 -81
- package/dist/components/b2b-calendar-days-header.d.ts +0 -11
- package/dist/components/b2b-calendar-days-header.js +0 -6
- package/dist/components/b2b-calendar-days.js +0 -6
- package/dist/components/b2b-calendar-header.js +0 -6
- package/dist/components/b2b-calendar.js +0 -167
- package/dist/components/calendar-days-header.js +0 -40
- package/dist/components/calendar-days.js +0 -186
- package/dist/components/calendar-header.js +0 -56
- package/dist/components/calendar.types.js +0 -17
- package/dist/esm/b2b-calendar-days_3.entry.js +0 -222
- package/dist/esm/b2b-calendar.entry.js +0 -109
- package/dist/types/components/calendar/calendar-days-header.d.ts +0 -5
- package/dist/types/components/calendar/calendar-header.d.ts +0 -14
- package/dist/types/components/calendar/calendar.d.ts +0 -31
|
@@ -26,10 +26,10 @@ export class CardComponent {
|
|
|
26
26
|
return 0;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'f9fd7890d85a2c69fb416cacd1038a3e50ba8ce2', tabIndex: this.getTabIndex(), "aria-disabled": this.disabled ? 'true' : null, class: {
|
|
30
30
|
'b2b-card': true,
|
|
31
31
|
'b2b-card--disabled': this.disabled,
|
|
32
|
-
} }, this.href != '' && h("a", { href: this.href, target: `_${this.target}` }), this.disabled && h("div", { class: "b2b-card--disabled-overlay" }), h("slot", { key: '
|
|
32
|
+
} }, this.href != '' && h("a", { href: this.href, target: `_${this.target}` }), this.disabled && h("div", { class: "b2b-card--disabled-overlay" }), h("slot", { key: '1258394d2cf138a0625c70af043d4590a45262db' })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "b2b-card"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on
|
|
125
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -65,14 +65,14 @@ export class CheckboxComponent {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: 'f9b0a3ab1446715b218115bb5097d7de57ae71eb', onClick: this.onClick }, h("div", { key: 'da9c2edb1f46996f8e03aedf17a52f4b2c822f0d', class: {
|
|
69
69
|
'b2b-checkbox': true,
|
|
70
70
|
'b2b-checkbox--error': this.invalid && !this.disabled,
|
|
71
71
|
'b2b-checkbox--disabled': this.disabled || this.groupDisabled,
|
|
72
72
|
'b2b-checkbox--checked': this.checked,
|
|
73
73
|
'b2b-checkbox--standalone': this.standalone,
|
|
74
74
|
'b2b-checkbox--indeterminate': this.indeterminate,
|
|
75
|
-
} }, h("div", { key: '
|
|
75
|
+
} }, h("div", { key: '29a99d41fca9d51aea5ac58feb92910f10d58e46', class: "b2b-checkbox-items" }, this.renderIcon(), h("input", { key: 'a05a1ba84a49d775a887e393ade4a5c2ce993273', class: "b2b-checkbox__input", "aria-labelledby": this.name, type: "checkbox", name: this.name, id: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.groupDisabled, onFocus: this.onFocus, onBlur: this.onBlur }), !this.standalone && (h("b2b-input-label", { id: this.name, required: this.required, disabled: this.disabled }, this.label))), (this.hint !== undefined && !this.invalid) ||
|
|
76
76
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "b2b-checkbox"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on
|
|
125
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -65,11 +65,11 @@ export class CheckboxGroupComponent {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: 'a13345395b22ac918fcb5b4186f5bb3057af8ea4' }, h("div", { key: 'b388a4b209535c47c07b2720392abeb7191b0809', class: {
|
|
69
69
|
'b2b-checkbox-group': true,
|
|
70
70
|
'b2b-checkbox-group--error': this.invalid && !this.disabled,
|
|
71
71
|
[`b2b-checkbox-group--${this.alignment}`]: true,
|
|
72
|
-
} }, this.label && (h("b2b-input-label", { required: this.required }, this.label)), h("fieldset", { key: '
|
|
72
|
+
} }, this.label && (h("b2b-input-label", { required: this.required }, this.label)), h("fieldset", { key: '33ed6a29fc0742e786d7f82c93dea89fdf0127b8' }, h("div", { key: 'da3884cbef485588a36ea6dd6c92f0dc0bdff138', class: "b2b-checkbox-group__options" }, h("slot", { key: 'c4f2ef006d5c8f04e45315526d076ca69a49026e' }))), (this.hint !== undefined && !this.invalid) ||
|
|
73
73
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "b2b-checkbox-group"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on
|
|
125
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -22,11 +22,11 @@ export class B2bChipComponent {
|
|
|
22
22
|
this.value = undefined;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'feff4de384d9ae0d55cf1683915bb15e865211a0' }, h("div", { key: '79b6ec48ae1a4c142ca8363670ecee5ddd0703cb', class: {
|
|
26
26
|
'b2b-chip': true,
|
|
27
27
|
[`b2b-chip--${this.type}`]: !this.disabled && this.type !== undefined,
|
|
28
28
|
'b2b-chip--disabled': this.disabled,
|
|
29
|
-
} }, h("span", { key: '
|
|
29
|
+
} }, h("span", { key: 'daa9ee334f78e1b9d3baa363ba7f6e941f3571dc', class: {
|
|
30
30
|
'b2b-chip__label': true,
|
|
31
31
|
[`b2b-chip__label--${this.labelStyle}`]: this.labelStyle !== undefined,
|
|
32
32
|
'b2b-chip__label--close-button': this.hasCloseButton,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on
|
|
125
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -215,14 +215,14 @@
|
|
|
215
215
|
font-family: ObcIcons;
|
|
216
216
|
src: url("https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff");
|
|
217
217
|
}
|
|
218
|
-
:root .b2b-
|
|
219
|
-
:host .b2b-
|
|
218
|
+
:root .b2b-date-picker-days-header,
|
|
219
|
+
:host .b2b-date-picker-days-header {
|
|
220
220
|
display: grid;
|
|
221
221
|
grid-template-columns: repeat(7, 1fr); /* Display days in a grid */
|
|
222
222
|
padding: 0 var(--b2b-size-40) 0 var(--b2b-size-40);
|
|
223
223
|
}
|
|
224
|
-
:root .b2b-
|
|
225
|
-
:host .b2b-
|
|
224
|
+
:root .b2b-date-picker-days-header .b2b-date-picker-day,
|
|
225
|
+
:host .b2b-date-picker-days-header .b2b-date-picker-day {
|
|
226
226
|
width: var(--b2b-size-90);
|
|
227
227
|
height: var(--b2b-size-55);
|
|
228
228
|
border-radius: 5px;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { Weekdays } from "./date-picker.types";
|
|
3
|
+
export class B2bDatePickerDaysHeader {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.displayWeekDays = () => {
|
|
6
|
+
let renderWeekDays = [];
|
|
7
|
+
Weekdays.forEach(day => {
|
|
8
|
+
renderWeekDays.push(h("div", { class: "b2b-date-picker-day" }, day));
|
|
9
|
+
});
|
|
10
|
+
return renderWeekDays;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { key: 'dd19aa810becf64b496f66534c7e81cff239507a' }, h("div", { key: '75a38a70e3152892458ab53116f9ed44487aaba6', class: "b2b-date-picker-days-header" }, this.displayWeekDays())));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "b2b-date-picker-days-header"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["date-picker-days-header.scss"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["date-picker-days-header.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get elementRef() { return "host"; }
|
|
29
|
+
}
|
package/dist/collection/components/{calendar/calendar-days.css → date-picker/date-picker-days.css}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on
|
|
125
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -215,16 +215,15 @@
|
|
|
215
215
|
font-family: ObcIcons;
|
|
216
216
|
src: url("https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff");
|
|
217
217
|
}
|
|
218
|
-
.b2b-
|
|
218
|
+
.b2b-date-picker-days {
|
|
219
219
|
display: grid;
|
|
220
220
|
grid-template-columns: repeat(7, 1fr); /* Display days in a grid */
|
|
221
221
|
padding: 0 var(--b2b-size-40) 0 var(--b2b-size-40);
|
|
222
222
|
}
|
|
223
|
-
.b2b-
|
|
223
|
+
.b2b-date-picker-days .b2b-date-picker-day {
|
|
224
224
|
width: var(--b2b-size-90);
|
|
225
225
|
height: var(--b2b-size-90);
|
|
226
226
|
border-radius: 5px;
|
|
227
|
-
text-align: center;
|
|
228
227
|
display: flex;
|
|
229
228
|
align-items: center;
|
|
230
229
|
justify-content: center;
|
|
@@ -232,30 +231,30 @@
|
|
|
232
231
|
color: var(--b2b-color-black-100);
|
|
233
232
|
font-size: var(--b2b-size-35);
|
|
234
233
|
}
|
|
235
|
-
.b2b-
|
|
234
|
+
.b2b-date-picker-days .b2b-date-picker-day:hover {
|
|
236
235
|
cursor: pointer;
|
|
237
236
|
}
|
|
238
|
-
.b2b-
|
|
237
|
+
.b2b-date-picker-days .b2b-date-picker-day:hover, .b2b-date-picker-days .b2b-date-picker-day:focus {
|
|
239
238
|
background-color: var(--b2b-color-hover);
|
|
240
239
|
}
|
|
241
|
-
.b2b-
|
|
242
|
-
width: var(--b2b-size-90);
|
|
243
|
-
height: var(--b2b-size-55);
|
|
240
|
+
.b2b-date-picker-days .b2b-date-picker-day--disabled {
|
|
244
241
|
border-radius: 5px;
|
|
245
|
-
padding: 5px 0;
|
|
246
|
-
text-align: center;
|
|
247
|
-
pointer-events: none;
|
|
248
242
|
color: var(--b2b-color-grey-200);
|
|
243
|
+
pointer-events: none;
|
|
249
244
|
}
|
|
250
|
-
.b2b-
|
|
245
|
+
.b2b-date-picker-days .b2b-date-picker-day--today {
|
|
251
246
|
border: 1px solid var(--b2b-color-black-50);
|
|
252
247
|
box-sizing: border-box;
|
|
248
|
+
width: 100%;
|
|
249
|
+
height: 100%;
|
|
253
250
|
}
|
|
254
|
-
.b2b-
|
|
251
|
+
.b2b-date-picker-days .b2b-date-picker-day--selected {
|
|
255
252
|
background-color: var(--b2b-color-black-100);
|
|
256
253
|
color: var(--b2b-color-white-100);
|
|
257
254
|
pointer-events: none;
|
|
255
|
+
width: 100%;
|
|
256
|
+
height: 100%;
|
|
258
257
|
}
|
|
259
|
-
.b2b-
|
|
258
|
+
.b2b-date-picker-days .b2b-date-picker-day--focussed {
|
|
260
259
|
background-color: var(--b2b-color-hover);
|
|
261
260
|
}
|
package/dist/collection/components/{calendar/calendar-days.js → date-picker/date-picker-days.js}
RENAMED
|
@@ -10,7 +10,7 @@ const keys = {
|
|
|
10
10
|
TAB: 'Tab',
|
|
11
11
|
ENTER: 'Enter',
|
|
12
12
|
};
|
|
13
|
-
export class
|
|
13
|
+
export class B2bDatePickerDays {
|
|
14
14
|
constructor() {
|
|
15
15
|
this.today = new Date();
|
|
16
16
|
this.todayWithoutTime = new Date(this.today.getFullYear(), this.today.getMonth(), this.today.getDate());
|
|
@@ -19,17 +19,17 @@ export class B2bCalendarDays {
|
|
|
19
19
|
return dates.find(el => el.getAttribute('tabindex') === '0');
|
|
20
20
|
};
|
|
21
21
|
this.getAllDates = () => {
|
|
22
|
-
return Array.from(this.host.shadowRoot.querySelectorAll('.b2b-
|
|
22
|
+
return Array.from(this.host.shadowRoot.querySelectorAll('.b2b-date-picker-day'));
|
|
23
23
|
};
|
|
24
24
|
this.focusCurrentDate = (date) => {
|
|
25
25
|
const dates = this.getAllDates();
|
|
26
26
|
dates.forEach(element => {
|
|
27
|
-
if (date.className.includes('b2b-
|
|
27
|
+
if (date.className.includes('b2b-date-picker-day--disabled')) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
element.setAttribute('tabindex', element === date ? '0' : '-1');
|
|
31
31
|
});
|
|
32
|
-
if (!date.className.includes('b2b-
|
|
32
|
+
if (!date.className.includes('b2b-date-picker-day--disabled')) {
|
|
33
33
|
date.focus();
|
|
34
34
|
}
|
|
35
35
|
};
|
|
@@ -54,7 +54,7 @@ export class B2bCalendarDays {
|
|
|
54
54
|
/** Remove focus from the clicked element */
|
|
55
55
|
event.target.blur();
|
|
56
56
|
};
|
|
57
|
-
this.
|
|
57
|
+
this.renderDatePickerDays = () => {
|
|
58
58
|
let daysInMonth = new Date(this.selectedYear, this.selectedMonth + 1, 0).getDate(); /** Get total number of days in the current month */
|
|
59
59
|
let actualFirstDayOfMonth = new Date(this.selectedYear, this.selectedMonth, 1).getDay(); /** Get the day of the week (0-6) of the first day of the month */
|
|
60
60
|
let firstDayOfMonth = actualFirstDayOfMonth == 0 ? 6 : actualFirstDayOfMonth - 1;
|
|
@@ -68,10 +68,10 @@ export class B2bCalendarDays {
|
|
|
68
68
|
let givenDate = new Date(this.selectedYear, this.selectedMonth, i);
|
|
69
69
|
let disabled = this.isDisabledDate(givenDate);
|
|
70
70
|
days.push(h("div", { class: {
|
|
71
|
-
'b2b-
|
|
72
|
-
'b2b-
|
|
73
|
-
'b2b-
|
|
74
|
-
'b2b-
|
|
71
|
+
'b2b-date-picker-day': true,
|
|
72
|
+
'b2b-date-picker-day--disabled': disabled,
|
|
73
|
+
'b2b-date-picker-day--today': givenDate.toDateString() === this.todayWithoutTime.toDateString(),
|
|
74
|
+
'b2b-date-picker-day--selected': new Date(this.selectedYear, this.selectedMonth, this.selectedDay).toDateString() === givenDate.toDateString(),
|
|
75
75
|
}, onClick: event => {
|
|
76
76
|
this.b2bDateSelected.emit({
|
|
77
77
|
selectedDate: new Date(this.selectedYear, this.selectedMonth, i),
|
|
@@ -91,6 +91,25 @@ export class B2bCalendarDays {
|
|
|
91
91
|
this.disableWeekends = false;
|
|
92
92
|
this.disabled = false;
|
|
93
93
|
}
|
|
94
|
+
componentDidLoad() {
|
|
95
|
+
this.setFocusOnSelectedDayOrFirstDay();
|
|
96
|
+
}
|
|
97
|
+
setFocusOnSelectedDayOrFirstDay() {
|
|
98
|
+
const dates = this.getAllDates();
|
|
99
|
+
if (dates.length > 0) {
|
|
100
|
+
if (this.today.getMonth() !== this.selectedMonth) {
|
|
101
|
+
if (this.selectedDay !== undefined) {
|
|
102
|
+
this.focusCurrentDate(dates[this.selectedDay - 1]);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
this.focusCurrentDate(dates[0]);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
componentWillLoad() {
|
|
111
|
+
this.setFocusOnSelectedDayOrFirstDay();
|
|
112
|
+
}
|
|
94
113
|
handleKeyDown(event) {
|
|
95
114
|
event.preventDefault();
|
|
96
115
|
const dates = this.getAllDates();
|
|
@@ -100,9 +119,6 @@ export class B2bCalendarDays {
|
|
|
100
119
|
if (this.today.getMonth() === this.selectedMonth) {
|
|
101
120
|
index = this.today.getDate() - 1;
|
|
102
121
|
}
|
|
103
|
-
else {
|
|
104
|
-
index = 0;
|
|
105
|
-
}
|
|
106
122
|
break;
|
|
107
123
|
case keys.ARROW_LEFT:
|
|
108
124
|
index = dates.indexOf(this.getCurrentDate()) - 1;
|
|
@@ -118,7 +134,7 @@ export class B2bCalendarDays {
|
|
|
118
134
|
break;
|
|
119
135
|
case keys.ENTER:
|
|
120
136
|
index = dates.indexOf(this.getCurrentDate());
|
|
121
|
-
if (dates[index].classList.contains('b2b-
|
|
137
|
+
if (dates[index].classList.contains('b2b-date-picker-day--disabled')) {
|
|
122
138
|
return;
|
|
123
139
|
}
|
|
124
140
|
this.b2bDateSelected.emit({
|
|
@@ -127,7 +143,7 @@ export class B2bCalendarDays {
|
|
|
127
143
|
break;
|
|
128
144
|
case keys.ESC:
|
|
129
145
|
this.resetAllDates();
|
|
130
|
-
this.
|
|
146
|
+
this.b2bDatePickerEscape.emit();
|
|
131
147
|
break;
|
|
132
148
|
default:
|
|
133
149
|
return;
|
|
@@ -147,18 +163,18 @@ export class B2bCalendarDays {
|
|
|
147
163
|
});
|
|
148
164
|
}
|
|
149
165
|
render() {
|
|
150
|
-
return (h(Host, { key: '
|
|
166
|
+
return (h(Host, { key: '932793a700279c0064a3a36c08d75517861f2420' }, h("div", { key: '98179650a1f3a4e4af1a8ddee3073c48cc46beab', class: "b2b-date-picker-days" }, this.renderDatePickerDays())));
|
|
151
167
|
}
|
|
152
|
-
static get is() { return "b2b-
|
|
168
|
+
static get is() { return "b2b-date-picker-days"; }
|
|
153
169
|
static get encapsulation() { return "shadow"; }
|
|
154
170
|
static get originalStyleUrls() {
|
|
155
171
|
return {
|
|
156
|
-
"$": ["
|
|
172
|
+
"$": ["date-picker-days.scss"]
|
|
157
173
|
};
|
|
158
174
|
}
|
|
159
175
|
static get styleUrls() {
|
|
160
176
|
return {
|
|
161
|
-
"$": ["
|
|
177
|
+
"$": ["date-picker-days.css"]
|
|
162
178
|
};
|
|
163
179
|
}
|
|
164
180
|
static get properties() {
|
|
@@ -277,8 +293,8 @@ export class B2bCalendarDays {
|
|
|
277
293
|
}
|
|
278
294
|
static get events() {
|
|
279
295
|
return [{
|
|
280
|
-
"method": "
|
|
281
|
-
"name": "b2b-
|
|
296
|
+
"method": "b2bDatePickerEscape",
|
|
297
|
+
"name": "b2b-date-picker-escape",
|
|
282
298
|
"bubbles": true,
|
|
283
299
|
"cancelable": true,
|
|
284
300
|
"composed": true,
|
|
@@ -292,8 +308,8 @@ export class B2bCalendarDays {
|
|
|
292
308
|
"references": {
|
|
293
309
|
"EscapePressed": {
|
|
294
310
|
"location": "import",
|
|
295
|
-
"path": "../../utils/interfaces/
|
|
296
|
-
"id": "src/utils/interfaces/
|
|
311
|
+
"path": "../../utils/interfaces/form.interface",
|
|
312
|
+
"id": "src/utils/interfaces/form.interface.d.ts::EscapePressed"
|
|
297
313
|
}
|
|
298
314
|
}
|
|
299
315
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Do not edit directly
|
|
125
|
-
* Generated on
|
|
125
|
+
* Generated on Fri, 08 Nov 2024 12:23:19 GMT
|
|
126
126
|
*/
|
|
127
127
|
:root [data-theme="dark"] {
|
|
128
128
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -218,16 +218,16 @@
|
|
|
218
218
|
:root,
|
|
219
219
|
:host {
|
|
220
220
|
}
|
|
221
|
-
:root .b2b-
|
|
222
|
-
:host .b2b-
|
|
221
|
+
:root .b2b-date-picker-header,
|
|
222
|
+
:host .b2b-date-picker-header {
|
|
223
223
|
display: flex;
|
|
224
224
|
box-sizing: border-box;
|
|
225
225
|
padding: var(--b2b-size-30) var(--b2b-size-60) var(--b2b-size-40) var(--b2b-size-60);
|
|
226
226
|
}
|
|
227
|
-
:root .b2b-
|
|
228
|
-
:root .b2b-
|
|
229
|
-
:host .b2b-
|
|
230
|
-
:host .b2b-
|
|
227
|
+
:root .b2b-date-picker-nav--left,
|
|
228
|
+
:root .b2b-date-picker-nav--right,
|
|
229
|
+
:host .b2b-date-picker-nav--left,
|
|
230
|
+
:host .b2b-date-picker-nav--right {
|
|
231
231
|
height: var(--b2b-size-80);
|
|
232
232
|
width: var(--b2b-size-80);
|
|
233
233
|
background-color: var(--b2b-color-grey-25);
|
|
@@ -236,17 +236,17 @@
|
|
|
236
236
|
cursor: pointer;
|
|
237
237
|
border-radius: var(--b2b-size-7);
|
|
238
238
|
}
|
|
239
|
-
:root .b2b-
|
|
240
|
-
:root .b2b-
|
|
241
|
-
:root .b2b-
|
|
242
|
-
:host .b2b-
|
|
243
|
-
:host .b2b-
|
|
244
|
-
:host .b2b-
|
|
245
|
-
:host .b2b-
|
|
239
|
+
:root .b2b-date-picker-nav--left:hover, :root .b2b-date-picker-nav--left:focus,
|
|
240
|
+
:root .b2b-date-picker-nav--right:hover,
|
|
241
|
+
:root .b2b-date-picker-nav--right:focus,
|
|
242
|
+
:host .b2b-date-picker-nav--left:hover,
|
|
243
|
+
:host .b2b-date-picker-nav--left:focus,
|
|
244
|
+
:host .b2b-date-picker-nav--right:hover,
|
|
245
|
+
:host .b2b-date-picker-nav--right:focus {
|
|
246
246
|
background-color: var(--b2b-color-hover);
|
|
247
247
|
}
|
|
248
|
-
:root .b2b-
|
|
249
|
-
:host .b2b-
|
|
248
|
+
:root .b2b-date-picker-month,
|
|
249
|
+
:host .b2b-date-picker-month {
|
|
250
250
|
height: var(--b2b-size-80);
|
|
251
251
|
width: 82px;
|
|
252
252
|
padding: var(--b2b-size-10) var(--b2b-size-20);
|
|
@@ -257,14 +257,16 @@
|
|
|
257
257
|
font-weight: var(--b2b-size-headline-100);
|
|
258
258
|
border-radius: var(--b2b-size-7);
|
|
259
259
|
font-size: var(--b2b-size-40);
|
|
260
|
+
color: var(--b2b-color-black-100);
|
|
260
261
|
}
|
|
261
|
-
:root .b2b-
|
|
262
|
-
:host .b2b-
|
|
263
|
-
:host .b2b-
|
|
262
|
+
:root .b2b-date-picker-month:hover, :root .b2b-date-picker-month:focus,
|
|
263
|
+
:host .b2b-date-picker-month:hover,
|
|
264
|
+
:host .b2b-date-picker-month:focus {
|
|
265
|
+
cursor: pointer;
|
|
264
266
|
background-color: var(--b2b-color-hover);
|
|
265
267
|
}
|
|
266
|
-
:root .b2b-
|
|
267
|
-
:host .b2b-
|
|
268
|
+
:root .b2b-date-picker-year,
|
|
269
|
+
:host .b2b-date-picker-year {
|
|
268
270
|
height: var(--b2b-size-80);
|
|
269
271
|
width: 82px;
|
|
270
272
|
padding: var(--b2b-size-10) var(--b2b-size-20);
|
|
@@ -275,9 +277,11 @@
|
|
|
275
277
|
font-weight: var(--b2b-size-headline-100);
|
|
276
278
|
border-radius: var(--b2b-size-7);
|
|
277
279
|
font-size: var(--b2b-size-40);
|
|
280
|
+
color: var(--b2b-color-black-100);
|
|
278
281
|
}
|
|
279
|
-
:root .b2b-
|
|
280
|
-
:host .b2b-
|
|
281
|
-
:host .b2b-
|
|
282
|
+
:root .b2b-date-picker-year:hover, :root .b2b-date-picker-year:focus,
|
|
283
|
+
:host .b2b-date-picker-year:hover,
|
|
284
|
+
:host .b2b-date-picker-year:focus {
|
|
285
|
+
cursor: pointer;
|
|
282
286
|
background-color: var(--b2b-color-hover);
|
|
283
287
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('B2B-Date-Picker-Header', () => {
|
|
3
|
+
let page;
|
|
4
|
+
beforeEach(async () => {
|
|
5
|
+
page = await newE2EPage();
|
|
6
|
+
await page.setContent(`<b2b-date-picker-header></b2b-date-picker-header>`);
|
|
7
|
+
});
|
|
8
|
+
it('should emit previous button click event', async () => {
|
|
9
|
+
const previousMonthSpy = await page.spyOnEvent('b2b-date-picker-previous-month');
|
|
10
|
+
const clickableInputComponent = await page.find('b2b-date-picker-header >>> .b2b-date-picker-nav--left');
|
|
11
|
+
await clickableInputComponent.click();
|
|
12
|
+
page.waitForChanges();
|
|
13
|
+
expect(previousMonthSpy).toHaveReceivedEvent();
|
|
14
|
+
});
|
|
15
|
+
it('should emit next button click event', async () => {
|
|
16
|
+
const nextMonthSpy = await page.spyOnEvent('b2b-date-picker-next-month');
|
|
17
|
+
const clickableInputComponent = await page.find('b2b-date-picker-header >>> .b2b-date-picker-nav--right');
|
|
18
|
+
await clickableInputComponent.click();
|
|
19
|
+
page.waitForChanges();
|
|
20
|
+
expect(nextMonthSpy).toHaveReceivedEvent();
|
|
21
|
+
});
|
|
22
|
+
it('should emit months date picker view selected event', async () => {
|
|
23
|
+
const viewChangedSpy = await page.spyOnEvent('b2b-date-picker-view-changed');
|
|
24
|
+
const clickableInputComponent = await page.find('b2b-date-picker-header >>> .b2b-date-picker-month');
|
|
25
|
+
await clickableInputComponent.click();
|
|
26
|
+
page.waitForChanges();
|
|
27
|
+
expect(viewChangedSpy).toHaveReceivedEvent();
|
|
28
|
+
expect(viewChangedSpy).toHaveReceivedEventDetail({ value: 'Months' });
|
|
29
|
+
});
|
|
30
|
+
it('should emit years date picker view selected event', async () => {
|
|
31
|
+
const viewChangedSpy = await page.spyOnEvent('b2b-date-picker-view-changed');
|
|
32
|
+
const clickableInputComponent = await page.find('b2b-date-picker-header >>> .b2b-date-picker-year');
|
|
33
|
+
await clickableInputComponent.click();
|
|
34
|
+
page.waitForChanges();
|
|
35
|
+
expect(viewChangedSpy).toHaveReceivedEvent();
|
|
36
|
+
expect(viewChangedSpy).toHaveReceivedEventDetail({ value: 'Years' });
|
|
37
|
+
});
|
|
38
|
+
});
|