@arcgis/map-components 5.2.0-next.75 → 5.2.0-next.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/cdn/3MDNGD5N.js +2 -0
  2. package/dist/cdn/4RYR4YDD.js +2 -0
  3. package/dist/cdn/{Y52XLS45.js → 4ULHWCEQ.js} +1 -1
  4. package/dist/cdn/{4IYAEXT6.js → 5AQ2DLHA.js} +1 -1
  5. package/dist/cdn/5GD232OU.js +2 -0
  6. package/dist/cdn/6C542P4V.js +2 -0
  7. package/dist/cdn/6XJLNNXF.js +2 -0
  8. package/dist/cdn/AYJ4XEW3.js +2 -0
  9. package/dist/cdn/BZZONX7U.js +2 -0
  10. package/dist/cdn/CO4UDHQO.js +5 -0
  11. package/dist/cdn/DXRIB5HU.js +2 -0
  12. package/dist/cdn/{AXEUVRDP.js → GYD6SJRD.js} +1 -1
  13. package/dist/cdn/HSRSC5A3.js +2 -0
  14. package/dist/cdn/KKN5ZNLH.js +2 -0
  15. package/dist/cdn/LCWKOR7D.js +2 -0
  16. package/dist/cdn/LFEMVA6D.js +2 -0
  17. package/dist/cdn/LWGNINKF.js +2 -0
  18. package/dist/cdn/{6T4SNDWL.js → N7YPGWHZ.js} +1 -1
  19. package/dist/cdn/NAW2XY64.js +2 -0
  20. package/dist/cdn/{RNUWRSX7.js → NESU6NXH.js} +1 -1
  21. package/dist/cdn/NVYQR4DS.js +2 -0
  22. package/dist/cdn/QO6WDURE.js +2 -0
  23. package/dist/cdn/RIZHD5EC.js +2 -0
  24. package/dist/cdn/UYF6TF6U.js +2 -0
  25. package/dist/cdn/WD25DNJL.js +2 -0
  26. package/dist/cdn/assets/utility-network-aggregated-geometry-result-item/t9n/messages.en.json +1 -0
  27. package/dist/cdn/assets/utility-network-trace-results-next/t9n/messages.en.json +1 -1
  28. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.en.json +1 -1
  29. package/dist/cdn/index.js +1 -1
  30. package/dist/cdn/main.css +1 -1
  31. package/dist/chunks/titleUtils.js +40 -0
  32. package/dist/chunks/utils2.js +36 -71
  33. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  34. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  35. package/dist/components/arcgis-legend/customElement.js +1 -1
  36. package/dist/components/arcgis-legend-card-element/customElement.js +34 -33
  37. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +11 -11
  38. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +9 -9
  39. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  40. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +15 -15
  41. package/dist/components/arcgis-legend-classic-element/customElement.js +39 -35
  42. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +5 -4
  43. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +6 -6
  44. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +3 -3
  45. package/dist/components/arcgis-legend-classic-view/customElement.js +41 -18
  46. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +8 -8
  47. package/dist/components/arcgis-legend-spike-ramp/customElement.js +13 -13
  48. package/dist/components/arcgis-scene/customElement.d.ts +1 -0
  49. package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +105 -0
  50. package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.js +125 -0
  51. package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/index.js +5 -0
  52. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +6 -0
  53. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +9 -9
  54. package/dist/components/arcgis-utility-network-trace-analysis-next/types.d.ts +5 -4
  55. package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +4 -25
  56. package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +86 -86
  57. package/dist/components/arcgis-utility-network-trace-results-next/index.js +1 -4
  58. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +19 -0
  59. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +129 -86
  60. package/dist/docs/api.json +1 -1
  61. package/dist/docs/docs.json +1 -1
  62. package/dist/docs/vscode.html-custom-data.json +1 -1
  63. package/dist/docs/web-types.json +1 -1
  64. package/dist/index.d.ts +7 -7
  65. package/dist/loader.js +3 -3
  66. package/dist/types/lumina.d.ts +6 -5
  67. package/dist/types/preact.d.ts +7 -6
  68. package/dist/types/react.d.ts +8 -7
  69. package/dist/types/stencil.d.ts +6 -5
  70. package/package.json +5 -5
  71. package/dist/cdn/2O6GHHUY.js +0 -2
  72. package/dist/cdn/7THMBHKF.js +0 -2
  73. package/dist/cdn/A6CH2UFJ.js +0 -2
  74. package/dist/cdn/AZSWPMSD.js +0 -2
  75. package/dist/cdn/CQV2TQUQ.js +0 -2
  76. package/dist/cdn/D75QAAQT.js +0 -5
  77. package/dist/cdn/GG4ZP72A.js +0 -2
  78. package/dist/cdn/GOIKNGEI.js +0 -2
  79. package/dist/cdn/HZR3HENL.js +0 -2
  80. package/dist/cdn/IIYUVBKU.js +0 -2
  81. package/dist/cdn/KUR5PBEN.js +0 -2
  82. package/dist/cdn/LIEZSWE4.js +0 -2
  83. package/dist/cdn/MOOIQJP4.js +0 -2
  84. package/dist/cdn/NJ4CBOJN.js +0 -2
  85. package/dist/cdn/SWDOEOEG.js +0 -2
  86. package/dist/cdn/TZTJY3L5.js +0 -2
  87. package/dist/cdn/X3TEGOBL.js +0 -2
  88. package/dist/cdn/XLAW24IV.js +0 -2
  89. package/dist/cdn/ZMLP2ZB4.js +0 -2
  90. package/dist/cdn/assets/utility-network-aggregated-geometry-next/t9n/messages.en.json +0 -1
  91. package/dist/components/arcgis-utility-network-aggregated-geometry-next/customElement.d.ts +0 -63
  92. package/dist/components/arcgis-utility-network-aggregated-geometry-next/customElement.js +0 -109
  93. package/dist/components/arcgis-utility-network-aggregated-geometry-next/index.js +0 -2
  94. /package/dist/components/{arcgis-utility-network-aggregated-geometry-next → arcgis-utility-network-aggregated-geometry-result-item}/index.d.ts +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import j from"./G3GFYB3W.js";import{a as m}from"./NDMHZQ2Z.js";import{a}from"./JD74LG7K.js";import i from"./K3VQUQ6I.js";import e from"./NFE73D6R.js";import{g as f}from"./5GFBHLDY.js";import"./42UVPIOD.js";import b from"./34IPKNHM.js";import"./QUZTFUWM.js";import{d as u}from"./QLIWDFZI.js";import{N as g,O as h,T as p,a as c,b as r,w as d}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:s,watch:_},y,,,,v])=>{var b=c`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--arcgis-internal-legend-heading-margin: 0 0 .5rem;--arcgis-internal-legend-layer-padding: var( --arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg) );--arcgis-internal-legend-layer-gap: var(--calcite-spacing-xxl);--arcgis-internal-legend-layer-element-gap: var(--calcite-spacing-md);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`,x=v(y),n=class extends g{constructor(){super(...arguments),this.messages=m({}),this.viewModel=x(this),this._isCardStyle=!1,this.view=this.viewModel.view,this.icon="legend",this.activeLayerInfos=this.viewModel.activeLayerInfos,this.basemapLegendVisible=this.viewModel.basemapLegendVisible,this.headingLevel=3,this.hideLayersNotInCurrentView=this.viewModel.hideLayersNotInCurrentView,this.respectLayerDefinitionExpression=this.viewModel.respectLayerDefinitionExpression,this.layerInfos=this.viewModel.layerInfos,this.loading=this.viewModel.loading,this.legendStyle="classic",this.autoDestroyDisabled=!1,this.label=this.messages?.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=f()("state"),this.arcgisReady=d()}static{this.properties={_isCardStyle:16,view:0,referenceElement:1,icon:1,activeLayerInfos:0,basemapLegendVisible:5,headingLevel:9,hideLayersNotInCurrentView:5,respectLayerDefinitionExpression:5,ignoreLayerVisibility:5,layerInfos:0,loading:39,cardStyleLayout:1,legendStyle:1,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=b}get ignoreLayerVisibility(){return!this.viewModel.respectLayerVisibility}set ignoreLayerVisibility(e){this.viewModel.respectLayerVisibility=!e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[s(()=>this.el.view,"resize",()=>this.requestUpdate()),_(()=>[this.cardStyleLayout,this.legendStyle,typeof this.legendStyle=="object"?this.legendStyle.type:void 0,typeof this.legendStyle=="object"?this.legendStyle.layout:void 0],()=>{let e=this.legendStyle,i=typeof e=="object"?e:{type:e};this._isCardStyle=i.type==="card",this._isCardStyle?(this.cardStyleLayout=this.cardStyleLayout||i.layout||"auto",this.cardStyleLayout==="auto"&&this.el.closest("arcgis-expand")&&(this.cardStyleLayout="stack"),this.setAttribute("card-style-layout",this.cardStyleLayout)):this.removeAttribute("card-style-layout")},{initial:!0})]),this.manager.onLifecycle(()=>{let e=[],i=()=>{e.forEach(t=>t.remove()),e=[]},l=t=>{e.push(_(()=>t.version,()=>this.requestUpdate()),s(()=>t.children,"change",o)),t.children.forEach(l)},o=()=>{i(),this.activeLayerInfos.forEach(l),this.requestUpdate()};o();let w=s(()=>this.activeLayerInfos,"change",o);return()=>{w.remove(),i()}})}render(){return r`<div class=${h(u("root",a.widget,{[a.panel]:!this._isCardStyle}))}>${this._isCardStyle&&this.view?r`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>`:r`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`}};p("arcgis-legend",n);return n},"core/reactiveUtils","widgets/Legend/LegendViewModel",b,e,i,j)
2
+ import j from"./G3GFYB3W.js";import{a as m}from"./NDMHZQ2Z.js";import{a}from"./JD74LG7K.js";import i from"./K3VQUQ6I.js";import e from"./NFE73D6R.js";import{g as f}from"./5GFBHLDY.js";import"./42UVPIOD.js";import b from"./34IPKNHM.js";import"./QUZTFUWM.js";import{d as u}from"./QLIWDFZI.js";import{N as g,O as h,T as p,a as c,b as r,w as d}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:s,watch:_},y,,,,v])=>{var b=c`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--arcgis-internal-legend-heading-margin: 0 0 var(--calcite-space-2xs);--arcgis-internal-legend-layer-padding: var(--calcite-space-md);--arcgis-internal-legend-layer-gap: var(--calcite-space-xl);--arcgis-internal-legend-layer-element-gap: var(--calcite-space-sm);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`,x=v(y),n=class extends g{constructor(){super(...arguments),this.messages=m({}),this.viewModel=x(this),this._isCardStyle=!1,this.view=this.viewModel.view,this.icon="legend",this.activeLayerInfos=this.viewModel.activeLayerInfos,this.basemapLegendVisible=this.viewModel.basemapLegendVisible,this.headingLevel=3,this.hideLayersNotInCurrentView=this.viewModel.hideLayersNotInCurrentView,this.respectLayerDefinitionExpression=this.viewModel.respectLayerDefinitionExpression,this.layerInfos=this.viewModel.layerInfos,this.loading=this.viewModel.loading,this.legendStyle="classic",this.autoDestroyDisabled=!1,this.label=this.messages?.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=f()("state"),this.arcgisReady=d()}static{this.properties={_isCardStyle:16,view:0,referenceElement:1,icon:1,activeLayerInfos:0,basemapLegendVisible:5,headingLevel:9,hideLayersNotInCurrentView:5,respectLayerDefinitionExpression:5,ignoreLayerVisibility:5,layerInfos:0,loading:39,cardStyleLayout:1,legendStyle:1,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=b}get ignoreLayerVisibility(){return!this.viewModel.respectLayerVisibility}set ignoreLayerVisibility(e){this.viewModel.respectLayerVisibility=!e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[s(()=>this.el.view,"resize",()=>this.requestUpdate()),_(()=>[this.cardStyleLayout,this.legendStyle,typeof this.legendStyle=="object"?this.legendStyle.type:void 0,typeof this.legendStyle=="object"?this.legendStyle.layout:void 0],()=>{let e=this.legendStyle,i=typeof e=="object"?e:{type:e};this._isCardStyle=i.type==="card",this._isCardStyle?(this.cardStyleLayout=this.cardStyleLayout||i.layout||"auto",this.cardStyleLayout==="auto"&&this.el.closest("arcgis-expand")&&(this.cardStyleLayout="stack"),this.setAttribute("card-style-layout",this.cardStyleLayout)):this.removeAttribute("card-style-layout")},{initial:!0})]),this.manager.onLifecycle(()=>{let e=[],i=()=>{e.forEach(t=>t.remove()),e=[]},l=t=>{e.push(_(()=>t.version,()=>this.requestUpdate()),s(()=>t.children,"change",o)),t.children.forEach(l)},o=()=>{i(),this.activeLayerInfos.forEach(l),this.requestUpdate()};o();let w=s(()=>this.activeLayerInfos,"change",o);return()=>{w.remove(),i()}})}render(){return r`<div class=${h(u("root",a.widget,{[a.panel]:!this._isCardStyle}))}>${this._isCardStyle&&this.view?r`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>`:r`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`}};p("arcgis-legend",n);return n},"core/reactiveUtils","widgets/Legend/LegendViewModel",b,e,i,j)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as g}from"./U5BDUCMV.js";import{a as h}from"./JD74LG7K.js";import"./QUZTFUWM.js";import{d}from"./QLIWDFZI.js";import{N as c,T as o,a as l,b as i}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:m},{substitute:f}])=>{var v=l`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:flex;flex-direction:row;position:relative;transition:max-width .25s ease-in-out;overflow-x:auto}calcite-carousel-item[selected]{flex:1;overflow:auto}.message{padding:.5em 1em}.service-caption-text{margin:0}.service-content{display:flex;flex:1}.service-content>arcgis-legend-card-element:not(:first-child){border-left:1px solid var(--calcite-color-border-2)}.service{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);display:flex;flex-direction:column;flex:1}.service-caption-container{border-bottom:1px solid var(--calcite-color-border-2);padding:var(--calcite-space-md)}`,u=768,a=class extends c{constructor(){super(...arguments),this.stacked=!1,this.headingLevel=3,this.layout="auto",this.type="card"}static{this.properties={stacked:16,activeLayerInfos:0,headingLevel:9,messages:0,view:0,layout:1,type:32}}static{this.styles=v}loaded(){this.manager.onLifecycle(()=>[m(()=>[this.layout,this.view.width],()=>{this.stacked=this.layout==="stack"||(!this.layout||this.layout==="auto")&&this.view.width<=u},{initial:!0})])}render(){return(this.stacked?this._renderCarousel():this._renderLayers())||i`<div class="message">${this.messages.noLegend}</div>`}_renderTitle(e){return i`<div class="service-caption-container">${g({class:d("service-caption-text",h.heading),level:this.headingLevel,children:e})}</div>`}_renderCarousel(){let e=[],t=this.activeLayerInfos;if(t)for(let s of t)this._renderSections(s,e);return e?.length?i`<calcite-carousel .paginationDisabled=${e.length<2} .label=${this.messages.carousel??""}>${e.map((s,r)=>i`<calcite-carousel-item .label=${f(this.messages?.pagination?.pageText??"",{index:r+1,total:e.length})}>${s}</calcite-carousel-item>`)}</calcite-carousel>`:null}_renderLayers(){let e=this.activeLayerInfos?.toArray()?.map(t=>this._renderLegendForLayer(t)).filter(Boolean);return e?.length?e:null}_renderLegendForLayer(e){if(!e.ready)return null;if(e.children.length){let t=e.children.toArray().map(this._renderLegendForLayer,this);return i`<section class="service">${this._renderTitle(e.title)}<div class="service-content">${t}</div></section>`}return this._renderLegendElementsForLayer(e)}_renderLegendElementsForLayer(e){let t=e.legendElements?.filter(Boolean);if(!t?.length)return null;let s=t.map(r=>i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`);return i`<section class="service">${this._renderTitle(e.title)}<div class="service-content">${s}</div></section>`}_renderSections(e,t){if(!e.ready)return;if(e.children.length)for(let r of e.children)this._renderSections(r,t);let s=e.legendElements;if(s?.length)for(let r of s){let n=i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`;n&&t.push(n)}}};o("arcgis-legend-card-view",a);return a},"core/reactiveUtils","intl")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import b from"./BZZONX7U.js";import a from"./4RYR4YDD.js";import{N as P,O as k,P as g,T as A,a as N,b as v}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{c:C,e:I,f:R}])=>{var B=N`.size-ramp-container{display:flex;align-items:center;justify-content:center}.size-ramp-vertical-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.size-ramp-label{margin:0 .5em;white-space:nowrap}.size-ramp-vertical-ramp{display:flex;flex-direction:column;align-items:center}.size-ramp-ramp{display:flex;flex-direction:row-reverse;align-items:center}.size-ramp-preview{display:flex}`,O="#ddd";function X(e){if(!e)return;if(e.type.includes("3d")){if(!("symbolLayers"in e)||!e.symbolLayers?.length)return;let s=e.symbolLayers.at(-1),i=s&&"resource"in s?s.resource?.primitive:void 0;return i==="circle"||i==="cross"||i==="kite"||i==="sphere"||i==="cube"||i==="diamond"}let n="style"in e?e.style:void 0;return n==="circle"||n==="diamond"||n==="cross"}function Y(e){if(e){if(e.type.includes("3d")){if(!("symbolLayers"in e)||!e.symbolLayers?.length)return;let n=e.symbolLayers.at(-1),s=n&&"resource"in n?n.resource?.primitive:void 0;return s==="triangle"||s==="cone"||s==="tetrahedron"}return"style"in e&&e.style==="triangle"}}var j=class extends P{constructor(){super(...arguments),this.hasIndicators=!1,this.legendElement=null,this.opacity=1}static{this.properties={hasIndicators:5,legendElement:0,opacity:9,messages:0}}static{this.styles=B}render(){if(this.legendElement.theme==="spike")return v`<div style=${g({display:"flex",flex:"1",justifyContent:"center"})}><arcgis-legend-spike-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-spike-ramp></div>`;let{legendElement:n,hasIndicators:s,opacity:i}=this,o=n.infos,d=o.at(0),m=o.at(-1);if(!d||!m)return null;let{label:y,...z}=d,{label:f,...x}=m,r=z.preview,t=x.preview;if(!r||!t)return null;r=r.cloneNode(!0),r.style.display="flex",R(r,I(this.messages,y)),t=t.cloneNode(!0),t.style.display="flex",R(t,I(this.messages,f));let l={opacity:`${i??""}`};return v`<div class=${k(s?"size-ramp-vertical-container":"size-ramp-container")}><div class="size-ramp-label">${s?y:f}</div><div class=${k(s?"size-ramp-vertical-ramp":"size-ramp-ramp")}><div class="size-ramp-preview" style=${g(l)}>${r}</div>${this._renderSizeRampLines(n)}<div class="size-ramp-preview" style=${g(l)}>${t}</div></div><div class="size-ramp-label">${s?f:y}</div></div>`}_renderSizeRampLines(n){let s=n.infos,i=s.at(0),o=s.at(-1);if(!i||!o)return null;let d=i.symbol,m=this.hasIndicators,y=i.size&&typeof i.size=="number"?i.size:0,z=o.size&&typeof o.size=="number"?o.size:0,f=i.outlineSize||0,x=o.outlineSize||0,r=C(y+f),t=C(z+x),l=m?r:r+50,p=m?r/2+50:r,u=Y(d),h=X(d),c=document.createElement("canvas");c.width=l,c.height=p,c.style.width=`${c.width}px`,c.style.height=`${c.height}px`;let a=c.getContext("2d");if(m){a.beginPath();let $=0,b=0,w=l/2-t/2,M=p;a.moveTo($,b),a.lineTo(w,M);let L=l,T=0,E=l/2+t/2,S=p;a.moveTo(L,T),a.lineTo(E,S)}else{a.beginPath();let $=0,b=p/2-t/2,w=l;a.moveTo($,b),a.lineTo(w,0);let L=0,T=p/2+t/2,E=l,S=p;a.moveTo(L,T),a.lineTo(E,S)}return a.strokeStyle=O,a.stroke(),v`<div style=${g(m?{display:"flex",marginTop:`-${u?0:h?r/2:0}px`,marginBottom:`-${u?t:h?t/2:0}px`}:{display:"flex",marginRight:`-${u?0:h?r/2:0}px`,marginLeft:`-${u?0:h?t/2:0}px`})}>${c}</div>`}};A("arcgis-legend-card-size-ramp",j);return j},a,b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import b from"./MZWO5JYA.js";import a from"./FR3DD5XU.js";import"./VJVKFKSG.js";import{a as R}from"./NDMHZQ2Z.js";import"./5GFBHLDY.js";import"./42UVPIOD.js";import"./QUZTFUWM.js";import"./QLIWDFZI.js";import{M as u,N as y,T as v,a as p,b as r,o,q as d,r as f,w as h}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([k,,,{a:$},{b:b,e:w}])=>{var E=p`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features-next{height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{margin:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl);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)}`,g={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},m=class extends y{constructor(){super(...arguments),this._messages=R({blocking:!0}),this.#l=!0,this.#t=[],this.#s=new Map,this.#n=new Map,this.#i=new Map,this.#a=new Map,this.#r=[],this._aggregatedGeometryDisabled=!1,this.aggregatedGeometryGraphicsColor=new k([255,255,0,.6]),this.hideActionBar=!1,this.hideFeatureResults=!1,this.isElementsSelected=!1,this.layers=[],this.state="ready",this.traceResultFeatures=[],this.autoDestroyDisabled=!1,this.arcgisAggregatedGeometryGraphicsColorChange=h(),this.arcgisHideGraphicsChange=h(),this.arcgisSelectedResultTypeChange=h(),this.arcgisTraceResultFeaturesReady=h()}static{this.properties={_aggregatedGeometryDisabled:16,_featuresComponentElement:16,aggregatedGeometryGraphicsColor:0,hideActionBar:5,hideFeatureResults:5,isElementsSelected:5,layers:0,messageOverrides:0,numResults:32,referenceElement:1,state:1,traceConfigTitle:1,traceError:0,traceResult:0,traceResultFeatures:0,utilityNetwork:0,view:0,autoDestroyDisabled:5}}static{this.styles=E}#l;#t;#c;#s;#n;#i;#a;#r;get numResults(){return this.traceResultFeatures.length+this.#t.length}clearAggregatedGeometryGraphics(){this.#c?.destroy()}async destroy(){this.#s.clear(),this.#i.clear(),this.#a.clear(),this.#c?.destroy(),this._featuresComponentElement?.destroy(),await this.manager.destroy()}load(){this.traceResult&&(this.#b(),this.#y().then(()=>this.#v()).finally(()=>{this.arcgisTraceResultFeaturesReady.emit(),this.state="ready"}))}willUpdate(e){e.has("isElementsSelected")&&this.arcgisSelectedResultTypeChange.emit(),e.has("traceResult")&&(this.isElementsSelected=!1,this.traceResult||(this.traceResultFeatures=[],this.#t=[]))}loaded(){this.traceResult&&(this.utilityNetwork||o("warn",this,d("utilityNetwork")),this.layers.length||o("warn",this,f("layers")),this.view||o("warn",this,d("view")))}disconnectedCallback(){super.disconnectedCallback(),this.#n.clear()}#d(e){e&&(this.#c=e)}#u(e){e&&(this._featuresComponentElement=e)}async#g([e,t]){let i=this.utilityNetwork?.getLayerIdBySourceId(e),s=this.#m(i),a=this.#p(t);if(i==null||!s){this.#t.push(...a);return}let l=s.createQuery();l.gdbVersion=this.utilityNetwork?.gdbVersion,l.objectIds=a.map(n=>n.objectId),l.outFields=["*"];let{features:c}=await b(s,l);c.forEach(n=>{let C=n.layer;n.getEffectivePopupTemplate(this.#l)||(n.popupTemplate=C.createPopupTemplate())}),w(s)?c.forEach(n=>this.#o(this.#i,n.layer.subtypeCode,n)):this.#s.set(i,c)}#o(e,t,i){let s=e.get(t);s==null?e.set(t,[i]):s.push(i)}#m(e){if(e==null)return;let t=this.#n,i=this.#r,s=t.get(e);if(s)return s;if(!i)return;let a=i.find(l=>"layerId"in l&&l.layerId===e);return a&&t.set(e,a),a}#p(e){return Array.from(new Map(e.map(t=>[t.globalId,t])).values())}#f(e){let{detail:t,target:i}=e;if(t.name==="hideGraphics"){e.stopPropagation();let s=i[t.name];this.arcgisHideGraphicsChange.emit(s)}if(t.name==="graphicsColor"){e.stopPropagation();let s=i[t.name];this.aggregatedGeometryGraphicsColor=s,this.arcgisAggregatedGeometryGraphicsColorChange.emit(s)}}async#y(){let{layers:e,utilityNetwork:t}=this;if(!t)return;try{t.loaded||(this.state="loading",await t.load())}catch(s){$(s,this,"Error while loading the selected utility network")}this.#r=e.filter(s=>t.isUtilityLayer(s));let i=this.#r.filter(s=>!s.loaded).map(s=>s.load());i.length>0&&(this.state="loading",(await Promise.allSettled(i)).forEach(s=>{s.status==="rejected"&&o("error",this,`Failed to load layer. Reason: ${s.reason}`)}))}async#v(){let e=Array.from(this.#a.entries());if(!e.length)return;this.state="loading";let t=e.map(a=>this.#g(a));(await Promise.allSettled(t)).forEach((a,l)=>{if(a.status==="rejected"){let[c]=e[l];o("error",this,`Failed to query features for source ${c}. Reason: ${a.reason}`)}});let i=Array.from(this.#s.values()),s=Array.from(this.#i.values());this.traceResultFeatures=i.concat(s).flat()}#b(){this.traceResult.elements?.forEach(e=>this.#o(this.#a,e.networkSourceId,e))}render(){let{traceError:e,traceResult:t}=this;if(e)return this.#x(e);if(!t)return this.#G();let{elements:i,globalFunctionResults:s,aggregatedGeometry:a}=t,l=!i.length&&!s.length&&!a,c=i.length>0&&!s.length&&!a;return l?this.#F():this.state==="loading"?this.#w():this.hideFeatureResults&&c?this.#R():this.isElementsSelected||c?r`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#l} .features=${this.traceResultFeatures} .hideActionBar=${this.hideActionBar} .hideCloseButton=${c} hide-select-feature initial-display-mode=list .messageOverrides=${this.messageOverrides} @arcgisClose=${()=>this.isElementsSelected=!1} open .referenceElement=${this.referenceElement} .view=${this.view} ${u(this.#u)}></arcgis-features-next>`:this.#$(t)}#w(){return r`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`}#$(e){let{elements:t,globalFunctionResults:i,aggregatedGeometry:s}=e;return r`<calcite-panel class="white-panel-background">${this.#e()}${s!=null?r`<arcgis-utility-network-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryGraphicsColor} .traceResult=${e} .view=${this.view} @arcgisPropertyChange=${this.#f} ${u(this.#d)}></arcgis-utility-network-aggregated-geometry-result-item>`:null}${s!=null&&!t.length?this.#C():null}${t.length>0?this.hideFeatureResults?this.#h():this.#k():null}${i.length>0?this.#E(i):null}</calcite-panel>`}#R(){return r`<calcite-panel class="white-panel-background">${this.#e()}${this.#h()}</calcite-panel>`}#h(){return r`<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div>`}#C(){return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#k(){let{_messages:e}=this;return r`<calcite-list .label=${e.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${e.headings.features} @calciteListItemSelect=${()=>this.isElementsSelected=!0}><calcite-chip .label=${e.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}#E(e){let{_messages:t}=this;return r`<div class="functions-heading">${t.headings.functions}</div><calcite-table .caption=${t.labels.functionResults}>${e.filter(i=>i.networkAttributeName!=null&&i.result!=null&&i.functionType!=null).map(i=>{let{functionName:s,networkAttributeName:a,functionType:l,result:c}=i,n=s||`${a} ${l}`;return r`<calcite-table-row><calcite-table-cell>${n}</calcite-table-cell><calcite-table-cell>${c}</calcite-table-cell></calcite-table-row>`})}</calcite-table>`}#e(){return r`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle?r`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>`:null}</div>`}#x(e){let{_messages:t}=this,i=e.message;switch(e.details?.raw?.extendedCode){case g.dirtyAreasDiscovered:i=t.traceErrors.dirtyAreasDiscovered;break;case g.noValidControllers:i=t.traceErrors.noValidControllers;break;case g.pathNotFound:i=t.traceErrors.pathNotFound;break}return r`<calcite-panel class="white-panel-background">${this.#e()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.traceFailedHeading}</div><div class="no-results-description">${t.traceFailedDescription}</div><div class="no-results-description">${i}</div></div></calcite-panel>`}#F(){let{_messages:e}=this;return r`<calcite-panel class="white-panel-background">${this.#e()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.noResultsHeading}</div><div class="no-results-description">${e.noResultsDescription}</div></div></calcite-panel>`}#G(){let{_messages:e}=this;return r`<calcite-panel class="white-panel-background">${this.#e()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${e.noTraceConfigHeading}</div><div class="no-results-description">${e.noTraceConfigDescription}</div></div></calcite-panel>`}};v("arcgis-utility-network-trace-results-next",m);return m},"Color","core/Error","Graphic",a,b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import e from"./BZZONX7U.js";import a from"./4RYR4YDD.js";import"./QUZTFUWM.js";import{d}from"./QLIWDFZI.js";import{N as $,O as m,P as w,Q as c,T as u,a as b,b as s}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{a:g,b:E},{b:x,e:h,f:f}])=>{var z=b`:host{contain:content}.layer-body:has(>arcgis-legend-classic-element){display:flex;flex-direction:column;gap:calc(var(--arcgis-internal-legend-layer-gap) / 2)}.layer-body arcgis-legend-classic-element{margin-inline-start:var(--arcgis-internal-legend-layer-padding)}.layer-table{display:table;width:100%}.layer-caption{display:table-caption;word-break:break-word;font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-medium);padding-bottom:var(--calcite-space-2xs)}.layer-row{display:table-row}.layer-body:has(>.layer-row+.layer-row)>.layer-row .layer-cell{padding-block:var(--calcite-space-2xs)}.layer-cell{vertical-align:middle;word-break:break-word;display:table-cell}.layer-cell-info{padding-inline-start:var(--calcite-space-xs);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.layer-cell-inline-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size)}.imagery-layer-stretched-image{display:block;margin-bottom:-2px}.imagery-layer-info-stretched{padding:0 2px;vertical-align:top}.layer-cell-symbols{text-align:center}.symbol{display:flex;justify-content:center}`,v=class extends ${static{this.properties={cssEffectFilter:1,layer:0,inlineLayerTitle:1,legendElement:0,messages:0}}static{this.styles=z}render(){let e=this._renderLegendElement(),l=E(this.legendElement,this.messages),a=l?s`<div class="layer-caption">${l}</div>`:null;return s`<section class="layer-table">${a}${e}</section>`}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return s`<arcgis-legend-classic-size-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-classic-size-ramp>`;case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return s`<arcgis-legend-classic-color-ramp .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-color-ramp>`;case"relationship-ramp":return s`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;case"pie-chart-ramp":{let{preview:e}=this.legendElement;return f(e,this.messages.previewPieChartAriaLabel),s`<div>${e}</div>`}case"univariate-above-and-below-ramp":return s`<arcgis-legend-classic-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-above-and-below-ramp>`;case"univariate-color-size-ramp":return s`<arcgis-legend-classic-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-color-size-ramp>`;default:return null}}_renderSymbolTable(e){let l=this.inlineLayerTitle&&e.infos.length===1?this.inlineLayerTitle:void 0,a=e.infos.map(i=>this._renderElementInfo(i,e.legendType,l)).filter(Boolean);return a.length?s`<div class="layer-body">${a}</div>`:null}_renderElementInfo(e,l,a){let{layer:i}=this,t="label"in e?e.label:null;if("type"in e&&e.type)return e?s`<arcgis-legend-classic-element .cssEffectFilter=${this.cssEffectFilter} .layer=${i} .legendElement=${e} .messages=${this.messages}></arcgis-legend-classic-element>`:null;if(!("preview"in e&&e.preview)&&!("src"in e&&e.src))return null;let r=x(i,l),p={"imagery-layer-info-stretched":r},y={"imagery-layer-info-stretched":r},o=g(this.messages,t,!1)||"",n=!o&&a?a:"",L={"layer-cell-inline-title":!!n,...p};return s`<div class="layer-row"><div class=${m(d("layer-cell","layer-cell-symbols",y))}>${this._renderPreview(e,r)}</div><div class=${m(d("layer-cell","layer-cell-info",L))}>${o||n}</div></div>`}_renderPreview(e,l){let{layer:a}=this;if("preview"in e&&e.preview){let{preview:i}=e,t="previewAriaLabel"in e?e.previewAriaLabel:null,r="label"in e?g(this.messages,e.label,!1):null;return f(i,h(this.messages,t||r)),s`<div class="symbol">${i}</div>`}return"src"in e&&e.src?this._renderImage(e,a,l):null}_renderImage(e,l,a){let{previewAriaLabel:i,src:t,opacity:r}=e,p=g(this.messages,e.label,!1),y={"imagery-layer-stretched-image":a,symbol:!a},o={opacity:`${r??l.opacity}`},n=h(this.messages,i||p);return s`<img alt=${n??c} .ariaLabel=${n} class=${m(d(y))} height=${e.height??void 0??c} src=${t??c} style=${w(o)} width=${e.width??void 0??c}>`}};u("arcgis-legend-classic-element",v);return v},a,e)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import e from"./N7YPGWHZ.js";import d from"./BZZONX7U.js";import b from"./4RYR4YDD.js";import{e as F}from"./5GFBHLDY.js";import"./42UVPIOD.js";import"./QUZTFUWM.js";import{d as c}from"./QLIWDFZI.js";import{N as C,O as m,P as f,Q as a,T as A,a as H,b as h,c as W}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getBoundingBox:O,computeBBox:P,getTransformMatrix:D},,,{a:U,b:X,c:Y,d:j}])=>{var Q=H`.diamond-container{display:flex;font-size:var(--calcite-font-size-sm)}.diamond-left-column{align-self:center;padding-inline-end:5px;max-width:85px;text-align:right}.diamond-right-column{align-self:center;padding-inline-start:5px;max-width:85px;text-align:left}.diamond-middle-column{display:flex;flex-direction:column;text-align:center}.diamond-middle-column-label{align-self:center;max-width:85px}.diamond-middle-column-ramp{width:85px;height:85px}.square-table{display:table;font-size:var(--calcite-font-size-sm)}.square-table-row{display:table-row}.square-table-cell{display:table-cell}.square-table-label{max-width:95px}.square-table-label-left-bottom{vertical-align:bottom;text-align:left}.square-table-label-right-bottom{vertical-align:bottom;text-align:right}.square-table-label-left-top{vertical-align:top;text-align:left}.square-table-label-right-top{vertical-align:top;text-align:right}`,Z="http://www.w3.org/2000/svg",v=class extends C{constructor(){super(...arguments),this._direction=F(),this.legendElement=null}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=Q}_getLineMarkers(n,r){let e="arrowStart",i="arrowEnd",s=n==="left",t={markerStart:null,markerEnd:null};switch(r){case"HL":s?t.markerStart=`url(#${i})`:t.markerEnd=`url(#${e})`;break;case"LL":t.markerStart=`url(#${i})`;break;case"LH":s?t.markerEnd=`url(#${e})`:t.markerStart=`url(#${i})`;break;default:t.markerEnd=`url(#${e})`;break}return t}render(){let n=this.legendElement,{focus:r,labels:e}=n,i=!!r,s=this._renderRamp(n),t={justifyContent:"center"},l=this._direction==="rtl";return i?h`<div class="diamond-container" style=${f(t)}><div class="diamond-left-column">${l?e.right:e.left}</div><div class="diamond-middle-column"><div class="diamond-middle-column-label">${e.top}</div>${s}<div class="diamond-middle-column-label">${e.bottom}</div></div><div class="diamond-right-column">${l?e.left:e.right}</div></div>`:h`<div class="square-table"><div class="square-table-row"><div class=${m(c("square-table-cell","square-table-label","square-table-label-right-bottom"))}>${l?e.top:e.left}</div><div class="square-table-cell"></div><div class=${m(c("square-table-cell","square-table-label","square-table-label-left-bottom"))}>${l?e.left:e.top}</div></div><div class="square-table-row"><div class="square-table-cell"></div>${s}<div class="square-table-cell"></div></div><div class="square-table-row"><div class=${m(c("square-table-cell","square-table-label","square-table-label-right-top"))}>${l?e.right:e.bottom}</div><div class="square-table-cell"></div><div class=${m(c("square-table-cell","square-table-label","square-table-label-left-top"))}>${l?e.bottom:e.right}</div></div></div>`}_renderRamp(n){let{focus:r,numClasses:e,colors:i,rotation:s}=n,t=this.opacity,l=this.messages.previewRelationshipRampAriaLabel,o=60,u=!!r,d=Math.sqrt(o**2+o**2)+(u?0:5),$=[],k=[],x=[],b=o/e;for(let p=0;p<e;p++){let J=p*b;for(let g=0;g<e;g++){let K=g*b,_=X(i[p][g]),N=Y(null),R={type:"rect",x:K,y:J,width:b,height:b},z=U(_);z&&$.push(z);let B=j(R,_.fill,N,null);B&&k.push(B),x.push(O(R))}}let q=15,w=15,y=10,E;u||(E="margin: -15px -15px -18px -15px");let L=this._getLineMarkers("left",r),S=this._getLineMarkers("right",r),M=P(x),T=D(M,d,d,0,!1,s,!1),G=D(M,d,d,0,!1,u?-45:null,!1),I={filter:this.cssEffectFilter,opacity:t==null?"":`${t}`};return h`<div class=${m(u?"diamond-middle-column-ramp":"square-table-cell")} style=${f(I)}><svg .ariaLabel=${l} height=${d??a} role=img style=${f(E)} width=${d??a} xmlns=${Z}>${W`<defs><marker .id=${"arrowStart"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=5 refY=5><polyline fill=none points="0,0 5,5 0,10" stroke=#555555 stroke-width=1 /></marker><marker .id=${"arrowEnd"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=0 refY=5><polyline fill=none points="5,0 0,5 5,10" stroke=#555555 stroke-width=1 /></marker>${$}</defs><g transform=${T??a}>${k}</g><g transform=${G??a}><line fill=none marker-end=${L.markerEnd??void 0??a} marker-start=${L.markerStart??void 0??a} stroke=#555555 stroke-width=1 x1=${-10} x2=${-10} y1=${o-q} y2=${q} /><line fill=none marker-end=${S.markerEnd??void 0??a} marker-start=${S.markerStart??void 0??a} stroke=#555555 stroke-width=1 x1=${w} x2=${o-w} y1=${o+y} y2=${o+y} /></g>`}</svg></div>`}};A("arcgis-legend-relationship-ramp",v);return v},"applications/Components/svgUtils",b,d,e)
@@ -0,0 +1 @@
1
+ {"headings":{"setColor":"Set color"},"labels":{"aggregatedGeometryGraphicsColor":"Aggregated geometry graphics color","showGraphicsToggle":"Show graphics toggle"},"showGraphics":"Show graphics"}
@@ -1 +1 @@
1
- {"gettingResults":"Getting results","headings":{"features":"Features","functions":"Functions","setColor":"Set color","totalFeatures":"Total: {number}","traceResultsCustom":"{string} results","traceResultsGeneric":"Trace results"},"labels":{"aggregatedGeometryGraphicsColor":"Aggregated geometry graphics color","functionResults":"Function results","numElements":"Number of elements","numFeatures":"Number of features","numFunctions":"Number of functions","traceResultElementsByLayer":"Trace result elements by layer"},"noResultsDescription":"The trace did not return any results.","noResultsHeading":"No results.","noSelectableFeatures":"The trace did not return selectable features. Enable \"Show graphics\" to show aggregated geometry results instead.","noTraceConfigDescription":"Use the inputs tab to configure and run a trace.","noTraceConfigHeading":"No trace has been run.","resultFeaturesAreHidden":"The trace returned selectable features, but they are currently hidden in the results tab.","traceErrors":{"dirtyAreasDiscovered":"One or more dirty areas were discovered. Validate the network topology to ensure no dirty areas intersect traceable network features.","noValidControllers":"No valid subnetwork controllers found. Ensure there is traversability between the starting point(s) and a valid subnetwork controller.","pathNotFound":"Path not found."},"traceFailedDescription":"An error occurred during the trace.","traceFailedHeading":"Trace failed.","unknown":"Unknown"}
1
+ {"gettingResults":"Getting results","headings":{"aggregatedGeometry":"Aggregated geometry","features":"Features","functions":"Functions","traceResultsGeneric":"Trace results"},"labels":{"functionResults":"Function results","numFeatures":"Number of features"},"noResultsDescription":"The trace did not return any results.","noResultsHeading":"No results.","noSelectableFeatures":"The trace did not return selectable features. Enable \"Show graphics\" to show aggregated geometry results instead.","noTraceConfigDescription":"Use the inputs tab to configure and run a trace.","noTraceConfigHeading":"No trace has been run.","resultFeaturesAreHidden":"The trace returned selectable features, but they are currently hidden in the results tab.","traceErrors":{"dirtyAreasDiscovered":"One or more dirty areas were discovered. Validate the network topology to ensure no dirty areas intersect traceable network features.","noValidControllers":"No valid subnetwork controllers found. Ensure there is traversability between the starting point(s) and a valid subnetwork controller.","pathNotFound":"Path not found."},"traceFailedDescription":"An error occurred during the trace.","traceFailedHeading":"Trace failed."}
@@ -1 +1 @@
1
- {"componentLabel":"Validate network topology","actions":{"validateTopology":"Validate"},"errors":{"cannotAcquireVersionLock":"Branch version is locked by another application.","noAdvancedEditingUserTypeExtension":"The logged in account is missing a license for the Advanced Editing user type extension.","noDirtyAreasInExtent":"No dirty area found during validate.","noDirtyAreasLayer":"Could not find the dirty areas layer. Add the dirty areas layer to the map.","noUtilityNetwork":"The selected utility network is unavailable.","noUtilityNetworks":"No utility networks found in the map.","noUtilityNetworkServiceUserTypeExtension":"The logged in account is missing a license for the ArcGIS Utility Network user type extension.","noView":"No map view found.","operationOnlyAllowedByOwner":"Operation only allowed by the owner of the version. Have the version owner attempt the operation, or change the access permissions of the version to public.","sceneViewNotSupported":"Scene view not supported.","utilityNetworkLoadFailed":"An error occurred while loading the selected utility network."},"info":{"validateCanceled":"Validate canceled."},"input":{"selectExtent":{"label":"Extent","options":{"currentExtent":"Current extent","entireExtent":"Entire extent"}},"selectUtilityNetwork":{"label":"Utility Network"}},"status":{"executing":"Executing","success":"Validate successful."}}
1
+ {"componentLabel":"Validate network topology","actions":{"validateTopology":"Validate"},"errors":{"cannotAcquireVersionLock":"Branch version is locked by another application.","noAdvancedEditingUserTypeExtension":"The logged in account is missing a license for the Advanced Editing user type extension.","noDirtyAreasInExtent":"No dirty area found during validate.","noDirtyAreasLayer":"Could not find the dirty areas layer. Add the dirty areas layer to the map.","noUtilityNetwork":"The selected utility network is unavailable.","noUtilityNetworks":"No utility networks found in the map.","noUtilityNetworkServiceUserTypeExtension":"The logged in account is missing a license for the ArcGIS Utility Network user type extension.","noView":"No map view found.","operationDisabledOnDefaultVersion":"Operation disabled on Default version.","operationOnlyAllowedByOwner":"Operation only allowed by the owner of the version. Have the version owner attempt the operation, or change the access permissions of the version to public.","sceneViewNotSupported":"Scene view not supported.","utilityNetworkLoadFailed":"An error occurred while loading the selected utility network."},"info":{"validateCanceled":"Validate canceled."},"input":{"selectExtent":{"label":"Extent","options":{"currentExtent":"Current extent","entireExtent":"Entire extent"}},"selectUtilityNetwork":{"label":"Utility Network"}},"status":{"executing":"Executing","success":"Validate successful."}}