@esri/solutions-components 0.10.9 → 0.10.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-4bf03edc.js +115 -0
- package/dist/cjs/FloatingArrow-7eca410a.js +48 -0
- package/dist/cjs/Heading-2333bcd2.js +25 -0
- package/dist/cjs/Validation-aa47298a.js +20 -0
- package/dist/cjs/app-globals-7f35a2ee.js +67 -0
- package/dist/cjs/ar-cecfe7a4.js +106 -0
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/array-59824898.js +17 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +8 -8
- package/dist/cjs/bg-4fc20839.js +84 -0
- package/dist/cjs/browser-69696af0.js +35 -0
- package/dist/cjs/bs-3bffda26.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +10 -10
- package/dist/cjs/ca-368f111b.js +73 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +24 -24
- package/dist/cjs/calcite-accordion.cjs.entry.js +18 -8
- package/dist/cjs/calcite-action-bar.cjs.entry.js +16 -16
- package/dist/cjs/calcite-action-group.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +28 -28
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-action_2.cjs.entry.js +49 -19
- package/dist/cjs/calcite-alert_4.cjs.entry.js +155 -119
- package/dist/cjs/calcite-avatar.cjs.entry.js +176 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js +11 -11
- package/dist/cjs/calcite-block_5.cjs.entry.js +92 -60
- package/dist/cjs/calcite-button.cjs.entry.js +21 -34
- package/dist/cjs/calcite-card-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-card.cjs.entry.js +13 -13
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +3 -3
- package/dist/cjs/calcite-carousel.cjs.entry.js +13 -13
- package/dist/cjs/calcite-checkbox.cjs.entry.js +12 -12
- package/dist/cjs/calcite-chip-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip_2.cjs.entry.js +31 -21
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-color-picker.cjs.entry.js +32 -52
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +42 -36
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-dialog.cjs.entry.js +308 -36
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +22 -22
- package/dist/cjs/calcite-fab.cjs.entry.js +9 -9
- package/dist/cjs/calcite-filter_5.cjs.entry.js +27 -27
- package/dist/cjs/calcite-flow_6.cjs.entry.js +131 -45
- package/dist/cjs/calcite-graph_2.cjs.entry.js +26 -22
- package/dist/cjs/calcite-icon.cjs.entry.js +10 -10
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input-number.cjs.entry.js +39 -34
- package/dist/cjs/calcite-input-text.cjs.entry.js +32 -27
- package/dist/cjs/calcite-input-time-picker-de202530.js +1861 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +21 -22
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +168 -87
- package/dist/cjs/calcite-input_2.cjs.entry.js +41 -36
- package/dist/cjs/calcite-label.cjs.entry.js +11 -8
- package/dist/cjs/calcite-link.cjs.entry.js +11 -11
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-menu-item.cjs.entry.js +14 -14
- package/dist/cjs/calcite-menu.cjs.entry.js +11 -11
- package/dist/cjs/calcite-meter.cjs.entry.js +12 -12
- package/dist/cjs/calcite-modal.cjs.entry.js +21 -21
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +7 -7
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +74 -0
- package/dist/cjs/calcite-navigation.cjs.entry.js +9 -9
- package/dist/cjs/calcite-notice.cjs.entry.js +18 -18
- package/dist/cjs/calcite-option-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_2.cjs.entry.js +18 -15
- package/dist/cjs/calcite-pagination.cjs.entry.js +14 -14
- package/dist/cjs/calcite-panel_2.cjs.entry.js +23 -23
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +17 -17
- package/dist/cjs/calcite-pick-list.cjs.entry.js +14 -14
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +13 -7
- package/dist/cjs/calcite-radio-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-rating.cjs.entry.js +17 -17
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +19 -16
- package/dist/cjs/calcite-sheet.cjs.entry.js +17 -15
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +54 -54
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +11 -11
- package/dist/cjs/calcite-split-button.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +15 -15
- package/dist/cjs/calcite-stepper.cjs.entry.js +12 -12
- package/dist/cjs/calcite-switch.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +30 -20
- package/dist/cjs/calcite-table-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-table.cjs.entry.js +14 -14
- package/dist/cjs/calcite-text-area.cjs.entry.js +24 -21
- package/dist/cjs/calcite-tile-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tile.cjs.entry.js +10 -10
- package/dist/cjs/calcite-time-picker.cjs.entry.js +32 -32
- package/dist/cjs/calcite-tip-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tip.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tooltip.cjs.entry.js +18 -14
- package/dist/cjs/calcite-tree_3.cjs.entry.js +44 -26
- package/dist/cjs/card-manager_3.cjs.entry.js +7 -7
- package/dist/cjs/common-4d4cf291.js +37 -0
- package/dist/cjs/component-a4c6a35d.js +33 -0
- package/dist/cjs/conditionalSlot-6b5d9b84.js +54 -0
- package/dist/cjs/config-afe9063b.js +40 -0
- package/dist/cjs/consent-manager.cjs.entry.js +2 -2
- package/dist/cjs/constants-0a4fc296.js +812 -0
- package/dist/cjs/continent-cdee1112.js +34 -0
- package/dist/cjs/country-a8539532.js +446 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -3
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +28 -25
- package/dist/cjs/cs-1386c8b8.js +149 -0
- package/dist/cjs/da-68d9e5ce.js +69 -0
- package/dist/cjs/date-5a57b606.js +264 -0
- package/dist/cjs/de-at-017d79c1.js +92 -0
- package/dist/cjs/de-ch-f892b97a.js +92 -0
- package/dist/cjs/de-f3b48b7d.js +93 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +2 -2
- package/dist/cjs/dom-6a9b6275.js +1215 -0
- package/dist/cjs/downloadUtils-e6e2f8c4.js +3163 -0
- package/dist/cjs/el-16691582.js +68 -0
- package/dist/cjs/en-au-3cba8189.js +68 -0
- package/dist/cjs/en-ca-e63c64a3.js +67 -0
- package/dist/cjs/en-gb-66e297eb.js +71 -0
- package/dist/cjs/es-473df127.js +68 -0
- package/dist/cjs/es-mx-b8fc355d.js +67 -0
- package/dist/cjs/et-dfe831e4.js +94 -0
- package/dist/cjs/feature-comments.cjs.entry.js +2 -2
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +59 -15
- package/dist/cjs/features-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/fi-8ab8c685.js +117 -0
- package/dist/cjs/filter-1f98198b.js +778 -0
- package/dist/cjs/floating-ui-b20fd1f7.js +2373 -0
- package/dist/cjs/focusTrapComponent-a4531bc7.js +1018 -0
- package/dist/cjs/form-5229f1c8.js +381 -0
- package/dist/cjs/fr-ch-9cdf5409.js +68 -0
- package/dist/cjs/fr-fbc089e3.js +70 -0
- package/dist/cjs/guid-02e5380f.js +26 -0
- package/dist/cjs/he-33e82ae7.js +107 -0
- package/dist/cjs/helpers-3a8234e8.js +940 -0
- package/dist/cjs/hi-bc15c04d.js +67 -0
- package/dist/cjs/hr-94438cce.js +82 -0
- package/dist/cjs/hu-e076cebf.js +90 -0
- package/dist/cjs/id-81a2fef0.js +68 -0
- package/dist/cjs/index-5a0af791.js +1782 -0
- package/dist/cjs/index-6189d0bb.js +62 -0
- package/dist/cjs/index-866b8a4c.js +127 -0
- package/dist/cjs/index-d21e03cd.js +14 -0
- package/dist/cjs/index-da709a10.js +201 -0
- package/dist/cjs/index.es-fa362797.js +11317 -0
- package/dist/cjs/input-33270a99.js +60 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +9 -11
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +15 -15
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +13 -13
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +35 -50
- package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +2 -2
- package/dist/cjs/interactive-89f913ba.js +167 -0
- package/dist/cjs/it-549faba6.js +68 -0
- package/dist/cjs/it-ch-f2165d11.js +68 -0
- package/dist/cjs/ja-2c7ee1fb.js +74 -0
- package/dist/cjs/key-d6da79d8.js +19 -0
- package/dist/cjs/ko-ac460bc7.js +74 -0
- package/dist/cjs/label-26ee0ddb.js +186 -0
- package/dist/cjs/layout-manager.cjs.entry.js +3 -3
- package/dist/cjs/list-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/loadable-2e2626dc.js +98 -0
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/locale-42c21404.js +605 -0
- package/dist/cjs/locale-a09603ee.js +160 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/logger-1c9bfcfd.js +61 -0
- package/dist/cjs/lt-8fd46749.js +99 -0
- package/dist/cjs/lv-49bc9ddb.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +10 -10
- package/dist/cjs/math-2911c0c9.js +60 -0
- package/dist/cjs/mk-5a82adab.js +68 -0
- package/dist/cjs/nb-24cd76dd.js +69 -0
- package/dist/cjs/nl-f6394232.js +69 -0
- package/dist/cjs/observers-8fed90f3.js +58 -0
- package/dist/cjs/openCloseComponent-14628d11.js +65 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
- package/dist/cjs/pl-1b2c1ac1.js +116 -0
- package/dist/cjs/popupUtils-92e52dbf.js +121 -0
- package/dist/cjs/pt-b9970ff4.js +69 -0
- package/dist/cjs/pt-br-bfdc1da5.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +8 -8
- package/dist/cjs/publicNotificationStore-f229e839.js +47 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/resources-151788f3.js +23 -0
- package/dist/cjs/resources-3eec4ddc.js +27 -0
- package/dist/cjs/resources-41443a57.js +26 -0
- package/dist/cjs/resources-44478618.js +29 -0
- package/dist/cjs/resources-9fb1bc89.js +68 -0
- package/dist/cjs/resources-dfe71ff2.js +39 -0
- package/dist/cjs/resources-e23d63db.js +39 -0
- package/dist/cjs/resources-e96455bb.js +68 -0
- package/dist/cjs/resources-ed5f0434.js +21 -0
- package/dist/cjs/resources-fac4579f.js +23 -0
- package/dist/cjs/restHelpersGet-88ba0e25.js +975 -0
- package/dist/cjs/ro-d3dcee3e.js +68 -0
- package/dist/cjs/ru-86dc7992.js +128 -0
- package/dist/cjs/share-item.cjs.entry.js +2 -2
- package/dist/cjs/shared-list-render-54fa8d30.js +361 -0
- package/dist/cjs/sk-f4477e9e.js +150 -0
- package/dist/cjs/sl-056c7a3e.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +10 -10
- package/dist/cjs/solution-contents_3.cjs.entry.js +10 -10
- package/dist/cjs/solution-resource-16c7510c.js +1843 -0
- package/dist/cjs/solution-store-1218246d.js +1353 -0
- package/dist/cjs/solutions-components.cjs.js +7 -7
- package/dist/cjs/sortableComponent-9bfb9488.js +2748 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +5 -5
- package/dist/cjs/sr-98be5235.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +6 -6
- package/dist/cjs/sv-cb8dd245.js +73 -0
- package/dist/cjs/t9n-42ba6ea3.js +108 -0
- package/dist/cjs/templates-2f44c01b.js +407 -0
- package/dist/cjs/th-9d1805bf.js +67 -0
- package/dist/cjs/time-d48f5d3e.js +301 -0
- package/dist/cjs/time-zones-cd027b1e.js +367 -0
- package/dist/cjs/tr-833a6ecc.js +68 -0
- package/dist/cjs/uk-df027a8a.js +106 -0
- package/dist/cjs/utils-051e0119.js +78 -0
- package/dist/cjs/utils-357c41eb.js +2304 -0
- package/dist/cjs/utils-a2799a10.js +130 -0
- package/dist/cjs/vi-2f15ae72.js +72 -0
- package/dist/cjs/zh-cn-ede80e9d.js +96 -0
- package/dist/cjs/zh-hk-5de99bec.js +94 -0
- package/dist/cjs/zh-tw-9cf1d1bd.js +94 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/create-feature/create-feature.css +13 -0
- package/dist/collection/components/create-feature/create-feature.js +112 -13
- package/dist/collection/components/create-related-feature/create-related-feature.js +11 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +44 -23
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.js +29 -9
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.css +13 -2
- package/dist/collection/components/feature-list/feature-list.js +70 -8
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +1 -1
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/crowdsource-reporter.html +11 -3
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Validation.js +2 -2
- package/dist/components/action-bar.js +2 -2
- package/dist/components/action-group.js +2 -2
- package/dist/components/action-menu.js +2 -2
- package/dist/components/action-pad.js +2 -2
- package/dist/components/action.js +2 -2
- package/dist/components/alert.js +141 -103
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +2 -2
- package/dist/components/block.js +8 -10
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +7 -22
- package/dist/components/calcite-accordion-item.js +15 -15
- package/dist/components/calcite-accordion.js +15 -5
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-card.js +2 -2
- package/dist/components/calcite-carousel-item.js +1 -1
- package/dist/components/calcite-carousel.js +1 -1
- package/dist/components/calcite-color-picker.js +19 -39
- package/dist/components/calcite-combobox-item-group.js +1 -69
- package/dist/components/calcite-dialog.js +303 -22
- package/dist/components/calcite-fab.js +2 -2
- package/dist/components/calcite-inline-editable.js +4 -4
- package/dist/components/calcite-input-time-picker.js +38 -40
- package/dist/components/calcite-input-time-zone.js +166 -79
- package/dist/components/calcite-list-item-group.js +2 -2
- package/dist/components/calcite-menu-item.js +4 -4
- package/dist/components/calcite-meter.js +2 -2
- package/dist/components/calcite-navigation-logo.js +3 -3
- package/dist/components/calcite-navigation.js +3 -3
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-radio-button-group.js +6 -2
- package/dist/components/calcite-rating.js +3 -3
- package/dist/components/calcite-sheet.js +7 -5
- package/dist/components/calcite-shell-center-row.js +3 -3
- package/dist/components/calcite-sortable-list.js +3 -3
- package/dist/components/calcite-split-button.js +2 -2
- package/dist/components/calcite-stepper-item.js +4 -4
- package/dist/components/calcite-stepper.js +3 -3
- package/dist/components/calcite-table-row.js +2 -2
- package/dist/components/calcite-table.js +4 -4
- package/dist/components/calcite-text-area.js +8 -5
- package/dist/components/calcite-tile-group.js +2 -2
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +3 -3
- package/dist/components/calcite-tile.js +3 -3
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +2 -2
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item-group.js +76 -0
- package/dist/components/combobox-item.js +20 -6
- package/dist/components/combobox.js +18 -12
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +5 -5
- package/dist/components/continent.js +31 -0
- package/dist/components/country.js +444 -0
- package/dist/components/create-feature2.js +82 -14
- package/dist/components/create-related-feature2.js +11 -2
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +39 -29
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/dom.js +10 -7
- package/dist/components/dropdown-group.js +2 -2
- package/dist/components/dropdown-item.js +4 -4
- package/dist/components/dropdown.js +6 -6
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +24 -15
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +64 -13
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +3 -3
- package/dist/components/floating-ui.js +17 -6
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/flow-item.js +14 -5
- package/dist/components/flow.js +2 -2
- 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 +3 -3
- package/dist/components/icon.js +4 -4
- package/dist/components/index.js +2 -2
- package/dist/components/index4.js +4 -196
- package/dist/components/index5.js +51 -62
- package/dist/components/index6.js +125 -0
- package/dist/components/info-card2.js +2 -2
- package/dist/components/input-date-picker.js +27 -20
- package/dist/components/input-message.js +2 -2
- package/dist/components/input-number.js +24 -19
- package/dist/components/input-text.js +17 -12
- package/dist/components/input.js +25 -20
- package/dist/components/input2.js +1 -1
- package/dist/components/instant-apps-filter-list2.js +39 -7
- package/dist/components/instant-apps-landing-page.js +8 -10
- package/dist/components/instant-apps-language-switcher.js +8 -8
- package/dist/components/instant-apps-language-translator2.js +759 -8
- package/dist/components/instant-apps-sign-in2.js +34 -49
- package/dist/components/interactive.js +2 -4
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +5 -2
- package/dist/components/layer-table2.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/link.js +4 -4
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/list-item.js +2 -2
- package/dist/components/list.js +2 -2
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +41 -6
- package/dist/components/locale2.js +23 -3
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/logger.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/modal.js +5 -5
- package/dist/components/navigation-user.js +3 -3
- package/dist/components/notice.js +4 -4
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/option.js +1 -1
- package/dist/components/pagination.js +3 -3
- package/dist/components/panel.js +10 -6
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/pick-list-item.js +2 -2
- package/dist/components/popover.js +6 -6
- package/dist/components/progress.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/radio-button.js +2 -2
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.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/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/restHelpersGet.js +19 -23
- package/dist/components/scrim.js +2 -2
- package/dist/components/segmented-control-item.js +2 -2
- package/dist/components/segmented-control.js +6 -3
- package/dist/components/select.js +6 -3
- package/dist/components/share-item.js +1 -1
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/shell-panel.js +3 -3
- package/dist/components/shell.js +3 -3
- package/dist/components/slider.js +12 -8
- package/dist/components/solution-configuration.js +11 -17
- package/dist/components/solution-contents2.js +2 -8
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +9 -15
- package/dist/components/solution-organization-variables2.js +2 -8
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-resource.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-store.js +56 -63
- package/dist/components/solution-template-data2.js +7 -13
- package/dist/components/solution-variables2.js +2 -8
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/spatial-ref.js +2 -8
- package/dist/components/stack.js +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +4 -4
- package/dist/components/tab-title.js +5 -5
- package/dist/components/tab.js +2 -2
- package/dist/components/table-cell.js +3 -3
- package/dist/components/table-header.js +15 -5
- package/dist/components/tabs.js +2 -2
- package/dist/components/time-picker.js +21 -21
- package/dist/components/time-zones.js +365 -0
- package/dist/components/tooltip.js +10 -6
- package/dist/components/tree-item.js +33 -20
- package/dist/components/tree.js +3 -3
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +8 -3
- package/dist/components/utils3.js +1 -1
- package/dist/components/value-list-item.js +2 -2
- package/dist/components/value-list.js +2 -2
- package/dist/esm/ExpandToggle-bddb5e82.js +108 -0
- package/dist/esm/FloatingArrow-adf66cf8.js +46 -0
- package/dist/esm/Heading-20345c69.js +22 -0
- package/dist/esm/Validation-63949b7d.js +18 -0
- package/dist/esm/app-globals-5d3ac5ed.js +65 -0
- package/dist/esm/ar-c466a382.js +104 -0
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/array-dd6e2c7d.js +15 -0
- package/dist/esm/basemap-gallery_7.entry.js +8 -8
- package/dist/esm/bg-9cb15225.js +82 -0
- package/dist/esm/browser-552eb2d0.js +32 -0
- package/dist/esm/bs-f5629d7c.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +10 -10
- package/dist/esm/ca-4bf4a8d1.js +71 -0
- package/dist/esm/calcite-accordion-item.entry.js +24 -24
- package/dist/esm/calcite-accordion.entry.js +18 -8
- package/dist/esm/calcite-action-bar.entry.js +16 -16
- package/dist/esm/calcite-action-group.entry.js +14 -14
- package/dist/esm/calcite-action-menu_3.entry.js +28 -28
- package/dist/esm/calcite-action-pad_2.entry.js +16 -16
- package/dist/esm/calcite-action_2.entry.js +49 -19
- package/dist/esm/calcite-alert_4.entry.js +155 -119
- package/dist/esm/calcite-avatar.entry.js +172 -0
- package/dist/esm/calcite-block-section.entry.js +11 -11
- package/dist/esm/calcite-block_5.entry.js +92 -60
- package/dist/esm/calcite-button.entry.js +21 -34
- package/dist/esm/calcite-card-group.entry.js +7 -7
- package/dist/esm/calcite-card.entry.js +13 -13
- package/dist/esm/calcite-carousel-item.entry.js +3 -3
- package/dist/esm/calcite-carousel.entry.js +13 -13
- package/dist/esm/calcite-checkbox.entry.js +12 -12
- package/dist/esm/calcite-chip-group.entry.js +7 -7
- package/dist/esm/calcite-chip_2.entry.js +31 -21
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +9 -9
- package/dist/esm/calcite-color-picker.entry.js +32 -52
- package/dist/esm/calcite-combobox-item-group.entry.js +7 -7
- package/dist/esm/calcite-combobox_3.entry.js +42 -36
- package/dist/esm/calcite-date-picker-day_3.entry.js +14 -14
- package/dist/esm/calcite-dialog.entry.js +308 -36
- package/dist/esm/calcite-dropdown_2.entry.js +22 -22
- package/dist/esm/calcite-fab.entry.js +9 -9
- package/dist/esm/calcite-filter_5.entry.js +27 -27
- package/dist/esm/calcite-flow_6.entry.js +131 -45
- package/dist/esm/calcite-graph_2.entry.js +26 -22
- package/dist/esm/calcite-icon.entry.js +10 -10
- package/dist/esm/calcite-inline-editable.entry.js +17 -17
- package/dist/esm/calcite-input-number.entry.js +39 -34
- package/dist/esm/calcite-input-text.entry.js +32 -27
- package/dist/esm/calcite-input-time-picker-60dbdc25.js +1858 -0
- package/dist/esm/calcite-input-time-picker.entry.js +21 -22
- package/dist/esm/calcite-input-time-zone.entry.js +168 -87
- package/dist/esm/calcite-input_2.entry.js +41 -36
- package/dist/esm/calcite-label.entry.js +11 -8
- package/dist/esm/calcite-link.entry.js +11 -11
- package/dist/esm/calcite-list-item-group.entry.js +6 -6
- package/dist/esm/calcite-menu-item.entry.js +14 -14
- package/dist/esm/calcite-menu.entry.js +11 -11
- package/dist/esm/calcite-meter.entry.js +12 -12
- package/dist/esm/calcite-modal.entry.js +21 -21
- package/dist/esm/calcite-navigation-logo.entry.js +7 -7
- package/dist/esm/calcite-navigation-user.entry.js +70 -0
- package/dist/esm/calcite-navigation.entry.js +9 -9
- package/dist/esm/calcite-notice.entry.js +18 -18
- package/dist/esm/calcite-option-group.entry.js +2 -2
- package/dist/esm/calcite-option_2.entry.js +18 -15
- package/dist/esm/calcite-pagination.entry.js +14 -14
- package/dist/esm/calcite-panel_2.entry.js +23 -23
- package/dist/esm/calcite-pick-list-group.entry.js +12 -12
- package/dist/esm/calcite-pick-list-item.entry.js +17 -17
- package/dist/esm/calcite-pick-list.entry.js +14 -14
- package/dist/esm/calcite-radio-button-group.entry.js +13 -7
- package/dist/esm/calcite-radio-button.entry.js +13 -13
- package/dist/esm/calcite-rating.entry.js +17 -17
- package/dist/esm/calcite-segmented-control_2.entry.js +19 -16
- package/dist/esm/calcite-sheet.entry.js +17 -15
- package/dist/esm/calcite-shell-center-row.entry.js +10 -10
- package/dist/esm/calcite-shell-panel_14.entry.js +54 -54
- package/dist/esm/calcite-sortable-list.entry.js +11 -11
- package/dist/esm/calcite-split-button.entry.js +6 -6
- package/dist/esm/calcite-stepper-item.entry.js +15 -15
- package/dist/esm/calcite-stepper.entry.js +12 -12
- package/dist/esm/calcite-switch.entry.js +13 -13
- package/dist/esm/calcite-table-cell_2.entry.js +30 -20
- package/dist/esm/calcite-table-row.entry.js +10 -10
- package/dist/esm/calcite-table.entry.js +14 -14
- package/dist/esm/calcite-text-area.entry.js +24 -21
- package/dist/esm/calcite-tile-group.entry.js +9 -9
- package/dist/esm/calcite-tile-select-group.entry.js +6 -6
- package/dist/esm/calcite-tile-select.entry.js +10 -10
- package/dist/esm/calcite-tile.entry.js +10 -10
- package/dist/esm/calcite-time-picker.entry.js +32 -32
- package/dist/esm/calcite-tip-group.entry.js +4 -4
- package/dist/esm/calcite-tip-manager.entry.js +13 -13
- package/dist/esm/calcite-tip.entry.js +15 -15
- package/dist/esm/calcite-tooltip.entry.js +18 -14
- package/dist/esm/calcite-tree_3.entry.js +44 -26
- package/dist/esm/card-manager_3.entry.js +7 -7
- package/dist/esm/common-3b99e350.js +35 -0
- package/dist/esm/component-c2c32481.js +30 -0
- package/dist/esm/conditionalSlot-60e775f3.js +51 -0
- package/dist/esm/config-2fa7bb77.js +36 -0
- package/dist/esm/consent-manager.entry.js +2 -2
- package/dist/esm/constants-045d6a1b.js +808 -0
- package/dist/esm/continent-125eb777.js +31 -0
- package/dist/esm/country-2d5661ee.js +444 -0
- package/dist/esm/crowdsource-manager.entry.js +3 -3
- package/dist/esm/crowdsource-reporter.entry.js +28 -25
- package/dist/esm/cs-41ed0d89.js +147 -0
- package/dist/esm/da-a8c74a48.js +67 -0
- package/dist/esm/date-45f24c42.js +248 -0
- package/dist/esm/de-9a636f1a.js +91 -0
- package/dist/esm/de-at-26352836.js +90 -0
- package/dist/esm/de-ch-25495449.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +2 -2
- package/dist/esm/dom-b5c50286.js +1180 -0
- package/dist/esm/downloadUtils-74bc82ae.js +3156 -0
- package/dist/esm/el-82ffddec.js +66 -0
- package/dist/esm/en-au-0f081a3c.js +66 -0
- package/dist/esm/en-ca-f04aeac2.js +65 -0
- package/dist/esm/en-gb-81e968d6.js +69 -0
- package/dist/esm/es-e058977a.js +66 -0
- package/dist/esm/es-mx-14a1f320.js +65 -0
- package/dist/esm/et-4a06c642.js +92 -0
- package/dist/esm/feature-comments.entry.js +2 -2
- package/dist/esm/feature-form-flow-item.entry.js +2 -2
- package/dist/esm/feature-list.entry.js +59 -15
- package/dist/esm/features-flow-item.entry.js +2 -2
- package/dist/esm/fi-9673a0e6.js +115 -0
- package/dist/esm/filter-23b3858b.js +775 -0
- package/dist/esm/floating-ui-ba0acfca.js +2365 -0
- package/dist/esm/focusTrapComponent-6ec0f681.js +1013 -0
- package/dist/esm/form-ba965042.js +372 -0
- package/dist/esm/fr-94ff7253.js +68 -0
- package/dist/esm/fr-ch-00b7e60e.js +66 -0
- package/dist/esm/guid-4c746a7f.js +24 -0
- package/dist/esm/he-faefbd69.js +105 -0
- package/dist/esm/helpers-3be8dbbc.js +913 -0
- package/dist/esm/hi-923b9ffd.js +65 -0
- package/dist/esm/hr-6ed6939b.js +80 -0
- package/dist/esm/hu-25918d1e.js +88 -0
- package/dist/esm/id-520427a1.js +66 -0
- package/dist/esm/index-2c724afd.js +199 -0
- package/dist/esm/index-87ec7c0a.js +71 -0
- package/dist/esm/index-ad182a71.js +125 -0
- package/dist/esm/index-b793d9aa.js +1748 -0
- package/dist/esm/index-f5d562b1.js +60 -0
- package/dist/esm/index-f8c935d6.js +12 -0
- package/dist/esm/index.es-40ce1695.js +11230 -0
- package/dist/esm/input-d11f5ac8.js +58 -0
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +1 -1
- package/dist/esm/instant-apps-export-views.entry.js +1 -1
- package/dist/esm/instant-apps-export.entry.js +1 -1
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +3 -3
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +1 -1
- package/dist/esm/instant-apps-landing-page.entry.js +9 -11
- package/dist/esm/instant-apps-language-switcher.entry.js +11 -11
- package/dist/esm/instant-apps-language-translator.entry.js +11 -11
- package/dist/esm/instant-apps-measurement.entry.js +1 -1
- package/dist/esm/instant-apps-popover.entry.js +1 -1
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
- package/dist/esm/instant-apps-sign-in.entry.js +35 -50
- package/dist/esm/instant-apps-splash.entry.js +1 -1
- package/dist/esm/instant-apps-time-filter.entry.js +2 -2
- package/dist/esm/interactive-742ba555.js +162 -0
- package/dist/esm/it-7751f7dc.js +66 -0
- package/dist/esm/it-ch-cec3226b.js +66 -0
- package/dist/esm/ja-1df4233a.js +72 -0
- package/dist/esm/key-58898f0a.js +16 -0
- package/dist/esm/ko-a104769f.js +72 -0
- package/dist/esm/label-0b82858a.js +179 -0
- package/dist/esm/layout-manager.entry.js +3 -3
- package/dist/esm/list-flow-item.entry.js +2 -2
- package/dist/esm/loadable-73f289b6.js +93 -0
- package/dist/esm/loader.js +7 -7
- package/dist/esm/locale-21e40b0c.js +591 -0
- package/dist/esm/locale-b1d53fb1.js +155 -0
- package/dist/esm/location-flow-item.entry.js +2 -2
- package/dist/esm/logger-0d6e5bfe.js +59 -0
- package/dist/esm/lt-747213da.js +97 -0
- package/dist/esm/lv-06088b99.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +10 -10
- package/dist/esm/math-8c04292e.js +54 -0
- package/dist/esm/mk-5f581ea0.js +66 -0
- package/dist/esm/nb-f9d01bec.js +67 -0
- package/dist/esm/nl-48b9338d.js +67 -0
- package/dist/esm/observers-e2484555.js +56 -0
- package/dist/esm/openCloseComponent-7b8f2e24.js +63 -0
- package/dist/esm/pci-calculator.entry.js +2 -2
- package/dist/esm/pl-2ff50be7.js +114 -0
- package/dist/esm/popupUtils-00c655fb.js +119 -0
- package/dist/esm/pt-br-45ae496b.js +65 -0
- package/dist/esm/pt-ed25c80b.js +67 -0
- package/dist/esm/public-notification.entry.js +8 -8
- package/dist/esm/publicNotificationStore-7b0b97b6.js +45 -0
- package/dist/esm/refine-results-flow-item.entry.js +2 -2
- package/dist/esm/resources-2d6e35cf.js +20 -0
- package/dist/esm/resources-30b747d4.js +23 -0
- package/dist/esm/resources-5ba50a1d.js +19 -0
- package/dist/esm/resources-64237427.js +63 -0
- package/dist/esm/resources-8665df6b.js +62 -0
- package/dist/esm/resources-896b6b00.js +35 -0
- package/dist/esm/resources-8f90cf93.js +22 -0
- package/dist/esm/resources-bc5c2adb.js +21 -0
- package/dist/esm/resources-cfbcc1ed.js +24 -0
- package/dist/esm/resources-defbb49f.js +34 -0
- package/dist/esm/restHelpersGet-788d7f7b.js +960 -0
- package/dist/esm/ro-c5727d93.js +66 -0
- package/dist/esm/ru-ecb35906.js +126 -0
- package/dist/esm/share-item.entry.js +2 -2
- package/dist/esm/shared-list-render-4053f1dc.js +339 -0
- package/dist/esm/sk-e9c31458.js +148 -0
- package/dist/esm/sl-063df216.js +168 -0
- package/dist/esm/solution-configuration.entry.js +10 -10
- package/dist/esm/solution-contents_3.entry.js +10 -10
- package/dist/esm/solution-resource-966f8511.js +1840 -0
- package/dist/esm/solution-store-61fd39ea.js +1351 -0
- package/dist/esm/solutions-components.js +8 -8
- package/dist/esm/sortableComponent-3f9e9322.js +2745 -0
- package/dist/esm/spatial-ref.entry.js +5 -5
- package/dist/esm/sr-68f70e45.js +101 -0
- package/dist/esm/store-manager.entry.js +6 -6
- package/dist/esm/sv-b5a85ee5.js +71 -0
- package/dist/esm/t9n-2fb3af62.js +103 -0
- package/dist/esm/templates-9330d7b8.js +401 -0
- package/dist/esm/th-3a5ed31b.js +65 -0
- package/dist/esm/time-a215e415.js +286 -0
- package/dist/esm/time-zones-211c88e3.js +365 -0
- package/dist/esm/tr-b8829177.js +66 -0
- package/dist/esm/uk-c74df043.js +104 -0
- package/dist/esm/utils-13c5908e.js +65 -0
- package/dist/esm/utils-1f0d1828.js +2274 -0
- package/dist/esm/utils-5b977646.js +121 -0
- package/dist/esm/vi-a5092b10.js +70 -0
- package/dist/esm/zh-cn-f1e998fb.js +94 -0
- package/dist/esm/zh-hk-3ec32fe3.js +92 -0
- package/dist/esm/zh-tw-33f4a290.js +92 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +43 -35
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +127 -150
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +79 -100
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +22 -36
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +25 -22
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +17 -12
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +15 -23
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +9 -9
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +6 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +5 -14
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +10 -10
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +5 -18
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +12 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +17 -12
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +64 -48
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +12 -11
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +8 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +19 -17
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +7 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +6 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +23 -19
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +8 -8
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +9 -10
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +46 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +12 -11
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +20 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +8 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +8 -8
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +12 -11
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +22 -10
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +5 -5
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +2 -15
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +11 -14
- package/dist/solutions-components/assets/dialog/t9n/index.d.ts +2 -0
- package/dist/solutions-components/assets/dialog/t9n/messages.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_en.json +3 -1
- package/dist/solutions-components/assets/icon/closedCaption16.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption16F.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption24.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption24F.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption32.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption32F.json +1 -0
- package/dist/solutions-components/assets/icon/flag16.json +1 -0
- package/dist/solutions-components/assets/icon/flag16F.json +1 -0
- package/dist/solutions-components/assets/icon/flag24.json +1 -0
- package/dist/solutions-components/assets/icon/flag24F.json +1 -0
- package/dist/solutions-components/assets/icon/flag32.json +1 -0
- package/dist/solutions-components/assets/icon/flag32F.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash16.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash24.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash32.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection16.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection24.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection32.json +1 -0
- package/dist/solutions-components/assets/icon/transcript16.json +1 -0
- package/dist/solutions-components/assets/icon/transcript16F.json +1 -0
- package/dist/solutions-components/assets/icon/transcript24.json +1 -0
- package/dist/solutions-components/assets/icon/transcript24F.json +1 -0
- package/dist/solutions-components/assets/icon/transcript32.json +1 -0
- package/dist/solutions-components/assets/icon/transcript32F.json +1 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/index.d.ts +261 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/messages.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_en.json +262 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +11 -3
- package/dist/solutions-components/p-0005175a.js +16 -0
- package/dist/solutions-components/p-004d601f.entry.js +6 -0
- package/dist/solutions-components/p-00d131cd.entry.js +11 -0
- package/dist/solutions-components/p-013188f8.entry.js +6 -0
- package/dist/solutions-components/p-01df774b.js +11 -0
- package/dist/solutions-components/p-0215daed.js +6 -0
- package/dist/solutions-components/p-022c49af.js +489 -0
- package/dist/solutions-components/p-04f09e7f.entry.js +11 -0
- package/dist/solutions-components/p-0558fbc7.js +143 -0
- package/dist/solutions-components/p-058b77d7.entry.js +6 -0
- package/dist/solutions-components/p-05b7d3ce.js +6 -0
- package/dist/solutions-components/p-06084e6c.js +11 -0
- package/dist/solutions-components/p-064e43e0.entry.js +6 -0
- package/dist/solutions-components/p-089bc565.js +11 -0
- package/dist/solutions-components/p-0fe5de6b.entry.js +6 -0
- package/dist/solutions-components/p-1061076b.js +6 -0
- package/dist/solutions-components/p-14fbc662.js +11 -0
- package/dist/solutions-components/p-1500d4c7.js +6 -0
- package/dist/solutions-components/p-16d4eb72.entry.js +16 -0
- package/dist/solutions-components/p-172fcecd.entry.js +11 -0
- package/dist/solutions-components/p-1892c357.js +11 -0
- package/dist/solutions-components/p-18f18ab3.js +11 -0
- package/dist/solutions-components/p-1900269a.entry.js +6 -0
- package/dist/solutions-components/p-19a942c4.entry.js +16 -0
- package/dist/solutions-components/p-1a9a47a0.js +11 -0
- package/dist/solutions-components/p-1bbe9e22.js +6 -0
- package/dist/solutions-components/p-1d71e81f.js +11 -0
- package/dist/solutions-components/p-1d99dfcd.entry.js +11 -0
- package/dist/solutions-components/p-1e455668.js +6 -0
- package/dist/solutions-components/p-1ed47f10.entry.js +21 -0
- package/dist/solutions-components/p-1f40908b.entry.js +11 -0
- package/dist/solutions-components/p-2058b5d9.js +36 -0
- package/dist/solutions-components/p-207b4e70.entry.js +11 -0
- package/dist/solutions-components/p-24997e81.js +6 -0
- package/dist/solutions-components/p-25a1fe4d.js +6 -0
- package/dist/solutions-components/p-25c584f4.entry.js +17 -0
- package/dist/solutions-components/p-26eb6f09.js +6 -0
- package/dist/solutions-components/p-274cad02.entry.js +6 -0
- package/dist/solutions-components/p-2ab773ed.js +6 -0
- package/dist/solutions-components/p-2c423f9c.js +6 -0
- package/dist/solutions-components/p-2cff27c5.js +22 -0
- package/dist/solutions-components/p-2d1afda0.entry.js +17 -0
- package/dist/solutions-components/p-2ed8e994.entry.js +17 -0
- package/dist/solutions-components/p-3110db7a.entry.js +6 -0
- package/dist/solutions-components/p-31f7dd8e.entry.js +6 -0
- package/dist/solutions-components/p-32be7387.js +6 -0
- package/dist/solutions-components/p-336b8f46.js +6 -0
- package/dist/solutions-components/p-371dbb0f.entry.js +6 -0
- package/dist/solutions-components/p-388725c2.entry.js +6 -0
- package/dist/solutions-components/p-3917c6f8.entry.js +11 -0
- package/dist/solutions-components/p-3a74aab6.entry.js +6 -0
- package/dist/solutions-components/p-3c1945a9.js +6 -0
- package/dist/solutions-components/p-3d0666fe.js +6 -0
- package/dist/solutions-components/p-3d6b18ec.entry.js +11 -0
- package/dist/solutions-components/p-3df511e0.entry.js +6 -0
- package/dist/solutions-components/p-3eff6da3.js +11 -0
- package/dist/solutions-components/p-3f9238e9.entry.js +11 -0
- package/dist/solutions-components/p-40724bfb.js +11 -0
- package/dist/solutions-components/p-40d7e510.js +6 -0
- package/dist/solutions-components/p-415cf05e.js +12 -0
- package/dist/solutions-components/p-4216af0e.js +6 -0
- package/dist/solutions-components/p-42a8493c.entry.js +6 -0
- package/dist/solutions-components/p-44240d03.js +18 -0
- package/dist/solutions-components/p-4514dc6f.entry.js +11 -0
- package/dist/solutions-components/p-47f6f996.entry.js +6 -0
- package/dist/solutions-components/p-49118e69.js +6 -0
- package/dist/solutions-components/p-4a0d9efe.entry.js +6 -0
- package/dist/solutions-components/p-4de4fff6.entry.js +6 -0
- package/dist/solutions-components/p-4f06e105.entry.js +11 -0
- package/dist/solutions-components/p-4f074a84.entry.js +11 -0
- package/dist/solutions-components/p-4f474f64.js +6 -0
- package/dist/solutions-components/p-4fc5ab17.js +6 -0
- package/dist/solutions-components/p-51270f04.entry.js +6 -0
- package/dist/solutions-components/p-52576649.entry.js +17 -0
- package/dist/solutions-components/p-534cd147.js +6 -0
- package/dist/solutions-components/p-544cd7fd.entry.js +11 -0
- package/dist/solutions-components/p-56601650.js +11 -0
- package/dist/solutions-components/p-569ccf2c.entry.js +11 -0
- package/dist/solutions-components/p-56b9dc0d.entry.js +11 -0
- package/dist/solutions-components/p-580a4537.js +11 -0
- package/dist/solutions-components/p-58405b19.entry.js +11 -0
- package/dist/solutions-components/p-5c1366f7.entry.js +11 -0
- package/dist/solutions-components/p-5cca7ef7.entry.js +17 -0
- package/dist/solutions-components/p-5dcec135.js +21 -0
- package/dist/solutions-components/p-5ee4ba5c.js +6 -0
- package/dist/solutions-components/p-6070857c.js +6 -0
- package/dist/solutions-components/p-61f47dfa.entry.js +11 -0
- package/dist/solutions-components/p-621e306e.js +6 -0
- package/dist/solutions-components/p-62c6764c.js +6 -0
- package/dist/solutions-components/p-66be22db.entry.js +11 -0
- package/dist/solutions-components/p-682d053f.entry.js +6 -0
- package/dist/solutions-components/p-68ec5c15.js +17 -0
- package/dist/solutions-components/p-6d6c3d56.js +6 -0
- package/dist/solutions-components/p-6eb37ed2.js +7 -0
- package/dist/solutions-components/p-6f253995.js +61 -0
- package/dist/solutions-components/p-6fb5c228.entry.js +11 -0
- package/dist/solutions-components/p-70b46ea4.js +6 -0
- package/dist/solutions-components/p-712269bc.entry.js +29 -0
- package/dist/solutions-components/p-720a12c0.js +6 -0
- package/dist/solutions-components/p-7324cb9f.js +6 -0
- package/dist/solutions-components/p-7699e80b.js +11 -0
- package/dist/solutions-components/p-7987d73b.entry.js +6 -0
- package/dist/solutions-components/p-7a61d771.entry.js +11 -0
- package/dist/solutions-components/p-7b0b9681.js +6 -0
- package/dist/solutions-components/p-7b68d1ea.js +6 -0
- package/dist/solutions-components/p-7c00971f.js +6 -0
- package/dist/solutions-components/p-7c583516.js +50 -0
- package/dist/solutions-components/p-7ca6f4d5.entry.js +6 -0
- package/dist/solutions-components/p-7d32b6a4.entry.js +11 -0
- package/dist/solutions-components/p-7d484762.entry.js +6 -0
- package/dist/solutions-components/p-7eb5d31a.js +6 -0
- package/dist/solutions-components/p-81790f41.js +6 -0
- package/dist/solutions-components/p-8208ba6c.entry.js +6 -0
- package/dist/solutions-components/p-8241cd35.js +11 -0
- package/dist/solutions-components/p-83786108.js +6 -0
- package/dist/solutions-components/p-84a049f7.entry.js +6 -0
- package/dist/solutions-components/p-8524bacc.js +11 -0
- package/dist/solutions-components/p-86d877d8.entry.js +17 -0
- package/dist/solutions-components/p-89195780.entry.js +29 -0
- package/dist/solutions-components/p-8a177acd.entry.js +11 -0
- package/dist/solutions-components/p-8c2d05c1.js +6 -0
- package/dist/solutions-components/p-8ce7e559.entry.js +11 -0
- package/dist/solutions-components/p-8d576a9a.js +6 -0
- package/dist/solutions-components/p-8df67871.entry.js +11 -0
- package/dist/solutions-components/p-8f07cef3.entry.js +11 -0
- package/dist/solutions-components/p-8f0ee4b0.js +17 -0
- package/dist/solutions-components/p-8f218bfe.entry.js +11 -0
- package/dist/solutions-components/p-900fee65.js +21 -0
- package/dist/solutions-components/p-92baaf77.entry.js +11 -0
- package/dist/solutions-components/p-939bc1b4.js +16 -0
- package/dist/solutions-components/p-93fd86cd.entry.js +6 -0
- package/dist/solutions-components/p-960baebc.entry.js +6 -0
- package/dist/solutions-components/p-969008d8.entry.js +6 -0
- package/dist/solutions-components/p-97331a60.entry.js +12 -0
- package/dist/solutions-components/p-976ad17d.entry.js +6 -0
- package/dist/solutions-components/p-99af3f50.js +6 -0
- package/dist/solutions-components/p-9ab3df4f.js +11 -0
- package/dist/solutions-components/p-9d0528ac.js +6 -0
- package/dist/solutions-components/p-9dc4186e.entry.js +11 -0
- package/dist/solutions-components/p-9ec1aa8c.js +6 -0
- package/dist/solutions-components/p-9f0b8f8b.js +11 -0
- package/dist/solutions-components/p-9f574f86.entry.js +6 -0
- package/dist/solutions-components/p-9f63a45c.js +11 -0
- package/dist/solutions-components/p-9f8b30b5.entry.js +11 -0
- package/dist/solutions-components/p-a0db88ed.js +6 -0
- package/dist/solutions-components/p-a2246051.entry.js +17 -0
- package/dist/solutions-components/p-a432f638.entry.js +6 -0
- package/dist/solutions-components/p-a474882d.js +6 -0
- package/dist/solutions-components/p-a5609b81.js +11 -0
- package/dist/solutions-components/p-a6935ddf.js +6 -0
- package/dist/solutions-components/p-a6aba7d4.entry.js +6 -0
- package/dist/solutions-components/p-a72f5cc6.js +6 -0
- package/dist/solutions-components/p-a84b3d50.js +6 -0
- package/dist/solutions-components/p-a858460b.entry.js +47 -0
- package/dist/solutions-components/p-a94a0072.js +6 -0
- package/dist/solutions-components/p-a957cdd8.entry.js +11 -0
- package/dist/solutions-components/p-aa0ac2d2.js +16 -0
- package/dist/solutions-components/p-aa3140aa.entry.js +6 -0
- package/dist/solutions-components/p-aa71106f.entry.js +11 -0
- package/dist/solutions-components/p-ac52e0ba.js +11 -0
- package/dist/solutions-components/p-acaae81d.js +11 -0
- package/dist/solutions-components/p-aeb86188.js +11 -0
- package/dist/solutions-components/p-afcd5996.js +11 -0
- package/dist/solutions-components/p-b12af1e0.entry.js +17 -0
- package/dist/solutions-components/p-b1bc21ac.js +11 -0
- package/dist/solutions-components/p-b39c5275.js +11 -0
- package/dist/solutions-components/p-b3f2bb6f.js +6 -0
- package/dist/solutions-components/p-b448a7a7.js +6 -0
- package/dist/solutions-components/p-b5963a0f.js +6 -0
- package/dist/solutions-components/p-b7c200a0.entry.js +12 -0
- package/dist/solutions-components/p-b8eee32e.js +6 -0
- package/dist/solutions-components/p-bb9ac684.entry.js +6 -0
- package/dist/solutions-components/p-bc0aaf2f.entry.js +11 -0
- package/dist/solutions-components/p-bc14b643.entry.js +12 -0
- package/dist/solutions-components/p-bc1d8894.js +11 -0
- package/dist/solutions-components/p-bc33d298.js +6 -0
- package/dist/solutions-components/p-bcc79697.js +11 -0
- package/dist/solutions-components/p-beb23ced.entry.js +6 -0
- package/dist/solutions-components/p-bef2141e.entry.js +6 -0
- package/dist/solutions-components/p-bfa395e9.js +6 -0
- package/dist/solutions-components/p-c2964e00.entry.js +11 -0
- package/dist/solutions-components/p-c5e13ebc.js +11 -0
- package/dist/solutions-components/p-c638d28e.js +11 -0
- package/dist/solutions-components/p-c71745d0.entry.js +6 -0
- package/dist/solutions-components/p-c7bfe120.entry.js +6 -0
- package/dist/solutions-components/p-c7e2d3e6.entry.js +6 -0
- package/dist/solutions-components/p-c89f1175.entry.js +11 -0
- package/dist/solutions-components/p-c8b149b8.entry.js +6 -0
- package/dist/solutions-components/p-c911c46d.entry.js +11 -0
- package/dist/solutions-components/p-c9260b4c.entry.js +6 -0
- package/dist/solutions-components/p-c9a45311.entry.js +6 -0
- package/dist/solutions-components/p-ca3430fd.entry.js +21 -0
- package/dist/solutions-components/p-ca65d7ff.entry.js +12 -0
- package/dist/solutions-components/p-cabc6e5c.entry.js +17 -0
- package/dist/solutions-components/p-cb5ddaae.js +6 -0
- package/dist/solutions-components/p-cb5de432.entry.js +11 -0
- package/dist/solutions-components/p-cde8d6e5.entry.js +11 -0
- package/dist/solutions-components/p-d301b8fd.js +6 -0
- package/dist/solutions-components/p-d3453ce8.entry.js +6 -0
- package/dist/solutions-components/p-d4d4b4e3.entry.js +6 -0
- package/dist/solutions-components/p-d4e58347.entry.js +6 -0
- package/dist/solutions-components/p-d52da3ad.js +6 -0
- package/dist/solutions-components/p-d559f79c.js +11 -0
- package/dist/solutions-components/p-d5dae468.js +6 -0
- package/dist/solutions-components/p-d62336e2.entry.js +6 -0
- package/dist/solutions-components/p-d6e62ea2.js +6 -0
- package/dist/solutions-components/p-da713b07.entry.js +6 -0
- package/dist/solutions-components/p-da9cee72.entry.js +11 -0
- package/dist/solutions-components/p-dc58c4da.entry.js +6 -0
- package/dist/solutions-components/p-dc7710b5.js +11 -0
- package/dist/solutions-components/p-dd3530da.entry.js +11 -0
- package/dist/solutions-components/p-de02a060.entry.js +11 -0
- package/dist/solutions-components/p-de197552.js +6 -0
- package/dist/solutions-components/p-df191993.entry.js +11 -0
- package/dist/solutions-components/p-e1917512.js +6 -0
- package/dist/solutions-components/p-e33e07a4.entry.js +11 -0
- package/dist/solutions-components/p-e83d2d34.entry.js +24 -0
- package/dist/solutions-components/p-e98c4f93.js +11 -0
- package/dist/solutions-components/p-ead8696c.js +16 -0
- package/dist/solutions-components/p-ec702c30.entry.js +11 -0
- package/dist/solutions-components/p-ed60dff0.entry.js +11 -0
- package/dist/solutions-components/p-ed7cba2a.entry.js +11 -0
- package/dist/solutions-components/p-ee157540.entry.js +22 -0
- package/dist/solutions-components/p-eeaa122b.entry.js +11 -0
- package/dist/solutions-components/p-ef4f2c1d.entry.js +6 -0
- package/dist/solutions-components/p-f0345689.entry.js +16 -0
- package/dist/solutions-components/p-f067a46c.js +21 -0
- package/dist/solutions-components/p-f25d5c18.entry.js +6 -0
- package/dist/solutions-components/p-f31a44b7.js +11 -0
- package/dist/solutions-components/p-f32f57a3.entry.js +6 -0
- package/dist/solutions-components/p-f47d6a10.entry.js +11 -0
- package/dist/solutions-components/p-f69ca69c.js +6 -0
- package/dist/solutions-components/p-f7d3ef3e.entry.js +6 -0
- package/dist/solutions-components/p-f89104bc.entry.js +6 -0
- package/dist/solutions-components/p-f91ae108.entry.js +6 -0
- package/dist/solutions-components/p-f9393949.entry.js +6 -0
- package/dist/solutions-components/p-fc58da4b.entry.js +6 -0
- package/dist/solutions-components/p-fce978b9.entry.js +6 -0
- package/dist/solutions-components/p-fe6f7734.js +11 -0
- package/dist/solutions-components/p-ff8343ec.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +0 -1
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +0 -2
- package/dist/types/components/card-manager/card-manager.d.ts +0 -1
- package/dist/types/components/consent-manager/consent-manager.d.ts +0 -1
- package/dist/types/components/create-feature/create-feature.d.ts +37 -2
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +0 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +0 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +10 -6
- package/dist/types/components/delete-button/delete-button.d.ts +0 -1
- package/dist/types/components/edit-card/edit-card.d.ts +0 -1
- package/dist/types/components/feature-details/feature-details.d.ts +4 -1
- package/dist/types/components/feature-list/feature-list.d.ts +18 -2
- package/dist/types/components/floor-filter/floor-filter.d.ts +0 -1
- package/dist/types/components/info-card/info-card.d.ts +0 -1
- package/dist/types/components/layer-list/layer-list.d.ts +0 -1
- package/dist/types/components/layer-table/layer-table.d.ts +0 -1
- package/dist/types/components/map-card/map-card.d.ts +0 -1
- package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +0 -1
- package/dist/types/components/map-fullscreen/map-fullscreen.d.ts +0 -1
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +0 -1
- package/dist/types/components/map-legend/map-legend.d.ts +0 -1
- package/dist/types/components/map-search/map-search.d.ts +0 -1
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +0 -1
- package/dist/types/components/map-tools/map-tools.d.ts +0 -1
- package/dist/types/components/pdf-download/pdf-download.d.ts +0 -1
- package/dist/types/components/public-notification/public-notification.d.ts +0 -1
- package/dist/types/components/refine-selection/refine-selection.d.ts +0 -1
- package/dist/types/components.d.ts +37 -0
- package/dist/types/preact.d.ts +5 -5
- package/dist/types/utils/downloadUtils.d.ts +0 -1
- package/dist/types/utils/interfaces.d.ts +0 -1
- package/dist/types/utils/mapViewUtils.d.ts +0 -1
- package/dist/types/utils/popupUtils.d.ts +0 -1
- package/dist/types/utils/queryUtils.d.ts +0 -1
- package/package.json +11 -11
- package/dist/cjs/ExpandToggle-9cf51aba.js +0 -115
- package/dist/cjs/FloatingArrow-f78d627c.js +0 -48
- package/dist/cjs/Heading-5b274572.js +0 -25
- package/dist/cjs/Validation-a9d22fb7.js +0 -20
- package/dist/cjs/app-globals-62e0da30.js +0 -67
- package/dist/cjs/ar-67bbaacf.js +0 -107
- package/dist/cjs/array-67eea0ed.js +0 -17
- package/dist/cjs/bg-52d767e3.js +0 -85
- package/dist/cjs/browser-02cbd1d9.js +0 -35
- package/dist/cjs/bs-abb7a3ee.js +0 -54
- package/dist/cjs/ca-2618e485.js +0 -74
- package/dist/cjs/calcite-avatar_2.cjs.entry.js +0 -239
- package/dist/cjs/calcite-input-time-picker-be5ad250.js +0 -1863
- package/dist/cjs/common-61b41813.js +0 -37
- package/dist/cjs/component-9d0efa36.js +0 -33
- package/dist/cjs/conditionalSlot-fe01e316.js +0 -54
- package/dist/cjs/config-6a670c0d.js +0 -41
- package/dist/cjs/cs-9566238a.js +0 -150
- package/dist/cjs/da-86f2f759.js +0 -70
- package/dist/cjs/date-163d7302.js +0 -264
- package/dist/cjs/de-at-90927f4b.js +0 -93
- package/dist/cjs/de-ch-7185b180.js +0 -93
- package/dist/cjs/de-e7327417.js +0 -94
- package/dist/cjs/dom-63b93b3b.js +0 -1212
- package/dist/cjs/downloadUtils-b757205e.js +0 -3163
- package/dist/cjs/el-ee1c6246.js +0 -69
- package/dist/cjs/en-au-c245e1fa.js +0 -69
- package/dist/cjs/en-ca-44552f66.js +0 -68
- package/dist/cjs/en-gb-cf4bdbbf.js +0 -72
- package/dist/cjs/es-e27b3455.js +0 -69
- package/dist/cjs/es-mx-d5455d49.js +0 -68
- package/dist/cjs/et-521fe75e.js +0 -95
- package/dist/cjs/fi-ba5f1240.js +0 -118
- package/dist/cjs/filter-adc5c5aa.js +0 -778
- package/dist/cjs/floating-ui-1ef64f13.js +0 -2362
- package/dist/cjs/focusTrapComponent-1881eaf7.js +0 -1018
- package/dist/cjs/form-4c0bbbe5.js +0 -381
- package/dist/cjs/fr-014e6869.js +0 -71
- package/dist/cjs/fr-ch-9174a431.js +0 -69
- package/dist/cjs/guid-4bc1bc0f.js +0 -26
- package/dist/cjs/he-ac6a1230.js +0 -108
- package/dist/cjs/helpers-1deec961.js +0 -940
- package/dist/cjs/hi-b605b081.js +0 -68
- package/dist/cjs/hr-1f50021e.js +0 -83
- package/dist/cjs/hu-0dbb012b.js +0 -91
- package/dist/cjs/id-be5cad02.js +0 -69
- package/dist/cjs/index-696e53e6.js +0 -1756
- package/dist/cjs/index-a0cca96e.js +0 -201
- package/dist/cjs/index-c0ee2715.js +0 -206
- package/dist/cjs/index.es-6c8b7d64.js +0 -11317
- package/dist/cjs/input-2d5a669d.js +0 -60
- package/dist/cjs/interactive-272b8484.js +0 -169
- package/dist/cjs/it-2d267c40.js +0 -69
- package/dist/cjs/it-ch-7e63ab0d.js +0 -69
- package/dist/cjs/ja-f84367c9.js +0 -75
- package/dist/cjs/key-e4dd32ff.js +0 -19
- package/dist/cjs/ko-3b4ea66e.js +0 -75
- package/dist/cjs/label-afda7da7.js +0 -186
- package/dist/cjs/languageSwitcher-dc2dd354.js +0 -60
- package/dist/cjs/loadable-ef8f0acf.js +0 -98
- package/dist/cjs/locale-428354f0.js +0 -584
- package/dist/cjs/locale-4e7fe921.js +0 -160
- package/dist/cjs/logger-bb2cd9dd.js +0 -61
- package/dist/cjs/lt-52ddc840.js +0 -100
- package/dist/cjs/lv-646b5876.js +0 -69
- package/dist/cjs/math-8677dfd7.js +0 -60
- package/dist/cjs/mk-bfa4f151.js +0 -69
- package/dist/cjs/nb-8d337597.js +0 -70
- package/dist/cjs/nl-da233a0d.js +0 -70
- package/dist/cjs/observers-3440c668.js +0 -58
- package/dist/cjs/openCloseComponent-f9bf524b.js +0 -65
- package/dist/cjs/pl-596b9933.js +0 -117
- package/dist/cjs/popupUtils-2b5ec788.js +0 -121
- package/dist/cjs/pt-bc779aca.js +0 -70
- package/dist/cjs/pt-br-ab04f8b9.js +0 -68
- package/dist/cjs/publicNotificationStore-8d2558c6.js +0 -47
- package/dist/cjs/resources-2f7b1adf.js +0 -23
- package/dist/cjs/resources-361aeee1.js +0 -68
- package/dist/cjs/resources-388b6f7e.js +0 -29
- package/dist/cjs/resources-6ed4d812.js +0 -39
- package/dist/cjs/resources-8556a9ce.js +0 -39
- package/dist/cjs/resources-91cff82d.js +0 -21
- package/dist/cjs/resources-a88c66ba.js +0 -26
- package/dist/cjs/resources-cb7b739c.js +0 -63
- package/dist/cjs/resources-e3034d0f.js +0 -27
- package/dist/cjs/resources-ea500edf.js +0 -23
- package/dist/cjs/restHelpersGet-bf484fda.js +0 -979
- package/dist/cjs/ro-8e73fabd.js +0 -69
- package/dist/cjs/ru-a9cf0c93.js +0 -129
- package/dist/cjs/shared-list-render-8da9f754.js +0 -361
- package/dist/cjs/sk-f23f0865.js +0 -151
- package/dist/cjs/sl-66cee3ca.js +0 -171
- package/dist/cjs/solution-resource-57cf345b.js +0 -1843
- package/dist/cjs/solution-store-71bb46fa.js +0 -1360
- package/dist/cjs/sortableComponent-842b0585.js +0 -2748
- package/dist/cjs/sr-f6958417.js +0 -104
- package/dist/cjs/sv-b6f30578.js +0 -74
- package/dist/cjs/t9n-e5fb720b.js +0 -108
- package/dist/cjs/templates-e4b98319.js +0 -407
- package/dist/cjs/th-7266bbe1.js +0 -68
- package/dist/cjs/time-35e40020.js +0 -301
- package/dist/cjs/tr-0ca37955.js +0 -69
- package/dist/cjs/uk-84db760b.js +0 -107
- package/dist/cjs/utils-3f254442.js +0 -72
- package/dist/cjs/utils-42df996f.js +0 -2304
- package/dist/cjs/utils-b43fe04f.js +0 -130
- package/dist/cjs/vi-c9c7a4bc.js +0 -73
- package/dist/cjs/zh-cn-c1bd1cac.js +0 -97
- package/dist/cjs/zh-hk-80a1b071.js +0 -95
- package/dist/cjs/zh-tw-b1d0baea.js +0 -95
- package/dist/esm/ExpandToggle-0a6958eb.js +0 -108
- package/dist/esm/FloatingArrow-3593832a.js +0 -46
- package/dist/esm/Heading-dcf63f4d.js +0 -22
- package/dist/esm/Validation-8ddc15e3.js +0 -18
- package/dist/esm/app-globals-e3c6f3f0.js +0 -65
- package/dist/esm/ar-ad19e823.js +0 -105
- package/dist/esm/array-5ce54fce.js +0 -15
- package/dist/esm/bg-d39d00d4.js +0 -83
- package/dist/esm/browser-8c71dd57.js +0 -32
- package/dist/esm/bs-5578d068.js +0 -52
- package/dist/esm/ca-50d49800.js +0 -72
- package/dist/esm/calcite-avatar_2.entry.js +0 -234
- package/dist/esm/calcite-input-time-picker-48568b36.js +0 -1860
- package/dist/esm/common-1618d62f.js +0 -35
- package/dist/esm/component-e3f05da5.js +0 -30
- package/dist/esm/conditionalSlot-33053690.js +0 -51
- package/dist/esm/config-6d8fa5c8.js +0 -37
- package/dist/esm/cs-c01bc02b.js +0 -148
- package/dist/esm/da-30f1c62d.js +0 -68
- package/dist/esm/date-1f2a59fd.js +0 -248
- package/dist/esm/de-at-8b651f1b.js +0 -91
- package/dist/esm/de-ch-16f901cb.js +0 -91
- package/dist/esm/de-f3ff49fe.js +0 -92
- package/dist/esm/dom-982585e7.js +0 -1177
- package/dist/esm/downloadUtils-16c51b10.js +0 -3156
- package/dist/esm/el-3cc5361f.js +0 -67
- package/dist/esm/en-au-5e1ae1c6.js +0 -67
- package/dist/esm/en-ca-eca7afe3.js +0 -66
- package/dist/esm/en-gb-d41a41f9.js +0 -70
- package/dist/esm/es-3119bf5f.js +0 -67
- package/dist/esm/es-mx-765f73cd.js +0 -66
- package/dist/esm/et-524d60ab.js +0 -93
- package/dist/esm/fi-103b9c33.js +0 -116
- package/dist/esm/filter-4fc9cd19.js +0 -775
- package/dist/esm/floating-ui-28a86be6.js +0 -2354
- package/dist/esm/focusTrapComponent-2dc61826.js +0 -1013
- package/dist/esm/form-9827fc54.js +0 -372
- package/dist/esm/fr-a0f46db0.js +0 -69
- package/dist/esm/fr-ch-d4198d14.js +0 -67
- package/dist/esm/guid-5c959cfd.js +0 -24
- package/dist/esm/he-88cc49d1.js +0 -106
- package/dist/esm/helpers-2298687e.js +0 -913
- package/dist/esm/hi-3fb3aeaf.js +0 -66
- package/dist/esm/hr-30bc6bf7.js +0 -81
- package/dist/esm/hu-ca65e08b.js +0 -89
- package/dist/esm/id-4c1eee8c.js +0 -67
- package/dist/esm/index-1dc14abf.js +0 -199
- package/dist/esm/index-d8ff08ed.js +0 -204
- package/dist/esm/index-e3f04fa1.js +0 -1722
- package/dist/esm/index.es-d950915a.js +0 -11230
- package/dist/esm/input-bf439d4b.js +0 -58
- package/dist/esm/interactive-1d03c7ff.js +0 -164
- package/dist/esm/it-4cb0e1d5.js +0 -67
- package/dist/esm/it-ch-4de1f33e.js +0 -67
- package/dist/esm/ja-2d531f7b.js +0 -73
- package/dist/esm/key-7f394a98.js +0 -16
- package/dist/esm/ko-1d957d12.js +0 -73
- package/dist/esm/label-38802319.js +0 -179
- package/dist/esm/languageSwitcher-9db90f1e.js +0 -57
- package/dist/esm/loadable-869378d9.js +0 -93
- package/dist/esm/locale-53748f98.js +0 -571
- package/dist/esm/locale-7162b55a.js +0 -155
- package/dist/esm/logger-c6b14fe1.js +0 -59
- package/dist/esm/lt-d09d3afe.js +0 -98
- package/dist/esm/lv-09f370a6.js +0 -67
- package/dist/esm/math-dbb62ccf.js +0 -54
- package/dist/esm/mk-f19a0976.js +0 -67
- package/dist/esm/nb-458b5aed.js +0 -68
- package/dist/esm/nl-f3c1e8a1.js +0 -68
- package/dist/esm/observers-0f4a5f9e.js +0 -56
- package/dist/esm/openCloseComponent-f118bfc5.js +0 -63
- package/dist/esm/pl-f9862e9b.js +0 -115
- package/dist/esm/popupUtils-44f11275.js +0 -119
- package/dist/esm/pt-4e37d6f8.js +0 -68
- package/dist/esm/pt-br-30daca3c.js +0 -66
- package/dist/esm/publicNotificationStore-065c7136.js +0 -45
- package/dist/esm/resources-098ed485.js +0 -62
- package/dist/esm/resources-0bf41f5d.js +0 -20
- package/dist/esm/resources-124c42d1.js +0 -35
- package/dist/esm/resources-27689859.js +0 -21
- package/dist/esm/resources-3bc82696.js +0 -34
- package/dist/esm/resources-84590a8e.js +0 -24
- package/dist/esm/resources-98bf974e.js +0 -59
- package/dist/esm/resources-a4ff051c.js +0 -23
- package/dist/esm/resources-af396281.js +0 -22
- package/dist/esm/resources-cdba986a.js +0 -19
- package/dist/esm/restHelpersGet-0a15c2f4.js +0 -964
- package/dist/esm/ro-a83cfcaa.js +0 -67
- package/dist/esm/ru-bb2c629b.js +0 -127
- package/dist/esm/shared-list-render-d8c49a1f.js +0 -339
- package/dist/esm/sk-4cc2af3f.js +0 -149
- package/dist/esm/sl-0df8c942.js +0 -169
- package/dist/esm/solution-resource-ab63a236.js +0 -1840
- package/dist/esm/solution-store-e2690620.js +0 -1358
- package/dist/esm/sortableComponent-173802fd.js +0 -2745
- package/dist/esm/sr-8d0e01f0.js +0 -102
- package/dist/esm/sv-8971f2c2.js +0 -72
- package/dist/esm/t9n-5371b7ab.js +0 -103
- package/dist/esm/templates-9556eb87.js +0 -401
- package/dist/esm/th-32517448.js +0 -66
- package/dist/esm/time-2996215a.js +0 -286
- package/dist/esm/tr-42c9ac73.js +0 -67
- package/dist/esm/uk-d1b99329.js +0 -105
- package/dist/esm/utils-178e7afe.js +0 -121
- package/dist/esm/utils-67264f4a.js +0 -2274
- package/dist/esm/utils-ac0f19ea.js +0 -60
- package/dist/esm/vi-c6ff5a39.js +0 -71
- package/dist/esm/zh-cn-973d18ea.js +0 -95
- package/dist/esm/zh-hk-6fc51e3d.js +0 -93
- package/dist/esm/zh-tw-4e1d2a6a.js +0 -93
- package/dist/solutions-components/p-00b26aac.js +0 -21
- package/dist/solutions-components/p-016e190c.entry.js +0 -6
- package/dist/solutions-components/p-021da1d4.js +0 -6
- package/dist/solutions-components/p-02c4127b.entry.js +0 -17
- package/dist/solutions-components/p-071a9f50.entry.js +0 -11
- package/dist/solutions-components/p-09ded315.js +0 -6
- package/dist/solutions-components/p-0a877c91.entry.js +0 -11
- package/dist/solutions-components/p-0abc1354.entry.js +0 -6
- package/dist/solutions-components/p-0ae5f8fe.js +0 -11
- package/dist/solutions-components/p-0d654053.entry.js +0 -11
- package/dist/solutions-components/p-0dcb7d0c.js +0 -6
- package/dist/solutions-components/p-0f7b5d36.entry.js +0 -6
- package/dist/solutions-components/p-0fb2abfe.js +0 -6
- package/dist/solutions-components/p-0feb3e7f.js +0 -6
- package/dist/solutions-components/p-11f138bf.entry.js +0 -6
- package/dist/solutions-components/p-122a81b5.js +0 -21
- package/dist/solutions-components/p-1452f846.js +0 -6
- package/dist/solutions-components/p-1628325d.entry.js +0 -17
- package/dist/solutions-components/p-16ae29b6.entry.js +0 -11
- package/dist/solutions-components/p-16d69510.js +0 -16
- package/dist/solutions-components/p-1867168b.entry.js +0 -6
- package/dist/solutions-components/p-1904654e.js +0 -6
- package/dist/solutions-components/p-1931eae1.entry.js +0 -11
- package/dist/solutions-components/p-1a634d43.js +0 -6
- package/dist/solutions-components/p-1b64ce16.js +0 -6
- package/dist/solutions-components/p-1c785e3a.js +0 -6
- package/dist/solutions-components/p-1cae39b3.js +0 -6
- package/dist/solutions-components/p-1d229886.js +0 -16
- package/dist/solutions-components/p-1ddef837.entry.js +0 -12
- package/dist/solutions-components/p-1ee635a2.entry.js +0 -6
- package/dist/solutions-components/p-20c465e9.entry.js +0 -21
- package/dist/solutions-components/p-210588d0.entry.js +0 -6
- package/dist/solutions-components/p-210d75fe.js +0 -18
- package/dist/solutions-components/p-2162a9d3.js +0 -11
- package/dist/solutions-components/p-22d81e03.js +0 -11
- package/dist/solutions-components/p-2327029a.js +0 -11
- package/dist/solutions-components/p-23f5aa20.entry.js +0 -6
- package/dist/solutions-components/p-24b3aedc.entry.js +0 -6
- package/dist/solutions-components/p-24fab352.js +0 -6
- package/dist/solutions-components/p-259ce172.js +0 -6
- package/dist/solutions-components/p-262e91ea.js +0 -11
- package/dist/solutions-components/p-274c182a.entry.js +0 -6
- package/dist/solutions-components/p-29984000.js +0 -6
- package/dist/solutions-components/p-2b21f196.js +0 -6
- package/dist/solutions-components/p-2d01b83d.entry.js +0 -11
- package/dist/solutions-components/p-2e8a428a.entry.js +0 -11
- package/dist/solutions-components/p-2eb8993c.entry.js +0 -11
- package/dist/solutions-components/p-2f08fd73.js +0 -16
- package/dist/solutions-components/p-2f2118a7.entry.js +0 -11
- package/dist/solutions-components/p-2fa78dd8.js +0 -21
- package/dist/solutions-components/p-2fc63144.js +0 -6
- package/dist/solutions-components/p-31f602c0.js +0 -11
- package/dist/solutions-components/p-32ded6e5.entry.js +0 -6
- package/dist/solutions-components/p-33447b6f.js +0 -11
- package/dist/solutions-components/p-3438cbc4.entry.js +0 -6
- package/dist/solutions-components/p-34a9bd5d.entry.js +0 -11
- package/dist/solutions-components/p-36b50b5b.entry.js +0 -12
- package/dist/solutions-components/p-376e8412.js +0 -11
- package/dist/solutions-components/p-38cfa3cd.entry.js +0 -6
- package/dist/solutions-components/p-392c6cec.entry.js +0 -6
- package/dist/solutions-components/p-39ae36e9.js +0 -6
- package/dist/solutions-components/p-3b0859ac.entry.js +0 -6
- package/dist/solutions-components/p-3b4170e9.entry.js +0 -22
- package/dist/solutions-components/p-3cc9861e.entry.js +0 -17
- package/dist/solutions-components/p-3e909ad8.entry.js +0 -11
- package/dist/solutions-components/p-3fcbaab8.js +0 -11
- package/dist/solutions-components/p-407d22c9.entry.js +0 -11
- package/dist/solutions-components/p-4250bde1.js +0 -11
- package/dist/solutions-components/p-425a1dab.entry.js +0 -6
- package/dist/solutions-components/p-440c2d17.js +0 -11
- package/dist/solutions-components/p-44194734.js +0 -6
- package/dist/solutions-components/p-445213cf.entry.js +0 -47
- package/dist/solutions-components/p-482948c4.entry.js +0 -17
- package/dist/solutions-components/p-4848b48f.entry.js +0 -6
- package/dist/solutions-components/p-4a5f0a97.entry.js +0 -17
- package/dist/solutions-components/p-4b03ad1e.js +0 -6
- package/dist/solutions-components/p-4b3cc01f.js +0 -489
- package/dist/solutions-components/p-4d8ac736.entry.js +0 -6
- package/dist/solutions-components/p-57262e5a.js +0 -6
- package/dist/solutions-components/p-5835b3f4.entry.js +0 -11
- package/dist/solutions-components/p-583ecbf6.js +0 -11
- package/dist/solutions-components/p-595ec807.entry.js +0 -11
- package/dist/solutions-components/p-5b818d29.entry.js +0 -6
- package/dist/solutions-components/p-5d201016.entry.js +0 -6
- package/dist/solutions-components/p-5df3d135.js +0 -16
- package/dist/solutions-components/p-5df4b021.entry.js +0 -11
- package/dist/solutions-components/p-60a80c7f.entry.js +0 -29
- package/dist/solutions-components/p-60efb594.entry.js +0 -11
- package/dist/solutions-components/p-618bafec.entry.js +0 -21
- package/dist/solutions-components/p-62050072.js +0 -6
- package/dist/solutions-components/p-62414b49.js +0 -6
- package/dist/solutions-components/p-626b6acd.js +0 -6
- package/dist/solutions-components/p-66daf5ec.entry.js +0 -17
- package/dist/solutions-components/p-680ed47d.js +0 -6
- package/dist/solutions-components/p-681fbb6e.js +0 -6
- package/dist/solutions-components/p-687e9081.entry.js +0 -11
- package/dist/solutions-components/p-69cfa9e6.entry.js +0 -6
- package/dist/solutions-components/p-6a66d5a9.entry.js +0 -6
- package/dist/solutions-components/p-6b0ecd98.entry.js +0 -11
- package/dist/solutions-components/p-6b30ca36.entry.js +0 -6
- package/dist/solutions-components/p-6b64edcd.js +0 -6
- package/dist/solutions-components/p-6c11b89e.js +0 -6
- package/dist/solutions-components/p-6d030079.js +0 -6
- package/dist/solutions-components/p-6d04189c.entry.js +0 -6
- package/dist/solutions-components/p-6de944af.entry.js +0 -6
- package/dist/solutions-components/p-70a52e62.entry.js +0 -11
- package/dist/solutions-components/p-70b4e46f.js +0 -11
- package/dist/solutions-components/p-71a2d5b8.entry.js +0 -6
- package/dist/solutions-components/p-73a1e1b9.js +0 -6
- package/dist/solutions-components/p-73ae4b9b.js +0 -11
- package/dist/solutions-components/p-756a5a7f.entry.js +0 -12
- package/dist/solutions-components/p-762eab84.js +0 -6
- package/dist/solutions-components/p-77548c28.entry.js +0 -11
- package/dist/solutions-components/p-77fa776e.entry.js +0 -11
- package/dist/solutions-components/p-78712b70.entry.js +0 -6
- package/dist/solutions-components/p-78c82389.js +0 -6
- package/dist/solutions-components/p-79fd09fa.js +0 -6
- package/dist/solutions-components/p-7a2f9e5b.entry.js +0 -16
- package/dist/solutions-components/p-7a326ee8.entry.js +0 -11
- package/dist/solutions-components/p-7a64b026.entry.js +0 -17
- package/dist/solutions-components/p-7bdef5f5.entry.js +0 -11
- package/dist/solutions-components/p-7c585a72.js +0 -11
- package/dist/solutions-components/p-7d514d7f.entry.js +0 -6
- package/dist/solutions-components/p-7e7ddb11.js +0 -6
- package/dist/solutions-components/p-7ed62b29.js +0 -6
- package/dist/solutions-components/p-8428237a.entry.js +0 -11
- package/dist/solutions-components/p-84478793.js +0 -11
- package/dist/solutions-components/p-8448b98b.js +0 -17
- package/dist/solutions-components/p-85c25564.entry.js +0 -6
- package/dist/solutions-components/p-86660809.js +0 -6
- package/dist/solutions-components/p-86e6b5b3.entry.js +0 -6
- package/dist/solutions-components/p-88b55caa.entry.js +0 -6
- package/dist/solutions-components/p-8904675a.entry.js +0 -11
- package/dist/solutions-components/p-8a6fa619.entry.js +0 -6
- package/dist/solutions-components/p-8a9257ec.entry.js +0 -11
- package/dist/solutions-components/p-8b922152.js +0 -6
- package/dist/solutions-components/p-8ce3d9f3.entry.js +0 -11
- package/dist/solutions-components/p-8d7479ec.entry.js +0 -6
- package/dist/solutions-components/p-8e8b92b4.entry.js +0 -6
- package/dist/solutions-components/p-8ea95c9f.entry.js +0 -11
- package/dist/solutions-components/p-8f3af937.entry.js +0 -24
- package/dist/solutions-components/p-8fb95f9a.entry.js +0 -17
- package/dist/solutions-components/p-90372205.entry.js +0 -11
- package/dist/solutions-components/p-90d6755b.js +0 -61
- package/dist/solutions-components/p-90dd8aec.js +0 -11
- package/dist/solutions-components/p-913413c3.entry.js +0 -6
- package/dist/solutions-components/p-932f22b5.entry.js +0 -6
- package/dist/solutions-components/p-93a86792.entry.js +0 -11
- package/dist/solutions-components/p-947ef2fa.entry.js +0 -6
- package/dist/solutions-components/p-94b118d5.js +0 -6
- package/dist/solutions-components/p-94f68938.js +0 -6
- package/dist/solutions-components/p-9779be82.js +0 -6
- package/dist/solutions-components/p-988fc332.entry.js +0 -11
- package/dist/solutions-components/p-998933e7.entry.js +0 -6
- package/dist/solutions-components/p-9a2ab5bc.js +0 -11
- package/dist/solutions-components/p-9a46618c.entry.js +0 -6
- package/dist/solutions-components/p-a091bc9a.js +0 -6
- package/dist/solutions-components/p-a22b8cc1.entry.js +0 -6
- package/dist/solutions-components/p-a3544947.entry.js +0 -11
- package/dist/solutions-components/p-a3e66f8e.entry.js +0 -11
- package/dist/solutions-components/p-a432be00.js +0 -6
- package/dist/solutions-components/p-a72fd9b4.js +0 -6
- package/dist/solutions-components/p-a860f365.js +0 -144
- package/dist/solutions-components/p-a8e556aa.js +0 -11
- package/dist/solutions-components/p-a8e6463b.js +0 -22
- package/dist/solutions-components/p-abc9e858.entry.js +0 -6
- package/dist/solutions-components/p-add49b80.entry.js +0 -23
- package/dist/solutions-components/p-af3a9822.js +0 -6
- package/dist/solutions-components/p-b05b7f3e.entry.js +0 -11
- package/dist/solutions-components/p-b0609d19.entry.js +0 -11
- package/dist/solutions-components/p-b06ae708.js +0 -6
- package/dist/solutions-components/p-b19ca04e.entry.js +0 -6
- package/dist/solutions-components/p-b1c71e50.js +0 -11
- package/dist/solutions-components/p-b470a429.js +0 -6
- package/dist/solutions-components/p-b4f06fe2.entry.js +0 -11
- package/dist/solutions-components/p-b850796d.entry.js +0 -6
- package/dist/solutions-components/p-badcaf04.js +0 -50
- package/dist/solutions-components/p-bb3ce613.js +0 -11
- package/dist/solutions-components/p-bebd4646.entry.js +0 -6
- package/dist/solutions-components/p-c2bafa94.entry.js +0 -6
- package/dist/solutions-components/p-c4d3790a.entry.js +0 -6
- package/dist/solutions-components/p-c5897e36.js +0 -11
- package/dist/solutions-components/p-c5d15c91.js +0 -11
- package/dist/solutions-components/p-c5f22510.js +0 -11
- package/dist/solutions-components/p-c6473b38.entry.js +0 -6
- package/dist/solutions-components/p-c6f8bc28.js +0 -6
- package/dist/solutions-components/p-c7c0c863.entry.js +0 -11
- package/dist/solutions-components/p-c8a8591b.entry.js +0 -11
- package/dist/solutions-components/p-c9fc3253.js +0 -6
- package/dist/solutions-components/p-ca42f3d3.js +0 -11
- package/dist/solutions-components/p-cc092b22.entry.js +0 -6
- package/dist/solutions-components/p-ccba7d93.js +0 -6
- package/dist/solutions-components/p-cd4d69c1.js +0 -11
- package/dist/solutions-components/p-ce454f5a.entry.js +0 -11
- package/dist/solutions-components/p-cf754ff5.js +0 -11
- package/dist/solutions-components/p-cfca5772.js +0 -11
- package/dist/solutions-components/p-d0ff7db8.js +0 -6
- package/dist/solutions-components/p-d34e12f4.entry.js +0 -11
- package/dist/solutions-components/p-d4e3e979.js +0 -11
- package/dist/solutions-components/p-d655a7a2.entry.js +0 -6
- package/dist/solutions-components/p-d7868dd4.js +0 -36
- package/dist/solutions-components/p-d7ee860a.js +0 -11
- package/dist/solutions-components/p-d8047d8f.entry.js +0 -6
- package/dist/solutions-components/p-d98d3d33.js +0 -6
- package/dist/solutions-components/p-da2d0073.entry.js +0 -6
- package/dist/solutions-components/p-da9fc69b.entry.js +0 -11
- package/dist/solutions-components/p-dc17b638.entry.js +0 -6
- package/dist/solutions-components/p-dcc35070.js +0 -6
- package/dist/solutions-components/p-e1f30753.entry.js +0 -11
- package/dist/solutions-components/p-e21efd7d.js +0 -11
- package/dist/solutions-components/p-e2f3674f.entry.js +0 -11
- package/dist/solutions-components/p-e4767cc4.entry.js +0 -11
- package/dist/solutions-components/p-e8bd5b44.entry.js +0 -11
- package/dist/solutions-components/p-ec561560.js +0 -12
- package/dist/solutions-components/p-ed95c75e.js +0 -11
- package/dist/solutions-components/p-edd70ba3.entry.js +0 -6
- package/dist/solutions-components/p-ee056d26.js +0 -17
- package/dist/solutions-components/p-ee0a512f.entry.js +0 -6
- package/dist/solutions-components/p-eefcb751.entry.js +0 -6
- package/dist/solutions-components/p-ef6567ae.entry.js +0 -6
- package/dist/solutions-components/p-f012ccbb.js +0 -11
- package/dist/solutions-components/p-f021c564.js +0 -6
- package/dist/solutions-components/p-f12a94e6.entry.js +0 -29
- package/dist/solutions-components/p-f39f661e.entry.js +0 -11
- package/dist/solutions-components/p-f3e54df7.entry.js +0 -6
- package/dist/solutions-components/p-f4c4a2b7.js +0 -7
- package/dist/solutions-components/p-f83c0ef6.js +0 -11
- package/dist/solutions-components/p-fbeba590.entry.js +0 -11
- package/dist/solutions-components/p-fc02896c.entry.js +0 -6
- package/dist/solutions-components/p-fc474b33.js +0 -6
- package/dist/solutions-components/p-fcfbd587.js +0 -6
- package/dist/solutions-components/p-fdf4caad.js +0 -11
- package/dist/solutions-components/p-fe43ec31.entry.js +0 -16
- package/dist/solutions-components/p-ffbecb75.js +0 -6
- /package/dist/cjs/{index-4c1b0d3c.js → index-04255c05.js} +0 -0
- /package/dist/{esm/index-5110a27a.js → components/index7.js} +0 -0
- /package/dist/solutions-components/{p-9fe07c30.js → p-659678f1.js} +0 -0
- /package/dist/solutions-components/{p-74062e42.js → p-fc17754b.js} +0 -0
@@ -0,0 +1,2373 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
'use strict';
|
7
|
+
|
8
|
+
const resources = require('./resources-dfe71ff2.js');
|
9
|
+
const dom = require('./dom-6a9b6275.js');
|
10
|
+
const browser = require('./browser-69696af0.js');
|
11
|
+
const debounce = require('./debounce-7f1e04d6.js');
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Custom positioning reference element.
|
15
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
16
|
+
*/
|
17
|
+
|
18
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
19
|
+
const alignments = ['start', 'end'];
|
20
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
21
|
+
const min = Math.min;
|
22
|
+
const max = Math.max;
|
23
|
+
const round = Math.round;
|
24
|
+
const floor = Math.floor;
|
25
|
+
const createCoords = v => ({
|
26
|
+
x: v,
|
27
|
+
y: v
|
28
|
+
});
|
29
|
+
const oppositeSideMap = {
|
30
|
+
left: 'right',
|
31
|
+
right: 'left',
|
32
|
+
bottom: 'top',
|
33
|
+
top: 'bottom'
|
34
|
+
};
|
35
|
+
const oppositeAlignmentMap = {
|
36
|
+
start: 'end',
|
37
|
+
end: 'start'
|
38
|
+
};
|
39
|
+
function clamp(start, value, end) {
|
40
|
+
return max(start, min(value, end));
|
41
|
+
}
|
42
|
+
function evaluate(value, param) {
|
43
|
+
return typeof value === 'function' ? value(param) : value;
|
44
|
+
}
|
45
|
+
function getSide(placement) {
|
46
|
+
return placement.split('-')[0];
|
47
|
+
}
|
48
|
+
function getAlignment(placement) {
|
49
|
+
return placement.split('-')[1];
|
50
|
+
}
|
51
|
+
function getOppositeAxis(axis) {
|
52
|
+
return axis === 'x' ? 'y' : 'x';
|
53
|
+
}
|
54
|
+
function getAxisLength(axis) {
|
55
|
+
return axis === 'y' ? 'height' : 'width';
|
56
|
+
}
|
57
|
+
function getSideAxis(placement) {
|
58
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
59
|
+
}
|
60
|
+
function getAlignmentAxis(placement) {
|
61
|
+
return getOppositeAxis(getSideAxis(placement));
|
62
|
+
}
|
63
|
+
function getAlignmentSides(placement, rects, rtl) {
|
64
|
+
if (rtl === void 0) {
|
65
|
+
rtl = false;
|
66
|
+
}
|
67
|
+
const alignment = getAlignment(placement);
|
68
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
69
|
+
const length = getAxisLength(alignmentAxis);
|
70
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
71
|
+
if (rects.reference[length] > rects.floating[length]) {
|
72
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
73
|
+
}
|
74
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
75
|
+
}
|
76
|
+
function getExpandedPlacements(placement) {
|
77
|
+
const oppositePlacement = getOppositePlacement(placement);
|
78
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
79
|
+
}
|
80
|
+
function getOppositeAlignmentPlacement(placement) {
|
81
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
82
|
+
}
|
83
|
+
function getSideList(side, isStart, rtl) {
|
84
|
+
const lr = ['left', 'right'];
|
85
|
+
const rl = ['right', 'left'];
|
86
|
+
const tb = ['top', 'bottom'];
|
87
|
+
const bt = ['bottom', 'top'];
|
88
|
+
switch (side) {
|
89
|
+
case 'top':
|
90
|
+
case 'bottom':
|
91
|
+
if (rtl) return isStart ? rl : lr;
|
92
|
+
return isStart ? lr : rl;
|
93
|
+
case 'left':
|
94
|
+
case 'right':
|
95
|
+
return isStart ? tb : bt;
|
96
|
+
default:
|
97
|
+
return [];
|
98
|
+
}
|
99
|
+
}
|
100
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
101
|
+
const alignment = getAlignment(placement);
|
102
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
103
|
+
if (alignment) {
|
104
|
+
list = list.map(side => side + "-" + alignment);
|
105
|
+
if (flipAlignment) {
|
106
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
107
|
+
}
|
108
|
+
}
|
109
|
+
return list;
|
110
|
+
}
|
111
|
+
function getOppositePlacement(placement) {
|
112
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
113
|
+
}
|
114
|
+
function expandPaddingObject(padding) {
|
115
|
+
return {
|
116
|
+
top: 0,
|
117
|
+
right: 0,
|
118
|
+
bottom: 0,
|
119
|
+
left: 0,
|
120
|
+
...padding
|
121
|
+
};
|
122
|
+
}
|
123
|
+
function getPaddingObject(padding) {
|
124
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
125
|
+
top: padding,
|
126
|
+
right: padding,
|
127
|
+
bottom: padding,
|
128
|
+
left: padding
|
129
|
+
};
|
130
|
+
}
|
131
|
+
function rectToClientRect(rect) {
|
132
|
+
const {
|
133
|
+
x,
|
134
|
+
y,
|
135
|
+
width,
|
136
|
+
height
|
137
|
+
} = rect;
|
138
|
+
return {
|
139
|
+
width,
|
140
|
+
height,
|
141
|
+
top: y,
|
142
|
+
left: x,
|
143
|
+
right: x + width,
|
144
|
+
bottom: y + height,
|
145
|
+
x,
|
146
|
+
y
|
147
|
+
};
|
148
|
+
}
|
149
|
+
|
150
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
151
|
+
let {
|
152
|
+
reference,
|
153
|
+
floating
|
154
|
+
} = _ref;
|
155
|
+
const sideAxis = getSideAxis(placement);
|
156
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
157
|
+
const alignLength = getAxisLength(alignmentAxis);
|
158
|
+
const side = getSide(placement);
|
159
|
+
const isVertical = sideAxis === 'y';
|
160
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
161
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
162
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
163
|
+
let coords;
|
164
|
+
switch (side) {
|
165
|
+
case 'top':
|
166
|
+
coords = {
|
167
|
+
x: commonX,
|
168
|
+
y: reference.y - floating.height
|
169
|
+
};
|
170
|
+
break;
|
171
|
+
case 'bottom':
|
172
|
+
coords = {
|
173
|
+
x: commonX,
|
174
|
+
y: reference.y + reference.height
|
175
|
+
};
|
176
|
+
break;
|
177
|
+
case 'right':
|
178
|
+
coords = {
|
179
|
+
x: reference.x + reference.width,
|
180
|
+
y: commonY
|
181
|
+
};
|
182
|
+
break;
|
183
|
+
case 'left':
|
184
|
+
coords = {
|
185
|
+
x: reference.x - floating.width,
|
186
|
+
y: commonY
|
187
|
+
};
|
188
|
+
break;
|
189
|
+
default:
|
190
|
+
coords = {
|
191
|
+
x: reference.x,
|
192
|
+
y: reference.y
|
193
|
+
};
|
194
|
+
}
|
195
|
+
switch (getAlignment(placement)) {
|
196
|
+
case 'start':
|
197
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
198
|
+
break;
|
199
|
+
case 'end':
|
200
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
201
|
+
break;
|
202
|
+
}
|
203
|
+
return coords;
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
208
|
+
* next to a given reference element.
|
209
|
+
*
|
210
|
+
* This export does not have any `platform` interface logic. You will need to
|
211
|
+
* write one for the platform you are using Floating UI with.
|
212
|
+
*/
|
213
|
+
const computePosition$1 = async (reference, floating, config) => {
|
214
|
+
const {
|
215
|
+
placement = 'bottom',
|
216
|
+
strategy = 'absolute',
|
217
|
+
middleware = [],
|
218
|
+
platform
|
219
|
+
} = config;
|
220
|
+
const validMiddleware = middleware.filter(Boolean);
|
221
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
222
|
+
let rects = await platform.getElementRects({
|
223
|
+
reference,
|
224
|
+
floating,
|
225
|
+
strategy
|
226
|
+
});
|
227
|
+
let {
|
228
|
+
x,
|
229
|
+
y
|
230
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
231
|
+
let statefulPlacement = placement;
|
232
|
+
let middlewareData = {};
|
233
|
+
let resetCount = 0;
|
234
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
235
|
+
const {
|
236
|
+
name,
|
237
|
+
fn
|
238
|
+
} = validMiddleware[i];
|
239
|
+
const {
|
240
|
+
x: nextX,
|
241
|
+
y: nextY,
|
242
|
+
data,
|
243
|
+
reset
|
244
|
+
} = await fn({
|
245
|
+
x,
|
246
|
+
y,
|
247
|
+
initialPlacement: placement,
|
248
|
+
placement: statefulPlacement,
|
249
|
+
strategy,
|
250
|
+
middlewareData,
|
251
|
+
rects,
|
252
|
+
platform,
|
253
|
+
elements: {
|
254
|
+
reference,
|
255
|
+
floating
|
256
|
+
}
|
257
|
+
});
|
258
|
+
x = nextX != null ? nextX : x;
|
259
|
+
y = nextY != null ? nextY : y;
|
260
|
+
middlewareData = {
|
261
|
+
...middlewareData,
|
262
|
+
[name]: {
|
263
|
+
...middlewareData[name],
|
264
|
+
...data
|
265
|
+
}
|
266
|
+
};
|
267
|
+
if (reset && resetCount <= 50) {
|
268
|
+
resetCount++;
|
269
|
+
if (typeof reset === 'object') {
|
270
|
+
if (reset.placement) {
|
271
|
+
statefulPlacement = reset.placement;
|
272
|
+
}
|
273
|
+
if (reset.rects) {
|
274
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
275
|
+
reference,
|
276
|
+
floating,
|
277
|
+
strategy
|
278
|
+
}) : reset.rects;
|
279
|
+
}
|
280
|
+
({
|
281
|
+
x,
|
282
|
+
y
|
283
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
284
|
+
}
|
285
|
+
i = -1;
|
286
|
+
}
|
287
|
+
}
|
288
|
+
return {
|
289
|
+
x,
|
290
|
+
y,
|
291
|
+
placement: statefulPlacement,
|
292
|
+
strategy,
|
293
|
+
middlewareData
|
294
|
+
};
|
295
|
+
};
|
296
|
+
|
297
|
+
/**
|
298
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
299
|
+
* element is overflowing a given clipping boundary on each side.
|
300
|
+
* - positive = overflowing the boundary by that number of pixels
|
301
|
+
* - negative = how many pixels left before it will overflow
|
302
|
+
* - 0 = lies flush with the boundary
|
303
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
304
|
+
*/
|
305
|
+
async function detectOverflow(state, options) {
|
306
|
+
var _await$platform$isEle;
|
307
|
+
if (options === void 0) {
|
308
|
+
options = {};
|
309
|
+
}
|
310
|
+
const {
|
311
|
+
x,
|
312
|
+
y,
|
313
|
+
platform,
|
314
|
+
rects,
|
315
|
+
elements,
|
316
|
+
strategy
|
317
|
+
} = state;
|
318
|
+
const {
|
319
|
+
boundary = 'clippingAncestors',
|
320
|
+
rootBoundary = 'viewport',
|
321
|
+
elementContext = 'floating',
|
322
|
+
altBoundary = false,
|
323
|
+
padding = 0
|
324
|
+
} = evaluate(options, state);
|
325
|
+
const paddingObject = getPaddingObject(padding);
|
326
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
327
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
328
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
329
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
330
|
+
boundary,
|
331
|
+
rootBoundary,
|
332
|
+
strategy
|
333
|
+
}));
|
334
|
+
const rect = elementContext === 'floating' ? {
|
335
|
+
x,
|
336
|
+
y,
|
337
|
+
width: rects.floating.width,
|
338
|
+
height: rects.floating.height
|
339
|
+
} : rects.reference;
|
340
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
341
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
342
|
+
x: 1,
|
343
|
+
y: 1
|
344
|
+
} : {
|
345
|
+
x: 1,
|
346
|
+
y: 1
|
347
|
+
};
|
348
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
349
|
+
elements,
|
350
|
+
rect,
|
351
|
+
offsetParent,
|
352
|
+
strategy
|
353
|
+
}) : rect);
|
354
|
+
return {
|
355
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
356
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
357
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
358
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
359
|
+
};
|
360
|
+
}
|
361
|
+
|
362
|
+
/**
|
363
|
+
* Provides data to position an inner element of the floating element so that it
|
364
|
+
* appears centered to the reference element.
|
365
|
+
* @see https://floating-ui.com/docs/arrow
|
366
|
+
*/
|
367
|
+
const arrow$1 = options => ({
|
368
|
+
name: 'arrow',
|
369
|
+
options,
|
370
|
+
async fn(state) {
|
371
|
+
const {
|
372
|
+
x,
|
373
|
+
y,
|
374
|
+
placement,
|
375
|
+
rects,
|
376
|
+
platform,
|
377
|
+
elements,
|
378
|
+
middlewareData
|
379
|
+
} = state;
|
380
|
+
// Since `element` is required, we don't Partial<> the type.
|
381
|
+
const {
|
382
|
+
element,
|
383
|
+
padding = 0
|
384
|
+
} = evaluate(options, state) || {};
|
385
|
+
if (element == null) {
|
386
|
+
return {};
|
387
|
+
}
|
388
|
+
const paddingObject = getPaddingObject(padding);
|
389
|
+
const coords = {
|
390
|
+
x,
|
391
|
+
y
|
392
|
+
};
|
393
|
+
const axis = getAlignmentAxis(placement);
|
394
|
+
const length = getAxisLength(axis);
|
395
|
+
const arrowDimensions = await platform.getDimensions(element);
|
396
|
+
const isYAxis = axis === 'y';
|
397
|
+
const minProp = isYAxis ? 'top' : 'left';
|
398
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
399
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
400
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
401
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
402
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
403
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
404
|
+
|
405
|
+
// DOM platform can return `window` as the `offsetParent`.
|
406
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
407
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
408
|
+
}
|
409
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
410
|
+
|
411
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
412
|
+
// centered, modify the padding so that it is centered.
|
413
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
414
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
415
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
416
|
+
|
417
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
418
|
+
// point is outside the floating element's bounds.
|
419
|
+
const min$1 = minPadding;
|
420
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
421
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
422
|
+
const offset = clamp(min$1, center, max);
|
423
|
+
|
424
|
+
// If the reference is small enough that the arrow's padding causes it to
|
425
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
426
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
427
|
+
// a single reset is performed when this is true.
|
428
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
429
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
430
|
+
return {
|
431
|
+
[axis]: coords[axis] + alignmentOffset,
|
432
|
+
data: {
|
433
|
+
[axis]: offset,
|
434
|
+
centerOffset: center - offset - alignmentOffset,
|
435
|
+
...(shouldAddOffset && {
|
436
|
+
alignmentOffset
|
437
|
+
})
|
438
|
+
},
|
439
|
+
reset: shouldAddOffset
|
440
|
+
};
|
441
|
+
}
|
442
|
+
});
|
443
|
+
|
444
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
445
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
446
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
447
|
+
if (alignment) {
|
448
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
449
|
+
}
|
450
|
+
return true;
|
451
|
+
});
|
452
|
+
}
|
453
|
+
/**
|
454
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
455
|
+
* that has the most space available automatically, without needing to specify a
|
456
|
+
* preferred placement. Alternative to `flip`.
|
457
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
458
|
+
*/
|
459
|
+
const autoPlacement$1 = function (options) {
|
460
|
+
if (options === void 0) {
|
461
|
+
options = {};
|
462
|
+
}
|
463
|
+
return {
|
464
|
+
name: 'autoPlacement',
|
465
|
+
options,
|
466
|
+
async fn(state) {
|
467
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
468
|
+
const {
|
469
|
+
rects,
|
470
|
+
middlewareData,
|
471
|
+
placement,
|
472
|
+
platform,
|
473
|
+
elements
|
474
|
+
} = state;
|
475
|
+
const {
|
476
|
+
crossAxis = false,
|
477
|
+
alignment,
|
478
|
+
allowedPlacements = placements,
|
479
|
+
autoAlignment = true,
|
480
|
+
...detectOverflowOptions
|
481
|
+
} = evaluate(options, state);
|
482
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
483
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
484
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
485
|
+
const currentPlacement = placements$1[currentIndex];
|
486
|
+
if (currentPlacement == null) {
|
487
|
+
return {};
|
488
|
+
}
|
489
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
490
|
+
|
491
|
+
// Make `computeCoords` start from the right place.
|
492
|
+
if (placement !== currentPlacement) {
|
493
|
+
return {
|
494
|
+
reset: {
|
495
|
+
placement: placements$1[0]
|
496
|
+
}
|
497
|
+
};
|
498
|
+
}
|
499
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
500
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
501
|
+
placement: currentPlacement,
|
502
|
+
overflows: currentOverflows
|
503
|
+
}];
|
504
|
+
const nextPlacement = placements$1[currentIndex + 1];
|
505
|
+
|
506
|
+
// There are more placements to check.
|
507
|
+
if (nextPlacement) {
|
508
|
+
return {
|
509
|
+
data: {
|
510
|
+
index: currentIndex + 1,
|
511
|
+
overflows: allOverflows
|
512
|
+
},
|
513
|
+
reset: {
|
514
|
+
placement: nextPlacement
|
515
|
+
}
|
516
|
+
};
|
517
|
+
}
|
518
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
519
|
+
const alignment = getAlignment(d.placement);
|
520
|
+
return [d.placement, alignment && crossAxis ?
|
521
|
+
// Check along the mainAxis and main crossAxis side.
|
522
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
523
|
+
// Check only the mainAxis.
|
524
|
+
d.overflows[0], d.overflows];
|
525
|
+
}).sort((a, b) => a[1] - b[1]);
|
526
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
527
|
+
// Aligned placements should not check their opposite crossAxis
|
528
|
+
// side.
|
529
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
530
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
531
|
+
if (resetPlacement !== placement) {
|
532
|
+
return {
|
533
|
+
data: {
|
534
|
+
index: currentIndex + 1,
|
535
|
+
overflows: allOverflows
|
536
|
+
},
|
537
|
+
reset: {
|
538
|
+
placement: resetPlacement
|
539
|
+
}
|
540
|
+
};
|
541
|
+
}
|
542
|
+
return {};
|
543
|
+
}
|
544
|
+
};
|
545
|
+
};
|
546
|
+
|
547
|
+
/**
|
548
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
549
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
550
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
551
|
+
* @see https://floating-ui.com/docs/flip
|
552
|
+
*/
|
553
|
+
const flip$1 = function (options) {
|
554
|
+
if (options === void 0) {
|
555
|
+
options = {};
|
556
|
+
}
|
557
|
+
return {
|
558
|
+
name: 'flip',
|
559
|
+
options,
|
560
|
+
async fn(state) {
|
561
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
562
|
+
const {
|
563
|
+
placement,
|
564
|
+
middlewareData,
|
565
|
+
rects,
|
566
|
+
initialPlacement,
|
567
|
+
platform,
|
568
|
+
elements
|
569
|
+
} = state;
|
570
|
+
const {
|
571
|
+
mainAxis: checkMainAxis = true,
|
572
|
+
crossAxis: checkCrossAxis = true,
|
573
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
574
|
+
fallbackStrategy = 'bestFit',
|
575
|
+
fallbackAxisSideDirection = 'none',
|
576
|
+
flipAlignment = true,
|
577
|
+
...detectOverflowOptions
|
578
|
+
} = evaluate(options, state);
|
579
|
+
|
580
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
581
|
+
// added, we should skip any logic now since `flip()` has already done its
|
582
|
+
// work.
|
583
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
584
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
585
|
+
return {};
|
586
|
+
}
|
587
|
+
const side = getSide(placement);
|
588
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
589
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
590
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
591
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
592
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
593
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
594
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
595
|
+
}
|
596
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
597
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
598
|
+
const overflows = [];
|
599
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
600
|
+
if (checkMainAxis) {
|
601
|
+
overflows.push(overflow[side]);
|
602
|
+
}
|
603
|
+
if (checkCrossAxis) {
|
604
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
605
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
606
|
+
}
|
607
|
+
overflowsData = [...overflowsData, {
|
608
|
+
placement,
|
609
|
+
overflows
|
610
|
+
}];
|
611
|
+
|
612
|
+
// One or more sides is overflowing.
|
613
|
+
if (!overflows.every(side => side <= 0)) {
|
614
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
615
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
616
|
+
const nextPlacement = placements[nextIndex];
|
617
|
+
if (nextPlacement) {
|
618
|
+
// Try next placement and re-run the lifecycle.
|
619
|
+
return {
|
620
|
+
data: {
|
621
|
+
index: nextIndex,
|
622
|
+
overflows: overflowsData
|
623
|
+
},
|
624
|
+
reset: {
|
625
|
+
placement: nextPlacement
|
626
|
+
}
|
627
|
+
};
|
628
|
+
}
|
629
|
+
|
630
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
631
|
+
// then find the placement that fits the best on the main crossAxis side.
|
632
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
633
|
+
|
634
|
+
// Otherwise fallback.
|
635
|
+
if (!resetPlacement) {
|
636
|
+
switch (fallbackStrategy) {
|
637
|
+
case 'bestFit':
|
638
|
+
{
|
639
|
+
var _overflowsData$filter2;
|
640
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
641
|
+
if (hasFallbackAxisSideDirection) {
|
642
|
+
const currentSideAxis = getSideAxis(d.placement);
|
643
|
+
return currentSideAxis === initialSideAxis ||
|
644
|
+
// Create a bias to the `y` side axis due to horizontal
|
645
|
+
// reading directions favoring greater width.
|
646
|
+
currentSideAxis === 'y';
|
647
|
+
}
|
648
|
+
return true;
|
649
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
650
|
+
if (placement) {
|
651
|
+
resetPlacement = placement;
|
652
|
+
}
|
653
|
+
break;
|
654
|
+
}
|
655
|
+
case 'initialPlacement':
|
656
|
+
resetPlacement = initialPlacement;
|
657
|
+
break;
|
658
|
+
}
|
659
|
+
}
|
660
|
+
if (placement !== resetPlacement) {
|
661
|
+
return {
|
662
|
+
reset: {
|
663
|
+
placement: resetPlacement
|
664
|
+
}
|
665
|
+
};
|
666
|
+
}
|
667
|
+
}
|
668
|
+
return {};
|
669
|
+
}
|
670
|
+
};
|
671
|
+
};
|
672
|
+
|
673
|
+
function getSideOffsets(overflow, rect) {
|
674
|
+
return {
|
675
|
+
top: overflow.top - rect.height,
|
676
|
+
right: overflow.right - rect.width,
|
677
|
+
bottom: overflow.bottom - rect.height,
|
678
|
+
left: overflow.left - rect.width
|
679
|
+
};
|
680
|
+
}
|
681
|
+
function isAnySideFullyClipped(overflow) {
|
682
|
+
return sides.some(side => overflow[side] >= 0);
|
683
|
+
}
|
684
|
+
/**
|
685
|
+
* Provides data to hide the floating element in applicable situations, such as
|
686
|
+
* when it is not in the same clipping context as the reference element.
|
687
|
+
* @see https://floating-ui.com/docs/hide
|
688
|
+
*/
|
689
|
+
const hide$1 = function (options) {
|
690
|
+
if (options === void 0) {
|
691
|
+
options = {};
|
692
|
+
}
|
693
|
+
return {
|
694
|
+
name: 'hide',
|
695
|
+
options,
|
696
|
+
async fn(state) {
|
697
|
+
const {
|
698
|
+
rects
|
699
|
+
} = state;
|
700
|
+
const {
|
701
|
+
strategy = 'referenceHidden',
|
702
|
+
...detectOverflowOptions
|
703
|
+
} = evaluate(options, state);
|
704
|
+
switch (strategy) {
|
705
|
+
case 'referenceHidden':
|
706
|
+
{
|
707
|
+
const overflow = await detectOverflow(state, {
|
708
|
+
...detectOverflowOptions,
|
709
|
+
elementContext: 'reference'
|
710
|
+
});
|
711
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
712
|
+
return {
|
713
|
+
data: {
|
714
|
+
referenceHiddenOffsets: offsets,
|
715
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
716
|
+
}
|
717
|
+
};
|
718
|
+
}
|
719
|
+
case 'escaped':
|
720
|
+
{
|
721
|
+
const overflow = await detectOverflow(state, {
|
722
|
+
...detectOverflowOptions,
|
723
|
+
altBoundary: true
|
724
|
+
});
|
725
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
726
|
+
return {
|
727
|
+
data: {
|
728
|
+
escapedOffsets: offsets,
|
729
|
+
escaped: isAnySideFullyClipped(offsets)
|
730
|
+
}
|
731
|
+
};
|
732
|
+
}
|
733
|
+
default:
|
734
|
+
{
|
735
|
+
return {};
|
736
|
+
}
|
737
|
+
}
|
738
|
+
}
|
739
|
+
};
|
740
|
+
};
|
741
|
+
|
742
|
+
function getBoundingRect(rects) {
|
743
|
+
const minX = min(...rects.map(rect => rect.left));
|
744
|
+
const minY = min(...rects.map(rect => rect.top));
|
745
|
+
const maxX = max(...rects.map(rect => rect.right));
|
746
|
+
const maxY = max(...rects.map(rect => rect.bottom));
|
747
|
+
return {
|
748
|
+
x: minX,
|
749
|
+
y: minY,
|
750
|
+
width: maxX - minX,
|
751
|
+
height: maxY - minY
|
752
|
+
};
|
753
|
+
}
|
754
|
+
function getRectsByLine(rects) {
|
755
|
+
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
756
|
+
const groups = [];
|
757
|
+
let prevRect = null;
|
758
|
+
for (let i = 0; i < sortedRects.length; i++) {
|
759
|
+
const rect = sortedRects[i];
|
760
|
+
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
761
|
+
groups.push([rect]);
|
762
|
+
} else {
|
763
|
+
groups[groups.length - 1].push(rect);
|
764
|
+
}
|
765
|
+
prevRect = rect;
|
766
|
+
}
|
767
|
+
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
768
|
+
}
|
769
|
+
/**
|
770
|
+
* Provides improved positioning for inline reference elements that can span
|
771
|
+
* over multiple lines, such as hyperlinks or range selections.
|
772
|
+
* @see https://floating-ui.com/docs/inline
|
773
|
+
*/
|
774
|
+
const inline = function (options) {
|
775
|
+
if (options === void 0) {
|
776
|
+
options = {};
|
777
|
+
}
|
778
|
+
return {
|
779
|
+
name: 'inline',
|
780
|
+
options,
|
781
|
+
async fn(state) {
|
782
|
+
const {
|
783
|
+
placement,
|
784
|
+
elements,
|
785
|
+
rects,
|
786
|
+
platform,
|
787
|
+
strategy
|
788
|
+
} = state;
|
789
|
+
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
790
|
+
// ClientRect's bounds, despite the event listener being triggered. A
|
791
|
+
// padding of 2 seems to handle this issue.
|
792
|
+
const {
|
793
|
+
padding = 2,
|
794
|
+
x,
|
795
|
+
y
|
796
|
+
} = evaluate(options, state);
|
797
|
+
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
798
|
+
const clientRects = getRectsByLine(nativeClientRects);
|
799
|
+
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
800
|
+
const paddingObject = getPaddingObject(padding);
|
801
|
+
function getBoundingClientRect() {
|
802
|
+
// There are two rects and they are disjoined.
|
803
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
804
|
+
// Find the first rect in which the point is fully inside.
|
805
|
+
return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
806
|
+
}
|
807
|
+
|
808
|
+
// There are 2 or more connected rects.
|
809
|
+
if (clientRects.length >= 2) {
|
810
|
+
if (getSideAxis(placement) === 'y') {
|
811
|
+
const firstRect = clientRects[0];
|
812
|
+
const lastRect = clientRects[clientRects.length - 1];
|
813
|
+
const isTop = getSide(placement) === 'top';
|
814
|
+
const top = firstRect.top;
|
815
|
+
const bottom = lastRect.bottom;
|
816
|
+
const left = isTop ? firstRect.left : lastRect.left;
|
817
|
+
const right = isTop ? firstRect.right : lastRect.right;
|
818
|
+
const width = right - left;
|
819
|
+
const height = bottom - top;
|
820
|
+
return {
|
821
|
+
top,
|
822
|
+
bottom,
|
823
|
+
left,
|
824
|
+
right,
|
825
|
+
width,
|
826
|
+
height,
|
827
|
+
x: left,
|
828
|
+
y: top
|
829
|
+
};
|
830
|
+
}
|
831
|
+
const isLeftSide = getSide(placement) === 'left';
|
832
|
+
const maxRight = max(...clientRects.map(rect => rect.right));
|
833
|
+
const minLeft = min(...clientRects.map(rect => rect.left));
|
834
|
+
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
835
|
+
const top = measureRects[0].top;
|
836
|
+
const bottom = measureRects[measureRects.length - 1].bottom;
|
837
|
+
const left = minLeft;
|
838
|
+
const right = maxRight;
|
839
|
+
const width = right - left;
|
840
|
+
const height = bottom - top;
|
841
|
+
return {
|
842
|
+
top,
|
843
|
+
bottom,
|
844
|
+
left,
|
845
|
+
right,
|
846
|
+
width,
|
847
|
+
height,
|
848
|
+
x: left,
|
849
|
+
y: top
|
850
|
+
};
|
851
|
+
}
|
852
|
+
return fallback;
|
853
|
+
}
|
854
|
+
const resetRects = await platform.getElementRects({
|
855
|
+
reference: {
|
856
|
+
getBoundingClientRect
|
857
|
+
},
|
858
|
+
floating: elements.floating,
|
859
|
+
strategy
|
860
|
+
});
|
861
|
+
if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
|
862
|
+
return {
|
863
|
+
reset: {
|
864
|
+
rects: resetRects
|
865
|
+
}
|
866
|
+
};
|
867
|
+
}
|
868
|
+
return {};
|
869
|
+
}
|
870
|
+
};
|
871
|
+
};
|
872
|
+
|
873
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
874
|
+
// Derivable.
|
875
|
+
|
876
|
+
async function convertValueToCoords(state, options) {
|
877
|
+
const {
|
878
|
+
placement,
|
879
|
+
platform,
|
880
|
+
elements
|
881
|
+
} = state;
|
882
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
883
|
+
const side = getSide(placement);
|
884
|
+
const alignment = getAlignment(placement);
|
885
|
+
const isVertical = getSideAxis(placement) === 'y';
|
886
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
887
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
888
|
+
const rawValue = evaluate(options, state);
|
889
|
+
|
890
|
+
// eslint-disable-next-line prefer-const
|
891
|
+
let {
|
892
|
+
mainAxis,
|
893
|
+
crossAxis,
|
894
|
+
alignmentAxis
|
895
|
+
} = typeof rawValue === 'number' ? {
|
896
|
+
mainAxis: rawValue,
|
897
|
+
crossAxis: 0,
|
898
|
+
alignmentAxis: null
|
899
|
+
} : {
|
900
|
+
mainAxis: 0,
|
901
|
+
crossAxis: 0,
|
902
|
+
alignmentAxis: null,
|
903
|
+
...rawValue
|
904
|
+
};
|
905
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
906
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
907
|
+
}
|
908
|
+
return isVertical ? {
|
909
|
+
x: crossAxis * crossAxisMulti,
|
910
|
+
y: mainAxis * mainAxisMulti
|
911
|
+
} : {
|
912
|
+
x: mainAxis * mainAxisMulti,
|
913
|
+
y: crossAxis * crossAxisMulti
|
914
|
+
};
|
915
|
+
}
|
916
|
+
|
917
|
+
/**
|
918
|
+
* Modifies the placement by translating the floating element along the
|
919
|
+
* specified axes.
|
920
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
921
|
+
* object may be passed.
|
922
|
+
* @see https://floating-ui.com/docs/offset
|
923
|
+
*/
|
924
|
+
const offset$1 = function (options) {
|
925
|
+
if (options === void 0) {
|
926
|
+
options = 0;
|
927
|
+
}
|
928
|
+
return {
|
929
|
+
name: 'offset',
|
930
|
+
options,
|
931
|
+
async fn(state) {
|
932
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
933
|
+
const {
|
934
|
+
x,
|
935
|
+
y,
|
936
|
+
placement,
|
937
|
+
middlewareData
|
938
|
+
} = state;
|
939
|
+
const diffCoords = await convertValueToCoords(state, options);
|
940
|
+
|
941
|
+
// If the placement is the same and the arrow caused an alignment offset
|
942
|
+
// then we don't need to change the positioning coordinates.
|
943
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
944
|
+
return {};
|
945
|
+
}
|
946
|
+
return {
|
947
|
+
x: x + diffCoords.x,
|
948
|
+
y: y + diffCoords.y,
|
949
|
+
data: {
|
950
|
+
...diffCoords,
|
951
|
+
placement
|
952
|
+
}
|
953
|
+
};
|
954
|
+
}
|
955
|
+
};
|
956
|
+
};
|
957
|
+
|
958
|
+
/**
|
959
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
960
|
+
* keep it in view when it will overflow the clipping boundary.
|
961
|
+
* @see https://floating-ui.com/docs/shift
|
962
|
+
*/
|
963
|
+
const shift$1 = function (options) {
|
964
|
+
if (options === void 0) {
|
965
|
+
options = {};
|
966
|
+
}
|
967
|
+
return {
|
968
|
+
name: 'shift',
|
969
|
+
options,
|
970
|
+
async fn(state) {
|
971
|
+
const {
|
972
|
+
x,
|
973
|
+
y,
|
974
|
+
placement
|
975
|
+
} = state;
|
976
|
+
const {
|
977
|
+
mainAxis: checkMainAxis = true,
|
978
|
+
crossAxis: checkCrossAxis = false,
|
979
|
+
limiter = {
|
980
|
+
fn: _ref => {
|
981
|
+
let {
|
982
|
+
x,
|
983
|
+
y
|
984
|
+
} = _ref;
|
985
|
+
return {
|
986
|
+
x,
|
987
|
+
y
|
988
|
+
};
|
989
|
+
}
|
990
|
+
},
|
991
|
+
...detectOverflowOptions
|
992
|
+
} = evaluate(options, state);
|
993
|
+
const coords = {
|
994
|
+
x,
|
995
|
+
y
|
996
|
+
};
|
997
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
998
|
+
const crossAxis = getSideAxis(getSide(placement));
|
999
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
1000
|
+
let mainAxisCoord = coords[mainAxis];
|
1001
|
+
let crossAxisCoord = coords[crossAxis];
|
1002
|
+
if (checkMainAxis) {
|
1003
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
1004
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
1005
|
+
const min = mainAxisCoord + overflow[minSide];
|
1006
|
+
const max = mainAxisCoord - overflow[maxSide];
|
1007
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
1008
|
+
}
|
1009
|
+
if (checkCrossAxis) {
|
1010
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
1011
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
1012
|
+
const min = crossAxisCoord + overflow[minSide];
|
1013
|
+
const max = crossAxisCoord - overflow[maxSide];
|
1014
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
1015
|
+
}
|
1016
|
+
const limitedCoords = limiter.fn({
|
1017
|
+
...state,
|
1018
|
+
[mainAxis]: mainAxisCoord,
|
1019
|
+
[crossAxis]: crossAxisCoord
|
1020
|
+
});
|
1021
|
+
return {
|
1022
|
+
...limitedCoords,
|
1023
|
+
data: {
|
1024
|
+
x: limitedCoords.x - x,
|
1025
|
+
y: limitedCoords.y - y
|
1026
|
+
}
|
1027
|
+
};
|
1028
|
+
}
|
1029
|
+
};
|
1030
|
+
};
|
1031
|
+
/**
|
1032
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
1033
|
+
*/
|
1034
|
+
const limitShift = function (options) {
|
1035
|
+
if (options === void 0) {
|
1036
|
+
options = {};
|
1037
|
+
}
|
1038
|
+
return {
|
1039
|
+
options,
|
1040
|
+
fn(state) {
|
1041
|
+
const {
|
1042
|
+
x,
|
1043
|
+
y,
|
1044
|
+
placement,
|
1045
|
+
rects,
|
1046
|
+
middlewareData
|
1047
|
+
} = state;
|
1048
|
+
const {
|
1049
|
+
offset = 0,
|
1050
|
+
mainAxis: checkMainAxis = true,
|
1051
|
+
crossAxis: checkCrossAxis = true
|
1052
|
+
} = evaluate(options, state);
|
1053
|
+
const coords = {
|
1054
|
+
x,
|
1055
|
+
y
|
1056
|
+
};
|
1057
|
+
const crossAxis = getSideAxis(placement);
|
1058
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
1059
|
+
let mainAxisCoord = coords[mainAxis];
|
1060
|
+
let crossAxisCoord = coords[crossAxis];
|
1061
|
+
const rawOffset = evaluate(offset, state);
|
1062
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
1063
|
+
mainAxis: rawOffset,
|
1064
|
+
crossAxis: 0
|
1065
|
+
} : {
|
1066
|
+
mainAxis: 0,
|
1067
|
+
crossAxis: 0,
|
1068
|
+
...rawOffset
|
1069
|
+
};
|
1070
|
+
if (checkMainAxis) {
|
1071
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
1072
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
1073
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
1074
|
+
if (mainAxisCoord < limitMin) {
|
1075
|
+
mainAxisCoord = limitMin;
|
1076
|
+
} else if (mainAxisCoord > limitMax) {
|
1077
|
+
mainAxisCoord = limitMax;
|
1078
|
+
}
|
1079
|
+
}
|
1080
|
+
if (checkCrossAxis) {
|
1081
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
1082
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
1083
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
1084
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
1085
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
1086
|
+
if (crossAxisCoord < limitMin) {
|
1087
|
+
crossAxisCoord = limitMin;
|
1088
|
+
} else if (crossAxisCoord > limitMax) {
|
1089
|
+
crossAxisCoord = limitMax;
|
1090
|
+
}
|
1091
|
+
}
|
1092
|
+
return {
|
1093
|
+
[mainAxis]: mainAxisCoord,
|
1094
|
+
[crossAxis]: crossAxisCoord
|
1095
|
+
};
|
1096
|
+
}
|
1097
|
+
};
|
1098
|
+
};
|
1099
|
+
|
1100
|
+
/**
|
1101
|
+
* Provides data that allows you to change the size of the floating element —
|
1102
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
1103
|
+
* width of the reference element.
|
1104
|
+
* @see https://floating-ui.com/docs/size
|
1105
|
+
*/
|
1106
|
+
const size = function (options) {
|
1107
|
+
if (options === void 0) {
|
1108
|
+
options = {};
|
1109
|
+
}
|
1110
|
+
return {
|
1111
|
+
name: 'size',
|
1112
|
+
options,
|
1113
|
+
async fn(state) {
|
1114
|
+
const {
|
1115
|
+
placement,
|
1116
|
+
rects,
|
1117
|
+
platform,
|
1118
|
+
elements
|
1119
|
+
} = state;
|
1120
|
+
const {
|
1121
|
+
apply = () => {},
|
1122
|
+
...detectOverflowOptions
|
1123
|
+
} = evaluate(options, state);
|
1124
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
1125
|
+
const side = getSide(placement);
|
1126
|
+
const alignment = getAlignment(placement);
|
1127
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
1128
|
+
const {
|
1129
|
+
width,
|
1130
|
+
height
|
1131
|
+
} = rects.floating;
|
1132
|
+
let heightSide;
|
1133
|
+
let widthSide;
|
1134
|
+
if (side === 'top' || side === 'bottom') {
|
1135
|
+
heightSide = side;
|
1136
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
1137
|
+
} else {
|
1138
|
+
widthSide = side;
|
1139
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
1140
|
+
}
|
1141
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
1142
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
1143
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
1144
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
1145
|
+
const noShift = !state.middlewareData.shift;
|
1146
|
+
let availableHeight = overflowAvailableHeight;
|
1147
|
+
let availableWidth = overflowAvailableWidth;
|
1148
|
+
if (isYAxis) {
|
1149
|
+
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
1150
|
+
} else {
|
1151
|
+
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
1152
|
+
}
|
1153
|
+
if (noShift && !alignment) {
|
1154
|
+
const xMin = max(overflow.left, 0);
|
1155
|
+
const xMax = max(overflow.right, 0);
|
1156
|
+
const yMin = max(overflow.top, 0);
|
1157
|
+
const yMax = max(overflow.bottom, 0);
|
1158
|
+
if (isYAxis) {
|
1159
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
1160
|
+
} else {
|
1161
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
1162
|
+
}
|
1163
|
+
}
|
1164
|
+
await apply({
|
1165
|
+
...state,
|
1166
|
+
availableWidth,
|
1167
|
+
availableHeight
|
1168
|
+
});
|
1169
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
1170
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
1171
|
+
return {
|
1172
|
+
reset: {
|
1173
|
+
rects: true
|
1174
|
+
}
|
1175
|
+
};
|
1176
|
+
}
|
1177
|
+
return {};
|
1178
|
+
}
|
1179
|
+
};
|
1180
|
+
};
|
1181
|
+
|
1182
|
+
function getNodeName(node) {
|
1183
|
+
if (isNode(node)) {
|
1184
|
+
return (node.nodeName || '').toLowerCase();
|
1185
|
+
}
|
1186
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
1187
|
+
// returning `#document` an infinite loop won't occur.
|
1188
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
1189
|
+
return '#document';
|
1190
|
+
}
|
1191
|
+
function getWindow(node) {
|
1192
|
+
var _node$ownerDocument;
|
1193
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1194
|
+
}
|
1195
|
+
function getDocumentElement(node) {
|
1196
|
+
var _ref;
|
1197
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
1198
|
+
}
|
1199
|
+
function isNode(value) {
|
1200
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
1201
|
+
}
|
1202
|
+
function isElement(value) {
|
1203
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
1204
|
+
}
|
1205
|
+
function isHTMLElement(value) {
|
1206
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
1207
|
+
}
|
1208
|
+
function isShadowRoot(value) {
|
1209
|
+
// Browsers without `ShadowRoot` support.
|
1210
|
+
if (typeof ShadowRoot === 'undefined') {
|
1211
|
+
return false;
|
1212
|
+
}
|
1213
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
1214
|
+
}
|
1215
|
+
function isOverflowElement(element) {
|
1216
|
+
const {
|
1217
|
+
overflow,
|
1218
|
+
overflowX,
|
1219
|
+
overflowY,
|
1220
|
+
display
|
1221
|
+
} = getComputedStyle$1(element);
|
1222
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
1223
|
+
}
|
1224
|
+
function isTableElement(element) {
|
1225
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
1226
|
+
}
|
1227
|
+
function isTopLayer(element) {
|
1228
|
+
return [':popover-open', ':modal'].some(selector => {
|
1229
|
+
try {
|
1230
|
+
return element.matches(selector);
|
1231
|
+
} catch (e) {
|
1232
|
+
return false;
|
1233
|
+
}
|
1234
|
+
});
|
1235
|
+
}
|
1236
|
+
function isContainingBlock(elementOrCss) {
|
1237
|
+
const webkit = isWebKit();
|
1238
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
1239
|
+
|
1240
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1241
|
+
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
1242
|
+
}
|
1243
|
+
function getContainingBlock(element) {
|
1244
|
+
let currentNode = getParentNode(element);
|
1245
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1246
|
+
if (isContainingBlock(currentNode)) {
|
1247
|
+
return currentNode;
|
1248
|
+
} else if (isTopLayer(currentNode)) {
|
1249
|
+
return null;
|
1250
|
+
}
|
1251
|
+
currentNode = getParentNode(currentNode);
|
1252
|
+
}
|
1253
|
+
return null;
|
1254
|
+
}
|
1255
|
+
function isWebKit() {
|
1256
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1257
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
1258
|
+
}
|
1259
|
+
function isLastTraversableNode(node) {
|
1260
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
1261
|
+
}
|
1262
|
+
function getComputedStyle$1(element) {
|
1263
|
+
return getWindow(element).getComputedStyle(element);
|
1264
|
+
}
|
1265
|
+
function getNodeScroll(element) {
|
1266
|
+
if (isElement(element)) {
|
1267
|
+
return {
|
1268
|
+
scrollLeft: element.scrollLeft,
|
1269
|
+
scrollTop: element.scrollTop
|
1270
|
+
};
|
1271
|
+
}
|
1272
|
+
return {
|
1273
|
+
scrollLeft: element.scrollX,
|
1274
|
+
scrollTop: element.scrollY
|
1275
|
+
};
|
1276
|
+
}
|
1277
|
+
function getParentNode(node) {
|
1278
|
+
if (getNodeName(node) === 'html') {
|
1279
|
+
return node;
|
1280
|
+
}
|
1281
|
+
const result =
|
1282
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
1283
|
+
node.assignedSlot ||
|
1284
|
+
// DOM Element detected.
|
1285
|
+
node.parentNode ||
|
1286
|
+
// ShadowRoot detected.
|
1287
|
+
isShadowRoot(node) && node.host ||
|
1288
|
+
// Fallback.
|
1289
|
+
getDocumentElement(node);
|
1290
|
+
return isShadowRoot(result) ? result.host : result;
|
1291
|
+
}
|
1292
|
+
function getNearestOverflowAncestor(node) {
|
1293
|
+
const parentNode = getParentNode(node);
|
1294
|
+
if (isLastTraversableNode(parentNode)) {
|
1295
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
1296
|
+
}
|
1297
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
1298
|
+
return parentNode;
|
1299
|
+
}
|
1300
|
+
return getNearestOverflowAncestor(parentNode);
|
1301
|
+
}
|
1302
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
1303
|
+
var _node$ownerDocument2;
|
1304
|
+
if (list === void 0) {
|
1305
|
+
list = [];
|
1306
|
+
}
|
1307
|
+
if (traverseIframes === void 0) {
|
1308
|
+
traverseIframes = true;
|
1309
|
+
}
|
1310
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1311
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1312
|
+
const win = getWindow(scrollableAncestor);
|
1313
|
+
if (isBody) {
|
1314
|
+
const frameElement = getFrameElement(win);
|
1315
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
1316
|
+
}
|
1317
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
1318
|
+
}
|
1319
|
+
function getFrameElement(win) {
|
1320
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
1321
|
+
}
|
1322
|
+
|
1323
|
+
function getCssDimensions(element) {
|
1324
|
+
const css = getComputedStyle$1(element);
|
1325
|
+
// In testing environments, the `width` and `height` properties are empty
|
1326
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
1327
|
+
let width = parseFloat(css.width) || 0;
|
1328
|
+
let height = parseFloat(css.height) || 0;
|
1329
|
+
const hasOffset = isHTMLElement(element);
|
1330
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
1331
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
1332
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
1333
|
+
if (shouldFallback) {
|
1334
|
+
width = offsetWidth;
|
1335
|
+
height = offsetHeight;
|
1336
|
+
}
|
1337
|
+
return {
|
1338
|
+
width,
|
1339
|
+
height,
|
1340
|
+
$: shouldFallback
|
1341
|
+
};
|
1342
|
+
}
|
1343
|
+
|
1344
|
+
function unwrapElement(element) {
|
1345
|
+
return !isElement(element) ? element.contextElement : element;
|
1346
|
+
}
|
1347
|
+
|
1348
|
+
function getScale(element) {
|
1349
|
+
const domElement = unwrapElement(element);
|
1350
|
+
if (!isHTMLElement(domElement)) {
|
1351
|
+
return createCoords(1);
|
1352
|
+
}
|
1353
|
+
const rect = domElement.getBoundingClientRect();
|
1354
|
+
const {
|
1355
|
+
width,
|
1356
|
+
height,
|
1357
|
+
$
|
1358
|
+
} = getCssDimensions(domElement);
|
1359
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
1360
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
1361
|
+
|
1362
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
1363
|
+
|
1364
|
+
if (!x || !Number.isFinite(x)) {
|
1365
|
+
x = 1;
|
1366
|
+
}
|
1367
|
+
if (!y || !Number.isFinite(y)) {
|
1368
|
+
y = 1;
|
1369
|
+
}
|
1370
|
+
return {
|
1371
|
+
x,
|
1372
|
+
y
|
1373
|
+
};
|
1374
|
+
}
|
1375
|
+
|
1376
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
1377
|
+
function getVisualOffsets(element) {
|
1378
|
+
const win = getWindow(element);
|
1379
|
+
if (!isWebKit() || !win.visualViewport) {
|
1380
|
+
return noOffsets;
|
1381
|
+
}
|
1382
|
+
return {
|
1383
|
+
x: win.visualViewport.offsetLeft,
|
1384
|
+
y: win.visualViewport.offsetTop
|
1385
|
+
};
|
1386
|
+
}
|
1387
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
1388
|
+
if (isFixed === void 0) {
|
1389
|
+
isFixed = false;
|
1390
|
+
}
|
1391
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
1392
|
+
return false;
|
1393
|
+
}
|
1394
|
+
return isFixed;
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
1398
|
+
if (includeScale === void 0) {
|
1399
|
+
includeScale = false;
|
1400
|
+
}
|
1401
|
+
if (isFixedStrategy === void 0) {
|
1402
|
+
isFixedStrategy = false;
|
1403
|
+
}
|
1404
|
+
const clientRect = element.getBoundingClientRect();
|
1405
|
+
const domElement = unwrapElement(element);
|
1406
|
+
let scale = createCoords(1);
|
1407
|
+
if (includeScale) {
|
1408
|
+
if (offsetParent) {
|
1409
|
+
if (isElement(offsetParent)) {
|
1410
|
+
scale = getScale(offsetParent);
|
1411
|
+
}
|
1412
|
+
} else {
|
1413
|
+
scale = getScale(element);
|
1414
|
+
}
|
1415
|
+
}
|
1416
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
1417
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
1418
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
1419
|
+
let width = clientRect.width / scale.x;
|
1420
|
+
let height = clientRect.height / scale.y;
|
1421
|
+
if (domElement) {
|
1422
|
+
const win = getWindow(domElement);
|
1423
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
1424
|
+
let currentWin = win;
|
1425
|
+
let currentIFrame = getFrameElement(currentWin);
|
1426
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
1427
|
+
const iframeScale = getScale(currentIFrame);
|
1428
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
1429
|
+
const css = getComputedStyle$1(currentIFrame);
|
1430
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
1431
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
1432
|
+
x *= iframeScale.x;
|
1433
|
+
y *= iframeScale.y;
|
1434
|
+
width *= iframeScale.x;
|
1435
|
+
height *= iframeScale.y;
|
1436
|
+
x += left;
|
1437
|
+
y += top;
|
1438
|
+
currentWin = getWindow(currentIFrame);
|
1439
|
+
currentIFrame = getFrameElement(currentWin);
|
1440
|
+
}
|
1441
|
+
}
|
1442
|
+
return rectToClientRect({
|
1443
|
+
width,
|
1444
|
+
height,
|
1445
|
+
x,
|
1446
|
+
y
|
1447
|
+
});
|
1448
|
+
}
|
1449
|
+
|
1450
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
1451
|
+
let {
|
1452
|
+
elements,
|
1453
|
+
rect,
|
1454
|
+
offsetParent,
|
1455
|
+
strategy
|
1456
|
+
} = _ref;
|
1457
|
+
const isFixed = strategy === 'fixed';
|
1458
|
+
const documentElement = getDocumentElement(offsetParent);
|
1459
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
1460
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
1461
|
+
return rect;
|
1462
|
+
}
|
1463
|
+
let scroll = {
|
1464
|
+
scrollLeft: 0,
|
1465
|
+
scrollTop: 0
|
1466
|
+
};
|
1467
|
+
let scale = createCoords(1);
|
1468
|
+
const offsets = createCoords(0);
|
1469
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1470
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1471
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1472
|
+
scroll = getNodeScroll(offsetParent);
|
1473
|
+
}
|
1474
|
+
if (isHTMLElement(offsetParent)) {
|
1475
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
1476
|
+
scale = getScale(offsetParent);
|
1477
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1478
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1479
|
+
}
|
1480
|
+
}
|
1481
|
+
return {
|
1482
|
+
width: rect.width * scale.x,
|
1483
|
+
height: rect.height * scale.y,
|
1484
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
1485
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
1486
|
+
};
|
1487
|
+
}
|
1488
|
+
|
1489
|
+
function getClientRects(element) {
|
1490
|
+
return Array.from(element.getClientRects());
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
function getWindowScrollBarX(element) {
|
1494
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
1495
|
+
// incorrect for RTL.
|
1496
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
1497
|
+
}
|
1498
|
+
|
1499
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
1500
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
1501
|
+
function getDocumentRect(element) {
|
1502
|
+
const html = getDocumentElement(element);
|
1503
|
+
const scroll = getNodeScroll(element);
|
1504
|
+
const body = element.ownerDocument.body;
|
1505
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
1506
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
1507
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
1508
|
+
const y = -scroll.scrollTop;
|
1509
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
1510
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
1511
|
+
}
|
1512
|
+
return {
|
1513
|
+
width,
|
1514
|
+
height,
|
1515
|
+
x,
|
1516
|
+
y
|
1517
|
+
};
|
1518
|
+
}
|
1519
|
+
|
1520
|
+
function getViewportRect(element, strategy) {
|
1521
|
+
const win = getWindow(element);
|
1522
|
+
const html = getDocumentElement(element);
|
1523
|
+
const visualViewport = win.visualViewport;
|
1524
|
+
let width = html.clientWidth;
|
1525
|
+
let height = html.clientHeight;
|
1526
|
+
let x = 0;
|
1527
|
+
let y = 0;
|
1528
|
+
if (visualViewport) {
|
1529
|
+
width = visualViewport.width;
|
1530
|
+
height = visualViewport.height;
|
1531
|
+
const visualViewportBased = isWebKit();
|
1532
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
1533
|
+
x = visualViewport.offsetLeft;
|
1534
|
+
y = visualViewport.offsetTop;
|
1535
|
+
}
|
1536
|
+
}
|
1537
|
+
return {
|
1538
|
+
width,
|
1539
|
+
height,
|
1540
|
+
x,
|
1541
|
+
y
|
1542
|
+
};
|
1543
|
+
}
|
1544
|
+
|
1545
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
1546
|
+
function getInnerBoundingClientRect(element, strategy) {
|
1547
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
1548
|
+
const top = clientRect.top + element.clientTop;
|
1549
|
+
const left = clientRect.left + element.clientLeft;
|
1550
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
1551
|
+
const width = element.clientWidth * scale.x;
|
1552
|
+
const height = element.clientHeight * scale.y;
|
1553
|
+
const x = left * scale.x;
|
1554
|
+
const y = top * scale.y;
|
1555
|
+
return {
|
1556
|
+
width,
|
1557
|
+
height,
|
1558
|
+
x,
|
1559
|
+
y
|
1560
|
+
};
|
1561
|
+
}
|
1562
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
1563
|
+
let rect;
|
1564
|
+
if (clippingAncestor === 'viewport') {
|
1565
|
+
rect = getViewportRect(element, strategy);
|
1566
|
+
} else if (clippingAncestor === 'document') {
|
1567
|
+
rect = getDocumentRect(getDocumentElement(element));
|
1568
|
+
} else if (isElement(clippingAncestor)) {
|
1569
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
1570
|
+
} else {
|
1571
|
+
const visualOffsets = getVisualOffsets(element);
|
1572
|
+
rect = {
|
1573
|
+
...clippingAncestor,
|
1574
|
+
x: clippingAncestor.x - visualOffsets.x,
|
1575
|
+
y: clippingAncestor.y - visualOffsets.y
|
1576
|
+
};
|
1577
|
+
}
|
1578
|
+
return rectToClientRect(rect);
|
1579
|
+
}
|
1580
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
1581
|
+
const parentNode = getParentNode(element);
|
1582
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
1583
|
+
return false;
|
1584
|
+
}
|
1585
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
1586
|
+
}
|
1587
|
+
|
1588
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
1589
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
1590
|
+
// of the given element up the tree.
|
1591
|
+
function getClippingElementAncestors(element, cache) {
|
1592
|
+
const cachedResult = cache.get(element);
|
1593
|
+
if (cachedResult) {
|
1594
|
+
return cachedResult;
|
1595
|
+
}
|
1596
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
1597
|
+
let currentContainingBlockComputedStyle = null;
|
1598
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
1599
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
1600
|
+
|
1601
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1602
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1603
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
1604
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
1605
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
1606
|
+
currentContainingBlockComputedStyle = null;
|
1607
|
+
}
|
1608
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
1609
|
+
if (shouldDropCurrentNode) {
|
1610
|
+
// Drop non-containing blocks.
|
1611
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
1612
|
+
} else {
|
1613
|
+
// Record last containing block for next iteration.
|
1614
|
+
currentContainingBlockComputedStyle = computedStyle;
|
1615
|
+
}
|
1616
|
+
currentNode = getParentNode(currentNode);
|
1617
|
+
}
|
1618
|
+
cache.set(element, result);
|
1619
|
+
return result;
|
1620
|
+
}
|
1621
|
+
|
1622
|
+
// Gets the maximum area that the element is visible in due to any number of
|
1623
|
+
// clipping ancestors.
|
1624
|
+
function getClippingRect(_ref) {
|
1625
|
+
let {
|
1626
|
+
element,
|
1627
|
+
boundary,
|
1628
|
+
rootBoundary,
|
1629
|
+
strategy
|
1630
|
+
} = _ref;
|
1631
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
1632
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
1633
|
+
const firstClippingAncestor = clippingAncestors[0];
|
1634
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
1635
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
1636
|
+
accRect.top = max(rect.top, accRect.top);
|
1637
|
+
accRect.right = min(rect.right, accRect.right);
|
1638
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
1639
|
+
accRect.left = max(rect.left, accRect.left);
|
1640
|
+
return accRect;
|
1641
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
1642
|
+
return {
|
1643
|
+
width: clippingRect.right - clippingRect.left,
|
1644
|
+
height: clippingRect.bottom - clippingRect.top,
|
1645
|
+
x: clippingRect.left,
|
1646
|
+
y: clippingRect.top
|
1647
|
+
};
|
1648
|
+
}
|
1649
|
+
|
1650
|
+
function getDimensions(element) {
|
1651
|
+
const {
|
1652
|
+
width,
|
1653
|
+
height
|
1654
|
+
} = getCssDimensions(element);
|
1655
|
+
return {
|
1656
|
+
width,
|
1657
|
+
height
|
1658
|
+
};
|
1659
|
+
}
|
1660
|
+
|
1661
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
1662
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1663
|
+
const documentElement = getDocumentElement(offsetParent);
|
1664
|
+
const isFixed = strategy === 'fixed';
|
1665
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
1666
|
+
let scroll = {
|
1667
|
+
scrollLeft: 0,
|
1668
|
+
scrollTop: 0
|
1669
|
+
};
|
1670
|
+
const offsets = createCoords(0);
|
1671
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1672
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1673
|
+
scroll = getNodeScroll(offsetParent);
|
1674
|
+
}
|
1675
|
+
if (isOffsetParentAnElement) {
|
1676
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
1677
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1678
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1679
|
+
} else if (documentElement) {
|
1680
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
1681
|
+
}
|
1682
|
+
}
|
1683
|
+
const x = rect.left + scroll.scrollLeft - offsets.x;
|
1684
|
+
const y = rect.top + scroll.scrollTop - offsets.y;
|
1685
|
+
return {
|
1686
|
+
x,
|
1687
|
+
y,
|
1688
|
+
width: rect.width,
|
1689
|
+
height: rect.height
|
1690
|
+
};
|
1691
|
+
}
|
1692
|
+
|
1693
|
+
function isStaticPositioned(element) {
|
1694
|
+
return getComputedStyle$1(element).position === 'static';
|
1695
|
+
}
|
1696
|
+
|
1697
|
+
function getTrueOffsetParent(element, polyfill) {
|
1698
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
1699
|
+
return null;
|
1700
|
+
}
|
1701
|
+
if (polyfill) {
|
1702
|
+
return polyfill(element);
|
1703
|
+
}
|
1704
|
+
return element.offsetParent;
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
1708
|
+
// such as table ancestors and cross browser bugs.
|
1709
|
+
function getOffsetParent(element, polyfill) {
|
1710
|
+
const win = getWindow(element);
|
1711
|
+
if (isTopLayer(element)) {
|
1712
|
+
return win;
|
1713
|
+
}
|
1714
|
+
if (!isHTMLElement(element)) {
|
1715
|
+
let svgOffsetParent = getParentNode(element);
|
1716
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
1717
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
1718
|
+
return svgOffsetParent;
|
1719
|
+
}
|
1720
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
1721
|
+
}
|
1722
|
+
return win;
|
1723
|
+
}
|
1724
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
1725
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
1726
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
1727
|
+
}
|
1728
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
1729
|
+
return win;
|
1730
|
+
}
|
1731
|
+
return offsetParent || getContainingBlock(element) || win;
|
1732
|
+
}
|
1733
|
+
|
1734
|
+
const getElementRects = async function (data) {
|
1735
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
1736
|
+
const getDimensionsFn = this.getDimensions;
|
1737
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
1738
|
+
return {
|
1739
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
1740
|
+
floating: {
|
1741
|
+
x: 0,
|
1742
|
+
y: 0,
|
1743
|
+
width: floatingDimensions.width,
|
1744
|
+
height: floatingDimensions.height
|
1745
|
+
}
|
1746
|
+
};
|
1747
|
+
};
|
1748
|
+
|
1749
|
+
function isRTL(element) {
|
1750
|
+
return getComputedStyle$1(element).direction === 'rtl';
|
1751
|
+
}
|
1752
|
+
|
1753
|
+
const platform = {
|
1754
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
1755
|
+
getDocumentElement,
|
1756
|
+
getClippingRect,
|
1757
|
+
getOffsetParent,
|
1758
|
+
getElementRects,
|
1759
|
+
getClientRects,
|
1760
|
+
getDimensions,
|
1761
|
+
getScale,
|
1762
|
+
isElement,
|
1763
|
+
isRTL
|
1764
|
+
};
|
1765
|
+
|
1766
|
+
// https://samthor.au/2021/observing-dom/
|
1767
|
+
function observeMove(element, onMove) {
|
1768
|
+
let io = null;
|
1769
|
+
let timeoutId;
|
1770
|
+
const root = getDocumentElement(element);
|
1771
|
+
function cleanup() {
|
1772
|
+
var _io;
|
1773
|
+
clearTimeout(timeoutId);
|
1774
|
+
(_io = io) == null || _io.disconnect();
|
1775
|
+
io = null;
|
1776
|
+
}
|
1777
|
+
function refresh(skip, threshold) {
|
1778
|
+
if (skip === void 0) {
|
1779
|
+
skip = false;
|
1780
|
+
}
|
1781
|
+
if (threshold === void 0) {
|
1782
|
+
threshold = 1;
|
1783
|
+
}
|
1784
|
+
cleanup();
|
1785
|
+
const {
|
1786
|
+
left,
|
1787
|
+
top,
|
1788
|
+
width,
|
1789
|
+
height
|
1790
|
+
} = element.getBoundingClientRect();
|
1791
|
+
if (!skip) {
|
1792
|
+
onMove();
|
1793
|
+
}
|
1794
|
+
if (!width || !height) {
|
1795
|
+
return;
|
1796
|
+
}
|
1797
|
+
const insetTop = floor(top);
|
1798
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
1799
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
1800
|
+
const insetLeft = floor(left);
|
1801
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
1802
|
+
const options = {
|
1803
|
+
rootMargin,
|
1804
|
+
threshold: max(0, min(1, threshold)) || 1
|
1805
|
+
};
|
1806
|
+
let isFirstUpdate = true;
|
1807
|
+
function handleObserve(entries) {
|
1808
|
+
const ratio = entries[0].intersectionRatio;
|
1809
|
+
if (ratio !== threshold) {
|
1810
|
+
if (!isFirstUpdate) {
|
1811
|
+
return refresh();
|
1812
|
+
}
|
1813
|
+
if (!ratio) {
|
1814
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
1815
|
+
// to prevent an infinite loop of updates.
|
1816
|
+
timeoutId = setTimeout(() => {
|
1817
|
+
refresh(false, 1e-7);
|
1818
|
+
}, 1000);
|
1819
|
+
} else {
|
1820
|
+
refresh(false, ratio);
|
1821
|
+
}
|
1822
|
+
}
|
1823
|
+
isFirstUpdate = false;
|
1824
|
+
}
|
1825
|
+
|
1826
|
+
// Older browsers don't support a `document` as the root and will throw an
|
1827
|
+
// error.
|
1828
|
+
try {
|
1829
|
+
io = new IntersectionObserver(handleObserve, {
|
1830
|
+
...options,
|
1831
|
+
// Handle <iframe>s
|
1832
|
+
root: root.ownerDocument
|
1833
|
+
});
|
1834
|
+
} catch (e) {
|
1835
|
+
io = new IntersectionObserver(handleObserve, options);
|
1836
|
+
}
|
1837
|
+
io.observe(element);
|
1838
|
+
}
|
1839
|
+
refresh(true);
|
1840
|
+
return cleanup;
|
1841
|
+
}
|
1842
|
+
|
1843
|
+
/**
|
1844
|
+
* Automatically updates the position of the floating element when necessary.
|
1845
|
+
* Should only be called when the floating element is mounted on the DOM or
|
1846
|
+
* visible on the screen.
|
1847
|
+
* @returns cleanup function that should be invoked when the floating element is
|
1848
|
+
* removed from the DOM or hidden from the screen.
|
1849
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
1850
|
+
*/
|
1851
|
+
function autoUpdate(reference, floating, update, options) {
|
1852
|
+
if (options === void 0) {
|
1853
|
+
options = {};
|
1854
|
+
}
|
1855
|
+
const {
|
1856
|
+
ancestorScroll = true,
|
1857
|
+
ancestorResize = true,
|
1858
|
+
elementResize = typeof ResizeObserver === 'function',
|
1859
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
1860
|
+
animationFrame = false
|
1861
|
+
} = options;
|
1862
|
+
const referenceEl = unwrapElement(reference);
|
1863
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
1864
|
+
ancestors.forEach(ancestor => {
|
1865
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
1866
|
+
passive: true
|
1867
|
+
});
|
1868
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
1869
|
+
});
|
1870
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
1871
|
+
let reobserveFrame = -1;
|
1872
|
+
let resizeObserver = null;
|
1873
|
+
if (elementResize) {
|
1874
|
+
resizeObserver = new ResizeObserver(_ref => {
|
1875
|
+
let [firstEntry] = _ref;
|
1876
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
1877
|
+
// Prevent update loops when using the `size` middleware.
|
1878
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
1879
|
+
resizeObserver.unobserve(floating);
|
1880
|
+
cancelAnimationFrame(reobserveFrame);
|
1881
|
+
reobserveFrame = requestAnimationFrame(() => {
|
1882
|
+
var _resizeObserver;
|
1883
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
1884
|
+
});
|
1885
|
+
}
|
1886
|
+
update();
|
1887
|
+
});
|
1888
|
+
if (referenceEl && !animationFrame) {
|
1889
|
+
resizeObserver.observe(referenceEl);
|
1890
|
+
}
|
1891
|
+
resizeObserver.observe(floating);
|
1892
|
+
}
|
1893
|
+
let frameId;
|
1894
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
1895
|
+
if (animationFrame) {
|
1896
|
+
frameLoop();
|
1897
|
+
}
|
1898
|
+
function frameLoop() {
|
1899
|
+
const nextRefRect = getBoundingClientRect(reference);
|
1900
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
1901
|
+
update();
|
1902
|
+
}
|
1903
|
+
prevRefRect = nextRefRect;
|
1904
|
+
frameId = requestAnimationFrame(frameLoop);
|
1905
|
+
}
|
1906
|
+
update();
|
1907
|
+
return () => {
|
1908
|
+
var _resizeObserver2;
|
1909
|
+
ancestors.forEach(ancestor => {
|
1910
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
1911
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
1912
|
+
});
|
1913
|
+
cleanupIo == null || cleanupIo();
|
1914
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
1915
|
+
resizeObserver = null;
|
1916
|
+
if (animationFrame) {
|
1917
|
+
cancelAnimationFrame(frameId);
|
1918
|
+
}
|
1919
|
+
};
|
1920
|
+
}
|
1921
|
+
|
1922
|
+
/**
|
1923
|
+
* Modifies the placement by translating the floating element along the
|
1924
|
+
* specified axes.
|
1925
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
1926
|
+
* object may be passed.
|
1927
|
+
* @see https://floating-ui.com/docs/offset
|
1928
|
+
*/
|
1929
|
+
const offset = offset$1;
|
1930
|
+
|
1931
|
+
/**
|
1932
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
1933
|
+
* that has the most space available automatically, without needing to specify a
|
1934
|
+
* preferred placement. Alternative to `flip`.
|
1935
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
1936
|
+
*/
|
1937
|
+
const autoPlacement = autoPlacement$1;
|
1938
|
+
|
1939
|
+
/**
|
1940
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
1941
|
+
* keep it in view when it will overflow the clipping boundary.
|
1942
|
+
* @see https://floating-ui.com/docs/shift
|
1943
|
+
*/
|
1944
|
+
const shift = shift$1;
|
1945
|
+
|
1946
|
+
/**
|
1947
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
1948
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
1949
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
1950
|
+
* @see https://floating-ui.com/docs/flip
|
1951
|
+
*/
|
1952
|
+
const flip = flip$1;
|
1953
|
+
|
1954
|
+
/**
|
1955
|
+
* Provides data that allows you to change the size of the floating element —
|
1956
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
1957
|
+
* width of the reference element.
|
1958
|
+
* @see https://floating-ui.com/docs/size
|
1959
|
+
*/
|
1960
|
+
size;
|
1961
|
+
|
1962
|
+
/**
|
1963
|
+
* Provides data to hide the floating element in applicable situations, such as
|
1964
|
+
* when it is not in the same clipping context as the reference element.
|
1965
|
+
* @see https://floating-ui.com/docs/hide
|
1966
|
+
*/
|
1967
|
+
const hide = hide$1;
|
1968
|
+
|
1969
|
+
/**
|
1970
|
+
* Provides data to position an inner element of the floating element so that it
|
1971
|
+
* appears centered to the reference element.
|
1972
|
+
* @see https://floating-ui.com/docs/arrow
|
1973
|
+
*/
|
1974
|
+
const arrow = arrow$1;
|
1975
|
+
|
1976
|
+
/**
|
1977
|
+
* Provides improved positioning for inline reference elements that can span
|
1978
|
+
* over multiple lines, such as hyperlinks or range selections.
|
1979
|
+
* @see https://floating-ui.com/docs/inline
|
1980
|
+
*/
|
1981
|
+
inline;
|
1982
|
+
|
1983
|
+
/**
|
1984
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
1985
|
+
*/
|
1986
|
+
limitShift;
|
1987
|
+
|
1988
|
+
/**
|
1989
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
1990
|
+
* next to a given reference element.
|
1991
|
+
*/
|
1992
|
+
const computePosition = (reference, floating, options) => {
|
1993
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
1994
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
1995
|
+
// single call. If other functions become expensive, we can add them as well.
|
1996
|
+
const cache = new Map();
|
1997
|
+
const mergedOptions = {
|
1998
|
+
platform,
|
1999
|
+
...options
|
2000
|
+
};
|
2001
|
+
const platformWithCache = {
|
2002
|
+
...mergedOptions.platform,
|
2003
|
+
_c: cache
|
2004
|
+
};
|
2005
|
+
return computePosition$1(reference, floating, {
|
2006
|
+
...mergedOptions,
|
2007
|
+
platform: platformWithCache
|
2008
|
+
});
|
2009
|
+
};
|
2010
|
+
|
2011
|
+
function offsetParent(element) {
|
2012
|
+
return offsetParentPolyfill(element);
|
2013
|
+
}
|
2014
|
+
function flatTreeParent(element) {
|
2015
|
+
if (element.assignedSlot) {
|
2016
|
+
return element.assignedSlot;
|
2017
|
+
}
|
2018
|
+
if (element.parentNode instanceof ShadowRoot) {
|
2019
|
+
return element.parentNode.host;
|
2020
|
+
}
|
2021
|
+
return element.parentNode;
|
2022
|
+
}
|
2023
|
+
function offsetParentPolyfill(element) {
|
2024
|
+
// Do an initial walk to check for display:none ancestors.
|
2025
|
+
for (let ancestor = element; ancestor; ancestor = flatTreeParent(ancestor)) {
|
2026
|
+
if (!(ancestor instanceof Element)) {
|
2027
|
+
continue;
|
2028
|
+
}
|
2029
|
+
if (getComputedStyle(ancestor).display === 'none') {
|
2030
|
+
return null;
|
2031
|
+
}
|
2032
|
+
}
|
2033
|
+
for (let ancestor = flatTreeParent(element); ancestor; ancestor = flatTreeParent(ancestor)) {
|
2034
|
+
if (!(ancestor instanceof Element)) {
|
2035
|
+
continue;
|
2036
|
+
}
|
2037
|
+
const style = getComputedStyle(ancestor);
|
2038
|
+
// Display:contents nodes aren't in the layout tree, so they should be skipped.
|
2039
|
+
if (style.display === 'contents') {
|
2040
|
+
continue;
|
2041
|
+
}
|
2042
|
+
if (style.position !== 'static' || isContainingBlock(style)) {
|
2043
|
+
return ancestor;
|
2044
|
+
}
|
2045
|
+
if (ancestor.tagName === 'BODY') {
|
2046
|
+
return ancestor;
|
2047
|
+
}
|
2048
|
+
}
|
2049
|
+
return null;
|
2050
|
+
}
|
2051
|
+
|
2052
|
+
/*!
|
2053
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
2054
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
2055
|
+
* v2.12.0
|
2056
|
+
*/
|
2057
|
+
(function setUpFloatingUiForShadowDomPositioning() {
|
2058
|
+
if (browser.isBrowser()) {
|
2059
|
+
const originalGetOffsetParent = platform.getOffsetParent;
|
2060
|
+
platform.getOffsetParent = (element) => originalGetOffsetParent(element, offsetParent);
|
2061
|
+
}
|
2062
|
+
})();
|
2063
|
+
function roundByDPR(value) {
|
2064
|
+
const dpr = window.devicePixelRatio || 1;
|
2065
|
+
return Math.round(value * dpr) / dpr;
|
2066
|
+
}
|
2067
|
+
/**
|
2068
|
+
* Positions the floating element relative to the reference element.
|
2069
|
+
*
|
2070
|
+
* **Note:** exported for testing purposes only
|
2071
|
+
*
|
2072
|
+
* @param root0
|
2073
|
+
* @param root0.referenceEl
|
2074
|
+
* @param root0.floatingEl
|
2075
|
+
* @param root0.overlayPositioning
|
2076
|
+
* @param root0.placement
|
2077
|
+
* @param root0.flipDisabled
|
2078
|
+
* @param root0.flipPlacements
|
2079
|
+
* @param root0.offsetDistance
|
2080
|
+
* @param root0.offsetSkidding
|
2081
|
+
* @param root0.arrowEl
|
2082
|
+
* @param root0.type
|
2083
|
+
* @param component
|
2084
|
+
* @param root0.referenceEl.referenceEl
|
2085
|
+
* @param root0.referenceEl.floatingEl
|
2086
|
+
* @param root0.referenceEl.overlayPositioning
|
2087
|
+
* @param root0.referenceEl.placement
|
2088
|
+
* @param root0.referenceEl.flipDisabled
|
2089
|
+
* @param root0.referenceEl.flipPlacements
|
2090
|
+
* @param root0.referenceEl.offsetDistance
|
2091
|
+
* @param root0.referenceEl.offsetSkidding
|
2092
|
+
* @param root0.referenceEl.arrowEl
|
2093
|
+
* @param root0.referenceEl.type
|
2094
|
+
* @param component.referenceEl
|
2095
|
+
* @param component.floatingEl
|
2096
|
+
* @param component.overlayPositioning
|
2097
|
+
* @param component.placement
|
2098
|
+
* @param component.flipDisabled
|
2099
|
+
* @param component.flipPlacements
|
2100
|
+
* @param component.offsetDistance
|
2101
|
+
* @param component.offsetSkidding
|
2102
|
+
* @param component.arrowEl
|
2103
|
+
* @param component.type
|
2104
|
+
*/
|
2105
|
+
const positionFloatingUI =
|
2106
|
+
/* we export arrow function to allow us to spy on it during testing */
|
2107
|
+
async (component, { referenceEl, floatingEl, overlayPositioning = "absolute", placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) => {
|
2108
|
+
if (!referenceEl || !floatingEl) {
|
2109
|
+
return null;
|
2110
|
+
}
|
2111
|
+
const { x, y, placement: effectivePlacement, strategy: position, middlewareData, } = await computePosition(referenceEl, floatingEl, {
|
2112
|
+
strategy: overlayPositioning,
|
2113
|
+
placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
|
2114
|
+
? undefined
|
2115
|
+
: getEffectivePlacement(floatingEl, placement),
|
2116
|
+
middleware: getMiddleware({
|
2117
|
+
placement,
|
2118
|
+
flipDisabled,
|
2119
|
+
flipPlacements: flipPlacements?.map((placement) => getEffectivePlacement(floatingEl, placement)),
|
2120
|
+
offsetDistance,
|
2121
|
+
offsetSkidding,
|
2122
|
+
arrowEl,
|
2123
|
+
type,
|
2124
|
+
}),
|
2125
|
+
});
|
2126
|
+
if (arrowEl && middlewareData.arrow) {
|
2127
|
+
const { x, y } = middlewareData.arrow;
|
2128
|
+
const side = effectivePlacement.split("-")[0];
|
2129
|
+
const alignment = x != null ? "left" : "top";
|
2130
|
+
const transform = ARROW_CSS_TRANSFORM[side];
|
2131
|
+
const reset = { left: "", top: "", bottom: "", right: "" };
|
2132
|
+
if ("floatingLayout" in component) {
|
2133
|
+
component.floatingLayout = side === "left" || side === "right" ? "horizontal" : "vertical";
|
2134
|
+
}
|
2135
|
+
Object.assign(arrowEl.style, {
|
2136
|
+
...reset,
|
2137
|
+
[alignment]: `${alignment == "left" ? x : y}px`,
|
2138
|
+
[side]: "100%",
|
2139
|
+
transform,
|
2140
|
+
});
|
2141
|
+
}
|
2142
|
+
const referenceHidden = middlewareData.hide?.referenceHidden;
|
2143
|
+
const visibility = referenceHidden ? "hidden" : null;
|
2144
|
+
const pointerEvents = visibility ? "none" : null;
|
2145
|
+
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
2146
|
+
const { open } = component;
|
2147
|
+
Object.assign(floatingEl.style, {
|
2148
|
+
visibility,
|
2149
|
+
pointerEvents,
|
2150
|
+
position,
|
2151
|
+
transform: open ? `translate(${roundByDPR(x)}px,${roundByDPR(y)}px)` : "",
|
2152
|
+
top: 0,
|
2153
|
+
left: 0,
|
2154
|
+
});
|
2155
|
+
};
|
2156
|
+
/**
|
2157
|
+
* Exported for testing purposes only
|
2158
|
+
*/
|
2159
|
+
const placementDataAttribute = "data-placement";
|
2160
|
+
const flipPlacements = [
|
2161
|
+
"top",
|
2162
|
+
"bottom",
|
2163
|
+
"right",
|
2164
|
+
"left",
|
2165
|
+
"top-start",
|
2166
|
+
"top-end",
|
2167
|
+
"bottom-start",
|
2168
|
+
"bottom-end",
|
2169
|
+
"right-start",
|
2170
|
+
"right-end",
|
2171
|
+
"left-start",
|
2172
|
+
"left-end",
|
2173
|
+
"leading",
|
2174
|
+
"trailing",
|
2175
|
+
"leading-start",
|
2176
|
+
"leading-end",
|
2177
|
+
"trailing-start",
|
2178
|
+
"trailing-end",
|
2179
|
+
];
|
2180
|
+
const defaultMenuPlacement = "bottom-start";
|
2181
|
+
const FloatingCSS = {
|
2182
|
+
animation: "calcite-floating-ui-anim",
|
2183
|
+
animationActive: "calcite-floating-ui-anim--active",
|
2184
|
+
};
|
2185
|
+
function getMiddleware({ placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) {
|
2186
|
+
const defaultMiddleware = [shift(), hide()];
|
2187
|
+
if (type === "menu") {
|
2188
|
+
return [
|
2189
|
+
...defaultMiddleware,
|
2190
|
+
flip({
|
2191
|
+
fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"],
|
2192
|
+
}),
|
2193
|
+
];
|
2194
|
+
}
|
2195
|
+
if (type === "popover" || type === "tooltip") {
|
2196
|
+
const middleware = [
|
2197
|
+
...defaultMiddleware,
|
2198
|
+
offset({
|
2199
|
+
mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
|
2200
|
+
crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0,
|
2201
|
+
}),
|
2202
|
+
];
|
2203
|
+
if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
|
2204
|
+
middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
|
2205
|
+
}
|
2206
|
+
else if (!flipDisabled) {
|
2207
|
+
middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
|
2208
|
+
}
|
2209
|
+
if (arrowEl) {
|
2210
|
+
middleware.push(arrow({
|
2211
|
+
element: arrowEl,
|
2212
|
+
}));
|
2213
|
+
}
|
2214
|
+
return middleware;
|
2215
|
+
}
|
2216
|
+
return [];
|
2217
|
+
}
|
2218
|
+
function filterValidFlipPlacements(placements, el) {
|
2219
|
+
const filteredPlacements = placements.filter((placement) => flipPlacements.includes(placement));
|
2220
|
+
if (filteredPlacements.length !== placements.length) {
|
2221
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${flipPlacements
|
2222
|
+
.map((placement) => `"${placement}"`)
|
2223
|
+
.join(", ")
|
2224
|
+
.trim()}`, { el });
|
2225
|
+
}
|
2226
|
+
return filteredPlacements;
|
2227
|
+
}
|
2228
|
+
function getEffectivePlacement(floatingEl, placement) {
|
2229
|
+
const placements = ["left", "right"];
|
2230
|
+
if (dom.getElementDir(floatingEl) === "rtl") {
|
2231
|
+
placements.reverse();
|
2232
|
+
}
|
2233
|
+
return placement.replace(/leading/gi, placements[0]).replace(/trailing/gi, placements[1]);
|
2234
|
+
}
|
2235
|
+
/**
|
2236
|
+
* Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
|
2237
|
+
*
|
2238
|
+
* Note: this is not needed for components that use `calcite-popover`.
|
2239
|
+
*
|
2240
|
+
* @param component - A floating-ui component.
|
2241
|
+
* @param options - Reposition parameters.
|
2242
|
+
* @param options.referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2243
|
+
* @param options.floatingEl - The `floatingElement` containing the floating ui.
|
2244
|
+
* @param options.overlayPositioning - type of positioning to use for the overlaid content.
|
2245
|
+
* @param options.placement - Determines where the component will be positioned relative to the `referenceElement`.
|
2246
|
+
* @param options.flipDisabled - Prevents flipping the component's placement when overlapping its `referenceElement`.
|
2247
|
+
* @param options.flipPlacements - Defines the available placements that can be used when a flip occurs.
|
2248
|
+
* @param options.offsetDistance - Offsets the position of the popover away from the `referenceElement`.
|
2249
|
+
* @param options.offsetSkidding - Offsets the position of the component along the `referenceElement`.
|
2250
|
+
* @param options.arrowEl - A customizable arrow element.
|
2251
|
+
* @param options.type - The type of floating UI.
|
2252
|
+
* @param delayed - Reposition the component after a delay.
|
2253
|
+
* @returns {Promise<void>}
|
2254
|
+
*/
|
2255
|
+
async function reposition(component, options, delayed = false) {
|
2256
|
+
if (!component.open || !options.floatingEl || !options.referenceEl) {
|
2257
|
+
return;
|
2258
|
+
}
|
2259
|
+
const trackedState = autoUpdatingComponentMap.get(component);
|
2260
|
+
if (!trackedState) {
|
2261
|
+
return runAutoUpdate(component, options.referenceEl, options.floatingEl);
|
2262
|
+
}
|
2263
|
+
const positionFunction = delayed ? getDebouncedReposition(component) : positionFloatingUI;
|
2264
|
+
await positionFunction(component, options);
|
2265
|
+
}
|
2266
|
+
function getDebouncedReposition(component) {
|
2267
|
+
let debounced = componentToDebouncedRepositionMap.get(component);
|
2268
|
+
if (debounced) {
|
2269
|
+
return debounced;
|
2270
|
+
}
|
2271
|
+
debounced = debounce.debounce(positionFloatingUI, resources.DEBOUNCE.reposition, {
|
2272
|
+
leading: true,
|
2273
|
+
maxWait: resources.DEBOUNCE.reposition,
|
2274
|
+
});
|
2275
|
+
componentToDebouncedRepositionMap.set(component, debounced);
|
2276
|
+
return debounced;
|
2277
|
+
}
|
2278
|
+
const ARROW_CSS_TRANSFORM = {
|
2279
|
+
top: "",
|
2280
|
+
left: "rotate(-90deg)",
|
2281
|
+
bottom: "rotate(180deg)",
|
2282
|
+
right: "rotate(90deg)",
|
2283
|
+
};
|
2284
|
+
/**
|
2285
|
+
* Exported for testing purposes only
|
2286
|
+
*
|
2287
|
+
* @internal
|
2288
|
+
*/
|
2289
|
+
const autoUpdatingComponentMap = new WeakMap();
|
2290
|
+
const componentToDebouncedRepositionMap = new WeakMap();
|
2291
|
+
async function runAutoUpdate(component, referenceEl, floatingEl) {
|
2292
|
+
if (!floatingEl.isConnected) {
|
2293
|
+
return;
|
2294
|
+
}
|
2295
|
+
const effectiveAutoUpdate = browser.isBrowser()
|
2296
|
+
? autoUpdate
|
2297
|
+
: (_refEl, _floatingEl, updateCallback) => {
|
2298
|
+
updateCallback();
|
2299
|
+
return () => {
|
2300
|
+
/* noop */
|
2301
|
+
};
|
2302
|
+
};
|
2303
|
+
// we set initial state here to make it available for `reposition` calls
|
2304
|
+
autoUpdatingComponentMap.set(component, { state: "pending" });
|
2305
|
+
let repositionPromise;
|
2306
|
+
const cleanUp = effectiveAutoUpdate(referenceEl, floatingEl,
|
2307
|
+
// callback is invoked immediately
|
2308
|
+
() => {
|
2309
|
+
const promise = component.reposition();
|
2310
|
+
if (!repositionPromise) {
|
2311
|
+
repositionPromise = promise;
|
2312
|
+
}
|
2313
|
+
});
|
2314
|
+
autoUpdatingComponentMap.set(component, { state: "active", cleanUp });
|
2315
|
+
return repositionPromise;
|
2316
|
+
}
|
2317
|
+
/**
|
2318
|
+
* Helper to set up floating element interactions on connectedCallback.
|
2319
|
+
*
|
2320
|
+
* @param component - A floating-ui component.
|
2321
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2322
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
2323
|
+
*/
|
2324
|
+
async function connectFloatingUI(component, referenceEl, floatingEl) {
|
2325
|
+
if (!floatingEl || !referenceEl) {
|
2326
|
+
return;
|
2327
|
+
}
|
2328
|
+
disconnectFloatingUI(component, referenceEl, floatingEl);
|
2329
|
+
Object.assign(floatingEl.style, {
|
2330
|
+
visibility: "hidden",
|
2331
|
+
pointerEvents: "none",
|
2332
|
+
// initial positioning based on https://floating-ui.com/docs/computePosition#initial-layout
|
2333
|
+
position: component.overlayPositioning,
|
2334
|
+
});
|
2335
|
+
if (!component.open) {
|
2336
|
+
return;
|
2337
|
+
}
|
2338
|
+
return runAutoUpdate(component, referenceEl, floatingEl);
|
2339
|
+
}
|
2340
|
+
/**
|
2341
|
+
* Helper to tear down floating element interactions on disconnectedCallback.
|
2342
|
+
*
|
2343
|
+
* @param component - A floating-ui component.
|
2344
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2345
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
2346
|
+
*/
|
2347
|
+
function disconnectFloatingUI(component, referenceEl, floatingEl) {
|
2348
|
+
if (!floatingEl || !referenceEl) {
|
2349
|
+
return;
|
2350
|
+
}
|
2351
|
+
const trackedState = autoUpdatingComponentMap.get(component);
|
2352
|
+
if (trackedState?.state === "active") {
|
2353
|
+
trackedState.cleanUp();
|
2354
|
+
}
|
2355
|
+
autoUpdatingComponentMap.delete(component);
|
2356
|
+
componentToDebouncedRepositionMap.get(component)?.cancel();
|
2357
|
+
componentToDebouncedRepositionMap.delete(component);
|
2358
|
+
}
|
2359
|
+
const visiblePointerSize = 4;
|
2360
|
+
/**
|
2361
|
+
* Default offset the position of the floating element away from the reference element.
|
2362
|
+
*
|
2363
|
+
* @default 6
|
2364
|
+
*/
|
2365
|
+
const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
|
2366
|
+
|
2367
|
+
exports.FloatingCSS = FloatingCSS;
|
2368
|
+
exports.connectFloatingUI = connectFloatingUI;
|
2369
|
+
exports.defaultMenuPlacement = defaultMenuPlacement;
|
2370
|
+
exports.defaultOffsetDistance = defaultOffsetDistance;
|
2371
|
+
exports.disconnectFloatingUI = disconnectFloatingUI;
|
2372
|
+
exports.filterValidFlipPlacements = filterValidFlipPlacements;
|
2373
|
+
exports.reposition = reposition;
|