@arcgis/map-components 5.2.0-next.162 → 5.2.0-next.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/cdn/{4KEMJ2WV.js → 4TFO5B3N.js} +1 -1
  2. package/dist/cdn/67UW6MJM.js +2 -0
  3. package/dist/cdn/{G3DWZLJP.js → 7XO4NAD5.js} +1 -1
  4. package/dist/cdn/{VF23MMWZ.js → AALEZAW5.js} +1 -1
  5. package/dist/cdn/RV2FLHPM.js +2 -0
  6. package/dist/cdn/WEY7JGX2.js +2 -0
  7. package/dist/cdn/index.js +1 -1
  8. package/dist/components/arcgis-daylight/customElement.js +2 -1
  9. package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
  10. package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
  11. package/dist/components/arcgis-features-next/customElement.js +14 -15
  12. package/dist/components/arcgis-search/customElement.d.ts +12 -0
  13. package/dist/components/arcgis-search/customElement.js +3 -0
  14. package/dist/components/arcgis-sketch/customElement.d.ts +308 -30
  15. package/dist/components/arcgis-sketch/customElement.js +48 -21
  16. package/dist/components/arcgis-time-bar/customElement.d.ts +484 -409
  17. package/dist/components/arcgis-time-bar/types.d.ts +36 -15
  18. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +179 -162
  19. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  20. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +42 -2
  21. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +20 -17
  22. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -70
  23. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +161 -2
  24. package/dist/docs/api.json +1 -1
  25. package/dist/docs/docs.json +1 -1
  26. package/dist/docs/vscode.html-custom-data.json +1 -1
  27. package/dist/docs/web-types.json +1 -1
  28. package/dist/loader.js +2 -2
  29. package/dist/types/lumina.d.ts +2 -2
  30. package/dist/types/preact.d.ts +2 -2
  31. package/dist/types/react.d.ts +2 -2
  32. package/dist/types/stencil.d.ts +2 -2
  33. package/package.json +6 -6
  34. package/dist/cdn/7PMSUAOO.js +0 -2
  35. package/dist/cdn/K664I5PA.js +0 -2
  36. package/dist/cdn/S3LQLHD6.js +0 -2
  37. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -73
