@arcgis/map-components 5.0.6 → 5.0.8

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 (208) hide show
  1. package/dist/cdn/{2QMWNCA2.js → 2BKO4X64.js} +1 -1
  2. package/dist/cdn/{4VZDLCDM.js → 2ERUSYFG.js} +1 -1
  3. package/dist/cdn/{QFDABZBR.js → 2KLBPWCO.js} +1 -1
  4. package/dist/cdn/{5OPJLOFN.js → 2PSYTKRG.js} +1 -1
  5. package/dist/cdn/{IX7OU6IJ.js → 2WZ3RMR7.js} +1 -1
  6. package/dist/cdn/{IZIU4J7M.js → 32Q5BYKS.js} +1 -1
  7. package/dist/cdn/{MJ74362A.js → 33YWYJ4B.js} +1 -1
  8. package/dist/cdn/{RDEHO74Y.js → 3AJGQWWJ.js} +1 -1
  9. package/dist/cdn/{UYJ5XGBA.js → 3MNBJANP.js} +1 -1
  10. package/dist/cdn/{KXSAGSN4.js → 3QMAQRDF.js} +1 -1
  11. package/dist/cdn/{3ARU6HXS.js → 3UQI2KLK.js} +1 -1
  12. package/dist/cdn/{TN6QKFA2.js → 3XA7FNHU.js} +1 -1
  13. package/dist/cdn/{XHWL2OHB.js → 43SFYWBA.js} +1 -1
  14. package/dist/cdn/{32UQZIPD.js → 452XJTUD.js} +1 -1
  15. package/dist/cdn/{QXKVG4VC.js → 4HIKXNLJ.js} +1 -1
  16. package/dist/cdn/{OYAWQBUJ.js → 4K34BUTQ.js} +1 -1
  17. package/dist/cdn/{MBWMVD5N.js → 4MJ6RR6C.js} +1 -1
  18. package/dist/cdn/{QFFQL2UW.js → 4QL2L5HG.js} +1 -1
  19. package/dist/cdn/{C34Y4G3N.js → 4QLSHCCH.js} +1 -1
  20. package/dist/cdn/{IW4OBOPT.js → 4VANT2H2.js} +1 -1
  21. package/dist/cdn/{6T5SHFHI.js → 4Y5ZV64K.js} +1 -1
  22. package/dist/cdn/{3RJECMNO.js → 5226JY7U.js} +1 -1
  23. package/dist/cdn/{HLMDKUOU.js → 57QXQ42V.js} +1 -1
  24. package/dist/cdn/{6FC2Z44G.js → 5HY425PW.js} +1 -1
  25. package/dist/cdn/{GQMWRADC.js → 62PPRW5H.js} +1 -1
  26. package/dist/cdn/{46P3J64W.js → 64DLLWCT.js} +1 -1
  27. package/dist/cdn/{S6XBCSKI.js → 65GHL7AK.js} +1 -1
  28. package/dist/cdn/{MMXCIDBO.js → 6FKMR33M.js} +1 -1
  29. package/dist/cdn/{7BW4265R.js → 6KELW6YE.js} +1 -1
  30. package/dist/cdn/{5KEFHN6T.js → 6Z5BZD4S.js} +1 -1
  31. package/dist/cdn/{BHL7BVTY.js → 7BSE4Y2A.js} +1 -1
  32. package/dist/cdn/{FNPMMKJD.js → 7SBVVOP3.js} +1 -1
  33. package/dist/cdn/7TXQADKX.js +2 -0
  34. package/dist/cdn/{SDOBWEQE.js → 7VUB7AFJ.js} +1 -1
  35. package/dist/cdn/{IXXLA2Z7.js → A3ZA5MCJ.js} +1 -1
  36. package/dist/cdn/{Q4BWNVI4.js → A5GHD7L7.js} +1 -1
  37. package/dist/cdn/{KGXZM7OU.js → AGBHCVRA.js} +1 -1
  38. package/dist/cdn/{UOWJ65WB.js → AJAD4RUP.js} +1 -1
  39. package/dist/cdn/{5M7CI7TV.js → AKBJKSH3.js} +1 -1
  40. package/dist/cdn/{GK3TNRAT.js → ARB7ESUF.js} +1 -1
  41. package/dist/cdn/{ROQLHTVO.js → AWIUYN3W.js} +1 -1
  42. package/dist/cdn/{57QVYCIL.js → AXFOWKQN.js} +1 -1
  43. package/dist/cdn/{3QADA54G.js → AYFGP5ZN.js} +1 -1
  44. package/dist/cdn/BC5B7PGD.js +2 -0
  45. package/dist/cdn/{LG4CKKZJ.js → BGCXNQ5U.js} +1 -1
  46. package/dist/cdn/{CNHU242I.js → BLRU43VQ.js} +1 -1
  47. package/dist/cdn/{QUD4HICL.js → BNQQ7JMQ.js} +1 -1
  48. package/dist/cdn/{LKSP2TYH.js → BWSEQK6S.js} +1 -1
  49. package/dist/cdn/{JHEX6VZF.js → BXEQ2GR7.js} +1 -1
  50. package/dist/cdn/{VAG6UT3R.js → BXMF7CDZ.js} +1 -1
  51. package/dist/cdn/{BLNKE5YR.js → C4OFSKWZ.js} +1 -1
  52. package/dist/cdn/{IOCCNMZU.js → CQ4OP5KR.js} +1 -1
  53. package/dist/cdn/{G7IP6IPD.js → CVVCPCHQ.js} +1 -1
  54. package/dist/cdn/{RWGQCMXU.js → CWMCSQSK.js} +1 -1
  55. package/dist/cdn/{2RM3JPSZ.js → CWTYBVDX.js} +1 -1
  56. package/dist/cdn/{7PXQ5F5K.js → DAXUZZYI.js} +1 -1
  57. package/dist/cdn/{2JNQT3CU.js → DGBQDSJV.js} +1 -1
  58. package/dist/cdn/{CZ3WW6GZ.js → DJ3SEHH7.js} +1 -1
  59. package/dist/cdn/{X7NWAN4R.js → DLCRIX3F.js} +1 -1
  60. package/dist/cdn/{QE7X3ZJG.js → DZXBV52D.js} +1 -1
  61. package/dist/cdn/{PU3CIOMW.js → E4NS5EP3.js} +1 -1
  62. package/dist/cdn/{GRFF5Y4R.js → E52S65JA.js} +1 -1
  63. package/dist/cdn/{4WR7M5OM.js → EZNR44ZZ.js} +1 -1
  64. package/dist/cdn/{DR4N3HTB.js → F3QMZQEN.js} +1 -1
  65. package/dist/cdn/{NLTHGBJD.js → FDCGR4B4.js} +1 -1
  66. package/dist/cdn/{JWUV4MPH.js → FKAXOX2G.js} +1 -1
  67. package/dist/cdn/{RWIYG576.js → FRQBH455.js} +1 -1
  68. package/dist/cdn/{4NCPVAN3.js → FWLGMF7U.js} +1 -1
  69. package/dist/cdn/{WH63C3TF.js → G5CFCDWX.js} +1 -1
  70. package/dist/cdn/{6EBGGCML.js → G6Z2GTC7.js} +1 -1
  71. package/dist/cdn/{5LB3TTX6.js → GCJHT65W.js} +1 -1
  72. package/dist/cdn/{J3SW4HDC.js → GEEP3X2Y.js} +1 -1
  73. package/dist/cdn/{C37KK5NP.js → GHNGYP3W.js} +1 -1
  74. package/dist/cdn/{MW6M3U2C.js → GNF5NJB7.js} +1 -1
  75. package/dist/cdn/{75NISNHG.js → GYOEIXYM.js} +1 -1
  76. package/dist/cdn/{E75BGRH4.js → H5ZGEYHN.js} +1 -1
  77. package/dist/cdn/{JPYIWZET.js → H6NJXUN6.js} +1 -1
  78. package/dist/cdn/{ECQWVBBN.js → HC3MHWTP.js} +1 -1
  79. package/dist/cdn/{HBF7NI2K.js → HEUVUMO7.js} +1 -1
  80. package/dist/cdn/{4JYXRNR3.js → HM67OIIC.js} +1 -1
  81. package/dist/cdn/{6OAJEQLR.js → HX5VKOH7.js} +1 -1
  82. package/dist/cdn/{ABY53DLF.js → I2JJUUZQ.js} +1 -1
  83. package/dist/cdn/{4N2YRLJH.js → I3EZXW2U.js} +1 -1
  84. package/dist/cdn/{DIIHZGZR.js → IB2J54RM.js} +1 -1
  85. package/dist/cdn/{VZOMAMSZ.js → IE2YLVLQ.js} +1 -1
  86. package/dist/cdn/{FPKVLC2S.js → IENGLEJA.js} +1 -1
  87. package/dist/cdn/{SMPH52ZG.js → IPMDK4MT.js} +1 -1
  88. package/dist/cdn/{WPGDCLOF.js → IPN4LJ7V.js} +1 -1
  89. package/dist/cdn/{IQLNEPKQ.js → J3TV3V5W.js} +1 -1
  90. package/dist/cdn/{B77GDHWP.js → JADRITCD.js} +1 -1
  91. package/dist/cdn/{MZQ4MCV4.js → JQA7633S.js} +1 -1
  92. package/dist/cdn/{BE5MCWNQ.js → JTB4D5Y2.js} +1 -1
  93. package/dist/cdn/{BEUT37NH.js → JW4IYKZW.js} +1 -1
  94. package/dist/cdn/{FHPE7GN3.js → JY37VVM4.js} +1 -1
  95. package/dist/cdn/{HQ33F2C2.js → K6KI46YC.js} +1 -1
  96. package/dist/cdn/{GWSF247V.js → KBXRLSRQ.js} +1 -1
  97. package/dist/cdn/{4XWPSCE3.js → KH3CK4NM.js} +1 -1
  98. package/dist/cdn/{3C6GI6FX.js → KLUJHBJX.js} +1 -1
  99. package/dist/cdn/{SHMRXLLT.js → KS2NA752.js} +1 -1
  100. package/dist/cdn/{TJHX7S4T.js → L4TUBH7W.js} +1 -1
  101. package/dist/cdn/{EGKIBLJO.js → L7U7JQYH.js} +1 -1
  102. package/dist/cdn/{JSRA6F62.js → LDESQMMT.js} +1 -1
  103. package/dist/cdn/{RBGK7M3W.js → LFH2LJU7.js} +1 -1
  104. package/dist/cdn/{DWICVKPP.js → LGKCESB4.js} +1 -1
  105. package/dist/cdn/{XH3WZPG4.js → LNKGOWH7.js} +1 -1
  106. package/dist/cdn/{23UI3GZC.js → LNKIDH5D.js} +1 -1
  107. package/dist/cdn/{W3VP6R57.js → LTDNG7YS.js} +1 -1
  108. package/dist/cdn/{XNOKCT3W.js → LU6GBARZ.js} +1 -1
  109. package/dist/cdn/{JOOZASOM.js → M2M7DHX2.js} +1 -1
  110. package/dist/cdn/{CMQVBJYS.js → M2MYLPEX.js} +1 -1
  111. package/dist/cdn/MI2C6GGG.js +2 -0
  112. package/dist/cdn/MPTRSZMX.js +2 -0
  113. package/dist/cdn/{ZLA6JWIL.js → MRRD3ZPK.js} +1 -1
  114. package/dist/cdn/{HAFUKMGJ.js → MS7JRJ6R.js} +1 -1
  115. package/dist/cdn/{N4GUAV3X.js → MYPHE7JL.js} +1 -1
  116. package/dist/cdn/{FL35N4DV.js → N46RUHPV.js} +1 -1
  117. package/dist/cdn/{JBS7G4UI.js → N4RWJWIQ.js} +1 -1
  118. package/dist/cdn/{VLTWAK7Z.js → NIIMT3SS.js} +1 -1
  119. package/dist/cdn/{W72445UR.js → NJBN5VJA.js} +1 -1
  120. package/dist/cdn/{LJBXNM4S.js → NQ7AJXP5.js} +1 -1
  121. package/dist/cdn/{7EXL53DQ.js → NXMSFJ7A.js} +1 -1
  122. package/dist/cdn/{EFXP3BAR.js → NZEXJWD3.js} +1 -1
  123. package/dist/cdn/{P7BSHSKS.js → O2756ASS.js} +1 -1
  124. package/dist/cdn/{EU7XLLJW.js → O2CHOEOT.js} +1 -1
  125. package/dist/cdn/{7WCPDHQW.js → OEEM2YOU.js} +1 -1
  126. package/dist/cdn/{7IYDZBW5.js → OIPOVOS7.js} +1 -1
  127. package/dist/cdn/{JV6FTSZF.js → OIXQVXVX.js} +1 -1
  128. package/dist/cdn/{HG5HM7AV.js → OJS2HGOV.js} +1 -1
  129. package/dist/cdn/{IB6UNF7C.js → OMUYJPC3.js} +1 -1
  130. package/dist/cdn/{ZALH6EK6.js → P6WTQUAO.js} +1 -1
  131. package/dist/cdn/{3VWGWEXT.js → PAIWJPLK.js} +1 -1
  132. package/dist/cdn/{3VBXIZ32.js → PF2QXZ63.js} +1 -1
  133. package/dist/cdn/{FKP6TUEF.js → PTX37QR4.js} +1 -1
  134. package/dist/cdn/{WENBZKCS.js → QDB572U4.js} +1 -1
  135. package/dist/cdn/{QOODCGAQ.js → QDM5XPXZ.js} +1 -1
  136. package/dist/cdn/{QQYM7FA4.js → QITFIJJH.js} +1 -1
  137. package/dist/cdn/{RTYFCVEU.js → QIVD6SID.js} +1 -1
  138. package/dist/cdn/{RZWX3WFZ.js → QK23OZPY.js} +1 -1
  139. package/dist/cdn/{OFOR6IVQ.js → QLKVY23N.js} +1 -1
  140. package/dist/cdn/{7WMSCU6F.js → QOYZ3JEZ.js} +1 -1
  141. package/dist/cdn/QT5JEHEL.js +2 -0
  142. package/dist/cdn/{EPP5LYPS.js → QUMXEH6O.js} +1 -1
  143. package/dist/cdn/{B3H7SS4Z.js → R4BFR6CR.js} +1 -1
  144. package/dist/cdn/{OJCS6OP2.js → RL3YYALU.js} +1 -1
  145. package/dist/cdn/{EJWYTUSN.js → RLGD7QFK.js} +1 -1
  146. package/dist/cdn/{DVJBMKDK.js → RMXIPB4F.js} +1 -1
  147. package/dist/cdn/{W7UGNAAG.js → RS7XEIXD.js} +1 -1
  148. package/dist/cdn/{FKS2JSN2.js → RUNR4PHJ.js} +1 -1
  149. package/dist/cdn/{3OUJ5LT2.js → SKTGMQNL.js} +1 -1
  150. package/dist/cdn/{4UFLSZSK.js → SQ2BHLMX.js} +1 -1
  151. package/dist/cdn/{OQFWYILA.js → SUKF2DNP.js} +1 -1
  152. package/dist/cdn/{EH5576ZY.js → THWXFLFI.js} +1 -1
  153. package/dist/cdn/{DADOJOY5.js → TM62FNIH.js} +1 -1
  154. package/dist/cdn/{XP35KWVR.js → TPGQZBGS.js} +1 -1
  155. package/dist/cdn/{XJAHXINN.js → TX2C55A4.js} +1 -1
  156. package/dist/cdn/{HKERLB3O.js → U2AWOURC.js} +1 -1
  157. package/dist/cdn/{ELJCWFP4.js → UPEU3R2L.js} +1 -1
  158. package/dist/cdn/{AKERMTGF.js → UPJWDEDA.js} +1 -1
  159. package/dist/cdn/{5I472FQZ.js → UPP7IN72.js} +1 -1
  160. package/dist/cdn/{P5EZZH6S.js → UQN4KPNM.js} +1 -1
  161. package/dist/cdn/{6FZBZG62.js → V5KZVJFN.js} +1 -1
  162. package/dist/cdn/V64WJLLP.js +2 -0
  163. package/dist/cdn/{R7FF7B2B.js → V7B4YUMV.js} +1 -1
  164. package/dist/cdn/{HFXULUGO.js → VF3Q4EFN.js} +1 -1
  165. package/dist/cdn/{DJAXABGJ.js → VF5OXNNE.js} +1 -1
  166. package/dist/cdn/{RHJ4GDQU.js → VRQRANLV.js} +1 -1
  167. package/dist/cdn/{4SYS7Z5Q.js → VUEBCRTT.js} +1 -1
  168. package/dist/cdn/{KZUFDOJ2.js → W5ABTJHB.js} +1 -1
  169. package/dist/cdn/{J4OTW75Q.js → WB6NANDC.js} +1 -1
  170. package/dist/cdn/{22334O7S.js → WCBA3F5G.js} +1 -1
  171. package/dist/cdn/{LGCVG3ID.js → WH46XXVN.js} +1 -1
  172. package/dist/cdn/{7QZVR2UR.js → WUDIJWPW.js} +1 -1
  173. package/dist/cdn/{CRZ7YK66.js → X2MXOMPH.js} +1 -1
  174. package/dist/cdn/{5NUQGSOR.js → XFRWBORH.js} +1 -1
  175. package/dist/cdn/{UC5MSQTK.js → Y6QLR3JD.js} +1 -1
  176. package/dist/cdn/{TQQDD3LX.js → YCCZLRZB.js} +1 -1
  177. package/dist/cdn/{ZA47H62T.js → YK2NREJU.js} +1 -1
  178. package/dist/cdn/{CHWAA2DS.js → YLCINN3O.js} +1 -1
  179. package/dist/cdn/{E2HOEDZD.js → YRRD6IOX.js} +1 -1
  180. package/dist/cdn/{RUHKUWCY.js → ZAXHNBK4.js} +1 -1
  181. package/dist/cdn/{XC2MFEBD.js → ZCZAVJTC.js} +1 -1
  182. package/dist/cdn/{CSO4T27H.js → ZDMBWQNI.js} +1 -1
  183. package/dist/cdn/{D2BD7FGS.js → ZLYS2U4C.js} +1 -1
  184. package/dist/cdn/{OMKENRIP.js → ZRR7SK7S.js} +1 -1
  185. package/dist/cdn/{ZBQAM52J.js → ZZDZPOW3.js} +1 -1
  186. package/dist/cdn/assets/fonts/CalciteWebCoreIcons.woff2 +0 -0
  187. package/dist/cdn/index.js +1 -1
  188. package/dist/cdn/main.css +1 -1
  189. package/dist/chunks/layer-utils.js +23 -19
  190. package/dist/chunks/runtime.js +1 -1
  191. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  192. package/dist/components/arcgis-link-chart/customElement.d.ts +14 -14
  193. package/dist/components/arcgis-map/customElement.d.ts +14 -14
  194. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +1 -1
  195. package/dist/components/arcgis-utility-network-trace-location/customElement.js +57 -51
  196. package/dist/docs/api.json +1 -1
  197. package/dist/docs/docs.json +1 -1
  198. package/dist/docs/web-types.json +1 -1
  199. package/package.json +4 -4
  200. package/dist/cdn/2BUAB7HW.js +0 -2
  201. package/dist/cdn/6VN3TPXR.js +0 -2
  202. package/dist/cdn/CPF6OKUS.js +0 -2
  203. package/dist/cdn/MATFNQVX.js +0 -2
  204. package/dist/cdn/UJNWWAKI.js +0 -2
  205. package/dist/cdn/UTIAMQZJ.js +0 -2
  206. package/dist/cdn/assets/fonts/CalciteWebCoreIcons.svg +0 -197
  207. package/dist/cdn/assets/fonts/CalciteWebCoreIcons.ttf +0 -0
  208. package/dist/cdn/assets/fonts/CalciteWebCoreIcons.woff +0 -0
