@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
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.8-next.
|
|
4
|
+
* v1.0.8-next.3
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -14898,22 +14898,22 @@ const filter = (data, value) => {
|
|
|
14898
14898
|
return result;
|
|
14899
14899
|
};
|
|
14900
14900
|
|
|
14901
|
-
function getSide(placement) {
|
|
14902
|
-
return placement.split('-')[0];
|
|
14903
|
-
}
|
|
14904
|
-
|
|
14905
14901
|
function getAlignment(placement) {
|
|
14906
14902
|
return placement.split('-')[1];
|
|
14907
14903
|
}
|
|
14908
14904
|
|
|
14909
|
-
function getMainAxisFromPlacement(placement) {
|
|
14910
|
-
return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
|
|
14911
|
-
}
|
|
14912
|
-
|
|
14913
14905
|
function getLengthFromAxis(axis) {
|
|
14914
14906
|
return axis === 'y' ? 'height' : 'width';
|
|
14915
14907
|
}
|
|
14916
14908
|
|
|
14909
|
+
function getSide(placement) {
|
|
14910
|
+
return placement.split('-')[0];
|
|
14911
|
+
}
|
|
14912
|
+
|
|
14913
|
+
function getMainAxisFromPlacement(placement) {
|
|
14914
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
|
|
14915
|
+
}
|
|
14916
|
+
|
|
14917
14917
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
14918
14918
|
let {
|
|
14919
14919
|
reference,
|
|
@@ -15092,13 +15092,13 @@ function rectToClientRect(rect) {
|
|
|
15092
15092
|
|
|
15093
15093
|
/**
|
|
15094
15094
|
* Resolves with an object of overflow side offsets that determine how much the
|
|
15095
|
-
* element is overflowing a given clipping boundary.
|
|
15095
|
+
* element is overflowing a given clipping boundary on each side.
|
|
15096
15096
|
* - positive = overflowing the boundary by that number of pixels
|
|
15097
15097
|
* - negative = how many pixels left before it will overflow
|
|
15098
15098
|
* - 0 = lies flush with the boundary
|
|
15099
15099
|
* @see https://floating-ui.com/docs/detectOverflow
|
|
15100
15100
|
*/
|
|
15101
|
-
async function detectOverflow(
|
|
15101
|
+
async function detectOverflow(state, options) {
|
|
15102
15102
|
var _await$platform$isEle;
|
|
15103
15103
|
if (options === void 0) {
|
|
15104
15104
|
options = {};
|
|
@@ -15110,7 +15110,7 @@ async function detectOverflow(middlewareArguments, options) {
|
|
|
15110
15110
|
rects,
|
|
15111
15111
|
elements,
|
|
15112
15112
|
strategy
|
|
15113
|
-
} =
|
|
15113
|
+
} = state;
|
|
15114
15114
|
const {
|
|
15115
15115
|
boundary = 'clippingAncestors',
|
|
15116
15116
|
rootBoundary = 'viewport',
|
|
@@ -15161,26 +15161,26 @@ function within(min$1$1, value, max$1$1) {
|
|
|
15161
15161
|
}
|
|
15162
15162
|
|
|
15163
15163
|
/**
|
|
15164
|
-
*
|
|
15165
|
-
* to the reference element.
|
|
15164
|
+
* Provides data to position an inner element of the floating element so that it
|
|
15165
|
+
* appears centered to the reference element.
|
|
15166
15166
|
* @see https://floating-ui.com/docs/arrow
|
|
15167
15167
|
*/
|
|
15168
15168
|
const arrow = options => ({
|
|
15169
15169
|
name: 'arrow',
|
|
15170
15170
|
options,
|
|
15171
|
-
async fn(
|
|
15172
|
-
// Since `element` is required, we don't Partial<> the type
|
|
15171
|
+
async fn(state) {
|
|
15172
|
+
// Since `element` is required, we don't Partial<> the type.
|
|
15173
15173
|
const {
|
|
15174
15174
|
element,
|
|
15175
15175
|
padding = 0
|
|
15176
|
-
} = options
|
|
15176
|
+
} = options || {};
|
|
15177
15177
|
const {
|
|
15178
15178
|
x,
|
|
15179
15179
|
y,
|
|
15180
15180
|
placement,
|
|
15181
15181
|
rects,
|
|
15182
15182
|
platform
|
|
15183
|
-
} =
|
|
15183
|
+
} = state;
|
|
15184
15184
|
if (element == null) {
|
|
15185
15185
|
return {};
|
|
15186
15186
|
}
|
|
@@ -15204,7 +15204,7 @@ const arrow = options => ({
|
|
|
15204
15204
|
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
15205
15205
|
|
|
15206
15206
|
// Make sure the arrow doesn't overflow the floating element if the center
|
|
15207
|
-
// point is outside the floating element's bounds
|
|
15207
|
+
// point is outside the floating element's bounds.
|
|
15208
15208
|
const min = paddingObject[minProp];
|
|
15209
15209
|
const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
|
|
15210
15210
|
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
@@ -15226,14 +15226,17 @@ const arrow = options => ({
|
|
|
15226
15226
|
}
|
|
15227
15227
|
});
|
|
15228
15228
|
|
|
15229
|
-
const
|
|
15229
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
15230
|
+
const allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []);
|
|
15231
|
+
|
|
15232
|
+
const oppositeSideMap = {
|
|
15230
15233
|
left: 'right',
|
|
15231
15234
|
right: 'left',
|
|
15232
15235
|
bottom: 'top',
|
|
15233
15236
|
top: 'bottom'
|
|
15234
15237
|
};
|
|
15235
15238
|
function getOppositePlacement(placement) {
|
|
15236
|
-
return placement.replace(/left|right|bottom|top/g,
|
|
15239
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
15237
15240
|
}
|
|
15238
15241
|
|
|
15239
15242
|
function getAlignmentSides(placement, rects, rtl) {
|
|
@@ -15253,17 +15256,14 @@ function getAlignmentSides(placement, rects, rtl) {
|
|
|
15253
15256
|
};
|
|
15254
15257
|
}
|
|
15255
15258
|
|
|
15256
|
-
const
|
|
15259
|
+
const oppositeAlignmentMap = {
|
|
15257
15260
|
start: 'end',
|
|
15258
15261
|
end: 'start'
|
|
15259
15262
|
};
|
|
15260
15263
|
function getOppositeAlignmentPlacement(placement) {
|
|
15261
|
-
return placement.replace(/start|end/g,
|
|
15264
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
15262
15265
|
}
|
|
15263
15266
|
|
|
15264
|
-
const sides = ['top', 'right', 'bottom', 'left'];
|
|
15265
|
-
const allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []);
|
|
15266
|
-
|
|
15267
15267
|
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
15268
15268
|
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
15269
15269
|
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
@@ -15274,7 +15274,9 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
15274
15274
|
});
|
|
15275
15275
|
}
|
|
15276
15276
|
/**
|
|
15277
|
-
*
|
|
15277
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
15278
|
+
* that has the most space available automatically, without needing to specify a
|
|
15279
|
+
* preferred placement. Alternative to `flip`.
|
|
15278
15280
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
15279
15281
|
*/
|
|
15280
15282
|
const autoPlacement = function (options) {
|
|
@@ -15284,26 +15286,25 @@ const autoPlacement = function (options) {
|
|
|
15284
15286
|
return {
|
|
15285
15287
|
name: 'autoPlacement',
|
|
15286
15288
|
options,
|
|
15287
|
-
async fn(
|
|
15288
|
-
var _middlewareData$autoP, _middlewareData$autoP2,
|
|
15289
|
+
async fn(state) {
|
|
15290
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
15289
15291
|
const {
|
|
15290
|
-
x,
|
|
15291
|
-
y,
|
|
15292
15292
|
rects,
|
|
15293
15293
|
middlewareData,
|
|
15294
15294
|
placement,
|
|
15295
15295
|
platform,
|
|
15296
15296
|
elements
|
|
15297
|
-
} =
|
|
15297
|
+
} = state;
|
|
15298
15298
|
const {
|
|
15299
|
+
crossAxis = false,
|
|
15299
15300
|
alignment,
|
|
15300
15301
|
allowedPlacements = allPlacements,
|
|
15301
15302
|
autoAlignment = true,
|
|
15302
15303
|
...detectOverflowOptions
|
|
15303
15304
|
} = options;
|
|
15304
15305
|
const placements = alignment !== undefined || allowedPlacements === allPlacements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
15305
|
-
const overflow = await detectOverflow(
|
|
15306
|
-
const currentIndex = (_middlewareData$autoP =
|
|
15306
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
15307
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
15307
15308
|
const currentPlacement = placements[currentIndex];
|
|
15308
15309
|
if (currentPlacement == null) {
|
|
15309
15310
|
return {};
|
|
@@ -15313,24 +15314,22 @@ const autoPlacement = function (options) {
|
|
|
15313
15314
|
cross
|
|
15314
15315
|
} = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
15315
15316
|
|
|
15316
|
-
// Make `computeCoords` start from the right place
|
|
15317
|
+
// Make `computeCoords` start from the right place.
|
|
15317
15318
|
if (placement !== currentPlacement) {
|
|
15318
15319
|
return {
|
|
15319
|
-
x,
|
|
15320
|
-
y,
|
|
15321
15320
|
reset: {
|
|
15322
15321
|
placement: placements[0]
|
|
15323
15322
|
}
|
|
15324
15323
|
};
|
|
15325
15324
|
}
|
|
15326
15325
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];
|
|
15327
|
-
const allOverflows = [...((
|
|
15326
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
15328
15327
|
placement: currentPlacement,
|
|
15329
15328
|
overflows: currentOverflows
|
|
15330
15329
|
}];
|
|
15331
15330
|
const nextPlacement = placements[currentIndex + 1];
|
|
15332
15331
|
|
|
15333
|
-
// There are more placements to check
|
|
15332
|
+
// There are more placements to check.
|
|
15334
15333
|
if (nextPlacement) {
|
|
15335
15334
|
return {
|
|
15336
15335
|
data: {
|
|
@@ -15342,14 +15341,19 @@ const autoPlacement = function (options) {
|
|
|
15342
15341
|
}
|
|
15343
15342
|
};
|
|
15344
15343
|
}
|
|
15345
|
-
const
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
|
|
15344
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
15345
|
+
const alignment = getAlignment(d.placement);
|
|
15346
|
+
return [d.placement, alignment && crossAxis ?
|
|
15347
|
+
// Check along the mainAxis and main crossAxis side.
|
|
15348
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
15349
|
+
// Check only the mainAxis.
|
|
15350
|
+
d.overflows[0], d.overflows];
|
|
15351
|
+
}).sort((a, b) => a[1] - b[1]);
|
|
15352
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
15353
|
+
// Aligned placements should not check their opposite crossAxis
|
|
15354
|
+
// side.
|
|
15355
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
15356
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
15353
15357
|
if (resetPlacement !== placement) {
|
|
15354
15358
|
return {
|
|
15355
15359
|
data: {
|
|
@@ -15371,9 +15375,39 @@ function getExpandedPlacements(placement) {
|
|
|
15371
15375
|
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
15372
15376
|
}
|
|
15373
15377
|
|
|
15378
|
+
function getSideList(side, isStart, rtl) {
|
|
15379
|
+
const lr = ['left', 'right'];
|
|
15380
|
+
const rl = ['right', 'left'];
|
|
15381
|
+
const tb = ['top', 'bottom'];
|
|
15382
|
+
const bt = ['bottom', 'top'];
|
|
15383
|
+
switch (side) {
|
|
15384
|
+
case 'top':
|
|
15385
|
+
case 'bottom':
|
|
15386
|
+
if (rtl) return isStart ? rl : lr;
|
|
15387
|
+
return isStart ? lr : rl;
|
|
15388
|
+
case 'left':
|
|
15389
|
+
case 'right':
|
|
15390
|
+
return isStart ? tb : bt;
|
|
15391
|
+
default:
|
|
15392
|
+
return [];
|
|
15393
|
+
}
|
|
15394
|
+
}
|
|
15395
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
15396
|
+
const alignment = getAlignment(placement);
|
|
15397
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
15398
|
+
if (alignment) {
|
|
15399
|
+
list = list.map(side => side + "-" + alignment);
|
|
15400
|
+
if (flipAlignment) {
|
|
15401
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
15402
|
+
}
|
|
15403
|
+
}
|
|
15404
|
+
return list;
|
|
15405
|
+
}
|
|
15406
|
+
|
|
15374
15407
|
/**
|
|
15375
|
-
*
|
|
15376
|
-
*
|
|
15408
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
15409
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
15410
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
15377
15411
|
* @see https://floating-ui.com/docs/flip
|
|
15378
15412
|
*/
|
|
15379
15413
|
const flip = function (options) {
|
|
@@ -15383,7 +15417,7 @@ const flip = function (options) {
|
|
|
15383
15417
|
return {
|
|
15384
15418
|
name: 'flip',
|
|
15385
15419
|
options,
|
|
15386
|
-
async fn(
|
|
15420
|
+
async fn(state) {
|
|
15387
15421
|
var _middlewareData$flip;
|
|
15388
15422
|
const {
|
|
15389
15423
|
placement,
|
|
@@ -15392,20 +15426,25 @@ const flip = function (options) {
|
|
|
15392
15426
|
initialPlacement,
|
|
15393
15427
|
platform,
|
|
15394
15428
|
elements
|
|
15395
|
-
} =
|
|
15429
|
+
} = state;
|
|
15396
15430
|
const {
|
|
15397
15431
|
mainAxis: checkMainAxis = true,
|
|
15398
15432
|
crossAxis: checkCrossAxis = true,
|
|
15399
15433
|
fallbackPlacements: specifiedFallbackPlacements,
|
|
15400
15434
|
fallbackStrategy = 'bestFit',
|
|
15435
|
+
fallbackAxisSideDirection = 'none',
|
|
15401
15436
|
flipAlignment = true,
|
|
15402
15437
|
...detectOverflowOptions
|
|
15403
15438
|
} = options;
|
|
15404
15439
|
const side = getSide(placement);
|
|
15405
|
-
const isBasePlacement =
|
|
15440
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
15441
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
15406
15442
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
15443
|
+
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
|
15444
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
15445
|
+
}
|
|
15407
15446
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
15408
|
-
const overflow = await detectOverflow(
|
|
15447
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
15409
15448
|
const overflows = [];
|
|
15410
15449
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
15411
15450
|
if (checkMainAxis) {
|
|
@@ -15415,7 +15454,7 @@ const flip = function (options) {
|
|
|
15415
15454
|
const {
|
|
15416
15455
|
main,
|
|
15417
15456
|
cross
|
|
15418
|
-
} = getAlignmentSides(placement, rects,
|
|
15457
|
+
} = getAlignmentSides(placement, rects, rtl);
|
|
15419
15458
|
overflows.push(overflow[main], overflow[cross]);
|
|
15420
15459
|
}
|
|
15421
15460
|
overflowsData = [...overflowsData, {
|
|
@@ -15423,13 +15462,13 @@ const flip = function (options) {
|
|
|
15423
15462
|
overflows
|
|
15424
15463
|
}];
|
|
15425
15464
|
|
|
15426
|
-
// One or more sides is overflowing
|
|
15465
|
+
// One or more sides is overflowing.
|
|
15427
15466
|
if (!overflows.every(side => side <= 0)) {
|
|
15428
|
-
var _middlewareData$
|
|
15429
|
-
const nextIndex = ((
|
|
15467
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
15468
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
15430
15469
|
const nextPlacement = placements[nextIndex];
|
|
15431
15470
|
if (nextPlacement) {
|
|
15432
|
-
// Try next placement and re-run the lifecycle
|
|
15471
|
+
// Try next placement and re-run the lifecycle.
|
|
15433
15472
|
return {
|
|
15434
15473
|
data: {
|
|
15435
15474
|
index: nextIndex,
|
|
@@ -15440,20 +15479,27 @@ const flip = function (options) {
|
|
|
15440
15479
|
}
|
|
15441
15480
|
};
|
|
15442
15481
|
}
|
|
15443
|
-
|
|
15444
|
-
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15482
|
+
|
|
15483
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
15484
|
+
// then find the placement that fits the best on the main crossAxis side.
|
|
15485
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
15486
|
+
|
|
15487
|
+
// Otherwise fallback.
|
|
15488
|
+
if (!resetPlacement) {
|
|
15489
|
+
switch (fallbackStrategy) {
|
|
15490
|
+
case 'bestFit':
|
|
15491
|
+
{
|
|
15492
|
+
var _overflowsData$map$so;
|
|
15493
|
+
const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
|
15494
|
+
if (placement) {
|
|
15495
|
+
resetPlacement = placement;
|
|
15496
|
+
}
|
|
15497
|
+
break;
|
|
15451
15498
|
}
|
|
15499
|
+
case 'initialPlacement':
|
|
15500
|
+
resetPlacement = initialPlacement;
|
|
15452
15501
|
break;
|
|
15453
|
-
|
|
15454
|
-
case 'initialPlacement':
|
|
15455
|
-
resetPlacement = initialPlacement;
|
|
15456
|
-
break;
|
|
15502
|
+
}
|
|
15457
15503
|
}
|
|
15458
15504
|
if (placement !== resetPlacement) {
|
|
15459
15505
|
return {
|
|
@@ -15491,18 +15537,18 @@ const hide = function (options) {
|
|
|
15491
15537
|
return {
|
|
15492
15538
|
name: 'hide',
|
|
15493
15539
|
options,
|
|
15494
|
-
async fn(
|
|
15540
|
+
async fn(state) {
|
|
15495
15541
|
const {
|
|
15496
15542
|
strategy = 'referenceHidden',
|
|
15497
15543
|
...detectOverflowOptions
|
|
15498
15544
|
} = options;
|
|
15499
15545
|
const {
|
|
15500
15546
|
rects
|
|
15501
|
-
} =
|
|
15547
|
+
} = state;
|
|
15502
15548
|
switch (strategy) {
|
|
15503
15549
|
case 'referenceHidden':
|
|
15504
15550
|
{
|
|
15505
|
-
const overflow = await detectOverflow(
|
|
15551
|
+
const overflow = await detectOverflow(state, {
|
|
15506
15552
|
...detectOverflowOptions,
|
|
15507
15553
|
elementContext: 'reference'
|
|
15508
15554
|
});
|
|
@@ -15516,7 +15562,7 @@ const hide = function (options) {
|
|
|
15516
15562
|
}
|
|
15517
15563
|
case 'escaped':
|
|
15518
15564
|
{
|
|
15519
|
-
const overflow = await detectOverflow(
|
|
15565
|
+
const overflow = await detectOverflow(state, {
|
|
15520
15566
|
...detectOverflowOptions,
|
|
15521
15567
|
altBoundary: true
|
|
15522
15568
|
});
|
|
@@ -15537,19 +15583,19 @@ const hide = function (options) {
|
|
|
15537
15583
|
};
|
|
15538
15584
|
};
|
|
15539
15585
|
|
|
15540
|
-
async function convertValueToCoords(
|
|
15586
|
+
async function convertValueToCoords(state, value) {
|
|
15541
15587
|
const {
|
|
15542
15588
|
placement,
|
|
15543
15589
|
platform,
|
|
15544
15590
|
elements
|
|
15545
|
-
} =
|
|
15591
|
+
} = state;
|
|
15546
15592
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
15547
15593
|
const side = getSide(placement);
|
|
15548
15594
|
const alignment = getAlignment(placement);
|
|
15549
15595
|
const isVertical = getMainAxisFromPlacement(placement) === 'x';
|
|
15550
15596
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
15551
15597
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
15552
|
-
const rawValue = typeof value === 'function' ? value(
|
|
15598
|
+
const rawValue = typeof value === 'function' ? value(state) : value;
|
|
15553
15599
|
|
|
15554
15600
|
// eslint-disable-next-line prefer-const
|
|
15555
15601
|
let {
|
|
@@ -15579,7 +15625,10 @@ async function convertValueToCoords(middlewareArguments, value) {
|
|
|
15579
15625
|
}
|
|
15580
15626
|
|
|
15581
15627
|
/**
|
|
15582
|
-
*
|
|
15628
|
+
* Modifies the placement by translating the floating element along the
|
|
15629
|
+
* specified axes.
|
|
15630
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
15631
|
+
* object may be passed.
|
|
15583
15632
|
* @see https://floating-ui.com/docs/offset
|
|
15584
15633
|
*/
|
|
15585
15634
|
const offset = function (value) {
|
|
@@ -15589,12 +15638,12 @@ const offset = function (value) {
|
|
|
15589
15638
|
return {
|
|
15590
15639
|
name: 'offset',
|
|
15591
15640
|
options: value,
|
|
15592
|
-
async fn(
|
|
15641
|
+
async fn(state) {
|
|
15593
15642
|
const {
|
|
15594
15643
|
x,
|
|
15595
15644
|
y
|
|
15596
|
-
} =
|
|
15597
|
-
const diffCoords = await convertValueToCoords(
|
|
15645
|
+
} = state;
|
|
15646
|
+
const diffCoords = await convertValueToCoords(state, value);
|
|
15598
15647
|
return {
|
|
15599
15648
|
x: x + diffCoords.x,
|
|
15600
15649
|
y: y + diffCoords.y,
|
|
@@ -15609,8 +15658,8 @@ function getCrossAxis(axis) {
|
|
|
15609
15658
|
}
|
|
15610
15659
|
|
|
15611
15660
|
/**
|
|
15612
|
-
*
|
|
15613
|
-
*
|
|
15661
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
15662
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
15614
15663
|
* @see https://floating-ui.com/docs/shift
|
|
15615
15664
|
*/
|
|
15616
15665
|
const shift = function (options) {
|
|
@@ -15620,12 +15669,12 @@ const shift = function (options) {
|
|
|
15620
15669
|
return {
|
|
15621
15670
|
name: 'shift',
|
|
15622
15671
|
options,
|
|
15623
|
-
async fn(
|
|
15672
|
+
async fn(state) {
|
|
15624
15673
|
const {
|
|
15625
15674
|
x,
|
|
15626
15675
|
y,
|
|
15627
15676
|
placement
|
|
15628
|
-
} =
|
|
15677
|
+
} = state;
|
|
15629
15678
|
const {
|
|
15630
15679
|
mainAxis: checkMainAxis = true,
|
|
15631
15680
|
crossAxis: checkCrossAxis = false,
|
|
@@ -15647,7 +15696,7 @@ const shift = function (options) {
|
|
|
15647
15696
|
x,
|
|
15648
15697
|
y
|
|
15649
15698
|
};
|
|
15650
|
-
const overflow = await detectOverflow(
|
|
15699
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
15651
15700
|
const mainAxis = getMainAxisFromPlacement(getSide(placement));
|
|
15652
15701
|
const crossAxis = getCrossAxis(mainAxis);
|
|
15653
15702
|
let mainAxisCoord = coords[mainAxis];
|
|
@@ -15667,7 +15716,7 @@ const shift = function (options) {
|
|
|
15667
15716
|
crossAxisCoord = within(min, crossAxisCoord, max);
|
|
15668
15717
|
}
|
|
15669
15718
|
const limitedCoords = limiter.fn({
|
|
15670
|
-
...
|
|
15719
|
+
...state,
|
|
15671
15720
|
[mainAxis]: mainAxisCoord,
|
|
15672
15721
|
[crossAxis]: crossAxisCoord
|
|
15673
15722
|
});
|
|
@@ -15691,6 +15740,28 @@ function getComputedStyle$1(element) {
|
|
|
15691
15740
|
return getWindow(element).getComputedStyle(element);
|
|
15692
15741
|
}
|
|
15693
15742
|
|
|
15743
|
+
const min = Math.min;
|
|
15744
|
+
const max = Math.max;
|
|
15745
|
+
const round = Math.round;
|
|
15746
|
+
|
|
15747
|
+
function getCssDimensions(element) {
|
|
15748
|
+
const css = getComputedStyle$1(element);
|
|
15749
|
+
let width = parseFloat(css.width);
|
|
15750
|
+
let height = parseFloat(css.height);
|
|
15751
|
+
const offsetWidth = element.offsetWidth;
|
|
15752
|
+
const offsetHeight = element.offsetHeight;
|
|
15753
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
15754
|
+
if (shouldFallback) {
|
|
15755
|
+
width = offsetWidth;
|
|
15756
|
+
height = offsetHeight;
|
|
15757
|
+
}
|
|
15758
|
+
return {
|
|
15759
|
+
width,
|
|
15760
|
+
height,
|
|
15761
|
+
fallback: shouldFallback
|
|
15762
|
+
};
|
|
15763
|
+
}
|
|
15764
|
+
|
|
15694
15765
|
function getNodeName(node) {
|
|
15695
15766
|
return isNode(node) ? (node.nodeName || '').toLowerCase() : '';
|
|
15696
15767
|
}
|
|
@@ -15718,7 +15789,7 @@ function isNode(value) {
|
|
|
15718
15789
|
return value instanceof getWindow(value).Node;
|
|
15719
15790
|
}
|
|
15720
15791
|
function isShadowRoot(node) {
|
|
15721
|
-
// Browsers without `ShadowRoot` support
|
|
15792
|
+
// Browsers without `ShadowRoot` support.
|
|
15722
15793
|
if (typeof ShadowRoot === 'undefined') {
|
|
15723
15794
|
return false;
|
|
15724
15795
|
}
|
|
@@ -15738,7 +15809,7 @@ function isTableElement(element) {
|
|
|
15738
15809
|
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
15739
15810
|
}
|
|
15740
15811
|
function isContainingBlock(element) {
|
|
15741
|
-
// TODO: Try
|
|
15812
|
+
// TODO: Try to use feature detection here instead.
|
|
15742
15813
|
const isFirefox = /firefox/i.test(getUAString());
|
|
15743
15814
|
const css = getComputedStyle$1(element);
|
|
15744
15815
|
const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
|
|
@@ -15746,49 +15817,33 @@ function isContainingBlock(element) {
|
|
|
15746
15817
|
// This is non-exhaustive but covers the most common CSS properties that
|
|
15747
15818
|
// create a containing block.
|
|
15748
15819
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
15749
|
-
return css.transform !== 'none' || css.perspective !== 'none' || (backdropFilter ? backdropFilter !== 'none' : false) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective'].some(value => css.willChange.includes(value)) || ['paint', 'layout', 'strict', 'content'].some(
|
|
15750
|
-
|
|
15751
|
-
value => {
|
|
15820
|
+
return css.transform !== 'none' || css.perspective !== 'none' || (backdropFilter ? backdropFilter !== 'none' : false) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective'].some(value => css.willChange.includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => {
|
|
15821
|
+
// Add type check for old browsers.
|
|
15752
15822
|
const contain = css.contain;
|
|
15753
15823
|
return contain != null ? contain.includes(value) : false;
|
|
15754
15824
|
});
|
|
15755
15825
|
}
|
|
15756
|
-
|
|
15757
|
-
|
|
15758
|
-
|
|
15759
|
-
|
|
15826
|
+
|
|
15827
|
+
/**
|
|
15828
|
+
* Determines whether or not `.getBoundingClientRect()` is affected by visual
|
|
15829
|
+
* viewport offsets. In Safari, the `x`/`y` offsets are values relative to the
|
|
15830
|
+
* visual viewport, while in other engines, they are values relative to the
|
|
15831
|
+
* layout viewport.
|
|
15832
|
+
*/
|
|
15833
|
+
function isClientRectVisualViewportBased() {
|
|
15834
|
+
// TODO: Try to use feature detection here instead. Feature detection for
|
|
15835
|
+
// this can fail in various ways, making the userAgent check the most
|
|
15836
|
+
// reliable:
|
|
15760
15837
|
// • Always-visible scrollbar or not
|
|
15761
|
-
// • Width of <html
|
|
15762
|
-
// const vV = win.visualViewport;
|
|
15763
|
-
// return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
|
|
15764
|
-
}
|
|
15838
|
+
// • Width of <html>
|
|
15765
15839
|
|
|
15840
|
+
// Is Safari.
|
|
15841
|
+
return /^((?!chrome|android).)*safari/i.test(getUAString());
|
|
15842
|
+
}
|
|
15766
15843
|
function isLastTraversableNode(node) {
|
|
15767
15844
|
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
15768
15845
|
}
|
|
15769
15846
|
|
|
15770
|
-
const min = Math.min;
|
|
15771
|
-
const max = Math.max;
|
|
15772
|
-
const round = Math.round;
|
|
15773
|
-
|
|
15774
|
-
function getCssDimensions(element) {
|
|
15775
|
-
const css = getComputedStyle$1(element);
|
|
15776
|
-
let width = parseFloat(css.width);
|
|
15777
|
-
let height = parseFloat(css.height);
|
|
15778
|
-
const offsetWidth = element.offsetWidth;
|
|
15779
|
-
const offsetHeight = element.offsetHeight;
|
|
15780
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
15781
|
-
if (shouldFallback) {
|
|
15782
|
-
width = offsetWidth;
|
|
15783
|
-
height = offsetHeight;
|
|
15784
|
-
}
|
|
15785
|
-
return {
|
|
15786
|
-
width,
|
|
15787
|
-
height,
|
|
15788
|
-
fallback: shouldFallback
|
|
15789
|
-
};
|
|
15790
|
-
}
|
|
15791
|
-
|
|
15792
15847
|
function unwrapElement(element) {
|
|
15793
15848
|
return !isElement(element) ? element.contextElement : element;
|
|
15794
15849
|
}
|
|
@@ -15846,7 +15901,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
15846
15901
|
}
|
|
15847
15902
|
}
|
|
15848
15903
|
const win = domElement ? getWindow(domElement) : window;
|
|
15849
|
-
const addVisualOffsets =
|
|
15904
|
+
const addVisualOffsets = isClientRectVisualViewportBased() && isFixedStrategy;
|
|
15850
15905
|
let x = (clientRect.left + (addVisualOffsets ? ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0 : 0)) / scale.x;
|
|
15851
15906
|
let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale.y;
|
|
15852
15907
|
let width = clientRect.width / scale.x;
|
|
@@ -15899,96 +15954,6 @@ function getNodeScroll(element) {
|
|
|
15899
15954
|
};
|
|
15900
15955
|
}
|
|
15901
15956
|
|
|
15902
|
-
function getWindowScrollBarX(element) {
|
|
15903
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
15904
|
-
// incorrect for RTL.
|
|
15905
|
-
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
15906
|
-
}
|
|
15907
|
-
|
|
15908
|
-
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
15909
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
15910
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
15911
|
-
const rect = getBoundingClientRect(element, true, strategy === 'fixed', offsetParent);
|
|
15912
|
-
let scroll = {
|
|
15913
|
-
scrollLeft: 0,
|
|
15914
|
-
scrollTop: 0
|
|
15915
|
-
};
|
|
15916
|
-
const offsets = {
|
|
15917
|
-
x: 0,
|
|
15918
|
-
y: 0
|
|
15919
|
-
};
|
|
15920
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
15921
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
15922
|
-
scroll = getNodeScroll(offsetParent);
|
|
15923
|
-
}
|
|
15924
|
-
if (isHTMLElement(offsetParent)) {
|
|
15925
|
-
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
15926
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
15927
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
15928
|
-
} else if (documentElement) {
|
|
15929
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
15930
|
-
}
|
|
15931
|
-
}
|
|
15932
|
-
return {
|
|
15933
|
-
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
15934
|
-
y: rect.top + scroll.scrollTop - offsets.y,
|
|
15935
|
-
width: rect.width,
|
|
15936
|
-
height: rect.height
|
|
15937
|
-
};
|
|
15938
|
-
}
|
|
15939
|
-
|
|
15940
|
-
function getParentNode(node) {
|
|
15941
|
-
if (getNodeName(node) === 'html') {
|
|
15942
|
-
return node;
|
|
15943
|
-
}
|
|
15944
|
-
const result =
|
|
15945
|
-
// Step into the shadow DOM of the parent of a slotted node
|
|
15946
|
-
node.assignedSlot ||
|
|
15947
|
-
// DOM Element detected
|
|
15948
|
-
node.parentNode || (
|
|
15949
|
-
// ShadowRoot detected
|
|
15950
|
-
isShadowRoot(node) ? node.host : null) ||
|
|
15951
|
-
// Fallback
|
|
15952
|
-
getDocumentElement(node);
|
|
15953
|
-
return isShadowRoot(result) ? result.host : result;
|
|
15954
|
-
}
|
|
15955
|
-
|
|
15956
|
-
function getTrueOffsetParent(element) {
|
|
15957
|
-
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
15958
|
-
return null;
|
|
15959
|
-
}
|
|
15960
|
-
return element.offsetParent;
|
|
15961
|
-
}
|
|
15962
|
-
function getContainingBlock(element) {
|
|
15963
|
-
let currentNode = getParentNode(element);
|
|
15964
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
15965
|
-
if (isContainingBlock(currentNode)) {
|
|
15966
|
-
return currentNode;
|
|
15967
|
-
} else {
|
|
15968
|
-
currentNode = getParentNode(currentNode);
|
|
15969
|
-
}
|
|
15970
|
-
}
|
|
15971
|
-
return null;
|
|
15972
|
-
}
|
|
15973
|
-
|
|
15974
|
-
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
15975
|
-
// such as table ancestors and cross browser bugs.
|
|
15976
|
-
function getOffsetParent(element) {
|
|
15977
|
-
const window = getWindow(element);
|
|
15978
|
-
let offsetParent = getTrueOffsetParent(element);
|
|
15979
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
15980
|
-
offsetParent = getTrueOffsetParent(offsetParent);
|
|
15981
|
-
}
|
|
15982
|
-
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
15983
|
-
return window;
|
|
15984
|
-
}
|
|
15985
|
-
return offsetParent || getContainingBlock(element) || window;
|
|
15986
|
-
}
|
|
15987
|
-
|
|
15988
|
-
function getDimensions(element) {
|
|
15989
|
-
return getCssDimensions(element);
|
|
15990
|
-
}
|
|
15991
|
-
|
|
15992
15957
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
15993
15958
|
let {
|
|
15994
15959
|
rect,
|
|
@@ -16022,12 +15987,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
16022
15987
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
16023
15988
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
16024
15989
|
}
|
|
16025
|
-
// This doesn't appear to need to be negated.
|
|
16026
|
-
// else if (documentElement) {
|
|
16027
|
-
// offsets.x = getWindowScrollBarX(documentElement);
|
|
16028
|
-
// }
|
|
16029
15990
|
}
|
|
16030
|
-
|
|
16031
15991
|
return {
|
|
16032
15992
|
width: rect.width * scale.x,
|
|
16033
15993
|
height: rect.height * scale.y,
|
|
@@ -16036,44 +15996,24 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
16036
15996
|
};
|
|
16037
15997
|
}
|
|
16038
15998
|
|
|
16039
|
-
function
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16043
|
-
let width = html.clientWidth;
|
|
16044
|
-
let height = html.clientHeight;
|
|
16045
|
-
let x = 0;
|
|
16046
|
-
let y = 0;
|
|
16047
|
-
if (visualViewport) {
|
|
16048
|
-
width = visualViewport.width;
|
|
16049
|
-
height = visualViewport.height;
|
|
16050
|
-
const layoutViewport = isLayoutViewport();
|
|
16051
|
-
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
16052
|
-
x = visualViewport.offsetLeft;
|
|
16053
|
-
y = visualViewport.offsetTop;
|
|
16054
|
-
}
|
|
16055
|
-
}
|
|
16056
|
-
return {
|
|
16057
|
-
width,
|
|
16058
|
-
height,
|
|
16059
|
-
x,
|
|
16060
|
-
y
|
|
16061
|
-
};
|
|
15999
|
+
function getWindowScrollBarX(element) {
|
|
16000
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
16001
|
+
// incorrect for RTL.
|
|
16002
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
16062
16003
|
}
|
|
16063
16004
|
|
|
16064
16005
|
// Gets the entire size of the scrollable document area, even extending outside
|
|
16065
|
-
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
16006
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
16066
16007
|
function getDocumentRect(element) {
|
|
16067
|
-
var _element$ownerDocumen;
|
|
16068
16008
|
const html = getDocumentElement(element);
|
|
16069
16009
|
const scroll = getNodeScroll(element);
|
|
16070
|
-
const body =
|
|
16071
|
-
const width = max(html.scrollWidth, html.clientWidth, body
|
|
16072
|
-
const height = max(html.scrollHeight, html.clientHeight, body
|
|
16010
|
+
const body = element.ownerDocument.body;
|
|
16011
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
16012
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
16073
16013
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
16074
16014
|
const y = -scroll.scrollTop;
|
|
16075
|
-
if (getComputedStyle$1(body
|
|
16076
|
-
x += max(html.clientWidth, body
|
|
16015
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
|
16016
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
16077
16017
|
}
|
|
16078
16018
|
return {
|
|
16079
16019
|
width,
|
|
@@ -16083,11 +16023,28 @@ function getDocumentRect(element) {
|
|
|
16083
16023
|
};
|
|
16084
16024
|
}
|
|
16085
16025
|
|
|
16026
|
+
function getParentNode(node) {
|
|
16027
|
+
if (getNodeName(node) === 'html') {
|
|
16028
|
+
return node;
|
|
16029
|
+
}
|
|
16030
|
+
const result =
|
|
16031
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
16032
|
+
node.assignedSlot ||
|
|
16033
|
+
// DOM Element detected.
|
|
16034
|
+
node.parentNode ||
|
|
16035
|
+
// ShadowRoot detected.
|
|
16036
|
+
isShadowRoot(node) && node.host ||
|
|
16037
|
+
// Fallback.
|
|
16038
|
+
getDocumentElement(node);
|
|
16039
|
+
return isShadowRoot(result) ? result.host : result;
|
|
16040
|
+
}
|
|
16041
|
+
|
|
16086
16042
|
function getNearestOverflowAncestor(node) {
|
|
16087
16043
|
const parentNode = getParentNode(node);
|
|
16088
16044
|
if (isLastTraversableNode(parentNode)) {
|
|
16089
|
-
//
|
|
16090
|
-
|
|
16045
|
+
// `getParentNode` will never return a `Document` due to the fallback
|
|
16046
|
+
// check, so it's either the <html> or <body> element.
|
|
16047
|
+
return parentNode.ownerDocument.body;
|
|
16091
16048
|
}
|
|
16092
16049
|
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
16093
16050
|
return parentNode;
|
|
@@ -16109,7 +16066,32 @@ function getOverflowAncestors(node, list) {
|
|
|
16109
16066
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
16110
16067
|
}
|
|
16111
16068
|
|
|
16112
|
-
|
|
16069
|
+
function getViewportRect(element, strategy) {
|
|
16070
|
+
const win = getWindow(element);
|
|
16071
|
+
const html = getDocumentElement(element);
|
|
16072
|
+
const visualViewport = win.visualViewport;
|
|
16073
|
+
let width = html.clientWidth;
|
|
16074
|
+
let height = html.clientHeight;
|
|
16075
|
+
let x = 0;
|
|
16076
|
+
let y = 0;
|
|
16077
|
+
if (visualViewport) {
|
|
16078
|
+
width = visualViewport.width;
|
|
16079
|
+
height = visualViewport.height;
|
|
16080
|
+
const visualViewportBased = isClientRectVisualViewportBased();
|
|
16081
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
16082
|
+
x = visualViewport.offsetLeft;
|
|
16083
|
+
y = visualViewport.offsetTop;
|
|
16084
|
+
}
|
|
16085
|
+
}
|
|
16086
|
+
return {
|
|
16087
|
+
width,
|
|
16088
|
+
height,
|
|
16089
|
+
x,
|
|
16090
|
+
y
|
|
16091
|
+
};
|
|
16092
|
+
}
|
|
16093
|
+
|
|
16094
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
|
16113
16095
|
function getInnerBoundingClientRect(element, strategy) {
|
|
16114
16096
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
16115
16097
|
const top = clientRect.top + element.clientTop;
|
|
@@ -16123,24 +16105,33 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
16123
16105
|
const x = left * scale.x;
|
|
16124
16106
|
const y = top * scale.y;
|
|
16125
16107
|
return {
|
|
16126
|
-
top: y,
|
|
16127
|
-
left: x,
|
|
16128
|
-
right: x + width,
|
|
16129
|
-
bottom: y + height,
|
|
16130
|
-
x,
|
|
16131
|
-
y,
|
|
16132
16108
|
width,
|
|
16133
|
-
height
|
|
16109
|
+
height,
|
|
16110
|
+
x,
|
|
16111
|
+
y
|
|
16134
16112
|
};
|
|
16135
16113
|
}
|
|
16136
16114
|
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
16115
|
+
let rect;
|
|
16137
16116
|
if (clippingAncestor === 'viewport') {
|
|
16138
|
-
|
|
16139
|
-
}
|
|
16140
|
-
|
|
16141
|
-
|
|
16117
|
+
rect = getViewportRect(element, strategy);
|
|
16118
|
+
} else if (clippingAncestor === 'document') {
|
|
16119
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
16120
|
+
} else if (isElement(clippingAncestor)) {
|
|
16121
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
16122
|
+
} else {
|
|
16123
|
+
const mutableRect = {
|
|
16124
|
+
...clippingAncestor
|
|
16125
|
+
};
|
|
16126
|
+
if (isClientRectVisualViewportBased()) {
|
|
16127
|
+
var _win$visualViewport, _win$visualViewport2;
|
|
16128
|
+
const win = getWindow(element);
|
|
16129
|
+
mutableRect.x -= ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0;
|
|
16130
|
+
mutableRect.y -= ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0;
|
|
16131
|
+
}
|
|
16132
|
+
rect = mutableRect;
|
|
16142
16133
|
}
|
|
16143
|
-
return rectToClientRect(
|
|
16134
|
+
return rectToClientRect(rect);
|
|
16144
16135
|
}
|
|
16145
16136
|
|
|
16146
16137
|
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
@@ -16160,13 +16151,18 @@ function getClippingElementAncestors(element, cache) {
|
|
|
16160
16151
|
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
16161
16152
|
const computedStyle = getComputedStyle$1(currentNode);
|
|
16162
16153
|
const containingBlock = isContainingBlock(currentNode);
|
|
16163
|
-
const
|
|
16164
|
-
if (
|
|
16165
|
-
|
|
16166
|
-
result = result.filter(ancestor => ancestor !== currentNode);
|
|
16154
|
+
const shouldIgnoreCurrentNode = computedStyle.position === 'fixed';
|
|
16155
|
+
if (shouldIgnoreCurrentNode) {
|
|
16156
|
+
currentContainingBlockComputedStyle = null;
|
|
16167
16157
|
} else {
|
|
16168
|
-
|
|
16169
|
-
|
|
16158
|
+
const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position);
|
|
16159
|
+
if (shouldDropCurrentNode) {
|
|
16160
|
+
// Drop non-containing blocks.
|
|
16161
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
16162
|
+
} else {
|
|
16163
|
+
// Record last containing block for next iteration.
|
|
16164
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
16165
|
+
}
|
|
16170
16166
|
}
|
|
16171
16167
|
currentNode = getParentNode(currentNode);
|
|
16172
16168
|
}
|
|
@@ -16175,7 +16171,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
16175
16171
|
}
|
|
16176
16172
|
|
|
16177
16173
|
// Gets the maximum area that the element is visible in due to any number of
|
|
16178
|
-
// clipping ancestors
|
|
16174
|
+
// clipping ancestors.
|
|
16179
16175
|
function getClippingRect(_ref) {
|
|
16180
16176
|
let {
|
|
16181
16177
|
element,
|
|
@@ -16202,6 +16198,80 @@ function getClippingRect(_ref) {
|
|
|
16202
16198
|
};
|
|
16203
16199
|
}
|
|
16204
16200
|
|
|
16201
|
+
function getDimensions(element) {
|
|
16202
|
+
if (isHTMLElement(element)) {
|
|
16203
|
+
return getCssDimensions(element);
|
|
16204
|
+
}
|
|
16205
|
+
return element.getBoundingClientRect();
|
|
16206
|
+
}
|
|
16207
|
+
|
|
16208
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
16209
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
16210
|
+
return null;
|
|
16211
|
+
}
|
|
16212
|
+
if (polyfill) {
|
|
16213
|
+
return polyfill(element);
|
|
16214
|
+
}
|
|
16215
|
+
return element.offsetParent;
|
|
16216
|
+
}
|
|
16217
|
+
function getContainingBlock(element) {
|
|
16218
|
+
let currentNode = getParentNode(element);
|
|
16219
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
16220
|
+
if (isContainingBlock(currentNode)) {
|
|
16221
|
+
return currentNode;
|
|
16222
|
+
} else {
|
|
16223
|
+
currentNode = getParentNode(currentNode);
|
|
16224
|
+
}
|
|
16225
|
+
}
|
|
16226
|
+
return null;
|
|
16227
|
+
}
|
|
16228
|
+
|
|
16229
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
16230
|
+
// such as table ancestors and cross browser bugs.
|
|
16231
|
+
function getOffsetParent(element, polyfill) {
|
|
16232
|
+
const window = getWindow(element);
|
|
16233
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
16234
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
16235
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
16236
|
+
}
|
|
16237
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
16238
|
+
return window;
|
|
16239
|
+
}
|
|
16240
|
+
return offsetParent || getContainingBlock(element) || window;
|
|
16241
|
+
}
|
|
16242
|
+
|
|
16243
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
16244
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
16245
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
16246
|
+
const rect = getBoundingClientRect(element, true, strategy === 'fixed', offsetParent);
|
|
16247
|
+
let scroll = {
|
|
16248
|
+
scrollLeft: 0,
|
|
16249
|
+
scrollTop: 0
|
|
16250
|
+
};
|
|
16251
|
+
const offsets = {
|
|
16252
|
+
x: 0,
|
|
16253
|
+
y: 0
|
|
16254
|
+
};
|
|
16255
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
16256
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
16257
|
+
scroll = getNodeScroll(offsetParent);
|
|
16258
|
+
}
|
|
16259
|
+
if (isHTMLElement(offsetParent)) {
|
|
16260
|
+
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
16261
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
16262
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
16263
|
+
} else if (documentElement) {
|
|
16264
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
16265
|
+
}
|
|
16266
|
+
}
|
|
16267
|
+
return {
|
|
16268
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
16269
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
16270
|
+
width: rect.width,
|
|
16271
|
+
height: rect.height
|
|
16272
|
+
};
|
|
16273
|
+
}
|
|
16274
|
+
|
|
16205
16275
|
const platform = {
|
|
16206
16276
|
getClippingRect,
|
|
16207
16277
|
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
@@ -36584,7 +36654,7 @@ const ICONS$1 = {
|
|
|
36584
36654
|
blank: "blank"
|
|
36585
36655
|
};
|
|
36586
36656
|
|
|
36587
|
-
const treeItemCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-tree-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tree-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tree-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tree-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tree-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tree-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-tree-item:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-tree-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-tree-item-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-tree-item-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-tree-item-h{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}/*!@[hidden]*/[hidden].sc-calcite-tree-item{display:none}/*!@.node-actions-container*/.node-actions-container.sc-calcite-tree-item{display:flex;justify-content:space-between}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tree-item-h{visibility:hidden !important;pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tree-item-h [calcite-hydrated][disabled].sc-calcite-tree-item{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .node-actions-container*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:1.5rem}/*!@:host([scale=s]) .node-actions-container .node-container .checkbox,\n:host([scale=s]) .node-actions-container .node-container .chevron,\n:host([scale=s]) .node-actions-container .node-container .checkmark,\n:host([scale=s]) .node-actions-container .node-container .bullet-point*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.25rem}/*!@:host([scale=s]) .node-actions-container .node-container .icon-start*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .node-actions-container*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2rem}/*!@:host([scale=m]) .node-actions-container .node-container .checkbox,\n:host([scale=m]) .node-actions-container .node-container .chevron,\n:host([scale=m]) .node-actions-container .node-container .checkmark,\n:host([scale=m]) .node-actions-container .node-container .bullet-point*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.5rem}/*!@:host([scale=m]) .node-actions-container .node-container .icon-start*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tree-item-h{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .node-actions-container*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .checkbox,\n:host([scale=l]) .node-actions-container .node-container .chevron,\n:host([scale=l]) .node-actions-container .node-container .checkmark,\n:host([scale=l]) .node-actions-container .node-container .bullet-point*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .icon-start*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([lines]) .children-container:after*/[lines].sc-calcite-tree-item-h .children-container.sc-calcite-tree-item:after{position:absolute;inset-block-start:0px;z-index:1;inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:\"\";background-color:var(--calcite-ui-border-2)}/*!@:host(:not([lines])) .node-container:after*/.sc-calcite-tree-item-h:not([lines]) .node-container.sc-calcite-tree-item:after{display:none}/*!@::slotted(*)*/.sc-calcite-tree-item-s>*{min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}/*!@::slotted(*):hover*/.sc-calcite-tree-item-s>*:hover{text-decoration:none !important}/*!@::slotted(a)*/.sc-calcite-tree-item-s>a{inline-size:100%;text-decoration-line:none}/*!@:host*/.sc-calcite-tree-item-h{outline-color:transparent}/*!@:host:focus, :host:active*/.sc-calcite-tree-item-h:focus,.sc-calcite-tree-item-h:active{outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host(:focus:not([disabled]))*/.sc-calcite-tree-item-h:focus:not([disabled]){outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.actions-end*/.actions-end.sc-calcite-tree-item{display:flex;flex-direction:row;align-items:center;align-self:stretch}/*!@.checkbox*/.checkbox.sc-calcite-tree-item{line-height:0}/*!@.checkbox-label*/.checkbox-label.sc-calcite-tree-item{pointer-events:none;display:flex;align-items:center}/*!@.checkbox:focus*/.checkbox.sc-calcite-tree-item:focus{outline:2px solid transparent;outline-offset:2px}/*!@.children-container*/.children-container.sc-calcite-tree-item{position:relative;block-size:0px;overflow:hidden;margin-inline-start:1.25rem;transform:scaleY(0);opacity:0;transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transform-origin:top}/*!@.item--expanded > .children-container*/.item--expanded.sc-calcite-tree-item>.children-container.sc-calcite-tree-item{overflow:visible;opacity:1;block-size:auto}/*!@.node-container*/.node-container.sc-calcite-tree-item{position:relative;display:flex;align-items:center}/*!@.node-container .checkmark,\n.node-container .bullet-point*/.node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}/*!@.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus:not([disabled])) .node-container .checkmark,\n:host(:focus:not([disabled])) .node-container .bullet-point*/.node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:1}/*!@:host([selected]) .node-container,\n:host([selected]) .node-container:hover*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .node-container .bullet-point,\n:host([selected]) .node-container .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container.sc-calcite-tree-item{padding-inline-start:0.5rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container.sc-calcite-tree-item{padding-inline-start:1rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.25rem}/*!@:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.75rem}/*!@:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox*/[has-children].sc-calcite-tree-item-h .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{margin-inline-start:0}/*!@:host([has-children]) .node-container .bullet-point,\n:host([has-children]) .node-container .checkmark*/[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item{display:none}/*!@:host([has-children][expanded]:not([selected]):not([selection-mode=none])) .node-container ::slotted(*)*/.sc-calcite-tree-item-h[has-children][expanded]:not([selected]):not([selection-mode=none]) .node-container .sc-calcite-tree-item-s>*{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([has-children][selected]) .node-container[data-selection-mode=children], :host([has-children][selected]) .node-container[data-selection-mode=multichildren]*/[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=children].sc-calcite-tree-item,[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=multichildren].sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@.chevron*/.chevron.sc-calcite-tree-item{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}/*!@.calcite--rtl .chevron*/.calcite--rtl.sc-calcite-tree-item .chevron.sc-calcite-tree-item{transform:rotate(180deg)}/*!@.item--expanded .node-container > .chevron*/.item--expanded.sc-calcite-tree-item .node-container.sc-calcite-tree-item>.chevron.sc-calcite-tree-item{transform:rotate(90deg)}/*!@:host([selected]) .checkmark,\n:host([selected]) .bullet-point*/[selected].sc-calcite-tree-item-h .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .bullet-point.sc-calcite-tree-item{color:var(--calcite-ui-brand)}";
|
|
36657
|
+
const treeItemCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-tree-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tree-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tree-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tree-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tree-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tree-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-tree-item:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-tree-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-tree-item-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-tree-item-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-tree-item-h{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}/*!@[hidden]*/[hidden].sc-calcite-tree-item{display:none}/*!@.node-actions-container*/.node-actions-container.sc-calcite-tree-item{display:flex;justify-content:space-between}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tree-item-h{visibility:hidden !important;pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tree-item-h [calcite-hydrated][disabled].sc-calcite-tree-item{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .node-actions-container*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:1.5rem}/*!@:host([scale=s]) .node-actions-container .node-container .checkbox,\n:host([scale=s]) .node-actions-container .node-container .chevron,\n:host([scale=s]) .node-actions-container .node-container .checkmark,\n:host([scale=s]) .node-actions-container .node-container .bullet-point*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.25rem}/*!@:host([scale=s]) .node-actions-container .node-container .icon-start*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .node-actions-container*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2rem}/*!@:host([scale=m]) .node-actions-container .node-container .checkbox,\n:host([scale=m]) .node-actions-container .node-container .chevron,\n:host([scale=m]) .node-actions-container .node-container .checkmark,\n:host([scale=m]) .node-actions-container .node-container .bullet-point*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.5rem}/*!@:host([scale=m]) .node-actions-container .node-container .icon-start*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tree-item-h{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .node-actions-container*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .checkbox,\n:host([scale=l]) .node-actions-container .node-container .chevron,\n:host([scale=l]) .node-actions-container .node-container .checkmark,\n:host([scale=l]) .node-actions-container .node-container .bullet-point*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .icon-start*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([lines]) .children-container:after*/[lines].sc-calcite-tree-item-h .children-container.sc-calcite-tree-item:after{position:absolute;inset-block-start:0px;z-index:1;inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:\"\";background-color:var(--calcite-ui-border-2)}/*!@:host(:not([lines])) .node-container:after*/.sc-calcite-tree-item-h:not([lines]) .node-container.sc-calcite-tree-item:after{display:none}/*!@::slotted(*)*/.sc-calcite-tree-item-s>*{min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}/*!@::slotted(*):hover*/.sc-calcite-tree-item-s>*:hover{text-decoration:none !important}/*!@::slotted(a)*/.sc-calcite-tree-item-s>a{inline-size:100%;text-decoration-line:none}/*!@:host*/.sc-calcite-tree-item-h{outline-color:transparent}/*!@:host:focus, :host:active*/.sc-calcite-tree-item-h:focus,.sc-calcite-tree-item-h:active{outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host(:focus:not([disabled]))*/.sc-calcite-tree-item-h:focus:not([disabled]){outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.actions-end*/.actions-end.sc-calcite-tree-item{display:flex;flex-direction:row;align-items:center;align-self:stretch}/*!@.checkbox*/.checkbox.sc-calcite-tree-item{line-height:0}/*!@.checkbox-label*/.checkbox-label.sc-calcite-tree-item{pointer-events:none;display:flex;align-items:center}/*!@.checkbox:focus*/.checkbox.sc-calcite-tree-item:focus{outline:2px solid transparent;outline-offset:2px}/*!@.children-container*/.children-container.sc-calcite-tree-item{position:relative;block-size:0px;overflow:hidden;margin-inline-start:1.25rem;transform:scaleY(0);opacity:0;transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transform-origin:top}/*!@.item--expanded > .children-container*/.item--expanded.sc-calcite-tree-item>.children-container.sc-calcite-tree-item{overflow:visible;opacity:1;block-size:auto}/*!@.node-container*/.node-container.sc-calcite-tree-item{position:relative;display:flex;min-inline-size:0px;align-items:center}/*!@.node-container .checkmark,\n.node-container .bullet-point*/.node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}/*!@.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus:not([disabled])) .node-container .checkmark,\n:host(:focus:not([disabled])) .node-container .bullet-point*/.node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:1}/*!@:host([selected]) .node-container,\n:host([selected]) .node-container:hover*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .node-container .bullet-point,\n:host([selected]) .node-container .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container.sc-calcite-tree-item{padding-inline-start:0.5rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container.sc-calcite-tree-item{padding-inline-start:1rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.25rem}/*!@:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.75rem}/*!@:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox*/[has-children].sc-calcite-tree-item-h .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{margin-inline-start:0}/*!@:host([has-children]) .node-container .bullet-point,\n:host([has-children]) .node-container .checkmark*/[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item{display:none}/*!@:host([has-children][expanded]:not([selected]):not([selection-mode=none])) .node-container ::slotted(*)*/.sc-calcite-tree-item-h[has-children][expanded]:not([selected]):not([selection-mode=none]) .node-container .sc-calcite-tree-item-s>*{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([has-children][selected]) .node-container[data-selection-mode=children], :host([has-children][selected]) .node-container[data-selection-mode=multichildren]*/[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=children].sc-calcite-tree-item,[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=multichildren].sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@.chevron*/.chevron.sc-calcite-tree-item{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}/*!@.calcite--rtl .chevron*/.calcite--rtl.sc-calcite-tree-item .chevron.sc-calcite-tree-item{transform:rotate(180deg)}/*!@.item--expanded .node-container > .chevron*/.item--expanded.sc-calcite-tree-item .node-container.sc-calcite-tree-item>.chevron.sc-calcite-tree-item{transform:rotate(90deg)}/*!@:host([selected]) .checkmark,\n:host([selected]) .bullet-point*/[selected].sc-calcite-tree-item-h .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .bullet-point.sc-calcite-tree-item{color:var(--calcite-ui-brand)}";
|
|
36588
36658
|
|
|
36589
36659
|
/**
|
|
36590
36660
|
* @slot - A slot for adding text.
|