@beeq/core 1.11.0 → 1.11.1
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/bq-accordion.entry.esm.js.map +1 -1
- package/dist/beeq/bq-alert.entry.esm.js.map +1 -1
- package/dist/beeq/bq-avatar.entry.esm.js.map +1 -1
- package/dist/beeq/bq-badge.entry.esm.js.map +1 -1
- package/dist/beeq/bq-breadcrumb-item.entry.esm.js.map +1 -1
- package/dist/beeq/bq-breadcrumb.entry.esm.js.map +1 -1
- package/dist/beeq/bq-button.bq-icon.entry.esm.js.map +1 -1
- package/dist/beeq/bq-card.entry.esm.js.map +1 -1
- package/dist/beeq/bq-checkbox.entry.esm.js.map +1 -1
- package/dist/beeq/bq-date-picker.entry.esm.js.map +1 -1
- package/dist/beeq/bq-dialog.entry.esm.js.map +1 -1
- package/dist/beeq/bq-divider.entry.esm.js.map +1 -1
- package/dist/beeq/bq-drawer.entry.esm.js.map +1 -1
- package/dist/beeq/bq-dropdown.bq-panel.entry.esm.js.map +1 -1
- package/dist/beeq/bq-empty-state.entry.esm.js.map +1 -1
- package/dist/beeq/bq-input.entry.esm.js.map +1 -1
- package/dist/beeq/bq-notification.entry.esm.js.map +1 -1
- package/dist/beeq/bq-option-group.entry.esm.js.map +1 -1
- package/dist/beeq/bq-option-list.bq-tag.entry.esm.js.map +1 -1
- package/dist/beeq/bq-option.entry.esm.js.map +1 -1
- package/dist/beeq/bq-page-title.entry.esm.js.map +1 -1
- package/dist/beeq/bq-progress.entry.esm.js.map +1 -1
- package/dist/beeq/bq-radio-group.entry.esm.js.map +1 -1
- package/dist/beeq/bq-radio.entry.esm.js.map +1 -1
- package/dist/beeq/bq-select.entry.esm.js.map +1 -1
- package/dist/beeq/bq-side-menu-item.entry.esm.js.map +1 -1
- package/dist/beeq/bq-side-menu.entry.esm.js.map +1 -1
- package/dist/beeq/bq-slider.entry.esm.js.map +1 -1
- package/dist/beeq/bq-spinner.entry.esm.js.map +1 -1
- package/dist/beeq/bq-status.entry.esm.js.map +1 -1
- package/dist/beeq/bq-step-item.entry.esm.js.map +1 -1
- package/dist/beeq/bq-steps.entry.esm.js.map +1 -1
- package/dist/beeq/bq-switch.entry.esm.js.map +1 -1
- package/dist/beeq/bq-tab-group.entry.esm.js.map +1 -1
- package/dist/beeq/bq-tab.entry.esm.js.map +1 -1
- package/dist/beeq/bq-textarea.entry.esm.js.map +1 -1
- package/dist/beeq/bq-toast.entry.esm.js.map +1 -1
- package/dist/beeq/bq-tooltip.entry.esm.js.map +1 -1
- package/dist/beeq/index.esm.js +1 -1
- package/dist/beeq/index.esm.js.map +1 -1
- package/dist/beeq/{p-a9643899.entry.js → p-0bf5e367.entry.js} +2 -2
- package/dist/beeq/p-0bf5e367.entry.js.map +1 -0
- package/dist/beeq/{p-dd896cd8.entry.js → p-16defa87.entry.js} +2 -2
- package/dist/beeq/p-16defa87.entry.js.map +1 -0
- package/dist/beeq/{p-5ce77af6.entry.js → p-17de1ba4.entry.js} +2 -2
- package/dist/beeq/p-17de1ba4.entry.js.map +1 -0
- package/dist/beeq/p-1df8fe61.entry.js +6 -0
- package/dist/beeq/p-1df8fe61.entry.js.map +1 -0
- package/dist/beeq/{p-b520bdb8.entry.js → p-24749f67.entry.js} +2 -2
- package/dist/beeq/p-24749f67.entry.js.map +1 -0
- package/dist/beeq/{p-8eb8612b.entry.js → p-38add122.entry.js} +2 -2
- package/dist/beeq/p-38add122.entry.js.map +1 -0
- package/dist/beeq/{p-d1dd36ca.entry.js → p-454fa535.entry.js} +2 -2
- package/dist/beeq/p-454fa535.entry.js.map +1 -0
- package/dist/beeq/{p-ba12d135.entry.js → p-4647a0fb.entry.js} +2 -2
- package/dist/beeq/p-4647a0fb.entry.js.map +1 -0
- package/dist/beeq/{p-87430ad8.entry.js → p-4725a142.entry.js} +2 -2
- package/dist/beeq/p-4725a142.entry.js.map +1 -0
- package/dist/beeq/{p-6852a0b0.entry.js → p-51351eed.entry.js} +2 -2
- package/dist/beeq/p-51351eed.entry.js.map +1 -0
- package/dist/beeq/{p-96f6c9ae.entry.js → p-5b0a56e7.entry.js} +2 -2
- package/dist/beeq/p-5b0a56e7.entry.js.map +1 -0
- package/dist/beeq/{p-3dca7a14.entry.js → p-5c23324d.entry.js} +2 -2
- package/dist/beeq/p-5c23324d.entry.js.map +1 -0
- package/dist/beeq/{p-60db3689.entry.js → p-5dd30c4c.entry.js} +2 -2
- package/dist/beeq/p-5dd30c4c.entry.js.map +1 -0
- package/dist/beeq/{p-eb2cfa90.entry.js → p-5df7df5d.entry.js} +2 -2
- package/dist/beeq/p-5df7df5d.entry.js.map +1 -0
- package/dist/beeq/{p-c023718e.entry.js → p-5e8c8e90.entry.js} +2 -2
- package/dist/beeq/p-5e8c8e90.entry.js.map +1 -0
- package/dist/beeq/{p-1c6ef374.entry.js → p-662578a2.entry.js} +2 -2
- package/dist/beeq/p-662578a2.entry.js.map +1 -0
- package/dist/beeq/{p-3c7397cf.entry.js → p-6ae2ca4b.entry.js} +2 -2
- package/dist/beeq/p-6ae2ca4b.entry.js.map +1 -0
- package/dist/beeq/{p-0deed5d1.entry.js → p-7ca73c06.entry.js} +2 -2
- package/dist/beeq/p-7ca73c06.entry.js.map +1 -0
- package/dist/beeq/{p-7063e5c2.entry.js → p-84e62655.entry.js} +2 -2
- package/dist/beeq/p-84e62655.entry.js.map +1 -0
- package/dist/beeq/{p-dc4d2d77.entry.js → p-93d6f4f0.entry.js} +2 -2
- package/dist/beeq/p-93d6f4f0.entry.js.map +1 -0
- package/dist/beeq/{p-2f008ed1.entry.js → p-9585221e.entry.js} +2 -2
- package/dist/beeq/p-9585221e.entry.js.map +1 -0
- package/dist/beeq/{p-477f032f.entry.js → p-9e9baa82.entry.js} +2 -2
- package/dist/beeq/p-9e9baa82.entry.js.map +1 -0
- package/dist/beeq/{p-DMf9D39m.js → p-BNvWMggA.js} +2 -2
- package/dist/beeq/{p-DMf9D39m.js.map → p-BNvWMggA.js.map} +1 -1
- package/dist/beeq/p-BOf9EC3C.js +7 -0
- package/dist/beeq/p-BOf9EC3C.js.map +1 -0
- package/dist/beeq/{p-Ci39rxuU.js → p-BRbYDZoo.js} +2 -2
- package/dist/beeq/{p-Ci39rxuU.js.map → p-BRbYDZoo.js.map} +1 -1
- package/dist/beeq/{p-D9ofIraD.js → p-CVw85-WU.js} +1 -1
- package/dist/beeq/p-CVw85-WU.js.map +1 -0
- package/dist/beeq/p-CgIw4Syg.js +6 -0
- package/dist/beeq/{p-y49NXy_H.js.map → p-CgIw4Syg.js.map} +1 -1
- package/dist/beeq/p-DdvbF5yL.js.map +1 -1
- package/dist/beeq/{p-48811a09.entry.js → p-b1d2e472.entry.js} +2 -2
- package/dist/beeq/p-b1d2e472.entry.js.map +1 -0
- package/dist/beeq/p-b7efb629.entry.js +6 -0
- package/dist/beeq/p-b7efb629.entry.js.map +1 -0
- package/dist/beeq/{p-9305e1a2.entry.js → p-b88b2573.entry.js} +2 -2
- package/dist/beeq/p-b88b2573.entry.js.map +1 -0
- package/dist/beeq/p-bfca08f5.entry.js +6 -0
- package/dist/beeq/p-bfca08f5.entry.js.map +1 -0
- package/dist/beeq/{p-6a10175b.entry.js → p-c63b89d2.entry.js} +2 -2
- package/dist/beeq/p-c63b89d2.entry.js.map +1 -0
- package/dist/beeq/{p-3e8980ff.entry.js → p-ca93325b.entry.js} +2 -2
- package/dist/beeq/p-ca93325b.entry.js.map +1 -0
- package/dist/beeq/{p-04745600.entry.js → p-cb0639d5.entry.js} +2 -2
- package/dist/beeq/p-cb0639d5.entry.js.map +1 -0
- package/dist/beeq/{p-78be94d2.entry.js → p-cd53041f.entry.js} +2 -2
- package/dist/beeq/p-cd53041f.entry.js.map +1 -0
- package/dist/beeq/{p-f12a127c.entry.js → p-d8118f0b.entry.js} +2 -2
- package/dist/beeq/p-d8118f0b.entry.js.map +1 -0
- package/dist/beeq/p-d9c5ab1d.entry.js +6 -0
- package/dist/beeq/p-d9c5ab1d.entry.js.map +1 -0
- package/dist/beeq/{p-1421f4a3.entry.js → p-dc5aa386.entry.js} +2 -2
- package/dist/beeq/p-dc5aa386.entry.js.map +1 -0
- package/dist/beeq/{p-fbc38c77.entry.js → p-dcda1181.entry.js} +2 -2
- package/dist/beeq/p-dcda1181.entry.js.map +1 -0
- package/dist/beeq/{p-6d429afd.entry.js → p-e5c12fd7.entry.js} +2 -2
- package/dist/beeq/p-e5c12fd7.entry.js.map +1 -0
- package/dist/beeq/p-eaa8c123.entry.js +6 -0
- package/dist/beeq/p-eaa8c123.entry.js.map +1 -0
- package/dist/beeq/{p-8280145e.entry.js → p-eb47c1ae.entry.js} +2 -2
- package/dist/beeq/p-eb47c1ae.entry.js.map +1 -0
- package/dist/beeq/{p-f8d5c1ab.entry.js → p-eb6eac82.entry.js} +2 -2
- package/dist/beeq/p-eb6eac82.entry.js.map +1 -0
- package/dist/beeq/{p-37a2fb82.entry.js → p-f691f00c.entry.js} +2 -2
- package/dist/beeq/p-f691f00c.entry.js.map +1 -0
- package/dist/beeq/p-igOoibr-.js +6 -0
- package/dist/beeq/p-igOoibr-.js.map +1 -0
- package/dist/beeq/{p-CVMdKx0v.js → p-lysmVw2n.js} +2 -2
- package/dist/beeq/{p-CVMdKx0v.js.map → p-lysmVw2n.js.map} +1 -1
- package/dist/beeq.html-custom-data.json +2 -11
- package/dist/cjs/beeq.cjs.js +3 -5
- package/dist/cjs/beeq.cjs.js.map +1 -1
- package/dist/cjs/bq-accordion-group.cjs.entry.js +1 -3
- package/dist/cjs/bq-accordion.cjs.entry.js +18 -10
- package/dist/cjs/bq-accordion.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-alert.cjs.entry.js +12 -11
- package/dist/cjs/bq-alert.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-avatar.cjs.entry.js +5 -7
- package/dist/cjs/bq-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-badge.cjs.entry.js +4 -4
- package/dist/cjs/bq-badge.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +4 -6
- package/dist/cjs/bq-breadcrumb-item.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-breadcrumb.cjs.entry.js +6 -4
- package/dist/cjs/bq-breadcrumb.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-button.bq-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-button_2.cjs.entry.js +14 -12
- package/dist/cjs/bq-card.cjs.entry.js +2 -4
- package/dist/cjs/bq-card.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/bq-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-date-picker.cjs.entry.js +69 -26
- package/dist/cjs/bq-date-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-dialog.cjs.entry.js +12 -8
- package/dist/cjs/bq-dialog.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-divider.cjs.entry.js +7 -7
- package/dist/cjs/bq-divider.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-drawer.cjs.entry.js +8 -6
- package/dist/cjs/bq-drawer.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-dropdown.bq-panel.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-dropdown_2.cjs.entry.js +12 -8
- package/dist/cjs/bq-empty-state.cjs.entry.js +9 -7
- package/dist/cjs/bq-empty-state.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-input.cjs.entry.js +29 -23
- package/dist/cjs/bq-input.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-notification.cjs.entry.js +10 -6
- package/dist/cjs/bq-notification.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-option-group.cjs.entry.js +2 -4
- package/dist/cjs/bq-option-group.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-option-list.bq-tag.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-option-list_2.cjs.entry.js +6 -6
- package/dist/cjs/bq-option.cjs.entry.js +17 -12
- package/dist/cjs/bq-option.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-page-title.cjs.entry.js +10 -6
- package/dist/cjs/bq-page-title.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-progress.cjs.entry.js +6 -8
- package/dist/cjs/bq-progress.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-radio-group.cjs.entry.js +15 -11
- package/dist/cjs/bq-radio-group.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-radio.cjs.entry.js +4 -4
- package/dist/cjs/bq-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-select.cjs.entry.js +76 -31
- package/dist/cjs/bq-select.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-side-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/bq-side-menu-item.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-side-menu.cjs.entry.js +11 -9
- package/dist/cjs/bq-side-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-slider.cjs.entry.js +25 -14
- package/dist/cjs/bq-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-spinner.cjs.entry.js +12 -14
- package/dist/cjs/bq-spinner.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-status.cjs.entry.js +2 -4
- package/dist/cjs/bq-status.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-step-item.cjs.entry.js +7 -9
- package/dist/cjs/bq-step-item.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-steps.cjs.entry.js +5 -5
- package/dist/cjs/bq-steps.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-switch.cjs.entry.js +8 -6
- package/dist/cjs/bq-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-tab-group.cjs.entry.js +9 -9
- package/dist/cjs/bq-tab-group.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-tab.cjs.entry.js +8 -6
- package/dist/cjs/bq-tab.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-textarea.cjs.entry.js +16 -15
- package/dist/cjs/bq-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-toast.cjs.entry.js +4 -7
- package/dist/cjs/bq-toast.entry.cjs.js.map +1 -1
- package/dist/cjs/bq-tooltip.cjs.entry.js +9 -5
- package/dist/cjs/bq-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/date-C-h2CBps.js +170 -0
- package/dist/cjs/date-C-h2CBps.js.map +1 -0
- package/dist/cjs/{debounce-DFaAa1Cu.js → debounce-D0tIpUuS.js} +4 -4
- package/dist/cjs/debounce-D0tIpUuS.js.map +1 -0
- package/dist/cjs/{index-tFN0ax76.js → index-D7RDSS0K.js} +73 -47
- package/dist/cjs/{index-tFN0ax76.js.map → index-D7RDSS0K.js.map} +1 -1
- package/dist/cjs/{index-CLoLF-_B.js → index-g8MkV15i.js} +78 -65
- package/dist/cjs/index-g8MkV15i.js.map +1 -0
- package/dist/cjs/index.cjs.js +7 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/{isDefined-K4EcmGLZ.js → isDefined-D24L82z9.js} +3 -3
- package/dist/cjs/{isDefined-K4EcmGLZ.js.map → isDefined-D24L82z9.js.map} +1 -1
- package/dist/cjs/{isString-CHgmxASW.js → isString-CA9m1aBg.js} +3 -3
- package/dist/cjs/{isString-CHgmxASW.js.map → isString-CA9m1aBg.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -4
- package/dist/cjs/{stringToArray-DTx7uqZ4.js → stringToArray-B747BpEA.js} +4 -4
- package/dist/cjs/{stringToArray-DTx7uqZ4.js.map → stringToArray-B747BpEA.js.map} +1 -1
- package/dist/cjs/transition-C0S-pYqN.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/bq-accordion.js +17 -11
- package/dist/collection/components/accordion/bq-accordion.js.map +1 -1
- package/dist/collection/components/accordion/helper/index.js +6 -2
- package/dist/collection/components/accordion/helper/index.js.map +1 -1
- package/dist/collection/components/accordion/scss/bq-accordion.css +1 -1
- package/dist/collection/components/accordion-group/bq-accordion-group.js +6 -6
- package/dist/collection/components/alert/bq-alert.js +25 -22
- package/dist/collection/components/alert/bq-alert.js.map +1 -1
- package/dist/collection/components/avatar/bq-avatar.js +16 -16
- package/dist/collection/components/avatar/bq-avatar.js.map +1 -1
- package/dist/collection/components/badge/bq-badge.js +10 -8
- package/dist/collection/components/badge/bq-badge.js.map +1 -1
- package/dist/collection/components/breadcrumb/bq-breadcrumb.js +7 -3
- package/dist/collection/components/breadcrumb/bq-breadcrumb.js.map +1 -1
- package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js +6 -6
- package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js.map +1 -1
- package/dist/collection/components/button/bq-button.js +23 -19
- package/dist/collection/components/button/bq-button.js.map +1 -1
- package/dist/collection/components/button/scss/bq-button.css +1 -1
- package/dist/collection/components/card/bq-card.js +5 -5
- package/dist/collection/components/card/bq-card.js.map +1 -1
- package/dist/collection/components/checkbox/bq-checkbox.js +19 -17
- package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
- package/dist/collection/components/date-picker/bq-date-picker.js +103 -61
- package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
- package/dist/collection/components/dialog/bq-dialog.js +20 -14
- package/dist/collection/components/dialog/bq-dialog.js.map +1 -1
- package/dist/collection/components/divider/bq-divider.js +17 -15
- package/dist/collection/components/divider/bq-divider.js.map +1 -1
- package/dist/collection/components/drawer/bq-drawer.js +16 -12
- package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
- package/dist/collection/components/dropdown/bq-dropdown.js +18 -14
- package/dist/collection/components/dropdown/bq-dropdown.js.map +1 -1
- package/dist/collection/components/empty-state/bq-empty-state.js +10 -6
- package/dist/collection/components/empty-state/bq-empty-state.js.map +1 -1
- package/dist/collection/components/icon/bq-icon.js +17 -17
- package/dist/collection/components/icon/bq-icon.js.map +1 -1
- package/dist/collection/components/input/bq-input.js +89 -86
- package/dist/collection/components/input/bq-input.js.map +1 -1
- package/dist/collection/components/notification/bq-notification.js +21 -15
- package/dist/collection/components/notification/bq-notification.js.map +1 -1
- package/dist/collection/components/option/bq-option.js +42 -16
- package/dist/collection/components/option/bq-option.js.map +1 -1
- package/dist/collection/components/option/scss/bq-option.css +1 -1
- package/dist/collection/components/option-group/bq-option-group.js +1 -1
- package/dist/collection/components/option-group/bq-option-group.js.map +1 -1
- package/dist/collection/components/option-list/bq-option-list.js +1 -1
- package/dist/collection/components/option-list/bq-option-list.js.map +1 -1
- package/dist/collection/components/page-title/bq-page-title.js +9 -3
- package/dist/collection/components/page-title/bq-page-title.js.map +1 -1
- package/dist/collection/components/panel/bq-panel.js +10 -8
- package/dist/collection/components/panel/bq-panel.js.map +1 -1
- package/dist/collection/components/progress/bq-progress.js +14 -14
- package/dist/collection/components/progress/bq-progress.js.map +1 -1
- package/dist/collection/components/radio/bq-radio.js +16 -14
- package/dist/collection/components/radio/bq-radio.js.map +1 -1
- package/dist/collection/components/radio-group/bq-radio-group.js +25 -19
- package/dist/collection/components/radio-group/bq-radio-group.js.map +1 -1
- package/dist/collection/components/select/bq-select.js +101 -54
- package/dist/collection/components/select/bq-select.js.map +1 -1
- package/dist/collection/components/select/scss/bq-select.css +1 -1
- package/dist/collection/components/side-menu/bq-side-menu.js +12 -8
- package/dist/collection/components/side-menu/bq-side-menu.js.map +1 -1
- package/dist/collection/components/side-menu/scss/bq-side-menu.css +1 -1
- package/dist/collection/components/side-menu-item/bq-side-menu-item.js +8 -6
- package/dist/collection/components/side-menu-item/bq-side-menu-item.js.map +1 -1
- package/dist/collection/components/slider/bq-slider.js +36 -23
- package/dist/collection/components/slider/bq-slider.js.map +1 -1
- package/dist/collection/components/spinner/bq-spinner.js +14 -14
- package/dist/collection/components/spinner/bq-spinner.js.map +1 -1
- package/dist/collection/components/spinner/bq-spinner.types.js +1 -1
- package/dist/collection/components/spinner/bq-spinner.types.js.map +1 -1
- package/dist/collection/components/spinner/scss/bq-spinner.css +1 -1
- package/dist/collection/components/status/bq-status.js +3 -3
- package/dist/collection/components/status/bq-status.js.map +1 -1
- package/dist/collection/components/step-item/bq-step-item.js +11 -11
- package/dist/collection/components/step-item/bq-step-item.js.map +1 -1
- package/dist/collection/components/steps/bq-steps.js +8 -6
- package/dist/collection/components/steps/bq-steps.js.map +1 -1
- package/dist/collection/components/switch/bq-switch.js +22 -18
- package/dist/collection/components/switch/bq-switch.js.map +1 -1
- package/dist/collection/components/tab/bq-tab.js +17 -13
- package/dist/collection/components/tab/bq-tab.js.map +1 -1
- package/dist/collection/components/tab-group/bq-tab-group.js +15 -13
- package/dist/collection/components/tab-group/bq-tab-group.js.map +1 -1
- package/dist/collection/components/tag/bq-tag.js +19 -17
- package/dist/collection/components/tag/bq-tag.js.map +1 -1
- package/dist/collection/components/tag/helper/index.js.map +1 -1
- package/dist/collection/components/textarea/bq-textarea.js +51 -62
- package/dist/collection/components/textarea/bq-textarea.js.map +1 -1
- package/dist/collection/components/toast/bq-toast.js +11 -12
- package/dist/collection/components/toast/bq-toast.js.map +1 -1
- package/dist/collection/components/tooltip/bq-tooltip.js +14 -8
- package/dist/collection/components/tooltip/bq-tooltip.js.map +1 -1
- package/dist/collection/services/interfaces/floating-ui.js.map +1 -1
- package/dist/collection/services/libraries/floating-ui/index.js +34 -25
- package/dist/collection/services/libraries/floating-ui/index.js.map +1 -1
- package/dist/collection/shared/test-utils/sleep.js +1 -1
- package/dist/collection/shared/test-utils/sleep.js.map +1 -1
- package/dist/collection/shared/utils/date.js +163 -0
- package/dist/collection/shared/utils/date.js.map +1 -0
- package/dist/collection/shared/utils/debounce.js +2 -1
- package/dist/collection/shared/utils/debounce.js.map +1 -1
- package/dist/collection/shared/utils/index.js +1 -0
- package/dist/collection/shared/utils/index.js.map +1 -1
- package/dist/collection/shared/utils/isString.js +1 -1
- package/dist/collection/shared/utils/isString.js.map +1 -1
- package/dist/collection/shared/utils/setRafTimeout.js +0 -1
- package/dist/collection/shared/utils/setRafTimeout.js.map +1 -1
- package/dist/collection/tools/angular-value-accessor-config.js.map +1 -1
- package/dist/collection/tools/generate-custom-elements-json.js +2 -2
- package/dist/collection/tools/generate-custom-elements-json.js.map +1 -1
- package/dist/collection/tools/vue-model-config.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-accordion.js.map +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-badge.js +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-option.js.map +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-group.js.map +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-side-menu.js.map +1 -1
- package/dist/components/bq-slider.js +1 -1
- package/dist/components/bq-slider.js.map +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-steps.js.map +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-group.js.map +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/index.js.map +1 -1
- package/dist/components/{p-C4Jb3i-D.js → p-16lKXCDk.js} +2 -2
- package/dist/components/p-16lKXCDk.js.map +1 -0
- package/dist/components/{p-CjS2vgik.js → p-A6e1tN-B.js} +2 -2
- package/dist/components/p-A6e1tN-B.js.map +1 -0
- package/dist/components/{p-5er2o4Mn.js → p-B5XEhmuc.js} +2 -2
- package/dist/components/{p-5er2o4Mn.js.map → p-B5XEhmuc.js.map} +1 -1
- package/dist/components/{p-Bs3hKCXS.js → p-BBhidARY.js} +2 -2
- package/dist/components/p-BBhidARY.js.map +1 -0
- package/dist/components/{p-Ci39rxuU.js → p-BRbYDZoo.js} +2 -2
- package/dist/components/{p-D9ofIraD.js → p-CVw85-WU.js} +1 -1
- package/dist/components/p-CVw85-WU.js.map +1 -0
- package/dist/components/p-CXUO6Zub.js +6 -0
- package/dist/components/p-CXUO6Zub.js.map +1 -0
- package/dist/components/p-CgIw4Syg.js +6 -0
- package/dist/components/p-CgIw4Syg.js.map +1 -0
- package/dist/components/{p-k2047NJf.js → p-D14_9VoZ.js} +2 -2
- package/dist/components/{p-k2047NJf.js.map → p-D14_9VoZ.js.map} +1 -1
- package/dist/components/{p-fQPjV9jm.js → p-DGysEMss.js} +2 -2
- package/dist/components/p-DGysEMss.js.map +1 -0
- package/dist/components/p-DHdYy1q5.js +6 -0
- package/dist/components/p-DHdYy1q5.js.map +1 -0
- package/dist/components/p-DdvbF5yL.js.map +1 -1
- package/dist/components/{p-BIl7Vq5P.js → p-DokL_HVP.js} +2 -2
- package/dist/components/p-DokL_HVP.js.map +1 -0
- package/dist/components/{p-BPVTwD6U.js → p-eRUe5rRq.js} +2 -2
- package/dist/components/p-eRUe5rRq.js.map +1 -0
- package/dist/components/{p-CVMdKx0v.js → p-lysmVw2n.js} +2 -2
- package/dist/components/{p-CVMdKx0v.js.map → p-lysmVw2n.js.map} +1 -1
- package/dist/custom-elements.json +57 -61
- package/dist/esm/beeq.js +4 -6
- package/dist/esm/beeq.js.map +1 -1
- package/dist/esm/bq-accordion-group.entry.js +1 -3
- package/dist/esm/bq-accordion.entry.js +18 -10
- package/dist/esm/bq-accordion.entry.js.map +1 -1
- package/dist/esm/bq-alert.entry.js +12 -11
- package/dist/esm/bq-alert.entry.js.map +1 -1
- package/dist/esm/bq-avatar.entry.js +5 -7
- package/dist/esm/bq-avatar.entry.js.map +1 -1
- package/dist/esm/bq-badge.entry.js +4 -4
- package/dist/esm/bq-badge.entry.js.map +1 -1
- package/dist/esm/bq-breadcrumb-item.entry.js +4 -6
- package/dist/esm/bq-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/bq-breadcrumb.entry.js +6 -4
- package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
- package/dist/esm/bq-button.bq-icon.entry.js.map +1 -1
- package/dist/esm/bq-button_2.entry.js +14 -12
- package/dist/esm/bq-card.entry.js +2 -4
- package/dist/esm/bq-card.entry.js.map +1 -1
- package/dist/esm/bq-checkbox.entry.js +5 -5
- package/dist/esm/bq-checkbox.entry.js.map +1 -1
- package/dist/esm/bq-date-picker.entry.js +69 -26
- package/dist/esm/bq-date-picker.entry.js.map +1 -1
- package/dist/esm/bq-dialog.entry.js +12 -8
- package/dist/esm/bq-dialog.entry.js.map +1 -1
- package/dist/esm/bq-divider.entry.js +7 -7
- package/dist/esm/bq-divider.entry.js.map +1 -1
- package/dist/esm/bq-drawer.entry.js +8 -6
- package/dist/esm/bq-drawer.entry.js.map +1 -1
- package/dist/esm/bq-dropdown.bq-panel.entry.js.map +1 -1
- package/dist/esm/bq-dropdown_2.entry.js +12 -8
- package/dist/esm/bq-empty-state.entry.js +9 -7
- package/dist/esm/bq-empty-state.entry.js.map +1 -1
- package/dist/esm/bq-input.entry.js +29 -23
- package/dist/esm/bq-input.entry.js.map +1 -1
- package/dist/esm/bq-notification.entry.js +10 -6
- package/dist/esm/bq-notification.entry.js.map +1 -1
- package/dist/esm/bq-option-group.entry.js +2 -4
- package/dist/esm/bq-option-group.entry.js.map +1 -1
- package/dist/esm/bq-option-list.bq-tag.entry.js.map +1 -1
- package/dist/esm/bq-option-list_2.entry.js +6 -6
- package/dist/esm/bq-option.entry.js +17 -12
- package/dist/esm/bq-option.entry.js.map +1 -1
- package/dist/esm/bq-page-title.entry.js +10 -6
- package/dist/esm/bq-page-title.entry.js.map +1 -1
- package/dist/esm/bq-progress.entry.js +6 -8
- package/dist/esm/bq-progress.entry.js.map +1 -1
- package/dist/esm/bq-radio-group.entry.js +15 -11
- package/dist/esm/bq-radio-group.entry.js.map +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 +76 -31
- package/dist/esm/bq-select.entry.js.map +1 -1
- package/dist/esm/bq-side-menu-item.entry.js +6 -6
- package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
- package/dist/esm/bq-side-menu.entry.js +11 -9
- package/dist/esm/bq-side-menu.entry.js.map +1 -1
- package/dist/esm/bq-slider.entry.js +25 -14
- package/dist/esm/bq-slider.entry.js.map +1 -1
- package/dist/esm/bq-spinner.entry.js +12 -14
- package/dist/esm/bq-spinner.entry.js.map +1 -1
- package/dist/esm/bq-status.entry.js +2 -4
- package/dist/esm/bq-status.entry.js.map +1 -1
- package/dist/esm/bq-step-item.entry.js +7 -9
- package/dist/esm/bq-step-item.entry.js.map +1 -1
- package/dist/esm/bq-steps.entry.js +5 -5
- package/dist/esm/bq-steps.entry.js.map +1 -1
- package/dist/esm/bq-switch.entry.js +8 -6
- package/dist/esm/bq-switch.entry.js.map +1 -1
- package/dist/esm/bq-tab-group.entry.js +9 -9
- package/dist/esm/bq-tab-group.entry.js.map +1 -1
- package/dist/esm/bq-tab.entry.js +8 -6
- package/dist/esm/bq-tab.entry.js.map +1 -1
- package/dist/esm/bq-textarea.entry.js +16 -15
- package/dist/esm/bq-textarea.entry.js.map +1 -1
- package/dist/esm/bq-toast.entry.js +4 -7
- package/dist/esm/bq-toast.entry.js.map +1 -1
- package/dist/esm/bq-tooltip.entry.js +9 -5
- package/dist/esm/bq-tooltip.entry.js.map +1 -1
- package/dist/esm/date-igOoibr-.js +167 -0
- package/dist/esm/date-igOoibr-.js.map +1 -0
- package/dist/esm/{debounce-cjfQylgg.js → debounce-gVeuteEJ.js} +4 -4
- package/dist/esm/debounce-gVeuteEJ.js.map +1 -0
- package/dist/esm/{index-DDw-pDpy.js → index-BOf9EC3C.js} +78 -65
- package/dist/esm/index-BOf9EC3C.js.map +1 -0
- package/dist/esm/{index-y49NXy_H.js → index-CgIw4Syg.js} +73 -47
- package/dist/esm/{index-y49NXy_H.js.map → index-CgIw4Syg.js.map} +1 -1
- package/dist/esm/index.js +5 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{isDefined-DjmcVyb_.js → isDefined-DvmFa_bD.js} +3 -3
- package/dist/esm/{isDefined-DjmcVyb_.js.map → isDefined-DvmFa_bD.js.map} +1 -1
- package/dist/esm/{isString-CVMdKx0v.js → isString-lysmVw2n.js} +3 -3
- package/dist/esm/{isString-CVMdKx0v.js.map → isString-lysmVw2n.js.map} +1 -1
- package/dist/esm/loader.js +3 -5
- package/dist/esm/{stringToArray-DD7NecAG.js → stringToArray-CIJArUww.js} +4 -4
- package/dist/esm/{stringToArray-DD7NecAG.js.map → stringToArray-CIJArUww.js.map} +1 -1
- package/dist/esm/transition-DdvbF5yL.js.map +1 -1
- package/dist/hydrate/index.d.ts +2 -0
- package/dist/hydrate/index.js +955 -544
- package/dist/hydrate/index.mjs +955 -544
- package/dist/jest.config.js +3 -0
- package/dist/jest.config.js.map +1 -1
- package/dist/stencil.config.js +3 -2
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/date-picker/bq-date-picker.d.ts +5 -2
- package/dist/types/components/dropdown/bq-dropdown.d.ts +1 -0
- package/dist/types/components/icon/bq-icon.d.ts +1 -1
- package/dist/types/components/input/bq-input.d.ts +10 -11
- package/dist/types/components/option/bq-option.d.ts +4 -2
- package/dist/types/components/select/bq-select.d.ts +1 -0
- package/dist/types/components/spinner/bq-spinner.types.d.ts +1 -1
- package/dist/types/components/step-item/bq-step-item.d.ts +1 -1
- package/dist/types/components/tag/helper/index.d.ts +1 -1
- package/dist/types/components/textarea/bq-textarea.d.ts +5 -9
- package/dist/types/components.d.ts +40 -42
- package/dist/types/global.d.ts +1 -4
- package/dist/types/home/runner/work/BEEQ/BEEQ/.stencil/packages/beeq/jest.config.d.ts +3 -0
- package/dist/types/services/interfaces/floating-ui.d.ts +1 -1
- package/dist/types/services/libraries/floating-ui/index.d.ts +5 -2
- package/dist/types/shared/test-utils/setProperties.d.ts +1 -1
- package/dist/types/shared/test-utils/sleep.d.ts +1 -1
- package/dist/types/shared/utils/date.d.ts +18 -0
- package/dist/types/shared/utils/debounce.d.ts +1 -1
- package/dist/types/shared/utils/index.d.ts +1 -0
- package/dist/types/shared/utils/setRafTimeout.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +49 -2
- package/dist/types/tools/angular-value-accessor-config.d.ts +1 -1
- package/dist/types/tools/vue-model-config.d.ts +1 -1
- package/package.json +1 -1
- package/dist/beeq/p-04745600.entry.js.map +0 -1
- package/dist/beeq/p-0deed5d1.entry.js.map +0 -1
- package/dist/beeq/p-1421f4a3.entry.js.map +0 -1
- package/dist/beeq/p-1c6ef374.entry.js.map +0 -1
- package/dist/beeq/p-1cd1ae48.entry.js +0 -6
- package/dist/beeq/p-1cd1ae48.entry.js.map +0 -1
- package/dist/beeq/p-2f008ed1.entry.js.map +0 -1
- package/dist/beeq/p-37a2fb82.entry.js.map +0 -1
- package/dist/beeq/p-3c7397cf.entry.js.map +0 -1
- package/dist/beeq/p-3dca7a14.entry.js.map +0 -1
- package/dist/beeq/p-3e8980ff.entry.js.map +0 -1
- package/dist/beeq/p-477f032f.entry.js.map +0 -1
- package/dist/beeq/p-48811a09.entry.js.map +0 -1
- package/dist/beeq/p-540d625a.entry.js +0 -6
- package/dist/beeq/p-540d625a.entry.js.map +0 -1
- package/dist/beeq/p-5ce77af6.entry.js.map +0 -1
- package/dist/beeq/p-60db3689.entry.js.map +0 -1
- package/dist/beeq/p-6852a0b0.entry.js.map +0 -1
- package/dist/beeq/p-6a10175b.entry.js.map +0 -1
- package/dist/beeq/p-6d429afd.entry.js.map +0 -1
- package/dist/beeq/p-7063e5c2.entry.js.map +0 -1
- package/dist/beeq/p-78be94d2.entry.js.map +0 -1
- package/dist/beeq/p-8280145e.entry.js.map +0 -1
- package/dist/beeq/p-87430ad8.entry.js.map +0 -1
- package/dist/beeq/p-8eb8612b.entry.js.map +0 -1
- package/dist/beeq/p-9305e1a2.entry.js.map +0 -1
- package/dist/beeq/p-96f6c9ae.entry.js.map +0 -1
- package/dist/beeq/p-D9ofIraD.js.map +0 -1
- package/dist/beeq/p-DDw-pDpy.js +0 -7
- package/dist/beeq/p-DDw-pDpy.js.map +0 -1
- package/dist/beeq/p-a9643899.entry.js.map +0 -1
- package/dist/beeq/p-b268b017.entry.js +0 -6
- package/dist/beeq/p-b268b017.entry.js.map +0 -1
- package/dist/beeq/p-b520bdb8.entry.js.map +0 -1
- package/dist/beeq/p-ba12d135.entry.js.map +0 -1
- package/dist/beeq/p-c023718e.entry.js.map +0 -1
- package/dist/beeq/p-d1dd36ca.entry.js.map +0 -1
- package/dist/beeq/p-dc4d2d77.entry.js.map +0 -1
- package/dist/beeq/p-dd896cd8.entry.js.map +0 -1
- package/dist/beeq/p-e7bd48a0.entry.js +0 -6
- package/dist/beeq/p-e7bd48a0.entry.js.map +0 -1
- package/dist/beeq/p-eb2cfa90.entry.js.map +0 -1
- package/dist/beeq/p-f12a127c.entry.js.map +0 -1
- package/dist/beeq/p-f189b65d.entry.js +0 -6
- package/dist/beeq/p-f189b65d.entry.js.map +0 -1
- package/dist/beeq/p-f8d5c1ab.entry.js.map +0 -1
- package/dist/beeq/p-fbc38c77.entry.js.map +0 -1
- package/dist/beeq/p-y49NXy_H.js +0 -6
- package/dist/cjs/bq-accordion-group.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-badge.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-card.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-dialog.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-divider.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-drawer.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-empty-state.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-input.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-notification.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-option-group.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-option-list_2.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-option.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-page-title.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-progress.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-select.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-side-menu.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-spinner.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-status.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-step-item.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-steps.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-tab-group.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-textarea.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/bq-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/debounce-DFaAa1Cu.js.map +0 -1
- package/dist/cjs/index-CLoLF-_B.js.map +0 -1
- package/dist/components/p-BIl7Vq5P.js.map +0 -1
- package/dist/components/p-BPVTwD6U.js.map +0 -1
- package/dist/components/p-Bkf_oCvP.js +0 -6
- package/dist/components/p-Bkf_oCvP.js.map +0 -1
- package/dist/components/p-Bs3hKCXS.js.map +0 -1
- package/dist/components/p-C4Jb3i-D.js.map +0 -1
- package/dist/components/p-CjS2vgik.js.map +0 -1
- package/dist/components/p-D9ofIraD.js.map +0 -1
- package/dist/components/p-DE7kLeHf.js +0 -6
- package/dist/components/p-DE7kLeHf.js.map +0 -1
- package/dist/components/p-fQPjV9jm.js.map +0 -1
- package/dist/components/p-y49NXy_H.js +0 -6
- package/dist/components/p-y49NXy_H.js.map +0 -1
- package/dist/esm/bq-button_2.entry.js.map +0 -1
- package/dist/esm/bq-dropdown_2.entry.js.map +0 -1
- package/dist/esm/bq-option-list_2.entry.js.map +0 -1
- package/dist/esm/debounce-cjfQylgg.js.map +0 -1
- package/dist/esm/index-DDw-pDpy.js.map +0 -1
- /package/dist/components/{p-Ci39rxuU.js.map → p-BRbYDZoo.js.map} +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by Endavans
|
|
3
|
+
* © https://beeq.design - Apache 2 License.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Static date parsing patterns
|
|
9
|
+
*/
|
|
10
|
+
const DATE_PATTERNS = [
|
|
11
|
+
{
|
|
12
|
+
// Matches "30 May 2024" or "30 January 2024"
|
|
13
|
+
regex: /^(\d{1,2})\s+([a-z]+)\s+(\d{4})$/i,
|
|
14
|
+
parse: (m, months) => ({
|
|
15
|
+
day: +m[1],
|
|
16
|
+
month: months[m[2].toLowerCase()],
|
|
17
|
+
year: +m[3],
|
|
18
|
+
}),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
// Matches "05/30/2024", "30-05-2024", "30.05.2024", "05.30.2024" (with heuristic for day/month)
|
|
22
|
+
regex: /^(\d{1,2})[\s\-/.](\d{1,2})[\s\-/.](\d{4})$/,
|
|
23
|
+
parse: (m, _, locale) => {
|
|
24
|
+
const { day, month } = parseNumericDate(+m[1], +m[2], locale);
|
|
25
|
+
return { day, month, year: +m[3] };
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
// Matches "May 30, 2024" or "January 1, 1970" (with optional comma)
|
|
30
|
+
regex: /^([a-z]+)\s+(\d{1,2}),?\s+(\d{4})$/i,
|
|
31
|
+
parse: (m, months) => ({
|
|
32
|
+
month: months[m[1].toLowerCase()],
|
|
33
|
+
day: +m[2],
|
|
34
|
+
year: +m[3],
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
// Matches "2024-05-30" (ISO format without parsing as Date first)
|
|
39
|
+
regex: /^(\d{4})-(\d{2})-(\d{2})$/,
|
|
40
|
+
parse: (m) => ({
|
|
41
|
+
year: +m[1],
|
|
42
|
+
month: +m[2] - 1,
|
|
43
|
+
day: +m[3],
|
|
44
|
+
}),
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
const monthNamesCache = new Map();
|
|
48
|
+
/**
|
|
49
|
+
* Gets localized month names for the given locale (both short and long forms)
|
|
50
|
+
* Caches results for performance
|
|
51
|
+
* @param {Intl.LocalesArgument} locale - The locale identifier, e.g., 'en-GB', 'fr-FR', etc.
|
|
52
|
+
* @returns {Record<string, number>} Mapping of month names to month indices
|
|
53
|
+
*/
|
|
54
|
+
const getMonthNamesForLocale = (locale) => {
|
|
55
|
+
const cacheKey = typeof locale === 'string' ? locale : JSON.stringify(locale);
|
|
56
|
+
const cachedMonthNames = monthNamesCache.get(cacheKey);
|
|
57
|
+
if (cachedMonthNames)
|
|
58
|
+
return cachedMonthNames;
|
|
59
|
+
const monthMap = {};
|
|
60
|
+
const shortFormatter = new Intl.DateTimeFormat(locale, { month: 'short' });
|
|
61
|
+
const longFormatter = new Intl.DateTimeFormat(locale, { month: 'long' });
|
|
62
|
+
for (let month = 0; month < 12; month++) {
|
|
63
|
+
const date = new Date(2024, month, 1);
|
|
64
|
+
monthMap[shortFormatter.format(date).toLowerCase()] = month;
|
|
65
|
+
monthMap[longFormatter.format(date).toLowerCase()] = month;
|
|
66
|
+
}
|
|
67
|
+
monthNamesCache.set(cacheKey, monthMap);
|
|
68
|
+
return monthMap;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Parses day-month-year or month-day-year numeric date format
|
|
72
|
+
* Uses heuristic: if any number > 12, treat it as day, otherwise defaults to locale preference
|
|
73
|
+
* @param {number} first - The first numeric part (day or month)
|
|
74
|
+
* @param {number} second - The second numeric part (month or day)
|
|
75
|
+
* @param {Intl.LocalesArgument} locale - The locale for determining format preference
|
|
76
|
+
* @returns {{day: number, month: number}} Object with day and month (0-based)
|
|
77
|
+
*/
|
|
78
|
+
const parseNumericDate = (first, second, locale = 'en-GB') => {
|
|
79
|
+
// If first number > 12, it must be the day (DD/MM format)
|
|
80
|
+
if (first > 12)
|
|
81
|
+
return { day: first, month: second - 1 };
|
|
82
|
+
// If second number > 12, it must be the day (MM/DD format)
|
|
83
|
+
if (second > 12)
|
|
84
|
+
return { day: second, month: first - 1 };
|
|
85
|
+
// Both numbers <= 12: ambiguous case
|
|
86
|
+
// Use locale to determine format preference
|
|
87
|
+
const localeStr = typeof locale === 'string' ? locale : locale?.[0] || 'en-GB';
|
|
88
|
+
const usesMMDD = ['en-US', 'en-CA'].some((l) => localeStr.startsWith(l));
|
|
89
|
+
if (usesMMDD) {
|
|
90
|
+
// US/Canada format: MM/DD
|
|
91
|
+
return { day: second, month: first - 1 };
|
|
92
|
+
}
|
|
93
|
+
// Default to DD/MM (European/most of world format)
|
|
94
|
+
return { day: first, month: second - 1 };
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Validates that a date is actually valid (not auto-corrected by Date constructor)
|
|
98
|
+
* @param {number} day - Day of the month
|
|
99
|
+
* @param {number} month - Month (0-based)
|
|
100
|
+
* @param {number} year - Full year
|
|
101
|
+
* @returns {boolean} True if the date is valid
|
|
102
|
+
*/
|
|
103
|
+
const isDateValid = (day, month, year) => {
|
|
104
|
+
const date = new Date(year, month, day);
|
|
105
|
+
return date.getDate() === day && date.getMonth() === month && date.getFullYear() === year;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Validates and creates a Date object from day, month, and year
|
|
109
|
+
* @param {number} day - Day of the month
|
|
110
|
+
* @param {number} month - Month (0-based)
|
|
111
|
+
* @param {number} year - Full year
|
|
112
|
+
* @returns {Date | null} Valid Date object or null if invalid
|
|
113
|
+
*/
|
|
114
|
+
const createValidDate = (day, month, year) => {
|
|
115
|
+
if (month === undefined || !day || !year)
|
|
116
|
+
return null;
|
|
117
|
+
if (!isDateValid(day, month, year))
|
|
118
|
+
return null;
|
|
119
|
+
return new Date(year, month, day);
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Parses various date input formats and returns a Date object
|
|
123
|
+
* Supports:
|
|
124
|
+
* - ISO format: "2024-05-30"
|
|
125
|
+
* - Text format: "30 May 2024", "May 30, 2024", "30 January 2024", "January 1, 1970" (locale-aware)
|
|
126
|
+
* - Numeric formats: "30/05/2024", "05-30-2024", "30.05.2024", "05.30.2024" (with heuristic for day/month)
|
|
127
|
+
*
|
|
128
|
+
* @param {string} inputValue - The date string to parse
|
|
129
|
+
* @param {Intl.LocalesArgument} locale - The locale for month name recognition (defaults to 'en-GB')
|
|
130
|
+
* @returns {Date | null} Parsed Date object or null if parsing fails
|
|
131
|
+
*/
|
|
132
|
+
const parseDateInput = (inputValue, locale = 'en-GB') => {
|
|
133
|
+
if (!inputValue?.trim())
|
|
134
|
+
return null;
|
|
135
|
+
// Try ISO format first
|
|
136
|
+
const isoDate = new Date(`${inputValue}T00:00:00`);
|
|
137
|
+
if (!Number.isNaN(isoDate.getTime()) && isValidISODate(inputValue))
|
|
138
|
+
return isoDate;
|
|
139
|
+
const monthMap = getMonthNamesForLocale(locale);
|
|
140
|
+
for (const { regex, parse } of DATE_PATTERNS) {
|
|
141
|
+
const match = regex.exec(inputValue);
|
|
142
|
+
if (!match)
|
|
143
|
+
continue;
|
|
144
|
+
const { day, month, year } = parse(match, monthMap, locale);
|
|
145
|
+
const date = createValidDate(day, month, year);
|
|
146
|
+
if (date)
|
|
147
|
+
return date;
|
|
148
|
+
}
|
|
149
|
+
return null;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Validates if a string is in ISO date format (YYYY-MM-DD) with actual valid date values
|
|
153
|
+
* @param {string} dateStr - The date string to validate
|
|
154
|
+
* @returns {boolean} True if the date string is valid in ISO format and represents an actual valid date
|
|
155
|
+
*/
|
|
156
|
+
const isValidISODate = (dateStr) => {
|
|
157
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(dateStr))
|
|
158
|
+
return false;
|
|
159
|
+
const [yearStr, monthStr, dayStr] = dateStr.split('-');
|
|
160
|
+
const year = +yearStr;
|
|
161
|
+
const month = +monthStr - 1;
|
|
162
|
+
const day = +dayStr;
|
|
163
|
+
return isDateValid(day, month, year);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
exports.isValidISODate = isValidISODate;
|
|
167
|
+
exports.parseDateInput = parseDateInput;
|
|
168
|
+
//# sourceMappingURL=date-C-h2CBps.js.map
|
|
169
|
+
|
|
170
|
+
//# sourceMappingURL=date-C-h2CBps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-C-h2CBps.js","sources":["../../packages/beeq/src/shared/utils/date.ts"],"sourcesContent":["/**\n * Date parsing pattern definition\n */\ntype TDatePattern = {\n regex: RegExp;\n parse: (\n match: RegExpExecArray,\n monthMap: Record<string, number>,\n locale?: Intl.LocalesArgument,\n ) => { day: number; month: number; year: number };\n};\n\n/**\n * Static date parsing patterns\n */\nconst DATE_PATTERNS: TDatePattern[] = [\n {\n // Matches \"30 May 2024\" or \"30 January 2024\"\n regex: /^(\\d{1,2})\\s+([a-z]+)\\s+(\\d{4})$/i,\n parse: (m, months) => ({\n day: +m[1],\n month: months[m[2].toLowerCase()],\n year: +m[3],\n }),\n },\n {\n // Matches \"05/30/2024\", \"30-05-2024\", \"30.05.2024\", \"05.30.2024\" (with heuristic for day/month)\n regex: /^(\\d{1,2})[\\s\\-/.](\\d{1,2})[\\s\\-/.](\\d{4})$/,\n parse: (m, _, locale) => {\n const { day, month } = parseNumericDate(+m[1], +m[2], locale);\n return { day, month, year: +m[3] };\n },\n },\n {\n // Matches \"May 30, 2024\" or \"January 1, 1970\" (with optional comma)\n regex: /^([a-z]+)\\s+(\\d{1,2}),?\\s+(\\d{4})$/i,\n parse: (m, months) => ({\n month: months[m[1].toLowerCase()],\n day: +m[2],\n year: +m[3],\n }),\n },\n {\n // Matches \"2024-05-30\" (ISO format without parsing as Date first)\n regex: /^(\\d{4})-(\\d{2})-(\\d{2})$/,\n parse: (m) => ({\n year: +m[1],\n month: +m[2] - 1,\n day: +m[3],\n }),\n },\n];\n\nconst monthNamesCache = new Map<string, Record<string, number>>();\n\n/**\n * Gets localized month names for the given locale (both short and long forms)\n * Caches results for performance\n * @param {Intl.LocalesArgument} locale - The locale identifier, e.g., 'en-GB', 'fr-FR', etc.\n * @returns {Record<string, number>} Mapping of month names to month indices\n */\nconst getMonthNamesForLocale = (locale: Intl.LocalesArgument): Record<string, number> => {\n const cacheKey = typeof locale === 'string' ? locale : JSON.stringify(locale);\n\n const cachedMonthNames = monthNamesCache.get(cacheKey);\n if (cachedMonthNames) return cachedMonthNames;\n\n const monthMap: Record<string, number> = {};\n const shortFormatter = new Intl.DateTimeFormat(locale, { month: 'short' });\n const longFormatter = new Intl.DateTimeFormat(locale, { month: 'long' });\n\n for (let month = 0; month < 12; month++) {\n const date = new Date(2024, month, 1);\n monthMap[shortFormatter.format(date).toLowerCase()] = month;\n monthMap[longFormatter.format(date).toLowerCase()] = month;\n }\n\n monthNamesCache.set(cacheKey, monthMap);\n return monthMap;\n};\n\n/**\n * Parses day-month-year or month-day-year numeric date format\n * Uses heuristic: if any number > 12, treat it as day, otherwise defaults to locale preference\n * @param {number} first - The first numeric part (day or month)\n * @param {number} second - The second numeric part (month or day)\n * @param {Intl.LocalesArgument} locale - The locale for determining format preference\n * @returns {{day: number, month: number}} Object with day and month (0-based)\n */\nconst parseNumericDate = (\n first: number,\n second: number,\n locale: Intl.LocalesArgument = 'en-GB',\n): { day: number; month: number } => {\n // If first number > 12, it must be the day (DD/MM format)\n if (first > 12) return { day: first, month: second - 1 };\n\n // If second number > 12, it must be the day (MM/DD format)\n if (second > 12) return { day: second, month: first - 1 };\n\n // Both numbers <= 12: ambiguous case\n // Use locale to determine format preference\n const localeStr = typeof locale === 'string' ? locale : locale?.[0] || 'en-GB';\n const usesMMDD = ['en-US', 'en-CA'].some((l) => localeStr.startsWith(l));\n\n if (usesMMDD) {\n // US/Canada format: MM/DD\n return { day: second, month: first - 1 };\n }\n\n // Default to DD/MM (European/most of world format)\n return { day: first, month: second - 1 };\n};\n\n/**\n * Validates that a date is actually valid (not auto-corrected by Date constructor)\n * @param {number} day - Day of the month\n * @param {number} month - Month (0-based)\n * @param {number} year - Full year\n * @returns {boolean} True if the date is valid\n */\nconst isDateValid = (day: number, month: number, year: number): boolean => {\n const date = new Date(year, month, day);\n return date.getDate() === day && date.getMonth() === month && date.getFullYear() === year;\n};\n\n/**\n * Validates and creates a Date object from day, month, and year\n * @param {number} day - Day of the month\n * @param {number} month - Month (0-based)\n * @param {number} year - Full year\n * @returns {Date | null} Valid Date object or null if invalid\n */\nconst createValidDate = (day: number, month: number, year: number): Date | null => {\n if (month === undefined || !day || !year) return null;\n if (!isDateValid(day, month, year)) return null;\n\n return new Date(year, month, day);\n};\n\n/**\n * Parses various date input formats and returns a Date object\n * Supports:\n * - ISO format: \"2024-05-30\"\n * - Text format: \"30 May 2024\", \"May 30, 2024\", \"30 January 2024\", \"January 1, 1970\" (locale-aware)\n * - Numeric formats: \"30/05/2024\", \"05-30-2024\", \"30.05.2024\", \"05.30.2024\" (with heuristic for day/month)\n *\n * @param {string} inputValue - The date string to parse\n * @param {Intl.LocalesArgument} locale - The locale for month name recognition (defaults to 'en-GB')\n * @returns {Date | null} Parsed Date object or null if parsing fails\n */\nexport const parseDateInput = (inputValue: string, locale: Intl.LocalesArgument = 'en-GB'): Date | null => {\n if (!inputValue?.trim()) return null;\n\n // Try ISO format first\n const isoDate = new Date(`${inputValue}T00:00:00`);\n if (!Number.isNaN(isoDate.getTime()) && isValidISODate(inputValue)) return isoDate;\n\n const monthMap = getMonthNamesForLocale(locale);\n\n for (const { regex, parse } of DATE_PATTERNS) {\n const match = regex.exec(inputValue);\n if (!match) continue;\n\n const { day, month, year } = parse(match, monthMap, locale);\n const date = createValidDate(day, month, year);\n if (date) return date;\n }\n\n return null;\n};\n\n/**\n * Validates if a string is in ISO date format (YYYY-MM-DD) with actual valid date values\n * @param {string} dateStr - The date string to validate\n * @returns {boolean} True if the date string is valid in ISO format and represents an actual valid date\n */\nexport const isValidISODate = (dateStr: string): boolean => {\n if (!/^\\d{4}-\\d{2}-\\d{2}$/.test(dateStr)) return false;\n\n const [yearStr, monthStr, dayStr] = dateStr.split('-');\n const year = +yearStr;\n const month = +monthStr - 1;\n const day = +dayStr;\n\n return isDateValid(day, month, year);\n};\n"],"names":[],"mappings":";;;;;;AAYA;;AAEG;AACH,MAAM,aAAa,GAAmB;AACpC,IAAA;;AAEE,QAAA,KAAK,EAAE,mCAAmC;QAC1C,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,MAAM;AACrB,YAAA,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;YACV,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,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
|
15
15
|
* @returns {void}
|
|
16
16
|
*/
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
17
|
const setRafTimeout = (func, wait, ...args) => {
|
|
19
18
|
const invokeFunc = () => func(...args);
|
|
20
19
|
if (wait === 0) {
|
|
@@ -53,7 +52,8 @@ const debounce = (func, wait = 0, immediate = false) => {
|
|
|
53
52
|
let cancel;
|
|
54
53
|
function debounceHandler(...args) {
|
|
55
54
|
cancel?.();
|
|
56
|
-
//
|
|
55
|
+
// We're doing this on purpose to capture and preserve the `this` context
|
|
56
|
+
// biome-ignore lint/complexity/noUselessThisAlias: <see above>
|
|
57
57
|
const context = this;
|
|
58
58
|
function timeoutHandler(fn, context, ...args) {
|
|
59
59
|
fn.apply(context, args);
|
|
@@ -72,6 +72,6 @@ const debounce = (func, wait = 0, immediate = false) => {
|
|
|
72
72
|
|
|
73
73
|
exports.debounce = debounce;
|
|
74
74
|
exports.setRafTimeout = setRafTimeout;
|
|
75
|
-
//# sourceMappingURL=debounce-
|
|
75
|
+
//# sourceMappingURL=debounce-D0tIpUuS.js.map
|
|
76
76
|
|
|
77
|
-
//# sourceMappingURL=debounce-
|
|
77
|
+
//# sourceMappingURL=debounce-D0tIpUuS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce-D0tIpUuS.js","sources":["../../packages/beeq/src/shared/utils/setRafTimeout.ts","../../packages/beeq/src/shared/utils/debounce.ts"],"sourcesContent":["/**\n * Implements setTimeout using requestAnimationFrame. Uses setTimeout if wait is 0.\n *\n * @param {Function} func - The function to timeout.\n * @param {Number} wait - The number of milliseconds to delay.\n * @param {Any[]} args - The arguments of func.\n * @returns {void}\n */\nexport const setRafTimeout = <TFunc extends (...args: unknown[]) => void>(\n func: TFunc,\n wait: number,\n ...args: Parameters<TFunc>\n): (() => void) => {\n const invokeFunc = () => func(...args);\n\n if (wait === 0) {\n const timeoutId = setTimeout(invokeFunc, wait);\n return () => clearTimeout(timeoutId);\n } else {\n let rafId: number;\n const currentTime = performance.now();\n\n const cancel = () => cancelAnimationFrame(rafId);\n\n const handleRequestAnimationFrame: FrameRequestCallback = (time) => {\n const delta = time - currentTime;\n\n cancel();\n\n if (delta < wait) {\n rafId = requestAnimationFrame(handleRequestAnimationFrame);\n } else {\n invokeFunc();\n }\n };\n\n rafId = requestAnimationFrame(handleRequestAnimationFrame);\n\n return cancel;\n }\n};\n","import { isNil } from './isNil';\nimport { setRafTimeout } from './setRafTimeout';\n\nexport type TFunction = (...args: unknown[]) => unknown;\n\ntype TDebounceFnReturn<T> = T extends unknown[] ? (...params: T) => void : (param: T) => void;\nexport type TDebounce<T> = TDebounceFnReturn<T> & { cancel: () => void } extends infer U ? U : never;\n\n/**\n * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed\n * since the last time the debounced function was invoked.\n *\n * @param {Function} func - The function to debounce.\n * @param {Number} wait - The number of milliseconds to delay.\n * @param {Boolean} immediate - If `true`, the function triggers immediately and then waits for the interval before being called again.\n * @return {Function} The new debounced function.\n */\nexport const debounce = <TFunc extends TFunction>(func: TFunc, wait = 0, immediate = false) => {\n let cancel: (() => void) | undefined;\n\n function debounceHandler(...args: Parameters<typeof func>) {\n cancel?.();\n\n // We're doing this on purpose to capture and preserve the `this` context\n // biome-ignore lint/complexity/noUselessThisAlias: <see above>\n const context = this;\n\n function timeoutHandler(fn: TFunc, context: unknown, ...args: Parameters<typeof fn>) {\n fn.apply(context, args);\n }\n\n if (immediate && isNil(cancel)) {\n func.apply(context, args);\n }\n\n cancel = setRafTimeout(timeoutHandler, wait, func, context, ...args);\n }\n\n return Object.assign(debounceHandler, {\n cancel: () => {\n cancel?.();\n },\n });\n};\n"],"names":["isNil"],"mappings":";;;;;;;;AAAA;;;;;;;AAOG;AACI,MAAM,aAAa,GAAG,CAC3B,IAAW,EACX,IAAY,EACZ,GAAG,IAAuB,KACV;IAChB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC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AAG,IAAI,CAAC;;AAGtE,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE;QACpC,MAAM,EAAE,MAAK;YACX,MAAM,IAAI;SACX;AACF,KAAA,CAAC;AACJ;;;;;"}
|
|
@@ -934,7 +934,7 @@ function isOverflowElement(element) {
|
|
|
934
934
|
overflowX,
|
|
935
935
|
overflowY,
|
|
936
936
|
display
|
|
937
|
-
} = getComputedStyle(element);
|
|
937
|
+
} = getComputedStyle$1(element);
|
|
938
938
|
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
939
939
|
}
|
|
940
940
|
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
@@ -956,7 +956,7 @@ const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspect
|
|
|
956
956
|
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
957
957
|
function isContainingBlock(elementOrCss) {
|
|
958
958
|
const webkit = isWebKit();
|
|
959
|
-
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
959
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
960
960
|
|
|
961
961
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
962
962
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
@@ -982,7 +982,7 @@ const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#documen
|
|
|
982
982
|
function isLastTraversableNode(node) {
|
|
983
983
|
return lastTraversableNodeNames.has(getNodeName(node));
|
|
984
984
|
}
|
|
985
|
-
function getComputedStyle(element) {
|
|
985
|
+
function getComputedStyle$1(element) {
|
|
986
986
|
return getWindow(element).getComputedStyle(element);
|
|
987
987
|
}
|
|
988
988
|
function getNodeScroll(element) {
|
|
@@ -1044,7 +1044,7 @@ function getFrameElement(win) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
1046
|
function getCssDimensions(element) {
|
|
1047
|
-
const css = getComputedStyle(element);
|
|
1047
|
+
const css = getComputedStyle$1(element);
|
|
1048
1048
|
// In testing environments, the `width` and `height` properties are empty
|
|
1049
1049
|
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
1050
1050
|
let width = parseFloat(css.width) || 0;
|
|
@@ -1149,7 +1149,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
1149
1149
|
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
1150
1150
|
const iframeScale = getScale(currentIFrame);
|
|
1151
1151
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1152
|
-
const css = getComputedStyle(currentIFrame);
|
|
1152
|
+
const css = getComputedStyle$1(currentIFrame);
|
|
1153
1153
|
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1154
1154
|
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1155
1155
|
x *= iframeScale.x;
|
|
@@ -1180,14 +1180,9 @@ function getWindowScrollBarX(element, rect) {
|
|
|
1180
1180
|
return rect.left + leftScroll;
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
|
-
function getHTMLOffset(documentElement, scroll
|
|
1184
|
-
if (ignoreScrollbarX === void 0) {
|
|
1185
|
-
ignoreScrollbarX = false;
|
|
1186
|
-
}
|
|
1183
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
1187
1184
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
1188
|
-
const x = htmlRect.left + scroll.scrollLeft - (
|
|
1189
|
-
// RTL <body> scrollbar.
|
|
1190
|
-
getWindowScrollBarX(documentElement, htmlRect));
|
|
1185
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
1191
1186
|
const y = htmlRect.top + scroll.scrollTop;
|
|
1192
1187
|
return {
|
|
1193
1188
|
x,
|
|
@@ -1226,7 +1221,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1226
1221
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1227
1222
|
}
|
|
1228
1223
|
}
|
|
1229
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll
|
|
1224
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1230
1225
|
return {
|
|
1231
1226
|
width: rect.width * scale.x,
|
|
1232
1227
|
height: rect.height * scale.y,
|
|
@@ -1249,7 +1244,7 @@ function getDocumentRect(element) {
|
|
|
1249
1244
|
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1250
1245
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1251
1246
|
const y = -scroll.scrollTop;
|
|
1252
|
-
if (getComputedStyle(body).direction === 'rtl') {
|
|
1247
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
|
1253
1248
|
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1254
1249
|
}
|
|
1255
1250
|
return {
|
|
@@ -1260,6 +1255,10 @@ function getDocumentRect(element) {
|
|
|
1260
1255
|
};
|
|
1261
1256
|
}
|
|
1262
1257
|
|
|
1258
|
+
// Safety check: ensure the scrollbar space is reasonable in case this
|
|
1259
|
+
// calculation is affected by unusual styles.
|
|
1260
|
+
// Most scrollbars leave 15-18px of space.
|
|
1261
|
+
const SCROLLBAR_MAX = 25;
|
|
1263
1262
|
function getViewportRect(element, strategy) {
|
|
1264
1263
|
const win = getWindow(element);
|
|
1265
1264
|
const html = getDocumentElement(element);
|
|
@@ -1277,6 +1276,24 @@ function getViewportRect(element, strategy) {
|
|
|
1277
1276
|
y = visualViewport.offsetTop;
|
|
1278
1277
|
}
|
|
1279
1278
|
}
|
|
1279
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
1280
|
+
// <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
|
|
1281
|
+
// visual width of the <html> but this is not considered in the size
|
|
1282
|
+
// of `html.clientWidth`.
|
|
1283
|
+
if (windowScrollbarX <= 0) {
|
|
1284
|
+
const doc = html.ownerDocument;
|
|
1285
|
+
const body = doc.body;
|
|
1286
|
+
const bodyStyles = getComputedStyle(body);
|
|
1287
|
+
const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
1288
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
1289
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
1290
|
+
width -= clippingStableScrollbarWidth;
|
|
1291
|
+
}
|
|
1292
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
1293
|
+
// If the <body> scrollbar is on the left, the width needs to be extended
|
|
1294
|
+
// by the scrollbar amount so there isn't extra space on the right.
|
|
1295
|
+
width += windowScrollbarX;
|
|
1296
|
+
}
|
|
1280
1297
|
return {
|
|
1281
1298
|
width,
|
|
1282
1299
|
height,
|
|
@@ -1327,7 +1344,7 @@ function hasFixedPositionAncestor(element, stopNode) {
|
|
|
1327
1344
|
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1328
1345
|
return false;
|
|
1329
1346
|
}
|
|
1330
|
-
return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1347
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1331
1348
|
}
|
|
1332
1349
|
|
|
1333
1350
|
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
@@ -1340,12 +1357,12 @@ function getClippingElementAncestors(element, cache) {
|
|
|
1340
1357
|
}
|
|
1341
1358
|
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1342
1359
|
let currentContainingBlockComputedStyle = null;
|
|
1343
|
-
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
1360
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
1344
1361
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1345
1362
|
|
|
1346
1363
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1347
1364
|
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1348
|
-
const computedStyle = getComputedStyle(currentNode);
|
|
1365
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
1349
1366
|
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1350
1367
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1351
1368
|
currentContainingBlockComputedStyle = null;
|
|
@@ -1446,11 +1463,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1446
1463
|
}
|
|
1447
1464
|
|
|
1448
1465
|
function isStaticPositioned(element) {
|
|
1449
|
-
return getComputedStyle(element).position === 'static';
|
|
1466
|
+
return getComputedStyle$1(element).position === 'static';
|
|
1450
1467
|
}
|
|
1451
1468
|
|
|
1452
1469
|
function getTrueOffsetParent(element, polyfill) {
|
|
1453
|
-
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1470
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
1454
1471
|
return null;
|
|
1455
1472
|
}
|
|
1456
1473
|
if (polyfill) {
|
|
@@ -1511,7 +1528,7 @@ const getElementRects = async function (data) {
|
|
|
1511
1528
|
};
|
|
1512
1529
|
|
|
1513
1530
|
function isRTL(element) {
|
|
1514
|
-
return getComputedStyle(element).direction === 'rtl';
|
|
1531
|
+
return getComputedStyle$1(element).direction === 'rtl';
|
|
1515
1532
|
}
|
|
1516
1533
|
|
|
1517
1534
|
const platform = {
|
|
@@ -1810,31 +1827,9 @@ class FloatingUI {
|
|
|
1810
1827
|
hide(),
|
|
1811
1828
|
],
|
|
1812
1829
|
});
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
transform: `translate(${this.roundByDPR(x)}px,${this.roundByDPR(y)}px)`,
|
|
1817
|
-
});
|
|
1818
|
-
if (this.options.arrow) {
|
|
1819
|
-
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
1820
|
-
const staticSide = {
|
|
1821
|
-
top: 'bottom',
|
|
1822
|
-
right: 'left',
|
|
1823
|
-
bottom: 'top',
|
|
1824
|
-
left: 'right',
|
|
1825
|
-
}[placement.split('-')[0]];
|
|
1826
|
-
Object.assign(this.options.arrow.style, {
|
|
1827
|
-
left: arrowX != null ? `${arrowX}px` : '',
|
|
1828
|
-
top: arrowY != null ? `${arrowY}px` : '',
|
|
1829
|
-
right: '',
|
|
1830
|
-
bottom: '',
|
|
1831
|
-
[staticSide]: '-4px',
|
|
1832
|
-
});
|
|
1833
|
-
}
|
|
1834
|
-
const { referenceHidden } = middlewareData.hide;
|
|
1835
|
-
Object.assign(this.panel.style, {
|
|
1836
|
-
visibility: referenceHidden ? 'hidden' : 'visible',
|
|
1837
|
-
});
|
|
1830
|
+
this.applyPanelPosition(x, y);
|
|
1831
|
+
this.applyArrowPosition(placement, middlewareData);
|
|
1832
|
+
this.applyVisibility(middlewareData);
|
|
1838
1833
|
})();
|
|
1839
1834
|
});
|
|
1840
1835
|
}
|
|
@@ -1854,6 +1849,37 @@ class FloatingUI {
|
|
|
1854
1849
|
},
|
|
1855
1850
|
};
|
|
1856
1851
|
}
|
|
1852
|
+
applyPanelPosition(x, y) {
|
|
1853
|
+
Object.assign(this.panel.style, {
|
|
1854
|
+
top: '0',
|
|
1855
|
+
left: '0',
|
|
1856
|
+
transform: `translate(${this.roundByDPR(x)}px,${this.roundByDPR(y)}px)`,
|
|
1857
|
+
});
|
|
1858
|
+
}
|
|
1859
|
+
applyArrowPosition(placement, middlewareData) {
|
|
1860
|
+
if (!this.options.arrow)
|
|
1861
|
+
return;
|
|
1862
|
+
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
1863
|
+
const staticSide = {
|
|
1864
|
+
top: 'bottom',
|
|
1865
|
+
right: 'left',
|
|
1866
|
+
bottom: 'top',
|
|
1867
|
+
left: 'right',
|
|
1868
|
+
}[placement.split('-')[0]];
|
|
1869
|
+
Object.assign(this.options.arrow.style, {
|
|
1870
|
+
left: arrowX != null ? `${arrowX}px` : '',
|
|
1871
|
+
top: arrowY != null ? `${arrowY}px` : '',
|
|
1872
|
+
right: '',
|
|
1873
|
+
bottom: '',
|
|
1874
|
+
[staticSide]: '-4px',
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
applyVisibility(middlewareData) {
|
|
1878
|
+
const { referenceHidden } = middlewareData.hide;
|
|
1879
|
+
Object.assign(this.panel.style, {
|
|
1880
|
+
visibility: referenceHidden ? 'hidden' : 'visible',
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1857
1883
|
roundByDPR(value) {
|
|
1858
1884
|
const dpr = window.devicePixelRatio || 1;
|
|
1859
1885
|
return Math.round(value * dpr) / dpr;
|
|
@@ -1861,6 +1887,6 @@ class FloatingUI {
|
|
|
1861
1887
|
}
|
|
1862
1888
|
|
|
1863
1889
|
exports.FloatingUI = FloatingUI;
|
|
1864
|
-
//# sourceMappingURL=index-
|
|
1890
|
+
//# sourceMappingURL=index-D7RDSS0K.js.map
|
|
1865
1891
|
|
|
1866
|
-
//# sourceMappingURL=index-
|
|
1892
|
+
//# sourceMappingURL=index-D7RDSS0K.js.map
|