@arcgis/map-components 5.2.0-next.11 → 5.2.0-next.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/loader.js CHANGED
@@ -48,8 +48,8 @@ const s = t(e, {
48
48
  "arcgis-feature-templates-legacy": [() => import("./components/arcgis-feature-templates-legacy/customElement.js"), "autoDestroyDisabled,disabledItemFunction:,enableListScroll,filterFunction:,filterText,groupBy,headingLevel,hideFilter,icon,items:,label,layers:,referenceElement,selectedItem:,selectionMode,state:,view:;destroy;select"],
49
49
  "arcgis-feature-utility-network-association-list": [() => import("./components/arcgis-feature-utility-network-association-list/customElement.js"), "associatedFeatureCount:,associationViewModels:,autoDestroyDisabled,currentFeaturePage,description,displayCount,endIndex:,featuresPerPage,flowItems:,flowType,heading,map:,maxFeatureCount,messages:,parentFeatureViewModel:,referenceElement,selectedLayer:,showAllEnabled,spatialReference:,state,timeZone,tooltipReferenceMap:,useFeatureNextFlowItem,view:;destroy"],
50
50
  "arcgis-feature-utility-network-associations": [() => import("./components/arcgis-feature-utility-network-associations/customElement.js"), "associationTypes:,autoDestroyDisabled,description,flowItems:,flowType,graphic:,heading,headingLevel,layer:,map:,messages:,parentFeatureViewModel:,referenceElement,source,spatialReference:,timeZone,useFeatureNextFlowItem,view:;destroy"],
51
- "arcgis-features": [() => import("./components/arcgis-features/customElement.js"), "actions:,active:,autoDestroyDisabled,chartAnimationDisabled,collapsed,content,defaultPopupTemplateEnabled,effectiveHeading:,featureCount,featureMenuOpen,featureMenuTitle,featureNavigationTop,features:,featuresPerPage,featureViewModelAbilities:,goToOverride:,headerActions:,heading,headingLevel,hideActionBar,hideAttachmentsContent,hideCloseButton,hideContent,hideCustomContent,hideExpressionContent,hideFeatureListLayerTitle,hideFeatureMenuHeading,hideFeatureNavigation,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideRelationshipContent,hideSelectFeature,hideSpinner,hideTextContent,hideUtilityNetworkContent,highlightDisabled,icon,includeDefaultActionsDisabled,initialDisplayMode,label,location:,map:,messageOverrides:,messages:,open,promises:,referenceElement,responsiveActionsEnabled,selectedDrillInFeature:,selectedFeature:,selectedFeatureComponent:,selectedFeatureIndex,showCollapseButton,spatialReference:,state:,timeZone,updateLocationEnabled,view:,viewModel:;clear,close,destroy,fetchFeatures,next,previous,setFocus,triggerAction"],
52
- "arcgis-features-next": [() => import("./components/arcgis-features-next/customElement.js"), "actions:,active:,autoDestroyDisabled,chartAnimationDisabled,collapsed,content,defaultPopupTemplateEnabled,effectiveHeading:,featureCount,featureItemAbilities:,featureMenuOpen,featureMenuTitle,featureNavigationTop,features:,featuresPerPage,focusTrapEnabled,goToOverride:,headerActions:,heading,headingLevel,hideActionBar,hideAttachmentsContent,hideCloseButton,hideContent,hideCustomContent,hideExpressionContent,hideFeatureListLayerTitle,hideFeatureMenuHeading,hideFeatureNavigation,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideRelationshipContent,hideSelectFeature,hideSpinner,hideTextContent,hideUtilityNetworkContent,highlightDisabled,icon,includeDefaultActionsDisabled,initialDisplayMode,label,location:,map:,messageOverrides:,messages:,open,promises:,referenceElement,responsiveActionsEnabled,selectedDrillInFeature:,selectedFeature:,selectedFeatureComponent:,selectedFeatureIndex,showCollapseButton,spatialReference:,state:,timeZone,updateLocationEnabled,view:,viewModel:;destroy,fetchFeatures,setFocus,triggerAction;clear,close,next,previous"],
51
+ "arcgis-features": [() => import("./components/arcgis-features/customElement.js"), "actions:,active:,autoDestroyDisabled,chartAnimationDisabled,collapsed,collapseDirection,content,defaultPopupTemplateEnabled,effectiveHeading:,featureCount,featureMenuOpen,featureMenuTitle,featureNavigationTop,features:,featuresPerPage,featureViewModelAbilities:,goToOverride:,headerActions:,heading,headingLevel,hideActionBar,hideAttachmentsContent,hideCloseButton,hideContent,hideCustomContent,hideExpressionContent,hideFeatureListLayerTitle,hideFeatureMenuHeading,hideFeatureNavigation,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideRelationshipContent,hideSelectFeature,hideSpinner,hideTextContent,hideUtilityNetworkContent,highlightDisabled,icon,includeDefaultActionsDisabled,initialDisplayMode,label,location:,map:,messageOverrides:,messages:,open,promises:,referenceElement,responsiveActionsEnabled,selectedDrillInFeature:,selectedFeature:,selectedFeatureComponent:,selectedFeatureIndex,showCollapseButton,spatialReference:,state:,timeZone,updateLocationEnabled,view:,viewModel:;clear,close,destroy,fetchFeatures,next,previous,setFocus,triggerAction"],
52
+ "arcgis-features-next": [() => import("./components/arcgis-features-next/customElement.js"), "actions:,active:,autoDestroyDisabled,chartAnimationDisabled,collapsed,collapseDirection,content,defaultPopupTemplateEnabled,effectiveHeading:,featureCount,featureItemAbilities:,featureMenuOpen,featureMenuTitle,featureNavigationTop,features:,featuresPerPage,focusTrapEnabled,goToOverride:,headerActions:,heading,headingLevel,hideActionBar,hideAttachmentsContent,hideCloseButton,hideContent,hideCustomContent,hideExpressionContent,hideFeatureListLayerTitle,hideFeatureMenuHeading,hideFeatureNavigation,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideRelationshipContent,hideSelectFeature,hideSpinner,hideTextContent,hideUtilityNetworkContent,highlightDisabled,icon,includeDefaultActionsDisabled,initialDisplayMode,label,location:,map:,messageOverrides:,messages:,open,promises:,referenceElement,responsiveActionsEnabled,selectedDrillInFeature:,selectedFeature:,selectedFeatureComponent:,selectedFeatureIndex,showCollapseButton,spatialReference:,state:,timeZone,updateLocationEnabled,view:,viewModel:;destroy,fetchFeatures,setFocus,triggerAction;clear,close,next,previous"],
53
53
  "arcgis-floor-filter": [() => import("./components/arcgis-floor-filter/customElement.js"), "autoDestroyDisabled,facility,goToOverride:,headingLevel,icon,label,level,longNames,messageOverrides:,messages:,referenceElement,site,view:;destroy,updateWebDocument"],
54
54
  "arcgis-fullscreen": [() => import("./components/arcgis-fullscreen/customElement.js"), "element,label,messageOverrides:,messages:,referenceElement,state,view:,visualScale"],
55
55
  "arcgis-grid-controls": [() => import("./components/arcgis-grid-controls/customElement.js"), "_messages:,autoDestroyDisabled,customColor,displayEnabled:,dynamicScaling,effectiveSpacingAfterDynamicScaling,gridColor,gridControlsEnabled:,gridOutOfScale,hideColorSelection,hideDynamicScaleToggle,hideGridEnabledToggle,hideGridSnapEnabledToggle,hideLineIntervalInput,hideNumericInputs,hideOutOfScaleWarning,hidePlacementButtons,hideRotateWithMapToggle,icon,interactivePlacementState,label,majorLineInterval,messageOverrides:,placementDisabled,referenceElement,rotateWithMap,rotation,snappingEnabled,snappingOptions:,spacing,theme,unit,view:;destroy;trySetDisplayEnabled"],
@@ -294,14 +294,14 @@ interface LuminaArcgisFeatureTemplatesLegacy extends Partial<Pick<ArcgisFeatureT
294
294
  onarcgisSelect?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisSelect"]>;
295
295
  }
296
296
 
297
- interface LuminaArcgisFeatures extends Partial<Pick<ArcgisFeatures, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "featureViewModelAbilities" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "promises" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view" | "viewModel">>, h.JSX.HTMLAttributes<ArcgisFeatures> {
297
+ interface LuminaArcgisFeatures extends Partial<Pick<ArcgisFeatures, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "collapseDirection" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "featureViewModelAbilities" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "promises" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view" | "viewModel">>, h.JSX.HTMLAttributes<ArcgisFeatures> {
298
298
  onarcgisClose?: EventHandler<ArcgisFeatures["arcgisClose"]>;
299
299
  onarcgisPropertyChange?: EventHandler<ArcgisFeatures["arcgisPropertyChange"]>;
300
300
  onarcgisReady?: EventHandler<ArcgisFeatures["arcgisReady"]>;
301
301
  onarcgisTriggerAction?: EventHandler<ArcgisFeatures["arcgisTriggerAction"]>;
302
302
  }
