@arcgis/core 4.33.0-next.20250211 → 4.33.0-next.20250213

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 (351) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{3c23e567cfb7372c44ba.js → 0a5689348d544090006d.js} +1 -1
  3. package/assets/esri/core/workers/chunks/0b8bf1966653c326e95a.js +1 -0
  4. package/assets/esri/core/workers/chunks/{baee20c14763bef80b09.js → 1249fd2f83caeaefd8ce.js} +1 -1
  5. package/assets/esri/core/workers/chunks/135fb580d8afd8d60811.js +1 -0
  6. package/assets/esri/core/workers/chunks/{946a9890f3621d1dfbc5.js → 144e534d4ac1aafab60d.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{cee3a38b92a48a58c4d0.js → 152becae48572299b07f.js} +1 -1
  8. package/assets/esri/core/workers/chunks/15ad8036736a32652c9b.js +1 -0
  9. package/assets/esri/core/workers/chunks/{f200dca22f9f9bbb8670.js → 17213c3fc63f580e5b73.js} +1 -1
  10. package/assets/esri/core/workers/chunks/211c32244e05164dcd38.js +314 -0
  11. package/assets/esri/core/workers/chunks/219b06cca6aa1e041f40.js +1 -0
  12. package/assets/esri/core/workers/chunks/24e6476f32ad2014d39d.js +1 -0
  13. package/assets/esri/core/workers/chunks/272662e4e28341419b4f.js +1 -0
  14. package/assets/esri/core/workers/chunks/282c2d52011b331d4704.js +1 -0
  15. package/assets/esri/core/workers/chunks/{5fbdb5fea7d6676fcf19.js → 2c1a85a801cb4d9d737e.js} +1 -1
  16. package/assets/esri/core/workers/chunks/2dc35c1c5d83174a2c06.js +1 -0
  17. package/assets/esri/core/workers/chunks/{7f87cf3d6a365d987f69.js → 30bd5b3204e09f516ea2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{e4651d577d297386268e.js → 32035bc69ee18b19623d.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{c04091eea7089dc2e864.js → 35bcb0622234b38d85b4.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{92984981afcbb95828cd.js → 37cfd102b6ab5b959f9d.js} +1 -1
  21. package/assets/esri/core/workers/chunks/3835c2884c55e73dc202.js +1 -0
  22. package/assets/esri/core/workers/chunks/39c595734a9e9cd67e41.js +1 -0
  23. package/assets/esri/core/workers/chunks/{1d51c064045e9c47bd2e.js → 3bad184751fcb26c003c.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{e468bf4ec7402942ad8c.js → 3ebdd0701e77bb28c75d.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{a559db8654b4f83fd79b.js → 3f6516af411256d90a03.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{c83b26ff96e39266adc2.js → 4300c80fa10c5d9141e8.js} +1 -1
  27. package/assets/esri/core/workers/chunks/4848a3e31632d15dc4ce.js +1 -0
  28. package/assets/esri/core/workers/chunks/{77764ca90bdd13ee2167.js → 486df1e042204b90b0dd.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{77764ca90bdd13ee2167.js.LICENSE.txt → 486df1e042204b90b0dd.js.LICENSE.txt} +1 -1
  30. package/assets/esri/core/workers/chunks/52f61e1f5972a72b6b54.js +1 -0
  31. package/assets/esri/core/workers/chunks/544ad8fa4777ba8ec177.js +1 -0
  32. package/assets/esri/core/workers/chunks/{354531dc2f0dea2ad96f.js → 5693d9ce4472a4c5959f.js} +2 -2
  33. package/assets/esri/core/workers/chunks/{354531dc2f0dea2ad96f.js.LICENSE.txt → 5693d9ce4472a4c5959f.js.LICENSE.txt} +1 -1
  34. package/assets/esri/core/workers/chunks/{e56647e61296643c5f84.js → 5719471414810b6a9aec.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{1accbc048b74857269e4.js → 57924f4909f2cbe5d64c.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{b21b152fa15896577242.js → 5b56b271afb0fadf48b4.js} +2 -2
  37. package/assets/esri/core/workers/chunks/{b21b152fa15896577242.js.LICENSE.txt → 5b56b271afb0fadf48b4.js.LICENSE.txt} +1 -1
  38. package/assets/esri/core/workers/chunks/{b3aeda290470dcb2bdd2.js → 5cf08ee5114273163e09.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{76794184ba8c2e66745e.js → 629f4621ba6ffdcaa2f9.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{32d3657dcae89b740f8b.js → 6518954889df2e781c47.js} +2 -2
  41. package/assets/esri/core/workers/chunks/{32d3657dcae89b740f8b.js.LICENSE.txt → 6518954889df2e781c47.js.LICENSE.txt} +1 -1
  42. package/assets/esri/core/workers/chunks/6c64ccf5f64b5025b239.js +1 -0
  43. package/assets/esri/core/workers/chunks/{220b12654b94c94f8d8a.js → 6fa1f1e431aae1794ce3.js} +1 -1
  44. package/assets/esri/core/workers/chunks/82facb23dfaba2819bc7.js +1 -0
  45. package/assets/esri/core/workers/chunks/8722d05ae9b0aa5162a4.js +1 -0
  46. package/assets/esri/core/workers/chunks/89960be0e525d42ccffe.js +1 -0
  47. package/assets/esri/core/workers/chunks/8de4280080296adb1757.js +1 -0
  48. package/assets/esri/core/workers/chunks/{1f443b99653708470f31.js → 96d7f47ea8fbf345101c.js} +1 -1
  49. package/assets/esri/core/workers/chunks/9be12d0df67e2c4c3787.js +1 -0
  50. package/assets/esri/core/workers/chunks/{e6087eda5e3b7e5ad3e1.js → a12afed58acff17708ca.js} +1 -1
  51. package/assets/esri/core/workers/chunks/a80c3ada9e09b8832e9b.js +1 -0
  52. package/assets/esri/core/workers/chunks/a8457210711b663059f0.js +1 -0
  53. package/assets/esri/core/workers/chunks/{95ad76e58452b60fb79f.js → a864ef9b584c83ebf6ae.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{df3d1a8d3f11d52eb30d.js → afdbdc1569b56489c14d.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{308ec51ff4a66f7fcb0d.js → b0952b81d5be214262dd.js} +2 -2
  56. package/assets/esri/core/workers/chunks/{308ec51ff4a66f7fcb0d.js.LICENSE.txt → b0952b81d5be214262dd.js.LICENSE.txt} +1 -1
  57. package/assets/esri/core/workers/chunks/{89e3f7880abd014a62c0.js → b42d26123784997c66e8.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{4040158835f9036967cd.js → b83151b03bbeba466f82.js} +2 -2
  59. package/assets/esri/core/workers/chunks/{4040158835f9036967cd.js.LICENSE.txt → b83151b03bbeba466f82.js.LICENSE.txt} +1 -1
  60. package/assets/esri/core/workers/chunks/{94490937dca566fe2640.js → c061cad8323f0469e7e4.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{fef135e55706d84d1947.js → c4ce3c35b52b7999e877.js} +1 -1
  62. package/assets/esri/core/workers/chunks/cbba0b6bd41d16eacb5c.js +1 -0
  63. package/assets/esri/core/workers/chunks/cc8eb975a543556f88ae.js +1 -0
  64. package/assets/esri/core/workers/chunks/{6e6422eda398774acbc7.js → d60da671aba70485050e.js} +1 -1
  65. package/assets/esri/core/workers/chunks/de638753a30c9aa41bad.js +1 -0
  66. package/assets/esri/core/workers/chunks/de87009542886fad9a2f.js +2 -0
  67. package/assets/esri/core/workers/chunks/{b765670b47d209d7655a.js.LICENSE.txt → de87009542886fad9a2f.js.LICENSE.txt} +1 -1
  68. package/assets/esri/core/workers/chunks/{bb73cd34fbae935ccbcc.js → dff4a9d656b84fe3e052.js} +1 -1
  69. package/assets/esri/core/workers/chunks/ea4c7560e64335f155f9.js +1 -0
  70. package/assets/esri/core/workers/chunks/eac791e3a0bb056a28f3.js +1 -0
  71. package/assets/esri/core/workers/chunks/f088e7db4e7ac85aaff1.js +1 -0
  72. package/assets/esri/core/workers/chunks/{a38cb1fff519bad8abe3.js → f0d28fe4deb7cd894765.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{08980b1ad3d5d67c6390.js → f419aaf3bab086060894.js} +1 -1
  74. package/assets/esri/core/workers/chunks/f52ed527b46c316eb369.js +1 -0
  75. package/assets/esri/core/workers/chunks/{140d0c4285c6978103ea.js → f5ce6af342c02a4b0d15.js} +7 -7
  76. package/assets/esri/core/workers/chunks/{1cbeac3301b6943bb28a.js → fc07d47d44c04f123650.js} +1 -1
  77. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  78. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  79. package/assets/esri/themes/base/_core.scss +4 -0
  80. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +0 -5
  81. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationLayers.scss +80 -0
  82. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationList.scss +14 -0
  83. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +41 -0
  84. package/assets/esri/themes/base/widgets/_FilterBuilder.scss +1 -6
  85. package/assets/esri/themes/dark/main.css +1 -1
  86. package/assets/esri/themes/light/main.css +1 -1
  87. package/assets/esri/themes/light/view.css +1 -1
  88. package/chunks/Bufferer-B-V7yYm-.js +5 -0
  89. package/chunks/ComponentShader.glsl.js +6 -6
  90. package/chunks/Distance2DCalculator-Coa0qAFt.js +5 -0
  91. package/chunks/Envelope.js +1 -1
  92. package/chunks/{GeodeticDistanceCalculator-BsWHOuqE.js → GeodeticDistanceCalculator-D4iQ-_NX.js} +1 -1
  93. package/chunks/Geometry.js +1 -1
  94. package/chunks/OperatorClip.js +1 -1
  95. package/chunks/OperatorCut.js +1 -1
  96. package/chunks/OperatorGeneralize.js +1 -1
  97. package/chunks/OperatorGeodesicBuffer.js +1 -1
  98. package/chunks/OperatorGeodeticArea.js +1 -1
  99. package/chunks/OperatorGeodeticDistance.js +1 -1
  100. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  101. package/chunks/OperatorProximity.js +1 -1
  102. package/chunks/OperatorProximityGeodesic.js +1 -1
  103. package/chunks/OperatorShapePreservingLength.js +1 -1
  104. package/chunks/OperatorShapePreservingProject.js +1 -1
  105. package/chunks/Point2D.js +1 -1
  106. package/chunks/ProjectionTransformation.js +1 -1
  107. package/chunks/QuadraticBezier.js +1 -1
  108. package/chunks/ShadowHighlight.glsl.js +2 -4
  109. package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
  110. package/chunks/disjointOperator.js +1 -1
  111. package/chunks/distanceOperator.js +1 -1
  112. package/chunks/lyr3DWorker.js +1 -1
  113. package/core/libs/gl-matrix-2/factories/mat2df32.js +1 -1
  114. package/core/libs/gl-matrix-2/factories/mat2df64.js +1 -1
  115. package/core/libs/gl-matrix-2/factories/mat2f32.js +1 -1
  116. package/core/libs/gl-matrix-2/factories/mat2f64.js +1 -1
  117. package/core/libs/gl-matrix-2/factories/mat3f32.js +1 -1
  118. package/core/libs/gl-matrix-2/factories/mat3f64.js +1 -1
  119. package/core/libs/gl-matrix-2/factories/mat4f32.js +1 -1
  120. package/core/libs/gl-matrix-2/factories/mat4f64.js +1 -1
  121. package/core/libs/gl-matrix-2/factories/quat2f64.js +1 -1
  122. package/core/libs/gl-matrix-2/factories/vec2f32.js +1 -1
  123. package/core/libs/gl-matrix-2/factories/vec2f64.js +1 -1
  124. package/core/libs/gl-matrix-2/factories/vec3f32.js +1 -1
  125. package/core/libs/gl-matrix-2/factories/vec3f64.js +1 -1
  126. package/core/libs/gl-matrix-2/factories/vec4f32.js +1 -1
  127. package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
  128. package/core/sql.js +1 -1
  129. package/editing/sharedTemplates/SharedTemplate.d.ts +4 -0
  130. package/editing/sharedTemplates/SharedTemplate.js +1 -1
  131. package/editing/sharedTemplates/SharedTemplateMetadata.js +1 -1
  132. package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
  133. package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
  134. package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
  135. package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
  136. package/editing/sharedTemplates/executor/builders/equallySpaced.js +1 -1
  137. package/editing/sharedTemplates/executor/builders/offsetLine.js +1 -1
  138. package/editing/sharedTemplates/executor/builders/offsetPrimaryLine.js +1 -1
  139. package/editing/sharedTemplates/executor/builders/pointAtAllVerticesOfLine.js +1 -1
  140. package/editing/sharedTemplates/executor/builders/pointAtBeginningOfLine.js +1 -1
  141. package/editing/sharedTemplates/executor/builders/pointAtBeginningOfRadial.js +1 -1
  142. package/editing/sharedTemplates/executor/builders/pointAtEndOfLine.js +1 -1
  143. package/editing/sharedTemplates/executor/builders/pointAtInteriorVertices.js +1 -1
  144. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  145. package/editing/sharedTemplates/executor/builders/pointAtNotBeginningOfLine.js +1 -1
  146. package/editing/sharedTemplates/executor/builders/pointAtNotEndOfLine.js +1 -1
  147. package/editing/sharedTemplates/executor/builders/pointAtPolygonCentroid.js +1 -1
  148. package/editing/sharedTemplates/executor/builders/pointAtPolygonNotStart.js +1 -1
  149. package/editing/sharedTemplates/executor/builders/pointAtPolygonStart.js +1 -1
  150. package/editing/sharedTemplates/executor/builders/pointIdentity.js +1 -1
  151. package/editing/sharedTemplates/executor/builders/pointPrimaryIdentity.js +1 -1
  152. package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
  153. package/editing/sharedTemplates/executor/builders/polygonBoundaryTwoPoint.js +1 -1
  154. package/editing/sharedTemplates/executor/builders/polygonIdentity.js +1 -1
  155. package/editing/sharedTemplates/executor/builders/polygonPrimaryIdentity.js +1 -1
  156. package/editing/sharedTemplates/executor/builders/polygonVertices.js +1 -1
  157. package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
  158. package/editing/sharedTemplates/executor/builders/twoPointLines.js +1 -1
  159. package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
  160. package/editing/sharedTemplates/executor/support/createServiceEdit.js +1 -1
  161. package/editing/sharedTemplates/executor/support/executorUtils.js +1 -1
  162. package/editing/sharedTemplates/templateDefinitions/GroupTemplateDefinition.js +1 -1
  163. package/editing/sharedTemplates/templateDefinitions/PresetTemplateDefinition.js +1 -1
  164. package/editing/sharedTemplates/templateDefinitions/parts/builders/builderUtils.js +1 -1
  165. package/editing/templateUtils.js +1 -1
  166. package/geometry/operators/extendOperator.js +1 -1
  167. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  168. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  169. package/geometry/operators/gx/operatorBuffer.js +1 -1
  170. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  171. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  172. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  173. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  174. package/geometry/operators/gx/operatorOffset.js +1 -1
  175. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  176. package/geometry/operators/gx/operatorSimplify.js +1 -1
  177. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  178. package/geometry/operators/gx/operatorUnion.js +1 -1
  179. package/geometry/operators/isNearOperator.js +1 -1
  180. package/geometry/operators/json/disjointOperator.js +1 -1
  181. package/geometry/operators/projectOperator.js +1 -1
  182. package/geometry/operators/reshapeOperator.js +1 -1
  183. package/geometry/operators/shapePreservingProjectOperator.js +1 -1
  184. package/geometry/operators/support/apiConverter.js +1 -1
  185. package/geometry/operators/support/initNoPeFactory.js +1 -1
  186. package/geometry/operators/support/jsonConverter.js +1 -1
  187. package/geometry/support/DoubleArray.js +1 -1
  188. package/geometry/support/UCharArray.js +5 -0
  189. package/geometry/support/UShortArray.js +5 -0
  190. package/interfaces.d.ts +117 -67
  191. package/layers/VectorTileLayer.js +1 -1
  192. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  193. package/layers/mixins/operationalLayers.js +1 -1
  194. package/layers/save/featureLayerUtils.js +1 -1
  195. package/layers/save/utils.js +1 -1
  196. package/layers/support/SubtypeSublayer.js +1 -1
  197. package/layers/support/commonProperties.js +1 -1
  198. package/layers/support/rasterFunctions/stretchUtils.js +1 -1
  199. package/layers/support/wmsUtils.js +1 -1
  200. package/networks/Network.js +1 -1
  201. package/networks/RulesTable.js +1 -1
  202. package/networks/UtilityNetwork.js +1 -1
  203. package/networks/support/typeUtils.js +1 -1
  204. package/package.json +3 -3
  205. package/portal/Portal.js +1 -1
  206. package/renderers/support/RasterSymbolizer.js +1 -1
  207. package/rest/print.js +1 -1
  208. package/support/revision.js +1 -1
  209. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  210. package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
  211. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  212. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  213. package/views/2d/layers/LayerView2D.js +1 -1
  214. package/views/2d/layers/MapNotesLayerView2D.js +1 -1
  215. package/views/2d/layers/RouteLayerView2D.js +1 -1
  216. package/views/2d/layers/features/FeatureContainer.js +1 -1
  217. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  218. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  219. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
  220. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  221. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  222. package/views/2d/layers/support/HighlightCounter.js +1 -1
  223. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  224. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  225. package/views/3d/environment/EnvironmentManager.js +1 -1
  226. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  227. package/views/3d/environment/Fog.js +1 -1
  228. package/views/3d/layers/I3SMeshView3D.js +1 -1
  229. package/views/3d/layers/MediaLayerView3D.js +1 -1
  230. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  231. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  232. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  233. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  234. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  235. package/views/3d/layers/graphics/GraphicsCorePerformanceInfo.js +1 -1
  236. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  237. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  238. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  239. package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
  240. package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
  241. package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
  242. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  243. package/views/3d/support/DisplayQualityProfile.js +1 -1
  244. package/views/3d/support/QualitySettings.js +1 -1
  245. package/views/3d/terrain/OverlayManager.js +1 -1
  246. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  247. package/views/3d/webgl-engine/lib/AnimationTimer.js +1 -1
  248. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  249. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  250. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  251. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  252. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  253. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  254. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  255. package/views/3d/webgl-engine/lib/textureUtils.js +1 -1
  256. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  257. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  258. package/views/SceneView.js +1 -1
  259. package/views/layers/LayerView.js +1 -1
  260. package/views/support/Scheduler.js +1 -1
  261. package/views/webgl/Parameters.js +1 -1
  262. package/views/webgl/RenderingContext.js +1 -1
  263. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  264. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  265. package/widgets/AreaMeasurement2D.js +1 -1
  266. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  267. package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
  268. package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
  269. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  270. package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
  271. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  272. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  273. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  274. package/widgets/BatchAttributeForm.js +1 -1
  275. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  276. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  277. package/widgets/DistanceMeasurement2D.js +1 -1
  278. package/widgets/Editor/AddAssociationWorkflow.js +5 -0
  279. package/widgets/Editor/AddAssociationWorkflowData.js +5 -0
  280. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  281. package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
  282. package/widgets/Editor/EditorViewModel.js +1 -1
  283. package/widgets/Editor/UpdateWorkflow.js +1 -1
  284. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  285. package/widgets/Editor/components/PendingFeatureList.js +1 -1
  286. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  287. package/widgets/Editor/modelUploadUtils.js +1 -1
  288. package/widgets/Editor/workflowUtils.js +1 -1
  289. package/widgets/Editor.js +1 -1
  290. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  291. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  292. package/widgets/Feature/FeatureViewModel.js +1 -1
  293. package/widgets/Feature/support/featureUtils.js +1 -1
  294. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  295. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +5 -0
  296. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +5 -0
  297. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  298. package/widgets/FeatureForm/UtilityNetworkAssociationAddAssociationViewModel.js +5 -0
  299. package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
  300. package/widgets/FeatureForm.js +1 -1
  301. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  302. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  303. package/widgets/OrientedImageryViewer/constants.js +1 -1
  304. package/widgets/OrientedImageryViewer/galleryUtils.js +5 -0
  305. package/widgets/OrientedImageryViewer/utils.js +1 -1
  306. package/widgets/OrientedImageryViewer.js +1 -1
  307. package/widgets/Sketch/support/sketchUtils.js +1 -1
  308. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.d.ts +2 -2
  309. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
  310. package/widgets/support/FilterBuilder.js +1 -1
  311. package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
  312. package/widgets/support/FilterCondition.js +1 -1
  313. package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +5 -0
  314. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
  315. package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +1 -1
  316. package/assets/esri/core/workers/chunks/08c4b585290efc98ca5d.js +0 -1
  317. package/assets/esri/core/workers/chunks/117e7a12af77c761efb5.js +0 -1
  318. package/assets/esri/core/workers/chunks/12199e8abf377ffc27cd.js +0 -1
  319. package/assets/esri/core/workers/chunks/324a5547c64a3bae670d.js +0 -1
  320. package/assets/esri/core/workers/chunks/3c8e5b5fb52611e30ed6.js +0 -1
  321. package/assets/esri/core/workers/chunks/4be5e453fe54f5631659.js +0 -1
  322. package/assets/esri/core/workers/chunks/5be7cf1564e756c24066.js +0 -1
  323. package/assets/esri/core/workers/chunks/5eceedac9b2b4d1ef133.js +0 -1
  324. package/assets/esri/core/workers/chunks/6c9bb00f33649ab59dab.js +0 -314
  325. package/assets/esri/core/workers/chunks/6d79ec15d1858839f576.js +0 -1
  326. package/assets/esri/core/workers/chunks/74e0116ae84def626c87.js +0 -1
  327. package/assets/esri/core/workers/chunks/7966c245a073c85f04b1.js +0 -1
  328. package/assets/esri/core/workers/chunks/7e3b374f906441cd7fb0.js +0 -1
  329. package/assets/esri/core/workers/chunks/84c1c3336011a1b79669.js +0 -1
  330. package/assets/esri/core/workers/chunks/88a34690480d3658bad8.js +0 -1
  331. package/assets/esri/core/workers/chunks/8bd51b5b392dfacc922f.js +0 -1
  332. package/assets/esri/core/workers/chunks/9c6380af3bc3130658e1.js +0 -1
  333. package/assets/esri/core/workers/chunks/9e7895e8201127ffe0a8.js +0 -1
  334. package/assets/esri/core/workers/chunks/a5e9ea13e844a62b2a7f.js +0 -1
  335. package/assets/esri/core/workers/chunks/a6ec3665bde2af8a96e6.js +0 -1
  336. package/assets/esri/core/workers/chunks/b18620fc15707e4413a1.js +0 -1
  337. package/assets/esri/core/workers/chunks/b765670b47d209d7655a.js +0 -2
  338. package/assets/esri/core/workers/chunks/c249ad935f54d3b49ae3.js +0 -1
  339. package/assets/esri/core/workers/chunks/c7927c2d5414f19defd5.js +0 -1
  340. package/assets/esri/core/workers/chunks/d27a199fd8e2ade69254.js +0 -1
  341. package/assets/esri/core/workers/chunks/debfb75a94b66b58cbbc.js +0 -1
  342. package/assets/esri/core/workers/chunks/e71b780d1e6a32f303b7.js +0 -1
  343. package/assets/esri/core/workers/chunks/f285ed5425b31123d2bc.js +0 -1
  344. package/assets/esri/core/workers/chunks/f9070edd8e0b2a57af79.js +0 -1
  345. package/assets/esri/core/workers/chunks/faf9063420262ea40fd8.js +0 -1
  346. package/chunks/Bufferer-DjC-SKTJ.js +0 -5
  347. package/chunks/Distance2DCalculator-8-JrFGHH.js +0 -5
  348. package/editing/sharedTemplates/support/sharedTemplateUtils.js +0 -5
  349. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationSettings.js +0 -5
  350. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.d.ts +0 -4
  351. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +0 -5
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Accessor.js";import{watch as i,initial as o}from"../../../core/reactiveUtils.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as l}from"../../../core/accessorSupport/decorators/subclass.js";import{isStringField as s,isNumericField as n,isObjectIDField as a,isGlobalIDField as d,isIntegerField as p,isTimeOnlyField as u,normalizeFieldName as m}from"../../../layers/support/fieldUtils.js";import{defaultOperatorNamesByFieldType as c}from"./conditionUtils.js";let y=class extends t{constructor(e){super(e),this.fieldName=null,this.layer=null,this.operator="is",this.operators=c,this.value=null}initialize(){this.addHandles(i((()=>this.layer),(async e=>{e&&!e.loaded&&"loading"!==e.loadStatus&&await e.load()}),o))}get domain(){const{fieldName:e,layer:t}=this;if(e&&t)return t.getFieldDomain(e)}get field(){const{fieldName:e,layer:t}=this;if(e&&t)return t.fieldsIndex.get(e)}get fields(){return(this.layer?.fields??[]).filter((e=>!!(s(e)||n(e)||a(e)||d(e))))}get fieldLabel(){const{field:e}=this;return e&&(e.alias||e.name)||""}get isIdField(){const{field:e}=this;return!!e&&(a(e)||d(e))}get isIntegerField(){return p(this.field)}get isNumericField(){return n(this.field)}get isStringField(){return s(this.field)}get isTimeOnlyField(){return u(this.field)}get normalizedFieldName(){return m(this.field?.name)}get state(){const{layer:e}=this;return e?e.loaded?"ready":"loading":"disabled"}get valueAsString(){const{value:e}=this;return null==e||""===e?"":`${e}`}get whereClause(){const{normalizedFieldName:e,operator:t,valueAsString:i}=this;return e&&t?"isBlank"===t?`${e} IS NULL`:"isNotBlank"===t?`${e} IS NOT NULL`:"isEmpty"===t?`${e} = ''`:"isNotEmpty"===t?`${e} <> ''`:""===i?null:"is"===t?`${e} = '${i}'`:"isNot"===t?`${e} <> '%${i}%'`:"startsWith"===t?`${e} LIKE '${i}%'`:"endsWith"===t?`${e} LIKE '%${i}'`:"contains"===t?`${e} LIKE '%${i}%'`:"doesNotContain"===t?`${e} NOT LIKE '%${i}%'`:null:null}};e([r()],y.prototype,"domain",null),e([r()],y.prototype,"field",null),e([r()],y.prototype,"fields",null),e([r()],y.prototype,"fieldLabel",null),e([r()],y.prototype,"fieldName",void 0),e([r()],y.prototype,"isIdField",null),e([r()],y.prototype,"isIntegerField",null),e([r()],y.prototype,"isNumericField",null),e([r()],y.prototype,"isStringField",null),e([r()],y.prototype,"isTimeOnlyField",null),e([r()],y.prototype,"layer",void 0),e([r()],y.prototype,"normalizedFieldName",null),e([r()],y.prototype,"operator",void 0),e([r()],y.prototype,"operators",void 0),e([r()],y.prototype,"state",null),e([r()],y.prototype,"value",void 0),e([r()],y.prototype,"valueAsString",null),e([r()],y.prototype,"whereClause",null),y=e([l("esri.widgets.support.FilterCondition.FilterConditionViewModel")],y);const f=y;export{f as default};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Accessor.js";import{watch as i,initial as l}from"../../../core/reactiveUtils.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{isStringField as s,isNumericField as n,isObjectIDField as a,isGlobalIDField as d,isIntegerField as p,isTimeOnlyField as u,normalizeFieldName as m}from"../../../layers/support/fieldUtils.js";import{defaultOperatorNamesByFieldType as c}from"./conditionUtils.js";let y=class extends t{constructor(e){super(e),this.fieldName=null,this.layer=null,this.operator="is",this.operators=c,this.value=null}initialize(){this.addHandles(i((()=>this.layer),(async e=>{e&&!e.loaded&&await e.load()}),l))}get domain(){const{fieldName:e,layer:t}=this;if(e&&t)return t.getFieldDomain(e)}get field(){const{fieldName:e,layer:t}=this;if(e&&t)return t.fieldsIndex.get(e)}get fields(){return(this.layer?.fields??[]).filter((e=>!!(s(e)||n(e)||a(e)||d(e))))}get fieldLabel(){const{field:e}=this;return e&&(e.alias||e.name)||""}get isObjectIDField(){const{field:e}=this;return!!e&&a(e)}get isGlobalIDField(){const{field:e}=this;return!!e&&d(e)}get isIntegerField(){return p(this.field)}get isNumericField(){return n(this.field)}get isStringField(){return s(this.field)}get isTimeOnlyField(){return u(this.field)}get normalizedFieldName(){return m(this.field?.name)}get state(){const{layer:e}=this;return e?e.loaded?"ready":"loading":"disabled"}get valueAsString(){const{value:e}=this;return null==e||""===e?"":`${e}`}get normalizedValue(){const{value:e,isNumericField:t,isObjectIDField:i}=this;return null==e||""===e?"":t||i?`${e}`:`'${e}'`}get whereClause(){const{normalizedFieldName:e,operator:t,normalizedValue:i}=this;return e&&t?"isBlank"===t?`${e} IS NULL`:"isNotBlank"===t?`${e} IS NOT NULL`:"isEmpty"===t?`${e} = ''`:"isNotEmpty"===t?`${e} <> ''`:""===i?null:"is"===t?`${e} = ${i}`:"isNot"===t?`${e} <> ${i}`:"startsWith"===t?`${e} LIKE ${i}%`:"endsWith"===t?`${e} LIKE %${i}`:"contains"===t?`${e} LIKE %${i}%`:"doesNotContain"===t?`${e} NOT LIKE %${i}%`:null:null}};e([r()],y.prototype,"domain",null),e([r()],y.prototype,"field",null),e([r()],y.prototype,"fields",null),e([r()],y.prototype,"fieldLabel",null),e([r()],y.prototype,"fieldName",void 0),e([r()],y.prototype,"isObjectIDField",null),e([r()],y.prototype,"isIntegerField",null),e([r()],y.prototype,"isNumericField",null),e([r()],y.prototype,"isStringField",null),e([r()],y.prototype,"isTimeOnlyField",null),e([r()],y.prototype,"layer",void 0),e([r()],y.prototype,"normalizedFieldName",null),e([r()],y.prototype,"operator",void 0),e([r()],y.prototype,"operators",void 0),e([r()],y.prototype,"state",null),e([r()],y.prototype,"value",void 0),e([r()],y.prototype,"valueAsString",null),e([r()],y.prototype,"normalizedValue",null),e([r()],y.prototype,"whereClause",null),y=e([o("esri.widgets.support.FilterCondition.FilterConditionViewModel")],y);const f=y;export{f as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../chunks/tslib.es6.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{cast as i}from"../../core/accessorSupport/decorators/cast.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as r}from"../../core/accessorSupport/decorators/subclass.js";import o from"../Widget.js";import{loadCalciteComponents as l}from"./componentsUtils.js";import"./widgetUtils.js";import{messageBundle as s}from"./decorators/messageBundle.js";import{tsx as n}from"./jsxFactory.js";import a from"./FilterCondition/FilterConditionViewModel.js";const d={},p="esri-filter-condition",u={base:p,container:`${p}__container`,valueInputContainer:`${p}__value-input-container`};let c=class extends o{constructor(e,t){super(e,t),this.messages=null,this.messagesCommon=null,this.viewModel=new a,this.visibleElements={...d}}loadDependencies(){return l({input:()=>import("@esri/calcite-components/dist/components/calcite-input"),option:()=>import("@esri/calcite-components/dist/components/calcite-option"),select:()=>import("@esri/calcite-components/dist/components/calcite-select")})}get _defaultFieldName(){const{fields:e,fieldName:t}=this;return t||(e?.length?e[0].name:void 0)}get _valueInputType(){const{viewModel:e}=this;return e.isNumericField||e.isIdField?"number":"text"}get _visibleOperators(){const{field:e,operators:t,viewModel:i}=this;return e?i.isStringField?t.string:i.isNumericField?t.number:i.isIdField?t.id:[]:[]}get _isValueInputHidden(){const{operator:e}=this;return!!e&&["isBlank","isNotBlank","isEmpty","isNotEmpty"].includes(e)}get domain(){return this.viewModel.domain}get field(){return this.viewModel.field}get fields(){return this.viewModel.fields}get fieldLabel(){return this.viewModel.fieldLabel}get fieldName(){return this.viewModel.fieldName}set fieldName(e){this.viewModel.fieldName=e}get layer(){return this.viewModel.layer}set layer(e){this.viewModel.layer=e}get normalizedFieldName(){return this.viewModel.normalizedFieldName}get operator(){return this.viewModel.operator}set operator(e){this.viewModel.operator=e}get operators(){return this.viewModel.operators}set operators(e){this.viewModel.operators=e}get state(){return this.viewModel.state}get value(){return this.viewModel.value}set value(e){this.viewModel.value=e}get valueAsString(){return this.viewModel.valueAsString}castVisibleElements(e){return{...d,...e}}get whereClause(){return this.viewModel.whereClause}render(){return n("div",{class:u.base},this._renderFieldSelection(),this._renderOperatorSelection(),this._renderValueInput())}_renderFieldSelection(){const e=this.normalizedFieldName;return n("div",null,n("calcite-select",{afterCreate:()=>{this.fieldName||(this.fieldName=this._defaultFieldName)},bind:this,label:this.messages.chooseField,width:"full",onCalciteSelectChange:({currentTarget:e})=>{this.fieldName=e.value}},this.fields.map((t=>this._renderOption(t.name,t.alias,e)))))}_renderOperatorSelection(){const{_visibleOperators:e,messages:t,operator:i}=this;if(e.length)return n("div",null,n("calcite-select",{afterUpdate:e=>{const t=e.value;this._visibleOperators.includes(t)||(this.operator=this._visibleOperators[0])},bind:this,label:t.operator,required:!0,width:"full",onCalciteSelectChange:e=>{this.operator=e.currentTarget.value}},e.map((e=>this._renderOption(e,t.operators[e],i)))))}_renderOption(e,t,i){return n("calcite-option",{key:e,label:t??e,selected:e===i,value:e})}_renderValueInput(){const{valueAsString:e,domain:t,messages:i,operator:r}=this;if(!this._isValueInputHidden)return"coded-value"===t?.type&&t.codedValues.length&&"is"===r?n("div",{key:"value-select"},n("calcite-select",{afterCreate:()=>{this.value||(this.value=`${t.codedValues[0].code}`)},bind:this,label:i.value,required:!0,width:"full",onCalciteSelectChange:({currentTarget:e})=>{this._onValueChange(e.value)}},t.codedValues.map((({code:t,name:i})=>this._renderOption(`${t}`,i,e))))):n("div",{class:u.valueInputContainer,key:"value-input"},n("calcite-input",{label:i.value,type:this._valueInputType,value:e,onCalciteInputInput:({currentTarget:e})=>{this._onValueChange(e.value)}}))}_onValueChange(e){const{viewModel:t}=this;e&&""!==e?t.isStringField?this.value=e.toString():(t.isNumericField||t.isIdField)&&(this.value=parseFloat(e)):this.value=null}};e([t()],c.prototype,"_defaultFieldName",null),e([t()],c.prototype,"_valueInputType",null),e([t()],c.prototype,"_visibleOperators",null),e([t()],c.prototype,"_isValueInputHidden",null),e([t()],c.prototype,"domain",null),e([t()],c.prototype,"field",null),e([t()],c.prototype,"fields",null),e([t()],c.prototype,"fieldLabel",null),e([t()],c.prototype,"fieldName",null),e([t()],c.prototype,"layer",null),e([t(),s("esri/widgets/support/FilterCondition/t9n/FilterCondition")],c.prototype,"messages",void 0),e([t(),s("esri/t9n/common")],c.prototype,"messagesCommon",void 0),e([t()],c.prototype,"normalizedFieldName",null),e([t()],c.prototype,"operator",null),e([t()],c.prototype,"operators",null),e([t()],c.prototype,"state",null),e([t()],c.prototype,"value",null),e([t()],c.prototype,"valueAsString",null),e([t()],c.prototype,"viewModel",void 0),e([t()],c.prototype,"visibleElements",void 0),e([i("visibleElements")],c.prototype,"castVisibleElements",null),e([t()],c.prototype,"whereClause",null),c=e([r("esri.widgets.support.FilterCondition")],c);const m=c;export{m as default};
5
+ import{_ as e}from"../../chunks/tslib.es6.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{cast as i}from"../../core/accessorSupport/decorators/cast.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import o from"../Widget.js";import{loadCalciteComponents as r}from"./componentsUtils.js";import"./widgetUtils.js";import{messageBundle as s}from"./decorators/messageBundle.js";import{tsx as n}from"./jsxFactory.js";import a from"./FilterCondition/FilterConditionViewModel.js";const d={},p="esri-filter-condition",u={base:p,container:`${p}__container`,valueInputContainer:`${p}__value-input-container`};let c=class extends o{constructor(e,t){super(e,t),this.messages=null,this.messagesCommon=null,this.viewModel=new a,this.visibleElements={...d}}loadDependencies(){return r({input:()=>import("@esri/calcite-components/dist/components/calcite-input"),option:()=>import("@esri/calcite-components/dist/components/calcite-option"),select:()=>import("@esri/calcite-components/dist/components/calcite-select")})}get _defaultFieldName(){const{fields:e,fieldName:t}=this;return t||(e?.length?e[0].name:void 0)}get _valueInputType(){const{viewModel:e}=this;return e.isNumericField||e.isObjectIDField?"number":"text"}get _visibleOperators(){const{field:e,operators:t,viewModel:i}=this;return e?i.isStringField||i.isGlobalIDField?t.string:i.isNumericField?t.number:i.isObjectIDField?t.id:[]:[]}get _isValueInputHidden(){const{operator:e}=this;return!!e&&["isBlank","isNotBlank","isEmpty","isNotEmpty"].includes(e)}get domain(){return this.viewModel.domain}get field(){return this.viewModel.field}get fields(){return this.viewModel.fields}get fieldLabel(){return this.viewModel.fieldLabel}get fieldName(){return this.viewModel.fieldName}set fieldName(e){this.viewModel.fieldName=e}get layer(){return this.viewModel.layer}set layer(e){this.viewModel.layer=e}get normalizedFieldName(){return this.viewModel.normalizedFieldName}get operator(){return this.viewModel.operator}set operator(e){this.viewModel.operator=e}get operators(){return this.viewModel.operators}set operators(e){this.viewModel.operators=e}get state(){return this.viewModel.state}get value(){return this.viewModel.value}set value(e){this.viewModel.value=e}get valueAsString(){return this.viewModel.valueAsString}castVisibleElements(e){return{...d,...e}}get whereClause(){return this.viewModel.whereClause}render(){return n("div",{class:u.base},this._renderFieldSelection(),this._renderOperatorSelection(),this._renderValueInput())}_renderFieldSelection(){const e=this.normalizedFieldName;return n("div",null,n("calcite-select",{afterCreate:()=>{this.fieldName||(this.fieldName=this._defaultFieldName)},bind:this,label:this.messages.chooseField,width:"full",onCalciteSelectChange:({currentTarget:e})=>{this.fieldName=e.value}},this.fields.map((t=>this._renderOption(t.name,t.alias,e)))))}_renderOperatorSelection(){const{_visibleOperators:e,messages:t,operator:i}=this;if(e.length)return n("div",null,n("calcite-select",{afterUpdate:e=>{const t=e.value;this._visibleOperators.includes(t)||(this.operator=this._visibleOperators[0])},bind:this,label:t.operator,required:!0,width:"full",onCalciteSelectChange:e=>{this.operator=e.currentTarget.value}},e.map((e=>this._renderOption(e,t.operators[e],i)))))}_renderOption(e,t,i){return n("calcite-option",{key:e,label:t??e,selected:e===i,value:e})}_renderValueInput(){const{valueAsString:e,domain:t,messages:i,operator:l}=this;if(!this._isValueInputHidden)return"coded-value"===t?.type&&t.codedValues.length&&"is"===l?n("div",{key:"value-select"},n("calcite-select",{afterCreate:()=>{this.value||(this.value=`${t.codedValues[0].code}`)},bind:this,label:i.value,required:!0,width:"full",onCalciteSelectChange:({currentTarget:e})=>{this._onValueChange(e.value)}},t.codedValues.map((({code:t,name:i})=>this._renderOption(`${t}`,i,e))))):n("div",{class:u.valueInputContainer,key:"value-input"},n("calcite-input",{label:i.value,type:this._valueInputType,value:e,onCalciteInputInput:({currentTarget:e})=>{this._onValueChange(e.value)}}))}_onValueChange(e){const{viewModel:t}=this;e&&""!==e?t.isStringField||t.isGlobalIDField?this.value=e.toString():(t.isNumericField||t.isObjectIDField)&&(this.value=parseFloat(e)):this.value=null}};e([t()],c.prototype,"_defaultFieldName",null),e([t()],c.prototype,"_valueInputType",null),e([t()],c.prototype,"_visibleOperators",null),e([t()],c.prototype,"_isValueInputHidden",null),e([t()],c.prototype,"domain",null),e([t()],c.prototype,"field",null),e([t()],c.prototype,"fields",null),e([t()],c.prototype,"fieldLabel",null),e([t()],c.prototype,"fieldName",null),e([t()],c.prototype,"layer",null),e([t(),s("esri/widgets/support/FilterCondition/t9n/FilterCondition")],c.prototype,"messages",void 0),e([t(),s("esri/t9n/common")],c.prototype,"messagesCommon",void 0),e([t()],c.prototype,"normalizedFieldName",null),e([t()],c.prototype,"operator",null),e([t()],c.prototype,"operators",null),e([t()],c.prototype,"state",null),e([t()],c.prototype,"value",null),e([t()],c.prototype,"valueAsString",null),e([t()],c.prototype,"viewModel",void 0),e([t()],c.prototype,"visibleElements",void 0),e([i("visibleElements")],c.prototype,"castVisibleElements",null),e([t()],c.prototype,"whereClause",null),c=e([l("esri.widgets.support.FilterCondition")],c);const m=c;export{m as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
+ */
5
+ import{_ as t}from"../../../chunks/tslib.es6.js";import e from"../../../Graphic.js";import o from"../../../core/Accessor.js";import s from"../../../core/Clonable.js";import r from"../../../core/Collection.js";import i from"../../../core/Identifiable.js";import{ignoreAbortErrors as a,debounce as n}from"../../../core/promiseUtils.js";import c from"../../../core/ReactiveMap.js";import{watch as l,initial as u}from"../../../core/reactiveUtils.js";import{property as d}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as y}from"../../../core/accessorSupport/decorators/subclass.js";import{isSubtypeSublayer as h}from"../../../layers/support/layerUtils.js";import p from"../../../rest/networks/support/NetworkElement.js";import m from"../../../rest/support/Query.js";import{featureUtilityNetworkFields as g}from"../../Feature/FeatureUtilityNetworkAssociations/resources.js";import{findUtilityNetwork as A}from"../../Feature/support/featureUtils.js";const b=100;let w=class extends(s.ClonableMixin(i.IdentifiableMixin(o))){constructor(t){super(t),this._loaded=!1,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.networkSourceIdsInUse=new Set,this.source="popup",this.description=null,this.graphic=null,this.layer=null,this.map=null,this.featureCount=0,this.associationTypes=null,this.showAllEnabled=!1,this.title=null,this.attachmentsFeatureCount=0,this.structureFeatureCount=0,this.contentFeatureCount=0,this.containerFeatureCount=0,this.connectivityFeatureCount=0,this._queryOpenAssociationType=async()=>{this.activeAssociationType&&await this._queryDebounced(this.activeAssociationType)},this._cancelQuery=()=>{const{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{const{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._queryController=async t=>{this._cancelQuery();const e=new AbortController;this._queryAbortController=e,await a(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();const t=new AbortController;this._queryFeatureCountAbortController=t,await a(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=n(this._queryController,b),this._queryFeatureCountDebounced=n(this._queryFeatureCountController,b)}initialize(){this.addHandles([l((()=>[this.graphic,this.layer,this.map,this.associationTypes,this.objectId,this.globalId,this.canQuery]),(()=>this.refresh()),u),l((()=>this.activeAssociationType),(t=>this._queryDebounced(t)),u)])}destroy(){this._cancelQuery(),this._cancelQueryFeatureCount(),this._destroyAssociatedFeatureViewModels()}get supportsCacheHint(){return!!this.layer?.capabilities?.query?.supportsCacheHint}get canLoad(){return!!this.map&&!!this.associationTypes&&"string"==typeof this.globalId}get canQuery(){const t=this.layer?.capabilities?.query;return!!this.associationTypes&&"string"==typeof this.globalId&&!!t?.supportsPagination}set displayCount(t){const e=0,o=3;this._set("displayCount",Math.max(t??o,e))}get displayCount(){return this._get("displayCount")}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get globalId(){return(this.globalIdField&&this.graphic?.attributes?.[this.globalIdField])??null}get globalIdField(){const{layer:t}=this;return t?.globalIdField}get activeAssociationType(){return this._get("activeAssociationType")}set activeAssociationType(t){t&&!this.associationTypes.includes(t)||this._set("activeAssociationType",t)}get state(){const{_queryAbortController:t,_queryFeatureCountAbortController:e,_queryPageAbortController:o,canQuery:s,_loaded:r,canLoad:i,source:a}=this;return e||i&&!r?"loading":t||o?"querying":!s||"popup"===a&&0===this.featureCount?"disabled":"ready"}get utilityNetwork(){const{layer:t,map:e}=this;if(!t?.loaded||!e)return null;const o=h(t)?t.parent:t;return A(e,o)}get attachmentsAssociations(){return this._get("attachmentsAssociations")||new r}get structureAssociations(){return this._get("structureAssociations")||new r}get contentAssociations(){return this._get("contentAssociations")||new r}get containerAssociations(){return this._get("containerAssociations")||new r}get connectivityAssociations(){return this._get("connectivityAssociations")||new r}get associationFeatures(){return this._get("associationFeatures")||new c}get associationViewModels(){return this._get("associationViewModels")||new Map}async refresh(){await this._queryFeatureCountDebounced(),await this._queryOpenAssociationType()}getFeatureCountForAssociationType(t){switch(t){case"attachment":return this.attachmentsFeatureCount;case"structure":return this.structureFeatureCount;case"content":return this.contentFeatureCount;case"container":return this.containerFeatureCount;case"connectivity":return this.connectivityFeatureCount}}_destroyAssociatedFeatureViewModels(){this.associationViewModels.forEach((t=>t.destroyAll()))}async _loadUtiltyNetworks(){const t=this.map;if(!t)return;await Promise.allSettled(t.utilityNetworks?.map((async t=>{await t.load()}))??[]);const e=this.utilityNetwork;if(e){const o=t=>{if("layerId"in t&&e.isUtilityLayer(t)){const o=e.getSourceIdByLayerId(t.layerId);null!==o&&this.networkSourceIdsInUse.add(o)}};this._set("networkSourceIdsInUse",new Set),t.allLayers.forEach(o),t.allTables.forEach(o)}}async _findLayersBySourceId(t){const{utilityNetwork:e,map:o}=this,s=t=>{const o=t;if(!t.url)return!1;if(o.layerId===r){return t.url.replace(/\/\d+$/,"")===e?.featureServiceUrl}return!1};await(e?.load());const r=e.getLayerIdBySourceId(t),i=o.allLayers.filter(s),a=o.allTables.filter(s),n=i.concat(a).toArray();return await Promise.allSettled(n.map((t=>t.load()))),n}_clearAssociations(){this.attachmentsAssociations.removeAll(),this.structureAssociations.removeAll(),this.contentAssociations.removeAll(),this.containerAssociations.removeAll(),this.connectivityAssociations.removeAll()}_clearFeatures(){this.associationFeatures.forEach((t=>t.removeAll())),this.associationFeatures.clear()}_getAssociationsByType(t){switch(t){case"attachment":return this.attachmentsAssociations;case"structure":return this.structureAssociations;case"connectivity":return this.connectivityAssociations;case"container":return this.containerAssociations;case"content":return this.contentAssociations}}async _queryLayer(t,e,o,s,r){const i=t.fieldsIndex.get(g.assetGroup),a=t.fieldsIndex.get(g.assetType),n=null!=o,c=null!=s,l="("+e.map((t=>`'${t}'`)).join(", ")+")",u=n?` AND ${i?.name} = ${o}`:"",d=n&&c?` AND ${a?.name} = ${s}`:"",y=`${t.globalIdField} IN ${l}`+u+d,h=new m({outFields:["*"],cacheHint:this.supportsCacheHint,where:y});return await this._queryAll(h,t,{signal:r?.signal})}async _createAssociationFeatureObjects(t,e,o,s,r,i){if(0===t.length)return[];const a=new Map;for(const[c,l]of e){const t=await this._findLayersBySourceId(c);for(const e of t){(await this._queryLayer(e,l,s,r,i)).forEach((t=>{if("popup"===this.source?t.layer&&t.getEffectivePopupTemplate():!!t.layer){const o=a.get(t.attributes[e.globalIdField])??[];o.push(t),a.set(t.attributes[e.globalIdField],o)}}))}}const n=[];return t.toArray().forEach((t=>{const{fromNetworkElement:e,toNetworkElement:s}=t,r=e.globalId===o?s:e;(a.get(r.globalId)??[]).forEach((e=>{const o=this.utilityNetwork?.getTerminalById(r?.terminalId)?.name;n.push({association:t,feature:e,terminalName:o})}))})),n}_parseFeatureObjects(t,e){t.forEach((t=>{const o=t?.feature,s=o.layer,i=e.get(s)??new r;i.add(t),e.set(s,i)}))}async _queryAll(t,e,o){const s=[];let r=0,i=!1;t.num=e.sourceJSON?.maxRecordCount??2e3;do{t.start=r;const a=await e.queryFeatures(t,o);s.push(...a.features),i=a.exceededTransferLimit,i&&(r+=a.features.length)}while(i);return s}async _queryAssociations(t){const{layer:e,globalId:o,associationTypes:s,utilityNetwork:r,canQuery:i}=this;if(await Promise.allSettled([e?.load(),r?.load()]),this._clearAssociations(),!(i&&e&&s&&r&&o))return;const a=h(e)?e.parent:e,n=new p({globalId:o,networkSourceId:r.getSourceIdByLayerId(a.layerId)}),c=new Set;s.forEach((t=>{switch(t.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity")}}));const l=await(r?.queryAssociations({elements:[n],types:Array.from(c)},{signal:t?.signal})),u=new Map,d=new Map;s.forEach((t=>{d.set(t.type,t),u.set(t.type,[])})),l.forEach((t=>{const{toNetworkElement:e,fromNetworkElement:s}=t;switch(t.associationType){case"connectivity":case"junction-junction-connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":if(s?.globalId===o){if(this._shouldDiscardNetworkElement(e,"connectivity",d))break;u.get("connectivity")?.push(e.globalId)}else{if(this._shouldDiscardNetworkElement(s,"connectivity",d))break;u.get("connectivity")?.push(s.globalId)}this.connectivityAssociations.add(t);break;case"containment":if(s?.globalId===o){if(this._shouldDiscardNetworkElement(e,"content",d))break;u.get("content")?.push(e.globalId),this.contentAssociations.add(t)}else{if(this._shouldDiscardNetworkElement(s,"container",d))break;u.get("container")?.push(s.globalId),this.containerAssociations.add(t)}break;case"attachment":if(s?.globalId===o){if(this._shouldDiscardNetworkElement(e,"attachment",d))break;u.get("attachment")?.push(e.globalId),this.attachmentsAssociations.add(t)}else{if(this._shouldDiscardNetworkElement(s,"structure",d))break;u.get("structure")?.push(s.globalId),this.structureAssociations.add(t)}}}));const y=s.map((async e=>{const{associatedNetworkSourceId:o,associatedAssetGroup:s,associatedAssetType:r}=e,i=u.get(e.type),a=null!=s?await this._countAssociatedFeatures(o,i,s,r,t):i.length;switch(e.type){case"attachment":this._set("attachmentsFeatureCount",a);break;case"structure":this._set("structureFeatureCount",a);break;case"content":this._set("contentFeatureCount",a);break;case"container":this._set("containerFeatureCount",a);break;case"connectivity":this._set("connectivityFeatureCount",a)}}));await Promise.allSettled(y)}async _countAssociatedFeatureCount(t,e,o,s,r){const i=t.fieldsIndex.get(g.assetGroup),a=t.fieldsIndex.get(g.assetType),n=null!=s,c="("+e.map((t=>`'${t}'`)).join(", ")+")",l=` AND ${i?.name} = ${o}`,u=n?` AND ${a?.name} = ${s}`:"",d=`${t.globalIdField} IN ${c}`+l+u;return t.queryFeatureCount({where:d,outFields:["*"],returnGeometry:!1},{signal:r?.signal})}async _countAssociatedFeatures(t,e,o,s,r){if(0===e.length)return 0;const i=(await this._findLayersBySourceId(t)).map((async t=>this._countAssociatedFeatureCount(t,e,o,s,r)));return(await Promise.all(i)).reduce(((t,e)=>t+e),0)}async _queryAssociatedFeatures(t,e){const{layer:o,globalId:s,associationTypes:r,utilityNetwork:i,canQuery:a,associationFeatures:n}=this;if(await Promise.allSettled([o?.load(),i?.load()]),!(a&&o&&r&&i))return;const c=this._getAssociationsByType(t.type),{associatedAssetGroup:l,associatedAssetType:u}=t,d=new Map;c.forEach((t=>{const{fromNetworkElement:e,toNetworkElement:o}=t,{networkSourceId:r,elementGlobalId:i}=e.globalId===s?{networkSourceId:o.networkSourceId,elementGlobalId:o.globalId}:{networkSourceId:e.networkSourceId,elementGlobalId:e.globalId},a=d.get(r)||[];a.push(i),d.set(r,a)}));const y=await this._createAssociationFeatureObjects(c,d,s,l,u,e);this._parseFeatureObjects(y,n)}async _queryFeatureCount(){await this._loadUtiltyNetworks();const{_queryFeatureCountAbortController:t,canQuery:e}=this;e?(await this._queryAssociations(t),this._set("featureCount",this.attachmentsFeatureCount+this.structureFeatureCount+this.contentFeatureCount+this.containerFeatureCount+this.connectivityFeatureCount)):this._set("featureCount",0)}async _query(t){if(!t)return;await this._loadUtiltyNetworks();const{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),0!==this.featureCount&&(this.destroyed||await this._queryAssociatedFeatures(t,{signal:e?.signal}))}_shouldDiscardNetworkElement(t,e,o){if(!t)return!1;const{networkSourceIdsInUse:s}=this,{networkSourceId:r}=t,i=o.get(e)?.associatedNetworkSourceId,a=s.has(r);return null!=i&&i!==r||!a}};t([d()],w.prototype,"_loaded",void 0),t([d()],w.prototype,"_queryAbortController",void 0),t([d()],w.prototype,"_queryPageAbortController",void 0),t([d()],w.prototype,"_queryFeatureCountAbortController",void 0),t([d({readOnly:!0})],w.prototype,"supportsCacheHint",null),t([d({readOnly:!0})],w.prototype,"canLoad",null),t([d({readOnly:!0})],w.prototype,"canQuery",null),t([d()],w.prototype,"networkSourceIdsInUse",void 0),t([d({constructOnly:!0})],w.prototype,"source",void 0),t([d()],w.prototype,"description",void 0),t([d({value:3})],w.prototype,"displayCount",null),t([d({type:e})],w.prototype,"graphic",void 0),t([d()],w.prototype,"layer",void 0),t([d()],w.prototype,"map",void 0),t([d({readOnly:!0})],w.prototype,"objectId",null),t([d({readOnly:!0})],w.prototype,"objectIdField",null),t([d({readOnly:!0})],w.prototype,"globalId",null),t([d({readOnly:!0})],w.prototype,"globalIdField",null),t([d()],w.prototype,"featureCount",void 0),t([d()],w.prototype,"associationTypes",void 0),t([d()],w.prototype,"activeAssociationType",null),t([d()],w.prototype,"showAllEnabled",void 0),t([d()],w.prototype,"state",null),t([d()],w.prototype,"title",void 0),t([d({readOnly:!0})],w.prototype,"utilityNetwork",null),t([d({readOnly:!0})],w.prototype,"attachmentsFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"structureFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"attachmentsAssociations",null),t([d({readOnly:!0})],w.prototype,"structureAssociations",null),t([d({readOnly:!0})],w.prototype,"contentFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"containerFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"contentAssociations",null),t([d({readOnly:!0})],w.prototype,"containerAssociations",null),t([d({readOnly:!0})],w.prototype,"connectivityFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"connectivityAssociations",null),t([d({readOnly:!0})],w.prototype,"associationFeatures",null),t([d({readOnly:!0})],w.prototype,"associationViewModels",null),w=t([y("esri.widgets.support.UtilityNetworkAssociations.FeatureUtilityNetworkAssociationsViewModel")],w);const _=w;export{_ as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import"../../../intl.js";import t from"../../../core/ReactiveMap.js";import{watch as o}from"../../../core/reactiveUtils.js";import{property as i}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import s from"../../Widget.js";import{loadCalciteComponents as n}from"../componentsUtils.js";import"../widgetUtils.js";import{messageBundle as a}from"../decorators/messageBundle.js";import{tsx as c}from"../jsxFactory.js";import l from"./UtilityNetworkAssociationsViewModel.js";import{substitute as u}from"../../../intl/substitute.js";const d="esri-utility-network-association-list",p={featureObserver:`${d}__feature-observer`,filterContainer:`${d}__filter-container`,limitNoticeContainer:`${d}__limit-notice-container`,loadingContainer:`${d}__loading-container`};let m=class extends s{constructor(e,o){super(e,o),this._isFeatureCountNoticeOpen=!0,this._observer=new IntersectionObserver((([e])=>{e?.isIntersecting&&this._increaseFeaturePage()}),{root:window.document}),this._observerNode=null,this.featuresPerPage=50,this.filterText="",this.headingLevel=5,this.maxFeatureCount=1e3,this.messagesFeature=null,this.messagesCommon=null,this.selectedLayer=null,this.tooltipReferenceMap=new t,this.viewModel=new l}initialize(){this.setUpObserver()}loadDependencies(){return n({icon:()=>import("@esri/calcite-components/dist/components/calcite-icon"),input:()=>import("@esri/calcite-components/dist/components/calcite-input"),loader:()=>import("@esri/calcite-components/dist/components/calcite-loader"),notice:()=>import("@esri/calcite-components/dist/components/calcite-notice")})}destroy(){this.tooltipReferenceMap.clear()}get associatedFeatureCount(){const e=this.viewModel.associationViewModels,t=this.selectedLayer?e.get(this.selectedLayer):null;return t?t.length:0}set currentFeaturePage(e){const{featuresPerPage:t,associatedFeatureCount:o}=this,i=Math.ceil(o/t)||1,r=Math.max(Math.min(e,i),1);this._set("currentFeaturePage",r)}get currentFeaturePage(){return this._get("currentFeaturePage")??1}get endIndex(){const{currentFeaturePage:e,featuresPerPage:t,maxFeatureCount:o}=this;return Math.min(e*t,o)}renderConnectivityIcon(e,t){const{tooltipReferenceMap:o}=this;let i;switch(e){case"junction-edge-from-connectivity":i="connection-end-left";break;case"junction-edge-to-connectivity":i="connection-end-right";break;case"junction-edge-midspan-connectivity":i="connection-middle";break;default:i="connection-to-connection"}return c("calcite-icon",{afterCreate:e=>o.set(t,e),afterRemoved:()=>o.delete(t),icon:i,scale:"s",slot:"content-start"})}renderFeatureCountWarning(){const{associatedFeatureCount:e,maxFeatureCount:t,messagesFeature:o}=this;return e>t?c("calcite-notice",{class:this._isFeatureCountNoticeOpen?p.limitNoticeContainer:void 0,closable:!0,icon:"information",kind:"info",open:!0,scale:"s",width:"full",onCalciteNoticeBeforeOpen:()=>this._isFeatureCountNoticeOpen=!0,onCalciteNoticeClose:()=>this._isFeatureCountNoticeOpen=!1},c("div",{slot:"title"},o.associationsLimitNoticeTitle),c("div",{slot:"message"},u(o.associationsLimitNoticeMessage,{number:t}))):null}renderFeatureObserver(){return c("div",{afterCreate:this._onObserverCreate,bind:this,class:p.featureObserver,key:"feature-observer"})}renderFilter(){return c("div",{class:p.filterContainer,key:"filter"},c("calcite-input",{icon:"search",placeholder:this.messagesFeature.associationFilterPlaceholder,type:"search",onCalciteInputInput:e=>{this.filterText=e.currentTarget.value.trim().toLowerCase(),this.currentFeaturePage=1}}))}renderLoading(){return c("div",{class:p.loadingContainer,key:"loading-container"},this.renderLoadingIcon())}renderLoadingIcon(){return c("calcite-loader",{inline:!0,label:this.messagesCommon.loading})}getConnectivityTooltip(e){const{messagesFeature:t}=this;switch(e){case"connectivity":case"junction-junction-connectivity":return t.associationsJunctionJunction;case"junction-edge-from-connectivity":return t.associationsJunctionEdgeFrom;case"junction-edge-midspan-connectivity":return t.associationsJunctionEdgeMidspan;case"junction-edge-to-connectivity":return t.associationsJunctionEdgeTo;default:return""}}setUpObserver(){this.addHandles(o((()=>this._observerNode),(()=>this._onObserverChange())))}_increaseFeaturePage(){this.currentFeaturePage++}async _onObserverChange(){this._observerNode&&this._observer.unobserve(this._observerNode);const{state:e,showAllEnabled:t}=this.viewModel;this._observerNode&&"ready"===e&&t&&this._observer.observe(this._observerNode)}_onObserverCreate(e){this._observerNode=e}};e([i()],m.prototype,"_observer",void 0),e([i()],m.prototype,"_observerNode",void 0),e([i()],m.prototype,"associatedFeatureCount",null),e([i()],m.prototype,"currentFeaturePage",null),e([i()],m.prototype,"endIndex",null),e([i()],m.prototype,"featuresPerPage",void 0),e([i()],m.prototype,"filterText",void 0),e([i()],m.prototype,"headingLevel",void 0),e([i()],m.prototype,"maxFeatureCount",void 0),e([i(),a("esri/widgets/Feature/t9n/Feature")],m.prototype,"messagesFeature",void 0),e([i(),a("esri/t9n/common")],m.prototype,"messagesCommon",void 0),e([i()],m.prototype,"selectedLayer",void 0),e([i()],m.prototype,"tooltipReferenceMap",void 0),e([i({type:l})],m.prototype,"viewModel",void 0),m=e([r("esri.widgets.support.UtilityNetworkAssociations.UtilityNetworkAssociationList")],m);const h=m;export{h as default};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import"../../../intl.js";import t from"../../../core/ReactiveMap.js";import{watch as o}from"../../../core/reactiveUtils.js";import{property as i}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import s from"../../Widget.js";import{loadCalciteComponents as n}from"../componentsUtils.js";import"../widgetUtils.js";import{messageBundle as a}from"../decorators/messageBundle.js";import{tsx as c}from"../jsxFactory.js";import l from"./FeatureUtilityNetworkAssociationsViewModel.js";import{substitute as u}from"../../../intl/substitute.js";const d="esri-utility-network-association-list",p={featureObserver:`${d}__feature-observer`,filterContainer:`${d}__filter-container`,limitNoticeContainer:`${d}__limit-notice-container`,loadingContainer:`${d}__loading-container`};let m=class extends s{constructor(e,o){super(e,o),this._isFeatureCountNoticeOpen=!0,this._observer=new IntersectionObserver((([e])=>{e?.isIntersecting&&this._increaseFeaturePage()}),{root:window.document}),this._observerNode=null,this.featuresPerPage=50,this.filterText="",this.headingLevel=5,this.maxFeatureCount=1e3,this.messagesFeature=null,this.messagesCommon=null,this.selectedLayer=null,this.tooltipReferenceMap=new t,this.viewModel=new l}initialize(){this.setUpObserver()}loadDependencies(){return n({icon:()=>import("@esri/calcite-components/dist/components/calcite-icon"),input:()=>import("@esri/calcite-components/dist/components/calcite-input"),loader:()=>import("@esri/calcite-components/dist/components/calcite-loader"),notice:()=>import("@esri/calcite-components/dist/components/calcite-notice")})}destroy(){this.tooltipReferenceMap.clear()}get associatedFeatureCount(){const e=this.viewModel.associationViewModels,t=this.selectedLayer?e.get(this.selectedLayer):null;return t?t.length:0}set currentFeaturePage(e){const{featuresPerPage:t,associatedFeatureCount:o}=this,i=Math.ceil(o/t)||1,r=Math.max(Math.min(e,i),1);this._set("currentFeaturePage",r)}get currentFeaturePage(){return this._get("currentFeaturePage")??1}get endIndex(){const{currentFeaturePage:e,featuresPerPage:t,maxFeatureCount:o}=this;return Math.min(e*t,o)}renderConnectivityIcon(e,t){const{tooltipReferenceMap:o}=this;let i;switch(e){case"junction-edge-from-connectivity":i="connection-end-left";break;case"junction-edge-to-connectivity":i="connection-end-right";break;case"junction-edge-midspan-connectivity":i="connection-middle";break;default:i="connection-to-connection"}return c("calcite-icon",{afterCreate:e=>o.set(t,e),afterRemoved:()=>o.delete(t),icon:i,scale:"s",slot:"content-start"})}renderFeatureCountWarning(){const{associatedFeatureCount:e,maxFeatureCount:t,messagesFeature:o}=this;return e>t?c("calcite-notice",{class:this._isFeatureCountNoticeOpen?p.limitNoticeContainer:void 0,closable:!0,icon:"information",kind:"info",open:!0,scale:"s",width:"full",onCalciteNoticeBeforeOpen:()=>this._isFeatureCountNoticeOpen=!0,onCalciteNoticeClose:()=>this._isFeatureCountNoticeOpen=!1},c("div",{slot:"title"},o.associationsLimitNoticeTitle),c("div",{slot:"message"},u(o.associationsLimitNoticeMessage,{number:t}))):null}renderFeatureObserver(){return c("div",{afterCreate:this._onObserverCreate,bind:this,class:p.featureObserver,key:"feature-observer"})}renderFilter(){return c("div",{class:p.filterContainer,key:"filter"},c("calcite-input",{icon:"search",placeholder:this.messagesFeature.associationFilterPlaceholder,type:"search",onCalciteInputInput:e=>{this.filterText=e.currentTarget.value.trim().toLowerCase(),this.currentFeaturePage=1}}))}renderLoading(){return c("div",{class:p.loadingContainer,key:"loading-container"},this.renderLoadingIcon())}renderLoadingIcon(){return c("calcite-loader",{inline:!0,label:this.messagesCommon.loading})}getConnectivityTooltip(e){const{messagesFeature:t}=this;switch(e){case"connectivity":case"junction-junction-connectivity":return t.associationsJunctionJunction;case"junction-edge-from-connectivity":return t.associationsJunctionEdgeFrom;case"junction-edge-midspan-connectivity":return t.associationsJunctionEdgeMidspan;case"junction-edge-to-connectivity":return t.associationsJunctionEdgeTo;default:return""}}setUpObserver(){this.addHandles(o((()=>this._observerNode),(()=>this._onObserverChange())))}_increaseFeaturePage(){this.currentFeaturePage++}async _onObserverChange(){this._observerNode&&this._observer.unobserve(this._observerNode);const{state:e,showAllEnabled:t}=this.viewModel;this._observerNode&&"ready"===e&&t&&this._observer.observe(this._observerNode)}_onObserverCreate(e){this._observerNode=e}};e([i()],m.prototype,"_observer",void 0),e([i()],m.prototype,"_observerNode",void 0),e([i()],m.prototype,"associatedFeatureCount",null),e([i()],m.prototype,"currentFeaturePage",null),e([i()],m.prototype,"endIndex",null),e([i()],m.prototype,"featuresPerPage",void 0),e([i()],m.prototype,"filterText",void 0),e([i()],m.prototype,"headingLevel",void 0),e([i()],m.prototype,"maxFeatureCount",void 0),e([i(),a("esri/widgets/Feature/t9n/Feature")],m.prototype,"messagesFeature",void 0),e([i(),a("esri/t9n/common")],m.prototype,"messagesCommon",void 0),e([i()],m.prototype,"selectedLayer",void 0),e([i()],m.prototype,"tooltipReferenceMap",void 0),e([i({type:l})],m.prototype,"viewModel",void 0),m=e([r("esri.widgets.support.UtilityNetworkAssociations.UtilityNetworkAssociationList")],m);const h=m;export{h as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{formatNumber as n}from"../../../intl/number.js";function t(t){const{percentAlong:c}=t;return null==c?"":n(c,{style:"percent",maximumFractionDigits:2})}function c(n){const{associationType:t}=n;return"connectivity"===t||"junction-junction-connectivity"===t||"junction-edge-from-connectivity"===t||"junction-edge-midspan-connectivity"===t||"junction-edge-to-connectivity"===t}function i(n){return"junction-edge-midspan-connectivity"===n.associationType}function e(n){const{attributes:t,sourceLayer:c}=n??{},i=c&&"displayField"in c?c.displayField:null,e=i?t?.[i]:null,o=n?.getObjectId()?.toString();return e||o||""}function o(n,t,c){const{associationType:i}=n;switch(i){case"attachment":return"to"===t?c.attachment:c.structure;case"containment":return"to"===t?c.content:c.container;case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-junction-connectivity":case"connectivity":return c.connectivity}return""}export{t as formatPercentAlong,o as getAssociationTitle,e as getFeatureTitle,c as isConnectivity,i as isConnectivityMidspan};
5
+ import{generateGlobalId as t}from"../../../editing/sharedTemplates/executor/support/createServiceEdit.js";import{formatNumber as e}from"../../../intl/number.js";import{isSubtypeSublayer as n}from"../../../layers/support/layerUtils.js";import o from"../../../rest/networks/support/Association.js";import i from"../../../rest/networks/support/NetworkElement.js";function r(t){const{percentAlong:n}=t;return null==n?"":e(n,{style:"percent",maximumFractionDigits:2})}function c(t){const{associationType:e}=t;return"connectivity"===e||"junction-junction-connectivity"===e||"junction-edge-from-connectivity"===e||"junction-edge-midspan-connectivity"===e||"junction-edge-to-connectivity"===e}function a(t){return"junction-edge-midspan-connectivity"===t.associationType}function s(t){const{attributes:e,sourceLayer:n}=t??{},o=n&&"displayField"in n?n.displayField:null,i=o?e?.[o]:null,r=t?.getObjectId()?.toString();return i||r||""}function l(t,e,n){const{associationType:o}=t;switch(o){case"attachment":return"to"===e?n.attachment:n.structure;case"containment":return"to"===e?n.content:n.container;case"junction-edge-from-connectivity":case"junction-edge-to-connectivity":case"junction-edge-midspan-connectivity":case"junction-junction-connectivity":case"connectivity":return n.connectivity}}function u(t,e){return!!(t.layer&&"globalIdField"in t.layer&&t.layer.globalIdField&&e.fromNetworkElement)&&t.attributes[t.layer.globalIdField]===e.fromNetworkElement.globalId}function d(t,e){const o=e.getTerminalConfiguration(t),r=o?.terminals.at(0)?.id,c=n(t.sourceLayer)?t.sourceLayer.parent:t.sourceLayer;if(c&&"globalIdField"in c&&"layerId"in c&&c.globalIdField){const n=c.fieldsIndex.get("assetGroup").name,o=c.fieldsIndex.get("assetType").name,a=t.attributes[n],s=t.attributes[o],l=t.attributes[c.globalIdField],u=e.getSourceIdByLayerId(c.layerId);if(l&&null!=u)return new i({globalId:l,networkSourceId:u,assetGroupCode:a,assetTypeCode:s,terminalId:r})}}function y(e){return new o({fromNetworkElement:d(e.fromFeature,e.utilityNetwork),toNetworkElement:d(e.toFeature,e.utilityNetwork),associationType:e.associationType,globalId:t()})}export{y as createAssociation,r as formatPercentAlong,l as getAssociationTitle,s as getFeatureTitle,c as isConnectivity,a as isConnectivityMidspan,u as isFromElement};