@esri/solutions-components 0.2.3 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/solution-config-modal/resources.json +22 -0
- package/dist/assets/t9n/solution-config-modal/resources_en.json +22 -0
- package/dist/cjs/ExpandToggle-73df0d51.js +2 -0
- package/dist/cjs/ExpandToggle-73df0d51.js.map +1 -0
- package/dist/cjs/Heading-6b7b374c.js +2 -0
- package/dist/cjs/Heading-6b7b374c.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-6aafa5de.js +2 -0
- package/dist/cjs/_commonjsHelpers-6aafa5de.js.map +1 -0
- package/dist/cjs/app-globals-2f48e57e.js +2 -0
- package/dist/cjs/app-globals-2f48e57e.js.map +1 -0
- package/dist/cjs/array-ace6d4b5.js +2 -0
- package/dist/cjs/array-ace6d4b5.js.map +1 -0
- package/dist/cjs/buffer-tools_6.cjs.entry.js +2 -0
- package/dist/cjs/buffer-tools_6.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-accordion.cjs.entry.js +2 -0
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-bar_6.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-bar_6.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +20 -401
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action_2.cjs.entry.js +425 -71
- package/dist/cjs/calcite-action_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-alert.cjs.entry.js +2 -0
- package/dist/cjs/calcite-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js +2 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js +2 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-block.cjs.entry.js +2 -0
- package/dist/cjs/calcite-block.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-card.cjs.entry.js +2 -0
- package/dist/cjs/calcite-card.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-checkbox.cjs.entry.js +2 -0
- package/dist/cjs/calcite-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-chip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-date-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -0
- package/dist/cjs/calcite-fab.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-filter.cjs.entry.js +2 -0
- package/dist/cjs/calcite-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-flow-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-flow-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -0
- package/dist/cjs/calcite-flow.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-graph.cjs.entry.js +2 -0
- package/dist/cjs/calcite-graph.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -0
- package/dist/cjs/calcite-handle.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -0
- package/dist/cjs/calcite-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -0
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-text.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-text.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-label.cjs.entry.js +2 -0
- package/dist/cjs/calcite-label.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-link.cjs.entry.js +2 -0
- package/dist/cjs/calcite-link.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-list_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-list_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-loader.cjs.entry.js +97 -0
- package/dist/cjs/calcite-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-configuration.cjs.entry.js → calcite-modal_2.cjs.entry.js} +452 -6
- package/dist/cjs/calcite-modal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-option-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-option_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-option_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/{calcite-shell-panel_14.cjs.entry.js → calcite-panel_12.cjs.entry.js} +469 -711
- package/dist/cjs/calcite-panel_12.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-radio-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-rating.cjs.entry.js +2 -0
- package/dist/cjs/calcite-rating.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +2 -0
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +2 -0
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-stepper.cjs.entry.js +2 -0
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-switch.cjs.entry.js +2 -0
- package/dist/cjs/calcite-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile-select.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-time-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tooltip-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tooltip-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tooltip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tree_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tree_3.cjs.entry.js.map +1 -0
- package/dist/cjs/check-list.cjs.entry.js +2 -0
- package/dist/cjs/check-list.cjs.entry.js.map +1 -0
- package/dist/cjs/conditionalSlot-2defe83d.js +2 -0
- package/dist/cjs/conditionalSlot-2defe83d.js.map +1 -0
- package/dist/cjs/config-buffer-tools.cjs.entry.js +2 -0
- package/dist/cjs/config-buffer-tools.cjs.entry.js.map +1 -0
- package/dist/cjs/config-draw-tools.cjs.entry.js +2 -0
- package/dist/cjs/config-draw-tools.cjs.entry.js.map +1 -0
- package/dist/cjs/config-layer-picker.cjs.entry.js +2 -0
- package/dist/cjs/config-layer-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/config-pdf-download.cjs.entry.js +2 -0
- package/dist/cjs/config-pdf-download.cjs.entry.js.map +1 -0
- package/dist/cjs/date-e21b2052.js +2 -0
- package/dist/cjs/date-e21b2052.js.map +1 -0
- package/dist/cjs/debounce-69c3bada.js +2 -0
- package/dist/cjs/debounce-69c3bada.js.map +1 -0
- package/dist/cjs/dom-4a580af6.js +2 -0
- package/dist/cjs/dom-4a580af6.js.map +1 -0
- package/dist/cjs/filter-325f654f.js +2 -0
- package/dist/cjs/filter-325f654f.js.map +1 -0
- package/dist/cjs/floating-ui-ca1bcead.js +2 -0
- package/dist/cjs/floating-ui-ca1bcead.js.map +1 -0
- package/dist/cjs/form-45849654.js +2 -0
- package/dist/cjs/form-45849654.js.map +1 -0
- package/dist/cjs/guid-84ac4d91.js +2 -0
- package/dist/cjs/guid-84ac4d91.js.map +1 -0
- package/dist/cjs/index-7af21b6f.js +2 -0
- package/dist/cjs/index-7af21b6f.js.map +1 -0
- package/dist/cjs/index-a86078a0.js +2 -0
- package/dist/cjs/index-a86078a0.js.map +1 -0
- package/dist/cjs/index-d7f9770d.js +2 -0
- package/dist/cjs/index-d7f9770d.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/interactive-0a68ab99.js +2 -0
- package/dist/cjs/interactive-0a68ab99.js.map +1 -0
- package/dist/cjs/interfaces-ab603e16.js +2 -0
- package/dist/cjs/interfaces-ab603e16.js.map +1 -0
- package/dist/cjs/interfaces-e76f31e9.js +2 -0
- package/dist/cjs/interfaces-e76f31e9.js.map +1 -0
- package/dist/cjs/key-55aca5c0.js +2 -0
- package/dist/cjs/key-55aca5c0.js.map +1 -0
- package/dist/cjs/label-24fcd8a5.js +2 -0
- package/dist/cjs/label-24fcd8a5.js.map +1 -0
- package/dist/cjs/labelFormats-3236d2e0.js +2 -0
- package/dist/cjs/labelFormats-3236d2e0.js.map +1 -0
- package/dist/cjs/loadModules-38269f99.js +2 -0
- package/dist/cjs/loadModules-38269f99.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -1
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/locale-73cab8e8.js +2 -0
- package/dist/cjs/locale-73cab8e8.js.map +1 -0
- package/dist/cjs/locale-746a095d.js +2 -0
- package/dist/cjs/locale-746a095d.js.map +1 -0
- package/dist/cjs/map-search.cjs.entry.js +2 -0
- package/dist/cjs/map-search.cjs.entry.js.map +1 -0
- package/dist/cjs/mapViewUtils-67cfc412.js +2 -0
- package/dist/cjs/mapViewUtils-67cfc412.js.map +1 -0
- package/dist/cjs/math-460fffaf.js +2 -0
- package/dist/cjs/math-460fffaf.js.map +1 -0
- package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js +2 -0
- package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js.map +1 -0
- package/dist/cjs/observers-5311faf8.js +2 -0
- package/dist/cjs/observers-5311faf8.js.map +1 -0
- package/dist/cjs/openCloseComponent-bf986132.js +2 -0
- package/dist/cjs/openCloseComponent-bf986132.js.map +1 -0
- package/dist/cjs/public-notification.cjs.entry.js +2 -0
- package/dist/cjs/public-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/publicNotificationStore-6a3d40b3.js +2 -0
- package/dist/cjs/publicNotificationStore-6a3d40b3.js.map +1 -0
- package/dist/cjs/publicNotificationUtils-9d585d8d.js +2 -0
- package/dist/cjs/publicNotificationUtils-9d585d8d.js.map +1 -0
- package/dist/cjs/resources-1f785471.js +2 -0
- package/dist/cjs/resources-1f785471.js.map +1 -0
- package/dist/cjs/resources-2260d186.js +2 -0
- package/dist/cjs/resources-2260d186.js.map +1 -0
- package/dist/cjs/resources-2a9862c7.js +2 -0
- package/dist/cjs/resources-2a9862c7.js.map +1 -0
- package/dist/cjs/resources-308edbd8.js +2 -0
- package/dist/cjs/resources-308edbd8.js.map +1 -0
- package/dist/cjs/resources-6152b073.js +2 -0
- package/dist/cjs/resources-6152b073.js.map +1 -0
- package/dist/cjs/resources-808cfca8.js +2 -0
- package/dist/cjs/resources-808cfca8.js.map +1 -0
- package/dist/cjs/resources-9c55e05c.js +2 -0
- package/dist/cjs/resources-9c55e05c.js.map +1 -0
- package/dist/cjs/resources-aa19bf8c.js +2 -0
- package/dist/cjs/resources-aa19bf8c.js.map +1 -0
- package/dist/cjs/resources-b56bce71.js +2 -0
- package/dist/cjs/resources-b56bce71.js.map +1 -0
- package/dist/cjs/resources-cc7f63b0.js +2 -0
- package/dist/cjs/resources-cc7f63b0.js.map +1 -0
- package/dist/cjs/shared-list-render-4c7d84bf.js +2 -0
- package/dist/cjs/shared-list-render-4c7d84bf.js.map +1 -0
- package/dist/cjs/solution-config-modal.cjs.entry.js +131 -0
- package/dist/cjs/solution-config-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-contents_3.cjs.entry.js → solution-contents_7.cjs.entry.js} +665 -2
- package/dist/cjs/solution-contents_7.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-store-e2fc11ac.js → solution-store-09b3fc53.js} +5 -3
- package/dist/cjs/solution-store-09b3fc53.js.map +1 -0
- package/dist/cjs/solutions-components.cjs.js +3 -1
- package/dist/cjs/solutions-components.cjs.js.map +1 -0
- package/dist/cjs/sortable.esm-bf47019d.js +2 -0
- package/dist/cjs/sortable.esm-bf47019d.js.map +1 -0
- package/dist/cjs/store-manager.cjs.entry.js +2 -0
- package/dist/cjs/store-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/time-3f5577cb.js +2 -0
- package/dist/cjs/time-3f5577cb.js.map +1 -0
- package/dist/cjs/utils-120bbbeb.js +2 -0
- package/dist/cjs/utils-120bbbeb.js.map +1 -0
- package/dist/cjs/utils-b4236001.js +2 -0
- package/dist/cjs/utils-b4236001.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -0
- package/dist/collection/components/buffer-tools/buffer-tools.js.map +1 -0
- package/dist/collection/components/check-list/check-list.js +1 -0
- package/dist/collection/components/check-list/check-list.js.map +1 -0
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +1 -0
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js.map +1 -0
- package/dist/collection/components/config-draw-tools/config-draw-tools.js +1 -0
- package/dist/collection/components/config-draw-tools/config-draw-tools.js.map +1 -0
- package/dist/collection/components/config-layer-picker/config-layer-picker.js +1 -0
- package/dist/collection/components/config-layer-picker/config-layer-picker.js.map +1 -0
- package/dist/collection/components/config-pdf-download/config-pdf-download.js +1 -0
- package/dist/collection/components/config-pdf-download/config-pdf-download.js.map +1 -0
- package/dist/collection/components/json-editor/json-editor.js +1 -0
- package/dist/collection/components/json-editor/json-editor.js.map +1 -0
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -0
- package/dist/collection/components/map-draw-tools/map-draw-tools.js.map +1 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js.map +1 -0
- package/dist/collection/components/map-search/map-search.js +1 -0
- package/dist/collection/components/map-search/map-search.js.map +1 -0
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -0
- package/dist/collection/components/map-select-tools/map-select-tools.js.map +1 -0
- package/dist/collection/components/pdf-download/pdf-download.js +1 -0
- package/dist/collection/components/pdf-download/pdf-download.js.map +1 -0
- package/dist/collection/components/public-notification/public-notification.js +1 -0
- package/dist/collection/components/public-notification/public-notification.js.map +1 -0
- package/dist/collection/components/refine-selection/refine-selection.js +1 -0
- package/dist/collection/components/refine-selection/refine-selection.js.map +1 -0
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +1 -0
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js.map +1 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.css +91 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.js +245 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +24 -11
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -0
- package/dist/collection/components/solution-contents/solution-contents.js +1 -0
- package/dist/collection/components/solution-contents/solution-contents.js.map +1 -0
- package/dist/collection/components/solution-item/solution-item.js +1 -0
- package/dist/collection/components/solution-item/solution-item.js.map +1 -0
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -0
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -0
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -0
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +1 -0
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -0
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +1 -0
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -0
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +1 -0
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -0
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +1 -0
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -0
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +1 -0
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +1 -0
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +1 -0
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -0
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +1 -0
- package/dist/collection/components/solution-variables/solution-variables.js +1 -0
- package/dist/collection/components/solution-variables/solution-variables.js.map +1 -0
- package/dist/collection/components/store-manager/store-manager.js +1 -0
- package/dist/collection/components/store-manager/store-manager.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/common.js +1 -0
- package/dist/collection/utils/common.js.map +1 -0
- package/dist/collection/utils/csvUtils.js +1 -0
- package/dist/collection/utils/csvUtils.js.map +1 -0
- package/dist/collection/utils/interfaces.js +1 -0
- package/dist/collection/utils/interfaces.js.map +1 -0
- package/dist/collection/utils/languageUtil.js +1 -0
- package/dist/collection/utils/languageUtil.js.map +1 -0
- package/dist/collection/utils/loadModules.js +1 -0
- package/dist/collection/utils/loadModules.js.map +1 -0
- package/dist/collection/utils/locale.js +1 -0
- package/dist/collection/utils/locale.js.map +1 -0
- package/dist/collection/utils/mapViewUtils.js +1 -0
- package/dist/collection/utils/mapViewUtils.js.map +1 -0
- package/dist/collection/utils/publicNotificationStore.js +1 -0
- package/dist/collection/utils/publicNotificationStore.js.map +1 -0
- package/dist/collection/utils/publicNotificationUtils.js +1 -0
- package/dist/collection/utils/publicNotificationUtils.js.map +1 -0
- package/dist/collection/utils/queryUtils.js +1 -0
- package/dist/collection/utils/queryUtils.js.map +1 -0
- package/dist/collection/utils/solution-store.js +4 -3
- package/dist/collection/utils/solution-store.js.map +1 -0
- package/dist/collection/utils/solution-store.ts +3 -3
- package/dist/collection/utils/templates.js +1 -0
- package/dist/collection/utils/templates.js.map +1 -0
- package/dist/collection/utils/test/testUtils.js +1 -0
- package/dist/collection/utils/test/testUtils.js.map +1 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/collection/utils/types.js.map +1 -0
- package/dist/esm/ExpandToggle-b7d1fb3c.js +2 -0
- package/dist/esm/ExpandToggle-b7d1fb3c.js.map +1 -0
- package/dist/esm/Heading-1efb4837.js +2 -0
- package/dist/esm/Heading-1efb4837.js.map +1 -0
- package/dist/esm/_commonjsHelpers-8fd39c50.js +2 -0
- package/dist/esm/_commonjsHelpers-8fd39c50.js.map +1 -0
- package/dist/esm/app-globals-09b9efee.js +2 -0
- package/dist/esm/app-globals-09b9efee.js.map +1 -0
- package/dist/esm/array-2ab3b18f.js +2 -0
- package/dist/esm/array-2ab3b18f.js.map +1 -0
- package/dist/esm/buffer-tools_6.entry.js +4 -2
- package/dist/esm/buffer-tools_6.entry.js.map +1 -0
- package/dist/esm/calcite-accordion-item.entry.js +2 -0
- package/dist/esm/calcite-accordion-item.entry.js.map +1 -0
- package/dist/esm/calcite-accordion.entry.js +2 -0
- package/dist/esm/calcite-accordion.entry.js.map +1 -0
- package/dist/esm/calcite-action-bar_6.entry.js +4 -2
- package/dist/esm/calcite-action-bar_6.entry.js.map +1 -0
- package/dist/esm/calcite-action-group.entry.js +2 -0
- package/dist/esm/calcite-action-group.entry.js.map +1 -0
- package/dist/esm/calcite-action-menu_2.entry.js +22 -403
- package/dist/esm/calcite-action-menu_2.entry.js.map +1 -0
- package/dist/esm/calcite-action-pad.entry.js +2 -0
- package/dist/esm/calcite-action-pad.entry.js.map +1 -0
- package/dist/esm/calcite-action_2.entry.js +426 -72
- package/dist/esm/calcite-action_2.entry.js.map +1 -0
- package/dist/esm/calcite-alert.entry.js +2 -0
- package/dist/esm/calcite-alert.entry.js.map +1 -0
- package/dist/esm/calcite-avatar.entry.js +2 -0
- package/dist/esm/calcite-avatar.entry.js.map +1 -0
- package/dist/esm/calcite-block-section.entry.js +2 -0
- package/dist/esm/calcite-block-section.entry.js.map +1 -0
- package/dist/esm/calcite-block.entry.js +2 -0
- package/dist/esm/calcite-block.entry.js.map +1 -0
- package/dist/esm/calcite-button.entry.js +2 -0
- package/dist/esm/calcite-button.entry.js.map +1 -0
- package/dist/esm/calcite-card.entry.js +2 -0
- package/dist/esm/calcite-card.entry.js.map +1 -0
- package/dist/esm/calcite-checkbox.entry.js +2 -0
- package/dist/esm/calcite-checkbox.entry.js.map +1 -0
- package/dist/esm/calcite-chip.entry.js +2 -0
- package/dist/esm/calcite-chip.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker-hex-input.entry.js +2 -0
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -0
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker.entry.js +2 -0
- package/dist/esm/calcite-color-picker.entry.js.map +1 -0
- package/dist/esm/calcite-combobox-item-group.entry.js +2 -0
- package/dist/esm/calcite-combobox-item-group.entry.js.map +1 -0
- package/dist/esm/calcite-combobox_3.entry.js +4 -2
- package/dist/esm/calcite-combobox_3.entry.js.map +1 -0
- package/dist/esm/calcite-date-picker-day_3.entry.js +2 -0
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +1 -0
- package/dist/esm/calcite-date-picker.entry.js +2 -0
- package/dist/esm/calcite-date-picker.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown-group.entry.js +2 -0
- package/dist/esm/calcite-dropdown-group.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown-item.entry.js +2 -0
- package/dist/esm/calcite-dropdown-item.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown.entry.js +2 -0
- package/dist/esm/calcite-dropdown.entry.js.map +1 -0
- package/dist/esm/calcite-fab.entry.js +2 -0
- package/dist/esm/calcite-fab.entry.js.map +1 -0
- package/dist/esm/calcite-filter.entry.js +2 -0
- package/dist/esm/calcite-filter.entry.js.map +1 -0
- package/dist/esm/calcite-flow-item.entry.js +2 -0
- package/dist/esm/calcite-flow-item.entry.js.map +1 -0
- package/dist/esm/calcite-flow.entry.js +2 -0
- package/dist/esm/calcite-flow.entry.js.map +1 -0
- package/dist/esm/calcite-graph.entry.js +2 -0
- package/dist/esm/calcite-graph.entry.js.map +1 -0
- package/dist/esm/calcite-handle.entry.js +2 -0
- package/dist/esm/calcite-handle.entry.js.map +1 -0
- package/dist/esm/calcite-icon.entry.js +2 -0
- package/dist/esm/calcite-icon.entry.js.map +1 -0
- package/dist/esm/calcite-inline-editable.entry.js +2 -0
- package/dist/esm/calcite-inline-editable.entry.js.map +1 -0
- package/dist/esm/calcite-input-date-picker.entry.js +2 -0
- package/dist/esm/calcite-input-date-picker.entry.js.map +1 -0
- package/dist/esm/calcite-input-number.entry.js +2 -0
- package/dist/esm/calcite-input-number.entry.js.map +1 -0
- package/dist/esm/calcite-input-text.entry.js +2 -0
- package/dist/esm/calcite-input-text.entry.js.map +1 -0
- package/dist/esm/calcite-input-time-picker.entry.js +2 -0
- package/dist/esm/calcite-input-time-picker.entry.js.map +1 -0
- package/dist/esm/calcite-input_2.entry.js +2 -0
- package/dist/esm/calcite-input_2.entry.js.map +1 -0
- package/dist/esm/calcite-label.entry.js +2 -0
- package/dist/esm/calcite-label.entry.js.map +1 -0
- package/dist/esm/calcite-link.entry.js +2 -0
- package/dist/esm/calcite-link.entry.js.map +1 -0
- package/dist/esm/calcite-list-item-group.entry.js +2 -0
- package/dist/esm/calcite-list-item-group.entry.js.map +1 -0
- package/dist/esm/calcite-list_2.entry.js +2 -0
- package/dist/esm/calcite-list_2.entry.js.map +1 -0
- package/dist/esm/calcite-loader.entry.js +93 -0
- package/dist/esm/calcite-loader.entry.js.map +1 -0
- package/dist/esm/{solution-configuration.entry.js → calcite-modal_2.entry.js} +454 -9
- package/dist/esm/calcite-modal_2.entry.js.map +1 -0
- package/dist/esm/calcite-option-group.entry.js +2 -0
- package/dist/esm/calcite-option-group.entry.js.map +1 -0
- package/dist/esm/calcite-option_2.entry.js +2 -0
- package/dist/esm/calcite-option_2.entry.js.map +1 -0
- package/dist/esm/calcite-pagination.entry.js +2 -0
- package/dist/esm/calcite-pagination.entry.js.map +1 -0
- package/dist/esm/{calcite-shell-panel_14.entry.js → calcite-panel_12.entry.js} +468 -708
- package/dist/esm/calcite-panel_12.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list-group.entry.js +2 -0
- package/dist/esm/calcite-pick-list-group.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list-item.entry.js +2 -0
- package/dist/esm/calcite-pick-list-item.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list.entry.js +2 -0
- package/dist/esm/calcite-pick-list.entry.js.map +1 -0
- package/dist/esm/calcite-popover-manager.entry.js +2 -0
- package/dist/esm/calcite-popover-manager.entry.js.map +1 -0
- package/dist/esm/calcite-radio-button-group.entry.js +2 -0
- package/dist/esm/calcite-radio-button-group.entry.js.map +1 -0
- package/dist/esm/calcite-radio-button.entry.js +2 -0
- package/dist/esm/calcite-radio-button.entry.js.map +1 -0
- package/dist/esm/calcite-rating.entry.js +2 -0
- package/dist/esm/calcite-rating.entry.js.map +1 -0
- package/dist/esm/calcite-shell-center-row.entry.js +2 -0
- package/dist/esm/calcite-shell-center-row.entry.js.map +1 -0
- package/dist/esm/calcite-sortable-list.entry.js +2 -0
- package/dist/esm/calcite-sortable-list.entry.js.map +1 -0
- package/dist/esm/calcite-split-button.entry.js +2 -0
- package/dist/esm/calcite-split-button.entry.js.map +1 -0
- package/dist/esm/calcite-stepper-item.entry.js +2 -0
- package/dist/esm/calcite-stepper-item.entry.js.map +1 -0
- package/dist/esm/calcite-stepper.entry.js +2 -0
- package/dist/esm/calcite-stepper.entry.js.map +1 -0
- package/dist/esm/calcite-switch.entry.js +2 -0
- package/dist/esm/calcite-switch.entry.js.map +1 -0
- package/dist/esm/calcite-tile-select-group.entry.js +2 -0
- package/dist/esm/calcite-tile-select-group.entry.js.map +1 -0
- package/dist/esm/calcite-tile-select.entry.js +2 -0
- package/dist/esm/calcite-tile-select.entry.js.map +1 -0
- package/dist/esm/calcite-tile.entry.js +2 -0
- package/dist/esm/calcite-tile.entry.js.map +1 -0
- package/dist/esm/calcite-time-picker.entry.js +2 -0
- package/dist/esm/calcite-time-picker.entry.js.map +1 -0
- package/dist/esm/calcite-tip-group.entry.js +2 -0
- package/dist/esm/calcite-tip-group.entry.js.map +1 -0
- package/dist/esm/calcite-tip-manager.entry.js +2 -0
- package/dist/esm/calcite-tip-manager.entry.js.map +1 -0
- package/dist/esm/calcite-tip.entry.js +2 -0
- package/dist/esm/calcite-tip.entry.js.map +1 -0
- package/dist/esm/calcite-tooltip-manager.entry.js +2 -0
- package/dist/esm/calcite-tooltip-manager.entry.js.map +1 -0
- package/dist/esm/calcite-tooltip.entry.js +2 -0
- package/dist/esm/calcite-tooltip.entry.js.map +1 -0
- package/dist/esm/calcite-tree_3.entry.js +2 -0
- package/dist/esm/calcite-tree_3.entry.js.map +1 -0
- package/dist/esm/check-list.entry.js +2 -0
- package/dist/esm/check-list.entry.js.map +1 -0
- package/dist/esm/conditionalSlot-bb4cab11.js +2 -0
- package/dist/esm/conditionalSlot-bb4cab11.js.map +1 -0
- package/dist/esm/config-buffer-tools.entry.js +2 -0
- package/dist/esm/config-buffer-tools.entry.js.map +1 -0
- package/dist/esm/config-draw-tools.entry.js +2 -0
- package/dist/esm/config-draw-tools.entry.js.map +1 -0
- package/dist/esm/config-layer-picker.entry.js +4 -2
- package/dist/esm/config-layer-picker.entry.js.map +1 -0
- package/dist/esm/config-pdf-download.entry.js +2 -0
- package/dist/esm/config-pdf-download.entry.js.map +1 -0
- package/dist/esm/date-45de0016.js +2 -0
- package/dist/esm/date-45de0016.js.map +1 -0
- package/dist/esm/debounce-4c884e5c.js +2 -0
- package/dist/esm/debounce-4c884e5c.js.map +1 -0
- package/dist/esm/dom-e593bf85.js +2 -0
- package/dist/esm/dom-e593bf85.js.map +1 -0
- package/dist/esm/filter-82935f2d.js +2 -0
- package/dist/esm/filter-82935f2d.js.map +1 -0
- package/dist/esm/floating-ui-69a55a27.js +2 -0
- package/dist/esm/floating-ui-69a55a27.js.map +1 -0
- package/dist/esm/form-dbfde8ce.js +2 -0
- package/dist/esm/form-dbfde8ce.js.map +1 -0
- package/dist/esm/guid-15fce7c0.js +2 -0
- package/dist/esm/guid-15fce7c0.js.map +1 -0
- package/dist/esm/index-15022d11.js +2 -0
- package/dist/esm/index-15022d11.js.map +1 -0
- package/dist/esm/index-9c882a6e.js +2 -0
- package/dist/esm/index-9c882a6e.js.map +1 -0
- package/dist/esm/index-d33ebc35.js +2 -0
- package/dist/esm/index-d33ebc35.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interactive-822ffed6.js +2 -0
- package/dist/esm/interactive-822ffed6.js.map +1 -0
- package/dist/esm/interfaces-1bdfc3a8.js +72 -0
- package/dist/esm/interfaces-1bdfc3a8.js.map +1 -0
- package/dist/esm/interfaces-4ae145eb.js +2 -0
- package/dist/esm/interfaces-4ae145eb.js.map +1 -0
- package/dist/esm/key-acb660e7.js +2 -0
- package/dist/esm/key-acb660e7.js.map +1 -0
- package/dist/esm/label-d411de44.js +2 -0
- package/dist/esm/label-d411de44.js.map +1 -0
- package/dist/esm/labelFormats-b37958c3.js +2 -0
- package/dist/esm/labelFormats-b37958c3.js.map +1 -0
- package/dist/esm/loadModules-d3b50f95.js +2 -0
- package/dist/esm/loadModules-d3b50f95.js.map +1 -0
- package/dist/esm/loader.js +3 -1
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/locale-0b490b02.js +2 -0
- package/dist/esm/locale-0b490b02.js.map +1 -0
- package/dist/esm/locale-0e10d7e5.js +2 -0
- package/dist/esm/locale-0e10d7e5.js.map +1 -0
- package/dist/esm/map-search.entry.js +2 -0
- package/dist/esm/map-search.entry.js.map +1 -0
- package/dist/esm/mapViewUtils-809947c8.js +284 -0
- package/dist/esm/mapViewUtils-809947c8.js.map +1 -0
- package/dist/esm/math-552c5420.js +2 -0
- package/dist/esm/math-552c5420.js.map +1 -0
- package/dist/esm/nonChromiumPlatformUtils-ee349005.js +2 -0
- package/dist/esm/nonChromiumPlatformUtils-ee349005.js.map +1 -0
- package/dist/esm/observers-31601001.js +2 -0
- package/dist/esm/observers-31601001.js.map +1 -0
- package/dist/esm/openCloseComponent-5caff873.js +2 -0
- package/dist/esm/openCloseComponent-5caff873.js.map +1 -0
- package/dist/esm/public-notification.entry.js +4 -2
- package/dist/esm/public-notification.entry.js.map +1 -0
- package/dist/esm/publicNotificationStore-060c59c8.js +2 -0
- package/dist/esm/publicNotificationStore-060c59c8.js.map +1 -0
- package/dist/esm/publicNotificationUtils-5cb5a607.js +2 -0
- package/dist/esm/publicNotificationUtils-5cb5a607.js.map +1 -0
- package/dist/esm/resources-2235e4ff.js +2 -0
- package/dist/esm/resources-2235e4ff.js.map +1 -0
- package/dist/esm/resources-3d641588.js +2 -0
- package/dist/esm/resources-3d641588.js.map +1 -0
- package/dist/esm/resources-436ae282.js +2 -0
- package/dist/esm/resources-436ae282.js.map +1 -0
- package/dist/esm/resources-4d02cb48.js +2 -0
- package/dist/esm/resources-4d02cb48.js.map +1 -0
- package/dist/esm/resources-78132e50.js +2 -0
- package/dist/esm/resources-78132e50.js.map +1 -0
- package/dist/esm/resources-7d4a587f.js +2 -0
- package/dist/esm/resources-7d4a587f.js.map +1 -0
- package/dist/esm/resources-971845d1.js +2 -0
- package/dist/esm/resources-971845d1.js.map +1 -0
- package/dist/esm/resources-9eb63965.js +2 -0
- package/dist/esm/resources-9eb63965.js.map +1 -0
- package/dist/esm/resources-d60362c3.js +2 -0
- package/dist/esm/resources-d60362c3.js.map +1 -0
- package/dist/esm/resources-e3a5cf27.js +2 -0
- package/dist/esm/resources-e3a5cf27.js.map +1 -0
- package/dist/esm/shared-list-render-4e9d47a3.js +2 -0
- package/dist/esm/shared-list-render-4e9d47a3.js.map +1 -0
- package/dist/esm/solution-config-modal.entry.js +127 -0
- package/dist/esm/solution-config-modal.entry.js.map +1 -0
- package/dist/esm/{solution-contents_3.entry.js → solution-contents_7.entry.js} +662 -3
- package/dist/esm/solution-contents_7.entry.js.map +1 -0
- package/dist/esm/{solution-store-b3c65467.js → solution-store-d8519c64.js} +6 -4
- package/dist/esm/solution-store-d8519c64.js.map +1 -0
- package/dist/esm/solutions-components.js +3 -1
- package/dist/esm/solutions-components.js.map +1 -0
- package/dist/esm/sortable.esm-3b2eaa5c.js +2 -0
- package/dist/esm/sortable.esm-3b2eaa5c.js.map +1 -0
- package/dist/esm/store-manager.entry.js +2 -0
- package/dist/esm/store-manager.entry.js.map +1 -0
- package/dist/esm/time-f014778c.js +2 -0
- package/dist/esm/time-f014778c.js.map +1 -0
- package/dist/esm/utils-3f4ee4c3.js +2 -0
- package/dist/esm/utils-3f4ee4c3.js.map +1 -0
- package/dist/esm/utils-583554bc.js +2 -0
- package/dist/esm/utils-583554bc.js.map +1 -0
- package/dist/solutions-components/index.esm.js +2 -0
- package/dist/solutions-components/index.esm.js.map +1 -0
- package/dist/solutions-components/p-06dab43c.entry.js +140 -0
- package/dist/solutions-components/p-06dab43c.entry.js.map +1 -0
- package/dist/solutions-components/p-0bbe4865.entry.js +620 -0
- package/dist/solutions-components/p-0bbe4865.entry.js.map +1 -0
- package/dist/solutions-components/p-0fddf8a4.entry.js +349 -0
- package/dist/solutions-components/p-0fddf8a4.entry.js.map +1 -0
- package/dist/solutions-components/p-11068040.entry.js +1121 -0
- package/dist/solutions-components/p-11068040.entry.js.map +1 -0
- package/dist/solutions-components/p-11bc6805.entry.js +87 -0
- package/dist/solutions-components/p-11bc6805.entry.js.map +1 -0
- package/dist/solutions-components/p-13b37f05.js +308 -3
- package/dist/solutions-components/p-13b37f05.js.map +1 -0
- package/dist/solutions-components/p-1dfb5fae.entry.js +713 -0
- package/dist/solutions-components/p-1dfb5fae.entry.js.map +1 -0
- package/dist/solutions-components/p-1e15b1a3.js +183 -2
- package/dist/solutions-components/p-1e15b1a3.js.map +1 -0
- package/dist/solutions-components/p-1e5bc9c3.entry.js +96 -0
- package/dist/solutions-components/p-1e5bc9c3.entry.js.map +1 -0
- package/dist/solutions-components/p-1ed05745.entry.js +214 -0
- package/dist/solutions-components/p-1ed05745.entry.js.map +1 -0
- package/dist/solutions-components/p-20bdf42f.js +407 -14
- package/dist/solutions-components/p-20bdf42f.js.map +1 -0
- package/dist/solutions-components/p-22574d83.entry.js +74 -0
- package/dist/solutions-components/p-22574d83.entry.js.map +1 -0
- package/dist/solutions-components/p-23904a3d.js +401 -3
- package/dist/solutions-components/p-23904a3d.js.map +1 -0
- package/dist/solutions-components/p-26484399.entry.js +108 -0
- package/dist/solutions-components/p-26484399.entry.js.map +1 -0
- package/dist/solutions-components/p-2910dd9e.js +4094 -0
- package/dist/solutions-components/p-2910dd9e.js.map +1 -0
- package/dist/solutions-components/p-29bdbd3e.entry.js +280 -0
- package/dist/solutions-components/p-29bdbd3e.entry.js.map +1 -0
- package/dist/solutions-components/p-2ac06389.js +25 -16
- package/dist/solutions-components/p-2ac06389.js.map +1 -0
- package/dist/solutions-components/p-2bce7fa2.entry.js +45 -0
- package/dist/solutions-components/p-2bce7fa2.entry.js.map +1 -0
- package/dist/solutions-components/p-2e9ed892.js +48 -1
- package/dist/solutions-components/p-2e9ed892.js.map +1 -0
- package/dist/solutions-components/p-2f12ff1b.entry.js +202 -0
- package/dist/solutions-components/p-2f12ff1b.entry.js.map +1 -0
- package/dist/solutions-components/p-30810b45.entry.js +1250 -0
- package/dist/solutions-components/p-30810b45.entry.js.map +1 -0
- package/dist/solutions-components/p-32a67cb2.js +207 -2
- package/dist/solutions-components/p-32a67cb2.js.map +1 -0
- package/dist/solutions-components/p-341ff921.entry.js +449 -0
- package/dist/solutions-components/p-341ff921.entry.js.map +1 -0
- package/dist/solutions-components/p-36ce64e4.entry.js +215 -0
- package/dist/solutions-components/p-36ce64e4.entry.js.map +1 -0
- package/dist/solutions-components/p-374a5031.js +107 -2
- package/dist/solutions-components/p-374a5031.js.map +1 -0
- package/dist/solutions-components/p-38ddadf2.entry.js +342 -0
- package/dist/solutions-components/p-38ddadf2.entry.js.map +1 -0
- package/dist/solutions-components/p-3b010ce1.js +19 -1
- package/dist/solutions-components/p-3b010ce1.js.map +1 -0
- package/dist/solutions-components/p-3f6b0af4.js +221 -2
- package/dist/solutions-components/p-3f6b0af4.js.map +1 -0
- package/dist/solutions-components/p-400e1427.entry.js +236 -0
- package/dist/solutions-components/p-400e1427.entry.js.map +1 -0
- package/dist/solutions-components/p-40d7cf01.entry.js +228 -0
- package/dist/solutions-components/p-40d7cf01.entry.js.map +1 -0
- package/dist/solutions-components/p-45556aff.entry.js +215 -0
- package/dist/solutions-components/p-45556aff.entry.js.map +1 -0
- package/dist/solutions-components/p-49aaa793.entry.js +95 -0
- package/dist/solutions-components/p-49aaa793.entry.js.map +1 -0
- package/dist/solutions-components/p-4e32bf8c.js +484 -1
- package/dist/solutions-components/p-4e32bf8c.js.map +1 -0
- package/dist/solutions-components/p-4e89b243.entry.js +479 -0
- package/dist/solutions-components/p-4e89b243.entry.js.map +1 -0
- package/dist/solutions-components/p-515637fb.entry.js +183 -0
- package/dist/solutions-components/p-515637fb.entry.js.map +1 -0
- package/dist/solutions-components/p-5243a654.entry.js +147 -0
- package/dist/solutions-components/p-5243a654.entry.js.map +1 -0
- package/dist/solutions-components/p-55673790.entry.js +82 -0
- package/dist/solutions-components/p-55673790.entry.js.map +1 -0
- package/dist/solutions-components/p-56350bff.js +173 -2
- package/dist/solutions-components/p-56350bff.js.map +1 -0
- package/dist/solutions-components/p-58b374c0.entry.js +347 -0
- package/dist/solutions-components/p-58b374c0.entry.js.map +1 -0
- package/dist/solutions-components/p-58c69df2.js +2024 -2
- package/dist/solutions-components/p-58c69df2.js.map +1 -0
- package/dist/solutions-components/p-59fd6684.entry.js +22 -0
- package/dist/solutions-components/p-59fd6684.entry.js.map +1 -0
- package/dist/solutions-components/p-5b0d7c7d.js +35 -16
- package/dist/solutions-components/p-5b0d7c7d.js.map +1 -0
- package/dist/solutions-components/p-5b20090f.entry.js +22189 -0
- package/dist/solutions-components/p-5b20090f.entry.js.map +1 -0
- package/dist/solutions-components/p-5cf33602.js +43 -2
- package/dist/solutions-components/p-5cf33602.js.map +1 -0
- package/dist/solutions-components/p-600e23c6.js +1770 -2
- package/dist/solutions-components/p-600e23c6.js.map +1 -0
- package/dist/solutions-components/p-61398a7b.entry.js +74 -0
- package/dist/solutions-components/p-61398a7b.entry.js.map +1 -0
- package/dist/solutions-components/p-63a05701.entry.js +45 -0
- package/dist/solutions-components/p-63a05701.entry.js.map +1 -0
- package/dist/solutions-components/p-63f6e8f1.js +16 -1
- package/dist/solutions-components/p-63f6e8f1.js.map +1 -0
- package/dist/solutions-components/p-64a2040e.entry.js +63 -0
- package/dist/solutions-components/p-64a2040e.entry.js.map +1 -0
- package/dist/solutions-components/p-64c63eb2.entry.js +157 -0
- package/dist/solutions-components/p-64c63eb2.entry.js.map +1 -0
- package/dist/solutions-components/p-6940e2fd.entry.js +100 -0
- package/dist/solutions-components/p-6940e2fd.entry.js.map +1 -0
- package/dist/solutions-components/p-69900b68.entry.js +152 -0
- package/dist/solutions-components/p-69900b68.entry.js.map +1 -0
- package/dist/solutions-components/p-699125b6.entry.js +44 -0
- package/dist/solutions-components/p-699125b6.entry.js.map +1 -0
- package/dist/solutions-components/p-6d0899c8.entry.js +118 -0
- package/dist/solutions-components/p-6d0899c8.entry.js.map +1 -0
- package/dist/solutions-components/p-6e0da576.js +15 -1
- package/dist/solutions-components/p-6e0da576.js.map +1 -0
- package/dist/solutions-components/p-6fe17794.js +11 -1
- package/dist/solutions-components/p-6fe17794.js.map +1 -0
- package/dist/solutions-components/p-708a63a8.js +14 -1
- package/dist/solutions-components/p-708a63a8.js.map +1 -0
- package/dist/solutions-components/p-729708a3.js +16 -1
- package/dist/solutions-components/p-729708a3.js.map +1 -0
- package/dist/solutions-components/p-73e23995.js +8 -1
- package/dist/solutions-components/p-73e23995.js.map +1 -0
- package/dist/solutions-components/p-75f54a34.entry.js +883 -0
- package/dist/solutions-components/p-75f54a34.entry.js.map +1 -0
- package/dist/solutions-components/p-77182c3a.js +3017 -1
- package/dist/solutions-components/p-77182c3a.js.map +1 -0
- package/dist/solutions-components/p-794ba85d.entry.js +175 -0
- package/dist/solutions-components/p-794ba85d.entry.js.map +1 -0
- package/dist/solutions-components/p-79cde78e.entry.js +203 -0
- package/dist/solutions-components/p-79cde78e.entry.js.map +1 -0
- package/dist/solutions-components/p-7a2c75a4.entry.js +230 -0
- package/dist/solutions-components/p-7a2c75a4.entry.js.map +1 -0
- package/dist/solutions-components/p-7daea1df.js +43 -1
- package/dist/solutions-components/p-7daea1df.js.map +1 -0
- package/dist/solutions-components/p-7de77097.entry.js +162 -0
- package/dist/solutions-components/p-7de77097.entry.js.map +1 -0
- package/dist/solutions-components/p-7f2b74a9.entry.js +56 -0
- package/dist/solutions-components/p-7f2b74a9.entry.js.map +1 -0
- package/dist/solutions-components/p-81e606c0.entry.js +915 -0
- package/dist/solutions-components/p-81e606c0.entry.js.map +1 -0
- package/dist/solutions-components/p-86908777.js +62 -3
- package/dist/solutions-components/p-86908777.js.map +1 -0
- package/dist/solutions-components/p-87a0ccb4.entry.js +254 -0
- package/dist/solutions-components/p-87a0ccb4.entry.js.map +1 -0
- package/dist/solutions-components/p-93d3119d.js +1950 -1
- package/dist/solutions-components/p-93d3119d.js.map +1 -0
- package/dist/solutions-components/p-958e2979.entry.js +111 -0
- package/dist/solutions-components/p-958e2979.entry.js.map +1 -0
- package/dist/solutions-components/p-95ddb529.entry.js +181 -0
- package/dist/solutions-components/p-95ddb529.entry.js.map +1 -0
- package/dist/solutions-components/p-991ee695.js +111 -1
- package/dist/solutions-components/p-991ee695.js.map +1 -0
- package/dist/solutions-components/p-99d9b624.entry.js +177 -0
- package/dist/solutions-components/p-99d9b624.entry.js.map +1 -0
- package/dist/solutions-components/p-9a9955db.js +43 -1
- package/dist/solutions-components/p-9a9955db.js.map +1 -0
- package/dist/solutions-components/p-9d925d5b.entry.js +233 -0
- package/dist/solutions-components/p-9d925d5b.entry.js.map +1 -0
- package/dist/solutions-components/p-9dc0210f.entry.js +125 -0
- package/dist/solutions-components/p-9dc0210f.entry.js.map +1 -0
- package/dist/solutions-components/p-9ef1328a.entry.js +542 -0
- package/dist/solutions-components/p-9ef1328a.entry.js.map +1 -0
- package/dist/solutions-components/p-9fec2884.entry.js +216 -0
- package/dist/solutions-components/p-9fec2884.entry.js.map +1 -0
- package/dist/solutions-components/p-a1786d11.entry.js +2380 -0
- package/dist/solutions-components/p-a1786d11.entry.js.map +1 -0
- package/dist/solutions-components/p-a2ada355.entry.js +135 -0
- package/dist/solutions-components/p-a2ada355.entry.js.map +1 -0
- package/dist/solutions-components/p-a57adb27.entry.js +154 -0
- package/dist/solutions-components/p-a57adb27.entry.js.map +1 -0
- package/dist/solutions-components/p-a80b3880.js +16 -1
- package/dist/solutions-components/p-a80b3880.js.map +1 -0
- package/dist/solutions-components/p-a88dd457.entry.js +123 -0
- package/dist/solutions-components/p-a88dd457.entry.js.map +1 -0
- package/dist/solutions-components/p-ac6efd19.entry.js +57 -0
- package/dist/solutions-components/p-ac6efd19.entry.js.map +1 -0
- package/dist/solutions-components/p-ae1fd76b.js +13 -1
- package/dist/solutions-components/p-ae1fd76b.js.map +1 -0
- package/dist/solutions-components/p-afffa81a.entry.js +140 -0
- package/dist/solutions-components/p-afffa81a.entry.js.map +1 -0
- package/dist/solutions-components/p-b0f3ed4d.entry.js +376 -0
- package/dist/solutions-components/p-b0f3ed4d.entry.js.map +1 -0
- package/dist/solutions-components/p-b359dc78.js +43 -1
- package/dist/solutions-components/p-b359dc78.js.map +1 -0
- package/dist/solutions-components/p-b66cba3e.entry.js +97 -0
- package/dist/solutions-components/p-b66cba3e.entry.js.map +1 -0
- package/dist/solutions-components/p-b6c2f470.entry.js +574 -0
- package/dist/solutions-components/p-b6c2f470.entry.js.map +1 -0
- package/dist/solutions-components/p-b978636e.js +16 -1
- package/dist/solutions-components/p-b978636e.js.map +1 -0
- package/dist/solutions-components/p-bd19837e.entry.js +96 -0
- package/dist/solutions-components/p-bd19837e.entry.js.map +1 -0
- package/dist/solutions-components/p-be8cc144.entry.js +567 -0
- package/dist/solutions-components/p-be8cc144.entry.js.map +1 -0
- package/dist/solutions-components/p-bfd20deb.entry.js +80 -0
- package/dist/solutions-components/p-bfd20deb.entry.js.map +1 -0
- package/dist/{esm/mapViewUtils-09f1e7bd.js → solutions-components/p-c20bd963.js} +3 -1
- package/dist/solutions-components/p-c20bd963.js.map +1 -0
- package/dist/solutions-components/p-c2c8442d.entry.js +140 -0
- package/dist/solutions-components/p-c2c8442d.entry.js.map +1 -0
- package/dist/solutions-components/p-c3f93cec.entry.js +158 -0
- package/dist/solutions-components/p-c3f93cec.entry.js.map +1 -0
- package/dist/solutions-components/p-c5721b0f.entry.js +127 -0
- package/dist/solutions-components/p-c5721b0f.entry.js.map +1 -0
- package/dist/solutions-components/p-c818e661.entry.js +107 -0
- package/dist/solutions-components/p-c818e661.entry.js.map +1 -0
- package/dist/solutions-components/p-c9870dc4.entry.js +38 -0
- package/dist/solutions-components/p-c9870dc4.entry.js.map +1 -0
- package/dist/solutions-components/p-cbd9fecf.js +500 -2
- package/dist/solutions-components/p-cbd9fecf.js.map +1 -0
- package/dist/solutions-components/p-cf59eb16.entry.js +2423 -0
- package/dist/solutions-components/p-cf59eb16.entry.js.map +1 -0
- package/dist/solutions-components/p-cfb300c6.entry.js +250 -0
- package/dist/solutions-components/p-cfb300c6.entry.js.map +1 -0
- package/dist/solutions-components/p-d48a24e6.js +756 -2
- package/dist/solutions-components/p-d48a24e6.js.map +1 -0
- package/dist/solutions-components/p-dbad98e8.js +124 -2
- package/dist/solutions-components/p-dbad98e8.js.map +1 -0
- package/dist/solutions-components/p-dd79118e.entry.js +708 -0
- package/dist/solutions-components/p-dd79118e.entry.js.map +1 -0
- package/dist/solutions-components/p-de5416e8.js +30 -1
- package/dist/solutions-components/p-de5416e8.js.map +1 -0
- package/dist/solutions-components/p-de881187.entry.js +87 -0
- package/dist/solutions-components/p-de881187.entry.js.map +1 -0
- package/dist/solutions-components/p-e1905f7b.entry.js +120 -0
- package/dist/solutions-components/p-e1905f7b.entry.js.map +1 -0
- package/dist/solutions-components/p-e405ebe8.entry.js +93 -0
- package/dist/solutions-components/p-e405ebe8.entry.js.map +1 -0
- package/dist/solutions-components/p-e515767a.entry.js +116 -0
- package/dist/solutions-components/p-e515767a.entry.js.map +1 -0
- package/dist/solutions-components/p-e611d8c8.js +30 -1
- package/dist/solutions-components/p-e611d8c8.js.map +1 -0
- package/dist/solutions-components/p-e6a695a5.js +103 -2
- package/dist/solutions-components/p-e6a695a5.js.map +1 -0
- package/dist/solutions-components/p-e6fb9cde.entry.js +1872 -0
- package/dist/solutions-components/p-e6fb9cde.entry.js.map +1 -0
- package/dist/solutions-components/p-e947d3b0.js +7 -1
- package/dist/solutions-components/p-e947d3b0.js.map +1 -0
- package/dist/solutions-components/p-e99b1247.js +207 -1
- package/dist/solutions-components/p-e99b1247.js.map +1 -0
- package/dist/solutions-components/p-eb5b78c3.entry.js +125 -0
- package/dist/solutions-components/p-eb5b78c3.entry.js.map +1 -0
- package/dist/solutions-components/p-eb976965.js +35 -3
- package/dist/solutions-components/p-eb976965.js.map +1 -0
- package/dist/solutions-components/p-ed075c2f.entry.js +186 -0
- package/dist/solutions-components/p-ed075c2f.entry.js.map +1 -0
- package/dist/solutions-components/p-eeb0321d.js +15 -2
- package/dist/solutions-components/p-eeb0321d.js.map +1 -0
- package/dist/solutions-components/p-ef6f9e24.entry.js +609 -0
- package/dist/solutions-components/p-ef6f9e24.entry.js.map +1 -0
- package/dist/solutions-components/p-f0294899.entry.js +84 -0
- package/dist/solutions-components/p-f0294899.entry.js.map +1 -0
- package/dist/{esm/interfaces-e2a2064d.js → solutions-components/p-f04fdb9a.js} +3 -1
- package/dist/solutions-components/p-f04fdb9a.js.map +1 -0
- package/dist/solutions-components/p-f477f146.entry.js +310 -0
- package/dist/solutions-components/p-f477f146.entry.js.map +1 -0
- package/dist/solutions-components/p-f48821a2.js +60 -7
- package/dist/solutions-components/p-f48821a2.js.map +1 -0
- package/dist/solutions-components/p-f496ed0c.entry.js +150 -0
- package/dist/solutions-components/p-f496ed0c.entry.js.map +1 -0
- package/dist/solutions-components/p-f759a6e7.js +196 -1
- package/dist/solutions-components/p-f759a6e7.js.map +1 -0
- package/dist/solutions-components/p-fc884dd6.js +30 -16
- package/dist/solutions-components/p-fc884dd6.js.map +1 -0
- package/dist/solutions-components/solutions-components.css +10531 -1
- package/dist/solutions-components/solutions-components.esm.js +22 -1
- package/dist/solutions-components/solutions-components.esm.js.map +1 -0
- package/dist/solutions-components/utils/solution-store.ts +3 -3
- package/dist/solutions-components_commit.txt +8 -6
- package/dist/types/components/solution-config-modal/solution-config-modal.d.ts +69 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +4 -2
- package/dist/types/components.d.ts +43 -5
- package/dist/types/preact.d.ts +4 -0
- package/package.json +2 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -447
- package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -437
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -62
- package/dist/esm/calcite-modal.entry.js +0 -443
- package/dist/esm/calcite-panel_2.entry.js +0 -432
- package/dist/esm/calcite-scrim.entry.js +0 -58
- package/dist/solutions-components/p-006c6ae1.entry.js +0 -11
- package/dist/solutions-components/p-04a37fc0.entry.js +0 -6
- package/dist/solutions-components/p-062dbde8.entry.js +0 -6
- package/dist/solutions-components/p-0b941521.entry.js +0 -11
- package/dist/solutions-components/p-0c80eb51.entry.js +0 -11
- package/dist/solutions-components/p-10501e21.entry.js +0 -23
- package/dist/solutions-components/p-109e4684.entry.js +0 -6
- package/dist/solutions-components/p-12dfd43e.entry.js +0 -11
- package/dist/solutions-components/p-1c3bcd99.entry.js +0 -12
- package/dist/solutions-components/p-1c589630.entry.js +0 -6
- package/dist/solutions-components/p-1fb471cf.entry.js +0 -11
- package/dist/solutions-components/p-23275dbd.entry.js +0 -6
- package/dist/solutions-components/p-236d76e7.entry.js +0 -11
- package/dist/solutions-components/p-29246858.entry.js +0 -11
- package/dist/solutions-components/p-2af67c67.entry.js +0 -6
- package/dist/solutions-components/p-2bee764f.entry.js +0 -11
- package/dist/solutions-components/p-2f6b4f04.entry.js +0 -6
- package/dist/solutions-components/p-305ae3fe.entry.js +0 -11
- package/dist/solutions-components/p-343e325d.entry.js +0 -11
- package/dist/solutions-components/p-3485601e.entry.js +0 -6
- package/dist/solutions-components/p-395e9b6c.entry.js +0 -6
- package/dist/solutions-components/p-39c5f2d2.entry.js +0 -6
- package/dist/solutions-components/p-3c4f2257.entry.js +0 -11
- package/dist/solutions-components/p-3c8ec7a3.entry.js +0 -12
- package/dist/solutions-components/p-4130fbcd.entry.js +0 -11
- package/dist/solutions-components/p-421cbb15.entry.js +0 -6
- package/dist/solutions-components/p-43fa414d.entry.js +0 -11
- package/dist/solutions-components/p-4760f22a.entry.js +0 -6
- package/dist/solutions-components/p-4fb6d2cf.entry.js +0 -11
- package/dist/solutions-components/p-54384555.entry.js +0 -11
- package/dist/solutions-components/p-5493f036.entry.js +0 -6
- package/dist/solutions-components/p-551fd063.entry.js +0 -11
- package/dist/solutions-components/p-5a61ef0d.entry.js +0 -6
- package/dist/solutions-components/p-6a3ce8f6.entry.js +0 -6
- package/dist/solutions-components/p-6b9dc092.js +0 -21
- package/dist/solutions-components/p-6be581f5.entry.js +0 -6
- package/dist/solutions-components/p-6cf432f9.entry.js +0 -11
- package/dist/solutions-components/p-70368b2b.entry.js +0 -6
- package/dist/solutions-components/p-708ffad0.entry.js +0 -11
- package/dist/solutions-components/p-7321ba65.entry.js +0 -11
- package/dist/solutions-components/p-75b35018.entry.js +0 -11
- package/dist/solutions-components/p-764c0a90.entry.js +0 -11
- package/dist/solutions-components/p-77031b01.entry.js +0 -11
- package/dist/solutions-components/p-778a1b4a.entry.js +0 -11
- package/dist/solutions-components/p-7cdc6089.entry.js +0 -6
- package/dist/solutions-components/p-81467529.entry.js +0 -6
- package/dist/solutions-components/p-834380d6.entry.js +0 -11
- package/dist/solutions-components/p-89cc843b.entry.js +0 -11
- package/dist/solutions-components/p-8e3a2736.entry.js +0 -11
- package/dist/solutions-components/p-8e8b182f.entry.js +0 -12
- package/dist/solutions-components/p-8f052987.entry.js +0 -11
- package/dist/solutions-components/p-93790a9e.entry.js +0 -37
- package/dist/solutions-components/p-9bbee464.entry.js +0 -6
- package/dist/solutions-components/p-9bdd4abe.entry.js +0 -17
- package/dist/solutions-components/p-a4a7d49d.entry.js +0 -17
- package/dist/solutions-components/p-a7036d68.entry.js +0 -11
- package/dist/solutions-components/p-ac91cd40.entry.js +0 -11
- package/dist/solutions-components/p-acd0a09f.entry.js +0 -11
- package/dist/solutions-components/p-acd3b2bf.entry.js +0 -11
- package/dist/solutions-components/p-aea937fb.entry.js +0 -12
- package/dist/solutions-components/p-b1b36556.entry.js +0 -11
- package/dist/solutions-components/p-b25f6ebe.js +0 -257
- package/dist/solutions-components/p-b2ae8634.entry.js +0 -6
- package/dist/solutions-components/p-ba104266.entry.js +0 -11
- package/dist/solutions-components/p-bfcab358.entry.js +0 -11
- package/dist/solutions-components/p-c848d1bd.entry.js +0 -29
- package/dist/solutions-components/p-c9766584.entry.js +0 -6
- package/dist/solutions-components/p-d2cc1b94.entry.js +0 -12
- package/dist/solutions-components/p-d51a72d2.entry.js +0 -11
- package/dist/solutions-components/p-d88fe54b.entry.js +0 -18
- package/dist/solutions-components/p-daee23cc.entry.js +0 -11
- package/dist/solutions-components/p-db7d14d5.entry.js +0 -12
- package/dist/solutions-components/p-dc724c1d.entry.js +0 -11
- package/dist/solutions-components/p-dc7bc20f.entry.js +0 -11
- package/dist/solutions-components/p-de242ea9.entry.js +0 -6
- package/dist/solutions-components/p-e4ebb82a.entry.js +0 -11
- package/dist/solutions-components/p-e64c5c11.entry.js +0 -6
- package/dist/solutions-components/p-e9e47eab.entry.js +0 -6
- package/dist/solutions-components/p-eb3be6d4.entry.js +0 -6
- package/dist/solutions-components/p-ed27c151.entry.js +0 -6
- package/dist/solutions-components/p-ef170bb1.entry.js +0 -6
- package/dist/solutions-components/p-f044863f.entry.js +0 -16
- package/dist/solutions-components/p-f0bae2f0.entry.js +0 -37
- package/dist/solutions-components/p-f5a3b34f.entry.js +0 -23
- package/dist/solutions-components/p-fa2575c2.entry.js +0 -6
- package/dist/solutions-components/p-fe0fdd8b.js +0 -36
@@ -3,9 +3,1777 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{c as t,b as n}from"./p-32a67cb2.js";import{d as e}from"./p-4e32bf8c.js";function o(t){return t.split("-")[0]}function r(t){return t.split("-")[1]}function i(t){return["top","bottom"].includes(o(t))?"x":"y"}function a(t){return"y"===t?"height":"width"}function l(t,n,e){let{reference:l,floating:s}=t;const c=l.x+l.width/2-s.width/2,u=l.y+l.height/2-s.height/2,f=i(n),d=a(f),m=l[d]/2-s[d]/2,p="x"===f;let y;switch(o(n)){case"top":y={x:c,y:l.y-s.height};break;case"bottom":y={x:c,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:u};break;case"left":y={x:l.x-s.width,y:u};break;default:y={x:l.x,y:l.y}}switch(r(n)){case"start":y[f]-=m*(e&&p?-1:1);break;case"end":y[f]+=m*(e&&p?-1:1)}return y}function s(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function c(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function u(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:u}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=n,g=s(y),x=l[p?"floating"===m?"reference":"floating":m],v=c(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(x)))||e?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:d,strategy:u})),w=c(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===m?{...a.floating,x:o,y:r}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),strategy:u}):a[m]);return{top:v.top-w.top+g.top,bottom:w.bottom-v.bottom+g.bottom,left:v.left-w.left+g.left,right:w.right-v.right+g.right}}const f=Math.min,d=Math.max;function m(t,n,e){return d(t,f(n,e))}const p={left:"right",right:"left",bottom:"top",top:"bottom"};function y(t){return t.replace(/left|right|bottom|top/g,(t=>p[t]))}function g(t,n,e){void 0===e&&(e=!1);const o=r(t),l=i(t),s=a(l);let c="x"===l?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=y(c)),{main:c,cross:y(c)}}const x={start:"end",end:"start"};function v(t){return t.replace(/start|end/g,(t=>x[t]))}const w=["top","right","bottom","left"],h=w.reduce(((t,n)=>t.concat(n,n+"-start",n+"-end")),[]),b=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=n,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",flipAlignment:x=!0,...w}=t,h=o(r),b=[l,...m||(h!==l&&x?function(t){const n=y(t);return[v(t),n,v(n)]}(l):[y(l)])],A=await u(n,w),P=[];let R=(null==(e=i.flip)?void 0:e.overflows)||[];if(f&&P.push(A[h]),d){const{main:t,cross:n}=g(r,a,await(null==s.isRTL?void 0:s.isRTL(c.floating)));P.push(A[t],A[n])}if(R=[...R,{placement:r,overflows:P}],!P.every((t=>t<=0))){var k,D;const t=(null!=(k=null==(D=i.flip)?void 0:D.index)?k:0)+1,n=b[t];if(n)return{data:{index:t,overflows:R},reset:{placement:n}};let e="bottom";switch(p){case"bestFit":{var E;const t=null==(E=R.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:E[0].placement;t&&(e=t);break}case"initialPlacement":e=l}if(r!==e)return{reset:{placement:e}}}return{}}}};function A(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function P(t){return w.some((n=>t[n]>=0))}const R=function(t){let{strategy:n="referenceHidden",...e}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:o}=t;switch(n){case"referenceHidden":{const n=A(await u(t,{...e,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:P(n)}}}case"escaped":{const n=A(await u(t,{...e,altBoundary:!0}),o.floating);return{data:{escapedOffsets:n,escaped:P(n)}}}default:return{}}}}};function k(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function D(t){if(null==t)return window;if(!k(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function E(t){return D(t).getComputedStyle(t)}function F(t){return k(t)?"":t?(t.nodeName||"").toLowerCase():""}function M(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function O(t){return t instanceof D(t).HTMLElement}function $(t){return t instanceof D(t).Element}function T(t){return"undefined"!=typeof ShadowRoot&&(t instanceof D(t).ShadowRoot||t instanceof ShadowRoot)}function S(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=E(t);return/auto|scroll|overlay|hidden/.test(n+o+e)&&!["inline","contents"].includes(r)}function j(t){return["table","td","th"].includes(F(t))}function C(t){const n=/firefox/i.test(M()),e=E(t);return"none"!==e.transform||"none"!==e.perspective||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some((t=>e.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const n=e.contain;return null!=n&&n.includes(t)}))}function z(){return!/^((?!chrome|android).)*safari/i.test(M())}function B(t){return["html","body","#document"].includes(F(t))}const L=Math.min,H=Math.max,I=Math.round;function W(t,n,e){var o,r,i,a;void 0===n&&(n=!1),void 0===e&&(e=!1);const l=t.getBoundingClientRect();let s=1,c=1;n&&O(t)&&(s=t.offsetWidth>0&&I(l.width)/t.offsetWidth||1,c=t.offsetHeight>0&&I(l.height)/t.offsetHeight||1);const u=$(t)?D(t):window,f=!z()&&e,d=(l.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/s,m=(l.top+(f&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,p=l.width/s,y=l.height/c;return{width:p,height:y,top:m,right:d+p,bottom:m+y,left:d,x:d,y:m}}function q(t){return(n=t,(n instanceof D(n).Node?t.ownerDocument:t.document)||window.document).documentElement;var n}function N(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(t){return W(q(t)).left+N(t).scrollLeft}function V(t,n,e){const o=O(n),r=q(n),i=W(t,o&&function(t){const n=W(t);return I(n.width)!==t.offsetWidth||I(n.height)!==t.offsetHeight}(n),"fixed"===e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==e)if(("body"!==F(n)||S(r))&&(a=N(n)),O(n)){const t=W(n,!0);l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}else r&&(l.x=U(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function X(t){return"html"===F(t)?t:t.assignedSlot||t.parentNode||(T(t)?t.host:null)||q(t)}function Y(t){return O(t)&&"fixed"!==E(t).position?t.offsetParent:null}function G(t){const n=D(t);let e=Y(t);for(;e&&j(e)&&"static"===E(e).position;)e=Y(e);return e&&("html"===F(e)||"body"===F(e)&&"static"===E(e).position&&!C(e))?n:e||function(t){let n=X(t);for(T(n)&&(n=n.host);O(n)&&!B(n);){if(C(n))return n;{const t=n.parentNode;n=T(t)?t.host:t}}return null}(t)||n}function J(t){if(O(t))return{width:t.offsetWidth,height:t.offsetHeight};const n=W(t);return{width:n.width,height:n.height}}function K(t){const n=X(t);return B(n)?t.ownerDocument.body:O(n)&&S(n)?n:K(n)}function Q(t,n){var e;void 0===n&&(n=[]);const o=K(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=D(o),a=r?[i].concat(i.visualViewport||[],S(o)?o:[]):o,l=n.concat(a);return r?l:l.concat(Q(a))}function Z(t,n,e){return"viewport"===n?c(function(t,n){const e=D(t),o=q(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=z();(t||!t&&"fixed"===n)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,e)):$(n)?function(t,n){const e=W(t,!1,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft;return{top:o,left:r,x:r,y:o,right:r+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,e):c(function(t){var n;const e=q(t),o=N(t),r=null==(n=t.ownerDocument)?void 0:n.body,i=H(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=H(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let l=-o.scrollLeft+U(t);const s=-o.scrollTop;return"rtl"===E(r||e).direction&&(l+=H(e.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(q(t)))}function _(t){const n=Q(t),e=function(t,n){let e=t;for(;e&&!B(e)&&!n.includes(e)&&(!$(e)||!["absolute","fixed"].includes(E(e).position));){const t=X(e);e=T(t)?t.host:t}return e}(t,n);let o=null;if(e&&O(e)){const t=G(e);S(e)?o=e:O(t)&&(o=t)}return $(o)?n.filter((t=>o&&$(t)&&function(t,n){const e=null==n.getRootNode?void 0:n.getRootNode();if(t.contains(n))return!0;if(e&&T(e)){let e=n;do{if(e&&t===e)return!0;e=e.parentNode||e.host}while(e)}return!1}(t,o)&&"body"!==F(t))):[]}const tt={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?_(n):[].concat(e),o],a=i.reduce(((t,e)=>{const o=Z(n,e,r);return t.top=H(o.top,t.top),t.right=L(o.right,t.right),t.bottom=L(o.bottom,t.bottom),t.left=H(o.left,t.left),t}),Z(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=O(e),i=q(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==F(e)||S(i))&&(a=N(e)),O(e))){const t=W(e,!0);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{...n,x:n.x-a.scrollLeft+l.x,y:n.y-a.scrollTop+l.y}},isElement:$,getDimensions:J,getOffsetParent:G,getDocumentElement:q,getElementRects:t=>{let{reference:n,floating:e,strategy:o}=t;return{reference:V(n,G(e),o),floating:{...J(e),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===E(t).direction};const nt={floatingUINonChromiumPositioningFix:!0,...globalThis.calciteComponentsConfig},et=async function(){if(nt.floatingUINonChromiumPositioningFix&&/firefox|safari/i.test(function(){const t=navigator.userAgentData;return(null==t?void 0:t.brands)?t.brands.map((t=>`${t.brand}/${t.version}`)).join(" "):navigator.userAgent}())){const{getClippingRect:t,getElementRects:n,getOffsetParent:e}=await import("./p-cbd9fecf.js");tt.getClippingRect=t,tt.getOffsetParent=e,tt.getElementRects=n}}(),ot=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],rt="bottom-start",it={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};
|
6
|
+
import { c as closestElementCrossShadowBoundary, b as getElementDir } from './p-32a67cb2.js';
|
7
|
+
import { d as debounce } from './p-4e32bf8c.js';
|
8
|
+
|
9
|
+
function getSide(placement) {
|
10
|
+
return placement.split('-')[0];
|
11
|
+
}
|
12
|
+
|
13
|
+
function getAlignment(placement) {
|
14
|
+
return placement.split('-')[1];
|
15
|
+
}
|
16
|
+
|
17
|
+
function getMainAxisFromPlacement(placement) {
|
18
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
|
19
|
+
}
|
20
|
+
|
21
|
+
function getLengthFromAxis(axis) {
|
22
|
+
return axis === 'y' ? 'height' : 'width';
|
23
|
+
}
|
24
|
+
|
25
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
26
|
+
let {
|
27
|
+
reference,
|
28
|
+
floating
|
29
|
+
} = _ref;
|
30
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
31
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
32
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
33
|
+
const length = getLengthFromAxis(mainAxis);
|
34
|
+
const commonAlign = reference[length] / 2 - floating[length] / 2;
|
35
|
+
const side = getSide(placement);
|
36
|
+
const isVertical = mainAxis === 'x';
|
37
|
+
let coords;
|
38
|
+
|
39
|
+
switch (side) {
|
40
|
+
case 'top':
|
41
|
+
coords = {
|
42
|
+
x: commonX,
|
43
|
+
y: reference.y - floating.height
|
44
|
+
};
|
45
|
+
break;
|
46
|
+
|
47
|
+
case 'bottom':
|
48
|
+
coords = {
|
49
|
+
x: commonX,
|
50
|
+
y: reference.y + reference.height
|
51
|
+
};
|
52
|
+
break;
|
53
|
+
|
54
|
+
case 'right':
|
55
|
+
coords = {
|
56
|
+
x: reference.x + reference.width,
|
57
|
+
y: commonY
|
58
|
+
};
|
59
|
+
break;
|
60
|
+
|
61
|
+
case 'left':
|
62
|
+
coords = {
|
63
|
+
x: reference.x - floating.width,
|
64
|
+
y: commonY
|
65
|
+
};
|
66
|
+
break;
|
67
|
+
|
68
|
+
default:
|
69
|
+
coords = {
|
70
|
+
x: reference.x,
|
71
|
+
y: reference.y
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
switch (getAlignment(placement)) {
|
76
|
+
case 'start':
|
77
|
+
coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
78
|
+
break;
|
79
|
+
|
80
|
+
case 'end':
|
81
|
+
coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
82
|
+
break;
|
83
|
+
}
|
84
|
+
|
85
|
+
return coords;
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
90
|
+
* next to a reference element when it is given a certain positioning strategy.
|
91
|
+
*
|
92
|
+
* This export does not have any `platform` interface logic. You will need to
|
93
|
+
* write one for the platform you are using Floating UI with.
|
94
|
+
*/
|
95
|
+
|
96
|
+
const computePosition$1 = async (reference, floating, config) => {
|
97
|
+
const {
|
98
|
+
placement = 'bottom',
|
99
|
+
strategy = 'absolute',
|
100
|
+
middleware = [],
|
101
|
+
platform
|
102
|
+
} = config;
|
103
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
104
|
+
|
105
|
+
let rects = await platform.getElementRects({
|
106
|
+
reference,
|
107
|
+
floating,
|
108
|
+
strategy
|
109
|
+
});
|
110
|
+
let {
|
111
|
+
x,
|
112
|
+
y
|
113
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
114
|
+
let statefulPlacement = placement;
|
115
|
+
let middlewareData = {};
|
116
|
+
let resetCount = 0;
|
117
|
+
|
118
|
+
for (let i = 0; i < middleware.length; i++) {
|
119
|
+
const {
|
120
|
+
name,
|
121
|
+
fn
|
122
|
+
} = middleware[i];
|
123
|
+
const {
|
124
|
+
x: nextX,
|
125
|
+
y: nextY,
|
126
|
+
data,
|
127
|
+
reset
|
128
|
+
} = await fn({
|
129
|
+
x,
|
130
|
+
y,
|
131
|
+
initialPlacement: placement,
|
132
|
+
placement: statefulPlacement,
|
133
|
+
strategy,
|
134
|
+
middlewareData,
|
135
|
+
rects,
|
136
|
+
platform,
|
137
|
+
elements: {
|
138
|
+
reference,
|
139
|
+
floating
|
140
|
+
}
|
141
|
+
});
|
142
|
+
x = nextX != null ? nextX : x;
|
143
|
+
y = nextY != null ? nextY : y;
|
144
|
+
middlewareData = { ...middlewareData,
|
145
|
+
[name]: { ...middlewareData[name],
|
146
|
+
...data
|
147
|
+
}
|
148
|
+
};
|
149
|
+
|
150
|
+
if (reset && resetCount <= 50) {
|
151
|
+
resetCount++;
|
152
|
+
|
153
|
+
if (typeof reset === 'object') {
|
154
|
+
if (reset.placement) {
|
155
|
+
statefulPlacement = reset.placement;
|
156
|
+
}
|
157
|
+
|
158
|
+
if (reset.rects) {
|
159
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
160
|
+
reference,
|
161
|
+
floating,
|
162
|
+
strategy
|
163
|
+
}) : reset.rects;
|
164
|
+
}
|
165
|
+
|
166
|
+
({
|
167
|
+
x,
|
168
|
+
y
|
169
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
170
|
+
}
|
171
|
+
|
172
|
+
i = -1;
|
173
|
+
continue;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
return {
|
178
|
+
x,
|
179
|
+
y,
|
180
|
+
placement: statefulPlacement,
|
181
|
+
strategy,
|
182
|
+
middlewareData
|
183
|
+
};
|
184
|
+
};
|
185
|
+
|
186
|
+
function expandPaddingObject(padding) {
|
187
|
+
return {
|
188
|
+
top: 0,
|
189
|
+
right: 0,
|
190
|
+
bottom: 0,
|
191
|
+
left: 0,
|
192
|
+
...padding
|
193
|
+
};
|
194
|
+
}
|
195
|
+
|
196
|
+
function getSideObjectFromPadding(padding) {
|
197
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
198
|
+
top: padding,
|
199
|
+
right: padding,
|
200
|
+
bottom: padding,
|
201
|
+
left: padding
|
202
|
+
};
|
203
|
+
}
|
204
|
+
|
205
|
+
function rectToClientRect(rect) {
|
206
|
+
return { ...rect,
|
207
|
+
top: rect.y,
|
208
|
+
left: rect.x,
|
209
|
+
right: rect.x + rect.width,
|
210
|
+
bottom: rect.y + rect.height
|
211
|
+
};
|
212
|
+
}
|
213
|
+
|
214
|
+
/**
|
215
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
216
|
+
* element is overflowing a given clipping boundary.
|
217
|
+
* - positive = overflowing the boundary by that number of pixels
|
218
|
+
* - negative = how many pixels left before it will overflow
|
219
|
+
* - 0 = lies flush with the boundary
|
220
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
221
|
+
*/
|
222
|
+
async function detectOverflow(middlewareArguments, options) {
|
223
|
+
var _await$platform$isEle;
|
224
|
+
|
225
|
+
if (options === void 0) {
|
226
|
+
options = {};
|
227
|
+
}
|
228
|
+
|
229
|
+
const {
|
230
|
+
x,
|
231
|
+
y,
|
232
|
+
platform,
|
233
|
+
rects,
|
234
|
+
elements,
|
235
|
+
strategy
|
236
|
+
} = middlewareArguments;
|
237
|
+
const {
|
238
|
+
boundary = 'clippingAncestors',
|
239
|
+
rootBoundary = 'viewport',
|
240
|
+
elementContext = 'floating',
|
241
|
+
altBoundary = false,
|
242
|
+
padding = 0
|
243
|
+
} = options;
|
244
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
245
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
246
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
247
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
248
|
+
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))),
|
249
|
+
boundary,
|
250
|
+
rootBoundary,
|
251
|
+
strategy
|
252
|
+
}));
|
253
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
254
|
+
rect: elementContext === 'floating' ? { ...rects.floating,
|
255
|
+
x,
|
256
|
+
y
|
257
|
+
} : rects.reference,
|
258
|
+
offsetParent: await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating)),
|
259
|
+
strategy
|
260
|
+
}) : rects[elementContext]);
|
261
|
+
return {
|
262
|
+
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
263
|
+
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
264
|
+
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
|
265
|
+
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
266
|
+
};
|
267
|
+
}
|
268
|
+
|
269
|
+
const min$1 = Math.min;
|
270
|
+
const max$1 = Math.max;
|
271
|
+
|
272
|
+
function within(min$1$1, value, max$1$1) {
|
273
|
+
return max$1(min$1$1, min$1(value, max$1$1));
|
274
|
+
}
|
275
|
+
|
276
|
+
/**
|
277
|
+
* Positions an inner element of the floating element such that it is centered
|
278
|
+
* to the reference element.
|
279
|
+
* @see https://floating-ui.com/docs/arrow
|
280
|
+
*/
|
281
|
+
const arrow = options => ({
|
282
|
+
name: 'arrow',
|
283
|
+
options,
|
284
|
+
|
285
|
+
async fn(middlewareArguments) {
|
286
|
+
// Since `element` is required, we don't Partial<> the type
|
287
|
+
const {
|
288
|
+
element,
|
289
|
+
padding = 0
|
290
|
+
} = options != null ? options : {};
|
291
|
+
const {
|
292
|
+
x,
|
293
|
+
y,
|
294
|
+
placement,
|
295
|
+
rects,
|
296
|
+
platform
|
297
|
+
} = middlewareArguments;
|
298
|
+
|
299
|
+
if (element == null) {
|
300
|
+
|
301
|
+
return {};
|
302
|
+
}
|
303
|
+
|
304
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
305
|
+
const coords = {
|
306
|
+
x,
|
307
|
+
y
|
308
|
+
};
|
309
|
+
const axis = getMainAxisFromPlacement(placement);
|
310
|
+
const alignment = getAlignment(placement);
|
311
|
+
const length = getLengthFromAxis(axis);
|
312
|
+
const arrowDimensions = await platform.getDimensions(element);
|
313
|
+
const minProp = axis === 'y' ? 'top' : 'left';
|
314
|
+
const maxProp = axis === 'y' ? 'bottom' : 'right';
|
315
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
316
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
317
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
318
|
+
let clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
319
|
+
|
320
|
+
if (clientSize === 0) {
|
321
|
+
clientSize = rects.floating[length];
|
322
|
+
}
|
323
|
+
|
324
|
+
const centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the floating element if the center
|
325
|
+
// point is outside the floating element's bounds
|
326
|
+
|
327
|
+
const min = paddingObject[minProp];
|
328
|
+
const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
|
329
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
330
|
+
const offset = within(min, center, max); // Make sure that arrow points at the reference
|
331
|
+
|
332
|
+
const alignmentPadding = alignment === 'start' ? paddingObject[minProp] : paddingObject[maxProp];
|
333
|
+
const shouldAddOffset = alignmentPadding > 0 && center !== offset && rects.reference[length] <= rects.floating[length];
|
334
|
+
const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
|
335
|
+
return {
|
336
|
+
[axis]: coords[axis] - alignmentOffset,
|
337
|
+
data: {
|
338
|
+
[axis]: offset,
|
339
|
+
centerOffset: center - offset
|
340
|
+
}
|
341
|
+
};
|
342
|
+
}
|
343
|
+
|
344
|
+
});
|
345
|
+
|
346
|
+
const hash$1 = {
|
347
|
+
left: 'right',
|
348
|
+
right: 'left',
|
349
|
+
bottom: 'top',
|
350
|
+
top: 'bottom'
|
351
|
+
};
|
352
|
+
function getOppositePlacement(placement) {
|
353
|
+
return placement.replace(/left|right|bottom|top/g, matched => hash$1[matched]);
|
354
|
+
}
|
355
|
+
|
356
|
+
function getAlignmentSides(placement, rects, rtl) {
|
357
|
+
if (rtl === void 0) {
|
358
|
+
rtl = false;
|
359
|
+
}
|
360
|
+
|
361
|
+
const alignment = getAlignment(placement);
|
362
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
363
|
+
const length = getLengthFromAxis(mainAxis);
|
364
|
+
let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
365
|
+
|
366
|
+
if (rects.reference[length] > rects.floating[length]) {
|
367
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
368
|
+
}
|
369
|
+
|
370
|
+
return {
|
371
|
+
main: mainAlignmentSide,
|
372
|
+
cross: getOppositePlacement(mainAlignmentSide)
|
373
|
+
};
|
374
|
+
}
|
375
|
+
|
376
|
+
const hash = {
|
377
|
+
start: 'end',
|
378
|
+
end: 'start'
|
379
|
+
};
|
380
|
+
function getOppositeAlignmentPlacement(placement) {
|
381
|
+
return placement.replace(/start|end/g, matched => hash[matched]);
|
382
|
+
}
|
383
|
+
|
384
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
385
|
+
const allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []);
|
386
|
+
|
387
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
388
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
389
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
390
|
+
if (alignment) {
|
391
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
392
|
+
}
|
393
|
+
|
394
|
+
return true;
|
395
|
+
});
|
396
|
+
}
|
397
|
+
|
398
|
+
/**
|
399
|
+
* Automatically chooses the `placement` which has the most space available.
|
400
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
401
|
+
*/
|
402
|
+
const autoPlacement = function (options) {
|
403
|
+
if (options === void 0) {
|
404
|
+
options = {};
|
405
|
+
}
|
406
|
+
|
407
|
+
return {
|
408
|
+
name: 'autoPlacement',
|
409
|
+
options,
|
410
|
+
|
411
|
+
async fn(middlewareArguments) {
|
412
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _placementsSortedByLe;
|
413
|
+
|
414
|
+
const {
|
415
|
+
x,
|
416
|
+
y,
|
417
|
+
rects,
|
418
|
+
middlewareData,
|
419
|
+
placement,
|
420
|
+
platform,
|
421
|
+
elements
|
422
|
+
} = middlewareArguments;
|
423
|
+
const {
|
424
|
+
alignment = null,
|
425
|
+
allowedPlacements = allPlacements,
|
426
|
+
autoAlignment = true,
|
427
|
+
...detectOverflowOptions
|
428
|
+
} = options;
|
429
|
+
const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);
|
430
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
431
|
+
const currentIndex = (_middlewareData$autoP = (_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.index) != null ? _middlewareData$autoP : 0;
|
432
|
+
const currentPlacement = placements[currentIndex];
|
433
|
+
|
434
|
+
if (currentPlacement == null) {
|
435
|
+
return {};
|
436
|
+
}
|
437
|
+
|
438
|
+
const {
|
439
|
+
main,
|
440
|
+
cross
|
441
|
+
} = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))); // Make `computeCoords` start from the right place
|
442
|
+
|
443
|
+
if (placement !== currentPlacement) {
|
444
|
+
return {
|
445
|
+
x,
|
446
|
+
y,
|
447
|
+
reset: {
|
448
|
+
placement: placements[0]
|
449
|
+
}
|
450
|
+
};
|
451
|
+
}
|
452
|
+
|
453
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];
|
454
|
+
const allOverflows = [...((_middlewareData$autoP3 = (_middlewareData$autoP4 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP4.overflows) != null ? _middlewareData$autoP3 : []), {
|
455
|
+
placement: currentPlacement,
|
456
|
+
overflows: currentOverflows
|
457
|
+
}];
|
458
|
+
const nextPlacement = placements[currentIndex + 1]; // There are more placements to check
|
459
|
+
|
460
|
+
if (nextPlacement) {
|
461
|
+
return {
|
462
|
+
data: {
|
463
|
+
index: currentIndex + 1,
|
464
|
+
overflows: allOverflows
|
465
|
+
},
|
466
|
+
reset: {
|
467
|
+
placement: nextPlacement
|
468
|
+
}
|
469
|
+
};
|
470
|
+
}
|
471
|
+
|
472
|
+
const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);
|
473
|
+
const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {
|
474
|
+
let {
|
475
|
+
overflows
|
476
|
+
} = _ref;
|
477
|
+
return overflows.every(overflow => overflow <= 0);
|
478
|
+
})) == null ? void 0 : _placementsSortedByLe.placement;
|
479
|
+
const resetPlacement = placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement;
|
480
|
+
|
481
|
+
if (resetPlacement !== placement) {
|
482
|
+
return {
|
483
|
+
data: {
|
484
|
+
index: currentIndex + 1,
|
485
|
+
overflows: allOverflows
|
486
|
+
},
|
487
|
+
reset: {
|
488
|
+
placement: resetPlacement
|
489
|
+
}
|
490
|
+
};
|
491
|
+
}
|
492
|
+
|
493
|
+
return {};
|
494
|
+
}
|
495
|
+
|
496
|
+
};
|
497
|
+
};
|
498
|
+
|
499
|
+
function getExpandedPlacements(placement) {
|
500
|
+
const oppositePlacement = getOppositePlacement(placement);
|
501
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
502
|
+
}
|
503
|
+
|
504
|
+
/**
|
505
|
+
* Changes the placement of the floating element to one that will fit if the
|
506
|
+
* initially specified `placement` does not.
|
507
|
+
* @see https://floating-ui.com/docs/flip
|
508
|
+
*/
|
509
|
+
const flip = function (options) {
|
510
|
+
if (options === void 0) {
|
511
|
+
options = {};
|
512
|
+
}
|
513
|
+
|
514
|
+
return {
|
515
|
+
name: 'flip',
|
516
|
+
options,
|
517
|
+
|
518
|
+
async fn(middlewareArguments) {
|
519
|
+
var _middlewareData$flip;
|
520
|
+
|
521
|
+
const {
|
522
|
+
placement,
|
523
|
+
middlewareData,
|
524
|
+
rects,
|
525
|
+
initialPlacement,
|
526
|
+
platform,
|
527
|
+
elements
|
528
|
+
} = middlewareArguments;
|
529
|
+
const {
|
530
|
+
mainAxis: checkMainAxis = true,
|
531
|
+
crossAxis: checkCrossAxis = true,
|
532
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
533
|
+
fallbackStrategy = 'bestFit',
|
534
|
+
flipAlignment = true,
|
535
|
+
...detectOverflowOptions
|
536
|
+
} = options;
|
537
|
+
const side = getSide(placement);
|
538
|
+
const isBasePlacement = side === initialPlacement;
|
539
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
540
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
541
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
542
|
+
const overflows = [];
|
543
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
544
|
+
|
545
|
+
if (checkMainAxis) {
|
546
|
+
overflows.push(overflow[side]);
|
547
|
+
}
|
548
|
+
|
549
|
+
if (checkCrossAxis) {
|
550
|
+
const {
|
551
|
+
main,
|
552
|
+
cross
|
553
|
+
} = getAlignmentSides(placement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
554
|
+
overflows.push(overflow[main], overflow[cross]);
|
555
|
+
}
|
556
|
+
|
557
|
+
overflowsData = [...overflowsData, {
|
558
|
+
placement,
|
559
|
+
overflows
|
560
|
+
}]; // One or more sides is overflowing
|
561
|
+
|
562
|
+
if (!overflows.every(side => side <= 0)) {
|
563
|
+
var _middlewareData$flip$, _middlewareData$flip2;
|
564
|
+
|
565
|
+
const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) != null ? _middlewareData$flip$ : 0) + 1;
|
566
|
+
const nextPlacement = placements[nextIndex];
|
567
|
+
|
568
|
+
if (nextPlacement) {
|
569
|
+
// Try next placement and re-run the lifecycle
|
570
|
+
return {
|
571
|
+
data: {
|
572
|
+
index: nextIndex,
|
573
|
+
overflows: overflowsData
|
574
|
+
},
|
575
|
+
reset: {
|
576
|
+
placement: nextPlacement
|
577
|
+
}
|
578
|
+
};
|
579
|
+
}
|
580
|
+
|
581
|
+
let resetPlacement = 'bottom';
|
582
|
+
|
583
|
+
switch (fallbackStrategy) {
|
584
|
+
case 'bestFit':
|
585
|
+
{
|
586
|
+
var _overflowsData$map$so;
|
587
|
+
|
588
|
+
const placement = (_overflowsData$map$so = overflowsData.map(d => [d, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0].placement;
|
589
|
+
|
590
|
+
if (placement) {
|
591
|
+
resetPlacement = placement;
|
592
|
+
}
|
593
|
+
|
594
|
+
break;
|
595
|
+
}
|
596
|
+
|
597
|
+
case 'initialPlacement':
|
598
|
+
resetPlacement = initialPlacement;
|
599
|
+
break;
|
600
|
+
}
|
601
|
+
|
602
|
+
if (placement !== resetPlacement) {
|
603
|
+
return {
|
604
|
+
reset: {
|
605
|
+
placement: resetPlacement
|
606
|
+
}
|
607
|
+
};
|
608
|
+
}
|
609
|
+
}
|
610
|
+
|
611
|
+
return {};
|
612
|
+
}
|
613
|
+
|
614
|
+
};
|
615
|
+
};
|
616
|
+
|
617
|
+
function getSideOffsets(overflow, rect) {
|
618
|
+
return {
|
619
|
+
top: overflow.top - rect.height,
|
620
|
+
right: overflow.right - rect.width,
|
621
|
+
bottom: overflow.bottom - rect.height,
|
622
|
+
left: overflow.left - rect.width
|
623
|
+
};
|
624
|
+
}
|
625
|
+
|
626
|
+
function isAnySideFullyClipped(overflow) {
|
627
|
+
return sides.some(side => overflow[side] >= 0);
|
628
|
+
}
|
629
|
+
|
630
|
+
/**
|
631
|
+
* Provides data to hide the floating element in applicable situations, such as
|
632
|
+
* when it is not in the same clipping context as the reference element.
|
633
|
+
* @see https://floating-ui.com/docs/hide
|
634
|
+
*/
|
635
|
+
const hide = function (_temp) {
|
636
|
+
let {
|
637
|
+
strategy = 'referenceHidden',
|
638
|
+
...detectOverflowOptions
|
639
|
+
} = _temp === void 0 ? {} : _temp;
|
640
|
+
return {
|
641
|
+
name: 'hide',
|
642
|
+
|
643
|
+
async fn(middlewareArguments) {
|
644
|
+
const {
|
645
|
+
rects
|
646
|
+
} = middlewareArguments;
|
647
|
+
|
648
|
+
switch (strategy) {
|
649
|
+
case 'referenceHidden':
|
650
|
+
{
|
651
|
+
const overflow = await detectOverflow(middlewareArguments, { ...detectOverflowOptions,
|
652
|
+
elementContext: 'reference'
|
653
|
+
});
|
654
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
655
|
+
return {
|
656
|
+
data: {
|
657
|
+
referenceHiddenOffsets: offsets,
|
658
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
659
|
+
}
|
660
|
+
};
|
661
|
+
}
|
662
|
+
|
663
|
+
case 'escaped':
|
664
|
+
{
|
665
|
+
const overflow = await detectOverflow(middlewareArguments, { ...detectOverflowOptions,
|
666
|
+
altBoundary: true
|
667
|
+
});
|
668
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
669
|
+
return {
|
670
|
+
data: {
|
671
|
+
escapedOffsets: offsets,
|
672
|
+
escaped: isAnySideFullyClipped(offsets)
|
673
|
+
}
|
674
|
+
};
|
675
|
+
}
|
676
|
+
|
677
|
+
default:
|
678
|
+
{
|
679
|
+
return {};
|
680
|
+
}
|
681
|
+
}
|
682
|
+
}
|
683
|
+
|
684
|
+
};
|
685
|
+
};
|
686
|
+
|
687
|
+
async function convertValueToCoords(middlewareArguments, value) {
|
688
|
+
const {
|
689
|
+
placement,
|
690
|
+
platform,
|
691
|
+
elements
|
692
|
+
} = middlewareArguments;
|
693
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
694
|
+
const side = getSide(placement);
|
695
|
+
const alignment = getAlignment(placement);
|
696
|
+
const isVertical = getMainAxisFromPlacement(placement) === 'x';
|
697
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
698
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
699
|
+
const rawValue = typeof value === 'function' ? value(middlewareArguments) : value; // eslint-disable-next-line prefer-const
|
700
|
+
|
701
|
+
let {
|
702
|
+
mainAxis,
|
703
|
+
crossAxis,
|
704
|
+
alignmentAxis
|
705
|
+
} = typeof rawValue === 'number' ? {
|
706
|
+
mainAxis: rawValue,
|
707
|
+
crossAxis: 0,
|
708
|
+
alignmentAxis: null
|
709
|
+
} : {
|
710
|
+
mainAxis: 0,
|
711
|
+
crossAxis: 0,
|
712
|
+
alignmentAxis: null,
|
713
|
+
...rawValue
|
714
|
+
};
|
715
|
+
|
716
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
717
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
718
|
+
}
|
719
|
+
|
720
|
+
return isVertical ? {
|
721
|
+
x: crossAxis * crossAxisMulti,
|
722
|
+
y: mainAxis * mainAxisMulti
|
723
|
+
} : {
|
724
|
+
x: mainAxis * mainAxisMulti,
|
725
|
+
y: crossAxis * crossAxisMulti
|
726
|
+
};
|
727
|
+
}
|
728
|
+
/**
|
729
|
+
* Displaces the floating element from its reference element.
|
730
|
+
* @see https://floating-ui.com/docs/offset
|
731
|
+
*/
|
732
|
+
|
733
|
+
const offset = function (value) {
|
734
|
+
if (value === void 0) {
|
735
|
+
value = 0;
|
736
|
+
}
|
737
|
+
|
738
|
+
return {
|
739
|
+
name: 'offset',
|
740
|
+
options: value,
|
741
|
+
|
742
|
+
async fn(middlewareArguments) {
|
743
|
+
const {
|
744
|
+
x,
|
745
|
+
y
|
746
|
+
} = middlewareArguments;
|
747
|
+
const diffCoords = await convertValueToCoords(middlewareArguments, value);
|
748
|
+
return {
|
749
|
+
x: x + diffCoords.x,
|
750
|
+
y: y + diffCoords.y,
|
751
|
+
data: diffCoords
|
752
|
+
};
|
753
|
+
}
|
754
|
+
|
755
|
+
};
|
756
|
+
};
|
757
|
+
|
758
|
+
function getCrossAxis(axis) {
|
759
|
+
return axis === 'x' ? 'y' : 'x';
|
760
|
+
}
|
761
|
+
|
762
|
+
/**
|
763
|
+
* Shifts the floating element in order to keep it in view when it will overflow
|
764
|
+
* a clipping boundary.
|
765
|
+
* @see https://floating-ui.com/docs/shift
|
766
|
+
*/
|
767
|
+
const shift = function (options) {
|
768
|
+
if (options === void 0) {
|
769
|
+
options = {};
|
770
|
+
}
|
771
|
+
|
772
|
+
return {
|
773
|
+
name: 'shift',
|
774
|
+
options,
|
775
|
+
|
776
|
+
async fn(middlewareArguments) {
|
777
|
+
const {
|
778
|
+
x,
|
779
|
+
y,
|
780
|
+
placement
|
781
|
+
} = middlewareArguments;
|
782
|
+
const {
|
783
|
+
mainAxis: checkMainAxis = true,
|
784
|
+
crossAxis: checkCrossAxis = false,
|
785
|
+
limiter = {
|
786
|
+
fn: _ref => {
|
787
|
+
let {
|
788
|
+
x,
|
789
|
+
y
|
790
|
+
} = _ref;
|
791
|
+
return {
|
792
|
+
x,
|
793
|
+
y
|
794
|
+
};
|
795
|
+
}
|
796
|
+
},
|
797
|
+
...detectOverflowOptions
|
798
|
+
} = options;
|
799
|
+
const coords = {
|
800
|
+
x,
|
801
|
+
y
|
802
|
+
};
|
803
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
804
|
+
const mainAxis = getMainAxisFromPlacement(getSide(placement));
|
805
|
+
const crossAxis = getCrossAxis(mainAxis);
|
806
|
+
let mainAxisCoord = coords[mainAxis];
|
807
|
+
let crossAxisCoord = coords[crossAxis];
|
808
|
+
|
809
|
+
if (checkMainAxis) {
|
810
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
811
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
812
|
+
const min = mainAxisCoord + overflow[minSide];
|
813
|
+
const max = mainAxisCoord - overflow[maxSide];
|
814
|
+
mainAxisCoord = within(min, mainAxisCoord, max);
|
815
|
+
}
|
816
|
+
|
817
|
+
if (checkCrossAxis) {
|
818
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
819
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
820
|
+
const min = crossAxisCoord + overflow[minSide];
|
821
|
+
const max = crossAxisCoord - overflow[maxSide];
|
822
|
+
crossAxisCoord = within(min, crossAxisCoord, max);
|
823
|
+
}
|
824
|
+
|
825
|
+
const limitedCoords = limiter.fn({ ...middlewareArguments,
|
826
|
+
[mainAxis]: mainAxisCoord,
|
827
|
+
[crossAxis]: crossAxisCoord
|
828
|
+
});
|
829
|
+
return { ...limitedCoords,
|
830
|
+
data: {
|
831
|
+
x: limitedCoords.x - x,
|
832
|
+
y: limitedCoords.y - y
|
833
|
+
}
|
834
|
+
};
|
835
|
+
}
|
836
|
+
|
837
|
+
};
|
838
|
+
};
|
839
|
+
|
840
|
+
function isWindow(value) {
|
841
|
+
return value && value.document && value.location && value.alert && value.setInterval;
|
842
|
+
}
|
843
|
+
function getWindow(node) {
|
844
|
+
if (node == null) {
|
845
|
+
return window;
|
846
|
+
}
|
847
|
+
|
848
|
+
if (!isWindow(node)) {
|
849
|
+
const ownerDocument = node.ownerDocument;
|
850
|
+
return ownerDocument ? ownerDocument.defaultView || window : window;
|
851
|
+
}
|
852
|
+
|
853
|
+
return node;
|
854
|
+
}
|
855
|
+
|
856
|
+
function getComputedStyle(element) {
|
857
|
+
return getWindow(element).getComputedStyle(element);
|
858
|
+
}
|
859
|
+
|
860
|
+
function getNodeName(node) {
|
861
|
+
return isWindow(node) ? '' : node ? (node.nodeName || '').toLowerCase() : '';
|
862
|
+
}
|
863
|
+
|
864
|
+
function getUAString() {
|
865
|
+
const uaData = navigator.userAgentData;
|
866
|
+
|
867
|
+
if (uaData != null && uaData.brands) {
|
868
|
+
return uaData.brands.map(item => item.brand + "/" + item.version).join(' ');
|
869
|
+
}
|
870
|
+
|
871
|
+
return navigator.userAgent;
|
872
|
+
}
|
873
|
+
|
874
|
+
function isHTMLElement(value) {
|
875
|
+
return value instanceof getWindow(value).HTMLElement;
|
876
|
+
}
|
877
|
+
function isElement(value) {
|
878
|
+
return value instanceof getWindow(value).Element;
|
879
|
+
}
|
880
|
+
function isNode(value) {
|
881
|
+
return value instanceof getWindow(value).Node;
|
882
|
+
}
|
883
|
+
function isShadowRoot(node) {
|
884
|
+
// Browsers without `ShadowRoot` support
|
885
|
+
if (typeof ShadowRoot === 'undefined') {
|
886
|
+
return false;
|
887
|
+
}
|
888
|
+
|
889
|
+
const OwnElement = getWindow(node).ShadowRoot;
|
890
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
891
|
+
}
|
892
|
+
function isOverflowElement(element) {
|
893
|
+
// Firefox wants us to check `-x` and `-y` variations as well
|
894
|
+
const {
|
895
|
+
overflow,
|
896
|
+
overflowX,
|
897
|
+
overflowY,
|
898
|
+
display
|
899
|
+
} = getComputedStyle(element);
|
900
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
901
|
+
}
|
902
|
+
function isTableElement(element) {
|
903
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
904
|
+
}
|
905
|
+
function isContainingBlock(element) {
|
906
|
+
// TODO: Try and use feature detection here instead
|
907
|
+
const isFirefox = /firefox/i.test(getUAString());
|
908
|
+
const css = getComputedStyle(element); // This is non-exhaustive but covers the most common CSS properties that
|
909
|
+
// create a containing block.
|
910
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
911
|
+
|
912
|
+
return css.transform !== 'none' || css.perspective !== 'none' || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective'].some(value => css.willChange.includes(value)) || ['paint', 'layout', 'strict', 'content'].some( // TS 4.1 compat
|
913
|
+
value => {
|
914
|
+
const contain = css.contain;
|
915
|
+
return contain != null ? contain.includes(value) : false;
|
916
|
+
});
|
917
|
+
}
|
918
|
+
function isLayoutViewport() {
|
919
|
+
// Not Safari
|
920
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString()); // Feature detection for this fails in various ways
|
921
|
+
// • Always-visible scrollbar or not
|
922
|
+
// • Width of <html>, etc.
|
923
|
+
// const vV = win.visualViewport;
|
924
|
+
// return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
|
925
|
+
}
|
926
|
+
function isLastTraversableNode(node) {
|
927
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
928
|
+
}
|
929
|
+
|
930
|
+
const min = Math.min;
|
931
|
+
const max = Math.max;
|
932
|
+
const round = Math.round;
|
933
|
+
|
934
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
935
|
+
var _win$visualViewport$o, _win$visualViewport, _win$visualViewport$o2, _win$visualViewport2;
|
936
|
+
|
937
|
+
if (includeScale === void 0) {
|
938
|
+
includeScale = false;
|
939
|
+
}
|
940
|
+
|
941
|
+
if (isFixedStrategy === void 0) {
|
942
|
+
isFixedStrategy = false;
|
943
|
+
}
|
944
|
+
|
945
|
+
const clientRect = element.getBoundingClientRect();
|
946
|
+
let scaleX = 1;
|
947
|
+
let scaleY = 1;
|
948
|
+
|
949
|
+
if (includeScale && isHTMLElement(element)) {
|
950
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
951
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
952
|
+
}
|
953
|
+
|
954
|
+
const win = isElement(element) ? getWindow(element) : window;
|
955
|
+
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
956
|
+
const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
|
957
|
+
const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
|
958
|
+
const width = clientRect.width / scaleX;
|
959
|
+
const height = clientRect.height / scaleY;
|
960
|
+
return {
|
961
|
+
width,
|
962
|
+
height,
|
963
|
+
top: y,
|
964
|
+
right: x + width,
|
965
|
+
bottom: y + height,
|
966
|
+
left: x,
|
967
|
+
x,
|
968
|
+
y
|
969
|
+
};
|
970
|
+
}
|
971
|
+
|
972
|
+
function getDocumentElement(node) {
|
973
|
+
return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
|
974
|
+
}
|
975
|
+
|
976
|
+
function getNodeScroll(element) {
|
977
|
+
if (isElement(element)) {
|
978
|
+
return {
|
979
|
+
scrollLeft: element.scrollLeft,
|
980
|
+
scrollTop: element.scrollTop
|
981
|
+
};
|
982
|
+
}
|
983
|
+
|
984
|
+
return {
|
985
|
+
scrollLeft: element.pageXOffset,
|
986
|
+
scrollTop: element.pageYOffset
|
987
|
+
};
|
988
|
+
}
|
989
|
+
|
990
|
+
function getWindowScrollBarX(element) {
|
991
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
992
|
+
// incorrect for RTL.
|
993
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
994
|
+
}
|
995
|
+
|
996
|
+
function isScaled(element) {
|
997
|
+
const rect = getBoundingClientRect(element);
|
998
|
+
return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
|
999
|
+
}
|
1000
|
+
|
1001
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
1002
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1003
|
+
const documentElement = getDocumentElement(offsetParent);
|
1004
|
+
const rect = getBoundingClientRect(element, // @ts-ignore - checked above (TS 4.1 compat)
|
1005
|
+
isOffsetParentAnElement && isScaled(offsetParent), strategy === 'fixed');
|
1006
|
+
let scroll = {
|
1007
|
+
scrollLeft: 0,
|
1008
|
+
scrollTop: 0
|
1009
|
+
};
|
1010
|
+
const offsets = {
|
1011
|
+
x: 0,
|
1012
|
+
y: 0
|
1013
|
+
};
|
1014
|
+
|
1015
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
1016
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1017
|
+
scroll = getNodeScroll(offsetParent);
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
if (isHTMLElement(offsetParent)) {
|
1021
|
+
const offsetRect = getBoundingClientRect(offsetParent, true);
|
1022
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1023
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1024
|
+
} else if (documentElement) {
|
1025
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
1026
|
+
}
|
1027
|
+
}
|
1028
|
+
|
1029
|
+
return {
|
1030
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
1031
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
1032
|
+
width: rect.width,
|
1033
|
+
height: rect.height
|
1034
|
+
};
|
1035
|
+
}
|
1036
|
+
|
1037
|
+
function getParentNode(node) {
|
1038
|
+
if (getNodeName(node) === 'html') {
|
1039
|
+
return node;
|
1040
|
+
}
|
1041
|
+
|
1042
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
1043
|
+
// @ts-ignore
|
1044
|
+
node.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
1045
|
+
node.parentNode || ( // DOM Element detected
|
1046
|
+
isShadowRoot(node) ? node.host : null) || // ShadowRoot detected
|
1047
|
+
getDocumentElement(node) // fallback
|
1048
|
+
|
1049
|
+
);
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
function getTrueOffsetParent(element) {
|
1053
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
1054
|
+
return null;
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
return element.offsetParent;
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
function getContainingBlock(element) {
|
1061
|
+
let currentNode = getParentNode(element);
|
1062
|
+
|
1063
|
+
if (isShadowRoot(currentNode)) {
|
1064
|
+
currentNode = currentNode.host;
|
1065
|
+
}
|
1066
|
+
|
1067
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1068
|
+
if (isContainingBlock(currentNode)) {
|
1069
|
+
return currentNode;
|
1070
|
+
} else {
|
1071
|
+
const parent = currentNode.parentNode;
|
1072
|
+
currentNode = isShadowRoot(parent) ? parent.host : parent;
|
1073
|
+
}
|
1074
|
+
}
|
1075
|
+
|
1076
|
+
return null;
|
1077
|
+
} // Gets the closest ancestor positioned element. Handles some edge cases,
|
1078
|
+
// such as table ancestors and cross browser bugs.
|
1079
|
+
|
1080
|
+
|
1081
|
+
function getOffsetParent(element) {
|
1082
|
+
const window = getWindow(element);
|
1083
|
+
let offsetParent = getTrueOffsetParent(element);
|
1084
|
+
|
1085
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
1086
|
+
offsetParent = getTrueOffsetParent(offsetParent);
|
1087
|
+
}
|
1088
|
+
|
1089
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
1090
|
+
return window;
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
return offsetParent || getContainingBlock(element) || window;
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
function getDimensions(element) {
|
1097
|
+
if (isHTMLElement(element)) {
|
1098
|
+
return {
|
1099
|
+
width: element.offsetWidth,
|
1100
|
+
height: element.offsetHeight
|
1101
|
+
};
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
const rect = getBoundingClientRect(element);
|
1105
|
+
return {
|
1106
|
+
width: rect.width,
|
1107
|
+
height: rect.height
|
1108
|
+
};
|
1109
|
+
}
|
1110
|
+
|
1111
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
1112
|
+
let {
|
1113
|
+
rect,
|
1114
|
+
offsetParent,
|
1115
|
+
strategy
|
1116
|
+
} = _ref;
|
1117
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1118
|
+
const documentElement = getDocumentElement(offsetParent);
|
1119
|
+
|
1120
|
+
if (offsetParent === documentElement) {
|
1121
|
+
return rect;
|
1122
|
+
}
|
1123
|
+
|
1124
|
+
let scroll = {
|
1125
|
+
scrollLeft: 0,
|
1126
|
+
scrollTop: 0
|
1127
|
+
};
|
1128
|
+
const offsets = {
|
1129
|
+
x: 0,
|
1130
|
+
y: 0
|
1131
|
+
};
|
1132
|
+
|
1133
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
1134
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1135
|
+
scroll = getNodeScroll(offsetParent);
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
if (isHTMLElement(offsetParent)) {
|
1139
|
+
const offsetRect = getBoundingClientRect(offsetParent, true);
|
1140
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1141
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1142
|
+
} // This doesn't appear to be need to be negated.
|
1143
|
+
// else if (documentElement) {
|
1144
|
+
// offsets.x = getWindowScrollBarX(documentElement);
|
1145
|
+
// }
|
1146
|
+
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
return { ...rect,
|
1150
|
+
x: rect.x - scroll.scrollLeft + offsets.x,
|
1151
|
+
y: rect.y - scroll.scrollTop + offsets.y
|
1152
|
+
};
|
1153
|
+
}
|
1154
|
+
|
1155
|
+
function getViewportRect(element, strategy) {
|
1156
|
+
const win = getWindow(element);
|
1157
|
+
const html = getDocumentElement(element);
|
1158
|
+
const visualViewport = win.visualViewport;
|
1159
|
+
let width = html.clientWidth;
|
1160
|
+
let height = html.clientHeight;
|
1161
|
+
let x = 0;
|
1162
|
+
let y = 0;
|
1163
|
+
|
1164
|
+
if (visualViewport) {
|
1165
|
+
width = visualViewport.width;
|
1166
|
+
height = visualViewport.height;
|
1167
|
+
const layoutViewport = isLayoutViewport();
|
1168
|
+
|
1169
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
1170
|
+
x = visualViewport.offsetLeft;
|
1171
|
+
y = visualViewport.offsetTop;
|
1172
|
+
}
|
1173
|
+
}
|
1174
|
+
|
1175
|
+
return {
|
1176
|
+
width,
|
1177
|
+
height,
|
1178
|
+
x,
|
1179
|
+
y
|
1180
|
+
};
|
1181
|
+
}
|
1182
|
+
|
1183
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
1184
|
+
|
1185
|
+
function getDocumentRect(element) {
|
1186
|
+
var _element$ownerDocumen;
|
1187
|
+
|
1188
|
+
const html = getDocumentElement(element);
|
1189
|
+
const scroll = getNodeScroll(element);
|
1190
|
+
const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
1191
|
+
const width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
1192
|
+
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
1193
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
1194
|
+
const y = -scroll.scrollTop;
|
1195
|
+
|
1196
|
+
if (getComputedStyle(body || html).direction === 'rtl') {
|
1197
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
return {
|
1201
|
+
width,
|
1202
|
+
height,
|
1203
|
+
x,
|
1204
|
+
y
|
1205
|
+
};
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
function getNearestOverflowAncestor(node) {
|
1209
|
+
const parentNode = getParentNode(node);
|
1210
|
+
|
1211
|
+
if (isLastTraversableNode(parentNode)) {
|
1212
|
+
// @ts-ignore assume body is always available
|
1213
|
+
return node.ownerDocument.body;
|
1214
|
+
}
|
1215
|
+
|
1216
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
1217
|
+
return parentNode;
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
return getNearestOverflowAncestor(parentNode);
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
function getOverflowAncestors(node, list) {
|
1224
|
+
var _node$ownerDocument;
|
1225
|
+
|
1226
|
+
if (list === void 0) {
|
1227
|
+
list = [];
|
1228
|
+
}
|
1229
|
+
|
1230
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1231
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
1232
|
+
const win = getWindow(scrollableAncestor);
|
1233
|
+
const target = isBody ? [win].concat(win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []) : scrollableAncestor;
|
1234
|
+
const updatedList = list.concat(target);
|
1235
|
+
return isBody ? updatedList : // @ts-ignore: isBody tells us target will be an HTMLElement here
|
1236
|
+
updatedList.concat(getOverflowAncestors(target));
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
function contains(parent, child) {
|
1240
|
+
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
|
1241
|
+
|
1242
|
+
if (parent.contains(child)) {
|
1243
|
+
return true;
|
1244
|
+
} // then fallback to custom implementation with Shadow DOM support
|
1245
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
1246
|
+
let next = child;
|
1247
|
+
|
1248
|
+
do {
|
1249
|
+
// use `===` replace node.isSameNode()
|
1250
|
+
if (next && parent === next) {
|
1251
|
+
return true;
|
1252
|
+
} // @ts-ignore: need a better way to handle this...
|
1253
|
+
|
1254
|
+
|
1255
|
+
next = next.parentNode || next.host;
|
1256
|
+
} while (next);
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
return false;
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
function getNearestParentCapableOfEscapingClipping(element, clippingAncestors) {
|
1263
|
+
let currentNode = element;
|
1264
|
+
|
1265
|
+
while (currentNode && !isLastTraversableNode(currentNode) && // @ts-expect-error
|
1266
|
+
!clippingAncestors.includes(currentNode)) {
|
1267
|
+
if (isElement(currentNode) && ['absolute', 'fixed'].includes(getComputedStyle(currentNode).position)) {
|
1268
|
+
break;
|
1269
|
+
}
|
1270
|
+
|
1271
|
+
const parentNode = getParentNode(currentNode);
|
1272
|
+
currentNode = isShadowRoot(parentNode) ? parentNode.host : parentNode;
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
return currentNode;
|
1276
|
+
}
|
1277
|
+
|
1278
|
+
function getInnerBoundingClientRect(element, strategy) {
|
1279
|
+
const clientRect = getBoundingClientRect(element, false, strategy === 'fixed');
|
1280
|
+
const top = clientRect.top + element.clientTop;
|
1281
|
+
const left = clientRect.left + element.clientLeft;
|
1282
|
+
return {
|
1283
|
+
top,
|
1284
|
+
left,
|
1285
|
+
x: left,
|
1286
|
+
y: top,
|
1287
|
+
right: left + element.clientWidth,
|
1288
|
+
bottom: top + element.clientHeight,
|
1289
|
+
width: element.clientWidth,
|
1290
|
+
height: element.clientHeight
|
1291
|
+
};
|
1292
|
+
}
|
1293
|
+
|
1294
|
+
function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
1295
|
+
if (clippingParent === 'viewport') {
|
1296
|
+
return rectToClientRect(getViewportRect(element, strategy));
|
1297
|
+
}
|
1298
|
+
|
1299
|
+
if (isElement(clippingParent)) {
|
1300
|
+
return getInnerBoundingClientRect(clippingParent, strategy);
|
1301
|
+
}
|
1302
|
+
|
1303
|
+
return rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
1304
|
+
} // A "clipping ancestor" is an overflowable container with the characteristic of
|
1305
|
+
// clipping (or hiding) overflowing elements with a position different from
|
1306
|
+
// `initial`
|
1307
|
+
|
1308
|
+
|
1309
|
+
function getClippingAncestors(element) {
|
1310
|
+
const clippingAncestors = getOverflowAncestors(element);
|
1311
|
+
const nearestEscapableParent = getNearestParentCapableOfEscapingClipping(element, clippingAncestors);
|
1312
|
+
let clipperElement = null;
|
1313
|
+
|
1314
|
+
if (nearestEscapableParent && isHTMLElement(nearestEscapableParent)) {
|
1315
|
+
const offsetParent = getOffsetParent(nearestEscapableParent);
|
1316
|
+
|
1317
|
+
if (isOverflowElement(nearestEscapableParent)) {
|
1318
|
+
clipperElement = nearestEscapableParent;
|
1319
|
+
} else if (isHTMLElement(offsetParent)) {
|
1320
|
+
clipperElement = offsetParent;
|
1321
|
+
}
|
1322
|
+
}
|
1323
|
+
|
1324
|
+
if (!isElement(clipperElement)) {
|
1325
|
+
return [];
|
1326
|
+
} // @ts-ignore isElement check ensures we return Array<Element>
|
1327
|
+
|
1328
|
+
|
1329
|
+
return clippingAncestors.filter(clippingAncestors => clipperElement && isElement(clippingAncestors) && contains(clippingAncestors, clipperElement) && getNodeName(clippingAncestors) !== 'body');
|
1330
|
+
} // Gets the maximum area that the element is visible in due to any number of
|
1331
|
+
// clipping ancestors
|
1332
|
+
|
1333
|
+
|
1334
|
+
function getClippingRect(_ref) {
|
1335
|
+
let {
|
1336
|
+
element,
|
1337
|
+
boundary,
|
1338
|
+
rootBoundary,
|
1339
|
+
strategy
|
1340
|
+
} = _ref;
|
1341
|
+
const mainClippingAncestors = boundary === 'clippingAncestors' ? getClippingAncestors(element) : [].concat(boundary);
|
1342
|
+
const clippingAncestors = [...mainClippingAncestors, rootBoundary];
|
1343
|
+
const firstClippingAncestor = clippingAncestors[0];
|
1344
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
1345
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
1346
|
+
accRect.top = max(rect.top, accRect.top);
|
1347
|
+
accRect.right = min(rect.right, accRect.right);
|
1348
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
1349
|
+
accRect.left = max(rect.left, accRect.left);
|
1350
|
+
return accRect;
|
1351
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
1352
|
+
return {
|
1353
|
+
width: clippingRect.right - clippingRect.left,
|
1354
|
+
height: clippingRect.bottom - clippingRect.top,
|
1355
|
+
x: clippingRect.left,
|
1356
|
+
y: clippingRect.top
|
1357
|
+
};
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
const platform = {
|
1361
|
+
getClippingRect,
|
1362
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
1363
|
+
isElement,
|
1364
|
+
getDimensions,
|
1365
|
+
getOffsetParent,
|
1366
|
+
getDocumentElement,
|
1367
|
+
getElementRects: _ref => {
|
1368
|
+
let {
|
1369
|
+
reference,
|
1370
|
+
floating,
|
1371
|
+
strategy
|
1372
|
+
} = _ref;
|
1373
|
+
return {
|
1374
|
+
reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
|
1375
|
+
floating: { ...getDimensions(floating),
|
1376
|
+
x: 0,
|
1377
|
+
y: 0
|
1378
|
+
}
|
1379
|
+
};
|
1380
|
+
},
|
1381
|
+
getClientRects: element => Array.from(element.getClientRects()),
|
1382
|
+
isRTL: element => getComputedStyle(element).direction === 'rtl'
|
1383
|
+
};
|
1384
|
+
|
1385
|
+
/**
|
1386
|
+
* Automatically updates the position of the floating element when necessary.
|
1387
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
1388
|
+
*/
|
1389
|
+
function autoUpdate(reference, floating, update, options) {
|
1390
|
+
if (options === void 0) {
|
1391
|
+
options = {};
|
1392
|
+
}
|
1393
|
+
|
1394
|
+
const {
|
1395
|
+
ancestorScroll: _ancestorScroll = true,
|
1396
|
+
ancestorResize = true,
|
1397
|
+
elementResize = true,
|
1398
|
+
animationFrame = false
|
1399
|
+
} = options;
|
1400
|
+
const ancestorScroll = _ancestorScroll && !animationFrame;
|
1401
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)] : [];
|
1402
|
+
ancestors.forEach(ancestor => {
|
1403
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
1404
|
+
passive: true
|
1405
|
+
});
|
1406
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
1407
|
+
});
|
1408
|
+
let observer = null;
|
1409
|
+
|
1410
|
+
if (elementResize) {
|
1411
|
+
let initialUpdate = true;
|
1412
|
+
observer = new ResizeObserver(() => {
|
1413
|
+
if (!initialUpdate) {
|
1414
|
+
update();
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
initialUpdate = false;
|
1418
|
+
});
|
1419
|
+
isElement(reference) && !animationFrame && observer.observe(reference);
|
1420
|
+
observer.observe(floating);
|
1421
|
+
}
|
1422
|
+
|
1423
|
+
let frameId;
|
1424
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
1425
|
+
|
1426
|
+
if (animationFrame) {
|
1427
|
+
frameLoop();
|
1428
|
+
}
|
1429
|
+
|
1430
|
+
function frameLoop() {
|
1431
|
+
const nextRefRect = getBoundingClientRect(reference);
|
1432
|
+
|
1433
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
1434
|
+
update();
|
1435
|
+
}
|
1436
|
+
|
1437
|
+
prevRefRect = nextRefRect;
|
1438
|
+
frameId = requestAnimationFrame(frameLoop);
|
1439
|
+
}
|
1440
|
+
|
1441
|
+
update();
|
1442
|
+
return () => {
|
1443
|
+
var _observer;
|
1444
|
+
|
1445
|
+
ancestors.forEach(ancestor => {
|
1446
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
1447
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
1448
|
+
});
|
1449
|
+
(_observer = observer) == null ? void 0 : _observer.disconnect();
|
1450
|
+
observer = null;
|
1451
|
+
|
1452
|
+
if (animationFrame) {
|
1453
|
+
cancelAnimationFrame(frameId);
|
1454
|
+
}
|
1455
|
+
};
|
1456
|
+
}
|
1457
|
+
|
1458
|
+
/**
|
1459
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
1460
|
+
* next to a reference element when it is given a certain CSS positioning
|
1461
|
+
* strategy.
|
1462
|
+
*/
|
1463
|
+
|
1464
|
+
const computePosition = (reference, floating, options) => computePosition$1(reference, floating, {
|
1465
|
+
platform,
|
1466
|
+
...options
|
1467
|
+
});
|
1468
|
+
|
7
1469
|
/*!
|
8
1470
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
1471
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
1472
|
* v1.0.0-beta.97
|
11
|
-
*/
|
1473
|
+
*/
|
1474
|
+
/**
|
1475
|
+
* This module helps users provide custom configuration for component internals.
|
1476
|
+
*
|
1477
|
+
* @internal
|
1478
|
+
*/
|
1479
|
+
const configOverrides = globalThis["calciteComponentsConfig"];
|
1480
|
+
const config = {
|
1481
|
+
/**
|
1482
|
+
* We apply a custom fix to improve positioning for non-Chromium browsers.
|
1483
|
+
* The fix comes at a performance cost, so provides users a way to opt-out if necessary.
|
1484
|
+
*
|
1485
|
+
* @internal
|
1486
|
+
*/
|
1487
|
+
floatingUINonChromiumPositioningFix: true,
|
1488
|
+
...configOverrides
|
1489
|
+
};
|
1490
|
+
|
1491
|
+
/*!
|
1492
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1493
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
1494
|
+
* v1.0.0-beta.97
|
1495
|
+
*/
|
1496
|
+
const floatingUIBrowserCheck = patchFloatingUiForNonChromiumBrowsers();
|
1497
|
+
async function patchFloatingUiForNonChromiumBrowsers() {
|
1498
|
+
function getUAString() {
|
1499
|
+
const uaData = navigator.userAgentData;
|
1500
|
+
if (uaData === null || uaData === void 0 ? void 0 : uaData.brands) {
|
1501
|
+
return uaData.brands.map((item) => `${item.brand}/${item.version}`).join(" ");
|
1502
|
+
}
|
1503
|
+
return navigator.userAgent;
|
1504
|
+
}
|
1505
|
+
if (config.floatingUINonChromiumPositioningFix &&
|
1506
|
+
// ⚠️ browser-sniffing is not a best practice and should be avoided ⚠️
|
1507
|
+
/firefox|safari/i.test(getUAString())) {
|
1508
|
+
const { getClippingRect, getElementRects, getOffsetParent } = await import('./p-cbd9fecf.js');
|
1509
|
+
platform.getClippingRect = getClippingRect;
|
1510
|
+
platform.getOffsetParent = getOffsetParent;
|
1511
|
+
platform.getElementRects = getElementRects;
|
1512
|
+
}
|
1513
|
+
}
|
1514
|
+
const placementDataAttribute = "data-placement";
|
1515
|
+
/**
|
1516
|
+
* Exported for testing purposes only
|
1517
|
+
*/
|
1518
|
+
const repositionDebounceTimeout = 100;
|
1519
|
+
const effectivePlacements = [
|
1520
|
+
"top",
|
1521
|
+
"bottom",
|
1522
|
+
"right",
|
1523
|
+
"left",
|
1524
|
+
"top-start",
|
1525
|
+
"top-end",
|
1526
|
+
"bottom-start",
|
1527
|
+
"bottom-end",
|
1528
|
+
"right-start",
|
1529
|
+
"right-end",
|
1530
|
+
"left-start",
|
1531
|
+
"left-end"
|
1532
|
+
];
|
1533
|
+
const defaultMenuPlacement = "bottom-start";
|
1534
|
+
const FloatingCSS = {
|
1535
|
+
animation: "calcite-floating-ui-anim",
|
1536
|
+
animationActive: "calcite-floating-ui-anim--active"
|
1537
|
+
};
|
1538
|
+
function getMiddleware({ placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type }) {
|
1539
|
+
const defaultMiddleware = [shift(), hide()];
|
1540
|
+
if (type === "menu") {
|
1541
|
+
return [
|
1542
|
+
...defaultMiddleware,
|
1543
|
+
flip({
|
1544
|
+
fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"]
|
1545
|
+
})
|
1546
|
+
];
|
1547
|
+
}
|
1548
|
+
if (type === "popover" || type === "tooltip") {
|
1549
|
+
const middleware = [
|
1550
|
+
...defaultMiddleware,
|
1551
|
+
offset({
|
1552
|
+
mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
|
1553
|
+
crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0
|
1554
|
+
})
|
1555
|
+
];
|
1556
|
+
if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
|
1557
|
+
middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
|
1558
|
+
}
|
1559
|
+
else if (!disableFlip) {
|
1560
|
+
middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
|
1561
|
+
}
|
1562
|
+
if (arrowEl) {
|
1563
|
+
middleware.push(arrow({
|
1564
|
+
element: arrowEl
|
1565
|
+
}));
|
1566
|
+
}
|
1567
|
+
return middleware;
|
1568
|
+
}
|
1569
|
+
return [];
|
1570
|
+
}
|
1571
|
+
function filterComputedPlacements(placements, el) {
|
1572
|
+
const filteredPlacements = placements.filter((placement) => effectivePlacements.includes(placement));
|
1573
|
+
if (filteredPlacements.length !== placements.length) {
|
1574
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${effectivePlacements
|
1575
|
+
.map((placement) => `"${placement}"`)
|
1576
|
+
.join(", ")
|
1577
|
+
.trim()}`, { el });
|
1578
|
+
}
|
1579
|
+
return filteredPlacements;
|
1580
|
+
}
|
1581
|
+
/*
|
1582
|
+
In floating-ui, "*-start" and "*-end" are already flipped in RTL.
|
1583
|
+
There is no need for our "*-leading" and "*-trailing" values anymore.
|
1584
|
+
https://github.com/floating-ui/floating-ui/issues/1530
|
1585
|
+
https://github.com/floating-ui/floating-ui/issues/1563
|
1586
|
+
*/
|
1587
|
+
function getEffectivePlacement(floatingEl, placement) {
|
1588
|
+
const placements = ["left", "right"];
|
1589
|
+
if (getElementDir(floatingEl) === "rtl") {
|
1590
|
+
placements.reverse();
|
1591
|
+
}
|
1592
|
+
return placement
|
1593
|
+
.replace(/-leading/gi, "-start")
|
1594
|
+
.replace(/-trailing/gi, "-end")
|
1595
|
+
.replace(/leading/gi, placements[0])
|
1596
|
+
.replace(/trailing/gi, placements[1]);
|
1597
|
+
}
|
1598
|
+
/**
|
1599
|
+
* Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
|
1600
|
+
*
|
1601
|
+
* Note: this is not needed for components that use `calcite-popover`.
|
1602
|
+
*
|
1603
|
+
* @param component
|
1604
|
+
* @param options
|
1605
|
+
* @param options.referenceEl
|
1606
|
+
* @param options.floatingEl
|
1607
|
+
* @param options.overlayPositioning
|
1608
|
+
* @param options.placement
|
1609
|
+
* @param options.disableFlip
|
1610
|
+
* @param options.flipPlacements
|
1611
|
+
* @param options.offsetDistance
|
1612
|
+
* @param options.offsetSkidding
|
1613
|
+
* @param options.arrowEl
|
1614
|
+
* @param options.type
|
1615
|
+
* @param delayed
|
1616
|
+
*/
|
1617
|
+
async function reposition(component, options, delayed = false) {
|
1618
|
+
if (!component.open) {
|
1619
|
+
return;
|
1620
|
+
}
|
1621
|
+
return delayed ? debouncedReposition(options) : positionFloatingUI(options);
|
1622
|
+
}
|
1623
|
+
const debouncedReposition = debounce(positionFloatingUI, repositionDebounceTimeout, {
|
1624
|
+
leading: true,
|
1625
|
+
maxWait: repositionDebounceTimeout
|
1626
|
+
});
|
1627
|
+
/**
|
1628
|
+
* Positions the floating element relative to the reference element.
|
1629
|
+
*
|
1630
|
+
* **Note:** exported for testing purposes only
|
1631
|
+
*
|
1632
|
+
* @param root0
|
1633
|
+
* @param root0.referenceEl
|
1634
|
+
* @param root0.floatingEl
|
1635
|
+
* @param root0.overlayPositioning
|
1636
|
+
* @param root0.placement
|
1637
|
+
* @param root0.disableFlip
|
1638
|
+
* @param root0.flipPlacements
|
1639
|
+
* @param root0.offsetDistance
|
1640
|
+
* @param root0.offsetSkidding
|
1641
|
+
* @param root0.arrowEl
|
1642
|
+
* @param root0.type
|
1643
|
+
* @param root0.includeArrow
|
1644
|
+
*/
|
1645
|
+
async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning = "absolute", placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, includeArrow = false, arrowEl, type }) {
|
1646
|
+
var _a;
|
1647
|
+
if (!referenceEl || !floatingEl || (includeArrow && !arrowEl)) {
|
1648
|
+
return null;
|
1649
|
+
}
|
1650
|
+
await floatingUIBrowserCheck;
|
1651
|
+
const { x, y, placement: effectivePlacement, strategy: position, middlewareData } = await computePosition(referenceEl, floatingEl, {
|
1652
|
+
strategy: overlayPositioning,
|
1653
|
+
placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
|
1654
|
+
? undefined
|
1655
|
+
: getEffectivePlacement(floatingEl, placement),
|
1656
|
+
middleware: getMiddleware({
|
1657
|
+
placement,
|
1658
|
+
disableFlip,
|
1659
|
+
flipPlacements,
|
1660
|
+
offsetDistance,
|
1661
|
+
offsetSkidding,
|
1662
|
+
arrowEl,
|
1663
|
+
type
|
1664
|
+
})
|
1665
|
+
});
|
1666
|
+
if (middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.arrow) {
|
1667
|
+
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
1668
|
+
Object.assign(arrowEl.style, {
|
1669
|
+
left: arrowX != null ? `${arrowX}px` : "",
|
1670
|
+
top: arrowY != null ? `${arrowY}px` : ""
|
1671
|
+
});
|
1672
|
+
}
|
1673
|
+
const referenceHidden = (_a = middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden;
|
1674
|
+
const visibility = referenceHidden ? "hidden" : null;
|
1675
|
+
const pointerEvents = visibility ? "none" : null;
|
1676
|
+
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
1677
|
+
const transform = `translate(${Math.round(x)}px,${Math.round(y)}px)`;
|
1678
|
+
Object.assign(floatingEl.style, {
|
1679
|
+
visibility,
|
1680
|
+
pointerEvents,
|
1681
|
+
position,
|
1682
|
+
top: "0",
|
1683
|
+
left: "0",
|
1684
|
+
transform
|
1685
|
+
});
|
1686
|
+
}
|
1687
|
+
/**
|
1688
|
+
* Exported for testing purposes only
|
1689
|
+
*
|
1690
|
+
* @internal
|
1691
|
+
*/
|
1692
|
+
const cleanupMap = new WeakMap();
|
1693
|
+
/**
|
1694
|
+
* Helper to set up floating element interactions on connectedCallback.
|
1695
|
+
*
|
1696
|
+
* @param component
|
1697
|
+
* @param referenceEl
|
1698
|
+
* @param floatingEl
|
1699
|
+
*/
|
1700
|
+
function connectFloatingUI(component, referenceEl, floatingEl) {
|
1701
|
+
if (!floatingEl || !referenceEl) {
|
1702
|
+
return;
|
1703
|
+
}
|
1704
|
+
disconnectFloatingUI(component, referenceEl, floatingEl);
|
1705
|
+
const position = component.overlayPositioning;
|
1706
|
+
// ensure position matches for initial positioning
|
1707
|
+
floatingEl.style.position = position;
|
1708
|
+
if (position === "absolute") {
|
1709
|
+
moveOffScreen(floatingEl);
|
1710
|
+
}
|
1711
|
+
const runAutoUpdate = autoUpdate
|
1712
|
+
;
|
1713
|
+
cleanupMap.set(component, runAutoUpdate(referenceEl, floatingEl, () => component.reposition()));
|
1714
|
+
}
|
1715
|
+
/**
|
1716
|
+
* Helper to tear down floating element interactions on disconnectedCallback.
|
1717
|
+
*
|
1718
|
+
* @param component
|
1719
|
+
* @param referenceEl
|
1720
|
+
* @param floatingEl
|
1721
|
+
*/
|
1722
|
+
function disconnectFloatingUI(component, referenceEl, floatingEl) {
|
1723
|
+
if (!floatingEl || !referenceEl) {
|
1724
|
+
return;
|
1725
|
+
}
|
1726
|
+
getTransitionTarget(floatingEl).removeEventListener("transitionend", handleTransitionElTransitionEnd);
|
1727
|
+
const cleanup = cleanupMap.get(component);
|
1728
|
+
if (cleanup) {
|
1729
|
+
cleanup();
|
1730
|
+
}
|
1731
|
+
cleanupMap.delete(component);
|
1732
|
+
}
|
1733
|
+
const visiblePointerSize = 4;
|
1734
|
+
/**
|
1735
|
+
* Default offset the position of the floating element away from the reference element.
|
1736
|
+
*
|
1737
|
+
* @default 6
|
1738
|
+
*/
|
1739
|
+
const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
|
1740
|
+
/**
|
1741
|
+
* This utils applies floating element styles to avoid affecting layout when closed.
|
1742
|
+
*
|
1743
|
+
* This should be called when the closing transition will start.
|
1744
|
+
*
|
1745
|
+
* @param floatingEl
|
1746
|
+
*/
|
1747
|
+
function updateAfterClose(floatingEl) {
|
1748
|
+
if (!floatingEl || floatingEl.style.position !== "absolute") {
|
1749
|
+
return;
|
1750
|
+
}
|
1751
|
+
getTransitionTarget(floatingEl).addEventListener("transitionend", handleTransitionElTransitionEnd);
|
1752
|
+
}
|
1753
|
+
function getTransitionTarget(floatingEl) {
|
1754
|
+
// assumes floatingEl w/ shadowRoot is a FloatingUIComponent
|
1755
|
+
return floatingEl.shadowRoot || floatingEl;
|
1756
|
+
}
|
1757
|
+
function handleTransitionElTransitionEnd(event) {
|
1758
|
+
const floatingTransitionEl = event.target;
|
1759
|
+
if (
|
1760
|
+
// using any prop from floating-ui transition
|
1761
|
+
event.propertyName === "opacity" &&
|
1762
|
+
floatingTransitionEl.classList.contains(FloatingCSS.animation)) {
|
1763
|
+
const floatingEl = getFloatingElFromTransitionTarget(floatingTransitionEl);
|
1764
|
+
moveOffScreen(floatingEl);
|
1765
|
+
getTransitionTarget(floatingEl).removeEventListener("transitionend", handleTransitionElTransitionEnd);
|
1766
|
+
}
|
1767
|
+
}
|
1768
|
+
function moveOffScreen(floatingEl) {
|
1769
|
+
floatingEl.style.transform = "";
|
1770
|
+
floatingEl.style.top = "-99999px";
|
1771
|
+
floatingEl.style.left = "-99999px";
|
1772
|
+
}
|
1773
|
+
function getFloatingElFromTransitionTarget(floatingTransitionEl) {
|
1774
|
+
return closestElementCrossShadowBoundary(floatingTransitionEl, `[${placementDataAttribute}]`);
|
1775
|
+
}
|
1776
|
+
|
1777
|
+
export { FloatingCSS as F, disconnectFloatingUI as a, defaultOffsetDistance as b, connectFloatingUI as c, defaultMenuPlacement as d, rectToClientRect as e, filterComputedPlacements as f, reposition as r, updateAfterClose as u };
|
1778
|
+
|
1779
|
+
//# sourceMappingURL=p-600e23c6.js.map
|