@esri/calcite-components 1.0.0-next.702 → 1.0.0-next.704
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/assets/icon/allServers16.json +1 -0
- package/dist/calcite/assets/icon/allServers24.json +1 -0
- package/dist/calcite/assets/icon/allServers32.json +1 -0
- package/dist/calcite/assets/icon/decreaseLinkChartSymbolSize16.json +1 -0
- package/dist/calcite/assets/icon/decreaseLinkChartSymbolSize24.json +1 -0
- package/dist/calcite/assets/icon/decreaseLinkChartSymbolSize32.json +1 -0
- package/dist/calcite/assets/icon/findPath16.json +1 -0
- package/dist/calcite/assets/icon/findPath24.json +1 -0
- package/dist/calcite/assets/icon/findPath32.json +1 -0
- package/dist/calcite/assets/icon/geoanalyticsServer16.json +1 -0
- package/dist/calcite/assets/icon/geoanalyticsServer24.json +1 -0
- package/dist/calcite/assets/icon/geoanalyticsServer32.json +1 -0
- package/dist/calcite/assets/icon/geoeventServer16.json +1 -0
- package/dist/calcite/assets/icon/geoeventServer24.json +1 -0
- package/dist/calcite/assets/icon/geoeventServer32.json +1 -0
- package/dist/calcite/assets/icon/geographicLinkChartLayout16.json +1 -0
- package/dist/calcite/assets/icon/geographicLinkChartLayout24.json +1 -0
- package/dist/calcite/assets/icon/geographicLinkChartLayout32.json +1 -0
- package/dist/calcite/assets/icon/gisServer16.json +1 -0
- package/dist/calcite/assets/icon/gisServer24.json +1 -0
- package/dist/calcite/assets/icon/gisServer32.json +1 -0
- package/dist/calcite/assets/icon/imageServer16.json +1 -0
- package/dist/calcite/assets/icon/imageServer24.json +1 -0
- package/dist/calcite/assets/icon/imageServer32.json +1 -0
- package/dist/calcite/assets/icon/increaseLinkChartSymbolSize16.json +1 -0
- package/dist/calcite/assets/icon/increaseLinkChartSymbolSize24.json +1 -0
- package/dist/calcite/assets/icon/increaseLinkChartSymbolSize32.json +1 -0
- package/dist/calcite/assets/icon/investigation16.json +1 -0
- package/dist/calcite/assets/icon/investigation24.json +1 -0
- package/dist/calcite/assets/icon/investigation32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraph16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraph24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraph32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphDashboard16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphDashboard24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphDashboard32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphDataModel16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphDataModel24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphDataModel32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphExport16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphExport24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphExport32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphImport16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphImport24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphImport32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphNew16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphNew24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphNew32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphRelationship16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphRelationship24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeGraphRelationship32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeLayer16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeLayer24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeLayer32.json +1 -0
- package/dist/calcite/assets/icon/knowledgeServer16.json +1 -0
- package/dist/calcite/assets/icon/knowledgeServer24.json +1 -0
- package/dist/calcite/assets/icon/knowledgeServer32.json +1 -0
- package/dist/calcite/assets/icon/labelOff16.json +1 -0
- package/dist/calcite/assets/icon/labelOff24.json +1 -0
- package/dist/calcite/assets/icon/labelOff32.json +1 -0
- package/dist/calcite/assets/icon/linkChart16.json +1 -0
- package/dist/calcite/assets/icon/linkChart24.json +1 -0
- package/dist/calcite/assets/icon/linkChart32.json +1 -0
- package/dist/calcite/assets/icon/notebookServer16.json +1 -0
- package/dist/calcite/assets/icon/notebookServer24.json +1 -0
- package/dist/calcite/assets/icon/notebookServer32.json +1 -0
- package/dist/calcite/assets/icon/workflowManagerServer16.json +1 -0
- package/dist/calcite/assets/icon/workflowManagerServer24.json +1 -0
- package/dist/calcite/assets/icon/workflowManagerServer32.json +1 -0
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-08af6c70.entry.js → p-02e9b1cd.entry.js} +2 -2
- package/dist/calcite/{p-f1eff1e1.entry.js → p-0548b2ec.entry.js} +2 -2
- package/dist/calcite/{p-c0ad8bfc.js → p-0784baff.js} +2 -2
- package/dist/calcite/{p-ec016afe.entry.js → p-0bf1f525.entry.js} +2 -2
- package/dist/calcite/{p-3cf89419.entry.js → p-0d4e55a7.entry.js} +2 -2
- package/dist/calcite/{p-f5200ac8.entry.js → p-0f7844c9.entry.js} +2 -2
- package/dist/calcite/{p-f899f474.js → p-109e0ec8.js} +1 -1
- package/dist/calcite/{p-3ffa53b5.js → p-19a6ec8b.js} +2 -2
- package/dist/calcite/{p-9057d48a.entry.js → p-1aacd6c7.entry.js} +2 -2
- package/dist/calcite/{p-94d1ab82.js → p-1adbba2b.js} +2 -2
- package/dist/calcite/{p-fca49121.entry.js → p-1e18610a.entry.js} +2 -2
- package/dist/calcite/{p-8a647669.entry.js → p-203ba04c.entry.js} +2 -2
- package/dist/calcite/{p-ff7f2520.entry.js → p-2058ef5d.entry.js} +2 -2
- package/dist/calcite/{p-1c328c37.entry.js → p-2089fd82.entry.js} +2 -2
- package/dist/calcite/{p-09f93be2.js → p-213f60fa.js} +1 -1
- package/dist/calcite/{p-c1326463.entry.js → p-22e75102.entry.js} +2 -2
- package/dist/calcite/p-22e9cd94.js +6 -0
- package/dist/calcite/{p-46d054bb.entry.js → p-233bd5a1.entry.js} +2 -2
- package/dist/calcite/{p-e1b07bec.entry.js → p-26868888.entry.js} +2 -2
- package/dist/calcite/{p-8ed698f1.js → p-287048c6.js} +1 -1
- package/dist/calcite/{p-03affb1f.entry.js → p-291238ba.entry.js} +2 -2
- package/dist/calcite/{p-f22125c8.entry.js → p-2b4256cf.entry.js} +2 -2
- package/dist/calcite/{p-ff7639ec.entry.js → p-2daa2f8d.entry.js} +2 -2
- package/dist/calcite/{p-5d03b5c2.entry.js → p-34f8db3b.entry.js} +2 -2
- package/dist/calcite/{p-0643a222.entry.js → p-36e0699e.entry.js} +2 -2
- package/dist/calcite/{p-b715dec3.entry.js → p-3995cbb7.entry.js} +2 -2
- package/dist/calcite/{p-5747784a.entry.js → p-3ccf9174.entry.js} +2 -2
- package/dist/calcite/{p-3055866d.js → p-3dd4f134.js} +2 -2
- package/dist/calcite/{p-87e1d2c4.entry.js → p-3e40c086.entry.js} +2 -2
- package/dist/calcite/{p-2a62244a.entry.js → p-412851aa.entry.js} +2 -2
- package/dist/calcite/{p-44f85e3f.js → p-456e0fd5.js} +1 -1
- package/dist/calcite/{p-131fedd0.js → p-4f3470b2.js} +1 -1
- package/dist/calcite/{p-9fab656c.js → p-4fe3e401.js} +2 -2
- package/dist/calcite/{p-b8b66740.entry.js → p-592df9f4.entry.js} +2 -2
- package/dist/calcite/{p-c858778e.entry.js → p-5c09a6de.entry.js} +2 -2
- package/dist/calcite/{p-fcfc8e6e.entry.js → p-5e1b9d2b.entry.js} +2 -2
- package/dist/calcite/{p-5d506a9f.entry.js → p-61392ad3.entry.js} +2 -2
- package/dist/calcite/{p-f605736c.entry.js → p-61bdcdd9.entry.js} +2 -2
- package/dist/calcite/{p-258877a2.entry.js → p-633c9dd1.entry.js} +2 -2
- package/dist/calcite/p-662119d6.entry.js +6 -0
- package/dist/calcite/{p-f43fe740.entry.js → p-693e8bbd.entry.js} +2 -2
- package/dist/calcite/{p-04f33e06.entry.js → p-6d66a55f.entry.js} +2 -2
- package/dist/calcite/{p-455ba011.js → p-6eb4b6dd.js} +1 -1
- package/dist/calcite/{p-650129bf.js → p-6f589999.js} +1 -1
- package/dist/calcite/{p-5478f9f6.entry.js → p-701aaae8.entry.js} +2 -2
- package/dist/calcite/p-713db7b2.entry.js +6 -0
- package/dist/calcite/{p-f946f34d.entry.js → p-7f4925b3.entry.js} +2 -2
- package/dist/calcite/{p-7e33d488.entry.js → p-80fc2dc0.entry.js} +2 -2
- package/dist/calcite/{p-6278ef0c.js → p-8426ad9d.js} +2 -2
- package/dist/calcite/{p-1df68a88.entry.js → p-86134d6a.entry.js} +2 -2
- package/dist/calcite/{p-276a70de.entry.js → p-8cf2e4f6.entry.js} +2 -2
- package/dist/calcite/{p-f87d2ad1.entry.js → p-8d581fff.entry.js} +2 -2
- package/dist/calcite/{p-155b8150.js → p-91f0c386.js} +2 -2
- package/dist/calcite/{p-038ffd98.entry.js → p-92e6d875.entry.js} +2 -2
- package/dist/calcite/{p-08a2a0a3.js → p-94bd22d2.js} +2 -2
- package/dist/calcite/{p-0995ff5c.js → p-970d9cb9.js} +1 -1
- package/dist/calcite/{p-9536ace3.entry.js → p-9711317b.entry.js} +2 -2
- package/dist/calcite/{p-87255f92.entry.js → p-97f83a50.entry.js} +2 -2
- package/dist/calcite/{p-444dd465.entry.js → p-9a8a9e67.entry.js} +2 -2
- package/dist/calcite/{p-4baf236a.entry.js → p-9bec1eac.entry.js} +2 -2
- package/dist/calcite/{p-4d180a60.js → p-9d9200ec.js} +1 -1
- package/dist/calcite/p-9e4c0974.entry.js +6 -0
- package/dist/calcite/{p-14afd90f.js → p-9fa0bf89.js} +1 -1
- package/dist/calcite/{p-da257b46.entry.js → p-a1ad2d2f.entry.js} +2 -2
- package/dist/calcite/{p-81261215.entry.js → p-a42bf833.entry.js} +2 -2
- package/dist/calcite/{p-3b99344c.entry.js → p-a65db9c7.entry.js} +2 -2
- package/dist/calcite/{p-ce99e979.js → p-ac253e04.js} +1 -1
- package/dist/calcite/{p-29904e44.js → p-afe9237c.js} +2 -2
- package/dist/calcite/{p-bbe97b11.js → p-afedfc47.js} +1 -1
- package/dist/calcite/{p-3a88d975.entry.js → p-b3ffb3c5.entry.js} +2 -2
- package/dist/calcite/{p-7fc01add.entry.js → p-b4bde3ee.entry.js} +2 -2
- package/dist/calcite/{p-74ee8396.js → p-b7caa1d8.js} +1 -1
- package/dist/calcite/{p-45e34c7e.entry.js → p-b95b1056.entry.js} +2 -2
- package/dist/calcite/p-c3e119d7.js +6 -0
- package/dist/calcite/{p-68d792f8.js → p-cfe3b1f8.js} +1 -1
- package/dist/calcite/{p-bace456d.entry.js → p-d10d56cc.entry.js} +2 -2
- package/dist/calcite/{p-9f347585.js → p-d26b5d10.js} +1 -1
- package/dist/calcite/{p-1de5063e.js → p-d4536926.js} +1 -1
- package/dist/calcite/{p-efa67668.js → p-d5e45086.js} +2 -2
- package/dist/calcite/{p-5f158a85.entry.js → p-d9346ecc.entry.js} +2 -2
- package/dist/calcite/{p-25b959ab.entry.js → p-d97ae24b.entry.js} +2 -2
- package/dist/calcite/p-dbd5faca.js +6 -0
- package/dist/calcite/p-e4d78922.entry.js +6 -0
- package/dist/calcite/{p-f4da6114.js → p-e4dc8527.js} +3 -3
- package/dist/calcite/{p-09c2e3af.entry.js → p-e89d573a.entry.js} +2 -2
- package/dist/calcite/{p-00afc72e.entry.js → p-e95f1ce4.entry.js} +2 -2
- package/dist/calcite/{p-d9101232.entry.js → p-e995b5b8.entry.js} +2 -2
- package/dist/calcite/{p-15975845.js → p-f63f2a96.js} +2 -2
- package/dist/calcite/{p-5fa846e8.entry.js → p-f64c2ca0.entry.js} +2 -2
- package/dist/calcite/{p-9a827321.entry.js → p-fb27af35.entry.js} +2 -2
- package/dist/calcite/{p-e450127a.js → p-fd594e44.js} +2 -2
- package/dist/calcite/{p-50d43cad.entry.js → p-fe5f6c17.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-ad96108e.js → ExpandToggle-f644a4e4.js} +5 -5
- package/dist/cjs/{Heading-6395d8b1.js → Heading-3652e2e4.js} +2 -2
- package/dist/cjs/{app-globals-6390cd2a.js → app-globals-fc78d19f.js} +2 -2
- package/dist/cjs/{array-a11ff3ac.js → array-35ff3f06.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 +24 -20
- 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 +10 -10
- 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-radio-group_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.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 +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-f6070588.js → conditionalSlot-50276472.js} +3 -3
- package/dist/cjs/{debounce-1dfbaddc.js → debounce-3886405a.js} +1 -1
- package/dist/cjs/{dom-c171a774.js → dom-60bee9cc.js} +3 -3
- package/dist/cjs/{filter-ae18b0fc.js → filter-c5334237.js} +2 -2
- package/dist/cjs/{floating-ui-6c4af6f9.js → floating-ui-d68cb1af.js} +157 -234
- package/dist/cjs/{focusTrapComponent-d07bc8b9.js → focusTrapComponent-ba42cb92.js} +2 -2
- package/dist/cjs/{form-1ad5b459.js → form-fe1cad9f.js} +3 -3
- package/dist/cjs/{guid-be2b55bb.js → guid-f31c67c6.js} +1 -1
- package/dist/cjs/{index-ab60fe30.js → index-40e91d53.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-0bf45603.js → interactive-0de0886c.js} +1 -1
- package/dist/cjs/{key-d4b16f6e.js → key-417c449f.js} +1 -1
- package/dist/cjs/{label-e0337647.js → label-3f932cde.js} +2 -2
- package/dist/cjs/{loadable-d0eb534b.js → loadable-0b06f202.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-d6be4a64.js → locale-7a82b94d.js} +4 -4
- package/dist/cjs/{math-867d8959.js → math-b7264bea.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-efab5da6.js → nonChromiumPlatformUtils-453d73b1.js} +6 -6
- package/dist/cjs/{observers-95f29589.js → observers-c1f1c520.js} +1 -1
- package/dist/cjs/{openCloseComponent-bdc5bbe7.js → openCloseComponent-9ee6119b.js} +2 -2
- package/dist/cjs/{resources-09c59164.js → resources-00637df0.js} +1 -1
- package/dist/cjs/{resources-51b4dc3f.js → resources-4a8a1fd0.js} +1 -1
- package/dist/cjs/{resources-53358703.js → resources-79397f00.js} +1 -1
- package/dist/cjs/{resources-10a70c95.js → resources-b913a6ba.js} +1 -1
- package/dist/cjs/{resources-1beb4322.js → resources-cf6c522e.js} +1 -1
- package/dist/cjs/{resources-684b6bdf.js → resources-d9fbb06f.js} +5 -5
- package/dist/cjs/{sortable.esm-4d5b3abe.js → sortable.esm-0400782d.js} +1 -1
- package/dist/cjs/{t9n-ded232d9.js → t9n-8ed58ec7.js} +3 -3
- package/dist/cjs/{utils-bf8ba896.js → utils-d6c7c90e.js} +3 -3
- package/dist/cjs/{utils-93d6e6ae.js → utils-d9116995.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 +4 -4
- 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 +2 -2
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +7 -4
- 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 +3 -3
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +7 -4
- 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/assets/icon/allServers16.json +1 -0
- package/dist/collection/components/icon/assets/icon/allServers24.json +1 -0
- package/dist/collection/components/icon/assets/icon/allServers32.json +1 -0
- package/dist/collection/components/icon/assets/icon/decreaseLinkChartSymbolSize16.json +1 -0
- package/dist/collection/components/icon/assets/icon/decreaseLinkChartSymbolSize24.json +1 -0
- package/dist/collection/components/icon/assets/icon/decreaseLinkChartSymbolSize32.json +1 -0
- package/dist/collection/components/icon/assets/icon/findPath16.json +1 -0
- package/dist/collection/components/icon/assets/icon/findPath24.json +1 -0
- package/dist/collection/components/icon/assets/icon/findPath32.json +1 -0
- package/dist/collection/components/icon/assets/icon/geoanalyticsServer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/geoanalyticsServer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/geoanalyticsServer32.json +1 -0
- package/dist/collection/components/icon/assets/icon/geoeventServer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/geoeventServer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/geoeventServer32.json +1 -0
- package/dist/collection/components/icon/assets/icon/geographicLinkChartLayout16.json +1 -0
- package/dist/collection/components/icon/assets/icon/geographicLinkChartLayout24.json +1 -0
- package/dist/collection/components/icon/assets/icon/geographicLinkChartLayout32.json +1 -0
- package/dist/collection/components/icon/assets/icon/gisServer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/gisServer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/gisServer32.json +1 -0
- package/dist/collection/components/icon/assets/icon/imageServer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/imageServer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/imageServer32.json +1 -0
- package/dist/collection/components/icon/assets/icon/increaseLinkChartSymbolSize16.json +1 -0
- package/dist/collection/components/icon/assets/icon/increaseLinkChartSymbolSize24.json +1 -0
- package/dist/collection/components/icon/assets/icon/increaseLinkChartSymbolSize32.json +1 -0
- package/dist/collection/components/icon/assets/icon/investigation16.json +1 -0
- package/dist/collection/components/icon/assets/icon/investigation24.json +1 -0
- package/dist/collection/components/icon/assets/icon/investigation32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraph16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraph24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraph32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphDashboard16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphDashboard24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphDashboard32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphDataModel16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphDataModel24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphDataModel32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphExport16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphExport24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphExport32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphImport16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphImport24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphImport32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphNew16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphNew24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphNew32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphRelationship16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphRelationship24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeGraphRelationship32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeLayer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeLayer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeLayer32.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeServer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeServer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/knowledgeServer32.json +1 -0
- package/dist/collection/components/icon/assets/icon/labelOff16.json +1 -0
- package/dist/collection/components/icon/assets/icon/labelOff24.json +1 -0
- package/dist/collection/components/icon/assets/icon/labelOff32.json +1 -0
- package/dist/collection/components/icon/assets/icon/linkChart16.json +1 -0
- package/dist/collection/components/icon/assets/icon/linkChart24.json +1 -0
- package/dist/collection/components/icon/assets/icon/linkChart32.json +1 -0
- package/dist/collection/components/icon/assets/icon/notebookServer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/notebookServer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/notebookServer32.json +1 -0
- package/dist/collection/components/icon/assets/icon/workflowManagerServer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/workflowManagerServer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/workflowManagerServer32.json +1 -0
- 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 +9 -5
- 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 +8 -5
- 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.css +4 -11
- 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/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/tab-nav/tab-nav.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 +2 -2
- 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/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.js +2 -2
- 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 +3 -3
- 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/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- 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/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/theme.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 +2 -2
- 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 +9 -5
- 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 +2 -2
- 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-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.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 +1 -1
- 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 +154 -231
- 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/nonChromiumPlatformUtils.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/resources4.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/esm/{ExpandToggle-484ede7d.js → ExpandToggle-0e2ba5f6.js} +5 -5
- package/dist/esm/{Heading-90b4a47e.js → Heading-f5afb8a1.js} +2 -2
- package/dist/esm/{app-globals-469bd94b.js → app-globals-b283114a.js} +2 -2
- package/dist/esm/{array-a371b415.js → array-f2438ae4.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 +24 -20
- 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 +10 -10
- 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-radio-group_2.entry.js +9 -9
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.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 +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-e57231c0.js → conditionalSlot-0d1291a8.js} +3 -3
- package/dist/esm/{debounce-752519d2.js → debounce-c4cb494a.js} +1 -1
- package/dist/esm/{dom-a9ba459c.js → dom-0bf7f8e7.js} +3 -3
- package/dist/esm/{filter-580c893b.js → filter-7bb003e3.js} +2 -2
- package/dist/esm/{floating-ui-a6cb80ab.js → floating-ui-6640a3a1.js} +157 -234
- package/dist/esm/{focusTrapComponent-7044677e.js → focusTrapComponent-dfae5757.js} +2 -2
- package/dist/esm/{form-239ab500.js → form-91dcba1d.js} +3 -3
- package/dist/esm/{guid-1b3b1a75.js → guid-39c561d1.js} +1 -1
- package/dist/esm/{index-306667e4.js → index-cb9d63d5.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-25955d50.js → interactive-688b7505.js} +1 -1
- package/dist/esm/{key-a0012884.js → key-c174419f.js} +1 -1
- package/dist/esm/{label-1a53b3e5.js → label-f1a7f8b6.js} +2 -2
- package/dist/esm/{loadable-4ca1f25f.js → loadable-45a4e767.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-f3b45ca4.js → locale-fb6b90bc.js} +4 -4
- package/dist/esm/{math-cb0c9a42.js → math-0bdb2b13.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-97c67aed.js → nonChromiumPlatformUtils-204821d7.js} +6 -6
- package/dist/esm/{observers-944ea463.js → observers-ca1ec37f.js} +1 -1
- package/dist/esm/{openCloseComponent-0f72e798.js → openCloseComponent-540d11b1.js} +2 -2
- package/dist/esm/{resources-6fe56f3f.js → resources-057f1ec0.js} +1 -1
- package/dist/esm/{resources-2dc287e4.js → resources-905e7f73.js} +1 -1
- package/dist/esm/{resources-5e48a8a1.js → resources-dab33130.js} +5 -5
- package/dist/esm/{resources-ba1cce6d.js → resources-dbe957f0.js} +1 -1
- package/dist/esm/{resources-25ea993d.js → resources-f5ea9f9c.js} +1 -1
- package/dist/esm/{resources-2988145f.js → resources-f93681ec.js} +1 -1
- package/dist/esm/{sortable.esm-dddff7ed.js → sortable.esm-70f3f344.js} +1 -1
- package/dist/esm/{t9n-ef976e46.js → t9n-6142e648.js} +3 -3
- package/dist/esm/{utils-75acecf1.js → utils-0a987fa3.js} +1 -1
- package/dist/esm/{utils-8eb026bf.js → utils-e89ec8e6.js} +3 -3
- package/dist/extras/docs-json.json +45 -84
- package/dist/extras/vscode-data.json +1 -17
- 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/components/action-bar/action-bar.d.ts +3 -3
- package/dist/types/components/action-pad/action-pad.d.ts +1 -1
- package/dist/types/components/alert/alert.d.ts +2 -2
- package/dist/types/components/block/block.d.ts +2 -2
- package/dist/types/components/block-section/block-section.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +1 -1
- package/dist/types/components/flow/flow.d.ts +1 -1
- package/dist/types/components/flow-item/flow-item.d.ts +2 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +1 -0
- package/dist/types/components/notice/notice.d.ts +3 -3
- package/dist/types/components/scrim/scrim.d.ts +0 -2
- package/dist/types/components/shell/shell.d.ts +1 -1
- package/dist/types/components/shell-panel/shell-panel.d.ts +1 -1
- package/dist/types/components/stepper/stepper.d.ts +1 -1
- package/dist/types/components/tab/tab.d.ts +1 -1
- package/dist/types/components/tile-select-group/tile-select-group.d.ts +1 -1
- package/dist/types/components/tree-item/tree-item.d.ts +1 -1
- package/dist/types/components/value-list-item/value-list-item.d.ts +2 -2
- package/dist/types/components.d.ts +19 -11
- package/hydrate/index.js +174 -235
- package/package.json +14 -14
- package/dist/calcite/p-0e4780d7.js +0 -6
- package/dist/calcite/p-70b4f71d.js +0 -6
- package/dist/calcite/p-9c01e157.entry.js +0 -6
- package/dist/calcite/p-9d5c3896.entry.js +0 -6
- package/dist/calcite/p-a82bb0ad.entry.js +0 -6
- package/dist/calcite/p-c3bef4be.js +0 -6
- package/dist/calcite/p-ffcbbbba.entry.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
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.0-next.
|
|
4
|
+
* v1.0.0-next.704
|
|
5
5
|
*/
|
|
6
|
-
import { c as closestElementCrossShadowBoundary, b as getElementDir } from './dom-
|
|
7
|
-
import { d as debounce } from './debounce-
|
|
6
|
+
import { c as closestElementCrossShadowBoundary, b as getElementDir } from './dom-0bf7f8e7.js';
|
|
7
|
+
import { d as debounce } from './debounce-c4cb494a.js';
|
|
8
8
|
|
|
9
9
|
function getSide(placement) {
|
|
10
10
|
return placement.split('-')[0];
|
|
@@ -35,7 +35,6 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
35
35
|
const side = getSide(placement);
|
|
36
36
|
const isVertical = mainAxis === 'x';
|
|
37
37
|
let coords;
|
|
38
|
-
|
|
39
38
|
switch (side) {
|
|
40
39
|
case 'top':
|
|
41
40
|
coords = {
|
|
@@ -43,45 +42,38 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
43
42
|
y: reference.y - floating.height
|
|
44
43
|
};
|
|
45
44
|
break;
|
|
46
|
-
|
|
47
45
|
case 'bottom':
|
|
48
46
|
coords = {
|
|
49
47
|
x: commonX,
|
|
50
48
|
y: reference.y + reference.height
|
|
51
49
|
};
|
|
52
50
|
break;
|
|
53
|
-
|
|
54
51
|
case 'right':
|
|
55
52
|
coords = {
|
|
56
53
|
x: reference.x + reference.width,
|
|
57
54
|
y: commonY
|
|
58
55
|
};
|
|
59
56
|
break;
|
|
60
|
-
|
|
61
57
|
case 'left':
|
|
62
58
|
coords = {
|
|
63
59
|
x: reference.x - floating.width,
|
|
64
60
|
y: commonY
|
|
65
61
|
};
|
|
66
62
|
break;
|
|
67
|
-
|
|
68
63
|
default:
|
|
69
64
|
coords = {
|
|
70
65
|
x: reference.x,
|
|
71
66
|
y: reference.y
|
|
72
67
|
};
|
|
73
68
|
}
|
|
74
|
-
|
|
75
69
|
switch (getAlignment(placement)) {
|
|
76
70
|
case 'start':
|
|
77
71
|
coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
78
72
|
break;
|
|
79
|
-
|
|
80
73
|
case 'end':
|
|
81
74
|
coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
82
75
|
break;
|
|
83
76
|
}
|
|
84
|
-
|
|
85
77
|
return coords;
|
|
86
78
|
}
|
|
87
79
|
|
|
@@ -92,7 +84,6 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
92
84
|
* This export does not have any `platform` interface logic. You will need to
|
|
93
85
|
* write one for the platform you are using Floating UI with.
|
|
94
86
|
*/
|
|
95
|
-
|
|
96
87
|
const computePosition$1 = async (reference, floating, config) => {
|
|
97
88
|
const {
|
|
98
89
|
placement = 'bottom',
|
|
@@ -102,7 +93,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
102
93
|
} = config;
|
|
103
94
|
const validMiddleware = middleware.filter(Boolean);
|
|
104
95
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
105
|
-
|
|
106
96
|
let rects = await platform.getElementRects({
|
|
107
97
|
reference,
|
|
108
98
|
floating,
|
|
@@ -115,7 +105,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
115
105
|
let statefulPlacement = placement;
|
|
116
106
|
let middlewareData = {};
|
|
117
107
|
let resetCount = 0;
|
|
118
|
-
|
|
119
108
|
for (let i = 0; i < validMiddleware.length; i++) {
|
|
120
109
|
const {
|
|
121
110
|
name,
|
|
@@ -142,20 +131,19 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
142
131
|
});
|
|
143
132
|
x = nextX != null ? nextX : x;
|
|
144
133
|
y = nextY != null ? nextY : y;
|
|
145
|
-
middlewareData = {
|
|
146
|
-
|
|
134
|
+
middlewareData = {
|
|
135
|
+
...middlewareData,
|
|
136
|
+
[name]: {
|
|
137
|
+
...middlewareData[name],
|
|
147
138
|
...data
|
|
148
139
|
}
|
|
149
140
|
};
|
|
150
|
-
|
|
151
141
|
if (reset && resetCount <= 50) {
|
|
152
142
|
resetCount++;
|
|
153
|
-
|
|
154
143
|
if (typeof reset === 'object') {
|
|
155
144
|
if (reset.placement) {
|
|
156
145
|
statefulPlacement = reset.placement;
|
|
157
146
|
}
|
|
158
|
-
|
|
159
147
|
if (reset.rects) {
|
|
160
148
|
rects = reset.rects === true ? await platform.getElementRects({
|
|
161
149
|
reference,
|
|
@@ -163,18 +151,15 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
163
151
|
strategy
|
|
164
152
|
}) : reset.rects;
|
|
165
153
|
}
|
|
166
|
-
|
|
167
154
|
({
|
|
168
155
|
x,
|
|
169
156
|
y
|
|
170
157
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
171
158
|
}
|
|
172
|
-
|
|
173
159
|
i = -1;
|
|
174
160
|
continue;
|
|
175
161
|
}
|
|
176
162
|
}
|
|
177
|
-
|
|
178
163
|
return {
|
|
179
164
|
x,
|
|
180
165
|
y,
|
|
@@ -204,7 +189,8 @@ function getSideObjectFromPadding(padding) {
|
|
|
204
189
|
}
|
|
205
190
|
|
|
206
191
|
function rectToClientRect(rect) {
|
|
207
|
-
return {
|
|
192
|
+
return {
|
|
193
|
+
...rect,
|
|
208
194
|
top: rect.y,
|
|
209
195
|
left: rect.x,
|
|
210
196
|
right: rect.x + rect.width,
|
|
@@ -222,11 +208,9 @@ function rectToClientRect(rect) {
|
|
|
222
208
|
*/
|
|
223
209
|
async function detectOverflow(middlewareArguments, options) {
|
|
224
210
|
var _await$platform$isEle;
|
|
225
|
-
|
|
226
211
|
if (options === void 0) {
|
|
227
212
|
options = {};
|
|
228
213
|
}
|
|
229
|
-
|
|
230
214
|
const {
|
|
231
215
|
x,
|
|
232
216
|
y,
|
|
@@ -251,7 +235,8 @@ async function detectOverflow(middlewareArguments, options) {
|
|
|
251
235
|
rootBoundary,
|
|
252
236
|
strategy
|
|
253
237
|
}));
|
|
254
|
-
const rect = elementContext === 'floating' ? {
|
|
238
|
+
const rect = elementContext === 'floating' ? {
|
|
239
|
+
...rects.floating,
|
|
255
240
|
x,
|
|
256
241
|
y
|
|
257
242
|
} : rects.reference;
|
|
@@ -268,7 +253,6 @@ async function detectOverflow(middlewareArguments, options) {
|
|
|
268
253
|
offsetParent,
|
|
269
254
|
strategy
|
|
270
255
|
}) : rect);
|
|
271
|
-
|
|
272
256
|
return {
|
|
273
257
|
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
274
258
|
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
@@ -292,7 +276,6 @@ function within(min$1$1, value, max$1$1) {
|
|
|
292
276
|
const arrow = options => ({
|
|
293
277
|
name: 'arrow',
|
|
294
278
|
options,
|
|
295
|
-
|
|
296
279
|
async fn(middlewareArguments) {
|
|
297
280
|
// Since `element` is required, we don't Partial<> the type
|
|
298
281
|
const {
|
|
@@ -306,19 +289,15 @@ const arrow = options => ({
|
|
|
306
289
|
rects,
|
|
307
290
|
platform
|
|
308
291
|
} = middlewareArguments;
|
|
309
|
-
|
|
310
292
|
if (element == null) {
|
|
311
|
-
|
|
312
293
|
return {};
|
|
313
294
|
}
|
|
314
|
-
|
|
315
295
|
const paddingObject = getSideObjectFromPadding(padding);
|
|
316
296
|
const coords = {
|
|
317
297
|
x,
|
|
318
298
|
y
|
|
319
299
|
};
|
|
320
300
|
const axis = getMainAxisFromPlacement(placement);
|
|
321
|
-
const alignment = getAlignment(placement);
|
|
322
301
|
const length = getLengthFromAxis(axis);
|
|
323
302
|
const arrowDimensions = await platform.getDimensions(element);
|
|
324
303
|
const minProp = axis === 'y' ? 'top' : 'left';
|
|
@@ -327,21 +306,23 @@ const arrow = options => ({
|
|
|
327
306
|
const startDiff = coords[axis] - rects.reference[axis];
|
|
328
307
|
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
329
308
|
let clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
330
|
-
|
|
331
309
|
if (clientSize === 0) {
|
|
332
310
|
clientSize = rects.floating[length];
|
|
333
311
|
}
|
|
312
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
334
313
|
|
|
335
|
-
|
|
314
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
|
336
315
|
// point is outside the floating element's bounds
|
|
337
|
-
|
|
338
316
|
const min = paddingObject[minProp];
|
|
339
317
|
const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
|
|
340
318
|
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
341
|
-
const offset = within(min, center, max);
|
|
319
|
+
const offset = within(min, center, max);
|
|
342
320
|
|
|
343
|
-
|
|
344
|
-
|
|
321
|
+
// If the reference is small enough that the arrow's padding causes it to
|
|
322
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
|
323
|
+
// floating element itself. This stops `shift()` from taking action, but can
|
|
324
|
+
// be worked around by calling it again after the `arrow()` if desired.
|
|
325
|
+
const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0;
|
|
345
326
|
const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
|
|
346
327
|
return {
|
|
347
328
|
[axis]: coords[axis] - alignmentOffset,
|
|
@@ -351,7 +332,6 @@ const arrow = options => ({
|
|
|
351
332
|
}
|
|
352
333
|
};
|
|
353
334
|
}
|
|
354
|
-
|
|
355
335
|
});
|
|
356
336
|
|
|
357
337
|
const hash$1 = {
|
|
@@ -368,16 +348,13 @@ function getAlignmentSides(placement, rects, rtl) {
|
|
|
368
348
|
if (rtl === void 0) {
|
|
369
349
|
rtl = false;
|
|
370
350
|
}
|
|
371
|
-
|
|
372
351
|
const alignment = getAlignment(placement);
|
|
373
352
|
const mainAxis = getMainAxisFromPlacement(placement);
|
|
374
353
|
const length = getLengthFromAxis(mainAxis);
|
|
375
354
|
let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
376
|
-
|
|
377
355
|
if (rects.reference[length] > rects.floating[length]) {
|
|
378
356
|
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
379
357
|
}
|
|
380
|
-
|
|
381
358
|
return {
|
|
382
359
|
main: mainAlignmentSide,
|
|
383
360
|
cross: getOppositePlacement(mainAlignmentSide)
|
|
@@ -401,11 +378,9 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
401
378
|
if (alignment) {
|
|
402
379
|
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
403
380
|
}
|
|
404
|
-
|
|
405
381
|
return true;
|
|
406
382
|
});
|
|
407
383
|
}
|
|
408
|
-
|
|
409
384
|
/**
|
|
410
385
|
* Automatically chooses the `placement` which has the most space available.
|
|
411
386
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
@@ -414,14 +389,11 @@ const autoPlacement = function (options) {
|
|
|
414
389
|
if (options === void 0) {
|
|
415
390
|
options = {};
|
|
416
391
|
}
|
|
417
|
-
|
|
418
392
|
return {
|
|
419
393
|
name: 'autoPlacement',
|
|
420
394
|
options,
|
|
421
|
-
|
|
422
395
|
async fn(middlewareArguments) {
|
|
423
396
|
var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _placementsSortedByLe;
|
|
424
|
-
|
|
425
397
|
const {
|
|
426
398
|
x,
|
|
427
399
|
y,
|
|
@@ -432,25 +404,24 @@ const autoPlacement = function (options) {
|
|
|
432
404
|
elements
|
|
433
405
|
} = middlewareArguments;
|
|
434
406
|
const {
|
|
435
|
-
alignment
|
|
407
|
+
alignment,
|
|
436
408
|
allowedPlacements = allPlacements,
|
|
437
409
|
autoAlignment = true,
|
|
438
410
|
...detectOverflowOptions
|
|
439
411
|
} = options;
|
|
440
|
-
const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);
|
|
412
|
+
const placements = alignment !== undefined || allowedPlacements === allPlacements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
441
413
|
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
442
414
|
const currentIndex = (_middlewareData$autoP = (_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.index) != null ? _middlewareData$autoP : 0;
|
|
443
415
|
const currentPlacement = placements[currentIndex];
|
|
444
|
-
|
|
445
416
|
if (currentPlacement == null) {
|
|
446
417
|
return {};
|
|
447
418
|
}
|
|
448
|
-
|
|
449
419
|
const {
|
|
450
420
|
main,
|
|
451
421
|
cross
|
|
452
|
-
} = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
422
|
+
} = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
453
423
|
|
|
424
|
+
// Make `computeCoords` start from the right place
|
|
454
425
|
if (placement !== currentPlacement) {
|
|
455
426
|
return {
|
|
456
427
|
x,
|
|
@@ -460,14 +431,14 @@ const autoPlacement = function (options) {
|
|
|
460
431
|
}
|
|
461
432
|
};
|
|
462
433
|
}
|
|
463
|
-
|
|
464
434
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];
|
|
465
435
|
const allOverflows = [...((_middlewareData$autoP3 = (_middlewareData$autoP4 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP4.overflows) != null ? _middlewareData$autoP3 : []), {
|
|
466
436
|
placement: currentPlacement,
|
|
467
437
|
overflows: currentOverflows
|
|
468
438
|
}];
|
|
469
|
-
const nextPlacement = placements[currentIndex + 1];
|
|
439
|
+
const nextPlacement = placements[currentIndex + 1];
|
|
470
440
|
|
|
441
|
+
// There are more placements to check
|
|
471
442
|
if (nextPlacement) {
|
|
472
443
|
return {
|
|
473
444
|
data: {
|
|
@@ -479,7 +450,6 @@ const autoPlacement = function (options) {
|
|
|
479
450
|
}
|
|
480
451
|
};
|
|
481
452
|
}
|
|
482
|
-
|
|
483
453
|
const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);
|
|
484
454
|
const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {
|
|
485
455
|
let {
|
|
@@ -488,7 +458,6 @@ const autoPlacement = function (options) {
|
|
|
488
458
|
return overflows.every(overflow => overflow <= 0);
|
|
489
459
|
})) == null ? void 0 : _placementsSortedByLe.placement;
|
|
490
460
|
const resetPlacement = placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement;
|
|
491
|
-
|
|
492
461
|
if (resetPlacement !== placement) {
|
|
493
462
|
return {
|
|
494
463
|
data: {
|
|
@@ -500,10 +469,8 @@ const autoPlacement = function (options) {
|
|
|
500
469
|
}
|
|
501
470
|
};
|
|
502
471
|
}
|
|
503
|
-
|
|
504
472
|
return {};
|
|
505
473
|
}
|
|
506
|
-
|
|
507
474
|
};
|
|
508
475
|
};
|
|
509
476
|
|
|
@@ -521,14 +488,11 @@ const flip = function (options) {
|
|
|
521
488
|
if (options === void 0) {
|
|
522
489
|
options = {};
|
|
523
490
|
}
|
|
524
|
-
|
|
525
491
|
return {
|
|
526
492
|
name: 'flip',
|
|
527
493
|
options,
|
|
528
|
-
|
|
529
494
|
async fn(middlewareArguments) {
|
|
530
495
|
var _middlewareData$flip;
|
|
531
|
-
|
|
532
496
|
const {
|
|
533
497
|
placement,
|
|
534
498
|
middlewareData,
|
|
@@ -552,11 +516,9 @@ const flip = function (options) {
|
|
|
552
516
|
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
553
517
|
const overflows = [];
|
|
554
518
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
555
|
-
|
|
556
519
|
if (checkMainAxis) {
|
|
557
520
|
overflows.push(overflow[side]);
|
|
558
521
|
}
|
|
559
|
-
|
|
560
522
|
if (checkCrossAxis) {
|
|
561
523
|
const {
|
|
562
524
|
main,
|
|
@@ -564,18 +526,16 @@ const flip = function (options) {
|
|
|
564
526
|
} = getAlignmentSides(placement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
565
527
|
overflows.push(overflow[main], overflow[cross]);
|
|
566
528
|
}
|
|
567
|
-
|
|
568
529
|
overflowsData = [...overflowsData, {
|
|
569
530
|
placement,
|
|
570
531
|
overflows
|
|
571
|
-
}];
|
|
532
|
+
}];
|
|
572
533
|
|
|
534
|
+
// One or more sides is overflowing
|
|
573
535
|
if (!overflows.every(side => side <= 0)) {
|
|
574
536
|
var _middlewareData$flip$, _middlewareData$flip2;
|
|
575
|
-
|
|
576
537
|
const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) != null ? _middlewareData$flip$ : 0) + 1;
|
|
577
538
|
const nextPlacement = placements[nextIndex];
|
|
578
|
-
|
|
579
539
|
if (nextPlacement) {
|
|
580
540
|
// Try next placement and re-run the lifecycle
|
|
581
541
|
return {
|
|
@@ -588,28 +548,21 @@ const flip = function (options) {
|
|
|
588
548
|
}
|
|
589
549
|
};
|
|
590
550
|
}
|
|
591
|
-
|
|
592
551
|
let resetPlacement = 'bottom';
|
|
593
|
-
|
|
594
552
|
switch (fallbackStrategy) {
|
|
595
553
|
case 'bestFit':
|
|
596
554
|
{
|
|
597
555
|
var _overflowsData$map$so;
|
|
598
|
-
|
|
599
556
|
const placement = (_overflowsData$map$so = overflowsData.map(d => [d, 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].placement;
|
|
600
|
-
|
|
601
557
|
if (placement) {
|
|
602
558
|
resetPlacement = placement;
|
|
603
559
|
}
|
|
604
|
-
|
|
605
560
|
break;
|
|
606
561
|
}
|
|
607
|
-
|
|
608
562
|
case 'initialPlacement':
|
|
609
563
|
resetPlacement = initialPlacement;
|
|
610
564
|
break;
|
|
611
565
|
}
|
|
612
|
-
|
|
613
566
|
if (placement !== resetPlacement) {
|
|
614
567
|
return {
|
|
615
568
|
reset: {
|
|
@@ -618,10 +571,8 @@ const flip = function (options) {
|
|
|
618
571
|
};
|
|
619
572
|
}
|
|
620
573
|
}
|
|
621
|
-
|
|
622
574
|
return {};
|
|
623
575
|
}
|
|
624
|
-
|
|
625
576
|
};
|
|
626
577
|
};
|
|
627
578
|
|
|
@@ -633,33 +584,34 @@ function getSideOffsets(overflow, rect) {
|
|
|
633
584
|
left: overflow.left - rect.width
|
|
634
585
|
};
|
|
635
586
|
}
|
|
636
|
-
|
|
637
587
|
function isAnySideFullyClipped(overflow) {
|
|
638
588
|
return sides.some(side => overflow[side] >= 0);
|
|
639
589
|
}
|
|
640
|
-
|
|
641
590
|
/**
|
|
642
591
|
* Provides data to hide the floating element in applicable situations, such as
|
|
643
592
|
* when it is not in the same clipping context as the reference element.
|
|
644
593
|
* @see https://floating-ui.com/docs/hide
|
|
645
594
|
*/
|
|
646
|
-
const hide = function (
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
} = _temp === void 0 ? {} : _temp;
|
|
595
|
+
const hide = function (options) {
|
|
596
|
+
if (options === void 0) {
|
|
597
|
+
options = {};
|
|
598
|
+
}
|
|
651
599
|
return {
|
|
652
600
|
name: 'hide',
|
|
653
|
-
|
|
601
|
+
options,
|
|
654
602
|
async fn(middlewareArguments) {
|
|
603
|
+
const {
|
|
604
|
+
strategy = 'referenceHidden',
|
|
605
|
+
...detectOverflowOptions
|
|
606
|
+
} = options;
|
|
655
607
|
const {
|
|
656
608
|
rects
|
|
657
609
|
} = middlewareArguments;
|
|
658
|
-
|
|
659
610
|
switch (strategy) {
|
|
660
611
|
case 'referenceHidden':
|
|
661
612
|
{
|
|
662
|
-
const overflow = await detectOverflow(middlewareArguments, {
|
|
613
|
+
const overflow = await detectOverflow(middlewareArguments, {
|
|
614
|
+
...detectOverflowOptions,
|
|
663
615
|
elementContext: 'reference'
|
|
664
616
|
});
|
|
665
617
|
const offsets = getSideOffsets(overflow, rects.reference);
|
|
@@ -670,10 +622,10 @@ const hide = function (_temp) {
|
|
|
670
622
|
}
|
|
671
623
|
};
|
|
672
624
|
}
|
|
673
|
-
|
|
674
625
|
case 'escaped':
|
|
675
626
|
{
|
|
676
|
-
const overflow = await detectOverflow(middlewareArguments, {
|
|
627
|
+
const overflow = await detectOverflow(middlewareArguments, {
|
|
628
|
+
...detectOverflowOptions,
|
|
677
629
|
altBoundary: true
|
|
678
630
|
});
|
|
679
631
|
const offsets = getSideOffsets(overflow, rects.floating);
|
|
@@ -684,14 +636,12 @@ const hide = function (_temp) {
|
|
|
684
636
|
}
|
|
685
637
|
};
|
|
686
638
|
}
|
|
687
|
-
|
|
688
639
|
default:
|
|
689
640
|
{
|
|
690
641
|
return {};
|
|
691
642
|
}
|
|
692
643
|
}
|
|
693
644
|
}
|
|
694
|
-
|
|
695
645
|
};
|
|
696
646
|
};
|
|
697
647
|
|
|
@@ -707,8 +657,9 @@ async function convertValueToCoords(middlewareArguments, value) {
|
|
|
707
657
|
const isVertical = getMainAxisFromPlacement(placement) === 'x';
|
|
708
658
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
709
659
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
710
|
-
const rawValue = typeof value === 'function' ? value(middlewareArguments) : value;
|
|
660
|
+
const rawValue = typeof value === 'function' ? value(middlewareArguments) : value;
|
|
711
661
|
|
|
662
|
+
// eslint-disable-next-line prefer-const
|
|
712
663
|
let {
|
|
713
664
|
mainAxis,
|
|
714
665
|
crossAxis,
|
|
@@ -723,11 +674,9 @@ async function convertValueToCoords(middlewareArguments, value) {
|
|
|
723
674
|
alignmentAxis: null,
|
|
724
675
|
...rawValue
|
|
725
676
|
};
|
|
726
|
-
|
|
727
677
|
if (alignment && typeof alignmentAxis === 'number') {
|
|
728
678
|
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
729
679
|
}
|
|
730
|
-
|
|
731
680
|
return isVertical ? {
|
|
732
681
|
x: crossAxis * crossAxisMulti,
|
|
733
682
|
y: mainAxis * mainAxisMulti
|
|
@@ -736,20 +685,18 @@ async function convertValueToCoords(middlewareArguments, value) {
|
|
|
736
685
|
y: crossAxis * crossAxisMulti
|
|
737
686
|
};
|
|
738
687
|
}
|
|
688
|
+
|
|
739
689
|
/**
|
|
740
690
|
* Displaces the floating element from its reference element.
|
|
741
691
|
* @see https://floating-ui.com/docs/offset
|
|
742
692
|
*/
|
|
743
|
-
|
|
744
693
|
const offset = function (value) {
|
|
745
694
|
if (value === void 0) {
|
|
746
695
|
value = 0;
|
|
747
696
|
}
|
|
748
|
-
|
|
749
697
|
return {
|
|
750
698
|
name: 'offset',
|
|
751
699
|
options: value,
|
|
752
|
-
|
|
753
700
|
async fn(middlewareArguments) {
|
|
754
701
|
const {
|
|
755
702
|
x,
|
|
@@ -762,7 +709,6 @@ const offset = function (value) {
|
|
|
762
709
|
data: diffCoords
|
|
763
710
|
};
|
|
764
711
|
}
|
|
765
|
-
|
|
766
712
|
};
|
|
767
713
|
};
|
|
768
714
|
|
|
@@ -779,11 +725,9 @@ const shift = function (options) {
|
|
|
779
725
|
if (options === void 0) {
|
|
780
726
|
options = {};
|
|
781
727
|
}
|
|
782
|
-
|
|
783
728
|
return {
|
|
784
729
|
name: 'shift',
|
|
785
730
|
options,
|
|
786
|
-
|
|
787
731
|
async fn(middlewareArguments) {
|
|
788
732
|
const {
|
|
789
733
|
x,
|
|
@@ -816,7 +760,6 @@ const shift = function (options) {
|
|
|
816
760
|
const crossAxis = getCrossAxis(mainAxis);
|
|
817
761
|
let mainAxisCoord = coords[mainAxis];
|
|
818
762
|
let crossAxisCoord = coords[crossAxis];
|
|
819
|
-
|
|
820
763
|
if (checkMainAxis) {
|
|
821
764
|
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
822
765
|
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
@@ -824,7 +767,6 @@ const shift = function (options) {
|
|
|
824
767
|
const max = mainAxisCoord - overflow[maxSide];
|
|
825
768
|
mainAxisCoord = within(min, mainAxisCoord, max);
|
|
826
769
|
}
|
|
827
|
-
|
|
828
770
|
if (checkCrossAxis) {
|
|
829
771
|
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
830
772
|
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
@@ -832,29 +774,28 @@ const shift = function (options) {
|
|
|
832
774
|
const max = crossAxisCoord - overflow[maxSide];
|
|
833
775
|
crossAxisCoord = within(min, crossAxisCoord, max);
|
|
834
776
|
}
|
|
835
|
-
|
|
836
|
-
|
|
777
|
+
const limitedCoords = limiter.fn({
|
|
778
|
+
...middlewareArguments,
|
|
837
779
|
[mainAxis]: mainAxisCoord,
|
|
838
780
|
[crossAxis]: crossAxisCoord
|
|
839
781
|
});
|
|
840
|
-
return {
|
|
782
|
+
return {
|
|
783
|
+
...limitedCoords,
|
|
841
784
|
data: {
|
|
842
785
|
x: limitedCoords.x - x,
|
|
843
786
|
y: limitedCoords.y - y
|
|
844
787
|
}
|
|
845
788
|
};
|
|
846
789
|
}
|
|
847
|
-
|
|
848
790
|
};
|
|
849
791
|
};
|
|
850
792
|
|
|
851
793
|
function getWindow(node) {
|
|
852
794
|
var _node$ownerDocument;
|
|
853
|
-
|
|
854
795
|
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
855
796
|
}
|
|
856
797
|
|
|
857
|
-
function getComputedStyle(element) {
|
|
798
|
+
function getComputedStyle$1(element) {
|
|
858
799
|
return getWindow(element).getComputedStyle(element);
|
|
859
800
|
}
|
|
860
801
|
|
|
@@ -867,14 +808,11 @@ function getUAString() {
|
|
|
867
808
|
if (uaString) {
|
|
868
809
|
return uaString;
|
|
869
810
|
}
|
|
870
|
-
|
|
871
811
|
const uaData = navigator.userAgentData;
|
|
872
|
-
|
|
873
812
|
if (uaData && Array.isArray(uaData.brands)) {
|
|
874
813
|
uaString = uaData.brands.map(item => item.brand + "/" + item.version).join(' ');
|
|
875
814
|
return uaString;
|
|
876
815
|
}
|
|
877
|
-
|
|
878
816
|
return navigator.userAgent;
|
|
879
817
|
}
|
|
880
818
|
|
|
@@ -892,19 +830,17 @@ function isShadowRoot(node) {
|
|
|
892
830
|
if (typeof ShadowRoot === 'undefined') {
|
|
893
831
|
return false;
|
|
894
832
|
}
|
|
895
|
-
|
|
896
833
|
const OwnElement = getWindow(node).ShadowRoot;
|
|
897
834
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
898
835
|
}
|
|
899
836
|
function isOverflowElement(element) {
|
|
900
|
-
// Firefox wants us to check `-x` and `-y` variations as well
|
|
901
837
|
const {
|
|
902
838
|
overflow,
|
|
903
839
|
overflowX,
|
|
904
840
|
overflowY,
|
|
905
841
|
display
|
|
906
|
-
} = getComputedStyle(element);
|
|
907
|
-
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
842
|
+
} = getComputedStyle$1(element);
|
|
843
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
908
844
|
}
|
|
909
845
|
function isTableElement(element) {
|
|
910
846
|
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
@@ -912,12 +848,14 @@ function isTableElement(element) {
|
|
|
912
848
|
function isContainingBlock(element) {
|
|
913
849
|
// TODO: Try and use feature detection here instead
|
|
914
850
|
const isFirefox = /firefox/i.test(getUAString());
|
|
915
|
-
const css = getComputedStyle(element);
|
|
916
|
-
const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
|
|
851
|
+
const css = getComputedStyle$1(element);
|
|
852
|
+
const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
|
|
853
|
+
|
|
854
|
+
// This is non-exhaustive but covers the most common CSS properties that
|
|
917
855
|
// create a containing block.
|
|
918
856
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
919
|
-
|
|
920
|
-
|
|
857
|
+
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(
|
|
858
|
+
// TS 4.1 compat
|
|
921
859
|
value => {
|
|
922
860
|
const contain = css.contain;
|
|
923
861
|
return contain != null ? contain.includes(value) : false;
|
|
@@ -925,40 +863,70 @@ function isContainingBlock(element) {
|
|
|
925
863
|
}
|
|
926
864
|
function isLayoutViewport() {
|
|
927
865
|
// Not Safari
|
|
928
|
-
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
866
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
867
|
+
// Feature detection for this fails in various ways
|
|
929
868
|
// • Always-visible scrollbar or not
|
|
930
869
|
// • Width of <html>, etc.
|
|
931
870
|
// const vV = win.visualViewport;
|
|
932
871
|
// return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
|
|
933
872
|
}
|
|
873
|
+
|
|
934
874
|
function isLastTraversableNode(node) {
|
|
935
875
|
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
936
876
|
}
|
|
937
877
|
|
|
878
|
+
const min = Math.min;
|
|
879
|
+
const max = Math.max;
|
|
880
|
+
const round = Math.round;
|
|
881
|
+
|
|
882
|
+
function getCssDimensions(element) {
|
|
883
|
+
const css = getComputedStyle$1(element);
|
|
884
|
+
let width = parseFloat(css.width);
|
|
885
|
+
let height = parseFloat(css.height);
|
|
886
|
+
const offsetWidth = element.offsetWidth;
|
|
887
|
+
const offsetHeight = element.offsetHeight;
|
|
888
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
889
|
+
if (shouldFallback) {
|
|
890
|
+
width = offsetWidth;
|
|
891
|
+
height = offsetHeight;
|
|
892
|
+
}
|
|
893
|
+
return {
|
|
894
|
+
width,
|
|
895
|
+
height,
|
|
896
|
+
fallback: shouldFallback
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
function unwrapElement(element) {
|
|
901
|
+
return !isElement(element) ? element.contextElement : element;
|
|
902
|
+
}
|
|
903
|
+
|
|
938
904
|
const FALLBACK_SCALE = {
|
|
939
905
|
x: 1,
|
|
940
906
|
y: 1
|
|
941
907
|
};
|
|
942
908
|
function getScale(element) {
|
|
943
|
-
const domElement =
|
|
944
|
-
|
|
945
|
-
if (!domElement) {
|
|
909
|
+
const domElement = unwrapElement(element);
|
|
910
|
+
if (!isHTMLElement(domElement)) {
|
|
946
911
|
return FALLBACK_SCALE;
|
|
947
912
|
}
|
|
948
|
-
|
|
949
913
|
const rect = domElement.getBoundingClientRect();
|
|
950
|
-
const
|
|
951
|
-
|
|
952
|
-
|
|
914
|
+
const {
|
|
915
|
+
width,
|
|
916
|
+
height,
|
|
917
|
+
fallback
|
|
918
|
+
} = getCssDimensions(domElement);
|
|
919
|
+
let x = (fallback ? round(rect.width) : rect.width) / width;
|
|
920
|
+
let y = (fallback ? round(rect.height) : rect.height) / height;
|
|
921
|
+
|
|
922
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
953
923
|
|
|
954
924
|
if (!x || !Number.isFinite(x)) {
|
|
955
925
|
x = 1;
|
|
956
926
|
}
|
|
957
|
-
|
|
958
927
|
if (!y || !Number.isFinite(y)) {
|
|
959
928
|
y = 1;
|
|
960
929
|
}
|
|
961
|
-
|
|
962
930
|
return {
|
|
963
931
|
x,
|
|
964
932
|
y
|
|
@@ -966,19 +934,16 @@ function getScale(element) {
|
|
|
966
934
|
}
|
|
967
935
|
|
|
968
936
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
969
|
-
var _win$visualViewport
|
|
970
|
-
|
|
937
|
+
var _win$visualViewport, _win$visualViewport2;
|
|
971
938
|
if (includeScale === void 0) {
|
|
972
939
|
includeScale = false;
|
|
973
940
|
}
|
|
974
|
-
|
|
975
941
|
if (isFixedStrategy === void 0) {
|
|
976
942
|
isFixedStrategy = false;
|
|
977
943
|
}
|
|
978
|
-
|
|
979
944
|
const clientRect = element.getBoundingClientRect();
|
|
945
|
+
const domElement = unwrapElement(element);
|
|
980
946
|
let scale = FALLBACK_SCALE;
|
|
981
|
-
|
|
982
947
|
if (includeScale) {
|
|
983
948
|
if (offsetParent) {
|
|
984
949
|
if (isElement(offsetParent)) {
|
|
@@ -988,13 +953,31 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
988
953
|
scale = getScale(element);
|
|
989
954
|
}
|
|
990
955
|
}
|
|
991
|
-
|
|
992
|
-
const win = isElement(element) ? getWindow(element) : window;
|
|
956
|
+
const win = domElement ? getWindow(domElement) : window;
|
|
993
957
|
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
958
|
+
let x = (clientRect.left + (addVisualOffsets ? ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0 : 0)) / scale.x;
|
|
959
|
+
let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale.y;
|
|
960
|
+
let width = clientRect.width / scale.x;
|
|
961
|
+
let height = clientRect.height / scale.y;
|
|
962
|
+
if (domElement) {
|
|
963
|
+
const win = getWindow(domElement);
|
|
964
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
965
|
+
let currentIFrame = win.frameElement;
|
|
966
|
+
while (currentIFrame && offsetParent && offsetWin !== win) {
|
|
967
|
+
const iframeScale = getScale(currentIFrame);
|
|
968
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
969
|
+
const css = getComputedStyle(currentIFrame);
|
|
970
|
+
iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
971
|
+
iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
972
|
+
x *= iframeScale.x;
|
|
973
|
+
y *= iframeScale.y;
|
|
974
|
+
width *= iframeScale.x;
|
|
975
|
+
height *= iframeScale.y;
|
|
976
|
+
x += iframeRect.x;
|
|
977
|
+
y += iframeRect.y;
|
|
978
|
+
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
998
981
|
return {
|
|
999
982
|
width,
|
|
1000
983
|
height,
|
|
@@ -1018,7 +1001,6 @@ function getNodeScroll(element) {
|
|
|
1018
1001
|
scrollTop: element.scrollTop
|
|
1019
1002
|
};
|
|
1020
1003
|
}
|
|
1021
|
-
|
|
1022
1004
|
return {
|
|
1023
1005
|
scrollLeft: element.pageXOffset,
|
|
1024
1006
|
scrollTop: element.pageYOffset
|
|
@@ -1043,12 +1025,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1043
1025
|
x: 0,
|
|
1044
1026
|
y: 0
|
|
1045
1027
|
};
|
|
1046
|
-
|
|
1047
1028
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
1048
1029
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1049
1030
|
scroll = getNodeScroll(offsetParent);
|
|
1050
1031
|
}
|
|
1051
|
-
|
|
1052
1032
|
if (isHTMLElement(offsetParent)) {
|
|
1053
1033
|
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
1054
1034
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
@@ -1057,7 +1037,6 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1057
1037
|
offsets.x = getWindowScrollBarX(documentElement);
|
|
1058
1038
|
}
|
|
1059
1039
|
}
|
|
1060
|
-
|
|
1061
1040
|
return {
|
|
1062
1041
|
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1063
1042
|
y: rect.top + scroll.scrollTop - offsets.y,
|
|
@@ -1070,26 +1049,26 @@ function getParentNode(node) {
|
|
|
1070
1049
|
if (getNodeName(node) === 'html') {
|
|
1071
1050
|
return node;
|
|
1072
1051
|
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
node.assignedSlot ||
|
|
1076
|
-
|
|
1077
|
-
|
|
1052
|
+
const result =
|
|
1053
|
+
// Step into the shadow DOM of the parent of a slotted node
|
|
1054
|
+
node.assignedSlot ||
|
|
1055
|
+
// DOM Element detected
|
|
1056
|
+
node.parentNode || (
|
|
1057
|
+
// ShadowRoot detected
|
|
1058
|
+
isShadowRoot(node) ? node.host : null) ||
|
|
1059
|
+
// Fallback
|
|
1078
1060
|
getDocumentElement(node);
|
|
1079
1061
|
return isShadowRoot(result) ? result.host : result;
|
|
1080
1062
|
}
|
|
1081
1063
|
|
|
1082
1064
|
function getTrueOffsetParent(element) {
|
|
1083
|
-
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1065
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
1084
1066
|
return null;
|
|
1085
1067
|
}
|
|
1086
|
-
|
|
1087
1068
|
return element.offsetParent;
|
|
1088
1069
|
}
|
|
1089
|
-
|
|
1090
1070
|
function getContainingBlock(element) {
|
|
1091
1071
|
let currentNode = getParentNode(element);
|
|
1092
|
-
|
|
1093
1072
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1094
1073
|
if (isContainingBlock(currentNode)) {
|
|
1095
1074
|
return currentNode;
|
|
@@ -1097,40 +1076,25 @@ function getContainingBlock(element) {
|
|
|
1097
1076
|
currentNode = getParentNode(currentNode);
|
|
1098
1077
|
}
|
|
1099
1078
|
}
|
|
1100
|
-
|
|
1101
1079
|
return null;
|
|
1102
|
-
}
|
|
1103
|
-
// such as table ancestors and cross browser bugs.
|
|
1104
|
-
|
|
1080
|
+
}
|
|
1105
1081
|
|
|
1082
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1083
|
+
// such as table ancestors and cross browser bugs.
|
|
1106
1084
|
function getOffsetParent(element) {
|
|
1107
1085
|
const window = getWindow(element);
|
|
1108
1086
|
let offsetParent = getTrueOffsetParent(element);
|
|
1109
|
-
|
|
1110
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
1087
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
1111
1088
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
1112
1089
|
}
|
|
1113
|
-
|
|
1114
|
-
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
1090
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
1115
1091
|
return window;
|
|
1116
1092
|
}
|
|
1117
|
-
|
|
1118
1093
|
return offsetParent || getContainingBlock(element) || window;
|
|
1119
1094
|
}
|
|
1120
1095
|
|
|
1121
1096
|
function getDimensions(element) {
|
|
1122
|
-
|
|
1123
|
-
return {
|
|
1124
|
-
width: element.offsetWidth,
|
|
1125
|
-
height: element.offsetHeight
|
|
1126
|
-
};
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
const rect = getBoundingClientRect(element);
|
|
1130
|
-
return {
|
|
1131
|
-
width: rect.width,
|
|
1132
|
-
height: rect.height
|
|
1133
|
-
};
|
|
1097
|
+
return getCssDimensions(element);
|
|
1134
1098
|
}
|
|
1135
1099
|
|
|
1136
1100
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
@@ -1141,11 +1105,9 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1141
1105
|
} = _ref;
|
|
1142
1106
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1143
1107
|
const documentElement = getDocumentElement(offsetParent);
|
|
1144
|
-
|
|
1145
1108
|
if (offsetParent === documentElement) {
|
|
1146
1109
|
return rect;
|
|
1147
1110
|
}
|
|
1148
|
-
|
|
1149
1111
|
let scroll = {
|
|
1150
1112
|
scrollLeft: 0,
|
|
1151
1113
|
scrollTop: 0
|
|
@@ -1158,22 +1120,20 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1158
1120
|
x: 0,
|
|
1159
1121
|
y: 0
|
|
1160
1122
|
};
|
|
1161
|
-
|
|
1162
1123
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
1163
1124
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1164
1125
|
scroll = getNodeScroll(offsetParent);
|
|
1165
1126
|
}
|
|
1166
|
-
|
|
1167
1127
|
if (isHTMLElement(offsetParent)) {
|
|
1168
1128
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1169
1129
|
scale = getScale(offsetParent);
|
|
1170
1130
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1171
1131
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1172
|
-
}
|
|
1132
|
+
}
|
|
1133
|
+
// This doesn't appear to need to be negated.
|
|
1173
1134
|
// else if (documentElement) {
|
|
1174
1135
|
// offsets.x = getWindowScrollBarX(documentElement);
|
|
1175
1136
|
// }
|
|
1176
|
-
|
|
1177
1137
|
}
|
|
1178
1138
|
|
|
1179
1139
|
return {
|
|
@@ -1192,18 +1152,15 @@ function getViewportRect(element, strategy) {
|
|
|
1192
1152
|
let height = html.clientHeight;
|
|
1193
1153
|
let x = 0;
|
|
1194
1154
|
let y = 0;
|
|
1195
|
-
|
|
1196
1155
|
if (visualViewport) {
|
|
1197
1156
|
width = visualViewport.width;
|
|
1198
1157
|
height = visualViewport.height;
|
|
1199
1158
|
const layoutViewport = isLayoutViewport();
|
|
1200
|
-
|
|
1201
1159
|
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
1202
1160
|
x = visualViewport.offsetLeft;
|
|
1203
1161
|
y = visualViewport.offsetTop;
|
|
1204
1162
|
}
|
|
1205
1163
|
}
|
|
1206
|
-
|
|
1207
1164
|
return {
|
|
1208
1165
|
width,
|
|
1209
1166
|
height,
|
|
@@ -1212,14 +1169,10 @@ function getViewportRect(element, strategy) {
|
|
|
1212
1169
|
};
|
|
1213
1170
|
}
|
|
1214
1171
|
|
|
1215
|
-
|
|
1216
|
-
const max = Math.max;
|
|
1217
|
-
|
|
1172
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
1218
1173
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
1219
|
-
|
|
1220
1174
|
function getDocumentRect(element) {
|
|
1221
1175
|
var _element$ownerDocumen;
|
|
1222
|
-
|
|
1223
1176
|
const html = getDocumentElement(element);
|
|
1224
1177
|
const scroll = getNodeScroll(element);
|
|
1225
1178
|
const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
@@ -1227,11 +1180,9 @@ function getDocumentRect(element) {
|
|
|
1227
1180
|
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
1228
1181
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1229
1182
|
const y = -scroll.scrollTop;
|
|
1230
|
-
|
|
1231
|
-
if (getComputedStyle(body || html).direction === 'rtl') {
|
|
1183
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
1232
1184
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
1233
1185
|
}
|
|
1234
|
-
|
|
1235
1186
|
return {
|
|
1236
1187
|
width,
|
|
1237
1188
|
height,
|
|
@@ -1242,34 +1193,27 @@ function getDocumentRect(element) {
|
|
|
1242
1193
|
|
|
1243
1194
|
function getNearestOverflowAncestor(node) {
|
|
1244
1195
|
const parentNode = getParentNode(node);
|
|
1245
|
-
|
|
1246
1196
|
if (isLastTraversableNode(parentNode)) {
|
|
1247
1197
|
// @ts-ignore assume body is always available
|
|
1248
1198
|
return node.ownerDocument.body;
|
|
1249
1199
|
}
|
|
1250
|
-
|
|
1251
1200
|
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
1252
1201
|
return parentNode;
|
|
1253
1202
|
}
|
|
1254
|
-
|
|
1255
1203
|
return getNearestOverflowAncestor(parentNode);
|
|
1256
1204
|
}
|
|
1257
1205
|
|
|
1258
1206
|
function getOverflowAncestors(node, list) {
|
|
1259
1207
|
var _node$ownerDocument;
|
|
1260
|
-
|
|
1261
1208
|
if (list === void 0) {
|
|
1262
1209
|
list = [];
|
|
1263
1210
|
}
|
|
1264
|
-
|
|
1265
1211
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
1266
1212
|
const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
|
1267
1213
|
const win = getWindow(scrollableAncestor);
|
|
1268
|
-
|
|
1269
1214
|
if (isBody) {
|
|
1270
1215
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
|
1271
1216
|
}
|
|
1272
|
-
|
|
1273
1217
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
1274
1218
|
}
|
|
1275
1219
|
|
|
@@ -1297,39 +1241,34 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
1297
1241
|
height
|
|
1298
1242
|
};
|
|
1299
1243
|
}
|
|
1300
|
-
|
|
1301
1244
|
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1302
1245
|
if (clippingAncestor === 'viewport') {
|
|
1303
1246
|
return rectToClientRect(getViewportRect(element, strategy));
|
|
1304
1247
|
}
|
|
1305
|
-
|
|
1306
1248
|
if (isElement(clippingAncestor)) {
|
|
1307
1249
|
return getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1308
1250
|
}
|
|
1309
|
-
|
|
1310
1251
|
return rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
1311
|
-
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1312
1255
|
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1313
1256
|
// of the given element up the tree.
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
1257
|
function getClippingElementAncestors(element, cache) {
|
|
1317
1258
|
const cachedResult = cache.get(element);
|
|
1318
|
-
|
|
1319
1259
|
if (cachedResult) {
|
|
1320
1260
|
return cachedResult;
|
|
1321
1261
|
}
|
|
1322
|
-
|
|
1323
1262
|
let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1324
1263
|
let currentContainingBlockComputedStyle = null;
|
|
1325
|
-
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
1326
|
-
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1264
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
1265
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1327
1266
|
|
|
1267
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1328
1268
|
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1329
|
-
const computedStyle = getComputedStyle(currentNode);
|
|
1269
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
1330
1270
|
const containingBlock = isContainingBlock(currentNode);
|
|
1331
1271
|
const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position);
|
|
1332
|
-
|
|
1333
1272
|
if (shouldDropCurrentNode) {
|
|
1334
1273
|
// Drop non-containing blocks
|
|
1335
1274
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -1337,16 +1276,14 @@ function getClippingElementAncestors(element, cache) {
|
|
|
1337
1276
|
// Record last containing block for next iteration
|
|
1338
1277
|
currentContainingBlockComputedStyle = computedStyle;
|
|
1339
1278
|
}
|
|
1340
|
-
|
|
1341
1279
|
currentNode = getParentNode(currentNode);
|
|
1342
1280
|
}
|
|
1343
|
-
|
|
1344
1281
|
cache.set(element, result);
|
|
1345
1282
|
return result;
|
|
1346
|
-
}
|
|
1347
|
-
// clipping ancestors
|
|
1348
|
-
|
|
1283
|
+
}
|
|
1349
1284
|
|
|
1285
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
1286
|
+
// clipping ancestors
|
|
1350
1287
|
function getClippingRect(_ref) {
|
|
1351
1288
|
let {
|
|
1352
1289
|
element,
|
|
@@ -1381,7 +1318,6 @@ const platform = {
|
|
|
1381
1318
|
getOffsetParent,
|
|
1382
1319
|
getDocumentElement,
|
|
1383
1320
|
getScale,
|
|
1384
|
-
|
|
1385
1321
|
async getElementRects(_ref) {
|
|
1386
1322
|
let {
|
|
1387
1323
|
reference,
|
|
@@ -1399,9 +1335,8 @@ const platform = {
|
|
|
1399
1335
|
}
|
|
1400
1336
|
};
|
|
1401
1337
|
},
|
|
1402
|
-
|
|
1403
1338
|
getClientRects: element => Array.from(element.getClientRects()),
|
|
1404
|
-
isRTL: element => getComputedStyle(element).direction === 'rtl'
|
|
1339
|
+
isRTL: element => getComputedStyle$1(element).direction === 'rtl'
|
|
1405
1340
|
};
|
|
1406
1341
|
|
|
1407
1342
|
/**
|
|
@@ -1412,7 +1347,6 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1412
1347
|
if (options === void 0) {
|
|
1413
1348
|
options = {};
|
|
1414
1349
|
}
|
|
1415
|
-
|
|
1416
1350
|
const {
|
|
1417
1351
|
ancestorScroll: _ancestorScroll = true,
|
|
1418
1352
|
ancestorResize = true,
|
|
@@ -1428,54 +1362,42 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1428
1362
|
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1429
1363
|
});
|
|
1430
1364
|
let observer = null;
|
|
1431
|
-
|
|
1432
1365
|
if (elementResize) {
|
|
1433
1366
|
let initialUpdate = true;
|
|
1434
1367
|
observer = new ResizeObserver(() => {
|
|
1435
1368
|
if (!initialUpdate) {
|
|
1436
1369
|
update();
|
|
1437
1370
|
}
|
|
1438
|
-
|
|
1439
1371
|
initialUpdate = false;
|
|
1440
1372
|
});
|
|
1441
1373
|
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
1442
|
-
|
|
1443
1374
|
if (!isElement(reference) && reference.contextElement && !animationFrame) {
|
|
1444
1375
|
observer.observe(reference.contextElement);
|
|
1445
1376
|
}
|
|
1446
|
-
|
|
1447
1377
|
observer.observe(floating);
|
|
1448
1378
|
}
|
|
1449
|
-
|
|
1450
1379
|
let frameId;
|
|
1451
1380
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1452
|
-
|
|
1453
1381
|
if (animationFrame) {
|
|
1454
1382
|
frameLoop();
|
|
1455
1383
|
}
|
|
1456
|
-
|
|
1457
1384
|
function frameLoop() {
|
|
1458
1385
|
const nextRefRect = getBoundingClientRect(reference);
|
|
1459
|
-
|
|
1460
1386
|
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
1461
1387
|
update();
|
|
1462
1388
|
}
|
|
1463
|
-
|
|
1464
1389
|
prevRefRect = nextRefRect;
|
|
1465
1390
|
frameId = requestAnimationFrame(frameLoop);
|
|
1466
1391
|
}
|
|
1467
|
-
|
|
1468
1392
|
update();
|
|
1469
1393
|
return () => {
|
|
1470
1394
|
var _observer;
|
|
1471
|
-
|
|
1472
1395
|
ancestors.forEach(ancestor => {
|
|
1473
1396
|
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1474
1397
|
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1475
1398
|
});
|
|
1476
1399
|
(_observer = observer) == null ? void 0 : _observer.disconnect();
|
|
1477
1400
|
observer = null;
|
|
1478
|
-
|
|
1479
1401
|
if (animationFrame) {
|
|
1480
1402
|
cancelAnimationFrame(frameId);
|
|
1481
1403
|
}
|
|
@@ -1487,7 +1409,6 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1487
1409
|
* next to a reference element when it is given a certain CSS positioning
|
|
1488
1410
|
* strategy.
|
|
1489
1411
|
*/
|
|
1490
|
-
|
|
1491
1412
|
const computePosition = (reference, floating, options) => {
|
|
1492
1413
|
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1493
1414
|
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
@@ -1497,10 +1418,12 @@ const computePosition = (reference, floating, options) => {
|
|
|
1497
1418
|
platform,
|
|
1498
1419
|
...options
|
|
1499
1420
|
};
|
|
1500
|
-
const platformWithCache = {
|
|
1421
|
+
const platformWithCache = {
|
|
1422
|
+
...mergedOptions.platform,
|
|
1501
1423
|
_c: cache
|
|
1502
1424
|
};
|
|
1503
|
-
return computePosition$1(reference, floating, {
|
|
1425
|
+
return computePosition$1(reference, floating, {
|
|
1426
|
+
...mergedOptions,
|
|
1504
1427
|
platform: platformWithCache
|
|
1505
1428
|
});
|
|
1506
1429
|
};
|
|
@@ -1534,7 +1457,7 @@ async function patchFloatingUiForNonChromiumBrowsers() {
|
|
|
1534
1457
|
if (config.floatingUINonChromiumPositioningFix &&
|
|
1535
1458
|
// ⚠️ browser-sniffing is not a best practice and should be avoided ⚠️
|
|
1536
1459
|
/firefox|safari/i.test(getUAString())) {
|
|
1537
|
-
const { getClippingRect, getElementRects, getOffsetParent } = await import('./nonChromiumPlatformUtils-
|
|
1460
|
+
const { getClippingRect, getElementRects, getOffsetParent } = await import('./nonChromiumPlatformUtils-204821d7.js');
|
|
1538
1461
|
platform.getClippingRect = getClippingRect;
|
|
1539
1462
|
platform.getOffsetParent = getOffsetParent;
|
|
1540
1463
|
platform.getElementRects = getElementRects;
|