@beeq/core 1.3.3 → 1.4.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/beeq.esm.js.map +1 -1
- package/dist/beeq/{p-28a9a23d.entry.js → p-02c15c4b.entry.js} +2 -2
- package/dist/beeq/{p-2f7137e0.entry.js → p-0628de9f.entry.js} +2 -2
- package/dist/beeq/{p-cbca544b.entry.js → p-1a7d3fbe.entry.js} +2 -2
- package/dist/beeq/p-299455bd.js +7 -0
- package/dist/beeq/p-299455bd.js.map +1 -0
- package/dist/beeq/{p-32134085.entry.js → p-3c4fbdd7.entry.js} +2 -2
- package/dist/beeq/p-3ddd1c36.entry.js +6 -0
- package/dist/beeq/p-3ddd1c36.entry.js.map +1 -0
- package/dist/beeq/{p-c14e94e0.entry.js → p-3e4c9374.entry.js} +2 -2
- package/dist/beeq/{p-7d3c9c9a.entry.js → p-4ba46a90.entry.js} +2 -2
- package/dist/beeq/{p-7d3c9c9a.entry.js.map → p-4ba46a90.entry.js.map} +1 -1
- package/dist/beeq/{p-d58a7c27.entry.js → p-54c58ae3.entry.js} +2 -2
- package/dist/beeq/{p-ada3ca0a.entry.js → p-5ca47d1e.entry.js} +2 -2
- package/dist/beeq/{p-c893951f.entry.js → p-61ada51d.entry.js} +2 -2
- package/dist/beeq/{p-6c1ddc44.entry.js → p-64f8af01.entry.js} +2 -2
- package/dist/beeq/{p-354f52d1.entry.js → p-68aaabee.entry.js} +2 -2
- package/dist/beeq/p-6a9bb294.entry.js +6 -0
- package/dist/beeq/p-6a9bb294.entry.js.map +1 -0
- package/dist/beeq/{p-ab632829.entry.js → p-741c4780.entry.js} +2 -2
- package/dist/beeq/{p-6d5d2460.entry.js → p-7b5e46cb.entry.js} +2 -2
- package/dist/beeq/{p-8593ad98.entry.js → p-7bf832f5.entry.js} +2 -2
- package/dist/beeq/{p-981797b1.entry.js → p-7fbceff7.entry.js} +2 -2
- package/dist/beeq/p-8343145d.entry.js +6 -0
- package/dist/beeq/p-8343145d.entry.js.map +1 -0
- package/dist/beeq/{p-1f370b12.entry.js → p-8cd96f23.entry.js} +2 -2
- package/dist/beeq/{p-e2b64861.entry.js → p-900b24fc.entry.js} +2 -2
- package/dist/beeq/{p-1c789890.entry.js → p-93e38159.entry.js} +2 -2
- package/dist/beeq/{p-51603d69.entry.js → p-9d4b982c.entry.js} +2 -2
- package/dist/beeq/{p-d27ad8a0.entry.js → p-bd15cc60.entry.js} +2 -2
- package/dist/beeq/p-c0692037.entry.js +6 -0
- package/dist/beeq/p-c0692037.entry.js.map +1 -0
- package/dist/beeq/{p-852c54d8.entry.js → p-c09305af.entry.js} +2 -2
- package/dist/beeq/{p-81a34a07.entry.js → p-c435eb9d.entry.js} +2 -2
- package/dist/beeq/{p-de827971.entry.js → p-c63164ef.entry.js} +2 -2
- package/dist/beeq/{p-a30ba2bd.entry.js → p-c6c2ce93.entry.js} +2 -2
- package/dist/beeq/{p-bb8f8b78.entry.js → p-c98276b3.entry.js} +2 -2
- package/dist/beeq/{p-31472c1f.entry.js → p-d29eef16.entry.js} +2 -2
- package/dist/beeq/{p-0af526fc.entry.js → p-d5dcd933.entry.js} +2 -2
- package/dist/beeq/p-d871936d.entry.js +6 -0
- package/dist/beeq/p-d871936d.entry.js.map +1 -0
- package/dist/beeq/{p-0b6e3137.entry.js → p-d969800e.entry.js} +2 -2
- package/dist/beeq/{p-e67a6252.entry.js → p-d97d4712.entry.js} +2 -2
- package/dist/beeq/{p-d11fafe0.entry.js → p-dafa2581.entry.js} +2 -2
- package/dist/beeq/{p-8b57cd5e.entry.js → p-e068ede6.entry.js} +2 -2
- package/dist/beeq/{p-42c5530c.entry.js → p-e1162d1c.entry.js} +2 -2
- package/dist/beeq/p-e2c645ae.js +6 -0
- package/dist/beeq/p-e2c645ae.js.map +1 -0
- package/dist/beeq/{p-36eb59f9.entry.js → p-f4b40086.entry.js} +2 -2
- package/dist/cjs/app-globals-eca46908.js +1122 -0
- package/dist/cjs/app-globals-eca46908.js.map +1 -0
- package/dist/cjs/beeq.cjs.js +4 -4
- package/dist/cjs/beeq.cjs.js.map +1 -1
- package/dist/cjs/bq-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bq-alert.cjs.entry.js +1 -1
- package/dist/cjs/bq-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bq-badge.cjs.entry.js +1 -1
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/bq-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bq-button_2.cjs.entry.js +307 -0
- package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -0
- package/dist/cjs/bq-card.cjs.entry.js +1 -1
- package/dist/cjs/bq-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bq-date-picker.cjs.entry.js +260 -0
- package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/bq-dialog.cjs.entry.js +4 -4
- package/dist/cjs/bq-divider.cjs.entry.js +3 -3
- package/dist/cjs/bq-drawer.cjs.entry.js +6 -6
- package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/{bq-panel.cjs.entry.js → bq-dropdown_2.cjs.entry.js} +108 -3
- package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/bq-empty-state.cjs.entry.js +5 -5
- package/dist/cjs/bq-input.cjs.entry.js +5 -5
- package/dist/cjs/bq-notification.cjs.entry.js +3 -3
- package/dist/cjs/bq-option-group.cjs.entry.js +2 -2
- package/dist/cjs/{bq-dropdown_3.cjs.entry.js → bq-option-list_2.cjs.entry.js} +6 -111
- package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -0
- package/dist/cjs/bq-option.cjs.entry.js +5 -5
- package/dist/cjs/bq-progress.cjs.entry.js +5 -5
- package/dist/cjs/bq-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/bq-radio.cjs.entry.js +3 -3
- package/dist/cjs/bq-select.cjs.entry.js +2 -2
- 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.cjs.entry.js +2 -2
- package/dist/cjs/bq-slider.cjs.entry.js +2 -2
- package/dist/cjs/bq-spinner.cjs.entry.js +5 -5
- package/dist/cjs/bq-status.cjs.entry.js +2 -2
- package/dist/cjs/bq-step-item.cjs.entry.js +5 -5
- package/dist/cjs/bq-steps.cjs.entry.js +2 -2
- package/dist/cjs/bq-switch.cjs.entry.js +3 -3
- package/dist/cjs/bq-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/bq-tab.cjs.entry.js +3 -3
- package/dist/cjs/bq-textarea.cjs.entry.js +4 -4
- package/dist/cjs/bq-toast.cjs.entry.js +2 -2
- package/dist/cjs/bq-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-d55cdb65.js → index-58b1a597.js} +34 -18
- package/dist/cjs/index-58b1a597.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/button/scss/bq-button.css +1 -1
- package/dist/collection/components/date-picker/__tests__/bq-date-picker.e2e.js +67 -0
- package/dist/collection/components/date-picker/__tests__/bq-date-picker.e2e.js.map +1 -0
- package/dist/collection/components/date-picker/bq-date-picker.js +920 -0
- package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -0
- package/dist/collection/components/date-picker/bq-date-picker.types.js +6 -0
- package/dist/collection/components/date-picker/bq-date-picker.types.js.map +1 -0
- package/dist/collection/components/date-picker/scss/bq-date-picker.css +1 -0
- package/dist/collection/components/dialog/bq-dialog.js +3 -3
- package/dist/collection/components/divider/bq-divider.js +2 -2
- package/dist/collection/components/drawer/bq-drawer.js +4 -4
- package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
- 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/empty-state/bq-empty-state.js +4 -4
- package/dist/collection/components/icon/bq-icon.js +1 -1
- package/dist/collection/components/input/bq-input.js +4 -4
- package/dist/collection/components/notification/bq-notification.js +2 -2
- 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-list/bq-option-list.js +1 -1
- package/dist/collection/components/panel/bq-panel.js +1 -1
- package/dist/collection/components/progress/bq-progress.js +4 -4
- package/dist/collection/components/radio/bq-radio.js +2 -2
- 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 +1 -1
- package/dist/collection/components/slider/bq-slider.js +1 -1
- package/dist/collection/components/spinner/bq-spinner.js +4 -4
- package/dist/collection/components/status/bq-status.js +1 -1
- package/dist/collection/components/step-item/bq-step-item.js +4 -4
- package/dist/collection/components/steps/bq-steps.js +1 -1
- package/dist/collection/components/switch/bq-switch.js +2 -2
- package/dist/collection/components/tab/bq-tab.js +2 -2
- package/dist/collection/components/tab-group/bq-tab-group.js +1 -1
- package/dist/collection/components/tag/bq-tag.js +3 -3
- package/dist/collection/components/textarea/bq-textarea.js +3 -3
- package/dist/collection/components/toast/bq-toast.js +1 -1
- package/dist/collection/components/tooltip/bq-tooltip.js +1 -1
- package/dist/{beeq/p-45800965.js → collection/global/scripts/global.js} +2 -2
- package/dist/collection/global/scripts/global.js.map +1 -0
- package/dist/collection/index.js +0 -3
- package/dist/collection/index.js.map +1 -1
- package/dist/components/bq-button2.js +1 -1
- package/dist/components/bq-button2.js.map +1 -1
- package/dist/components/bq-date-picker.d.ts +11 -0
- package/dist/components/bq-date-picker.js +333 -0
- package/dist/components/bq-date-picker.js.map +1 -0
- package/dist/components/bq-dialog.js +3 -3
- package/dist/components/bq-divider2.js +2 -2
- package/dist/components/bq-drawer.js +5 -5
- package/dist/components/bq-drawer.js.map +1 -1
- package/dist/components/bq-dropdown2.js +1 -1
- package/dist/components/bq-empty-state.js +4 -4
- package/dist/components/bq-icon2.js +1 -1
- package/dist/components/bq-input.js +4 -4
- package/dist/components/bq-notification.js +2 -2
- package/dist/components/bq-option-group.js +1 -1
- package/dist/components/bq-option-list2.js +1 -1
- package/dist/components/bq-option.js +4 -4
- package/dist/components/bq-panel2.js +1 -1
- package/dist/components/bq-progress.js +4 -4
- package/dist/components/bq-radio-group.js +1 -1
- package/dist/components/bq-radio.js +2 -2
- package/dist/components/bq-select.js +1 -1
- package/dist/components/bq-select.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 +4 -4
- package/dist/components/bq-status.js +1 -1
- package/dist/components/bq-step-item.js +4 -4
- package/dist/components/bq-steps.js +1 -1
- package/dist/components/bq-switch.js +2 -2
- package/dist/components/bq-tab-group.js +1 -1
- package/dist/components/bq-tab.js +2 -2
- package/dist/components/bq-tag2.js +3 -3
- package/dist/components/bq-textarea.js +3 -3
- package/dist/components/bq-toast.js +1 -1
- package/dist/components/bq-tooltip2.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1110 -0
- package/dist/components/index.js.map +1 -1
- package/dist/esm/app-globals-059f0651.js +1120 -0
- package/dist/esm/app-globals-059f0651.js.map +1 -0
- package/dist/esm/beeq.js +5 -5
- package/dist/esm/beeq.js.map +1 -1
- package/dist/esm/bq-accordion-group.entry.js +1 -1
- package/dist/esm/bq-accordion.entry.js +1 -1
- package/dist/esm/bq-alert.entry.js +1 -1
- package/dist/esm/bq-avatar.entry.js +1 -1
- package/dist/esm/bq-badge.entry.js +1 -1
- package/dist/esm/bq-breadcrumb-item.entry.js +1 -1
- package/dist/esm/bq-breadcrumb.entry.js +1 -1
- package/dist/esm/bq-button_2.entry.js +302 -0
- package/dist/esm/bq-button_2.entry.js.map +1 -0
- package/dist/esm/bq-card.entry.js +1 -1
- package/dist/esm/bq-checkbox.entry.js +1 -1
- package/dist/esm/bq-date-picker.entry.js +256 -0
- package/dist/esm/bq-date-picker.entry.js.map +1 -0
- package/dist/esm/bq-dialog.entry.js +4 -4
- package/dist/esm/bq-divider.entry.js +3 -3
- package/dist/esm/bq-drawer.entry.js +6 -6
- package/dist/esm/bq-drawer.entry.js.map +1 -1
- package/dist/esm/{bq-panel.entry.js → bq-dropdown_2.entry.js} +108 -4
- package/dist/esm/bq-dropdown_2.entry.js.map +1 -0
- package/dist/esm/bq-empty-state.entry.js +5 -5
- package/dist/esm/bq-input.entry.js +5 -5
- package/dist/esm/bq-notification.entry.js +3 -3
- package/dist/esm/bq-option-group.entry.js +2 -2
- package/dist/esm/{bq-dropdown_3.entry.js → bq-option-list_2.entry.js} +7 -111
- package/dist/esm/bq-option-list_2.entry.js.map +1 -0
- package/dist/esm/bq-option.entry.js +5 -5
- package/dist/esm/bq-progress.entry.js +5 -5
- package/dist/esm/bq-radio-group.entry.js +2 -2
- package/dist/esm/bq-radio.entry.js +3 -3
- package/dist/esm/bq-select.entry.js +2 -2
- 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.entry.js +2 -2
- package/dist/esm/bq-slider.entry.js +2 -2
- package/dist/esm/bq-spinner.entry.js +5 -5
- package/dist/esm/bq-status.entry.js +2 -2
- package/dist/esm/bq-step-item.entry.js +5 -5
- package/dist/esm/bq-steps.entry.js +2 -2
- package/dist/esm/bq-switch.entry.js +3 -3
- package/dist/esm/bq-tab-group.entry.js +2 -2
- package/dist/esm/bq-tab.entry.js +3 -3
- package/dist/esm/bq-textarea.entry.js +4 -4
- package/dist/esm/bq-toast.entry.js +2 -2
- package/dist/esm/bq-tooltip.entry.js +2 -2
- package/dist/esm/{index-d71ec085.js → index-179da433.js} +34 -18
- package/dist/esm/index-179da433.js.map +1 -0
- package/dist/esm/loader.js +4 -4
- package/dist/hydrate/index.js +408 -72
- package/dist/stencil.config.js +1 -0
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/date-picker/bq-date-picker.d.ts +188 -0
- package/dist/types/components/date-picker/bq-date-picker.types.d.ts +3 -0
- package/dist/types/components.d.ts +269 -4
- package/dist/types/global/scripts/global.d.ts +13 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/types/shared/test-utils/setProperties.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +2 -8
- package/package.json +14 -4
- package/dist/beeq/p-250b8476.entry.js +0 -6
- package/dist/beeq/p-250b8476.entry.js.map +0 -1
- package/dist/beeq/p-45800965.js.map +0 -1
- package/dist/beeq/p-47d89d61.entry.js +0 -6
- package/dist/beeq/p-47d89d61.entry.js.map +0 -1
- package/dist/beeq/p-70d07837.entry.js +0 -6
- package/dist/beeq/p-70d07837.entry.js.map +0 -1
- package/dist/beeq/p-ae379467.entry.js +0 -6
- package/dist/beeq/p-ae379467.entry.js.map +0 -1
- package/dist/beeq/p-d5c5b299.entry.js +0 -6
- package/dist/beeq/p-d5c5b299.entry.js.map +0 -1
- package/dist/beeq/p-fbd8dd21.js +0 -7
- package/dist/beeq/p-fbd8dd21.js.map +0 -1
- package/dist/cjs/app-globals-42eaedec.js +0 -11
- package/dist/cjs/app-globals-42eaedec.js.map +0 -1
- package/dist/cjs/bq-button.cjs.entry.js +0 -135
- package/dist/cjs/bq-button.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-dropdown_3.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-icon.cjs.entry.js +0 -186
- package/dist/cjs/bq-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-panel.cjs.entry.js.map +0 -1
- package/dist/cjs/index-d55cdb65.js.map +0 -1
- package/dist/esm/app-globals-7655df21.js +0 -9
- package/dist/esm/app-globals-7655df21.js.map +0 -1
- package/dist/esm/bq-button.entry.js +0 -131
- package/dist/esm/bq-button.entry.js.map +0 -1
- package/dist/esm/bq-dropdown_3.entry.js.map +0 -1
- package/dist/esm/bq-icon.entry.js +0 -182
- package/dist/esm/bq-icon.entry.js.map +0 -1
- package/dist/esm/bq-panel.entry.js.map +0 -1
- package/dist/esm/index-d71ec085.js.map +0 -1
- /package/dist/beeq/{p-28a9a23d.entry.js.map → p-02c15c4b.entry.js.map} +0 -0
- /package/dist/beeq/{p-2f7137e0.entry.js.map → p-0628de9f.entry.js.map} +0 -0
- /package/dist/beeq/{p-cbca544b.entry.js.map → p-1a7d3fbe.entry.js.map} +0 -0
- /package/dist/beeq/{p-32134085.entry.js.map → p-3c4fbdd7.entry.js.map} +0 -0
- /package/dist/beeq/{p-c14e94e0.entry.js.map → p-3e4c9374.entry.js.map} +0 -0
- /package/dist/beeq/{p-d58a7c27.entry.js.map → p-54c58ae3.entry.js.map} +0 -0
- /package/dist/beeq/{p-ada3ca0a.entry.js.map → p-5ca47d1e.entry.js.map} +0 -0
- /package/dist/beeq/{p-c893951f.entry.js.map → p-61ada51d.entry.js.map} +0 -0
- /package/dist/beeq/{p-6c1ddc44.entry.js.map → p-64f8af01.entry.js.map} +0 -0
- /package/dist/beeq/{p-354f52d1.entry.js.map → p-68aaabee.entry.js.map} +0 -0
- /package/dist/beeq/{p-ab632829.entry.js.map → p-741c4780.entry.js.map} +0 -0
- /package/dist/beeq/{p-6d5d2460.entry.js.map → p-7b5e46cb.entry.js.map} +0 -0
- /package/dist/beeq/{p-8593ad98.entry.js.map → p-7bf832f5.entry.js.map} +0 -0
- /package/dist/beeq/{p-981797b1.entry.js.map → p-7fbceff7.entry.js.map} +0 -0
- /package/dist/beeq/{p-1f370b12.entry.js.map → p-8cd96f23.entry.js.map} +0 -0
- /package/dist/beeq/{p-e2b64861.entry.js.map → p-900b24fc.entry.js.map} +0 -0
- /package/dist/beeq/{p-1c789890.entry.js.map → p-93e38159.entry.js.map} +0 -0
- /package/dist/beeq/{p-51603d69.entry.js.map → p-9d4b982c.entry.js.map} +0 -0
- /package/dist/beeq/{p-d27ad8a0.entry.js.map → p-bd15cc60.entry.js.map} +0 -0
- /package/dist/beeq/{p-852c54d8.entry.js.map → p-c09305af.entry.js.map} +0 -0
- /package/dist/beeq/{p-81a34a07.entry.js.map → p-c435eb9d.entry.js.map} +0 -0
- /package/dist/beeq/{p-de827971.entry.js.map → p-c63164ef.entry.js.map} +0 -0
- /package/dist/beeq/{p-a30ba2bd.entry.js.map → p-c6c2ce93.entry.js.map} +0 -0
- /package/dist/beeq/{p-bb8f8b78.entry.js.map → p-c98276b3.entry.js.map} +0 -0
- /package/dist/beeq/{p-31472c1f.entry.js.map → p-d29eef16.entry.js.map} +0 -0
- /package/dist/beeq/{p-0af526fc.entry.js.map → p-d5dcd933.entry.js.map} +0 -0
- /package/dist/beeq/{p-0b6e3137.entry.js.map → p-d969800e.entry.js.map} +0 -0
- /package/dist/beeq/{p-e67a6252.entry.js.map → p-d97d4712.entry.js.map} +0 -0
- /package/dist/beeq/{p-d11fafe0.entry.js.map → p-dafa2581.entry.js.map} +0 -0
- /package/dist/beeq/{p-8b57cd5e.entry.js.map → p-e068ede6.entry.js.map} +0 -0
- /package/dist/beeq/{p-42c5530c.entry.js.map → p-e1162d1c.entry.js.map} +0 -0
- /package/dist/beeq/{p-36eb59f9.entry.js.map → p-f4b40086.entry.js.map} +0 -0
package/dist/stencil.config.js
CHANGED
|
@@ -23,6 +23,7 @@ export const config = {
|
|
|
23
23
|
taskQueue: 'async',
|
|
24
24
|
buildDist: true,
|
|
25
25
|
enableCache: true,
|
|
26
|
+
globalScript: resolve(__dirname, './src/global/scripts/global.ts').replace(/\\/g, '/'),
|
|
26
27
|
globalStyle: resolve(__dirname, './src/global/styles/default.scss').replace(/\\/g, '/'),
|
|
27
28
|
plugins: [
|
|
28
29
|
sass({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stencil.config.js","sourceRoot":"","sources":["../../../stencil.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAA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YAClD,iBAAiB;SAClB,CAAC;QACF,OAAO,CAAC;YACN,oBAAoB;YACpB,UAAU,EAAE,YAAY,EAAE,6DAA6D;YACvF,mBAAmB,EAAE,OAAO,CAAC,SAAS,EAAE,yDAAyD,CAAC,CAAC,OAAO,CACxG,KAAK,EACL,GAAG,CACJ;YACD,mBAAmB,EAAE,OAAO,CAAC,SAAS,EAAE,oDAAoD,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;YACjH,oBAAoB,EAAE,4BAA4B;YAClD,iBAAiB;SAClB,CAAC;QACF,KAAK,CAAC;YACJ,oBAAoB;YACpB,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE,iCAAiC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;YACtF,2BAA2B,EAAE,IAAI;YACjC,iBAAiB;SAClB,CAAC;QACF,GAAG,CAAC;YACF,oBAAoB;YACpB,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE,+BAA+B,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;YACpF,eAAe,EAAE,kBAAkB;YACnC,2BAA2B,EAAE,IAAI;YACjC,iBAAiB;SAClB,CAAC;KACH;IACD,MAAM,EAAE;QACN;;;WAGG;QACH,qBAAqB,EAAE,IAAI;QAC3B,6BAA6B,EAAE,IAAI;QACnC,qBAAqB,EAAE,IAAI;KAC5B;IACD,QAAQ,EAAE,8DAA8D;IACxE,iBAAiB,EAAE,uCAAuC;IAC1D,SAAS,EAAE;QACT,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,IAAI;QACV,cAAc,EAAE,YAAY;KAC7B;CACF,CAAC","sourcesContent":["import { resolve } from 'path';\n\nimport { angularOutputTarget as angular } from '@stencil/angular-output-target';\nimport { Config } from '@stencil/core';\nimport { reactOutputTarget as react } from '@stencil/react-output-target';\nimport { sass } from '@stencil/sass';\nimport { vueOutputTarget as vue } from '@stencil/vue-output-target';\nimport tailwind, { PluginConfigOpts, tailwindHMR } from 'stencil-tailwind-plugin';\n\nimport { angularValueAccessorBindings, generateCustomElementsJson, vueComponentModels } from './src/tools';\nimport tailwindConf from '../../tailwind.config';\n\nconst tailwindOpts: PluginConfigOpts = {\n postcss: resolve(__dirname, '../../postcss.config.js').replace(/\\\\/g, '/'),\n tailwindConf: tailwindConf,\n stripComments: true,\n};\n\nconst namespace = 'beeq';\nconst componentCorePackage = `@${namespace}/core`;\nconst customElementsDir = 'dist/components';\n\nexport const config: Config = {\n namespace,\n taskQueue: 'async',\n buildDist: true,\n enableCache: true,\n globalStyle: resolve(__dirname, './src/global/styles/default.scss').replace(/\\\\/g, '/'),\n plugins: [\n sass({\n includePaths: [\n resolve(__dirname, '../../node_modules').replace(/\\\\/g, '/'),\n resolve(__dirname, 'src/global/styles').replace(/\\\\/g, '/'),\n ],\n injectGlobalPaths: [resolve(__dirname, 'src/global/styles/mixins/index.scss').replace(/\\\\/g, '/')],\n outputStyle: 'compressed',\n sourceMap: true,\n sourceMapEmbed: true,\n sourceMapContents: true,\n }),\n tailwind(tailwindOpts),\n tailwindHMR({ tailwindConf }),\n ],\n outputTargets: [\n { type: 'docs-readme' },\n { type: 'docs-custom', generator: generateCustomElementsJson },\n { type: 'docs-vscode', file: 'custom-elements.json' },\n { type: 'dist', copy: [{ src: '../README.md' }] },\n { type: 'dist-hydrate-script', dir: 'dist/hydrate' },\n {\n type: 'dist-custom-elements',\n customElementsExportBehavior: 'single-export-module',\n dir: customElementsDir,\n minify: true,\n },\n {\n type: 'www',\n copy: [\n { src: 'global/assets', dest: 'assets' },\n { src: 'global/scripts', dest: 'scripts' },\n ],\n serviceWorker: null, // disable service workers\n },\n angular({\n componentCorePackage,\n outputType: 'component', // Generate many component wrappers tied to a single Angular module (lazy/hydrated approach)\n directivesProxyFile: resolve(__dirname, '../beeq-angular/src/directives/components.ts').replace(/\\\\/g, '/'),\n directivesArrayFile: resolve(__dirname, '../beeq-angular/src/directives/index.ts').replace(/\\\\/g, '/'),\n valueAccessorConfigs: angularValueAccessorBindings,\n customElementsDir,\n }),\n angular({\n componentCorePackage,\n outputType: 'standalone', // Generate a component with the standalone flag set to true.\n directivesProxyFile: resolve(__dirname, '../beeq-angular/standalone/src/directives/components.ts').replace(\n /\\\\/g,\n '/',\n ),\n directivesArrayFile: resolve(__dirname, '../beeq-angular/standalone/src/directives/index.ts').replace(/\\\\/g, '/'),\n valueAccessorConfigs: angularValueAccessorBindings,\n customElementsDir,\n }),\n react({\n componentCorePackage,\n proxiesFile: resolve(__dirname, '../beeq-react/src/components.ts').replace(/\\\\/g, '/'),\n includeImportCustomElements: true,\n customElementsDir,\n }),\n vue({\n componentCorePackage,\n proxiesFile: resolve(__dirname, '../beeq-vue/src/components.ts').replace(/\\\\/g, '/'),\n componentModels: vueComponentModels,\n includeImportCustomElements: true,\n customElementsDir,\n }),\n ],\n extras: {\n /**\n * Details:\n * https://stenciljs.com/docs/config-extras\n */\n enableImportInjection: true,\n experimentalScopedSlotChanges: true,\n experimentalSlotFixes: true,\n },\n preamble: 'Built by Endavans\\n© https://beeq.design - Apache 2 License.',\n watchIgnoredRegex: /(custom-elements\\.)((d\\.ts)|(json))$/g,\n devServer: {\n openBrowser: false,\n port: 8001,\n reloadStrategy: 'pageReload',\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"stencil.config.js","sourceRoot":"","sources":["../../../stencil.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEhF,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,eAAe,IAAI,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,QAAQ,EAAE,EAAoB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAElF,OAAO,EA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OAAO,CAAC,SAAS,EAAE,oDAAoD,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;YACjH,oBAAoB,EAAE,4BAA4B;YAClD,iBAAiB;SAClB,CAAC;QACF,KAAK,CAAC;YACJ,oBAAoB;YACpB,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE,iCAAiC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;YACtF,2BAA2B,EAAE,IAAI;YACjC,iBAAiB;SAClB,CAAC;QACF,GAAG,CAAC;YACF,oBAAoB;YACpB,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE,+BAA+B,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;YACpF,eAAe,EAAE,kBAAkB;YACnC,2BAA2B,EAAE,IAAI;YACjC,iBAAiB;SAClB,CAAC;KACH;IACD,MAAM,EAAE;QACN;;;WAGG;QACH,qBAAqB,EAAE,IAAI;QAC3B,6BAA6B,EAAE,IAAI;QACnC,qBAAqB,EAAE,IAAI;KAC5B;IACD,QAAQ,EAAE,8DAA8D;IACxE,iBAAiB,EAAE,uCAAuC;IAC1D,SAAS,EAAE;QACT,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,IAAI;QACV,cAAc,EAAE,YAAY;KAC7B;CACF,CAAC","sourcesContent":["import { resolve } from 'path';\n\nimport { angularOutputTarget as angular } from '@stencil/angular-output-target';\nimport { Config } from '@stencil/core';\nimport { reactOutputTarget as react } from '@stencil/react-output-target';\nimport { sass } from '@stencil/sass';\nimport { vueOutputTarget as vue } from '@stencil/vue-output-target';\nimport tailwind, { PluginConfigOpts, tailwindHMR } from 'stencil-tailwind-plugin';\n\nimport { angularValueAccessorBindings, generateCustomElementsJson, vueComponentModels } from './src/tools';\nimport tailwindConf from '../../tailwind.config';\n\nconst tailwindOpts: PluginConfigOpts = {\n postcss: resolve(__dirname, '../../postcss.config.js').replace(/\\\\/g, '/'),\n tailwindConf: tailwindConf,\n stripComments: true,\n};\n\nconst namespace = 'beeq';\nconst componentCorePackage = `@${namespace}/core`;\nconst customElementsDir = 'dist/components';\n\nexport const config: Config = {\n namespace,\n taskQueue: 'async',\n buildDist: true,\n enableCache: true,\n globalScript: resolve(__dirname, './src/global/scripts/global.ts').replace(/\\\\/g, '/'),\n globalStyle: resolve(__dirname, './src/global/styles/default.scss').replace(/\\\\/g, '/'),\n plugins: [\n sass({\n includePaths: [\n resolve(__dirname, '../../node_modules').replace(/\\\\/g, '/'),\n resolve(__dirname, 'src/global/styles').replace(/\\\\/g, '/'),\n ],\n injectGlobalPaths: [resolve(__dirname, 'src/global/styles/mixins/index.scss').replace(/\\\\/g, '/')],\n outputStyle: 'compressed',\n sourceMap: true,\n sourceMapEmbed: true,\n sourceMapContents: true,\n }),\n tailwind(tailwindOpts),\n tailwindHMR({ tailwindConf }),\n ],\n outputTargets: [\n { type: 'docs-readme' },\n { type: 'docs-custom', generator: generateCustomElementsJson },\n { type: 'docs-vscode', file: 'custom-elements.json' },\n { type: 'dist', copy: [{ src: '../README.md' }] },\n { type: 'dist-hydrate-script', dir: 'dist/hydrate' },\n {\n type: 'dist-custom-elements',\n customElementsExportBehavior: 'single-export-module',\n dir: customElementsDir,\n minify: true,\n },\n {\n type: 'www',\n copy: [\n { src: 'global/assets', dest: 'assets' },\n { src: 'global/scripts', dest: 'scripts' },\n ],\n serviceWorker: null, // disable service workers\n },\n angular({\n componentCorePackage,\n outputType: 'component', // Generate many component wrappers tied to a single Angular module (lazy/hydrated approach)\n directivesProxyFile: resolve(__dirname, '../beeq-angular/src/directives/components.ts').replace(/\\\\/g, '/'),\n directivesArrayFile: resolve(__dirname, '../beeq-angular/src/directives/index.ts').replace(/\\\\/g, '/'),\n valueAccessorConfigs: angularValueAccessorBindings,\n customElementsDir,\n }),\n angular({\n componentCorePackage,\n outputType: 'standalone', // Generate a component with the standalone flag set to true.\n directivesProxyFile: resolve(__dirname, '../beeq-angular/standalone/src/directives/components.ts').replace(\n /\\\\/g,\n '/',\n ),\n directivesArrayFile: resolve(__dirname, '../beeq-angular/standalone/src/directives/index.ts').replace(/\\\\/g, '/'),\n valueAccessorConfigs: angularValueAccessorBindings,\n customElementsDir,\n }),\n react({\n componentCorePackage,\n proxiesFile: resolve(__dirname, '../beeq-react/src/components.ts').replace(/\\\\/g, '/'),\n includeImportCustomElements: true,\n customElementsDir,\n }),\n vue({\n componentCorePackage,\n proxiesFile: resolve(__dirname, '../beeq-vue/src/components.ts').replace(/\\\\/g, '/'),\n componentModels: vueComponentModels,\n includeImportCustomElements: true,\n customElementsDir,\n }),\n ],\n extras: {\n /**\n * Details:\n * https://stenciljs.com/docs/config-extras\n */\n enableImportInjection: true,\n experimentalScopedSlotChanges: true,\n experimentalSlotFixes: true,\n },\n preamble: 'Built by Endavans\\n© https://beeq.design - Apache 2 License.',\n watchIgnoredRegex: /(custom-elements\\.)((d\\.ts)|(json))$/g,\n devServer: {\n openBrowser: false,\n port: 8001,\n reloadStrategy: 'pageReload',\n },\n};\n"]}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { DaysOfWeek, TDatePickerType } from './bq-date-picker.types';
|
|
3
|
+
import { FloatingUIPlacement } from '../../services/interfaces';
|
|
4
|
+
import { TInputValidation } from '../input/bq-input.types';
|
|
5
|
+
/**
|
|
6
|
+
* @part base - The component's base wrapper.
|
|
7
|
+
* @part button - The native HTML button used under the hood in the clear button.
|
|
8
|
+
* @part clear-btn - The clear button.
|
|
9
|
+
* @part control - The input control wrapper.
|
|
10
|
+
* @part input - The native HTML input element used under the hood.
|
|
11
|
+
* @part label - The label slot container.
|
|
12
|
+
* @part panel - The date picker panel container
|
|
13
|
+
* @part prefix - The prefix slot container.
|
|
14
|
+
* @part suffix - The suffix slot container.
|
|
15
|
+
|
|
16
|
+
// Parts from the Cally library for calendar-date and calendar-range components:
|
|
17
|
+
* @part container - The container for the entire component.
|
|
18
|
+
* @part header - The container for heading and button's.
|
|
19
|
+
* @part button - Any button within the component.
|
|
20
|
+
* @part previous - The previous page button.
|
|
21
|
+
* @part next - The next page button.
|
|
22
|
+
* @part disabled - A button that is disabled due to min/max.
|
|
23
|
+
* @part heading - The heading containing the month and year.
|
|
24
|
+
|
|
25
|
+
// Parts specific to the calendar-month component:
|
|
26
|
+
* @part heading - The heading that labels the month.
|
|
27
|
+
* @part table - The <table> element.
|
|
28
|
+
* @part tr - Any row within the table.
|
|
29
|
+
* @part head - The table's header row.
|
|
30
|
+
* @part week - The table's body rows.
|
|
31
|
+
* @part th - The table's header cells.
|
|
32
|
+
* @part td - The table's body cells.
|
|
33
|
+
* @part button - Any button used in the component.
|
|
34
|
+
* @part day - The buttons corresponding to each day in the grid.
|
|
35
|
+
* @part selected - Any days which are selected.
|
|
36
|
+
* @part today - Today's day.
|
|
37
|
+
* @part disallowed - Any day that has been disallowed via isDateDisallowed.
|
|
38
|
+
* @part outside - Any days which are outside the current month.
|
|
39
|
+
* @part range-start - The day at the start of a date range.
|
|
40
|
+
* @part range-end - The day at the end of a date range.
|
|
41
|
+
* @part range-inner - Any days between the start and end of a date range.
|
|
42
|
+
*/
|
|
43
|
+
export declare class BqDatePicker {
|
|
44
|
+
private inputElem?;
|
|
45
|
+
private labelElem?;
|
|
46
|
+
private prefixElem?;
|
|
47
|
+
private suffixElem?;
|
|
48
|
+
private fallbackInputId;
|
|
49
|
+
private readonly COMMON_EXPORT_PARTS;
|
|
50
|
+
private readonly BUTTON_EXPORT_PARTS;
|
|
51
|
+
el: HTMLBqDatePickerElement;
|
|
52
|
+
formattedDate: string;
|
|
53
|
+
hasLabel: boolean;
|
|
54
|
+
hasPrefix: boolean;
|
|
55
|
+
hasSuffix: boolean;
|
|
56
|
+
hasValue: boolean;
|
|
57
|
+
/** If `true`, the Date picker input will be focused on component render */
|
|
58
|
+
autofocus: boolean;
|
|
59
|
+
/** The clear button aria label */
|
|
60
|
+
clearButtonLabel?: string;
|
|
61
|
+
/** If `true`, the clear button won't be displayed */
|
|
62
|
+
disableClear?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Indicates whether the Date picker input is disabled or not.
|
|
65
|
+
* If `true`, the Date picker is disabled and cannot be interacted with.
|
|
66
|
+
*/
|
|
67
|
+
disabled?: boolean;
|
|
68
|
+
/** Represents the distance (gutter or margin) between the Date picker panel and the input element. */
|
|
69
|
+
distance?: number;
|
|
70
|
+
/** The first day of the week, where Sunday is 0, Monday is 1, etc */
|
|
71
|
+
firstDayOfWeek?: DaysOfWeek;
|
|
72
|
+
/** The options to use when formatting the displayed value.
|
|
73
|
+
* Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
|
|
74
|
+
*/
|
|
75
|
+
formatOptions: Intl.DateTimeFormatOptions;
|
|
76
|
+
/** The ID of the form that the Date picker input belongs to. */
|
|
77
|
+
form?: string;
|
|
78
|
+
/** A function that takes a date and returns true if the date should not be selectable */
|
|
79
|
+
isDateDisallowed?: (date: Date) => boolean;
|
|
80
|
+
/** The locale for formatting dates. If not set, will use the browser's locale.
|
|
81
|
+
* Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument
|
|
82
|
+
*/
|
|
83
|
+
locale: Intl.LocalesArgument;
|
|
84
|
+
/** The latest date that can be selected */
|
|
85
|
+
max?: string;
|
|
86
|
+
/** The earliest date that can be selected */
|
|
87
|
+
min?: string;
|
|
88
|
+
/** Number of months to show when range is `true` */
|
|
89
|
+
months: number;
|
|
90
|
+
/** The number of months to display per page when using next/previous buttons. */
|
|
91
|
+
monthsPerView: number;
|
|
92
|
+
/** The Date picker input name. */
|
|
93
|
+
name: string;
|
|
94
|
+
/** If `true`, the Date picker panel will be visible. */
|
|
95
|
+
open?: boolean;
|
|
96
|
+
/** When set, it will override the height of the Date picker panel. */
|
|
97
|
+
panelHeight?: string;
|
|
98
|
+
/** The Date picker input placeholder text value */
|
|
99
|
+
placeholder?: string;
|
|
100
|
+
/** Position of the Date picker panel */
|
|
101
|
+
placement?: FloatingUIPlacement;
|
|
102
|
+
/** Indicates whether or not the Date picker input is required to be filled out before submitting the form. */
|
|
103
|
+
required?: boolean;
|
|
104
|
+
/** Represents the skidding between the Date picker panel and the input element. */
|
|
105
|
+
skidding?: number;
|
|
106
|
+
/** Whether to show days outside the month */
|
|
107
|
+
showOutsideDays: boolean;
|
|
108
|
+
/** Defines the strategy to position the Date picker panel */
|
|
109
|
+
strategy?: 'fixed' | 'absolute';
|
|
110
|
+
/** It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection */
|
|
111
|
+
type: TDatePickerType;
|
|
112
|
+
/**
|
|
113
|
+
* The validation status of the Select input.
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
* This property is used to indicate the validation status of the select input. It can be set to one of the following values:
|
|
117
|
+
* - `'none'`: No validation status is set.
|
|
118
|
+
* - `'error'`: The input has a validation error.
|
|
119
|
+
* - `'warning'`: The input has a validation warning.
|
|
120
|
+
* - `'success'`: The input has passed validation.
|
|
121
|
+
*/
|
|
122
|
+
validationStatus: TInputValidation;
|
|
123
|
+
/** The select input value represents the currently selected date or range and can be used to reset the field to a previous value.
|
|
124
|
+
* All dates are expected in ISO-8601 format (YYYY-MM-DD). */
|
|
125
|
+
value: string;
|
|
126
|
+
handleValueChange(): void;
|
|
127
|
+
checkPropValues(): void;
|
|
128
|
+
/** Callback handler emitted when the input loses focus */
|
|
129
|
+
bqBlur: EventEmitter<HTMLBqDatePickerElement>;
|
|
130
|
+
/**
|
|
131
|
+
* Callback handler emitted when the input value has changed and the input loses focus.
|
|
132
|
+
* This handler is called whenever the user finishes typing or pasting text into the input field and then clicks outside of the input field.
|
|
133
|
+
*/
|
|
134
|
+
bqChange: EventEmitter<{
|
|
135
|
+
value: string;
|
|
136
|
+
el: HTMLBqDatePickerElement;
|
|
137
|
+
}>;
|
|
138
|
+
/** Callback handler emitted when the input value has been cleared */
|
|
139
|
+
bqClear: EventEmitter<HTMLBqDatePickerElement>;
|
|
140
|
+
/** Callback handler emitted when the input has received focus */
|
|
141
|
+
bqFocus: EventEmitter<HTMLBqDatePickerElement>;
|
|
142
|
+
componentDidLoad(): void;
|
|
143
|
+
handleOpenChange(ev: CustomEvent<{
|
|
144
|
+
open: boolean;
|
|
145
|
+
}>): void;
|
|
146
|
+
/**
|
|
147
|
+
* Clears the selected value.
|
|
148
|
+
*
|
|
149
|
+
* @return {Promise<void>}
|
|
150
|
+
* @memberof BqInput
|
|
151
|
+
*/
|
|
152
|
+
clear(): Promise<void>;
|
|
153
|
+
private handleBlur;
|
|
154
|
+
private handleFocus;
|
|
155
|
+
private handleChange;
|
|
156
|
+
private handleCalendarChange;
|
|
157
|
+
private handleClearClick;
|
|
158
|
+
private handleLabelSlotChange;
|
|
159
|
+
private handlePrefixSlotChange;
|
|
160
|
+
private handleSuffixSlotChange;
|
|
161
|
+
private generateCalendarMonth;
|
|
162
|
+
/**
|
|
163
|
+
* Generates an array of JSX.Element representing calendar months.
|
|
164
|
+
*
|
|
165
|
+
* If the type of the date picker is 'range' or 'multi' and the number of months is specified,
|
|
166
|
+
* it generates an array of calendar months with the specified length. Each month will have an offset
|
|
167
|
+
* and a class name based on its position in the array. The offset is used to determine the month to display,
|
|
168
|
+
* and the class name is used for responsive design.
|
|
169
|
+
*
|
|
170
|
+
* If the type of the date picker is not 'range' or 'multi', or if the number of months is not specified,
|
|
171
|
+
* it generates an array with a single calendar month.
|
|
172
|
+
*
|
|
173
|
+
* @returns {JSX.Element[]} An array of JSX.Element representing calendar months.
|
|
174
|
+
*/
|
|
175
|
+
private generateCalendarMonths;
|
|
176
|
+
/**
|
|
177
|
+
* Extracts and returns the first date part from a given string.
|
|
178
|
+
* When the type of the date picker is 'range' or 'multi', the first or initial date part of the value
|
|
179
|
+
* should be the focused date in the calendar.
|
|
180
|
+
*
|
|
181
|
+
* @param value - The value to be processed, can be a string.
|
|
182
|
+
* @returns The extracted last date portion of the value.
|
|
183
|
+
*/
|
|
184
|
+
private focusedDate;
|
|
185
|
+
private formatDate;
|
|
186
|
+
private get CalendarType();
|
|
187
|
+
render(): any;
|
|
188
|
+
}
|
|
@@ -11,13 +11,14 @@ 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";
|
|
15
|
+
import { FloatingUIPlacement } from "./services/interfaces";
|
|
16
|
+
import { TInputType, TInputValidation, TInputValue } from "./components/input/bq-input.types";
|
|
14
17
|
import { TDialogBorderRadius, TDialogFooterAppearance, TDialogSize } from "./components/dialog/bq-dialog.types";
|
|
15
18
|
import { TDividerOrientation, TDividerStrokeLinecap, TDividerTitleAlignment } from "./components/divider/bq-divider.types";
|
|
16
19
|
import { TDrawerPlacement } from "./components/drawer/bq-drawer.types";
|
|
17
|
-
import { FloatingUIPlacement } from "./services/interfaces";
|
|
18
20
|
import { TEmptyStateSize } from "./components/empty-state/bq-empty-state.types";
|
|
19
21
|
import { TIconWeight } from "./components/icon/bq-icon.types";
|
|
20
|
-
import { TInputType, TInputValidation, TInputValue } from "./components/input/bq-input.types";
|
|
21
22
|
import { TNotificationBorderRadius, TNotificationType } from "./components/notification/bq-notification.types";
|
|
22
23
|
import { TProgressBorderShape, TProgressThickness, TProgressType } from "./components/progress/bq-progress.types";
|
|
23
24
|
import { TRadioGroupOrientation } from "./components/radio-group/bq-radio-group.types";
|
|
@@ -39,13 +40,14 @@ export { TAvatarShape, TAvatarSize } from "./components/avatar/bq-avatar.types";
|
|
|
39
40
|
export { TBadgeSize } from "./components/badge/bq-badge.types";
|
|
40
41
|
export { TButtonAppearance, TButtonBorderRadius, TButtonSize, TButtonType, TButtonVariant } from "./components/button/bq-button.types";
|
|
41
42
|
export { TCardBorderRadius, TCardType } from "./components/card/bq-card.types";
|
|
43
|
+
export { DaysOfWeek, TDatePickerType } from "./components/date-picker/bq-date-picker.types";
|
|
44
|
+
export { FloatingUIPlacement } from "./services/interfaces";
|
|
45
|
+
export { TInputType, TInputValidation, TInputValue } from "./components/input/bq-input.types";
|
|
42
46
|
export { TDialogBorderRadius, TDialogFooterAppearance, TDialogSize } from "./components/dialog/bq-dialog.types";
|
|
43
47
|
export { TDividerOrientation, TDividerStrokeLinecap, TDividerTitleAlignment } from "./components/divider/bq-divider.types";
|
|
44
48
|
export { TDrawerPlacement } from "./components/drawer/bq-drawer.types";
|
|
45
|
-
export { FloatingUIPlacement } from "./services/interfaces";
|
|
46
49
|
export { TEmptyStateSize } from "./components/empty-state/bq-empty-state.types";
|
|
47
50
|
export { TIconWeight } from "./components/icon/bq-icon.types";
|
|
48
|
-
export { TInputType, TInputValidation, TInputValue } from "./components/input/bq-input.types";
|
|
49
51
|
export { TNotificationBorderRadius, TNotificationType } from "./components/notification/bq-notification.types";
|
|
50
52
|
export { TProgressBorderShape, TProgressThickness, TProgressType } from "./components/progress/bq-progress.types";
|
|
51
53
|
export { TRadioGroupOrientation } from "./components/radio-group/bq-radio-group.types";
|
|
@@ -321,6 +323,119 @@ export namespace Components {
|
|
|
321
323
|
*/
|
|
322
324
|
"value": string;
|
|
323
325
|
}
|
|
326
|
+
interface BqDatePicker {
|
|
327
|
+
/**
|
|
328
|
+
* If `true`, the Date picker input will be focused on component render
|
|
329
|
+
*/
|
|
330
|
+
"autofocus": boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Clears the selected value.
|
|
333
|
+
* @return
|
|
334
|
+
* @memberof BqInput
|
|
335
|
+
*/
|
|
336
|
+
"clear": () => Promise<void>;
|
|
337
|
+
/**
|
|
338
|
+
* The clear button aria label
|
|
339
|
+
*/
|
|
340
|
+
"clearButtonLabel"?: string;
|
|
341
|
+
/**
|
|
342
|
+
* If `true`, the clear button won't be displayed
|
|
343
|
+
*/
|
|
344
|
+
"disableClear"?: boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Indicates whether the Date picker input is disabled or not. If `true`, the Date picker is disabled and cannot be interacted with.
|
|
347
|
+
*/
|
|
348
|
+
"disabled"?: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* Represents the distance (gutter or margin) between the Date picker panel and the input element.
|
|
351
|
+
*/
|
|
352
|
+
"distance"?: number;
|
|
353
|
+
/**
|
|
354
|
+
* The first day of the week, where Sunday is 0, Monday is 1, etc
|
|
355
|
+
*/
|
|
356
|
+
"firstDayOfWeek"?: DaysOfWeek;
|
|
357
|
+
/**
|
|
358
|
+
* The ID of the form that the Date picker input belongs to.
|
|
359
|
+
*/
|
|
360
|
+
"form"?: string;
|
|
361
|
+
/**
|
|
362
|
+
* The options to use when formatting the displayed value. Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
|
|
363
|
+
*/
|
|
364
|
+
"formatOptions": Intl.DateTimeFormatOptions;
|
|
365
|
+
/**
|
|
366
|
+
* A function that takes a date and returns true if the date should not be selectable
|
|
367
|
+
*/
|
|
368
|
+
"isDateDisallowed"?: (date: Date) => boolean;
|
|
369
|
+
/**
|
|
370
|
+
* The locale for formatting dates. If not set, will use the browser's locale. Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument
|
|
371
|
+
*/
|
|
372
|
+
"locale": Intl.LocalesArgument;
|
|
373
|
+
/**
|
|
374
|
+
* The latest date that can be selected
|
|
375
|
+
*/
|
|
376
|
+
"max"?: string;
|
|
377
|
+
/**
|
|
378
|
+
* The earliest date that can be selected
|
|
379
|
+
*/
|
|
380
|
+
"min"?: string;
|
|
381
|
+
/**
|
|
382
|
+
* Number of months to show when range is `true`
|
|
383
|
+
*/
|
|
384
|
+
"months": number;
|
|
385
|
+
/**
|
|
386
|
+
* The number of months to display per page when using next/previous buttons.
|
|
387
|
+
*/
|
|
388
|
+
"monthsPerView": number;
|
|
389
|
+
/**
|
|
390
|
+
* The Date picker input name.
|
|
391
|
+
*/
|
|
392
|
+
"name": string;
|
|
393
|
+
/**
|
|
394
|
+
* If `true`, the Date picker panel will be visible.
|
|
395
|
+
*/
|
|
396
|
+
"open"?: boolean;
|
|
397
|
+
/**
|
|
398
|
+
* When set, it will override the height of the Date picker panel.
|
|
399
|
+
*/
|
|
400
|
+
"panelHeight"?: string;
|
|
401
|
+
/**
|
|
402
|
+
* The Date picker input placeholder text value
|
|
403
|
+
*/
|
|
404
|
+
"placeholder"?: string;
|
|
405
|
+
/**
|
|
406
|
+
* Position of the Date picker panel
|
|
407
|
+
*/
|
|
408
|
+
"placement"?: FloatingUIPlacement;
|
|
409
|
+
/**
|
|
410
|
+
* Indicates whether or not the Date picker input is required to be filled out before submitting the form.
|
|
411
|
+
*/
|
|
412
|
+
"required"?: boolean;
|
|
413
|
+
/**
|
|
414
|
+
* Whether to show days outside the month
|
|
415
|
+
*/
|
|
416
|
+
"showOutsideDays": boolean;
|
|
417
|
+
/**
|
|
418
|
+
* Represents the skidding between the Date picker panel and the input element.
|
|
419
|
+
*/
|
|
420
|
+
"skidding"?: number;
|
|
421
|
+
/**
|
|
422
|
+
* Defines the strategy to position the Date picker panel
|
|
423
|
+
*/
|
|
424
|
+
"strategy"?: 'fixed' | 'absolute';
|
|
425
|
+
/**
|
|
426
|
+
* It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection
|
|
427
|
+
*/
|
|
428
|
+
"type": TDatePickerType;
|
|
429
|
+
/**
|
|
430
|
+
* The validation status of the Select input.
|
|
431
|
+
* @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.
|
|
432
|
+
*/
|
|
433
|
+
"validationStatus": TInputValidation;
|
|
434
|
+
/**
|
|
435
|
+
* The select input value represents the currently selected date or range and can be used to reset the field to a previous value. All dates are expected in ISO-8601 format (YYYY-MM-DD).
|
|
436
|
+
*/
|
|
437
|
+
"value": string;
|
|
438
|
+
}
|
|
324
439
|
interface BqDialog {
|
|
325
440
|
/**
|
|
326
441
|
* Corder radius of the dialog component
|
|
@@ -1362,6 +1477,10 @@ export interface BqCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
1362
1477
|
detail: T;
|
|
1363
1478
|
target: HTMLBqCheckboxElement;
|
|
1364
1479
|
}
|
|
1480
|
+
export interface BqDatePickerCustomEvent<T> extends CustomEvent<T> {
|
|
1481
|
+
detail: T;
|
|
1482
|
+
target: HTMLBqDatePickerElement;
|
|
1483
|
+
}
|
|
1365
1484
|
export interface BqDialogCustomEvent<T> extends CustomEvent<T> {
|
|
1366
1485
|
detail: T;
|
|
1367
1486
|
target: HTMLBqDialogElement;
|
|
@@ -1593,6 +1712,26 @@ declare global {
|
|
|
1593
1712
|
prototype: HTMLBqCheckboxElement;
|
|
1594
1713
|
new (): HTMLBqCheckboxElement;
|
|
1595
1714
|
};
|
|
1715
|
+
interface HTMLBqDatePickerElementEventMap {
|
|
1716
|
+
"bqBlur": HTMLBqDatePickerElement;
|
|
1717
|
+
"bqChange": { value: string; el: HTMLBqDatePickerElement };
|
|
1718
|
+
"bqClear": HTMLBqDatePickerElement;
|
|
1719
|
+
"bqFocus": HTMLBqDatePickerElement;
|
|
1720
|
+
}
|
|
1721
|
+
interface HTMLBqDatePickerElement extends Components.BqDatePicker, HTMLStencilElement {
|
|
1722
|
+
addEventListener<K extends keyof HTMLBqDatePickerElementEventMap>(type: K, listener: (this: HTMLBqDatePickerElement, ev: BqDatePickerCustomEvent<HTMLBqDatePickerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1723
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1724
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1725
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1726
|
+
removeEventListener<K extends keyof HTMLBqDatePickerElementEventMap>(type: K, listener: (this: HTMLBqDatePickerElement, ev: BqDatePickerCustomEvent<HTMLBqDatePickerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1727
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1728
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1729
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1730
|
+
}
|
|
1731
|
+
var HTMLBqDatePickerElement: {
|
|
1732
|
+
prototype: HTMLBqDatePickerElement;
|
|
1733
|
+
new (): HTMLBqDatePickerElement;
|
|
1734
|
+
};
|
|
1596
1735
|
interface HTMLBqDialogElementEventMap {
|
|
1597
1736
|
"bqCancel": void;
|
|
1598
1737
|
"bqClose": void;
|
|
@@ -2067,6 +2206,7 @@ declare global {
|
|
|
2067
2206
|
"bq-button": HTMLBqButtonElement;
|
|
2068
2207
|
"bq-card": HTMLBqCardElement;
|
|
2069
2208
|
"bq-checkbox": HTMLBqCheckboxElement;
|
|
2209
|
+
"bq-date-picker": HTMLBqDatePickerElement;
|
|
2070
2210
|
"bq-dialog": HTMLBqDialogElement;
|
|
2071
2211
|
"bq-divider": HTMLBqDividerElement;
|
|
2072
2212
|
"bq-drawer": HTMLBqDrawerElement;
|
|
@@ -2427,6 +2567,129 @@ declare namespace LocalJSX {
|
|
|
2427
2567
|
*/
|
|
2428
2568
|
"value": string;
|
|
2429
2569
|
}
|
|
2570
|
+
interface BqDatePicker {
|
|
2571
|
+
/**
|
|
2572
|
+
* If `true`, the Date picker input will be focused on component render
|
|
2573
|
+
*/
|
|
2574
|
+
"autofocus"?: boolean;
|
|
2575
|
+
/**
|
|
2576
|
+
* The clear button aria label
|
|
2577
|
+
*/
|
|
2578
|
+
"clearButtonLabel"?: string;
|
|
2579
|
+
/**
|
|
2580
|
+
* If `true`, the clear button won't be displayed
|
|
2581
|
+
*/
|
|
2582
|
+
"disableClear"?: boolean;
|
|
2583
|
+
/**
|
|
2584
|
+
* Indicates whether the Date picker input is disabled or not. If `true`, the Date picker is disabled and cannot be interacted with.
|
|
2585
|
+
*/
|
|
2586
|
+
"disabled"?: boolean;
|
|
2587
|
+
/**
|
|
2588
|
+
* Represents the distance (gutter or margin) between the Date picker panel and the input element.
|
|
2589
|
+
*/
|
|
2590
|
+
"distance"?: number;
|
|
2591
|
+
/**
|
|
2592
|
+
* The first day of the week, where Sunday is 0, Monday is 1, etc
|
|
2593
|
+
*/
|
|
2594
|
+
"firstDayOfWeek"?: DaysOfWeek;
|
|
2595
|
+
/**
|
|
2596
|
+
* The ID of the form that the Date picker input belongs to.
|
|
2597
|
+
*/
|
|
2598
|
+
"form"?: string;
|
|
2599
|
+
/**
|
|
2600
|
+
* The options to use when formatting the displayed value. Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
|
|
2601
|
+
*/
|
|
2602
|
+
"formatOptions"?: Intl.DateTimeFormatOptions;
|
|
2603
|
+
/**
|
|
2604
|
+
* A function that takes a date and returns true if the date should not be selectable
|
|
2605
|
+
*/
|
|
2606
|
+
"isDateDisallowed"?: (date: Date) => boolean;
|
|
2607
|
+
/**
|
|
2608
|
+
* The locale for formatting dates. If not set, will use the browser's locale. Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument
|
|
2609
|
+
*/
|
|
2610
|
+
"locale"?: Intl.LocalesArgument;
|
|
2611
|
+
/**
|
|
2612
|
+
* The latest date that can be selected
|
|
2613
|
+
*/
|
|
2614
|
+
"max"?: string;
|
|
2615
|
+
/**
|
|
2616
|
+
* The earliest date that can be selected
|
|
2617
|
+
*/
|
|
2618
|
+
"min"?: string;
|
|
2619
|
+
/**
|
|
2620
|
+
* Number of months to show when range is `true`
|
|
2621
|
+
*/
|
|
2622
|
+
"months"?: number;
|
|
2623
|
+
/**
|
|
2624
|
+
* The number of months to display per page when using next/previous buttons.
|
|
2625
|
+
*/
|
|
2626
|
+
"monthsPerView"?: number;
|
|
2627
|
+
/**
|
|
2628
|
+
* The Date picker input name.
|
|
2629
|
+
*/
|
|
2630
|
+
"name": string;
|
|
2631
|
+
/**
|
|
2632
|
+
* Callback handler emitted when the input loses focus
|
|
2633
|
+
*/
|
|
2634
|
+
"onBqBlur"?: (event: BqDatePickerCustomEvent<HTMLBqDatePickerElement>) => void;
|
|
2635
|
+
/**
|
|
2636
|
+
* Callback handler emitted when the input value has changed and the input loses focus. This handler is called whenever the user finishes typing or pasting text into the input field and then clicks outside of the input field.
|
|
2637
|
+
*/
|
|
2638
|
+
"onBqChange"?: (event: BqDatePickerCustomEvent<{ value: string; el: HTMLBqDatePickerElement }>) => void;
|
|
2639
|
+
/**
|
|
2640
|
+
* Callback handler emitted when the input value has been cleared
|
|
2641
|
+
*/
|
|
2642
|
+
"onBqClear"?: (event: BqDatePickerCustomEvent<HTMLBqDatePickerElement>) => void;
|
|
2643
|
+
/**
|
|
2644
|
+
* Callback handler emitted when the input has received focus
|
|
2645
|
+
*/
|
|
2646
|
+
"onBqFocus"?: (event: BqDatePickerCustomEvent<HTMLBqDatePickerElement>) => void;
|
|
2647
|
+
/**
|
|
2648
|
+
* If `true`, the Date picker panel will be visible.
|
|
2649
|
+
*/
|
|
2650
|
+
"open"?: boolean;
|
|
2651
|
+
/**
|
|
2652
|
+
* When set, it will override the height of the Date picker panel.
|
|
2653
|
+
*/
|
|
2654
|
+
"panelHeight"?: string;
|
|
2655
|
+
/**
|
|
2656
|
+
* The Date picker input placeholder text value
|
|
2657
|
+
*/
|
|
2658
|
+
"placeholder"?: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* Position of the Date picker panel
|
|
2661
|
+
*/
|
|
2662
|
+
"placement"?: FloatingUIPlacement;
|
|
2663
|
+
/**
|
|
2664
|
+
* Indicates whether or not the Date picker input is required to be filled out before submitting the form.
|
|
2665
|
+
*/
|
|
2666
|
+
"required"?: boolean;
|
|
2667
|
+
/**
|
|
2668
|
+
* Whether to show days outside the month
|
|
2669
|
+
*/
|
|
2670
|
+
"showOutsideDays"?: boolean;
|
|
2671
|
+
/**
|
|
2672
|
+
* Represents the skidding between the Date picker panel and the input element.
|
|
2673
|
+
*/
|
|
2674
|
+
"skidding"?: number;
|
|
2675
|
+
/**
|
|
2676
|
+
* Defines the strategy to position the Date picker panel
|
|
2677
|
+
*/
|
|
2678
|
+
"strategy"?: 'fixed' | 'absolute';
|
|
2679
|
+
/**
|
|
2680
|
+
* It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection
|
|
2681
|
+
*/
|
|
2682
|
+
"type"?: TDatePickerType;
|
|
2683
|
+
/**
|
|
2684
|
+
* The validation status of the Select input.
|
|
2685
|
+
* @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.
|
|
2686
|
+
*/
|
|
2687
|
+
"validationStatus"?: TInputValidation;
|
|
2688
|
+
/**
|
|
2689
|
+
* The select input value represents the currently selected date or range and can be used to reset the field to a previous value. All dates are expected in ISO-8601 format (YYYY-MM-DD).
|
|
2690
|
+
*/
|
|
2691
|
+
"value"?: string;
|
|
2692
|
+
}
|
|
2430
2693
|
interface BqDialog {
|
|
2431
2694
|
/**
|
|
2432
2695
|
* Corder radius of the dialog component
|
|
@@ -3593,6 +3856,7 @@ declare namespace LocalJSX {
|
|
|
3593
3856
|
"bq-button": BqButton;
|
|
3594
3857
|
"bq-card": BqCard;
|
|
3595
3858
|
"bq-checkbox": BqCheckbox;
|
|
3859
|
+
"bq-date-picker": BqDatePicker;
|
|
3596
3860
|
"bq-dialog": BqDialog;
|
|
3597
3861
|
"bq-divider": BqDivider;
|
|
3598
3862
|
"bq-drawer": BqDrawer;
|
|
@@ -3642,6 +3906,7 @@ declare module "@stencil/core" {
|
|
|
3642
3906
|
"bq-button": LocalJSX.BqButton & JSXBase.HTMLAttributes<HTMLBqButtonElement>;
|
|
3643
3907
|
"bq-card": LocalJSX.BqCard & JSXBase.HTMLAttributes<HTMLBqCardElement>;
|
|
3644
3908
|
"bq-checkbox": LocalJSX.BqCheckbox & JSXBase.HTMLAttributes<HTMLBqCheckboxElement>;
|
|
3909
|
+
"bq-date-picker": LocalJSX.BqDatePicker & JSXBase.HTMLAttributes<HTMLBqDatePickerElement>;
|
|
3645
3910
|
"bq-dialog": LocalJSX.BqDialog & JSXBase.HTMLAttributes<HTMLBqDialogElement>;
|
|
3646
3911
|
"bq-divider": LocalJSX.BqDivider & JSXBase.HTMLAttributes<HTMLBqDividerElement>;
|
|
3647
3912
|
"bq-drawer": LocalJSX.BqDrawer & JSXBase.HTMLAttributes<HTMLBqDrawerElement>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'cally';
|
|
2
|
+
import type { JSXBase } from '../../stencil-public-runtime';
|
|
3
|
+
import type { CalendarDateProps, CalendarMonthProps, CalendarMultiProps, CalendarRangeProps } from 'cally';
|
|
4
|
+
declare module '@stencil/core' {
|
|
5
|
+
namespace JSX {
|
|
6
|
+
interface IntrinsicElements {
|
|
7
|
+
'calendar-multi': CalendarMultiProps & JSXBase.HTMLAttributes<CalendarMultiProps>;
|
|
8
|
+
'calendar-range': CalendarRangeProps & JSXBase.HTMLAttributes<CalendarDateProps>;
|
|
9
|
+
'calendar-date': CalendarDateProps & JSXBase.HTMLAttributes<CalendarDateProps>;
|
|
10
|
+
'calendar-month': CalendarMonthProps & JSXBase.HTMLAttributes<CalendarMonthProps>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ export type BqHTMLTagNameMap = keyof {
|
|
|
9
9
|
* @param {Object} attributes - attributes that will be set on element instance
|
|
10
10
|
* @returns {Object} attributes that were set on element instance
|
|
11
11
|
*/
|
|
12
|
-
export declare const setProperties: <T extends keyof HTMLElementTagNameMap = "bq-checkbox" | "bq-switch" | "bq-radio-group" | "bq-select" | "bq-textarea" | "bq-input" | "bq-slider" | "bq-accordion" | "bq-accordion-group" | "bq-alert" | "bq-avatar" | "bq-badge" | "bq-breadcrumb" | "bq-breadcrumb-item" | "bq-button" | "bq-card" | "bq-dialog" | "bq-divider" | "bq-drawer" | "bq-dropdown" | "bq-empty-state" | "bq-icon" | "bq-notification" | "bq-option" | "bq-option-group" | "bq-option-list" | "bq-panel" | "bq-progress" | "bq-radio" | "bq-side-menu" | "bq-side-menu-item" | "bq-spinner" | "bq-status" | "bq-step-item" | "bq-steps" | "bq-tab" | "bq-tab-group" | "bq-tag" | "bq-toast" | "bq-tooltip">(page: E2EPage, element: T, attributes: Partial<HTMLElementTagNameMap[T]>) => Promise<{}>;
|
|
12
|
+
export declare const setProperties: <T extends keyof HTMLElementTagNameMap = "bq-checkbox" | "bq-switch" | "bq-radio-group" | "bq-select" | "bq-textarea" | "bq-input" | "bq-slider" | "bq-accordion" | "bq-accordion-group" | "bq-alert" | "bq-avatar" | "bq-badge" | "bq-breadcrumb" | "bq-breadcrumb-item" | "bq-button" | "bq-card" | "bq-date-picker" | "bq-dialog" | "bq-divider" | "bq-drawer" | "bq-dropdown" | "bq-empty-state" | "bq-icon" | "bq-notification" | "bq-option" | "bq-option-group" | "bq-option-list" | "bq-panel" | "bq-progress" | "bq-radio" | "bq-side-menu" | "bq-side-menu-item" | "bq-spinner" | "bq-status" | "bq-step-item" | "bq-steps" | "bq-tab" | "bq-tab-group" | "bq-tag" | "bq-toast" | "bq-tooltip">(page: E2EPage, element: T, attributes: Partial<HTMLElementTagNameMap[T]>) => Promise<{}>;
|