@@ -1,19 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import { c as k } from "../../chunks/runtime.js";
2
+ import { c as T } from "../../chunks/runtime.js";
3
3
  import { css as L, html as p } from "lit";
4
4
  import * as _ from "@arcgis/core/geometry/operators/cutOperator.js";
5
5
  import * as g from "@arcgis/core/geometry/operators/lengthOperator.js";
6
6
  import * as y from "@arcgis/core/geometry/operators/projectOperator.js";
7
- import v from "@arcgis/core/geometry/Polyline.js";
8
- import S from "@arcgis/core/geometry/SpatialReference.js";
7
+ import S from "@arcgis/core/geometry/Polyline.js";
8
+ import v from "@arcgis/core/geometry/SpatialReference.js";
9
9
  import A from "@arcgis/core/Graphic.js";
10
10
  import m from "@arcgis/core/rest/networks/support/TraceLocation.js";
11
11
  import b from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
12
12
  import { LitElement as x, createEvent as w } from "@arcgis/lumina";
13
- import { log as c } from "@arcgis/toolkit/log";
13
+ import { log as l } from "@arcgis/toolkit/log";
14
14
  import { u as I } from "../../chunks/useT9n.js";
15
- const C = L`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
16
- class F extends x {
15
+ import { b as C } from "../../chunks/layer-utils.js";
16
+ const F = L`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
17
+ class G extends x {
17
18
  constructor() {
18
19
  super(...arguments), this.messages = I({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.autoDestroyDisabled = !1, this.arcgisTraceLocationChange = w(), this.arcgisTraceLocationSelectEnd = w(), this.arcgisTraceLocationSelectStart = w();
19
20
  }
@@ -21,7 +22,7 @@ class F extends x {
21
22
  this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, afterHitTest: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, spatialTolerance: 9, autoDestroyDisabled: 5, utilityNetwork: 0 };
22
23
  }
23
24
  static {
24
- this.styles = C;
25
+ this.styles = F;
25
26
  }
26
27
  async destroy() {
27
28
  this._resetAfterSketch(!1), await this.manager.destroy();
@@ -30,54 +31,58 @@ class F extends x {
30
31
  y.isLoaded() || await y.load();
31
32
  }
32
33
  _createPolyline(e, t) {
33
- return new v({
34
+ return new S({
34
35
  hasZ: !1,
35
36
  hasM: !0,
36
37
  paths: e,
37
- spatialReference: new S({ wkid: t })
38
+ spatialReference: new v({ wkid: t })
38
39
  });
39
40
  }
40
41
  _calculatePercentAlong(e, t) {
41
- const r = e.spatialReference, a = this._createPolyline(e.paths, r.wkid), s = t.x - 0.5, n = t.x + 0.5, o = t.y - 0.5, i = t.y + 0.5, l = [
42
+ const r = e.spatialReference, a = this._createPolyline(e.paths, r.wkid), s = t.x - 0.5, n = t.x + 0.5, o = t.y - 0.5, i = t.y + 0.5, c = [
42
43
  [
43
44
  [s, o],
44
45
  [n, i]
45
46
  ]
46
- ], u = this._createPolyline(l, t.spatialReference.wkid), d = y.execute(u, r);
47
- if (!d)
48
- return c("error", this, "Unable to project flag geometry to source geometry spatial reference."), 0.5;
49
- const h = _.execute(a, d);
50
- if (h.length > 0) {
51
- const T = g.execute(a, { unit: "feet" });
47
+ ], u = this._createPolyline(c, t.spatialReference.wkid), h = y.execute(u, r);
48
+ if (!h)
49
+ return l("error", this, "Unable to project flag geometry to source geometry spatial reference."), 0.5;
50
+ const d = _.execute(a, h);
51
+ if (d.length > 0) {
52
+ const k = g.execute(a, { unit: "feet" });
52
53
  let f;
53
- return h[0].paths[0][0][0] === a.paths[0][0][0] ? f = g.execute(h[0], { unit: "feet" }) : h.length > 1 ? f = g.execute(h[1], { unit: "feet" }) : f = 0, f / T;
54
+ return d[0].paths[0][0][0] === a.paths[0][0][0] ? f = g.execute(d[0], { unit: "feet" }) : d.length > 1 ? f = g.execute(d[1], { unit: "feet" }) : f = 0, f / k;
54
55
  }
55
- return c("warn", this, "Unable to cut the source geometry with the flag geometry."), 0.5;
56
+ return l("warn", this, "Unable to cut the source geometry with the flag geometry."), 0.5;
57
+ }
58
+ get _edgeSourceLayerIds() {
59
+ const e = this.utilityNetwork?.dataElement?.domainNetworks;
60
+ return e ? e.flatMap((t) => t.edgeSources).map((t) => t.layerId).filter(Boolean) : [];
56
61
  }
57
62
  async _ensureNecessaryAttributes(e) {
58
- const t = (e.layer?.type === "feature", e.layer), r = t.fieldsIndex?.get("assetgroup") ?? !1, a = t.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", s = t.fieldsIndex?.get("assettype") ?? !1, n = t.fieldsIndex?.get("assettype")?.name ?? "assettype", o = e.getGlobalId(), i = e.getObjectId(), l = r ? !!e.getAttribute(a) : !0, u = s ? !!e.getAttribute(n) : !0;
59
- if (o && i && l && u)
63
+ const t = (e.layer?.type === "feature", e.layer), r = t.fieldsIndex?.get("assetgroup") ?? !1, a = t.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", s = t.fieldsIndex?.get("assettype") ?? !1, n = t.fieldsIndex?.get("assettype")?.name ?? "assettype", o = e.getGlobalId(), i = e.getObjectId(), c = r ? !!e.getAttribute(a) : !0, u = s ? !!e.getAttribute(n) : !0;
64
+ if (o && i && c && u)
60
65
  return e;
61
- const d = t.createQuery();
62
- return d.objectIds = [i], (await t.queryFeatures(d))?.features[0] || null;
66
+ const h = t.createQuery();
67
+ return h.objectIds = [i], (await t.queryFeatures(h))?.features[0] || null;
63
68
  }
64
69
  async _ensureNecessaryAttributesAndGenerateTraceLocation(e, t) {
65
70
  const { view: r } = this;
66
71
  if (!r || e.length === 0) {
67
- c("error", this, "`view` is unavailable or there are no results to process.");
72
+ l("error", this, "`view` is unavailable or there are no results to process.");
68
73
  return;
69
74
  }
70
75
  const a = e[0], s = e.map((i) => {
71
- const l = i, u = l.graphic;
72
- return u.origin = l.layer, u;
76
+ const c = i, u = c.graphic;
77
+ return u.origin = c.layer, u;
73
78
  }), n = this.afterHitTest ? await this.afterHitTest(s).catch(() => (this._resetAfterSketch(!0), null)) : a.graphic;
74
79
  if (!n) {
75
- c("error", this, "No graphic available from hit test results.");
80
+ l("error", this, "No graphic available from hit test results.");
76
81
  return;
77
82
  }
78
83
  const o = await this._ensureNecessaryAttributes(n);
79
84
  if (!o) {
80
- c("error", this, "Unable to ensure necessary attributes on the selected graphic.");
85
+ l("error", this, "Unable to ensure necessary attributes on the selected graphic.");
81
86
  return;
82
87
  }
83
88
  await this._generateTraceLocation(o, t);
@@ -113,10 +118,10 @@ class F extends x {
113
118
  _addFlagGraphic(e, t, r) {
114
119
  const { flagLayer: a, view: s } = this;
115
120
  if (!a || !s)
116
- return c("error", this, "The properties `flagLayer` and `view` are required but either one or both are missing."), null;
121
+ return l("error", this, "The properties `flagLayer` and `view` are required but either one or both are missing."), null;
117
122
  const n = t.geometry?.type;
118
- if (this.traceLocations?.some((l) => l.traceLocation.globalId === e) && n !== "polyline")
119
- return c("warn", this, "A flag with the same globalId already exists."), null;
123
+ if (this.traceLocations?.some((c) => c.traceLocation.globalId === e) && n !== "polyline")
124
+ return l("warn", this, "A flag with the same globalId already exists."), null;
120
125
  const o = this._createFlagSymbol(), i = new A({
121
126
  geometry: r,
122
127
  symbol: o,
@@ -131,19 +136,19 @@ class F extends x {
131
136
  async _generateFlagInfo(e, t) {
132
137
  const { traceLocationType: r, utilityNetwork: a } = this, s = e.getGlobalId() ?? "", n = e.geometry?.type, o = await this._generateItemTitle(e);
133
138
  if (n === "point" || n === "polygon") {
134
- const i = a?.getTerminalConfiguration(e), l = i ? i.terminals[0].id : 1;
139
+ const i = a?.getTerminalConfiguration(e), c = i ? i.terminals[0].id : 1;
135
140
  return {
136
141
  traceLocation: new m({
137
142
  type: r,
138
143
  isFilterBarrier: !1,
139
144
  globalId: s,
140
- terminalId: l
145
+ terminalId: c
141
146
  }),
142
147
  flagProperties: {
143
148
  title: o,
144
149
  expanded: !1,
145
150
  terminalConfiguration: i ?? void 0,
146
- selectedTerminals: i ? /* @__PURE__ */ new Set([l]) : void 0
151
+ selectedTerminals: i ? /* @__PURE__ */ new Set([c]) : void 0
147
152
  },
148
153
  spatialProperties: {
149
154
  mapPoint: t,
@@ -169,19 +174,20 @@ class F extends x {
169
174
  }
170
175
  };
171
176
  } else if (!n) {
172
- const i = a?.getTerminalConfiguration(e), l = i ? i.terminals[0].id : 1;
177
+ const i = C(e.layer) ? e.layer.parent : e.layer, c = i && this._edgeSourceLayerIds.includes(i.layerId), u = a?.getTerminalConfiguration(e), h = u ? u.terminals[0].id : c ? -1 : 1, d = c ? 0.5 : -1;
173
178
  return {
174
179
  traceLocation: new m({
175
180
  type: r,
176
181
  isFilterBarrier: !1,
177
182
  globalId: s,
178
- terminalId: l
183
+ terminalId: h,
184
+ percentAlong: d
179
185
  }),
180
186
  flagProperties: {
181
187
  title: o,
182
188
  expanded: !1,
183
- terminalConfiguration: i ?? void 0,
184
- selectedTerminals: i ? /* @__PURE__ */ new Set([l]) : void 0
189
+ terminalConfiguration: u ?? void 0,
190
+ selectedTerminals: u ? /* @__PURE__ */ new Set([h]) : void 0
185
191
  },
186
192
  spatialProperties: {
187
193
  mapPoint: t
@@ -193,41 +199,41 @@ class F extends x {
193
199
  async _generateTraceLocation(e, t) {
194
200
  const { traceLocations: r } = this, a = e.getGlobalId() ?? "", s = e.geometry?.type, n = await this._generateFlagInfo(e, t);
195
201
  if (!n) {
196
- c("error", this, "Unable to generate flag info for trace location.");
202
+ l("error", this, "Unable to generate flag info for trace location.");
197
203
  return;
198
204
  }
199
205
  const o = r?.filter((i) => i.spatialProperties.mapGraphic?.getGlobalId() === a) ?? [];
200
206
  if (o.length === 0 || s === "polyline") {
201
- if (s === "polyline" && o.length > 0 && o.some((l) => Math.abs(l.traceLocation.percentAlong - n.traceLocation.percentAlong) <= this.spatialTolerance)) {
202
- c("warn", this, "A flag with the same globalId already exists within tolerance.");
207
+ if (s === "polyline" && o.length > 0 && o.some((c) => Math.abs(c.traceLocation.percentAlong - n.traceLocation.percentAlong) <= this.spatialTolerance)) {
208
+ l("warn", this, "A flag with the same globalId already exists within tolerance.");
203
209
  return;
204
210
  }
205
211
  const i = this._addFlagGraphic(a, e, t);
206
212
  if (!i) {
207
- c("warn", this, "Unable to add flag graphic.");
213
+ l("warn", this, "Unable to add flag graphic.");
208
214
  return;
209
215
  }
210
216
  n.spatialProperties.flagGraphic = i, r?.add(n);
211
217
  return;
212
218
  }
213
- c("warn", this, "A flag with the same globalId already exists.");
219
+ l("warn", this, "A flag with the same globalId already exists.");
214
220
  }
215
221
  async _hitTest(e) {
216
222
  const { view: t, utilityNetwork: r } = this;
217
223
  if (!t || !r)
218
- return c("error", this, "Either `utilityNetwork` or `view` is unavailable for hit test."), !0;
224
+ return l("error", this, "Either `utilityNetwork` or `view` is unavailable for hit test."), !0;
219
225
  const a = e.graphic?.geometry, s = this.view?.toScreen(a);
220
226
  if (!s)
221
- return c("warn", this, "No screen point available for hit test."), !1;
227
+ return l("warn", this, "No screen point available for hit test."), !1;
222
228
  const o = (await t.hitTest(s, {
223
229
  include: this.filterLayers
224
230
  })).results.filter((i) => i.type === "graphic" && i?.layer && i.graphic);
225
- return o.length === 0 ? (c("info", this, "No usable hit test results found."), !1) : (this._resetAfterSketch(!1), await this._ensureNecessaryAttributesAndGenerateTraceLocation(o, a), this._resetAfterSketch(!0), !0);
231
+ return o.length === 0 ? (l("info", this, "No usable hit test results found."), !1) : (this._resetAfterSketch(!1), await this._ensureNecessaryAttributesAndGenerateTraceLocation(o, a), this._resetAfterSketch(!0), !0);
226
232
  }
227
233
  _resetAfterSketch(e = !1) {
228
234
  const { view: t } = this;
229
235
  if (!t) {
230
- c("error", this, "View is not available to reset after sketch.");
236
+ l("error", this, "View is not available to reset after sketch.");
231
237
  return;
232
238
  }
233
239
  this._clickHandler?.remove(), this._clickHandler = void 0, "acquireCursor" in t && t.acquireCursor("default"), e && this.arcgisTraceLocationSelectEnd.emit();
@@ -235,7 +241,7 @@ class F extends x {
235
241
  _handleSketchComplete(e) {
236
242
  const { sketchViewModel: t, view: r } = this;
237
243
  if (!t || !r) {
238
- c("error", this, "Either `sketchViewModel` or `view` is not available in sketch complete handler.");
244
+ l("error", this, "Either `sketchViewModel` or `view` is not available in sketch complete handler.");
239
245
  return;
240
246
  }
241
247
  if (e.state === "complete" && e.graphic) {
@@ -249,7 +255,7 @@ class F extends x {
249
255
  async _initiateHitTest() {
250
256
  const { view: e, sketchViewModel: t } = this;
251
257
  if (!e || !t) {
252
- c("error", this, "Cannot initiate hit test; either `view` or `sketchViewModel` not found.");
258
+ l("error", this, "Cannot initiate hit test; either `view` or `sketchViewModel` not found.");
253
259
  return;
254
260
  }
255
261
  this._clickHandler?.remove(), this._clickHandler = t.on("create", this._handleSketchComplete.bind(this)), "acquireCursor" in e && e.acquireCursor("crosshair"), this.sketchViewModel?.create("point");
@@ -257,7 +263,7 @@ class F extends x {
257
263
  async _handleAddButtonClick() {
258
264
  const { view: e, sketchViewModel: t } = this;
259
265
  if (!(e && t)) {
260
- c("error", this, "Cannot add trace location; `view` not found.");
266
+ l("error", this, "Cannot add trace location; `view` not found.");
261
267
  return;
262
268
  }
263
269
  if (this.beforeTraceLocationSelectStart) {
@@ -284,7 +290,7 @@ class F extends x {
284
290
  return p`<div class="root">${this.renderAddLocationBlock()}</div>`;
285
291
  }
286
292
  }
287
- k("arcgis-utility-network-trace-location", F);
293
+ T("arcgis-utility-network-trace-location", G);
288
294
  export {
289
- F as ArcgisUtilityNetworkTraceLocation
295
+ G as ArcgisUtilityNetworkTraceLocation
290
296
  };