@beeq/core 1.12.4 → 1.13.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/beeq/beeq.esm.js +1 -1
- package/dist/beeq/{p-b4b02b99.entry.js → p-0d078519.entry.js} +2 -2
- package/dist/beeq/{p-b4b02b99.entry.js.map → p-0d078519.entry.js.map} +1 -1
- package/dist/beeq/{p-49a999b4.entry.js → p-1a2c4878.entry.js} +2 -2
- package/dist/beeq/p-21db4f39.entry.js +6 -0
- package/dist/beeq/p-21db4f39.entry.js.map +1 -0
- package/dist/beeq/{p-21db2c4e.entry.js → p-24bb2588.entry.js} +2 -2
- package/dist/beeq/{p-21db2c4e.entry.js.map → p-24bb2588.entry.js.map} +1 -1
- package/dist/beeq/{p-327cb74b.entry.js → p-2a081a54.entry.js} +2 -2
- package/dist/beeq/{p-327cb74b.entry.js.map → p-2a081a54.entry.js.map} +1 -1
- package/dist/beeq/{p-8974f66f.entry.js → p-2e1fffcd.entry.js} +2 -2
- package/dist/beeq/p-2fd6ea70.entry.js +6 -0
- package/dist/beeq/{p-d4df64ae.entry.js.map → p-2fd6ea70.entry.js.map} +1 -1
- package/dist/beeq/{p-f4c66e83.entry.js → p-30d1bd84.entry.js} +2 -2
- package/dist/beeq/{p-f4c66e83.entry.js.map → p-30d1bd84.entry.js.map} +1 -1
- package/dist/beeq/{p-b31d249b.entry.js → p-38006c8e.entry.js} +2 -2
- package/dist/beeq/{p-b8bac7c7.entry.js → p-3d754d97.entry.js} +2 -2
- package/dist/beeq/{p-b8bac7c7.entry.js.map → p-3d754d97.entry.js.map} +1 -1
- package/dist/beeq/{p-25772ebd.entry.js → p-45ae19aa.entry.js} +2 -2
- package/dist/beeq/p-45ae19aa.entry.js.map +1 -0
- package/dist/beeq/{p-f0a2c87e.entry.js → p-56b49d4e.entry.js} +2 -2
- package/dist/beeq/{p-f0a2c87e.entry.js.map → p-56b49d4e.entry.js.map} +1 -1
- package/dist/beeq/{p-644013aa.entry.js → p-58813f83.entry.js} +2 -2
- package/dist/beeq/{p-644013aa.entry.js.map → p-58813f83.entry.js.map} +1 -1
- package/dist/beeq/{p-0a3c5b97.entry.js → p-5eba392c.entry.js} +2 -2
- package/dist/beeq/{p-fe22de00.entry.js → p-6a38fcaf.entry.js} +2 -2
- package/dist/beeq/{p-d7c20c6f.entry.js → p-6be3f23a.entry.js} +2 -2
- package/dist/beeq/{p-d7c20c6f.entry.js.map → p-6be3f23a.entry.js.map} +1 -1
- package/dist/beeq/{p-ef783b95.entry.js → p-72ff2fe2.entry.js} +2 -2
- package/dist/beeq/{p-1764899f.entry.js → p-7ebe6b9d.entry.js} +2 -2
- package/dist/beeq/{p-1764899f.entry.js.map → p-7ebe6b9d.entry.js.map} +1 -1
- package/dist/beeq/{p-69cf0536.entry.js → p-817f7a5e.entry.js} +2 -2
- package/dist/beeq/{p-69cf0536.entry.js.map → p-817f7a5e.entry.js.map} +1 -1
- package/dist/beeq/{p-fb763ec5.entry.js → p-8bd7f4c2.entry.js} +2 -2
- package/dist/beeq/{p-8d9bef7a.entry.js → p-8be7ceb5.entry.js} +2 -2
- package/dist/beeq/{p-8d9bef7a.entry.js.map → p-8be7ceb5.entry.js.map} +1 -1
- package/dist/beeq/{p-f07f4d99.entry.js → p-9413a4d3.entry.js} +2 -2
- package/dist/beeq/{p-b7c6fdbd.entry.js → p-96f72671.entry.js} +2 -2
- package/dist/beeq/p-96f72671.entry.js.map +1 -0
- package/dist/beeq/p-Dx-CEPSQ.js.map +1 -1
- package/dist/beeq/p-a0a8ea5b.entry.js +6 -0
- package/dist/beeq/p-a0a8ea5b.entry.js.map +1 -0
- package/dist/beeq/{p-7972ba08.entry.js → p-a55354ee.entry.js} +2 -2
- package/dist/beeq/{p-365f0372.entry.js → p-a72671f9.entry.js} +2 -2
- package/dist/beeq/p-a72671f9.entry.js.map +1 -0
- package/dist/beeq/{p-56810dba.entry.js → p-bdb983f9.entry.js} +2 -2
- package/dist/beeq/{p-56810dba.entry.js.map → p-bdb983f9.entry.js.map} +1 -1
- package/dist/beeq/{p-2a7c5b1e.entry.js → p-d6c35472.entry.js} +2 -2
- package/dist/beeq/{p-2a7c5b1e.entry.js.map → p-d6c35472.entry.js.map} +1 -1
- package/dist/beeq/{p-84e96891.entry.js → p-d792e3d3.entry.js} +2 -2
- package/dist/beeq/{p-5645238d.entry.js → p-e9a1b183.entry.js} +2 -2
- package/dist/beeq/p-f688d230.entry.js +6 -0
- package/dist/beeq/{p-79aab4dd.entry.js.map → p-f688d230.entry.js.map} +1 -1
- package/dist/beeq/{p-b6f5430a.entry.js → p-f891fb4b.entry.js} +2 -2
- package/dist/beeq/{p-b26ee039.entry.js → p-fa123a10.entry.js} +2 -2
- package/dist/beeq/{p-b26ee039.entry.js.map → p-fa123a10.entry.js.map} +1 -1
- package/dist/beeq/p-uqkxeAeG.js.map +1 -1
- package/dist/beeq/svg/.icons-meta.json +13 -0
- package/dist/beeq.html-custom-data.json +2153 -50
- package/dist/cjs/beeq.cjs.js +1 -1
- package/dist/cjs/bq-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bq-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-alert.cjs.entry.js +1 -1
- package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-button_2.cjs.entry.js +2 -2
- package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-date-picker.cjs.entry.js +1741 -364
- package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dialog.cjs.entry.js +5 -5
- package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-divider.cjs.entry.js +4 -4
- package/dist/cjs/bq-drawer.cjs.entry.js +5 -5
- package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dropdown_2.cjs.entry.js +4 -4
- package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-empty-state.cjs.entry.js +6 -6
- package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-input.cjs.entry.js +8 -8
- package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-notification.cjs.entry.js +6 -6
- package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-option-list_2.cjs.entry.js +6 -6
- package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option.cjs.entry.js +4 -4
- package/dist/cjs/bq-page-title.cjs.entry.js +4 -4
- package/dist/cjs/bq-progress.cjs.entry.js +5 -5
- package/dist/cjs/bq-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-radio.cjs.entry.js +4 -4
- package/dist/cjs/bq-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-select.cjs.entry.js +1 -1
- package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu.cjs.entry.js +2 -2
- package/dist/cjs/bq-slider.cjs.entry.js +3 -3
- package/dist/cjs/bq-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-spinner.cjs.entry.js +4 -4
- package/dist/cjs/bq-status.cjs.entry.js +2 -2
- package/dist/cjs/bq-status.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-step-item.cjs.entry.js +5 -5
- package/dist/cjs/bq-step-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-steps.cjs.entry.js +2 -2
- package/dist/cjs/bq-switch.cjs.entry.js +4 -4
- package/dist/cjs/bq-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/bq-tab.cjs.entry.js +3 -3
- package/dist/cjs/bq-textarea.cjs.entry.js +5 -5
- package/dist/cjs/bq-toast.cjs.entry.js +2 -2
- package/dist/cjs/bq-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/event-BhuEFC-I.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/slot-DKWrtk4b.js.map +1 -1
- package/dist/collection/components/accordion-group/scss/bq-accordion-group.css +1 -1
- package/dist/collection/components/alert/scss/bq-alert.css +1 -1
- package/dist/collection/components/avatar/scss/bq-avatar.css +1 -1
- package/dist/collection/components/breadcrumb/scss/bq-breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb-item/scss/bq-breadcrumb-item.css +1 -1
- package/dist/collection/components/button/scss/bq-button.css +1 -1
- package/dist/collection/components/card/scss/bq-card.css +1 -1
- package/dist/collection/components/checkbox/bq-checkbox.js +5 -4
- package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
- package/dist/collection/components/checkbox/scss/bq-checkbox.css +1 -1
- package/dist/collection/components/date-picker/bq-date-picker.js +1141 -457
- package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
- package/dist/collection/components/date-picker/bq-date-picker.types.js +29 -0
- package/dist/collection/components/date-picker/bq-date-picker.types.js.map +1 -1
- package/dist/collection/components/date-picker/components/CalendarDayView.js +96 -0
- package/dist/collection/components/date-picker/components/CalendarDayView.js.map +1 -0
- package/dist/collection/components/date-picker/components/CalendarHeader.js +18 -0
- package/dist/collection/components/date-picker/components/CalendarHeader.js.map +1 -0
- package/dist/collection/components/date-picker/components/CalendarMonthView.js +70 -0
- package/dist/collection/components/date-picker/components/CalendarMonthView.js.map +1 -0
- package/dist/collection/components/date-picker/components/CalendarYearView.js +68 -0
- package/dist/collection/components/date-picker/components/CalendarYearView.js.map +1 -0
- package/dist/collection/components/date-picker/helper/bounds.js +114 -0
- package/dist/collection/components/date-picker/helper/bounds.js.map +1 -0
- package/dist/collection/components/date-picker/helper/calendar.js +156 -0
- package/dist/collection/components/date-picker/helper/calendar.js.map +1 -0
- package/dist/collection/components/date-picker/helper/constants.js +62 -16
- package/dist/collection/components/date-picker/helper/constants.js.map +1 -1
- package/dist/collection/components/date-picker/helper/input.js +37 -0
- package/dist/collection/components/date-picker/helper/input.js.map +1 -0
- package/dist/collection/components/date-picker/helper/intl.js +78 -0
- package/dist/collection/components/date-picker/helper/intl.js.map +1 -0
- package/dist/collection/components/date-picker/helper/labels.js +61 -0
- package/dist/collection/components/date-picker/helper/labels.js.map +1 -0
- package/dist/collection/components/date-picker/helper/navigation.js +45 -0
- package/dist/collection/components/date-picker/helper/navigation.js.map +1 -0
- package/dist/collection/components/date-picker/helper/selection.js +167 -0
- package/dist/collection/components/date-picker/helper/selection.js.map +1 -0
- package/dist/collection/components/date-picker/helper/value.js +49 -0
- package/dist/collection/components/date-picker/helper/value.js.map +1 -0
- package/dist/collection/components/date-picker/scss/bq-date-picker.css +1 -1
- package/dist/collection/components/dialog/bq-dialog.js +4 -4
- package/dist/collection/components/dialog/scss/bq-dialog.css +1 -1
- package/dist/collection/components/divider/bq-divider.js +4 -4
- package/dist/collection/components/drawer/bq-drawer.js +4 -4
- package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
- package/dist/collection/components/dropdown/bq-dropdown.js +1 -1
- package/dist/collection/components/dropdown/scss/bq-dropdown.css +1 -1
- package/dist/collection/components/empty-state/bq-empty-state.js +5 -5
- package/dist/collection/components/empty-state/scss/bq-empty-state.css +1 -1
- package/dist/collection/components/icon/bq-icon.js +1 -1
- package/dist/collection/components/icon/svg/.icons-meta.json +13 -0
- package/dist/collection/components/input/bq-input.js +7 -7
- package/dist/collection/components/input/scss/bq-input.css +1 -1
- package/dist/collection/components/notification/bq-notification.js +5 -5
- package/dist/collection/components/notification/scss/bq-notification.css +1 -1
- package/dist/collection/components/option/bq-option.js +4 -4
- package/dist/collection/components/option-group/bq-option-group.js +1 -1
- package/dist/collection/components/option-group/scss/bq-option-group.css +1 -1
- package/dist/collection/components/option-list/bq-option-list.js +1 -1
- package/dist/collection/components/option-list/scss/bq-option-list.css +1 -1
- package/dist/collection/components/page-title/bq-page-title.js +4 -4
- package/dist/collection/components/page-title/scss/bq-page-title.css +1 -1
- package/dist/collection/components/panel/bq-panel.js +2 -2
- package/dist/collection/components/panel/scss/bq-panel.css +1 -1
- package/dist/collection/components/progress/bq-progress.js +4 -4
- package/dist/collection/components/progress/scss/bq-progress.css +1 -1
- package/dist/collection/components/radio/bq-radio.js +5 -4
- package/dist/collection/components/radio/bq-radio.js.map +1 -1
- package/dist/collection/components/radio/scss/bq-radio.css +1 -1
- package/dist/collection/components/radio-group/bq-radio-group.js +1 -1
- package/dist/collection/components/select/scss/bq-select.css +1 -1
- package/dist/collection/components/side-menu/bq-side-menu.js +2 -2
- package/dist/collection/components/side-menu-item/scss/bq-side-menu-item.css +1 -1
- package/dist/collection/components/slider/bq-slider.js +2 -2
- package/dist/collection/components/spinner/bq-spinner.js +4 -4
- package/dist/collection/components/spinner/scss/bq-spinner.css +1 -1
- package/dist/collection/components/status/bq-status.js +1 -1
- package/dist/collection/components/status/scss/bq-status.css +1 -1
- package/dist/collection/components/step-item/bq-step-item.js +4 -4
- package/dist/collection/components/step-item/scss/bq-step-item.css +1 -1
- package/dist/collection/components/steps/bq-steps.js +2 -2
- package/dist/collection/components/switch/bq-switch.js +3 -3
- package/dist/collection/components/switch/scss/bq-switch.css +1 -1
- package/dist/collection/components/tab/bq-tab.js +3 -3
- package/dist/collection/components/tab/scss/bq-tab.css +1 -1
- package/dist/collection/components/tab-group/bq-tab-group.js +3 -3
- package/dist/collection/components/tag/bq-tag.js +4 -4
- package/dist/collection/components/tag/scss/bq-tag.css +1 -1
- package/dist/collection/components/textarea/bq-textarea.js +5 -5
- package/dist/collection/components/textarea/scss/bq-textarea.css +1 -1
- package/dist/collection/components/toast/bq-toast.js +1 -1
- package/dist/collection/components/toast/scss/bq-toast.css +1 -1
- package/dist/collection/components/tooltip/bq-tooltip.js +4 -4
- package/dist/collection/components/tooltip/scss/bq-tooltip.css +1 -1
- package/dist/collection/shared/utils/event.js.map +1 -1
- package/dist/collection/shared/utils/slot.js.map +1 -1
- package/dist/components/bq-accordion-group.js +1 -1
- package/dist/components/bq-accordion-group.js.map +1 -1
- package/dist/components/bq-accordion.js +1 -1
- package/dist/components/bq-alert.js +1 -1
- package/dist/components/bq-alert.js.map +1 -1
- package/dist/components/bq-avatar.js +1 -1
- package/dist/components/bq-avatar.js.map +1 -1
- package/dist/components/bq-breadcrumb-item.js +1 -1
- package/dist/components/bq-breadcrumb-item.js.map +1 -1
- package/dist/components/bq-breadcrumb.js +1 -1
- package/dist/components/bq-breadcrumb.js.map +1 -1
- package/dist/components/bq-button.js +1 -1
- package/dist/components/bq-card.js +1 -1
- package/dist/components/bq-card.js.map +1 -1
- package/dist/components/bq-checkbox.js +1 -1
- package/dist/components/bq-checkbox.js.map +1 -1
- package/dist/components/bq-date-picker.js +1 -1
- package/dist/components/bq-date-picker.js.map +1 -1
- package/dist/components/bq-dialog.js +1 -1
- package/dist/components/bq-dialog.js.map +1 -1
- package/dist/components/bq-divider.js +1 -1
- package/dist/components/bq-drawer.js +1 -1
- package/dist/components/bq-drawer.js.map +1 -1
- package/dist/components/bq-dropdown.js +1 -1
- package/dist/components/bq-empty-state.js +1 -1
- package/dist/components/bq-empty-state.js.map +1 -1
- package/dist/components/bq-icon.js +1 -1
- package/dist/components/bq-input.js +1 -1
- package/dist/components/bq-input.js.map +1 -1
- package/dist/components/bq-notification.js +1 -1
- package/dist/components/bq-notification.js.map +1 -1
- package/dist/components/bq-option-group.js +1 -1
- package/dist/components/bq-option-group.js.map +1 -1
- package/dist/components/bq-option-list.js +1 -1
- package/dist/components/bq-option.js +1 -1
- package/dist/components/bq-page-title.js +1 -1
- package/dist/components/bq-page-title.js.map +1 -1
- package/dist/components/bq-panel.js +1 -1
- package/dist/components/bq-progress.js +1 -1
- package/dist/components/bq-progress.js.map +1 -1
- package/dist/components/bq-radio-group.js +1 -1
- package/dist/components/bq-radio.js +1 -1
- package/dist/components/bq-radio.js.map +1 -1
- package/dist/components/bq-select.js +1 -1
- package/dist/components/bq-select.js.map +1 -1
- package/dist/components/bq-side-menu-item.js +1 -1
- package/dist/components/bq-side-menu-item.js.map +1 -1
- package/dist/components/bq-side-menu.js +1 -1
- package/dist/components/bq-slider.js +1 -1
- package/dist/components/bq-spinner.js +1 -1
- package/dist/components/bq-spinner.js.map +1 -1
- package/dist/components/bq-status.js +1 -1
- package/dist/components/bq-status.js.map +1 -1
- package/dist/components/bq-step-item.js +1 -1
- package/dist/components/bq-step-item.js.map +1 -1
- package/dist/components/bq-steps.js +1 -1
- package/dist/components/bq-switch.js +1 -1
- package/dist/components/bq-switch.js.map +1 -1
- package/dist/components/bq-tab-group.js +1 -1
- package/dist/components/bq-tab.js +1 -1
- package/dist/components/bq-tab.js.map +1 -1
- package/dist/components/bq-tag.js +1 -1
- package/dist/components/bq-textarea.js +1 -1
- package/dist/components/bq-textarea.js.map +1 -1
- package/dist/components/bq-toast.js +1 -1
- package/dist/components/bq-toast.js.map +1 -1
- package/dist/components/bq-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CK3SnGa2.js → p-BBCVL6R0.js} +2 -2
- package/dist/components/{p-MSqM1CAF.js → p-BS8hIETL.js} +2 -2
- package/dist/components/{p-MSqM1CAF.js.map → p-BS8hIETL.js.map} +1 -1
- package/dist/components/{p-wi7vUIoV.js → p-CWawcXxA.js} +2 -2
- package/dist/components/{p-wi7vUIoV.js.map → p-CWawcXxA.js.map} +1 -1
- package/dist/components/{p-CNITfoR_.js → p-D6ngGq0Y.js} +2 -2
- package/dist/components/{p-CNITfoR_.js.map → p-D6ngGq0Y.js.map} +1 -1
- package/dist/components/{p-jrBUnEFW.js → p-DMKBBBUE.js} +2 -2
- package/dist/components/{p-jrBUnEFW.js.map → p-DMKBBBUE.js.map} +1 -1
- package/dist/components/p-Dd3v3b2E.js +6 -0
- package/dist/components/{p-CfP6le1E.js.map → p-Dd3v3b2E.js.map} +1 -1
- package/dist/components/p-Dx-CEPSQ.js.map +1 -1
- package/dist/components/{p-BOuMP_Rm.js → p-iyX-PhkX.js} +2 -2
- package/dist/components/{p-BOuMP_Rm.js.map → p-iyX-PhkX.js.map} +1 -1
- package/dist/components/p-uqkxeAeG.js.map +1 -1
- package/dist/components/{p-2bpX-u8x.js → p-v3c5-Hhf.js} +2 -2
- package/dist/custom-elements.json +25333 -1261
- package/dist/esm/beeq.js +1 -1
- package/dist/esm/bq-accordion.entry.js +1 -1
- package/dist/esm/bq-accordion.entry.js.map +1 -1
- package/dist/esm/bq-alert.entry.js +1 -1
- package/dist/esm/bq-alert.entry.js.map +1 -1
- package/dist/esm/bq-button_2.entry.js +2 -2
- package/dist/esm/bq-button_2.entry.js.map +1 -1
- package/dist/esm/bq-checkbox.entry.js +4 -4
- package/dist/esm/bq-checkbox.entry.js.map +1 -1
- package/dist/esm/bq-date-picker.entry.js +1743 -366
- package/dist/esm/bq-date-picker.entry.js.map +1 -1
- package/dist/esm/bq-dialog.entry.js +5 -5
- package/dist/esm/bq-dialog.entry.js.map +1 -1
- package/dist/esm/bq-divider.entry.js +4 -4
- package/dist/esm/bq-drawer.entry.js +5 -5
- package/dist/esm/bq-drawer.entry.js.map +1 -1
- package/dist/esm/bq-dropdown_2.entry.js +4 -4
- package/dist/esm/bq-dropdown_2.entry.js.map +1 -1
- package/dist/esm/bq-empty-state.entry.js +6 -6
- package/dist/esm/bq-empty-state.entry.js.map +1 -1
- package/dist/esm/bq-input.entry.js +8 -8
- package/dist/esm/bq-input.entry.js.map +1 -1
- package/dist/esm/bq-notification.entry.js +6 -6
- package/dist/esm/bq-notification.entry.js.map +1 -1
- package/dist/esm/bq-option-group.entry.js +1 -1
- package/dist/esm/bq-option-list_2.entry.js +6 -6
- package/dist/esm/bq-option-list_2.entry.js.map +1 -1
- package/dist/esm/bq-option.entry.js +4 -4
- package/dist/esm/bq-page-title.entry.js +4 -4
- package/dist/esm/bq-progress.entry.js +5 -5
- package/dist/esm/bq-progress.entry.js.map +1 -1
- package/dist/esm/bq-radio-group.entry.js +1 -1
- package/dist/esm/bq-radio.entry.js +4 -4
- package/dist/esm/bq-radio.entry.js.map +1 -1
- package/dist/esm/bq-select.entry.js +1 -1
- package/dist/esm/bq-select.entry.js.map +1 -1
- package/dist/esm/bq-side-menu-item.entry.js +1 -1
- package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
- package/dist/esm/bq-side-menu.entry.js +2 -2
- package/dist/esm/bq-slider.entry.js +3 -3
- package/dist/esm/bq-slider.entry.js.map +1 -1
- package/dist/esm/bq-spinner.entry.js +4 -4
- package/dist/esm/bq-status.entry.js +2 -2
- package/dist/esm/bq-status.entry.js.map +1 -1
- package/dist/esm/bq-step-item.entry.js +5 -5
- package/dist/esm/bq-step-item.entry.js.map +1 -1
- package/dist/esm/bq-steps.entry.js +2 -2
- package/dist/esm/bq-switch.entry.js +4 -4
- package/dist/esm/bq-switch.entry.js.map +1 -1
- package/dist/esm/bq-tab-group.entry.js +3 -3
- package/dist/esm/bq-tab.entry.js +3 -3
- package/dist/esm/bq-textarea.entry.js +5 -5
- package/dist/esm/bq-toast.entry.js +2 -2
- package/dist/esm/bq-toast.entry.js.map +1 -1
- package/dist/esm/bq-tooltip.entry.js +4 -4
- package/dist/esm/event-Dx-CEPSQ.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/slot-uqkxeAeG.js.map +1 -1
- package/dist/hydrate/index.js +1980 -601
- package/dist/hydrate/index.mjs +1980 -601
- package/dist/stencil.config.js +6 -0
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/checkbox/bq-checkbox.d.ts +2 -1
- package/dist/types/components/date-picker/bq-date-picker.d.ts +330 -238
- package/dist/types/components/date-picker/bq-date-picker.types.d.ts +30 -39
- package/dist/types/components/date-picker/components/CalendarDayView.d.ts +42 -0
- package/dist/types/components/date-picker/components/CalendarHeader.d.ts +34 -0
- package/dist/types/components/date-picker/components/CalendarMonthView.d.ts +34 -0
- package/dist/types/components/date-picker/components/CalendarYearView.d.ts +32 -0
- package/dist/types/components/date-picker/helper/bounds.d.ts +49 -0
- package/dist/types/components/date-picker/helper/calendar.d.ts +78 -0
- package/dist/types/components/date-picker/helper/constants.d.ts +62 -16
- package/dist/types/components/date-picker/helper/input.d.ts +23 -0
- package/dist/types/components/date-picker/helper/intl.d.ts +38 -0
- package/dist/types/components/date-picker/helper/labels.d.ts +29 -0
- package/dist/types/components/date-picker/helper/navigation.d.ts +23 -0
- package/dist/types/components/date-picker/helper/selection.d.ts +44 -0
- package/dist/types/components/date-picker/helper/value.d.ts +31 -0
- package/dist/types/components/radio/bq-radio.d.ts +2 -1
- package/dist/types/components.d.ts +437 -350
- package/dist/types/shared/utils/event.d.ts +1 -1
- package/dist/types/shared/utils/slot.d.ts +1 -1
- package/package.json +1 -1
- package/dist/beeq/p-0cfa8d0b.entry.js +0 -6
- package/dist/beeq/p-0cfa8d0b.entry.js.map +0 -1
- package/dist/beeq/p-25772ebd.entry.js.map +0 -1
- package/dist/beeq/p-365f0372.entry.js.map +0 -1
- package/dist/beeq/p-53ea5999.entry.js +0 -6
- package/dist/beeq/p-53ea5999.entry.js.map +0 -1
- package/dist/beeq/p-79aab4dd.entry.js +0 -6
- package/dist/beeq/p-b7c6fdbd.entry.js.map +0 -1
- package/dist/beeq/p-d4df64ae.entry.js +0 -6
- package/dist/collection/components/date-picker/libs/callyLibrary.js +0 -92
- package/dist/collection/components/date-picker/libs/callyLibrary.js.map +0 -1
- package/dist/components/p-CfP6le1E.js +0 -6
- package/dist/types/components/date-picker/libs/callyLibrary.d.ts +0 -15
- /package/dist/beeq/{p-49a999b4.entry.js.map → p-1a2c4878.entry.js.map} +0 -0
- /package/dist/beeq/{p-8974f66f.entry.js.map → p-2e1fffcd.entry.js.map} +0 -0
- /package/dist/beeq/{p-b31d249b.entry.js.map → p-38006c8e.entry.js.map} +0 -0
- /package/dist/beeq/{p-0a3c5b97.entry.js.map → p-5eba392c.entry.js.map} +0 -0
- /package/dist/beeq/{p-fe22de00.entry.js.map → p-6a38fcaf.entry.js.map} +0 -0
- /package/dist/beeq/{p-ef783b95.entry.js.map → p-72ff2fe2.entry.js.map} +0 -0
- /package/dist/beeq/{p-fb763ec5.entry.js.map → p-8bd7f4c2.entry.js.map} +0 -0
- /package/dist/beeq/{p-f07f4d99.entry.js.map → p-9413a4d3.entry.js.map} +0 -0
- /package/dist/beeq/{p-7972ba08.entry.js.map → p-a55354ee.entry.js.map} +0 -0
- /package/dist/beeq/{p-84e96891.entry.js.map → p-d792e3d3.entry.js.map} +0 -0
- /package/dist/beeq/{p-5645238d.entry.js.map → p-e9a1b183.entry.js.map} +0 -0
- /package/dist/beeq/{p-b6f5430a.entry.js.map → p-f891fb4b.entry.js.map} +0 -0
- /package/dist/components/{p-CK3SnGa2.js.map → p-BBCVL6R0.js.map} +0 -0
- /package/dist/components/{p-2bpX-u8x.js.map → p-v3c5-Hhf.js.map} +0 -0
|
@@ -11,7 +11,7 @@ import { TAvatarShape, TAvatarSize } from "./components/avatar/bq-avatar.types";
|
|
|
11
11
|
import { TBadgeSize } from "./components/badge/bq-badge.types";
|
|
12
12
|
import { TButtonAppearance, TButtonBorderRadius, TButtonSize, TButtonType, TButtonVariant } from "./components/button/bq-button.types";
|
|
13
13
|
import { TCardBorderRadius, TCardType } from "./components/card/bq-card.types";
|
|
14
|
-
import { DaysOfWeek, TDatePickerType } from "./components/date-picker/bq-date-picker.types";
|
|
14
|
+
import { DaysOfWeek, TCalendarView, TDatePickerType, TDatePrecision, TFloatingStrategy, TMonthsPerView } from "./components/date-picker/bq-date-picker.types";
|
|
15
15
|
import { Placement } from "./services/interfaces";
|
|
16
16
|
import { TInputType, TInputValidation, TInputValue } from "./components/input/bq-input.types";
|
|
17
17
|
import { TDialogBorderRadius, TDialogFooterAppearance, TDialogSize } from "./components/dialog/bq-dialog.types";
|
|
@@ -40,7 +40,7 @@ export { TAvatarShape, TAvatarSize } from "./components/avatar/bq-avatar.types";
|
|
|
40
40
|
export { TBadgeSize } from "./components/badge/bq-badge.types";
|
|
41
41
|
export { TButtonAppearance, TButtonBorderRadius, TButtonSize, TButtonType, TButtonVariant } from "./components/button/bq-button.types";
|
|
42
42
|
export { TCardBorderRadius, TCardType } from "./components/card/bq-card.types";
|
|
43
|
-
export { DaysOfWeek, TDatePickerType } from "./components/date-picker/bq-date-picker.types";
|
|
43
|
+
export { DaysOfWeek, TCalendarView, TDatePickerType, TDatePrecision, TFloatingStrategy, TMonthsPerView } from "./components/date-picker/bq-date-picker.types";
|
|
44
44
|
export { Placement } from "./services/interfaces";
|
|
45
45
|
export { TInputType, TInputValidation, TInputValue } from "./components/input/bq-input.types";
|
|
46
46
|
export { TDialogBorderRadius, TDialogFooterAppearance, TDialogSize } from "./components/dialog/bq-dialog.types";
|
|
@@ -663,9 +663,10 @@ export namespace Components {
|
|
|
663
663
|
* @event bqChange - Handler to be called when the checkbox state changes
|
|
664
664
|
* @event bqFocus - Handler to be called when the checkbox gets focus
|
|
665
665
|
* @event bqBlur - Handler to be called when the checkbox loses focus
|
|
666
|
-
* @cssprop --bq-checkbox--
|
|
666
|
+
* @cssprop --bq-checkbox--background-color - Checkbox background color
|
|
667
667
|
* @cssprop --bq-checkbox--border-radius - Checkbox border radius
|
|
668
668
|
* @cssprop --bq-checkbox--border-width - Checkbox border width
|
|
669
|
+
* @cssprop --bq-checkbox--size - Checkbox size
|
|
669
670
|
*/
|
|
670
671
|
interface BqCheckbox {
|
|
671
672
|
/**
|
|
@@ -721,222 +722,246 @@ export namespace Components {
|
|
|
721
722
|
"value": string;
|
|
722
723
|
}
|
|
723
724
|
/**
|
|
724
|
-
* The Date Picker is a
|
|
725
|
+
* The Date Picker is a pure-Stencil calendar input.
|
|
726
|
+
* It supports single, multi, and range selection, three navigation views
|
|
727
|
+
* (days → months → years), full localization via `Intl.DateTimeFormat`,
|
|
728
|
+
* multi-month side-by-side rendering, and RTL layouts.
|
|
725
729
|
* @example How to use it
|
|
726
730
|
* ```html
|
|
727
731
|
* <bq-date-picker
|
|
728
732
|
* first-day-of-week="1"
|
|
729
733
|
* locale="en-GB"
|
|
730
|
-
* months-per-view="single"
|
|
731
|
-
* months="2"
|
|
732
734
|
* name="bq-date-picker"
|
|
733
735
|
* placeholder="Enter your date"
|
|
734
|
-
*
|
|
735
|
-
*
|
|
736
|
-
* type="range"
|
|
737
|
-
* validation-status="none"
|
|
738
|
-
* value="2024-05-25"
|
|
736
|
+
* type="single"
|
|
737
|
+
* value="2026-07-15"
|
|
739
738
|
* >
|
|
740
|
-
* <label
|
|
741
|
-
* Date picker label
|
|
742
|
-
* </label>
|
|
739
|
+
* <label slot="label">Date picker label</label>
|
|
743
740
|
* </bq-date-picker>
|
|
744
741
|
* ```
|
|
745
|
-
* @documentation https://
|
|
746
|
-
* @status
|
|
742
|
+
* @documentation https://storybook.beeq.design/?path=/docs/components-date-picker--docs
|
|
743
|
+
* @status experimental
|
|
747
744
|
* @dependency bq-button
|
|
748
745
|
* @dependency bq-dropdown
|
|
749
746
|
* @dependency bq-icon
|
|
750
747
|
* @attr {boolean} autofocus - If `true`, the Date picker input will be focused on component render.
|
|
751
748
|
* @attr {string} clear-button-label - The clear button aria label.
|
|
749
|
+
* @attr {string} calendar-button-label - The aria-label for the calendar trigger button.
|
|
752
750
|
* @attr {boolean} disable-clear - If `true`, the clear button won't be displayed.
|
|
753
751
|
* @attr {boolean} disabled - Indicates whether the Date picker input is disabled or not.
|
|
754
|
-
* @attr {number} distance - Represents the distance
|
|
755
|
-
* @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week
|
|
756
|
-
* @attr {Intl.DateTimeFormatOptions} format-options -
|
|
757
|
-
* @attr {string} form - The
|
|
758
|
-
* @attr {string} form-validation-message -
|
|
759
|
-
* @attr {
|
|
760
|
-
* @attr {
|
|
761
|
-
* @attr {
|
|
762
|
-
* @attr {string}
|
|
763
|
-
* @attr {
|
|
764
|
-
* @attr {
|
|
765
|
-
* @attr {
|
|
766
|
-
* @attr {string}
|
|
767
|
-
* @attr {
|
|
768
|
-
* @attr {
|
|
769
|
-
* @attr {
|
|
770
|
-
* @attr {
|
|
771
|
-
* @attr {
|
|
772
|
-
* @attr {
|
|
773
|
-
* @attr {
|
|
774
|
-
* @attr {"
|
|
775
|
-
* @attr {
|
|
752
|
+
* @attr {number} distance - Represents the distance between the panel and the input.
|
|
753
|
+
* @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week (0 = Sunday).
|
|
754
|
+
* @attr {Intl.DateTimeFormatOptions} format-options - Display formatting options.
|
|
755
|
+
* @attr {string} form - The form ID the input belongs to.
|
|
756
|
+
* @attr {string} form-validation-message - Custom native form validation message.
|
|
757
|
+
* @attr {"days" | "months" | "years"} initial-view - The view to open when the panel first opens.
|
|
758
|
+
* @attr {function} is-date-disallowed - Predicate that marks specific dates as unselectable.
|
|
759
|
+
* @attr {Intl.LocalesArgument} locale - Locale used for formatting.
|
|
760
|
+
* @attr {string} max - Latest selectable date (ISO).
|
|
761
|
+
* @attr {string} min - Earliest selectable date (ISO).
|
|
762
|
+
* @attr {number} months - Number of month panels to render side by side (range/multi). Capped at 2.
|
|
763
|
+
* @attr {"single" | "months"} months-per-view - Prev/Next step size when multi-month is enabled.
|
|
764
|
+
* @attr {string} name - Input name.
|
|
765
|
+
* @attr {boolean} open - If `true`, the panel is visible.
|
|
766
|
+
* @attr {string} panel-height - Overrides the height of the panel.
|
|
767
|
+
* @attr {string} placeholder - Input placeholder text.
|
|
768
|
+
* @attr {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} placement - Placement of the panel.
|
|
769
|
+
* @attr {boolean} required - Whether a value must be selected before submitting the form.
|
|
770
|
+
* @attr {boolean} show-outside-days - Whether to render days that belong to adjacent months.
|
|
771
|
+
* @attr {number} skidding - Skidding between the panel and the trigger.
|
|
772
|
+
* @attr {"fixed" | "absolute"} strategy - Positioning strategy for the panel.
|
|
773
|
+
* @attr {"single" | "multi" | "range"} type - Selection mode.
|
|
774
|
+
* @attr {"error" | "none" | "success" | "warning"} validation-status - Validation state.
|
|
775
|
+
* @attr {string} value - The current selection, as a wire-format string. Shape depends on `type` and `precision`:
|
|
776
|
+
* • **single**: a single ISO token — `YYYY-MM-DD` (precision `day`), `YYYY-MM` (precision `month`), `YYYY` (precision `year`).
|
|
777
|
+
* • **range**: `start/end` (two tokens joined with `/`) at the same precision.
|
|
778
|
+
* • **multi**: space-separated tokens at the same precision.
|
|
779
|
+
* Bounds (`min`/`max`) may be supplied at any of these precisions and are honoured accordingly.
|
|
780
|
+
* @attr {"day" | "month" | "year"} precision - Granularity of the value and of the calendar's initial view. Also drives which cells are selectable (day cells at `day`, month cells at `month`, year cells at `year`). Defaults to `"day"`.
|
|
776
781
|
* @method clear - Clears the selected value.
|
|
777
|
-
* @event bqBlur -
|
|
778
|
-
* @event bqChange -
|
|
779
|
-
* @event bqClear -
|
|
780
|
-
* @event bqFocus -
|
|
781
|
-
* @
|
|
782
|
-
* @cssprop --bq-date-picker--
|
|
783
|
-
* @cssprop --bq-date-picker--border-color
|
|
784
|
-
* @cssprop --bq-date-picker--border-color-
|
|
785
|
-
* @cssprop --bq-date-picker--border-
|
|
786
|
-
* @cssprop --bq-date-picker--border-
|
|
787
|
-
* @cssprop --bq-date-picker--border-
|
|
788
|
-
* @cssprop --bq-date-picker--
|
|
789
|
-
* @cssprop --bq-date-picker--currentDate-border-
|
|
790
|
-
* @cssprop --bq-date-picker--
|
|
791
|
-
* @cssprop --bq-date-picker--
|
|
792
|
-
* @cssprop --bq-date-picker--
|
|
793
|
-
* @cssprop --bq-date-picker--
|
|
794
|
-
* @cssprop --bq-date-picker--
|
|
795
|
-
* @cssprop --bq-date-picker--label-
|
|
796
|
-
* @cssprop --bq-date-picker--
|
|
797
|
-
* @cssprop --bq-date-picker--
|
|
798
|
-
* @cssprop --bq-date-picker--
|
|
799
|
-
* @cssprop --bq-date-picker--
|
|
800
|
-
* @cssprop --bq-date-picker--
|
|
801
|
-
* @cssprop --bq-date-picker--
|
|
802
|
-
* @cssprop --bq-date-picker--
|
|
803
|
-
* @cssprop --bq-date-picker--
|
|
782
|
+
* @event bqBlur - Emitted when the input loses focus.
|
|
783
|
+
* @event bqChange - Emitted when the value changes.
|
|
784
|
+
* @event bqClear - Emitted when the value is cleared.
|
|
785
|
+
* @event bqFocus - Emitted when the input receives focus.
|
|
786
|
+
* @event bqViewChange - Emitted when the internal calendar view changes (days ↔ months ↔ years).
|
|
787
|
+
* @cssprop --bq-date-picker--background-color - Input background color.
|
|
788
|
+
* @cssprop --bq-date-picker--border-color - Input border color.
|
|
789
|
+
* @cssprop --bq-date-picker--border-color-disabled - Border color when disabled.
|
|
790
|
+
* @cssprop --bq-date-picker--border-color-focus - Border color on focus.
|
|
791
|
+
* @cssprop --bq-date-picker--border-radius - Input border radius.
|
|
792
|
+
* @cssprop --bq-date-picker--border-style - Border style.
|
|
793
|
+
* @cssprop --bq-date-picker--border-width - Border width.
|
|
794
|
+
* @cssprop --bq-date-picker--currentDate-border-color - Border color for today's date.
|
|
795
|
+
* @cssprop --bq-date-picker--currentDate-border-width - Border width for today's date.
|
|
796
|
+
* @cssprop --bq-date-picker--day-size - Size of a day cell in the calendar.
|
|
797
|
+
* @cssprop --bq-date-picker--gap - Gap between the input content and prefix/suffix.
|
|
798
|
+
* @cssprop --bq-date-picker--header-title-color - Color of the per-panel month label in multi-panel view.
|
|
799
|
+
* @cssprop --bq-date-picker--icon-size - Size of the icons used in prefix/suffix/clear.
|
|
800
|
+
* @cssprop --bq-date-picker--label-margin-bottom - Space below the label.
|
|
801
|
+
* @cssprop --bq-date-picker--label-text-color - Label text color.
|
|
802
|
+
* @cssprop --bq-date-picker--label-text-size - Label text size.
|
|
803
|
+
* @cssprop --bq-date-picker--padding-end - Input padding end.
|
|
804
|
+
* @cssprop --bq-date-picker--padding-start - Input padding start.
|
|
805
|
+
* @cssprop --bq-date-picker--paddingY - Input vertical padding.
|
|
806
|
+
* @cssprop --bq-date-picker--range-background-color - Background color for range start/end days.
|
|
807
|
+
* @cssprop --bq-date-picker--range-inner-background-color - Background color for inner range days.
|
|
808
|
+
* @cssprop --bq-date-picker--row-gap - Vertical space between day-grid rows.
|
|
809
|
+
* @cssprop --bq-date-picker--text-color - Input text color.
|
|
810
|
+
* @cssprop --bq-date-picker--text-placeholder-color - Placeholder text color.
|
|
811
|
+
* @cssprop --bq-date-picker--text-size - Input text size.
|
|
812
|
+
* @cssprop --bq-date-picker--view-cell-background-hover - Hover background for day/month/year cells.
|
|
813
|
+
* @cssprop --bq-date-picker--view-cell-background-selected - Selected background for day/month/year cells.
|
|
814
|
+
* @cssprop --bq-date-picker--view-cell-height - Height of month/year cells.
|
|
815
|
+
* @cssprop --bq-date-picker--view-cell-radius - Border radius of day/month/year cells.
|
|
816
|
+
* @cssprop --bq-date-picker--view-cell-text-selected - Text color for selected day/month/year cells.
|
|
804
817
|
*/
|
|
805
818
|
interface BqDatePicker {
|
|
806
819
|
/**
|
|
807
|
-
* If `true`, the Date picker input will be focused on component render
|
|
820
|
+
* If `true`, the Date picker input will be focused on component render.
|
|
821
|
+
* @default false
|
|
808
822
|
*/
|
|
809
823
|
"autofocus": boolean;
|
|
810
824
|
/**
|
|
811
|
-
*
|
|
812
|
-
* @
|
|
825
|
+
* The aria-label for the calendar trigger button.
|
|
826
|
+
* @default 'Open calendar'
|
|
827
|
+
*/
|
|
828
|
+
"calendarButtonLabel": string;
|
|
829
|
+
/**
|
|
830
|
+
* Clears the selected value and any pending validation state (bad input, bounds overflow). Emits `bqClear`. No-op when the component is disabled.
|
|
831
|
+
* @returns A promise that resolves once the value has been cleared.
|
|
813
832
|
*/
|
|
814
833
|
"clear": () => Promise<void>;
|
|
815
834
|
/**
|
|
816
|
-
* The clear button aria label
|
|
835
|
+
* The clear button aria label.
|
|
817
836
|
* @default 'Clear value'
|
|
818
837
|
*/
|
|
819
|
-
"clearButtonLabel"
|
|
838
|
+
"clearButtonLabel": string;
|
|
820
839
|
/**
|
|
821
|
-
* If `true`, the clear button won't be displayed
|
|
840
|
+
* If `true`, the clear button won't be displayed.
|
|
822
841
|
* @default false
|
|
823
842
|
*/
|
|
824
|
-
"disableClear"
|
|
843
|
+
"disableClear": boolean;
|
|
825
844
|
/**
|
|
826
|
-
* Indicates whether the Date picker input is disabled or not.
|
|
845
|
+
* Indicates whether the Date picker input is disabled or not.
|
|
827
846
|
* @default false
|
|
828
847
|
*/
|
|
829
|
-
"disabled"
|
|
848
|
+
"disabled": boolean;
|
|
830
849
|
/**
|
|
831
|
-
*
|
|
850
|
+
* Distance (gutter) between the Date picker panel and the input element.
|
|
832
851
|
* @default 8
|
|
833
852
|
*/
|
|
834
|
-
"distance"
|
|
853
|
+
"distance": number;
|
|
835
854
|
/**
|
|
836
|
-
* The first day of the week, where Sunday is 0, Monday is 1, etc
|
|
855
|
+
* The first day of the week, where Sunday is 0, Monday is 1, etc.
|
|
837
856
|
* @default 1
|
|
838
857
|
*/
|
|
839
|
-
"firstDayOfWeek"
|
|
858
|
+
"firstDayOfWeek": DaysOfWeek;
|
|
840
859
|
/**
|
|
841
|
-
* The ID of the form
|
|
860
|
+
* The ID of the form the input belongs to.
|
|
842
861
|
*/
|
|
843
862
|
"form"?: string;
|
|
844
863
|
/**
|
|
845
|
-
*
|
|
864
|
+
* Native form validation message (mandatory if `required` is set).
|
|
846
865
|
*/
|
|
847
866
|
"formValidationMessage"?: string;
|
|
848
867
|
/**
|
|
849
|
-
*
|
|
850
|
-
* @default { day: 'numeric', month: 'short', year: 'numeric', }
|
|
868
|
+
* Options used when formatting the displayed value. When omitted, sensible defaults are picked based on `precision`: - `day` → `{ day: 'numeric', month: 'short', year: 'numeric' }` - `month` → `{ month: 'long', year: 'numeric' }` - `year` → `{ year: 'numeric' }`
|
|
851
869
|
*/
|
|
852
|
-
"formatOptions"
|
|
870
|
+
"formatOptions"?: Intl.DateTimeFormatOptions;
|
|
853
871
|
/**
|
|
854
|
-
*
|
|
872
|
+
* The view opened first when the panel becomes visible.
|
|
873
|
+
* @default 'days'
|
|
874
|
+
*/
|
|
875
|
+
"initialView": TCalendarView;
|
|
876
|
+
/**
|
|
877
|
+
* Predicate that marks specific dates as unselectable.
|
|
855
878
|
*/
|
|
856
879
|
"isDateDisallowed"?: (date: Date) => boolean;
|
|
857
880
|
/**
|
|
858
|
-
*
|
|
881
|
+
* Locale used for formatting dates.
|
|
859
882
|
* @default 'en-GB'
|
|
860
883
|
*/
|
|
861
884
|
"locale": Intl.LocalesArgument;
|
|
862
885
|
/**
|
|
863
|
-
*
|
|
886
|
+
* Latest date that can be selected (ISO).
|
|
864
887
|
*/
|
|
865
888
|
"max"?: string;
|
|
866
889
|
/**
|
|
867
|
-
*
|
|
890
|
+
* Earliest date that can be selected (ISO).
|
|
868
891
|
*/
|
|
869
892
|
"min"?: string;
|
|
870
893
|
/**
|
|
871
|
-
* Number of months to show
|
|
894
|
+
* Number of months to show side by side (range / multi). Capped at 2. Larger values are silently clamped to keep the popover from overflowing the viewport and to preserve keyboard navigation semantics.
|
|
895
|
+
* @default 1
|
|
872
896
|
*/
|
|
873
897
|
"months": number;
|
|
874
898
|
/**
|
|
875
|
-
*
|
|
899
|
+
* How the next/previous buttons should navigate the calendar. - single: navigate one month at a time. - months: navigate by the number of months displayed.
|
|
876
900
|
* @default 'single'
|
|
877
901
|
*/
|
|
878
|
-
"monthsPerView":
|
|
902
|
+
"monthsPerView": TMonthsPerView;
|
|
879
903
|
/**
|
|
880
904
|
* The Date picker input name.
|
|
881
905
|
*/
|
|
882
906
|
"name": string;
|
|
883
907
|
/**
|
|
884
|
-
* If `true`, the
|
|
908
|
+
* If `true`, the panel is visible.
|
|
885
909
|
* @default false
|
|
886
910
|
*/
|
|
887
|
-
"open"
|
|
911
|
+
"open": boolean;
|
|
888
912
|
/**
|
|
889
|
-
*
|
|
913
|
+
* Overrides the height of the Date picker panel.
|
|
890
914
|
* @default 'auto'
|
|
891
915
|
*/
|
|
892
916
|
"panelHeight"?: string;
|
|
893
917
|
/**
|
|
894
|
-
*
|
|
918
|
+
* Placeholder text shown when no value is selected.
|
|
895
919
|
*/
|
|
896
920
|
"placeholder"?: string;
|
|
897
921
|
/**
|
|
898
|
-
* Position of the Date picker panel
|
|
922
|
+
* Position of the Date picker panel.
|
|
899
923
|
* @default 'bottom-end'
|
|
900
924
|
*/
|
|
901
|
-
"placement"
|
|
925
|
+
"placement": Placement;
|
|
902
926
|
/**
|
|
903
|
-
*
|
|
927
|
+
* Precision of the value produced by the picker. - `day` → `YYYY-MM-DD` (default). Standard drill-down. - `month` → `YYYY-MM`. Selection commits on the months view; no days view. - `year` → `YYYY`. Selection commits on the years view; no months/days view. When precision is coarser than day, `initialView` is forced to match and the header title cycles through the views available for that precision.
|
|
928
|
+
* @default 'day'
|
|
904
929
|
*/
|
|
905
|
-
"
|
|
930
|
+
"precision": TDatePrecision;
|
|
906
931
|
/**
|
|
907
|
-
* Whether
|
|
932
|
+
* Whether a value must be selected before submitting the form.
|
|
933
|
+
* @default false
|
|
934
|
+
*/
|
|
935
|
+
"required": boolean;
|
|
936
|
+
/**
|
|
937
|
+
* Whether to render days outside the current month.
|
|
908
938
|
* @default false
|
|
909
939
|
*/
|
|
910
940
|
"showOutsideDays": boolean;
|
|
911
941
|
/**
|
|
912
|
-
*
|
|
942
|
+
* Skidding between the panel and the input element.
|
|
913
943
|
* @default 0
|
|
914
944
|
*/
|
|
915
|
-
"skidding"
|
|
945
|
+
"skidding": number;
|
|
916
946
|
/**
|
|
917
|
-
*
|
|
947
|
+
* Positioning strategy for the panel.
|
|
918
948
|
* @default 'fixed'
|
|
919
949
|
*/
|
|
920
|
-
"strategy"
|
|
921
|
-
/**
|
|
922
|
-
* The date that is tentatively selected e.g. the start of a range selection
|
|
923
|
-
*/
|
|
924
|
-
"tentative"?: string;
|
|
950
|
+
"strategy": TFloatingStrategy;
|
|
925
951
|
/**
|
|
926
|
-
*
|
|
952
|
+
* Selection type. - `single`: single date. - `multi`: multiple discrete dates. - `range`: contiguous range.
|
|
927
953
|
* @default 'single'
|
|
928
954
|
*/
|
|
929
955
|
"type": TDatePickerType;
|
|
930
956
|
/**
|
|
931
|
-
*
|
|
932
|
-
* @remarks This property is used to indicate the validation status of the select input. It can be set to one of the following values: - `'none'`: No validation status is set. - `'error'`: The input has a validation error. - `'warning'`: The input has a validation warning. - `'success'`: The input has passed validation.
|
|
957
|
+
* Validation state applied to the input.
|
|
933
958
|
* @default 'none'
|
|
934
959
|
*/
|
|
935
960
|
"validationStatus": TInputValidation;
|
|
936
961
|
/**
|
|
937
|
-
*
|
|
962
|
+
* Currently selected value, in the precision-aware wire format: - `precision="day"` → tokens are `YYYY-MM-DD` - `precision="month"` → tokens are `YYYY-MM` - `precision="year"` → tokens are `YYYY` How multiple tokens are combined depends on `type`: - `single` → a single token (e.g. `"2025-05-15"`, `"2025-05"`, `"2025"`) - `range` → `"start/end"` — two tokens joined with `/` - `multi` → space-separated tokens (e.g. `"2025-05-15 2025-05-20"`)
|
|
938
963
|
*/
|
|
939
|
-
"value": string;
|
|
964
|
+
"value": string | undefined;
|
|
940
965
|
}
|
|
941
966
|
/**
|
|
942
967
|
* The Dialog component is used to display additional content or prompt a user for action.
|
|
@@ -1894,8 +1919,9 @@ export namespace Components {
|
|
|
1894
1919
|
* @event bqClick - Handler to be called when the radio state changes
|
|
1895
1920
|
* @event bqFocus - Handler to be called when the radio gets focused
|
|
1896
1921
|
* @event bqKeyDown - The handler is to be called when the radio key is pressed
|
|
1897
|
-
* @cssprop --bq-radio--
|
|
1922
|
+
* @cssprop --bq-radio--background-color - Radio background color
|
|
1898
1923
|
* @cssprop --bq-radio--border-width - Radio border width
|
|
1924
|
+
* @cssprop --bq-radio--size - Radio size
|
|
1899
1925
|
*/
|
|
1900
1926
|
interface BqRadio {
|
|
1901
1927
|
/**
|
|
@@ -3790,9 +3816,10 @@ declare global {
|
|
|
3790
3816
|
* @event bqChange - Handler to be called when the checkbox state changes
|
|
3791
3817
|
* @event bqFocus - Handler to be called when the checkbox gets focus
|
|
3792
3818
|
* @event bqBlur - Handler to be called when the checkbox loses focus
|
|
3793
|
-
* @cssprop --bq-checkbox--
|
|
3819
|
+
* @cssprop --bq-checkbox--background-color - Checkbox background color
|
|
3794
3820
|
* @cssprop --bq-checkbox--border-radius - Checkbox border radius
|
|
3795
3821
|
* @cssprop --bq-checkbox--border-width - Checkbox border width
|
|
3822
|
+
* @cssprop --bq-checkbox--size - Checkbox size
|
|
3796
3823
|
*/
|
|
3797
3824
|
interface HTMLBqCheckboxElement extends Components.BqCheckbox, HTMLStencilElement {
|
|
3798
3825
|
addEventListener<K extends keyof HTMLBqCheckboxElementEventMap>(type: K, listener: (this: HTMLBqCheckboxElement, ev: BqCheckboxCustomEvent<HTMLBqCheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -3810,91 +3837,104 @@ declare global {
|
|
|
3810
3837
|
};
|
|
3811
3838
|
interface HTMLBqDatePickerElementEventMap {
|
|
3812
3839
|
"bqBlur": HTMLBqDatePickerElement;
|
|
3813
|
-
"bqChange": { value: string; el: HTMLBqDatePickerElement };
|
|
3840
|
+
"bqChange": { value: string | undefined; el: HTMLBqDatePickerElement };
|
|
3814
3841
|
"bqClear": HTMLBqDatePickerElement;
|
|
3815
3842
|
"bqFocus": HTMLBqDatePickerElement;
|
|
3843
|
+
"bqViewChange": { view: TCalendarView; el: HTMLBqDatePickerElement };
|
|
3816
3844
|
}
|
|
3817
3845
|
/**
|
|
3818
|
-
* The Date Picker is a
|
|
3846
|
+
* The Date Picker is a pure-Stencil calendar input.
|
|
3847
|
+
* It supports single, multi, and range selection, three navigation views
|
|
3848
|
+
* (days → months → years), full localization via `Intl.DateTimeFormat`,
|
|
3849
|
+
* multi-month side-by-side rendering, and RTL layouts.
|
|
3819
3850
|
* @example How to use it
|
|
3820
3851
|
* ```html
|
|
3821
3852
|
* <bq-date-picker
|
|
3822
3853
|
* first-day-of-week="1"
|
|
3823
3854
|
* locale="en-GB"
|
|
3824
|
-
* months-per-view="single"
|
|
3825
|
-
* months="2"
|
|
3826
3855
|
* name="bq-date-picker"
|
|
3827
3856
|
* placeholder="Enter your date"
|
|
3828
|
-
*
|
|
3829
|
-
*
|
|
3830
|
-
* type="range"
|
|
3831
|
-
* validation-status="none"
|
|
3832
|
-
* value="2024-05-25"
|
|
3857
|
+
* type="single"
|
|
3858
|
+
* value="2026-07-15"
|
|
3833
3859
|
* >
|
|
3834
|
-
* <label
|
|
3835
|
-
* Date picker label
|
|
3836
|
-
* </label>
|
|
3860
|
+
* <label slot="label">Date picker label</label>
|
|
3837
3861
|
* </bq-date-picker>
|
|
3838
3862
|
* ```
|
|
3839
|
-
* @documentation https://
|
|
3840
|
-
* @status
|
|
3863
|
+
* @documentation https://storybook.beeq.design/?path=/docs/components-date-picker--docs
|
|
3864
|
+
* @status experimental
|
|
3841
3865
|
* @dependency bq-button
|
|
3842
3866
|
* @dependency bq-dropdown
|
|
3843
3867
|
* @dependency bq-icon
|
|
3844
3868
|
* @attr {boolean} autofocus - If `true`, the Date picker input will be focused on component render.
|
|
3845
3869
|
* @attr {string} clear-button-label - The clear button aria label.
|
|
3870
|
+
* @attr {string} calendar-button-label - The aria-label for the calendar trigger button.
|
|
3846
3871
|
* @attr {boolean} disable-clear - If `true`, the clear button won't be displayed.
|
|
3847
3872
|
* @attr {boolean} disabled - Indicates whether the Date picker input is disabled or not.
|
|
3848
|
-
* @attr {number} distance - Represents the distance
|
|
3849
|
-
* @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week
|
|
3850
|
-
* @attr {Intl.DateTimeFormatOptions} format-options -
|
|
3851
|
-
* @attr {string} form - The
|
|
3852
|
-
* @attr {string} form-validation-message -
|
|
3853
|
-
* @attr {
|
|
3854
|
-
* @attr {
|
|
3855
|
-
* @attr {
|
|
3856
|
-
* @attr {string}
|
|
3857
|
-
* @attr {
|
|
3858
|
-
* @attr {
|
|
3859
|
-
* @attr {
|
|
3860
|
-
* @attr {string}
|
|
3861
|
-
* @attr {
|
|
3862
|
-
* @attr {
|
|
3863
|
-
* @attr {
|
|
3864
|
-
* @attr {
|
|
3865
|
-
* @attr {
|
|
3866
|
-
* @attr {
|
|
3867
|
-
* @attr {
|
|
3868
|
-
* @attr {"
|
|
3869
|
-
* @attr {
|
|
3873
|
+
* @attr {number} distance - Represents the distance between the panel and the input.
|
|
3874
|
+
* @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week (0 = Sunday).
|
|
3875
|
+
* @attr {Intl.DateTimeFormatOptions} format-options - Display formatting options.
|
|
3876
|
+
* @attr {string} form - The form ID the input belongs to.
|
|
3877
|
+
* @attr {string} form-validation-message - Custom native form validation message.
|
|
3878
|
+
* @attr {"days" | "months" | "years"} initial-view - The view to open when the panel first opens.
|
|
3879
|
+
* @attr {function} is-date-disallowed - Predicate that marks specific dates as unselectable.
|
|
3880
|
+
* @attr {Intl.LocalesArgument} locale - Locale used for formatting.
|
|
3881
|
+
* @attr {string} max - Latest selectable date (ISO).
|
|
3882
|
+
* @attr {string} min - Earliest selectable date (ISO).
|
|
3883
|
+
* @attr {number} months - Number of month panels to render side by side (range/multi). Capped at 2.
|
|
3884
|
+
* @attr {"single" | "months"} months-per-view - Prev/Next step size when multi-month is enabled.
|
|
3885
|
+
* @attr {string} name - Input name.
|
|
3886
|
+
* @attr {boolean} open - If `true`, the panel is visible.
|
|
3887
|
+
* @attr {string} panel-height - Overrides the height of the panel.
|
|
3888
|
+
* @attr {string} placeholder - Input placeholder text.
|
|
3889
|
+
* @attr {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} placement - Placement of the panel.
|
|
3890
|
+
* @attr {boolean} required - Whether a value must be selected before submitting the form.
|
|
3891
|
+
* @attr {boolean} show-outside-days - Whether to render days that belong to adjacent months.
|
|
3892
|
+
* @attr {number} skidding - Skidding between the panel and the trigger.
|
|
3893
|
+
* @attr {"fixed" | "absolute"} strategy - Positioning strategy for the panel.
|
|
3894
|
+
* @attr {"single" | "multi" | "range"} type - Selection mode.
|
|
3895
|
+
* @attr {"error" | "none" | "success" | "warning"} validation-status - Validation state.
|
|
3896
|
+
* @attr {string} value - The current selection, as a wire-format string. Shape depends on `type` and `precision`:
|
|
3897
|
+
* • **single**: a single ISO token — `YYYY-MM-DD` (precision `day`), `YYYY-MM` (precision `month`), `YYYY` (precision `year`).
|
|
3898
|
+
* • **range**: `start/end` (two tokens joined with `/`) at the same precision.
|
|
3899
|
+
* • **multi**: space-separated tokens at the same precision.
|
|
3900
|
+
* Bounds (`min`/`max`) may be supplied at any of these precisions and are honoured accordingly.
|
|
3901
|
+
* @attr {"day" | "month" | "year"} precision - Granularity of the value and of the calendar's initial view. Also drives which cells are selectable (day cells at `day`, month cells at `month`, year cells at `year`). Defaults to `"day"`.
|
|
3870
3902
|
* @method clear - Clears the selected value.
|
|
3871
|
-
* @event bqBlur -
|
|
3872
|
-
* @event bqChange -
|
|
3873
|
-
* @event bqClear -
|
|
3874
|
-
* @event bqFocus -
|
|
3875
|
-
* @
|
|
3876
|
-
* @cssprop --bq-date-picker--
|
|
3877
|
-
* @cssprop --bq-date-picker--border-color
|
|
3878
|
-
* @cssprop --bq-date-picker--border-color-
|
|
3879
|
-
* @cssprop --bq-date-picker--border-
|
|
3880
|
-
* @cssprop --bq-date-picker--border-
|
|
3881
|
-
* @cssprop --bq-date-picker--border-
|
|
3882
|
-
* @cssprop --bq-date-picker--
|
|
3883
|
-
* @cssprop --bq-date-picker--currentDate-border-
|
|
3884
|
-
* @cssprop --bq-date-picker--
|
|
3885
|
-
* @cssprop --bq-date-picker--
|
|
3886
|
-
* @cssprop --bq-date-picker--
|
|
3887
|
-
* @cssprop --bq-date-picker--
|
|
3888
|
-
* @cssprop --bq-date-picker--
|
|
3889
|
-
* @cssprop --bq-date-picker--label-
|
|
3890
|
-
* @cssprop --bq-date-picker--
|
|
3891
|
-
* @cssprop --bq-date-picker--
|
|
3892
|
-
* @cssprop --bq-date-picker--
|
|
3893
|
-
* @cssprop --bq-date-picker--
|
|
3894
|
-
* @cssprop --bq-date-picker--
|
|
3895
|
-
* @cssprop --bq-date-picker--
|
|
3896
|
-
* @cssprop --bq-date-picker--
|
|
3897
|
-
* @cssprop --bq-date-picker--
|
|
3903
|
+
* @event bqBlur - Emitted when the input loses focus.
|
|
3904
|
+
* @event bqChange - Emitted when the value changes.
|
|
3905
|
+
* @event bqClear - Emitted when the value is cleared.
|
|
3906
|
+
* @event bqFocus - Emitted when the input receives focus.
|
|
3907
|
+
* @event bqViewChange - Emitted when the internal calendar view changes (days ↔ months ↔ years).
|
|
3908
|
+
* @cssprop --bq-date-picker--background-color - Input background color.
|
|
3909
|
+
* @cssprop --bq-date-picker--border-color - Input border color.
|
|
3910
|
+
* @cssprop --bq-date-picker--border-color-disabled - Border color when disabled.
|
|
3911
|
+
* @cssprop --bq-date-picker--border-color-focus - Border color on focus.
|
|
3912
|
+
* @cssprop --bq-date-picker--border-radius - Input border radius.
|
|
3913
|
+
* @cssprop --bq-date-picker--border-style - Border style.
|
|
3914
|
+
* @cssprop --bq-date-picker--border-width - Border width.
|
|
3915
|
+
* @cssprop --bq-date-picker--currentDate-border-color - Border color for today's date.
|
|
3916
|
+
* @cssprop --bq-date-picker--currentDate-border-width - Border width for today's date.
|
|
3917
|
+
* @cssprop --bq-date-picker--day-size - Size of a day cell in the calendar.
|
|
3918
|
+
* @cssprop --bq-date-picker--gap - Gap between the input content and prefix/suffix.
|
|
3919
|
+
* @cssprop --bq-date-picker--header-title-color - Color of the per-panel month label in multi-panel view.
|
|
3920
|
+
* @cssprop --bq-date-picker--icon-size - Size of the icons used in prefix/suffix/clear.
|
|
3921
|
+
* @cssprop --bq-date-picker--label-margin-bottom - Space below the label.
|
|
3922
|
+
* @cssprop --bq-date-picker--label-text-color - Label text color.
|
|
3923
|
+
* @cssprop --bq-date-picker--label-text-size - Label text size.
|
|
3924
|
+
* @cssprop --bq-date-picker--padding-end - Input padding end.
|
|
3925
|
+
* @cssprop --bq-date-picker--padding-start - Input padding start.
|
|
3926
|
+
* @cssprop --bq-date-picker--paddingY - Input vertical padding.
|
|
3927
|
+
* @cssprop --bq-date-picker--range-background-color - Background color for range start/end days.
|
|
3928
|
+
* @cssprop --bq-date-picker--range-inner-background-color - Background color for inner range days.
|
|
3929
|
+
* @cssprop --bq-date-picker--row-gap - Vertical space between day-grid rows.
|
|
3930
|
+
* @cssprop --bq-date-picker--text-color - Input text color.
|
|
3931
|
+
* @cssprop --bq-date-picker--text-placeholder-color - Placeholder text color.
|
|
3932
|
+
* @cssprop --bq-date-picker--text-size - Input text size.
|
|
3933
|
+
* @cssprop --bq-date-picker--view-cell-background-hover - Hover background for day/month/year cells.
|
|
3934
|
+
* @cssprop --bq-date-picker--view-cell-background-selected - Selected background for day/month/year cells.
|
|
3935
|
+
* @cssprop --bq-date-picker--view-cell-height - Height of month/year cells.
|
|
3936
|
+
* @cssprop --bq-date-picker--view-cell-radius - Border radius of day/month/year cells.
|
|
3937
|
+
* @cssprop --bq-date-picker--view-cell-text-selected - Text color for selected day/month/year cells.
|
|
3898
3938
|
*/
|
|
3899
3939
|
interface HTMLBqDatePickerElement extends Components.BqDatePicker, HTMLStencilElement {
|
|
3900
3940
|
addEventListener<K extends keyof HTMLBqDatePickerElementEventMap>(type: K, listener: (this: HTMLBqDatePickerElement, ev: BqDatePickerCustomEvent<HTMLBqDatePickerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -4571,8 +4611,9 @@ declare global {
|
|
|
4571
4611
|
* @event bqClick - Handler to be called when the radio state changes
|
|
4572
4612
|
* @event bqFocus - Handler to be called when the radio gets focused
|
|
4573
4613
|
* @event bqKeyDown - The handler is to be called when the radio key is pressed
|
|
4574
|
-
* @cssprop --bq-radio--
|
|
4614
|
+
* @cssprop --bq-radio--background-color - Radio background color
|
|
4575
4615
|
* @cssprop --bq-radio--border-width - Radio border width
|
|
4616
|
+
* @cssprop --bq-radio--size - Radio size
|
|
4576
4617
|
*/
|
|
4577
4618
|
interface HTMLBqRadioElement extends Components.BqRadio, HTMLStencilElement {
|
|
4578
4619
|
addEventListener<K extends keyof HTMLBqRadioElementEventMap>(type: K, listener: (this: HTMLBqRadioElement, ev: BqRadioCustomEvent<HTMLBqRadioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -6105,9 +6146,10 @@ declare namespace LocalJSX {
|
|
|
6105
6146
|
* @event bqChange - Handler to be called when the checkbox state changes
|
|
6106
6147
|
* @event bqFocus - Handler to be called when the checkbox gets focus
|
|
6107
6148
|
* @event bqBlur - Handler to be called when the checkbox loses focus
|
|
6108
|
-
* @cssprop --bq-checkbox--
|
|
6149
|
+
* @cssprop --bq-checkbox--background-color - Checkbox background color
|
|
6109
6150
|
* @cssprop --bq-checkbox--border-radius - Checkbox border radius
|
|
6110
6151
|
* @cssprop --bq-checkbox--border-width - Checkbox border width
|
|
6152
|
+
* @cssprop --bq-checkbox--size - Checkbox size
|
|
6111
6153
|
*/
|
|
6112
6154
|
interface BqCheckbox {
|
|
6113
6155
|
/**
|
|
@@ -6167,233 +6209,261 @@ declare namespace LocalJSX {
|
|
|
6167
6209
|
"value": string;
|
|
6168
6210
|
}
|
|
6169
6211
|
/**
|
|
6170
|
-
* The Date Picker is a
|
|
6212
|
+
* The Date Picker is a pure-Stencil calendar input.
|
|
6213
|
+
* It supports single, multi, and range selection, three navigation views
|
|
6214
|
+
* (days → months → years), full localization via `Intl.DateTimeFormat`,
|
|
6215
|
+
* multi-month side-by-side rendering, and RTL layouts.
|
|
6171
6216
|
* @example How to use it
|
|
6172
6217
|
* ```html
|
|
6173
6218
|
* <bq-date-picker
|
|
6174
6219
|
* first-day-of-week="1"
|
|
6175
6220
|
* locale="en-GB"
|
|
6176
|
-
* months-per-view="single"
|
|
6177
|
-
* months="2"
|
|
6178
6221
|
* name="bq-date-picker"
|
|
6179
6222
|
* placeholder="Enter your date"
|
|
6180
|
-
*
|
|
6181
|
-
*
|
|
6182
|
-
* type="range"
|
|
6183
|
-
* validation-status="none"
|
|
6184
|
-
* value="2024-05-25"
|
|
6223
|
+
* type="single"
|
|
6224
|
+
* value="2026-07-15"
|
|
6185
6225
|
* >
|
|
6186
|
-
* <label
|
|
6187
|
-
* Date picker label
|
|
6188
|
-
* </label>
|
|
6226
|
+
* <label slot="label">Date picker label</label>
|
|
6189
6227
|
* </bq-date-picker>
|
|
6190
6228
|
* ```
|
|
6191
|
-
* @documentation https://
|
|
6192
|
-
* @status
|
|
6229
|
+
* @documentation https://storybook.beeq.design/?path=/docs/components-date-picker--docs
|
|
6230
|
+
* @status experimental
|
|
6193
6231
|
* @dependency bq-button
|
|
6194
6232
|
* @dependency bq-dropdown
|
|
6195
6233
|
* @dependency bq-icon
|
|
6196
6234
|
* @attr {boolean} autofocus - If `true`, the Date picker input will be focused on component render.
|
|
6197
6235
|
* @attr {string} clear-button-label - The clear button aria label.
|
|
6236
|
+
* @attr {string} calendar-button-label - The aria-label for the calendar trigger button.
|
|
6198
6237
|
* @attr {boolean} disable-clear - If `true`, the clear button won't be displayed.
|
|
6199
6238
|
* @attr {boolean} disabled - Indicates whether the Date picker input is disabled or not.
|
|
6200
|
-
* @attr {number} distance - Represents the distance
|
|
6201
|
-
* @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week
|
|
6202
|
-
* @attr {Intl.DateTimeFormatOptions} format-options -
|
|
6203
|
-
* @attr {string} form - The
|
|
6204
|
-
* @attr {string} form-validation-message -
|
|
6205
|
-
* @attr {
|
|
6206
|
-
* @attr {
|
|
6207
|
-
* @attr {
|
|
6208
|
-
* @attr {string}
|
|
6209
|
-
* @attr {
|
|
6210
|
-
* @attr {
|
|
6211
|
-
* @attr {
|
|
6212
|
-
* @attr {string}
|
|
6213
|
-
* @attr {
|
|
6214
|
-
* @attr {
|
|
6215
|
-
* @attr {
|
|
6216
|
-
* @attr {
|
|
6217
|
-
* @attr {
|
|
6218
|
-
* @attr {
|
|
6219
|
-
* @attr {
|
|
6220
|
-
* @attr {"
|
|
6221
|
-
* @attr {
|
|
6239
|
+
* @attr {number} distance - Represents the distance between the panel and the input.
|
|
6240
|
+
* @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week (0 = Sunday).
|
|
6241
|
+
* @attr {Intl.DateTimeFormatOptions} format-options - Display formatting options.
|
|
6242
|
+
* @attr {string} form - The form ID the input belongs to.
|
|
6243
|
+
* @attr {string} form-validation-message - Custom native form validation message.
|
|
6244
|
+
* @attr {"days" | "months" | "years"} initial-view - The view to open when the panel first opens.
|
|
6245
|
+
* @attr {function} is-date-disallowed - Predicate that marks specific dates as unselectable.
|
|
6246
|
+
* @attr {Intl.LocalesArgument} locale - Locale used for formatting.
|
|
6247
|
+
* @attr {string} max - Latest selectable date (ISO).
|
|
6248
|
+
* @attr {string} min - Earliest selectable date (ISO).
|
|
6249
|
+
* @attr {number} months - Number of month panels to render side by side (range/multi). Capped at 2.
|
|
6250
|
+
* @attr {"single" | "months"} months-per-view - Prev/Next step size when multi-month is enabled.
|
|
6251
|
+
* @attr {string} name - Input name.
|
|
6252
|
+
* @attr {boolean} open - If `true`, the panel is visible.
|
|
6253
|
+
* @attr {string} panel-height - Overrides the height of the panel.
|
|
6254
|
+
* @attr {string} placeholder - Input placeholder text.
|
|
6255
|
+
* @attr {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} placement - Placement of the panel.
|
|
6256
|
+
* @attr {boolean} required - Whether a value must be selected before submitting the form.
|
|
6257
|
+
* @attr {boolean} show-outside-days - Whether to render days that belong to adjacent months.
|
|
6258
|
+
* @attr {number} skidding - Skidding between the panel and the trigger.
|
|
6259
|
+
* @attr {"fixed" | "absolute"} strategy - Positioning strategy for the panel.
|
|
6260
|
+
* @attr {"single" | "multi" | "range"} type - Selection mode.
|
|
6261
|
+
* @attr {"error" | "none" | "success" | "warning"} validation-status - Validation state.
|
|
6262
|
+
* @attr {string} value - The current selection, as a wire-format string. Shape depends on `type` and `precision`:
|
|
6263
|
+
* • **single**: a single ISO token — `YYYY-MM-DD` (precision `day`), `YYYY-MM` (precision `month`), `YYYY` (precision `year`).
|
|
6264
|
+
* • **range**: `start/end` (two tokens joined with `/`) at the same precision.
|
|
6265
|
+
* • **multi**: space-separated tokens at the same precision.
|
|
6266
|
+
* Bounds (`min`/`max`) may be supplied at any of these precisions and are honoured accordingly.
|
|
6267
|
+
* @attr {"day" | "month" | "year"} precision - Granularity of the value and of the calendar's initial view. Also drives which cells are selectable (day cells at `day`, month cells at `month`, year cells at `year`). Defaults to `"day"`.
|
|
6222
6268
|
* @method clear - Clears the selected value.
|
|
6223
|
-
* @event bqBlur -
|
|
6224
|
-
* @event bqChange -
|
|
6225
|
-
* @event bqClear -
|
|
6226
|
-
* @event bqFocus -
|
|
6227
|
-
* @
|
|
6228
|
-
* @cssprop --bq-date-picker--
|
|
6229
|
-
* @cssprop --bq-date-picker--border-color
|
|
6230
|
-
* @cssprop --bq-date-picker--border-color-
|
|
6231
|
-
* @cssprop --bq-date-picker--border-
|
|
6232
|
-
* @cssprop --bq-date-picker--border-
|
|
6233
|
-
* @cssprop --bq-date-picker--border-
|
|
6234
|
-
* @cssprop --bq-date-picker--
|
|
6235
|
-
* @cssprop --bq-date-picker--currentDate-border-
|
|
6236
|
-
* @cssprop --bq-date-picker--
|
|
6237
|
-
* @cssprop --bq-date-picker--
|
|
6238
|
-
* @cssprop --bq-date-picker--
|
|
6239
|
-
* @cssprop --bq-date-picker--
|
|
6240
|
-
* @cssprop --bq-date-picker--
|
|
6241
|
-
* @cssprop --bq-date-picker--label-
|
|
6242
|
-
* @cssprop --bq-date-picker--
|
|
6243
|
-
* @cssprop --bq-date-picker--
|
|
6244
|
-
* @cssprop --bq-date-picker--
|
|
6245
|
-
* @cssprop --bq-date-picker--
|
|
6246
|
-
* @cssprop --bq-date-picker--
|
|
6247
|
-
* @cssprop --bq-date-picker--
|
|
6248
|
-
* @cssprop --bq-date-picker--
|
|
6249
|
-
* @cssprop --bq-date-picker--
|
|
6269
|
+
* @event bqBlur - Emitted when the input loses focus.
|
|
6270
|
+
* @event bqChange - Emitted when the value changes.
|
|
6271
|
+
* @event bqClear - Emitted when the value is cleared.
|
|
6272
|
+
* @event bqFocus - Emitted when the input receives focus.
|
|
6273
|
+
* @event bqViewChange - Emitted when the internal calendar view changes (days ↔ months ↔ years).
|
|
6274
|
+
* @cssprop --bq-date-picker--background-color - Input background color.
|
|
6275
|
+
* @cssprop --bq-date-picker--border-color - Input border color.
|
|
6276
|
+
* @cssprop --bq-date-picker--border-color-disabled - Border color when disabled.
|
|
6277
|
+
* @cssprop --bq-date-picker--border-color-focus - Border color on focus.
|
|
6278
|
+
* @cssprop --bq-date-picker--border-radius - Input border radius.
|
|
6279
|
+
* @cssprop --bq-date-picker--border-style - Border style.
|
|
6280
|
+
* @cssprop --bq-date-picker--border-width - Border width.
|
|
6281
|
+
* @cssprop --bq-date-picker--currentDate-border-color - Border color for today's date.
|
|
6282
|
+
* @cssprop --bq-date-picker--currentDate-border-width - Border width for today's date.
|
|
6283
|
+
* @cssprop --bq-date-picker--day-size - Size of a day cell in the calendar.
|
|
6284
|
+
* @cssprop --bq-date-picker--gap - Gap between the input content and prefix/suffix.
|
|
6285
|
+
* @cssprop --bq-date-picker--header-title-color - Color of the per-panel month label in multi-panel view.
|
|
6286
|
+
* @cssprop --bq-date-picker--icon-size - Size of the icons used in prefix/suffix/clear.
|
|
6287
|
+
* @cssprop --bq-date-picker--label-margin-bottom - Space below the label.
|
|
6288
|
+
* @cssprop --bq-date-picker--label-text-color - Label text color.
|
|
6289
|
+
* @cssprop --bq-date-picker--label-text-size - Label text size.
|
|
6290
|
+
* @cssprop --bq-date-picker--padding-end - Input padding end.
|
|
6291
|
+
* @cssprop --bq-date-picker--padding-start - Input padding start.
|
|
6292
|
+
* @cssprop --bq-date-picker--paddingY - Input vertical padding.
|
|
6293
|
+
* @cssprop --bq-date-picker--range-background-color - Background color for range start/end days.
|
|
6294
|
+
* @cssprop --bq-date-picker--range-inner-background-color - Background color for inner range days.
|
|
6295
|
+
* @cssprop --bq-date-picker--row-gap - Vertical space between day-grid rows.
|
|
6296
|
+
* @cssprop --bq-date-picker--text-color - Input text color.
|
|
6297
|
+
* @cssprop --bq-date-picker--text-placeholder-color - Placeholder text color.
|
|
6298
|
+
* @cssprop --bq-date-picker--text-size - Input text size.
|
|
6299
|
+
* @cssprop --bq-date-picker--view-cell-background-hover - Hover background for day/month/year cells.
|
|
6300
|
+
* @cssprop --bq-date-picker--view-cell-background-selected - Selected background for day/month/year cells.
|
|
6301
|
+
* @cssprop --bq-date-picker--view-cell-height - Height of month/year cells.
|
|
6302
|
+
* @cssprop --bq-date-picker--view-cell-radius - Border radius of day/month/year cells.
|
|
6303
|
+
* @cssprop --bq-date-picker--view-cell-text-selected - Text color for selected day/month/year cells.
|
|
6250
6304
|
*/
|
|
6251
6305
|
interface BqDatePicker {
|
|
6252
6306
|
/**
|
|
6253
|
-
* If `true`, the Date picker input will be focused on component render
|
|
6307
|
+
* If `true`, the Date picker input will be focused on component render.
|
|
6308
|
+
* @default false
|
|
6254
6309
|
*/
|
|
6255
6310
|
"autofocus"?: boolean;
|
|
6256
6311
|
/**
|
|
6257
|
-
* The
|
|
6312
|
+
* The aria-label for the calendar trigger button.
|
|
6313
|
+
* @default 'Open calendar'
|
|
6314
|
+
*/
|
|
6315
|
+
"calendarButtonLabel"?: string;
|
|
6316
|
+
/**
|
|
6317
|
+
* The clear button aria label.
|
|
6258
6318
|
* @default 'Clear value'
|
|
6259
6319
|
*/
|
|
6260
6320
|
"clearButtonLabel"?: string;
|
|
6261
6321
|
/**
|
|
6262
|
-
* If `true`, the clear button won't be displayed
|
|
6322
|
+
* If `true`, the clear button won't be displayed.
|
|
6263
6323
|
* @default false
|
|
6264
6324
|
*/
|
|
6265
6325
|
"disableClear"?: boolean;
|
|
6266
6326
|
/**
|
|
6267
|
-
* Indicates whether the Date picker input is disabled or not.
|
|
6327
|
+
* Indicates whether the Date picker input is disabled or not.
|
|
6268
6328
|
* @default false
|
|
6269
6329
|
*/
|
|
6270
6330
|
"disabled"?: boolean;
|
|
6271
6331
|
/**
|
|
6272
|
-
*
|
|
6332
|
+
* Distance (gutter) between the Date picker panel and the input element.
|
|
6273
6333
|
* @default 8
|
|
6274
6334
|
*/
|
|
6275
6335
|
"distance"?: number;
|
|
6276
6336
|
/**
|
|
6277
|
-
* The first day of the week, where Sunday is 0, Monday is 1, etc
|
|
6337
|
+
* The first day of the week, where Sunday is 0, Monday is 1, etc.
|
|
6278
6338
|
* @default 1
|
|
6279
6339
|
*/
|
|
6280
6340
|
"firstDayOfWeek"?: DaysOfWeek;
|
|
6281
6341
|
/**
|
|
6282
|
-
* The ID of the form
|
|
6342
|
+
* The ID of the form the input belongs to.
|
|
6283
6343
|
*/
|
|
6284
6344
|
"form"?: string;
|
|
6285
6345
|
/**
|
|
6286
|
-
*
|
|
6346
|
+
* Native form validation message (mandatory if `required` is set).
|
|
6287
6347
|
*/
|
|
6288
6348
|
"formValidationMessage"?: string;
|
|
6289
6349
|
/**
|
|
6290
|
-
*
|
|
6291
|
-
* @default { day: 'numeric', month: 'short', year: 'numeric', }
|
|
6350
|
+
* Options used when formatting the displayed value. When omitted, sensible defaults are picked based on `precision`: - `day` → `{ day: 'numeric', month: 'short', year: 'numeric' }` - `month` → `{ month: 'long', year: 'numeric' }` - `year` → `{ year: 'numeric' }`
|
|
6292
6351
|
*/
|
|
6293
6352
|
"formatOptions"?: Intl.DateTimeFormatOptions;
|
|
6294
6353
|
/**
|
|
6295
|
-
*
|
|
6354
|
+
* The view opened first when the panel becomes visible.
|
|
6355
|
+
* @default 'days'
|
|
6356
|
+
*/
|
|
6357
|
+
"initialView"?: TCalendarView;
|
|
6358
|
+
/**
|
|
6359
|
+
* Predicate that marks specific dates as unselectable.
|
|
6296
6360
|
*/
|
|
6297
6361
|
"isDateDisallowed"?: (date: Date) => boolean;
|
|
6298
6362
|
/**
|
|
6299
|
-
*
|
|
6363
|
+
* Locale used for formatting dates.
|
|
6300
6364
|
* @default 'en-GB'
|
|
6301
6365
|
*/
|
|
6302
6366
|
"locale"?: Intl.LocalesArgument;
|
|
6303
6367
|
/**
|
|
6304
|
-
*
|
|
6368
|
+
* Latest date that can be selected (ISO).
|
|
6305
6369
|
*/
|
|
6306
6370
|
"max"?: string;
|
|
6307
6371
|
/**
|
|
6308
|
-
*
|
|
6372
|
+
* Earliest date that can be selected (ISO).
|
|
6309
6373
|
*/
|
|
6310
6374
|
"min"?: string;
|
|
6311
6375
|
/**
|
|
6312
|
-
* Number of months to show
|
|
6376
|
+
* Number of months to show side by side (range / multi). Capped at 2. Larger values are silently clamped to keep the popover from overflowing the viewport and to preserve keyboard navigation semantics.
|
|
6377
|
+
* @default 1
|
|
6313
6378
|
*/
|
|
6314
6379
|
"months"?: number;
|
|
6315
6380
|
/**
|
|
6316
|
-
*
|
|
6381
|
+
* How the next/previous buttons should navigate the calendar. - single: navigate one month at a time. - months: navigate by the number of months displayed.
|
|
6317
6382
|
* @default 'single'
|
|
6318
6383
|
*/
|
|
6319
|
-
"monthsPerView"?:
|
|
6384
|
+
"monthsPerView"?: TMonthsPerView;
|
|
6320
6385
|
/**
|
|
6321
6386
|
* The Date picker input name.
|
|
6322
6387
|
*/
|
|
6323
6388
|
"name": string;
|
|
6324
6389
|
/**
|
|
6325
|
-
* Callback handler emitted when the input loses focus
|
|
6390
|
+
* Callback handler emitted when the input loses focus.
|
|
6326
6391
|
*/
|
|
6327
6392
|
"onBqBlur"?: (event: BqDatePickerCustomEvent<HTMLBqDatePickerElement>) => void;
|
|
6328
6393
|
/**
|
|
6329
|
-
* Callback handler emitted when the input value
|
|
6394
|
+
* Callback handler emitted when the input value changes.
|
|
6330
6395
|
*/
|
|
6331
|
-
"onBqChange"?: (event: BqDatePickerCustomEvent<{ value: string; el: HTMLBqDatePickerElement }>) => void;
|
|
6396
|
+
"onBqChange"?: (event: BqDatePickerCustomEvent<{ value: string | undefined; el: HTMLBqDatePickerElement }>) => void;
|
|
6332
6397
|
/**
|
|
6333
|
-
* Callback handler emitted when the
|
|
6398
|
+
* Callback handler emitted when the value is cleared.
|
|
6334
6399
|
*/
|
|
6335
6400
|
"onBqClear"?: (event: BqDatePickerCustomEvent<HTMLBqDatePickerElement>) => void;
|
|
6336
6401
|
/**
|
|
6337
|
-
* Callback handler emitted when the input
|
|
6402
|
+
* Callback handler emitted when the input receives focus.
|
|
6338
6403
|
*/
|
|
6339
6404
|
"onBqFocus"?: (event: BqDatePickerCustomEvent<HTMLBqDatePickerElement>) => void;
|
|
6340
6405
|
/**
|
|
6341
|
-
*
|
|
6406
|
+
* Callback handler emitted when the internal calendar view changes (e.g. from `days` to `months`, or from `years` back to `days`).
|
|
6407
|
+
*/
|
|
6408
|
+
"onBqViewChange"?: (event: BqDatePickerCustomEvent<{ view: TCalendarView; el: HTMLBqDatePickerElement }>) => void;
|
|
6409
|
+
/**
|
|
6410
|
+
* If `true`, the panel is visible.
|
|
6342
6411
|
* @default false
|
|
6343
6412
|
*/
|
|
6344
6413
|
"open"?: boolean;
|
|
6345
6414
|
/**
|
|
6346
|
-
*
|
|
6415
|
+
* Overrides the height of the Date picker panel.
|
|
6347
6416
|
* @default 'auto'
|
|
6348
6417
|
*/
|
|
6349
6418
|
"panelHeight"?: string;
|
|
6350
6419
|
/**
|
|
6351
|
-
*
|
|
6420
|
+
* Placeholder text shown when no value is selected.
|
|
6352
6421
|
*/
|
|
6353
6422
|
"placeholder"?: string;
|
|
6354
6423
|
/**
|
|
6355
|
-
* Position of the Date picker panel
|
|
6424
|
+
* Position of the Date picker panel.
|
|
6356
6425
|
* @default 'bottom-end'
|
|
6357
6426
|
*/
|
|
6358
6427
|
"placement"?: Placement;
|
|
6359
6428
|
/**
|
|
6360
|
-
*
|
|
6429
|
+
* Precision of the value produced by the picker. - `day` → `YYYY-MM-DD` (default). Standard drill-down. - `month` → `YYYY-MM`. Selection commits on the months view; no days view. - `year` → `YYYY`. Selection commits on the years view; no months/days view. When precision is coarser than day, `initialView` is forced to match and the header title cycles through the views available for that precision.
|
|
6430
|
+
* @default 'day'
|
|
6431
|
+
*/
|
|
6432
|
+
"precision"?: TDatePrecision;
|
|
6433
|
+
/**
|
|
6434
|
+
* Whether a value must be selected before submitting the form.
|
|
6435
|
+
* @default false
|
|
6361
6436
|
*/
|
|
6362
6437
|
"required"?: boolean;
|
|
6363
6438
|
/**
|
|
6364
|
-
* Whether to
|
|
6439
|
+
* Whether to render days outside the current month.
|
|
6365
6440
|
* @default false
|
|
6366
6441
|
*/
|
|
6367
6442
|
"showOutsideDays"?: boolean;
|
|
6368
6443
|
/**
|
|
6369
|
-
*
|
|
6444
|
+
* Skidding between the panel and the input element.
|
|
6370
6445
|
* @default 0
|
|
6371
6446
|
*/
|
|
6372
6447
|
"skidding"?: number;
|
|
6373
6448
|
/**
|
|
6374
|
-
*
|
|
6449
|
+
* Positioning strategy for the panel.
|
|
6375
6450
|
* @default 'fixed'
|
|
6376
6451
|
*/
|
|
6377
|
-
"strategy"?:
|
|
6452
|
+
"strategy"?: TFloatingStrategy;
|
|
6378
6453
|
/**
|
|
6379
|
-
*
|
|
6380
|
-
*/
|
|
6381
|
-
"tentative"?: string;
|
|
6382
|
-
/**
|
|
6383
|
-
* It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection
|
|
6454
|
+
* Selection type. - `single`: single date. - `multi`: multiple discrete dates. - `range`: contiguous range.
|
|
6384
6455
|
* @default 'single'
|
|
6385
6456
|
*/
|
|
6386
6457
|
"type"?: TDatePickerType;
|
|
6387
6458
|
/**
|
|
6388
|
-
*
|
|
6389
|
-
* @remarks This property is used to indicate the validation status of the select input. It can be set to one of the following values: - `'none'`: No validation status is set. - `'error'`: The input has a validation error. - `'warning'`: The input has a validation warning. - `'success'`: The input has passed validation.
|
|
6459
|
+
* Validation state applied to the input.
|
|
6390
6460
|
* @default 'none'
|
|
6391
6461
|
*/
|
|
6392
6462
|
"validationStatus"?: TInputValidation;
|
|
6393
6463
|
/**
|
|
6394
|
-
*
|
|
6464
|
+
* Currently selected value, in the precision-aware wire format: - `precision="day"` → tokens are `YYYY-MM-DD` - `precision="month"` → tokens are `YYYY-MM` - `precision="year"` → tokens are `YYYY` How multiple tokens are combined depends on `type`: - `single` → a single token (e.g. `"2025-05-15"`, `"2025-05"`, `"2025"`) - `range` → `"start/end"` — two tokens joined with `/` - `multi` → space-separated tokens (e.g. `"2025-05-15 2025-05-20"`)
|
|
6395
6465
|
*/
|
|
6396
|
-
"value"?: string;
|
|
6466
|
+
"value"?: string | undefined;
|
|
6397
6467
|
}
|
|
6398
6468
|
/**
|
|
6399
6469
|
* The Dialog component is used to display additional content or prompt a user for action.
|
|
@@ -7419,8 +7489,9 @@ declare namespace LocalJSX {
|
|
|
7419
7489
|
* @event bqClick - Handler to be called when the radio state changes
|
|
7420
7490
|
* @event bqFocus - Handler to be called when the radio gets focused
|
|
7421
7491
|
* @event bqKeyDown - The handler is to be called when the radio key is pressed
|
|
7422
|
-
* @cssprop --bq-radio--
|
|
7492
|
+
* @cssprop --bq-radio--background-color - Radio background color
|
|
7423
7493
|
* @cssprop --bq-radio--border-width - Radio border width
|
|
7494
|
+
* @cssprop --bq-radio--size - Radio size
|
|
7424
7495
|
*/
|
|
7425
7496
|
interface BqRadio {
|
|
7426
7497
|
/**
|
|
@@ -8916,30 +8987,32 @@ declare namespace LocalJSX {
|
|
|
8916
8987
|
interface BqDatePickerAttributes {
|
|
8917
8988
|
"autofocus": boolean;
|
|
8918
8989
|
"clearButtonLabel": string;
|
|
8990
|
+
"calendarButtonLabel": string;
|
|
8919
8991
|
"disableClear": boolean;
|
|
8920
8992
|
"disabled": boolean;
|
|
8921
8993
|
"distance": number;
|
|
8922
8994
|
"firstDayOfWeek": DaysOfWeek;
|
|
8923
8995
|
"form": string;
|
|
8924
8996
|
"formValidationMessage": string;
|
|
8997
|
+
"initialView": TCalendarView;
|
|
8925
8998
|
"locale": Intl.LocalesArgument;
|
|
8926
8999
|
"max": string;
|
|
8927
9000
|
"min": string;
|
|
8928
9001
|
"months": number;
|
|
8929
|
-
"monthsPerView":
|
|
9002
|
+
"monthsPerView": TMonthsPerView;
|
|
8930
9003
|
"name": string;
|
|
8931
9004
|
"open": boolean;
|
|
8932
9005
|
"panelHeight": string;
|
|
8933
9006
|
"placeholder": string;
|
|
8934
9007
|
"placement": Placement;
|
|
9008
|
+
"precision": TDatePrecision;
|
|
8935
9009
|
"required": boolean;
|
|
8936
9010
|
"skidding": number;
|
|
8937
9011
|
"showOutsideDays": boolean;
|
|
8938
|
-
"strategy":
|
|
8939
|
-
"tentative": string;
|
|
9012
|
+
"strategy": TFloatingStrategy;
|
|
8940
9013
|
"type": TDatePickerType;
|
|
8941
9014
|
"validationStatus": TInputValidation;
|
|
8942
|
-
"value": string;
|
|
9015
|
+
"value": string | undefined;
|
|
8943
9016
|
}
|
|
8944
9017
|
interface BqDialogAttributes {
|
|
8945
9018
|
"border": TDialogBorderRadius;
|
|
@@ -9635,92 +9708,105 @@ declare module "@stencil/core" {
|
|
|
9635
9708
|
* @event bqChange - Handler to be called when the checkbox state changes
|
|
9636
9709
|
* @event bqFocus - Handler to be called when the checkbox gets focus
|
|
9637
9710
|
* @event bqBlur - Handler to be called when the checkbox loses focus
|
|
9638
|
-
* @cssprop --bq-checkbox--
|
|
9711
|
+
* @cssprop --bq-checkbox--background-color - Checkbox background color
|
|
9639
9712
|
* @cssprop --bq-checkbox--border-radius - Checkbox border radius
|
|
9640
9713
|
* @cssprop --bq-checkbox--border-width - Checkbox border width
|
|
9714
|
+
* @cssprop --bq-checkbox--size - Checkbox size
|
|
9641
9715
|
*/
|
|
9642
9716
|
"bq-checkbox": LocalJSX.IntrinsicElements["bq-checkbox"] & JSXBase.HTMLAttributes<HTMLBqCheckboxElement>;
|
|
9643
9717
|
/**
|
|
9644
|
-
* The Date Picker is a
|
|
9718
|
+
* The Date Picker is a pure-Stencil calendar input.
|
|
9719
|
+
* It supports single, multi, and range selection, three navigation views
|
|
9720
|
+
* (days → months → years), full localization via `Intl.DateTimeFormat`,
|
|
9721
|
+
* multi-month side-by-side rendering, and RTL layouts.
|
|
9645
9722
|
* @example How to use it
|
|
9646
9723
|
* ```html
|
|
9647
9724
|
* <bq-date-picker
|
|
9648
9725
|
* first-day-of-week="1"
|
|
9649
9726
|
* locale="en-GB"
|
|
9650
|
-
* months-per-view="single"
|
|
9651
|
-
* months="2"
|
|
9652
9727
|
* name="bq-date-picker"
|
|
9653
9728
|
* placeholder="Enter your date"
|
|
9654
|
-
*
|
|
9655
|
-
*
|
|
9656
|
-
* type="range"
|
|
9657
|
-
* validation-status="none"
|
|
9658
|
-
* value="2024-05-25"
|
|
9729
|
+
* type="single"
|
|
9730
|
+
* value="2026-07-15"
|
|
9659
9731
|
* >
|
|
9660
|
-
* <label
|
|
9661
|
-
* Date picker label
|
|
9662
|
-
* </label>
|
|
9732
|
+
* <label slot="label">Date picker label</label>
|
|
9663
9733
|
* </bq-date-picker>
|
|
9664
9734
|
* ```
|
|
9665
|
-
* @documentation https://
|
|
9666
|
-
* @status
|
|
9735
|
+
* @documentation https://storybook.beeq.design/?path=/docs/components-date-picker--docs
|
|
9736
|
+
* @status experimental
|
|
9667
9737
|
* @dependency bq-button
|
|
9668
9738
|
* @dependency bq-dropdown
|
|
9669
9739
|
* @dependency bq-icon
|
|
9670
9740
|
* @attr {boolean} autofocus - If `true`, the Date picker input will be focused on component render.
|
|
9671
9741
|
* @attr {string} clear-button-label - The clear button aria label.
|
|
9742
|
+
* @attr {string} calendar-button-label - The aria-label for the calendar trigger button.
|
|
9672
9743
|
* @attr {boolean} disable-clear - If `true`, the clear button won't be displayed.
|
|
9673
9744
|
* @attr {boolean} disabled - Indicates whether the Date picker input is disabled or not.
|
|
9674
|
-
* @attr {number} distance - Represents the distance
|
|
9675
|
-
* @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week
|
|
9676
|
-
* @attr {Intl.DateTimeFormatOptions} format-options -
|
|
9677
|
-
* @attr {string} form - The
|
|
9678
|
-
* @attr {string} form-validation-message -
|
|
9679
|
-
* @attr {
|
|
9680
|
-
* @attr {
|
|
9681
|
-
* @attr {
|
|
9682
|
-
* @attr {string}
|
|
9683
|
-
* @attr {
|
|
9684
|
-
* @attr {
|
|
9685
|
-
* @attr {
|
|
9686
|
-
* @attr {string}
|
|
9687
|
-
* @attr {
|
|
9688
|
-
* @attr {
|
|
9689
|
-
* @attr {
|
|
9690
|
-
* @attr {
|
|
9691
|
-
* @attr {
|
|
9692
|
-
* @attr {
|
|
9693
|
-
* @attr {
|
|
9694
|
-
* @attr {"
|
|
9695
|
-
* @attr {
|
|
9745
|
+
* @attr {number} distance - Represents the distance between the panel and the input.
|
|
9746
|
+
* @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week (0 = Sunday).
|
|
9747
|
+
* @attr {Intl.DateTimeFormatOptions} format-options - Display formatting options.
|
|
9748
|
+
* @attr {string} form - The form ID the input belongs to.
|
|
9749
|
+
* @attr {string} form-validation-message - Custom native form validation message.
|
|
9750
|
+
* @attr {"days" | "months" | "years"} initial-view - The view to open when the panel first opens.
|
|
9751
|
+
* @attr {function} is-date-disallowed - Predicate that marks specific dates as unselectable.
|
|
9752
|
+
* @attr {Intl.LocalesArgument} locale - Locale used for formatting.
|
|
9753
|
+
* @attr {string} max - Latest selectable date (ISO).
|
|
9754
|
+
* @attr {string} min - Earliest selectable date (ISO).
|
|
9755
|
+
* @attr {number} months - Number of month panels to render side by side (range/multi). Capped at 2.
|
|
9756
|
+
* @attr {"single" | "months"} months-per-view - Prev/Next step size when multi-month is enabled.
|
|
9757
|
+
* @attr {string} name - Input name.
|
|
9758
|
+
* @attr {boolean} open - If `true`, the panel is visible.
|
|
9759
|
+
* @attr {string} panel-height - Overrides the height of the panel.
|
|
9760
|
+
* @attr {string} placeholder - Input placeholder text.
|
|
9761
|
+
* @attr {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} placement - Placement of the panel.
|
|
9762
|
+
* @attr {boolean} required - Whether a value must be selected before submitting the form.
|
|
9763
|
+
* @attr {boolean} show-outside-days - Whether to render days that belong to adjacent months.
|
|
9764
|
+
* @attr {number} skidding - Skidding between the panel and the trigger.
|
|
9765
|
+
* @attr {"fixed" | "absolute"} strategy - Positioning strategy for the panel.
|
|
9766
|
+
* @attr {"single" | "multi" | "range"} type - Selection mode.
|
|
9767
|
+
* @attr {"error" | "none" | "success" | "warning"} validation-status - Validation state.
|
|
9768
|
+
* @attr {string} value - The current selection, as a wire-format string. Shape depends on `type` and `precision`:
|
|
9769
|
+
* • **single**: a single ISO token — `YYYY-MM-DD` (precision `day`), `YYYY-MM` (precision `month`), `YYYY` (precision `year`).
|
|
9770
|
+
* • **range**: `start/end` (two tokens joined with `/`) at the same precision.
|
|
9771
|
+
* • **multi**: space-separated tokens at the same precision.
|
|
9772
|
+
* Bounds (`min`/`max`) may be supplied at any of these precisions and are honoured accordingly.
|
|
9773
|
+
* @attr {"day" | "month" | "year"} precision - Granularity of the value and of the calendar's initial view. Also drives which cells are selectable (day cells at `day`, month cells at `month`, year cells at `year`). Defaults to `"day"`.
|
|
9696
9774
|
* @method clear - Clears the selected value.
|
|
9697
|
-
* @event bqBlur -
|
|
9698
|
-
* @event bqChange -
|
|
9699
|
-
* @event bqClear -
|
|
9700
|
-
* @event bqFocus -
|
|
9701
|
-
* @
|
|
9702
|
-
* @cssprop --bq-date-picker--
|
|
9703
|
-
* @cssprop --bq-date-picker--border-color
|
|
9704
|
-
* @cssprop --bq-date-picker--border-color-
|
|
9705
|
-
* @cssprop --bq-date-picker--border-
|
|
9706
|
-
* @cssprop --bq-date-picker--border-
|
|
9707
|
-
* @cssprop --bq-date-picker--border-
|
|
9708
|
-
* @cssprop --bq-date-picker--
|
|
9709
|
-
* @cssprop --bq-date-picker--currentDate-border-
|
|
9710
|
-
* @cssprop --bq-date-picker--
|
|
9711
|
-
* @cssprop --bq-date-picker--
|
|
9712
|
-
* @cssprop --bq-date-picker--
|
|
9713
|
-
* @cssprop --bq-date-picker--
|
|
9714
|
-
* @cssprop --bq-date-picker--
|
|
9715
|
-
* @cssprop --bq-date-picker--label-
|
|
9716
|
-
* @cssprop --bq-date-picker--
|
|
9717
|
-
* @cssprop --bq-date-picker--
|
|
9718
|
-
* @cssprop --bq-date-picker--
|
|
9719
|
-
* @cssprop --bq-date-picker--
|
|
9720
|
-
* @cssprop --bq-date-picker--
|
|
9721
|
-
* @cssprop --bq-date-picker--
|
|
9722
|
-
* @cssprop --bq-date-picker--
|
|
9723
|
-
* @cssprop --bq-date-picker--
|
|
9775
|
+
* @event bqBlur - Emitted when the input loses focus.
|
|
9776
|
+
* @event bqChange - Emitted when the value changes.
|
|
9777
|
+
* @event bqClear - Emitted when the value is cleared.
|
|
9778
|
+
* @event bqFocus - Emitted when the input receives focus.
|
|
9779
|
+
* @event bqViewChange - Emitted when the internal calendar view changes (days ↔ months ↔ years).
|
|
9780
|
+
* @cssprop --bq-date-picker--background-color - Input background color.
|
|
9781
|
+
* @cssprop --bq-date-picker--border-color - Input border color.
|
|
9782
|
+
* @cssprop --bq-date-picker--border-color-disabled - Border color when disabled.
|
|
9783
|
+
* @cssprop --bq-date-picker--border-color-focus - Border color on focus.
|
|
9784
|
+
* @cssprop --bq-date-picker--border-radius - Input border radius.
|
|
9785
|
+
* @cssprop --bq-date-picker--border-style - Border style.
|
|
9786
|
+
* @cssprop --bq-date-picker--border-width - Border width.
|
|
9787
|
+
* @cssprop --bq-date-picker--currentDate-border-color - Border color for today's date.
|
|
9788
|
+
* @cssprop --bq-date-picker--currentDate-border-width - Border width for today's date.
|
|
9789
|
+
* @cssprop --bq-date-picker--day-size - Size of a day cell in the calendar.
|
|
9790
|
+
* @cssprop --bq-date-picker--gap - Gap between the input content and prefix/suffix.
|
|
9791
|
+
* @cssprop --bq-date-picker--header-title-color - Color of the per-panel month label in multi-panel view.
|
|
9792
|
+
* @cssprop --bq-date-picker--icon-size - Size of the icons used in prefix/suffix/clear.
|
|
9793
|
+
* @cssprop --bq-date-picker--label-margin-bottom - Space below the label.
|
|
9794
|
+
* @cssprop --bq-date-picker--label-text-color - Label text color.
|
|
9795
|
+
* @cssprop --bq-date-picker--label-text-size - Label text size.
|
|
9796
|
+
* @cssprop --bq-date-picker--padding-end - Input padding end.
|
|
9797
|
+
* @cssprop --bq-date-picker--padding-start - Input padding start.
|
|
9798
|
+
* @cssprop --bq-date-picker--paddingY - Input vertical padding.
|
|
9799
|
+
* @cssprop --bq-date-picker--range-background-color - Background color for range start/end days.
|
|
9800
|
+
* @cssprop --bq-date-picker--range-inner-background-color - Background color for inner range days.
|
|
9801
|
+
* @cssprop --bq-date-picker--row-gap - Vertical space between day-grid rows.
|
|
9802
|
+
* @cssprop --bq-date-picker--text-color - Input text color.
|
|
9803
|
+
* @cssprop --bq-date-picker--text-placeholder-color - Placeholder text color.
|
|
9804
|
+
* @cssprop --bq-date-picker--text-size - Input text size.
|
|
9805
|
+
* @cssprop --bq-date-picker--view-cell-background-hover - Hover background for day/month/year cells.
|
|
9806
|
+
* @cssprop --bq-date-picker--view-cell-background-selected - Selected background for day/month/year cells.
|
|
9807
|
+
* @cssprop --bq-date-picker--view-cell-height - Height of month/year cells.
|
|
9808
|
+
* @cssprop --bq-date-picker--view-cell-radius - Border radius of day/month/year cells.
|
|
9809
|
+
* @cssprop --bq-date-picker--view-cell-text-selected - Text color for selected day/month/year cells.
|
|
9724
9810
|
*/
|
|
9725
9811
|
"bq-date-picker": LocalJSX.IntrinsicElements["bq-date-picker"] & JSXBase.HTMLAttributes<HTMLBqDatePickerElement>;
|
|
9726
9812
|
/**
|
|
@@ -10203,8 +10289,9 @@ declare module "@stencil/core" {
|
|
|
10203
10289
|
* @event bqClick - Handler to be called when the radio state changes
|
|
10204
10290
|
* @event bqFocus - Handler to be called when the radio gets focused
|
|
10205
10291
|
* @event bqKeyDown - The handler is to be called when the radio key is pressed
|
|
10206
|
-
* @cssprop --bq-radio--
|
|
10292
|
+
* @cssprop --bq-radio--background-color - Radio background color
|
|
10207
10293
|
* @cssprop --bq-radio--border-width - Radio border width
|
|
10294
|
+
* @cssprop --bq-radio--size - Radio size
|
|
10208
10295
|
*/
|
|
10209
10296
|
"bq-radio": LocalJSX.IntrinsicElements["bq-radio"] & JSXBase.HTMLAttributes<HTMLBqRadioElement>;
|
|
10210
10297
|
/**
|