@arcgis/map-components 5.2.0-next.166 → 5.2.0-next.168
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/263OOI6Z.js +2 -0
- package/dist/cdn/6S5TVS52.js +2 -0
- package/dist/cdn/{OEL57WQN.js → CGKFSTIT.js} +1 -1
- package/dist/cdn/GBTMUEG6.js +2 -0
- package/dist/cdn/K3SCI35Q.js +2 -0
- package/dist/cdn/OIKOOFSR.js +2 -0
- package/dist/cdn/PJ2XGEYO.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +53 -58
- package/dist/components/arcgis-presentation-captions/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +24 -0
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +11 -14
- 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/package.json +6 -6
- package/dist/cdn/73NABILZ.js +0 -2
- package/dist/cdn/BJ55UYFS.js +0 -2
- package/dist/cdn/BPTZ6LBO.js +0 -2
- package/dist/cdn/F3JX74XA.js +0 -2
- package/dist/cdn/FGQJD346.js +0 -2
- package/dist/cdn/OBFJ4JUW.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/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"./Y4WOZJQX.js";import{a as m,b as n}from"./D47546HM.js";import e from"./2H2YCUTD.js";import"./VJVKFKSG.js";import{a as C}from"./EMF6EVCU.js";import{h as A}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import"./QUZTFUWM.js";import{b as I}from"./NZROZFUD.js";import{O as d,P as E,R as G,X as F,a as b,b as a,n as h,p as w,r as _,x as c}from"./JG5OBAGE.js";import"./H6RQVSYM.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 E{constructor(){super(...arguments),this._messages=C({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=A()("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#E(){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.traceResult=void 0,this.traceError=void 0,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.#E?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")}#G(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=I(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=${G({"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.#G)}></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)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{g as p}from"./Y4WOZJQX.js";import{a as g}from"./D47546HM.js";import a from"./TMJX7DFH.js";import{a as $}from"./EMF6EVCU.js";import{h as C}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import"./QUZTFUWM.js";import"./NZROZFUD.js";import{B as w,N as v,O as f,P as G,U as R,X as b,a as y,b as l,n as i,p as o,r as h,x as u}from"./JG5OBAGE.js";import"./H6RQVSYM.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(){i(()=>this.traceResult=void 0),this.#h()}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.#c(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.#m(e.get("graphicsLayer")),e.has("hideGraphics")&&this.#p(),(e.has("graphicsColor")||e.has("selectionSize"))&&this.#d()}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)}#c(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}}#l(e){let{line:t,multipoint:s,polygon:r}=e;i(()=>{this.geometryGraphics=[t,s,r].filter(a=>a!=null).map(a=>this.#g(a))})}#n(e){let t=this.#r,s=e.map?.findLayerById(t);return s&&L(s)?s:new x({id:t,listMode:"hide",title:t})}#g(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})}}#p(){this.hideGraphics?(this.graphicsLayer?.removeMany(this.geometryGraphics),this.#e.value?.open&&(this.#e.value.open=!1)):this.#s()}#m(e){e?.removeMany(this.geometryGraphics),this.hideGraphics||this.#s()}#h(){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")}#i(){if(this.#h(),!this.traceResult)return;let e=()=>{i(()=>this.state="ready"),this.arcgisResultReady.emit()};if(!this.traceResult?.aggregatedGeometry||!this.view?.map){e();return}i(()=>this.state="loading"),this.#l(this.traceResult.aggregatedGeometry),this.graphicsLayer||(this.graphicsLayer=this.#n(this.view),this.#t=this.graphicsLayer,n(this.view,this.graphicsLayer)),this.hideGraphics||this.#s(),e()}#d(){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)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./2H2YCUTD.js";import"./VJVKFKSG.js";import{a as g}from"./EMF6EVCU.js";import{h as m}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import"./QUZTFUWM.js";import"./NZROZFUD.js";import{P as d,X as n,a as c,b as r,p as o,x as h}from"./JG5OBAGE.js";import"./H6RQVSYM.js";export default $arcgis.t(([k,{watch:y},{a:a}])=>{var u=c`:host{height:100%;flex-grow:1}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-label,calcite-notice){margin:0 var(--calcite-space-md) var(--calcite-space-md)}calcite-block :last-child{margin-bottom:0}calcite-notice{margin:var(--calcite-space-md)}`,l=class extends d{constructor(){super(...arguments),this._messages=g({blocking:!0}),this.hideErrors=!1,this.hideLoader=!1,this.state="loading",this.arcgisPropertyChange=m()("selectedUtilityNetwork","state"),this.arcgisError=h()}static{this.properties={_utilityNetworks:16,view:0,messageOverrides:0,hideErrors:5,hideLoader:5,state:1,error:1,selectedUtilityNetwork:0,heading:1}}static{this.styles=u}load(){this.#e(),this.manager.onLifecycle(()=>[y(()=>this.view?.map,()=>this.#e())])}willUpdate(t){t.has("_utilityNetworks")&&this.#r(),t.has("selectedUtilityNetwork")&&this.#o()}#t(t){this.error=t,this.state="error",this.arcgisError.emit()}#i(){this.error=void 0,this.state="ready"}#e(){if(this.error=void 0,this.state="loading",!this.view?.map){o("error",this,this._messages.errors.noView),this._utilityNetworks=void 0,this.#t(this._messages.errors.noView);return}let t=this.view.map;this.#s(t)}async#s(t){try{t.loaded||await t.load()}catch(e){this.#t(this._messages.errors.mapLoadFailed),a(e,this,this._messages.errors.mapLoadFailed)}finally{this._utilityNetworks=t.utilityNetworks||new k}}#r(){let{selectedUtilityNetwork:t,_utilityNetworks:e}=this;e?.length?(!t||!e.includes(t))&&(this.selectedUtilityNetwork=e.at(0),this.arcgisPropertyChange.emit({name:"selectedUtilityNetwork"})):(this.#t(this._messages.errors.noUtilityNetwork),o("error",this,this._messages.errors.noUtilityNetwork),this.selectedUtilityNetwork=void 0)}async#o(){let{selectedUtilityNetwork:t}=this;try{t&&!t.loaded&&await t.load(),this.#i()}catch(e){a(e,this,this._messages.errors.utilityNetworkLoadFailed),this.#t(this._messages.errors.utilityNetworkLoadFailed)}}#a(){return this.hideLoader?null:r`<calcite-loader label=loading></calcite-loader>`}#l(t,e=!1,i){return this.hideErrors?null:r`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`}#c(){let t=this._messages.labels.utilityNetwork,e=this._utilityNetworks?.map(i=>r`<calcite-combobox-item .value=${i.id} .heading=${i.title||i.id} .selected=${i.id===this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);return r`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{let s=i.selectedItems[0]?.value;this.selectedUtilityNetwork?.id!==s&&(this.selectedUtilityNetwork=this._utilityNetworks?.find(w=>w.id===s))}}>${e}</calcite-combobox>`}#h(){let{selectedUtilityNetwork:t}=this;return r`<calcite-label>${t?.title}</calcite-label>`}#d(t){let e=this._messages.labels.utilityNetwork,i=this.heading||e,s=this._utilityNetworks?.length?this._utilityNetworks?.length===1?this.#h():this.#c():void 0;return r`<calcite-block .heading=${i} .label=${e} expanded>${s}${t}</calcite-block>`}render(){let{error:t,state:e,selectedUtilityNetwork:i}=this,s=e==="error"&&t?this.#l(t,!1,"exclamation-mark-triangle"):void 0;return!s&&!i?.loaded&&!i?.loadError?this.#a():e==="error"&&s&&!this._utilityNetworks?.length?s:this.#d(s)}};n("arcgis-utility-network-picker",l);return l},"core/Collection","core/reactiveUtils",a)
|
|
2
|
+
import a from"./2H2YCUTD.js";import"./VJVKFKSG.js";import{a as g}from"./EMF6EVCU.js";import{h as m}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import"./QUZTFUWM.js";import"./NZROZFUD.js";import{P as d,X as n,a as c,b as r,p as o,x as h}from"./JG5OBAGE.js";import"./H6RQVSYM.js";export default $arcgis.t(([k,{watch:y},{a:a}])=>{var u=c`:host{height:100%;flex-grow:1}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-label,calcite-notice){margin:0 var(--calcite-space-md) var(--calcite-space-md)}calcite-block :last-child{margin-bottom:0}calcite-notice{margin:var(--calcite-space-md)}`,l=class extends d{constructor(){super(...arguments),this._messages=g({blocking:!0}),this.hideErrors=!1,this.hideLoader=!1,this.state="loading",this.arcgisPropertyChange=m()("selectedUtilityNetwork","state"),this.arcgisError=h()}static{this.properties={_utilityNetworks:16,view:0,messageOverrides:0,hideErrors:5,hideLoader:5,state:1,error:1,selectedUtilityNetwork:0,heading:1}}static{this.styles=u}load(){this.#e(),this.manager.onLifecycle(()=>[y(()=>this.view?.map,()=>this.#e())])}willUpdate(t){t.has("_utilityNetworks")&&this.#r(),t.has("selectedUtilityNetwork")&&this.#o()}#t(t){this.error=t,this.state="error",this.arcgisError.emit()}#i(){this.error=void 0,this.state="ready"}#e(){if(this.error=void 0,this.state="loading",!this.view?.map){o("error",this,this._messages.errors.noView),this._utilityNetworks=void 0,this.#t(this._messages.errors.noView);return}let t=this.view.map;this.#s(t)}async#s(t){try{t.loaded||await t.load()}catch(e){this.#t(this._messages.errors.mapLoadFailed),a(e,this,this._messages.errors.mapLoadFailed)}finally{this._utilityNetworks=t.utilityNetworks||new k}}#r(){let{selectedUtilityNetwork:t,_utilityNetworks:e}=this;e?.length?(!t||!e.includes(t))&&(this.selectedUtilityNetwork=e.at(0),this.arcgisPropertyChange.emit({name:"selectedUtilityNetwork"})):(this.#t(this._messages.errors.noUtilityNetwork),o("error",this,this._messages.errors.noUtilityNetwork),this.selectedUtilityNetwork=void 0)}async#o(){let{selectedUtilityNetwork:t}=this;try{t&&!t.loaded&&(this.state="loading",await t.load()),this.#i()}catch(e){a(e,this,this._messages.errors.utilityNetworkLoadFailed),this.#t(this._messages.errors.utilityNetworkLoadFailed)}}#a(){return this.hideLoader?null:r`<calcite-loader label=loading></calcite-loader>`}#l(t,e=!1,i){return this.hideErrors?null:r`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`}#c(){let t=this._messages.labels.utilityNetwork,e=this._utilityNetworks?.map(i=>r`<calcite-combobox-item .value=${i.id} .heading=${i.title||i.id} .selected=${i.id===this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);return r`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{let s=i.selectedItems[0]?.value;this.selectedUtilityNetwork?.id!==s&&(this.selectedUtilityNetwork=this._utilityNetworks?.find(w=>w.id===s))}}>${e}</calcite-combobox>`}#h(){let{selectedUtilityNetwork:t}=this;return r`<calcite-label>${t?.title}</calcite-label>`}#d(t){let e=this._messages.labels.utilityNetwork,i=this.heading||e,s=this._utilityNetworks?.length?this._utilityNetworks?.length===1?this.#h():this.#c():void 0;return r`<calcite-block .heading=${i} .label=${e} expanded>${s}${t}</calcite-block>`}render(){let{error:t,state:e,selectedUtilityNetwork:i}=this,s=e==="error"&&t?this.#l(t,!1,"exclamation-mark-triangle"):void 0;return!s&&!i?.loaded&&!i?.loadError?this.#a():e==="error"&&s&&!this._utilityNetworks?.length?s:this.#d(s)}};n("arcgis-utility-network-picker",l);return l},"core/Collection","core/reactiveUtils",a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{g as R}from"./Y4WOZJQX.js";import"./D47546HM.js";import b from"./TMJX7DFH.js";import a from"./2H2YCUTD.js";import"./VJVKFKSG.js";import{a as S}from"./EMF6EVCU.js";import{h as k}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import"./QUZTFUWM.js";import"./NZROZFUD.js";import{O as F,P as E,X as C,a as v,b as m,n as h,p as u,r as g,x as y}from"./JG5OBAGE.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getOrCreateMapValue:L},{a:f,b:c,c:p,d:$},{c:A,d:P,e:I,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=S({blocking:!0}),this.#h=!0,this.#t=[],this.#i=new Map,this.#r=new Map,this.#n=!1,this.#o=!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#g(){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;#n;#o;#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(){h(()=>this.traceResult=void 0),this.#d()}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.#y(s);return e.addEventListener("arcgisPropertyChange",t),h(()=>{this.traceResult=e.traceResult,this.utilityNetwork=e.utilityNetwork,this.view=e.view}),()=>{e.removeEventListener("arcgisPropertyChange",t)}}),this.traceResult&&this.#m()}willUpdate(e){e.has("traceResult")&&this.#m(),e.has("disableHighlight")&&this.#u();let t=this.hasContent;t!==this.#n&&this.el.isConnected&&this.arcgisPropertyChange.emit({name:"hasContent"}),this.#n=t;let s=this.isFeaturesListShown;s!==this.#o&&this.arcgisPropertyChange.emit({name:"isFeaturesListShown"}),this.#o=s}loaded(){this.traceResult&&(this.traceResult.elements||u("error",this,g("traceResult.elements")),this.utilityNetwork||u("error",this,g("utilityNetwork")))}#y(e){if(e.target!==this.#c)return;let{target:t}=e;switch(e.detail.name){case"traceResult":h(()=>this.traceResult=t.traceResult);break;case"utilityNetwork":h(()=>this.utilityNetwork=t.utilityNetwork);break;case"view":h(()=>this.view=t.view);break}}#f(){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)})}#p(e){e&&(this._featuresComponentElement=e)}#w(e){return Array.from(new Map(e.map(t=>[t.globalId,t])).values())}#R(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}#b(){let{traceResult:e,utilityNetwork:t,view:s}=this;if(!t||!e?.elements?.length||!s)return;let a=i=>(I(i.layer)||w(i.layer))&&t.isUtilityLayer(i.layer),n=t.getObjectIdsFromElements(e.elements),r=s.allLayerViews.filter(a);n.forEach(({layerUrl:i,objectIds:o})=>{let l=Number(i.split("/").pop()),d=r.find(({layer:D})=>D.layerId===l);d&&this.#t.push({layerView:d,objectIds:o})}),this.#u()}async#v(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 n=this.#e.filter(r=>!r.loaded).map(r=>r.load({signal:e}));if(n.length>0){let r=await Promise.allSettled(n);c(e),r.forEach(i=>{i.status==="rejected"&&u("error",this,`Failed to load layer. Reason: ${i.reason}`)})}}#d(){this._isFeaturesSelected=this.#g,this.#s?.abort(),this.#f(),h(()=>this.features=[]),this.#e=[],this.#i.clear(),this.#r.clear(),this.#l.clear(),this.#a.clear(),h(()=>this.state="ready")}async#m(){if(this.#d(),!this.traceResult)return;let e=()=>{h(()=>this.state="ready"),this.arcgisResultReady.emit()},t=$(async s=>{let a=this.traceResult?.elements;if(!a?.length){e();return}h(()=>this.state="loading"),this.#C(a),await this.#v(s),await this.#E(s),c(s),this.#b(),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,h(()=>this.state="ready"))}}async#F([e,t],s){c(s);let a=this.utilityNetwork?.getLayerIdBySourceId(e),n=this.#R(a);if(a==null||!n)return;let r=this.#w(t),i=n.createQuery();i.gdbVersion=this.utilityNetwork?.gdbVersion,i.objectIds=r.map(l=>l.objectId),i.outFields=["*"];let{features:o}=await P(n,i,{signal:s});c(s),o.forEach(l=>{let d=l.layer;l.getEffectivePopupTemplate(this.#h)||(l.popupTemplate=d.createPopupTemplate())}),w(n)?o.forEach(l=>{L(this.#l,l.layer.subtypeCode,()=>[]).push(l)}):this.#i.set(a,o)}async#E(e){let t=Array.from(this.#a.entries());if(!t.length)return;let s=t.map(i=>this.#F(i,e)),a=await Promise.allSettled(s);c(e),a.forEach((i,o)=>{if(i.status==="rejected"){let[l]=t[o];u("error",this,`Failed to query features for source ${l}. Reason: ${i.reason}`)}});let n=Array.from(this.#i.values()),r=Array.from(this.#l.values());h(()=>this.features=n.concat(r).flat())}#C(e){this.#a=Map.groupBy(e,({networkSourceId:t})=>t)}#k(e){let{detail:t}=e;(t.name==="selectedDrillInFeature"||t.name==="selectedFeature")&&(e.stopPropagation(),this.arcgisPropertyChange.emit({name:"selectedResultFeature"}))}#$(e){e.stopPropagation(),this.arcgisTriggerAction.emit(e.detail)}#A(){return m`<div class="features-hidden">${this._messages.resultFeaturesAreHidden}</div>`}#P(){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.#A():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.#k} @arcgisTriggerAction=${this.#$} ${F(this.#p)}></arcgis-features-next>`:this.#P():null}};C("arcgis-utility-network-trace-elements-result-item",b);return b},"applications/Components/featureUtils",a,b)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{P as l,X as b,a as o,b as i,x as g}from"./JG5OBAGE.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{watch:d}])=>{var x=o`:host{--arcgis-internal-presentation-background-opacity: .6}.captions-container{width:100%;height:100%;padding-inline-start:var(--arcgis-internal-presentation-padding-start);padding-inline-end:var(--arcgis-internal-presentation-padding-end)}.captions{width:fit-content;height:auto;position:relative;box-sizing:border-box;transition:padding .05s ease-in 0s;min-height:48px;max-width:max(400px,40%);padding:12px 16px;&:before{content:"";position:absolute;inset-block:-16px -144px;inset-inline:calc(-64px - var(--arcgis-internal-presentation-padding-start)) calc(0px - max(360px,32vw));background:var(--caption-gradient);mask:var(--caption-gradient-mask-before);opacity:var(--arcgis-internal-presentation-background-opacity);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--caption-gradient-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}:dir(rtl) .captions{&:before{mask:var(--caption-gradient-mask-before-RTL)}}.title{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;text-shadow:var(--title-text-shadow);font-size:var(--caption-title-font-size);font-family:Avenir Next World,sans-serif;font-style:normal;font-weight:var(--calcite-font-weight-bold);line-height:var(--calcite-font-line-height-relative-snug);margin-bottom:2px;color:var(--calcite-color-text-1)}.captions-description{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;text-shadow:var(--description-text-shadow);font-size:var(--caption-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1)}.cover-container{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding-block-start:calc(var(--arcgis-internal-presentation-cover-padding-top) + var(--calcite-space-lg));padding-block-end:calc(var(--arcgis-internal-presentation-cover-padding-bottom) + var(--calcite-space-lg))}.cover{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;min-height:88px;min-width:200px;position:relative;padding-inline-start:16px;padding-inline-end:16px;opacity:1;transition:opacity .25s,color .25s;&:before{content:"";position:absolute;inset:calc(0vw - max(320px,12vw,18vh)) calc(0vw - max(320px,24vw));border-radius:120px;background:var(--cover-gradient-before);mask:var(--cover-mask-before);opacity:var(--arcgis-internal-presentation-background-opacity);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--cover-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}.cover-description{text-wrap:pretty;text-align:center;text-shadow:var(--description-text-shadow);font-size:var(--cover-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);display:-webkit-box;max-width:75ch;overflow-wrap:break-word;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;color:var(--calcite-color-text-1)}:host{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:flex-start;box-sizing:border-box;--caption-gradient: linear-gradient( 180deg, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 98.3%) 8.1%, rgb(255 255 255 / 95%) 15.5%, rgb(255 255 255 / 90%) 22.5%, rgb(255 255 255 / 83.3%) 29%, rgb(255 255 255 / 73.3%) 35%, rgb(255 255 255 / 65%) 41%, rgb(255 255 255 / 55%) 47%, rgb(255 255 255 / 45%) 53%, rgb(255 255 255 / 35%) 59%, rgb(255 255 255 / 26.7%) 65%, rgb(255 255 255 / 18.3%) 71%, rgb(255 255 255 / 10%) 77%, rgb(255 255 255 / 4%) 84.5%, rgb(255 255 255 / 1%) 91%, rgb(255 255 255 / 0%) 100% );--title-text-shadow: 0 1px 1px #fff3, 0 0 3px #fff2, 0 0 6px #fff2;--caption-gradient-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-before-RTL: linear-gradient( 270deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--description-text-shadow: 0 .5px .5px #fff2, 0 1px 1px #fff2, 0 0 8px #fff2;--caption-title-font-size: max(var(--calcite-font-size-2xl), calc(18px + .64vw) );--caption-description-font-size: max(var(--calcite-font-size), calc(10px + .4vw) );--cover-description-font-size: max(var(--calcite-font-size-md), calc(10px + .5vw) );--cover-gradient-before: linear-gradient( 0deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 4%, rgb(255 255 255 / 4%) 7.7%, rgb(255 255 255 / 10%) 11.2%, rgb(255 255 255 / 18.3%) 14.5%, rgb(255 255 255 / 26.7%) 17.5%, rgb(255 255 255 / 35%) 20.5%, rgb(255 255 255 / 45%) 23.5%, rgb(255 255 255 / 55%) 26.5%, rgb(255 255 255 / 65%) 29.5%, rgb(255 255 255 / 73.3%) 32.5%, rgb(255 255 255 / 83.3%) 35.5%, rgb(255 255 255 / 90%) 38.5%, rgb(255 255 255 / 95%) 42.2%, rgb(255 255 255 / 98.3%) 46%, rgb(255 255 255 / 100%) 50%, rgb(255 255 255 / 98.3%) 54%, rgb(255 255 255 / 95%) 57.8%, rgb(255 255 255 / 90%) 61.5%, rgb(255 255 255 / 83.3%) 64.5%, rgb(255 255 255 / 73.3%) 67.5%, rgb(255 255 255 / 65%) 70.5%, rgb(255 255 255 / 55%) 73.5%, rgb(255 255 255 / 45%) 76.5%, rgb(255 255 255 / 35%) 79.5%, rgb(255 255 255 / 26.7%) 82.5%, rgb(255 255 255 / 18.3%) 85.5%, rgb(255 255 255 / 10%) 88.8%, rgb(255 255 255 / 4%) 92.3%, rgb(255 255 255 / 1%) 96%, rgb(255 255 255 / 0%) 100% );--cover-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 3.2%, rgb(255 255 255 / 4%) 6.2%, rgb(255 255 255 / 10%) 9%, rgb(255 255 255 / 18.3%) 11.6%, rgb(255 255 255 / 26.7%) 14%, rgb(255 255 255 / 35%) 16.4%, rgb(255 255 255 / 45%) 18.8%, rgb(255 255 255 / 55%) 21.2%, rgb(255 255 255 / 65%) 23.6%, rgb(255 255 255 / 73.3%) 26%, rgb(255 255 255 / 83.3%) 28.4%, rgb(255 255 255 / 90%) 30.8%, rgb(255 255 255 / 95%) 33.8%, rgb(255 255 255 / 98.3%) 36.8%, rgb(255 255 255 / 100%) 40%, rgb(255 255 255 / 100%) 60%, rgb(255 255 255 / 98.3%) 63.2%, rgb(255 255 255 / 95%) 66.2%, rgb(255 255 255 / 90%) 69.2%, rgb(255 255 255 / 83.3%) 71.6%, rgb(255 255 255 / 73.3%) 74%, rgb(255 255 255 / 65%) 76.4%, rgb(255 255 255 / 55%) 78.8%, rgb(255 255 255 / 45%) 81.2%, rgb(255 255 255 / 35%) 83.6%, rgb(255 255 255 / 26.7%) 86%, rgb(255 255 255 / 18.3%) 88.4%, rgb(255 255 255 / 10%) 91%, rgb(255 255 255 / 4%) 93.9%, rgb(255 255 255 / 1%) 96.8%, rgb(255 255 255 / 0%) 100% );--cover-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--cover-gradient-phone: linear-gradient( 0deg, rgb(255 255 255 / 0%) .59%, rgb(255 255 255 / 4%) 4.94%, rgb(255 255 255 / 50%) 25.87%, rgb(255 255 255 / 70%) 37.02%, rgb(255 255 255 / 80%) 48.43%, rgb(255 255 255 / 70%) 60.34%, rgb(255 255 255 / 30%) 80.55%, rgb(255 255 255 / 4%) 93.22%, rgb(255 255 255 / 0%) 99.74% );.fadeOut{opacity:1!important}}`,s=50,p=256,a=class extends l{constructor(){super(...arguments),this.transitionActive=!1,this.autoDestroyDisabled=!1,this.arcgisReady=g()}static{this.properties={_appliedSlide:16,slide:0,transitionActive:5,autoDestroyDisabled:5}}static{this.styles=x}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>d(()=>({slide:this.slide,transitionActive:this.transitionActive}),({slide:e,transitionActive:r})=>{r?this._appliedSlide=void 0:this._appliedSlide=e},{initial:!0}))}render(){let e=this._appliedSlide?.layout;if(!this._appliedSlide||!e||e==="none")return null;let r=this._appliedSlide.title?.text,t=this._appliedSlide.description?.text,c=r?.length&&r.length>s?`${r?.substring(0,s)}...`:r,n=t?.length&&t.length>p?`${t?.substring(0,p)}...`:t;return e==="caption"?this._renderCaptions(c,n):this._renderCover(c,n)}_renderCover(e,r){return i`<div class="cover-container"><div class="cover"><div class="title">${e}</div><div class="cover-description">${r}</div></div></div>`}_renderCaptions(e,r){return i`<div class="captions-container"><div class="captions"><div class="title">${e}</div><div class="captions-description">${r}</div></div></div>`}};b("arcgis-presentation-captions",a);return a},"core/accessorSupport/decorators","core/reactiveUtils")
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as p,b as D,c as A,d as B,e as u,f as T,g as k,h as V}from"./3LOGBSQP.js";import{a as S}from"./4MJJOPAL.js";import{a as v}from"./RIOVVINY.js";import i from"./3VWROBRU.js";import{a as R}from"./EMF6EVCU.js";import{a as m}from"./JD74LG7K.js";import e from"./ANTO53P2.js";import d from"./J6FGJ5GL.js";import{h as C}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import a from"./VULIDWWD.js";import"./QUZTFUWM.js";import{j as x}from"./NZROZFUD.js";import{O as f,P as w,R as y,S as M,U as h,X as $,a as g,b as c,x as b}from"./JG5OBAGE.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:L},O,{property:r,subclass:I},{i:E},,,P])=>{var N=Object.defineProperty,U=Object.getOwnPropertyDescriptor,a=(n,t,i,e)=>{for(var o=e>1?void 0:e?U(t,i):t,d=n.length-1,l;d>=0;d--)(l=n[d])&&(o=(e?l(t,i,o):l(o))||o);return e&&o&&N(t,i,o),o},s=class extends O{constructor(n){super(n),this._anyAngleMovementEnabled=!1,this._disabled=!1,this._moveOnceDuration=D,this.speed=1,this.beginFollowingPointer=(t,i)=>{if(this.disabled)return;this._widgetCenter=i;let e=this._pointerLocationToVector(t);if(e===void 0)return;let o=this._resolveClosestAngle(t,e);o!==void 0&&(this._emitMove(u(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(u(t)),this._setMovementTimeout(this._stopMovement)},this._pointerLocationToVector=t=>{if(this._widgetCenter===void 0)return;let{x:i,y:e}=T(this._widgetCenter,t);return{x:i,y:-e}},this._resolveClosestAngle=(t,i)=>{let e=t.target;if(e?.classList?.contains("compass"))return;let o=Number.parseInt(e?.getAttribute?.("data-angle")??"",10);return Number.isNaN(o)?B(i):o},this._onPointerMove=t=>{if(t.buttons===0){this._stopMovement();return}let i=this._pointerLocationToVector(t);if(i===void 0)return;this._setMovementTimeout(void 0);let e=this._resolveClosestAngle(t,i);if(e===void 0){this._emitStop();return}let o=u(e),d=this._initialAngle!=null&&this._initialAngle!==e;this._anyAngleMovementEnabled||=d;let l=this._anyAngleMovementEnabled?i:o;(l.x!==this._movementVector?.x||l.y!==this._movementVector?.y)&&(this.angle=e,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)}}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._navigation?.begin(),this._movementVector=n,this._navigation?.continuousPanVector({x:n.x*this.speed,y:n.y*this.speed})}_emitStop(){this.angle=void 0,this._movementVector!==void 0&&(this._navigation?.stop(),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}}.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,i=>[Number.parseInt(i.getAttribute("data-angle")??""),i]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(e=>e.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let i=k(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,i)}_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:i}=this,e=this.view==null||this.view.type==="2d";return c`<div .ariaLabel=${t??void 0} class=${y({root:!0,[m.widget]:!0,[m.disabled]:i})} tabindex=-1>${e?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 v("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:i,iconName:e}=A[t],o=this.messages[i];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=${e} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||V(this.view)?"compass-needle":"arrow-up",i=this.rotation===0,e=this.messages.resetHeading;return c`<calcite-action alignment=center class="compass" .disabled=${this.disabled||!this._rotationEnabled||i} @click=${this._onRotationReset} style=${M(this._rotateIcon(this.rotation))} .text=${e??""} title=${e??h}>${!i&&c`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return v("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/Accessor","core/accessorSupport/decorators",a,d,e,i)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{g as c}from"./Y4WOZJQX.js";import"./D47546HM.js";import{a as R}from"./EMF6EVCU.js";import{h as d}from"./HDDHFB4N.js";import"./MLB4A6K7.js";import"./QUZTFUWM.js";import"./NZROZFUD.js";import{P as g,X as m,a as n,b as i,n as a,p as l,s as u,x as h}from"./JG5OBAGE.js";import"./H6RQVSYM.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(){a(()=>this.traceResult=void 0)}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.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};
|