@beeq/core 1.8.0-beta.2 → 1.8.0-beta.4
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.css +1 -1
- package/dist/beeq/beeq.esm.js +4 -4
- package/dist/beeq/beeq.esm.js.map +1 -1
- package/dist/beeq/index.esm.js +6 -6
- package/dist/beeq/{p-0c42c08a.js → p-01df4baa.js} +38 -23
- package/dist/beeq/p-01df4baa.js.map +1 -0
- package/dist/beeq/{p-7c06dfec.entry.js → p-03749fbf.entry.js} +74 -66
- package/dist/beeq/{p-7c06dfec.entry.js.map → p-03749fbf.entry.js.map} +1 -1
- package/dist/beeq/p-03e23dca.entry.js +105 -0
- package/dist/beeq/{p-600e7c38.entry.js.map → p-03e23dca.entry.js.map} +1 -1
- package/dist/beeq/{p-513bab02.js → p-0fce4de9.js} +2 -2
- package/dist/beeq/{p-951ba558.js → p-1defeea3.js} +19 -19
- package/dist/beeq/{p-951ba558.js.map → p-1defeea3.js.map} +1 -1
- package/dist/beeq/p-27974392.entry.js +197 -0
- package/dist/beeq/p-27974392.entry.js.map +1 -0
- package/dist/beeq/p-2b2d8b0c.entry.js +114 -0
- package/dist/beeq/{p-37466506.entry.js.map → p-2b2d8b0c.entry.js.map} +1 -1
- package/dist/beeq/p-3e3fd7b5.entry.js +87 -0
- package/dist/beeq/{p-12dbc6ac.entry.js.map → p-3e3fd7b5.entry.js.map} +1 -1
- package/dist/beeq/{p-0ebe73ef.entry.js → p-3ed73068.entry.js} +42 -38
- package/dist/beeq/{p-0ebe73ef.entry.js.map → p-3ed73068.entry.js.map} +1 -1
- package/dist/beeq/p-5a12011a.entry.js +161 -0
- package/dist/beeq/{p-e7d75b87.entry.js.map → p-5a12011a.entry.js.map} +1 -1
- package/dist/beeq/{p-0ab0b58d.js → p-5a9a73a0.js} +2 -1
- package/dist/beeq/p-5a9a73a0.js.map +1 -0
- package/dist/beeq/{p-4dd962a7.entry.js → p-5d51cadd.entry.js} +63 -46
- package/dist/beeq/{p-4dd962a7.entry.js.map → p-5d51cadd.entry.js.map} +1 -1
- package/dist/beeq/p-5d8d6717.entry.js +190 -0
- package/dist/beeq/{p-ceb3bb9a.entry.js.map → p-5d8d6717.entry.js.map} +1 -1
- package/dist/beeq/p-5fcbf15f.entry.js +158 -0
- package/dist/beeq/{p-ae94b9f8.entry.js.map → p-5fcbf15f.entry.js.map} +1 -1
- package/dist/beeq/p-60ab652b.entry.js +102 -0
- package/dist/beeq/{p-900d4e78.entry.js.map → p-60ab652b.entry.js.map} +1 -1
- package/dist/beeq/p-7695fc8d.entry.js +215 -0
- package/dist/beeq/p-7695fc8d.entry.js.map +1 -0
- package/dist/beeq/p-7aa47927.entry.js +215 -0
- package/dist/beeq/p-7aa47927.entry.js.map +1 -0
- package/dist/beeq/p-7ea146b8.entry.js +184 -0
- package/dist/beeq/p-7ea146b8.entry.js.map +1 -0
- package/dist/beeq/p-818cd6d7.entry.js +244 -0
- package/dist/beeq/{p-19df76ba.entry.js.map → p-818cd6d7.entry.js.map} +1 -1
- package/dist/beeq/p-89665044.entry.js +349 -0
- package/dist/beeq/p-89665044.entry.js.map +1 -0
- package/dist/beeq/p-8b6fc3ef.entry.js +135 -0
- package/dist/beeq/p-8b6fc3ef.entry.js.map +1 -0
- package/dist/beeq/p-908c57e9.entry.js +84 -0
- package/dist/beeq/{p-41033fe6.entry.js.map → p-908c57e9.entry.js.map} +1 -1
- package/dist/beeq/p-98de0101.entry.js +146 -0
- package/dist/beeq/p-98de0101.entry.js.map +1 -0
- package/dist/beeq/p-a84d4562.js +64 -0
- package/dist/beeq/p-a84d4562.js.map +1 -0
- package/dist/beeq/p-a94d15f9.entry.js +156 -0
- package/dist/beeq/{p-7089c66a.entry.js.map → p-a94d15f9.entry.js.map} +1 -1
- package/dist/beeq/p-ac0d84a6.entry.js +122 -0
- package/dist/beeq/{p-5eab4f55.entry.js.map → p-ac0d84a6.entry.js.map} +1 -1
- package/dist/beeq/p-b877d662.entry.js +412 -0
- package/dist/beeq/p-b877d662.entry.js.map +1 -0
- package/dist/beeq/p-bb14b231.entry.js +460 -0
- package/dist/beeq/p-bb14b231.entry.js.map +1 -0
- package/dist/beeq/{p-4a3d8532.entry.js → p-bc60faa1.entry.js} +21 -15
- package/dist/beeq/{p-4a3d8532.entry.js.map → p-bc60faa1.entry.js.map} +1 -1
- package/dist/beeq/p-be746e37.entry.js +269 -0
- package/dist/beeq/p-be746e37.entry.js.map +1 -0
- package/dist/beeq/{p-38d4bd8a.js → p-c78ae3c2.js} +270 -226
- package/dist/beeq/p-c78ae3c2.js.map +1 -0
- package/dist/beeq/p-cb917e68.entry.js +177 -0
- package/dist/beeq/p-cb917e68.entry.js.map +1 -0
- package/dist/beeq/p-cdd5b425.entry.js +274 -0
- package/dist/beeq/{p-734853f9.entry.js.map → p-cdd5b425.entry.js.map} +1 -1
- package/dist/beeq/p-d2f682a9.entry.js +530 -0
- package/dist/beeq/p-d2f682a9.entry.js.map +1 -0
- package/dist/beeq/{p-d7a88b16.js → p-d7ce7165.js} +6 -7
- package/dist/beeq/p-d7ce7165.js.map +1 -0
- package/dist/beeq/p-d8f7bf11.entry.js +272 -0
- package/dist/beeq/p-d8f7bf11.entry.js.map +1 -0
- package/dist/beeq/p-d9bcaeed.entry.js +320 -0
- package/dist/beeq/p-d9bcaeed.entry.js.map +1 -0
- package/dist/beeq/p-e06c8398.entry.js +294 -0
- package/dist/beeq/p-e06c8398.entry.js.map +1 -0
- package/dist/beeq/{p-11eaeb5d.entry.js → p-e6911710.entry.js} +116 -81
- package/dist/beeq/p-e6911710.entry.js.map +1 -0
- package/dist/beeq/p-f11a3beb.entry.js +90 -0
- package/dist/beeq/{p-4fc098bb.entry.js.map → p-f11a3beb.entry.js.map} +1 -1
- package/dist/beeq/{p-2ef721e1.entry.js → p-f1d6a960.entry.js} +59 -49
- package/dist/beeq/p-f1d6a960.entry.js.map +1 -0
- package/dist/beeq/p-f350516b.entry.js +154 -0
- package/dist/beeq/p-f350516b.entry.js.map +1 -0
- package/dist/beeq/p-f5d59aba.entry.js +136 -0
- package/dist/beeq/p-f5d59aba.entry.js.map +1 -0
- package/dist/beeq/p-f5eb8fff.entry.js +336 -0
- package/dist/beeq/p-f5eb8fff.entry.js.map +1 -0
- package/dist/beeq/p-f69d2900.entry.js +269 -0
- package/dist/beeq/p-f69d2900.entry.js.map +1 -0
- package/dist/beeq/p-fe57aa48.entry.js +135 -0
- package/dist/beeq/p-fe57aa48.entry.js.map +1 -0
- package/dist/cjs/{assetsPath-7ead23b7.js → assetsPath-6ac8935a.js} +9 -33
- package/dist/cjs/assetsPath-6ac8935a.js.map +1 -0
- package/dist/cjs/beeq.cjs.js +3 -3
- package/dist/cjs/beeq.cjs.js.map +1 -1
- package/dist/cjs/bq-accordion-group.cjs.entry.js +4 -4
- package/dist/cjs/bq-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-accordion.cjs.entry.js +84 -48
- package/dist/cjs/bq-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-alert.cjs.entry.js +58 -43
- package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-avatar.cjs.entry.js +41 -40
- package/dist/cjs/bq-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-badge.cjs.entry.js +43 -42
- package/dist/cjs/bq-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +40 -29
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-breadcrumb.cjs.entry.js +46 -30
- package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-button_2.cjs.entry.js +105 -86
- package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-card.cjs.entry.js +4 -4
- package/dist/cjs/bq-card.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-checkbox.cjs.entry.js +64 -54
- package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-date-picker.cjs.entry.js +161 -140
- package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dialog.cjs.entry.js +72 -50
- package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-divider.cjs.entry.js +24 -21
- package/dist/cjs/bq-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-drawer.cjs.entry.js +49 -34
- package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dropdown_2.cjs.entry.js +44 -34
- package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-empty-state.cjs.entry.js +26 -22
- package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-input.cjs.entry.js +117 -90
- package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-notification.cjs.entry.js +63 -48
- package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option-group.cjs.entry.js +3 -3
- package/dist/cjs/bq-option-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option-list_2.cjs.entry.js +74 -54
- package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option.cjs.entry.js +62 -45
- package/dist/cjs/bq-option.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-page-title.cjs.entry.js +37 -32
- package/dist/cjs/bq-page-title.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-progress.cjs.entry.js +4 -4
- package/dist/cjs/bq-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-radio-group.cjs.entry.js +13 -7
- package/dist/cjs/bq-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-radio.cjs.entry.js +43 -37
- package/dist/cjs/bq-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-select.cjs.entry.js +186 -168
- package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu-item.cjs.entry.js +69 -55
- package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu.cjs.entry.js +47 -32
- package/dist/cjs/bq-side-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-slider.cjs.entry.js +161 -145
- package/dist/cjs/bq-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-spinner.cjs.entry.js +53 -51
- package/dist/cjs/bq-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-status.cjs.entry.js +4 -4
- package/dist/cjs/bq-status.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-step-item.cjs.entry.js +16 -11
- package/dist/cjs/bq-step-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-steps.cjs.entry.js +13 -10
- package/dist/cjs/bq-steps.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-switch.cjs.entry.js +44 -32
- package/dist/cjs/bq-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tab-group.cjs.entry.js +65 -57
- package/dist/cjs/bq-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tab.cjs.entry.js +44 -33
- package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-textarea.cjs.entry.js +81 -58
- package/dist/cjs/bq-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-toast.cjs.entry.js +44 -37
- package/dist/cjs/bq-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tooltip.cjs.entry.js +46 -42
- package/dist/cjs/bq-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/{cssVariables-7139f0c6.js → cssVariables-a0e1e906.js} +3 -1
- package/dist/cjs/cssVariables-a0e1e906.js.map +1 -0
- package/dist/cjs/{debounce-f94a239b.js → debounce-1f7e1176.js} +3 -3
- package/dist/cjs/debounce-1f7e1176.js.map +1 -0
- package/dist/cjs/{index-1d3aac65.js → index-34edf639.js} +29 -14
- package/dist/cjs/index-34edf639.js.map +1 -0
- package/dist/cjs/{index-e4c116b6.js → index-fc7876d6.js} +63 -19
- package/dist/cjs/index-fc7876d6.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{isDefined-a9dd6d5b.js → isDefined-ee0026ed.js} +2 -2
- package/dist/cjs/{isDefined-a9dd6d5b.js.map → isDefined-ee0026ed.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{slot-dd6f7db9.js → slot-2fee189a.js} +3 -4
- package/dist/{beeq/p-d7a88b16.js.map → cjs/slot-2fee189a.js.map} +1 -1
- package/dist/collection/_storybook/foundation/helper/index.js +3 -3
- package/dist/collection/_storybook/foundation/helper/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/bq-accordion.js +72 -39
- package/dist/collection/components/accordion/bq-accordion.js.map +1 -1
- package/dist/collection/components/accordion/helper/index.js +10 -4
- 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 +5 -0
- package/dist/collection/components/accordion-group/bq-accordion-group.js.map +1 -1
- package/dist/collection/components/accordion-group/scss/bq-accordion-group.css +1 -1
- package/dist/collection/components/alert/bq-alert.js +55 -37
- package/dist/collection/components/alert/bq-alert.js.map +1 -1
- package/dist/collection/components/alert/scss/bq-alert.css +1 -1
- package/dist/collection/components/avatar/bq-avatar.js +40 -36
- package/dist/collection/components/avatar/bq-avatar.js.map +1 -1
- package/dist/collection/components/avatar/scss/bq-avatar.css +1 -1
- package/dist/collection/components/badge/bq-badge.js +40 -36
- package/dist/collection/components/badge/bq-badge.js.map +1 -1
- package/dist/collection/components/badge/scss/bq-badge.css +1 -1
- package/dist/collection/components/breadcrumb/bq-breadcrumb.js +45 -26
- package/dist/collection/components/breadcrumb/bq-breadcrumb.js.map +1 -1
- package/dist/collection/components/breadcrumb/scss/bq-breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js +40 -24
- package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js.map +1 -1
- package/dist/collection/components/breadcrumb-item/scss/bq-breadcrumb-item.css +1 -1
- package/dist/collection/components/button/bq-button.js +57 -41
- 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 -0
- package/dist/collection/components/card/bq-card.js.map +1 -1
- package/dist/collection/components/card/scss/bq-card.css +1 -1
- package/dist/collection/components/checkbox/bq-checkbox.js +63 -50
- package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
- package/dist/collection/components/checkbox/scss/bq-checkbox.css +1 -1
- package/dist/collection/components/date-picker/bq-date-picker.js +158 -134
- package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
- package/dist/collection/components/date-picker/scss/bq-date-picker.css +1 -1
- package/dist/collection/components/dialog/bq-dialog.js +70 -45
- package/dist/collection/components/dialog/bq-dialog.js.map +1 -1
- package/dist/collection/components/dialog/scss/bq-dialog.css +1 -1
- package/dist/collection/components/divider/bq-divider.js +21 -15
- package/dist/collection/components/divider/bq-divider.js.map +1 -1
- package/dist/collection/components/divider/scss/bq-divider.css +1 -1
- package/dist/collection/components/drawer/bq-drawer.js +47 -29
- 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 +34 -23
- package/dist/collection/components/dropdown/bq-dropdown.js.map +1 -1
- package/dist/collection/components/empty-state/bq-empty-state.js +25 -18
- package/dist/collection/components/empty-state/bq-empty-state.js.map +1 -1
- package/dist/collection/components/icon/bq-icon.js +41 -37
- package/dist/collection/components/icon/bq-icon.js.map +1 -1
- package/dist/collection/components/icon/helper/request.js +2 -0
- package/dist/collection/components/icon/helper/request.js.map +1 -1
- package/dist/collection/components/icon/scss/bq-icon.css +1 -1
- package/dist/collection/components/input/bq-input.js +113 -83
- package/dist/collection/components/input/bq-input.js.map +1 -1
- package/dist/collection/components/input/scss/bq-input.css +1 -1
- package/dist/collection/components/notification/bq-notification.js +60 -42
- package/dist/collection/components/notification/bq-notification.js.map +1 -1
- package/dist/collection/components/notification/scss/bq-notification.css +1 -1
- package/dist/collection/components/option/bq-option.js +60 -40
- 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 +5 -0
- package/dist/collection/components/option-group/bq-option-group.js.map +1 -1
- package/dist/collection/components/option-group/scss/bq-option-group.css +1 -1
- package/dist/collection/components/option-list/bq-option-list.js +10 -0
- package/dist/collection/components/option-list/bq-option-list.js.map +1 -1
- package/dist/collection/components/option-list/scss/bq-option-list.css +1 -1
- package/dist/collection/components/page-title/bq-page-title.js +35 -27
- package/dist/collection/components/page-title/bq-page-title.js.map +1 -1
- package/dist/collection/components/page-title/scss/bq-page-title.css +1 -1
- package/dist/collection/components/panel/bq-panel.js +11 -6
- package/dist/collection/components/panel/bq-panel.js.map +1 -1
- package/dist/collection/components/panel/scss/bq-panel.css +1 -1
- package/dist/collection/components/progress/bq-progress.js +5 -0
- package/dist/collection/components/progress/bq-progress.js.map +1 -1
- package/dist/collection/components/progress/scss/bq-progress.css +1 -1
- package/dist/collection/components/radio/bq-radio.js +43 -34
- package/dist/collection/components/radio/bq-radio.js.map +1 -1
- package/dist/collection/components/radio/scss/bq-radio.css +1 -1
- package/dist/collection/components/radio-group/bq-radio-group.js +12 -3
- package/dist/collection/components/radio-group/bq-radio-group.js.map +1 -1
- package/dist/collection/components/select/bq-select.js +182 -161
- 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 +44 -29
- 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 +68 -51
- package/dist/collection/components/side-menu-item/bq-side-menu-item.js.map +1 -1
- package/dist/collection/components/side-menu-item/scss/bq-side-menu-item.css +1 -1
- package/dist/collection/components/slider/bq-slider.js +159 -140
- package/dist/collection/components/slider/bq-slider.js.map +1 -1
- package/dist/collection/components/slider/scss/bq-slider.css +1 -1
- package/dist/collection/components/spinner/bq-spinner.js +51 -46
- package/dist/collection/components/spinner/bq-spinner.js.map +1 -1
- package/dist/collection/components/spinner/scss/bq-spinner.css +1 -1
- package/dist/collection/components/status/bq-status.js +5 -0
- package/dist/collection/components/status/bq-status.js.map +1 -1
- package/dist/collection/components/status/scss/bq-status.css +1 -1
- package/dist/collection/components/step-item/bq-step-item.js +17 -7
- package/dist/collection/components/step-item/bq-step-item.js.map +1 -1
- package/dist/collection/components/step-item/scss/bq-step-item.css +1 -1
- package/dist/collection/components/steps/bq-steps.js +12 -6
- package/dist/collection/components/steps/bq-steps.js.map +1 -1
- package/dist/collection/components/steps/scss/bq-steps.css +1 -1
- package/dist/collection/components/switch/bq-switch.js +42 -27
- package/dist/collection/components/switch/bq-switch.js.map +1 -1
- package/dist/collection/components/switch/scss/bq-switch.css +1 -1
- package/dist/collection/components/tab/bq-tab.js +42 -28
- package/dist/collection/components/tab/bq-tab.js.map +1 -1
- package/dist/collection/components/tab/scss/bq-tab.css +1 -1
- package/dist/collection/components/tab-group/bq-tab-group.js +64 -53
- package/dist/collection/components/tab-group/bq-tab-group.js.map +1 -1
- package/dist/collection/components/tag/bq-tag.js +64 -46
- package/dist/collection/components/tag/bq-tag.js.map +1 -1
- package/dist/collection/components/tag/scss/bq-tag.css +1 -1
- package/dist/collection/components/textarea/bq-textarea.js +78 -52
- package/dist/collection/components/textarea/bq-textarea.js.map +1 -1
- package/dist/collection/components/textarea/scss/bq-textarea.css +1 -1
- package/dist/collection/components/toast/bq-toast.js +42 -32
- package/dist/collection/components/toast/bq-toast.js.map +1 -1
- package/dist/collection/components/toast/scss/bq-toast.css +1 -1
- package/dist/collection/components/tooltip/bq-tooltip.js +45 -38
- package/dist/collection/components/tooltip/bq-tooltip.js.map +1 -1
- package/dist/collection/components/tooltip/scss/bq-tooltip.css +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/services/libraries/floating-ui/index.js +4 -0
- package/dist/collection/services/libraries/floating-ui/index.js.map +1 -1
- package/dist/collection/shared/utils/assetsPath.js +8 -32
- package/dist/collection/shared/utils/assetsPath.js.map +1 -1
- package/dist/collection/shared/utils/cssVariables.js +2 -0
- package/dist/collection/shared/utils/cssVariables.js.map +1 -1
- package/dist/collection/shared/utils/debounce.js +2 -2
- package/dist/collection/shared/utils/debounce.js.map +1 -1
- package/dist/collection/shared/utils/slot.js +2 -3
- package/dist/collection/shared/utils/slot.js.map +1 -1
- package/dist/components/assetsPath.js +8 -32
- package/dist/components/assetsPath.js.map +1 -1
- package/dist/components/bq-accordion-group.js +2 -2
- package/dist/components/bq-accordion-group.js.map +1 -1
- package/dist/components/bq-accordion.js +81 -45
- package/dist/components/bq-accordion.js.map +1 -1
- package/dist/components/bq-alert.js +54 -39
- package/dist/components/bq-alert.js.map +1 -1
- package/dist/components/bq-avatar.js +39 -38
- package/dist/components/bq-avatar.js.map +1 -1
- package/dist/components/bq-badge2.js +39 -38
- package/dist/components/bq-badge2.js.map +1 -1
- package/dist/components/bq-breadcrumb-item.js +37 -26
- package/dist/components/bq-breadcrumb-item.js.map +1 -1
- package/dist/components/bq-breadcrumb.js +44 -28
- package/dist/components/bq-breadcrumb.js.map +1 -1
- package/dist/components/bq-button2.js +56 -43
- package/dist/components/bq-button2.js.map +1 -1
- package/dist/components/bq-card.js +2 -2
- package/dist/components/bq-card.js.map +1 -1
- package/dist/components/bq-checkbox.js +62 -52
- package/dist/components/bq-checkbox.js.map +1 -1
- package/dist/components/bq-date-picker.js +157 -136
- package/dist/components/bq-date-picker.js.map +1 -1
- package/dist/components/bq-dialog.js +69 -47
- package/dist/components/bq-dialog.js.map +1 -1
- package/dist/components/bq-divider2.js +20 -17
- package/dist/components/bq-divider2.js.map +1 -1
- package/dist/components/bq-drawer.js +46 -31
- package/dist/components/bq-drawer.js.map +1 -1
- package/dist/components/bq-dropdown2.js +32 -24
- package/dist/components/bq-dropdown2.js.map +1 -1
- package/dist/components/bq-empty-state.js +23 -19
- package/dist/components/bq-empty-state.js.map +1 -1
- package/dist/components/bq-icon2.js +44 -38
- package/dist/components/bq-icon2.js.map +1 -1
- package/dist/components/bq-input.js +112 -85
- package/dist/components/bq-input.js.map +1 -1
- package/dist/components/bq-notification.js +59 -44
- package/dist/components/bq-notification.js.map +1 -1
- package/dist/components/bq-option-group.js +2 -2
- package/dist/components/bq-option-group.js.map +1 -1
- package/dist/components/bq-option-list2.js +7 -2
- package/dist/components/bq-option-list2.js.map +1 -1
- package/dist/components/bq-option.js +59 -42
- package/dist/components/bq-option.js.map +1 -1
- package/dist/components/bq-page-title.js +34 -29
- package/dist/components/bq-page-title.js.map +1 -1
- package/dist/components/bq-panel2.js +10 -8
- package/dist/components/bq-panel2.js.map +1 -1
- package/dist/components/bq-progress.js +2 -2
- package/dist/components/bq-progress.js.map +1 -1
- package/dist/components/bq-radio-group.js +10 -4
- package/dist/components/bq-radio-group.js.map +1 -1
- package/dist/components/bq-radio.js +43 -37
- package/dist/components/bq-radio.js.map +1 -1
- package/dist/components/bq-select.js +181 -163
- package/dist/components/bq-select.js.map +1 -1
- package/dist/components/bq-side-menu-item.js +67 -53
- package/dist/components/bq-side-menu-item.js.map +1 -1
- package/dist/components/bq-side-menu.js +45 -30
- package/dist/components/bq-side-menu.js.map +1 -1
- package/dist/components/bq-slider.js +158 -142
- package/dist/components/bq-slider.js.map +1 -1
- package/dist/components/bq-spinner.js +49 -47
- package/dist/components/bq-spinner.js.map +1 -1
- package/dist/components/bq-status.js +2 -2
- package/dist/components/bq-status.js.map +1 -1
- package/dist/components/bq-step-item.js +14 -9
- package/dist/components/bq-step-item.js.map +1 -1
- package/dist/components/bq-steps.js +11 -8
- package/dist/components/bq-steps.js.map +1 -1
- package/dist/components/bq-switch.js +41 -29
- package/dist/components/bq-switch.js.map +1 -1
- package/dist/components/bq-tab-group.js +62 -54
- package/dist/components/bq-tab-group.js.map +1 -1
- package/dist/components/bq-tab.js +41 -30
- package/dist/components/bq-tab.js.map +1 -1
- package/dist/components/bq-tag2.js +63 -48
- package/dist/components/bq-tag2.js.map +1 -1
- package/dist/components/bq-textarea.js +77 -54
- package/dist/components/bq-textarea.js.map +1 -1
- package/dist/components/bq-toast.js +41 -34
- package/dist/components/bq-toast.js.map +1 -1
- package/dist/components/bq-tooltip2.js +44 -40
- package/dist/components/bq-tooltip2.js.map +1 -1
- package/dist/components/cssVariables.js +2 -0
- package/dist/components/cssVariables.js.map +1 -1
- package/dist/components/debounce.js +2 -2
- package/dist/components/debounce.js.map +1 -1
- package/dist/components/index2.js +62 -18
- package/dist/components/index2.js.map +1 -1
- package/dist/components/slot.js +2 -3
- package/dist/components/slot.js.map +1 -1
- package/dist/esm/{assetsPath-c02b0e16.js → assetsPath-e2f1ceb9.js} +9 -33
- package/dist/esm/assetsPath-e2f1ceb9.js.map +1 -0
- package/dist/esm/beeq.js +4 -4
- package/dist/esm/beeq.js.map +1 -1
- package/dist/esm/bq-accordion-group.entry.js +4 -4
- package/dist/esm/bq-accordion-group.entry.js.map +1 -1
- package/dist/esm/bq-accordion.entry.js +84 -48
- package/dist/esm/bq-accordion.entry.js.map +1 -1
- package/dist/esm/bq-alert.entry.js +58 -43
- package/dist/esm/bq-alert.entry.js.map +1 -1
- package/dist/esm/bq-avatar.entry.js +41 -40
- package/dist/esm/bq-avatar.entry.js.map +1 -1
- package/dist/esm/bq-badge.entry.js +43 -42
- package/dist/esm/bq-badge.entry.js.map +1 -1
- package/dist/esm/bq-breadcrumb-item.entry.js +40 -29
- package/dist/esm/bq-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/bq-breadcrumb.entry.js +46 -30
- package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
- package/dist/esm/bq-button_2.entry.js +105 -86
- package/dist/esm/bq-button_2.entry.js.map +1 -1
- package/dist/esm/bq-card.entry.js +4 -4
- package/dist/esm/bq-card.entry.js.map +1 -1
- package/dist/esm/bq-checkbox.entry.js +64 -54
- package/dist/esm/bq-checkbox.entry.js.map +1 -1
- package/dist/esm/bq-date-picker.entry.js +161 -140
- package/dist/esm/bq-date-picker.entry.js.map +1 -1
- package/dist/esm/bq-dialog.entry.js +72 -50
- package/dist/esm/bq-dialog.entry.js.map +1 -1
- package/dist/esm/bq-divider.entry.js +24 -21
- package/dist/esm/bq-divider.entry.js.map +1 -1
- package/dist/esm/bq-drawer.entry.js +49 -34
- package/dist/esm/bq-drawer.entry.js.map +1 -1
- package/dist/esm/bq-dropdown_2.entry.js +44 -34
- package/dist/esm/bq-dropdown_2.entry.js.map +1 -1
- package/dist/esm/bq-empty-state.entry.js +26 -22
- package/dist/esm/bq-empty-state.entry.js.map +1 -1
- package/dist/esm/bq-input.entry.js +117 -90
- package/dist/esm/bq-input.entry.js.map +1 -1
- package/dist/esm/bq-notification.entry.js +63 -48
- package/dist/esm/bq-notification.entry.js.map +1 -1
- package/dist/esm/bq-option-group.entry.js +3 -3
- package/dist/esm/bq-option-group.entry.js.map +1 -1
- package/dist/esm/bq-option-list_2.entry.js +74 -54
- package/dist/esm/bq-option-list_2.entry.js.map +1 -1
- package/dist/esm/bq-option.entry.js +62 -45
- package/dist/esm/bq-option.entry.js.map +1 -1
- package/dist/esm/bq-page-title.entry.js +37 -32
- package/dist/esm/bq-page-title.entry.js.map +1 -1
- package/dist/esm/bq-progress.entry.js +4 -4
- package/dist/esm/bq-progress.entry.js.map +1 -1
- package/dist/esm/bq-radio-group.entry.js +13 -7
- package/dist/esm/bq-radio-group.entry.js.map +1 -1
- package/dist/esm/bq-radio.entry.js +43 -37
- package/dist/esm/bq-radio.entry.js.map +1 -1
- package/dist/esm/bq-select.entry.js +186 -168
- package/dist/esm/bq-select.entry.js.map +1 -1
- package/dist/esm/bq-side-menu-item.entry.js +69 -55
- package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
- package/dist/esm/bq-side-menu.entry.js +47 -32
- package/dist/esm/bq-side-menu.entry.js.map +1 -1
- package/dist/esm/bq-slider.entry.js +161 -145
- package/dist/esm/bq-slider.entry.js.map +1 -1
- package/dist/esm/bq-spinner.entry.js +53 -51
- package/dist/esm/bq-spinner.entry.js.map +1 -1
- package/dist/esm/bq-status.entry.js +4 -4
- package/dist/esm/bq-status.entry.js.map +1 -1
- package/dist/esm/bq-step-item.entry.js +16 -11
- package/dist/esm/bq-step-item.entry.js.map +1 -1
- package/dist/esm/bq-steps.entry.js +13 -10
- package/dist/esm/bq-steps.entry.js.map +1 -1
- package/dist/esm/bq-switch.entry.js +44 -32
- package/dist/esm/bq-switch.entry.js.map +1 -1
- package/dist/esm/bq-tab-group.entry.js +65 -57
- package/dist/esm/bq-tab-group.entry.js.map +1 -1
- package/dist/esm/bq-tab.entry.js +44 -33
- package/dist/esm/bq-tab.entry.js.map +1 -1
- package/dist/esm/bq-textarea.entry.js +81 -58
- package/dist/esm/bq-textarea.entry.js.map +1 -1
- package/dist/esm/bq-toast.entry.js +44 -37
- package/dist/esm/bq-toast.entry.js.map +1 -1
- package/dist/esm/bq-tooltip.entry.js +46 -42
- package/dist/esm/bq-tooltip.entry.js.map +1 -1
- package/dist/esm/{cssVariables-5ffccc29.js → cssVariables-23e3ca0d.js} +3 -1
- package/dist/esm/cssVariables-23e3ca0d.js.map +1 -0
- package/dist/esm/{debounce-c82e3da1.js → debounce-3e72f418.js} +3 -3
- package/dist/esm/debounce-3e72f418.js.map +1 -0
- package/dist/esm/{index-f69556fe.js → index-033f1efb.js} +29 -15
- package/dist/esm/index-033f1efb.js.map +1 -0
- package/dist/esm/{index-136429a6.js → index-1618c78b.js} +63 -19
- package/dist/esm/index-1618c78b.js.map +1 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/{isDefined-1e676215.js → isDefined-650befc3.js} +2 -2
- package/dist/esm/{isDefined-1e676215.js.map → isDefined-650befc3.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{slot-179d109d.js → slot-58bfedb5.js} +3 -4
- package/dist/esm/slot-58bfedb5.js.map +1 -0
- package/dist/hydrate/index.d.ts +10 -4
- package/dist/hydrate/index.js +3778 -1946
- package/dist/hydrate/index.mjs +3778 -1946
- package/dist/types/_storybook/foundation/helper/index.d.ts +1 -3
- package/dist/types/components/radio/bq-radio.d.ts +0 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/shared/utils/assetsPath.d.ts +1 -10
- package/dist/types/shared/utils/cssVariables.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +4 -0
- package/package.json +4 -4
- package/dist/beeq/p-026222c6.entry.js +0 -309
- package/dist/beeq/p-026222c6.entry.js.map +0 -1
- package/dist/beeq/p-04d98ed3.entry.js +0 -257
- package/dist/beeq/p-04d98ed3.entry.js.map +0 -1
- package/dist/beeq/p-05685544.entry.js +0 -121
- package/dist/beeq/p-05685544.entry.js.map +0 -1
- package/dist/beeq/p-0ab0b58d.js.map +0 -1
- package/dist/beeq/p-0c42c08a.js.map +0 -1
- package/dist/beeq/p-11eaeb5d.entry.js.map +0 -1
- package/dist/beeq/p-12dbc6ac.entry.js +0 -87
- package/dist/beeq/p-19df76ba.entry.js +0 -220
- package/dist/beeq/p-2ef721e1.entry.js.map +0 -1
- package/dist/beeq/p-37466506.entry.js +0 -103
- package/dist/beeq/p-377c70d1.entry.js +0 -173
- package/dist/beeq/p-377c70d1.entry.js.map +0 -1
- package/dist/beeq/p-38d4bd8a.js.map +0 -1
- package/dist/beeq/p-3dd0e436.entry.js +0 -130
- package/dist/beeq/p-3dd0e436.entry.js.map +0 -1
- package/dist/beeq/p-41033fe6.entry.js +0 -84
- package/dist/beeq/p-43e4fcdb.entry.js +0 -173
- package/dist/beeq/p-43e4fcdb.entry.js.map +0 -1
- package/dist/beeq/p-4a235cd2.entry.js +0 -258
- package/dist/beeq/p-4a235cd2.entry.js.map +0 -1
- package/dist/beeq/p-4eccc020.entry.js +0 -203
- package/dist/beeq/p-4eccc020.entry.js.map +0 -1
- package/dist/beeq/p-4fc098bb.entry.js +0 -90
- package/dist/beeq/p-5eab4f55.entry.js +0 -117
- package/dist/beeq/p-600e7c38.entry.js +0 -102
- package/dist/beeq/p-7089c66a.entry.js +0 -156
- package/dist/beeq/p-734853f9.entry.js +0 -259
- package/dist/beeq/p-7774eec3.entry.js +0 -135
- package/dist/beeq/p-7774eec3.entry.js.map +0 -1
- package/dist/beeq/p-7b9ff03f.entry.js +0 -437
- package/dist/beeq/p-7b9ff03f.entry.js.map +0 -1
- package/dist/beeq/p-900d4e78.entry.js +0 -102
- package/dist/beeq/p-911e07b7.entry.js +0 -513
- package/dist/beeq/p-911e07b7.entry.js.map +0 -1
- package/dist/beeq/p-924ebf7d.entry.js +0 -394
- package/dist/beeq/p-924ebf7d.entry.js.map +0 -1
- package/dist/beeq/p-9aa18e2f.entry.js +0 -303
- package/dist/beeq/p-9aa18e2f.entry.js.map +0 -1
- package/dist/beeq/p-ae94b9f8.entry.js +0 -144
- package/dist/beeq/p-b38e8c5a.entry.js +0 -208
- package/dist/beeq/p-b38e8c5a.entry.js.map +0 -1
- package/dist/beeq/p-b4278945.entry.js +0 -195
- package/dist/beeq/p-b4278945.entry.js.map +0 -1
- package/dist/beeq/p-b48545b6.entry.js +0 -248
- package/dist/beeq/p-b48545b6.entry.js.map +0 -1
- package/dist/beeq/p-c907de72.entry.js +0 -145
- package/dist/beeq/p-c907de72.entry.js.map +0 -1
- package/dist/beeq/p-ceb3bb9a.entry.js +0 -187
- package/dist/beeq/p-d3008f60.entry.js +0 -279
- package/dist/beeq/p-d3008f60.entry.js.map +0 -1
- package/dist/beeq/p-e5afdf8c.js +0 -87
- package/dist/beeq/p-e5afdf8c.js.map +0 -1
- package/dist/beeq/p-e7d75b87.entry.js +0 -144
- package/dist/beeq/p-f00abfb8.entry.js +0 -145
- package/dist/beeq/p-f00abfb8.entry.js.map +0 -1
- package/dist/beeq/p-f8663855.entry.js +0 -329
- package/dist/beeq/p-f8663855.entry.js.map +0 -1
- package/dist/cjs/assetsPath-7ead23b7.js.map +0 -1
- package/dist/cjs/cssVariables-7139f0c6.js.map +0 -1
- package/dist/cjs/debounce-f94a239b.js.map +0 -1
- package/dist/cjs/index-1d3aac65.js.map +0 -1
- package/dist/cjs/index-e4c116b6.js.map +0 -1
- package/dist/cjs/slot-dd6f7db9.js.map +0 -1
- package/dist/esm/assetsPath-c02b0e16.js.map +0 -1
- package/dist/esm/cssVariables-5ffccc29.js.map +0 -1
- package/dist/esm/debounce-c82e3da1.js.map +0 -1
- package/dist/esm/index-136429a6.js.map +0 -1
- package/dist/esm/index-f69556fe.js.map +0 -1
- package/dist/esm/slot-179d109d.js.map +0 -1
- /package/dist/beeq/{p-513bab02.js.map → p-0fce4de9.js.map} +0 -0
|
@@ -18,14 +18,14 @@ const i = Math.max;
|
|
|
18
18
|
|
|
19
19
|
const s = Math.round;
|
|
20
20
|
|
|
21
|
-
const
|
|
21
|
+
const r = Math.floor;
|
|
22
22
|
|
|
23
23
|
const createCoords = t => ({
|
|
24
24
|
x: t,
|
|
25
25
|
y: t
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
const
|
|
28
|
+
const c = {
|
|
29
29
|
left: "right",
|
|
30
30
|
right: "left",
|
|
31
31
|
bottom: "top",
|
|
@@ -76,11 +76,11 @@ function getAlignmentSides(t, e, n) {
|
|
|
76
76
|
const o = getAlignment(t);
|
|
77
77
|
const i = getAlignmentAxis(t);
|
|
78
78
|
const s = getAxisLength(i);
|
|
79
|
-
let
|
|
79
|
+
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
80
80
|
if (e.reference[s] > e.floating[s]) {
|
|
81
|
-
|
|
81
|
+
r = getOppositePlacement(r);
|
|
82
82
|
}
|
|
83
|
-
return [
|
|
83
|
+
return [ r, getOppositePlacement(r) ];
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
function getExpandedPlacements(t) {
|
|
@@ -96,7 +96,7 @@ function getSideList(t, e, n) {
|
|
|
96
96
|
const o = [ "left", "right" ];
|
|
97
97
|
const i = [ "right", "left" ];
|
|
98
98
|
const s = [ "top", "bottom" ];
|
|
99
|
-
const
|
|
99
|
+
const r = [ "bottom", "top" ];
|
|
100
100
|
switch (t) {
|
|
101
101
|
case "top":
|
|
102
102
|
case "bottom":
|
|
@@ -105,7 +105,7 @@ function getSideList(t, e, n) {
|
|
|
105
105
|
|
|
106
106
|
case "left":
|
|
107
107
|
case "right":
|
|
108
|
-
return e ? s :
|
|
108
|
+
return e ? s : r;
|
|
109
109
|
|
|
110
110
|
default:
|
|
111
111
|
return [];
|
|
@@ -125,7 +125,7 @@ function getOppositeAxisPlacements(t, e, n, o) {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
function getOppositePlacement(t) {
|
|
128
|
-
return t.replace(/left|right|bottom|top/g, (t =>
|
|
128
|
+
return t.replace(/left|right|bottom|top/g, (t => c[t]));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
function expandPaddingObject(t) {
|
|
@@ -164,13 +164,13 @@ function rectToClientRect(t) {
|
|
|
164
164
|
function computeCoordsFromPlacement(t, e, n) {
|
|
165
165
|
let {reference: o, floating: i} = t;
|
|
166
166
|
const s = getSideAxis(e);
|
|
167
|
-
const
|
|
168
|
-
const
|
|
167
|
+
const r = getAlignmentAxis(e);
|
|
168
|
+
const c = getAxisLength(r);
|
|
169
169
|
const l = getSide(e);
|
|
170
170
|
const a = s === "y";
|
|
171
171
|
const f = o.x + o.width / 2 - i.width / 2;
|
|
172
172
|
const u = o.y + o.height / 2 - i.height / 2;
|
|
173
|
-
const g = o[
|
|
173
|
+
const g = o[c] / 2 - i[c] / 2;
|
|
174
174
|
let d;
|
|
175
175
|
switch (l) {
|
|
176
176
|
case "top":
|
|
@@ -209,11 +209,11 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
209
209
|
}
|
|
210
210
|
switch (getAlignment(e)) {
|
|
211
211
|
case "start":
|
|
212
|
-
d[
|
|
212
|
+
d[r] -= g * (n && a ? -1 : 1);
|
|
213
213
|
break;
|
|
214
214
|
|
|
215
215
|
case "end":
|
|
216
|
-
d[
|
|
216
|
+
d[r] += g * (n && a ? -1 : 1);
|
|
217
217
|
break;
|
|
218
218
|
}
|
|
219
219
|
return d;
|
|
@@ -226,10 +226,10 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
226
226
|
* This export does not have any `platform` interface logic. You will need to
|
|
227
227
|
* write one for the platform you are using Floating UI with.
|
|
228
228
|
*/ const computePosition$1 = async (t, e, n) => {
|
|
229
|
-
const {placement: o = "bottom", strategy: i = "absolute", middleware: s = [], platform:
|
|
230
|
-
const
|
|
231
|
-
const l = await (
|
|
232
|
-
let a = await
|
|
229
|
+
const {placement: o = "bottom", strategy: i = "absolute", middleware: s = [], platform: r} = n;
|
|
230
|
+
const c = s.filter(Boolean);
|
|
231
|
+
const l = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
232
|
+
let a = await r.getElementRects({
|
|
233
233
|
reference: t,
|
|
234
234
|
floating: e,
|
|
235
235
|
strategy: i
|
|
@@ -238,8 +238,8 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
238
238
|
let g = o;
|
|
239
239
|
let d = {};
|
|
240
240
|
let m = 0;
|
|
241
|
-
for (let n = 0; n <
|
|
242
|
-
const {name: s, fn: p} =
|
|
241
|
+
for (let n = 0; n < c.length; n++) {
|
|
242
|
+
const {name: s, fn: p} = c[n];
|
|
243
243
|
const {x: h, y: w, data: y, reset: v} = await p({
|
|
244
244
|
x: f,
|
|
245
245
|
y: u,
|
|
@@ -248,7 +248,7 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
248
248
|
strategy: i,
|
|
249
249
|
middlewareData: d,
|
|
250
250
|
rects: a,
|
|
251
|
-
platform:
|
|
251
|
+
platform: r,
|
|
252
252
|
elements: {
|
|
253
253
|
reference: t,
|
|
254
254
|
floating: e
|
|
@@ -270,7 +270,7 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
270
270
|
g = v.placement;
|
|
271
271
|
}
|
|
272
272
|
if (v.rects) {
|
|
273
|
-
a = v.rects === true ? await
|
|
273
|
+
a = v.rects === true ? await r.getElementRects({
|
|
274
274
|
reference: t,
|
|
275
275
|
floating: e,
|
|
276
276
|
strategy: i
|
|
@@ -302,13 +302,13 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
302
302
|
if (e === void 0) {
|
|
303
303
|
e = {};
|
|
304
304
|
}
|
|
305
|
-
const {x: o, y: i, platform: s, rects:
|
|
305
|
+
const {x: o, y: i, platform: s, rects: r, elements: c, strategy: l} = t;
|
|
306
306
|
const {boundary: a = "clippingAncestors", rootBoundary: f = "viewport", elementContext: u = "floating", altBoundary: g = false, padding: d = 0} = evaluate(e, t);
|
|
307
307
|
const m = getPaddingObject(d);
|
|
308
308
|
const p = u === "floating" ? "reference" : "floating";
|
|
309
|
-
const h =
|
|
309
|
+
const h = c[g ? p : u];
|
|
310
310
|
const w = rectToClientRect(await s.getClippingRect({
|
|
311
|
-
element: ((n = await (s.isElement == null ? void 0 : s.isElement(h))) != null ? n : true) ? h : h.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(
|
|
311
|
+
element: ((n = await (s.isElement == null ? void 0 : s.isElement(h))) != null ? n : true) ? h : h.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
312
312
|
boundary: a,
|
|
313
313
|
rootBoundary: f,
|
|
314
314
|
strategy: l
|
|
@@ -316,10 +316,10 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
316
316
|
const y = u === "floating" ? {
|
|
317
317
|
x: o,
|
|
318
318
|
y: i,
|
|
319
|
-
width:
|
|
320
|
-
height:
|
|
321
|
-
} :
|
|
322
|
-
const v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(
|
|
319
|
+
width: r.floating.width,
|
|
320
|
+
height: r.floating.height
|
|
321
|
+
} : r.reference;
|
|
322
|
+
const v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating));
|
|
323
323
|
const x = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
|
|
324
324
|
x: 1,
|
|
325
325
|
y: 1
|
|
@@ -328,7 +328,7 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
328
328
|
y: 1
|
|
329
329
|
};
|
|
330
330
|
const A = rectToClientRect(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
331
|
-
elements:
|
|
331
|
+
elements: c,
|
|
332
332
|
rect: y,
|
|
333
333
|
offsetParent: v,
|
|
334
334
|
strategy: l
|
|
@@ -349,7 +349,7 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
349
349
|
name: "arrow",
|
|
350
350
|
options: t,
|
|
351
351
|
async fn(e) {
|
|
352
|
-
const {x: n, y: i, placement: s, rects:
|
|
352
|
+
const {x: n, y: i, placement: s, rects: r, platform: c, elements: l, middlewareData: a} = e;
|
|
353
353
|
// Since `element` is required, we don't Partial<> the type.
|
|
354
354
|
const {element: f, padding: u = 0} = evaluate(t, e) || {};
|
|
355
355
|
if (f == null) {
|
|
@@ -362,44 +362,44 @@ function computeCoordsFromPlacement(t, e, n) {
|
|
|
362
362
|
};
|
|
363
363
|
const m = getAlignmentAxis(s);
|
|
364
364
|
const p = getAxisLength(m);
|
|
365
|
-
const h = await
|
|
365
|
+
const h = await c.getDimensions(f);
|
|
366
366
|
const w = m === "y";
|
|
367
367
|
const y = w ? "top" : "left";
|
|
368
368
|
const v = w ? "bottom" : "right";
|
|
369
369
|
const x = w ? "clientHeight" : "clientWidth";
|
|
370
|
-
const A =
|
|
371
|
-
const b = d[m] -
|
|
372
|
-
const
|
|
373
|
-
let
|
|
370
|
+
const A = r.reference[p] + r.reference[m] - d[m] - r.floating[p];
|
|
371
|
+
const b = d[m] - r.reference[m];
|
|
372
|
+
const S = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(f));
|
|
373
|
+
let O = S ? S[x] : 0;
|
|
374
374
|
// DOM platform can return `window` as the `offsetParent`.
|
|
375
|
-
if (!
|
|
376
|
-
|
|
375
|
+
if (!O || !await (c.isElement == null ? void 0 : c.isElement(S))) {
|
|
376
|
+
O = l.floating[x] || r.floating[p];
|
|
377
377
|
}
|
|
378
378
|
const C = A / 2 - b / 2;
|
|
379
379
|
// If the padding is large enough that it causes the arrow to no longer be
|
|
380
380
|
// centered, modify the padding so that it is centered.
|
|
381
|
-
const R =
|
|
381
|
+
const R = O / 2 - h[p] / 2 - 1;
|
|
382
382
|
const P = o(g[y], R);
|
|
383
383
|
const E = o(g[v], R);
|
|
384
384
|
// Make sure the arrow doesn't overflow the floating element if the center
|
|
385
385
|
// point is outside the floating element's bounds.
|
|
386
386
|
const T = P;
|
|
387
|
-
const L =
|
|
388
|
-
const N =
|
|
387
|
+
const L = O - h[p] - E;
|
|
388
|
+
const N = O / 2 - h[p] / 2 + C;
|
|
389
389
|
const B = clamp(T, N, L);
|
|
390
390
|
// If the reference is small enough that the arrow's padding causes it to
|
|
391
391
|
// to point to nothing for an aligned placement, adjust the offset of the
|
|
392
392
|
// floating element itself. To ensure `shift()` continues to take action,
|
|
393
393
|
// a single reset is performed when this is true.
|
|
394
|
-
const D = !a.arrow && getAlignment(s) != null && N !== B &&
|
|
395
|
-
const
|
|
394
|
+
const D = !a.arrow && getAlignment(s) != null && N !== B && r.reference[p] / 2 - (N < T ? P : E) - h[p] / 2 < 0;
|
|
395
|
+
const W = D ? N < T ? N - T : N - L : 0;
|
|
396
396
|
return {
|
|
397
|
-
[m]: d[m] +
|
|
397
|
+
[m]: d[m] + W,
|
|
398
398
|
data: {
|
|
399
399
|
[m]: B,
|
|
400
|
-
centerOffset: N - B -
|
|
400
|
+
centerOffset: N - B - W,
|
|
401
401
|
...D && {
|
|
402
|
-
alignmentOffset:
|
|
402
|
+
alignmentOffset: W
|
|
403
403
|
}
|
|
404
404
|
},
|
|
405
405
|
reset: D
|
|
@@ -431,16 +431,16 @@ function getPlacementList(t, e, n) {
|
|
|
431
431
|
options: t,
|
|
432
432
|
async fn(e) {
|
|
433
433
|
var o, i, s;
|
|
434
|
-
const {rects:
|
|
434
|
+
const {rects: r, middlewareData: c, placement: l, platform: a, elements: f} = e;
|
|
435
435
|
const {crossAxis: u = false, alignment: g, allowedPlacements: d = n, autoAlignment: m = true, ...p} = evaluate(t, e);
|
|
436
436
|
const h = g !== undefined || d === n ? getPlacementList(g || null, m, d) : d;
|
|
437
437
|
const w = await detectOverflow(e, p);
|
|
438
|
-
const y = ((o =
|
|
438
|
+
const y = ((o = c.autoPlacement) == null ? void 0 : o.index) || 0;
|
|
439
439
|
const v = h[y];
|
|
440
440
|
if (v == null) {
|
|
441
441
|
return {};
|
|
442
442
|
}
|
|
443
|
-
const x = getAlignmentSides(v,
|
|
443
|
+
const x = getAlignmentSides(v, r, await (a.isRTL == null ? void 0 : a.isRTL(f.floating)));
|
|
444
444
|
// Make `computeCoords` start from the right place.
|
|
445
445
|
if (l !== v) {
|
|
446
446
|
return {
|
|
@@ -450,24 +450,24 @@ function getPlacementList(t, e, n) {
|
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
452
|
const A = [ w[getSide(v)], w[x[0]], w[x[1]] ];
|
|
453
|
-
const b = [ ...((i =
|
|
453
|
+
const b = [ ...((i = c.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
454
454
|
placement: v,
|
|
455
455
|
overflows: A
|
|
456
456
|
} ];
|
|
457
|
-
const
|
|
457
|
+
const S = h[y + 1];
|
|
458
458
|
// There are more placements to check.
|
|
459
|
-
if (
|
|
459
|
+
if (S) {
|
|
460
460
|
return {
|
|
461
461
|
data: {
|
|
462
462
|
index: y + 1,
|
|
463
463
|
overflows: b
|
|
464
464
|
},
|
|
465
465
|
reset: {
|
|
466
|
-
placement:
|
|
466
|
+
placement: S
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
const
|
|
470
|
+
const O = b.map((t => {
|
|
471
471
|
const e = getAlignment(t.placement);
|
|
472
472
|
return [ t.placement, e && u ?
|
|
473
473
|
// Check along the mainAxis and main crossAxis side.
|
|
@@ -475,11 +475,11 @@ function getPlacementList(t, e, n) {
|
|
|
475
475
|
// Check only the mainAxis.
|
|
476
476
|
t.overflows[0], t.overflows ];
|
|
477
477
|
})).sort(((t, e) => t[1] - e[1]));
|
|
478
|
-
const C =
|
|
478
|
+
const C = O.filter((t => t[2].slice(0,
|
|
479
479
|
// Aligned placements should not check their opposite crossAxis
|
|
480
480
|
// side.
|
|
481
481
|
getAlignment(t[0]) ? 2 : 3).every((t => t <= 0))));
|
|
482
|
-
const R = ((s = C[0]) == null ? void 0 : s[0]) ||
|
|
482
|
+
const R = ((s = C[0]) == null ? void 0 : s[0]) || O[0][0];
|
|
483
483
|
if (R !== l) {
|
|
484
484
|
return {
|
|
485
485
|
data: {
|
|
@@ -510,7 +510,7 @@ function getPlacementList(t, e, n) {
|
|
|
510
510
|
options: t,
|
|
511
511
|
async fn(e) {
|
|
512
512
|
var n, o;
|
|
513
|
-
const {placement: i, middlewareData: s, rects:
|
|
513
|
+
const {placement: i, middlewareData: s, rects: r, initialPlacement: c, platform: l, elements: a} = e;
|
|
514
514
|
const {mainAxis: f = true, crossAxis: u = true, fallbackPlacements: g, fallbackStrategy: d = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: p = true, ...h} = evaluate(t, e);
|
|
515
515
|
// If a reset by the arrow was caused due to an alignment offset being
|
|
516
516
|
// added, we should skip any logic now since `flip()` has already done its
|
|
@@ -520,24 +520,24 @@ function getPlacementList(t, e, n) {
|
|
|
520
520
|
return {};
|
|
521
521
|
}
|
|
522
522
|
const w = getSide(i);
|
|
523
|
-
const y = getSideAxis(
|
|
524
|
-
const v = getSide(
|
|
523
|
+
const y = getSideAxis(c);
|
|
524
|
+
const v = getSide(c) === c;
|
|
525
525
|
const x = await (l.isRTL == null ? void 0 : l.isRTL(a.floating));
|
|
526
|
-
const A = g || (v || !p ? [ getOppositePlacement(
|
|
526
|
+
const A = g || (v || !p ? [ getOppositePlacement(c) ] : getExpandedPlacements(c));
|
|
527
527
|
const b = m !== "none";
|
|
528
528
|
if (!g && b) {
|
|
529
|
-
A.push(...getOppositeAxisPlacements(
|
|
529
|
+
A.push(...getOppositeAxisPlacements(c, p, m, x));
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
const
|
|
531
|
+
const S = [ c, ...A ];
|
|
532
|
+
const O = await detectOverflow(e, h);
|
|
533
533
|
const C = [];
|
|
534
534
|
let R = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
535
535
|
if (f) {
|
|
536
|
-
C.push(
|
|
536
|
+
C.push(O[w]);
|
|
537
537
|
}
|
|
538
538
|
if (u) {
|
|
539
|
-
const t = getAlignmentSides(i,
|
|
540
|
-
C.push(
|
|
539
|
+
const t = getAlignmentSides(i, r, x);
|
|
540
|
+
C.push(O[t[0]], O[t[1]]);
|
|
541
541
|
}
|
|
542
542
|
R = [ ...R, {
|
|
543
543
|
placement: i,
|
|
@@ -547,7 +547,7 @@ function getPlacementList(t, e, n) {
|
|
|
547
547
|
if (!C.every((t => t <= 0))) {
|
|
548
548
|
var P, E;
|
|
549
549
|
const t = (((P = s.flip) == null ? void 0 : P.index) || 0) + 1;
|
|
550
|
-
const e =
|
|
550
|
+
const e = S[t];
|
|
551
551
|
if (e) {
|
|
552
552
|
// Try next placement and re-run the lifecycle.
|
|
553
553
|
return {
|
|
@@ -586,7 +586,7 @@ function getPlacementList(t, e, n) {
|
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
case "initialPlacement":
|
|
589
|
-
n =
|
|
589
|
+
n = c;
|
|
590
590
|
break;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
@@ -674,12 +674,12 @@ function getBoundingRect(t) {
|
|
|
674
674
|
const e = o(...t.map((t => t.left)));
|
|
675
675
|
const n = o(...t.map((t => t.top)));
|
|
676
676
|
const s = i(...t.map((t => t.right)));
|
|
677
|
-
const
|
|
677
|
+
const r = i(...t.map((t => t.bottom)));
|
|
678
678
|
return {
|
|
679
679
|
x: e,
|
|
680
680
|
y: n,
|
|
681
681
|
width: s - e,
|
|
682
|
-
height:
|
|
682
|
+
height: r - n
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
685
|
|
|
@@ -711,12 +711,12 @@ function getRectsByLine(t) {
|
|
|
711
711
|
name: "inline",
|
|
712
712
|
options: t,
|
|
713
713
|
async fn(e) {
|
|
714
|
-
const {placement: n, elements: s, rects:
|
|
714
|
+
const {placement: n, elements: s, rects: r, platform: c, strategy: l} = e;
|
|
715
715
|
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
716
716
|
// ClientRect's bounds, despite the event listener being triggered. A
|
|
717
717
|
// padding of 2 seems to handle this issue.
|
|
718
718
|
const {padding: a = 2, x: f, y: u} = evaluate(t, e);
|
|
719
|
-
const g = Array.from(await (
|
|
719
|
+
const g = Array.from(await (c.getClientRects == null ? void 0 : c.getClientRects(s.reference)) || []);
|
|
720
720
|
const d = getRectsByLine(g);
|
|
721
721
|
const m = rectToClientRect(getBoundingRect(g));
|
|
722
722
|
const p = getPaddingObject(a);
|
|
@@ -734,52 +734,52 @@ function getRectsByLine(t) {
|
|
|
734
734
|
const o = getSide(n) === "top";
|
|
735
735
|
const i = t.top;
|
|
736
736
|
const s = e.bottom;
|
|
737
|
-
const
|
|
738
|
-
const
|
|
739
|
-
const l =
|
|
737
|
+
const r = o ? t.left : e.left;
|
|
738
|
+
const c = o ? t.right : e.right;
|
|
739
|
+
const l = c - r;
|
|
740
740
|
const a = s - i;
|
|
741
741
|
return {
|
|
742
742
|
top: i,
|
|
743
743
|
bottom: s,
|
|
744
|
-
left:
|
|
745
|
-
right:
|
|
744
|
+
left: r,
|
|
745
|
+
right: c,
|
|
746
746
|
width: l,
|
|
747
747
|
height: a,
|
|
748
|
-
x:
|
|
748
|
+
x: r,
|
|
749
749
|
y: i
|
|
750
750
|
};
|
|
751
751
|
}
|
|
752
752
|
const t = getSide(n) === "left";
|
|
753
753
|
const e = i(...d.map((t => t.right)));
|
|
754
754
|
const s = o(...d.map((t => t.left)));
|
|
755
|
-
const
|
|
756
|
-
const
|
|
757
|
-
const l =
|
|
755
|
+
const r = d.filter((n => t ? n.left === s : n.right === e));
|
|
756
|
+
const c = r[0].top;
|
|
757
|
+
const l = r[r.length - 1].bottom;
|
|
758
758
|
const a = s;
|
|
759
759
|
const f = e;
|
|
760
760
|
const u = f - a;
|
|
761
|
-
const g = l -
|
|
761
|
+
const g = l - c;
|
|
762
762
|
return {
|
|
763
|
-
top:
|
|
763
|
+
top: c,
|
|
764
764
|
bottom: l,
|
|
765
765
|
left: a,
|
|
766
766
|
right: f,
|
|
767
767
|
width: u,
|
|
768
768
|
height: g,
|
|
769
769
|
x: a,
|
|
770
|
-
y:
|
|
770
|
+
y: c
|
|
771
771
|
};
|
|
772
772
|
}
|
|
773
773
|
return m;
|
|
774
774
|
}
|
|
775
|
-
const h = await
|
|
775
|
+
const h = await c.getElementRects({
|
|
776
776
|
reference: {
|
|
777
777
|
getBoundingClientRect
|
|
778
778
|
},
|
|
779
779
|
floating: s.floating,
|
|
780
780
|
strategy: l
|
|
781
781
|
});
|
|
782
|
-
if (
|
|
782
|
+
if (r.reference.x !== h.reference.x || r.reference.y !== h.reference.y || r.reference.width !== h.reference.width || r.reference.height !== h.reference.height) {
|
|
783
783
|
return {
|
|
784
784
|
reset: {
|
|
785
785
|
rects: h
|
|
@@ -796,10 +796,10 @@ function getRectsByLine(t) {
|
|
|
796
796
|
async function convertValueToCoords(t, e) {
|
|
797
797
|
const {placement: n, platform: o, elements: i} = t;
|
|
798
798
|
const s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating));
|
|
799
|
-
const
|
|
800
|
-
const
|
|
799
|
+
const r = getSide(n);
|
|
800
|
+
const c = getAlignment(n);
|
|
801
801
|
const l = getSideAxis(n) === "y";
|
|
802
|
-
const a = [ "left", "top" ].includes(
|
|
802
|
+
const a = [ "left", "top" ].includes(r) ? -1 : 1;
|
|
803
803
|
const f = s && l ? -1 : 1;
|
|
804
804
|
const u = evaluate(e, t);
|
|
805
805
|
// eslint-disable-next-line prefer-const
|
|
@@ -808,13 +808,12 @@ async function convertValueToCoords(t, e) {
|
|
|
808
808
|
crossAxis: 0,
|
|
809
809
|
alignmentAxis: null
|
|
810
810
|
} : {
|
|
811
|
-
mainAxis: 0,
|
|
812
|
-
crossAxis: 0,
|
|
813
|
-
alignmentAxis:
|
|
814
|
-
...u
|
|
811
|
+
mainAxis: u.mainAxis || 0,
|
|
812
|
+
crossAxis: u.crossAxis || 0,
|
|
813
|
+
alignmentAxis: u.alignmentAxis
|
|
815
814
|
};
|
|
816
|
-
if (
|
|
817
|
-
d =
|
|
815
|
+
if (c && typeof m === "number") {
|
|
816
|
+
d = c === "end" ? m * -1 : m;
|
|
818
817
|
}
|
|
819
818
|
return l ? {
|
|
820
819
|
x: d * f,
|
|
@@ -840,11 +839,11 @@ async function convertValueToCoords(t, e) {
|
|
|
840
839
|
options: t,
|
|
841
840
|
async fn(e) {
|
|
842
841
|
var n, o;
|
|
843
|
-
const {x: i, y: s, placement:
|
|
842
|
+
const {x: i, y: s, placement: r, middlewareData: c} = e;
|
|
844
843
|
const l = await convertValueToCoords(e, t);
|
|
845
844
|
// If the placement is the same and the arrow caused an alignment offset
|
|
846
845
|
// then we don't need to change the positioning coordinates.
|
|
847
|
-
if (
|
|
846
|
+
if (r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset) {
|
|
848
847
|
return {};
|
|
849
848
|
}
|
|
850
849
|
return {
|
|
@@ -852,7 +851,7 @@ async function convertValueToCoords(t, e) {
|
|
|
852
851
|
y: s + l.y,
|
|
853
852
|
data: {
|
|
854
853
|
...l,
|
|
855
|
-
placement:
|
|
854
|
+
placement: r
|
|
856
855
|
}
|
|
857
856
|
};
|
|
858
857
|
}
|
|
@@ -872,7 +871,7 @@ async function convertValueToCoords(t, e) {
|
|
|
872
871
|
options: t,
|
|
873
872
|
async fn(e) {
|
|
874
873
|
const {x: n, y: o, placement: i} = e;
|
|
875
|
-
const {mainAxis: s = true, crossAxis:
|
|
874
|
+
const {mainAxis: s = true, crossAxis: r = false, limiter: c = {
|
|
876
875
|
fn: t => {
|
|
877
876
|
let {x: e, y: n} = t;
|
|
878
877
|
return {
|
|
@@ -897,14 +896,14 @@ async function convertValueToCoords(t, e) {
|
|
|
897
896
|
const o = d - f[e];
|
|
898
897
|
d = clamp(n, d, o);
|
|
899
898
|
}
|
|
900
|
-
if (
|
|
899
|
+
if (r) {
|
|
901
900
|
const t = u === "y" ? "top" : "left";
|
|
902
901
|
const e = u === "y" ? "bottom" : "right";
|
|
903
902
|
const n = m + f[t];
|
|
904
903
|
const o = m - f[e];
|
|
905
904
|
m = clamp(n, m, o);
|
|
906
905
|
}
|
|
907
|
-
const p =
|
|
906
|
+
const p = c.fn({
|
|
908
907
|
...e,
|
|
909
908
|
[g]: d,
|
|
910
909
|
[u]: m
|
|
@@ -913,7 +912,11 @@ async function convertValueToCoords(t, e) {
|
|
|
913
912
|
...p,
|
|
914
913
|
data: {
|
|
915
914
|
x: p.x - n,
|
|
916
|
-
y: p.y - o
|
|
915
|
+
y: p.y - o,
|
|
916
|
+
enabled: {
|
|
917
|
+
[g]: s,
|
|
918
|
+
[u]: r
|
|
919
|
+
}
|
|
917
920
|
}
|
|
918
921
|
};
|
|
919
922
|
}
|
|
@@ -929,8 +932,8 @@ async function convertValueToCoords(t, e) {
|
|
|
929
932
|
return {
|
|
930
933
|
options: t,
|
|
931
934
|
fn(e) {
|
|
932
|
-
const {x: n, y: o, placement: i, rects: s, middlewareData:
|
|
933
|
-
const {offset:
|
|
935
|
+
const {x: n, y: o, placement: i, rects: s, middlewareData: r} = e;
|
|
936
|
+
const {offset: c = 0, mainAxis: l = true, crossAxis: a = true} = evaluate(t, e);
|
|
934
937
|
const f = {
|
|
935
938
|
x: n,
|
|
936
939
|
y: o
|
|
@@ -939,7 +942,7 @@ async function convertValueToCoords(t, e) {
|
|
|
939
942
|
const g = getOppositeAxis(u);
|
|
940
943
|
let d = f[g];
|
|
941
944
|
let m = f[u];
|
|
942
|
-
const p = evaluate(
|
|
945
|
+
const p = evaluate(c, e);
|
|
943
946
|
const h = typeof p === "number" ? {
|
|
944
947
|
mainAxis: p,
|
|
945
948
|
crossAxis: 0
|
|
@@ -962,8 +965,8 @@ async function convertValueToCoords(t, e) {
|
|
|
962
965
|
var w, y;
|
|
963
966
|
const t = g === "y" ? "width" : "height";
|
|
964
967
|
const e = [ "top", "left" ].includes(getSide(i));
|
|
965
|
-
const n = s.reference[u] - s.floating[t] + (e ? ((w =
|
|
966
|
-
const o = s.reference[u] + s.reference[t] + (e ? 0 : ((y =
|
|
968
|
+
const n = s.reference[u] - s.floating[t] + (e ? ((w = r.offset) == null ? void 0 : w[u]) || 0 : 0) + (e ? 0 : h.crossAxis);
|
|
969
|
+
const o = s.reference[u] + s.reference[t] + (e ? 0 : ((y = r.offset) == null ? void 0 : y[u]) || 0) - (e ? h.crossAxis : 0);
|
|
967
970
|
if (m < n) {
|
|
968
971
|
m = n;
|
|
969
972
|
} else if (m > o) {
|
|
@@ -991,52 +994,54 @@ async function convertValueToCoords(t, e) {
|
|
|
991
994
|
name: "size",
|
|
992
995
|
options: t,
|
|
993
996
|
async fn(e) {
|
|
994
|
-
|
|
995
|
-
const {
|
|
996
|
-
const f =
|
|
997
|
-
const
|
|
998
|
-
const
|
|
999
|
-
const
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1002
|
-
let
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
997
|
+
var n, s;
|
|
998
|
+
const {placement: r, rects: c, platform: l, elements: a} = e;
|
|
999
|
+
const {apply: f = (() => {}), ...u} = evaluate(t, e);
|
|
1000
|
+
const g = await detectOverflow(e, u);
|
|
1001
|
+
const d = getSide(r);
|
|
1002
|
+
const m = getAlignment(r);
|
|
1003
|
+
const p = getSideAxis(r) === "y";
|
|
1004
|
+
const {width: h, height: w} = c.floating;
|
|
1005
|
+
let y;
|
|
1006
|
+
let v;
|
|
1007
|
+
if (d === "top" || d === "bottom") {
|
|
1008
|
+
y = d;
|
|
1009
|
+
v = m === (await (l.isRTL == null ? void 0 : l.isRTL(a.floating)) ? "start" : "end") ? "left" : "right";
|
|
1006
1010
|
} else {
|
|
1007
|
-
|
|
1008
|
-
|
|
1011
|
+
v = d;
|
|
1012
|
+
y = m === "end" ? "top" : "bottom";
|
|
1009
1013
|
}
|
|
1010
|
-
const
|
|
1011
|
-
const
|
|
1012
|
-
const
|
|
1013
|
-
const
|
|
1014
|
-
const
|
|
1015
|
-
let
|
|
1016
|
-
let
|
|
1017
|
-
if (
|
|
1018
|
-
|
|
1019
|
-
} else {
|
|
1020
|
-
O = g || b ? o(x, y) : y;
|
|
1014
|
+
const x = w - g.top - g.bottom;
|
|
1015
|
+
const A = h - g.left - g.right;
|
|
1016
|
+
const b = o(w - g[y], x);
|
|
1017
|
+
const S = o(h - g[v], A);
|
|
1018
|
+
const O = !e.middlewareData.shift;
|
|
1019
|
+
let C = b;
|
|
1020
|
+
let R = S;
|
|
1021
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x) {
|
|
1022
|
+
R = A;
|
|
1021
1023
|
}
|
|
1022
|
-
if (
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
const
|
|
1027
|
-
|
|
1028
|
-
|
|
1024
|
+
if ((s = e.middlewareData.shift) != null && s.enabled.y) {
|
|
1025
|
+
C = x;
|
|
1026
|
+
}
|
|
1027
|
+
if (O && !m) {
|
|
1028
|
+
const t = i(g.left, 0);
|
|
1029
|
+
const e = i(g.right, 0);
|
|
1030
|
+
const n = i(g.top, 0);
|
|
1031
|
+
const o = i(g.bottom, 0);
|
|
1032
|
+
if (p) {
|
|
1033
|
+
R = h - 2 * (t !== 0 || e !== 0 ? t + e : i(g.left, g.right));
|
|
1029
1034
|
} else {
|
|
1030
|
-
|
|
1035
|
+
C = w - 2 * (n !== 0 || o !== 0 ? n + o : i(g.top, g.bottom));
|
|
1031
1036
|
}
|
|
1032
1037
|
}
|
|
1033
|
-
await
|
|
1038
|
+
await f({
|
|
1034
1039
|
...e,
|
|
1035
|
-
availableWidth:
|
|
1036
|
-
availableHeight:
|
|
1040
|
+
availableWidth: R,
|
|
1041
|
+
availableHeight: C
|
|
1037
1042
|
});
|
|
1038
|
-
const
|
|
1039
|
-
if (
|
|
1043
|
+
const P = await l.getDimensions(a.floating);
|
|
1044
|
+
if (h !== P.width || w !== P.height) {
|
|
1040
1045
|
return {
|
|
1041
1046
|
reset: {
|
|
1042
1047
|
rects: true
|
|
@@ -1048,6 +1053,10 @@ async function convertValueToCoords(t, e) {
|
|
|
1048
1053
|
};
|
|
1049
1054
|
};
|
|
1050
1055
|
|
|
1056
|
+
function hasWindow() {
|
|
1057
|
+
return typeof window !== "undefined";
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1051
1060
|
function getNodeName(t) {
|
|
1052
1061
|
if (isNode(t)) {
|
|
1053
1062
|
return (t.nodeName || "").toLowerCase();
|
|
@@ -1069,20 +1078,28 @@ function getDocumentElement(t) {
|
|
|
1069
1078
|
}
|
|
1070
1079
|
|
|
1071
1080
|
function isNode(t) {
|
|
1081
|
+
if (!hasWindow()) {
|
|
1082
|
+
return false;
|
|
1083
|
+
}
|
|
1072
1084
|
return t instanceof Node || t instanceof getWindow(t).Node;
|
|
1073
1085
|
}
|
|
1074
1086
|
|
|
1075
1087
|
function isElement(t) {
|
|
1088
|
+
if (!hasWindow()) {
|
|
1089
|
+
return false;
|
|
1090
|
+
}
|
|
1076
1091
|
return t instanceof Element || t instanceof getWindow(t).Element;
|
|
1077
1092
|
}
|
|
1078
1093
|
|
|
1079
1094
|
function isHTMLElement(t) {
|
|
1095
|
+
if (!hasWindow()) {
|
|
1096
|
+
return false;
|
|
1097
|
+
}
|
|
1080
1098
|
return t instanceof HTMLElement || t instanceof getWindow(t).HTMLElement;
|
|
1081
1099
|
}
|
|
1082
1100
|
|
|
1083
1101
|
function isShadowRoot(t) {
|
|
1084
|
-
|
|
1085
|
-
if (typeof ShadowRoot === "undefined") {
|
|
1102
|
+
if (!hasWindow() || typeof ShadowRoot === "undefined") {
|
|
1086
1103
|
return false;
|
|
1087
1104
|
}
|
|
1088
1105
|
return t instanceof ShadowRoot || t instanceof getWindow(t).ShadowRoot;
|
|
@@ -1190,10 +1207,10 @@ function getOverflowAncestors(t, e, n) {
|
|
|
1190
1207
|
}
|
|
1191
1208
|
const i = getNearestOverflowAncestor(t);
|
|
1192
1209
|
const s = i === ((o = t.ownerDocument) == null ? void 0 : o.body);
|
|
1193
|
-
const
|
|
1210
|
+
const r = getWindow(i);
|
|
1194
1211
|
if (s) {
|
|
1195
|
-
const t = getFrameElement(
|
|
1196
|
-
return e.concat(
|
|
1212
|
+
const t = getFrameElement(r);
|
|
1213
|
+
return e.concat(r, r.visualViewport || [], isOverflowElement(i) ? i : [], t && n ? getOverflowAncestors(t) : []);
|
|
1197
1214
|
}
|
|
1198
1215
|
return e.concat(i, getOverflowAncestors(i, [], n));
|
|
1199
1216
|
}
|
|
@@ -1209,12 +1226,12 @@ function getCssDimensions(t) {
|
|
|
1209
1226
|
let n = parseFloat(e.width) || 0;
|
|
1210
1227
|
let o = parseFloat(e.height) || 0;
|
|
1211
1228
|
const i = isHTMLElement(t);
|
|
1212
|
-
const
|
|
1213
|
-
const
|
|
1214
|
-
const l = s(n) !==
|
|
1229
|
+
const r = i ? t.offsetWidth : n;
|
|
1230
|
+
const c = i ? t.offsetHeight : o;
|
|
1231
|
+
const l = s(n) !== r || s(o) !== c;
|
|
1215
1232
|
if (l) {
|
|
1216
|
-
n =
|
|
1217
|
-
o =
|
|
1233
|
+
n = r;
|
|
1234
|
+
o = c;
|
|
1218
1235
|
}
|
|
1219
1236
|
return {
|
|
1220
1237
|
width: n,
|
|
@@ -1233,18 +1250,18 @@ function getScale(t) {
|
|
|
1233
1250
|
return createCoords(1);
|
|
1234
1251
|
}
|
|
1235
1252
|
const n = e.getBoundingClientRect();
|
|
1236
|
-
const {width: o, height: i, $:
|
|
1237
|
-
let
|
|
1238
|
-
let l = (
|
|
1253
|
+
const {width: o, height: i, $: r} = getCssDimensions(e);
|
|
1254
|
+
let c = (r ? s(n.width) : n.width) / o;
|
|
1255
|
+
let l = (r ? s(n.height) : n.height) / i;
|
|
1239
1256
|
// 0, NaN, or Infinity should always fallback to 1.
|
|
1240
|
-
if (!
|
|
1241
|
-
|
|
1257
|
+
if (!c || !Number.isFinite(c)) {
|
|
1258
|
+
c = 1;
|
|
1242
1259
|
}
|
|
1243
1260
|
if (!l || !Number.isFinite(l)) {
|
|
1244
1261
|
l = 1;
|
|
1245
1262
|
}
|
|
1246
1263
|
return {
|
|
1247
|
-
x:
|
|
1264
|
+
x: c,
|
|
1248
1265
|
y: l
|
|
1249
1266
|
};
|
|
1250
1267
|
}
|
|
@@ -1281,21 +1298,21 @@ function getBoundingClientRect(t, e, n, o) {
|
|
|
1281
1298
|
}
|
|
1282
1299
|
const i = t.getBoundingClientRect();
|
|
1283
1300
|
const s = unwrapElement(t);
|
|
1284
|
-
let
|
|
1301
|
+
let r = createCoords(1);
|
|
1285
1302
|
if (e) {
|
|
1286
1303
|
if (o) {
|
|
1287
1304
|
if (isElement(o)) {
|
|
1288
|
-
|
|
1305
|
+
r = getScale(o);
|
|
1289
1306
|
}
|
|
1290
1307
|
} else {
|
|
1291
|
-
|
|
1308
|
+
r = getScale(t);
|
|
1292
1309
|
}
|
|
1293
1310
|
}
|
|
1294
|
-
const
|
|
1295
|
-
let l = (i.left +
|
|
1296
|
-
let a = (i.top +
|
|
1297
|
-
let f = i.width /
|
|
1298
|
-
let u = i.height /
|
|
1311
|
+
const c = shouldAddVisualOffsets(s, n, o) ? getVisualOffsets(s) : createCoords(0);
|
|
1312
|
+
let l = (i.left + c.x) / r.x;
|
|
1313
|
+
let a = (i.top + c.y) / r.y;
|
|
1314
|
+
let f = i.width / r.x;
|
|
1315
|
+
let u = i.height / r.y;
|
|
1299
1316
|
if (s) {
|
|
1300
1317
|
const t = getWindow(s);
|
|
1301
1318
|
const e = o && isElement(o) ? getWindow(o) : o;
|
|
@@ -1306,13 +1323,13 @@ function getBoundingClientRect(t, e, n, o) {
|
|
|
1306
1323
|
const e = i.getBoundingClientRect();
|
|
1307
1324
|
const o = getComputedStyle(i);
|
|
1308
1325
|
const s = e.left + (i.clientLeft + parseFloat(o.paddingLeft)) * t.x;
|
|
1309
|
-
const
|
|
1326
|
+
const r = e.top + (i.clientTop + parseFloat(o.paddingTop)) * t.y;
|
|
1310
1327
|
l *= t.x;
|
|
1311
1328
|
a *= t.y;
|
|
1312
1329
|
f *= t.x;
|
|
1313
1330
|
u *= t.y;
|
|
1314
1331
|
l += s;
|
|
1315
|
-
a +=
|
|
1332
|
+
a += r;
|
|
1316
1333
|
n = getWindow(i);
|
|
1317
1334
|
i = getFrameElement(n);
|
|
1318
1335
|
}
|
|
@@ -1328,9 +1345,9 @@ function getBoundingClientRect(t, e, n, o) {
|
|
|
1328
1345
|
function convertOffsetParentRelativeRectToViewportRelativeRect(t) {
|
|
1329
1346
|
let {elements: e, rect: n, offsetParent: o, strategy: i} = t;
|
|
1330
1347
|
const s = i === "fixed";
|
|
1331
|
-
const
|
|
1332
|
-
const
|
|
1333
|
-
if (o ===
|
|
1348
|
+
const r = getDocumentElement(o);
|
|
1349
|
+
const c = e ? isTopLayer(e.floating) : false;
|
|
1350
|
+
if (o === r || c && s) {
|
|
1334
1351
|
return n;
|
|
1335
1352
|
}
|
|
1336
1353
|
let l = {
|
|
@@ -1341,7 +1358,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(t) {
|
|
|
1341
1358
|
const f = createCoords(0);
|
|
1342
1359
|
const u = isHTMLElement(o);
|
|
1343
1360
|
if (u || !u && !s) {
|
|
1344
|
-
if (getNodeName(o) !== "body" || isOverflowElement(
|
|
1361
|
+
if (getNodeName(o) !== "body" || isOverflowElement(r)) {
|
|
1345
1362
|
l = getNodeScroll(o);
|
|
1346
1363
|
}
|
|
1347
1364
|
if (isHTMLElement(o)) {
|
|
@@ -1363,10 +1380,14 @@ function getClientRects(t) {
|
|
|
1363
1380
|
return Array.from(t.getClientRects());
|
|
1364
1381
|
}
|
|
1365
1382
|
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1383
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
1384
|
+
// incorrect for RTL.
|
|
1385
|
+
function getWindowScrollBarX(t, e) {
|
|
1386
|
+
const n = getNodeScroll(t).scrollLeft;
|
|
1387
|
+
if (!e) {
|
|
1388
|
+
return getBoundingClientRect(getDocumentElement(t)).left + n;
|
|
1389
|
+
}
|
|
1390
|
+
return e.left + n;
|
|
1370
1391
|
}
|
|
1371
1392
|
|
|
1372
1393
|
// Gets the entire size of the scrollable document area, even extending outside
|
|
@@ -1376,16 +1397,16 @@ function getDocumentRect(t) {
|
|
|
1376
1397
|
const n = getNodeScroll(t);
|
|
1377
1398
|
const o = t.ownerDocument.body;
|
|
1378
1399
|
const s = i(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth);
|
|
1379
|
-
const
|
|
1380
|
-
let
|
|
1400
|
+
const r = i(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1401
|
+
let c = -n.scrollLeft + getWindowScrollBarX(t);
|
|
1381
1402
|
const l = -n.scrollTop;
|
|
1382
1403
|
if (getComputedStyle(o).direction === "rtl") {
|
|
1383
|
-
|
|
1404
|
+
c += i(e.clientWidth, o.clientWidth) - s;
|
|
1384
1405
|
}
|
|
1385
1406
|
return {
|
|
1386
1407
|
width: s,
|
|
1387
|
-
height:
|
|
1388
|
-
x:
|
|
1408
|
+
height: r,
|
|
1409
|
+
x: c,
|
|
1389
1410
|
y: l
|
|
1390
1411
|
};
|
|
1391
1412
|
}
|
|
@@ -1395,22 +1416,22 @@ function getViewportRect(t, e) {
|
|
|
1395
1416
|
const o = getDocumentElement(t);
|
|
1396
1417
|
const i = n.visualViewport;
|
|
1397
1418
|
let s = o.clientWidth;
|
|
1398
|
-
let
|
|
1399
|
-
let
|
|
1419
|
+
let r = o.clientHeight;
|
|
1420
|
+
let c = 0;
|
|
1400
1421
|
let l = 0;
|
|
1401
1422
|
if (i) {
|
|
1402
1423
|
s = i.width;
|
|
1403
|
-
|
|
1424
|
+
r = i.height;
|
|
1404
1425
|
const t = isWebKit();
|
|
1405
1426
|
if (!t || t && e === "fixed") {
|
|
1406
|
-
|
|
1427
|
+
c = i.offsetLeft;
|
|
1407
1428
|
l = i.offsetTop;
|
|
1408
1429
|
}
|
|
1409
1430
|
}
|
|
1410
1431
|
return {
|
|
1411
1432
|
width: s,
|
|
1412
|
-
height:
|
|
1413
|
-
x:
|
|
1433
|
+
height: r,
|
|
1434
|
+
x: c,
|
|
1414
1435
|
y: l
|
|
1415
1436
|
};
|
|
1416
1437
|
}
|
|
@@ -1421,13 +1442,13 @@ function getInnerBoundingClientRect(t, e) {
|
|
|
1421
1442
|
const o = n.top + t.clientTop;
|
|
1422
1443
|
const i = n.left + t.clientLeft;
|
|
1423
1444
|
const s = isHTMLElement(t) ? getScale(t) : createCoords(1);
|
|
1424
|
-
const
|
|
1425
|
-
const
|
|
1445
|
+
const r = t.clientWidth * s.x;
|
|
1446
|
+
const c = t.clientHeight * s.y;
|
|
1426
1447
|
const l = i * s.x;
|
|
1427
1448
|
const a = o * s.y;
|
|
1428
1449
|
return {
|
|
1429
|
-
width:
|
|
1430
|
-
height:
|
|
1450
|
+
width: r,
|
|
1451
|
+
height: c,
|
|
1431
1452
|
x: l,
|
|
1432
1453
|
y: a
|
|
1433
1454
|
};
|
|
@@ -1471,23 +1492,23 @@ function getClippingElementAncestors(t, e) {
|
|
|
1471
1492
|
let o = getOverflowAncestors(t, [], false).filter((t => isElement(t) && getNodeName(t) !== "body"));
|
|
1472
1493
|
let i = null;
|
|
1473
1494
|
const s = getComputedStyle(t).position === "fixed";
|
|
1474
|
-
let
|
|
1495
|
+
let r = s ? getParentNode(t) : t;
|
|
1475
1496
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1476
|
-
while (isElement(
|
|
1477
|
-
const e = getComputedStyle(
|
|
1478
|
-
const n = isContainingBlock(
|
|
1497
|
+
while (isElement(r) && !isLastTraversableNode(r)) {
|
|
1498
|
+
const e = getComputedStyle(r);
|
|
1499
|
+
const n = isContainingBlock(r);
|
|
1479
1500
|
if (!n && e.position === "fixed") {
|
|
1480
1501
|
i = null;
|
|
1481
1502
|
}
|
|
1482
|
-
const
|
|
1483
|
-
if (
|
|
1503
|
+
const c = s ? !n && !i : !n && e.position === "static" && !!i && [ "absolute", "fixed" ].includes(i.position) || isOverflowElement(r) && !n && hasFixedPositionAncestor(t, r);
|
|
1504
|
+
if (c) {
|
|
1484
1505
|
// Drop non-containing blocks.
|
|
1485
|
-
o = o.filter((t => t !==
|
|
1506
|
+
o = o.filter((t => t !== r));
|
|
1486
1507
|
} else {
|
|
1487
1508
|
// Record last containing block for next iteration.
|
|
1488
1509
|
i = e;
|
|
1489
1510
|
}
|
|
1490
|
-
|
|
1511
|
+
r = getParentNode(r);
|
|
1491
1512
|
}
|
|
1492
1513
|
e.set(t, o);
|
|
1493
1514
|
return o;
|
|
@@ -1496,18 +1517,18 @@ function getClippingElementAncestors(t, e) {
|
|
|
1496
1517
|
// Gets the maximum area that the element is visible in due to any number of
|
|
1497
1518
|
// clipping ancestors.
|
|
1498
1519
|
function getClippingRect(t) {
|
|
1499
|
-
let {element: e, boundary: n, rootBoundary: s, strategy:
|
|
1500
|
-
const
|
|
1501
|
-
const l = [ ...
|
|
1520
|
+
let {element: e, boundary: n, rootBoundary: s, strategy: r} = t;
|
|
1521
|
+
const c = n === "clippingAncestors" ? isTopLayer(e) ? [] : getClippingElementAncestors(e, this._c) : [].concat(n);
|
|
1522
|
+
const l = [ ...c, s ];
|
|
1502
1523
|
const a = l[0];
|
|
1503
1524
|
const f = l.reduce(((t, n) => {
|
|
1504
|
-
const s = getClientRectFromClippingAncestor(e, n,
|
|
1525
|
+
const s = getClientRectFromClippingAncestor(e, n, r);
|
|
1505
1526
|
t.top = i(s.top, t.top);
|
|
1506
1527
|
t.right = o(s.right, t.right);
|
|
1507
1528
|
t.bottom = o(s.bottom, t.bottom);
|
|
1508
1529
|
t.left = i(s.left, t.left);
|
|
1509
1530
|
return t;
|
|
1510
|
-
}), getClientRectFromClippingAncestor(e, a,
|
|
1531
|
+
}), getClientRectFromClippingAncestor(e, a, r));
|
|
1511
1532
|
return {
|
|
1512
1533
|
width: f.right - f.left,
|
|
1513
1534
|
height: f.bottom - f.top,
|
|
@@ -1528,31 +1549,42 @@ function getRectRelativeToOffsetParent(t, e, n) {
|
|
|
1528
1549
|
const o = isHTMLElement(e);
|
|
1529
1550
|
const i = getDocumentElement(e);
|
|
1530
1551
|
const s = n === "fixed";
|
|
1531
|
-
const
|
|
1532
|
-
let
|
|
1552
|
+
const r = getBoundingClientRect(t, true, s, e);
|
|
1553
|
+
let c = {
|
|
1533
1554
|
scrollLeft: 0,
|
|
1534
1555
|
scrollTop: 0
|
|
1535
1556
|
};
|
|
1536
1557
|
const l = createCoords(0);
|
|
1537
1558
|
if (o || !o && !s) {
|
|
1538
1559
|
if (getNodeName(e) !== "body" || isOverflowElement(i)) {
|
|
1539
|
-
|
|
1560
|
+
c = getNodeScroll(e);
|
|
1540
1561
|
}
|
|
1541
1562
|
if (o) {
|
|
1542
1563
|
const t = getBoundingClientRect(e, true, s, e);
|
|
1543
1564
|
l.x = t.x + e.clientLeft;
|
|
1544
1565
|
l.y = t.y + e.clientTop;
|
|
1545
1566
|
} else if (i) {
|
|
1567
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
1568
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
1546
1569
|
l.x = getWindowScrollBarX(i);
|
|
1547
1570
|
}
|
|
1548
1571
|
}
|
|
1549
|
-
|
|
1550
|
-
|
|
1572
|
+
let a = 0;
|
|
1573
|
+
let f = 0;
|
|
1574
|
+
if (i && !o && !s) {
|
|
1575
|
+
const t = i.getBoundingClientRect();
|
|
1576
|
+
f = t.top + c.scrollTop;
|
|
1577
|
+
a = t.left + c.scrollLeft -
|
|
1578
|
+
// RTL <body> scrollbar.
|
|
1579
|
+
getWindowScrollBarX(i, t);
|
|
1580
|
+
}
|
|
1581
|
+
const u = r.left + c.scrollLeft - l.x - a;
|
|
1582
|
+
const g = r.top + c.scrollTop - l.y - f;
|
|
1551
1583
|
return {
|
|
1552
|
-
x:
|
|
1553
|
-
y:
|
|
1554
|
-
width:
|
|
1555
|
-
height:
|
|
1584
|
+
x: u,
|
|
1585
|
+
y: g,
|
|
1586
|
+
width: r.width,
|
|
1587
|
+
height: r.height
|
|
1556
1588
|
};
|
|
1557
1589
|
}
|
|
1558
1590
|
|
|
@@ -1567,7 +1599,15 @@ function getTrueOffsetParent(t, e) {
|
|
|
1567
1599
|
if (e) {
|
|
1568
1600
|
return e(t);
|
|
1569
1601
|
}
|
|
1570
|
-
|
|
1602
|
+
let n = t.offsetParent;
|
|
1603
|
+
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
|
1604
|
+
// while Chrome and Safari return the <body> element. The <body> element must
|
|
1605
|
+
// be used to perform the correct calculations even if the <html> element is
|
|
1606
|
+
// non-static.
|
|
1607
|
+
if (getDocumentElement(t) === n) {
|
|
1608
|
+
n = n.ownerDocument.body;
|
|
1609
|
+
}
|
|
1610
|
+
return n;
|
|
1571
1611
|
}
|
|
1572
1612
|
|
|
1573
1613
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
@@ -1633,7 +1673,7 @@ const f = {
|
|
|
1633
1673
|
function observeMove(t, e) {
|
|
1634
1674
|
let n = null;
|
|
1635
1675
|
let s;
|
|
1636
|
-
const
|
|
1676
|
+
const c = getDocumentElement(t);
|
|
1637
1677
|
function cleanup() {
|
|
1638
1678
|
var t;
|
|
1639
1679
|
clearTimeout(s);
|
|
@@ -1655,10 +1695,10 @@ function observeMove(t, e) {
|
|
|
1655
1695
|
if (!g || !d) {
|
|
1656
1696
|
return;
|
|
1657
1697
|
}
|
|
1658
|
-
const m =
|
|
1659
|
-
const p = c
|
|
1660
|
-
const h = c
|
|
1661
|
-
const w =
|
|
1698
|
+
const m = r(u);
|
|
1699
|
+
const p = r(c.clientWidth - (f + g));
|
|
1700
|
+
const h = r(c.clientHeight - (u + d));
|
|
1701
|
+
const w = r(f);
|
|
1662
1702
|
const y = -m + "px " + -p + "px " + -h + "px " + -w + "px";
|
|
1663
1703
|
const v = {
|
|
1664
1704
|
rootMargin: y,
|
|
@@ -1689,7 +1729,7 @@ function observeMove(t, e) {
|
|
|
1689
1729
|
n = new IntersectionObserver(handleObserve, {
|
|
1690
1730
|
...v,
|
|
1691
1731
|
// Handle <iframe>s
|
|
1692
|
-
root:
|
|
1732
|
+
root: c.ownerDocument
|
|
1693
1733
|
});
|
|
1694
1734
|
} catch (t) {
|
|
1695
1735
|
n = new IntersectionObserver(handleObserve, v);
|
|
@@ -1711,7 +1751,7 @@ function observeMove(t, e) {
|
|
|
1711
1751
|
if (o === void 0) {
|
|
1712
1752
|
o = {};
|
|
1713
1753
|
}
|
|
1714
|
-
const {ancestorScroll: i = true, ancestorResize: s = true, elementResize:
|
|
1754
|
+
const {ancestorScroll: i = true, ancestorResize: s = true, elementResize: r = typeof ResizeObserver === "function", layoutShift: c = typeof IntersectionObserver === "function", animationFrame: l = false} = o;
|
|
1715
1755
|
const a = unwrapElement(t);
|
|
1716
1756
|
const f = i || s ? [ ...a ? getOverflowAncestors(a) : [], ...getOverflowAncestors(e) ] : [];
|
|
1717
1757
|
f.forEach((t => {
|
|
@@ -1720,10 +1760,10 @@ function observeMove(t, e) {
|
|
|
1720
1760
|
});
|
|
1721
1761
|
s && t.addEventListener("resize", n);
|
|
1722
1762
|
}));
|
|
1723
|
-
const u = a &&
|
|
1763
|
+
const u = a && c ? observeMove(a, n) : null;
|
|
1724
1764
|
let g = -1;
|
|
1725
1765
|
let d = null;
|
|
1726
|
-
if (
|
|
1766
|
+
if (r) {
|
|
1727
1767
|
d = new ResizeObserver((t => {
|
|
1728
1768
|
let [o] = t;
|
|
1729
1769
|
if (o && o.target === a && d) {
|
|
@@ -1852,6 +1892,10 @@ function observeMove(t, e) {
|
|
|
1852
1892
|
};
|
|
1853
1893
|
|
|
1854
1894
|
class w {
|
|
1895
|
+
panel;
|
|
1896
|
+
trigger;
|
|
1897
|
+
options;
|
|
1898
|
+
cleanUp;
|
|
1855
1899
|
constructor(t, e, n) {
|
|
1856
1900
|
this.trigger = t;
|
|
1857
1901
|
this.panel = e;
|
|
@@ -1936,4 +1980,4 @@ class w {
|
|
|
1936
1980
|
}
|
|
1937
1981
|
|
|
1938
1982
|
export { w as F };
|
|
1939
|
-
//# sourceMappingURL=p-
|
|
1983
|
+
//# sourceMappingURL=p-c78ae3c2.js.map
|