@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,12 +1,12 @@
|
|
|
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
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const dom = require('./dom-
|
|
9
|
-
const debounce = require('./debounce-
|
|
8
|
+
const dom = require('./dom-60bee9cc.js');
|
|
9
|
+
const debounce = require('./debounce-3886405a.js');
|
|
10
10
|
|
|
11
11
|
function getSide(placement) {
|
|
12
12
|
return placement.split('-')[0];
|
|
@@ -37,7 +37,6 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
37
37
|
const side = getSide(placement);
|
|
38
38
|
const isVertical = mainAxis === 'x';
|
|
39
39
|
let coords;
|
|
40
|
-
|
|
41
40
|
switch (side) {
|
|
42
41
|
case 'top':
|
|
43
42
|
coords = {
|
|
@@ -45,45 +44,38 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
45
44
|
y: reference.y - floating.height
|
|
46
45
|
};
|
|
47
46
|
break;
|
|
48
|
-
|
|
49
47
|
case 'bottom':
|
|
50
48
|
coords = {
|
|
51
49
|
x: commonX,
|
|
52
50
|
y: reference.y + reference.height
|
|
53
51
|
};
|
|
54
52
|
break;
|
|
55
|
-
|
|
56
53
|
case 'right':
|
|
57
54
|
coords = {
|
|
58
55
|
x: reference.x + reference.width,
|
|
59
56
|
y: commonY
|
|
60
57
|
};
|
|
61
58
|
break;
|
|
62
|
-
|
|
63
59
|
case 'left':
|
|
64
60
|
coords = {
|
|
65
61
|
x: reference.x - floating.width,
|
|
66
62
|
y: commonY
|
|
67
63
|
};
|
|
68
64
|
break;
|
|
69
|
-
|
|
70
65
|
default:
|
|
71
66
|
coords = {
|
|
72
67
|
x: reference.x,
|
|
73
68
|
y: reference.y
|
|
74
69
|
};
|
|
75
70
|
}
|
|
76
|
-
|
|
77
71
|
switch (getAlignment(placement)) {
|
|
78
72
|
case 'start':
|
|
79
73
|
coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
80
74
|
break;
|
|
81
|
-
|
|
82
75
|
case 'end':
|
|
83
76
|
coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
84
77
|
break;
|
|
85
78
|
}
|
|
86
|
-
|
|
87
79
|
return coords;
|
|
88
80
|
}
|
|
89
81
|
|
|
@@ -94,7 +86,6 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
94
86
|
* This export does not have any `platform` interface logic. You will need to
|
|
95
87
|
* write one for the platform you are using Floating UI with.
|
|
96
88
|
*/
|
|
97
|
-
|
|
98
89
|
const computePosition$1 = async (reference, floating, config) => {
|
|
99
90
|
const {
|
|
100
91
|
placement = 'bottom',
|
|
@@ -104,7 +95,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
104
95
|
} = config;
|
|
105
96
|
const validMiddleware = middleware.filter(Boolean);
|
|
106
97
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
107
|
-
|
|
108
98
|
let rects = await platform.getElementRects({
|
|
109
99
|
reference,
|
|
110
100
|
floating,
|
|
@@ -117,7 +107,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
117
107
|
let statefulPlacement = placement;
|
|
118
108
|
let middlewareData = {};
|
|
119
109
|
let resetCount = 0;
|
|
120
|
-
|
|
121
110
|
for (let i = 0; i < validMiddleware.length; i++) {
|
|
122
111
|
const {
|
|
123
112
|
name,
|
|
@@ -144,20 +133,19 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
144
133
|
});
|
|
145
134
|
x = nextX != null ? nextX : x;
|
|
146
135
|
y = nextY != null ? nextY : y;
|
|
147
|
-
middlewareData = {
|
|
148
|
-
|
|
136
|
+
middlewareData = {
|
|
137
|
+
...middlewareData,
|
|
138
|
+
[name]: {
|
|
139
|
+
...middlewareData[name],
|
|
149
140
|
...data
|
|
150
141
|
}
|
|
151
142
|
};
|
|
152
|
-
|
|
153
143
|
if (reset && resetCount <= 50) {
|
|
154
144
|
resetCount++;
|
|
155
|
-
|
|
156
145
|
if (typeof reset === 'object') {
|
|
157
146
|
if (reset.placement) {
|
|
158
147
|
statefulPlacement = reset.placement;
|
|
159
148
|
}
|
|
160
|
-
|
|
161
149
|
if (reset.rects) {
|
|
162
150
|
rects = reset.rects === true ? await platform.getElementRects({
|
|
163
151
|
reference,
|
|
@@ -165,18 +153,15 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
165
153
|
strategy
|
|
166
154
|
}) : reset.rects;
|
|
167
155
|
}
|
|
168
|
-
|
|
169
156
|
({
|
|
170
157
|
x,
|
|
171
158
|
y
|
|
172
159
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
173
160
|
}
|
|
174
|
-
|
|
175
161
|
i = -1;
|
|
176
162
|
continue;
|
|
177
163
|
}
|
|
178
164
|
}
|
|
179
|
-
|
|
180
165
|
return {
|
|
181
166
|
x,
|
|
182
167
|
y,
|
|
@@ -206,7 +191,8 @@ function getSideObjectFromPadding(padding) {
|
|
|
206
191
|
}
|
|
207
192
|
|
|
208
193
|
function rectToClientRect(rect) {
|
|
209
|
-
return {
|
|
194
|
+
return {
|
|
195
|
+
...rect,
|
|
210
196
|
top: rect.y,
|
|
211
197
|
left: rect.x,
|
|
212
198
|
right: rect.x + rect.width,
|
|
@@ -224,11 +210,9 @@ function rectToClientRect(rect) {
|
|
|
224
210
|
*/
|
|
225
211
|
async function detectOverflow(middlewareArguments, options) {
|
|
226
212
|
var _await$platform$isEle;
|
|
227
|
-
|
|
228
213
|
if (options === void 0) {
|
|
229
214
|
options = {};
|
|
230
215
|
}
|
|
231
|
-
|
|
232
216
|
const {
|
|
233
217
|
x,
|
|
234
218
|
y,
|
|
@@ -253,7 +237,8 @@ async function detectOverflow(middlewareArguments, options) {
|
|
|
253
237
|
rootBoundary,
|
|
254
238
|
strategy
|
|
255
239
|
}));
|
|
256
|
-
const rect = elementContext === 'floating' ? {
|
|
240
|
+
const rect = elementContext === 'floating' ? {
|
|
241
|
+
...rects.floating,
|
|
257
242
|
x,
|
|
258
243
|
y
|
|
259
244
|
} : rects.reference;
|
|
@@ -270,7 +255,6 @@ async function detectOverflow(middlewareArguments, options) {
|
|
|
270
255
|
offsetParent,
|
|
271
256
|
strategy
|
|
272
257
|
}) : rect);
|
|
273
|
-
|
|
274
258
|
return {
|
|
275
259
|
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
276
260
|
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
@@ -294,7 +278,6 @@ function within(min$1$1, value, max$1$1) {
|
|
|
294
278
|
const arrow = options => ({
|
|
295
279
|
name: 'arrow',
|
|
296
280
|
options,
|
|
297
|
-
|
|
298
281
|
async fn(middlewareArguments) {
|
|
299
282
|
// Since `element` is required, we don't Partial<> the type
|
|
300
283
|
const {
|
|
@@ -308,19 +291,15 @@ const arrow = options => ({
|
|
|
308
291
|
rects,
|
|
309
292
|
platform
|
|
310
293
|
} = middlewareArguments;
|
|
311
|
-
|
|
312
294
|
if (element == null) {
|
|
313
|
-
|
|
314
295
|
return {};
|
|
315
296
|
}
|
|
316
|
-
|
|
317
297
|
const paddingObject = getSideObjectFromPadding(padding);
|
|
318
298
|
const coords = {
|
|
319
299
|
x,
|
|
320
300
|
y
|
|
321
301
|
};
|
|
322
302
|
const axis = getMainAxisFromPlacement(placement);
|
|
323
|
-
const alignment = getAlignment(placement);
|
|
324
303
|
const length = getLengthFromAxis(axis);
|
|
325
304
|
const arrowDimensions = await platform.getDimensions(element);
|
|
326
305
|
const minProp = axis === 'y' ? 'top' : 'left';
|
|
@@ -329,21 +308,23 @@ const arrow = options => ({
|
|
|
329
308
|
const startDiff = coords[axis] - rects.reference[axis];
|
|
330
309
|
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
331
310
|
let clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
332
|
-
|
|
333
311
|
if (clientSize === 0) {
|
|
334
312
|
clientSize = rects.floating[length];
|
|
335
313
|
}
|
|
314
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
336
315
|
|
|
337
|
-
|
|
316
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
|
338
317
|
// point is outside the floating element's bounds
|
|
339
|
-
|
|
340
318
|
const min = paddingObject[minProp];
|
|
341
319
|
const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
|
|
342
320
|
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
343
|
-
const offset = within(min, center, max);
|
|
321
|
+
const offset = within(min, center, max);
|
|
344
322
|
|
|
345
|
-
|
|
346
|
-
|
|
323
|
+
// If the reference is small enough that the arrow's padding causes it to
|
|
324
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
|
325
|
+
// floating element itself. This stops `shift()` from taking action, but can
|
|
326
|
+
// be worked around by calling it again after the `arrow()` if desired.
|
|
327
|
+
const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0;
|
|
347
328
|
const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
|
|
348
329
|
return {
|
|
349
330
|
[axis]: coords[axis] - alignmentOffset,
|
|
@@ -353,7 +334,6 @@ const arrow = options => ({
|
|
|
353
334
|
}
|
|
354
335
|
};
|
|
355
336
|
}
|
|
356
|
-
|
|
357
337
|
});
|
|
358
338
|
|
|
359
339
|
const hash$1 = {
|
|
@@ -370,16 +350,13 @@ function getAlignmentSides(placement, rects, rtl) {
|
|
|
370
350
|
if (rtl === void 0) {
|
|
371
351
|
rtl = false;
|
|
372
352
|
}
|
|
373
|
-
|
|
374
353
|
const alignment = getAlignment(placement);
|
|
375
354
|
const mainAxis = getMainAxisFromPlacement(placement);
|
|
376
355
|
const length = getLengthFromAxis(mainAxis);
|
|
377
356
|
let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
378
|
-
|
|
379
357
|
if (rects.reference[length] > rects.floating[length]) {
|
|
380
358
|
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
381
359
|
}
|
|
382
|
-
|
|
383
360
|
return {
|
|
384
361
|
main: mainAlignmentSide,
|
|
385
362
|
cross: getOppositePlacement(mainAlignmentSide)
|
|
@@ -403,11 +380,9 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
403
380
|
if (alignment) {
|
|
404
381
|
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
405
382
|
}
|
|
406
|
-
|
|
407
383
|
return true;
|
|
408
384
|
});
|
|
409
385
|
}
|
|
410
|
-
|
|
411
386
|
/**
|
|
412
387
|
* Automatically chooses the `placement` which has the most space available.
|
|
413
388
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
@@ -416,14 +391,11 @@ const autoPlacement = function (options) {
|
|
|
416
391
|
if (options === void 0) {
|
|
417
392
|
options = {};
|
|
418
393
|
}
|
|
419
|
-
|
|
420
394
|
return {
|
|
421
395
|
name: 'autoPlacement',
|
|
422
396
|
options,
|
|
423
|
-
|
|
424
397
|
async fn(middlewareArguments) {
|
|
425
398
|
var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _placementsSortedByLe;
|
|
426
|
-
|
|
427
399
|
const {
|
|
428
400
|
x,
|
|
429
401
|
y,
|
|
@@ -434,25 +406,24 @@ const autoPlacement = function (options) {
|
|
|
434
406
|
elements
|
|
435
407
|
} = middlewareArguments;
|
|
436
408
|
const {
|
|
437
|
-
alignment
|
|
409
|
+
alignment,
|
|
438
410
|
allowedPlacements = allPlacements,
|
|
439
411
|
autoAlignment = true,
|
|
440
412
|
...detectOverflowOptions
|
|
441
413
|
} = options;
|
|
442
|
-
const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);
|
|
414
|
+
const placements = alignment !== undefined || allowedPlacements === allPlacements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
443
415
|
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
444
416
|
const currentIndex = (_middlewareData$autoP = (_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.index) != null ? _middlewareData$autoP : 0;
|
|
445
417
|
const currentPlacement = placements[currentIndex];
|
|
446
|
-
|
|
447
418
|
if (currentPlacement == null) {
|
|
448
419
|
return {};
|
|
449
420
|
}
|
|
450
|
-
|
|
451
421
|
const {
|
|
452
422
|
main,
|
|
453
423
|
cross
|
|
454
|
-
} = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
424
|
+
} = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
455
425
|
|
|
426
|
+
// Make `computeCoords` start from the right place
|
|
456
427
|
if (placement !== currentPlacement) {
|
|
457
428
|
return {
|
|
458
429
|
x,
|
|
@@ -462,14 +433,14 @@ const autoPlacement = function (options) {
|
|
|
462
433
|
}
|
|
463
434
|
};
|
|
464
435
|
}
|
|
465
|
-
|
|
466
436
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];
|
|
467
437
|
const allOverflows = [...((_middlewareData$autoP3 = (_middlewareData$autoP4 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP4.overflows) != null ? _middlewareData$autoP3 : []), {
|
|
468
438
|
placement: currentPlacement,
|
|
469
439
|
overflows: currentOverflows
|
|
470
440
|
}];
|
|
471
|
-
const nextPlacement = placements[currentIndex + 1];
|
|
441
|
+
const nextPlacement = placements[currentIndex + 1];
|
|
472
442
|
|
|
443
|
+
// There are more placements to check
|
|
473
444
|
if (nextPlacement) {
|
|
474
445
|
return {
|
|
475
446
|
data: {
|
|
@@ -481,7 +452,6 @@ const autoPlacement = function (options) {
|
|
|
481
452
|
}
|
|
482
453
|
};
|
|
483
454
|
}
|
|
484
|
-
|
|
485
455
|
const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);
|
|
486
456
|
const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {
|
|
487
457
|
let {
|
|
@@ -490,7 +460,6 @@ const autoPlacement = function (options) {
|
|
|
490
460
|
return overflows.every(overflow => overflow <= 0);
|
|
491
461
|
})) == null ? void 0 : _placementsSortedByLe.placement;
|
|
492
462
|
const resetPlacement = placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement;
|
|
493
|
-
|
|
494
463
|
if (resetPlacement !== placement) {
|
|
495
464
|
return {
|
|
496
465
|
data: {
|
|
@@ -502,10 +471,8 @@ const autoPlacement = function (options) {
|
|
|
502
471
|
}
|
|
503
472
|
};
|
|
504
473
|
}
|
|
505
|
-
|
|
506
474
|
return {};
|
|
507
475
|
}
|
|
508
|
-
|
|
509
476
|
};
|
|
510
477
|
};
|
|
511
478
|
|
|
@@ -523,14 +490,11 @@ const flip = function (options) {
|
|
|
523
490
|
if (options === void 0) {
|
|
524
491
|
options = {};
|
|
525
492
|
}
|
|
526
|
-
|
|
527
493
|
return {
|
|
528
494
|
name: 'flip',
|
|
529
495
|
options,
|
|
530
|
-
|
|
531
496
|
async fn(middlewareArguments) {
|
|
532
497
|
var _middlewareData$flip;
|
|
533
|
-
|
|
534
498
|
const {
|
|
535
499
|
placement,
|
|
536
500
|
middlewareData,
|
|
@@ -554,11 +518,9 @@ const flip = function (options) {
|
|
|
554
518
|
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
555
519
|
const overflows = [];
|
|
556
520
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
557
|
-
|
|
558
521
|
if (checkMainAxis) {
|
|
559
522
|
overflows.push(overflow[side]);
|
|
560
523
|
}
|
|
561
|
-
|
|
562
524
|
if (checkCrossAxis) {
|
|
563
525
|
const {
|
|
564
526
|
main,
|
|
@@ -566,18 +528,16 @@ const flip = function (options) {
|
|
|
566
528
|
} = getAlignmentSides(placement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
567
529
|
overflows.push(overflow[main], overflow[cross]);
|
|
568
530
|
}
|
|
569
|
-
|
|
570
531
|
overflowsData = [...overflowsData, {
|
|
571
532
|
placement,
|
|
572
533
|
overflows
|
|
573
|
-
}];
|
|
534
|
+
}];
|
|
574
535
|
|
|
536
|
+
// One or more sides is overflowing
|
|
575
537
|
if (!overflows.every(side => side <= 0)) {
|
|
576
538
|
var _middlewareData$flip$, _middlewareData$flip2;
|
|
577
|
-
|
|
578
539
|
const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) != null ? _middlewareData$flip$ : 0) + 1;
|
|
579
540
|
const nextPlacement = placements[nextIndex];
|
|
580
|
-
|
|
581
541
|
if (nextPlacement) {
|
|
582
542
|
// Try next placement and re-run the lifecycle
|
|
583
543
|
return {
|
|
@@ -590,28 +550,21 @@ const flip = function (options) {
|
|
|
590
550
|
}
|
|
591
551
|
};
|
|
592
552
|
}
|
|
593
|
-
|
|
594
553
|
let resetPlacement = 'bottom';
|
|
595
|
-
|
|
596
554
|
switch (fallbackStrategy) {
|
|
597
555
|
case 'bestFit':
|
|
598
556
|
{
|
|
599
557
|
var _overflowsData$map$so;
|
|
600
|
-
|
|
601
558
|
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;
|
|
602
|
-
|
|
603
559
|
if (placement) {
|
|
604
560
|
resetPlacement = placement;
|
|
605
561
|
}
|
|
606
|
-
|
|
607
562
|
break;
|
|
608
563
|
}
|
|
609
|
-
|
|
610
564
|
case 'initialPlacement':
|
|
611
565
|
resetPlacement = initialPlacement;
|
|
612
566
|
break;
|
|
613
567
|
}
|
|
614
|
-
|
|
615
568
|
if (placement !== resetPlacement) {
|
|
616
569
|
return {
|
|
617
570
|
reset: {
|
|
@@ -620,10 +573,8 @@ const flip = function (options) {
|
|
|
620
573
|
};
|
|
621
574
|
}
|
|
622
575
|
}
|
|
623
|
-
|
|
624
576
|
return {};
|
|
625
577
|
}
|
|
626
|
-
|
|
627
578
|
};
|
|
628
579
|
};
|
|
629
580
|
|
|
@@ -635,33 +586,34 @@ function getSideOffsets(overflow, rect) {
|
|
|
635
586
|
left: overflow.left - rect.width
|
|
636
587
|
};
|
|
637
588
|
}
|
|
638
|
-
|
|
639
589
|
function isAnySideFullyClipped(overflow) {
|
|
640
590
|
return sides.some(side => overflow[side] >= 0);
|
|
641
591
|
}
|
|
642
|
-
|
|
643
592
|
/**
|
|
644
593
|
* Provides data to hide the floating element in applicable situations, such as
|
|
645
594
|
* when it is not in the same clipping context as the reference element.
|
|
646
595
|
* @see https://floating-ui.com/docs/hide
|
|
647
596
|
*/
|
|
648
|
-
const hide = function (
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
} = _temp === void 0 ? {} : _temp;
|
|
597
|
+
const hide = function (options) {
|
|
598
|
+
if (options === void 0) {
|
|
599
|
+
options = {};
|
|
600
|
+
}
|
|
653
601
|
return {
|
|
654
602
|
name: 'hide',
|
|
655
|
-
|
|
603
|
+
options,
|
|
656
604
|
async fn(middlewareArguments) {
|
|
605
|
+
const {
|
|
606
|
+
strategy = 'referenceHidden',
|
|
607
|
+
...detectOverflowOptions
|
|
608
|
+
} = options;
|
|
657
609
|
const {
|
|
658
610
|
rects
|
|
659
611
|
} = middlewareArguments;
|
|
660
|
-
|
|
661
612
|
switch (strategy) {
|
|
662
613
|
case 'referenceHidden':
|
|
663
614
|
{
|
|
664
|
-
const overflow = await detectOverflow(middlewareArguments, {
|
|
615
|
+
const overflow = await detectOverflow(middlewareArguments, {
|
|
616
|
+
...detectOverflowOptions,
|
|
665
617
|
elementContext: 'reference'
|
|
666
618
|
});
|
|
667
619
|
const offsets = getSideOffsets(overflow, rects.reference);
|
|
@@ -672,10 +624,10 @@ const hide = function (_temp) {
|
|
|
672
624
|
}
|
|
673
625
|
};
|
|
674
626
|
}
|
|
675
|
-
|
|
676
627
|
case 'escaped':
|
|
677
628
|
{
|
|
678
|
-
const overflow = await detectOverflow(middlewareArguments, {
|
|
629
|
+
const overflow = await detectOverflow(middlewareArguments, {
|
|
630
|
+
...detectOverflowOptions,
|
|
679
631
|
altBoundary: true
|
|
680
632
|
});
|
|
681
633
|
const offsets = getSideOffsets(overflow, rects.floating);
|
|
@@ -686,14 +638,12 @@ const hide = function (_temp) {
|
|
|
686
638
|
}
|
|
687
639
|
};
|
|
688
640
|
}
|
|
689
|
-
|
|
690
641
|
default:
|
|
691
642
|
{
|
|
692
643
|
return {};
|
|
693
644
|
}
|
|
694
645
|
}
|
|
695
646
|
}
|
|
696
|
-
|
|
697
647
|
};
|
|
698
648
|
};
|
|
699
649
|
|
|
@@ -709,8 +659,9 @@ async function convertValueToCoords(middlewareArguments, value) {
|
|
|
709
659
|
const isVertical = getMainAxisFromPlacement(placement) === 'x';
|
|
710
660
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
711
661
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
712
|
-
const rawValue = typeof value === 'function' ? value(middlewareArguments) : value;
|
|
662
|
+
const rawValue = typeof value === 'function' ? value(middlewareArguments) : value;
|
|
713
663
|
|
|
664
|
+
// eslint-disable-next-line prefer-const
|
|
714
665
|
let {
|
|
715
666
|
mainAxis,
|
|
716
667
|
crossAxis,
|
|
@@ -725,11 +676,9 @@ async function convertValueToCoords(middlewareArguments, value) {
|
|
|
725
676
|
alignmentAxis: null,
|
|
726
677
|
...rawValue
|
|
727
678
|
};
|
|
728
|
-
|
|
729
679
|
if (alignment && typeof alignmentAxis === 'number') {
|
|
730
680
|
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
731
681
|
}
|
|
732
|
-
|
|
733
682
|
return isVertical ? {
|
|
734
683
|
x: crossAxis * crossAxisMulti,
|
|
735
684
|
y: mainAxis * mainAxisMulti
|
|
@@ -738,20 +687,18 @@ async function convertValueToCoords(middlewareArguments, value) {
|
|
|
738
687
|
y: crossAxis * crossAxisMulti
|
|
739
688
|
};
|
|
740
689
|
}
|
|
690
|
+
|
|
741
691
|
/**
|
|
742
692
|
* Displaces the floating element from its reference element.
|
|
743
693
|
* @see https://floating-ui.com/docs/offset
|
|
744
694
|
*/
|
|
745
|
-
|
|
746
695
|
const offset = function (value) {
|
|
747
696
|
if (value === void 0) {
|
|
748
697
|
value = 0;
|
|
749
698
|
}
|
|
750
|
-
|
|
751
699
|
return {
|
|
752
700
|
name: 'offset',
|
|
753
701
|
options: value,
|
|
754
|
-
|
|
755
702
|
async fn(middlewareArguments) {
|
|
756
703
|
const {
|
|
757
704
|
x,
|
|
@@ -764,7 +711,6 @@ const offset = function (value) {
|
|
|
764
711
|
data: diffCoords
|
|
765
712
|
};
|
|
766
713
|
}
|
|
767
|
-
|
|
768
714
|
};
|
|
769
715
|
};
|
|
770
716
|
|
|
@@ -781,11 +727,9 @@ const shift = function (options) {
|
|
|
781
727
|
if (options === void 0) {
|
|
782
728
|
options = {};
|
|
783
729
|
}
|
|
784
|
-
|
|
785
730
|
return {
|
|
786
731
|
name: 'shift',
|
|
787
732
|
options,
|
|
788
|
-
|
|
789
733
|
async fn(middlewareArguments) {
|
|
790
734
|
const {
|
|
791
735
|
x,
|
|
@@ -818,7 +762,6 @@ const shift = function (options) {
|
|
|
818
762
|
const crossAxis = getCrossAxis(mainAxis);
|
|
819
763
|
let mainAxisCoord = coords[mainAxis];
|
|
820
764
|
let crossAxisCoord = coords[crossAxis];
|
|
821
|
-
|
|
822
765
|
if (checkMainAxis) {
|
|
823
766
|
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
824
767
|
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
@@ -826,7 +769,6 @@ const shift = function (options) {
|
|
|
826
769
|
const max = mainAxisCoord - overflow[maxSide];
|
|
827
770
|
mainAxisCoord = within(min, mainAxisCoord, max);
|
|
828
771
|
}
|
|
829
|
-
|
|
830
772
|
if (checkCrossAxis) {
|
|
831
773
|
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
832
774
|
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
@@ -834,29 +776,28 @@ const shift = function (options) {
|
|
|
834
776
|
const max = crossAxisCoord - overflow[maxSide];
|
|
835
777
|
crossAxisCoord = within(min, crossAxisCoord, max);
|
|
836
778
|
}
|
|
837
|
-
|
|
838
|
-
|
|
779
|
+
const limitedCoords = limiter.fn({
|
|
780
|
+
...middlewareArguments,
|
|
839
781
|
[mainAxis]: mainAxisCoord,
|
|
840
782
|
[crossAxis]: crossAxisCoord
|
|
841
783
|
});
|
|
842
|
-
return {
|
|
784
|
+
return {
|
|
785
|
+
...limitedCoords,
|
|
843
786
|
data: {
|
|
844
787
|
x: limitedCoords.x - x,
|
|
845
788
|
y: limitedCoords.y - y
|
|
846
789
|
}
|
|
847
790
|
};
|
|
848
791
|
}
|
|
849
|
-
|
|
850
792
|
};
|
|
851
793
|
};
|
|
852
794
|
|
|
853
795
|
function getWindow(node) {
|
|
854
796
|
var _node$ownerDocument;
|
|
855
|
-
|
|
856
797
|
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
857
798
|
}
|
|
858
799
|
|
|
859
|
-
function getComputedStyle(element) {
|
|
800
|
+
function getComputedStyle$1(element) {
|
|
860
801
|
return getWindow(element).getComputedStyle(element);
|
|
861
802
|
}
|
|
862
803
|
|
|
@@ -869,14 +810,11 @@ function getUAString() {
|
|
|
869
810
|
if (uaString) {
|
|
870
811
|
return uaString;
|
|
871
812
|
}
|
|
872
|
-
|
|
873
813
|
const uaData = navigator.userAgentData;
|
|
874
|
-
|
|
875
814
|
if (uaData && Array.isArray(uaData.brands)) {
|
|
876
815
|
uaString = uaData.brands.map(item => item.brand + "/" + item.version).join(' ');
|
|
877
816
|
return uaString;
|
|
878
817
|
}
|
|
879
|
-
|
|
880
818
|
return navigator.userAgent;
|
|
881
819
|
}
|
|
882
820
|
|
|
@@ -894,19 +832,17 @@ function isShadowRoot(node) {
|
|
|
894
832
|
if (typeof ShadowRoot === 'undefined') {
|
|
895
833
|
return false;
|
|
896
834
|
}
|
|
897
|
-
|
|
898
835
|
const OwnElement = getWindow(node).ShadowRoot;
|
|
899
836
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
900
837
|
}
|
|
901
838
|
function isOverflowElement(element) {
|
|
902
|
-
// Firefox wants us to check `-x` and `-y` variations as well
|
|
903
839
|
const {
|
|
904
840
|
overflow,
|
|
905
841
|
overflowX,
|
|
906
842
|
overflowY,
|
|
907
843
|
display
|
|
908
|
-
} = getComputedStyle(element);
|
|
909
|
-
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
844
|
+
} = getComputedStyle$1(element);
|
|
845
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
910
846
|
}
|
|
911
847
|
function isTableElement(element) {
|
|
912
848
|
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
@@ -914,12 +850,14 @@ function isTableElement(element) {
|
|
|
914
850
|
function isContainingBlock(element) {
|
|
915
851
|
// TODO: Try and use feature detection here instead
|
|
916
852
|
const isFirefox = /firefox/i.test(getUAString());
|
|
917
|
-
const css = getComputedStyle(element);
|
|
918
|
-
const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
|
|
853
|
+
const css = getComputedStyle$1(element);
|
|
854
|
+
const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
|
|
855
|
+
|
|
856
|
+
// This is non-exhaustive but covers the most common CSS properties that
|
|
919
857
|
// create a containing block.
|
|
920
858
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
921
|
-
|
|
922
|
-
|
|
859
|
+
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(
|
|
860
|
+
// TS 4.1 compat
|
|
923
861
|
value => {
|
|
924
862
|
const contain = css.contain;
|
|
925
863
|
return contain != null ? contain.includes(value) : false;
|
|
@@ -927,40 +865,70 @@ function isContainingBlock(element) {
|
|
|
927
865
|
}
|
|
928
866
|
function isLayoutViewport() {
|
|
929
867
|
// Not Safari
|
|
930
|
-
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
868
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
869
|
+
// Feature detection for this fails in various ways
|
|
931
870
|
// • Always-visible scrollbar or not
|
|
932
871
|
// • Width of <html>, etc.
|
|
933
872
|
// const vV = win.visualViewport;
|
|
934
873
|
// return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
|
|
935
874
|
}
|
|
875
|
+
|
|
936
876
|
function isLastTraversableNode(node) {
|
|
937
877
|
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
938
878
|
}
|
|
939
879
|
|
|
880
|
+
const min = Math.min;
|
|
881
|
+
const max = Math.max;
|
|
882
|
+
const round = Math.round;
|
|
883
|
+
|
|
884
|
+
function getCssDimensions(element) {
|
|
885
|
+
const css = getComputedStyle$1(element);
|
|
886
|
+
let width = parseFloat(css.width);
|
|
887
|
+
let height = parseFloat(css.height);
|
|
888
|
+
const offsetWidth = element.offsetWidth;
|
|
889
|
+
const offsetHeight = element.offsetHeight;
|
|
890
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
891
|
+
if (shouldFallback) {
|
|
892
|
+
width = offsetWidth;
|
|
893
|
+
height = offsetHeight;
|
|
894
|
+
}
|
|
895
|
+
return {
|
|
896
|
+
width,
|
|
897
|
+
height,
|
|
898
|
+
fallback: shouldFallback
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
function unwrapElement(element) {
|
|
903
|
+
return !isElement(element) ? element.contextElement : element;
|
|
904
|
+
}
|
|
905
|
+
|
|
940
906
|
const FALLBACK_SCALE = {
|
|
941
907
|
x: 1,
|
|
942
908
|
y: 1
|
|
943
909
|
};
|
|
944
910
|
function getScale(element) {
|
|
945
|
-
const domElement =
|
|
946
|
-
|
|
947
|
-
if (!domElement) {
|
|
911
|
+
const domElement = unwrapElement(element);
|
|
912
|
+
if (!isHTMLElement(domElement)) {
|
|
948
913
|
return FALLBACK_SCALE;
|
|
949
914
|
}
|
|
950
|
-
|
|
951
915
|
const rect = domElement.getBoundingClientRect();
|
|
952
|
-
const
|
|
953
|
-
|
|
954
|
-
|
|
916
|
+
const {
|
|
917
|
+
width,
|
|
918
|
+
height,
|
|
919
|
+
fallback
|
|
920
|
+
} = getCssDimensions(domElement);
|
|
921
|
+
let x = (fallback ? round(rect.width) : rect.width) / width;
|
|
922
|
+
let y = (fallback ? round(rect.height) : rect.height) / height;
|
|
923
|
+
|
|
924
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
955
925
|
|
|
956
926
|
if (!x || !Number.isFinite(x)) {
|
|
957
927
|
x = 1;
|
|
958
928
|
}
|
|
959
|
-
|
|
960
929
|
if (!y || !Number.isFinite(y)) {
|
|
961
930
|
y = 1;
|
|
962
931
|
}
|
|
963
|
-
|
|
964
932
|
return {
|
|
965
933
|
x,
|
|
966
934
|
y
|
|
@@ -968,19 +936,16 @@ function getScale(element) {
|
|
|
968
936
|
}
|
|
969
937
|
|
|
970
938
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
971
|
-
var _win$visualViewport
|
|
972
|
-
|
|
939
|
+
var _win$visualViewport, _win$visualViewport2;
|
|
973
940
|
if (includeScale === void 0) {
|
|
974
941
|
includeScale = false;
|
|
975
942
|
}
|
|
976
|
-
|
|
977
943
|
if (isFixedStrategy === void 0) {
|
|
978
944
|
isFixedStrategy = false;
|
|
979
945
|
}
|
|
980
|
-
|
|
981
946
|
const clientRect = element.getBoundingClientRect();
|
|
947
|
+
const domElement = unwrapElement(element);
|
|
982
948
|
let scale = FALLBACK_SCALE;
|
|
983
|
-
|
|
984
949
|
if (includeScale) {
|
|
985
950
|
if (offsetParent) {
|
|
986
951
|
if (isElement(offsetParent)) {
|
|
@@ -990,13 +955,31 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
990
955
|
scale = getScale(element);
|
|
991
956
|
}
|
|
992
957
|
}
|
|
993
|
-
|
|
994
|
-
const win = isElement(element) ? getWindow(element) : window;
|
|
958
|
+
const win = domElement ? getWindow(domElement) : window;
|
|
995
959
|
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
960
|
+
let x = (clientRect.left + (addVisualOffsets ? ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0 : 0)) / scale.x;
|
|
961
|
+
let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale.y;
|
|
962
|
+
let width = clientRect.width / scale.x;
|
|
963
|
+
let height = clientRect.height / scale.y;
|
|
964
|
+
if (domElement) {
|
|
965
|
+
const win = getWindow(domElement);
|
|
966
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
967
|
+
let currentIFrame = win.frameElement;
|
|
968
|
+
while (currentIFrame && offsetParent && offsetWin !== win) {
|
|
969
|
+
const iframeScale = getScale(currentIFrame);
|
|
970
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
971
|
+
const css = getComputedStyle(currentIFrame);
|
|
972
|
+
iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
973
|
+
iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
974
|
+
x *= iframeScale.x;
|
|
975
|
+
y *= iframeScale.y;
|
|
976
|
+
width *= iframeScale.x;
|
|
977
|
+
height *= iframeScale.y;
|
|
978
|
+
x += iframeRect.x;
|
|
979
|
+
y += iframeRect.y;
|
|
980
|
+
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
1000
983
|
return {
|
|
1001
984
|
width,
|
|
1002
985
|
height,
|
|
@@ -1020,7 +1003,6 @@ function getNodeScroll(element) {
|
|
|
1020
1003
|
scrollTop: element.scrollTop
|
|
1021
1004
|
};
|
|
1022
1005
|
}
|
|
1023
|
-
|
|
1024
1006
|
return {
|
|
1025
1007
|
scrollLeft: element.pageXOffset,
|
|
1026
1008
|
scrollTop: element.pageYOffset
|
|
@@ -1045,12 +1027,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1045
1027
|
x: 0,
|
|
1046
1028
|
y: 0
|
|
1047
1029
|
};
|
|
1048
|
-
|
|
1049
1030
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
1050
1031
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1051
1032
|
scroll = getNodeScroll(offsetParent);
|
|
1052
1033
|
}
|
|
1053
|
-
|
|
1054
1034
|
if (isHTMLElement(offsetParent)) {
|
|
1055
1035
|
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
1056
1036
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
@@ -1059,7 +1039,6 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1059
1039
|
offsets.x = getWindowScrollBarX(documentElement);
|
|
1060
1040
|
}
|
|
1061
1041
|
}
|
|
1062
|
-
|
|
1063
1042
|
return {
|
|
1064
1043
|
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1065
1044
|
y: rect.top + scroll.scrollTop - offsets.y,
|
|
@@ -1072,26 +1051,26 @@ function getParentNode(node) {
|
|
|
1072
1051
|
if (getNodeName(node) === 'html') {
|
|
1073
1052
|
return node;
|
|
1074
1053
|
}
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
node.assignedSlot ||
|
|
1078
|
-
|
|
1079
|
-
|
|
1054
|
+
const result =
|
|
1055
|
+
// Step into the shadow DOM of the parent of a slotted node
|
|
1056
|
+
node.assignedSlot ||
|
|
1057
|
+
// DOM Element detected
|
|
1058
|
+
node.parentNode || (
|
|
1059
|
+
// ShadowRoot detected
|
|
1060
|
+
isShadowRoot(node) ? node.host : null) ||
|
|
1061
|
+
// Fallback
|
|
1080
1062
|
getDocumentElement(node);
|
|
1081
1063
|
return isShadowRoot(result) ? result.host : result;
|
|
1082
1064
|
}
|
|
1083
1065
|
|
|
1084
1066
|
function getTrueOffsetParent(element) {
|
|
1085
|
-
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1067
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
1086
1068
|
return null;
|
|
1087
1069
|
}
|
|
1088
|
-
|
|
1089
1070
|
return element.offsetParent;
|
|
1090
1071
|
}
|
|
1091
|
-
|
|
1092
1072
|
function getContainingBlock(element) {
|
|
1093
1073
|
let currentNode = getParentNode(element);
|
|
1094
|
-
|
|
1095
1074
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1096
1075
|
if (isContainingBlock(currentNode)) {
|
|
1097
1076
|
return currentNode;
|
|
@@ -1099,40 +1078,25 @@ function getContainingBlock(element) {
|
|
|
1099
1078
|
currentNode = getParentNode(currentNode);
|
|
1100
1079
|
}
|
|
1101
1080
|
}
|
|
1102
|
-
|
|
1103
1081
|
return null;
|
|
1104
|
-
}
|
|
1105
|
-
// such as table ancestors and cross browser bugs.
|
|
1106
|
-
|
|
1082
|
+
}
|
|
1107
1083
|
|
|
1084
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1085
|
+
// such as table ancestors and cross browser bugs.
|
|
1108
1086
|
function getOffsetParent(element) {
|
|
1109
1087
|
const window = getWindow(element);
|
|
1110
1088
|
let offsetParent = getTrueOffsetParent(element);
|
|
1111
|
-
|
|
1112
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
1089
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
1113
1090
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
1114
1091
|
}
|
|
1115
|
-
|
|
1116
|
-
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
1092
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
1117
1093
|
return window;
|
|
1118
1094
|
}
|
|
1119
|
-
|
|
1120
1095
|
return offsetParent || getContainingBlock(element) || window;
|
|
1121
1096
|
}
|
|
1122
1097
|
|
|
1123
1098
|
function getDimensions(element) {
|
|
1124
|
-
|
|
1125
|
-
return {
|
|
1126
|
-
width: element.offsetWidth,
|
|
1127
|
-
height: element.offsetHeight
|
|
1128
|
-
};
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
const rect = getBoundingClientRect(element);
|
|
1132
|
-
return {
|
|
1133
|
-
width: rect.width,
|
|
1134
|
-
height: rect.height
|
|
1135
|
-
};
|
|
1099
|
+
return getCssDimensions(element);
|
|
1136
1100
|
}
|
|
1137
1101
|
|
|
1138
1102
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
@@ -1143,11 +1107,9 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1143
1107
|
} = _ref;
|
|
1144
1108
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1145
1109
|
const documentElement = getDocumentElement(offsetParent);
|
|
1146
|
-
|
|
1147
1110
|
if (offsetParent === documentElement) {
|
|
1148
1111
|
return rect;
|
|
1149
1112
|
}
|
|
1150
|
-
|
|
1151
1113
|
let scroll = {
|
|
1152
1114
|
scrollLeft: 0,
|
|
1153
1115
|
scrollTop: 0
|
|
@@ -1160,22 +1122,20 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1160
1122
|
x: 0,
|
|
1161
1123
|
y: 0
|
|
1162
1124
|
};
|
|
1163
|
-
|
|
1164
1125
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
1165
1126
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1166
1127
|
scroll = getNodeScroll(offsetParent);
|
|
1167
1128
|
}
|
|
1168
|
-
|
|
1169
1129
|
if (isHTMLElement(offsetParent)) {
|
|
1170
1130
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1171
1131
|
scale = getScale(offsetParent);
|
|
1172
1132
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1173
1133
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1174
|
-
}
|
|
1134
|
+
}
|
|
1135
|
+
// This doesn't appear to need to be negated.
|
|
1175
1136
|
// else if (documentElement) {
|
|
1176
1137
|
// offsets.x = getWindowScrollBarX(documentElement);
|
|
1177
1138
|
// }
|
|
1178
|
-
|
|
1179
1139
|
}
|
|
1180
1140
|
|
|
1181
1141
|
return {
|
|
@@ -1194,18 +1154,15 @@ function getViewportRect(element, strategy) {
|
|
|
1194
1154
|
let height = html.clientHeight;
|
|
1195
1155
|
let x = 0;
|
|
1196
1156
|
let y = 0;
|
|
1197
|
-
|
|
1198
1157
|
if (visualViewport) {
|
|
1199
1158
|
width = visualViewport.width;
|
|
1200
1159
|
height = visualViewport.height;
|
|
1201
1160
|
const layoutViewport = isLayoutViewport();
|
|
1202
|
-
|
|
1203
1161
|
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
1204
1162
|
x = visualViewport.offsetLeft;
|
|
1205
1163
|
y = visualViewport.offsetTop;
|
|
1206
1164
|
}
|
|
1207
1165
|
}
|
|
1208
|
-
|
|
1209
1166
|
return {
|
|
1210
1167
|
width,
|
|
1211
1168
|
height,
|
|
@@ -1214,14 +1171,10 @@ function getViewportRect(element, strategy) {
|
|
|
1214
1171
|
};
|
|
1215
1172
|
}
|
|
1216
1173
|
|
|
1217
|
-
|
|
1218
|
-
const max = Math.max;
|
|
1219
|
-
|
|
1174
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
1220
1175
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
1221
|
-
|
|
1222
1176
|
function getDocumentRect(element) {
|
|
1223
1177
|
var _element$ownerDocumen;
|
|
1224
|
-
|
|
1225
1178
|
const html = getDocumentElement(element);
|
|
1226
1179
|
const scroll = getNodeScroll(element);
|
|
1227
1180
|
const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
@@ -1229,11 +1182,9 @@ function getDocumentRect(element) {
|
|
|
1229
1182
|
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
1230
1183
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1231
1184
|
const y = -scroll.scrollTop;
|
|
1232
|
-
|
|
1233
|
-
if (getComputedStyle(body || html).direction === 'rtl') {
|
|
1185
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
1234
1186
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
1235
1187
|
}
|
|
1236
|
-
|
|
1237
1188
|
return {
|
|
1238
1189
|
width,
|
|
1239
1190
|
height,
|
|
@@ -1244,34 +1195,27 @@ function getDocumentRect(element) {
|
|
|
1244
1195
|
|
|
1245
1196
|
function getNearestOverflowAncestor(node) {
|
|
1246
1197
|
const parentNode = getParentNode(node);
|
|
1247
|
-
|
|
1248
1198
|
if (isLastTraversableNode(parentNode)) {
|
|
1249
1199
|
// @ts-ignore assume body is always available
|
|
1250
1200
|
return node.ownerDocument.body;
|
|
1251
1201
|
}
|
|
1252
|
-
|
|
1253
1202
|
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
1254
1203
|
return parentNode;
|
|
1255
1204
|
}
|
|
1256
|
-
|
|
1257
1205
|
return getNearestOverflowAncestor(parentNode);
|
|
1258
1206
|
}
|
|
1259
1207
|
|
|
1260
1208
|
function getOverflowAncestors(node, list) {
|
|
1261
1209
|
var _node$ownerDocument;
|
|
1262
|
-
|
|
1263
1210
|
if (list === void 0) {
|
|
1264
1211
|
list = [];
|
|
1265
1212
|
}
|
|
1266
|
-
|
|
1267
1213
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
1268
1214
|
const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
|
1269
1215
|
const win = getWindow(scrollableAncestor);
|
|
1270
|
-
|
|
1271
1216
|
if (isBody) {
|
|
1272
1217
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
|
1273
1218
|
}
|
|
1274
|
-
|
|
1275
1219
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
1276
1220
|
}
|
|
1277
1221
|
|
|
@@ -1299,39 +1243,34 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
1299
1243
|
height
|
|
1300
1244
|
};
|
|
1301
1245
|
}
|
|
1302
|
-
|
|
1303
1246
|
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1304
1247
|
if (clippingAncestor === 'viewport') {
|
|
1305
1248
|
return rectToClientRect(getViewportRect(element, strategy));
|
|
1306
1249
|
}
|
|
1307
|
-
|
|
1308
1250
|
if (isElement(clippingAncestor)) {
|
|
1309
1251
|
return getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1310
1252
|
}
|
|
1311
|
-
|
|
1312
1253
|
return rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
1313
|
-
}
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1314
1257
|
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1315
1258
|
// of the given element up the tree.
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
1259
|
function getClippingElementAncestors(element, cache) {
|
|
1319
1260
|
const cachedResult = cache.get(element);
|
|
1320
|
-
|
|
1321
1261
|
if (cachedResult) {
|
|
1322
1262
|
return cachedResult;
|
|
1323
1263
|
}
|
|
1324
|
-
|
|
1325
1264
|
let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1326
1265
|
let currentContainingBlockComputedStyle = null;
|
|
1327
|
-
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
1328
|
-
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1266
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
1267
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1329
1268
|
|
|
1269
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1330
1270
|
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1331
|
-
const computedStyle = getComputedStyle(currentNode);
|
|
1271
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
1332
1272
|
const containingBlock = isContainingBlock(currentNode);
|
|
1333
1273
|
const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position);
|
|
1334
|
-
|
|
1335
1274
|
if (shouldDropCurrentNode) {
|
|
1336
1275
|
// Drop non-containing blocks
|
|
1337
1276
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -1339,16 +1278,14 @@ function getClippingElementAncestors(element, cache) {
|
|
|
1339
1278
|
// Record last containing block for next iteration
|
|
1340
1279
|
currentContainingBlockComputedStyle = computedStyle;
|
|
1341
1280
|
}
|
|
1342
|
-
|
|
1343
1281
|
currentNode = getParentNode(currentNode);
|
|
1344
1282
|
}
|
|
1345
|
-
|
|
1346
1283
|
cache.set(element, result);
|
|
1347
1284
|
return result;
|
|
1348
|
-
}
|
|
1349
|
-
// clipping ancestors
|
|
1350
|
-
|
|
1285
|
+
}
|
|
1351
1286
|
|
|
1287
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
1288
|
+
// clipping ancestors
|
|
1352
1289
|
function getClippingRect(_ref) {
|
|
1353
1290
|
let {
|
|
1354
1291
|
element,
|
|
@@ -1383,7 +1320,6 @@ const platform = {
|
|
|
1383
1320
|
getOffsetParent,
|
|
1384
1321
|
getDocumentElement,
|
|
1385
1322
|
getScale,
|
|
1386
|
-
|
|
1387
1323
|
async getElementRects(_ref) {
|
|
1388
1324
|
let {
|
|
1389
1325
|
reference,
|
|
@@ -1401,9 +1337,8 @@ const platform = {
|
|
|
1401
1337
|
}
|
|
1402
1338
|
};
|
|
1403
1339
|
},
|
|
1404
|
-
|
|
1405
1340
|
getClientRects: element => Array.from(element.getClientRects()),
|
|
1406
|
-
isRTL: element => getComputedStyle(element).direction === 'rtl'
|
|
1341
|
+
isRTL: element => getComputedStyle$1(element).direction === 'rtl'
|
|
1407
1342
|
};
|
|
1408
1343
|
|
|
1409
1344
|
/**
|
|
@@ -1414,7 +1349,6 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1414
1349
|
if (options === void 0) {
|
|
1415
1350
|
options = {};
|
|
1416
1351
|
}
|
|
1417
|
-
|
|
1418
1352
|
const {
|
|
1419
1353
|
ancestorScroll: _ancestorScroll = true,
|
|
1420
1354
|
ancestorResize = true,
|
|
@@ -1430,54 +1364,42 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1430
1364
|
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1431
1365
|
});
|
|
1432
1366
|
let observer = null;
|
|
1433
|
-
|
|
1434
1367
|
if (elementResize) {
|
|
1435
1368
|
let initialUpdate = true;
|
|
1436
1369
|
observer = new ResizeObserver(() => {
|
|
1437
1370
|
if (!initialUpdate) {
|
|
1438
1371
|
update();
|
|
1439
1372
|
}
|
|
1440
|
-
|
|
1441
1373
|
initialUpdate = false;
|
|
1442
1374
|
});
|
|
1443
1375
|
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
1444
|
-
|
|
1445
1376
|
if (!isElement(reference) && reference.contextElement && !animationFrame) {
|
|
1446
1377
|
observer.observe(reference.contextElement);
|
|
1447
1378
|
}
|
|
1448
|
-
|
|
1449
1379
|
observer.observe(floating);
|
|
1450
1380
|
}
|
|
1451
|
-
|
|
1452
1381
|
let frameId;
|
|
1453
1382
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1454
|
-
|
|
1455
1383
|
if (animationFrame) {
|
|
1456
1384
|
frameLoop();
|
|
1457
1385
|
}
|
|
1458
|
-
|
|
1459
1386
|
function frameLoop() {
|
|
1460
1387
|
const nextRefRect = getBoundingClientRect(reference);
|
|
1461
|
-
|
|
1462
1388
|
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
1463
1389
|
update();
|
|
1464
1390
|
}
|
|
1465
|
-
|
|
1466
1391
|
prevRefRect = nextRefRect;
|
|
1467
1392
|
frameId = requestAnimationFrame(frameLoop);
|
|
1468
1393
|
}
|
|
1469
|
-
|
|
1470
1394
|
update();
|
|
1471
1395
|
return () => {
|
|
1472
1396
|
var _observer;
|
|
1473
|
-
|
|
1474
1397
|
ancestors.forEach(ancestor => {
|
|
1475
1398
|
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1476
1399
|
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1477
1400
|
});
|
|
1478
1401
|
(_observer = observer) == null ? void 0 : _observer.disconnect();
|
|
1479
1402
|
observer = null;
|
|
1480
|
-
|
|
1481
1403
|
if (animationFrame) {
|
|
1482
1404
|
cancelAnimationFrame(frameId);
|
|
1483
1405
|
}
|
|
@@ -1489,7 +1411,6 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1489
1411
|
* next to a reference element when it is given a certain CSS positioning
|
|
1490
1412
|
* strategy.
|
|
1491
1413
|
*/
|
|
1492
|
-
|
|
1493
1414
|
const computePosition = (reference, floating, options) => {
|
|
1494
1415
|
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1495
1416
|
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
@@ -1499,10 +1420,12 @@ const computePosition = (reference, floating, options) => {
|
|
|
1499
1420
|
platform,
|
|
1500
1421
|
...options
|
|
1501
1422
|
};
|
|
1502
|
-
const platformWithCache = {
|
|
1423
|
+
const platformWithCache = {
|
|
1424
|
+
...mergedOptions.platform,
|
|
1503
1425
|
_c: cache
|
|
1504
1426
|
};
|
|
1505
|
-
return computePosition$1(reference, floating, {
|
|
1427
|
+
return computePosition$1(reference, floating, {
|
|
1428
|
+
...mergedOptions,
|
|
1506
1429
|
platform: platformWithCache
|
|
1507
1430
|
});
|
|
1508
1431
|
};
|
|
@@ -1536,7 +1459,7 @@ async function patchFloatingUiForNonChromiumBrowsers() {
|
|
|
1536
1459
|
if (config.floatingUINonChromiumPositioningFix &&
|
|
1537
1460
|
// ⚠️ browser-sniffing is not a best practice and should be avoided ⚠️
|
|
1538
1461
|
/firefox|safari/i.test(getUAString())) {
|
|
1539
|
-
const { getClippingRect, getElementRects, getOffsetParent } = await Promise.resolve().then(function () { return require('./nonChromiumPlatformUtils-
|
|
1462
|
+
const { getClippingRect, getElementRects, getOffsetParent } = await Promise.resolve().then(function () { return require('./nonChromiumPlatformUtils-453d73b1.js'); });
|
|
1540
1463
|
platform.getClippingRect = getClippingRect;
|
|
1541
1464
|
platform.getOffsetParent = getOffsetParent;
|
|
1542
1465
|
platform.getElementRects = getElementRects;
|