@esri/solutions-components 0.10.49 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ExpandToggle-44886935.js +115 -0
- package/dist/cjs/FloatingArrow-d7ea2b0f.js +48 -0
- package/dist/cjs/Heading-ee0aa171.js +25 -0
- package/dist/cjs/IdentityManager-d84c82f1.js +2047 -0
- package/dist/cjs/Validation-9515ef0c.js +20 -0
- package/dist/cjs/app-globals-03a6ab9b.js +67 -0
- package/dist/cjs/ar-180cd9b0.js +106 -0
- package/dist/cjs/asyncToGenerator-c7fc3ee4.js +92 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +37 -12
- package/dist/cjs/bg-fd095c86.js +84 -0
- package/dist/cjs/browser-717f77af.js +35 -0
- package/dist/cjs/bs-11fa6f0d.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +6 -6
- package/dist/cjs/ca-0685b1cc.js +73 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action-bar.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-alert_2.cjs.entry.js +500 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_5.cjs.entry.js +17 -17
- package/dist/cjs/calcite-button-de2c2e75.js +282 -0
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-carousel_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/calcite-chip-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-chip_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +7 -7
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +66 -20
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-dialog-a5c288bb.js +5876 -0
- package/dist/cjs/calcite-dialog.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-fab.cjs.entry.js +4 -4
- package/dist/cjs/calcite-filter_5.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow-item_5.cjs.entry.js +1752 -0
- package/dist/cjs/calcite-flow_4.cjs.entry.js +12 -12
- package/dist/cjs/calcite-graph_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-icon_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-945ec162.js +1001 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker-3aeef2d4.js +1870 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-label-e7b67a86.js +111 -0
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +4 -4
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/calcite-menu.cjs.entry.js +6 -6
- package/dist/cjs/calcite-meter.cjs.entry.js +6 -6
- package/dist/cjs/calcite-modal_4.cjs.entry.js +972 -0
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
- package/dist/cjs/calcite-navigation.cjs.entry.js +3 -3
- package/dist/cjs/calcite-notice-a48cc9e7.js +261 -0
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-pagination.cjs.entry.js +6 -6
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- package/dist/cjs/calcite-scrim.cjs.entry.js +5 -5
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-sheet.cjs.entry.js +7 -7
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +6 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +24 -24
- package/dist/cjs/calcite-shell.cjs.entry.js +4 -4
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +4 -4
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-stepper.cjs.entry.js +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-table-row.cjs.entry.js +2 -2
- package/dist/cjs/calcite-table.cjs.entry.js +6 -6
- package/dist/cjs/calcite-text-area.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tile-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +4 -4
- package/dist/cjs/calcite-time-picker.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +5 -5
- package/dist/cjs/card-manager_3.cjs.entry.js +194 -51
- package/dist/cjs/common-10d11a29.js +37 -0
- package/dist/cjs/conditionalSlot-130cce71.js +54 -0
- package/dist/cjs/config-c999f8fc.js +40 -0
- package/dist/cjs/consent-manager.cjs.entry.js +7915 -46
- package/dist/cjs/crowdsource-manager.cjs.entry.js +6 -6
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +3 -3
- package/dist/cjs/cs-70e8ba01.js +149 -0
- package/dist/cjs/da-e8eb9ff4.js +69 -0
- package/dist/cjs/date-40a80298.js +264 -0
- package/dist/cjs/de-4b8310d2.js +93 -0
- package/dist/cjs/de-at-dc8ed8c3.js +92 -0
- package/dist/cjs/de-ch-c5971940.js +92 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +2 -2
- package/dist/cjs/downloadUtils-b6490537.js +3223 -0
- package/dist/cjs/el-a70d9f12.js +68 -0
- package/dist/cjs/en-au-88ddb80f.js +68 -0
- package/dist/cjs/en-ca-5a29b95b.js +67 -0
- package/dist/cjs/en-gb-3c763a84.js +71 -0
- package/dist/cjs/es-e83e8ff5.js +68 -0
- package/dist/cjs/es-mx-2ea879ef.js +67 -0
- package/dist/cjs/et-7b00c80d.js +94 -0
- package/dist/cjs/feature-list.cjs.entry.js +12 -10
- package/dist/cjs/fi-92ca007b.js +117 -0
- package/dist/cjs/floating-ui-7fa9e006.js +2413 -0
- package/dist/cjs/focusTrapComponent-a7cfa6da.js +1013 -0
- package/dist/cjs/form-dd5380da.js +370 -0
- package/dist/cjs/form-f2a43327.js +381 -0
- package/dist/cjs/fr-a1f5dfd4.js +70 -0
- package/dist/cjs/fr-ch-8a4a9d67.js +68 -0
- package/dist/cjs/he-38b2b883.js +107 -0
- package/dist/cjs/helpers-47465fc2.js +940 -0
- package/dist/cjs/hi-a517b1a8.js +67 -0
- package/dist/cjs/hr-c1e34de1.js +82 -0
- package/dist/cjs/hu-e46e8ae7.js +90 -0
- package/dist/cjs/icon-f45e7fbb.js +979 -0
- package/dist/cjs/id-bfc376d8.js +68 -0
- package/dist/cjs/index-1ab17699.js +201 -0
- package/dist/cjs/index-3bae5121.js +1789 -0
- package/dist/cjs/index-5d8d6ae2.js +2157 -0
- package/dist/cjs/index.es-5fc7bebc.js +11221 -0
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
- 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 +4 -4
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-splash.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +3 -3
- package/dist/cjs/interactive-b59e6294.js +86 -0
- package/dist/cjs/interactive-e1c3ccf2.js +85 -0
- package/dist/cjs/it-6d8c8360.js +68 -0
- package/dist/cjs/it-ch-2b05812c.js +68 -0
- package/dist/cjs/ja-eb46f963.js +74 -0
- package/dist/cjs/ko-dbe28d19.js +74 -0
- package/dist/cjs/loadable-19ab5827.js +98 -0
- package/dist/cjs/loader-97bb6b45.js +176 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-3a817e03.js +1488 -0
- package/dist/cjs/locale-80aff4b9.js +605 -0
- package/dist/cjs/locale-a79da367.js +160 -0
- package/dist/cjs/logger-780b61e8.js +61 -0
- package/dist/cjs/lt-651bfa9c.js +99 -0
- package/dist/cjs/lv-f6fe37a3.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +13 -11
- package/dist/cjs/mk-1f0ffdf6.js +68 -0
- package/dist/cjs/nb-8b7b39ed.js +69 -0
- package/dist/cjs/nl-27515721.js +69 -0
- package/dist/cjs/observers-902ebe13.js +58 -0
- package/dist/cjs/openCloseComponent-039ee139.js +65 -0
- package/dist/cjs/openCloseComponent-e8e50700.js +66 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
- package/dist/cjs/pl-d2098514.js +116 -0
- package/dist/cjs/popupUtils-72d48968.js +121 -0
- package/dist/cjs/pt-a3304010.js +69 -0
- package/dist/cjs/pt-br-09d60ba8.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +12 -10
- package/dist/cjs/publicNotificationStore-04b6837d.js +47 -0
- package/dist/cjs/request-19fdbaaa.js +21 -0
- package/dist/cjs/restHelpersGet-e4639890.js +507 -0
- package/dist/cjs/ro-2ea54b1c.js +68 -0
- package/dist/cjs/ru-f94ee202.js +128 -0
- package/dist/cjs/shared-list-render-fb08b2af.js +361 -0
- package/dist/cjs/sk-3cdf67d8.js +150 -0
- package/dist/cjs/sl-075daf42.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +53 -53
- package/dist/cjs/solution-contents_3.cjs.entry.js +11 -11
- package/dist/cjs/solution-item-accordion.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-icon.cjs.entry.js +2 -2
- package/dist/cjs/solution-resource-d0a2f7fe.js +1845 -0
- package/dist/cjs/solution-store-4e602251.js +1105 -0
- package/dist/cjs/solutions-components.cjs.js +6 -6
- package/dist/cjs/spatial-ref.cjs.entry.js +5 -6
- package/dist/cjs/sr-2f08967b.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +7 -7
- package/dist/cjs/sv-65f0e21c.js +73 -0
- package/dist/cjs/t9n-0195f685.js +108 -0
- package/dist/cjs/templates-1e84847a.js +407 -0
- package/dist/cjs/th-db63e592.js +67 -0
- package/dist/cjs/time-caa0abbe.js +301 -0
- package/dist/cjs/tr-b6401cac.js +68 -0
- package/dist/cjs/typeof-2a7e2dec.js +28 -0
- package/dist/cjs/uk-d00c351d.js +106 -0
- package/dist/cjs/update-243ea407.js +783 -0
- package/dist/cjs/utils-7eb34f90.js +153 -0
- package/dist/cjs/utils-d2bcba4f.js +79 -0
- package/dist/cjs/vi-efe4ad72.js +72 -0
- package/dist/cjs/zh-cn-63f07390.js +96 -0
- package/dist/cjs/zh-hk-84a86ab9.js +94 -0
- package/dist/cjs/zh-tw-894f1adf.js +94 -0
- package/dist/collection/assets/t9n/consent-manager/resources.json +3 -10
- package/dist/collection/assets/t9n/consent-manager/resources_en.json +3 -10
- package/dist/collection/collection-manifest.json +2 -4
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/consent-manager/consent-manager.js +116 -40
- package/dist/collection/components/create-feature/create-feature.js +2 -2
- package/dist/collection/components/create-related-feature/create-related-feature.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +3 -3
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +2 -2
- package/dist/collection/components/delete-dialog/delete-dialog.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +26 -2
- package/dist/collection/components/feature-details/feature-details.js +6 -6
- package/dist/collection/components/feature-list/feature-list.js +3 -3
- 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 +224 -47
- package/dist/collection/components/map-card/map-card.js +2 -2
- 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 +121 -5
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +53 -4
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/refine-selection/refine-selection.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-accordion/solution-item-accordion.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/consent-manager.html +56 -0
- package/dist/collection/utils/interfaces.ts +14 -0
- package/dist/components/IdentityManager.js +6 -2154
- package/dist/components/asyncToGenerator.js +88 -0
- package/dist/components/basemap-gallery2.js +1 -1
- package/dist/components/buffer-tools2.js +1 -1
- package/dist/components/calcite-dialog.js +1 -663
- package/dist/components/card-manager2.js +10 -10
- package/dist/components/common.js +0 -1
- package/dist/components/consent-manager.js +8054 -204
- package/dist/components/create-feature2.js +2 -2
- package/dist/components/create-related-feature2.js +1 -1
- package/dist/components/crowdsource-manager.js +37 -37
- package/dist/components/crowdsource-reporter.js +28 -28
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +29 -11
- package/dist/components/delete-dialog2.js +33 -9
- package/dist/components/dialog.js +670 -0
- package/dist/components/downloadUtils.js +10 -26
- package/dist/components/edit-card2.js +7 -2
- package/dist/components/feature-details2.js +23 -23
- package/dist/components/feature-list2.js +3 -3
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/index.es.js +25 -104
- package/dist/components/index2.js +6 -5
- package/dist/components/info-card2.js +9 -9
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-table2.js +212 -69
- package/dist/components/map-card2.js +2 -2
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +53 -5
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +28 -3
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +2 -2
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +2 -2
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/restHelpersGet.js +74 -557
- package/dist/components/solution-configuration.js +27 -28
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-accordion.js +1 -1
- 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 +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -2
- package/dist/components/solution-resource.js +1701 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-store.js +36 -285
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/components/templates.js +0 -1
- package/dist/components/typeof.js +25 -0
- package/dist/components/update.js +773 -0
- package/dist/esm/ExpandToggle-324f556e.js +108 -0
- package/dist/esm/FloatingArrow-cd37b366.js +46 -0
- package/dist/esm/Heading-b6b7a8a6.js +22 -0
- package/dist/esm/IdentityManager-6880e890.js +2012 -0
- package/dist/esm/Validation-b62abebe.js +18 -0
- package/dist/esm/app-globals-b6ef4076.js +65 -0
- package/dist/esm/ar-aa347a04.js +104 -0
- package/dist/esm/asyncToGenerator-96b2368d.js +88 -0
- package/dist/esm/basemap-gallery_7.entry.js +37 -12
- package/dist/esm/bg-b56e89f6.js +82 -0
- package/dist/esm/browser-e42b9848.js +32 -0
- package/dist/esm/bs-62486009.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +7 -7
- package/dist/esm/ca-db6a81f3.js +71 -0
- package/dist/esm/calcite-accordion_2.entry.js +6 -6
- package/dist/esm/calcite-action-bar.entry.js +9 -9
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu_2.entry.js +10 -10
- package/dist/esm/calcite-action-pad_2.entry.js +9 -9
- package/dist/esm/calcite-action_2.entry.js +14 -14
- package/dist/esm/calcite-alert_2.entry.js +495 -0
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block-section.entry.js +7 -7
- package/dist/esm/calcite-block_5.entry.js +19 -19
- package/dist/esm/calcite-button-e86d99b3.js +279 -0
- package/dist/esm/calcite-button.entry.js +10 -10
- package/dist/esm/calcite-card-group.entry.js +5 -5
- package/dist/esm/calcite-card.entry.js +8 -8
- package/dist/esm/calcite-carousel_2.entry.js +8 -8
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip-group.entry.js +5 -5
- package/dist/esm/calcite-chip_2.entry.js +10 -10
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +4 -4
- package/dist/esm/calcite-color-picker.entry.js +8 -8
- package/dist/esm/calcite-combobox-item-group.entry.js +4 -4
- package/dist/esm/calcite-combobox_3.entry.js +68 -22
- package/dist/esm/calcite-date-picker-day_3.entry.js +9 -9
- package/dist/esm/calcite-dialog-f5f9cfea.js +5873 -0
- package/dist/esm/calcite-dialog.entry.js +10 -10
- package/dist/esm/calcite-dropdown_2.entry.js +8 -8
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter_5.entry.js +8 -8
- package/dist/esm/calcite-flow-item_5.entry.js +1744 -0
- package/dist/esm/calcite-flow_4.entry.js +12 -12
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-icon_2.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +9 -9
- package/dist/esm/calcite-input-1f12bce0.js +998 -0
- package/dist/esm/calcite-input-number.entry.js +11 -11
- package/dist/esm/calcite-input-text.entry.js +11 -11
- package/dist/esm/calcite-input-time-picker-07db9ed7.js +1867 -0
- package/dist/esm/calcite-input-time-picker.entry.js +15 -15
- package/dist/esm/calcite-input-time-zone.entry.js +10 -10
- package/dist/esm/calcite-input_2.entry.js +11 -11
- package/dist/esm/calcite-label-d80f6f1c.js +108 -0
- package/dist/esm/calcite-label.entry.js +3 -3
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list-item-group.entry.js +2 -2
- package/dist/esm/calcite-menu-item.entry.js +7 -7
- package/dist/esm/calcite-menu.entry.js +7 -7
- package/dist/esm/calcite-meter.entry.js +7 -7
- package/dist/esm/calcite-modal_4.entry.js +965 -0
- package/dist/esm/calcite-navigation-logo.entry.js +4 -4
- package/dist/esm/calcite-navigation-user.entry.js +3 -3
- package/dist/esm/calcite-navigation.entry.js +4 -4
- package/dist/esm/calcite-notice-acc12411.js +258 -0
- package/dist/esm/calcite-notice.entry.js +9 -9
- package/dist/esm/calcite-option-group.entry.js +1 -1
- package/dist/esm/calcite-option_2.entry.js +9 -9
- package/dist/esm/calcite-pagination.entry.js +7 -7
- package/dist/esm/calcite-pick-list-group.entry.js +8 -8
- package/dist/esm/calcite-pick-list-item.entry.js +11 -11
- package/dist/esm/calcite-pick-list.entry.js +9 -9
- package/dist/esm/calcite-radio-button-group.entry.js +6 -6
- package/dist/esm/calcite-radio-button.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +10 -10
- package/dist/esm/calcite-scrim.entry.js +6 -6
- package/dist/esm/calcite-segmented-control_2.entry.js +8 -8
- package/dist/esm/calcite-sheet.entry.js +8 -8
- package/dist/esm/calcite-shell-center-row.entry.js +7 -7
- package/dist/esm/calcite-shell-panel_14.entry.js +25 -25
- package/dist/esm/calcite-shell.entry.js +5 -5
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper-item.entry.js +8 -8
- package/dist/esm/calcite-stepper.entry.js +6 -6
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-table-cell_2.entry.js +8 -8
- package/dist/esm/calcite-table-row.entry.js +3 -3
- package/dist/esm/calcite-table.entry.js +7 -7
- package/dist/esm/calcite-text-area.entry.js +11 -11
- package/dist/esm/calcite-tile-group.entry.js +5 -5
- package/dist/esm/calcite-tile-select-group.entry.js +4 -4
- package/dist/esm/calcite-tile-select.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +5 -5
- package/dist/esm/calcite-time-picker.entry.js +8 -8
- package/dist/esm/calcite-tip-group.entry.js +3 -3
- package/dist/esm/calcite-tip-manager.entry.js +9 -9
- package/dist/esm/calcite-tip.entry.js +10 -10
- package/dist/esm/calcite-tooltip.entry.js +6 -6
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/card-manager_3.entry.js +194 -51
- package/dist/esm/common-c8dc0e85.js +35 -0
- package/dist/esm/conditionalSlot-2e16b206.js +51 -0
- package/dist/esm/config-e6645458.js +36 -0
- package/dist/esm/consent-manager.entry.js +7911 -42
- package/dist/esm/crowdsource-manager.entry.js +6 -6
- package/dist/esm/crowdsource-reporter.entry.js +3 -3
- package/dist/esm/cs-250e21c6.js +147 -0
- package/dist/esm/da-bab8eb4e.js +67 -0
- package/dist/esm/date-272939fd.js +248 -0
- package/dist/esm/de-808a43dc.js +91 -0
- package/dist/esm/de-at-9c396c81.js +90 -0
- package/dist/esm/de-ch-415303cf.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +2 -2
- package/dist/esm/dom-66c5cd46.js +1165 -0
- package/dist/esm/downloadUtils-8ba094d7.js +3217 -0
- package/dist/esm/el-3d1eaeb8.js +66 -0
- package/dist/esm/en-au-e6b00a93.js +66 -0
- package/dist/esm/en-ca-29b94ea2.js +65 -0
- package/dist/esm/en-gb-09267176.js +69 -0
- package/dist/esm/es-95fef748.js +66 -0
- package/dist/esm/es-mx-9b70cfc9.js +65 -0
- package/dist/esm/et-08cbe214.js +92 -0
- package/dist/esm/feature-list.entry.js +12 -10
- package/dist/esm/fi-e850e58b.js +115 -0
- package/dist/esm/floating-ui-1a431a21.js +2404 -0
- package/dist/esm/focusTrapComponent-e80b8863.js +1008 -0
- package/dist/esm/form-1528db83.js +362 -0
- package/dist/esm/form-99398da6.js +372 -0
- package/dist/esm/fr-c71b6844.js +68 -0
- package/dist/esm/fr-ch-7ac7a7eb.js +66 -0
- package/dist/esm/he-311cb5ba.js +105 -0
- package/dist/esm/helpers-f52a734a.js +913 -0
- package/dist/esm/hi-c41f0938.js +65 -0
- package/dist/esm/hr-f42cc721.js +80 -0
- package/dist/esm/hu-d1d33b21.js +88 -0
- package/dist/esm/icon-18c0eb17.js +959 -0
- package/dist/esm/id-1867967d.js +66 -0
- package/dist/esm/index-38bde943.js +199 -0
- package/dist/esm/index-d233c7a2.js +1753 -0
- package/dist/esm/index-d88c3eb6.js +2155 -0
- package/dist/esm/index.es-d286eecc.js +11134 -0
- package/dist/esm/instant-apps-app-guide.entry.js +2 -2
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +2 -2
- package/dist/esm/instant-apps-export-views.entry.js +2 -2
- package/dist/esm/instant-apps-export.entry.js +2 -2
- package/dist/esm/instant-apps-header.entry.js +2 -2
- 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 +4 -4
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +4 -4
- package/dist/esm/instant-apps-language-translator.entry.js +4 -4
- package/dist/esm/instant-apps-measurement.entry.js +2 -2
- package/dist/esm/instant-apps-popover.entry.js +2 -2
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
- package/dist/esm/instant-apps-sign-in.entry.js +2 -2
- package/dist/esm/instant-apps-splash.entry.js +3 -3
- package/dist/esm/instant-apps-time-filter.entry.js +3 -3
- package/dist/esm/interactive-5139f8d7.js +83 -0
- package/dist/esm/interactive-cad37709.js +82 -0
- package/dist/esm/it-6a7495d8.js +66 -0
- package/dist/esm/it-ch-89fa3c82.js +66 -0
- package/dist/esm/ja-f87a1f44.js +72 -0
- package/dist/esm/ko-0f4c7a11.js +72 -0
- package/dist/esm/label-56002f24.js +179 -0
- package/dist/esm/loadable-dc3f24a8.js +93 -0
- package/dist/esm/loader-bae2aa52.js +173 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/locale-586d9375.js +155 -0
- package/dist/esm/locale-911eca09.js +591 -0
- package/dist/esm/locale-be7fd298.js +1423 -0
- package/dist/esm/logger-ff14b12f.js +59 -0
- package/dist/esm/lt-a4b14416.js +97 -0
- package/dist/esm/lv-3901862d.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +13 -11
- package/dist/esm/mk-886d280d.js +66 -0
- package/dist/esm/nb-b667a0e1.js +67 -0
- package/dist/esm/nl-d357a092.js +67 -0
- package/dist/esm/observers-ab3d6528.js +56 -0
- package/dist/esm/openCloseComponent-0e1e6768.js +64 -0
- package/dist/esm/openCloseComponent-c3f79463.js +63 -0
- package/dist/esm/pci-calculator.entry.js +2 -2
- package/dist/esm/pl-75d54069.js +114 -0
- package/dist/esm/popupUtils-ddb1f6fa.js +119 -0
- package/dist/esm/pt-32bd5da2.js +67 -0
- package/dist/esm/pt-br-6f32314d.js +65 -0
- package/dist/esm/public-notification.entry.js +12 -10
- package/dist/esm/publicNotificationStore-8b54bf6f.js +45 -0
- package/dist/esm/request-2dbb152a.js +19 -0
- package/dist/esm/restHelpersGet-a7fda344.js +493 -0
- package/dist/esm/ro-d238055e.js +66 -0
- package/dist/esm/ru-ef7165ff.js +126 -0
- package/dist/esm/shared-list-render-5f202c55.js +339 -0
- package/dist/esm/sk-959dbca1.js +148 -0
- package/dist/esm/sl-96436015.js +168 -0
- package/dist/esm/solution-configuration.entry.js +34 -34
- package/dist/esm/solution-contents_3.entry.js +11 -11
- package/dist/esm/solution-item-accordion.entry.js +3 -3
- package/dist/esm/solution-item-icon.entry.js +2 -2
- package/dist/esm/solution-resource-30a29505.js +1842 -0
- package/dist/esm/solution-store-f252cb74.js +1103 -0
- package/dist/esm/solutions-components.js +7 -7
- package/dist/esm/spatial-ref.entry.js +5 -6
- package/dist/esm/sr-73033c89.js +101 -0
- package/dist/esm/store-manager.entry.js +7 -7
- package/dist/esm/sv-b1153aa8.js +71 -0
- package/dist/esm/t9n-1698878e.js +103 -0
- package/dist/esm/templates-60f33938.js +401 -0
- package/dist/esm/th-e1a074e2.js +65 -0
- package/dist/esm/time-bca5f70b.js +286 -0
- package/dist/esm/tr-1350f529.js +66 -0
- package/dist/esm/typeof-ef2a007d.js +25 -0
- package/dist/esm/uk-18ded66c.js +104 -0
- package/dist/esm/update-ad0b88fa.js +773 -0
- package/dist/esm/utils-0da093e1.js +142 -0
- package/dist/esm/utils-30c4c8ca.js +66 -0
- package/dist/esm/vi-cee99413.js +70 -0
- package/dist/esm/zh-cn-6e204128.js +94 -0
- package/dist/esm/zh-hk-ffb02673.js +92 -0
- package/dist/esm/zh-tw-0f52dd8c.js +92 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources.json +3 -10
- package/dist/solutions-components/assets/t9n/consent-manager/resources_en.json +3 -10
- package/dist/solutions-components/demos/consent-manager.html +56 -0
- package/dist/solutions-components/p-0094924f.entry.js +6 -0
- package/dist/solutions-components/p-00ea0ccc.entry.js +11 -0
- package/dist/solutions-components/p-018d1f95.entry.js +6 -0
- package/dist/solutions-components/p-025af0b3.entry.js +21 -0
- package/dist/solutions-components/p-0549a65c.js +6 -0
- package/dist/solutions-components/p-058d0542.js +17 -0
- package/dist/solutions-components/p-0668e30d.js +34 -0
- package/dist/solutions-components/p-066fc169.js +6 -0
- package/dist/solutions-components/p-067e36b2.entry.js +6 -0
- package/dist/solutions-components/p-0681b29b.entry.js +11 -0
- package/dist/solutions-components/p-0691d1af.entry.js +22 -0
- package/dist/solutions-components/p-088a5dca.js +67 -0
- package/dist/solutions-components/p-097b80df.js +6 -0
- package/dist/solutions-components/p-0a0902c4.entry.js +6 -0
- package/dist/solutions-components/p-0a71f549.entry.js +29 -0
- package/dist/solutions-components/p-0ac9cc4a.entry.js +21 -0
- package/dist/solutions-components/p-0b1fb6ae.js +36 -0
- package/dist/solutions-components/p-0d82ed7b.entry.js +11 -0
- package/dist/solutions-components/p-0e307601.entry.js +11 -0
- package/dist/solutions-components/p-0ece17fc.entry.js +6 -0
- package/dist/solutions-components/p-0f58bb3a.entry.js +11 -0
- package/dist/solutions-components/p-0f9f7528.entry.js +11 -0
- package/dist/solutions-components/p-135b2aba.js +16 -0
- package/dist/solutions-components/p-13bdb2c0.js +6 -0
- package/dist/solutions-components/p-14519a8a.entry.js +11 -0
- package/dist/solutions-components/p-1492bb6d.js +6 -0
- package/dist/solutions-components/p-1664573a.entry.js +6 -0
- package/dist/solutions-components/p-1900f9b1.js +11 -0
- package/dist/solutions-components/p-1984f2c7.entry.js +17 -0
- package/dist/solutions-components/p-1c1842b0.entry.js +6 -0
- package/dist/solutions-components/p-1f9d927b.entry.js +6 -0
- package/dist/solutions-components/p-1fb3756b.js +6 -0
- package/dist/solutions-components/p-208b5cc4.entry.js +6 -0
- package/dist/solutions-components/p-20cda8ef.entry.js +6 -0
- package/dist/solutions-components/p-2130a063.entry.js +17 -0
- package/dist/solutions-components/p-21f90019.js +21 -0
- package/dist/solutions-components/p-230f7315.entry.js +6 -0
- package/dist/solutions-components/p-24b42859.entry.js +47 -0
- package/dist/solutions-components/p-26f9f9c8.js +11 -0
- package/dist/solutions-components/p-270ca219.entry.js +6 -0
- package/dist/solutions-components/p-27a91364.entry.js +17 -0
- package/dist/solutions-components/p-28498868.entry.js +11 -0
- package/dist/solutions-components/p-2a5a5bfd.entry.js +11 -0
- package/dist/solutions-components/p-2ac553f6.js +6 -0
- package/dist/solutions-components/p-2b004a83.entry.js +11 -0
- package/dist/solutions-components/p-2b1e6acb.entry.js +6 -0
- package/dist/solutions-components/p-2bc98cb0.js +30 -0
- package/dist/solutions-components/p-2d96fdb9.js +6 -0
- package/dist/solutions-components/p-2dd8e49c.js +11 -0
- package/dist/solutions-components/p-30a16b7e.entry.js +11 -0
- package/dist/solutions-components/p-3212300b.entry.js +6 -0
- package/dist/solutions-components/p-35245316.entry.js +6 -0
- package/dist/solutions-components/p-3643a87a.entry.js +6 -0
- package/dist/solutions-components/p-3708cbdc.entry.js +6 -0
- package/dist/solutions-components/p-3828e77b.js +11 -0
- package/dist/solutions-components/p-38e0f88b.js +17 -0
- package/dist/solutions-components/p-3b3bfba5.entry.js +6 -0
- package/dist/solutions-components/p-3ba80c7c.js +6 -0
- package/dist/solutions-components/p-3d1f0434.js +21 -0
- package/dist/solutions-components/p-3ffc4738.js +6 -0
- package/dist/solutions-components/p-409401ce.js +11 -0
- package/dist/solutions-components/p-46159285.js +6 -0
- package/dist/solutions-components/p-49a67314.entry.js +6 -0
- package/dist/solutions-components/p-4cbdea35.js +129 -0
- package/dist/solutions-components/p-4dfc2fc4.js +11 -0
- package/dist/solutions-components/p-4f236b5d.js +43 -0
- package/dist/solutions-components/p-4f50385f.js +16 -0
- package/dist/solutions-components/p-4fe489cf.js +6 -0
- package/dist/solutions-components/p-50239e15.entry.js +6 -0
- package/dist/solutions-components/p-531f66c7.entry.js +6 -0
- package/dist/solutions-components/p-570754a4.js +6 -0
- package/dist/solutions-components/p-570b13d9.js +67 -0
- package/dist/solutions-components/p-58d53a46.entry.js +6 -0
- package/dist/solutions-components/p-59970898.js +6 -0
- package/dist/solutions-components/p-59d02697.entry.js +11 -0
- package/dist/solutions-components/p-5b2ae6c4.js +6 -0
- package/dist/solutions-components/p-5b9783e6.entry.js +23 -0
- package/dist/solutions-components/p-5c5cbe3c.js +6 -0
- package/dist/solutions-components/p-5c692ed6.entry.js +11 -0
- package/dist/solutions-components/p-5cfa35f8.js +6 -0
- package/dist/solutions-components/p-5d581b7e.entry.js +6 -0
- package/dist/solutions-components/p-5df09fe4.js +31 -0
- package/dist/solutions-components/p-5ee359f1.entry.js +11 -0
- package/dist/solutions-components/p-5f099cd2.js +6 -0
- package/dist/solutions-components/p-60123545.js +6 -0
- package/dist/solutions-components/p-6148468f.js +11 -0
- package/dist/solutions-components/p-617d2160.js +6 -0
- package/dist/solutions-components/p-619a1ad0.js +6 -0
- package/dist/solutions-components/p-61d2582e.entry.js +6 -0
- package/dist/solutions-components/p-662cf7fa.entry.js +11 -0
- package/dist/solutions-components/p-6708060e.js +11 -0
- package/dist/solutions-components/p-676a2d60.entry.js +6 -0
- package/dist/solutions-components/p-68b5ec37.js +11 -0
- package/dist/solutions-components/p-68cf5134.entry.js +12 -0
- package/dist/solutions-components/p-694cfe4c.js +6 -0
- package/dist/solutions-components/p-6bcde3c4.js +6 -0
- package/dist/solutions-components/p-6c73f067.js +16 -0
- package/dist/solutions-components/p-6d56f75e.js +11 -0
- package/dist/solutions-components/p-6db88e16.entry.js +11 -0
- package/dist/solutions-components/p-6f93ec3e.entry.js +6 -0
- package/dist/solutions-components/p-7053b20e.entry.js +6 -0
- package/dist/solutions-components/p-741151d4.js +6 -0
- package/dist/solutions-components/p-749fe711.js +6 -0
- package/dist/solutions-components/p-7518e92a.js +6 -0
- package/dist/solutions-components/p-7802efa1.entry.js +11 -0
- package/dist/solutions-components/p-782c71a7.js +6 -0
- package/dist/solutions-components/p-78aa10b0.js +6 -0
- package/dist/solutions-components/p-7a8edc01.entry.js +11 -0
- package/dist/solutions-components/p-7a9e773b.js +6 -0
- package/dist/solutions-components/p-7aa5b402.entry.js +11 -0
- package/dist/solutions-components/p-7aafba66.js +11 -0
- package/dist/solutions-components/p-7d619b04.entry.js +11 -0
- package/dist/solutions-components/p-7dc37540.js +11 -0
- package/dist/solutions-components/p-7e3a6a0b.entry.js +11 -0
- package/dist/solutions-components/p-7fd55161.entry.js +6 -0
- package/dist/solutions-components/p-80168ff4.entry.js +11 -0
- package/dist/solutions-components/p-823684a3.js +6 -0
- package/dist/solutions-components/p-825ef4a7.js +6 -0
- package/dist/solutions-components/p-82d93164.js +11 -0
- package/dist/solutions-components/p-82f661c7.entry.js +11 -0
- package/dist/solutions-components/p-8378852e.js +6 -0
- package/dist/solutions-components/p-85bb5908.js +11 -0
- package/dist/solutions-components/p-866a2fad.js +11 -0
- package/dist/solutions-components/p-8744fe2a.entry.js +6 -0
- package/dist/solutions-components/p-8850bd21.js +21 -0
- package/dist/solutions-components/p-896a5fce.entry.js +11 -0
- package/dist/solutions-components/p-8df5939f.js +6 -0
- package/dist/solutions-components/p-8ec56f08.entry.js +11 -0
- package/dist/solutions-components/p-8ff2cba2.entry.js +11 -0
- package/dist/solutions-components/p-8ff4b2aa.js +488 -0
- package/dist/solutions-components/p-94ad391c.js +40 -0
- package/dist/solutions-components/p-958c68c2.js +61 -0
- package/dist/solutions-components/p-95fcb607.js +6 -0
- package/dist/solutions-components/p-97df5300.js +27 -0
- package/dist/solutions-components/p-98079396.js +21 -0
- package/dist/solutions-components/p-98b1c057.entry.js +6 -0
- package/dist/solutions-components/p-9d4f62ca.js +6 -0
- package/dist/solutions-components/p-9d733373.entry.js +17 -0
- package/dist/solutions-components/p-9d9df87f.entry.js +6 -0
- package/dist/solutions-components/p-9e5d59aa.entry.js +11 -0
- package/dist/solutions-components/p-9f89901b.entry.js +6 -0
- package/dist/solutions-components/p-9fa8da35.entry.js +11 -0
- package/dist/solutions-components/p-a28502ac.entry.js +6 -0
- package/dist/solutions-components/p-a5df8093.entry.js +11 -0
- package/dist/solutions-components/p-a757bf75.js +16 -0
- package/dist/solutions-components/p-a7eded8f.entry.js +11 -0
- package/dist/solutions-components/p-a91fc014.entry.js +6 -0
- package/dist/solutions-components/p-aa6656f0.js +6 -0
- package/dist/solutions-components/p-abe60b81.entry.js +6 -0
- package/dist/solutions-components/p-ad66b010.entry.js +11 -0
- package/dist/solutions-components/p-adb57e25.entry.js +6 -0
- package/dist/solutions-components/p-add122e7.js +6 -0
- package/dist/solutions-components/p-ae357552.entry.js +11 -0
- package/dist/solutions-components/p-af4f2d4a.js +11 -0
- package/dist/solutions-components/p-b0d0022c.entry.js +11 -0
- package/dist/solutions-components/p-b14d2423.entry.js +11 -0
- package/dist/solutions-components/p-b1546c15.js +17 -0
- package/dist/solutions-components/p-b1c45ef8.entry.js +6 -0
- package/dist/solutions-components/p-b1f3c713.js +6 -0
- package/dist/solutions-components/p-b22046db.js +11 -0
- package/dist/solutions-components/p-b290affa.js +17 -0
- package/dist/solutions-components/p-b3b70f6b.entry.js +12 -0
- package/dist/solutions-components/p-b4a94ffe.entry.js +6 -0
- package/dist/solutions-components/p-b62871c3.entry.js +11 -0
- package/dist/solutions-components/p-b6a36bfe.js +6 -0
- package/dist/solutions-components/p-b915029b.js +6 -0
- package/dist/solutions-components/p-b98e9479.js +11 -0
- package/dist/solutions-components/p-b9bc3e7b.entry.js +17 -0
- package/dist/solutions-components/p-ba539e5a.entry.js +11 -0
- package/dist/solutions-components/p-bad614c0.entry.js +11 -0
- package/dist/solutions-components/p-bb158785.entry.js +11 -0
- package/dist/solutions-components/p-bc281e3b.js +6 -0
- package/dist/solutions-components/p-bc2b747e.js +6 -0
- package/dist/solutions-components/p-be78bc15.entry.js +6 -0
- package/dist/solutions-components/p-bf154e41.js +6 -0
- package/dist/solutions-components/p-c109e720.js +6 -0
- package/dist/solutions-components/p-c115215d.entry.js +6 -0
- package/dist/solutions-components/p-c433cc38.js +6 -0
- package/dist/solutions-components/p-c43fdf49.entry.js +16 -0
- package/dist/solutions-components/p-c5e0e5ef.js +6 -0
- package/dist/solutions-components/p-c766823c.entry.js +11 -0
- package/dist/solutions-components/p-c8a2c326.entry.js +29 -0
- package/dist/solutions-components/p-c8b26c56.js +6 -0
- package/dist/solutions-components/p-c900e9e8.entry.js +17 -0
- package/dist/solutions-components/p-c9dae6fb.entry.js +6 -0
- package/dist/solutions-components/p-cbf0769a.entry.js +11 -0
- package/dist/solutions-components/p-cc7d784e.entry.js +6 -0
- package/dist/solutions-components/p-ce8a69ef.entry.js +11 -0
- package/dist/solutions-components/p-cea51591.js +16 -0
- package/dist/solutions-components/p-d0b1d33f.js +6 -0
- package/dist/solutions-components/p-d0b36f2e.entry.js +6 -0
- package/dist/solutions-components/p-d2a6e970.js +6 -0
- package/dist/solutions-components/p-d2dc7d65.entry.js +11 -0
- package/dist/solutions-components/p-d60dc1f1.entry.js +11 -0
- package/dist/solutions-components/p-d654b676.entry.js +11 -0
- package/dist/solutions-components/p-d65f8b73.js +6 -0
- package/dist/solutions-components/p-d82ee2f9.entry.js +6 -0
- package/dist/solutions-components/p-d96fe526.entry.js +22 -0
- package/dist/solutions-components/p-da0cb140.entry.js +11 -0
- package/dist/solutions-components/p-da36faca.entry.js +6 -0
- package/dist/solutions-components/p-daf6a012.entry.js +6 -0
- package/dist/solutions-components/p-dba4704c.js +11 -0
- package/dist/solutions-components/p-dd16d94e.js +6 -0
- package/dist/solutions-components/p-dd689226.js +11 -0
- package/dist/solutions-components/p-dd6a34c6.entry.js +17 -0
- package/dist/solutions-components/p-df4bfe45.js +6 -0
- package/dist/solutions-components/p-dfe18931.js +6 -0
- package/dist/solutions-components/p-e2570a80.js +11 -0
- package/dist/solutions-components/p-ea9e0a79.js +6 -0
- package/dist/solutions-components/p-eb88fddc.js +6 -0
- package/dist/solutions-components/p-ed4fb4a1.entry.js +6 -0
- package/dist/solutions-components/p-ef0c43dc.js +6 -0
- package/dist/solutions-components/p-f05bbd82.entry.js +11 -0
- package/dist/solutions-components/p-f0ceb675.entry.js +11 -0
- package/dist/solutions-components/p-f1f356f0.js +7 -0
- package/dist/solutions-components/p-f46f7da7.entry.js +12 -0
- package/dist/solutions-components/p-f6e3d19a.entry.js +11 -0
- package/dist/solutions-components/p-f6e81cf8.js +22 -0
- package/dist/solutions-components/p-f7085e9e.entry.js +17 -0
- package/dist/solutions-components/p-f8ea8e73.js +6 -0
- package/dist/solutions-components/p-fb6ca6dd.entry.js +11 -0
- package/dist/solutions-components/p-fdaf1290.entry.js +11 -0
- package/dist/solutions-components/p-fe719f16.entry.js +6 -0
- package/dist/solutions-components/p-feebdac9.entry.js +17 -0
- package/dist/solutions-components/p-ff15447c.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +14 -0
- package/dist/types/components/consent-manager/consent-manager.d.ts +24 -21
- package/dist/types/components/delete-button/delete-button.d.ts +1 -1
- package/dist/types/components/edit-card/edit-card.d.ts +4 -0
- package/dist/types/components/layer-table/layer-table.d.ts +55 -7
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +18 -2
- package/dist/types/components/map-picker/map-picker.d.ts +10 -2
- package/dist/types/components.d.ts +69 -36
- package/dist/types/preact.d.ts +6 -7
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/utils/interfaces.d.ts +12 -0
- package/package.json +10 -10
- package/dist/cjs/ExpandToggle-7cd6bc0d.js +0 -115
- package/dist/cjs/FloatingArrow-bf91ebb1.js +0 -48
- package/dist/cjs/Heading-ae667128.js +0 -25
- package/dist/cjs/IdentityManager-b7fa2f5f.js +0 -4174
- package/dist/cjs/Validation-a206c7a2.js +0 -20
- package/dist/cjs/app-globals-04574c64.js +0 -67
- package/dist/cjs/ar-c930d85d.js +0 -106
- package/dist/cjs/arcgis-login.cjs.entry.js +0 -61
- package/dist/cjs/bg-a2001c61.js +0 -84
- package/dist/cjs/browser-040b13db.js +0 -35
- package/dist/cjs/bs-5576dc1b.js +0 -53
- package/dist/cjs/ca-220471e9.js +0 -73
- package/dist/cjs/calcite-alert_6.cjs.entry.js +0 -2105
- package/dist/cjs/calcite-button-ac4b979a.js +0 -281
- package/dist/cjs/calcite-dialog-97f38598.js +0 -5875
- package/dist/cjs/calcite-input-0ecf3d60.js +0 -1000
- package/dist/cjs/calcite-input-time-picker-4020e170.js +0 -1870
- package/dist/cjs/calcite-label-8ca1fbce.js +0 -110
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -393
- package/dist/cjs/calcite-notice-2e248d8d.js +0 -260
- package/dist/cjs/common-eee0c33f.js +0 -38
- package/dist/cjs/conditionalSlot-489d0ef0.js +0 -54
- package/dist/cjs/config-164bf148.js +0 -40
- package/dist/cjs/cs-a049b34a.js +0 -149
- package/dist/cjs/da-d71057be.js +0 -69
- package/dist/cjs/date-831e93f2.js +0 -264
- package/dist/cjs/de-at-977ab186.js +0 -92
- package/dist/cjs/de-b1eb21d0.js +0 -93
- package/dist/cjs/de-ch-486d1e5d.js +0 -92
- package/dist/cjs/delete-dialog.cjs.entry.js +0 -131
- package/dist/cjs/downloadUtils-f50841bc.js +0 -3240
- package/dist/cjs/el-577ee36f.js +0 -68
- package/dist/cjs/en-au-e7c3a0f9.js +0 -68
- package/dist/cjs/en-ca-111580b6.js +0 -67
- package/dist/cjs/en-gb-b061a0ac.js +0 -71
- package/dist/cjs/es-ae90d3b8.js +0 -68
- package/dist/cjs/es-mx-620f2f82.js +0 -67
- package/dist/cjs/et-3b0bd1a9.js +0 -94
- package/dist/cjs/fi-8708148b.js +0 -117
- package/dist/cjs/floating-ui-a1745c4c.js +0 -2413
- package/dist/cjs/focusTrapComponent-59e1194f.js +0 -1013
- package/dist/cjs/form-3666a51b.js +0 -370
- package/dist/cjs/form-a2adec8c.js +0 -381
- package/dist/cjs/fr-9a9d3ce3.js +0 -70
- package/dist/cjs/fr-ch-95662c01.js +0 -68
- package/dist/cjs/he-f973a740.js +0 -107
- package/dist/cjs/helpers-292a0709.js +0 -940
- package/dist/cjs/hi-f0b9cea5.js +0 -67
- package/dist/cjs/hr-4654706f.js +0 -82
- package/dist/cjs/hu-bc3d5588.js +0 -90
- package/dist/cjs/icon-96d27ae8.js +0 -979
- package/dist/cjs/id-1131b8da.js +0 -68
- package/dist/cjs/index-29826564.js +0 -201
- package/dist/cjs/index-92385c74.js +0 -1772
- package/dist/cjs/index-f052f656.js +0 -2156
- package/dist/cjs/index.es-b8c8c931.js +0 -11307
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +0 -590
- package/dist/cjs/interactive-9f715ff8.js +0 -86
- package/dist/cjs/interactive-c384fd9b.js +0 -85
- package/dist/cjs/it-7a8ec220.js +0 -68
- package/dist/cjs/it-ch-f9cb696d.js +0 -68
- package/dist/cjs/ja-45b4845d.js +0 -74
- package/dist/cjs/ko-61449645.js +0 -74
- package/dist/cjs/loadable-9cb8a3cd.js +0 -98
- package/dist/cjs/loader-b9aa1d67.js +0 -176
- package/dist/cjs/locale-a0772a2b.js +0 -605
- package/dist/cjs/locale-afa30303.js +0 -160
- package/dist/cjs/locale-f6e0493d.js +0 -1488
- package/dist/cjs/logger-e5bdc044.js +0 -61
- package/dist/cjs/lt-2e727f9c.js +0 -99
- package/dist/cjs/lv-ed202e00.js +0 -68
- package/dist/cjs/mk-418a9e03.js +0 -68
- package/dist/cjs/nb-333e1c58.js +0 -69
- package/dist/cjs/nl-da937865.js +0 -69
- package/dist/cjs/observers-ce262300.js +0 -58
- package/dist/cjs/openCloseComponent-214808b0.js +0 -66
- package/dist/cjs/openCloseComponent-c0b7af22.js +0 -65
- package/dist/cjs/pl-cbe57516.js +0 -116
- package/dist/cjs/popupUtils-2a425c37.js +0 -121
- package/dist/cjs/pt-b1ec4928.js +0 -69
- package/dist/cjs/pt-br-e395a325.js +0 -67
- package/dist/cjs/publicNotificationStore-1d934df9.js +0 -47
- package/dist/cjs/request-9f87ab34.js +0 -21
- package/dist/cjs/restHelpersGet-5c2245a3.js +0 -991
- package/dist/cjs/ro-144b5f62.js +0 -68
- package/dist/cjs/ru-bf7d1a3e.js +0 -128
- package/dist/cjs/share-item.cjs.entry.js +0 -61
- package/dist/cjs/shared-list-render-0b452799.js +0 -361
- package/dist/cjs/sk-515227a5.js +0 -150
- package/dist/cjs/sl-f879b07d.js +0 -170
- package/dist/cjs/solution-resource-40e70253.js +0 -145
- package/dist/cjs/solution-store-f3257490.js +0 -1354
- package/dist/cjs/sr-0510fba6.js +0 -103
- package/dist/cjs/sv-c5fbe1ff.js +0 -73
- package/dist/cjs/t9n-e69b3d42.js +0 -108
- package/dist/cjs/templates-0b7f886f.js +0 -408
- package/dist/cjs/th-8cafcb47.js +0 -67
- package/dist/cjs/time-ceec376d.js +0 -301
- package/dist/cjs/tr-7f905223.js +0 -68
- package/dist/cjs/uk-991e83da.js +0 -106
- package/dist/cjs/utils-d8dabd76.js +0 -153
- package/dist/cjs/utils-e60dc760.js +0 -79
- package/dist/cjs/vi-d5eababe.js +0 -72
- package/dist/cjs/zh-cn-e6bc2622.js +0 -96
- package/dist/cjs/zh-hk-30480131.js +0 -94
- package/dist/cjs/zh-tw-1f3b4cda.js +0 -94
- package/dist/collection/components/arcgis-login/arcgis-login.css +0 -19
- package/dist/collection/components/arcgis-login/arcgis-login.js +0 -80
- package/dist/collection/components/share-item/share-item.css +0 -19
- package/dist/collection/components/share-item/share-item.js +0 -80
- package/dist/components/arcgis-login.d.ts +0 -11
- package/dist/components/arcgis-login.js +0 -76
- package/dist/components/share-item.d.ts +0 -11
- package/dist/components/share-item.js +0 -76
- package/dist/esm/ExpandToggle-51a5210b.js +0 -108
- package/dist/esm/FloatingArrow-41be757a.js +0 -46
- package/dist/esm/Heading-62ae5a41.js +0 -22
- package/dist/esm/IdentityManager-28f1ebb3.js +0 -4139
- package/dist/esm/Validation-e4b3bd31.js +0 -18
- package/dist/esm/app-globals-9df1c281.js +0 -65
- package/dist/esm/ar-000d3816.js +0 -104
- package/dist/esm/arcgis-login.entry.js +0 -57
- package/dist/esm/bg-50ceeb3e.js +0 -82
- package/dist/esm/browser-13cd5e9f.js +0 -32
- package/dist/esm/bs-8de5a54e.js +0 -51
- package/dist/esm/ca-3b560649.js +0 -71
- package/dist/esm/calcite-alert_6.entry.js +0 -2096
- package/dist/esm/calcite-button-3501ac03.js +0 -278
- package/dist/esm/calcite-dialog-21f00586.js +0 -5872
- package/dist/esm/calcite-input-355d3812.js +0 -997
- package/dist/esm/calcite-input-time-picker-0137aecc.js +0 -1867
- package/dist/esm/calcite-label-ac4a2e81.js +0 -107
- package/dist/esm/calcite-modal.entry.js +0 -389
- package/dist/esm/calcite-notice-56c3f190.js +0 -257
- package/dist/esm/common-c3bbba83.js +0 -36
- package/dist/esm/conditionalSlot-3eb5090f.js +0 -51
- package/dist/esm/config-1d142af8.js +0 -36
- package/dist/esm/cs-5cdc1d3f.js +0 -147
- package/dist/esm/da-30365c90.js +0 -67
- package/dist/esm/date-ac9ec758.js +0 -248
- package/dist/esm/de-at-941b583e.js +0 -90
- package/dist/esm/de-b89def95.js +0 -91
- package/dist/esm/de-ch-568c0c8e.js +0 -90
- package/dist/esm/delete-dialog.entry.js +0 -127
- package/dist/esm/dom-6f6759df.js +0 -1165
- package/dist/esm/downloadUtils-74a6bad9.js +0 -3233
- package/dist/esm/el-340bad09.js +0 -66
- package/dist/esm/en-au-b4bdb56c.js +0 -66
- package/dist/esm/en-ca-0a08923c.js +0 -65
- package/dist/esm/en-gb-f5381626.js +0 -69
- package/dist/esm/es-876b0a13.js +0 -66
- package/dist/esm/es-mx-955bc6a1.js +0 -65
- package/dist/esm/et-c76bc3b6.js +0 -92
- package/dist/esm/fi-52e100ba.js +0 -115
- package/dist/esm/floating-ui-5be07261.js +0 -2404
- package/dist/esm/focusTrapComponent-821ef6e1.js +0 -1008
- package/dist/esm/form-df6403ca.js +0 -362
- package/dist/esm/form-fbc745ea.js +0 -372
- package/dist/esm/fr-0699e247.js +0 -68
- package/dist/esm/fr-ch-c58b9b94.js +0 -66
- package/dist/esm/he-68c61be9.js +0 -105
- package/dist/esm/helpers-50d61130.js +0 -913
- package/dist/esm/hi-32cfce47.js +0 -65
- package/dist/esm/hr-962d1e56.js +0 -80
- package/dist/esm/hu-d13da86a.js +0 -88
- package/dist/esm/icon-3fb97c97.js +0 -959
- package/dist/esm/id-6de1980b.js +0 -66
- package/dist/esm/index-1b6f06f9.js +0 -199
- package/dist/esm/index-3eee2657.js +0 -1736
- package/dist/esm/index-e14fade9.js +0 -2154
- package/dist/esm/index.es-3b04354a.js +0 -11220
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +0 -584
- package/dist/esm/interactive-62057336.js +0 -82
- package/dist/esm/interactive-8a35f349.js +0 -83
- package/dist/esm/it-cccb6e82.js +0 -66
- package/dist/esm/it-ch-9d87107f.js +0 -66
- package/dist/esm/ja-1401a8ec.js +0 -72
- package/dist/esm/ko-9f06170e.js +0 -72
- package/dist/esm/label-1ef4763d.js +0 -179
- package/dist/esm/loadable-bbec26c5.js +0 -93
- package/dist/esm/loader-6a8f3dda.js +0 -173
- package/dist/esm/locale-22b2e8b1.js +0 -155
- package/dist/esm/locale-92d419e3.js +0 -1423
- package/dist/esm/locale-9f52f113.js +0 -591
- package/dist/esm/logger-5eff868b.js +0 -59
- package/dist/esm/lt-61945627.js +0 -97
- package/dist/esm/lv-def8646d.js +0 -66
- package/dist/esm/mk-db09f1f6.js +0 -66
- package/dist/esm/nb-ea4966a3.js +0 -67
- package/dist/esm/nl-159f195e.js +0 -67
- package/dist/esm/observers-4e931eb6.js +0 -56
- package/dist/esm/openCloseComponent-2022c9ab.js +0 -64
- package/dist/esm/openCloseComponent-9ae0e1fe.js +0 -63
- package/dist/esm/pl-5514150f.js +0 -114
- package/dist/esm/popupUtils-685635b7.js +0 -119
- package/dist/esm/pt-91415524.js +0 -67
- package/dist/esm/pt-br-0f472af4.js +0 -65
- package/dist/esm/publicNotificationStore-836d3cb4.js +0 -45
- package/dist/esm/request-d71d6adf.js +0 -19
- package/dist/esm/restHelpersGet-48113381.js +0 -976
- package/dist/esm/ro-decfcb47.js +0 -66
- package/dist/esm/ru-84ce786d.js +0 -126
- package/dist/esm/share-item.entry.js +0 -57
- package/dist/esm/shared-list-render-4dbefca0.js +0 -339
- package/dist/esm/sk-4468c163.js +0 -148
- package/dist/esm/sl-404f285f.js +0 -168
- package/dist/esm/solution-resource-f5809979.js +0 -142
- package/dist/esm/solution-store-5b79fffe.js +0 -1352
- package/dist/esm/sr-152d8bf8.js +0 -101
- package/dist/esm/sv-47115030.js +0 -71
- package/dist/esm/t9n-cbccd1ca.js +0 -103
- package/dist/esm/templates-0b442208.js +0 -402
- package/dist/esm/th-1c539f57.js +0 -65
- package/dist/esm/time-53cad131.js +0 -286
- package/dist/esm/tr-432df990.js +0 -66
- package/dist/esm/uk-46c024d3.js +0 -104
- package/dist/esm/utils-0e3d8992.js +0 -142
- package/dist/esm/utils-d55c5742.js +0 -66
- package/dist/esm/vi-2ad870b8.js +0 -70
- package/dist/esm/zh-cn-1955c2ce.js +0 -94
- package/dist/esm/zh-hk-b32fb4c1.js +0 -92
- package/dist/esm/zh-tw-67bdf163.js +0 -92
- package/dist/solutions-components/p-000848d5.js +0 -6
- package/dist/solutions-components/p-01021fdb.js +0 -6
- package/dist/solutions-components/p-02800894.entry.js +0 -11
- package/dist/solutions-components/p-03434d39.js +0 -11
- package/dist/solutions-components/p-060b853f.entry.js +0 -6
- package/dist/solutions-components/p-0bd7c945.js +0 -6
- package/dist/solutions-components/p-0c985f61.entry.js +0 -6
- package/dist/solutions-components/p-0ca3272e.entry.js +0 -6
- package/dist/solutions-components/p-0ebb1a18.js +0 -11
- package/dist/solutions-components/p-1092fdc9.entry.js +0 -6
- package/dist/solutions-components/p-16afbc95.entry.js +0 -6
- package/dist/solutions-components/p-18c10df7.entry.js +0 -6
- package/dist/solutions-components/p-194bcdd6.entry.js +0 -12
- package/dist/solutions-components/p-197cfd05.js +0 -6
- package/dist/solutions-components/p-1afc6682.js +0 -6
- package/dist/solutions-components/p-1c80d549.entry.js +0 -17
- package/dist/solutions-components/p-1cbec431.entry.js +0 -6
- package/dist/solutions-components/p-1e60d3ea.js +0 -6
- package/dist/solutions-components/p-23c2e69d.entry.js +0 -11
- package/dist/solutions-components/p-23d24056.entry.js +0 -11
- package/dist/solutions-components/p-25ebeb0c.entry.js +0 -11
- package/dist/solutions-components/p-25f84466.entry.js +0 -11
- package/dist/solutions-components/p-25fe9f3e.entry.js +0 -6
- package/dist/solutions-components/p-26ba0cc7.js +0 -17
- package/dist/solutions-components/p-291faeb2.js +0 -6
- package/dist/solutions-components/p-2a6eba20.entry.js +0 -11
- package/dist/solutions-components/p-2b389ce5.entry.js +0 -11
- package/dist/solutions-components/p-2b77a660.entry.js +0 -11
- package/dist/solutions-components/p-2c78f92c.entry.js +0 -11
- package/dist/solutions-components/p-2e193975.entry.js +0 -17
- package/dist/solutions-components/p-32262047.entry.js +0 -11
- package/dist/solutions-components/p-36470f6b.js +0 -6
- package/dist/solutions-components/p-36552016.entry.js +0 -12
- package/dist/solutions-components/p-37ddeea3.js +0 -488
- package/dist/solutions-components/p-3812d485.entry.js +0 -6
- package/dist/solutions-components/p-3948268c.entry.js +0 -6
- package/dist/solutions-components/p-3b312dff.js +0 -6
- package/dist/solutions-components/p-3b451796.js +0 -6
- package/dist/solutions-components/p-3b54163f.js +0 -11
- package/dist/solutions-components/p-3b859054.js +0 -16
- package/dist/solutions-components/p-3cf3c658.entry.js +0 -29
- package/dist/solutions-components/p-3d6698a7.js +0 -11
- package/dist/solutions-components/p-3dfe5cdb.js +0 -6
- package/dist/solutions-components/p-3e4ac28d.entry.js +0 -6
- package/dist/solutions-components/p-3f0f6504.js +0 -6
- package/dist/solutions-components/p-3f18fb1f.js +0 -11
- package/dist/solutions-components/p-3f20a550.entry.js +0 -6
- package/dist/solutions-components/p-3fc70768.entry.js +0 -6
- package/dist/solutions-components/p-405118a8.entry.js +0 -11
- package/dist/solutions-components/p-412759ed.entry.js +0 -11
- package/dist/solutions-components/p-46da7d9f.entry.js +0 -6
- package/dist/solutions-components/p-47fdc484.js +0 -17
- package/dist/solutions-components/p-4858ae16.js +0 -6
- package/dist/solutions-components/p-49888ae8.entry.js +0 -11
- package/dist/solutions-components/p-4a13d8d9.js +0 -6
- package/dist/solutions-components/p-4b1a9c65.js +0 -6
- package/dist/solutions-components/p-4d14be12.entry.js +0 -11
- package/dist/solutions-components/p-50721c04.js +0 -16
- package/dist/solutions-components/p-531c7fdb.js +0 -11
- package/dist/solutions-components/p-535335f2.js +0 -6
- package/dist/solutions-components/p-53bf0fe4.js +0 -6
- package/dist/solutions-components/p-544e3025.entry.js +0 -11
- package/dist/solutions-components/p-55a6c0d1.entry.js +0 -6
- package/dist/solutions-components/p-55b8fab3.entry.js +0 -6
- package/dist/solutions-components/p-564d285a.entry.js +0 -6
- package/dist/solutions-components/p-56b44bf7.entry.js +0 -11
- package/dist/solutions-components/p-57079c91.entry.js +0 -6
- package/dist/solutions-components/p-5732176e.entry.js +0 -47
- package/dist/solutions-components/p-57409415.js +0 -17
- package/dist/solutions-components/p-576843e9.js +0 -11
- package/dist/solutions-components/p-5773023c.entry.js +0 -11
- package/dist/solutions-components/p-5c20cdef.entry.js +0 -11
- package/dist/solutions-components/p-5d1ab17e.entry.js +0 -21
- package/dist/solutions-components/p-5dd95ca6.entry.js +0 -20
- package/dist/solutions-components/p-5e71e72a.js +0 -21
- package/dist/solutions-components/p-5f9afbb9.entry.js +0 -17
- package/dist/solutions-components/p-6155f4e7.js +0 -6
- package/dist/solutions-components/p-619b12c3.entry.js +0 -17
- package/dist/solutions-components/p-61bd743b.entry.js +0 -22
- package/dist/solutions-components/p-64860143.entry.js +0 -11
- package/dist/solutions-components/p-64a569da.entry.js +0 -6
- package/dist/solutions-components/p-6a1a4124.js +0 -6
- package/dist/solutions-components/p-6b8a94f0.entry.js +0 -6
- package/dist/solutions-components/p-6e842050.entry.js +0 -11
- package/dist/solutions-components/p-721bf278.js +0 -6
- package/dist/solutions-components/p-731eb030.js +0 -11
- package/dist/solutions-components/p-73db9e69.entry.js +0 -11
- package/dist/solutions-components/p-73e24177.js +0 -6
- package/dist/solutions-components/p-74b25167.entry.js +0 -11
- package/dist/solutions-components/p-7530a02f.js +0 -30
- package/dist/solutions-components/p-760f833e.js +0 -6
- package/dist/solutions-components/p-7781048a.js +0 -11
- package/dist/solutions-components/p-779c8194.entry.js +0 -6
- package/dist/solutions-components/p-7a1177c0.entry.js +0 -6
- package/dist/solutions-components/p-7c7549b0.js +0 -61
- package/dist/solutions-components/p-7e574f00.js +0 -11
- package/dist/solutions-components/p-80913362.entry.js +0 -11
- package/dist/solutions-components/p-80e05130.entry.js +0 -11
- package/dist/solutions-components/p-81a2f4c3.entry.js +0 -12
- package/dist/solutions-components/p-81c41f7b.entry.js +0 -11
- package/dist/solutions-components/p-82ee3b26.js +0 -7
- package/dist/solutions-components/p-8354374d.entry.js +0 -6
- package/dist/solutions-components/p-844b7f82.entry.js +0 -6
- package/dist/solutions-components/p-8535b484.entry.js +0 -17
- package/dist/solutions-components/p-853db1b6.entry.js +0 -6
- package/dist/solutions-components/p-85c0d237.entry.js +0 -11
- package/dist/solutions-components/p-885b958c.entry.js +0 -6
- package/dist/solutions-components/p-88e8400a.entry.js +0 -11
- package/dist/solutions-components/p-899179d7.js +0 -6
- package/dist/solutions-components/p-8a9d2564.entry.js +0 -11
- package/dist/solutions-components/p-8b60e48a.entry.js +0 -11
- package/dist/solutions-components/p-8d028e6a.entry.js +0 -11
- package/dist/solutions-components/p-8f7a11c9.js +0 -21
- package/dist/solutions-components/p-90240f7f.entry.js +0 -6
- package/dist/solutions-components/p-917b535b.js +0 -11
- package/dist/solutions-components/p-929b5bd1.entry.js +0 -6
- package/dist/solutions-components/p-92c8093d.entry.js +0 -6
- package/dist/solutions-components/p-934a6d75.js +0 -6
- package/dist/solutions-components/p-938fc0cf.entry.js +0 -6
- package/dist/solutions-components/p-94b818bb.js +0 -11
- package/dist/solutions-components/p-973ec320.js +0 -36
- package/dist/solutions-components/p-97b64bea.entry.js +0 -11
- package/dist/solutions-components/p-97e56ccc.js +0 -6
- package/dist/solutions-components/p-9b513db6.entry.js +0 -16
- package/dist/solutions-components/p-9bb44f57.js +0 -65
- package/dist/solutions-components/p-9c33a239.entry.js +0 -6
- package/dist/solutions-components/p-9cc10554.js +0 -6
- package/dist/solutions-components/p-9ce8e34f.js +0 -11
- package/dist/solutions-components/p-9f38488c.js +0 -6
- package/dist/solutions-components/p-a104bc28.js +0 -6
- package/dist/solutions-components/p-a1e6cfd8.js +0 -6
- package/dist/solutions-components/p-a3633e71.entry.js +0 -6
- package/dist/solutions-components/p-a3bc6dd8.entry.js +0 -29
- package/dist/solutions-components/p-a412c674.js +0 -11
- package/dist/solutions-components/p-a4748493.entry.js +0 -11
- package/dist/solutions-components/p-a570536b.js +0 -6
- package/dist/solutions-components/p-a60d197e.entry.js +0 -6
- package/dist/solutions-components/p-a806b4cf.entry.js +0 -17
- package/dist/solutions-components/p-a927a4e4.entry.js +0 -6
- package/dist/solutions-components/p-aaa0d91b.entry.js +0 -11
- package/dist/solutions-components/p-ab2a12e4.entry.js +0 -17
- package/dist/solutions-components/p-abcf272c.entry.js +0 -23
- package/dist/solutions-components/p-ad536cdf.js +0 -11
- package/dist/solutions-components/p-aef6e1f5.js +0 -6
- package/dist/solutions-components/p-b13d3b66.js +0 -6
- package/dist/solutions-components/p-b2064f52.entry.js +0 -6
- package/dist/solutions-components/p-b209d4b9.js +0 -6
- package/dist/solutions-components/p-b2a1177d.entry.js +0 -11
- package/dist/solutions-components/p-b54b2fc6.js +0 -31
- package/dist/solutions-components/p-b56b9a89.js +0 -11
- package/dist/solutions-components/p-b5fe0c3e.entry.js +0 -6
- package/dist/solutions-components/p-b6ea0097.js +0 -6
- package/dist/solutions-components/p-b7b32972.entry.js +0 -6
- package/dist/solutions-components/p-b7b5e88d.entry.js +0 -11
- package/dist/solutions-components/p-b9afb782.entry.js +0 -6
- package/dist/solutions-components/p-b9b3b48a.entry.js +0 -6
- package/dist/solutions-components/p-ba62b5f4.js +0 -16
- package/dist/solutions-components/p-bb9e232f.js +0 -6
- package/dist/solutions-components/p-bba22752.js +0 -6
- package/dist/solutions-components/p-bc47653a.js +0 -6
- package/dist/solutions-components/p-bccc997c.js +0 -6
- package/dist/solutions-components/p-bd220980.js +0 -21
- package/dist/solutions-components/p-bd6a96db.js +0 -6
- package/dist/solutions-components/p-bded7c22.entry.js +0 -6
- package/dist/solutions-components/p-be28e2bf.js +0 -6
- package/dist/solutions-components/p-be7c3f1d.js +0 -6
- package/dist/solutions-components/p-c023fc82.js +0 -6
- package/dist/solutions-components/p-c1160ad0.entry.js +0 -6
- package/dist/solutions-components/p-c26b8546.entry.js +0 -6
- package/dist/solutions-components/p-c2ff1a82.js +0 -6
- package/dist/solutions-components/p-c323117d.js +0 -16
- package/dist/solutions-components/p-c5713c95.entry.js +0 -11
- package/dist/solutions-components/p-c8c16d43.js +0 -11
- package/dist/solutions-components/p-c9b5a34f.js +0 -52
- package/dist/solutions-components/p-ca26f8f8.js +0 -6
- package/dist/solutions-components/p-cb007d2f.js +0 -6
- package/dist/solutions-components/p-cc9e1367.entry.js +0 -6
- package/dist/solutions-components/p-cdadd82c.entry.js +0 -17
- package/dist/solutions-components/p-ce67bbbb.js +0 -11
- package/dist/solutions-components/p-cf46113c.js +0 -6
- package/dist/solutions-components/p-cfc2fae0.entry.js +0 -17
- package/dist/solutions-components/p-d0d020a5.js +0 -37
- package/dist/solutions-components/p-d21f3851.js +0 -11
- package/dist/solutions-components/p-d2c460b9.entry.js +0 -11
- package/dist/solutions-components/p-d4c44a94.js +0 -6
- package/dist/solutions-components/p-dca07fd3.js +0 -143
- package/dist/solutions-components/p-dcfe9514.entry.js +0 -6
- package/dist/solutions-components/p-dd0bee4a.entry.js +0 -6
- package/dist/solutions-components/p-de2fecc0.js +0 -40
- package/dist/solutions-components/p-de44364f.js +0 -11
- package/dist/solutions-components/p-decc356d.entry.js +0 -11
- package/dist/solutions-components/p-e043aae3.js +0 -6
- package/dist/solutions-components/p-e04831b9.js +0 -6
- package/dist/solutions-components/p-e06f90a2.entry.js +0 -11
- package/dist/solutions-components/p-e0e6d099.js +0 -21
- package/dist/solutions-components/p-e21cb40e.entry.js +0 -11
- package/dist/solutions-components/p-e33b7602.js +0 -6
- package/dist/solutions-components/p-e385cdcf.entry.js +0 -11
- package/dist/solutions-components/p-e3e89708.entry.js +0 -11
- package/dist/solutions-components/p-e4206773.entry.js +0 -11
- package/dist/solutions-components/p-e4c16e8f.entry.js +0 -6
- package/dist/solutions-components/p-e6b2432e.entry.js +0 -6
- package/dist/solutions-components/p-e76f93bc.js +0 -11
- package/dist/solutions-components/p-e82a84ac.entry.js +0 -6
- package/dist/solutions-components/p-e9d3365f.js +0 -22
- package/dist/solutions-components/p-eb1edf3e.entry.js +0 -6
- package/dist/solutions-components/p-ebac7396.entry.js +0 -6
- package/dist/solutions-components/p-ecabb824.entry.js +0 -6
- package/dist/solutions-components/p-ecfe49cf.entry.js +0 -6
- package/dist/solutions-components/p-ed50a65b.entry.js +0 -17
- package/dist/solutions-components/p-eda5e49e.entry.js +0 -11
- package/dist/solutions-components/p-ef51b934.js +0 -6
- package/dist/solutions-components/p-f22622b4.js +0 -6
- package/dist/solutions-components/p-f2340619.js +0 -6
- package/dist/solutions-components/p-f33c5883.entry.js +0 -6
- package/dist/solutions-components/p-f4eea8c2.js +0 -67
- package/dist/solutions-components/p-f7653a0b.js +0 -6
- package/dist/solutions-components/p-f876de3f.js +0 -6
- package/dist/solutions-components/p-f87f02a1.entry.js +0 -6
- package/dist/solutions-components/p-faaf42a3.entry.js +0 -11
- package/dist/solutions-components/p-fcd719b7.entry.js +0 -22
- package/dist/solutions-components/p-fd152d68.js +0 -16
- package/dist/solutions-components/p-fdf5a50e.entry.js +0 -11
- package/dist/solutions-components/p-fe43b510.js +0 -17
- package/dist/solutions-components/p-ff609816.entry.js +0 -11
- package/dist/types/components/arcgis-login/arcgis-login.d.ts +0 -19
- package/dist/types/components/share-item/share-item.d.ts +0 -19
@@ -0,0 +1,2413 @@
|
|
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-6c04ccee.js');
|
9
|
+
const dom = require('./dom-e11b7daf.js');
|
10
|
+
const browser = require('./browser-717f77af.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 hasWindow() {
|
1183
|
+
return typeof window !== 'undefined';
|
1184
|
+
}
|
1185
|
+
function getNodeName(node) {
|
1186
|
+
if (isNode(node)) {
|
1187
|
+
return (node.nodeName || '').toLowerCase();
|
1188
|
+
}
|
1189
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
1190
|
+
// returning `#document` an infinite loop won't occur.
|
1191
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
1192
|
+
return '#document';
|
1193
|
+
}
|
1194
|
+
function getWindow(node) {
|
1195
|
+
var _node$ownerDocument;
|
1196
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1197
|
+
}
|
1198
|
+
function getDocumentElement(node) {
|
1199
|
+
var _ref;
|
1200
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
1201
|
+
}
|
1202
|
+
function isNode(value) {
|
1203
|
+
if (!hasWindow()) {
|
1204
|
+
return false;
|
1205
|
+
}
|
1206
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
1207
|
+
}
|
1208
|
+
function isElement(value) {
|
1209
|
+
if (!hasWindow()) {
|
1210
|
+
return false;
|
1211
|
+
}
|
1212
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
1213
|
+
}
|
1214
|
+
function isHTMLElement(value) {
|
1215
|
+
if (!hasWindow()) {
|
1216
|
+
return false;
|
1217
|
+
}
|
1218
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
1219
|
+
}
|
1220
|
+
function isShadowRoot(value) {
|
1221
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
1222
|
+
return false;
|
1223
|
+
}
|
1224
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
1225
|
+
}
|
1226
|
+
function isOverflowElement(element) {
|
1227
|
+
const {
|
1228
|
+
overflow,
|
1229
|
+
overflowX,
|
1230
|
+
overflowY,
|
1231
|
+
display
|
1232
|
+
} = getComputedStyle$1(element);
|
1233
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
1234
|
+
}
|
1235
|
+
function isTableElement(element) {
|
1236
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
1237
|
+
}
|
1238
|
+
function isTopLayer(element) {
|
1239
|
+
return [':popover-open', ':modal'].some(selector => {
|
1240
|
+
try {
|
1241
|
+
return element.matches(selector);
|
1242
|
+
} catch (e) {
|
1243
|
+
return false;
|
1244
|
+
}
|
1245
|
+
});
|
1246
|
+
}
|
1247
|
+
function isContainingBlock(elementOrCss) {
|
1248
|
+
const webkit = isWebKit();
|
1249
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
1250
|
+
|
1251
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1252
|
+
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));
|
1253
|
+
}
|
1254
|
+
function getContainingBlock(element) {
|
1255
|
+
let currentNode = getParentNode(element);
|
1256
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1257
|
+
if (isContainingBlock(currentNode)) {
|
1258
|
+
return currentNode;
|
1259
|
+
} else if (isTopLayer(currentNode)) {
|
1260
|
+
return null;
|
1261
|
+
}
|
1262
|
+
currentNode = getParentNode(currentNode);
|
1263
|
+
}
|
1264
|
+
return null;
|
1265
|
+
}
|
1266
|
+
function isWebKit() {
|
1267
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1268
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
1269
|
+
}
|
1270
|
+
function isLastTraversableNode(node) {
|
1271
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
1272
|
+
}
|
1273
|
+
function getComputedStyle$1(element) {
|
1274
|
+
return getWindow(element).getComputedStyle(element);
|
1275
|
+
}
|
1276
|
+
function getNodeScroll(element) {
|
1277
|
+
if (isElement(element)) {
|
1278
|
+
return {
|
1279
|
+
scrollLeft: element.scrollLeft,
|
1280
|
+
scrollTop: element.scrollTop
|
1281
|
+
};
|
1282
|
+
}
|
1283
|
+
return {
|
1284
|
+
scrollLeft: element.scrollX,
|
1285
|
+
scrollTop: element.scrollY
|
1286
|
+
};
|
1287
|
+
}
|
1288
|
+
function getParentNode(node) {
|
1289
|
+
if (getNodeName(node) === 'html') {
|
1290
|
+
return node;
|
1291
|
+
}
|
1292
|
+
const result =
|
1293
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
1294
|
+
node.assignedSlot ||
|
1295
|
+
// DOM Element detected.
|
1296
|
+
node.parentNode ||
|
1297
|
+
// ShadowRoot detected.
|
1298
|
+
isShadowRoot(node) && node.host ||
|
1299
|
+
// Fallback.
|
1300
|
+
getDocumentElement(node);
|
1301
|
+
return isShadowRoot(result) ? result.host : result;
|
1302
|
+
}
|
1303
|
+
function getNearestOverflowAncestor(node) {
|
1304
|
+
const parentNode = getParentNode(node);
|
1305
|
+
if (isLastTraversableNode(parentNode)) {
|
1306
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
1307
|
+
}
|
1308
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
1309
|
+
return parentNode;
|
1310
|
+
}
|
1311
|
+
return getNearestOverflowAncestor(parentNode);
|
1312
|
+
}
|
1313
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
1314
|
+
var _node$ownerDocument2;
|
1315
|
+
if (list === void 0) {
|
1316
|
+
list = [];
|
1317
|
+
}
|
1318
|
+
if (traverseIframes === void 0) {
|
1319
|
+
traverseIframes = true;
|
1320
|
+
}
|
1321
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1322
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1323
|
+
const win = getWindow(scrollableAncestor);
|
1324
|
+
if (isBody) {
|
1325
|
+
const frameElement = getFrameElement(win);
|
1326
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
1327
|
+
}
|
1328
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
1329
|
+
}
|
1330
|
+
function getFrameElement(win) {
|
1331
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
function getCssDimensions(element) {
|
1335
|
+
const css = getComputedStyle$1(element);
|
1336
|
+
// In testing environments, the `width` and `height` properties are empty
|
1337
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
1338
|
+
let width = parseFloat(css.width) || 0;
|
1339
|
+
let height = parseFloat(css.height) || 0;
|
1340
|
+
const hasOffset = isHTMLElement(element);
|
1341
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
1342
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
1343
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
1344
|
+
if (shouldFallback) {
|
1345
|
+
width = offsetWidth;
|
1346
|
+
height = offsetHeight;
|
1347
|
+
}
|
1348
|
+
return {
|
1349
|
+
width,
|
1350
|
+
height,
|
1351
|
+
$: shouldFallback
|
1352
|
+
};
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
function unwrapElement(element) {
|
1356
|
+
return !isElement(element) ? element.contextElement : element;
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
function getScale(element) {
|
1360
|
+
const domElement = unwrapElement(element);
|
1361
|
+
if (!isHTMLElement(domElement)) {
|
1362
|
+
return createCoords(1);
|
1363
|
+
}
|
1364
|
+
const rect = domElement.getBoundingClientRect();
|
1365
|
+
const {
|
1366
|
+
width,
|
1367
|
+
height,
|
1368
|
+
$
|
1369
|
+
} = getCssDimensions(domElement);
|
1370
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
1371
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
1372
|
+
|
1373
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
1374
|
+
|
1375
|
+
if (!x || !Number.isFinite(x)) {
|
1376
|
+
x = 1;
|
1377
|
+
}
|
1378
|
+
if (!y || !Number.isFinite(y)) {
|
1379
|
+
y = 1;
|
1380
|
+
}
|
1381
|
+
return {
|
1382
|
+
x,
|
1383
|
+
y
|
1384
|
+
};
|
1385
|
+
}
|
1386
|
+
|
1387
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
1388
|
+
function getVisualOffsets(element) {
|
1389
|
+
const win = getWindow(element);
|
1390
|
+
if (!isWebKit() || !win.visualViewport) {
|
1391
|
+
return noOffsets;
|
1392
|
+
}
|
1393
|
+
return {
|
1394
|
+
x: win.visualViewport.offsetLeft,
|
1395
|
+
y: win.visualViewport.offsetTop
|
1396
|
+
};
|
1397
|
+
}
|
1398
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
1399
|
+
if (isFixed === void 0) {
|
1400
|
+
isFixed = false;
|
1401
|
+
}
|
1402
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
1403
|
+
return false;
|
1404
|
+
}
|
1405
|
+
return isFixed;
|
1406
|
+
}
|
1407
|
+
|
1408
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
1409
|
+
if (includeScale === void 0) {
|
1410
|
+
includeScale = false;
|
1411
|
+
}
|
1412
|
+
if (isFixedStrategy === void 0) {
|
1413
|
+
isFixedStrategy = false;
|
1414
|
+
}
|
1415
|
+
const clientRect = element.getBoundingClientRect();
|
1416
|
+
const domElement = unwrapElement(element);
|
1417
|
+
let scale = createCoords(1);
|
1418
|
+
if (includeScale) {
|
1419
|
+
if (offsetParent) {
|
1420
|
+
if (isElement(offsetParent)) {
|
1421
|
+
scale = getScale(offsetParent);
|
1422
|
+
}
|
1423
|
+
} else {
|
1424
|
+
scale = getScale(element);
|
1425
|
+
}
|
1426
|
+
}
|
1427
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
1428
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
1429
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
1430
|
+
let width = clientRect.width / scale.x;
|
1431
|
+
let height = clientRect.height / scale.y;
|
1432
|
+
if (domElement) {
|
1433
|
+
const win = getWindow(domElement);
|
1434
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
1435
|
+
let currentWin = win;
|
1436
|
+
let currentIFrame = getFrameElement(currentWin);
|
1437
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
1438
|
+
const iframeScale = getScale(currentIFrame);
|
1439
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
1440
|
+
const css = getComputedStyle$1(currentIFrame);
|
1441
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
1442
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
1443
|
+
x *= iframeScale.x;
|
1444
|
+
y *= iframeScale.y;
|
1445
|
+
width *= iframeScale.x;
|
1446
|
+
height *= iframeScale.y;
|
1447
|
+
x += left;
|
1448
|
+
y += top;
|
1449
|
+
currentWin = getWindow(currentIFrame);
|
1450
|
+
currentIFrame = getFrameElement(currentWin);
|
1451
|
+
}
|
1452
|
+
}
|
1453
|
+
return rectToClientRect({
|
1454
|
+
width,
|
1455
|
+
height,
|
1456
|
+
x,
|
1457
|
+
y
|
1458
|
+
});
|
1459
|
+
}
|
1460
|
+
|
1461
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
1462
|
+
let {
|
1463
|
+
elements,
|
1464
|
+
rect,
|
1465
|
+
offsetParent,
|
1466
|
+
strategy
|
1467
|
+
} = _ref;
|
1468
|
+
const isFixed = strategy === 'fixed';
|
1469
|
+
const documentElement = getDocumentElement(offsetParent);
|
1470
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
1471
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
1472
|
+
return rect;
|
1473
|
+
}
|
1474
|
+
let scroll = {
|
1475
|
+
scrollLeft: 0,
|
1476
|
+
scrollTop: 0
|
1477
|
+
};
|
1478
|
+
let scale = createCoords(1);
|
1479
|
+
const offsets = createCoords(0);
|
1480
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1481
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1482
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1483
|
+
scroll = getNodeScroll(offsetParent);
|
1484
|
+
}
|
1485
|
+
if (isHTMLElement(offsetParent)) {
|
1486
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
1487
|
+
scale = getScale(offsetParent);
|
1488
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1489
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1490
|
+
}
|
1491
|
+
}
|
1492
|
+
return {
|
1493
|
+
width: rect.width * scale.x,
|
1494
|
+
height: rect.height * scale.y,
|
1495
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
1496
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
1497
|
+
};
|
1498
|
+
}
|
1499
|
+
|
1500
|
+
function getClientRects(element) {
|
1501
|
+
return Array.from(element.getClientRects());
|
1502
|
+
}
|
1503
|
+
|
1504
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
1505
|
+
// incorrect for RTL.
|
1506
|
+
function getWindowScrollBarX(element, rect) {
|
1507
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
1508
|
+
if (!rect) {
|
1509
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
1510
|
+
}
|
1511
|
+
return rect.left + leftScroll;
|
1512
|
+
}
|
1513
|
+
|
1514
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
1515
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
1516
|
+
function getDocumentRect(element) {
|
1517
|
+
const html = getDocumentElement(element);
|
1518
|
+
const scroll = getNodeScroll(element);
|
1519
|
+
const body = element.ownerDocument.body;
|
1520
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
1521
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
1522
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
1523
|
+
const y = -scroll.scrollTop;
|
1524
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
1525
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
1526
|
+
}
|
1527
|
+
return {
|
1528
|
+
width,
|
1529
|
+
height,
|
1530
|
+
x,
|
1531
|
+
y
|
1532
|
+
};
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
function getViewportRect(element, strategy) {
|
1536
|
+
const win = getWindow(element);
|
1537
|
+
const html = getDocumentElement(element);
|
1538
|
+
const visualViewport = win.visualViewport;
|
1539
|
+
let width = html.clientWidth;
|
1540
|
+
let height = html.clientHeight;
|
1541
|
+
let x = 0;
|
1542
|
+
let y = 0;
|
1543
|
+
if (visualViewport) {
|
1544
|
+
width = visualViewport.width;
|
1545
|
+
height = visualViewport.height;
|
1546
|
+
const visualViewportBased = isWebKit();
|
1547
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
1548
|
+
x = visualViewport.offsetLeft;
|
1549
|
+
y = visualViewport.offsetTop;
|
1550
|
+
}
|
1551
|
+
}
|
1552
|
+
return {
|
1553
|
+
width,
|
1554
|
+
height,
|
1555
|
+
x,
|
1556
|
+
y
|
1557
|
+
};
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
1561
|
+
function getInnerBoundingClientRect(element, strategy) {
|
1562
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
1563
|
+
const top = clientRect.top + element.clientTop;
|
1564
|
+
const left = clientRect.left + element.clientLeft;
|
1565
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
1566
|
+
const width = element.clientWidth * scale.x;
|
1567
|
+
const height = element.clientHeight * scale.y;
|
1568
|
+
const x = left * scale.x;
|
1569
|
+
const y = top * scale.y;
|
1570
|
+
return {
|
1571
|
+
width,
|
1572
|
+
height,
|
1573
|
+
x,
|
1574
|
+
y
|
1575
|
+
};
|
1576
|
+
}
|
1577
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
1578
|
+
let rect;
|
1579
|
+
if (clippingAncestor === 'viewport') {
|
1580
|
+
rect = getViewportRect(element, strategy);
|
1581
|
+
} else if (clippingAncestor === 'document') {
|
1582
|
+
rect = getDocumentRect(getDocumentElement(element));
|
1583
|
+
} else if (isElement(clippingAncestor)) {
|
1584
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
1585
|
+
} else {
|
1586
|
+
const visualOffsets = getVisualOffsets(element);
|
1587
|
+
rect = {
|
1588
|
+
...clippingAncestor,
|
1589
|
+
x: clippingAncestor.x - visualOffsets.x,
|
1590
|
+
y: clippingAncestor.y - visualOffsets.y
|
1591
|
+
};
|
1592
|
+
}
|
1593
|
+
return rectToClientRect(rect);
|
1594
|
+
}
|
1595
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
1596
|
+
const parentNode = getParentNode(element);
|
1597
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
1598
|
+
return false;
|
1599
|
+
}
|
1600
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
1601
|
+
}
|
1602
|
+
|
1603
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
1604
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
1605
|
+
// of the given element up the tree.
|
1606
|
+
function getClippingElementAncestors(element, cache) {
|
1607
|
+
const cachedResult = cache.get(element);
|
1608
|
+
if (cachedResult) {
|
1609
|
+
return cachedResult;
|
1610
|
+
}
|
1611
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
1612
|
+
let currentContainingBlockComputedStyle = null;
|
1613
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
1614
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
1615
|
+
|
1616
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1617
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1618
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
1619
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
1620
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
1621
|
+
currentContainingBlockComputedStyle = null;
|
1622
|
+
}
|
1623
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
1624
|
+
if (shouldDropCurrentNode) {
|
1625
|
+
// Drop non-containing blocks.
|
1626
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
1627
|
+
} else {
|
1628
|
+
// Record last containing block for next iteration.
|
1629
|
+
currentContainingBlockComputedStyle = computedStyle;
|
1630
|
+
}
|
1631
|
+
currentNode = getParentNode(currentNode);
|
1632
|
+
}
|
1633
|
+
cache.set(element, result);
|
1634
|
+
return result;
|
1635
|
+
}
|
1636
|
+
|
1637
|
+
// Gets the maximum area that the element is visible in due to any number of
|
1638
|
+
// clipping ancestors.
|
1639
|
+
function getClippingRect(_ref) {
|
1640
|
+
let {
|
1641
|
+
element,
|
1642
|
+
boundary,
|
1643
|
+
rootBoundary,
|
1644
|
+
strategy
|
1645
|
+
} = _ref;
|
1646
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
1647
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
1648
|
+
const firstClippingAncestor = clippingAncestors[0];
|
1649
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
1650
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
1651
|
+
accRect.top = max(rect.top, accRect.top);
|
1652
|
+
accRect.right = min(rect.right, accRect.right);
|
1653
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
1654
|
+
accRect.left = max(rect.left, accRect.left);
|
1655
|
+
return accRect;
|
1656
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
1657
|
+
return {
|
1658
|
+
width: clippingRect.right - clippingRect.left,
|
1659
|
+
height: clippingRect.bottom - clippingRect.top,
|
1660
|
+
x: clippingRect.left,
|
1661
|
+
y: clippingRect.top
|
1662
|
+
};
|
1663
|
+
}
|
1664
|
+
|
1665
|
+
function getDimensions(element) {
|
1666
|
+
const {
|
1667
|
+
width,
|
1668
|
+
height
|
1669
|
+
} = getCssDimensions(element);
|
1670
|
+
return {
|
1671
|
+
width,
|
1672
|
+
height
|
1673
|
+
};
|
1674
|
+
}
|
1675
|
+
|
1676
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
1677
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1678
|
+
const documentElement = getDocumentElement(offsetParent);
|
1679
|
+
const isFixed = strategy === 'fixed';
|
1680
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
1681
|
+
let scroll = {
|
1682
|
+
scrollLeft: 0,
|
1683
|
+
scrollTop: 0
|
1684
|
+
};
|
1685
|
+
const offsets = createCoords(0);
|
1686
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1687
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1688
|
+
scroll = getNodeScroll(offsetParent);
|
1689
|
+
}
|
1690
|
+
if (isOffsetParentAnElement) {
|
1691
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
1692
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1693
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1694
|
+
} else if (documentElement) {
|
1695
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
1696
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
1697
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
1698
|
+
}
|
1699
|
+
}
|
1700
|
+
let htmlX = 0;
|
1701
|
+
let htmlY = 0;
|
1702
|
+
if (documentElement && !isOffsetParentAnElement && !isFixed) {
|
1703
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
1704
|
+
htmlY = htmlRect.top + scroll.scrollTop;
|
1705
|
+
htmlX = htmlRect.left + scroll.scrollLeft -
|
1706
|
+
// RTL <body> scrollbar.
|
1707
|
+
getWindowScrollBarX(documentElement, htmlRect);
|
1708
|
+
}
|
1709
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlX;
|
1710
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlY;
|
1711
|
+
return {
|
1712
|
+
x,
|
1713
|
+
y,
|
1714
|
+
width: rect.width,
|
1715
|
+
height: rect.height
|
1716
|
+
};
|
1717
|
+
}
|
1718
|
+
|
1719
|
+
function isStaticPositioned(element) {
|
1720
|
+
return getComputedStyle$1(element).position === 'static';
|
1721
|
+
}
|
1722
|
+
|
1723
|
+
function getTrueOffsetParent(element, polyfill) {
|
1724
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
1725
|
+
return null;
|
1726
|
+
}
|
1727
|
+
if (polyfill) {
|
1728
|
+
return polyfill(element);
|
1729
|
+
}
|
1730
|
+
let rawOffsetParent = element.offsetParent;
|
1731
|
+
|
1732
|
+
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
1733
|
+
// while Chrome and Safari return the <body> element. The <body> element must
|
1734
|
+
// be used to perform the correct calculations even if the <html> element is
|
1735
|
+
// non-static.
|
1736
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
1737
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
1738
|
+
}
|
1739
|
+
return rawOffsetParent;
|
1740
|
+
}
|
1741
|
+
|
1742
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
1743
|
+
// such as table ancestors and cross browser bugs.
|
1744
|
+
function getOffsetParent(element, polyfill) {
|
1745
|
+
const win = getWindow(element);
|
1746
|
+
if (isTopLayer(element)) {
|
1747
|
+
return win;
|
1748
|
+
}
|
1749
|
+
if (!isHTMLElement(element)) {
|
1750
|
+
let svgOffsetParent = getParentNode(element);
|
1751
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
1752
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
1753
|
+
return svgOffsetParent;
|
1754
|
+
}
|
1755
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
1756
|
+
}
|
1757
|
+
return win;
|
1758
|
+
}
|
1759
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
1760
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
1761
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
1762
|
+
}
|
1763
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
1764
|
+
return win;
|
1765
|
+
}
|
1766
|
+
return offsetParent || getContainingBlock(element) || win;
|
1767
|
+
}
|
1768
|
+
|
1769
|
+
const getElementRects = async function (data) {
|
1770
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
1771
|
+
const getDimensionsFn = this.getDimensions;
|
1772
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
1773
|
+
return {
|
1774
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
1775
|
+
floating: {
|
1776
|
+
x: 0,
|
1777
|
+
y: 0,
|
1778
|
+
width: floatingDimensions.width,
|
1779
|
+
height: floatingDimensions.height
|
1780
|
+
}
|
1781
|
+
};
|
1782
|
+
};
|
1783
|
+
|
1784
|
+
function isRTL(element) {
|
1785
|
+
return getComputedStyle$1(element).direction === 'rtl';
|
1786
|
+
}
|
1787
|
+
|
1788
|
+
const platform = {
|
1789
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
1790
|
+
getDocumentElement,
|
1791
|
+
getClippingRect,
|
1792
|
+
getOffsetParent,
|
1793
|
+
getElementRects,
|
1794
|
+
getClientRects,
|
1795
|
+
getDimensions,
|
1796
|
+
getScale,
|
1797
|
+
isElement,
|
1798
|
+
isRTL
|
1799
|
+
};
|
1800
|
+
|
1801
|
+
// https://samthor.au/2021/observing-dom/
|
1802
|
+
function observeMove(element, onMove) {
|
1803
|
+
let io = null;
|
1804
|
+
let timeoutId;
|
1805
|
+
const root = getDocumentElement(element);
|
1806
|
+
function cleanup() {
|
1807
|
+
var _io;
|
1808
|
+
clearTimeout(timeoutId);
|
1809
|
+
(_io = io) == null || _io.disconnect();
|
1810
|
+
io = null;
|
1811
|
+
}
|
1812
|
+
function refresh(skip, threshold) {
|
1813
|
+
if (skip === void 0) {
|
1814
|
+
skip = false;
|
1815
|
+
}
|
1816
|
+
if (threshold === void 0) {
|
1817
|
+
threshold = 1;
|
1818
|
+
}
|
1819
|
+
cleanup();
|
1820
|
+
const {
|
1821
|
+
left,
|
1822
|
+
top,
|
1823
|
+
width,
|
1824
|
+
height
|
1825
|
+
} = element.getBoundingClientRect();
|
1826
|
+
if (!skip) {
|
1827
|
+
onMove();
|
1828
|
+
}
|
1829
|
+
if (!width || !height) {
|
1830
|
+
return;
|
1831
|
+
}
|
1832
|
+
const insetTop = floor(top);
|
1833
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
1834
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
1835
|
+
const insetLeft = floor(left);
|
1836
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
1837
|
+
const options = {
|
1838
|
+
rootMargin,
|
1839
|
+
threshold: max(0, min(1, threshold)) || 1
|
1840
|
+
};
|
1841
|
+
let isFirstUpdate = true;
|
1842
|
+
function handleObserve(entries) {
|
1843
|
+
const ratio = entries[0].intersectionRatio;
|
1844
|
+
if (ratio !== threshold) {
|
1845
|
+
if (!isFirstUpdate) {
|
1846
|
+
return refresh();
|
1847
|
+
}
|
1848
|
+
if (!ratio) {
|
1849
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
1850
|
+
// to prevent an infinite loop of updates.
|
1851
|
+
timeoutId = setTimeout(() => {
|
1852
|
+
refresh(false, 1e-7);
|
1853
|
+
}, 1000);
|
1854
|
+
} else {
|
1855
|
+
refresh(false, ratio);
|
1856
|
+
}
|
1857
|
+
}
|
1858
|
+
isFirstUpdate = false;
|
1859
|
+
}
|
1860
|
+
|
1861
|
+
// Older browsers don't support a `document` as the root and will throw an
|
1862
|
+
// error.
|
1863
|
+
try {
|
1864
|
+
io = new IntersectionObserver(handleObserve, {
|
1865
|
+
...options,
|
1866
|
+
// Handle <iframe>s
|
1867
|
+
root: root.ownerDocument
|
1868
|
+
});
|
1869
|
+
} catch (e) {
|
1870
|
+
io = new IntersectionObserver(handleObserve, options);
|
1871
|
+
}
|
1872
|
+
io.observe(element);
|
1873
|
+
}
|
1874
|
+
refresh(true);
|
1875
|
+
return cleanup;
|
1876
|
+
}
|
1877
|
+
|
1878
|
+
/**
|
1879
|
+
* Automatically updates the position of the floating element when necessary.
|
1880
|
+
* Should only be called when the floating element is mounted on the DOM or
|
1881
|
+
* visible on the screen.
|
1882
|
+
* @returns cleanup function that should be invoked when the floating element is
|
1883
|
+
* removed from the DOM or hidden from the screen.
|
1884
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
1885
|
+
*/
|
1886
|
+
function autoUpdate(reference, floating, update, options) {
|
1887
|
+
if (options === void 0) {
|
1888
|
+
options = {};
|
1889
|
+
}
|
1890
|
+
const {
|
1891
|
+
ancestorScroll = true,
|
1892
|
+
ancestorResize = true,
|
1893
|
+
elementResize = typeof ResizeObserver === 'function',
|
1894
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
1895
|
+
animationFrame = false
|
1896
|
+
} = options;
|
1897
|
+
const referenceEl = unwrapElement(reference);
|
1898
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
1899
|
+
ancestors.forEach(ancestor => {
|
1900
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
1901
|
+
passive: true
|
1902
|
+
});
|
1903
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
1904
|
+
});
|
1905
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
1906
|
+
let reobserveFrame = -1;
|
1907
|
+
let resizeObserver = null;
|
1908
|
+
if (elementResize) {
|
1909
|
+
resizeObserver = new ResizeObserver(_ref => {
|
1910
|
+
let [firstEntry] = _ref;
|
1911
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
1912
|
+
// Prevent update loops when using the `size` middleware.
|
1913
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
1914
|
+
resizeObserver.unobserve(floating);
|
1915
|
+
cancelAnimationFrame(reobserveFrame);
|
1916
|
+
reobserveFrame = requestAnimationFrame(() => {
|
1917
|
+
var _resizeObserver;
|
1918
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
1919
|
+
});
|
1920
|
+
}
|
1921
|
+
update();
|
1922
|
+
});
|
1923
|
+
if (referenceEl && !animationFrame) {
|
1924
|
+
resizeObserver.observe(referenceEl);
|
1925
|
+
}
|
1926
|
+
resizeObserver.observe(floating);
|
1927
|
+
}
|
1928
|
+
let frameId;
|
1929
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
1930
|
+
if (animationFrame) {
|
1931
|
+
frameLoop();
|
1932
|
+
}
|
1933
|
+
function frameLoop() {
|
1934
|
+
const nextRefRect = getBoundingClientRect(reference);
|
1935
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
1936
|
+
update();
|
1937
|
+
}
|
1938
|
+
prevRefRect = nextRefRect;
|
1939
|
+
frameId = requestAnimationFrame(frameLoop);
|
1940
|
+
}
|
1941
|
+
update();
|
1942
|
+
return () => {
|
1943
|
+
var _resizeObserver2;
|
1944
|
+
ancestors.forEach(ancestor => {
|
1945
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
1946
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
1947
|
+
});
|
1948
|
+
cleanupIo == null || cleanupIo();
|
1949
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
1950
|
+
resizeObserver = null;
|
1951
|
+
if (animationFrame) {
|
1952
|
+
cancelAnimationFrame(frameId);
|
1953
|
+
}
|
1954
|
+
};
|
1955
|
+
}
|
1956
|
+
|
1957
|
+
/**
|
1958
|
+
* Modifies the placement by translating the floating element along the
|
1959
|
+
* specified axes.
|
1960
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
1961
|
+
* object may be passed.
|
1962
|
+
* @see https://floating-ui.com/docs/offset
|
1963
|
+
*/
|
1964
|
+
const offset = offset$1;
|
1965
|
+
|
1966
|
+
/**
|
1967
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
1968
|
+
* that has the most space available automatically, without needing to specify a
|
1969
|
+
* preferred placement. Alternative to `flip`.
|
1970
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
1971
|
+
*/
|
1972
|
+
const autoPlacement = autoPlacement$1;
|
1973
|
+
|
1974
|
+
/**
|
1975
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
1976
|
+
* keep it in view when it will overflow the clipping boundary.
|
1977
|
+
* @see https://floating-ui.com/docs/shift
|
1978
|
+
*/
|
1979
|
+
const shift = shift$1;
|
1980
|
+
|
1981
|
+
/**
|
1982
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
1983
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
1984
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
1985
|
+
* @see https://floating-ui.com/docs/flip
|
1986
|
+
*/
|
1987
|
+
const flip = flip$1;
|
1988
|
+
|
1989
|
+
/**
|
1990
|
+
* Provides data that allows you to change the size of the floating element —
|
1991
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
1992
|
+
* width of the reference element.
|
1993
|
+
* @see https://floating-ui.com/docs/size
|
1994
|
+
*/
|
1995
|
+
size;
|
1996
|
+
|
1997
|
+
/**
|
1998
|
+
* Provides data to hide the floating element in applicable situations, such as
|
1999
|
+
* when it is not in the same clipping context as the reference element.
|
2000
|
+
* @see https://floating-ui.com/docs/hide
|
2001
|
+
*/
|
2002
|
+
const hide = hide$1;
|
2003
|
+
|
2004
|
+
/**
|
2005
|
+
* Provides data to position an inner element of the floating element so that it
|
2006
|
+
* appears centered to the reference element.
|
2007
|
+
* @see https://floating-ui.com/docs/arrow
|
2008
|
+
*/
|
2009
|
+
const arrow = arrow$1;
|
2010
|
+
|
2011
|
+
/**
|
2012
|
+
* Provides improved positioning for inline reference elements that can span
|
2013
|
+
* over multiple lines, such as hyperlinks or range selections.
|
2014
|
+
* @see https://floating-ui.com/docs/inline
|
2015
|
+
*/
|
2016
|
+
inline;
|
2017
|
+
|
2018
|
+
/**
|
2019
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
2020
|
+
*/
|
2021
|
+
limitShift;
|
2022
|
+
|
2023
|
+
/**
|
2024
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
2025
|
+
* next to a given reference element.
|
2026
|
+
*/
|
2027
|
+
const computePosition = (reference, floating, options) => {
|
2028
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
2029
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
2030
|
+
// single call. If other functions become expensive, we can add them as well.
|
2031
|
+
const cache = new Map();
|
2032
|
+
const mergedOptions = {
|
2033
|
+
platform,
|
2034
|
+
...options
|
2035
|
+
};
|
2036
|
+
const platformWithCache = {
|
2037
|
+
...mergedOptions.platform,
|
2038
|
+
_c: cache
|
2039
|
+
};
|
2040
|
+
return computePosition$1(reference, floating, {
|
2041
|
+
...mergedOptions,
|
2042
|
+
platform: platformWithCache
|
2043
|
+
});
|
2044
|
+
};
|
2045
|
+
|
2046
|
+
function offsetParent(element) {
|
2047
|
+
return offsetParentPolyfill(element);
|
2048
|
+
}
|
2049
|
+
function flatTreeParent(element) {
|
2050
|
+
if (element.assignedSlot) {
|
2051
|
+
return element.assignedSlot;
|
2052
|
+
}
|
2053
|
+
if (element.parentNode instanceof ShadowRoot) {
|
2054
|
+
return element.parentNode.host;
|
2055
|
+
}
|
2056
|
+
return element.parentNode;
|
2057
|
+
}
|
2058
|
+
function offsetParentPolyfill(element) {
|
2059
|
+
// Do an initial walk to check for display:none ancestors.
|
2060
|
+
for (let ancestor = element; ancestor; ancestor = flatTreeParent(ancestor)) {
|
2061
|
+
if (!(ancestor instanceof Element)) {
|
2062
|
+
continue;
|
2063
|
+
}
|
2064
|
+
if (getComputedStyle(ancestor).display === 'none') {
|
2065
|
+
return null;
|
2066
|
+
}
|
2067
|
+
}
|
2068
|
+
for (let ancestor = flatTreeParent(element); ancestor; ancestor = flatTreeParent(ancestor)) {
|
2069
|
+
if (!(ancestor instanceof Element)) {
|
2070
|
+
continue;
|
2071
|
+
}
|
2072
|
+
const style = getComputedStyle(ancestor);
|
2073
|
+
// Display:contents nodes aren't in the layout tree, so they should be skipped.
|
2074
|
+
if (style.display === 'contents') {
|
2075
|
+
continue;
|
2076
|
+
}
|
2077
|
+
if (style.position !== 'static' || isContainingBlock(style)) {
|
2078
|
+
return ancestor;
|
2079
|
+
}
|
2080
|
+
if (ancestor.tagName === 'BODY') {
|
2081
|
+
return ancestor;
|
2082
|
+
}
|
2083
|
+
}
|
2084
|
+
return null;
|
2085
|
+
}
|
2086
|
+
|
2087
|
+
/*!
|
2088
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
2089
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
2090
|
+
* v2.13.2
|
2091
|
+
*/
|
2092
|
+
(function setUpFloatingUiForShadowDomPositioning() {
|
2093
|
+
if (browser.isBrowser()) {
|
2094
|
+
const originalGetOffsetParent = platform.getOffsetParent;
|
2095
|
+
platform.getOffsetParent = (element) => originalGetOffsetParent(element, offsetParent);
|
2096
|
+
}
|
2097
|
+
})();
|
2098
|
+
function roundByDPR(value) {
|
2099
|
+
const dpr = window.devicePixelRatio || 1;
|
2100
|
+
return Math.round(value * dpr) / dpr;
|
2101
|
+
}
|
2102
|
+
/**
|
2103
|
+
* Positions the floating element relative to the reference element.
|
2104
|
+
*
|
2105
|
+
* **Note:** exported for testing purposes only
|
2106
|
+
*
|
2107
|
+
* @param root0
|
2108
|
+
* @param root0.referenceEl
|
2109
|
+
* @param root0.floatingEl
|
2110
|
+
* @param root0.overlayPositioning
|
2111
|
+
* @param root0.placement
|
2112
|
+
* @param root0.flipDisabled
|
2113
|
+
* @param root0.flipPlacements
|
2114
|
+
* @param root0.offsetDistance
|
2115
|
+
* @param root0.offsetSkidding
|
2116
|
+
* @param root0.arrowEl
|
2117
|
+
* @param root0.type
|
2118
|
+
* @param component
|
2119
|
+
* @param root0.referenceEl.referenceEl
|
2120
|
+
* @param root0.referenceEl.floatingEl
|
2121
|
+
* @param root0.referenceEl.overlayPositioning
|
2122
|
+
* @param root0.referenceEl.placement
|
2123
|
+
* @param root0.referenceEl.flipDisabled
|
2124
|
+
* @param root0.referenceEl.flipPlacements
|
2125
|
+
* @param root0.referenceEl.offsetDistance
|
2126
|
+
* @param root0.referenceEl.offsetSkidding
|
2127
|
+
* @param root0.referenceEl.arrowEl
|
2128
|
+
* @param root0.referenceEl.type
|
2129
|
+
* @param component.referenceEl
|
2130
|
+
* @param component.floatingEl
|
2131
|
+
* @param component.overlayPositioning
|
2132
|
+
* @param component.placement
|
2133
|
+
* @param component.flipDisabled
|
2134
|
+
* @param component.flipPlacements
|
2135
|
+
* @param component.offsetDistance
|
2136
|
+
* @param component.offsetSkidding
|
2137
|
+
* @param component.arrowEl
|
2138
|
+
* @param component.type
|
2139
|
+
*/
|
2140
|
+
const positionFloatingUI =
|
2141
|
+
/* we export arrow function to allow us to spy on it during testing */
|
2142
|
+
async (component, { referenceEl, floatingEl, overlayPositioning = "absolute", placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) => {
|
2143
|
+
if (!referenceEl || !floatingEl) {
|
2144
|
+
return null;
|
2145
|
+
}
|
2146
|
+
const isRTL = dom.getElementDir(floatingEl) === "rtl";
|
2147
|
+
const { x, y, placement: effectivePlacement, strategy: position, middlewareData, } = await computePosition(referenceEl, floatingEl, {
|
2148
|
+
strategy: overlayPositioning,
|
2149
|
+
placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
|
2150
|
+
? undefined
|
2151
|
+
: getEffectivePlacement(placement, isRTL),
|
2152
|
+
middleware: getMiddleware({
|
2153
|
+
placement,
|
2154
|
+
flipDisabled,
|
2155
|
+
flipPlacements: flipPlacements?.map((placement) => getEffectivePlacement(placement, isRTL)),
|
2156
|
+
offsetDistance,
|
2157
|
+
offsetSkidding,
|
2158
|
+
arrowEl,
|
2159
|
+
type,
|
2160
|
+
}),
|
2161
|
+
});
|
2162
|
+
if (arrowEl && middlewareData.arrow) {
|
2163
|
+
const { x, y } = middlewareData.arrow;
|
2164
|
+
const side = effectivePlacement.split("-")[0];
|
2165
|
+
const alignment = x != null ? "left" : "top";
|
2166
|
+
const transform = ARROW_CSS_TRANSFORM[side];
|
2167
|
+
const reset = { left: "", top: "", bottom: "", right: "" };
|
2168
|
+
if ("floatingLayout" in component) {
|
2169
|
+
component.floatingLayout = side === "left" || side === "right" ? "horizontal" : "vertical";
|
2170
|
+
}
|
2171
|
+
Object.assign(arrowEl.style, {
|
2172
|
+
...reset,
|
2173
|
+
[alignment]: `${alignment == "left" ? x : y}px`,
|
2174
|
+
[side]: "100%",
|
2175
|
+
transform,
|
2176
|
+
});
|
2177
|
+
}
|
2178
|
+
const referenceHidden = middlewareData.hide?.referenceHidden;
|
2179
|
+
const visibility = referenceHidden ? "hidden" : null;
|
2180
|
+
const pointerEvents = visibility ? "none" : null;
|
2181
|
+
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
2182
|
+
const { open } = component;
|
2183
|
+
Object.assign(floatingEl.style, {
|
2184
|
+
visibility,
|
2185
|
+
pointerEvents,
|
2186
|
+
position,
|
2187
|
+
transform: open ? `translate(${roundByDPR(x)}px,${roundByDPR(y)}px)` : "",
|
2188
|
+
top: 0,
|
2189
|
+
left: 0,
|
2190
|
+
});
|
2191
|
+
};
|
2192
|
+
/**
|
2193
|
+
* Exported for testing purposes only
|
2194
|
+
*/
|
2195
|
+
const placementDataAttribute = "data-placement";
|
2196
|
+
const flipPlacements = [
|
2197
|
+
"top",
|
2198
|
+
"bottom",
|
2199
|
+
"right",
|
2200
|
+
"left",
|
2201
|
+
"top-start",
|
2202
|
+
"top-end",
|
2203
|
+
"bottom-start",
|
2204
|
+
"bottom-end",
|
2205
|
+
"right-start",
|
2206
|
+
"right-end",
|
2207
|
+
"left-start",
|
2208
|
+
"left-end",
|
2209
|
+
"leading",
|
2210
|
+
"trailing",
|
2211
|
+
"leading-start",
|
2212
|
+
"leading-end",
|
2213
|
+
"trailing-start",
|
2214
|
+
"trailing-end",
|
2215
|
+
];
|
2216
|
+
const defaultMenuPlacement = "bottom-start";
|
2217
|
+
const defaultEndMenuPlacement = "bottom-end";
|
2218
|
+
const FloatingCSS = {
|
2219
|
+
animation: "calcite-floating-ui-anim",
|
2220
|
+
animationActive: "calcite-floating-ui-anim--active",
|
2221
|
+
arrow: "calcite-floating-ui-arrow",
|
2222
|
+
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
2223
|
+
};
|
2224
|
+
function getMiddleware({ placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) {
|
2225
|
+
const defaultMiddleware = [shift(), hide()];
|
2226
|
+
if (type === "menu") {
|
2227
|
+
return [
|
2228
|
+
...defaultMiddleware,
|
2229
|
+
flip({
|
2230
|
+
fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"],
|
2231
|
+
}),
|
2232
|
+
];
|
2233
|
+
}
|
2234
|
+
if (type === "popover" || type === "tooltip") {
|
2235
|
+
const middleware = [
|
2236
|
+
...defaultMiddleware,
|
2237
|
+
offset({
|
2238
|
+
mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
|
2239
|
+
crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0,
|
2240
|
+
}),
|
2241
|
+
];
|
2242
|
+
if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
|
2243
|
+
middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
|
2244
|
+
}
|
2245
|
+
else if (!flipDisabled) {
|
2246
|
+
middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
|
2247
|
+
}
|
2248
|
+
if (arrowEl) {
|
2249
|
+
middleware.push(arrow({
|
2250
|
+
element: arrowEl,
|
2251
|
+
}));
|
2252
|
+
}
|
2253
|
+
return middleware;
|
2254
|
+
}
|
2255
|
+
return [];
|
2256
|
+
}
|
2257
|
+
function filterValidFlipPlacements(placements, el) {
|
2258
|
+
const filteredPlacements = placements.filter((placement) => flipPlacements.includes(placement));
|
2259
|
+
if (filteredPlacements.length !== placements.length) {
|
2260
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${flipPlacements
|
2261
|
+
.map((placement) => `"${placement}"`)
|
2262
|
+
.join(", ")
|
2263
|
+
.trim()}`, { el });
|
2264
|
+
}
|
2265
|
+
return filteredPlacements;
|
2266
|
+
}
|
2267
|
+
function getEffectivePlacement(placement, isRTL = false) {
|
2268
|
+
const placements = ["left", "right"];
|
2269
|
+
if (isRTL) {
|
2270
|
+
placements.reverse();
|
2271
|
+
}
|
2272
|
+
return placement.replace(/leading/gi, placements[0]).replace(/trailing/gi, placements[1]);
|
2273
|
+
}
|
2274
|
+
/**
|
2275
|
+
* Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
|
2276
|
+
*
|
2277
|
+
* Note: this is not needed for components that use `calcite-popover`.
|
2278
|
+
*
|
2279
|
+
* @param component - A floating-ui component.
|
2280
|
+
* @param options - Reposition parameters.
|
2281
|
+
* @param options.referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2282
|
+
* @param options.floatingEl - The `floatingElement` containing the floating ui.
|
2283
|
+
* @param options.overlayPositioning - type of positioning to use for the overlaid content.
|
2284
|
+
* @param options.placement - Determines where the component will be positioned relative to the `referenceElement`.
|
2285
|
+
* @param options.flipDisabled - Prevents flipping the component's placement when overlapping its `referenceElement`.
|
2286
|
+
* @param options.flipPlacements - Defines the available placements that can be used when a flip occurs.
|
2287
|
+
* @param options.offsetDistance - Offsets the position of the popover away from the `referenceElement`.
|
2288
|
+
* @param options.offsetSkidding - Offsets the position of the component along the `referenceElement`.
|
2289
|
+
* @param options.arrowEl - A customizable arrow element.
|
2290
|
+
* @param options.type - The type of floating UI.
|
2291
|
+
* @param delayed - Reposition the component after a delay.
|
2292
|
+
* @returns {Promise<void>}
|
2293
|
+
*/
|
2294
|
+
async function reposition(component, options, delayed = false) {
|
2295
|
+
if (!component.open || !options.floatingEl || !options.referenceEl) {
|
2296
|
+
return;
|
2297
|
+
}
|
2298
|
+
const trackedState = autoUpdatingComponentMap.get(component);
|
2299
|
+
if (!trackedState) {
|
2300
|
+
return runAutoUpdate(component, options.referenceEl, options.floatingEl);
|
2301
|
+
}
|
2302
|
+
const positionFunction = delayed ? getDebouncedReposition(component) : positionFloatingUI;
|
2303
|
+
await positionFunction(component, options);
|
2304
|
+
}
|
2305
|
+
function getDebouncedReposition(component) {
|
2306
|
+
let debounced = componentToDebouncedRepositionMap.get(component);
|
2307
|
+
if (debounced) {
|
2308
|
+
return debounced;
|
2309
|
+
}
|
2310
|
+
debounced = debounce.debounce(positionFloatingUI, resources.DEBOUNCE.reposition, {
|
2311
|
+
leading: true,
|
2312
|
+
maxWait: resources.DEBOUNCE.reposition,
|
2313
|
+
});
|
2314
|
+
componentToDebouncedRepositionMap.set(component, debounced);
|
2315
|
+
return debounced;
|
2316
|
+
}
|
2317
|
+
const ARROW_CSS_TRANSFORM = {
|
2318
|
+
top: "",
|
2319
|
+
left: "rotate(-90deg)",
|
2320
|
+
bottom: "rotate(180deg)",
|
2321
|
+
right: "rotate(90deg)",
|
2322
|
+
};
|
2323
|
+
/**
|
2324
|
+
* Exported for testing purposes only
|
2325
|
+
*
|
2326
|
+
* @internal
|
2327
|
+
*/
|
2328
|
+
const autoUpdatingComponentMap = new WeakMap();
|
2329
|
+
const componentToDebouncedRepositionMap = new WeakMap();
|
2330
|
+
async function runAutoUpdate(component, referenceEl, floatingEl) {
|
2331
|
+
if (!floatingEl.isConnected) {
|
2332
|
+
return;
|
2333
|
+
}
|
2334
|
+
const effectiveAutoUpdate = browser.isBrowser()
|
2335
|
+
? autoUpdate
|
2336
|
+
: (_refEl, _floatingEl, updateCallback) => {
|
2337
|
+
updateCallback();
|
2338
|
+
return () => {
|
2339
|
+
/* noop */
|
2340
|
+
};
|
2341
|
+
};
|
2342
|
+
// we set initial state here to make it available for `reposition` calls
|
2343
|
+
autoUpdatingComponentMap.set(component, { state: "pending" });
|
2344
|
+
let repositionPromise;
|
2345
|
+
const cleanUp = effectiveAutoUpdate(referenceEl, floatingEl,
|
2346
|
+
// callback is invoked immediately
|
2347
|
+
() => {
|
2348
|
+
const promise = component.reposition();
|
2349
|
+
if (!repositionPromise) {
|
2350
|
+
repositionPromise = promise;
|
2351
|
+
}
|
2352
|
+
});
|
2353
|
+
autoUpdatingComponentMap.set(component, { state: "active", cleanUp });
|
2354
|
+
return repositionPromise;
|
2355
|
+
}
|
2356
|
+
/**
|
2357
|
+
* Helper to set up floating element interactions on connectedCallback.
|
2358
|
+
*
|
2359
|
+
* @param component - A floating-ui component.
|
2360
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2361
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
2362
|
+
*/
|
2363
|
+
async function connectFloatingUI(component, referenceEl, floatingEl) {
|
2364
|
+
if (!floatingEl || !referenceEl) {
|
2365
|
+
return;
|
2366
|
+
}
|
2367
|
+
disconnectFloatingUI(component, referenceEl, floatingEl);
|
2368
|
+
Object.assign(floatingEl.style, {
|
2369
|
+
visibility: "hidden",
|
2370
|
+
pointerEvents: "none",
|
2371
|
+
// initial positioning based on https://floating-ui.com/docs/computePosition#initial-layout
|
2372
|
+
position: component.overlayPositioning,
|
2373
|
+
});
|
2374
|
+
if (!component.open) {
|
2375
|
+
return;
|
2376
|
+
}
|
2377
|
+
return runAutoUpdate(component, referenceEl, floatingEl);
|
2378
|
+
}
|
2379
|
+
/**
|
2380
|
+
* Helper to tear down floating element interactions on disconnectedCallback.
|
2381
|
+
*
|
2382
|
+
* @param component - A floating-ui component.
|
2383
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2384
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
2385
|
+
*/
|
2386
|
+
function disconnectFloatingUI(component, referenceEl, floatingEl) {
|
2387
|
+
if (!floatingEl || !referenceEl) {
|
2388
|
+
return;
|
2389
|
+
}
|
2390
|
+
const trackedState = autoUpdatingComponentMap.get(component);
|
2391
|
+
if (trackedState?.state === "active") {
|
2392
|
+
trackedState.cleanUp();
|
2393
|
+
}
|
2394
|
+
autoUpdatingComponentMap.delete(component);
|
2395
|
+
componentToDebouncedRepositionMap.get(component)?.cancel();
|
2396
|
+
componentToDebouncedRepositionMap.delete(component);
|
2397
|
+
}
|
2398
|
+
const visiblePointerSize = 4;
|
2399
|
+
/**
|
2400
|
+
* Default offset the position of the floating element away from the reference element.
|
2401
|
+
*
|
2402
|
+
* @default 6
|
2403
|
+
*/
|
2404
|
+
const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
|
2405
|
+
|
2406
|
+
exports.FloatingCSS = FloatingCSS;
|
2407
|
+
exports.connectFloatingUI = connectFloatingUI;
|
2408
|
+
exports.defaultEndMenuPlacement = defaultEndMenuPlacement;
|
2409
|
+
exports.defaultMenuPlacement = defaultMenuPlacement;
|
2410
|
+
exports.defaultOffsetDistance = defaultOffsetDistance;
|
2411
|
+
exports.disconnectFloatingUI = disconnectFloatingUI;
|
2412
|
+
exports.filterValidFlipPlacements = filterValidFlipPlacements;
|
2413
|
+
exports.reposition = reposition;
|