@esri/solutions-components 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-73df0d51.js +0 -2
- package/dist/cjs/Heading-6b7b374c.js +0 -2
- package/dist/cjs/_commonjsHelpers-6aafa5de.js +0 -2
- package/dist/cjs/app-globals-2f48e57e.js +0 -2
- package/dist/cjs/array-ace6d4b5.js +0 -2
- package/dist/cjs/buffer-tools_6.cjs.entry.js +0 -2
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-bar_6.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block.cjs.entry.js +0 -2
- package/dist/cjs/calcite-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-card.cjs.entry.js +0 -2
- package/dist/cjs/calcite-checkbox.cjs.entry.js +0 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
- package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-number.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-text.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-label.cjs.entry.js +0 -2
- package/dist/cjs/calcite-link.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
- package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -13
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
- package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tooltip-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tree_3.cjs.entry.js +0 -2
- package/dist/cjs/check-list.cjs.entry.js +0 -2
- package/dist/cjs/conditionalSlot-2defe83d.js +0 -2
- package/dist/cjs/config-buffer-tools.cjs.entry.js +0 -2
- package/dist/cjs/config-draw-tools.cjs.entry.js +0 -2
- package/dist/cjs/config-layer-picker.cjs.entry.js +0 -2
- package/dist/cjs/config-pdf-download.cjs.entry.js +0 -2
- package/dist/cjs/date-e21b2052.js +0 -2
- package/dist/cjs/debounce-69c3bada.js +0 -2
- package/dist/cjs/dom-4a580af6.js +0 -2
- package/dist/cjs/filter-325f654f.js +0 -2
- package/dist/cjs/floating-ui-ca1bcead.js +0 -2
- package/dist/cjs/form-45849654.js +0 -2
- package/dist/cjs/guid-84ac4d91.js +0 -2
- package/dist/cjs/index-7af21b6f.js +0 -2
- package/dist/cjs/index-a86078a0.js +0 -2
- package/dist/cjs/index-d7f9770d.js +0 -2
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interactive-0a68ab99.js +0 -2
- package/dist/cjs/interfaces-ab603e16.js +0 -2
- package/dist/cjs/interfaces-e76f31e9.js +0 -2
- package/dist/cjs/key-55aca5c0.js +0 -2
- package/dist/cjs/label-24fcd8a5.js +0 -2
- package/dist/cjs/labelFormats-3236d2e0.js +0 -2
- package/dist/cjs/loadModules-38269f99.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -2
- package/dist/cjs/locale-73cab8e8.js +0 -2
- package/dist/cjs/locale-746a095d.js +0 -2
- package/dist/cjs/map-search.cjs.entry.js +0 -2
- package/dist/cjs/mapViewUtils-67cfc412.js +0 -2
- package/dist/cjs/math-460fffaf.js +0 -2
- package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js +0 -2
- package/dist/cjs/observers-5311faf8.js +0 -2
- package/dist/cjs/openCloseComponent-bf986132.js +0 -2
- package/dist/cjs/public-notification.cjs.entry.js +0 -2
- package/dist/cjs/publicNotificationStore-6a3d40b3.js +0 -2
- package/dist/cjs/publicNotificationUtils-9d585d8d.js +0 -2
- package/dist/cjs/resources-1f785471.js +0 -2
- package/dist/cjs/resources-2260d186.js +0 -2
- package/dist/cjs/resources-2a9862c7.js +0 -2
- package/dist/cjs/resources-308edbd8.js +0 -2
- package/dist/cjs/resources-6152b073.js +0 -2
- package/dist/cjs/resources-808cfca8.js +0 -2
- package/dist/cjs/resources-9c55e05c.js +0 -2
- package/dist/cjs/resources-aa19bf8c.js +0 -2
- package/dist/cjs/resources-b56bce71.js +0 -2
- package/dist/cjs/resources-cc7f63b0.js +0 -2
- package/dist/cjs/shared-list-render-4c7d84bf.js +0 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +1 -9
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -5
- package/dist/cjs/{solution-store-893499a5.js → solution-store-e2fc11ac.js} +0 -4
- package/dist/cjs/solutions-components.cjs.js +0 -2
- package/dist/cjs/sortable.esm-bf47019d.js +0 -2
- package/dist/cjs/store-manager.cjs.entry.js +0 -2
- package/dist/cjs/time-3f5577cb.js +0 -2
- package/dist/cjs/utils-120bbbeb.js +0 -2
- package/dist/cjs/utils-b4236001.js +0 -2
- package/dist/collection/components/buffer-tools/buffer-tools.js +0 -1
- package/dist/collection/components/check-list/check-list.js +0 -1
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +0 -1
- package/dist/collection/components/config-draw-tools/config-draw-tools.js +0 -1
- package/dist/collection/components/config-layer-picker/config-layer-picker.js +0 -1
- package/dist/collection/components/config-pdf-download/config-pdf-download.js +0 -1
- package/dist/collection/components/json-editor/json-editor.js +0 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +0 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +0 -1
- package/dist/collection/components/map-search/map-search.js +0 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +0 -1
- package/dist/collection/components/pdf-download/pdf-download.js +0 -1
- package/dist/collection/components/public-notification/public-notification.js +0 -1
- package/dist/collection/components/refine-selection/refine-selection.js +0 -1
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +0 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +0 -7
- package/dist/collection/components/solution-contents/solution-contents.js +0 -1
- package/dist/collection/components/solution-item/solution-item.js +0 -3
- package/dist/collection/components/solution-item-details/solution-item-details.js +0 -14
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +0 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +0 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +0 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +0 -1
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +0 -1
- package/dist/collection/components/solution-variables/solution-variables.js +0 -1
- package/dist/collection/components/store-manager/store-manager.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/common.js +0 -1
- package/dist/collection/utils/csvUtils.js +0 -1
- package/dist/collection/utils/interfaces.js +0 -1
- package/dist/collection/utils/languageUtil.js +0 -1
- package/dist/collection/utils/loadModules.js +0 -1
- package/dist/collection/utils/locale.js +0 -1
- package/dist/collection/utils/mapViewUtils.js +0 -1
- package/dist/collection/utils/publicNotificationStore.js +0 -1
- package/dist/collection/utils/publicNotificationUtils.js +0 -1
- package/dist/collection/utils/queryUtils.js +0 -1
- package/dist/collection/utils/solution-store.js +0 -3
- package/dist/collection/utils/solution-store.ts +0 -2
- package/dist/collection/utils/templates.js +0 -1
- package/dist/collection/utils/test/testUtils.js +0 -1
- package/dist/collection/utils/types.js +0 -1
- package/dist/esm/ExpandToggle-b7d1fb3c.js +0 -2
- package/dist/esm/Heading-1efb4837.js +0 -2
- package/dist/esm/_commonjsHelpers-8fd39c50.js +0 -2
- package/dist/esm/app-globals-09b9efee.js +0 -2
- package/dist/esm/array-2ab3b18f.js +0 -2
- package/dist/esm/buffer-tools_6.entry.js +0 -2
- package/dist/esm/calcite-accordion-item.entry.js +0 -2
- package/dist/esm/calcite-accordion.entry.js +0 -2
- package/dist/esm/calcite-action-bar_6.entry.js +0 -2
- package/dist/esm/calcite-action-group.entry.js +0 -2
- package/dist/esm/calcite-action-menu_2.entry.js +0 -2
- package/dist/esm/calcite-action-pad.entry.js +0 -2
- package/dist/esm/calcite-action_2.entry.js +0 -2
- package/dist/esm/calcite-alert.entry.js +0 -2
- package/dist/esm/calcite-avatar.entry.js +0 -2
- package/dist/esm/calcite-block-section.entry.js +0 -2
- package/dist/esm/calcite-block.entry.js +0 -2
- package/dist/esm/calcite-button.entry.js +0 -2
- package/dist/esm/calcite-card.entry.js +0 -2
- package/dist/esm/calcite-checkbox.entry.js +0 -2
- package/dist/esm/calcite-chip.entry.js +0 -2
- package/dist/esm/calcite-color-picker-hex-input.entry.js +0 -2
- package/dist/esm/calcite-color-picker-swatch.entry.js +0 -2
- package/dist/esm/calcite-color-picker.entry.js +0 -2
- package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
- package/dist/esm/calcite-combobox_3.entry.js +0 -2
- package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
- package/dist/esm/calcite-date-picker.entry.js +0 -2
- package/dist/esm/calcite-dropdown-group.entry.js +0 -2
- package/dist/esm/calcite-dropdown-item.entry.js +0 -2
- package/dist/esm/calcite-dropdown.entry.js +0 -2
- package/dist/esm/calcite-fab.entry.js +0 -2
- package/dist/esm/calcite-filter.entry.js +0 -2
- package/dist/esm/calcite-flow-item.entry.js +0 -2
- package/dist/esm/calcite-flow.entry.js +0 -2
- package/dist/esm/calcite-graph.entry.js +0 -2
- package/dist/esm/calcite-handle.entry.js +0 -2
- package/dist/esm/calcite-icon.entry.js +0 -2
- package/dist/esm/calcite-inline-editable.entry.js +0 -2
- package/dist/esm/calcite-input-date-picker.entry.js +0 -2
- package/dist/esm/calcite-input-number.entry.js +0 -2
- package/dist/esm/calcite-input-text.entry.js +0 -2
- package/dist/esm/calcite-input-time-picker.entry.js +0 -2
- package/dist/esm/calcite-input_2.entry.js +0 -2
- package/dist/esm/calcite-label.entry.js +0 -2
- package/dist/esm/calcite-link.entry.js +0 -2
- package/dist/esm/calcite-list-item-group.entry.js +0 -2
- package/dist/esm/calcite-list_2.entry.js +0 -2
- package/dist/esm/calcite-modal.entry.js +0 -2
- package/dist/esm/calcite-option-group.entry.js +0 -2
- package/dist/esm/calcite-option_2.entry.js +0 -2
- package/dist/esm/calcite-pagination.entry.js +0 -2
- package/dist/esm/calcite-panel_2.entry.js +0 -2
- package/dist/esm/calcite-pick-list-group.entry.js +0 -2
- package/dist/esm/calcite-pick-list-item.entry.js +0 -2
- package/dist/esm/calcite-pick-list.entry.js +0 -2
- package/dist/esm/calcite-popover-manager.entry.js +0 -2
- package/dist/esm/calcite-radio-button-group.entry.js +0 -2
- package/dist/esm/calcite-radio-button.entry.js +0 -2
- package/dist/esm/calcite-rating.entry.js +0 -2
- package/dist/esm/calcite-scrim.entry.js +0 -2
- package/dist/esm/calcite-shell-center-row.entry.js +0 -2
- package/dist/esm/calcite-shell-panel_14.entry.js +1 -13
- package/dist/esm/calcite-sortable-list.entry.js +0 -2
- package/dist/esm/calcite-split-button.entry.js +0 -2
- package/dist/esm/calcite-stepper-item.entry.js +0 -2
- package/dist/esm/calcite-stepper.entry.js +0 -2
- package/dist/esm/calcite-switch.entry.js +0 -2
- package/dist/esm/calcite-tile-select-group.entry.js +0 -2
- package/dist/esm/calcite-tile-select.entry.js +0 -2
- package/dist/esm/calcite-tile.entry.js +0 -2
- package/dist/esm/calcite-time-picker.entry.js +0 -2
- package/dist/esm/calcite-tip-group.entry.js +0 -2
- package/dist/esm/calcite-tip-manager.entry.js +0 -2
- package/dist/esm/calcite-tip.entry.js +0 -2
- package/dist/esm/calcite-tooltip-manager.entry.js +0 -2
- package/dist/esm/calcite-tooltip.entry.js +0 -2
- package/dist/esm/calcite-tree_3.entry.js +0 -2
- package/dist/esm/check-list.entry.js +0 -2
- package/dist/esm/conditionalSlot-bb4cab11.js +0 -2
- package/dist/esm/config-buffer-tools.entry.js +0 -2
- package/dist/esm/config-draw-tools.entry.js +0 -2
- package/dist/esm/config-layer-picker.entry.js +0 -2
- package/dist/esm/config-pdf-download.entry.js +0 -2
- package/dist/esm/date-45de0016.js +0 -2
- package/dist/esm/debounce-4c884e5c.js +0 -2
- package/dist/esm/dom-e593bf85.js +0 -2
- package/dist/esm/filter-82935f2d.js +0 -2
- package/dist/esm/floating-ui-69a55a27.js +0 -2
- package/dist/esm/form-dbfde8ce.js +0 -2
- package/dist/esm/guid-15fce7c0.js +0 -2
- package/dist/esm/index-15022d11.js +0 -2
- package/dist/esm/index-9c882a6e.js +0 -2
- package/dist/esm/index-d33ebc35.js +0 -2
- package/dist/esm/index.js +0 -2
- package/dist/esm/interactive-822ffed6.js +0 -2
- package/dist/esm/interfaces-4ae145eb.js +0 -2
- package/dist/esm/interfaces-e2a2064d.js +0 -2
- package/dist/esm/key-acb660e7.js +0 -2
- package/dist/esm/label-d411de44.js +0 -2
- package/dist/esm/labelFormats-b37958c3.js +0 -2
- package/dist/esm/loadModules-d3b50f95.js +0 -2
- package/dist/esm/loader.js +0 -2
- package/dist/esm/locale-0b490b02.js +0 -2
- package/dist/esm/locale-0e10d7e5.js +0 -2
- package/dist/esm/map-search.entry.js +0 -2
- package/dist/esm/mapViewUtils-09f1e7bd.js +0 -2
- package/dist/esm/math-552c5420.js +0 -2
- package/dist/esm/nonChromiumPlatformUtils-ee349005.js +0 -2
- package/dist/esm/observers-31601001.js +0 -2
- package/dist/esm/openCloseComponent-5caff873.js +0 -2
- package/dist/esm/public-notification.entry.js +0 -2
- package/dist/esm/publicNotificationStore-060c59c8.js +0 -2
- package/dist/esm/publicNotificationUtils-5cb5a607.js +0 -2
- package/dist/esm/resources-2235e4ff.js +0 -2
- package/dist/esm/resources-3d641588.js +0 -2
- package/dist/esm/resources-436ae282.js +0 -2
- package/dist/esm/resources-4d02cb48.js +0 -2
- package/dist/esm/resources-78132e50.js +0 -2
- package/dist/esm/resources-7d4a587f.js +0 -2
- package/dist/esm/resources-971845d1.js +0 -2
- package/dist/esm/resources-9eb63965.js +0 -2
- package/dist/esm/resources-d60362c3.js +0 -2
- package/dist/esm/resources-e3a5cf27.js +0 -2
- package/dist/esm/shared-list-render-4e9d47a3.js +0 -2
- package/dist/esm/solution-configuration.entry.js +1 -9
- package/dist/esm/solution-contents_3.entry.js +1 -5
- package/dist/esm/{solution-store-0c58c852.js → solution-store-b3c65467.js} +0 -4
- package/dist/esm/solutions-components.js +0 -2
- package/dist/esm/sortable.esm-3b2eaa5c.js +0 -2
- package/dist/esm/store-manager.entry.js +0 -2
- package/dist/esm/time-f014778c.js +0 -2
- package/dist/esm/utils-3f4ee4c3.js +0 -2
- package/dist/esm/utils-583554bc.js +0 -2
- package/dist/solutions-components/index.esm.js +0 -2
- package/dist/solutions-components/p-006c6ae1.entry.js +11 -0
- package/dist/solutions-components/p-04a37fc0.entry.js +6 -0
- package/dist/solutions-components/p-062dbde8.entry.js +6 -0
- package/dist/solutions-components/p-0b941521.entry.js +11 -0
- package/dist/solutions-components/p-0c80eb51.entry.js +11 -0
- package/dist/solutions-components/p-10501e21.entry.js +23 -0
- package/dist/solutions-components/p-109e4684.entry.js +6 -0
- package/dist/solutions-components/p-12dfd43e.entry.js +11 -0
- package/dist/solutions-components/p-13b37f05.js +3 -308
- package/dist/solutions-components/p-1c3bcd99.entry.js +12 -0
- package/dist/solutions-components/p-1c589630.entry.js +6 -0
- package/dist/solutions-components/p-1e15b1a3.js +2 -183
- package/dist/solutions-components/p-1fb471cf.entry.js +11 -0
- package/dist/solutions-components/p-20bdf42f.js +14 -407
- package/dist/solutions-components/p-23275dbd.entry.js +6 -0
- package/dist/solutions-components/p-236d76e7.entry.js +11 -0
- package/dist/solutions-components/p-23904a3d.js +3 -401
- package/dist/solutions-components/p-29246858.entry.js +11 -0
- package/dist/solutions-components/p-2ac06389.js +16 -25
- package/dist/solutions-components/p-2af67c67.entry.js +6 -0
- package/dist/solutions-components/p-2bee764f.entry.js +11 -0
- package/dist/solutions-components/p-2e9ed892.js +1 -48
- package/dist/solutions-components/p-2f6b4f04.entry.js +6 -0
- package/dist/solutions-components/p-305ae3fe.entry.js +11 -0
- package/dist/solutions-components/p-32a67cb2.js +2 -207
- package/dist/solutions-components/p-343e325d.entry.js +11 -0
- package/dist/solutions-components/p-3485601e.entry.js +6 -0
- package/dist/solutions-components/p-374a5031.js +2 -107
- package/dist/solutions-components/p-395e9b6c.entry.js +6 -0
- package/dist/solutions-components/p-39c5f2d2.entry.js +6 -0
- package/dist/solutions-components/p-3b010ce1.js +1 -19
- package/dist/solutions-components/p-3c4f2257.entry.js +11 -0
- package/dist/solutions-components/p-3c8ec7a3.entry.js +12 -0
- package/dist/solutions-components/p-3f6b0af4.js +2 -221
- package/dist/solutions-components/p-4130fbcd.entry.js +11 -0
- package/dist/solutions-components/p-421cbb15.entry.js +6 -0
- package/dist/solutions-components/p-43fa414d.entry.js +11 -0
- package/dist/solutions-components/p-4760f22a.entry.js +6 -0
- package/dist/solutions-components/p-4e32bf8c.js +1 -484
- package/dist/solutions-components/p-4fb6d2cf.entry.js +11 -0
- package/dist/solutions-components/p-54384555.entry.js +11 -0
- package/dist/solutions-components/p-5493f036.entry.js +6 -0
- package/dist/solutions-components/p-551fd063.entry.js +11 -0
- package/dist/solutions-components/p-56350bff.js +2 -173
- package/dist/solutions-components/p-58c69df2.js +2 -2024
- package/dist/solutions-components/p-5a61ef0d.entry.js +6 -0
- package/dist/solutions-components/p-5b0d7c7d.js +16 -35
- package/dist/solutions-components/p-5cf33602.js +2 -43
- package/dist/solutions-components/p-600e23c6.js +2 -1770
- package/dist/solutions-components/p-63f6e8f1.js +1 -16
- package/dist/solutions-components/p-6a3ce8f6.entry.js +6 -0
- package/dist/solutions-components/p-6b9dc092.js +16 -67
- package/dist/solutions-components/p-6be581f5.entry.js +6 -0
- package/dist/solutions-components/p-6cf432f9.entry.js +11 -0
- package/dist/solutions-components/p-6e0da576.js +1 -15
- package/dist/solutions-components/p-6fe17794.js +1 -11
- package/dist/solutions-components/p-70368b2b.entry.js +6 -0
- package/dist/solutions-components/p-708a63a8.js +1 -14
- package/dist/solutions-components/p-708ffad0.entry.js +11 -0
- package/dist/solutions-components/p-729708a3.js +1 -16
- package/dist/solutions-components/p-7321ba65.entry.js +11 -0
- package/dist/solutions-components/p-73e23995.js +1 -8
- package/dist/solutions-components/p-75b35018.entry.js +11 -0
- package/dist/solutions-components/p-764c0a90.entry.js +11 -0
- package/dist/solutions-components/p-77031b01.entry.js +11 -0
- package/dist/solutions-components/p-77182c3a.js +1 -3017
- package/dist/solutions-components/p-778a1b4a.entry.js +11 -0
- package/dist/solutions-components/p-7cdc6089.entry.js +6 -0
- package/dist/solutions-components/p-7daea1df.js +1 -43
- package/dist/solutions-components/p-81467529.entry.js +6 -0
- package/dist/solutions-components/p-834380d6.entry.js +11 -0
- package/dist/solutions-components/p-86908777.js +3 -62
- package/dist/solutions-components/p-89cc843b.entry.js +11 -0
- package/dist/solutions-components/p-8e3a2736.entry.js +11 -0
- package/dist/solutions-components/p-8e8b182f.entry.js +12 -0
- package/dist/solutions-components/p-8f052987.entry.js +11 -0
- package/dist/solutions-components/p-93790a9e.entry.js +37 -0
- package/dist/solutions-components/p-93d3119d.js +1 -1950
- package/dist/solutions-components/p-991ee695.js +1 -111
- package/dist/solutions-components/p-9a9955db.js +1 -43
- package/dist/solutions-components/p-9bbee464.entry.js +6 -0
- package/dist/solutions-components/p-9bdd4abe.entry.js +17 -0
- package/dist/solutions-components/p-a4a7d49d.entry.js +17 -0
- package/dist/solutions-components/p-a7036d68.entry.js +11 -0
- package/dist/solutions-components/p-a80b3880.js +1 -16
- package/dist/solutions-components/p-ac91cd40.entry.js +11 -0
- package/dist/solutions-components/p-acd0a09f.entry.js +11 -0
- package/dist/solutions-components/p-acd3b2bf.entry.js +11 -0
- package/dist/solutions-components/p-ae1fd76b.js +1 -13
- package/dist/solutions-components/p-aea937fb.entry.js +12 -0
- package/dist/solutions-components/p-b1b36556.entry.js +11 -0
- package/dist/solutions-components/p-b25f6ebe.js +257 -0
- package/dist/solutions-components/p-b2ae8634.entry.js +6 -0
- package/dist/solutions-components/p-b359dc78.js +1 -43
- package/dist/solutions-components/p-b978636e.js +1 -16
- package/dist/solutions-components/p-ba104266.entry.js +11 -0
- package/dist/solutions-components/p-bfcab358.entry.js +11 -0
- package/dist/solutions-components/p-c848d1bd.entry.js +29 -0
- package/dist/solutions-components/p-c9766584.entry.js +6 -0
- package/dist/solutions-components/p-cbd9fecf.js +2 -500
- package/dist/solutions-components/p-d2cc1b94.entry.js +12 -0
- package/dist/solutions-components/p-d48a24e6.js +2 -756
- package/dist/solutions-components/p-d51a72d2.entry.js +11 -0
- package/dist/solutions-components/p-d88fe54b.entry.js +18 -0
- package/dist/solutions-components/p-daee23cc.entry.js +11 -0
- package/dist/solutions-components/p-db7d14d5.entry.js +12 -0
- package/dist/solutions-components/p-dbad98e8.js +2 -124
- package/dist/solutions-components/p-dc724c1d.entry.js +11 -0
- package/dist/solutions-components/p-dc7bc20f.entry.js +11 -0
- package/dist/solutions-components/p-de242ea9.entry.js +6 -0
- package/dist/solutions-components/p-de5416e8.js +1 -30
- package/dist/solutions-components/p-e4ebb82a.entry.js +11 -0
- package/dist/solutions-components/p-e611d8c8.js +1 -30
- package/dist/solutions-components/p-e64c5c11.entry.js +6 -0
- package/dist/solutions-components/p-e6a695a5.js +2 -103
- package/dist/solutions-components/p-e947d3b0.js +1 -7
- package/dist/solutions-components/p-e99b1247.js +1 -207
- package/dist/solutions-components/p-e9e47eab.entry.js +6 -0
- package/dist/solutions-components/p-eb3be6d4.entry.js +6 -0
- package/dist/solutions-components/p-eb976965.js +3 -35
- package/dist/solutions-components/p-ed27c151.entry.js +6 -0
- package/dist/solutions-components/p-eeb0321d.js +2 -15
- package/dist/solutions-components/p-ef170bb1.entry.js +6 -0
- package/dist/solutions-components/p-f044863f.entry.js +16 -0
- package/dist/solutions-components/p-f0bae2f0.entry.js +37 -0
- package/dist/solutions-components/p-f48821a2.js +7 -60
- package/dist/solutions-components/p-f5a3b34f.entry.js +23 -0
- package/dist/solutions-components/p-f759a6e7.js +1 -196
- package/dist/solutions-components/p-fa2575c2.entry.js +6 -0
- package/dist/solutions-components/p-fc884dd6.js +16 -30
- package/dist/solutions-components/p-fe0fdd8b.js +31 -279
- package/dist/solutions-components/solutions-components.css +1 -10531
- package/dist/solutions-components/solutions-components.esm.js +1 -22
- package/dist/solutions-components/utils/solution-store.ts +0 -2
- package/dist/solutions-components_commit.txt +7 -9
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/ExpandToggle-73df0d51.js.map +0 -1
- package/dist/cjs/Heading-6b7b374c.js.map +0 -1
- package/dist/cjs/_commonjsHelpers-6aafa5de.js.map +0 -1
- package/dist/cjs/app-globals-2f48e57e.js.map +0 -1
- package/dist/cjs/array-ace6d4b5.js.map +0 -1
- package/dist/cjs/buffer-tools_6.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-bar_6.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-flow-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-number.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-text.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-panel_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tooltip-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tree_3.cjs.entry.js.map +0 -1
- package/dist/cjs/check-list.cjs.entry.js.map +0 -1
- package/dist/cjs/conditionalSlot-2defe83d.js.map +0 -1
- package/dist/cjs/config-buffer-tools.cjs.entry.js.map +0 -1
- package/dist/cjs/config-draw-tools.cjs.entry.js.map +0 -1
- package/dist/cjs/config-layer-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/config-pdf-download.cjs.entry.js.map +0 -1
- package/dist/cjs/date-e21b2052.js.map +0 -1
- package/dist/cjs/debounce-69c3bada.js.map +0 -1
- package/dist/cjs/dom-4a580af6.js.map +0 -1
- package/dist/cjs/filter-325f654f.js.map +0 -1
- package/dist/cjs/floating-ui-ca1bcead.js.map +0 -1
- package/dist/cjs/form-45849654.js.map +0 -1
- package/dist/cjs/guid-84ac4d91.js.map +0 -1
- package/dist/cjs/index-7af21b6f.js.map +0 -1
- package/dist/cjs/index-a86078a0.js.map +0 -1
- package/dist/cjs/index-d7f9770d.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/interactive-0a68ab99.js.map +0 -1
- package/dist/cjs/interfaces-ab603e16.js.map +0 -1
- package/dist/cjs/interfaces-e76f31e9.js.map +0 -1
- package/dist/cjs/key-55aca5c0.js.map +0 -1
- package/dist/cjs/label-24fcd8a5.js.map +0 -1
- package/dist/cjs/labelFormats-3236d2e0.js.map +0 -1
- package/dist/cjs/loadModules-38269f99.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/locale-73cab8e8.js.map +0 -1
- package/dist/cjs/locale-746a095d.js.map +0 -1
- package/dist/cjs/map-search.cjs.entry.js.map +0 -1
- package/dist/cjs/mapViewUtils-67cfc412.js.map +0 -1
- package/dist/cjs/math-460fffaf.js.map +0 -1
- package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js.map +0 -1
- package/dist/cjs/observers-5311faf8.js.map +0 -1
- package/dist/cjs/openCloseComponent-bf986132.js.map +0 -1
- package/dist/cjs/public-notification.cjs.entry.js.map +0 -1
- package/dist/cjs/publicNotificationStore-6a3d40b3.js.map +0 -1
- package/dist/cjs/publicNotificationUtils-9d585d8d.js.map +0 -1
- package/dist/cjs/resources-1f785471.js.map +0 -1
- package/dist/cjs/resources-2260d186.js.map +0 -1
- package/dist/cjs/resources-2a9862c7.js.map +0 -1
- package/dist/cjs/resources-308edbd8.js.map +0 -1
- package/dist/cjs/resources-6152b073.js.map +0 -1
- package/dist/cjs/resources-808cfca8.js.map +0 -1
- package/dist/cjs/resources-9c55e05c.js.map +0 -1
- package/dist/cjs/resources-aa19bf8c.js.map +0 -1
- package/dist/cjs/resources-b56bce71.js.map +0 -1
- package/dist/cjs/resources-cc7f63b0.js.map +0 -1
- package/dist/cjs/shared-list-render-4c7d84bf.js.map +0 -1
- package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-store-893499a5.js.map +0 -1
- package/dist/cjs/solutions-components.cjs.js.map +0 -1
- package/dist/cjs/sortable.esm-bf47019d.js.map +0 -1
- package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/time-3f5577cb.js.map +0 -1
- package/dist/cjs/utils-120bbbeb.js.map +0 -1
- package/dist/cjs/utils-b4236001.js.map +0 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js.map +0 -1
- package/dist/collection/components/check-list/check-list.js.map +0 -1
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js.map +0 -1
- package/dist/collection/components/config-draw-tools/config-draw-tools.js.map +0 -1
- package/dist/collection/components/config-layer-picker/config-layer-picker.js.map +0 -1
- package/dist/collection/components/config-pdf-download/config-pdf-download.js.map +0 -1
- package/dist/collection/components/json-editor/json-editor.js.map +0 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js.map +0 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js.map +0 -1
- package/dist/collection/components/map-search/map-search.js.map +0 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js.map +0 -1
- package/dist/collection/components/pdf-download/pdf-download.js.map +0 -1
- package/dist/collection/components/public-notification/public-notification.js.map +0 -1
- package/dist/collection/components/refine-selection/refine-selection.js.map +0 -1
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js.map +0 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
- package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
- package/dist/collection/components/solution-item/solution-item.js.map +0 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
- package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
- package/dist/collection/components/store-manager/store-manager.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/common.js.map +0 -1
- package/dist/collection/utils/csvUtils.js.map +0 -1
- package/dist/collection/utils/interfaces.js.map +0 -1
- package/dist/collection/utils/languageUtil.js.map +0 -1
- package/dist/collection/utils/loadModules.js.map +0 -1
- package/dist/collection/utils/locale.js.map +0 -1
- package/dist/collection/utils/mapViewUtils.js.map +0 -1
- package/dist/collection/utils/publicNotificationStore.js.map +0 -1
- package/dist/collection/utils/publicNotificationUtils.js.map +0 -1
- package/dist/collection/utils/queryUtils.js.map +0 -1
- package/dist/collection/utils/solution-store.js.map +0 -1
- package/dist/collection/utils/templates.js.map +0 -1
- package/dist/collection/utils/test/testUtils.js.map +0 -1
- package/dist/collection/utils/types.js.map +0 -1
- package/dist/esm/ExpandToggle-b7d1fb3c.js.map +0 -1
- package/dist/esm/Heading-1efb4837.js.map +0 -1
- package/dist/esm/_commonjsHelpers-8fd39c50.js.map +0 -1
- package/dist/esm/app-globals-09b9efee.js.map +0 -1
- package/dist/esm/array-2ab3b18f.js.map +0 -1
- package/dist/esm/buffer-tools_6.entry.js.map +0 -1
- package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
- package/dist/esm/calcite-accordion.entry.js.map +0 -1
- package/dist/esm/calcite-action-bar_6.entry.js.map +0 -1
- package/dist/esm/calcite-action-group.entry.js.map +0 -1
- package/dist/esm/calcite-action-menu_2.entry.js.map +0 -1
- package/dist/esm/calcite-action-pad.entry.js.map +0 -1
- package/dist/esm/calcite-action_2.entry.js.map +0 -1
- package/dist/esm/calcite-alert.entry.js.map +0 -1
- package/dist/esm/calcite-avatar.entry.js.map +0 -1
- package/dist/esm/calcite-block-section.entry.js.map +0 -1
- package/dist/esm/calcite-block.entry.js.map +0 -1
- package/dist/esm/calcite-button.entry.js.map +0 -1
- package/dist/esm/calcite-card.entry.js.map +0 -1
- package/dist/esm/calcite-checkbox.entry.js.map +0 -1
- package/dist/esm/calcite-chip.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-combobox_3.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown.entry.js.map +0 -1
- package/dist/esm/calcite-fab.entry.js.map +0 -1
- package/dist/esm/calcite-filter.entry.js.map +0 -1
- package/dist/esm/calcite-flow-item.entry.js.map +0 -1
- package/dist/esm/calcite-flow.entry.js.map +0 -1
- package/dist/esm/calcite-graph.entry.js.map +0 -1
- package/dist/esm/calcite-handle.entry.js.map +0 -1
- package/dist/esm/calcite-icon.entry.js.map +0 -1
- package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
- package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input-number.entry.js.map +0 -1
- package/dist/esm/calcite-input-text.entry.js.map +0 -1
- package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input_2.entry.js.map +0 -1
- package/dist/esm/calcite-label.entry.js.map +0 -1
- package/dist/esm/calcite-link.entry.js.map +0 -1
- package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-list_2.entry.js.map +0 -1
- package/dist/esm/calcite-modal.entry.js.map +0 -1
- package/dist/esm/calcite-option-group.entry.js.map +0 -1
- package/dist/esm/calcite-option_2.entry.js.map +0 -1
- package/dist/esm/calcite-pagination.entry.js.map +0 -1
- package/dist/esm/calcite-panel_2.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list.entry.js.map +0 -1
- package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button.entry.js.map +0 -1
- package/dist/esm/calcite-rating.entry.js.map +0 -1
- package/dist/esm/calcite-scrim.entry.js.map +0 -1
- package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
- package/dist/esm/calcite-shell-panel_14.entry.js.map +0 -1
- package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
- package/dist/esm/calcite-split-button.entry.js.map +0 -1
- package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
- package/dist/esm/calcite-stepper.entry.js.map +0 -1
- package/dist/esm/calcite-switch.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select.entry.js.map +0 -1
- package/dist/esm/calcite-tile.entry.js.map +0 -1
- package/dist/esm/calcite-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-tip-group.entry.js.map +0 -1
- package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
- package/dist/esm/calcite-tip.entry.js.map +0 -1
- package/dist/esm/calcite-tooltip-manager.entry.js.map +0 -1
- package/dist/esm/calcite-tooltip.entry.js.map +0 -1
- package/dist/esm/calcite-tree_3.entry.js.map +0 -1
- package/dist/esm/check-list.entry.js.map +0 -1
- package/dist/esm/conditionalSlot-bb4cab11.js.map +0 -1
- package/dist/esm/config-buffer-tools.entry.js.map +0 -1
- package/dist/esm/config-draw-tools.entry.js.map +0 -1
- package/dist/esm/config-layer-picker.entry.js.map +0 -1
- package/dist/esm/config-pdf-download.entry.js.map +0 -1
- package/dist/esm/date-45de0016.js.map +0 -1
- package/dist/esm/debounce-4c884e5c.js.map +0 -1
- package/dist/esm/dom-e593bf85.js.map +0 -1
- package/dist/esm/filter-82935f2d.js.map +0 -1
- package/dist/esm/floating-ui-69a55a27.js.map +0 -1
- package/dist/esm/form-dbfde8ce.js.map +0 -1
- package/dist/esm/guid-15fce7c0.js.map +0 -1
- package/dist/esm/index-15022d11.js.map +0 -1
- package/dist/esm/index-9c882a6e.js.map +0 -1
- package/dist/esm/index-d33ebc35.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interactive-822ffed6.js.map +0 -1
- package/dist/esm/interfaces-4ae145eb.js.map +0 -1
- package/dist/esm/interfaces-e2a2064d.js.map +0 -1
- package/dist/esm/key-acb660e7.js.map +0 -1
- package/dist/esm/label-d411de44.js.map +0 -1
- package/dist/esm/labelFormats-b37958c3.js.map +0 -1
- package/dist/esm/loadModules-d3b50f95.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/locale-0b490b02.js.map +0 -1
- package/dist/esm/locale-0e10d7e5.js.map +0 -1
- package/dist/esm/map-search.entry.js.map +0 -1
- package/dist/esm/mapViewUtils-09f1e7bd.js.map +0 -1
- package/dist/esm/math-552c5420.js.map +0 -1
- package/dist/esm/nonChromiumPlatformUtils-ee349005.js.map +0 -1
- package/dist/esm/observers-31601001.js.map +0 -1
- package/dist/esm/openCloseComponent-5caff873.js.map +0 -1
- package/dist/esm/public-notification.entry.js.map +0 -1
- package/dist/esm/publicNotificationStore-060c59c8.js.map +0 -1
- package/dist/esm/publicNotificationUtils-5cb5a607.js.map +0 -1
- package/dist/esm/resources-2235e4ff.js.map +0 -1
- package/dist/esm/resources-3d641588.js.map +0 -1
- package/dist/esm/resources-436ae282.js.map +0 -1
- package/dist/esm/resources-4d02cb48.js.map +0 -1
- package/dist/esm/resources-78132e50.js.map +0 -1
- package/dist/esm/resources-7d4a587f.js.map +0 -1
- package/dist/esm/resources-971845d1.js.map +0 -1
- package/dist/esm/resources-9eb63965.js.map +0 -1
- package/dist/esm/resources-d60362c3.js.map +0 -1
- package/dist/esm/resources-e3a5cf27.js.map +0 -1
- package/dist/esm/shared-list-render-4e9d47a3.js.map +0 -1
- package/dist/esm/solution-configuration.entry.js.map +0 -1
- package/dist/esm/solution-contents_3.entry.js.map +0 -1
- package/dist/esm/solution-store-0c58c852.js.map +0 -1
- package/dist/esm/solutions-components.js.map +0 -1
- package/dist/esm/sortable.esm-3b2eaa5c.js.map +0 -1
- package/dist/esm/store-manager.entry.js.map +0 -1
- package/dist/esm/time-f014778c.js.map +0 -1
- package/dist/esm/utils-3f4ee4c3.js.map +0 -1
- package/dist/esm/utils-583554bc.js.map +0 -1
- package/dist/solutions-components/index.esm.js.map +0 -1
- package/dist/solutions-components/p-06dab43c.entry.js +0 -140
- package/dist/solutions-components/p-06dab43c.entry.js.map +0 -1
- package/dist/solutions-components/p-0bbe4865.entry.js +0 -620
- package/dist/solutions-components/p-0bbe4865.entry.js.map +0 -1
- package/dist/solutions-components/p-0fda7d9e.entry.js +0 -434
- package/dist/solutions-components/p-0fda7d9e.entry.js.map +0 -1
- package/dist/solutions-components/p-0fddf8a4.entry.js +0 -349
- package/dist/solutions-components/p-0fddf8a4.entry.js.map +0 -1
- package/dist/solutions-components/p-11bc6805.entry.js +0 -87
- package/dist/solutions-components/p-11bc6805.entry.js.map +0 -1
- package/dist/solutions-components/p-13b37f05.js.map +0 -1
- package/dist/solutions-components/p-1dfb5fae.entry.js +0 -713
- package/dist/solutions-components/p-1dfb5fae.entry.js.map +0 -1
- package/dist/solutions-components/p-1e15b1a3.js.map +0 -1
- package/dist/solutions-components/p-1e5bc9c3.entry.js +0 -96
- package/dist/solutions-components/p-1e5bc9c3.entry.js.map +0 -1
- package/dist/solutions-components/p-1ed05745.entry.js +0 -214
- package/dist/solutions-components/p-1ed05745.entry.js.map +0 -1
- package/dist/solutions-components/p-20bdf42f.js.map +0 -1
- package/dist/solutions-components/p-22574d83.entry.js +0 -74
- package/dist/solutions-components/p-22574d83.entry.js.map +0 -1
- package/dist/solutions-components/p-23904a3d.js.map +0 -1
- package/dist/solutions-components/p-24d75151.entry.js +0 -107
- package/dist/solutions-components/p-24d75151.entry.js.map +0 -1
- package/dist/solutions-components/p-26484399.entry.js +0 -108
- package/dist/solutions-components/p-26484399.entry.js.map +0 -1
- package/dist/solutions-components/p-291fd295.entry.js +0 -1250
- package/dist/solutions-components/p-291fd295.entry.js.map +0 -1
- package/dist/solutions-components/p-29bdbd3e.entry.js +0 -280
- package/dist/solutions-components/p-29bdbd3e.entry.js.map +0 -1
- package/dist/solutions-components/p-2ac06389.js.map +0 -1
- package/dist/solutions-components/p-2bce7fa2.entry.js +0 -45
- package/dist/solutions-components/p-2bce7fa2.entry.js.map +0 -1
- package/dist/solutions-components/p-2e9ed892.js.map +0 -1
- package/dist/solutions-components/p-2f12ff1b.entry.js +0 -202
- package/dist/solutions-components/p-2f12ff1b.entry.js.map +0 -1
- package/dist/solutions-components/p-2ff754ce.entry.js +0 -257
- package/dist/solutions-components/p-2ff754ce.entry.js.map +0 -1
- package/dist/solutions-components/p-30a6199a.entry.js +0 -445
- package/dist/solutions-components/p-30a6199a.entry.js.map +0 -1
- package/dist/solutions-components/p-32a67cb2.js.map +0 -1
- package/dist/solutions-components/p-341ff921.entry.js +0 -449
- package/dist/solutions-components/p-341ff921.entry.js.map +0 -1
- package/dist/solutions-components/p-36ce64e4.entry.js +0 -215
- package/dist/solutions-components/p-36ce64e4.entry.js.map +0 -1
- package/dist/solutions-components/p-374a5031.js.map +0 -1
- package/dist/solutions-components/p-3b010ce1.js.map +0 -1
- package/dist/solutions-components/p-3f6b0af4.js.map +0 -1
- package/dist/solutions-components/p-400e1427.entry.js +0 -236
- package/dist/solutions-components/p-400e1427.entry.js.map +0 -1
- package/dist/solutions-components/p-40d7cf01.entry.js +0 -228
- package/dist/solutions-components/p-40d7cf01.entry.js.map +0 -1
- package/dist/solutions-components/p-45556aff.entry.js +0 -215
- package/dist/solutions-components/p-45556aff.entry.js.map +0 -1
- package/dist/solutions-components/p-49aaa793.entry.js +0 -95
- package/dist/solutions-components/p-49aaa793.entry.js.map +0 -1
- package/dist/solutions-components/p-4e32bf8c.js.map +0 -1
- package/dist/solutions-components/p-4e89b243.entry.js +0 -479
- package/dist/solutions-components/p-4e89b243.entry.js.map +0 -1
- package/dist/solutions-components/p-515637fb.entry.js +0 -183
- package/dist/solutions-components/p-515637fb.entry.js.map +0 -1
- package/dist/solutions-components/p-5243a654.entry.js +0 -147
- package/dist/solutions-components/p-5243a654.entry.js.map +0 -1
- package/dist/solutions-components/p-55673790.entry.js +0 -82
- package/dist/solutions-components/p-55673790.entry.js.map +0 -1
- package/dist/solutions-components/p-56350bff.js.map +0 -1
- package/dist/solutions-components/p-58b374c0.entry.js +0 -347
- package/dist/solutions-components/p-58b374c0.entry.js.map +0 -1
- package/dist/solutions-components/p-58c69df2.js.map +0 -1
- package/dist/solutions-components/p-59fd6684.entry.js +0 -22
- package/dist/solutions-components/p-59fd6684.entry.js.map +0 -1
- package/dist/solutions-components/p-5b0d7c7d.js.map +0 -1
- package/dist/solutions-components/p-5cf33602.js.map +0 -1
- package/dist/solutions-components/p-600e23c6.js.map +0 -1
- package/dist/solutions-components/p-61398a7b.entry.js +0 -74
- package/dist/solutions-components/p-61398a7b.entry.js.map +0 -1
- package/dist/solutions-components/p-63a05701.entry.js +0 -45
- package/dist/solutions-components/p-63a05701.entry.js.map +0 -1
- package/dist/solutions-components/p-63f6e8f1.js.map +0 -1
- package/dist/solutions-components/p-64a2040e.entry.js +0 -63
- package/dist/solutions-components/p-64a2040e.entry.js.map +0 -1
- package/dist/solutions-components/p-64c63eb2.entry.js +0 -157
- package/dist/solutions-components/p-64c63eb2.entry.js.map +0 -1
- package/dist/solutions-components/p-659edb14.js +0 -4096
- package/dist/solutions-components/p-659edb14.js.map +0 -1
- package/dist/solutions-components/p-6940e2fd.entry.js +0 -100
- package/dist/solutions-components/p-6940e2fd.entry.js.map +0 -1
- package/dist/solutions-components/p-69900b68.entry.js +0 -152
- package/dist/solutions-components/p-69900b68.entry.js.map +0 -1
- package/dist/solutions-components/p-699125b6.entry.js +0 -44
- package/dist/solutions-components/p-699125b6.entry.js.map +0 -1
- package/dist/solutions-components/p-6b9dc092.js.map +0 -1
- package/dist/solutions-components/p-6d0899c8.entry.js +0 -118
- package/dist/solutions-components/p-6d0899c8.entry.js.map +0 -1
- package/dist/solutions-components/p-6e0da576.js.map +0 -1
- package/dist/solutions-components/p-6fe17794.js.map +0 -1
- package/dist/solutions-components/p-708a63a8.js.map +0 -1
- package/dist/solutions-components/p-729708a3.js.map +0 -1
- package/dist/solutions-components/p-73e23995.js.map +0 -1
- package/dist/solutions-components/p-75f54a34.entry.js +0 -883
- package/dist/solutions-components/p-75f54a34.entry.js.map +0 -1
- package/dist/solutions-components/p-77182c3a.js.map +0 -1
- package/dist/solutions-components/p-77c75f3a.entry.js +0 -21534
- package/dist/solutions-components/p-77c75f3a.entry.js.map +0 -1
- package/dist/solutions-components/p-77e6b03c.entry.js +0 -1872
- package/dist/solutions-components/p-77e6b03c.entry.js.map +0 -1
- package/dist/solutions-components/p-794ba85d.entry.js +0 -175
- package/dist/solutions-components/p-794ba85d.entry.js.map +0 -1
- package/dist/solutions-components/p-79cde78e.entry.js +0 -203
- package/dist/solutions-components/p-79cde78e.entry.js.map +0 -1
- package/dist/solutions-components/p-7a2c75a4.entry.js +0 -230
- package/dist/solutions-components/p-7a2c75a4.entry.js.map +0 -1
- package/dist/solutions-components/p-7daea1df.js.map +0 -1
- package/dist/solutions-components/p-7de77097.entry.js +0 -162
- package/dist/solutions-components/p-7de77097.entry.js.map +0 -1
- package/dist/solutions-components/p-7f2b74a9.entry.js +0 -56
- package/dist/solutions-components/p-7f2b74a9.entry.js.map +0 -1
- package/dist/solutions-components/p-81e606c0.entry.js +0 -915
- package/dist/solutions-components/p-81e606c0.entry.js.map +0 -1
- package/dist/solutions-components/p-86908777.js.map +0 -1
- package/dist/solutions-components/p-87a0ccb4.entry.js +0 -254
- package/dist/solutions-components/p-87a0ccb4.entry.js.map +0 -1
- package/dist/solutions-components/p-90629c1d.entry.js +0 -1986
- package/dist/solutions-components/p-90629c1d.entry.js.map +0 -1
- package/dist/solutions-components/p-9393631c.entry.js +0 -542
- package/dist/solutions-components/p-9393631c.entry.js.map +0 -1
- package/dist/solutions-components/p-93d3119d.js.map +0 -1
- package/dist/solutions-components/p-958e2979.entry.js +0 -111
- package/dist/solutions-components/p-958e2979.entry.js.map +0 -1
- package/dist/solutions-components/p-95ddb529.entry.js +0 -181
- package/dist/solutions-components/p-95ddb529.entry.js.map +0 -1
- package/dist/solutions-components/p-97c4a268.entry.js +0 -725
- package/dist/solutions-components/p-97c4a268.entry.js.map +0 -1
- package/dist/solutions-components/p-984cb687.entry.js +0 -2632
- package/dist/solutions-components/p-984cb687.entry.js.map +0 -1
- package/dist/solutions-components/p-991ee695.js.map +0 -1
- package/dist/solutions-components/p-99d9b624.entry.js +0 -177
- package/dist/solutions-components/p-99d9b624.entry.js.map +0 -1
- package/dist/solutions-components/p-9a9955db.js.map +0 -1
- package/dist/solutions-components/p-9d925d5b.entry.js +0 -233
- package/dist/solutions-components/p-9d925d5b.entry.js.map +0 -1
- package/dist/solutions-components/p-9dc0210f.entry.js +0 -125
- package/dist/solutions-components/p-9dc0210f.entry.js.map +0 -1
- package/dist/solutions-components/p-9fec2884.entry.js +0 -216
- package/dist/solutions-components/p-9fec2884.entry.js.map +0 -1
- package/dist/solutions-components/p-a2ada355.entry.js +0 -135
- package/dist/solutions-components/p-a2ada355.entry.js.map +0 -1
- package/dist/solutions-components/p-a57adb27.entry.js +0 -154
- package/dist/solutions-components/p-a57adb27.entry.js.map +0 -1
- package/dist/solutions-components/p-a80b3880.js.map +0 -1
- package/dist/solutions-components/p-a88dd457.entry.js +0 -123
- package/dist/solutions-components/p-a88dd457.entry.js.map +0 -1
- package/dist/solutions-components/p-ac6efd19.entry.js +0 -57
- package/dist/solutions-components/p-ac6efd19.entry.js.map +0 -1
- package/dist/solutions-components/p-ae1fd76b.js.map +0 -1
- package/dist/solutions-components/p-afffa81a.entry.js +0 -140
- package/dist/solutions-components/p-afffa81a.entry.js.map +0 -1
- package/dist/solutions-components/p-b0f3ed4d.entry.js +0 -376
- package/dist/solutions-components/p-b0f3ed4d.entry.js.map +0 -1
- package/dist/solutions-components/p-b359dc78.js.map +0 -1
- package/dist/solutions-components/p-b66cba3e.entry.js +0 -97
- package/dist/solutions-components/p-b66cba3e.entry.js.map +0 -1
- package/dist/solutions-components/p-b6c2f470.entry.js +0 -574
- package/dist/solutions-components/p-b6c2f470.entry.js.map +0 -1
- package/dist/solutions-components/p-b978636e.js.map +0 -1
- package/dist/solutions-components/p-bd19837e.entry.js +0 -96
- package/dist/solutions-components/p-bd19837e.entry.js.map +0 -1
- package/dist/solutions-components/p-be1ed982.entry.js +0 -1121
- package/dist/solutions-components/p-be1ed982.entry.js.map +0 -1
- package/dist/solutions-components/p-be8cc144.entry.js +0 -567
- package/dist/solutions-components/p-be8cc144.entry.js.map +0 -1
- package/dist/solutions-components/p-bfd20deb.entry.js +0 -80
- package/dist/solutions-components/p-bfd20deb.entry.js.map +0 -1
- package/dist/solutions-components/p-c2c8442d.entry.js +0 -140
- package/dist/solutions-components/p-c2c8442d.entry.js.map +0 -1
- package/dist/solutions-components/p-c3f93cec.entry.js +0 -158
- package/dist/solutions-components/p-c3f93cec.entry.js.map +0 -1
- package/dist/solutions-components/p-c9870dc4.entry.js +0 -38
- package/dist/solutions-components/p-c9870dc4.entry.js.map +0 -1
- package/dist/solutions-components/p-cbd9fecf.js.map +0 -1
- package/dist/solutions-components/p-cfb300c6.entry.js +0 -250
- package/dist/solutions-components/p-cfb300c6.entry.js.map +0 -1
- package/dist/solutions-components/p-d48a24e6.js.map +0 -1
- package/dist/solutions-components/p-dbad98e8.js.map +0 -1
- package/dist/solutions-components/p-dd79118e.entry.js +0 -708
- package/dist/solutions-components/p-dd79118e.entry.js.map +0 -1
- package/dist/solutions-components/p-de5416e8.js.map +0 -1
- package/dist/solutions-components/p-de881187.entry.js +0 -87
- package/dist/solutions-components/p-de881187.entry.js.map +0 -1
- package/dist/solutions-components/p-e1905f7b.entry.js +0 -120
- package/dist/solutions-components/p-e1905f7b.entry.js.map +0 -1
- package/dist/solutions-components/p-e515767a.entry.js +0 -116
- package/dist/solutions-components/p-e515767a.entry.js.map +0 -1
- package/dist/solutions-components/p-e611d8c8.js.map +0 -1
- package/dist/solutions-components/p-e6a695a5.js.map +0 -1
- package/dist/solutions-components/p-e947d3b0.js.map +0 -1
- package/dist/solutions-components/p-e99b1247.js.map +0 -1
- package/dist/solutions-components/p-eb5b78c3.entry.js +0 -125
- package/dist/solutions-components/p-eb5b78c3.entry.js.map +0 -1
- package/dist/solutions-components/p-eb976965.js.map +0 -1
- package/dist/solutions-components/p-ed075c2f.entry.js +0 -186
- package/dist/solutions-components/p-ed075c2f.entry.js.map +0 -1
- package/dist/solutions-components/p-eeb0321d.js.map +0 -1
- package/dist/solutions-components/p-f0294899.entry.js +0 -84
- package/dist/solutions-components/p-f0294899.entry.js.map +0 -1
- package/dist/solutions-components/p-f477f146.entry.js +0 -310
- package/dist/solutions-components/p-f477f146.entry.js.map +0 -1
- package/dist/solutions-components/p-f48821a2.js.map +0 -1
- package/dist/solutions-components/p-f496ed0c.entry.js +0 -150
- package/dist/solutions-components/p-f496ed0c.entry.js.map +0 -1
- package/dist/solutions-components/p-f5268b4f.entry.js +0 -60
- package/dist/solutions-components/p-f5268b4f.entry.js.map +0 -1
- package/dist/solutions-components/p-f759a6e7.js.map +0 -1
- package/dist/solutions-components/p-fc884dd6.js.map +0 -1
- package/dist/solutions-components/p-fe0fdd8b.js.map +0 -1
- package/dist/solutions-components/solutions-components.esm.js.map +0 -1
@@ -1,445 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './p-58c69df2.js';
|
7
|
-
import { f as focusElement, a as getSlotted, h as ensureId, j as isCalciteFocusable } from './p-32a67cb2.js';
|
8
|
-
import { c as createObserver } from './p-9a9955db.js';
|
9
|
-
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './p-5cf33602.js';
|
10
|
-
import { c as connectOpenCloseComponent, d as disconnectOpenCloseComponent } from './p-2e9ed892.js';
|
11
|
-
import './p-729708a3.js';
|
12
|
-
import './p-a80b3880.js';
|
13
|
-
|
14
|
-
/**
|
15
|
-
* Traverses the slots of the open shadowroots and returns all children matching the query.
|
16
|
-
* @param {ShadowRoot | HTMLElement} root
|
17
|
-
* @param skipNode
|
18
|
-
* @param isMatch
|
19
|
-
* @param {number} maxDepth
|
20
|
-
* @param {number} depth
|
21
|
-
* @returns {HTMLElement[]}
|
22
|
-
*/
|
23
|
-
function queryShadowRoot(root, skipNode, isMatch, maxDepth = 20, depth = 0) {
|
24
|
-
let matches = [];
|
25
|
-
// If the depth is above the max depth, abort the searching here.
|
26
|
-
if (depth >= maxDepth) {
|
27
|
-
return matches;
|
28
|
-
}
|
29
|
-
// Traverses a slot element
|
30
|
-
const traverseSlot = ($slot) => {
|
31
|
-
// Only check nodes that are of the type Node.ELEMENT_NODE
|
32
|
-
// Read more here https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
33
|
-
const assignedNodes = $slot.assignedNodes().filter(node => node.nodeType === 1);
|
34
|
-
if (assignedNodes.length > 0) {
|
35
|
-
return queryShadowRoot(assignedNodes[0].parentElement, skipNode, isMatch, maxDepth, depth + 1);
|
36
|
-
}
|
37
|
-
return [];
|
38
|
-
};
|
39
|
-
// Go through each child and continue the traversing if necessary
|
40
|
-
// Even though the typing says that children can't be undefined, Edge 15 sometimes gives an undefined value.
|
41
|
-
// Therefore we fallback to an empty array if it is undefined.
|
42
|
-
const children = Array.from(root.children || []);
|
43
|
-
for (const $child of children) {
|
44
|
-
// Check if the node and its descendants should be skipped
|
45
|
-
if (skipNode($child)) {
|
46
|
-
continue;
|
47
|
-
}
|
48
|
-
// If the child matches we always add it
|
49
|
-
if (isMatch($child)) {
|
50
|
-
matches.push($child);
|
51
|
-
}
|
52
|
-
if ($child.shadowRoot != null) {
|
53
|
-
matches.push(...queryShadowRoot($child.shadowRoot, skipNode, isMatch, maxDepth, depth + 1));
|
54
|
-
}
|
55
|
-
else if ($child.tagName === "SLOT") {
|
56
|
-
matches.push(...traverseSlot($child));
|
57
|
-
}
|
58
|
-
else {
|
59
|
-
matches.push(...queryShadowRoot($child, skipNode, isMatch, maxDepth, depth + 1));
|
60
|
-
}
|
61
|
-
}
|
62
|
-
return matches;
|
63
|
-
}
|
64
|
-
|
65
|
-
/**
|
66
|
-
* Returns whether the element is hidden.
|
67
|
-
* @param $elem
|
68
|
-
*/
|
69
|
-
function isHidden($elem) {
|
70
|
-
return $elem.hasAttribute("hidden")
|
71
|
-
|| ($elem.hasAttribute("aria-hidden") && $elem.getAttribute("aria-hidden") !== "false")
|
72
|
-
// A quick and dirty way to check whether the element is hidden.
|
73
|
-
// For a more fine-grained check we could use "window.getComputedStyle" but we don't because of bad performance.
|
74
|
-
// If the element has visibility set to "hidden" or "collapse", display set to "none" or opacity set to "0" through CSS
|
75
|
-
// we won't be able to catch it here. We accept it due to the huge performance benefits.
|
76
|
-
|| $elem.style.display === `none`
|
77
|
-
|| $elem.style.opacity === `0`
|
78
|
-
|| $elem.style.visibility === `hidden`
|
79
|
-
|| $elem.style.visibility === `collapse`;
|
80
|
-
// If offsetParent is null we can assume that the element is hidden
|
81
|
-
// https://stackoverflow.com/questions/306305/what-would-make-offsetparent-null
|
82
|
-
//|| $elem.offsetParent == null;
|
83
|
-
}
|
84
|
-
/**
|
85
|
-
* Returns whether the element is disabled.
|
86
|
-
* @param $elem
|
87
|
-
*/
|
88
|
-
function isDisabled($elem) {
|
89
|
-
return $elem.hasAttribute("disabled")
|
90
|
-
|| ($elem.hasAttribute("aria-disabled") && $elem.getAttribute("aria-disabled") !== "false");
|
91
|
-
}
|
92
|
-
/**
|
93
|
-
* Determines whether an element is focusable.
|
94
|
-
* Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194
|
95
|
-
* Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable
|
96
|
-
* @param $elem
|
97
|
-
*/
|
98
|
-
function isFocusable($elem) {
|
99
|
-
// Discard elements that are removed from the tab order.
|
100
|
-
if ($elem.getAttribute("tabindex") === "-1" || isHidden($elem) || isDisabled($elem)) {
|
101
|
-
return false;
|
102
|
-
}
|
103
|
-
return (
|
104
|
-
// At this point we know that the element can have focus (eg. won't be -1) if the tabindex attribute exists
|
105
|
-
$elem.hasAttribute("tabindex")
|
106
|
-
// Anchor tags or area tags with a href set
|
107
|
-
|| ($elem instanceof HTMLAnchorElement || $elem instanceof HTMLAreaElement) && $elem.hasAttribute("href")
|
108
|
-
// Form elements which are not disabled
|
109
|
-
|| ($elem instanceof HTMLButtonElement
|
110
|
-
|| $elem instanceof HTMLInputElement
|
111
|
-
|| $elem instanceof HTMLTextAreaElement
|
112
|
-
|| $elem instanceof HTMLSelectElement)
|
113
|
-
// IFrames
|
114
|
-
|| $elem instanceof HTMLIFrameElement);
|
115
|
-
}
|
116
|
-
|
117
|
-
/*!
|
118
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
119
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
120
|
-
* v1.0.0-beta.97
|
121
|
-
*/
|
122
|
-
const CSS = {
|
123
|
-
modal: "modal",
|
124
|
-
modalOpen: "modal--open",
|
125
|
-
title: "title",
|
126
|
-
header: "header",
|
127
|
-
footer: "footer",
|
128
|
-
scrim: "scrim",
|
129
|
-
back: "back",
|
130
|
-
close: "close",
|
131
|
-
secondary: "secondary",
|
132
|
-
primary: "primary",
|
133
|
-
overflowHidden: "overflow-hidden",
|
134
|
-
// these classes help apply the animation in phases to only set transform on open/close
|
135
|
-
// this helps avoid a positioning issue for any floating-ui-owning children
|
136
|
-
openingIdle: "modal--opening-idle",
|
137
|
-
openingActive: "modal--opening-active",
|
138
|
-
closingIdle: "modal--closing-idle",
|
139
|
-
closingActive: "modal--closing-active"
|
140
|
-
};
|
141
|
-
const ICONS = {
|
142
|
-
close: "x"
|
143
|
-
};
|
144
|
-
const SLOTS = {
|
145
|
-
content: "content",
|
146
|
-
header: "header",
|
147
|
-
back: "back",
|
148
|
-
secondary: "secondary",
|
149
|
-
primary: "primary"
|
150
|
-
};
|
151
|
-
const TEXT = {
|
152
|
-
close: "Close"
|
153
|
-
};
|
154
|
-
|
155
|
-
const modalCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:fixed;inset:0px;z-index:700;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1);--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0);--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1);--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:800;float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([open]){opacity:1;visibility:visible !important;transition-delay:0ms}:host([open]) .modal--open{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:400;display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding, var(--calcite-model-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text, var(--calcite-modal-title-text-internal))}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-block-size:calc(100vh - 12rem)}.content--spaced{padding:var(--calcite-modal-padding)}.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal))}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{z-index:400;-webkit-margin-before:auto;margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;-webkit-margin-end:auto;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-inline-size:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width=s][docked]){align-items:flex-end}}:host([width=m]) .modal{max-inline-size:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width=m][docked]){align-items:flex-end}}:host([width=l]) .modal{max-inline-size:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width=l][docked]){align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([open][fullscreen]) .header{border-radius:0}:host([open][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{block-size:auto}:host([docked]) .content{block-size:auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer{flex-direction:column}.back,.secondary{margin:0px;-webkit-margin-after:0.25rem;margin-block-end:0.25rem}}";
|
156
|
-
|
157
|
-
const isFocusableExtended = (el) => {
|
158
|
-
return isCalciteFocusable(el) || isFocusable(el);
|
159
|
-
};
|
160
|
-
const getFocusableElements = (el) => {
|
161
|
-
return queryShadowRoot(el, isHidden, isFocusableExtended);
|
162
|
-
};
|
163
|
-
const Modal = class {
|
164
|
-
constructor(hostRef) {
|
165
|
-
registerInstance(this, hostRef);
|
166
|
-
this.calciteModalBeforeClose = createEvent(this, "calciteModalBeforeClose", 6);
|
167
|
-
this.calciteModalClose = createEvent(this, "calciteModalClose", 6);
|
168
|
-
this.calciteModalBeforeOpen = createEvent(this, "calciteModalBeforeOpen", 6);
|
169
|
-
this.calciteModalOpen = createEvent(this, "calciteModalOpen", 6);
|
170
|
-
//--------------------------------------------------------------------------
|
171
|
-
//
|
172
|
-
// Properties
|
173
|
-
//
|
174
|
-
//--------------------------------------------------------------------------
|
175
|
-
/**
|
176
|
-
* When `true`, the component is active.
|
177
|
-
*
|
178
|
-
* @deprecated use `open` instead.
|
179
|
-
*/
|
180
|
-
this.active = false;
|
181
|
-
/** When `true`, displays and positions the component. */
|
182
|
-
this.open = false;
|
183
|
-
/** Passes a function to run before the component closes. */
|
184
|
-
this.beforeClose = () => Promise.resolve();
|
185
|
-
/** When `true`, disables the component's close button. */
|
186
|
-
this.disableCloseButton = false;
|
187
|
-
/** When `true`, disables the closing of the component when clicked outside. */
|
188
|
-
this.disableOutsideClose = false;
|
189
|
-
/** Accessible name for the component's close button. */
|
190
|
-
this.intlClose = TEXT.close;
|
191
|
-
/** When `true`, disables the default close on escape behavior. */
|
192
|
-
this.disableEscape = false;
|
193
|
-
/** Specifies the size of the component. */
|
194
|
-
this.scale = "m";
|
195
|
-
/** Specifies the width of the component. Can use scale sizes or pass a number (displays in pixels). */
|
196
|
-
this.width = "m";
|
197
|
-
/** Sets the background color of the component's content. */
|
198
|
-
this.backgroundColor = "white";
|
199
|
-
/**
|
200
|
-
* When `true`, disables spacing to the content area slot.
|
201
|
-
*
|
202
|
-
* @deprecated Use `--calcite-modal-padding` CSS variable instead.
|
203
|
-
*/
|
204
|
-
this.noPadding = false;
|
205
|
-
//--------------------------------------------------------------------------
|
206
|
-
//
|
207
|
-
// Variables
|
208
|
-
//
|
209
|
-
//--------------------------------------------------------------------------
|
210
|
-
this.hasFooter = true;
|
211
|
-
/**
|
212
|
-
* We use internal variable to make sure initially open modal can transition from closed state when rendered
|
213
|
-
*
|
214
|
-
* @private
|
215
|
-
*/
|
216
|
-
this.isOpen = false;
|
217
|
-
this.mutationObserver = createObserver("mutation", () => this.updateFooterVisibility());
|
218
|
-
this.openTransitionProp = "opacity";
|
219
|
-
//--------------------------------------------------------------------------
|
220
|
-
//
|
221
|
-
// Private Methods
|
222
|
-
//
|
223
|
-
//--------------------------------------------------------------------------
|
224
|
-
this.setTransitionEl = (el) => {
|
225
|
-
this.transitionEl = el;
|
226
|
-
connectOpenCloseComponent(this);
|
227
|
-
};
|
228
|
-
this.openEnd = () => {
|
229
|
-
this.setFocus();
|
230
|
-
this.el.removeEventListener("calciteModalOpen", this.openEnd);
|
231
|
-
};
|
232
|
-
this.handleOutsideClose = () => {
|
233
|
-
if (this.disableOutsideClose) {
|
234
|
-
return;
|
235
|
-
}
|
236
|
-
this.close();
|
237
|
-
};
|
238
|
-
/** Close the modal, first running the `beforeClose` method */
|
239
|
-
this.close = () => {
|
240
|
-
return this.beforeClose(this.el).then(() => {
|
241
|
-
this.open = false;
|
242
|
-
this.isOpen = false;
|
243
|
-
focusElement(this.previousActiveElement);
|
244
|
-
this.removeOverflowHiddenClass();
|
245
|
-
});
|
246
|
-
};
|
247
|
-
this.focusFirstElement = () => {
|
248
|
-
focusElement(this.disableCloseButton ? getFocusableElements(this.el)[0] : this.closeButtonEl);
|
249
|
-
};
|
250
|
-
this.focusLastElement = () => {
|
251
|
-
const focusableElements = getFocusableElements(this.el).filter((el) => !el.getAttribute("data-focus-fence"));
|
252
|
-
if (focusableElements.length > 0) {
|
253
|
-
focusElement(focusableElements[focusableElements.length - 1]);
|
254
|
-
}
|
255
|
-
else {
|
256
|
-
focusElement(this.closeButtonEl);
|
257
|
-
}
|
258
|
-
};
|
259
|
-
this.updateFooterVisibility = () => {
|
260
|
-
this.hasFooter = !!getSlotted(this.el, [SLOTS.back, SLOTS.primary, SLOTS.secondary]);
|
261
|
-
};
|
262
|
-
}
|
263
|
-
//--------------------------------------------------------------------------
|
264
|
-
//
|
265
|
-
// Lifecycle
|
266
|
-
//
|
267
|
-
//--------------------------------------------------------------------------
|
268
|
-
componentWillLoad() {
|
269
|
-
// when modal initially renders, if active was set we need to open as watcher doesn't fire
|
270
|
-
if (this.open) {
|
271
|
-
requestAnimationFrame(() => this.openModal());
|
272
|
-
}
|
273
|
-
}
|
274
|
-
connectedCallback() {
|
275
|
-
var _a;
|
276
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
277
|
-
this.updateFooterVisibility();
|
278
|
-
connectConditionalSlotComponent(this);
|
279
|
-
connectOpenCloseComponent(this);
|
280
|
-
if (this.open) {
|
281
|
-
this.active = this.open;
|
282
|
-
}
|
283
|
-
if (this.active) {
|
284
|
-
this.activeHandler(this.active);
|
285
|
-
}
|
286
|
-
}
|
287
|
-
disconnectedCallback() {
|
288
|
-
var _a;
|
289
|
-
this.removeOverflowHiddenClass();
|
290
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
291
|
-
disconnectConditionalSlotComponent(this);
|
292
|
-
disconnectOpenCloseComponent(this);
|
293
|
-
}
|
294
|
-
render() {
|
295
|
-
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: {
|
296
|
-
[CSS.modal]: true,
|
297
|
-
[CSS.modalOpen]: this.isOpen
|
298
|
-
}, ref: this.setTransitionEl }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS.header }, this.renderCloseButton(), h("header", { class: CSS.title }, h("slot", { name: CSS.header }))), h("div", { class: {
|
299
|
-
content: true,
|
300
|
-
"content--spaced": !this.noPadding,
|
301
|
-
"content--no-footer": !this.hasFooter
|
302
|
-
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
303
|
-
}
|
304
|
-
renderFooter() {
|
305
|
-
return this.hasFooter ? (h("div", { class: CSS.footer, key: "footer" }, h("span", { class: CSS.back }, h("slot", { name: SLOTS.back })), h("span", { class: CSS.secondary }, h("slot", { name: SLOTS.secondary })), h("span", { class: CSS.primary }, h("slot", { name: SLOTS.primary })))) : null;
|
306
|
-
}
|
307
|
-
renderCloseButton() {
|
308
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
309
|
-
}
|
310
|
-
renderStyle() {
|
311
|
-
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
312
|
-
return hasCustomWidth ? (h("style", null, `
|
313
|
-
.${CSS.modal} {
|
314
|
-
max-width: ${this.width}px !important;
|
315
|
-
}
|
316
|
-
@media screen and (max-width: ${this.width}px) {
|
317
|
-
.${CSS.modal} {
|
318
|
-
height: 100% !important;
|
319
|
-
max-height: 100% !important;
|
320
|
-
width: 100% !important;
|
321
|
-
max-width: 100% !important;
|
322
|
-
margin: 0 !important;
|
323
|
-
border-radius: 0 !important;
|
324
|
-
}
|
325
|
-
.content {
|
326
|
-
flex: 1 1 auto !important;
|
327
|
-
max-height: unset !important;
|
328
|
-
}
|
329
|
-
}
|
330
|
-
`)) : null;
|
331
|
-
}
|
332
|
-
//--------------------------------------------------------------------------
|
333
|
-
//
|
334
|
-
// Event Listeners
|
335
|
-
//
|
336
|
-
//--------------------------------------------------------------------------
|
337
|
-
handleEscape(event) {
|
338
|
-
if (this.open && !this.disableEscape && event.key === "Escape" && !event.defaultPrevented) {
|
339
|
-
this.close();
|
340
|
-
event.preventDefault();
|
341
|
-
}
|
342
|
-
}
|
343
|
-
//--------------------------------------------------------------------------
|
344
|
-
//
|
345
|
-
// Public Methods
|
346
|
-
//
|
347
|
-
//--------------------------------------------------------------------------
|
348
|
-
/**
|
349
|
-
* Focus the first interactive element.
|
350
|
-
*
|
351
|
-
* @param el
|
352
|
-
* @deprecated use `setFocus` instead.
|
353
|
-
*/
|
354
|
-
async focusElement(el) {
|
355
|
-
if (el) {
|
356
|
-
el.focus();
|
357
|
-
}
|
358
|
-
return this.setFocus();
|
359
|
-
}
|
360
|
-
/**
|
361
|
-
* Sets focus on the component.
|
362
|
-
*
|
363
|
-
* By default, tries to focus on focusable content. If there is none, it will focus on the close button.
|
364
|
-
* To focus on the close button, use the `close-button` focus ID.
|
365
|
-
*
|
366
|
-
* @param focusId
|
367
|
-
*/
|
368
|
-
async setFocus(focusId) {
|
369
|
-
const closeButton = this.closeButtonEl;
|
370
|
-
return focusElement(focusId === "close-button" ? closeButton : getFocusableElements(this.el)[0] || closeButton);
|
371
|
-
}
|
372
|
-
/**
|
373
|
-
* Sets the scroll top of the component's content.
|
374
|
-
*
|
375
|
-
* @param top
|
376
|
-
* @param left
|
377
|
-
*/
|
378
|
-
async scrollContent(top = 0, left = 0) {
|
379
|
-
if (this.modalContent) {
|
380
|
-
if (this.modalContent.scrollTo) {
|
381
|
-
this.modalContent.scrollTo({ top, left, behavior: "smooth" });
|
382
|
-
}
|
383
|
-
else {
|
384
|
-
this.modalContent.scrollTop = top;
|
385
|
-
this.modalContent.scrollLeft = left;
|
386
|
-
}
|
387
|
-
}
|
388
|
-
}
|
389
|
-
onBeforeOpen() {
|
390
|
-
this.transitionEl.classList.add(CSS.openingActive);
|
391
|
-
this.calciteModalBeforeOpen.emit();
|
392
|
-
}
|
393
|
-
onOpen() {
|
394
|
-
this.transitionEl.classList.remove(CSS.openingIdle, CSS.openingActive);
|
395
|
-
this.calciteModalOpen.emit();
|
396
|
-
}
|
397
|
-
onBeforeClose() {
|
398
|
-
this.transitionEl.classList.add(CSS.closingActive);
|
399
|
-
this.calciteModalBeforeClose.emit();
|
400
|
-
}
|
401
|
-
onClose() {
|
402
|
-
this.transitionEl.classList.remove(CSS.closingIdle, CSS.closingActive);
|
403
|
-
this.calciteModalClose.emit();
|
404
|
-
}
|
405
|
-
activeHandler(value) {
|
406
|
-
this.open = value;
|
407
|
-
}
|
408
|
-
async toggleModal(value) {
|
409
|
-
var _a, _b;
|
410
|
-
this.active = value;
|
411
|
-
if (value) {
|
412
|
-
(_a = this.transitionEl) === null || _a === void 0 ? void 0 : _a.classList.add(CSS.openingIdle);
|
413
|
-
this.openModal();
|
414
|
-
}
|
415
|
-
else {
|
416
|
-
(_b = this.transitionEl) === null || _b === void 0 ? void 0 : _b.classList.add(CSS.closingIdle);
|
417
|
-
this.close();
|
418
|
-
}
|
419
|
-
}
|
420
|
-
/** Open the modal */
|
421
|
-
openModal() {
|
422
|
-
this.previousActiveElement = document.activeElement;
|
423
|
-
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
424
|
-
this.open = true;
|
425
|
-
this.isOpen = true;
|
426
|
-
const titleEl = getSlotted(this.el, SLOTS.header);
|
427
|
-
const contentEl = getSlotted(this.el, SLOTS.content);
|
428
|
-
this.titleId = ensureId(titleEl);
|
429
|
-
this.contentId = ensureId(contentEl);
|
430
|
-
document.documentElement.classList.add(CSS.overflowHidden);
|
431
|
-
}
|
432
|
-
removeOverflowHiddenClass() {
|
433
|
-
document.documentElement.classList.remove(CSS.overflowHidden);
|
434
|
-
}
|
435
|
-
get el() { return getElement(this); }
|
436
|
-
static get watchers() { return {
|
437
|
-
"active": ["activeHandler"],
|
438
|
-
"open": ["toggleModal"]
|
439
|
-
}; }
|
440
|
-
};
|
441
|
-
Modal.style = modalCss;
|
442
|
-
|
443
|
-
export { Modal as calcite_modal };
|
444
|
-
|
445
|
-
//# sourceMappingURL=p-30a6199a.entry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,CAAC,SAAS,CAAC,CAAC;IACrC,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;GAC5D;EACD,yBAAyB;IACvB,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;GAC/D;;;;;;;;;;;","names":[],"sources":["./node_modules/@a11y/focus-trap/shadow.js","./node_modules/@a11y/focus-trap/focusable.js","./node_modules/@esri/calcite-components/dist/collection/components/modal/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css?tag=calcite-modal&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/modal/modal.js"],"sourcesContent":["/**\n * Traverses the slots of the open shadowroots and returns all children matching the query.\n * @param {ShadowRoot | HTMLElement} root\n * @param skipNode\n * @param isMatch\n * @param {number} maxDepth\n * @param {number} depth\n * @returns {HTMLElement[]}\n */\nexport function queryShadowRoot(root, skipNode, isMatch, maxDepth = 20, depth = 0) {\n let matches = [];\n // If the depth is above the max depth, abort the searching here.\n if (depth >= maxDepth) {\n return matches;\n }\n // Traverses a slot element\n const traverseSlot = ($slot) => {\n // Only check nodes that are of the type Node.ELEMENT_NODE\n // Read more here https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const assignedNodes = $slot.assignedNodes().filter(node => node.nodeType === 1);\n if (assignedNodes.length > 0) {\n return queryShadowRoot(assignedNodes[0].parentElement, skipNode, isMatch, maxDepth, depth + 1);\n }\n return [];\n };\n // Go through each child and continue the traversing if necessary\n // Even though the typing says that children can't be undefined, Edge 15 sometimes gives an undefined value.\n // Therefore we fallback to an empty array if it is undefined.\n const children = Array.from(root.children || []);\n for (const $child of children) {\n // Check if the node and its descendants should be skipped\n if (skipNode($child)) {\n continue;\n }\n // If the child matches we always add it\n if (isMatch($child)) {\n matches.push($child);\n }\n if ($child.shadowRoot != null) {\n matches.push(...queryShadowRoot($child.shadowRoot, skipNode, isMatch, maxDepth, depth + 1));\n }\n else if ($child.tagName === \"SLOT\") {\n matches.push(...traverseSlot($child));\n }\n else {\n matches.push(...queryShadowRoot($child, skipNode, isMatch, maxDepth, depth + 1));\n }\n }\n return matches;\n}\n//# sourceMappingURL=shadow.js.map","/**\n * Returns whether the element is hidden.\n * @param $elem\n */\nexport function isHidden($elem) {\n return $elem.hasAttribute(\"hidden\")\n || ($elem.hasAttribute(\"aria-hidden\") && $elem.getAttribute(\"aria-hidden\") !== \"false\")\n // A quick and dirty way to check whether the element is hidden.\n // For a more fine-grained check we could use \"window.getComputedStyle\" but we don't because of bad performance.\n // If the element has visibility set to \"hidden\" or \"collapse\", display set to \"none\" or opacity set to \"0\" through CSS\n // we won't be able to catch it here. We accept it due to the huge performance benefits.\n || $elem.style.display === `none`\n || $elem.style.opacity === `0`\n || $elem.style.visibility === `hidden`\n || $elem.style.visibility === `collapse`;\n // If offsetParent is null we can assume that the element is hidden\n // https://stackoverflow.com/questions/306305/what-would-make-offsetparent-null\n //|| $elem.offsetParent == null;\n}\n/**\n * Returns whether the element is disabled.\n * @param $elem\n */\nexport function isDisabled($elem) {\n return $elem.hasAttribute(\"disabled\")\n || ($elem.hasAttribute(\"aria-disabled\") && $elem.getAttribute(\"aria-disabled\") !== \"false\");\n}\n/**\n * Determines whether an element is focusable.\n * Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194\n * Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable\n * @param $elem\n */\nexport function isFocusable($elem) {\n // Discard elements that are removed from the tab order.\n if ($elem.getAttribute(\"tabindex\") === \"-1\" || isHidden($elem) || isDisabled($elem)) {\n return false;\n }\n return (\n // At this point we know that the element can have focus (eg. won't be -1) if the tabindex attribute exists\n $elem.hasAttribute(\"tabindex\")\n // Anchor tags or area tags with a href set\n || ($elem instanceof HTMLAnchorElement || $elem instanceof HTMLAreaElement) && $elem.hasAttribute(\"href\")\n // Form elements which are not disabled\n || ($elem instanceof HTMLButtonElement\n || $elem instanceof HTMLInputElement\n || $elem instanceof HTMLTextAreaElement\n || $elem instanceof HTMLSelectElement)\n // IFrames\n || $elem instanceof HTMLIFrameElement);\n}\n//# sourceMappingURL=focusable.js.map","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n modal: \"modal\",\n modalOpen: \"modal--open\",\n title: \"title\",\n header: \"header\",\n footer: \"footer\",\n scrim: \"scrim\",\n back: \"back\",\n close: \"close\",\n secondary: \"secondary\",\n primary: \"primary\",\n overflowHidden: \"overflow-hidden\",\n // these classes help apply the animation in phases to only set transform on open/close\n // this helps avoid a positioning issue for any floating-ui-owning children\n openingIdle: \"modal--opening-idle\",\n openingActive: \"modal--opening-active\",\n closingIdle: \"modal--closing-idle\",\n closingActive: \"modal--closing-active\"\n};\nexport const ICONS = {\n close: \"x\"\n};\nexport const SLOTS = {\n content: \"content\",\n header: \"header\",\n back: \"back\",\n secondary: \"secondary\",\n primary: \"primary\"\n};\nexport const TEXT = {\n close: \"Close\"\n};\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-modal-content-text: [Deprecated] The component content's font size.\n* @prop --calcite-modal-padding: [Deprecated] The padding around content area slot.\n* @prop --calcite-modal-padding-large: [Deprecated] The left/right padding around items within the component.\n* @prop --calcite-modal-title-text: [Deprecated] The component title's font size.\n* @prop --calcite-scrim-background: [Deprecated] The component's semi-transparent background color.\n*/\n:host {\n position: fixed;\n inset: 0px;\n z-index: 700;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow-y: hidden;\n color: var(--calcite-ui-text-2);\n opacity: 0;\n visibility: hidden !important;\n transition: visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);\n}\n\n:host([scale=s]) {\n --calcite-modal-padding: 0.75rem;\n --calcite-modal-padding-large: 1rem;\n --calcite-modal-title-text: var(--calcite-font-size-1);\n --calcite-modal-content-text: var(--calcite-font-size--1);\n --calcite-modal-padding-internal: 0.75rem;\n --calcite-modal-padding-large-internal: 1rem;\n --calcite-modal-title-text-internal: var(--calcite-font-size-1);\n --calcite-modal-content-text-internal: var(--calcite-font-size--1);\n}\n\n:host([scale=m]) {\n --calcite-modal-padding: 1rem;\n --calcite-modal-padding-large: 1.25rem;\n --calcite-modal-title-text: var(--calcite-font-size-2);\n --calcite-modal-content-text: var(--calcite-font-size-0);\n --calcite-modal-padding-internal: 1rem;\n --calcite-modal-padding-large-internal: 1.25rem;\n --calcite-modal-title-text-internal: var(--calcite-font-size-2);\n --calcite-modal-content-text-internal: var(--calcite-font-size-0);\n}\n\n:host([scale=l]) {\n --calcite-modal-padding: 1.25rem;\n --calcite-modal-padding-large: 1.5rem;\n --calcite-modal-title-text: var(--calcite-font-size-3);\n --calcite-modal-content-text: var(--calcite-font-size-1);\n --calcite-modal-padding-internal: 1.25rem;\n --calcite-modal-padding-large-internal: 1.5rem;\n --calcite-modal-title-text-internal: var(--calcite-font-size-3);\n --calcite-modal-content-text-internal: var(--calcite-font-size-1);\n}\n\n.scrim {\n --calcite-scrim-background: rgba(0, 0, 0, 0.75);\n position: fixed;\n inset: 0px;\n display: flex;\n overflow-y: hidden;\n}\n\n.modal {\n pointer-events: none;\n z-index: 800;\n float: none;\n margin: 1.5rem;\n box-sizing: border-box;\n display: flex;\n inline-size: 100%;\n flex-direction: column;\n overflow: hidden;\n border-radius: 0.25rem;\n background-color: var(--calcite-ui-foreground-1);\n opacity: 0;\n --tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);\n --tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n -webkit-overflow-scrolling: touch;\n visibility: hidden;\n transition: transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);\n --calcite-modal-hidden-position: translate3d(0, 20px, 0);\n --calcite-modal-shown-position: translate3d(0, 0, 0);\n}\n.modal--opening-idle {\n transform: var(--calcite-modal-hidden-position);\n}\n.modal--opening-active {\n transform: var(--calcite-modal-shown-position);\n}\n.modal--closing-idle {\n transform: var(--calcite-modal-shown-position);\n}\n.modal--closing-active {\n transform: var(--calcite-modal-hidden-position);\n}\n\n:host([open]) {\n opacity: 1;\n visibility: visible !important;\n transition-delay: 0ms;\n}\n:host([open]) .modal--open {\n pointer-events: auto;\n visibility: visible;\n opacity: 1;\n transition: transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);\n transition-delay: 0ms;\n}\n\n/**\n * Header\n */\n.header {\n z-index: 400;\n display: flex;\n min-inline-size: 0px;\n max-inline-size: 100%;\n border-start-start-radius: 0.25rem;\n border-start-end-radius: 0.25rem;\n border-width: 0px;\n border-block-end-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n background-color: var(--calcite-ui-foreground-1);\n flex: 0 0 auto;\n}\n\n.close {\n order: 2;\n margin: 0px;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n border-style: none;\n background-color: transparent;\n color: var(--calcite-ui-text-3);\n outline-color: transparent;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n border-start-end-radius: 0.25rem;\n padding-block: var(--calcite-modal-padding, var(--calcite-modal-padding-internal));\n padding-inline: var(--calcite-modal-padding, var(--calcite-modal-padding-internal));\n flex: 0 0 auto;\n}\n.close calcite-icon {\n pointer-events: none;\n vertical-align: -2px;\n}\n.close:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n.close:hover, .close:focus, .close:active {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n\n.title {\n order: 1;\n display: flex;\n min-inline-size: 0px;\n align-items: center;\n flex: 1 1 auto;\n padding-block: var(--calcite-modal-padding, var(--calcite-model-padding-internal));\n padding-inline: var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal));\n}\n\nslot[name=header]::slotted(*), \n*::slotted([slot=header]) {\n margin: 0px;\n font-weight: var(--calcite-font-weight-normal);\n color: var(--calcite-ui-text-1);\n font-size: var(--calcite-modal-title-text, var(--calcite-modal-title-text-internal));\n}\n\n/**\n * Content area\n */\n.content {\n position: relative;\n box-sizing: border-box;\n display: block;\n block-size: 100%;\n overflow: auto;\n background-color: var(--calcite-ui-foreground-1);\n padding: 0px;\n max-block-size: calc(100vh - 12rem);\n}\n\n.content--spaced {\n padding: var(--calcite-modal-padding);\n}\n\n.content--no-footer {\n border-end-end-radius: 0.25rem;\n border-end-start-radius: 0.25rem;\n}\n\nslot[name=content]::slotted(*),\n*::slotted([slot=content]) {\n font-size: var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal));\n}\n\n:host([background-color=grey]) .content {\n background-color: var(--calcite-ui-background);\n}\n\n/**\n * Footer\n */\n.footer {\n z-index: 400;\n margin-block-start: auto;\n box-sizing: border-box;\n display: flex;\n inline-size: 100%;\n justify-content: space-between;\n border-end-end-radius: 0.25rem;\n border-end-start-radius: 0.25rem;\n border-width: 0px;\n border-block-start-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n background-color: var(--calcite-ui-foreground-1);\n flex: 0 0 auto;\n padding-block: var(--calcite-modal-padding, var(--calcite-modal-padding-internal));\n padding-inline: var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal));\n}\n\n.footer--hide-back .back, \n.footer--hide-secondary .secondary {\n display: none;\n}\n\n.back {\n display: block;\n margin-inline-end: auto;\n}\n\n.secondary {\n margin-inline: 0.25rem;\n display: block;\n}\n\nslot[name=primary] {\n display: block;\n}\n\n/**\n * Sizes\n */\n:host([width=small]) .modal {\n inline-size: auto;\n}\n\n:host([width=s]) .modal {\n max-inline-size: 32rem;\n}\n\n@media screen and (max-width: 35rem) {\n :host([width=s]) .modal {\n margin: 0px;\n block-size: 100%;\n max-block-size: 100%;\n inline-size: 100%;\n max-inline-size: 100%;\n border-radius: 0px;\n }\n :host([width=s]) .content {\n flex: 1 1 auto;\n max-block-size: unset;\n }\n\n :host([width=s][docked]) {\n align-items: flex-end;\n }\n}\n:host([width=m]) .modal {\n max-inline-size: 48rem;\n}\n\n@media screen and (max-width: 51rem) {\n :host([width=m]) .modal {\n margin: 0px;\n block-size: 100%;\n max-block-size: 100%;\n inline-size: 100%;\n max-inline-size: 100%;\n border-radius: 0px;\n }\n :host([width=m]) .content {\n flex: 1 1 auto;\n max-block-size: unset;\n }\n\n :host([width=m][docked]) {\n align-items: flex-end;\n }\n}\n:host([width=l]) .modal {\n max-inline-size: 94rem;\n}\n\n@media screen and (max-width: 97rem) {\n :host([width=l]) .modal {\n margin: 0px;\n block-size: 100%;\n max-block-size: 100%;\n inline-size: 100%;\n max-inline-size: 100%;\n border-radius: 0px;\n }\n :host([width=l]) .content {\n flex: 1 1 auto;\n max-block-size: unset;\n }\n\n :host([width=l][docked]) {\n align-items: flex-end;\n }\n}\n/**\n * Fullscreen\n */\n:host([fullscreen]) {\n background-color: transparent;\n}\n:host([fullscreen]) .modal {\n margin: 0px;\n block-size: 100%;\n max-block-size: 100%;\n inline-size: 100%;\n max-inline-size: 100%;\n --calcite-modal-hidden-position: translate3D(0, 20px, 0) scale(0.95);\n --calcite-modal-shown-position: translate3D(0, 0, 0) scale(1);\n}\n:host([fullscreen]) .content {\n max-block-size: 100%;\n flex: 1 1 auto;\n}\n\n:host([open][fullscreen]) .header {\n border-radius: 0;\n}\n:host([open][fullscreen]) .footer {\n border-radius: 0;\n}\n\n/**\n * Docked\n */\n:host([docked]) .modal {\n block-size: auto;\n}\n:host([docked]) .content {\n block-size: auto;\n flex: 1 1 auto;\n}\n@media screen and (max-width: 860px) {\n :host([docked]) .modal {\n border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0;\n }\n :host([docked]) .close {\n border-start-end-radius: var(--calcite-border-radius);\n }\n}\n\n/**\n * Colors\n */\n:host([color=red]) .modal {\n border-color: var(--calcite-ui-danger);\n}\n\n:host([color=blue]) .modal {\n border-color: var(--calcite-ui-info);\n}\n\n:host([color=red]) .modal, \n:host([color=blue]) .modal {\n border-width: 0px;\n border-block-start-width: 4px;\n border-style: solid;\n}\n:host([color=red]) .header, \n:host([color=blue]) .header {\n border-radius: 0.25rem;\n border-end-end-radius: 0px;\n border-end-start-radius: 0px;\n}\n\n/**\n * Tablet\n */\n@media screen and (max-width: 860px) {\n slot[name=header]::slotted(*), \n*::slotted([slot=header]) {\n font-size: var(--calcite-font-size-1);\n }\n\n .footer {\n position: sticky;\n inset-block-end: 0px;\n }\n}\n/**\n * Mobile\n */\n@media screen and (max-width: 480px) {\n .footer {\n flex-direction: column;\n }\n\n .back, \n.secondary {\n margin: 0px;\n margin-block-end: 0.25rem;\n }\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h, Host } from \"@stencil/core\";\nimport { ensureId, focusElement, getSlotted, isCalciteFocusable } from \"../../utils/dom\";\nimport { queryShadowRoot } from \"@a11y/focus-trap/shadow\";\nimport { isFocusable, isHidden } from \"@a11y/focus-trap/focusable\";\nimport { CSS, ICONS, SLOTS, TEXT } from \"./resources\";\nimport { createObserver } from \"../../utils/observers\";\nimport { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from \"../../utils/conditionalSlot\";\nimport { connectOpenCloseComponent, disconnectOpenCloseComponent } from \"../../utils/openCloseComponent\";\nconst isFocusableExtended = (el) => {\n return isCalciteFocusable(el) || isFocusable(el);\n};\nconst getFocusableElements = (el) => {\n return queryShadowRoot(el, isHidden, isFocusableExtended);\n};\n/**\n * @slot header - A slot for adding header text.\n * @slot content - A slot for adding the component's content.\n * @slot primary - A slot for adding a primary button.\n * @slot secondary - A slot for adding a secondary button.\n * @slot back - A slot for adding a back button.\n */\nexport class Modal {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /**\n * When `true`, the component is active.\n *\n * @deprecated use `open` instead.\n */\n this.active = false;\n /** When `true`, displays and positions the component. */\n this.open = false;\n /** Passes a function to run before the component closes. */\n this.beforeClose = () => Promise.resolve();\n /** When `true`, disables the component's close button. */\n this.disableCloseButton = false;\n /** When `true`, disables the closing of the component when clicked outside. */\n this.disableOutsideClose = false;\n /** Accessible name for the component's close button. */\n this.intlClose = TEXT.close;\n /** When `true`, disables the default close on escape behavior. */\n this.disableEscape = false;\n /** Specifies the size of the component. */\n this.scale = \"m\";\n /** Specifies the width of the component. Can use scale sizes or pass a number (displays in pixels). */\n this.width = \"m\";\n /** Sets the background color of the component's content. */\n this.backgroundColor = \"white\";\n /**\n * When `true`, disables spacing to the content area slot.\n *\n * @deprecated Use `--calcite-modal-padding` CSS variable instead.\n */\n this.noPadding = false;\n //--------------------------------------------------------------------------\n //\n // Variables\n //\n //--------------------------------------------------------------------------\n this.hasFooter = true;\n /**\n * We use internal variable to make sure initially open modal can transition from closed state when rendered\n *\n * @private\n */\n this.isOpen = false;\n this.mutationObserver = createObserver(\"mutation\", () => this.updateFooterVisibility());\n this.openTransitionProp = \"opacity\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.setTransitionEl = (el) => {\n this.transitionEl = el;\n connectOpenCloseComponent(this);\n };\n this.openEnd = () => {\n this.setFocus();\n this.el.removeEventListener(\"calciteModalOpen\", this.openEnd);\n };\n this.handleOutsideClose = () => {\n if (this.disableOutsideClose) {\n return;\n }\n this.close();\n };\n /** Close the modal, first running the `beforeClose` method */\n this.close = () => {\n return this.beforeClose(this.el).then(() => {\n this.open = false;\n this.isOpen = false;\n focusElement(this.previousActiveElement);\n this.removeOverflowHiddenClass();\n });\n };\n this.focusFirstElement = () => {\n focusElement(this.disableCloseButton ? getFocusableElements(this.el)[0] : this.closeButtonEl);\n };\n this.focusLastElement = () => {\n const focusableElements = getFocusableElements(this.el).filter((el) => !el.getAttribute(\"data-focus-fence\"));\n if (focusableElements.length > 0) {\n focusElement(focusableElements[focusableElements.length - 1]);\n }\n else {\n focusElement(this.closeButtonEl);\n }\n };\n this.updateFooterVisibility = () => {\n this.hasFooter = !!getSlotted(this.el, [SLOTS.back, SLOTS.primary, SLOTS.secondary]);\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillLoad() {\n // when modal initially renders, if active was set we need to open as watcher doesn't fire\n if (this.open) {\n requestAnimationFrame(() => this.openModal());\n }\n }\n connectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n this.updateFooterVisibility();\n connectConditionalSlotComponent(this);\n connectOpenCloseComponent(this);\n if (this.open) {\n this.active = this.open;\n }\n if (this.active) {\n this.activeHandler(this.active);\n }\n }\n disconnectedCallback() {\n var _a;\n this.removeOverflowHiddenClass();\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n disconnectConditionalSlotComponent(this);\n disconnectOpenCloseComponent(this);\n }\n render() {\n return (h(Host, { \"aria-describedby\": this.contentId, \"aria-labelledby\": this.titleId, \"aria-modal\": \"true\", role: \"dialog\" }, h(\"calcite-scrim\", { class: CSS.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h(\"div\", { class: {\n [CSS.modal]: true,\n [CSS.modalOpen]: this.isOpen\n }, ref: this.setTransitionEl }, h(\"div\", { \"data-focus-fence\": true, onFocus: this.focusLastElement, tabindex: \"0\" }), h(\"div\", { class: CSS.header }, this.renderCloseButton(), h(\"header\", { class: CSS.title }, h(\"slot\", { name: CSS.header }))), h(\"div\", { class: {\n content: true,\n \"content--spaced\": !this.noPadding,\n \"content--no-footer\": !this.hasFooter\n }, ref: (el) => (this.modalContent = el) }, h(\"slot\", { name: SLOTS.content })), this.renderFooter(), h(\"div\", { \"data-focus-fence\": true, onFocus: this.focusFirstElement, tabindex: \"0\" }))));\n }\n renderFooter() {\n return this.hasFooter ? (h(\"div\", { class: CSS.footer, key: \"footer\" }, h(\"span\", { class: CSS.back }, h(\"slot\", { name: SLOTS.back })), h(\"span\", { class: CSS.secondary }, h(\"slot\", { name: SLOTS.secondary })), h(\"span\", { class: CSS.primary }, h(\"slot\", { name: SLOTS.primary })))) : null;\n }\n renderCloseButton() {\n return !this.disableCloseButton ? (h(\"button\", { \"aria-label\": this.intlClose, class: CSS.close, key: \"button\", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h(\"calcite-icon\", { icon: ICONS.close, scale: this.scale === \"s\" ? \"s\" : this.scale === \"m\" ? \"m\" : this.scale === \"l\" ? \"l\" : null }))) : null;\n }\n renderStyle() {\n const hasCustomWidth = !isNaN(parseInt(`${this.width}`));\n return hasCustomWidth ? (h(\"style\", null, `\n .${CSS.modal} {\n max-width: ${this.width}px !important;\n }\n @media screen and (max-width: ${this.width}px) {\n .${CSS.modal} {\n height: 100% !important;\n max-height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n }\n .content {\n flex: 1 1 auto !important;\n max-height: unset !important;\n }\n }\n `)) : null;\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n handleEscape(event) {\n if (this.open && !this.disableEscape && event.key === \"Escape\" && !event.defaultPrevented) {\n this.close();\n event.preventDefault();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Focus the first interactive element.\n *\n * @param el\n * @deprecated use `setFocus` instead.\n */\n async focusElement(el) {\n if (el) {\n el.focus();\n }\n return this.setFocus();\n }\n /**\n * Sets focus on the component.\n *\n * By default, tries to focus on focusable content. If there is none, it will focus on the close button.\n * To focus on the close button, use the `close-button` focus ID.\n *\n * @param focusId\n */\n async setFocus(focusId) {\n const closeButton = this.closeButtonEl;\n return focusElement(focusId === \"close-button\" ? closeButton : getFocusableElements(this.el)[0] || closeButton);\n }\n /**\n * Sets the scroll top of the component's content.\n *\n * @param top\n * @param left\n */\n async scrollContent(top = 0, left = 0) {\n if (this.modalContent) {\n if (this.modalContent.scrollTo) {\n this.modalContent.scrollTo({ top, left, behavior: \"smooth\" });\n }\n else {\n this.modalContent.scrollTop = top;\n this.modalContent.scrollLeft = left;\n }\n }\n }\n onBeforeOpen() {\n this.transitionEl.classList.add(CSS.openingActive);\n this.calciteModalBeforeOpen.emit();\n }\n onOpen() {\n this.transitionEl.classList.remove(CSS.openingIdle, CSS.openingActive);\n this.calciteModalOpen.emit();\n }\n onBeforeClose() {\n this.transitionEl.classList.add(CSS.closingActive);\n this.calciteModalBeforeClose.emit();\n }\n onClose() {\n this.transitionEl.classList.remove(CSS.closingIdle, CSS.closingActive);\n this.calciteModalClose.emit();\n }\n activeHandler(value) {\n this.open = value;\n }\n async toggleModal(value) {\n var _a, _b;\n this.active = value;\n if (value) {\n (_a = this.transitionEl) === null || _a === void 0 ? void 0 : _a.classList.add(CSS.openingIdle);\n this.openModal();\n }\n else {\n (_b = this.transitionEl) === null || _b === void 0 ? void 0 : _b.classList.add(CSS.closingIdle);\n this.close();\n }\n }\n /** Open the modal */\n openModal() {\n this.previousActiveElement = document.activeElement;\n this.el.addEventListener(\"calciteModalOpen\", this.openEnd);\n this.open = true;\n this.isOpen = true;\n const titleEl = getSlotted(this.el, SLOTS.header);\n const contentEl = getSlotted(this.el, SLOTS.content);\n this.titleId = ensureId(titleEl);\n this.contentId = ensureId(contentEl);\n document.documentElement.classList.add(CSS.overflowHidden);\n }\n removeOverflowHiddenClass() {\n document.documentElement.classList.remove(CSS.overflowHidden);\n }\n static get is() { return \"calcite-modal\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"modal.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"modal.css\"]\n };\n }\n static get properties() {\n return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use `open` instead.\"\n }],\n \"text\": \"When `true`, the component is active.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"open\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, displays and positions the component.\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"beforeClose\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"(el: HTMLElement) => Promise<void>\",\n \"resolved\": \"(el: HTMLElement) => Promise<void>\",\n \"references\": {\n \"HTMLElement\": {\n \"location\": \"global\"\n },\n \"Promise\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Passes a function to run before the component closes.\"\n },\n \"defaultValue\": \"() => Promise.resolve()\"\n },\n \"disableCloseButton\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, disables the component's close button.\"\n },\n \"attribute\": \"disable-close-button\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disableOutsideClose\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, disables the closing of the component when clicked outside.\"\n },\n \"attribute\": \"disable-outside-close\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlClose\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Accessible name for the component's close button.\"\n },\n \"attribute\": \"intl-close\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.close\"\n },\n \"docked\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, prevents the component from expanding to the entire screen on mobile devices.\"\n },\n \"attribute\": \"docked\",\n \"reflect\": true\n },\n \"disableEscape\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, disables the default close on escape behavior.\"\n },\n \"attribute\": \"disable-escape\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the component.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"width\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale | number\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\" | number\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the width of the component. Can use scale sizes or pass a number (displays in pixels).\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"fullscreen\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the component to always be fullscreen (overrides `width`).\"\n },\n \"attribute\": \"fullscreen\",\n \"reflect\": true\n },\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"red\\\" | \\\"blue\\\"\",\n \"resolved\": \"\\\"blue\\\" | \\\"red\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Adds a color bar to the top of component for visual impact.\\nUse color to add importance to destructive or workflow dialogs.\"\n },\n \"attribute\": \"color\",\n \"reflect\": true\n },\n \"backgroundColor\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ModalBackgroundColor\",\n \"resolved\": \"\\\"grey\\\" | \\\"white\\\"\",\n \"references\": {\n \"ModalBackgroundColor\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the background color of the component's content.\"\n },\n \"attribute\": \"background-color\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"white\\\"\"\n },\n \"noPadding\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"Use `--calcite-modal-padding` CSS variable instead.\"\n }],\n \"text\": \"When `true`, disables spacing to the content area slot.\"\n },\n \"attribute\": \"no-padding\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get states() {\n return {\n \"hasFooter\": {},\n \"isOpen\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteModalBeforeClose\",\n \"name\": \"calciteModalBeforeClose\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the component is requested to be closed and before the closing transition begins.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteModalClose\",\n \"name\": \"calciteModalClose\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the component is closed and animation is complete.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteModalBeforeOpen\",\n \"name\": \"calciteModalBeforeOpen\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the component is added to the DOM but not rendered, and before the opening transition begins.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteModalOpen\",\n \"name\": \"calciteModalOpen\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the component is open and animation is complete.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"focusElement\": {\n \"complexType\": {\n \"signature\": \"(el?: HTMLElement) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"el\"\n }],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"HTMLElement\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Focus the first interactive element.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"el\"\n }, {\n \"name\": \"deprecated\",\n \"text\": \"use `setFocus` instead.\"\n }]\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"(focusId?: \\\"close-button\\\") => Promise<void>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"focusId\"\n }],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\\n\\nBy default, tries to focus on focusable content. If there is none, it will focus on the close button.\\nTo focus on the close button, use the `close-button` focus ID.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"focusId\"\n }]\n }\n },\n \"scrollContent\": {\n \"complexType\": {\n \"signature\": \"(top?: number, left?: number) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"top\"\n }],\n \"text\": \"\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"left\"\n }],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets the scroll top of the component's content.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"top\"\n }, {\n \"name\": \"param\",\n \"text\": \"left\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"active\",\n \"methodName\": \"activeHandler\"\n }, {\n \"propName\": \"open\",\n \"methodName\": \"toggleModal\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"keydown\",\n \"method\": \"handleEscape\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"p-32a67cb2.js","mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,EAAE,EAAE;AAC7B,EAAE,IAAI,CAAC,EAAE,EAAE;AACX,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;AACpE,CAAC;AACM,SAAS,eAAe,CAAC,QAAQ,EAAE;AAC1C,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACnE,CAAC;AACM,SAAS,YAAY,CAAC,EAAE,EAAE;AACjC,EAAE,MAAM,kBAAkB,GAAG,iCAAiC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC5H,EAAE,OAAO,CAAC,kBAAkB,KAAK,IAAI,IAAI,kBAAkB,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,kBAAkB,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,MAAM,GAAG,OAAO,CA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GAAG,KAAK,CAAC,KAAK;AACnC,IAAI,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI;AAC5B,IAAI,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM;AAC5B,IAAI,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;AACnC,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,KAAK,EAAE;AAC9C,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AACnD;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/utils/dom.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { CSS_UTILITY } from \"./resources\";\nimport { guid } from \"./guid\";\n/**\n * This helper will guarantee an ID on the provided element.\n *\n * If it already has an ID, it will be preserved, otherwise a unique one will be generated and assigned.\n *\n * @param el\n * @returns {string} The element's ID.\n */\nexport function ensureId(el) {\n if (!el) {\n return \"\";\n }\n return (el.id = el.id || `${el.tagName.toLowerCase()}-${guid()}`);\n}\nexport function nodeListToArray(nodeList) {\n return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);\n}\nexport function getThemeName(el) {\n const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);\n return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains(\"calcite-theme-dark\")) ? \"dark\" : \"light\";\n}\nexport function getElementDir(el) {\n const prop = \"dir\";\n const selector = `[${prop}]`;\n const closest = closestElementCrossShadowBoundary(el, selector);\n return closest ? closest.getAttribute(prop) : \"ltr\";\n}\nexport function getElementProp(el, prop, fallbackValue) {\n const selector = `[${prop}]`;\n const closest = el.closest(selector);\n return closest ? closest.getAttribute(prop) : fallbackValue;\n}\nexport function getRootNode(el) {\n return el.getRootNode();\n}\nexport function getHost(root) {\n return root.host || null;\n}\n/**\n * This helper queries an element's rootNode and any ancestor rootNodes.\n *\n * If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.\n *\n * @param element\n * @param root0\n * @param root0.selector\n * @param root0.id\n * @returns {Element} The element.\n */\nexport function queryElementRoots(element, { selector, id }) {\n // Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.\n // Based on: https://stackoverflow.com/q/54520554/194216\n function queryFrom(el) {\n if (!el) {\n return null;\n }\n if (el.assignedSlot) {\n el = el.assignedSlot;\n }\n const rootNode = getRootNode(el);\n const found = id\n ? \"getElementById\" in rootNode\n ? /*\n Check to make sure 'getElementById' exists in cases where element is no longer connected to the DOM and getRootNode() returns the element.\n https://github.com/Esri/calcite-components/pull/4280\n */\n rootNode.getElementById(id)\n : null\n : selector\n ? rootNode.querySelector(selector)\n : null;\n const host = getHost(rootNode);\n return found ? found : host ? queryFrom(host) : null;\n }\n return queryFrom(element);\n}\nexport function closestElementCrossShadowBoundary(element, selector) {\n // based on https://stackoverflow.com/q/54520554/194216\n function closestFrom(el) {\n return el ? el.closest(selector) || closestFrom(getHost(getRootNode(el))) : null;\n }\n return closestFrom(element);\n}\n/**\n * This utility helps invoke a callback as it traverses a node and its ancestors until reaching the root document.\n *\n * Returning early or undefined in `onVisit` will continue traversing up the DOM tree. Otherwise, traversal will halt with the returned value as the result of the function\n *\n * @param element\n * @param onVisit\n */\nexport function walkUpAncestry(element, onVisit) {\n return visit(element, onVisit);\n}\nfunction visit(node, onVisit) {\n if (!node) {\n return;\n }\n const result = onVisit(node);\n if (result !== undefined) {\n return result;\n }\n const { parentNode } = node;\n return visit(parentNode instanceof ShadowRoot ? parentNode.host : parentNode, onVisit);\n}\nexport function containsCrossShadowBoundary(element, maybeDescendant) {\n return !!walkUpAncestry(maybeDescendant, (node) => (node === element ? true : undefined));\n}\nexport function isCalciteFocusable(el) {\n return typeof (el === null || el === void 0 ? void 0 : el.setFocus) === \"function\";\n}\nexport async function focusElement(el) {\n if (!el) {\n return;\n }\n return isCalciteFocusable(el) ? el.setFocus() : el.focus();\n}\nconst defaultSlotSelector = \":not([slot])\";\nexport function getSlotted(element, slotName, options) {\n if (slotName && !Array.isArray(slotName) && typeof slotName !== \"string\") {\n options = slotName;\n slotName = null;\n }\n const slotSelector = slotName\n ? Array.isArray(slotName)\n ? slotName.map((name) => `[slot=\"${name}\"]`).join(\",\")\n : `[slot=\"${slotName}\"]`\n : defaultSlotSelector;\n if (options === null || options === void 0 ? void 0 : options.all) {\n return queryMultiple(element, slotSelector, options);\n }\n return querySingle(element, slotSelector, options);\n}\nfunction getDirectChildren(el, selector) {\n return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];\n}\nfunction queryMultiple(element, slotSelector, options) {\n let matches = slotSelector === defaultSlotSelector\n ? getDirectChildren(element, defaultSlotSelector)\n : Array.from(element.querySelectorAll(slotSelector));\n matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);\n matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;\n const selector = options === null || options === void 0 ? void 0 : options.selector;\n return selector\n ? matches\n .map((item) => Array.from(item.querySelectorAll(selector)))\n .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], [])\n .filter((match) => !!match)\n : matches;\n}\nfunction querySingle(element, slotSelector, options) {\n let match = slotSelector === defaultSlotSelector\n ? getDirectChildren(element, defaultSlotSelector)[0] || null\n : element.querySelector(slotSelector);\n match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;\n match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;\n const selector = options === null || options === void 0 ? void 0 : options.selector;\n return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;\n}\nexport function filterDirectChildren(el, selector) {\n return Array.from(el.children).filter((child) => child.matches(selector));\n}\n// set a default icon from a defined set or allow an override with an icon name string\nexport function setRequestedIcon(iconObject, iconValue, matchedValue) {\n if (typeof iconValue === \"string\" && iconValue !== \"\") {\n return iconValue;\n }\n else if (iconValue === \"\") {\n return iconObject[matchedValue];\n }\n}\nexport function intersects(rect1, rect2) {\n return !(rect2.left > rect1.right ||\n rect2.right < rect1.left ||\n rect2.top > rect1.bottom ||\n rect2.bottom < rect1.top);\n}\n/**\n * This helper makes sure that boolean aria attributes are properly converted to a string.\n *\n * It should only be used for aria attributes that require a string value of \"true\" or \"false\".\n *\n * @param value\n * @returns {string} The string conversion of a boolean value (\"true\" | \"false\").\n */\nexport function toAriaBoolean(value) {\n return Boolean(value).toString();\n}\n/**\n * This helper returns true if the pointer event fired from the primary button of the device.\n *\n * See https://www.w3.org/TR/pointerevents/#the-button-property.\n *\n * @param event\n * @returns {boolean}\n */\nexport function isPrimaryPointerButton(event) {\n return !!(event.isPrimary && event.button === 0);\n}\n"],"version":3}
|