package/dist/loader.js CHANGED
@@ -130,7 +130,7 @@ const s = t(e, {
130
130
  "arcgis-scale-bar": [() => import("./components/arcgis-scale-bar/customElement.js"), "autoDestroyDisabled,barStyle,icon,label,messageOverrides:,messages:,referenceElement,unit,view:;destroy"],
131
131
  "arcgis-scale-range-slider": [() => import("./components/arcgis-scale-range-slider/customElement.js"), "autoDestroyDisabled,disabled,hidePreview,hideScaleMenusMaxScaleMenu,hideScaleMenusMinScaleMenu,icon,label,layer:,maxScale,maxScaleLimit,minScale,minScaleLimit,mode,referenceElement,region,showWorldValue,state:,view:;destroy"],
132
132
  "arcgis-scene": [() => import("./components/arcgis-scene/customElement.js"), "allLayerViews:,alphaCompositingEnabled,analyses:,animationsDisabled,aria:,attributionItems:,attributionMode,autoDestroyDisabled,basemap,basemapView:,camera:,cameraFov,cameraHeading,cameraPosition,cameraTilt,canZoomIn:,canZoomOut:,center,clippingArea:,constraints:,displayFilterDisabled,environment:,extent:,fatalError:,floors:,focusAreas:,focusRegion:,focusRegionShortcutEnabled,focusRegionVisible,gamepad:,graphics:,ground,groundView:,hideAttribution,highlights:,interacting:,itemId,layerViews:,loadErrorSources:,magnifier:,map:,navigating:,navigation:,options:,padding:,performanceInfo:,popup:,popupComponentEnabled,popupDisabled,popupElement:,qualityProfile,ready:,resolution:,scale,selectionManager:,slotGroupRefs:,spatialReference:,stationary:,suspended,theme:,timeExtent:,timeZone,updating:,view:,viewingMode,viewpoint:,visibleArea:,zoom;closePopup,destroy,fetchPopupFeatures,goTo,hitTest,openPopup,takeScreenshot,tryFatalErrorRecovery,viewOnReady,whenAnalysisView,whenLayerView,zoomIn,zoomOut;toMap,toScreen"],
133
- "arcgis-search": [() => import("./components/arcgis-search/customElement.js"), "activeMenu,activeSource:,activeSourceIndex,allPlaceholder,allSources:,autoDestroyDisabled,autoNavigateDisabled,autoSelectDisabled,defaultSources:,disabled,goToOverride:,hideSourcesMenu,icon,includeDefaultSourcesDisabled,label,locationDisabled,maxResults,maxSuggestions,messageOverrides:,messages:,minSuggestCharacters,popupDisabled,popupTemplate:,portal:,referenceElement,resultGraphic:,resultGraphicDisabled,results:,searchAllDisabled,searchTerm,selectedResult:,sources:,state:,suggestions:,suggestionsDisabled,topLayerDisabled,view:;destroy,search,setFocus,suggest;clear"],
133
+ "arcgis-search": [() => import("./components/arcgis-search/customElement.js"), "activeMenu,activeSource:,activeSourceIndex,allPlaceholder,allSources:,autoDestroyDisabled,autoNavigateDisabled,autoSelectDisabled,defaultSources:,disabled,goToOverride:,hideSourcesMenu,icon,includeDefaultSourcesDisabled,label,locationDisabled,maxResults,maxSuggestions,messageOverrides:,messages:,minSuggestCharacters,popupDisabled,popupTemplate:,portal:,referenceElement,resultGraphic:,resultGraphicDisabled,results:,searchAllDisabled,searchTerm,selectedResult:,sources:,state:,suggestions:,suggestionsDisabled,topLayerDisabled,view:;destroy,onSourcesReady,search,setFocus,suggest;clear"],
134
134
  "arcgis-search-result-renderer": [() => import("./components/arcgis-search-result-renderer/customElement.js"), "autoDestroyDisabled,messages:,viewModel:;destroy"],
135
135
  "arcgis-selection-list": [() => import("./components/arcgis-selection-list/customElement.js"), "activeLayerItem:,afterListItemSelect:,allLayerItems:,autoDestroyDisabled,count:,disabled,displayMode,effectiveSelectionManager:,filterText,hideChip,hideChipCloseButton,hideFilter,hideFilterNotice,hideHeader,hideItemCloseActions,hideItemCount,hideItemIcons,hideItemMenus,hideLayerFilter,hideMenu,hideZoomToButton,highlightOnHoverDisabled,icon,label,layer:,layerItems:,listItemActionConfigurations:,listItemUnavailableFunction:,maxVisibleFeatureCountExceeded:,maxVisibleFeatureCountPerLayer,menuScale,messages:,referenceElement,selectionManager:,state:,view:,visibleFeatureCount:,visibleFeatureItems:,visibleLayerCount:,visualScale;clear,collapseAll,deselectItem,destroy,expandAll,findLayerItem,findParentItem,goToItem,removeFromSelection,replace,selectItem"],
136
136
  "arcgis-selection-toolbar": [() => import("./components/arcgis-selection-toolbar/customElement.js"), "activeOperation:,autoDestroyDisabled,availableOperationTypes:,continuousSelectionEnabled,defaultLassoToolOptions:,defaultOperationType,defaultPointToolOptions:,defaultPolygonToolOptions:,defaultRectangleToolOptions:,disabled,effectiveSelectionManager:,effectiveSources:,hideChip,hideChipCloseButton,hideLassoTool,hideOperationTypeControls,hidePanTool,hidePointTool,hidePolygonTool,hideProgress,hideRectangleTool,icon,label,layerPreferenceEnabled,layout,messages:,referenceElement,returnFeatureTitleFields,returnGeometryDisabled,selectionManager:,showTextLabels,sources:,state:,syncResultsDisabled,syncWhileDrawing,toolConfigs:,view:,visualScale;activate,activateTool,cancel,destroy,syncSources,toggleTool"],
@@ -138,7 +138,7 @@ const s = t(e, {
138
138
  "arcgis-shadow-cast-discrete-config": [() => import("./components/arcgis-shadow-cast-discrete-config/customElement.js"), "hideColorPicker,hideInterval,messages:,options:,scale"],
139
139
  "arcgis-shadow-cast-min-duration-config": [() => import("./components/arcgis-shadow-cast-min-duration-config/customElement.js"), "hideColorPicker,hideContextColorPicker,hideContextInterval,hideContextOptions,hideContextToggle,hideSlider,maxMinDuration,messages:,minMinDuration,options:,scale"],
140
140
  "arcgis-shadow-cast-total-duration-config": [() => import("./components/arcgis-shadow-cast-total-duration-config/customElement.js"), "hideColorPicker,hideModeSelect,messages:,options:,scale"],
141
- "arcgis-sketch": [() => import("./components/arcgis-sketch/customElement.js"), "_messages:,activeTool:,autoDestroyDisabled,availableCreateTools:,cancelUpdateOnClickAwayDisabled,createGraphic:,creationMode,defaultCreateOptions:,defaultGraphicsLayerDisabled,defaultUpdateOptions:,geometrySimplificationInProgress:,hideCreateToolsCircle,hideCreateToolsMultipoint,hideCreateToolsPoint,hideCreateToolsPolygon,hideCreateToolsPolyline,hideCreateToolsRectangle,hideDeleteButton,hideDuplicateButton,hideGeometrySimplificationActivityIndicator,hideLabelsToggle,hideSelectionCountLabel,hideSelectionToolsLassoSelection,hideSelectionToolsRectangleSelection,hideSettingsMenu,hideSinglePluginBackButton,hideSnappingControls,hideSnappingControlsElementsEnabledToggle,hideSnappingControlsElementsFeatureEnabledToggle,hideSnappingControlsElementsGridControls,hideSnappingControlsElementsGridControlsElementsColorSelection,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle,hideSnappingControlsElementsGridControlsElementsLineIntervalInput,hideSnappingControlsElementsGridControlsElementsNumericInputs,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning,hideSnappingControlsElementsGridControlsElementsPlacementButtons,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle,hideSnappingControlsElementsGridEnabledToggle,hideSnappingControlsElementsLayerList,hideSnappingControlsElementsSelfEnabledToggle,hideTooltipsToggle,hideUndoRedoMenu,icon,label,labelOptions:,layer:,layout,pointSymbol:,polygonSymbol:,polylineSymbol:,referenceElement,relativePosition,scale,showCreateToolsFreehandPolygon,showCreateToolsFreehandPolyline,showCreateToolsText,showSnappingControlsElementsHeader,snappingOptions:,state:,textSymbol:,toolbarKind,tooltipOptions:,updateGraphics:,updateOnGraphicClickDisabled,useLegacyCreateTools,useViewOptions,valueOptions:,view:,viewModel:,visibleElements:,visualScale;cancel,complete,create,delete,destroy,dismissFloatingElements,duplicate,redo,setContextualToolLocation,setCustomTools,setGroupCollapsePriorities,triggerUpdate,undo"],
141
+ "arcgis-sketch": [() => import("./components/arcgis-sketch/customElement.js"), "_messages:,activeCreateToolDrawMode,activeFillSymbol:,activeLineSymbol:,activeTool:,activeTooltip:,activeVertexSymbol:,autoDestroyDisabled,availableCreateTools:,cancelUpdateOnClickAwayDisabled,createGraphic:,creationMode,defaultCreateOptions:,defaultGraphicsLayerDisabled,defaultUpdateOptions:,geometrySimplificationInProgress:,hideCreateToolsCircle,hideCreateToolsMultipoint,hideCreateToolsPoint,hideCreateToolsPolygon,hideCreateToolsPolyline,hideCreateToolsRectangle,hideDeleteButton,hideDuplicateButton,hideGeometrySimplificationActivityIndicator,hideLabelsToggle,hideSelectionCountLabel,hideSelectionToolsLassoSelection,hideSelectionToolsRectangleSelection,hideSettingsMenu,hideSinglePluginBackButton,hideSnappingControls,hideSnappingControlsElementsEnabledToggle,hideSnappingControlsElementsFeatureEnabledToggle,hideSnappingControlsElementsGridControls,hideSnappingControlsElementsGridControlsElementsColorSelection,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle,hideSnappingControlsElementsGridControlsElementsLineIntervalInput,hideSnappingControlsElementsGridControlsElementsNumericInputs,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning,hideSnappingControlsElementsGridControlsElementsPlacementButtons,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle,hideSnappingControlsElementsGridEnabledToggle,hideSnappingControlsElementsLayerList,hideSnappingControlsElementsSelfEnabledToggle,hideTooltipsToggle,hideUndoRedoMenu,icon,label,labelOptions:,layer:,layout,pointSymbol:,polygonSymbol:,polylineSymbol:,referenceElement,relativePosition,scale,showCreateToolsFreehandPolygon,showCreateToolsFreehandPolyline,showCreateToolsText,showSnappingControlsElementsHeader,snappingOptions:,state:,textSymbol:,toolbarKind,tooltipOptions:,updateGraphics:,updateOnGraphicClickDisabled,useLegacyCreateTools,useViewOptions,valueOptions:,view:,viewModel:,visibleElements:,visualScale;addGraphic,addGraphics,cancel,canRedo,canUndo,complete,create,delete,destroy,dismissFloatingElements,duplicate,hasGraphic,place,redo,removeAllGraphics,removeGraphic,removeGraphics,setContextualToolLocation,setCustomTools,setGroupCollapsePriorities,triggerUpdate,undo"],
142
142
  "arcgis-sketch-tooltip-controls": [() => import("./components/arcgis-sketch-tooltip-controls/customElement.js"), "_hasContent:,directionMode,hideLabelsToggle,hideTooltipsToggle,label,labelsEnabled,messages:,showDirectionModePicker,showHeader,sketchOptions:,tooltipsEnabled"],
143
143
  "arcgis-slice": [() => import("./components/arcgis-slice/customElement.js"), "_messages:,analysis:,autoDestroyDisabled,excludedLayers:,excludeGroundSurface,headingLevel,hideStartButton,hideVisualization,icon,interactionDisabled,label,messageOverrides:,referenceElement,shape:,state:,tiltEnabled,view:;clear,destroy,start"],
144
144
  "arcgis-slider-binary-color-size-legacy": [() => import("./components/arcgis-slider-binary-color-size-legacy/customElement.js"), "autoDestroyDisabled,handlesSyncedToPrimary,histogramConfig:,icon,inputFormatFunction:,inputParseFunction:,labelFormatFunction:,max,min,persistSizeRangeEnabled,precision,referenceElement,sliderStyle:,state:,stops:,zoomOptions:;destroy,updateFromRendererResult,updateRenderer"],
@@ -665,7 +665,7 @@ interface LuminaArcgisShadowCast extends Partial<Pick<ArcgisShadowCast, "analysi
665
665
  onarcgisReady?: EventHandler<ArcgisShadowCast["arcgisReady"]>;
666
666
  }
667
667
 
668
- interface LuminaArcgisSketch extends Partial<Pick<ArcgisSketch, "autoDestroyDisabled" | "availableCreateTools" | "cancelUpdateOnClickAwayDisabled" | "creationMode" | "defaultCreateOptions" | "defaultGraphicsLayerDisabled" | "defaultUpdateOptions" | "hideCreateToolsCircle" | "hideCreateToolsMultipoint" | "hideCreateToolsPoint" | "hideCreateToolsPolygon" | "hideCreateToolsPolyline" | "hideCreateToolsRectangle" | "hideDeleteButton" | "hideDuplicateButton" | "hideGeometrySimplificationActivityIndicator" | "hideLabelsToggle" | "hideSelectionCountLabel" | "hideSelectionToolsLassoSelection" | "hideSelectionToolsRectangleSelection" | "hideSettingsMenu" | "hideSinglePluginBackButton" | "hideSnappingControls" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideTooltipsToggle" | "hideUndoRedoMenu" | "icon" | "label" | "labelOptions" | "layer" | "layout" | "pointSymbol" | "polygonSymbol" | "polylineSymbol" | "referenceElement" | "scale" | "showCreateToolsFreehandPolygon" | "showCreateToolsFreehandPolyline" | "showCreateToolsText" | "showSnappingControlsElementsHeader" | "snappingOptions" | "textSymbol" | "toolbarKind" | "tooltipOptions" | "updateOnGraphicClickDisabled" | "useLegacyCreateTools" | "useViewOptions" | "valueOptions" | "view" | "viewModel" | "visibleElements" | "visualScale">>, ArcgisSketchSetterTypes, h.JSX.HTMLAttributes<ArcgisSketch> {
668
+ interface LuminaArcgisSketch extends Partial<Pick<ArcgisSketch, "activeCreateToolDrawMode" | "activeFillSymbol" | "activeLineSymbol" | "activeTooltip" | "activeVertexSymbol" | "autoDestroyDisabled" | "availableCreateTools" | "cancelUpdateOnClickAwayDisabled" | "creationMode" | "defaultCreateOptions" | "defaultGraphicsLayerDisabled" | "defaultUpdateOptions" | "hideCreateToolsCircle" | "hideCreateToolsMultipoint" | "hideCreateToolsPoint" | "hideCreateToolsPolygon" | "hideCreateToolsPolyline" | "hideCreateToolsRectangle" | "hideDeleteButton" | "hideDuplicateButton" | "hideGeometrySimplificationActivityIndicator" | "hideLabelsToggle" | "hideSelectionCountLabel" | "hideSelectionToolsLassoSelection" | "hideSelectionToolsRectangleSelection" | "hideSettingsMenu" | "hideSinglePluginBackButton" | "hideSnappingControls" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideTooltipsToggle" | "hideUndoRedoMenu" | "icon" | "label" | "labelOptions" | "layer" | "layout" | "pointSymbol" | "polygonSymbol" | "polylineSymbol" | "referenceElement" | "scale" | "showCreateToolsFreehandPolygon" | "showCreateToolsFreehandPolyline" | "showCreateToolsText" | "showSnappingControlsElementsHeader" | "snappingOptions" | "textSymbol" | "toolbarKind" | "tooltipOptions" | "updateOnGraphicClickDisabled" | "useLegacyCreateTools" | "useViewOptions" | "valueOptions" | "view" | "viewModel" | "visibleElements" | "visualScale">>, ArcgisSketchSetterTypes, h.JSX.HTMLAttributes<ArcgisSketch> {
669
669
  onarcgisCreate?: EventHandler<ArcgisSketch["arcgisCreate"]>;
670
670
  onarcgisDelete?: EventHandler<ArcgisSketch["arcgisDelete"]>;
671
671
  onarcgisDuplicate?: EventHandler<ArcgisSketch["arcgisDuplicate"]>;
@@ -802,7 +802,7 @@ interface LuminaArcgisTimeBar extends Partial<Pick<ArcgisTimeBar, "autoDestroyDi
802
802
  onarcgisReady?: EventHandler<ArcgisTimeBar["arcgisReady"]>;
803
803
  }
804
804
 
805
- interface LuminaArcgisTimeBarSlider extends Partial<Pick<ArcgisTimeBarSlider, "autoDestroyDisabled" | "lockTimeWindow" | "messages" | "popoverDisplay" | "showLockTimeWindow" | "showMax" | "showMin" | "showTicks" | "viewModel">>, h.JSX.HTMLAttributes<ArcgisTimeBarSlider> {
805
+ interface LuminaArcgisTimeBarSlider extends Partial<Pick<ArcgisTimeBarSlider, "autoDestroyDisabled" | "lockTimeWindow" | "popoverDisplay" | "showLockTimeWindow" | "showMax" | "showMin" | "showTicks">>, h.JSX.HTMLAttributes<ArcgisTimeBarSlider> {
806
806
  onarcgisPropertyChange?: EventHandler<ArcgisTimeBarSlider["arcgisPropertyChange"]>;
807
807
  onarcgisReady?: EventHandler<ArcgisTimeBarSlider["arcgisReady"]>;
808
808
  }
@@ -666,7 +666,7 @@ interface PreactArcgisShadowCast extends Partial<Pick<ArcgisShadowCast, "analysi
666
666
  onarcgisReady?: EventHandler<ArcgisShadowCast["arcgisReady"]>;
667
667
  }
668
668
 
669
- interface PreactArcgisSketch extends Partial<Pick<ArcgisSketch, "autoDestroyDisabled" | "availableCreateTools" | "cancelUpdateOnClickAwayDisabled" | "creationMode" | "defaultCreateOptions" | "defaultGraphicsLayerDisabled" | "defaultUpdateOptions" | "hideCreateToolsCircle" | "hideCreateToolsMultipoint" | "hideCreateToolsPoint" | "hideCreateToolsPolygon" | "hideCreateToolsPolyline" | "hideCreateToolsRectangle" | "hideDeleteButton" | "hideDuplicateButton" | "hideGeometrySimplificationActivityIndicator" | "hideLabelsToggle" | "hideSelectionCountLabel" | "hideSelectionToolsLassoSelection" | "hideSelectionToolsRectangleSelection" | "hideSettingsMenu" | "hideSinglePluginBackButton" | "hideSnappingControls" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideTooltipsToggle" | "hideUndoRedoMenu" | "icon" | "label" | "labelOptions" | "layer" | "layout" | "pointSymbol" | "polygonSymbol" | "polylineSymbol" | "referenceElement" | "scale" | "showCreateToolsFreehandPolygon" | "showCreateToolsFreehandPolyline" | "showCreateToolsText" | "showSnappingControlsElementsHeader" | "snappingOptions" | "textSymbol" | "toolbarKind" | "tooltipOptions" | "updateOnGraphicClickDisabled" | "useLegacyCreateTools" | "useViewOptions" | "valueOptions" | "view" | "viewModel" | "visibleElements" | "visualScale">>, ArcgisSketchSetterTypes, HTMLAttributes<ArcgisSketch> {
669
+ interface PreactArcgisSketch extends Partial<Pick<ArcgisSketch, "activeCreateToolDrawMode" | "activeFillSymbol" | "activeLineSymbol" | "activeTooltip" | "activeVertexSymbol" | "autoDestroyDisabled" | "availableCreateTools" | "cancelUpdateOnClickAwayDisabled" | "creationMode" | "defaultCreateOptions" | "defaultGraphicsLayerDisabled" | "defaultUpdateOptions" | "hideCreateToolsCircle" | "hideCreateToolsMultipoint" | "hideCreateToolsPoint" | "hideCreateToolsPolygon" | "hideCreateToolsPolyline" | "hideCreateToolsRectangle" | "hideDeleteButton" | "hideDuplicateButton" | "hideGeometrySimplificationActivityIndicator" | "hideLabelsToggle" | "hideSelectionCountLabel" | "hideSelectionToolsLassoSelection" | "hideSelectionToolsRectangleSelection" | "hideSettingsMenu" | "hideSinglePluginBackButton" | "hideSnappingControls" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideTooltipsToggle" | "hideUndoRedoMenu" | "icon" | "label" | "labelOptions" | "layer" | "layout" | "pointSymbol" | "polygonSymbol" | "polylineSymbol" | "referenceElement" | "scale" | "showCreateToolsFreehandPolygon" | "showCreateToolsFreehandPolyline" | "showCreateToolsText" | "showSnappingControlsElementsHeader" | "snappingOptions" | "textSymbol" | "toolbarKind" | "tooltipOptions" | "updateOnGraphicClickDisabled" | "useLegacyCreateTools" | "useViewOptions" | "valueOptions" | "view" | "viewModel" | "visibleElements" | "visualScale">>, ArcgisSketchSetterTypes, HTMLAttributes<ArcgisSketch> {
670
670
  onarcgisCreate?: EventHandler<ArcgisSketch["arcgisCreate"]>;
671
671
  onarcgisDelete?: EventHandler<ArcgisSketch["arcgisDelete"]>;
672
672
  onarcgisDuplicate?: EventHandler<ArcgisSketch["arcgisDuplicate"]>;
@@ -803,7 +803,7 @@ interface PreactArcgisTimeBar extends Partial<Pick<ArcgisTimeBar, "autoDestroyDi
803
803
  onarcgisReady?: EventHandler<ArcgisTimeBar["arcgisReady"]>;
804
804
  }
805
805
 
806
- interface PreactArcgisTimeBarSlider extends Partial<Pick<ArcgisTimeBarSlider, "autoDestroyDisabled" | "lockTimeWindow" | "messages" | "popoverDisplay" | "showLockTimeWindow" | "showMax" | "showMin" | "showTicks" | "viewModel">>, HTMLAttributes<ArcgisTimeBarSlider> {
806
+ interface PreactArcgisTimeBarSlider extends Partial<Pick<ArcgisTimeBarSlider, "autoDestroyDisabled" | "lockTimeWindow" | "popoverDisplay" | "showLockTimeWindow" | "showMax" | "showMin" | "showTicks">>, HTMLAttributes<ArcgisTimeBarSlider> {
807
807
  onarcgisPropertyChange?: EventHandler<ArcgisTimeBarSlider["arcgisPropertyChange"]>;
808
808
  onarcgisReady?: EventHandler<ArcgisTimeBarSlider["arcgisReady"]>;
809
809
  }
@@ -666,7 +666,7 @@ interface ReactArcgisShadowCast extends Partial<Pick<ArcgisShadowCast, "analysis
666
666
  onarcgisReady?: EventHandler<ArcgisShadowCast["arcgisReady"]>;
667
667
  }
668
668
 
669
- interface ReactArcgisSketch extends Partial<Pick<ArcgisSketch, "autoDestroyDisabled" | "availableCreateTools" | "cancelUpdateOnClickAwayDisabled" | "creationMode" | "defaultCreateOptions" | "defaultGraphicsLayerDisabled" | "defaultUpdateOptions" | "hideCreateToolsCircle" | "hideCreateToolsMultipoint" | "hideCreateToolsPoint" | "hideCreateToolsPolygon" | "hideCreateToolsPolyline" | "hideCreateToolsRectangle" | "hideDeleteButton" | "hideDuplicateButton" | "hideGeometrySimplificationActivityIndicator" | "hideLabelsToggle" | "hideSelectionCountLabel" | "hideSelectionToolsLassoSelection" | "hideSelectionToolsRectangleSelection" | "hideSettingsMenu" | "hideSinglePluginBackButton" | "hideSnappingControls" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideTooltipsToggle" | "hideUndoRedoMenu" | "icon" | "label" | "labelOptions" | "layer" | "layout" | "pointSymbol" | "polygonSymbol" | "polylineSymbol" | "referenceElement" | "scale" | "showCreateToolsFreehandPolygon" | "showCreateToolsFreehandPolyline" | "showCreateToolsText" | "showSnappingControlsElementsHeader" | "snappingOptions" | "textSymbol" | "toolbarKind" | "tooltipOptions" | "updateOnGraphicClickDisabled" | "useLegacyCreateTools" | "useViewOptions" | "valueOptions" | "view" | "viewModel" | "visibleElements" | "visualScale">>, ArcgisSketchSetterTypes, HTMLProps<ArcgisSketch> {
669
+ interface ReactArcgisSketch extends Partial<Pick<ArcgisSketch, "activeCreateToolDrawMode" | "activeFillSymbol" | "activeLineSymbol" | "activeTooltip" | "activeVertexSymbol" | "autoDestroyDisabled" | "availableCreateTools" | "cancelUpdateOnClickAwayDisabled" | "creationMode" | "defaultCreateOptions" | "defaultGraphicsLayerDisabled" | "defaultUpdateOptions" | "hideCreateToolsCircle" | "hideCreateToolsMultipoint" | "hideCreateToolsPoint" | "hideCreateToolsPolygon" | "hideCreateToolsPolyline" | "hideCreateToolsRectangle" | "hideDeleteButton" | "hideDuplicateButton" | "hideGeometrySimplificationActivityIndicator" | "hideLabelsToggle" | "hideSelectionCountLabel" | "hideSelectionToolsLassoSelection" | "hideSelectionToolsRectangleSelection" | "hideSettingsMenu" | "hideSinglePluginBackButton" | "hideSnappingControls" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideTooltipsToggle" | "hideUndoRedoMenu" | "icon" | "label" | "labelOptions" | "layer" | "layout" | "pointSymbol" | "polygonSymbol" | "polylineSymbol" | "referenceElement" | "scale" | "showCreateToolsFreehandPolygon" | "showCreateToolsFreehandPolyline" | "showCreateToolsText" | "showSnappingControlsElementsHeader" | "snappingOptions" | "textSymbol" | "toolbarKind" | "tooltipOptions" | "updateOnGraphicClickDisabled" | "useLegacyCreateTools" | "useViewOptions" | "valueOptions" | "view" | "viewModel" | "visibleElements" | "visualScale">>, ArcgisSketchSetterTypes, HTMLProps<ArcgisSketch> {
670
670
  onarcgisCreate?: EventHandler<ArcgisSketch["arcgisCreate"]>;
671
671
  onarcgisDelete?: EventHandler<ArcgisSketch["arcgisDelete"]>;
672
672
  onarcgisDuplicate?: EventHandler<ArcgisSketch["arcgisDuplicate"]>;
@@ -803,7 +803,7 @@ interface ReactArcgisTimeBar extends Partial<Pick<ArcgisTimeBar, "autoDestroyDis
803
803
  onarcgisReady?: EventHandler<ArcgisTimeBar["arcgisReady"]>;
804
804
  }