303
303
 
304
- interface LuminaArcgisFeaturesNext extends Partial<Pick<ArcgisFeaturesNext, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureItemAbilities" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "focusTrapEnabled" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view">>, h.JSX.HTMLAttributes<ArcgisFeaturesNext> {
304
+ interface LuminaArcgisFeaturesNext extends Partial<Pick<ArcgisFeaturesNext, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "collapseDirection" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureItemAbilities" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "focusTrapEnabled" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view">>, h.JSX.HTMLAttributes<ArcgisFeaturesNext> {
305
305
  onarcgisClose?: EventHandler<ArcgisFeaturesNext["arcgisClose"]>;
306
306
  onarcgisPropertyChange?: EventHandler<ArcgisFeaturesNext["arcgisPropertyChange"]>;
307
307
  onarcgisReady?: EventHandler<ArcgisFeaturesNext["arcgisReady"]>;
@@ -295,14 +295,14 @@ interface PreactArcgisFeatureTemplatesLegacy extends Partial<Pick<ArcgisFeatureT
295
295
  onarcgisSelect?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisSelect"]>;
296
296
  }
297
297
 
298
- interface PreactArcgisFeatures extends Partial<Pick<ArcgisFeatures, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "featureViewModelAbilities" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "promises" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view" | "viewModel">>, HTMLAttributes<ArcgisFeatures> {
298
+ interface PreactArcgisFeatures extends Partial<Pick<ArcgisFeatures, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "collapseDirection" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "featureViewModelAbilities" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "promises" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view" | "viewModel">>, HTMLAttributes<ArcgisFeatures> {
299
299
  onarcgisClose?: EventHandler<ArcgisFeatures["arcgisClose"]>;
300
300
  onarcgisPropertyChange?: EventHandler<ArcgisFeatures["arcgisPropertyChange"]>;
301
301
  onarcgisReady?: EventHandler<ArcgisFeatures["arcgisReady"]>;
302
302
  onarcgisTriggerAction?: EventHandler<ArcgisFeatures["arcgisTriggerAction"]>;
303
303
  }
304
304
 
305
- interface PreactArcgisFeaturesNext extends Partial<Pick<ArcgisFeaturesNext, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureItemAbilities" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "focusTrapEnabled" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view">>, HTMLAttributes<ArcgisFeaturesNext> {
305
+ interface PreactArcgisFeaturesNext extends Partial<Pick<ArcgisFeaturesNext, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "collapseDirection" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureItemAbilities" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "focusTrapEnabled" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view">>, HTMLAttributes<ArcgisFeaturesNext> {
306
306
  onarcgisClose?: EventHandler<ArcgisFeaturesNext["arcgisClose"]>;
307
307
  onarcgisPropertyChange?: EventHandler<ArcgisFeaturesNext["arcgisPropertyChange"]>;
308
308
  onarcgisReady?: EventHandler<ArcgisFeaturesNext["arcgisReady"]>;
@@ -295,14 +295,14 @@ interface ReactArcgisFeatureTemplatesLegacy extends Partial<Pick<ArcgisFeatureTe
295
295
  onarcgisSelect?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisSelect"]>;
296
296
  }
297
297
 
298
- interface ReactArcgisFeatures extends Partial<Pick<ArcgisFeatures, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "featureViewModelAbilities" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "promises" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view" | "viewModel">>, HTMLProps<ArcgisFeatures> {
298
+ interface ReactArcgisFeatures extends Partial<Pick<ArcgisFeatures, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "collapseDirection" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "featureViewModelAbilities" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "promises" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view" | "viewModel">>, HTMLProps<ArcgisFeatures> {
299
299
  onarcgisClose?: EventHandler<ArcgisFeatures["arcgisClose"]>;
300
300
  onarcgisPropertyChange?: EventHandler<ArcgisFeatures["arcgisPropertyChange"]>;
301
301
  onarcgisReady?: EventHandler<ArcgisFeatures["arcgisReady"]>;
302
302
  onarcgisTriggerAction?: EventHandler<ArcgisFeatures["arcgisTriggerAction"]>;
303
303
  }
304
304
 
305
- interface ReactArcgisFeaturesNext extends Partial<Pick<ArcgisFeaturesNext, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureItemAbilities" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "focusTrapEnabled" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view">>, HTMLProps<ArcgisFeaturesNext> {
305
+ interface ReactArcgisFeaturesNext extends Partial<Pick<ArcgisFeaturesNext, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "collapseDirection" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureItemAbilities" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "focusTrapEnabled" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view">>, HTMLProps<ArcgisFeaturesNext> {
306
306
  onarcgisClose?: EventHandler<ArcgisFeaturesNext["arcgisClose"]>;
307
307
  onarcgisPropertyChange?: EventHandler<ArcgisFeaturesNext["arcgisPropertyChange"]>;
308
308
  onarcgisReady?: EventHandler<ArcgisFeaturesNext["arcgisReady"]>;
@@ -295,14 +295,14 @@ interface StencilArcgisFeatureTemplatesLegacy extends Partial<Pick<ArcgisFeature
295
295
  onArcgisSelect?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisSelect"]>;
296
296
  }
297
297
 
298
- interface StencilArcgisFeatures extends Partial<Pick<ArcgisFeatures, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "featureViewModelAbilities" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "promises" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view" | "viewModel">>, StencilJsx.HTMLAttributes<ArcgisFeatures> {
298
+ interface StencilArcgisFeatures extends Partial<Pick<ArcgisFeatures, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "collapseDirection" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "featureViewModelAbilities" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "promises" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view" | "viewModel">>, StencilJsx.HTMLAttributes<ArcgisFeatures> {
299
299
  onArcgisClose?: EventHandler<ArcgisFeatures["arcgisClose"]>;
300
300
  onArcgisPropertyChange?: EventHandler<ArcgisFeatures["arcgisPropertyChange"]>;
301
301
  onArcgisReady?: EventHandler<ArcgisFeatures["arcgisReady"]>;
302
302
  onArcgisTriggerAction?: EventHandler<ArcgisFeatures["arcgisTriggerAction"]>;
303
303
  }
304
304
 
