@arcgis/map-components 6.0.0-next.25 → 6.0.0-next.27
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/cdn/27VBOPFN.js +2 -0
- package/dist/cdn/{6K4IASNK.js → 2JXK3AW7.js} +1 -1
- package/dist/cdn/{EZHYSI6R.js → 4HCQOJIM.js} +1 -1
- package/dist/cdn/6T4BDMND.js +2 -0
- package/dist/cdn/{FZGMIIBX.js → CPWIRCCP.js} +1 -1
- package/dist/cdn/IJ7EV66N.js +2 -0
- package/dist/cdn/JNNI75UW.js +2 -0
- package/dist/cdn/KJISACOI.js +2 -0
- package/dist/cdn/{TTERKXN5.js → LP4ETJF7.js} +1 -1
- package/dist/cdn/{55VX76T5.js → PD4ELTMF.js} +1 -1
- package/dist/cdn/R5PT7JNG.js +2 -0
- package/dist/cdn/RSKBANQ5.js +2 -0
- package/dist/cdn/{PRUHLC54.js → TDQYO6FQ.js} +1 -1
- package/dist/cdn/{6DRXFSTW.js → UI5E3MX7.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/print-exports-panel-item-popover.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +53 -58
- package/dist/components/arcgis-expand/customElement.d.ts +47 -1
- package/dist/components/arcgis-expand/customElement.js +47 -47
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +8 -0
- package/dist/components/arcgis-selection-toolbar/customElement.js +23 -17
- package/dist/components/arcgis-time-bar-slider/customElement.js +9 -5
- package/dist/components/arcgis-utility-network-picker/customElement.d.ts +170 -6
- package/dist/components/arcgis-utility-network-picker/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +5 -4
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +19 -15
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +0 -6
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +5 -4
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +50 -46
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +9 -8
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -4
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +12 -12
- package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +0 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +7 -7
- package/dist/cdn/ARN5ZKLI.js +0 -2
- package/dist/cdn/CVLOQWUD.js +0 -2
- package/dist/cdn/HADZXZIE.js +0 -2
- package/dist/cdn/HTCPPGCR.js +0 -2
- package/dist/cdn/LHYI2QBZ.js +0 -2
- package/dist/cdn/PPGKQRNY.js +0 -2
- package/dist/cdn/PW3QCZXY.js +0 -2
- /package/dist/cdn/{ROHGHCK6.js → WFTJ4E4F.js} +0 -0
package/dist/loader.js
CHANGED
|
@@ -33,7 +33,7 @@ const s = t(e, {
|
|
|
33
33
|
"arcgis-elevation-profile-legend-item": [() => import("./components/arcgis-elevation-profile-legend-item/customElement.js"), "effectiveDisplayUnits:,expanded,featureSelected,hideCheckbox,messages:,result:;destroy"],
|
|
34
34
|
"arcgis-elevation-profile-settings": [() => import("./components/arcgis-elevation-profile-settings/customElement.js"), "hasCustomEndContent,hasCustomStartContent,hideDistanceDisplayUnitSelect,hideElevationDisplayUnitSelect,hideResetUnitsButton,hideUniformChartScalingToggle,messageOverrides:,messages:,uniformChartScaling,unitOptionsDistance:,unitOptionsElevation:,viewModel:;destroy"],
|
|
35
35
|
"arcgis-elevation-profile-statistics": [() => import("./components/arcgis-elevation-profile-statistics/customElement.js"), "effectiveDisplayUnits:,messages:,result:;destroy"],
|
|
36
|
-
"arcgis-expand": [() => import("./components/arcgis-expand/customElement.js"), "autoCollapse,autoDestroyDisabled,closeOnEscDisabled,collapseIcon,collapseTooltip,content,expanded,expandIcon,expandTooltip,focusTrapDisabled,group,icon,iconNumber,label,messageOverrides:,messages:,modalDisabled,mode,placement,referenceElement,state:,topLayerDisabled,view:,visualScale;collapse,destroy,expand"],
|
|
36
|
+
"arcgis-expand": [() => import("./components/arcgis-expand/customElement.js"), "autoCollapse,autoDestroyDisabled,autoModeBreakpoint,closeOnEscDisabled,collapseIcon,collapseTooltip,content,expanded,expandIcon,expandTooltip,focusTrapDisabled,focusTrapInitialFocusDisabled,group,icon,iconNumber,label,messageOverrides:,messages:,modalDisabled,mode,placement,referenceElement,state:,topLayerDisabled,view:,visualScale;collapse,destroy,expand"],
|
|
37
37
|
"arcgis-exploratory-analysis": [() => import("./components/arcgis-exploratory-analysis/customElement.js"), "_messages:,activeAnalysis,autoDestroyDisabled,autoStartDisabled,closed,icon,messageOverrides:,preserveAnalysisOnChange,requireActiveAnalysis,showCloseButton,showCollapseButton,showHeading;destroy"],
|
|
38
38
|
"arcgis-feature": [() => import("./components/arcgis-feature/customElement.js"), "autoDestroyDisabled,chartAnimationDisabled,defaultPopupTemplateEnabled,flowItems:,flowType,graphic:,heading:,headingLevel,hideAttachmentsContent,hideContent,hideCustomContent,hideExpressionContent,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideTextContent,icon,isFeatureFromTable:,label,location:,map:,messageOverrides:,messages:,referenceElement,showRelationshipContent,showUtilityNetworkContent,spatialReference:,state:,timeZone,view:,viewModel:;destroy,nextMedia,previousMedia,setActiveMedia,updateGeometry"],
|
|
39
39
|
"arcgis-feature-attachments": [() => import("./components/arcgis-feature-attachments/customElement.js"), "attachmentKeywords:,attachmentTypes:,description,displayType,empty,graphic:,heading,headingLevel,hidePreviewImageAttachmentName,messages:,orderByFields:"],
|
|
@@ -134,7 +134,7 @@ const s = t(e, {
|
|
|
134
134
|
"arcgis-search": [() => import("./components/arcgis-search/customElement.js"), "activeMenu,activeSource:,activeSourceIndex,allPlaceholder,allSources:,autoDestroyDisabled,autoNavigateDisabled,autoSelectDisabled,defaultSources:,disabled,goToOverride:,hideSourcesMenu,icon,includeDefaultSourcesDisabled,label,locationDisabled,maxResults,maxSuggestions,messageOverrides:,messages:,minSuggestCharacters,popupDisabled,popupTemplate:,portal:,referenceElement,resultGraphic:,resultGraphicDisabled,results:,searchAllDisabled,searchTerm,selectedResult:,sources:,state:,suggestions:,suggestionsDisabled,topLayerDisabled,view:;destroy,onSourcesReady,search,setFocus,suggest;clear"],
|
|
135
135
|
"arcgis-search-result-renderer": [() => import("./components/arcgis-search-result-renderer/customElement.js"), "autoDestroyDisabled,messages:,viewModel:;destroy"],
|
|
136
136
|
"arcgis-selection-list": [() => import("./components/arcgis-selection-list/customElement.js"), "activeLayerItem:,afterListItemSelect:,allLayerItems:,autoDestroyDisabled,count:,disabled,displayMode,effectiveSelectionManager:,filterText,hideChip,hideChipCloseButton,hideFilter,hideFilterNotice,hideHeader,hideItemCloseActions,hideItemCount,hideItemIcons,hideItemMenus,hideLayerFilter,hideMenu,hideZoomToButton,highlightOnHoverDisabled,icon,label,layer:,layerItems:,listItemActionConfigurations:,listItemUnavailableFunction:,maxVisibleFeatureCountExceeded:,maxVisibleFeatureCountPerLayer,menuScale,messages:,referenceElement,selectionManager:,state:,view:,visibleFeatureCount:,visibleFeatureItems:,visibleLayerCount:,visualScale;clear,collapseAll,deselectItem,destroy,expandAll,findLayerItem,findParentItem,goToItem,removeFromSelection,replace,selectItem"],
|
|
137
|
-
"arcgis-selection-toolbar": [() => import("./components/arcgis-selection-toolbar/customElement.js"), "activeOperation:,autoDestroyDisabled,availableOperationTypes:,continuousSelectionEnabled,defaultLassoToolOptions:,defaultOperationType,defaultPointToolOptions:,defaultPolygonToolOptions:,defaultRectangleToolOptions:,disabled,effectiveSelectionManager:,effectiveSources:,hideChip,hideChipCloseButton,hideLassoTool,hideOperationTypeControls,hidePanTool,hidePointTool,hidePolygonTool,hideProgress,hideRectangleTool,icon,label,layerPreferenceEnabled,layout,messages:,referenceElement,returnFeatureTitleFields,returnGeometryDisabled,selectionManager:,showTextLabels,sources:,state:,syncResultsDisabled,syncWhileDrawing,toolConfigs:,view:,visualScale;activate,activateTool,cancel,destroy,syncSources,toggleTool"],
|
|
137
|
+
"arcgis-selection-toolbar": [() => import("./components/arcgis-selection-toolbar/customElement.js"), "activeOperation:,autoDestroyDisabled,availableOperationTypes:,continuousSelectionEnabled,defaultLassoToolOptions:,defaultOperationType,defaultPointToolOptions:,defaultPolygonToolOptions:,defaultRectangleToolOptions:,disabled,effectiveSelectionManager:,effectiveSources:,hideChip,hideChipCloseButton,hideLassoTool,hideOperationTypeControls,hidePanTool,hidePointTool,hidePolygonTool,hideProgress,hideRectangleTool,icon,ignoreLayerVisibility,label,layerPreferenceEnabled,layout,messages:,referenceElement,returnFeatureTitleFields,returnGeometryDisabled,selectionManager:,showTextLabels,sources:,state:,syncResultsDisabled,syncWhileDrawing,toolConfigs:,view:,visualScale;activate,activateTool,cancel,destroy,syncSources,toggleTool"],
|
|
138
138
|
"arcgis-shadow-cast": [() => import("./components/arcgis-shadow-cast/customElement.js"), "analysis:,autoDestroyDisabled,date,discreteColor:,discreteInterval,endTimeOfDay,headingLevel,hideDatePicker,hideDiscreteColorPicker,hideDiscreteInterval,hideDiscreteOptions,hideMinDurationColorPicker,hideMinDurationContextColorPicker,hideMinDurationContextInterval,hideMinDurationContextOptions,hideMinDurationContextToggle,hideMinDurationOptions,hideMinDurationSlider,hideShadowDurationTooltip,hideTimeRangeSlider,hideTimezone,hideTotalDurationColorPicker,hideTotalDurationModeSelect,hideTotalDurationOptions,hideVisualization,hideVisualizationOptions,icon,label,maxMinDuration,messages:,minDuration,minDurationColor:,minDurationContextColor:,minDurationContextEnabled,minDurationContextInterval,minMinDuration,mode,referenceElement,startTimeOfDay,state:,timeZoneMode,totalDurationColor:,totalDurationMode,utcOffset,view:,visualizeSunlight,visualScale;destroy,getDurationAtScreen"],
|
|
139
139
|
"arcgis-shadow-cast-discrete-config": [() => import("./components/arcgis-shadow-cast-discrete-config/customElement.js"), "hideColorPicker,hideInterval,messages:,options:,scale"],
|
|
140
140
|
"arcgis-shadow-cast-min-duration-config": [() => import("./components/arcgis-shadow-cast-min-duration-config/customElement.js"), "hideColorPicker,hideContextColorPicker,hideContextInterval,hideContextOptions,hideContextToggle,hideSlider,maxMinDuration,messages:,minMinDuration,options:,scale"],
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ interface LuminaArcgisElevationProfile extends Partial<Pick<ArcgisElevationProfi
|
|
|
284
284
|
onarcgisReady?: EventHandler<ArcgisElevationProfile["arcgisReady"]>;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
interface LuminaArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" | "autoDestroyDisabled" | "closeOnEscDisabled" | "collapseTooltip" | "expanded" | "expandIcon" | "expandTooltip" | "focusTrapDisabled" | "group" | "iconNumber" | "label" | "messageOverrides" | "modalDisabled" | "mode" | "placement" | "referenceElement" | "topLayerDisabled" | "view" | "visualScale">>, ArcgisExpandSetterTypes, h.JSX.HTMLAttributes<ArcgisExpand> {
|
|
287
|
+
interface LuminaArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" | "autoDestroyDisabled" | "autoModeBreakpoint" | "closeOnEscDisabled" | "collapseTooltip" | "expanded" | "expandIcon" | "expandTooltip" | "focusTrapDisabled" | "focusTrapInitialFocusDisabled" | "group" | "iconNumber" | "label" | "messageOverrides" | "modalDisabled" | "mode" | "placement" | "referenceElement" | "topLayerDisabled" | "view" | "visualScale">>, ArcgisExpandSetterTypes, h.JSX.HTMLAttributes<ArcgisExpand> {
|
|
288
288
|
onarcgisPropertyChange?: EventHandler<ArcgisExpand["arcgisPropertyChange"]>;
|
|
289
289
|
onarcgisReady?: EventHandler<ArcgisExpand["arcgisReady"]>;
|
|
290
290
|
}
|
|
@@ -653,7 +653,7 @@ interface LuminaArcgisSelectionList extends Partial<Pick<ArcgisSelectionList, "a
|
|
|
653
653
|
onarcgisReady?: EventHandler<ArcgisSelectionList["arcgisReady"]>;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
-
interface LuminaArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultPolygonToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideChipCloseButton" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hidePolygonTool" | "hideProgress" | "hideRectangleTool" | "icon" | "label" | "layerPreferenceEnabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, h.JSX.HTMLAttributes<ArcgisSelectionToolbar> {
|
|
656
|
+
interface LuminaArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultPolygonToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideChipCloseButton" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hidePolygonTool" | "hideProgress" | "hideRectangleTool" | "icon" | "ignoreLayerVisibility" | "label" | "layerPreferenceEnabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, h.JSX.HTMLAttributes<ArcgisSelectionToolbar> {
|
|
657
657
|
onarcgisBeforeActivate?: EventHandler<ArcgisSelectionToolbar["arcgisBeforeActivate"]>;
|
|
658
658
|
onarcgisClear?: EventHandler<ArcgisSelectionToolbar["arcgisClear"]>;
|
|
659
659
|
onarcgisComplete?: EventHandler<ArcgisSelectionToolbar["arcgisComplete"]>;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ interface PreactArcgisElevationProfile extends Partial<Pick<ArcgisElevationProfi
|
|
|
285
285
|
onarcgisReady?: EventHandler<ArcgisElevationProfile["arcgisReady"]>;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
interface PreactArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" | "autoDestroyDisabled" | "closeOnEscDisabled" | "collapseTooltip" | "expanded" | "expandIcon" | "expandTooltip" | "focusTrapDisabled" | "group" | "iconNumber" | "label" | "messageOverrides" | "modalDisabled" | "mode" | "placement" | "referenceElement" | "topLayerDisabled" | "view" | "visualScale">>, ArcgisExpandSetterTypes, HTMLAttributes<ArcgisExpand> {
|
|
288
|
+
interface PreactArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" | "autoDestroyDisabled" | "autoModeBreakpoint" | "closeOnEscDisabled" | "collapseTooltip" | "expanded" | "expandIcon" | "expandTooltip" | "focusTrapDisabled" | "focusTrapInitialFocusDisabled" | "group" | "iconNumber" | "label" | "messageOverrides" | "modalDisabled" | "mode" | "placement" | "referenceElement" | "topLayerDisabled" | "view" | "visualScale">>, ArcgisExpandSetterTypes, HTMLAttributes<ArcgisExpand> {
|
|
289
289
|
onarcgisPropertyChange?: EventHandler<ArcgisExpand["arcgisPropertyChange"]>;
|
|
290
290
|
onarcgisReady?: EventHandler<ArcgisExpand["arcgisReady"]>;
|
|
291
291
|
}
|
|
@@ -654,7 +654,7 @@ interface PreactArcgisSelectionList extends Partial<Pick<ArcgisSelectionList, "a
|
|
|
654
654
|
onarcgisReady?: EventHandler<ArcgisSelectionList["arcgisReady"]>;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
interface PreactArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultPolygonToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideChipCloseButton" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hidePolygonTool" | "hideProgress" | "hideRectangleTool" | "icon" | "label" | "layerPreferenceEnabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, HTMLAttributes<ArcgisSelectionToolbar> {
|
|
657
|
+
interface PreactArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultPolygonToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideChipCloseButton" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hidePolygonTool" | "hideProgress" | "hideRectangleTool" | "icon" | "ignoreLayerVisibility" | "label" | "layerPreferenceEnabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, HTMLAttributes<ArcgisSelectionToolbar> {
|
|
658
658
|
onarcgisBeforeActivate?: EventHandler<ArcgisSelectionToolbar["arcgisBeforeActivate"]>;
|
|
659
659
|
onarcgisClear?: EventHandler<ArcgisSelectionToolbar["arcgisClear"]>;
|
|
660
660
|
onarcgisComplete?: EventHandler<ArcgisSelectionToolbar["arcgisComplete"]>;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ interface ReactArcgisElevationProfile extends Partial<Pick<ArcgisElevationProfil
|
|
|
285
285
|
onarcgisReady?: EventHandler<ArcgisElevationProfile["arcgisReady"]>;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
interface ReactArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" | "autoDestroyDisabled" | "closeOnEscDisabled" | "collapseTooltip" | "expanded" | "expandIcon" | "expandTooltip" | "focusTrapDisabled" | "group" | "iconNumber" | "label" | "messageOverrides" | "modalDisabled" | "mode" | "placement" | "referenceElement" | "topLayerDisabled" | "view" | "visualScale">>, ArcgisExpandSetterTypes, HTMLProps<ArcgisExpand> {
|
|
288
|
+
interface ReactArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" | "autoDestroyDisabled" | "autoModeBreakpoint" | "closeOnEscDisabled" | "collapseTooltip" | "expanded" | "expandIcon" | "expandTooltip" | "focusTrapDisabled" | "focusTrapInitialFocusDisabled" | "group" | "iconNumber" | "label" | "messageOverrides" | "modalDisabled" | "mode" | "placement" | "referenceElement" | "topLayerDisabled" | "view" | "visualScale">>, ArcgisExpandSetterTypes, HTMLProps<ArcgisExpand> {
|
|
289
289
|
onarcgisPropertyChange?: EventHandler<ArcgisExpand["arcgisPropertyChange"]>;
|
|
290
290
|
onarcgisReady?: EventHandler<ArcgisExpand["arcgisReady"]>;
|
|
291
291
|
}
|
|
@@ -654,7 +654,7 @@ interface ReactArcgisSelectionList extends Partial<Pick<ArcgisSelectionList, "af
|
|
|
654
654
|
onarcgisReady?: EventHandler<ArcgisSelectionList["arcgisReady"]>;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
interface ReactArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultPolygonToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideChipCloseButton" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hidePolygonTool" | "hideProgress" | "hideRectangleTool" | "icon" | "label" | "layerPreferenceEnabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, HTMLProps<ArcgisSelectionToolbar> {
|
|
657
|
+
interface ReactArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultPolygonToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideChipCloseButton" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hidePolygonTool" | "hideProgress" | "hideRectangleTool" | "icon" | "ignoreLayerVisibility" | "label" | "layerPreferenceEnabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, HTMLProps<ArcgisSelectionToolbar> {
|
|
658
658
|
onarcgisBeforeActivate?: EventHandler<ArcgisSelectionToolbar["arcgisBeforeActivate"]>;
|
|
659
659
|
onarcgisClear?: EventHandler<ArcgisSelectionToolbar["arcgisClear"]>;
|
|
660
660
|
onarcgisComplete?: EventHandler<ArcgisSelectionToolbar["arcgisComplete"]>;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ interface StencilArcgisElevationProfile extends Partial<Pick<ArcgisElevationProf
|
|
|
285
285
|
onArcgisReady?: EventHandler<ArcgisElevationProfile["arcgisReady"]>;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
interface StencilArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" | "autoDestroyDisabled" | "closeOnEscDisabled" | "collapseTooltip" | "expanded" | "expandIcon" | "expandTooltip" | "focusTrapDisabled" | "group" | "iconNumber" | "label" | "messageOverrides" | "modalDisabled" | "mode" | "placement" | "referenceElement" | "topLayerDisabled" | "view" | "visualScale">>, ArcgisExpandSetterTypes, StencilJsx.HTMLAttributes<ArcgisExpand> {
|
|
288
|
+
interface StencilArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" | "autoDestroyDisabled" | "autoModeBreakpoint" | "closeOnEscDisabled" | "collapseTooltip" | "expanded" | "expandIcon" | "expandTooltip" | "focusTrapDisabled" | "focusTrapInitialFocusDisabled" | "group" | "iconNumber" | "label" | "messageOverrides" | "modalDisabled" | "mode" | "placement" | "referenceElement" | "topLayerDisabled" | "view" | "visualScale">>, ArcgisExpandSetterTypes, StencilJsx.HTMLAttributes<ArcgisExpand> {
|
|
289
289
|
onArcgisPropertyChange?: EventHandler<ArcgisExpand["arcgisPropertyChange"]>;
|
|
290
290
|
onArcgisReady?: EventHandler<ArcgisExpand["arcgisReady"]>;
|
|
291
291
|
}
|
|
@@ -654,7 +654,7 @@ interface StencilArcgisSelectionList extends Partial<Pick<ArcgisSelectionList, "
|
|
|
654
654
|
onArcgisReady?: EventHandler<ArcgisSelectionList["arcgisReady"]>;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
interface StencilArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultPolygonToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideChipCloseButton" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hidePolygonTool" | "hideProgress" | "hideRectangleTool" | "icon" | "label" | "layerPreferenceEnabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, StencilJsx.HTMLAttributes<ArcgisSelectionToolbar> {
|
|
657
|
+
interface StencilArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultPolygonToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideChipCloseButton" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hidePolygonTool" | "hideProgress" | "hideRectangleTool" | "icon" | "ignoreLayerVisibility" | "label" | "layerPreferenceEnabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, StencilJsx.HTMLAttributes<ArcgisSelectionToolbar> {
|
|
658
658
|
onArcgisBeforeActivate?: EventHandler<ArcgisSelectionToolbar["arcgisBeforeActivate"]>;
|
|
659
659
|
onArcgisClear?: EventHandler<ArcgisSelectionToolbar["arcgisClear"]>;
|
|
660
660
|
onArcgisComplete?: EventHandler<ArcgisSelectionToolbar["arcgisComplete"]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/map-components",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.27",
|
|
4
4
|
"description": "ArcGIS Map Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@amcharts/amcharts5": "~5.21.5",
|
|
46
|
-
"@arcgis/common-components": "6.0.0-next.
|
|
47
|
-
"@arcgis/lumina": "6.0.0-next.
|
|
48
|
-
"@arcgis/lumina-toolkit": "6.0.0-next.
|
|
49
|
-
"@arcgis/toolkit": "6.0.0-next.
|
|
50
|
-
"es-toolkit": "^1.53.
|
|
46
|
+
"@arcgis/common-components": "6.0.0-next.27",
|
|
47
|
+
"@arcgis/lumina": "6.0.0-next.27",
|
|
48
|
+
"@arcgis/lumina-toolkit": "6.0.0-next.27",
|
|
49
|
+
"@arcgis/toolkit": "6.0.0-next.27",
|
|
50
|
+
"es-toolkit": "^1.53.1",
|
|
51
51
|
"lit": "^3.3.0",
|
|
52
52
|
"tslib": "^2.8.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@arcgis/core": "6.0.0-next.
|
|
55
|
+
"@arcgis/core": "6.0.0-next.27",
|
|
56
56
|
"@esri/calcite-components": "^5.2.0"
|
|
57
57
|
},
|
|
58
58
|
"css.customData": [
|
package/dist/cdn/ARN5ZKLI.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{f as p,h as b}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{Q as u,R as h,T as g,X as v,_ as w,a as d,b as s,x as m}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([l])=>{var f=d`:host{background-color:var(--calcite-color-surface-2);block-size:var(--calcite-size-fixed-xxxl);color:var(--calcite-color-text-1);display:flex;flex:1 0 auto;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:auto;--arcgis-internal-time-bar-slider-tick-gap: 100}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}slot[name=max],slot[name=min]{display:flex}.slider{padding-inline:var(--calcite-spacing-xl);--arcgis-internal-slider-track-size: var(--calcite-size-px);--arcgis-slider-track-background-color: var(--calcite-color-border-1);--labels-container-width: 100%}.slider-container{flex:1 1 auto;min-inline-size:calc(var(--calcite-spacing-md) * 15)}.slider--has-ticks{margin-top:calc(var(--calcite-spacing-md) * -1)}.hidden,.max-date,.min-date{flex:0 0 auto}.hidden{inline-size:0}.popover{padding:var(--calcite-spacing-xxs) var(--calcite-spacing-xs) var(--calcite-spacing-xs)}.ticks-container{flex:1;position:relative;width:100%;arcgis-ticks,>slot::slotted(arcgis-ticks){inset:0;position:absolute;white-space:nowrap;--arcgis-internal-ticks-color: var(--calcite-color-text-1);--arcgis-ticks-font-weight: var(--calcite-font-weight-normal);--arcgis-ticks-label-width: auto;--arcgis-ticks-tick-color: var(--calcite-color-border-1);--arcgis-ticks-tick-transform: unset;--arcgis-ticks-tick-width: var(--calcite-size-px)}}.slider.slider--out-of-range{--arcgis-internal-slider-handle-color: var(--calcite-color-status-danger);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-status-danger)}.lock-time-window{--arcgis-internal-time-bar-slider-border-margin: calc(var(--calcite-spacing-base) + 1px);border-image:linear-gradient(transparent var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--arcgis-internal-time-bar-slider-border-margin)),transparent var(--arcgis-internal-time-bar-slider-border-margin));border-image-slice:1}:dir(ltr){.lock-time-window{border-inline-end-style:solid;border-inline-end-width:var(--calcite-border-width-sm);margin-inline-end:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-sm)}}:dir(rtl){.lock-time-window{border-inline-start-style:solid;border-inline-start-width:var(--calcite-border-width-sm);margin-inline-start:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-sm)}}`,c=class extends h{constructor(){super(...arguments),this._direction=p(),this.#t=new ResizeObserver(([e])=>{this._sliderWidth=e.contentRect.width}),this.#i=100,this.#a=100,this.#s=(e,i)=>i==="value"?this.viewModel?.formatDateTime(new Date(e)):void 0,this.autoDestroyDisabled=!1,this.lockTimeWindow=!1,this.popoverDisplay="none",this.showLockTimeWindow=!1,this.showMax=!1,this.showMin=!1,this.showTicks=!1,this.arcgisPropertyChange=b()("activeValue","lockTimeWindow"),this.arcgisReady=m()}static{this.properties={_activeValue:16,_sliderFillPlacement:16,_sliderWidth:16,_timeExtentEpochValues:16,activeValue:32,autoDestroyDisabled:5,lockTimeWindow:5,messages:0,popoverDisplay:1,showLockTimeWindow:5,showMax:5,showMin:5,showTicks:5,viewModel:0}}static{this.styles=f}#t;#e;#i;#a;#s;get _sliderFillPlacement(){switch(this.viewModel?.mode){case"cumulative-from-end":return"end";case"cumulative-from-start":return"start";case"instant":return"none";default:return}}get _timeExtentEpochValues(){let{viewModel:e}=this;if(!e)return;let{fullTimeExtent:i}=e;if(!i)return;let{start:t,end:a}=i;if(!t||!a)return;let{timeExtent:r}=e;if(!r)switch(e.mode){case"cumulative-from-end":case"instant":return[t.getTime()];case"cumulative-from-start":return[a.getTime()];case"time-window":return[t.getTime(),a.getTime()]}let{start:o,end:n}=r;switch(e.mode){case"cumulative-from-end":case"instant":return o?o.getTime()<t.getTime()?[t.getTime()]:o.getTime()>a.getTime()?[a.getTime()]:[o.getTime()]:void 0;case"cumulative-from-start":return n?n.getTime()<t.getTime()?[t.getTime()]:n.getTime()>a.getTime()?[a.getTime()]:[n.getTime()]:void 0;case"time-window":return o&&n?[o.getTime(),n.getTime()]:void 0}}get activeValue(){switch(this.popoverDisplay){case"none":return;case"always":return this.viewModel?.timeExtent;case"auto":switch(this._activeValue){case void 0:return;case"all":return this.viewModel?.timeExtent;default:return new Date(this._activeValue)}}}async destroy(){await this.manager.destroy()}#c(){return e=>{if(e){this.#e=e,this.#t.observe(e);return}this.#e&&(this.#t.unobserve(this.#e),this.#e=void 0)}}#d(){let e=Number.parseInt(window.getComputedStyle(this.el).getPropertyValue("--arcgis-internal-time-bar-slider-tick-gap"),10);return Number.isFinite(e)&&e>0?e:this.#i}#m(e,i){let{viewModel:t}=this,{start:a,end:r}=e;if(!t||!a||!r)return;let o=(r.getTime()-a.getTime())/i;return t.tickFormats.find(({duration:n})=>n>this.#d()*o)??t.tickFormats.at(-1)}#u(){this.lockTimeWindow=!this.lockTimeWindow}#h(e){this._activeValue=e.target.activeValue}#g(e){let{viewModel:i}=this,t=i?.mode;t&&(i.timeExtent=this.#v(e.target.values,t),this._activeValue=e.target.activeValue)}#v([e,i],t){switch(t){case"cumulative-from-end":return new l({start:new Date(e),end:null});case"cumulative-from-start":return new l({start:null,end:new Date(e)});case"instant":return new l({start:new Date(e),end:new Date(e)});case"time-window":return new l({start:new Date(e),end:new Date(i??e)})}}#r(){let{messages:e,showLockTimeWindow:i,viewModel:t}=this;if(!e||!i||!t)return null;let a=this.lockTimeWindow?"lock":"unlock",r=this.lockTimeWindow?e.unlockTimeWindow:e.lockTimeWindow;return s`<calcite-action .active=${this.lockTimeWindow} class="lock-time-window" .disabled=${!t.interactive||t.mode!=="time-window"} .icon=${a} @click=${this.#u} .text=${r} title=${r??v}></calcite-action>`}#o(){let e=this.viewModel?.fullTimeExtent?.end;return this.showMax&&e?s`<slot name=max><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="max-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>`:s`<div class="hidden"></div>`}#n(){let e=this.viewModel?.fullTimeExtent?.start;return this.showMin&&e?s`<slot name=min><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="min-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>`:s`<div class="hidden"></div>`}#w(){return this.popoverDisplay!=="none"?s`<div class="popover" slot=popover><slot name=popover>${this.#p()}</slot></div>`:null}#p(){let{activeValue:e,messages:i,viewModel:t}=this;if(!e||!i||!t)return null;switch(t.mode){case"cumulative-from-end":case"instant":let a=t.timeExtent?.start;return a?s`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${a} .viewModel=${t}></arcgis-time-bar-date>`:null;case"cumulative-from-start":let r=t.timeExtent?.end;return r?s`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${r} .viewModel=${t}></arcgis-time-bar-date>`:null;case"time-window":return e instanceof Date?s`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${e} .viewModel=${t}></arcgis-time-bar-date>`:s`<arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${i} .viewModel=${t}></arcgis-time-bar-extent>`}}#l(){let{messages:e,viewModel:i}=this;if(!i?.fullTimeExtent?.start||!i?.fullTimeExtent?.end||!e||(i.tickFormat=this.#m(i.fullTimeExtent,this._sliderWidth??this.#a),!i.tickFormat))return null;let t=i.fullTimeExtent.start.getTime(),a=i.fullTimeExtent.end.getTime();return s`<div class="slider-container" ${u(this.#c())}><arcgis-slider allow-values-overlap .autoDestroyDisabled=${this.autoDestroyDisabled} class=${g({slider:!0,"slider--has-ticks":this.showTicks,"slider--out-of-range":i.isOutOfRange})} .disabled=${!i.interactive} .fillPlacement=${this._sliderFillPlacement} .labelFormatter=${this.#s} .max=${a} .min=${t} @arcgisActiveValueChange=${this.#h} @arcgisInput=${this.#g} .popoverLabel=${e.timeExtent} .popoverDisplay=${this.popoverDisplay==="none"?"auto":this.popoverDisplay} precision=0 .steps=${i.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} .valuesDraggingDisabled=${this.lockTimeWindow}>${this.#w()}${this.#b(i,t,a)}</arcgis-slider></div>`}#b(e,i,t){return this.showTicks?s`<div slot=content-end class="ticks-container"><slot name=content-end><arcgis-ticks .autoDestroyDisabled=${this.autoDestroyDisabled} .labelFormatter=${e.tickFormatter} .max=${t} .min=${i} mode=value show-labels .values=${e.tickValues}></arcgis-ticks></slot></div>`:null}render(){return s`<div class="root">${this._direction==="ltr"?s`${this.#r()}${this.#n()}${this.#l()}${this.#o()}`:s`${this.#o()}${this.#l()}${this.#n()}${this.#r()}`}</div>`}};w("arcgis-time-bar-slider",c);return c},"time/TimeExtent")
|
package/dist/cdn/CVLOQWUD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{g as c}from"./J4CHCFLS.js";import"./XHOI3WNI.js";import{a as R}from"./REB4CHAK.js";import{h as d}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{R as g,_ as m,a as n,b as i,o as a,p as l,s as u,x as h}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";var v=n`calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.functions-heading{margin:0 0 var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`,o=class extends g{constructor(){super(...arguments),this._messages=R({blocking:!0}),this.autoDestroyDisabled=!1,this.emitsArcgisResultReady=!0,this.state="ready",this.arcgisPropertyChange=d()("state"),this.arcgisResultReady=h()}static{this.properties={autoDestroyDisabled:5,emitsArcgisResultReady:32,hasContent:32,heading:1,messageOverrides:0,state:32,traceResult:32}}static{this.styles=v}get#t(){let{parentElement:t}=this.el;if(t&&c(t))return t;let e=this.el.getRootNode();if(e instanceof ShadowRoot&&c(e.host))return e.host}get hasContent(){return!!this.traceResult?.globalFunctionResults.length}clearResult(){}async destroy(){await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{let t=this.#t;if(!t){l("warn",this,"This component must be used as a child of `arcgis-utility-network-trace-results`.");return}let e=r=>this.#s(r);return t.addEventListener("arcgisPropertyChange",e),a(()=>{this.traceResult=t.traceResult}),()=>{t.removeEventListener("arcgisPropertyChange",e)}}),this.traceResult&&this.#e()}willUpdate(t){t.has("traceResult")&&this.#e()}loaded(){this.traceResult&&!this.traceResult.globalFunctionResults.length&&l("warn",this,u("traceResult.globalFunctionResults"))}#s(t){if(t.target!==this.#t)return;let{target:e}=t;t.detail.name==="traceResult"&&a(()=>this.traceResult=e.traceResult)}#e(){a(()=>this.state="ready"),this.arcgisResultReady.emit()}render(){if(!this.hasContent)return null;let{heading:t,_messages:e}=this,{globalFunctionResults:r}=this.traceResult;return i`<div class="functions-heading">${t||e.functions}</div><calcite-table .caption=${e.labels.functionResults}>${r.filter(s=>s.networkAttributeName!=null&&s.result!=null&&s.functionType!=null).map(s=>{let{functionName:f,networkAttributeName:b,functionType:p,result:y}=s,w=f||`${b} ${p}`;return i`<calcite-table-row><calcite-table-cell>${w}</calcite-table-cell><calcite-table-cell>${y}</calcite-table-cell></calcite-table-row>`})}</calcite-table>`}};m("arcgis-utility-network-trace-functions-result-item",o);export{o as ArcgisUtilityNetworkTraceFunctionsResultItem};
|
package/dist/cdn/HADZXZIE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{g as p}from"./J4CHCFLS.js";import{a as g}from"./XHOI3WNI.js";import a from"./HU57LQOA.js";import{a as $}from"./REB4CHAK.js";import{h as C}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{B as w,P as v,Q as f,R as G,X as R,_ as b,a as y,b as l,o as i,p as o,r as h,x as u}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([c,k,x,S,z,E,{b:n,f:L}])=>{var M=y`.aggregated-geometry-container{display:flex;align-items:center;justify-content:space-between}.geometry-heading{margin:0 0 var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`,m=class extends G{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#r=`aggregated-geometry-graphics-${w()}`,this.#e=v(),this.autoDestroyDisabled=!1,this.emitsArcgisResultReady=!0,this.geometryGraphics=[],this.graphicsColor=new c(g),this.hideGraphics=!1,this.selectionSize=12,this.state="ready",this.arcgisPropertyChange=C()("hideGraphics","geometryGraphics","graphicsColor","selectionSize","state"),this.arcgisResultReady=u()}static{this.properties={autoDestroyDisabled:5,emitsArcgisResultReady:32,geometryGraphics:32,graphicsColor:[1,{converter:{fromAttribute:e=>c.fromString(e)??new c(g)}}],graphicsLayer:0,hasContent:32,heading:1,hideGraphics:5,messageOverrides:0,selectionSize:9,state:32,traceResult:32,view:32}}static{this.styles=M}#r;#t;#e;get#a(){let{parentElement:e}=this.el;if(e&&p(e))return e;let t=this.el.getRootNode();if(t instanceof ShadowRoot&&p(t.host))return t.host}get hasContent(){return!!this.traceResult?.aggregatedGeometry}clearResult(){this.#e.value&&(this.#e.value.open=!1);let{graphicsLayer:e}=this;e&&(e.removeMany(this.geometryGraphics),e===this.#t&&(this.view?.map?.remove(e),this.graphicsLayer=void 0,this.#t=void 0)),i(()=>this.geometryGraphics=[]),i(()=>this.state="ready")}async destroy(){try{this.clearResult()}finally{await this.manager.destroy()}}connectedCallback(){super.connectedCallback(),this.view&&this.graphicsLayer&&n(this.view,this.graphicsLayer)}load(){this.manager.onLifecycle(()=>{let e=this.#a;if(!e){o("warn",this,"This component must be used as a child of `arcgis-utility-network-trace-results`.");return}let t=s=>this.#h(s);return e.addEventListener("arcgisPropertyChange",t),i(()=>{this.traceResult=e.traceResult,this.view=e.view}),()=>{e.removeEventListener("arcgisPropertyChange",t)}}),this.traceResult&&this.#i()}willUpdate(e){if(e.has("traceResult")&&this.#i(),e.has("view")){let t=e.get("view");t?.map&&this.graphicsLayer&&t.map.remove(this.graphicsLayer),this.#i()}e.has("graphicsLayer")&&this.#p(e.get("graphicsLayer")),e.has("hideGraphics")&&this.#g(),(e.has("graphicsColor")||e.has("selectionSize"))&&this.#m()}loaded(){this.traceResult&&(this.traceResult.aggregatedGeometry||o("warn",this,h("traceResult.aggregatedGeometry")),this.view?this.view.map||o("error",this,h("The property `view` was provided, but `view.map` is null. Cannot draw aggregated geometry.")):o("error",this,h("view")))}#s(){if(!this.graphicsLayer)return;let e=this.geometryGraphics.filter(t=>!this.graphicsLayer.graphics.includes(t));this.graphicsLayer.addMany(e)}#h(e){if(e.target!==this.#a)return;let{target:t}=e;switch(e.detail.name){case"traceResult":i(()=>this.traceResult=t.traceResult);break;case"view":i(()=>this.view=t.view);break}}#c(e){let{line:t,multipoint:s,polygon:r}=e;i(()=>{this.geometryGraphics=[t,s,r].filter(a=>a!=null).map(a=>this.#n(a))})}#l(e){let t=this.#r,s=e.map?.findLayerById(t);return s&&L(s)?s:new x({id:t,listMode:"hide",title:t})}#n(e){return new k({geometry:e,symbol:this.#o(e)})}#o(e){let{selectionSize:t,graphicsColor:s}=this;switch(e.type){case"multipoint":return new E({color:s,size:t,outline:{color:s,width:0}});case"polygon":return new S({color:s,outline:{color:s,width:t}});case"polyline":return new z({color:s,width:t})}}#g(){this.hideGraphics?(this.graphicsLayer?.removeMany(this.geometryGraphics),this.#e.value?.open&&(this.#e.value.open=!1)):this.#s()}#p(e){e?.removeMany(this.geometryGraphics),this.hideGraphics||this.#s()}#i(){this.clearResult();let e=()=>{i(()=>this.state="ready"),this.arcgisResultReady.emit()};if(!this.traceResult?.aggregatedGeometry||!this.view?.map){e();return}i(()=>this.state="loading"),this.#c(this.traceResult.aggregatedGeometry),this.graphicsLayer||(this.graphicsLayer=this.#l(this.view),this.#t=this.graphicsLayer,n(this.view,this.graphicsLayer)),this.hideGraphics||this.#s(),e()}#m(){this.geometryGraphics.forEach(e=>{let t=e.geometry;e.symbol=this.#o(t)})}render(){if(!this.hasContent)return null;let{graphicsColor:e,heading:t,hideGraphics:s,_messages:r}=this;return l`${t&&l`<div class="geometry-heading">${t}</div>`||""}<div class="aggregated-geometry-container"><calcite-switch .checked=${!s} .label=${r.labels.showGraphicsToggle} label-text-end=${r.showGraphics??R} @calciteSwitchChange=${()=>this.hideGraphics=!this.hideGraphics}></calcite-switch><calcite-swatch .color=${e.toCss()} .disabled=${s} id=geometry-color-swatch .label=${r.labels.aggregatedGeometryGraphicsColor}></calcite-swatch><calcite-popover closable .heading=${r.headings.setColor} .label=${r.headings.setColor} reference-element=geometry-color-swatch ${f(this.#e)}><calcite-color-picker alpha-channel channels-disabled clearable .disabled=${s} hex-disabled saved-disabled .value=${e.toCss(!0)} @calciteColorPickerChange=${a=>{let d=a.target.value;d&&(this.graphicsColor=new c(d))}}></calcite-color-picker></calcite-popover></div>`}};b("arcgis-utility-network-trace-aggregated-geometry-result-item",m);return m},"Color","Graphic","layers/GraphicsLayer","symbols/SimpleFillSymbol","symbols/SimpleLineSymbol","symbols/SimpleMarkerSymbol",a)
|
package/dist/cdn/HTCPPGCR.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{g as R}from"./J4CHCFLS.js";import"./XHOI3WNI.js";import b from"./HU57LQOA.js";import a from"./BOPNSNUT.js";import"./WJQUE4DR.js";import{a as I}from"./REB4CHAK.js";import{h as k}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{Q as F,R as E,_ as C,a as v,b as m,o,p as u,r as g,x as y}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{getOrCreateMapValue:L},{a:f,b:c,c:p,d:$},{c:A,d:P,e:S,g:w}])=>{var N=v`arcgis-features-next{height:100%}.elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm)}.features-hidden{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size);overflow-wrap:anywhere}`,b=class extends E{constructor(){super(...arguments),this._messages=I({blocking:!0}),this.#h=!0,this.#t=[],this.#i=new Map,this.#r=new Map,this.#o=!1,this.#n=!1,this.#a=new Map,this.#l=new Map,this.#e=[],this._isFeaturesSelected=!1,this.autoDestroyDisabled=!1,this.disableHighlight=!1,this.emitsArcgisResultReady=!0,this.features=[],this.hideActionBar=!1,this.hideFeatureResults=!1,this.hidePlaceholder=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=k()("features","hasContent","isFeaturesListShown","selectedResultFeature","state"),this.arcgisResultReady=y(),this.arcgisTriggerAction=y()}static{this.properties={_featuresComponentElement:16,_isFeaturesSelected:16,actions:0,autoDestroyDisabled:5,disableHighlight:5,emitsArcgisResultReady:32,features:32,hasContent:32,heading:1,hideActionBar:5,hideFeatureResults:5,hidePlaceholder:5,includeDefaultActionsDisabled:5,isFeaturesListShown:32,layers:0,messageOverrides:0,numResults:32,referenceElement:1,selectedResultFeature:32,state:32,traceResult:32,utilityNetwork:32,view:32}}static{this.styles=N}#h;get#m(){if(!this.traceResult)return!1;let{elements:e,globalFunctionResults:t,aggregatedGeometry:s}=this.traceResult;return e.length>0&&!t?.length&&!s}#t;#i;#r;#s;#o;#n;#a;#l;get#c(){let{parentElement:e}=this.el;if(e&&R(e))return e;let t=this.el.getRootNode();if(t instanceof ShadowRoot&&R(t.host))return t.host}#e;get hasContent(){return this.numResults>0&&!this.manager.destroyed&&!(this.hideFeatureResults&&this.hidePlaceholder)}get isFeaturesListShown(){return this._isFeaturesSelected&&!this.hideFeatureResults&&this.numResults>0}get numResults(){return this.features.length}get selectedResultFeature(){return this._featuresComponentElement?.selectedDrillInFeature??this._featuresComponentElement?.selectedFeature??void 0}clearResult(){this._isFeaturesSelected=!1,this.#s?.abort(),this.#y(),o(()=>this.features=[]),this.#e=[],this.#i.clear(),this.#r.clear(),this.#l.clear(),this.#a.clear(),o(()=>this.state="ready")}async destroy(){this.clearResult(),await this.manager.destroy(),await this._featuresComponentElement?.destroy()}load(){this.manager.onLifecycle(()=>{let e=this.#c;if(!e){u("warn",this,"This component must be used as a child of `arcgis-utility-network-trace-results`.");return}let t=s=>this.#g(s);return e.addEventListener("arcgisPropertyChange",t),o(()=>{this.traceResult=e.traceResult,this.utilityNetwork=e.utilityNetwork,this.view=e.view}),()=>{e.removeEventListener("arcgisPropertyChange",t)}}),this.traceResult&&this.#d()}willUpdate(e){e.has("traceResult")&&this.#d(),e.has("disableHighlight")&&this.#u();let t=this.hasContent;t!==this.#o&&this.el.isConnected&&this.arcgisPropertyChange.emit({name:"hasContent"}),this.#o=t;let s=this.isFeaturesListShown;s!==this.#n&&this.arcgisPropertyChange.emit({name:"isFeaturesListShown"}),this.#n=s}loaded(){this.traceResult&&(this.traceResult.elements||u("error",this,g("traceResult.elements")),this.utilityNetwork||u("error",this,g("utilityNetwork")))}#g(e){if(e.target!==this.#c)return;let{target:t}=e;switch(e.detail.name){case"traceResult":o(()=>this.traceResult=t.traceResult);break;case"utilityNetwork":o(()=>this.utilityNetwork=t.utilityNetwork);break;case"view":o(()=>this.view=t.view);break}}#y(){this.#t.forEach(({handle:e})=>e?.remove()),this.#t=[]}#u(){this.#t.forEach(e=>{this.disableHighlight?(e.handle?.remove(),e.handle=void 0):e.handle=e.layerView.highlight(e.objectIds)})}#f(e){e&&(this._featuresComponentElement=e)}#p(e){return Array.from(new Map(e.map(t=>[t.globalId,t])).values())}#w(e){if(e==null||!this.#e.length)return;let t=this.#r.get(e);if(t)return t;let s=this.#e.find(a=>"layerId"in a&&a.layerId===e);return s&&this.#r.set(e,s),s}#R(){let{traceResult:e,utilityNetwork:t,view:s}=this;if(!t||!e?.elements?.length||!s)return;let a=i=>(S(i.layer)||w(i.layer))&&t.isUtilityLayer(i.layer),h=t.getObjectIdsFromElements(e.elements),r=s.allLayerViews.filter(a);h.forEach(({layerUrl:i,objectIds:n})=>{let l=Number(i.split("/").pop()),d=r.find(({layer:D})=>D.layerId===l);d&&this.#t.push({layerView:d,objectIds:n})}),this.#u()}async#b(e){let{layers:t,utilityNetwork:s,view:a}=this;if(!a||!s)return;try{s.loaded||await s.load({signal:e})}catch(r){if(p(r))throw r;f(r,this,"Error while loading the selected utility network")}c(e),this.#e=t.length?t.filter(r=>s.isUtilityLayer(r)):A(a,s);let h=this.#e.filter(r=>!r.loaded).map(r=>r.load({signal:e}));if(h.length>0){let r=await Promise.allSettled(h);c(e),r.forEach(i=>{i.status==="rejected"&&u("error",this,`Failed to load layer. Reason: ${i.reason}`)})}}async#d(){this.clearResult(),this._isFeaturesSelected=this.#m;let e=()=>{o(()=>this.state="ready"),this.arcgisResultReady.emit()},t=$(async s=>{let a=this.traceResult?.elements;if(!a?.length){e();return}o(()=>this.state="loading"),this.#E(a),await this.#b(s),await this.#F(s),c(s),this.#R(),e()});this.#s=t;try{await t.promise}catch(s){p(s)||(f(s,this,"Error while loading trace result"),this.#s===t&&e())}finally{this.#s===t&&(this.#s=void 0,o(()=>this.state="ready"))}}async#v([e,t],s){c(s);let a=this.utilityNetwork?.getLayerIdBySourceId(e),h=this.#w(a);if(a==null||!h)return;let r=this.#p(t),i=h.createQuery();i.gdbVersion=this.utilityNetwork?.gdbVersion,i.objectIds=r.map(l=>l.objectId),i.outFields=["*"];let{features:n}=await P(h,i,{signal:s});c(s),n.forEach(l=>{let d=l.layer;l.getEffectivePopupTemplate(this.#h)||(l.popupTemplate=d.createPopupTemplate())}),w(h)?n.forEach(l=>{L(this.#l,l.layer.subtypeCode,()=>[]).push(l)}):this.#i.set(a,n)}async#F(e){let t=Array.from(this.#a.entries());if(!t.length)return;let s=t.map(i=>this.#v(i,e)),a=await Promise.allSettled(s);c(e),a.forEach((i,n)=>{if(i.status==="rejected"){let[l]=t[n];u("error",this,`Failed to query features for source ${l}. Reason: ${i.reason}`)}});let h=Array.from(this.#i.values()),r=Array.from(this.#l.values());o(()=>this.features=h.concat(r).flat())}#E(e){this.#a=Map.groupBy(e,({networkSourceId:t})=>t)}#C(e){let{detail:t}=e;(t.name==="selectedDrillInFeature"||t.name==="selectedFeature")&&(e.stopPropagation(),this.arcgisPropertyChange.emit({name:"selectedResultFeature"}))}#k(e){e.stopPropagation(),this.arcgisTriggerAction.emit(e.detail)}#$(){return m`<div class="features-hidden">${this._messages.resultFeaturesAreHidden}</div>`}#A(){let{heading:e,_messages:t}=this;return m`<calcite-list .label=${t.headings.features}><calcite-list-item class="elements-list-item" .label=${e||t.headings.features} @calciteListItemSelect=${()=>this._isFeaturesSelected=!0}><calcite-chip .label=${t.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon flip-rtl icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}render(){return this.hasContent?this.hideFeatureResults?this.#$():this.isFeaturesListShown?m`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#h} .features=${this.features} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} initial-display-mode=list .messageOverrides=${this.messageOverrides} open .referenceElement=${this.referenceElement} .view=${this.view} @arcgisClose=${()=>this._isFeaturesSelected=!1} @arcgisPropertyChange=${this.#C} @arcgisTriggerAction=${this.#k} ${F(this.#f)}></arcgis-features-next>`:this.#A():null}};C("arcgis-utility-network-trace-elements-result-item",b);return b},"applications/Components/featureUtils",a,b)
|
package/dist/cdn/LHYI2QBZ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as r,c as f,d as k,e as R,f as D,h as p,i as x,j as S}from"./J4CHCFLS.js";import{a as m,b as n}from"./XHOI3WNI.js";import{b as C}from"./Y6WTYXVP.js";import e from"./BOPNSNUT.js";import"./WJQUE4DR.js";import{a as A}from"./REB4CHAK.js";import{h as I}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{Q as d,R as G,T as E,_ as F,a as b,b as a,o as h,p as w,r as _,x as c}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([y,{a:g}])=>{var z=b`:host{height:100%}slot:not([hidden]),.default-result-items:not([hidden]){display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{height:var(--arcgis-internal-trace-results-height, auto);margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,v={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},$=class extends G{constructor(){super(...arguments),this._messages=A({blocking:!0}),this.#s=new Set,this.#e=new Set,this.#i=new Map,this.#r=[],this.#a=new Map,this.#o=new Set,this.#g=t=>{let{detail:e,target:s}=t;if(e.name==="isFeaturesListShown"){let i=s[e.name];!this.#t&&i?(this.#t=s,this.#f(r(this.el))):s===this.#t&&!i&&(this.#t=void 0,this.#c()),this.requestUpdate()}else e.name==="hasContent"&&this.requestUpdate()},this._slottedDefaultResultItems=[],this.aggregatedGeometryResultsGraphicsColor=new y(m),this.aggregatedGeometryResultsSize=12,this.autoDestroyDisabled=!1,this.disableHighlightFeatureResults=!1,this.expandable=!1,this.expanded=!1,this.hideActionBar=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=I()("aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","hideGraphics","state","traceError","traceResult","utilityNetwork","view"),this.arcgisResultsReady=c(),this.arcgisTraceResultClear=c(),this.arcgisTriggerAction=c()}static{this.properties={_defaultAggregatedGeometryResultsItem:16,_defaultElementsResultItem:16,_defaultFunctionsResultItem:16,_slottedDefaultResultItems:16,actions:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>y.fromString(t)??new y(m)}}],aggregatedGeometryResultsSize:9,autoDestroyDisabled:5,disableHighlightFeatureResults:5,expandable:5,expanded:5,heading:1,hideActionBar:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,layers:0,messageOverrides:0,numFeatureResults:32,referenceElement:1,state:32,traceError:0,traceResult:0,traceResultFeatures:32,utilityNetwork:0,view:0}}static{this.styles=z}#t;#s;#e;#i;#r;#a;#o;#g;get#m(){let t=this.#l?this._slottedDefaultResultItems:[this._defaultAggregatedGeometryResultsItem,this._defaultElementsResultItem,this._defaultFunctionsResultItem].filter(e=>e!==void 0);return this.#h||t.some(e=>e.hasContent)}get#h(){return r(this.el).filter(t=>!f(t)).length>0}get#l(){return r(this.el).length>0}get#_(){return this.traceResult?this.#l?r(this.el).filter(p):this.#A(this.traceResult):[]}get#G(){return!!this.traceResult&&!this.traceError&&(this.#n||this.#l)}get#R(){if(!this.traceResult||!this.#n)return!1;if(this.#h)return!0;let{aggregatedGeometry:t,elements:e,globalFunctionResults:s}=this.traceResult;return this._slottedDefaultResultItems.some(i=>t!=null&&k(i)||e.length>0&&R(i)||s.length>0&&D(i))}get#n(){if(!this.traceResult)return!1;let{elements:t,globalFunctionResults:e,aggregatedGeometry:s}=this.traceResult;return!!(t.length||e.length||s)}get numFeatureResults(){return this._defaultElementsResultItem?this._defaultElementsResultItem.numResults:this.#r[0]?.numResults??0}get traceResultFeatures(){return this._defaultElementsResultItem?this._defaultElementsResultItem.features:this.#r[0]?.features??[]}clearResults(){this.#p(),this.arcgisTraceResultClear.emit()}async destroy(){let t=r(this.el).filter(S),e=await Promise.allSettled([...t.map(async s=>await s.destroy()),this._defaultAggregatedGeometryResultsItem?.destroy(),this._defaultElementsResultItem?.destroy(),this._defaultFunctionsResultItem?.destroy()]);for(let s of e)s.status==="rejected"&&g(s.reason,this,"Error while destroying trace result item");await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{let t=r(this.el);return this.#b(t),this.#$(t),()=>{for(let e of this.#i.keys())this.#v(e);for(let e of this.#a.keys())this.#y(e);this.#c()}})}willUpdate(t){t.has("traceResult")&&(this.#p(),this.#G?this.#z():this.traceResult&&!this.traceError&&!this.#n&&this.#d())}loaded(){this.traceResult&&(this.view||w("warn",this,_("view")))}#c(){for(let t of this.#s)t.removeAttribute("hidden");this.#s.clear()}#p(){let t=r(this.el).filter(x);for(let e of t)try{e.clearResult()}catch(s){g(s,this,"Error while clearing trace result item")}this._defaultAggregatedGeometryResultsItem?.clearResult(),this._defaultElementsResultItem?.clearResult(),this._defaultFunctionsResultItem?.clearResult(),this.#e.clear(),h(()=>this.state="ready")}#E(t){this._defaultAggregatedGeometryResultsItem=t}#F(t){this.#t&&this.#t===this._defaultElementsResultItem&&t!==this._defaultElementsResultItem&&(this.#t=void 0,this.#c()),this._defaultElementsResultItem=t,!this.#t&&t?.isFeaturesListShown&&(this.#t=t,this.#f(r(this.el)))}#I(t){this._defaultFunctionsResultItem=t}#d(){h(()=>this.state="ready"),this.arcgisResultsReady.emit()}#A(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t,[u,l,P]=n,o=[];return i!=null&&o.push(u),e!=null&&o.push(l),s.length>0&&o.push(P),o}#C(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#k(t){let{detail:e,target:s}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=s[e.name]):e.name==="graphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=s[e.name]):e.name==="selectionSize"&&(t.stopPropagation(),this.aggregatedGeometryResultsSize=s[e.name])}#D(){this.#u(n[0])}#x(){this.#u(n[1])}#S(){this.#u(n[2])}#P(t){let e=C(t);this.#b(e),this.#$(e)}#f(t){t.forEach(e=>{e!==this.#t&&!e.hasAttribute("hidden")?(e.setAttribute("hidden",""),this.#s.add(e)):e===this.#t&&this.#s.has(e)&&(e.removeAttribute("hidden"),this.#s.delete(e))})}#z(){this.#e=new Set(this.#_),this.#e.size===0?this.#d():h(()=>this.state="loading")}#L(t){if(this.#a.has(t))return;let e=s=>this.#g(s);this.#a.set(t,e),t.addEventListener("arcgisPropertyChange",e)}#O(t){if(this.#i.has(t))return;let e=({target:s})=>this.#u(s);this.#i.set(t,e),t.addEventListener("arcgisResultReady",e)}#y(t){let e=this.#a.get(t);e&&(t.removeEventListener("arcgisPropertyChange",e),this.#a.delete(t))}#v(t){let e=this.#i.get(t);e&&(t.removeEventListener("arcgisResultReady",e),this.#i.delete(t))}#$(t){for(let i of this.#s)t.includes(i)||(i.removeAttribute("hidden"),this.#s.delete(i));let e=t.filter(R);for(let i of this.#r)e.includes(i)||this.#y(i);for(let i of e)this.#L(i);let s=this.#t;s&&(!s.isFeaturesListShown||s!==this._defaultElementsResultItem&&!e.includes(s))&&(this.#t=void 0,this.#c()),this.#t??=e.find(i=>i.isFeaturesListShown),this.#t&&this.#f(t),this.#r=e,this.requestUpdate()}#b(t){let e=new Set(t.filter(p));for(let s of this.#o)e.has(s)||(this.#v(s),this.#e.delete(s));for(let s of e)this.#O(s),this.state==="loading"&&!this.#o.has(s)&&this.#e.add(s);this.#o=e,this._slottedDefaultResultItems=t.filter(f),this.state==="loading"&&this.#e.size===0&&this.#d()}#u(t){this.#e.delete(t),this.state==="loading"&&this.#e.size===0&&this.#d()}render(){let{traceError:t,traceResult:e}=this,s=!t&&e&&this.#n&&!this.#l?this.#T(e):void 0,i=!!e&&!t&&this.#m&&(this.#h||this.#R),u=a`<slot .hidden=${!i} @slotchange=${this.#P}></slot>`,l;return t?l=this.#N(t):e?!this.#n&&!this.#h?l=this.#w():this.state==="ready"&&!this.#m&&(l=this.#l&&this._slottedDefaultResultItems.length&&!this.#R?this.#H():this.#w()):l=this.#B(),a`<calcite-block class=${E({"results-block":!0,"features-list-active":!!this.#t})} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state==="loading"}>${u}${s}${l}</calcite-block>`}#T(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t;return a`<div class="default-result-items" .hidden=${!this.#m}>${i!=null?a`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#k} @arcgisResultReady=${this.#D} ${d(this.#E)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!e.length&&!this.#t?this.#M():null}`:null}${e!=null?a`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!e.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#g} @arcgisResultReady=${this.#x} @arcgisTriggerAction=${this.#C} ${d(this.#F)}></arcgis-utility-network-trace-elements-result-item>`:null}${s.length>0?a`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#S} ${d(this.#I)}></arcgis-utility-network-trace-functions-result-item>`:null}</div>`}#H(){return a`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`}#M(){return a`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#N(t){let{_messages:e}=this,s=t.message;switch(t.details?.raw?.extendedCode){case v.dirtyAreasDiscovered:s=e.traceErrors.dirtyAreasDiscovered;break;case v.noValidControllers:s=e.traceErrors.noValidControllers;break;case v.pathNotFound:s=e.traceErrors.pathNotFound;break}return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.traceFailedHeading}</div><div class="no-results-description">${e.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`}#w(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.noResultsHeading}</div><div class="no-results-description">${t.noResultsDescription}</div></div>`}#B(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${t.noTraceConfigHeading}</div><div class="no-results-description">${t.noTraceConfigDescription}</div></div>`}};F("arcgis-utility-network-trace-results",$);return $},"Color",e)
|
package/dist/cdn/PPGKQRNY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as p,b as A,c as D,d as B,e as m,f as T,g as V,h as k}from"./BHCAFGIA.js";import{a as S}from"./SOZWCZ7A.js";import{a as u}from"./5GFPOTOB.js";import i from"./EJVFK7JX.js";import{a as R}from"./REB4CHAK.js";import{a as v}from"./L5IRXOCJ.js";import e from"./7JPHMESH.js";import d from"./OLY5EME5.js";import{h as C}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{f as x}from"./LXME6MU5.js";import{Q as f,R as w,T as y,U as M,X as h,_ as $,a as g,b as c,x as b}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:L},{EventedAccessor:O},{property:r,subclass:I},{i:E},,,P])=>{var N=Object.defineProperty,U=Object.getOwnPropertyDescriptor,a=(n,t,e,i)=>{for(var o=i>1?void 0:i?U(t,e):t,d=n.length-1,l;d>=0;d--)(l=n[d])&&(o=(i?l(t,e,o):l(o))||o);return i&&o&&N(t,e,o),o},s=class extends O{constructor(n){super(n),this._anyAngleMovementEnabled=!1,this._disabled=!1,this._moveOnceDuration=A,this.speed=1,this.beginFollowingPointer=(t,e)=>{if(this.disabled)return;this._widgetCenter=e;let i=this._pointerLocationToVector(t);if(i===void 0)return;let o=this._resolveClosestAngle(t,i);o!==void 0&&(this._emitMove(m(o)),this.angle=o,this._initialAngle=o,this._setMovementTimeout(()=>{this._widgetCenter===void 0&&this._stopMovement()}),document.addEventListener("pointermove",this._onPointerMove,{passive:!0}),document.addEventListener("pointerup",this._onPointerUp,{passive:!0,once:!0}))},this.moveOnce=t=>{this._emitMove(m(t)),this._setMovementTimeout(this._stopMovement)},this._pointerLocationToVector=t=>{if(this._widgetCenter===void 0)return;let{x:e,y:i}=T(this._widgetCenter,t);return{x:e,y:-i}},this._resolveClosestAngle=(t,e)=>{let i=t.target;if(i?.classList?.contains("compass"))return;let o=Number.parseInt(i?.getAttribute?.("data-angle")??"",10);return Number.isNaN(o)?B(e):o},this._onPointerMove=t=>{if(t.buttons===0){this._stopMovement();return}let e=this._pointerLocationToVector(t);if(e===void 0)return;this._setMovementTimeout(void 0);let i=this._resolveClosestAngle(t,e);if(i===void 0){this._emitStop();return}let o=m(i),d=this._initialAngle!=null&&this._initialAngle!==i;this._anyAngleMovementEnabled||=d;let l=this._anyAngleMovementEnabled?e:o;(l.x!==this._movementVector?.x||l.y!==this._movementVector?.y)&&(this.angle=i,this._emitMove(l))},this._onPointerUp=()=>{this._movementTimeout===void 0?this._stopMovement():this._widgetCenter=void 0},this._stopMovement=()=>{this._emitStop(),this._widgetCenter=void 0,this._initialAngle=void 0,this._anyAngleMovementEnabled=!1,document.removeEventListener("pointermove",this._onPointerMove),document.removeEventListener("pointerup",this._onPointerUp),this._setMovementTimeout(void 0)},this.on("move-start",()=>this._navigation?.begin()),this.on("move-direction-change",({vector:{x:t,y:e}})=>this._navigation?.continuousPanVector({x:t*this.speed,y:e*this.speed})),this.on("move-stop",()=>this._navigation?.stop())}destroy(){this._stopMovement()}get _navigation(){return this.view?.mapViewNavigation}get disabled(){return this.view?.ready===!1||this._disabled||!this.supported}set disabled(n){this._disabled=n}get rotation(){return this.view?.rotation??this._get("rotation")??0}set rotation(n){this.view?this.view.constraints.rotationEnabled&&S({target:{rotation:n},options:{animate:n===0?void 0:!1}},this.view):this._set("rotation",n)}get supported(){return this.view==null||this.view.type==="2d"}get state(){return this.disabled?"disabled":this.angle!=null?"moving":"ready"}_setMovementTimeout(n){if(clearTimeout(this._movementTimeout),n===void 0){this._movementTimeout=void 0;return}this._movementTimeout=setTimeout(()=>{this._movementTimeout=void 0,n()},this._moveOnceDuration)}_emitMove(n){this._movementVector==null&&this.emit("move-start",{type:"move-start",vector:n});let t=this._movementVector;this._movementVector=n,this.emit("move-direction-change",{type:"move-direction-change",vector:n,oldVector:t})}_emitStop(){this.angle=void 0,this._movementVector!==void 0&&(this.emit("move-stop",{type:"move-stop",oldVector:this._movementVector}),this._movementVector=void 0)}};a([r()],s.prototype,"_initialAngle",2);a([r()],s.prototype,"_movementVector",2);a([r()],s.prototype,"_widgetCenter",2);a([r()],s.prototype,"_anyAngleMovementEnabled",2);a([r()],s.prototype,"_movementTimeout",2);a([r()],s.prototype,"_disabled",2);a([r()],s.prototype,"_moveOnceDuration",2);a([r()],s.prototype,"disabled",1);a([r()],s.prototype,"angle",2);a([r()],s.prototype,"speed",2);a([r()],s.prototype,"rotation",1);a([r()],s.prototype,"supported",1);a([r({readOnly:!0})],s.prototype,"state",1);a([r()],s.prototype,"view",2);s=a([I("components.directional-pad.DirectionalPadViewModel")],s);var F=g`:host{outline:none;box-shadow:none!important;background-color:transparent!important;user-select:none;calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.root{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media(hover:none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.rotation-container{display:block;width:100%;calcite-action{flex:.3}}.rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`,j=P(s),_=class extends w{constructor(){super(...arguments),this.messages=R({}),this._onContextMenu=t=>t.preventDefault(),this._buttons={},this.viewModel=j(this),this.angle=this.viewModel.angle,this.rotation=this.viewModel.rotation,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.disabled=this.viewModel.disabled,this.hideDirectionalButtons=!1,this.icon="move",this.showRotationResetButton=!1,this.showRotationSlider=!1,this.state=this.viewModel.state,this.visualScale="s",this.arcgisPropertyChange=C()("state"),this.arcgisReady=b()}static{this.properties={_rotationEnabled:16,angle:16,rotation:16,view:0,autoDestroyDisabled:5,disabled:5,hideDirectionalButtons:5,icon:1,label:1,messageOverrides:0,referenceElement:1,showRotationResetButton:5,showRotationSlider:5,state:32,visualScale:1}}static{this.styles=F}get _rotationEnabled(){return this.view?.ready?this.view.constraints.rotationEnabled??!1:!0}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[L(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?E(this)?.focus():x(this._buttons[this.viewModel.angle]))})])}_rotateIcon(t){return{"--rotation":`rotate(${t}deg)`}}_setButtonContainerRef(t){t!==void 0?(this._buttonsContainer=t,queueMicrotask(()=>{this._buttons=Object.fromEntries(Array.from(t.children,e=>[Number.parseInt(e.getAttribute("data-angle")??""),e]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(i=>i.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let e=V(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,e)}_onSliderInput({currentTarget:t}){typeof t.value=="number"&&(this.viewModel.rotation=t.value)}_onRotationReset(){this.viewModel.rotation=0}_onClick(t){this.viewModel.moveOnce(t)}render(){let{label:t,disabled:e}=this,i=this.view==null||this.view.type==="2d";return c`<div .ariaLabel=${t??void 0} class=${y({root:!0,[v.widget]:!0,[v.disabled]:e})} tabindex=-1>${i?this._renderContent():this._renderUnsupportedMessage()}</div>`}_renderUnsupportedMessage(){return c`<section class="error"><p>${this.messages.unsupported}</p></section>`}_renderContent(){return[this.hideDirectionalButtons?void 0:this._renderDirectionalButtons(),this.showRotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return u("directional-buttons-container",c`<calcite-action-bar expand-toggle-disabled floating layout=grid .scale=${this.visualScale} overflow-mode=none><calcite-action-group class="buttons-container" dir=ltr @contextmenu=${{handleEvent:this._onContextMenu,capture:!0}} ${f(this._setButtonContainerRef)}>${p.slice(0,4).map(this._renderButton,this)}${this._renderCompass()}${p.slice(4).map(this._renderButton,this)}</calcite-action-group></calcite-action-bar>`)}_renderButton(t){let{label:e,iconName:i}=D[t],o=this.messages[e];return c`<calcite-action .active=${this.angle===t} alignment=center class="button" data-angle=${t??h} .disabled=${this.disabled} @click=${this._onClick.bind(this,t)} @pointerdown=${this._onButtonPointerDown} .text=${o??""} title=${o??h}><calcite-icon .icon=${i} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||k(this.view)?"compass-needle":"arrow-up",e=this.rotation===0,i=this.messages.resetHeading;return c`<calcite-action alignment=center class="compass" .disabled=${this.disabled||!this._rotationEnabled||e} @click=${this._onRotationReset} style=${M(this._rotateIcon(this.rotation))} .text=${i??""} title=${i??h}>${!e&&c`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return u("slider-container",c`<calcite-action-bar expand-toggle-disabled floating layout=horizontal .scale=${this.visualScale}><calcite-action-group class="rotation-container">${this.showRotationResetButton?this._renderRotationResetButton():null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-bar>`)}_renderRotationResetButton(){let t=this.messages.resetHeading;return c`<calcite-action alignment=center class="rotation-reset-button" .disabled=${this.disabled||!this._rotationEnabled} @click=${this._onRotationReset} .text=${t??""} title=${t??h}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderRotationSlider(){return c`<div class="rotation-slider-container"><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled||!this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`}};$("arcgis-directional-pad",_);return _},"core/reactiveUtils","core/Evented","core/accessorSupport/decorators",a,d,e,i)
|
package/dist/cdn/PW3QCZXY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as p}from"./5GFPOTOB.js";import h from"./EJVFK7JX.js";import{a as b}from"./REB4CHAK.js";import g from"./7ILT5PDJ.js";import e from"./7JPHMESH.js";import c from"./OLY5EME5.js";import{h as m}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import"./LXME6MU5.js";import{R as v,X as l,_ as y,a as f,b as s,x as d}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:u,formatNumber:M},S,,,,n,T])=>{var C=f`:host{width:100%;display:flex;>*{align-items:center;align-self:center;height:100%;width:100%}}.root{display:flex;flex-direction:column}calcite-action-bar[layout=horizontal]{width:100%;calcite-chip{margin-inline-start:auto}}calcite-action-bar[layout=vertical]{height:100%;calcite-chip{margin-block-start:auto}}calcite-action-bar slot{align-items:center}calcite-dropdown:has(calcite-action:not([text-enabled])){align-self:center}calcite-action:not([text-enabled]){align-self:center}calcite-chip{display:flex;align-self:center;line-height:initial}calcite-dropdown{calcite-icon{margin-inline-start:var(--calcite-space-2xs)}}calcite-chip[closed]{display:inline-flex}calcite-progress{--calcite-progress-background-color: transparent}`,w={replace:"overwrite-features",add:"cursor-plus",remove:"cursor-minus"},$=T(S),g=class extends v{constructor(){super(...arguments),this.viewModel=$(this),this.messages=b(),this.autoDestroyDisabled=!1,this.disabled=!1,this.icon="selection-set",this.view=this.viewModel.view,this.activeOperation=this.viewModel.activeOperation,this.availableOperationTypes=["replace","add","remove"],this.continuousSelectionEnabled=this.viewModel.continuousSelectionEnabled,this.defaultLassoToolOptions=this.viewModel.defaultLassoToolOptions,this.defaultOperationType=this.viewModel.defaultOperationType,this.defaultPolygonToolOptions=this.viewModel.defaultPolygonToolOptions,this.defaultPointToolOptions=this.viewModel.defaultPointToolOptions,this.defaultRectangleToolOptions=this.viewModel.defaultRectangleToolOptions,this.effectiveSelectionManager=this.viewModel.effectiveSelectionManager,this.effectiveSources=this.viewModel.effectiveSources,this.hideChip=!1,this.hideChipCloseButton=!1,this.hideLassoTool=!1,this.hideOperationTypeControls=!1,this.hidePanTool=!1,this.hidePolygonTool=!1,this.hidePointTool=!1,this.hideProgress=!1,this.hideRectangleTool=!1,this.layout="horizontal",this.returnFeatureTitleFields=this.viewModel.returnFeatureTitleFields,this.selectionManager=this.viewModel.selectionManager,this.showTextLabels=!1,this.sources=this.viewModel.sources,this.toolConfigs=this.viewModel.toolConfigs,this.visualScale="m",this.arcgisBeforeActivate=n(()=>this.viewModel,"before-activate"),this.arcgisClear=d(),this.arcgisComplete=n(()=>this.viewModel,"complete"),this.arcgisPropertyChange=m()("activeOperation","state"),this.arcgisReady=d(),this.arcgisSelectionChange=n(()=>this.viewModel,"selection-change")}static{this.properties={_effectiveDisabled:16,_effectiveOperationType:16,_processing:16,autoDestroyDisabled:5,disabled:7,icon:1,label:1,referenceElement:1,view:0,activeOperation:32,availableOperationTypes:0,continuousSelectionEnabled:5,defaultLassoToolOptions:0,defaultOperationType:1,defaultPolygonToolOptions:0,defaultPointToolOptions:0,defaultRectangleToolOptions:0,effectiveSelectionManager:32,effectiveSources:32,hideChip:5,hideChipCloseButton:5,hideLassoTool:5,hideOperationTypeControls:5,hidePanTool:5,hidePolygonTool:5,hidePointTool:5,hideProgress:5,hideRectangleTool:5,layerPreferenceEnabled:5,layout:1,returnFeatureTitleFields:5,returnGeometryDisabled:5,selectionManager:0,showTextLabels:5,sources:0,state:32,syncResultsDisabled:5,syncWhileDrawing:5,toolConfigs:0,visualScale:1}}static{this.styles=C}get _effectiveDisabled(){return this.disabled||this.state==="disabled"}get _effectiveOperationType(){return this.activeOperation?.effectiveType||this.defaultOperationType}get _processing(){return!!this.activeOperation?.processingFinalSelection}get layerPreferenceEnabled(){return!this.viewModel.layerViewPreferenceEnabled}set layerPreferenceEnabled(e){this.viewModel.layerViewPreferenceEnabled=!e}get returnGeometryDisabled(){return!this.viewModel.returnGeometry}set returnGeometryDisabled(e){this.viewModel.returnGeometry=!e}get state(){return this.viewModel.state}get syncResultsDisabled(){return!this.viewModel.persistSelection}set syncResultsDisabled(e){this.viewModel.persistSelection=!e}get syncWhileDrawing(){return!this.viewModel.selectOnComplete}set syncWhileDrawing(e){this.viewModel.selectOnComplete=!e}async activate(e){if(this.cancel(),!this._effectiveDisabled)return this.viewModel.activate(e)}async activateTool(e){if(!this._effectiveDisabled)return this.viewModel.activateTool(e)}async cancel(){this.viewModel.cancel()}async destroy(){this.viewModel?.destroy()}async syncSources(){return this.effectiveSelectionManager?.syncSources()}async toggleTool(e){if(!this._effectiveDisabled)return this.viewModel.toggleTool(e)}_handleClearSelection(){this.effectiveSelectionManager?.clear(),this.arcgisClear.emit()}_getLabelForSelectionOperationType(e){let{messages:t}=this;switch(e){case"replace":return t?.replaceSelection;case"add":return t?.addToSelection;case"remove":return t?.removeFromSelection}}_getTextForSelectionOperationType(e){let{messages:t}=this;switch(e){case"replace":return t?.replace;case"add":return t?.add;case"remove":return t?.remove}}_getTextForChip(e){let{layout:t,messages:i,visualScale:o}=this,a=o==="l"?999:99;return i.countTruncated&&e>a&&t==="vertical"?u(i.countTruncated,{count:a}):M(e)}_getTooltipForChip(e){let{messages:t}=this;return!t?.selectionCount||!t?.clearSelectionCount?"":this.hideChipCloseButton||e===0?u(t.selectionCount,{count:e}):u(t.clearSelectionCount,{count:e})}#i(){if(this.hideProgress)return;let e=this.messages.processing;return s`<calcite-progress aria-label=${e??l} .label=${e} .type=${this._processing?"indeterminate":"determinate"}></calcite-progress>`}#o(){return p("tools-group",s`<calcite-action-group>${this.#s()}${this.#a()}</calcite-action-group>`)}#s(){return[this.#l(),this.#c(),this.#r(),this.#d(),this.#h()]}#a(){return this.toolConfigs.map(({toolName:e,icon:t})=>this.#e(e,t))}#l(){if(this.hidePanTool)return;let e=this.messages.pan??"";return this.#t({active:!this.activeOperation,disabled:this._effectiveDisabled,icon:"pan",onclick:()=>{this.cancel()},text:e,title:e})}#n(){if(this.hideChip)return;let{effectiveSelectionManager:e}=this,t=e?.count??0,i=this._getTextForChip(t),o=!this.hideChipCloseButton&&t>0;return s`<calcite-chip appearance=outline .closable=${o} .disabled=${this._effectiveDisabled||t===0} .label=${i} .scale=${this.visualScale} title=${this._getTooltipForChip(t)??l} @calciteChipClose=${this._handleClearSelection}>${i}</calcite-chip>`}#c(){if(this.hidePointTool)return;let{messages:e}=this;return this.#e("point","selection-set",e.point,e.selectByPoint)}#r(){if(this.hidePolygonTool)return;let{messages:e}=this;return this.#e("polygon","polygon-select",e.polygon,e.selectByPolygon)}#h(){if(this.hideLassoTool)return;let{messages:e}=this;return this.#e("lasso","lasso-select",e.lasso,e.selectByLasso)}#d(){if(this.hideRectangleTool)return;let{messages:e}=this;return this.#e("rectangle","cursor-marquee",e.rectangle,e.selectByRectangle)}#p(){let{availableOperationTypes:e}=this;if(this.hideOperationTypeControls||!e.length)return;let{_effectiveOperationType:t,showTextLabels:i,visualScale:o}=this,a=w[t],c=this._getTextForSelectionOperationType(t),r=this._getLabelForSelectionOperationType(t);return p("toggle-group",s`<calcite-action-group><calcite-dropdown overlay-positioning=fixed placement=bottom-start .scale=${o}><calcite-action class=tool-button .disabled=${this._effectiveDisabled} .icon=${a} .scale=${o} slot=trigger .text=${c??""} .textEnabled=${i} title=${r??l}><calcite-icon icon=chevron-down scale=s></calcite-icon></calcite-action><calcite-dropdown-group>${e.map(h=>this.#u(h))}</calcite-dropdown-group></calcite-dropdown></calcite-action-group>`)}#u(e){return s`<calcite-dropdown-item .iconStart=${w[e]} .selected=${this.defaultOperationType===e} @calciteDropdownItemSelect=${()=>this.defaultOperationType=e}>${this._getLabelForSelectionOperationType(e)}</calcite-dropdown-item>`}#e(e,t="selection",i=e,o=i){return this.#t({active:this.activeOperation?.toolName===e,disabled:this._effectiveDisabled,icon:t,onclick:()=>{this.toggleTool(e)},text:i,title:o})}#t(e){let{active:t,disabled:i,icon:o,onclick:a,text:c,title:r}=e,{showTextLabels:h,visualScale:O}=this;return s`<calcite-action .active=${t} class=tool-button .disabled=${i} .icon=${o} @click=${a} .text=${c} .textEnabled=${h} title=${r??l} .scale=${O}></calcite-action>`}render(){return s`<div><calcite-action-bar expand-toggle-disabled .layout=${this.layout} overflow-mode=none .scale=${this.visualScale}>${this.#p()}${this.#o()}${this.#n()}</calcite-action-bar>${this.#i()}</div>`}};y("arcgis-selection-toolbar",g);return g},"intl","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,c,e,g,h)
|
|
File without changes
|