@esri/calcite-components 1.0.8-next.2 → 1.0.8-next.3
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/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-d887ef4c.entry.js → p-07760bdb.entry.js} +2 -2
- package/dist/calcite/{p-ad0d9bc7.entry.js → p-0e76badc.entry.js} +2 -2
- package/dist/calcite/{p-4e0b1ad6.entry.js → p-0e8723d2.entry.js} +2 -2
- package/dist/calcite/{p-5aa5130f.entry.js → p-119da718.entry.js} +2 -2
- package/dist/calcite/{p-53c2fd48.entry.js → p-14923513.entry.js} +2 -2
- package/dist/calcite/{p-0cc3f189.entry.js → p-156330e1.entry.js} +2 -2
- package/dist/calcite/{p-e88c5757.js → p-17346bc7.js} +1 -1
- package/dist/calcite/{p-1356f54e.entry.js → p-1a08a469.entry.js} +2 -2
- package/dist/calcite/{p-218e09f4.js → p-1f702d05.js} +1 -1
- package/dist/calcite/{p-85dbec85.js → p-21c0d073.js} +1 -1
- package/dist/calcite/{p-771ba6bb.entry.js → p-2562d71e.entry.js} +2 -2
- package/dist/calcite/{p-6e9a6d1a.entry.js → p-25f61c22.entry.js} +2 -2
- package/dist/calcite/{p-c74e99a9.entry.js → p-26bc7395.entry.js} +2 -2
- package/dist/calcite/{p-760e9ab7.js → p-2c2ae05d.js} +1 -1
- package/dist/calcite/{p-039c725e.entry.js → p-313c67ab.entry.js} +2 -2
- package/dist/calcite/{p-8c9d1ee3.js → p-32c86903.js} +1 -1
- package/dist/calcite/{p-baa1442a.js → p-36fbeef7.js} +2 -2
- package/dist/calcite/{p-87e750a3.entry.js → p-3ea65296.entry.js} +2 -2
- package/dist/calcite/{p-5d7adad9.entry.js → p-3f2a95c4.entry.js} +2 -2
- package/dist/calcite/p-48cc2e6f.entry.js +6 -0
- package/dist/calcite/{p-86bfdf9e.entry.js → p-48ee1335.entry.js} +2 -2
- package/dist/calcite/{p-5baf0baf.entry.js → p-4910a65a.entry.js} +2 -2
- package/dist/calcite/{p-bfbd2123.entry.js → p-4ac54658.entry.js} +2 -2
- package/dist/calcite/{p-5ff6f291.js → p-50e06980.js} +1 -1
- package/dist/calcite/{p-c5dbb5c4.entry.js → p-5101f94c.entry.js} +2 -2
- package/dist/calcite/{p-20987be1.entry.js → p-52ba5845.entry.js} +2 -2
- package/dist/calcite/{p-e893c1ce.js → p-583d5fbb.js} +2 -2
- package/dist/calcite/{p-4b3b448a.js → p-5c189d66.js} +1 -1
- package/dist/calcite/{p-c3f87ec4.entry.js → p-62564886.entry.js} +2 -2
- package/dist/calcite/{p-6475649a.entry.js → p-65e2ab81.entry.js} +2 -2
- package/dist/calcite/{p-a0408ce7.entry.js → p-680c0709.entry.js} +2 -2
- package/dist/calcite/{p-cccaca7c.entry.js → p-6899fae6.entry.js} +2 -2
- package/dist/calcite/{p-59e495ab.js → p-689a0e1b.js} +2 -2
- package/dist/calcite/{p-91c76de7.entry.js → p-68d57ec6.entry.js} +2 -2
- package/dist/calcite/{p-f2bd1be3.js → p-6bbf986a.js} +2 -2
- package/dist/calcite/{p-5509fb55.js → p-6cc26e32.js} +1 -1
- package/dist/calcite/{p-75154b79.entry.js → p-6df67aa9.entry.js} +2 -2
- package/dist/calcite/{p-148be298.js → p-7317d900.js} +1 -1
- package/dist/calcite/p-73312705.js +6 -0
- package/dist/calcite/{p-e9cc77d3.js → p-73574257.js} +2 -2
- package/dist/calcite/{p-48c9413a.entry.js → p-746bba7c.entry.js} +2 -2
- package/dist/calcite/{p-30336104.entry.js → p-7524b65d.entry.js} +2 -2
- package/dist/calcite/{p-50d20fbb.js → p-75395d0b.js} +2 -2
- package/dist/calcite/p-76f59c34.js +6 -0
- package/dist/calcite/{p-905615c5.entry.js → p-77d71859.entry.js} +2 -2
- package/dist/calcite/{p-1bfe88a4.js → p-79aa47cd.js} +2 -2
- package/dist/calcite/{p-a29babae.js → p-79c2a500.js} +2 -2
- package/dist/calcite/{p-c0cc8fed.entry.js → p-7a7427f3.entry.js} +2 -2
- package/dist/calcite/{p-c807ae0e.entry.js → p-7dbfd0d2.entry.js} +2 -2
- package/dist/calcite/p-7eca1702.entry.js +6 -0
- package/dist/calcite/{p-fcd6116f.entry.js → p-8055ee05.entry.js} +2 -2
- package/dist/calcite/{p-d58db55a.entry.js → p-828add39.entry.js} +2 -2
- package/dist/calcite/{p-303d6fdd.entry.js → p-8398f5ca.entry.js} +2 -2
- package/dist/calcite/{p-49fabe2c.js → p-8cddf0f1.js} +2 -2
- package/dist/calcite/{p-3af2461d.entry.js → p-9320ea39.entry.js} +2 -2
- package/dist/calcite/{p-3fa3dbca.entry.js → p-973b598e.entry.js} +2 -2
- package/dist/calcite/{p-bbf678a4.entry.js → p-975f9542.entry.js} +2 -2
- package/dist/calcite/{p-ee760cf0.js → p-9da00d00.js} +2 -2
- package/dist/calcite/{p-5b87ec7e.js → p-9f9a4b5b.js} +2 -2
- package/dist/calcite/{p-555e407e.entry.js → p-a142ac78.entry.js} +2 -2
- package/dist/calcite/{p-e3c586d2.js → p-a29474ab.js} +1 -1
- package/dist/calcite/{p-c1d3e337.entry.js → p-a918182e.entry.js} +2 -2
- package/dist/calcite/{p-d2a1c21a.entry.js → p-ab782093.entry.js} +2 -2
- package/dist/calcite/{p-3b4bb40c.entry.js → p-ad521d0c.entry.js} +2 -2
- package/dist/calcite/{p-8e9e387f.entry.js → p-b2500f1b.entry.js} +2 -2
- package/dist/calcite/{p-9c544005.js → p-b4cb48e4.js} +2 -2
- package/dist/calcite/{p-70b3e502.entry.js → p-b99a20f8.entry.js} +2 -2
- package/dist/calcite/{p-2f72e62e.entry.js → p-c0bc7040.entry.js} +2 -2
- package/dist/calcite/{p-75422d1d.entry.js → p-c62126af.entry.js} +2 -2
- package/dist/calcite/{p-da29ac4b.entry.js → p-ca5e9c81.entry.js} +2 -2
- package/dist/calcite/{p-2c137ad9.entry.js → p-ce3ec67d.entry.js} +2 -2
- package/dist/calcite/{p-2f5920f7.entry.js → p-cfa712af.entry.js} +2 -2
- package/dist/calcite/{p-911246b2.entry.js → p-d15f1045.entry.js} +2 -2
- package/dist/calcite/{p-0f8c9217.entry.js → p-d2b9ff60.entry.js} +2 -2
- package/dist/calcite/{p-1b622e95.entry.js → p-d2df2532.entry.js} +2 -2
- package/dist/calcite/{p-3fb94ea7.entry.js → p-d2fde8a7.entry.js} +2 -2
- package/dist/calcite/p-d546d7bc.js +6 -0
- package/dist/calcite/{p-437d2838.entry.js → p-d98dcd51.entry.js} +2 -2
- package/dist/calcite/{p-f2b311ab.entry.js → p-dcbb758a.entry.js} +2 -2
- package/dist/calcite/{p-85e0fd70.entry.js → p-deab9ca7.entry.js} +2 -2
- package/dist/calcite/{p-86a4296f.js → p-df30ff5b.js} +1 -1
- package/dist/calcite/{p-d948ad03.entry.js → p-e16c9477.entry.js} +2 -2
- package/dist/calcite/{p-d8d857a2.js → p-e3a67b4b.js} +1 -1
- package/dist/calcite/{p-ebc0a612.entry.js → p-e4873f73.entry.js} +2 -2
- package/dist/calcite/{p-d4f173c7.entry.js → p-eced47d3.entry.js} +2 -2
- package/dist/calcite/{p-b2d7f4b4.js → p-ed712f2f.js} +1 -1
- package/dist/calcite/{p-629aa743.js → p-f36adec2.js} +1 -1
- package/dist/calcite/{p-ede79021.entry.js → p-f426ece3.entry.js} +2 -2
- package/dist/calcite/{p-291b8eed.entry.js → p-f5604f50.entry.js} +2 -2
- package/dist/calcite/{p-b7035008.js → p-f66ad689.js} +1 -1
- package/dist/calcite/p-fb268e85.js +6 -0
- package/dist/calcite/{p-036b5a0a.js → p-fb720fbb.js} +1 -1
- package/dist/cjs/{ExpandToggle-6750fa12.js → ExpandToggle-921267ee.js} +5 -5
- package/dist/cjs/{Heading-e8c5541d.js → Heading-54972447.js} +2 -2
- package/dist/cjs/{app-globals-1ef14f5e.js → app-globals-c3f7ef69.js} +2 -2
- package/dist/cjs/{array-6d99135a.js → array-d2b3812a.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +11 -11
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -12
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input.cjs.entry.js +14 -14
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +9 -9
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +15 -15
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +4 -4
- package/dist/cjs/{conditionalSlot-0a3162e9.js → conditionalSlot-121735f7.js} +3 -3
- package/dist/cjs/{debounce-c73f983c.js → debounce-1e51817c.js} +1 -1
- package/dist/cjs/{dom-5bd54d66.js → dom-fe2cb269.js} +3 -3
- package/dist/cjs/{filter-00d4b4ce.js → filter-501fe233.js} +2 -2
- package/dist/cjs/{floating-ui-60ba821d.js → floating-ui-4e3fe05b.js} +365 -281
- package/dist/cjs/{focusTrapComponent-483d3775.js → focusTrapComponent-df79664b.js} +2 -2
- package/dist/cjs/{form-1573b143.js → form-0ca55a28.js} +3 -3
- package/dist/cjs/{guid-c9def920.js → guid-45706f21.js} +1 -1
- package/dist/cjs/{index-bbeb32f0.js → index-371e38b6.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-74ce5407.js → interactive-628cd9ad.js} +1 -1
- package/dist/cjs/{key-dc270fba.js → key-ca8a1fb4.js} +1 -1
- package/dist/cjs/{label-6a55e7a2.js → label-81ba5f64.js} +2 -2
- package/dist/cjs/{loadable-d8257fd3.js → loadable-dae9cc2d.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-50240ebe.js → locale-2a870710.js} +4 -4
- package/dist/cjs/{math-a3ddacd0.js → math-28d0b6b3.js} +1 -1
- package/dist/cjs/{observers-e3703b61.js → observers-29dc792c.js} +1 -1
- package/dist/cjs/{openCloseComponent-ebee17e1.js → openCloseComponent-29162f5a.js} +2 -2
- package/dist/cjs/{resources-78cb0751.js → resources-128d79de.js} +5 -5
- package/dist/cjs/{resources-8eae75b1.js → resources-64254337.js} +1 -1
- package/dist/cjs/{resources-431e2844.js → resources-a939c5f8.js} +1 -1
- package/dist/cjs/{resources-f8999e20.js → resources-d60d2f95.js} +1 -1
- package/dist/cjs/{resources-016ff756.js → resources-de6d7aa9.js} +1 -1
- package/dist/cjs/{resources-6cfe9208.js → resources-ecc79804.js} +1 -1
- package/dist/cjs/{sortable.esm-a6569dc5.js → sortable.esm-ebf50dbd.js} +1 -1
- package/dist/cjs/{t9n-0b9010ed.js → t9n-e6086e9e.js} +3 -3
- package/dist/cjs/utils-20a03593.js +49 -0
- package/dist/cjs/{utils-54070ec4.js → utils-38ed939a.js} +3 -3
- package/dist/cjs/{utils-999aa406.js → utils-80a4ee2b.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.css +1 -0
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/utils.js +45 -0
- package/dist/collection/utils/floating-ui.js +20 -9
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +2 -2
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +364 -279
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/utils4.js +47 -0
- package/dist/esm/{ExpandToggle-adba8ef1.js → ExpandToggle-d282076b.js} +5 -5
- package/dist/esm/{Heading-884c201c.js → Heading-5d834a17.js} +2 -2
- package/dist/esm/{app-globals-9d03952a.js → app-globals-70bab2c7.js} +2 -2
- package/dist/esm/{array-05da54c4.js → array-96350477.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +12 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +12 -12
- package/dist/esm/calcite-button.entry.js +13 -13
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip.entry.js +11 -11
- package/dist/esm/calcite-color-picker_3.entry.js +14 -14
- package/dist/esm/calcite-combobox_3.entry.js +18 -18
- package/dist/esm/calcite-date-picker_4.entry.js +12 -12
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +13 -13
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- package/dist/esm/calcite-handle.entry.js +6 -6
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +16 -16
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +14 -14
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/calcite-input-time-picker_2.entry.js +13 -13
- package/dist/esm/calcite-input.entry.js +14 -14
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +9 -9
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +15 -15
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +10 -10
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +4 -4
- package/dist/esm/{conditionalSlot-83ed5991.js → conditionalSlot-4ee42484.js} +3 -3
- package/dist/esm/{debounce-e55f82c3.js → debounce-d8fd277f.js} +1 -1
- package/dist/esm/{dom-33ef844b.js → dom-f8946b40.js} +3 -3
- package/dist/esm/{filter-a5039686.js → filter-3d9fdea7.js} +2 -2
- package/dist/esm/{floating-ui-421f2364.js → floating-ui-c1ead8f5.js} +366 -281
- package/dist/esm/{focusTrapComponent-006e8a84.js → focusTrapComponent-4f881af9.js} +2 -2
- package/dist/esm/{form-d9219e62.js → form-9fa3e085.js} +3 -3
- package/dist/esm/{guid-71d46209.js → guid-1618473d.js} +1 -1
- package/dist/esm/{index-e881a386.js → index-f56f9f14.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-a310bbba.js → interactive-d745f84b.js} +1 -1
- package/dist/esm/{key-7e900511.js → key-49a56807.js} +1 -1
- package/dist/esm/{label-a973f1ff.js → label-3d5e91f3.js} +2 -2
- package/dist/esm/{loadable-cc1cd7bb.js → loadable-6610d8f6.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-a26c484e.js → locale-85632677.js} +4 -4
- package/dist/esm/{math-c8037b6b.js → math-8895a235.js} +1 -1
- package/dist/esm/{observers-6141ed0d.js → observers-38fee0f8.js} +1 -1
- package/dist/esm/{openCloseComponent-30c0ac89.js → openCloseComponent-5e1b0acc.js} +2 -2
- package/dist/esm/{resources-40e69fc1.js → resources-46905f96.js} +1 -1
- package/dist/esm/{resources-0c0b57bb.js → resources-7828761d.js} +5 -5
- package/dist/esm/{resources-7677850e.js → resources-9015ddd2.js} +1 -1
- package/dist/esm/{resources-ba86815c.js → resources-96d43941.js} +1 -1
- package/dist/esm/{resources-18cf7121.js → resources-ec22c4c8.js} +1 -1
- package/dist/esm/{resources-ec2621fb.js → resources-ff8bccb0.js} +1 -1
- package/dist/esm/{sortable.esm-538ee488.js → sortable.esm-b6292b71.js} +1 -1
- package/dist/esm/{t9n-f3a42dff.js → t9n-8115e2b5.js} +3 -3
- package/dist/esm/{utils-33481796.js → utils-2e0db930.js} +1 -1
- package/dist/esm/{utils-511ef930.js → utils-34ee4391.js} +3 -3
- package/dist/esm/utils-7afce2e3.js +47 -0
- package/dist/extras/docs-json.json +1 -1
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/utils/floating-ui/utils.d.ts +4 -0
- package/hydrate/index.js +341 -271
- package/package.json +2 -2
- package/dist/calcite/p-02fb4f57.js +0 -6
- package/dist/calcite/p-377fc007.js +0 -6
- package/dist/calcite/p-45364293.js +0 -6
- package/dist/calcite/p-45e1cb16.entry.js +0 -6
- package/dist/calcite/p-6ca4fae5.entry.js +0 -6
- package/dist/calcite/p-b8396281.js +0 -6
- package/dist/cjs/nonChromiumPlatformUtils-c0257578.js +0 -506
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +0 -496
- package/dist/components/nonChromiumPlatformUtils.js +0 -498
- package/dist/esm/nonChromiumPlatformUtils-1eb8ea65.js +0 -502
- package/dist/types/utils/floating-ui/nonChromiumPlatformUtils.d.ts +0 -15
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.8-next.2
|
|
5
|
-
*/
|
|
6
|
-
'use strict';
|
|
7
|
-
|
|
8
|
-
const floatingUi = require('./floating-ui-60ba821d.js');
|
|
9
|
-
require('./dom-5bd54d66.js');
|
|
10
|
-
require('./guid-c9def920.js');
|
|
11
|
-
require('./resources-016ff756.js');
|
|
12
|
-
require('./debounce-c73f983c.js');
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* This module provides utils to fix positioning across shadow DOM in non-Chromium browsers
|
|
16
|
-
*
|
|
17
|
-
* It is based on floating-ui's distributable
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* 👇 the following are needed to fix shadow DOM positioning 👇️
|
|
21
|
-
*
|
|
22
|
-
* @param element
|
|
23
|
-
*/
|
|
24
|
-
function getTrueOffsetParent(element) {
|
|
25
|
-
if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return composedOffsetParent(element);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Polyfills the old offsetParent behavior from before the spec was changed:
|
|
32
|
-
* https://github.com/w3c/csswg-drafts/issues/159
|
|
33
|
-
*
|
|
34
|
-
* @param element
|
|
35
|
-
*/
|
|
36
|
-
function composedOffsetParent(element) {
|
|
37
|
-
let { offsetParent } = element;
|
|
38
|
-
let ancestor = element;
|
|
39
|
-
let foundInsideSlot = false;
|
|
40
|
-
while (ancestor && ancestor !== offsetParent) {
|
|
41
|
-
const { assignedSlot } = ancestor;
|
|
42
|
-
if (assignedSlot) {
|
|
43
|
-
let newOffsetParent = assignedSlot.offsetParent;
|
|
44
|
-
if (getComputedStyle(assignedSlot).display === "contents") {
|
|
45
|
-
const hadStyleAttribute = assignedSlot.hasAttribute("style");
|
|
46
|
-
const oldDisplay = assignedSlot.style.display;
|
|
47
|
-
assignedSlot.style.display = getComputedStyle(ancestor).display;
|
|
48
|
-
newOffsetParent = assignedSlot.offsetParent;
|
|
49
|
-
assignedSlot.style.display = oldDisplay;
|
|
50
|
-
if (!hadStyleAttribute) {
|
|
51
|
-
assignedSlot.removeAttribute("style");
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
ancestor = assignedSlot;
|
|
55
|
-
if (offsetParent !== newOffsetParent) {
|
|
56
|
-
offsetParent = newOffsetParent;
|
|
57
|
-
foundInsideSlot = true;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
else if (isShadowRoot(ancestor) && ancestor.host && foundInsideSlot) {
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
ancestor = (isShadowRoot(ancestor) && ancestor.host) || ancestor.parentNode;
|
|
64
|
-
}
|
|
65
|
-
return offsetParent;
|
|
66
|
-
}
|
|
67
|
-
function getElementRects(_ref) {
|
|
68
|
-
const { reference, floating, strategy } = _ref;
|
|
69
|
-
return {
|
|
70
|
-
reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
|
|
71
|
-
floating: { ...getDimensions(floating), x: 0, y: 0 }
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* ☝️ the following are needed to fix shadow DOM positioning ☝️
|
|
76
|
-
*/
|
|
77
|
-
/**
|
|
78
|
-
* 👇 the following are taken directly from floating-ui's ESM distributable to support the exports above 👇️
|
|
79
|
-
*
|
|
80
|
-
* **Notes**:
|
|
81
|
-
* unused functions are removed
|
|
82
|
-
* ESLint is disabled
|
|
83
|
-
* TS-warnings are suppressed
|
|
84
|
-
*/
|
|
85
|
-
/* eslint-disable */
|
|
86
|
-
function isWindow(value) {
|
|
87
|
-
return value && value.document && value.location && value.alert && value.setInterval;
|
|
88
|
-
}
|
|
89
|
-
function getWindow(node) {
|
|
90
|
-
if (node == null) {
|
|
91
|
-
return window;
|
|
92
|
-
}
|
|
93
|
-
if (!isWindow(node)) {
|
|
94
|
-
const ownerDocument = node.ownerDocument;
|
|
95
|
-
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
96
|
-
}
|
|
97
|
-
return node;
|
|
98
|
-
}
|
|
99
|
-
function getComputedStyle(element) {
|
|
100
|
-
return getWindow(element).getComputedStyle(element);
|
|
101
|
-
}
|
|
102
|
-
function getNodeName(node) {
|
|
103
|
-
return isWindow(node) ? "" : node ? (node.nodeName || "").toLowerCase() : "";
|
|
104
|
-
}
|
|
105
|
-
function getUAString() {
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
const uaData = navigator.userAgentData;
|
|
108
|
-
if (uaData != null && uaData.brands) {
|
|
109
|
-
return uaData.brands.map((item) => item.brand + "/" + item.version).join(" ");
|
|
110
|
-
}
|
|
111
|
-
return navigator.userAgent;
|
|
112
|
-
}
|
|
113
|
-
function isHTMLElement(value) {
|
|
114
|
-
return value instanceof getWindow(value).HTMLElement;
|
|
115
|
-
}
|
|
116
|
-
function isElement(value) {
|
|
117
|
-
return value instanceof getWindow(value).Element;
|
|
118
|
-
}
|
|
119
|
-
function isNode(value) {
|
|
120
|
-
return value instanceof getWindow(value).Node;
|
|
121
|
-
}
|
|
122
|
-
function isShadowRoot(node) {
|
|
123
|
-
// Browsers without `ShadowRoot` support
|
|
124
|
-
if (typeof ShadowRoot === "undefined") {
|
|
125
|
-
return false;
|
|
126
|
-
}
|
|
127
|
-
const OwnElement = getWindow(node).ShadowRoot;
|
|
128
|
-
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
129
|
-
}
|
|
130
|
-
function isOverflowElement(element) {
|
|
131
|
-
// Firefox wants us to check `-x` and `-y` variations as well
|
|
132
|
-
const { overflow, overflowX, overflowY, display } = getComputedStyle(element);
|
|
133
|
-
return (/auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display));
|
|
134
|
-
}
|
|
135
|
-
function isTableElement(element) {
|
|
136
|
-
return ["table", "td", "th"].includes(getNodeName(element));
|
|
137
|
-
}
|
|
138
|
-
function isContainingBlock(element) {
|
|
139
|
-
// TODO: Try and use feature detection here instead
|
|
140
|
-
const isFirefox = /firefox/i.test(getUAString());
|
|
141
|
-
const css = getComputedStyle(element); // This is non-exhaustive but covers the most common CSS properties that
|
|
142
|
-
// create a containing block.
|
|
143
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
144
|
-
return (css.transform !== "none" ||
|
|
145
|
-
css.perspective !== "none" ||
|
|
146
|
-
(isFirefox && css.willChange === "filter") ||
|
|
147
|
-
(isFirefox && (css.filter ? css.filter !== "none" : false)) ||
|
|
148
|
-
["transform", "perspective"].some((value) => css.willChange.includes(value)) ||
|
|
149
|
-
["paint", "layout", "strict", "content"].some(
|
|
150
|
-
// TS 4.1 compat
|
|
151
|
-
(value) => {
|
|
152
|
-
const contain = css.contain;
|
|
153
|
-
return contain != null ? contain.includes(value) : false;
|
|
154
|
-
}));
|
|
155
|
-
}
|
|
156
|
-
function isLayoutViewport() {
|
|
157
|
-
// Not Safari
|
|
158
|
-
return !/^((?!chrome|android).)*safari/i.test(getUAString()); // Feature detection for this fails in various ways
|
|
159
|
-
// • Always-visible scrollbar or not
|
|
160
|
-
// • Width of <html>, etc.
|
|
161
|
-
// const vV = win.visualViewport;
|
|
162
|
-
// return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
|
|
163
|
-
}
|
|
164
|
-
function isLastTraversableNode(node) {
|
|
165
|
-
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
166
|
-
}
|
|
167
|
-
const min = Math.min;
|
|
168
|
-
const max = Math.max;
|
|
169
|
-
const round = Math.round;
|
|
170
|
-
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
171
|
-
var _win$visualViewport$o, _win$visualViewport, _win$visualViewport$o2, _win$visualViewport2;
|
|
172
|
-
if (includeScale === void 0) {
|
|
173
|
-
includeScale = false;
|
|
174
|
-
}
|
|
175
|
-
if (isFixedStrategy === void 0) {
|
|
176
|
-
isFixedStrategy = false;
|
|
177
|
-
}
|
|
178
|
-
const clientRect = element.getBoundingClientRect();
|
|
179
|
-
let scaleX = 1;
|
|
180
|
-
let scaleY = 1;
|
|
181
|
-
if (includeScale && isHTMLElement(element)) {
|
|
182
|
-
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
183
|
-
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
184
|
-
}
|
|
185
|
-
const win = isElement(element) ? getWindow(element) : window;
|
|
186
|
-
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
187
|
-
const x = (clientRect.left +
|
|
188
|
-
(addVisualOffsets
|
|
189
|
-
? (_win$visualViewport$o =
|
|
190
|
-
(_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null
|
|
191
|
-
? _win$visualViewport$o
|
|
192
|
-
: 0
|
|
193
|
-
: 0)) /
|
|
194
|
-
scaleX;
|
|
195
|
-
const y = (clientRect.top +
|
|
196
|
-
(addVisualOffsets
|
|
197
|
-
? (_win$visualViewport$o2 =
|
|
198
|
-
(_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null
|
|
199
|
-
? _win$visualViewport$o2
|
|
200
|
-
: 0
|
|
201
|
-
: 0)) /
|
|
202
|
-
scaleY;
|
|
203
|
-
const width = clientRect.width / scaleX;
|
|
204
|
-
const height = clientRect.height / scaleY;
|
|
205
|
-
return {
|
|
206
|
-
width,
|
|
207
|
-
height,
|
|
208
|
-
top: y,
|
|
209
|
-
right: x + width,
|
|
210
|
-
bottom: y + height,
|
|
211
|
-
left: x,
|
|
212
|
-
x,
|
|
213
|
-
y
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function getDocumentElement(node) {
|
|
217
|
-
return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
|
|
218
|
-
}
|
|
219
|
-
function getNodeScroll(element) {
|
|
220
|
-
if (isElement(element)) {
|
|
221
|
-
return {
|
|
222
|
-
scrollLeft: element.scrollLeft,
|
|
223
|
-
scrollTop: element.scrollTop
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
return {
|
|
227
|
-
scrollLeft: element.pageXOffset,
|
|
228
|
-
scrollTop: element.pageYOffset
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
function getWindowScrollBarX(element) {
|
|
232
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
233
|
-
// incorrect for RTL.
|
|
234
|
-
// @ts-ignore
|
|
235
|
-
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
236
|
-
}
|
|
237
|
-
function isScaled(element) {
|
|
238
|
-
// @ts-ignore
|
|
239
|
-
const rect = getBoundingClientRect(element);
|
|
240
|
-
return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
|
|
241
|
-
}
|
|
242
|
-
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
243
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
244
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
245
|
-
const rect = getBoundingClientRect(element, // @ts-ignore - checked above (TS 4.1 compat)
|
|
246
|
-
isOffsetParentAnElement && isScaled(offsetParent), strategy === "fixed");
|
|
247
|
-
let scroll = {
|
|
248
|
-
scrollLeft: 0,
|
|
249
|
-
scrollTop: 0
|
|
250
|
-
};
|
|
251
|
-
const offsets = {
|
|
252
|
-
x: 0,
|
|
253
|
-
y: 0
|
|
254
|
-
};
|
|
255
|
-
if (isOffsetParentAnElement || (!isOffsetParentAnElement && strategy !== "fixed")) {
|
|
256
|
-
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
257
|
-
scroll = getNodeScroll(offsetParent);
|
|
258
|
-
}
|
|
259
|
-
if (isHTMLElement(offsetParent)) {
|
|
260
|
-
// @ts-ignore
|
|
261
|
-
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
262
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
263
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
264
|
-
}
|
|
265
|
-
else if (documentElement) {
|
|
266
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return {
|
|
270
|
-
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
271
|
-
y: rect.top + scroll.scrollTop - offsets.y,
|
|
272
|
-
width: rect.width,
|
|
273
|
-
height: rect.height
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
function getParentNode(node) {
|
|
277
|
-
if (getNodeName(node) === "html") {
|
|
278
|
-
return node;
|
|
279
|
-
}
|
|
280
|
-
return (
|
|
281
|
-
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
282
|
-
// @ts-ignore
|
|
283
|
-
node.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
284
|
-
node.parentNode || // DOM Element detected
|
|
285
|
-
(isShadowRoot(node) ? node.host : null) || // ShadowRoot detected
|
|
286
|
-
getDocumentElement(node) // fallback
|
|
287
|
-
);
|
|
288
|
-
}
|
|
289
|
-
function getContainingBlock(element) {
|
|
290
|
-
let currentNode = getParentNode(element);
|
|
291
|
-
if (isShadowRoot(currentNode)) {
|
|
292
|
-
currentNode = currentNode.host;
|
|
293
|
-
}
|
|
294
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
295
|
-
if (isContainingBlock(currentNode)) {
|
|
296
|
-
return currentNode;
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
const parent = currentNode.parentNode;
|
|
300
|
-
currentNode = isShadowRoot(parent) ? parent.host : parent;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
return null;
|
|
304
|
-
} // Gets the closest ancestor positioned element. Handles some edge cases,
|
|
305
|
-
// such as table ancestors and cross browser bugs.
|
|
306
|
-
function getOffsetParent(element) {
|
|
307
|
-
const window = getWindow(element);
|
|
308
|
-
let offsetParent = getTrueOffsetParent(element);
|
|
309
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
|
|
310
|
-
offsetParent = getTrueOffsetParent(offsetParent);
|
|
311
|
-
}
|
|
312
|
-
if (offsetParent &&
|
|
313
|
-
(getNodeName(offsetParent) === "html" ||
|
|
314
|
-
(getNodeName(offsetParent) === "body" &&
|
|
315
|
-
getComputedStyle(offsetParent).position === "static" &&
|
|
316
|
-
!isContainingBlock(offsetParent)))) {
|
|
317
|
-
return window;
|
|
318
|
-
}
|
|
319
|
-
return offsetParent || getContainingBlock(element) || window;
|
|
320
|
-
}
|
|
321
|
-
function getDimensions(element) {
|
|
322
|
-
if (isHTMLElement(element)) {
|
|
323
|
-
return {
|
|
324
|
-
width: element.offsetWidth,
|
|
325
|
-
height: element.offsetHeight
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
// @ts-ignore
|
|
329
|
-
const rect = getBoundingClientRect(element);
|
|
330
|
-
return {
|
|
331
|
-
width: rect.width,
|
|
332
|
-
height: rect.height
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
function getViewportRect(element, strategy) {
|
|
336
|
-
const win = getWindow(element);
|
|
337
|
-
const html = getDocumentElement(element);
|
|
338
|
-
const visualViewport = win.visualViewport;
|
|
339
|
-
let width = html.clientWidth;
|
|
340
|
-
let height = html.clientHeight;
|
|
341
|
-
let x = 0;
|
|
342
|
-
let y = 0;
|
|
343
|
-
if (visualViewport) {
|
|
344
|
-
width = visualViewport.width;
|
|
345
|
-
height = visualViewport.height;
|
|
346
|
-
const layoutViewport = isLayoutViewport();
|
|
347
|
-
if (layoutViewport || (!layoutViewport && strategy === "fixed")) {
|
|
348
|
-
x = visualViewport.offsetLeft;
|
|
349
|
-
y = visualViewport.offsetTop;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
return {
|
|
353
|
-
width,
|
|
354
|
-
height,
|
|
355
|
-
x,
|
|
356
|
-
y
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
360
|
-
function getDocumentRect(element) {
|
|
361
|
-
var _element$ownerDocumen;
|
|
362
|
-
const html = getDocumentElement(element);
|
|
363
|
-
const scroll = getNodeScroll(element);
|
|
364
|
-
const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
365
|
-
const width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
366
|
-
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
367
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
368
|
-
const y = -scroll.scrollTop;
|
|
369
|
-
if (getComputedStyle(body || html).direction === "rtl") {
|
|
370
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
371
|
-
}
|
|
372
|
-
return {
|
|
373
|
-
width,
|
|
374
|
-
height,
|
|
375
|
-
x,
|
|
376
|
-
y
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
function getNearestOverflowAncestor(node) {
|
|
380
|
-
const parentNode = getParentNode(node);
|
|
381
|
-
if (isLastTraversableNode(parentNode)) {
|
|
382
|
-
// @ts-ignore assume body is always available
|
|
383
|
-
return node.ownerDocument.body;
|
|
384
|
-
}
|
|
385
|
-
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
386
|
-
return parentNode;
|
|
387
|
-
}
|
|
388
|
-
return getNearestOverflowAncestor(parentNode);
|
|
389
|
-
}
|
|
390
|
-
function getOverflowAncestors(node, list) {
|
|
391
|
-
var _node$ownerDocument;
|
|
392
|
-
if (list === void 0) {
|
|
393
|
-
list = [];
|
|
394
|
-
}
|
|
395
|
-
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
396
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
|
397
|
-
const win = getWindow(scrollableAncestor);
|
|
398
|
-
const target = isBody
|
|
399
|
-
? [win].concat(win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [])
|
|
400
|
-
: scrollableAncestor;
|
|
401
|
-
const updatedList = list.concat(target);
|
|
402
|
-
return isBody
|
|
403
|
-
? updatedList // @ts-ignore: isBody tells us target will be an HTMLElement here
|
|
404
|
-
: updatedList.concat(getOverflowAncestors(target));
|
|
405
|
-
}
|
|
406
|
-
function contains(parent, child) {
|
|
407
|
-
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
|
|
408
|
-
if (parent.contains(child)) {
|
|
409
|
-
return true;
|
|
410
|
-
} // then fallback to custom implementation with Shadow DOM support
|
|
411
|
-
else if (rootNode && isShadowRoot(rootNode)) {
|
|
412
|
-
let next = child;
|
|
413
|
-
do {
|
|
414
|
-
// use `===` replace node.isSameNode()
|
|
415
|
-
if (next && parent === next) {
|
|
416
|
-
return true;
|
|
417
|
-
} // @ts-ignore: need a better way to handle this...
|
|
418
|
-
next = next.parentNode || next.host;
|
|
419
|
-
} while (next);
|
|
420
|
-
}
|
|
421
|
-
return false;
|
|
422
|
-
}
|
|
423
|
-
function getNearestParentCapableOfEscapingClipping(element, clippingAncestors) {
|
|
424
|
-
let currentNode = element;
|
|
425
|
-
while (currentNode && !isLastTraversableNode(currentNode) && !clippingAncestors.includes(currentNode)) {
|
|
426
|
-
if (isElement(currentNode) && ["absolute", "fixed"].includes(getComputedStyle(currentNode).position)) {
|
|
427
|
-
break;
|
|
428
|
-
}
|
|
429
|
-
const parentNode = getParentNode(currentNode);
|
|
430
|
-
currentNode = isShadowRoot(parentNode) ? parentNode.host : parentNode;
|
|
431
|
-
}
|
|
432
|
-
return currentNode;
|
|
433
|
-
}
|
|
434
|
-
function getInnerBoundingClientRect(element, strategy) {
|
|
435
|
-
const clientRect = getBoundingClientRect(element, false, strategy === "fixed");
|
|
436
|
-
const top = clientRect.top + element.clientTop;
|
|
437
|
-
const left = clientRect.left + element.clientLeft;
|
|
438
|
-
return {
|
|
439
|
-
top,
|
|
440
|
-
left,
|
|
441
|
-
x: left,
|
|
442
|
-
y: top,
|
|
443
|
-
right: left + element.clientWidth,
|
|
444
|
-
bottom: top + element.clientHeight,
|
|
445
|
-
width: element.clientWidth,
|
|
446
|
-
height: element.clientHeight
|
|
447
|
-
};
|
|
448
|
-
}
|
|
449
|
-
function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
450
|
-
if (clippingParent === "viewport") {
|
|
451
|
-
return floatingUi.rectToClientRect(getViewportRect(element, strategy));
|
|
452
|
-
}
|
|
453
|
-
if (isElement(clippingParent)) {
|
|
454
|
-
return getInnerBoundingClientRect(clippingParent, strategy);
|
|
455
|
-
}
|
|
456
|
-
return floatingUi.rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
457
|
-
} // A "clipping ancestor" is an overflowable container with the characteristic of
|
|
458
|
-
// clipping (or hiding) overflowing elements with a position different from
|
|
459
|
-
// `initial`
|
|
460
|
-
function getClippingAncestors(element) {
|
|
461
|
-
// @ts-ignore
|
|
462
|
-
const clippingAncestors = getOverflowAncestors(element);
|
|
463
|
-
const nearestEscapableParent = getNearestParentCapableOfEscapingClipping(element, clippingAncestors);
|
|
464
|
-
let clipperElement = null;
|
|
465
|
-
if (nearestEscapableParent && isHTMLElement(nearestEscapableParent)) {
|
|
466
|
-
const offsetParent = getOffsetParent(nearestEscapableParent);
|
|
467
|
-
if (isOverflowElement(nearestEscapableParent)) {
|
|
468
|
-
clipperElement = nearestEscapableParent;
|
|
469
|
-
}
|
|
470
|
-
else if (isHTMLElement(offsetParent)) {
|
|
471
|
-
clipperElement = offsetParent;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
if (!isElement(clipperElement)) {
|
|
475
|
-
return [];
|
|
476
|
-
} // @ts-ignore isElement check ensures we return Array<Element>
|
|
477
|
-
return clippingAncestors.filter((clippingAncestors) => clipperElement &&
|
|
478
|
-
isElement(clippingAncestors) &&
|
|
479
|
-
contains(clippingAncestors, clipperElement) &&
|
|
480
|
-
getNodeName(clippingAncestors) !== "body");
|
|
481
|
-
} // Gets the maximum area that the element is visible in due to any number of
|
|
482
|
-
// clipping ancestors
|
|
483
|
-
function getClippingRect(_ref) {
|
|
484
|
-
let { element, boundary, rootBoundary, strategy } = _ref;
|
|
485
|
-
const mainClippingAncestors = boundary === "clippingAncestors" ? getClippingAncestors(element) : [].concat(boundary);
|
|
486
|
-
const clippingAncestors = [...mainClippingAncestors, rootBoundary];
|
|
487
|
-
const firstClippingAncestor = clippingAncestors[0];
|
|
488
|
-
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
489
|
-
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
490
|
-
accRect.top = max(rect.top, accRect.top);
|
|
491
|
-
accRect.right = min(rect.right, accRect.right);
|
|
492
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
493
|
-
accRect.left = max(rect.left, accRect.left);
|
|
494
|
-
return accRect;
|
|
495
|
-
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
496
|
-
return {
|
|
497
|
-
width: clippingRect.right - clippingRect.left,
|
|
498
|
-
height: clippingRect.bottom - clippingRect.top,
|
|
499
|
-
x: clippingRect.left,
|
|
500
|
-
y: clippingRect.top
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
exports.getClippingRect = getClippingRect;
|
|
505
|
-
exports.getElementRects = getElementRects;
|
|
506
|
-
exports.getOffsetParent = getOffsetParent;
|