305
- interface StencilArcgisFeaturesNext extends Partial<Pick<ArcgisFeaturesNext, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureItemAbilities" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "focusTrapEnabled" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view">>, StencilJsx.HTMLAttributes<ArcgisFeaturesNext> {
305
+ interface StencilArcgisFeaturesNext extends Partial<Pick<ArcgisFeaturesNext, "actions" | "autoDestroyDisabled" | "chartAnimationDisabled" | "collapsed" | "collapseDirection" | "content" | "defaultPopupTemplateEnabled" | "featureCount" | "featureItemAbilities" | "featureMenuOpen" | "featureMenuTitle" | "featureNavigationTop" | "features" | "featuresPerPage" | "focusTrapEnabled" | "goToOverride" | "headerActions" | "heading" | "headingLevel" | "hideActionBar" | "hideAttachmentsContent" | "hideCloseButton" | "hideContent" | "hideCustomContent" | "hideExpressionContent" | "hideFeatureListLayerTitle" | "hideFeatureMenuHeading" | "hideFeatureNavigation" | "hideFieldsContent" | "hideHeading" | "hideLastEditedInfo" | "hideMediaContent" | "hideRelationshipContent" | "hideSelectFeature" | "hideSpinner" | "hideTextContent" | "hideUtilityNetworkContent" | "highlightDisabled" | "icon" | "includeDefaultActionsDisabled" | "initialDisplayMode" | "label" | "map" | "messageOverrides" | "open" | "referenceElement" | "selectedFeatureIndex" | "showCollapseButton" | "spatialReference" | "timeZone" | "updateLocationEnabled" | "view">>, StencilJsx.HTMLAttributes<ArcgisFeaturesNext> {
306
306
  onArcgisClose?: EventHandler<ArcgisFeaturesNext["arcgisClose"]>;
307
307
  onArcgisPropertyChange?: EventHandler<ArcgisFeaturesNext["arcgisPropertyChange"]>;
308
308
  onArcgisReady?: EventHandler<ArcgisFeaturesNext["arcgisReady"]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
- "version": "5.2.0-next.11",
3
+ "version": "5.2.0-next.12",
4
4
  "description": "ArcGIS Map Components",
5
5
  "keywords": [
6
6
  "2D",
@@ -46,9 +46,9 @@
46
46
  "lit": "^3.3.0",
47
47
  "lodash-es": "^4.18.1",
48
48
  "tslib": "^2.8.1",
49
- "@arcgis/common-components": "5.2.0-next.11",
50
- "@arcgis/lumina": "5.2.0-next.11",
51
- "@arcgis/toolkit": "5.2.0-next.11"
49
+ "@arcgis/common-components": "5.2.0-next.12",
50
+ "@arcgis/lumina": "5.2.0-next.12",
51
+ "@arcgis/toolkit": "5.2.0-next.12"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@arcgis/core": "^5.2.0-next",
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import j from"./SLTQSWGA.js";import{a as k}from"./KTXZR4IK.js";import i from"./SJIHZIXG.js";import h from"./MZWO5JYA.js";import g from"./OKHEBRQW.js";import"./VJVKFKSG.js";import f from"./ACMQRVHQ.js";import{a as S}from"./H47NPYUM.js";import e from"./M2MJH2FX.js";import d from"./ZUXQKICJ.js";import{h as L}from"./JCTU3MST.js";import"./BXKNMJRR.js";import b from"./FT7ETWDM.js";import{d as x}from"./IJQZON2Z.js";import{M,N as v,O as R,P as A,R as c,S as N,U as B,a as O,b as a,o as C,p as T,x as $}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([K,{substitute:u,formatNumber:y},{watch:r},{stripHTML:D},Z,{renderingSanitizer:b},{initializeProjection:G},W,,,,P,,,{d:H},{c:z,d:U}])=>{var X=O`: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)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}`,q=new W({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"}),_=q.clone();function J(E){return E?.declaredClass.startsWith("esri.layers.")??!1}var Y=P(K),V=class extends R{constructor(){super(...arguments),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._rootFlowItemNode=M(),this._featureMenuViewportNode=M(),this._actionBarMenuNode=M(),this._flowContainerNode=M(),this.messages=S(),this._selectedFeatureComponent=M(),this._cancelOpenRelatedFeature=()=>{let{_openRelatedFeatureAbortController:e}=this;e&&e.abort(),this._openRelatedFeatureAbortController=null},this._openRelatedFeatureAbortController=null,this.flowItems=new Z,this.viewModel=Y(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=this.viewModel.featureMenuOpen,this.featureMenuTitle=this.viewModel.featureMenuTitle,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureViewModelAbilities=this.viewModel.featureViewModelAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new Z,this.heading=this.viewModel.title,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.hideExpressionContent=!1,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.visible,this.promises=this.viewModel.promises,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.arcgisPropertyChange=L()("active","collapsed","effectiveHeading","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=$(),this.arcgisClose=$(),this.arcgisTriggerAction=$()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,_featureFlowItemSelected:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,collapsed:5,content:1,defaultPopupTemplateEnabled:5,effectiveHeading:32,featureCount:9,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureViewModelAbilities: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,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,promises:0,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=X}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(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureViewModel?.title)&&!!(this.content||this.viewModel.selectedFeatureViewModel?.content))}get _featureFlowItemSelected(){return this.initialDisplayMode==="list"?!!this.selectedFeature:!this.featureMenuOpen}get chartAnimationDisabled(){return!(this.viewModel.featureViewModelAbilities?.chartAnimation??!0)}set chartAnimationDisabled(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.chartAnimation=!e}get hideAttachmentsContent(){return!(this.viewModel.featureViewModelAbilities?.attachmentsContent??!0)}set hideAttachmentsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.attachmentsContent=!e}get hideCustomContent(){return!(this.viewModel.featureViewModelAbilities?.customContent??!0)}set hideCustomContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.customContent=!e}get hideFieldsContent(){return!(this.viewModel.featureViewModelAbilities?.fieldsContent??!0)}set hideFieldsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.fieldsContent=!e}get hideMediaContent(){return!(this.viewModel.featureViewModelAbilities?.mediaContent??!0)}set hideMediaContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.mediaContent=!e}get hideRelationshipContent(){return!(this.viewModel.featureViewModelAbilities?.relationshipContent??!0)}set hideRelationshipContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.relationshipContent=!e}get hideTextContent(){return!(this.viewModel.featureViewModelAbilities?.textContent??!0)}set hideTextContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.textContent=!e}get hideUtilityNetworkContent(){return!(this.viewModel.featureViewModelAbilities?.utilityNetworkAssociationsContent??!0)}set hideUtilityNetworkContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.utilityNetworkAssociationsContent=!e}async clear(){return this.viewModel.clear()}async close(){this.open=!1}async destroy(){await this.manager.destroy(),this._removeSpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let{signal:s}=t??{},i=new AbortController,{signal:n}=i,o=s?AbortSignal.any([n,s]):n;if(this._fetchFeaturesController=i,!e&&this.view&&this.location&&(await G(this.location.spatialReference,this.view.spatialReference,null,{signal:o}),e=this.view.toScreen(this.location)??void 0),!e)return;let l=await this.viewModel.fetchFeatures(e,{...t,signal:o});this.location=l.location,this.promises=l.pendingFeatures}async next(){return T("warn",this,"The return type of FeaturesViewModel on the next() method is deprecated. At 6.0, this method will return void."),this.viewModel.next()}async previous(){return T("warn",this,"The return type of FeaturesViewModel on the previous() method is deprecated. At 6.0, this method will return void."),this.viewModel.previous()}async setFocus(){this._flowContainerNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e?.type==="toggle"&&(e.value=!e.value),await U(e,this.viewModel)}connectedCallback(){super.connectedCallback(),this._createSpinner()}disconnectedCallback(){super.disconnectedCallback(),this._removeSpinner(this.referenceElement)}loaded(){this.manager.onLifecycle(()=>[r(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),r(()=>this.viewModel?.view,(e,t)=>t&&this._viewChange()),r(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),r(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),r(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),r(()=>this.flowItems.length,()=>this._syncSelectedDrillInFeature()),r(()=>[this.viewModel?.title,this.viewModel?.selectedFeatureViewModel?.title,this.viewModel?.selectedFeatureViewModel?.state],()=>this._syncEffectiveHeading(),{initial:!0}),r(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),r(()=>this.referenceElement,(e,t)=>{this._removeSpinner(t),this._createSpinner()},{initial:!0}),r(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.waitingForResult,this.viewModel?.visible],()=>this._createSpinner(),{initial:!0})])}updated(){let e=this._selectedFeatureComponent.value??void 0;this.selectedFeatureComponent!==e&&C(()=>this.selectedFeatureComponent=e)}_syncSelectedDrillInFeature(){let e=this.flowItems.getItemAt(this.flowItems.length-1);C(()=>this.selectedDrillInFeature=e?.graphic??void 0)}_syncEffectiveHeading(){let e=this._calculateEffectiveHeading();this.effectiveHeading!==e&&C(()=>this.effectiveHeading=e)}_cancelFetchingFeatures(){this._fetchFeaturesController?.abort(),this._fetchFeaturesController=null}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureViewModels:e}=this.viewModel,t=new Map;return e.forEach(s=>{let i=s?.graphic;if(!i)return;let n=H(i),o=J(n)?n:null,l=t.get(o)??[];t.set(o,[...l,s])}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;if(this._openRelatedFeatureAbortController=t,await e.updateGeometry(),this._openRelatedFeatureAbortController!==t)return;let s=e.graphic,i=s?.geometry;if(i==null||s==null){this._openRelatedFeatureAbortController===t&&(this._openRelatedFeatureAbortController=null);return}if(this._removeFlowItems(),await this.viewModel.zoomTo({target:i}),this._openRelatedFeatureAbortController!==t)return;let n=await $arcgis.t(m=>m[0],"geometry/operators/labelPointOperator");if(this._openRelatedFeatureAbortController!==t)return;let o=n.execute(i);o!=null&&(this.location=o),this.features=[s],this.open=!0,await this.setFocus(),this._openRelatedFeatureAbortController===t&&(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.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):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():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:s}=this,{id:i}=e,n=s?.attributes,o=e.title??"",l=i==="zoom-to-feature"?u(o,{messages:t}):i==="remove-selected-feature"?u(o,{messages:t}):i==="zoom-to-clustered-features"?u(o,{messages:t}):i==="browse-clustered-features"?u(o,{messages:t}):e.title;return l&&n?u(l,n):l??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:s,waitingForResult:i}=this.viewModel;i||!s||e===t||e===-1||(this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewChange(){this.viewModel.clear(),this.open=!1}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_removeFlowItems(){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()}_calculateEffectiveHeading(){let{title:e,selectedFeatureViewModel:t}=this.viewModel;return t?t?.state==="error"?this.messages?.errorMessage??"":t?.title||"":e??""}_getHeading(){return!this.hideHeading&&this.effectiveHeading?this.effectiveHeading:""}_removeSpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl),this._spinnerEl=void 0}_createSpinner(){let e=this.referenceElement;e&&(this._removeSpinner(e),this._spinnerEl=N(a`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${!this.hideSpinner&&this.viewModel.visible&&this.viewModel?.waitingForResult} .location=${this.viewModel?.location??void 0} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return a`<div class="root" @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(),this.initialDisplayMode==="list"?this._renderFeaturePaginationText():this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?a`<div class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?a`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(){let{messages:e,viewModel:t}=this,{featureCount:s,selectedFeatureIndex:i}=t;return a`<div class="pagination-text">${u(e.pageText??"",{index:y(i+1),total:y(s)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:s,selectedFeatureIndex:i,pendingPromisesCount:n}=t;return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${n>0} @click=${this._handlePaginationMenuButton} .text=${u(e.pageText??"",{index:y(i+1),total:y(s)})} text-enabled title=${e.selectFeature??c}></calcite-action>`}_renderPagination(){let{previous:e,next:t}=this.messages;return a`<calcite-action-bar class="pagination-action-bar" expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${e??""} @click=${this._previousFeature} .text=${e??""} title=${e??""??c}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t??""} @click=${this._nextFeature} .text=${t??""} title=${t??""??c}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e){let{initialDisplayMode:t}=this,{selectedFeatureViewModel:s,featureViewModels:i}=this.viewModel,n=e===s,o=i.indexOf(e);return a`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(o)} .selected=${n} @calciteListItemSelect=${()=>this._selectFeature(o)}><span .innerHTML=${(b.sanitize(e.title)||this.messages.untitled)??""} slot=content></span>${t==="list"?a`<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,s=this._groupResultsByLayer(),i=this.initialDisplayMode==="list"?"none":"single";return t.featureViewModels.length?a`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${i}>${Array.from(s.keys(),n=>{let o=s.get(n)?.map(d=>this._renderFeatureMenuItem(d)),l=n?n.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&l!==null?k(n??"map-graphics",a`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`):o})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?a`<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??c}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(){let{headingLevel:e,hideCloseButton:t,_isCollapsed:s,_collapseEnabled:i,_featureFlowItemSelected:n,featureNavigationTop:o,flowItems:l,initialDisplayMode:d,selectedFeature:g,hideHeading:f}=this,{active:w,selectedFeatureViewModel:p,content:m}=this.viewModel,h=this._getHeading();if(d==="list"&&!g)return null;let F=l.length===0&&n,I=p?!p.content:!m;return a`<calcite-flow-item class=${A(x({"content-feature":!0,"flow-item-collapsed":s}))} .closable=${!t} .closed=${!w} .collapsed=${s} .collapseDirection=${o?"down":"up"} .collapsible=${i} .headingLevel=${e} .selected=${F} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!f&&h?D(h):void 0} ${v(this._rootFlowItemNode)}>${!f&&h?a`<div slot=heading><div .innerHTML=${b.sanitize(h??"")??""}></div></div>`:null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${A(x("container","content-container",{"content-hidden":I}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:s,messages:i,initialDisplayMode:n,featureMenuOpen:o,_featureFlowItemSelected:l,_collapseEnabled:d,_isCollapsed:g,featureNavigationTop:f,headingLevel:w}=this,{active:p,featureViewModels:m,pendingPromisesCount:h}=e,F=s??i.selectFeature;if(n==="feature"&&!o)return null;let I=!l;return a`<calcite-flow-item class=${A(x({"flow-item-collapsed":g}))} .closable=${n==="list"&&!t} .closed=${!p} .collapsed=${n==="list"&&g} .collapseDirection=${f?"down":"up"} .collapsible=${n==="list"&&d} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} .description=${this.hideFeatureMenuHeading?void 0:u(i.total??"",{total:m.length})} .heading=${this.hideFeatureMenuHeading?void 0:F} .headingLevel=${w} .loading=${e.waitingForContents} .selected=${I} @calciteFlowItemBack=${j=>{j.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${n==="list"?this._renderHeaderActions():null}${h>0?a`<calcite-loader class="loader" inline .label=${i.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${v(this._featureMenuIntersectionObserverCreated)}></div>${n==="feature"?a`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${i.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:s,hideCloseButton:i,hideSelectFeature:n,active:o,hideHeading:l}=this,d="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,g=d&&!n,f=e.flowType==="feature-association",w=s.returnToInitialFeature??"",p=s?.selectFeature,m=this._getActionTitle(_),h=!this.hideActionBar&&f&&d;return a`<calcite-flow-item .closable=${!i} .closed=${!o} .description=${D(this._getDrillInFlowItemDescription(e)??"")} .heading=${l?void 0:D(e.heading??"")} .selected=${t} @calciteFlowItemBack=${F=>{F.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${l?null:a`<div slot=heading><div .innerHTML=${b.sanitize(e.heading??"")??""}></div></div>`}<div slot=description><div .innerHTML=${b.sanitize(this._getDrillInFlowItemDescription(e)??"")??""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${w??""} title=${w??""??c}></calcite-action>${g?a`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${p??""} title=${p??c}></calcite-action>`:null}${h?a`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${_.disabled} .icon=${_.icon??void 0} .loading=${_.active} scale=s text-enabled .text=${m} title=${m??c} @click=${()=>z(this.viewModel,_,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class="container">${e}</div></calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e?.map((i,n)=>this._renderFlowItem(i,this._featureFlowItemSelected&&n===e.length-1)),s=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(),t]:[this._renderContentFeature(),t,this._renderFeatureMenuContainer()];return a`<calcite-flow ${v(this._flowContainerNode)}>${s}</calcite-flow>`}_renderActionBar(){let e=this.viewModel.selectedFeatureViewModel?.isFeatureFromTable&&!this.location?this.viewModel.allActions.filter(t=>t.id!==_.id):this.viewModel.allActions;return!this._isCollapsed&&!this.hideActionBar&&e.length?a`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${v(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>`:null}_renderActions(){return this.viewModel.allActions.toArray().map(e=>{let t=this._getActionTitle(e);return a`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .loading=${e.active} scale=s .textEnabled=${!this._hideActionText} .text=${t??""} title=${t??c} .hidden=${!e.visible} @click=${()=>this._triggerAction(e)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureViewModel:t}=this.viewModel;return t?a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${v(this._selectedFeatureComponent)}></arcgis-feature>`:typeof e=="string"?k(e,a`<div .innerHTML=${b.sanitize(e)??""}></div>`):e??null}};B("arcgis-features",V);return V},"widgets/Features/FeaturesViewModel","intl","core/reactiveUtils","applications/Components/stringUtils","core/Collection","applications/Components/sanitizerUtils","applications/Components/featureUtils","support/actions/ActionButton",b,d,e,f,g,h,i,j)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import j from"./SLTQSWGA.js";import{a as D}from"./KTXZR4IK.js";import i from"./SJIHZIXG.js";import h from"./MZWO5JYA.js";import f from"./OKHEBRQW.js";import{a as T}from"./VJVKFKSG.js";import e from"./ACMQRVHQ.js";import{a as H}from"./H47NPYUM.js";import d from"./M2MJH2FX.js";import c from"./ZUXQKICJ.js";import{h as P}from"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import{a as k,d as I}from"./IJQZON2Z.js";import{M as m,N as g,O as L,P as C,R as p,S as O,U as R,a as B,b as o,o as y,x as b}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([K,U,q,{initializeProjection:G},{renderingSanitizer:M},{stripHTML:S},{substitute:v,formatNumber:A},{watch:c},,,,z,,,{d:E},{c:V,d:Z}])=>{var W=B`: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)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}`;function X(_){return _?.declaredClass.startsWith("esri.layers.")??!1}function J(_){if(!(!_||!("featureReduction"in _)))return _.featureReduction?.type}var Y=z(q),N=class extends L{constructor(){super(...arguments),this._zoomToFeature=new K({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"}),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._focusTrapNode=m(),this._rootFlowItemNode=m(),this._featureMenuViewportNode=m(),this._actionBarMenuNode=m(),this._flowContainerNode=m(),this._aggregatedFeaturesComponent=m(),this.messages=H(),this._selectedFeatureComponent=m(),this._cancelOpenRelatedFeature=()=>{this._openRelatedFeatureAbortController=T(this._openRelatedFeatureAbortController)},this._openRelatedFeatureAbortController=null,this.flowItems=new U,this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._hasActionsStartSlotContent=!1,this._hasActionsEndSlotContent=!1,this.viewModel=Y(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.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 U,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.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.promises=this.viewModel.promises,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.arcgisPropertyChange=P()("active","collapsed","effectiveHeading","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=b(),this.arcgisClose=b(),this.arcgisTriggerAction=b()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_aggregatedFeatureCount:16,_selectedAggregatedFeatureIndex:16,_aggregatedFeaturesLoading:16,_hasActionsStartSlotContent:16,_hasActionsEndSlotContent:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,_featureFlowItemSelected:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,focusTrapEnabled:5,collapsed:5,content:1,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,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,promises:0,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=W}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(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureItem?.heading)&&!!(this.content||this.viewModel.selectedFeatureItem?.content))}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._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let{signal:a}=t??{},i=new AbortController,{signal:s}=i,n=a?AbortSignal.any([s,a]):s;if(this._fetchFeaturesController=i,!e&&this.view&&this.location&&(await G(this.location.spatialReference,this.view.spatialReference,null,{signal:n}),e=this.view.toScreen(this.location)??void 0),!e)return;let r=await this.viewModel.fetchFeatures(e,{...t,signal:n});this.location=r.location,this.promises=r.pendingFeatures}next(){this.viewModel.next()}previous(){this.viewModel.previous()}async setFocus(){await this._focusTrapNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e?.type==="toggle"&&(e.value=!e.value),await Z(e,this.viewModel)}connectedCallback(){super.connectedCallback(),this._createSpinner()}disconnectedCallback(){super.disconnectedCallback(),this._removeSpinner(this.referenceElement)}loaded(){this.manager.onLifecycle(()=>[c(()=>this.viewModel?.active,()=>this._toggleFocusTrap()),c(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),c(()=>this.viewModel?.view?.scale,()=>this._viewScaleChange()),c(()=>this.viewModel?.view,(e,t)=>t&&this._viewChange()),c(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),c(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),c(()=>this.viewModel?.featureItems,()=>this._featureMenuViewportScrollTop()),c(()=>this.flowItems.length,()=>this._syncSelectedDrillInFeature()),c(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),c(()=>this.viewModel.aggregatedFeaturesEnabled,e=>{e||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._removeFlowItems())}),c(()=>this.referenceElement,(e,t)=>{this._removeSpinner(t),this._createSpinner()},{initial:!0}),c(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.waitingForResult,this.viewModel?.open],()=>this._createSpinner(),{initial:!0})])}updated(){let e=this._selectedFeatureComponent.value??void 0;this.selectedFeatureComponent!==e&&y(()=>this.selectedFeatureComponent=e)}_toggleFocusTrap(){requestAnimationFrame(()=>{this.viewModel.active?this._focusTrapNode.value?.activate():this._focusTrapNode.value?.deactivate()})}_cancelFetchingFeatures(){this._fetchFeaturesController=T(this._fetchFeaturesController)}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureItems:e}=this.viewModel,t=new Map;return e.forEach(a=>{let i=a?.graphic;if(!i)return;let s=E(i),n=X(s)?s:null,r=t.get(n);r||(r=[],t.set(n,r)),r.push(a)}),t}_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 a=e.graphic,i=a?.geometry;if(i==null||a==null){this._openRelatedFeatureAbortController=null;return}if(this._removeFlowItems(),await this.viewModel.zoomTo({target:i}),t.signal.aborted)return;let s=await $arcgis.t(m=>m[0],"geometry/operators/labelPointOperator");if(t.signal.aborted)return;let n=s.execute(i);n!=null&&(this.location=n),this.features=[a],this.open=!0,await this.setFocus(),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.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):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():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:a}=this,{id:i}=e,s=a?.attributes,n=e.title??"",r=i==="zoom-to-feature"?v(n,{messages:t}):i==="remove-selected-feature"?v(n,{messages:t}):i==="zoom-to-clustered-features"?v(n,{messages:t}):i==="browse-aggregated-features"?v(n,{messages:t}):e.title;return r&&s?v(r,s):r??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:a,waitingForResult:i}=this.viewModel;i||!a||e===t||e===-1||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewScaleChange(){let{selectedFeature:e}=this;!e?.isAggregate||J(E(e))!=="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)}_syncSelectedDrillInFeature(){let e=this.flowItems.getItemAt(this.flowItems.length-1);y(()=>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(){let{effectiveHeading:e}=this.viewModel;return!this.hideHeading&&e?e:""}_handleActionsStartSlotChange(e){this._hasActionsStartSlotContent=k(e)}_handleActionsEndSlotChange(e){this._hasActionsEndSlotContent=k(e)}_removeSpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl),this._spinnerEl=void 0}_createSpinner(){let e=this.referenceElement;e&&(this._removeSpinner(e),this._spinnerEl=O(o`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${!this.hideSpinner&&this.viewModel.open&&this.viewModel?.waitingForResult} .location=${this.viewModel?.location??void 0} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return o`<div class="root" @keydown=${this._onMainKeydown}><calcite-focus-trap .focusTrapDisabled=${!this.focusTrapEnabled} ${g(this._focusTrapNode)}>${this._renderHeader()}${this._renderContentContainer()}</calcite-focus-trap></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?o`<div class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?o`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(e,t){let{messages:a}=this;return o`<div class="pagination-text">${v(a.pageText??"",{index:A(t+1),total:A(e)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:a,selectedFeatureIndex:i,pendingPromisesCount:s}=t;return o`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${s>0} @click=${this._handlePaginationMenuButton} .text=${v(e.pageText??"",{index:A(i+1),total:A(a)})} text-enabled title=${e.selectFeature??p}></calcite-action>`}_renderPagination(e,t){let{previous:a,next:i}=this.messages;return o`<calcite-action-bar class="pagination-action-bar" expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${a??""} @click=${e} .text=${a??""} title=${a??""??p}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i??""} @click=${t} .text=${i??""} title=${i??""??p}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e,t){let{initialDisplayMode:a}=this,{selectedFeatureItem:i}=this.viewModel,s=e===i;return o`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(t)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(t)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(t)}><span .innerHTML=${(M.sanitize(e.heading)||this.messages.untitled)??""} slot=content></span>${a==="list"?o`<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,a=this._groupResultsByLayer(),i=new Map;t.featureItems.forEach((n,r)=>i.set(n,r));let s=this.initialDisplayMode==="list"?"none":"single";return t.featureItems.length?o`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${s}>${Array.from(a.keys(),n=>{let r=a.get(n)?.map(l=>{let h=i.get(l);return h==null?null:this._renderFeatureMenuItem(l,h)}),d=n?n.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&d!==null?D(n??"map-graphics",o`<calcite-list-item-group .heading=${d}>${r}</calcite-list-item-group>`):r})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?o`<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??p}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(e){let{headingLevel:t,hideCloseButton:a,_isCollapsed:i,_collapseEnabled:s,featureNavigationTop:n,initialDisplayMode:r,selectedFeature:d,hideHeading:l}=this,{active:h,selectedFeatureItem:f,content:w}=this.viewModel,u=this._getHeading();if(r==="list"&&!d)return null;let F=f?!f.content:!w;return o`<calcite-flow-item class=${C(I({"content-feature":!0,"flow-item-collapsed":i}))} .closable=${!a} .closed=${!h} .collapsed=${i} .collapseDirection=${n?"down":"up"} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!l&&u?S(u):void 0} ${g(this._rootFlowItemNode)}>${!l&&u?o`<div slot=heading><div .innerHTML=${M.sanitize(u??"")??""}></div></div>`:null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${C(I("container","content-container",{"content-hidden":F}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:a,messages:i,initialDisplayMode:s,featureMenuOpen:n,_featureFlowItemSelected:r,_collapseEnabled:d,_isCollapsed:l,featureNavigationTop:h,headingLevel:f}=this,{active:w,featureItems:u,pendingPromisesCount:F}=e,x=a??i.selectFeature;if(s==="feature"&&!n)return null;let $=!r;return o`<calcite-flow-item class=${C(I({"flow-item-collapsed":l}))} .closable=${s==="list"&&!t} .closed=${!w} .collapsed=${s==="list"&&l} .collapseDirection=${h?"down":"up"} .collapsible=${s==="list"&&d} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} .description=${this.hideFeatureMenuHeading?void 0:v(i.total??"",{total:u.length})} .heading=${this.hideFeatureMenuHeading?void 0:x} .headingLevel=${f} .loading=${e.waitingForContents} .selected=${$} @calciteFlowItemBack=${j=>{j.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${g(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${F>0?o`<calcite-loader class="loader" inline .label=${i.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class="container">${$?this._renderFeatureMenu():null}</div><div class="feature-menu-observer" ${g(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?o`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${i.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:a,hideCloseButton:i,hideSelectFeature:s,active:n,hideHeading:r}=this,d="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,l=d&&!s,h=e.flowType==="feature-association",f=a.returnToInitialFeature??"",w=a?.selectFeature,u=this._getActionTitle(this._zoomToFeature),F=!this.hideActionBar&&h&&d,x=e.flowType==="feature"&&this.viewModel.aggregatedFeaturesEnabled?o`<div class="footer" slot=footer>${this._renderPagination(()=>{this._aggregatedFeaturesComponent.value?.previous()},()=>{this._aggregatedFeaturesComponent.value?.next()})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount,this._selectedAggregatedFeatureIndex)}</div>`:null;return o`<calcite-flow-item .closable=${!i} .closed=${!n} class="flow-item-drill-in" .description=${S(this._getDrillInFlowItemDescription(e)??"")} .heading=${r?void 0:S(e.heading??"")} .selected=${t} @calciteFlowItemBack=${$=>{$.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r?null:o`<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=${f??""} title=${f??""??p}></calcite-action>${l?o`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${w??""} title=${w??p}></calcite-action>`:null}${F?o`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon??void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${u} title=${u??p} @click=${()=>V(this.viewModel,this._zoomToFeature,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class="container">${e}</div>${x}</calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e.length>0,a=this.viewModel.aggregatedFeaturesEnabled&&this.viewModel.selectedFeature?.isAggregate&&!t,i=a&&e.length===0,s=e.length===0&&this._featureFlowItemSelected&&!a,n=e?.map((l,h)=>this._renderFlowItem(l,this._featureFlowItemSelected&&h===e.length-1)),r=this._renderBrowseAggregateContainer(!!i),d=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(s)]:[this._renderContentFeature(s),this._renderFeatureMenuContainer()];return o`<calcite-flow ${g(this._flowContainerNode)}>${d}${r}${n}</calcite-flow>`}_renderBrowseAggregateContainer(e){let{hideCloseButton:t,active:a,messages:i}=this,{selectedFeature:s}=this.viewModel;return this.viewModel.aggregatedFeaturesEnabled&&s?.isAggregate?o`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .description=${this._aggregatedFeatureCount?v(i.total??"",{total:this._aggregatedFeatureCount}):""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${n=>{n.preventDefault(),this.viewModel.aggregatedFeaturesEnabled=!1}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .feature=${s??void 0} .flowItems=${this.flowItems} .map=${this.map??void 0} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.view??void 0} ${g(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${()=>this.viewModel.aggregatedFeaturesEnabled=!1} slot=footer-start scale=s width=full>${i.back}</calcite-button></calcite-flow-item>`:null}_renderActionBar(){let e=this.viewModel.selectedFeatureItem?.isFeatureFromTable,t=this.viewModel.allActions.toArray(),a=e&&!this.location?t.filter(s=>s.id!==this._zoomToFeature.id):t,i=!!a.length||this._hasActionsStartSlotContent||this._hasActionsEndSlotContent;return!this._isCollapsed&&!this.hideActionBar&&i?o`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${g(this._actionBarMenuNode)}>${this._renderActions(a)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`:null}_renderActions(e){return e.map(t=>{let a=this._getActionTitle(t);return o`<calcite-action .active=${t.type==="toggle"?t.value:!1} .disabled=${t.disabled} .icon=${t.icon??void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a??""} title=${a??p} .hidden=${!t.visible} @click=${()=>this._triggerAction(t)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureItem:t}=this.viewModel;return t?o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${g(this._selectedFeatureComponent)}></arcgis-feature-next>`:typeof e=="string"?D(e,o`<div .innerHTML=${M.sanitize(e)??""}></div>`):e??null}};R("arcgis-features-next",N);return N},"support/actions/ActionButton","core/Collection","popup/Features","applications/Components/featureUtils","applications/Components/sanitizerUtils","applications/Components/stringUtils","intl","core/reactiveUtils",a,c,d,e,f,h,i,j)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as D}from"./SRKKE3UN.js";import{a as Ce,b as Ee,c as Me,d as Te,f as Ae,g as ze,h as Fe,i as Oe,j as Pe,k as De,m as v,n as J,o as Re,p as Se,q as K}from"./LDDAJOTV.js";import i from"./SLTQSWGA.js";import"./ECNI2A4K.js";import{a as P}from"./GXVM7UPW.js";import{a as E}from"./KTXZR4IK.js";import h from"./SJIHZIXG.js";import f from"./MZWO5JYA.js";import e from"./OKHEBRQW.js";import"./VJVKFKSG.js";import d from"./ACMQRVHQ.js";import{a as we}from"./H47NPYUM.js";import{a as U}from"./JD74LG7K.js";import{a as Le}from"./TOVZMHWU.js";import c from"./M2MJH2FX.js";import b from"./ZUXQKICJ.js";import{h as ye}from"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import{d as A}from"./IJQZON2Z.js";import{B as fe,M as k,N as C,O as _e,P as m,Q as ve,R as g,S as Z,U as be,a as V,b as l,x as ue}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([dt,R,{on:Ye,watch:pt},{isLayerFromCatalog:rt},{h:$e},,{a:xe},Ie,,,,{a:q,b:ke}])=>{var je=new Map;function Ge(o){return o?je.get(o)??!1:!1}function ot(o,e){let t=!(o.aria?.pressed??Ge(e));return o.aria={...o.aria,pressed:t},e&&je.set(e,t),t}function Q(o){return o&&"visibilityMode"in o?o.visibilityMode:null}function Be(o,e){"visible"in o&&(Q(e)==="exclusive"&&o.visible||(o.visible=!o.visible))}function st(o,e){o.panel.open=!o.panel.open,o.panel.open&&e&&e()}function lt(o,e,t,i){o&&t===e.layer?.uid&&($e(o),i?.(null))}function nt(o,e,t){t.type==="toggle"&&(t.value=!t.value),o(t,e)}function ct(o){return o.actionsSections.map(e=>e.filter(t=>t.visible))}function Ne(o,e){let{icon:t}=e;if(t)return null;let i="image"in e?e.image:void 0;return i?l`<span aria-hidden=true class=${m(A(o.itemActionIcon,{[o.itemActionImage]:!!i}))} style=${ve(ke(i))}></span>`:null}function Ue(o,e,t){let{item:i,css:a,handleAction:s}=o,{active:n,disabled:c,title:d,type:h,indicator:b}=e,x=q(e);return l`<calcite-action .active=${h==="toggle"?e.value:!1} data-action-id=${e.id??g} .disabled=${c} .icon=${x} .indicator=${b} .loading=${n} @click=${()=>nt(s,i,e)} scale=s slot=${(t?void 0:"actions-end")??g} .text=${d??""} .textEnabled=${t} title=${d??void 0??g}>${Ne(a,e)}</calcite-action>`}function W(o){let{item:e,parent:t,hideStatusIndicators:i,css:a,visibilityAppearance:s,hideCatalogLayerList:n,dragEnabled:c=!1,rootGroupUid:d,listModeDisabled:h=!1,selectionMode:b,displayMode:x,layerTablesEnabled:$,showErrors:z,parentTitles:I,selectedItems:F,activeItem:u,handleCatalogOpen:S,handleTablesOpen:Ve,selectedDragItemLayerUid:Ze,handleSelectedDragItemLayerUidChange:qe,handlePanelOpen:Je,messages:p,setCurrentActiveItem:ee,clearActiveItem:te}=o,L=k(),j=k(),M=e.title||("untitledTable"in p?p.untitledTable:p.untitledLayer??""),ie=null;i||(ie=l`<arcgis-layer-list-item-indicator class=${m(a.statusIndicator)} .messages=${p} .item=${e} .parent=${t} slot=content-end></arcgis-layer-list-item-indicator>`);let ae=null;{let{layer:r}=e,f=r&&"persistenceEnabled"in r&&(rt(r)||!r.persistenceEnabled);(o.showTemporaryLayerIndicators||o.showTemporaryTableIndicators)&&f&&(ae=l`<calcite-icon class=${m(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${p.temporary??g}></calcite-icon>`)}let re=null;if("visible"in e&&"visibleToggle"in a&&s){let r=Q(t);if(r!=="inherited"){let f=Te({visible:e.visible,exclusive:r==="exclusive",visibilityAppearance:s}),_=s==="checkbox",w=p.layerVisibility,O=Ge(e.layer?.id);re=l`<calcite-action .aria=${{pressed:O}} class=${m(a.visibleToggle)} .icon=${_?f:void 0} @click=${T=>{ot(T.currentTarget,e.layer?.id),Be(e,t)}} .slot=${_?"actions-start":"actions-end"} .text=${w??""} title=${w??g}>${_?null:l`<calcite-icon class=${m(A({[a.visibleIcon]:r!=="exclusive"&&e.visible}))} .icon=${f} scale=s></calcite-icon>`}</calcite-action>`}}let oe=null;{let r=e.panel;r?.open&&!r.disabled&&!r.flowEnabled&&(oe=l`<div class=${m(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${o.view}></arcgis-layer-list-item-panel></div>`)}let se=null;{let r=e.panel;if(r?.visible){let{open:f,title:_,disabled:w}=r,O={icon:r.icon,image:r.image,indicator:!1},T=q(O);se=l`<calcite-action .active=${f} .disabled=${w} .icon=${T} @click=${()=>st(e,Je)} slot=actions-end .text=${_??""} title=${_??void 0??g}>${Ne(a,r)}</calcite-action>`}}let le=null;{let r=e.layer,f=r?.type==="catalog-footprint",_=r?.type==="sublayer"&&K(r,"footprints");"itemCatalogIcon"in a&&(f||_)&&(le=l`<calcite-icon class=${m(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`)}let ne=null;{let r=e.layer,f=r?.type==="catalog-dynamic-group",_=r?.type==="sublayer"&&K(r,"layers-in-view");"itemCatalogIcon"in a&&(f||_)&&(ne=l`<calcite-icon class=${m(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`)}let ce=null;if("visible"in e){let r=e.layer;!n&&r?.type==="catalog-dynamic-group"&&(ce=l`<calcite-action .disabled=${!r.visible} icon=chevron-right icon-flip-rtl @click=${()=>S?.(e)} scale=s slot=actions-end .text=${M??""}></calcite-action>`)}let de=null,G=!1;{let r=e.layer;if($&&r)switch(r.type){case"knowledge-graph":G=$.includes(r.type)&&"tables"in r&&!!r.tables?.length;break;case"map-image":case"tile":G=$.includes(r.type)&&"subtables"in r&&!!r.subtables?.length;break}"itemTableIcon"in a&&"visible"in e&&"tables"in p&&G&&(de=E(`${e.uid}-tables`,l`<calcite-list-item class=${m(a.item)} data-layer-id=${r?.id??g} drag-disabled .label=${p.tables} title=${p.tables??g} @calciteListItemSelect=${()=>Ve?.(e)} .value=${e}><calcite-icon class=${m(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`))}let pe=null;if("children"in e){let r=[...I??[],e.title],{children:f,layer:_}=e,w=_?.type!=="catalog-dynamic-group"&&Re(e),O=h?!1:Ae(_),T=_?.type==="group",tt=!O&&!w&&c&&T,it=c&&"childrenSortable"in e&&e.childrenSortable&&Oe(e),at=w?P(f?.filter(y=>!y.hidden&&(z||!y.error)).toArray()??[],y=>y.uid,y=>W({...o,item:y,parent:e,parentTitles:r})):null;(w||tt)&&(pe=l`<calcite-list .canPull=${y=>o.canMove?o.canMove(y,"pull"):!1} .canPut=${y=>o.canMove?o.canMove(y,"put"):!1} data-item=${e.uid??g} data-layer-type=${d??g} .displayMode=${x} .dragEnabled=${it} .group=${T?d:`${d}-${_?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${b}>${at}${de}</calcite-list>`)}let N=null;if(e.error){let r="layerError"in p?p.layerError:p.tableError;N=l`<div class=${m(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${r}</div></calcite-notice></div>`}else"incompatible"in e&&e.incompatible&&"layerIncompatible"in p&&(N=l`<div class=${m(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${C(j)}><div slot=message>${p.layerIncompatible}</div></calcite-notice></div>`);let ge=ct(e),Y=e.actionsSections.reduce((r,f)=>r+f.length,0),me=Se(ge),Ke=ge.toArray().map(r=>l`<calcite-action-group>${r.toArray().map(f=>Ue(o,f,!0))}</calcite-action-group>`),Qe=r=>{e.actionsOpen=r.currentTarget.open},he=null;Y>1&&(he=l`<calcite-action-menu appearance=transparent .label=${p.menu??""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${Qe}><calcite-action .aria=${{expanded:e.actionsOpen??!1,hasPopup:"true"}} icon=ellipsis scale=s slot=trigger .text=${p.options??""} title=${p.options??g}></calcite-action>${Ke}</calcite-action-menu>`);let H=null;Y===1&&me?H=Ue(o,me,!1):Y>1&&(H=he);let We="visibleAtCurrentTimeExtent"in e&&"layerInvisibleAtTime"in p&&!e.visibleAtCurrentTimeExtent?`${M} (${p.layerInvisibleAtTime})`:"visibleAtCurrentScale"in e&&"layerInvisibleAtScale"in p&&!e.visibleAtCurrentScale?`${M} (${p.layerInvisibleAtScale})`:M,Xe="parent"in e&&e.parent?.layer?.type==="catalog",B=e.layer,et="visibleAtCurrentScale"in e&&!e.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in e&&!e.visibleAtCurrentTimeExtent;return queueMicrotask(()=>{lt(L.value??null,e,Ze,qe),j.value&&(o.handleTooltipReferenceChange?.(B?.uid,j.value),queueMicrotask(()=>o.handleTooltipReferenceChange?.(B?.uid,null))),e.panel&&(e.panel.container=L.value)}),E(e.uid,l`<calcite-list-item class=${m(A(a.item,"itemActive"in a&&{[a.itemActive]:u?.uid===e.uid}))} data-item=${e.uid??g} data-layer-id=${B?.id??g} .dragDisabled=${!("sortable"in e&&e.sortable)||Xe} id=${B?.uid??g} .label=${M} .metadata=${{parentTitles:I??[],_title:M}} .expanded=${"open"in e&&e.open} .selected=${b!=="none"?F.includes(e):!1} title=${We??g} .unavailable=${et} .value=${e} @focusin=${()=>{ee?.(e),L.value?.classList.add(a.itemActive)}} @focusout=${()=>{te?.(),L.value?.classList.remove(a.itemActive)}} @mouseover=${()=>{ee?.(e),L.value?.classList.add(a.itemActive)}} @mouseleave=${()=>{te?.(),L.value?.classList.remove(a.itemActive)}} @calciteListItemSelect=${r=>"visible"in e&&v(r.currentTarget,o.operationalItems)===e&&b==="none"&&Q(t)!=="inherited"&&Be(e,t)} @calciteListItemToggle=${r=>{"open"in e&&(r.stopPropagation(),e.open=r.target.expanded)}} ${C(L)}>${le}${ne}${ie}${re}${ce}${ae}${pe}${N}${oe}${se}${H}</calcite-list-item>`)}var gt=V`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-internal-layer-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`,mt=V`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{display:flex;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`,He="nested",ht=Ie(dt),X=class extends _e{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=k(),this._layerFlowItemRef=k(),this._panelFlowItemRef=k(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${fe()}`,this._openedLayersController=null,this.messages=we(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,n=v(e,this.operationalItems);if(!n?.sortable)return!1;let c=v(t,this.operationalItems),d=J(t),h=v(i,this.operationalItems),b=J(i),x=!!d&&!!b&&d===b,$={selected:n,from:c,to:h},z=t.group,I=i.group,F=c?.layer?.type??"",u=h?.layer?.type??"",S=new Set(["map-image","catalog","knowledge-graph"]);return z&&I&&typeof s=="function"?s($):x&&!S.has(F)&&!S.has(u)&&n?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(D.item)),i=v(t,this.operationalItems);this._activeItem=i},this.viewModel=ht(this),this.arcgisClose=Le(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new R(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new R,this.tileOptions=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.closed=!1,this.icon="layers",this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.layerTablesAvailable=new R(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.minDragEnabledItems=Me,this.minFilterItems=Ee,this.openedLayers=new R,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new R,this.selectionMode="none",this.visibilityAppearance="default",this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=ye()("state"),this.arcgisReady=ue(),this.arcgisTriggerAction=xe(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,view:0,autoDestroyDisabled:5,closed:5,referenceElement:1,icon:1,catalogLayerList:32,catalogOptions:0,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,knowledgeGraphOptions:0,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,selectedItems:0,selectionMode:1,tableList:32,visibilityAppearance:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,messageOverrides:0,label:1,state:32}}static{this.styles=[mt,gt]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[Ye(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),Ye(()=>this.viewModel.operationalItems,"change",()=>ze(this.selectedItems),{initial:!0}),pt(()=>[this.filterPredicate,this._rootListRef.value],()=>Fe(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:s}=a;this._openedLayersController=a,e.forEach((d,h)=>{t.includes(h)||(d?.destroy?.(),e.delete(h))});let n=await Promise.all(t.map(d=>this._createFlowList(d,s)));if(s.aborted)return;i.removeAll(),i.addMany(n);let c=i.at(-1);c?"catalogLayer"in c?(this._catalogLayerList=c,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=c):(this._catalogLayerList=void 0,this._tableList=void 0)}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:n,selectionMode:c,visibilityAppearance:d}=this;return Z(l`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??n} .selectionMode=${i?.selectionMode??c} .visibilityAppearance=${i?.visibilityAppearance??d} .showErrors=${i?.visibleElements?.errors??this.showErrors} .showFilter=${i?.visibleElements?.filter??this.showFilter} .hideStatusIndicators=${i?.visibleElements?.statusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.visibleElements?.temporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this._getTableListParams(e);return Z(l`<arcgis-table-list .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${n=>n.stopPropagation()}></arcgis-table-list>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=v(i,this.operationalItems),n=v(e,this.operationalItems),c=v(t,this.operationalItems);a==null||!s||!n||!c||this.viewModel.moveListItem(s,c,n,a)}_onCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:a}=e;a==null||!t||!i||t.insertBefore(i,t.children[a])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:a,dragEl:s,newIndex:n}=e,c=t?.newIndex===n&&t?.dragEl===s&&t?.toEl===i&&t?.fromEl===a;if(!(!a||!i||c)){if(this._lastDragDetail=e,this._selectedDragItemLayerUid=s.value,a===i){let d=Array.from(a.children).filter(h=>h?.matches("calcite-list-item")).map(h=>h.value.layer?.uid??"");this._sortLayers(a,d);return}this._moveLayerFromChildList({toEl:i,fromEl:a,dragEl:s,newIndex:n})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)Pe(this.el.view?.map?.layers,t);else{let i=v(e,this.operationalItems);if(!i)return;De(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>v(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{_visibleItems:e,state:t}=this,i={[U.hidden]:t==="loading",[U.disabled]:t==="disabled"};return l`<div class=${m(A(U.widget,i))}>${e?.length?[this._renderItemTooltips(),this._renderItems()]:this._renderNoItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?l`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return l`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return l`<div class=${m(D.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return E(e?.uid??s,l`<calcite-flow-item data-layer-uid=${e?.uid??""??g} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${n=>{n.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${C(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return P(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:n}=i,c=()=>this._handlePanelFlowItemBack(s);return l`<calcite-flow-item .description=${n} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${d=>{d.preventDefault(),c()}} ${C(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${c} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:n,showCollapseButton:c,showHeading:d,_dragEnabled:h,selectionMode:b,filterText:x,openedLayers:$,filterPlaceholder:z,messages:I}=this,F=[l`<calcite-flow-item .closable=${n} .closed=${this.closed} .collapsed=${e} .collapsible=${c} .heading=${d?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!$.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}><calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${u=>this._canMove(u,"pull")} .canPut=${u=>this._canMove(u,"put")} data-layer-type=${s??g} .displayMode=${He} .dragEnabled=${h} .filterEnabled=${a} .filterPlaceholder=${z} .filterProps=${Ce} .filterText=${a?x:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${b} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${u=>this.filterText=u.currentTarget?.filterText??""} @calciteListOrderChange=${u=>this._onCalciteListOrderChange(u.detail)} @calciteListDragEnd=${u=>this._onCalciteListDragEnd(u.detail)} ${C(this._rootListRef)}>${P(t?.toArray()??[],u=>u.uid,u=>this._renderItem(u))}${t?.length&&a?l`<div class=${m(D.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list></calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:E("root-flow",l`<calcite-flow>${F}</calcite-flow>`)}_renderItem(e,t,i){return E(e.uid,W({activeItem:this._activeItem,canMove:this._canMove,css:D,displayMode:He,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};be("arcgis-layer-list-next",X);return X},"widgets/LayerList/LayerListViewModel","core/Collection","core/reactiveUtils","layers/catalog/catalogUtils",a,b,c,d,e,f,h,i)