805
805
 
806
- interface ReactArcgisTimeBarSlider extends Partial<Pick<ArcgisTimeBarSlider, "autoDestroyDisabled" | "lockTimeWindow" | "messages" | "popoverDisplay" | "showLockTimeWindow" | "showMax" | "showMin" | "showTicks" | "viewModel">>, HTMLProps<ArcgisTimeBarSlider> {
806
+ interface ReactArcgisTimeBarSlider extends Partial<Pick<ArcgisTimeBarSlider, "autoDestroyDisabled" | "lockTimeWindow" | "popoverDisplay" | "showLockTimeWindow" | "showMax" | "showMin" | "showTicks">>, HTMLProps<ArcgisTimeBarSlider> {
807
807
  onarcgisPropertyChange?: EventHandler<ArcgisTimeBarSlider["arcgisPropertyChange"]>;
808
808
  onarcgisReady?: EventHandler<ArcgisTimeBarSlider["arcgisReady"]>;
809
809
  }
@@ -666,7 +666,7 @@ interface StencilArcgisShadowCast extends Partial<Pick<ArcgisShadowCast, "analys
666
666
  onArcgisReady?: EventHandler<ArcgisShadowCast["arcgisReady"]>;
667
667
  }
668
668
 
669
- interface StencilArcgisSketch extends Partial<Pick<ArcgisSketch, "autoDestroyDisabled" | "availableCreateTools" | "cancelUpdateOnClickAwayDisabled" | "creationMode" | "defaultCreateOptions" | "defaultGraphicsLayerDisabled" | "defaultUpdateOptions" | "hideCreateToolsCircle" | "hideCreateToolsMultipoint" | "hideCreateToolsPoint" | "hideCreateToolsPolygon" | "hideCreateToolsPolyline" | "hideCreateToolsRectangle" | "hideDeleteButton" | "hideDuplicateButton" | "hideGeometrySimplificationActivityIndicator" | "hideLabelsToggle" | "hideSelectionCountLabel" | "hideSelectionToolsLassoSelection" | "hideSelectionToolsRectangleSelection" | "hideSettingsMenu" | "hideSinglePluginBackButton" | "hideSnappingControls" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideTooltipsToggle" | "hideUndoRedoMenu" | "icon" | "label" | "labelOptions" | "layer" | "layout" | "pointSymbol" | "polygonSymbol" | "polylineSymbol" | "referenceElement" | "scale" | "showCreateToolsFreehandPolygon" | "showCreateToolsFreehandPolyline" | "showCreateToolsText" | "showSnappingControlsElementsHeader" | "snappingOptions" | "textSymbol" | "toolbarKind" | "tooltipOptions" | "updateOnGraphicClickDisabled" | "useLegacyCreateTools" | "useViewOptions" | "valueOptions" | "view" | "viewModel" | "visibleElements" | "visualScale">>, ArcgisSketchSetterTypes, StencilJsx.HTMLAttributes<ArcgisSketch> {
669
+ interface StencilArcgisSketch extends Partial<Pick<ArcgisSketch, "activeCreateToolDrawMode" | "activeFillSymbol" | "activeLineSymbol" | "activeTooltip" | "activeVertexSymbol" | "autoDestroyDisabled" | "availableCreateTools" | "cancelUpdateOnClickAwayDisabled" | "creationMode" | "defaultCreateOptions" | "defaultGraphicsLayerDisabled" | "defaultUpdateOptions" | "hideCreateToolsCircle" | "hideCreateToolsMultipoint" | "hideCreateToolsPoint" | "hideCreateToolsPolygon" | "hideCreateToolsPolyline" | "hideCreateToolsRectangle" | "hideDeleteButton" | "hideDuplicateButton" | "hideGeometrySimplificationActivityIndicator" | "hideLabelsToggle" | "hideSelectionCountLabel" | "hideSelectionToolsLassoSelection" | "hideSelectionToolsRectangleSelection" | "hideSettingsMenu" | "hideSinglePluginBackButton" | "hideSnappingControls" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideTooltipsToggle" | "hideUndoRedoMenu" | "icon" | "label" | "labelOptions" | "layer" | "layout" | "pointSymbol" | "polygonSymbol" | "polylineSymbol" | "referenceElement" | "scale" | "showCreateToolsFreehandPolygon" | "showCreateToolsFreehandPolyline" | "showCreateToolsText" | "showSnappingControlsElementsHeader" | "snappingOptions" | "textSymbol" | "toolbarKind" | "tooltipOptions" | "updateOnGraphicClickDisabled" | "useLegacyCreateTools" | "useViewOptions" | "valueOptions" | "view" | "viewModel" | "visibleElements" | "visualScale">>, ArcgisSketchSetterTypes, StencilJsx.HTMLAttributes<ArcgisSketch> {
670
670
  onArcgisCreate?: EventHandler<ArcgisSketch["arcgisCreate"]>;
671
671
  onArcgisDelete?: EventHandler<ArcgisSketch["arcgisDelete"]>;
672
672
  onArcgisDuplicate?: EventHandler<ArcgisSketch["arcgisDuplicate"]>;
@@ -803,7 +803,7 @@ interface StencilArcgisTimeBar extends Partial<Pick<ArcgisTimeBar, "autoDestroyD
803
803
  onArcgisReady?: EventHandler<ArcgisTimeBar["arcgisReady"]>;
804
804
  }
805
805
 
806
- interface StencilArcgisTimeBarSlider extends Partial<Pick<ArcgisTimeBarSlider, "autoDestroyDisabled" | "lockTimeWindow" | "messages" | "popoverDisplay" | "showLockTimeWindow" | "showMax" | "showMin" | "showTicks" | "viewModel">>, StencilJsx.HTMLAttributes<ArcgisTimeBarSlider> {
806
+ interface StencilArcgisTimeBarSlider extends Partial<Pick<ArcgisTimeBarSlider, "autoDestroyDisabled" | "lockTimeWindow" | "popoverDisplay" | "showLockTimeWindow" | "showMax" | "showMin" | "showTicks">>, StencilJsx.HTMLAttributes<ArcgisTimeBarSlider> {
807
807
  onArcgisPropertyChange?: EventHandler<ArcgisTimeBarSlider["arcgisPropertyChange"]>;
808
808
  onArcgisReady?: EventHandler<ArcgisTimeBarSlider["arcgisReady"]>;
809
809
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
- "version": "5.2.0-next.162",
3
+ "version": "5.2.0-next.164",
4
4
  "description": "ArcGIS Map Components",
5
5
  "keywords": [
6
6
  "2D",
@@ -43,16 +43,16 @@
43
43
  "license": "SEE LICENSE IN LICENSE.md",
44
44
  "dependencies": {
45
45
  "@amcharts/amcharts5": "~5.20.8",
46
- "@arcgis/common-components": "5.2.0-next.162",
47
- "@arcgis/lumina": "5.2.0-next.162",
48
- "@arcgis/lumina-toolkit": "5.2.0-next.162",
49
- "@arcgis/toolkit": "5.2.0-next.162",
46
+ "@arcgis/common-components": "5.2.0-next.164",
47
+ "@arcgis/lumina": "5.2.0-next.164",
48
+ "@arcgis/lumina-toolkit": "5.2.0-next.164",
49
+ "@arcgis/toolkit": "5.2.0-next.164",
50
50
  "es-toolkit": "^1.52.0",
51
51
  "lit": "^3.3.0",
52
52
  "tslib": "^2.8.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "@arcgis/core": "5.2.0-next.162",
55
+ "@arcgis/core": "5.2.0-next.164",
56
56
  "@esri/calcite-components": "^5.2.0"
57
57
  },
58
58
  "css.customData": [
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import k from"./HP32VJJ5.js";import"./IZ46HAUJ.js";import i from"./KO5AS6VW.js";import{a as L}from"./RIOVVINY.js";import h from"./PIMHCTPI.js";import g from"./TMJX7DFH.js";import e from"./2H2YCUTD.js";import{a as E}from"./VJVKFKSG.js";import{b as Z,c as U,d as j}from"./7N4V2IN6.js";import d from"./3VWROBRU.js";import{a as z}from"./EMF6EVCU.js";import c from"./ANTO53P2.js";import b from"./J6FGJ5GL.js";import{f as H,h as B}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import a from"./VULIDWWD.js";import"./QUZTFUWM.js";import{a as D,e as A}from"./NZROZFUD.js";import{N as f,O as m,P as O,R as $,U as u,V as P,X as N,a as R,b as n,n as x,x as C}from"./JG5OBAGE.js";import"./H6RQVSYM.js";export default $arcgis.t(([J,W,Q,{initializeProjection:Y},{renderingSanitizer:M},{stripHTML:b},{substitute:g,formatNumber:I},{when:ee,watch:h},{getGraphicOriginTitle:te},,,,V,,,{e:T},{d:q},k])=>{var ie=R`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.content-feature{--calcite-flow-item-footer-padding: 0;--calcite-flow-header-top-space: 0}.feature-menu-observer{flex:0 0 1px;height:1px;margin-block-start:-1px}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}.diagnostics-notice{padding:var(--calcite-space-md)}`;function ae(_){return _?.declaredClass.startsWith("esri.layers.")??!1}function se(_){if(!(!_||!("featureReduction"in _)))return _.featureReduction?.type}var ne=V(Q),oe=5,S=class extends O{constructor(){super(...arguments),this._zoomToFeature=new J({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"}),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this._loadMoreFeatures()},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._setFocusAnimationFrameId=null,this._setFocusAnimationFrameResolve=null,this._rootFlowItemNode=f(),this._featureMenuViewportNode=f(),this._actionBarMenuNode=f(),this._flowContainerNode=f(),this._aggregatedFeaturesComponent=f(),this.messages=z(),this._selectedFeatureComponent=f(),this._actionFlowItems=new WeakSet,this._direction=H(),this._cancelOpenRelatedFeature=()=>{this._openRelatedFeatureAbortController=E(this._openRelatedFeatureAbortController)},this._spinnerVisible=!1,this._openRelatedFeatureAbortController=null,this.flowItems=new W,this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._hasActionsStartSlotContent=!1,this._hasActionsEndSlotContent=!1,this._selectedFeatureLoading=!1,this._lastSettledHeading="",this.viewModel=ne(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.focusTrapEnabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.diagnostics=this.viewModel.diagnostics,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.effectiveHeading=this.viewModel.effectiveHeading,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=!1,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureItemAbilities=this.viewModel.featureItemAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new W,this.heading=this.viewModel.heading,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSelectFeature=!1,this.hideSpinner=!1,this.hideContent=!1,this.chartAnimationDisabled=this.viewModel.featureItemAbilities?.chartAnimation,this.hideAttachmentsContent=this.viewModel.featureItemAbilities?.attachmentsContent,this.hideEmptyRelationshipContent=!1,this.hideCustomContent=this.viewModel.featureItemAbilities?.customContent,this.hideExpressionContent=!1,this.hideFieldsContent=this.viewModel.featureItemAbilities?.fieldsContent,this.hideMediaContent=this.viewModel.featureItemAbilities?.mediaContent,this.hideRelationshipContent=this.viewModel.featureItemAbilities?.relationshipContent,this.hideTextContent=this.viewModel.featureItemAbilities?.textContent,this.hideUtilityNetworkContent=this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent,this.hideLastEditedInfo=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.open=this.viewModel.open,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.showCollapseButton=!1,this.spatialReference=this.viewModel.spatialReference,this.state=this.viewModel.state,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisClose=C(),this.arcgisPropertyChange=B()("active","collapsed","effectiveHeading","featureCount","featureMenuOpen","features","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=C(),this.arcgisTriggerAction=C()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_aggregatedFeatureCount:16,_selectedAggregatedFeatureIndex:16,_aggregatedFeaturesLoading:16,_hasActionsStartSlotContent:16,_hasActionsEndSlotContent:16,_selectedFeatureLoading:16,_lastSettledHeading:16,_selectedFeatureViewModel:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,_selectedFeatureHeading:16,_headingLabel:16,_backLabel:16,_selectedFeatureContent:16,_selectedFeaturePending:16,_featureFlowItemSelected:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,focusTrapEnabled:5,collapseDirection:1,collapsed:5,content:1,diagnostics:0,defaultPopupTemplateEnabled:5,effectiveHeading:32,featureCount:9,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureItemAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSelectFeature:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideEmptyRelationshipContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:1,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,open:5,referenceElement:1,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:32,timeZone:1,updateLocationEnabled:5,view:0}}static{this.styles=ie}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){let{selectedFeatureItem:e}=this.viewModel,t=this.heading||this._selectedFeatureHeading,i=this.content||this._selectedFeatureContent,a=e?.state==="error"||this._selectedFeatureViewModel?.state==="error";return this.showCollapseButton&&(this.initialDisplayMode==="list"||this._selectedFeaturePending||!a&&!t&&i==null&&e?.formattedAttributes==null||!!t&&!!i)}get _selectedFeatureHeading(){return this.viewModel.selectedFeatureItem?.heading}get _headingLabel(){let e=this._selectedFeatureHeading??this.heading;return e?b(e):void 0}get _backLabel(){let e=this._headingLabel,{messages:t}=this;return e?g(t.backLabel??"",{title:e}):t.back}get _selectedFeatureContent(){return this.viewModel.selectedFeatureItem?.content}get _selectedFeaturePending(){let{selectedFeature:e,selectedFeatureItem:t}=this.viewModel;if(!e)return!1;let i=this._selectedFeatureViewModel,a=i?.state;return t==null||t.waitingForContent||i?.graphic!==e||a!=="ready"&&a!=="error"}get _featureFlowItemSelected(){return this.initialDisplayMode==="list"?!!this.selectedFeature:!this.featureMenuOpen}clear(){this.viewModel.clear()}close(){this.open=!1}async destroy(){await this.manager.destroy(),this._removeSpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._cancelSetFocusAnimationFrame(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let{signal:i}=t??{},a=new AbortController,{signal:s}=a,o=i?AbortSignal.any([s,i]):s;this._fetchFeaturesController=a,!e&&this.view&&this.location&&(await Y(this.location.spatialReference,this.view.spatialReference,null,{signal:o}),e=this.view.toScreen(this.location)??void 0),e&&await this.viewModel.fetchFeatures(e,{...t,signal:o})}next(){this.viewModel.next()}previous(){this.viewModel.previous()}async setFocus(){this._cancelSetFocusAnimationFrame(),await new Promise(e=>{this._setFocusAnimationFrameResolve=e,this._setFocusAnimationFrameId=requestAnimationFrame(()=>{this._setFocusAnimationFrameId=null;try{if(!this.isConnected||!this.viewModel?.active)return;this._flowContainerNode.value?.setFocus()}finally{this._resolveSetFocusAnimationFrame()}})})}connectedCallback(){super.connectedCallback(),this._createSpinner()}willUpdate(){let e=this._selectedFeaturePending,{effectiveHeading:t}=this.viewModel;(t||!e)&&(this._lastSettledHeading=t??"")}updated(){let e=this._selectedFeatureComponent.value??void 0;this.selectedFeatureComponent!==e&&(this._selectedFeatureViewModel=e?.viewModel,x(()=>this.selectedFeatureComponent=e)),this.componentOnReady().then(()=>{let t=this._featureMenuIntersectionObserverNode;this.isConnected&&t&&(this._featureMenuIntersectionObserver.unobserve(t),this._featureMenuIntersectionObserver.observe(t))})}loaded(){this.manager.onLifecycle(()=>[k({getLoading:()=>this.viewModel.waitingForResult,setEffectiveLoading:e=>{this._spinnerVisible=e,this._createSpinner()},timeout:25,minShownDuration:0}),k({getLoading:()=>this._selectedFeaturePending,setEffectiveLoading:e=>{this._selectedFeatureLoading=e}}),ee(()=>[this.initialDisplayMode==="list"&&!!this.viewModel?.selectedFeature,this.viewModel?.active],()=>{this.setFocus()}),h(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),h(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),h(()=>this.viewModel?.view?.scale,()=>this._viewScaleChange()),h(()=>this.viewModel?.view,(e,t)=>t&&this._viewChange()),h(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),h(()=>this.selectedFeatureComponent?.viewModel,(e,t)=>t&&this._removeFlowItems()),h(()=>[this.viewModel?.features.at(0),this.viewModel?.featureCount??0],([e,t],i)=>{let[a,s]=i??[void 0,0];(e!==a||t<s)&&this._featureMenuViewportScrollTop()}),h(()=>[this.featureMenuOpen,this.initialDisplayMode,this.open],()=>{this.viewModel.featureMenuOpen=this.featureMenuOpen,this.open&&(this.featureMenuOpen||this.initialDisplayMode==="list")&&(this.viewModel.featurePage=1)},{initial:!0}),h(()=>this.flowItems.toArray(),()=>this._handleFlowItemsChange(),{initial:!0}),h(()=>this.viewModel.aggregatedFeaturesEnabled,e=>{e||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._removeFlowItems())}),h(()=>this.referenceElement,(e,t)=>{this._removeSpinner(t),this._createSpinner()},{initial:!0}),h(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.pendingLocation,this.viewModel?.open],()=>this._createSpinner(),{initial:!0})])}disconnectedCallback(){super.disconnectedCallback(),this._selectedFeatureLoading=!1,this._spinnerVisible=!1,this._cancelSetFocusAnimationFrame(),this._removeSpinner(this.referenceElement)}_loadMoreFeatures(){let{viewModel:e}=this,{featurePage:t,featuresPerPage:i,features:a}=e;e.open&&(this.initialDisplayMode==="list"||this.featureMenuOpen)&&t!=null&&t*i<a.length&&(e.featurePage=t+1)}_resolveSetFocusAnimationFrame(){let e=this._setFocusAnimationFrameResolve;this._setFocusAnimationFrameResolve=null,e?.()}_cancelSetFocusAnimationFrame(){this._setFocusAnimationFrameId!=null&&(cancelAnimationFrame(this._setFocusAnimationFrameId),this._setFocusAnimationFrameId=null),this._resolveSetFocusAnimationFrame()}_cancelFetchingFeatures(){this._fetchFeaturesController=E(this._fetchFeaturesController)}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{features:e,featurePage:t,featuresPerPage:i}=this.viewModel,a=new Map,s=Math.min((t??0)*i,e.length);for(let o=0;o<s;o++){let r=e[o],l=T(r),d=ae(l)?l:null,c=a.get(d);c||(c=[],a.set(d,c)),c.push(o)}return a}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;if(this._openRelatedFeatureAbortController=t,await e.updateGeometry(),t.signal.aborted)return;let i=e.graphic,a=i?.geometry;if(a==null||i==null){this._openRelatedFeatureAbortController=null;return}if(this._removeFlowItems(),await this.viewModel.zoomTo({target:a}),t.signal.aborted)return;let{labelPointExecute:s}=await $arcgis.t(m=>m[0],"geometry/operators/labelPointOperator");if(t.signal.aborted)return;let o=s(a);o!=null&&(this.location=o),this.features=[i],this.open=!0,this._openRelatedFeatureAbortController=null}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?this.selectedFeatureIndex=-1:this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?this.selectedFeatureIndex=-1:this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"&&this._handleFeatureMenuBack()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){e!==this._featureMenuIntersectionObserverNode&&(this._unobserveFeatureMenuObserver(),this._featureMenuIntersectionObserverNode=e??null)}_getActionLabel(e,t){if(e.id!=="zoom-to-feature")return null;let{messages:i}=this,a=t?.heading,s=t?a&&b(a):this._headingLabel;return s?g(i.zoomLabel??"",{messages:i,title:s}):i.zoom??""}_getActionTitle(e,t){let{messages:i}=this,a=t?t.graphic:this.selectedFeature,{id:s}=e,o=a?.attributes,r=e.title??"",l=s==="zoom-to-feature"?g(r,{messages:i}):s==="remove-selected-feature"?g(r,{messages:i}):s==="zoom-to-aggregated-features"?g(r,{messages:i}):s==="browse-aggregated-features"?g(r,{messages:i}):e.title;return l&&o?g(l,o):l??""}_onMainKeydown(e){let{key:t}=e;e.defaultPrevented||Z(e)||(j(t,this._direction,{horizontalOnly:!0})&&(e.preventDefault(),e.stopPropagation(),this._closeFeatureMenu(),this.previous()),U(t,this._direction,{horizontalOnly:!0})&&(e.preventDefault(),e.stopPropagation(),this._closeFeatureMenu(),this.next()))}_featureMenuViewportScrollTop(){this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:i,waitingForResult:a}=this.viewModel;a||!i||e===t||e===-1||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e,t=this.flowItems.getItemAt(this.flowItems.length-1)){if(e.disabled)return;e?.type==="toggle"&&(e.value=!e.value);let i=t&&"allActions"in t?t.viewModel:void 0;q(e,this.viewModel,i),this.arcgisTriggerAction.emit({action:e})}_viewScaleChange(){let{selectedFeature:e}=this,t=T(e);!e?.isAggregate||se(t)!=="cluster"||(this.viewModel.aggregatedFeaturesEnabled=!1,this.open=!1,this.clear())}_viewChange(){this.viewModel.clear(),this.open=!1,this._aggregatedFeatureCount=0,this._removeFlowItems()}_handleAggregatedFeaturesPropertyChange({detail:e,target:t}){e.name==="aggregatedFeatureCount"&&(this._aggregatedFeatureCount=t.aggregatedFeatureCount),e.name==="selectedAggregatedFeatureIndex"&&(this._selectedAggregatedFeatureIndex=t.selectedAggregatedFeatureIndex,this._syncSelectedDrillInFeature()),e.name==="loading"&&(this._aggregatedFeaturesLoading=t.loading)}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_handleFlowItemsChange(){this._syncSelectedDrillInFeature(),this.flowItems.forEach(e=>{!("allActions"in e)||this._actionFlowItems.has(e)||(this._actionFlowItems.add(e),e.componentOnReady().then(()=>{this.isConnected&&this.flowItems.includes(e)&&this.requestUpdate()}))})}_syncSelectedDrillInFeature(){let e=this.flowItems.getItemAt(this.flowItems.length-1);x(()=>this.selectedDrillInFeature=e?.graphic??void 0)}_removeFlowItems(){this.viewModel.aggregatedFeaturesEnabled=!1,this.flowItems?.destroyAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()?.destroy()}_getHeading(){if(this.hideHeading)return"";let{effectiveHeading:e}=this.viewModel;return e||!this._selectedFeaturePending?e??"":this._lastSettledHeading||(this._selectedFeatureLoading?this.messages.loading??"":"")}_handleActionsStartSlotChange(e){this._hasActionsStartSlotContent=D(e),this._updateSlottedActionTextEnabled(e.currentTarget)}_handleActionsEndSlotChange(e){this._hasActionsEndSlotContent=D(e),this._updateSlottedActionTextEnabled(e.currentTarget)}_updateSlottedActionTextEnabled(e){let t=!this._hideActionText;e.assignedElements({flatten:!0}).forEach(i=>{(i.matches("calcite-action")?[i]:i.querySelectorAll("calcite-action")).forEach(a=>a.textEnabled=t)})}_removeSpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl),this._spinnerEl=void 0}_createSpinner(){let e=this.referenceElement;e&&(this._removeSpinner(e),this._spinnerEl=P(n`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${!this.hideSpinner&&this.viewModel.open&&this._spinnerVisible} .location=${this.viewModel?.pendingLocation??this.viewModel?.location??void 0} .referenceElement=${e} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}#e(e){let t=e&&"allActions"in e?e:void 0,{selectedFeatureItem:i}=this.viewModel;if(t&&!t.allActions)return[];let a=t?t.isFeatureFromTable:i?.isFeatureFromTable;return(t?.allActions??i?.allActions??(!e&&this.viewModel.includeDefaultActions?this.viewModel.defaultActions.concat(this.viewModel.actions):this.viewModel.actions)).toArray().filter(s=>!(e&&s.id==="browse-aggregated-features")&&!(a&&!this.location&&s.id===this._zoomToFeature.id))}render(){return n`<div class="root">${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(()=>this._previousFeature(),()=>this._nextFeature()),this.initialDisplayMode==="list"?this._renderFeaturePaginationText(this.viewModel.featureCount,this.viewModel.selectedFeatureIndex):this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?n`<div slot=header-top class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?n`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(e,t){let{messages:i}=this;return n`<div class="pagination-text">${g(i.pageText??"",{index:I(t+1),total:I(e)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:i,streamingFeatures:a,selectedFeatureIndex:s}=t;return n`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures??""} .loading=${a} @click=${this._handlePaginationMenuButton} .text=${g(e.pageText??"",{index:I(s+1),total:I(i)})} text-enabled title=${e.showAllFeatures??""??u}></calcite-action>`}_renderPagination(e,t){let{previous:i,next:a}=this.messages;return n`<calcite-action-bar class="pagination-action-bar" expand-toggle-disabled layout=horizontal overflow-mode=none scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${i??""} @click=${e} .text=${i??""} title=${i??""??u}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${a??""} @click=${t} .text=${a??""} title=${a??""??u}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e){let{initialDisplayMode:t}=this,{featureModels:i,selectedFeatureIndex:a}=this.viewModel,s=i[e],o=s?.state==="ready"?s.heading:"",r=e===a;return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(e)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(e)} .selected=${r} @calciteListItemSelect=${()=>this._selectFeature(e)}><span .innerHTML=${(M.sanitize(o)||(s?.state==="loading"?this.messages.loading:this.messages.untitled))??""} slot=content></span>${t==="list"?n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,i=this._groupResultsByLayer(),a=this.initialDisplayMode==="list"?"none":"single";return t.features.length?n`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${a}>${Array.from(i,([s,o])=>{let r=o.map(d=>this._renderFeatureMenuItem(d)),l=s?s.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&l!==null?L(s??"map-graphics",n`<calcite-list-item-group .heading=${l}>${r}</calcite-list-item-group>`):r})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?n`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??u}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(e){let{headingLevel:t,hideCloseButton:i,_isCollapsed:a,_collapseEnabled:s,featureNavigationTop:o,initialDisplayMode:r,selectedFeature:l,hideHeading:d}=this,{active:c,selectedFeatureItem:v,content:F}=this.viewModel,p=this._getHeading();if(r==="list"&&!l)return null;let w=!this._selectedFeaturePending&&(v?!v.content:!F);return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${$(A({"content-feature":!0,"flow-item-collapsed":a}))} .closable=${!i} .closed=${!c} .collapsed=${a} .collapseDirection=${this.collapseDirection??(o?"down":"up")} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController||this._selectedFeatureLoading} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!d&&p?b(p):void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!d&&p?n`<div slot=heading><div .innerHTML=${M.sanitize(p??"")??""}></div></div>`:null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${$(A("container","content-container",{"content-hidden":w}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderDiagnosticsRefineResults(){let{messages:e}=this,{view:t}=this.viewModel;return t!=null&&"effectiveMaxZoom"in t.constraints&&t.constraints.effectiveMaxZoom>=0&&t.zoom>=t.constraints.effectiveMaxZoom?e.maxRecordCountDescriptionRefineResultsMaxZoomLevel:e.maxRecordCountDescriptionRefineResults}_renderDiagnosticsList(e){let{messages:t}=this,i=Array.from(e,a=>te(a)??t.untitled);return i.length?n`<p>${t.maxRecordCountDescriptionWithLayerList}</p><ul>${i.map(a=>n`<li>${a}</li>`)}</ul><p>${this._renderDiagnosticsRefineResults()}</p>`:null}_renderDiagnosticsMultipleLayers(){let{messages:e}=this;return n`<p>${e.maxRecordCountDescriptionMultipleLayers}</p><p>${this._renderDiagnosticsRefineResults()}</p>`}_renderDiagnostics(){let{messages:e}=this,{diagnostics:t}=this.viewModel,i=t?.layerLimitExceeded;return i?.size?n`<calcite-notice class="diagnostics-notice" open kind=info scale=s><span slot=title>${e.maxRecordCountHeading}</span><div slot=message>${i.size<=oe?this._renderDiagnosticsList(i):this._renderDiagnosticsMultipleLayers()}</div></calcite-notice>`:null}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:i,messages:a,initialDisplayMode:s,featureMenuOpen:o,_featureFlowItemSelected:r,_collapseEnabled:l,_isCollapsed:d,featureNavigationTop:c,headingLevel:v}=this,{active:F,features:p,streamingFeatures:w}=e,G=i??a.selectFeature,y=this._backLabel;if(s==="feature"&&!o)return null;let K=!r;return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${$(A({"flow-item-collapsed":d}))} .closable=${!t} .closed=${!F} .collapsed=${s==="list"&&d} .collapseDirection=${this.collapseDirection??(c?"down":"up")} .collapsible=${s==="list"&&l} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand,back:y}} .description=${this.hideFeatureMenuHeading?void 0:g(a.total??"",{total:p.length})} .heading=${this.hideFeatureMenuHeading?void 0:G} .headingLevel=${v} .loading=${e.waitingForResult} .selected=${K} @calciteFlowItemBack=${X=>{X.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${w?n`<calcite-loader class="loader" inline .label=${a.loading??""} slot=header-actions-end></calcite-loader>`:null}${this._renderDiagnostics()}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" aria-hidden=true ${m(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?n`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${y} title=${y??u}>${a.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{hideCloseButton:i,active:a,hideHeading:s,hideSelectFeature:o,messages:r}=this,l=r.returnToInitialFeature??"",d=r?.selectFeature,c="showAllEnabled"in e?e.showAllEnabled:!1,v=e.flowType==="feature"||e.flowType==="feature-association"||e.flowType==="feature-relationship"&&!c,F=e.flowType!=="feature"&&v&&"isFeatureFromTable"in e&&!e.isFeatureFromTable&&!o,p=e.flowType==="feature"&&this.viewModel.aggregatedFeaturesEnabled?n`<div class="footer" slot=footer>${this._renderPagination(()=>{this._aggregatedFeaturesComponent.value?.previous()},()=>{this._aggregatedFeaturesComponent.value?.next()})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount,this._selectedAggregatedFeatureIndex)}</div>`:null;return n`<calcite-flow-item .closable=${!i} .closed=${!a} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${b(this._getDrillInFlowItemDescription(e)??"")} .heading=${s?void 0:b(e.heading??"")} .selected=${t} @calciteFlowItemBack=${w=>{w.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${s?null:n`<div slot=heading><div .innerHTML=${M.sanitize(e.heading??"")??""}></div></div>`}<div slot=description><div .innerHTML=${M.sanitize(this._getDrillInFlowItemDescription(e)??"")??""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l??""} title=${l??""??u}></calcite-action>${F?n`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${d??""} title=${d??u}></calcite-action>`:null}${v&&this._renderActionBar(e)||""}<div class="container">${e}</div>${p}</calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e.length>0,i=this.viewModel.aggregatedFeaturesEnabled&&this.viewModel.selectedFeature?.isAggregate&&!t,a=i&&e.length===0,s=e.length===0&&this._featureFlowItemSelected&&!i,o=e?.map((d,c)=>this._renderFlowItem(d,this._featureFlowItemSelected&&c===e.length-1)),r=this._renderBrowseAggregateContainer(!!a),l=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(s)]:[this._renderContentFeature(s),this._renderFeatureMenuContainer()];return n`<calcite-flow ${m(this._flowContainerNode)}>${l}${r}${o}</calcite-flow>`}_renderBrowseAggregateContainer(e){let{hideCloseButton:t,active:i,messages:a}=this,{selectedFeature:s}=this.viewModel,o=this.viewModel.aggregatedFeaturesEnabled&&s?.isAggregate,r=this._backLabel;return o?n`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!i} .focusTrapEnabled=${this.focusTrapEnabled} .description=${this._aggregatedFeatureCount?g(a.total??"",{total:this._aggregatedFeatureCount}):""} .heading=${a.aggregatedFeatures} @calciteFlowItemBack=${l=>{l.preventDefault(),this.viewModel.aggregatedFeaturesEnabled=!1}} .messageOverrides=${{back:r}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s??void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map??void 0} .messageOverrides=${this.messageOverrides} .messages=${a} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.view??void 0} ${m(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${()=>this.viewModel.aggregatedFeaturesEnabled=!1} slot=footer-start scale=s width=full .label=${r} title=${r??u}>${a.back}</calcite-button></calcite-flow-item>`:null}_renderActionBar(e){let t=this.#e(e),i=!!t.length||this._hasActionsStartSlotContent||this._hasActionsEndSlotContent,a=this._isCollapsed||this.hideActionBar||!i;return n`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(a?void 0:"action-bar")??u} .hidden=${a}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${m(this._actionBarMenuNode)}>${this._renderActions(t,e)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`}_renderActions(e,t){return e.map(i=>{let a=this._getActionTitle(i,t),s=this._getActionLabel(i,t);return n`<calcite-action .active=${i.type==="toggle"?i.value:!1} .disabled=${i.disabled} .icon=${i.icon??void 0} .loading=${i.active} scale=s .textEnabled=${!this._hideActionText} .text=${a??""} .label=${s??a} title=${s??a??u} .hidden=${!i.visible} @click=${()=>this._triggerAction(i,t)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeature:t,includeDefaultActions:i,actions:a}=this.viewModel;return t?n`<arcgis-feature-next .actions=${a} .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .includeDefaultActions=${i} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} @arcgisPropertyChange=${()=>{this._selectedFeatureViewModel=this._selectedFeatureComponent.value?.viewModel}} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature-next>`:typeof e=="string"?L(e,n`<div .innerHTML=${M.sanitize(e)??""}></div>`):e??null}};N("arcgis-features-next",S);return S},"support/actions/ActionButton","core/Collection","popup/FeaturesModel","applications/Components/featureUtils","applications/Components/sanitizerUtils","applications/Components/stringUtils","intl","core/reactiveUtils","graphic/getGraphicOriginTitle",a,b,c,d,e,g,h,i,k)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as d}from"./D47546HM.js";import k from"./2H2YCUTD.js";import"./VJVKFKSG.js";import j from"./3VWROBRU.js";import{a as w}from"./EMF6EVCU.js";import i from"./ANTO53P2.js";import h from"./J6FGJ5GL.js";import{h as b}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import e from"./VULIDWWD.js";import"./QUZTFUWM.js";import{b as g}from"./NZROZFUD.js";import{O as c,P as v,X as f,a as y,b as a,n as o,p as l,x as r}from"./JG5OBAGE.js";import"./H6RQVSYM.js";export default $arcgis.t(([p,x,{when:k},C,,,,R,{a:u}])=>{var _=y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: 0px;--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;--calcite-panel-background-color: var(--calcite-color-background);min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}slot[name=results]::slotted(:not(arcgis-utility-network-trace-results)){display:none}slot[name=results]::slotted([arcgis-hidden-results-slot-item]){display:none}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}}`,D=R(C),$="arcgis-utility-network-trace-results",T="arcgis-hidden-results-slot-item",P=["actions","autoDestroyDisabled","aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","disableHighlightFeatureResults","hideActionBar","hideFeatureResults","hideGraphics","hidePlaceholder","includeDefaultActionsDisabled","messageOverrides","referenceElement","traceError","traceResult","view"],m=class extends v{constructor(){super(...arguments),this._messages=w({blocking:!0}),this.#i=D(this),this.#r=t=>{let{detail:e,target:i}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=i[e.name],this.arcgisHideGraphicsChange.emit(this.hideGraphics)):e.name==="aggregatedGeometryResultsGraphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=i[e.name]):e.name==="aggregatedGeometryResultsSize"?(t.stopPropagation(),this.aggregatedGeometryResultsSize=i[e.name]):(e.name==="state"||e.name==="traceError"||e.name==="traceResult")&&t.stopPropagation()},this.#n=t=>{t.stopPropagation(),this.arcgisTraceResultClear.emit()},this.#o=t=>{t.stopPropagation(),this.arcgisTraceResultFeaturesReady.emit(),this.arcgisTraceResultReady.emit()},this.#a=t=>{t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)},this._activeTab="input",this._showMissingTerminalWarning=!1,this._showNoStartingPointsWarning=!1,this._slottedElements=[],this._mode="default",this.autoDestroyDisabled=!1,this.aggregatedGeometryResultsGraphicsColor=new p(d),this.aggregatedGeometryResultsSize=12,this.disableHighlightFeatureResults=!1,this.flowItems=new x,this.hideActionBar=!1,this.hideClearResultsCount=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.state=this.#i.state,this.view=this.#i.view,this.arcgisError=r(),this.arcgisHideGraphicsChange=r(),this.arcgisPropertyChange=b()("aggregatedGeometryResultsGraphicsColor","hideGraphics","state","traceError","traceResult"),this.arcgisReady=r(),this.arcgisTraceLocationSelectEnd=r(),this.arcgisTraceLocationSelectStart=r(),this.arcgisTraceResultClear=r(),this.arcgisTraceResultFeaturesReady=r(),this.arcgisTraceResultReady=r(),this.arcgisTriggerAction=r()}static{this.properties={_activeTab:16,_showMissingTerminalWarning:16,_showNoStartingPointsWarning:16,_slottedElements:16,_mode:16,actions:0,autoDestroyDisabled:5,beforeMapInteraction:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>p.fromString(t)??new p(d)}}],aggregatedGeometryResultsSize:9,disableHighlightFeatureResults:5,flowItems:32,hideActionBar:5,hideClearResultsCount:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,label:3,messageOverrides:0,traceResultFeatures:32,traceResult:0,traceError:32,referenceElement:1,state:32,view:0}}static{this.styles=_}get#c(){return this.view?.map?.allLayers.toArray().concat(this.view.map.allTables.toArray())??[]}#e;#t;#h;#i;get#p(){return Array.from(this.el.children).some(t=>t.slot==="results"&&t.matches($))}#r;#n;#o;#a;get traceResultFeatures(){return this.#t?.traceResultFeatures??[]}async destroy(){this.#u(this.#t);let t=await Promise.allSettled([this.#t?.destroy(),this.#e?.destroy()]);for(let e of t)e.status==="rejected"&&u(e.reason,this,"Error while destroying trace analysis component");this.#e=void 0,this.#t=void 0,await this.manager.destroy()}load(){this.manager.onLifecycle(()=>[k(()=>!this.#i.utilityNetwork,()=>this.#s("input"))])}willUpdate(t){P.some(e=>t.has(e))&&this.#l(this.#t)}#g(){this.traceResult=void 0,o(()=>this.traceError=void 0),this.#t?.clearResults(),this.#h?.flowItems.removeAll()}#m(){if(!this.#e)return;let{traceLocations:t,traceLocationDetails:e,traceConfiguration:i,isSubnetworkNameTraceSelected:s}=this.#e,h=!!i?.subnetworkName,E=t?.some(n=>n.type==="starting-point"),G=e?.some(n=>!!n.flagProperties.terminalConfiguration&&!n.flagProperties.selectedTerminals?.size)??!1;this._showNoStartingPointsWarning=!s&&!E||s&&!h,this._showMissingTerminalWarning=G}#s(t){this._activeTab=t}#l(t){if(!t)return;let e={actions:this.actions,autoDestroyDisabled:this.autoDestroyDisabled,aggregatedGeometryResultsGraphicsColor:this.aggregatedGeometryResultsGraphicsColor,aggregatedGeometryResultsSize:this.aggregatedGeometryResultsSize,disableHighlightFeatureResults:this.disableHighlightFeatureResults,expanded:!0,hideActionBar:this.hideActionBar,hideFeatureResults:this.hideFeatureResults,hideGraphics:this.hideGraphics,hidePlaceholder:this.hidePlaceholder,includeDefaultActionsDisabled:this.includeDefaultActionsDisabled,layers:this.#c,messageOverrides:this.messageOverrides,referenceElement:this.referenceElement,traceError:this.traceError,traceResult:this.traceResult,utilityNetwork:this.#i.utilityNetwork??void 0,view:this.view??void 0};Object.assign(t,e)}#y(t){t&&(t.addEventListener("arcgisPropertyChange",this.#r),t.addEventListener("arcgisResultsReady",this.#o),t.addEventListener("arcgisTraceResultClear",this.#n),t.addEventListener("arcgisTriggerAction",this.#a))}#u(t){t&&(t.removeEventListener("arcgisPropertyChange",this.#r),t.removeEventListener("arcgisResultsReady",this.#o),t.removeEventListener("arcgisTraceResultClear",this.#n),t.removeEventListener("arcgisTriggerAction",this.#a))}#v(t){let{_messages:e}=this;switch(t){case"no-user-type-extension":return e.errors.loadErrors.noUserTypeExtension;case"no-utility-network":return e.errors.loadErrors.noUtilityNetwork;case"no-view":return e.errors.loadErrors.noView;case"sceneView-not-supported":return e.errors.loadErrors.sceneViewNotSupported;default:return t}}async#f(){let t=this.#e?.selectedNamedTraceConfiguration,e=this.#e?.traceConfiguration;if(!(t?.traceType&&e)){l("error",this,"Trace configuration not found"),o(()=>this.traceError=new Error("Trace configuration not found")),this.arcgisError.emit();return}let i=this.#e?.traceLocations;try{this.traceResult=await this.#i.executeTraceConfiguration({traceType:t.traceType,traceConfiguration:e,traceLocations:i??[],resultTypes:t.resultTypes,outSpatialReference:this.view?.spatialReference})}catch(s){u(s,this,"Error while running trace"),o(()=>this.traceError=s),this.traceResult=void 0,this.arcgisError.emit()}}#b(){this.#m(),!(this._showNoStartingPointsWarning||this._showMissingTerminalWarning)&&(this._showNoStartingPointsWarning=!1,this._showMissingTerminalWarning=!1,this.#g(),this.#s("results"),this.#f())}#w(t){t&&(this.#e=t)}#d(t){!t||t===this.#t||(this.#u(this.#t),this.#t=t,this.#y(t))}#R(t){this.#h=t}#$(t){this._slottedElements=g(t);let e=g(t,$);if((!e.length||e.length<this._slottedElements.length)&&l("warn",this,"The trace results pane only renders instances of `arcgis-utility-network-trace-results` in the `results` slot."),e.length>1&&l("warn",this,"Multiple `arcgis-utility-network-trace-results` elements were provided in the `results` slot. Only the first will render."),!e.length)return;let[i]=e;for(let s of e)s===i?s.removeAttribute(T):s.setAttribute(T,"");this.#d(i),this.#l(i)}#T(t){t.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(t.detail).defaultPrevented&&t.preventDefault()}#E(t){t.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit()}#G(t){let{detail:e,target:i}=t;t.stopPropagation(),e.name==="selectedUtilityNetwork"&&(this.#i.utilityNetwork=i.selectedUtilityNetwork,this.#l(this.#t)),e.name==="selectedNamedTraceConfiguration"&&(this._showNoStartingPointsWarning=!1,this._showMissingTerminalWarning=!1),e.name==="mode"&&(this._mode=i.mode)}#x(){let{_messages:t}=this;return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this._showMissingTerminalWarning=!1}><div slot=title>${t.errors.missingTerminalTitle}</div><div slot=message>${t.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`}#k(){let{_messages:t}=this;return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this._showNoStartingPointsWarning=!1}><div slot=title>${t.errors.noStartingPointsTitle}</div><div slot=message>${t.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`}#C(){return a`<calcite-tab .selected=${this._activeTab==="results"}>${this.state==="executing"&&a`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>`||""}<arcgis-utility-network-trace-results-pane hide-warnings .hidden=${this.state==="executing"} ${c(this.#R)}><slot name=results @slotchange=${this.#$}></slot>${this.#p?null:a`<arcgis-utility-network-trace-results .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryResultsGraphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .aggregatedGeometryResultsSize=${this.aggregatedGeometryResultsSize} .disableHighlightFeatureResults=${this.disableHighlightFeatureResults} expanded .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hideGraphics=${this.hideGraphics} .hidePlaceholder=${this.hidePlaceholder} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.#c} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this.#i.utilityNetwork??void 0} .view=${this.view??void 0} ${c(this.#d)}></arcgis-utility-network-trace-results>`}</arcgis-utility-network-trace-results-pane></calcite-tab>`}#_(){let{_messages:t,traceResult:e}=this,i=!!(e?.elements.length||e?.globalFunctionResults.length||e?.aggregatedGeometry)&&this.#t?.state==="ready",s=this.#t?.numFeatureResults??0,h=s>0&&!this.hideFeatureResults&&!this.hideClearResultsCount&&this.state!=="executing";return a`<calcite-button appearance=outline width=full @click=${()=>{this.#s("input"),this.#g()}} .disabled=${!i} slot=footer>${h?t.buttons.clearResultsCustom.replace("{number}",s.toString()):t.buttons.clearResultsGeneric}</calcite-button>`}#D(){let{_mode:t}=this,{loadError:e}=this.#i,i=(e==="no-user-type-extension"||e==="sceneView-not-supported"?a`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this.#v(e)}</div></calcite-notice>`:void 0)??a`${this._showNoStartingPointsWarning&&t==="default"&&this.#k()||""}${this._showMissingTerminalWarning&&t==="default"&&this.#x()||""}<arcgis-utility-network-trace-inputs .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .view=${this.view??void 0} .beforeMapInteraction=${this.beforeMapInteraction} @arcgisPropertyChange=${this.#G} @arcgisTraceLocationSelectEnd=${this.#E} @arcgisTraceLocationSelectStart=${this.#T} @arcgisTriggerAction=${this.#a} ${c(this.#w)}></arcgis-utility-network-trace-inputs>`;return a`<calcite-tab .selected=${this._activeTab==="input"}><div class="inputs-tab-container">${i}</div></calcite-tab>`}#P(){let{state:t}=this;if(this._mode!=="default")return null;let e=t==="disabled"||t==="loading"||!this.#e?.traceConfiguration;return a`<calcite-button appearance=solid width=full @click=${this.#b} slot=footer .disabled=${e}>${this._messages.buttons.getResults}</calcite-button>`}render(){let{_activeTab:t,state:e}=this;return a`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @calciteTabsActivate=${()=>this.#s("input")} .selected=${t==="input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${()=>this.#s("results")} .selected=${t==="results"} .disabled=${e==="disabled"||e==="loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.#D()}${this.#C()}</calcite-tabs>${t==="input"?this.#P():null}${t==="results"?this.#_():null}</calcite-panel>`}};f("arcgis-utility-network-trace-analysis",m);return m},"Color","core/Collection","core/reactiveUtils","networks/UtilityNetworkTraceAnalysis",e,h,i,j,k)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as A,b as v}from"./YWC5AUFV.js";import c from"./PIMHCTPI.js";import a from"./TMJX7DFH.js";import"./HDDHFB4N.js";import"./MLB4A6K7.js";import"./QUZTFUWM.js";import{e as b}from"./NZROZFUD.js";import{P as L,R as y,S as $,U as o,X as I,a as k,b as i,n as _}from"./JG5OBAGE.js";import"./H6RQVSYM.js";export default $arcgis.t(([P,x,C,T,{watch:S},,{e:u}])=>{var z=k`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}calcite-card:hover,calcite-card:focus,calcite-card:focus-within{--calcite-card-border-color: var(--calcite-color-text-1)}`,R=C.ofType(P),w=class extends L{constructor(){super(...arguments),this._attachmentLayer=null,this._supportsImageOrientation=window?.CSS?.supports("image-orientation","from-image"),this.hideSection=!1,this._attachmentInfos=new R,this.headingLevel=2,this.hidePreviewImageAttachmentName=!1,this.empty=!1}static{this.properties={effectiveDisplayType:16,getAttachmentsPromise:16,hideSection:16,_attachmentInfos:16,_hasContent:16,supportsResizeAttachments:16,attachmentKeywords:0,attachmentTypes:0,description:1,displayType:1,graphic:0,heading:1,messages:0,orderByFields:0,headingLevel:9,hidePreviewImageAttachmentName:5,empty:39}}static{this.styles=z}get _supportsTypeWildcard(){let{graphic:e}=this;if(!e)return!1;let t=u(e);return t?.loaded&&"capabilities"in t&&t.capabilities&&"attachment"in t.capabilities&&t.capabilities.attachment&&"supportsResize"in t.capabilities.attachment&&t.capabilities.attachment.supportsTypeWildcard||!1}get effectiveDisplayType(){let{displayType:e}=this;return!e||e==="auto"?this.supportsResizeAttachments?"preview":"list":e}get _hasContent(){return this._attachmentInfos.length>0||this.getAttachmentsPromise!=null}get supportsResizeAttachments(){let{graphic:e}=this;if(!e)return!1;let t=u(e);return t?.loaded&&"capabilities"in t&&t.capabilities&&"attachment"in t.capabilities&&t.capabilities.attachment&&"supportsResize"in t.capabilities.attachment&&t.capabilities.attachment.supportsResize||!1}loaded(){this.manager.onLifecycle(()=>[S(()=>this.graphic,()=>this.graphicChanged(),{initial:!0})])}async getAttachments(){let{_attachmentLayer:e,_attachmentInfos:t,orderByFields:s,attachmentTypes:n,attachmentKeywords:c,_supportsTypeWildcard:l}=this;if(!e||typeof e.queryAttachments!="function")throw new T("invalid-layer","getAttachments(): A valid layer is required.");let m=this.graphic?.getObjectId();if(typeof m!="number")throw new T("invalid-object-id","getAttachments(): Numeric object id is required");let g=s?.map(a=>`${a.field} ${a.order==="descending"?"DESC":"ASC"}`),r=new x({objectIds:[m],returnMetadata:!0,orderByFields:g,attachmentTypes:l?n?.filter(Boolean).map(a=>`${a}/*`):void 0,keywords:c}),h=[],d=e.queryAttachments(r).then(a=>a[m]||h).catch(()=>h);this.getAttachmentsPromise=d,this._setEmpty(!1);let p=await d;t.destroyAll(),p.length&&t.addMany(p),this.getAttachmentsPromise=null,this._setEmpty(!this._hasContent)}_setEmpty(e){_(()=>this.empty=e)}setAttachmentLayer(){let{graphic:e}=this,t=u(e);this._attachmentLayer=t?t.type==="scene"&&t.associatedLayer!=null?t.associatedLayer:t:null}graphicChanged(){if(!this.graphic){this._attachmentInfos.destroyAll(),this.getAttachmentsPromise=null,this._setEmpty(!0);return}this.setAttachmentLayer(),this.getAttachments().catch(()=>{this._attachmentInfos.destroyAll(),this.getAttachmentsPromise=null,this._setEmpty(!0)})}getCSSTransform(e){let{orientationInfo:t}=e;return!this._supportsImageOrientation&&t?[t.rotation?`rotate(${t.rotation}deg)`:"",t.mirrored?"scaleX(-1)":""].join(" "):""}render(){return this.empty?null:i`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`}renderAttachmentsList(e){return i`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel??""} interaction-mode=static selection-mode=none>${e.toArray().filter(Boolean).map(t=>this.renderAttachmentListItem(t))}</calcite-list>`}renderAttachmentsPreview(e){return i`<calcite-card-group .label=${this.messages?.componentLabel??""}>${this.getAttachmentsPromise?i`<calcite-card loading></calcite-card>`:e.toArray().filter(Boolean).map(t=>this.renderAttachmentPreviewItem(t))}</calcite-card-group>`}renderAttachmentsCarousel(e){let t=e.toArray().filter(Boolean);return i`<calcite-carousel .paginationDisabled=${t.length<2} .label=${this.messages?.componentLabel??""} pagination-position=top>${this.getAttachmentsPromise?i`<calcite-carousel-item .label=${this.messages?.componentLabel??""}><calcite-card loading></calcite-card></calcite-carousel-item>`:t.map(s=>i`<calcite-carousel-item .label=${s.name||this.messages?.noTitle||""}>${this.renderAttachmentPreviewItem(s,!0)}</calcite-carousel-item>`)}</calcite-carousel>`}renderAttachments(){let{effectiveDisplayType:e,_attachmentInfos:t}=this;return e==="carousel"?this.renderAttachmentsCarousel(t):e==="preview"?this.renderAttachmentsPreview(t):this.renderAttachmentsList(t)}renderAttachmentListItem(e){let{supportsResizeAttachments:t}=this,{contentType:s,name:n,url:c,size:l}=e,m=64,g=n||this.messages?.noTitle,r=v(s),h=this.getCSSTransform(e),d=h?{transform:h,"image-orientation":"none"}:{},p=t&&A(s),a=i`<a class=${y(b("item-link","item-link--list",{"item-link--list-icon":!p}))} slot=content-start href=${c??void 0??o} rel=noreferrer target=_blank>${p?i`<img alt=${n??o} src=${`${c}${c?.includes("?")?"&":"?"}w=${m}&s=${l}`} style=${$(d)} title=${n??o}>`:i`<calcite-icon .icon=${r}></calcite-icon>`}</a>`,f=i`<calcite-link slot=content .href=${c??void 0} rel=noreferrer target=_blank>${g}</calcite-link>`;return i`<calcite-list-item .label=${g}>${a}${f}</calcite-list-item>`}renderAttachmentPreviewItem(e,t=!1){let{supportsResizeAttachments:s}=this,{contentType:n,name:c,url:l,size:m}=e,g=225,r=c||this.messages?.noTitle,h=v(n),d=this.getCSSTransform(e),p=d?{transform:d,"image-orientation":"none"}:{},a=s&&A(n),f=i`<a class=${y(b("item-link","item-link--preview"))} slot=thumbnail href=${l??void 0??o} rel=noreferrer target=_blank aria-label=${r??o} title=${r??o}>${a?i`<img alt=${r??o} src=${`${l}${l?.includes("?")?"&":"?"}w=${g}&s=${m}`} style=${$(p)}>`:i`<calcite-icon scale=l .icon=${h}></calcite-icon>`}</a>`;return i`<calcite-card .label=${r}>${f}${(t||this.hidePreviewImageAttachmentName)&&a?null:i`<span class="item-description" slot=description>${r}</span>`}</calcite-card>`}};I("arcgis-feature-attachments",w);return w},"rest/query/support/AttachmentInfo","rest/support/AttachmentQuery","core/Collection","core/Error","core/reactiveUtils",a,c)
@@ -1,73 +0,0 @@
1
- import type Accessor from "@arcgis/core/core/Accessor.js";
2
- import type TimeExtent from "@arcgis/core/time/TimeExtent.js";
3
- import type MapView from "@arcgis/core/views/MapView.js";
4
- import type SceneView from "@arcgis/core/views/SceneView.js";
5
- import type WebMap from "@arcgis/core/WebMap.js";
6
- import type WebScene from "@arcgis/core/WebScene.js";
7
- import type { DateTimeFormatOptions } from "@arcgis/core/intl/date.js";
8
- import type { Format, Mode, State, Stops, TickFormat } from "./types.js";
9
- import type { TimeZone } from "@arcgis/core/time/types.js";
10
-
11
- export class TimeBarViewModel extends Accessor {
12
- get canNext(): boolean;
13
- get canPrevious(): boolean;
14
- /** @default false */
15
- accessor disabled: boolean;
16
- get effectiveStops(): Date[] | undefined;
17
- get effectiveStopsEpoch(): number[] | undefined;
18
- /**
19
- * Indicates whether the `fullTimeExtent` starts before the common era (BCE).
20
- * This property is used to determine if era information should be included in the time slider's date labels.
21
- */
22
- get era(): DateTimeFormatOptions["era"];
23
- /** @default "date" */
24
- accessor format: Format;
25
- accessor fullTimeExtent: TimeExtent | undefined;
26
- /** Convenience property to determine if the component is interactive. */
27
- get interactive(): boolean;
28
- /** Determines if the current timeExtent is outside the bounds of the fullTimeExtent or otherwise invalid. */
29
- get isOutOfRange(): boolean;
30
- /** @default false */
31
- accessor loadPersistedSettingsDisabled: boolean;
32
- accessor locale: string | undefined;
33
- /** @default false */
34
- accessor loop: boolean;
35
- /** @default "time-window" */
36
- accessor mode: Mode;
37
- accessor playRate: number;
38
- /** @default false */
39
- accessor reverseAnimation: boolean;
40
- /** @default false */
41
- accessor savePersistedSettingsDisabled: boolean;
42
- get state(): State;
43
- accessor stops: Stops | undefined;
44
- accessor tickFormat: TickFormat | undefined;
45
- get tickFormats(): TickFormat[];
46
- get tickFormatter(): (value: number) => string;
47
- get tickValues(): number[];
48
- accessor timeExtent: TimeExtent | undefined;
49
- get timeZone(): TimeZone;
50
- set timeZone(value: TimeZone | null | undefined);
51
- accessor view: MapView | SceneView | undefined;
52
- /** View's time zone, if available. */
53
- get viewTimeZone(): TimeZone | undefined;
54
- destroy(): void;
55
- /** @param date */
56
- formatDate(date: Date): string;
57
- /** @param date */
58
- formatDateTime(date: Date): string;
59
- /**
60
- * @param value
61
- * @param formatOptions
62
- */
63
- formatNumber(value: number, formatOptions: Intl.NumberFormatOptions): string;
64
- /** @param date */
65
- formatTime(date: Date): string;
66
- initialize(): Promise<void>;
67
- next(): void;
68
- play(): void;
69
- previous(): void;
70
- stop(): void;
71
- /** @param document */
72
- updateWebDocument(document: WebMap | WebScene): void;
73
- }