@arcgis/core 6.0.0-next.43 → 6.0.0-next.45

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 (1161) hide show
  1. package/Basemap.d.ts +2 -1
  2. package/Camera.d.ts +2 -1
  3. package/Graphic.d.ts +2 -1
  4. package/Ground.d.ts +2 -1
  5. package/Map.d.ts +2 -1
  6. package/PopupTemplate.d.ts +2 -1
  7. package/WebDocument2D.d.ts +2 -1
  8. package/WebMap.d.ts +9 -1
  9. package/WebMap.js +1 -1
  10. package/WebScene.d.ts +2 -1
  11. package/WebScene.js +1 -1
  12. package/analysis/Analysis.d.ts +2 -1
  13. package/analysis/DimensionSimpleStyle.d.ts +2 -1
  14. package/analysis/LengthDimension.d.ts +2 -1
  15. package/analysis/LineOfSightAnalysisObserver.d.ts +2 -1
  16. package/analysis/LineOfSightAnalysisTarget.d.ts +2 -1
  17. package/analysis/SlicePlane.d.ts +2 -1
  18. package/analysis/Viewshed.d.ts +2 -1
  19. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +2 -1
  20. package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +2 -1
  21. package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +2 -1
  22. package/applications/Components/OrientedImageryViewer/ImageViewer/utils.d.ts +3 -1
  23. package/applications/Components/OrientedImageryViewer/ImageViewer/utils.js +1 -1
  24. package/applications/Components/OrientedImageryViewer/VideoFeatureCache.js +2 -0
  25. package/applications/Components/OrientedImageryViewer/galleryUtils.d.ts +2 -1
  26. package/applications/Components/OrientedImageryViewer/galleryUtils.js +1 -1
  27. package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +2 -0
  28. package/applications/Components/OrientedImageryViewer/imageUtils.d.ts +756 -0
  29. package/applications/Components/OrientedImageryViewer/imageUtils.js +2 -0
  30. package/applications/Components/OrientedImageryViewer/measurementUtils.d.ts +15 -0
  31. package/applications/Components/OrientedImageryViewer/measurementUtils.js +2 -0
  32. package/applications/Components/OrientedImageryViewer/queryFeatures.js +2 -0
  33. package/applications/Components/OrientedImageryViewer/shared/ImageMeasurementWorker.js +2 -0
  34. package/applications/Components/OrientedImageryViewer/shared/constants.js +2 -0
  35. package/applications/Components/OrientedImageryViewer/shared/featureCoverage.js +2 -0
  36. package/applications/Components/OrientedImageryViewer/shared/galleryUtils.js +2 -0
  37. package/applications/Components/OrientedImageryViewer/shared/imageMeasurementWorkerUtils.js +2 -0
  38. package/applications/Components/OrientedImageryViewer/shared/navigation/queries.js +2 -0
  39. package/applications/Components/OrientedImageryViewer/shared/navigation/utils.js +2 -0
  40. package/applications/Components/OrientedImageryViewer/shared/panoramicImageProperties.js +2 -0
  41. package/applications/Components/OrientedImageryViewer/shared/services/ImageMeasurementService.js +2 -0
  42. package/applications/Components/OrientedImageryViewer/shared/services/SuperimposeService.js +2 -0
  43. package/applications/Components/OrientedImageryViewer/shared/services/TransformationService.js +2 -0
  44. package/applications/Components/OrientedImageryViewer/shared/support/NonPanoramicMedia.js +2 -0
  45. package/applications/Components/OrientedImageryViewer/shared/support/dataCaptureUtils.js +2 -0
  46. package/applications/Components/OrientedImageryViewer/shared/support/geometryUtils.js +2 -0
  47. package/applications/Components/OrientedImageryViewer/shared/support/panConstraint.js +2 -0
  48. package/applications/Components/OrientedImageryViewer/shared/support/resolveMediaProps.js +2 -0
  49. package/applications/Components/OrientedImageryViewer/shared/support/superimposeUtils.js +2 -0
  50. package/applications/Components/OrientedImageryViewer/shared/support/typeUtils.js +2 -0
  51. package/applications/Components/OrientedImageryViewer/shared/support/urlUtils.js +2 -0
  52. package/applications/Components/OrientedImageryViewer/shared/symbols.js +2 -0
  53. package/applications/Components/OrientedImageryViewer/shared/utils.js +2 -0
  54. package/applications/Components/OrientedImageryViewer/videoUtils.d.ts +15 -0
  55. package/applications/Components/OrientedImageryViewer/videoUtils.js +2 -0
  56. package/applications/Components/testUtils.d.ts +9 -0
  57. package/applications/Components/testUtils.js +1 -1
  58. package/applications/SceneViewer/sceneViewerUtils.d.ts +117 -1
  59. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  60. package/arcade/Feature.js +1 -1
  61. package/arcade/arcadeAsyncRuntime.js +1 -1
  62. package/arcade/arcadeCompiler.js +4 -4
  63. package/arcade/arcadeRuntime.js +1 -1
  64. package/arcade/compilerUtils.js +1 -1
  65. package/arcade/featureSetUtils.js +1 -1
  66. package/arcade/featureset/support/sqlUtils.js +1 -1
  67. package/arcade/functions/convertdirection.js +1 -1
  68. package/arcade/functions/hash.js +1 -1
  69. package/arcade/functions/string.js +1 -1
  70. package/arcade/geometry/isSelfIntersecting.js +1 -1
  71. package/arcade/treeAnalysis.js +1 -1
  72. package/arcgisGlobal.d.ts +6 -3
  73. package/assets/esri/core/workers/RemoteClient.js +1 -1
  74. package/assets/esri/core/workers/chunks/00620a90b32352bcdc71.js +1 -0
  75. package/assets/esri/core/workers/chunks/{fdffefd7de540272a8a6.js → 02feb2550b6878e62e2d.js} +1 -1
  76. package/assets/esri/core/workers/chunks/06326c8cbe0d644eca16.js +1 -0
  77. package/assets/esri/core/workers/chunks/{3ec3589f6e74d7cb87cf.js → 090a7d0b0128d20879be.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{c86d3af148b28ded5875.js → 0ac38ca04285cd5ef1a0.js} +40 -46
  79. package/assets/esri/core/workers/chunks/{a33ba23aee3f8f40200f.js → 0ac4a3029ba17a9e2492.js} +1 -1
  80. package/assets/esri/core/workers/chunks/0ae2933ab9b4a6ca56f2.js +1 -0
  81. package/assets/esri/core/workers/chunks/{18dbee576b7b9dbe69fb.js → 0b480583373b69773333.js} +1 -1
  82. package/assets/esri/core/workers/chunks/0bfc4e7640058811e10c.js +1 -0
  83. package/assets/esri/core/workers/chunks/{3de07326da4c47cd2aab.js → 0dc1ac5531f7c8854686.js} +1 -1
  84. package/assets/esri/core/workers/chunks/0e57bac610d41c7c9ad4.js +1 -0
  85. package/assets/esri/core/workers/chunks/{2294254af2c6afb560ee.js → 11e313dfca2579e68419.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{cadd60fa4370284c7ae3.js → 13b40a611224ff5f4697.js} +1 -1
  87. package/assets/esri/core/workers/chunks/15a18c803a3aafa9a65b.js +1 -0
  88. package/assets/esri/core/workers/chunks/15a7a3264915fc8d3188.js +1 -0
  89. package/assets/esri/core/workers/chunks/162de06e54c0f9cba012.js +1 -0
  90. package/assets/esri/core/workers/chunks/1c61ced6079443fc0ce8.js +1 -0
  91. package/assets/esri/core/workers/chunks/1c94d4d79952dc4067be.js +1 -0
  92. package/assets/esri/core/workers/chunks/{804606b194dc9e71d088.js → 1ca9f823caff691e964d.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{8f4fba4d2339c91c8b3f.js → 1d9b0db37d5f3819ffca.js} +1 -1
  94. package/assets/esri/core/workers/chunks/200da109115eab8b2480.js +1 -0
  95. package/assets/esri/core/workers/chunks/{edd36a1fc80b1d29907e.js → 21939ef53bc71b42370f.js} +1 -1
  96. package/assets/esri/core/workers/chunks/230189a28552ab00546d.js +1 -0
  97. package/assets/esri/core/workers/chunks/{81b9894e81cce3490984.js → 2515ce2ef279cdd4d5fa.js} +1 -1
  98. package/assets/esri/core/workers/chunks/27a5c6be4f847900d6ed.js +1 -0
  99. package/assets/esri/core/workers/chunks/{45b5a61c4e9fbd9ca0b3.js → 27f0bbde1e9fa3f06d46.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{d51bb11baadc741c46bc.js → 29a437a2b7b3a9b3e104.js} +1 -1
  101. package/assets/esri/core/workers/chunks/{070684943698fa43c2b4.js → 2a224bc845c9bf682c54.js} +1 -1
  102. package/assets/esri/core/workers/chunks/2c619c50cdcc37652c0b.js +1 -0
  103. package/assets/esri/core/workers/chunks/2c7f3fb74a076acf9b30.js +1 -0
  104. package/assets/esri/core/workers/chunks/{bc38def1983089514e4b.js → 2e9d2f0a4e3c84d2ac2e.js} +1 -1
  105. package/assets/esri/core/workers/chunks/{9fe1812aad6e566aea31.js → 30c5b584e8658b2b3607.js} +1 -1
  106. package/assets/esri/core/workers/chunks/{ae6dc159be974ca0e8da.js → 32ba94e59b411d3ff063.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{67efdd296007a809586c.js → 3463b52d633a9336af28.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{864194927d05ebc4cc31.js → 35426786de409d42a87f.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{898359be6996fd9763b8.js → 377158a19c9d6ef11387.js} +1 -1
  110. package/assets/esri/core/workers/chunks/394b329e64d880cdb500.js +1 -0
  111. package/assets/esri/core/workers/chunks/{ca2adcbcf44454484fd5.js → 3a295fab549ae3caf9df.js} +1 -1
  112. package/assets/esri/core/workers/chunks/3a3b57abfb92494cac84.js +1 -0
  113. package/assets/esri/core/workers/chunks/{fd031150d3a7f896e6b3.js → 3cbb3c4e0e60a874ac6d.js} +1 -1
  114. package/assets/esri/core/workers/chunks/3e67d50a2b2f8f837831.js +29 -0
  115. package/assets/esri/core/workers/chunks/{50763ea061d5fb3f2e49.js → 4136c4de42b8818e2710.js} +1 -1
  116. package/assets/esri/core/workers/chunks/41d674e73b57c8abe838.js +1 -0
  117. package/assets/esri/core/workers/chunks/{0cfdeb53fb7d5532cf01.js → 425347186c279bcc595c.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{6ccf9535013fe672c93b.js → 434a7ef5b25d83593b50.js} +1 -1
  119. package/assets/esri/core/workers/chunks/{4fe10650ba3cd30aa9a2.js → 46d0db736c6e7decbcf6.js} +1 -1
  120. package/assets/esri/core/workers/chunks/{cca8bd07bcd1d267a2e8.js → 489b37c459e1af116aeb.js} +1 -1
  121. package/assets/esri/core/workers/chunks/49c21c11621ff077e401.js +1 -0
  122. package/assets/esri/core/workers/chunks/{bfb8fc6b940bd5510e29.js → 4eab4e74c6a479c5f930.js} +1 -1
  123. package/assets/esri/core/workers/chunks/{5fd4d3cb3c9350131a59.js → 4f8a915795f107b772c5.js} +1 -1
  124. package/assets/esri/core/workers/chunks/5565b4e7c31d31a7e546.js +1 -0
  125. package/assets/esri/core/workers/chunks/{344f5334ad95c7974349.js → 5744c7350e4e2eb73aa9.js} +1 -1
  126. package/assets/esri/core/workers/chunks/{8d3e92a3367a3ddc02bd.js → 57e0bf4be8a166d5b1eb.js} +1 -1
  127. package/assets/esri/core/workers/chunks/{3dd49f910834a2fb2142.js → 5b3db2c40feaefb7cbc0.js} +1 -1
  128. package/assets/esri/core/workers/chunks/5ba40e98e9300d1ebc85.js +1 -0
  129. package/assets/esri/core/workers/chunks/60137300db0e0c3caf13.js +1 -0
  130. package/assets/esri/core/workers/chunks/63d2645a744dce469bbb.js +1 -0
  131. package/assets/esri/core/workers/chunks/649e4ecb1d9e6da3fcd7.js +1 -0
  132. package/assets/esri/core/workers/chunks/6637fb99033bfa7646d4.js +1 -0
  133. package/assets/esri/core/workers/chunks/68b4ce0b2e754ac2e552.js +1 -0
  134. package/assets/esri/core/workers/chunks/69c338d1d359075371bc.js +1 -0
  135. package/assets/esri/core/workers/chunks/{6b4c3411f63a9ad9354c.js → 72020d86e3fc7ecc139f.js} +1 -1
  136. package/assets/esri/core/workers/chunks/{9630234267098115de4d.js → 73ab4f0275a85b9671ec.js} +1 -1
  137. package/assets/esri/core/workers/chunks/{449a2dee17b54946f245.js → 7b7208237123e948f170.js} +1 -1
  138. package/assets/esri/core/workers/chunks/{5529831dd891382c79df.js → 7d866911d1171d25ca78.js} +1 -1
  139. package/assets/esri/core/workers/chunks/7eddde6c4249f46c67f3.js +1 -0
  140. package/assets/esri/core/workers/chunks/82160bd873cdb5a23557.js +1 -0
  141. package/assets/esri/core/workers/chunks/82e238375582f90dc94c.js +1 -0
  142. package/assets/esri/core/workers/chunks/831d896587d10fb689dc.js +1 -0
  143. package/assets/esri/core/workers/chunks/{ca204c110438f7315790.js → 834bbda7719b04301f74.js} +1 -1
  144. package/assets/esri/core/workers/chunks/835ccd95f2d312ecda5a.js +1 -0
  145. package/assets/esri/core/workers/chunks/8385bede56cc95d1a388.js +1 -0
  146. package/assets/esri/core/workers/chunks/8a8c9a3969b7016c20d9.js +1 -0
  147. package/assets/esri/core/workers/chunks/8c1ae93dae934aedc6dc.js +1 -0
  148. package/assets/esri/core/workers/chunks/{ef274db3fa260eadf371.js → 8cddfdbab3ad3809462f.js} +1 -1
  149. package/assets/esri/core/workers/chunks/8cec3f48e995aab3d62e.js +1 -0
  150. package/assets/esri/core/workers/chunks/{076e8d2e08ff2a013736.js → 8f1dd383502432d8a039.js} +1 -1
  151. package/assets/esri/core/workers/chunks/{78a69594c82d37aecbfb.js → 90a7cd7564f2a92199cc.js} +1 -1
  152. package/assets/esri/core/workers/chunks/98e3f7ab4bfbabf0b952.js +1 -0
  153. package/assets/esri/core/workers/chunks/99a72b65afdcd3ee091a.js +1 -0
  154. package/assets/esri/core/workers/chunks/{be04f40f8b403befd0ef.js → 9bb90097368b200fa730.js} +1 -1
  155. package/assets/esri/core/workers/chunks/{f7398cfd8bbd041bd635.js → 9bf77f92760aacbd636f.js} +1 -1
  156. package/assets/esri/core/workers/chunks/{237a1f68a0efbfe5b77c.js → 9e7622379d777ea88018.js} +1 -1
  157. package/assets/esri/core/workers/chunks/9fb4c10d5b3e32bc86e9.js +1 -0
  158. package/assets/esri/core/workers/chunks/{564d7f2e58fbc16853c0.js → a8bedc53d4a316953108.js} +1 -1
  159. package/assets/esri/core/workers/chunks/{f2dab9fcd90ce38ae3d1.js → a8fbef765a6fb68e1115.js} +1 -1
  160. package/assets/esri/core/workers/chunks/aaac620f93a20fbd3f08.js +1 -0
  161. package/assets/esri/core/workers/chunks/ab684cce869973ea71cf.js +1 -0
  162. package/assets/esri/core/workers/chunks/ad787100602e18dde650.js +1 -0
  163. package/assets/esri/core/workers/chunks/{cb1642ea8b66231cbfb5.js → af70a81620203c030f5b.js} +1 -1
  164. package/assets/esri/core/workers/chunks/{efff269424d76f1dbb15.js → b10850c48f4eee60b8a9.js} +1 -1
  165. package/assets/esri/core/workers/chunks/{f11eaab5354cc6aa9569.js → b25104337f2495a4296a.js} +1 -1
  166. package/assets/esri/core/workers/chunks/{784d6c6949284ed6e10b.js → b3707d2cd2f4b2f70889.js} +1 -1
  167. package/assets/esri/core/workers/chunks/b3c0c9c91bcdbbb8e719.js +1 -0
  168. package/assets/esri/core/workers/chunks/b89b634e9d38b5a51d33.js +1 -0
  169. package/assets/esri/core/workers/chunks/bb6573d794bbe670216a.js +1 -0
  170. package/assets/esri/core/workers/chunks/{8ebaf5754e86a45b0497.js → be11cec9979ed5e9738e.js} +1 -1
  171. package/assets/esri/core/workers/chunks/c063de8f57a393280c39.js +1 -0
  172. package/assets/esri/core/workers/chunks/{14ed0c34b910eba3434e.js → c473c8b480de9802711b.js} +1 -1
  173. package/assets/esri/core/workers/chunks/{b3dbcf43f136ba2dadc5.js → c67ce7896789ac7275b2.js} +1 -1
  174. package/assets/esri/core/workers/chunks/c75cc72a306a617d9cd8.js +1 -0
  175. package/assets/esri/core/workers/chunks/{394ae3199c78a94c6a2a.js → c85336a50a4994a2a7eb.js} +1 -1
  176. package/assets/esri/core/workers/chunks/ccb0046b883286e65429.js +1 -0
  177. package/assets/esri/core/workers/chunks/cf684026e7f1ab7df4f7.js +1 -0
  178. package/assets/esri/core/workers/chunks/d19ac8368bb769fa5fba.js +1 -0
  179. package/assets/esri/core/workers/chunks/d26c9db8c0a772d0923c.js +1 -0
  180. package/assets/esri/core/workers/chunks/{58d10e0b35968680fd9f.js → d31f6598b76380e8688a.js} +1 -1
  181. package/assets/esri/core/workers/chunks/d3cd09b2d78ce9f2ea42.js +1 -0
  182. package/assets/esri/core/workers/chunks/{ad94f54b4c88b3a047bc.js → d4028536542db8b623cc.js} +1 -1
  183. package/assets/esri/core/workers/chunks/{cb6fb04fe5c8d90d4196.js → d4fe26716c4eca13d493.js} +1 -1
  184. package/assets/esri/core/workers/chunks/d7270a2db6f3bfcf0565.js +1 -0
  185. package/assets/esri/core/workers/chunks/d85d1064ba87ea1b1410.js +1 -0
  186. package/assets/esri/core/workers/chunks/{7a8ca15271e42b6131ac.js → d8b9d14f8d3e82ad26dc.js} +1 -1
  187. package/assets/esri/core/workers/chunks/{63c4412c16d8a44a5668.js → d99d5aa04e2d74ef57a7.js} +1 -1
  188. package/assets/esri/core/workers/chunks/{dfd4782b11d6fdca0492.js → d9e75266ac28f934eb61.js} +1 -1
  189. package/assets/esri/core/workers/chunks/dbf37b1c4e0567d9fb32.js +1 -0
  190. package/assets/esri/core/workers/chunks/{0c948ad4572000218afc.js → dc9792b2aa55975b8a95.js} +1 -1
  191. package/assets/esri/core/workers/chunks/dca0e2505a6cbef6f7f5.js +1 -0
  192. package/assets/esri/core/workers/chunks/ddaa8f8098e4a663e4e5.js +1 -0
  193. package/assets/esri/core/workers/chunks/df88bb9117967fe72eb4.js +1 -0
  194. package/assets/esri/core/workers/chunks/{1c378d489c5402888f76.js → e1f5da51115472347b55.js} +1 -1
  195. package/assets/esri/core/workers/chunks/e2535c83b97725e89256.js +1 -0
  196. package/assets/esri/core/workers/chunks/{406f24ec13eb30d43405.js → e2ebf0ea3af2e6907987.js} +1 -1
  197. package/assets/esri/core/workers/chunks/{ffe2077a9df7c838ea27.js → e7719bfbc5875a515a2b.js} +1 -1
  198. package/assets/esri/core/workers/chunks/{26ceb0ff8d93dbb9b84f.js → ec88631b5033c19f569e.js} +1 -1
  199. package/assets/esri/core/workers/chunks/{a2cc53ad1a514167e4b8.js → ef8f9b61b829c3bdf999.js} +1 -1
  200. package/assets/esri/core/workers/chunks/ef9740c4d1bd808af38a.js +1 -0
  201. package/assets/esri/core/workers/chunks/{f08a2a262a3b55149396.js → f0b897319ca8578df63f.js} +1 -1
  202. package/assets/esri/core/workers/chunks/{acea0946049136578354.js → f1e87e3ff65d8594e6b3.js} +1 -1
  203. package/assets/esri/core/workers/chunks/f36376b126c80d0983fb.js +1 -0
  204. package/assets/esri/core/workers/chunks/f3ca7fa35eb8d55f5907.js +1 -0
  205. package/assets/esri/core/workers/chunks/{1f9d6180a96d557838e9.js → f4d714d0a1a513861704.js} +1 -1
  206. package/assets/esri/core/workers/chunks/{14ded73842154d91ef4e.js → f7f73de8c63924e347ab.js} +1 -1
  207. package/assets/esri/core/workers/chunks/f91e36a104e84d985517.js +1 -0
  208. package/assets/esri/core/workers/chunks/{69f6d5997b8ff1326e39.js → fa5d4b9a098441ebf505.js} +1 -1
  209. package/assets/esri/core/workers/chunks/{9c3db7a7c05fa0e81f0a.js → fc9d66fe2cc9e2d31964.js} +1 -1
  210. package/basemapGallery/PortalBasemapsSource.d.ts +2 -1
  211. package/basemapGallery/support/BasemapItem.d.ts +2 -1
  212. package/chunks/AtmosphereCompositing.glsl.js +24 -6
  213. package/chunks/Bufferer-CclWhXVb.js +1 -1
  214. package/chunks/ChapmanAtmosphere.glsl.js +32 -25
  215. package/chunks/ColorMaterial.glsl.js +26 -16
  216. package/chunks/Component.glsl.js +0 -1
  217. package/chunks/CypherParser.js +1 -1
  218. package/chunks/DefaultMaterial.glsl.js +1 -1
  219. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  220. package/chunks/EdgeShader.glsl.js +1 -1
  221. package/chunks/EmissionComposite.glsl.js +1 -1
  222. package/chunks/Envelope.js +1 -1
  223. package/chunks/Envelope2D.js +1 -1
  224. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  225. package/chunks/GeodeticUtils.js +1 -1
  226. package/chunks/Geometry.js +1 -1
  227. package/chunks/Jpg.js +1 -1
  228. package/chunks/MultiPathImpl.js +1 -1
  229. package/chunks/OperatorAffineTransform.js +1 -1
  230. package/chunks/OperatorClip.js +1 -1
  231. package/chunks/OperatorCrosses.js +1 -1
  232. package/chunks/OperatorCut.js +1 -1
  233. package/chunks/OperatorDensify.js +1 -1
  234. package/chunks/OperatorDistance.js +1 -1
  235. package/chunks/OperatorEquals.js +1 -1
  236. package/chunks/OperatorGeneralize.js +1 -1
  237. package/chunks/OperatorGeodesicBuffer.js +1 -1
  238. package/chunks/OperatorGeodeticArea.js +1 -1
  239. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  240. package/chunks/OperatorGeodeticDistance.js +1 -1
  241. package/chunks/OperatorGeodeticLength.js +1 -1
  242. package/chunks/OperatorGraphicBuffer.js +1 -1
  243. package/chunks/OperatorIntegrate.js +1 -1
  244. package/chunks/OperatorIntersects.js +1 -1
  245. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  246. package/chunks/OperatorOverlaps.js +1 -1
  247. package/chunks/OperatorProximity.js +1 -1
  248. package/chunks/OperatorProximityGeodesic.js +1 -1
  249. package/chunks/OperatorRelate.js +1 -1
  250. package/chunks/OperatorShapePreservingLength.js +1 -1
  251. package/chunks/OperatorShapePreservingProject.js +1 -1
  252. package/chunks/OperatorSimplifyOGC.js +1 -1
  253. package/chunks/OperatorTouches.js +1 -1
  254. package/chunks/OperatorWithin.js +1 -1
  255. package/chunks/Point2D.js +1 -1
  256. package/chunks/RealisticTree.glsl.js +1 -1
  257. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  258. package/chunks/Transformation2D.js +1 -1
  259. package/chunks/UnitFactory.js +1 -1
  260. package/chunks/antlr4.web.js +3 -3
  261. package/chunks/arcgis-knowledge-client-core-simd.js +3 -3
  262. package/chunks/arcgis-knowledge-client-core.js +3 -3
  263. package/chunks/basis_encoder.js +2 -2
  264. package/chunks/basis_transcoder.js +2 -2
  265. package/{portal/schemas → chunks}/definitions.js +1 -1
  266. package/chunks/draco_mesh_decoder.js +2 -2
  267. package/chunks/dxt_encoder.js +3 -3
  268. package/chunks/earcut.js +1 -1
  269. package/chunks/i3s.js +2 -2
  270. package/chunks/index.js +2 -2
  271. package/chunks/lclayout.js +2 -2
  272. package/chunks/lerc-wasm.js +1 -1
  273. package/chunks/libtess-f32.js +1 -1
  274. package/chunks/libtess-f64.js +1 -1
  275. package/chunks/lyr3DMain.js +1 -1
  276. package/chunks/lyr3DWorker.js +1 -1
  277. package/chunks/parquet.js +1 -1
  278. package/chunks/pe-wasm.js +1 -1
  279. package/chunks/projector.js +1 -1
  280. package/chunks/qb3-wasm.js +1 -1
  281. package/chunks/text.js +1 -1
  282. package/chunks/urlUtils.js +2 -0
  283. package/chunks/vxlLayer.js +1 -1
  284. package/chunks/webScene.js +2 -0
  285. package/config.js +1 -1
  286. package/core/Accessor.js +1 -1
  287. package/core/Clonable.d.ts +2 -1
  288. package/core/Clonable.js +1 -1
  289. package/core/Collection.js +1 -1
  290. package/core/Evented.d.ts +2 -1
  291. package/core/Identifiable.d.ts +2 -1
  292. package/core/JSONSupport.d.ts +2 -1
  293. package/core/Loadable.d.ts +2 -1
  294. package/core/MD5.js +1 -1
  295. package/core/MemCache.js +1 -1
  296. package/core/MultiOriginJSONSupport.d.ts +2 -1
  297. package/core/ObjectPool.js +1 -1
  298. package/core/Promise.d.ts +2 -1
  299. package/core/RandomLCG.js +1 -1
  300. package/core/ReadOnlyMultiOriginJSONSupport.d.ts +2 -1
  301. package/core/accessorSupport/decorators/subclass.js +1 -1
  302. package/core/accessorSupport/diffUtils.js +1 -1
  303. package/core/accessorSupport/extensions/serializableProperty/reader.js +1 -1
  304. package/core/accessorSupport/get.js +1 -1
  305. package/core/colorUtils.js +1 -1
  306. package/core/has.js +1 -1
  307. package/core/image/apng.js +1 -1
  308. package/core/lang.js +1 -1
  309. package/core/object.js +1 -1
  310. package/core/pbf.js +1 -1
  311. package/core/sql/StandardizedFunctions.js +1 -1
  312. package/core/string.js +1 -1
  313. package/core/typedArrayUtil.js +1 -1
  314. package/core/urlUtils.js +1 -1
  315. package/core/workers/RemoteClient.js +1 -1
  316. package/editing/sharedTemplates/SharedTemplate.d.ts +2 -1
  317. package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
  318. package/effects/FocusArea.d.ts +2 -1
  319. package/effects/FocusAreaOutline.d.ts +2 -1
  320. package/effects/FocusAreas.d.ts +2 -1
  321. package/form/FormTemplate.d.ts +2 -1
  322. package/form/elements/UtilityNetworkAssociationsElement.d.ts +2 -1
  323. package/form/elements/inputs/attachments/Input.d.ts +2 -1
  324. package/geometry/Circle.js +1 -1
  325. package/geometry/Mesh.d.ts +2 -1
  326. package/geometry/SpatialReference.d.ts +12 -3
  327. package/geometry/geodesicUtils.js +1 -1
  328. package/geometry/geometryEngine.js +1 -1
  329. package/geometry/libtess.js +1 -1
  330. package/geometry/operators/extendOperator.js +1 -1
  331. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  332. package/geometry/operators/geodeticLengthOperator.js +1 -1
  333. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  334. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  335. package/geometry/operators/gx/operatorBoundary.js +1 -1
  336. package/geometry/operators/gx/operatorBuffer.js +1 -1
  337. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  338. package/geometry/operators/gx/operatorDifference.js +1 -1
  339. package/geometry/operators/gx/operatorIntersection.js +1 -1
  340. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  341. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  342. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  343. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  344. package/geometry/operators/gx/operatorOffset.js +1 -1
  345. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  346. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  347. package/geometry/operators/gx/operatorSimplify.js +1 -1
  348. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  349. package/geometry/operators/intersectionOperator.js +1 -1
  350. package/geometry/operators/isNearOperator.js +1 -1
  351. package/geometry/operators/reshapeOperator.js +1 -1
  352. package/geometry/operators/simplifyOperator.js +1 -1
  353. package/geometry/operators/support/GeographicTransformation.d.ts +2 -1
  354. package/geometry/operators/support/GeographicTransformationStep.d.ts +2 -1
  355. package/geometry/operators/support/jsonConverter.js +2 -2
  356. package/geometry/projectionUtils.js +1 -1
  357. package/geometry/support/MeshComponent.d.ts +2 -1
  358. package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +2 -1
  359. package/geometry/support/MeshLocalVertexSpace.d.ts +2 -1
  360. package/geometry/support/MeshMaterial.d.ts +2 -1
  361. package/geometry/support/MeshTexture.d.ts +2 -1
  362. package/geometry/support/MeshTextureTransform.d.ts +2 -1
  363. package/geometry/support/MeshTransform.d.ts +2 -1
  364. package/geometry/support/MeshVertexAttributes.d.ts +2 -1
  365. package/geometry/support/buffer/types.js +1 -1
  366. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  367. package/geometry/support/frustumPlanes.js +1 -1
  368. package/geometry/support/heightModelInfoUtils.js +1 -1
  369. package/geometry/support/intersectsBase.js +1 -1
  370. package/geometry/support/meshUtils/External.js +1 -1
  371. package/geometry/support/meshUtils/exporters/gltf/glb.js +1 -1
  372. package/geometry/support/plane.js +1 -1
  373. package/interfaces.d.ts +16 -123
  374. package/kernel.js +1 -1
  375. package/layerList/Item.d.ts +2 -1
  376. package/layerList/ItemPanel.d.ts +2 -1
  377. package/layerList/TableItem.d.ts +2 -1
  378. package/layerList/TableItemPanel.d.ts +2 -1
  379. package/layers/AnnotationFeatureLayer.d.ts +2 -1
  380. package/layers/BaseDynamicLayer.d.ts +2 -1
  381. package/layers/BaseElevationLayer.d.ts +2 -1
  382. package/layers/BaseTileLayer.d.ts +2 -1
  383. package/layers/BingMapsLayer.d.ts +2 -1
  384. package/layers/BuildingSceneLayer.d.ts +2 -1
  385. package/layers/CSVLayer.d.ts +2 -1
  386. package/layers/CatalogLayer.d.ts +2 -1
  387. package/layers/DimensionFeatureLayer.d.ts +2 -1
  388. package/layers/DimensionLayer.d.ts +2 -1
  389. package/layers/ElevationLayer.d.ts +2 -1
  390. package/layers/FeatureLayer.d.ts +2 -1
  391. package/layers/GaussianSplatLayer.d.ts +3 -10
  392. package/layers/GaussianSplatLayer.js +1 -1
  393. package/layers/GeoJSONLayer.d.ts +2 -1
  394. package/layers/GeoRSSLayer.d.ts +2 -1
  395. package/layers/GeospatialPDFLayer.d.ts +2 -1
  396. package/layers/GraphicsLayer.d.ts +2 -1
  397. package/layers/GroupLayer.d.ts +2 -1
  398. package/layers/ILyr3DWasmPerSceneView.js +1 -1
  399. package/layers/ImageryLayer.d.ts +2 -1
  400. package/layers/ImageryTileLayer.d.ts +2 -1
  401. package/layers/IntegratedMesh3DTilesLayer.d.ts +3 -6
  402. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  403. package/layers/IntegratedMeshLayer.d.ts +27 -3
  404. package/layers/IntegratedMeshLayer.js +1 -1
  405. package/layers/KMLLayer.d.ts +2 -1
  406. package/layers/KnowledgeGraphLayer.d.ts +2 -1
  407. package/layers/Layer.d.ts +2 -1
  408. package/layers/LineOfSightLayer.d.ts +2 -1
  409. package/layers/LinkChartLayer.d.ts +2 -1
  410. package/layers/LinkChartLayer.js +1 -1
  411. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  412. package/layers/MapImageLayer.d.ts +2 -1
  413. package/layers/MapNotesLayer.d.ts +2 -1
  414. package/layers/MapNotesLayer.js +1 -1
  415. package/layers/MediaLayer.d.ts +2 -1
  416. package/layers/OGCFeatureLayer.d.ts +2 -1
  417. package/layers/ParquetLayer.d.ts +2 -33
  418. package/layers/ParquetLayer.js +1 -1
  419. package/layers/PointCloudLayer.d.ts +2 -1
  420. package/layers/RouteLayer.d.ts +2 -1
  421. package/layers/SceneLayer.d.ts +2 -1
  422. package/layers/SketchLayer.d.ts +2 -1
  423. package/layers/StreamLayer.d.ts +2 -1
  424. package/layers/SubtypeGroupLayer.d.ts +2 -1
  425. package/layers/TileLayer.d.ts +2 -1
  426. package/layers/UnknownLayer.d.ts +2 -1
  427. package/layers/UnsupportedLayer.d.ts +2 -1
  428. package/layers/VectorTileLayer.d.ts +2 -1
  429. package/layers/VideoLayer.d.ts +2 -1
  430. package/layers/VideoLayer.js +1 -1
  431. package/layers/ViewshedLayer.d.ts +2 -1
  432. package/layers/VoxelLayer.d.ts +2 -1
  433. package/layers/WCSLayer.d.ts +2 -1
  434. package/layers/WFSLayer.d.ts +3 -2
  435. package/layers/WMSLayer.d.ts +2 -1
  436. package/layers/WMTSLayer.d.ts +2 -1
  437. package/layers/WebTileLayer.d.ts +2 -1
  438. package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +2 -1
  439. package/layers/buildingSublayers/BuildingSublayer.d.ts +2 -1
  440. package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -1
  441. package/layers/catalog/CatalogFootprintLayer.d.ts +2 -1
  442. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
  443. package/layers/graphics/OptimizedGeometry.js +1 -1
  444. package/layers/graphics/applyEditsUtils.js +1 -1
  445. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  446. package/layers/graphics/data/FeatureIdInfo.js +1 -1
  447. package/layers/graphics/data/StreamFeatureManager.js +1 -1
  448. package/layers/graphics/dehydratedFeatures.js +1 -1
  449. package/layers/graphics/sources/csv/csv.js +2 -2
  450. package/layers/graphics/sources/geojson/geojson.js +1 -1
  451. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  452. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  453. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -1
  454. package/layers/mixins/APIKeyMixin.d.ts +2 -1
  455. package/layers/mixins/ArcGISCachedService.d.ts +2 -1
  456. package/layers/mixins/ArcGISImageService.d.ts +2 -1
  457. package/layers/mixins/ArcGISMapService.d.ts +2 -1
  458. package/layers/mixins/BlendLayer.d.ts +2 -1
  459. package/layers/mixins/CustomParametersMixin.d.ts +2 -1
  460. package/layers/mixins/DataSeriesLayer.d.ts +2 -1
  461. package/layers/mixins/DisplayFilteredLayer.d.ts +2 -1
  462. package/layers/mixins/EditBusLayer.d.ts +2 -1
  463. package/layers/mixins/FeatureEffectLayer.d.ts +2 -1
  464. package/layers/mixins/FeatureLayerBase.d.ts +2 -1
  465. package/layers/mixins/FeatureReductionLayer.d.ts +2 -1
  466. package/layers/mixins/OperationalLayer.d.ts +2 -1
  467. package/layers/mixins/OrderedLayer.d.ts +2 -1
  468. package/layers/mixins/PortalLayer.d.ts +2 -1
  469. package/layers/mixins/PublishableLayer.d.ts +2 -1
  470. package/layers/mixins/RasterPresetRendererMixin.d.ts +2 -1
  471. package/layers/mixins/RefreshableLayer.d.ts +2 -1
  472. package/layers/mixins/ReloadableLayer.d.ts +2 -1
  473. package/layers/mixins/ScaleRangeLayer.d.ts +2 -1
  474. package/layers/mixins/SceneService.d.ts +2 -1
  475. package/layers/mixins/SceneService.js +1 -1
  476. package/layers/mixins/SublayersOwner.d.ts +2 -1
  477. package/layers/mixins/TemporalLayer.d.ts +2 -1
  478. package/layers/mixins/TiledImagery.d.ts +2 -1
  479. package/layers/mixins/TrackableLayer.d.ts +2 -1
  480. package/layers/orientedImagery/core/ElevationSourceDefinitions.d.ts +2 -1
  481. package/layers/orientedImagery/core/NavigationNode.js +2 -0
  482. package/layers/orientedImagery/core/imageNavigationUtils.d.ts +2 -0
  483. package/layers/orientedImagery/core/imageNavigationUtils.js +2 -0
  484. package/layers/orientedImagery/core/utils.js +1 -1
  485. package/layers/orientedImagery/queries.js +1 -1
  486. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  487. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  488. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  489. package/layers/orientedImagery/transformations/utils.js +1 -1
  490. package/layers/orientedImagery/types.d.ts +3 -0
  491. package/layers/raster/datasets/RasterFactory.js +1 -1
  492. package/layers/raster/datasets/xmlUtilities.js +1 -1
  493. package/layers/raster/formats/Lerc.js +1 -1
  494. package/layers/raster/formats/pixelRangeUtils.js +1 -1
  495. package/layers/raster/functions/convolutionUtils.js +1 -1
  496. package/layers/raster/functions/customBandIndexUtils.js +1 -1
  497. package/layers/support/AnnotationFeatureSublayer.d.ts +2 -1
  498. package/layers/support/BuildingFilterMode.d.ts +2 -1
  499. package/layers/support/BuildingSummaryStatistics.d.ts +2 -1
  500. package/layers/support/ControlPointsGeoreference.d.ts +2 -1
  501. package/layers/support/DisplayFilter.d.ts +2 -1
  502. package/layers/support/DisplayFilterInfo.d.ts +2 -1
  503. package/layers/support/EditFieldsInfo.d.ts +2 -1
  504. package/layers/support/ExpressionInfo.d.ts +2 -1
  505. package/layers/support/FeatureReductionBinning.d.ts +2 -1
  506. package/layers/support/FeatureReductionCluster.d.ts +2 -1
  507. package/layers/support/FeatureTemplate.d.ts +2 -1
  508. package/layers/support/FeatureType.d.ts +2 -1
  509. package/layers/support/FieldConfiguration.d.ts +2 -1
  510. package/layers/support/FieldFormat.d.ts +2 -1
  511. package/layers/support/GeometryEncodingLocation.d.ts +2 -1
  512. package/layers/support/GeometryEncodingWkb.d.ts +2 -1
  513. package/layers/support/GeometryFieldsInfo.d.ts +2 -1
  514. package/layers/support/I3SIntegratedMeshElevationQuery.js +1 -1
  515. package/layers/support/KMLSublayer.d.ts +2 -1
  516. package/layers/support/LocalMediaElementSource.d.ts +2 -1
  517. package/layers/support/MediaElementBase.d.ts +2 -1
  518. package/layers/support/MosaicRule.js +1 -1
  519. package/layers/support/ParquetFilesData.d.ts +2 -1
  520. package/layers/support/ParquetPortalItemData.d.ts +2 -1
  521. package/layers/support/PixelBlock.js +1 -1
  522. package/layers/support/PlaybackInfo.d.ts +2 -1
  523. package/layers/support/PortalItemData.d.ts +2 -1
  524. package/layers/support/Relationship.d.ts +2 -1
  525. package/layers/support/SceneModifications.d.ts +2 -1
  526. package/layers/support/SpriteSource.js +1 -1
  527. package/layers/support/Sublayer.d.ts +2 -1
  528. package/layers/support/Subtype.d.ts +2 -1
  529. package/layers/support/SubtypeSublayer.d.ts +2 -1
  530. package/layers/support/SymbolLayerDrawing.d.ts +2 -1
  531. package/layers/support/TelemetryData.d.ts +2 -1
  532. package/layers/support/TelemetryDisplay.d.ts +2 -1
  533. package/layers/support/TimeInfo.d.ts +2 -1
  534. package/layers/support/TimeSeriesCalculationMethod.d.ts +2 -1
  535. package/layers/support/TimeSeriesFieldTimeMapping.d.ts +2 -1
  536. package/layers/support/TimeSeriesInfo.d.ts +2 -1
  537. package/layers/support/TrackInfo.d.ts +2 -1
  538. package/layers/support/TrackPartInfo.d.ts +2 -1
  539. package/layers/support/VideoTimeExtent.d.ts +2 -1
  540. package/layers/support/WMSSublayer.d.ts +2 -1
  541. package/layers/support/arcgisLayers.js +1 -1
  542. package/layers/support/csvUtils.js +1 -1
  543. package/layers/support/featureLayerUtils.js +1 -1
  544. package/layers/support/fieldUtils.js +1 -1
  545. package/layers/support/floorFilterUtils.js +1 -1
  546. package/layers/support/layersCreator.js +1 -1
  547. package/layers/support/schemaValidator.js +1 -1
  548. package/layers/support/tiles3DUtils.js +1 -1
  549. package/layers/support/wmtsUtils.js +1 -1
  550. package/layers/video/VideoController.js +21 -21
  551. package/layers/voxel/VoxelColorStop.d.ts +2 -1
  552. package/layers/voxel/VoxelDynamicSection.d.ts +2 -1
  553. package/layers/voxel/VoxelIsosurface.d.ts +2 -1
  554. package/layers/voxel/VoxelOpacityStop.d.ts +2 -1
  555. package/layers/voxel/VoxelRangeFilter.d.ts +2 -1
  556. package/layers/voxel/VoxelSlice.d.ts +2 -1
  557. package/layers/voxel/VoxelTransferFunctionStyle.d.ts +2 -1
  558. package/layers/voxel/VoxelUniqueValue.d.ts +2 -1
  559. package/libs/ajv/ajv.bundle-wrapper.js +1 -1
  560. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  561. package/linkChart/ChronologicalLayoutSettings.d.ts +2 -1
  562. package/linkChart/LayoutSettings.d.ts +2 -1
  563. package/linkChart/LinkChartProperties.d.ts +2 -1
  564. package/linkChart/NonspatialDataDisplay.d.ts +2 -1
  565. package/linkChart/OrganicLayoutSettings.d.ts +2 -1
  566. package/linkChart/RootedLayoutSettings.d.ts +2 -1
  567. package/networks/Network.d.ts +2 -1
  568. package/networks/Network.js +1 -1
  569. package/networks/support/Circuit.d.ts +2 -1
  570. package/networks/support/CircuitSection.d.ts +2 -1
  571. package/networks/support/NamedTraceConfiguration.d.ts +2 -1
  572. package/networks/support/Subcircuit.d.ts +2 -1
  573. package/networks/support/TraceConfiguration.d.ts +2 -1
  574. package/networks/support/UNTraceConfiguration.d.ts +2 -1
  575. package/networks/support/UtilityNetworkLookupHelper.js +1 -1
  576. package/package.json +5 -5
  577. package/parcelFabric/ParcelFabric.d.ts +761 -0
  578. package/parcelFabric/ParcelFabric.js +2 -0
  579. package/parcelFabric/support/ParcelJobInfo.d.ts +97 -0
  580. package/parcelFabric/support/ParcelJobInfo.js +2 -0
  581. package/parcelFabric/support/ParcelParameters.d.ts +48 -0
  582. package/parcelFabric/support/ParcelParameters.js +2 -0
  583. package/popup/FeatureModel.d.ts +4 -3
  584. package/popup/FeaturesModel.d.ts +4 -3
  585. package/popup/FieldInfo.d.ts +2 -1
  586. package/popup/content/AttachmentsContent.d.ts +2 -1
  587. package/popup/content/RelationshipContent.d.ts +2 -1
  588. package/popup/content/UtilityNetworkAssociationsContent.d.ts +2 -1
  589. package/popup/support/AttachmentsOrderByInfo.d.ts +2 -1
  590. package/popup/support/FieldInfoFormat.d.ts +2 -1
  591. package/popup/support/UtilityNetworkAssociationType.d.ts +2 -1
  592. package/popup/support/featureUtils.js +1 -1
  593. package/portal/Portal.d.ts +2 -1
  594. package/portal/PortalItem.d.ts +2 -1
  595. package/portal/support/loadUtils.js +1 -1
  596. package/portal/support/portalLayers.js +1 -1
  597. package/renderers/ClassBreaksRenderer.d.ts +2 -1
  598. package/renderers/DictionaryRenderer.d.ts +2 -1
  599. package/renderers/DotDensityRenderer.d.ts +2 -1
  600. package/renderers/FlowRenderer.d.ts +8 -6
  601. package/renderers/PieChartRenderer.d.ts +2 -1
  602. package/renderers/SimpleRenderer.d.ts +2 -1
  603. package/renderers/UniqueValueRenderer.d.ts +2 -1
  604. package/renderers/VectorFieldRenderer.d.ts +2 -1
  605. package/renderers/mixins/VisualVariablesMixin.d.ts +2 -1
  606. package/renderers/support/HeatmapLegendOptions.d.ts +2 -1
  607. package/renderers/support/OthersCategory.d.ts +2 -1
  608. package/renderers/support/RasterPresetRenderer.d.ts +2 -1
  609. package/renderers/support/RasterSymbolizer.js +1 -1
  610. package/renderers/support/RendererLegendOptions.d.ts +2 -1
  611. package/renderers/support/UniqueValue.d.ts +2 -1
  612. package/renderers/support/UniqueValueClass.d.ts +2 -1
  613. package/renderers/support/UniqueValueGroup.d.ts +2 -1
  614. package/renderers/support/rendererConversion.js +1 -1
  615. package/renderers/visualVariables/support/VisualVariableLegendOptions.d.ts +2 -1
  616. package/request/queue.js +1 -1
  617. package/rest/featureService/FeatureService.d.ts +2 -1
  618. package/rest/geoprocessor/utils.js +1 -1
  619. package/rest/layerSources/DynamicDataLayer.d.ts +2 -1
  620. package/rest/layerSources/DynamicWorkspaceLayer.d.ts +2 -1
  621. package/rest/networks/support/TraceLocation.d.ts +2 -1
  622. package/rest/parcelFabric/analyzeByLeastSquaresAdjustment.js +2 -0
  623. package/rest/parcelFabric/applyLeastSquaresAdjustment.js +2 -0
  624. package/rest/parcelFabric/assignFeaturesToRecord.js +2 -0
  625. package/rest/parcelFabric/build.js +2 -0
  626. package/rest/parcelFabric/changeParcelType.js +2 -0
  627. package/rest/parcelFabric/clip.js +2 -0
  628. package/rest/parcelFabric/copyLinesToParcelType.js +2 -0
  629. package/rest/parcelFabric/createSeeds.js +2 -0
  630. package/rest/parcelFabric/deleteParcels.js +2 -0
  631. package/rest/parcelFabric/divide.js +2 -0
  632. package/rest/parcelFabric/duplicateParcels.js +2 -0
  633. package/rest/parcelFabric/merge.js +2 -0
  634. package/rest/parcelFabric/mergeParcelPoints.js +2 -0
  635. package/rest/parcelFabric/reassignFeaturesToRecord.js +2 -0
  636. package/rest/parcelFabric/reconstructFromSeeds.js +2 -0
  637. package/rest/parcelFabric/setParcelLineLabelPosition.js +2 -0
  638. package/rest/parcelFabric/shrinkToSeed.js +2 -0
  639. package/rest/parcelFabric/transferParcel.js +2 -0
  640. package/rest/parcelFabric/updateParcelHistory.js +2 -0
  641. package/rest/parcelFabric/utils.js +2 -0
  642. package/rest/print.js +1 -1
  643. package/rest/support/AttributeBinsFeatureSet.d.ts +2 -1
  644. package/rest/support/AttributeBinsGrouping.d.ts +2 -1
  645. package/rest/support/AttributeBinsQuery.d.ts +2 -1
  646. package/rest/support/AutoIntervalBinParameters.d.ts +2 -1
  647. package/rest/support/BinParametersBase.d.ts +2 -1
  648. package/rest/support/CameraInfo.d.ts +2 -1
  649. package/rest/support/CameraInfoMixin.d.ts +2 -1
  650. package/rest/support/ClosestFacilityParameters.d.ts +2 -1
  651. package/rest/support/DataLayer.d.ts +2 -1
  652. package/rest/support/DateBinTimeInterval.d.ts +2 -1
  653. package/rest/support/DirectionLine.d.ts +2 -1
  654. package/rest/support/DirectionPoint.d.ts +2 -1
  655. package/rest/support/FindImagesParameters.d.ts +2 -1
  656. package/rest/support/FixedIntervalBinParameters.d.ts +2 -1
  657. package/rest/support/ImageBoundaryParameters.d.ts +2 -1
  658. package/rest/support/ImageGPSInfoParameters.d.ts +2 -1
  659. package/rest/support/ImageInspectionInfo.d.ts +2 -1
  660. package/rest/support/ImageToMapMultirayParameters.d.ts +2 -1
  661. package/rest/support/ImageToMapParameters.d.ts +2 -1
  662. package/rest/support/ImageUrlParameters.d.ts +2 -1
  663. package/rest/support/ImageVolumeParameters.d.ts +2 -1
  664. package/rest/support/JobInfo.js +1 -1
  665. package/rest/support/LastMileDeliveryParameters.d.ts +2 -1
  666. package/rest/support/LocateSettingBase.d.ts +2 -1
  667. package/rest/support/LocateSettingSource.d.ts +2 -1
  668. package/rest/support/LocateSettings.d.ts +2 -1
  669. package/rest/support/LocateSettingsOverrides.d.ts +2 -1
  670. package/rest/support/MapToImageParameters.d.ts +2 -1
  671. package/rest/support/NetworkUrl.d.ts +2 -1
  672. package/rest/support/NormalizationBinParametersMixin.d.ts +2 -1
  673. package/rest/support/OutDistance.d.ts +2 -1
  674. package/rest/support/PointBarrier.d.ts +2 -1
  675. package/rest/support/PolygonBarrier.d.ts +2 -1
  676. package/rest/support/PolylineBarrier.d.ts +2 -1
  677. package/rest/support/RouteInfo.d.ts +2 -1
  678. package/rest/support/RouteParameters.d.ts +2 -1
  679. package/rest/support/ServiceAreaParameters.d.ts +2 -1
  680. package/rest/support/Stop.d.ts +2 -1
  681. package/rest/support/TravelMode.d.ts +2 -1
  682. package/rest/support/printTaskUtils.js +1 -1
  683. package/smartMapping/heuristics/scaleRange.js +1 -1
  684. package/smartMapping/raster/renderers/classBreaks.js +1 -1
  685. package/smartMapping/renderers/color.js +1 -1
  686. package/smartMapping/renderers/location.js +1 -1
  687. package/smartMapping/renderers/support/utils.js +1 -1
  688. package/smartMapping/renderers/univariateColorSize.js +1 -1
  689. package/support/LayersMixin.d.ts +2 -1
  690. package/support/TablesMixin.d.ts +2 -1
  691. package/support/actions/ActionBase.d.ts +2 -1
  692. package/support/basemapUtils.js +1 -1
  693. package/symbols/LineStyleMarker3D.d.ts +2 -1
  694. package/symbols/cim/utils.js +1 -1
  695. package/symbols/patterns/LinePattern3D.d.ts +2 -1
  696. package/symbols/patterns/Pattern3D.d.ts +2 -1
  697. package/symbols/support/ElevationInfo.d.ts +2 -1
  698. package/symbols/support/OccludedVisibility.d.ts +2 -1
  699. package/symbols/support/Symbol3DEmissive.d.ts +2 -1
  700. package/symbols/support/Symbol3DMaterial.d.ts +2 -1
  701. package/symbols/support/Symbol3DTextBackground.d.ts +2 -1
  702. package/symbols/support/cimSymbolUtils.js +1 -1
  703. package/tables/elements/AttributeTableAttachmentElement.d.ts +2 -1
  704. package/tables/elements/AttributeTableFieldElement.d.ts +2 -1
  705. package/tables/elements/AttributeTableGroupElement.d.ts +2 -1
  706. package/tables/elements/AttributeTableRelationshipElement.d.ts +2 -1
  707. package/tables/support/FieldOrder.d.ts +2 -1
  708. package/time/TimeInterval.d.ts +2 -1
  709. package/undoredo/support/ServiceVersionInfo.js +1 -1
  710. package/versionManagement/VersionManagementService.d.ts +2 -1
  711. package/versionManagement/VersioningState.d.ts +2 -1
  712. package/views/2d/engine/flow/dataUtils.js +1 -1
  713. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  714. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  715. package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
  716. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  717. package/views/2d/engine/webgl/TextureManager.js +1 -1
  718. package/views/2d/engine/webgl/cpuMapped/CpuBuffer.js +1 -1
  719. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
  720. package/views/2d/engine/webgl/definitions.js +1 -1
  721. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  722. package/views/2d/engine/webgl/number.js +1 -1
  723. package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
  724. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
  725. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  726. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
  727. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
  728. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  729. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  730. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  731. package/views/2d/layers/LayerView2D.js +1 -1
  732. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  733. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  734. package/views/2d/layers/features/support/ComputedAttributeStorage.js +1 -1
  735. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  736. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  737. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  738. package/views/2d/layers/features/support/StaticBitSet.js +1 -1
  739. package/views/2d/layers/features/support/rendererUtils.js +1 -1
  740. package/views/2d/layers/support/annodime/annotationSchema.js +1 -1
  741. package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
  742. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  743. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  744. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  745. package/views/3d/analysis/Viewshed/ViewshedArrowManipulator.js +1 -1
  746. package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +1 -1
  747. package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
  748. package/views/3d/environment/SunLighting.d.ts +2 -1
  749. package/views/3d/environment/VirtualLighting.d.ts +2 -1
  750. package/views/3d/glTF/internal/Resource.js +1 -1
  751. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  752. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  753. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  754. package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
  755. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  756. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  757. package/views/3d/interactive/manipulatorUtils.js +1 -1
  758. package/views/3d/interactive/manipulators/ShiftManipulator.js +1 -1
  759. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  760. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  761. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  762. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  763. package/views/3d/layers/I3SMeshView3D.js +1 -1
  764. package/views/3d/layers/ImageryLayerView3D.js +1 -1
  765. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  766. package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +1 -1
  767. package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +1 -1
  768. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  769. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  770. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  771. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  772. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  773. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  774. package/views/3d/layers/graphics/LabelInfo.js +1 -1
  775. package/views/3d/layers/graphics/extrudePolygon.js +1 -1
  776. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  777. package/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +1 -1
  778. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  779. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  780. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  781. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  782. package/views/3d/layers/i3s/IDBCache.js +1 -1
  783. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
  784. package/views/3d/layers/support/patternUtils.js +1 -1
  785. package/views/3d/support/PBFDecoder.js +1 -1
  786. package/views/3d/support/cameraUtils.js +1 -1
  787. package/views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js +1 -1
  788. package/views/3d/support/meshProcessing.js +1 -1
  789. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  790. package/views/3d/support/sunUtils.js +1 -1
  791. package/views/3d/terrain/PatchRenderData.js +1 -1
  792. package/views/3d/terrain/TerrainRenderer.js +1 -1
  793. package/views/3d/terrain/TerrainSurface.js +1 -1
  794. package/views/3d/webgl/RenderCamera.js +1 -1
  795. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  796. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  797. package/views/3d/webgl-engine/collections/Component/ObjectParameters.js +1 -1
  798. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
  799. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +1 -6
  800. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -4
  801. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
  802. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +19 -19
  803. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
  804. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +16 -15
  805. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +3 -1
  806. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +14 -13
  807. package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +14 -4
  808. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.glsl.js +1 -1
  809. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
  810. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechnique.js +1 -1
  811. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  812. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +2 -0
  813. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  814. package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
  815. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +2 -2
  816. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  817. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  818. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  819. package/views/3d/webgl-engine/lib/EmissionFader.js +2 -0
  820. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +5 -5
  821. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  822. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  823. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  824. package/views/3d/webgl-engine/lib/Program.js +1 -1
  825. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  826. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  827. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  828. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  829. package/views/3d/webgl-engine/lib/edgeRendering/EdgeUtil.glsl.js +1 -2
  830. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  831. package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
  832. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  833. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  834. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  835. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  836. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  837. package/views/3d/webgl-engine/materials/renderers/IndexLayout.js +1 -1
  838. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  839. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  840. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  841. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  842. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  843. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  844. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  845. package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
  846. package/views/BreakpointsOwner.d.ts +2 -1
  847. package/views/DOMContainer.d.ts +2 -1
  848. package/views/PopupView.d.ts +2 -1
  849. package/views/SceneView.d.ts +2 -1
  850. package/views/Theme.d.ts +2 -1
  851. package/views/VideoView.d.ts +2 -1
  852. package/views/View.d.ts +2 -1
  853. package/views/View2D.d.ts +2 -1
  854. package/views/Viewport2DMixin.d.ts +2 -1
  855. package/views/analysis/AnalysisView.d.ts +2 -1
  856. package/views/draw/DrawAction.d.ts +2 -1
  857. package/views/draw/DrawManipulator3D.js +1 -1
  858. package/views/draw/support/managers/TooltipManager.js +1 -1
  859. package/views/draw/support/reshapeUtils.js +1 -1
  860. package/views/interactive/GraphicManipulator.js +1 -1
  861. package/views/interactive/options/SnappingOptions.d.ts +5 -3
  862. package/views/interactive/sketch/constraints.js +1 -1
  863. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  864. package/views/interactive/snapping/FeatureSnappingLayerSource.d.ts +6 -3
  865. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  866. package/views/interactive/snapping/featureSources/symbologySnappingCandidates.js +1 -1
  867. package/views/layers/FeatureLikeLayerView.d.ts +0 -32
  868. package/views/layers/FeatureLikeLayerView.js +1 -1
  869. package/views/layers/GraphicsLayerView.d.ts +0 -32
  870. package/views/layers/GraphicsLayerView.js +1 -1
  871. package/views/layers/ImageryLayerView.d.ts +1 -62
  872. package/views/layers/LayerView.d.ts +2 -1
  873. package/views/layers/LayerView.js +1 -1
  874. package/views/layers/PointCloudLayerView.d.ts +2 -1
  875. package/views/selection/SelectionOperation.js +1 -1
  876. package/views/support/GeometryWorker.js +1 -1
  877. package/views/support/flow/dataUtils.js +1 -1
  878. package/views/support/screenUtils.js +1 -1
  879. package/views/support/screenshotUtils.js +1 -1
  880. package/views/support/waitForResources.js +1 -1
  881. package/views/ui/UI.d.ts +1 -12
  882. package/views/webgl/InstanceCounter.js +1 -1
  883. package/views/webgl/Program.js +3 -3
  884. package/views/webgl/RenderingContext.js +1 -1
  885. package/webdoc/GeotriggersInfo.d.ts +2 -1
  886. package/webdoc/IPSInfo.d.ts +2 -1
  887. package/webdoc/geotriggersInfo/DeviceLocationFeed.d.ts +2 -1
  888. package/webdoc/geotriggersInfo/ExpressionInfo.d.ts +2 -1
  889. package/webdoc/geotriggersInfo/FeatureFenceParameters.d.ts +2 -1
  890. package/webdoc/geotriggersInfo/FeatureFilter.d.ts +2 -1
  891. package/webdoc/geotriggersInfo/FeatureLayerSource.d.ts +2 -1
  892. package/webdoc/geotriggersInfo/Geotrigger.d.ts +2 -1
  893. package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.d.ts +2 -1
  894. package/webdoc/ips/AppleIPSProperties.d.ts +2 -1
  895. package/webdoc/ips/Configuration.d.ts +2 -1
  896. package/webdoc/ips/GNSSProperties.d.ts +2 -1
  897. package/webdoc/ips/PathSnappingProperties.d.ts +2 -1
  898. package/webdoc/ips/PositioningService.d.ts +2 -1
  899. package/webdoc/ips/SmoothingProperties.d.ts +2 -1
  900. package/webdoc/support/SlideThumbnail.d.ts +2 -1
  901. package/webdoc/support/webdocLoadUtils.js +1 -1
  902. package/webmap/Bookmark.d.ts +2 -1
  903. package/webmap/InitialViewProperties.d.ts +2 -1
  904. package/webscene/Glow.d.ts +2 -1
  905. package/webscene/InitialViewProperties.d.ts +2 -1
  906. package/webscene/Presentation.d.ts +2 -1
  907. package/webscene/Slide.d.ts +2 -1
  908. package/webscene/SlideLegendInfo.d.ts +2 -1
  909. package/webscene/spec-certification/api.js +1 -1
  910. package/webscene/spec-certification/spec.js +1 -1
  911. package/webscene/support/Description.d.ts +2 -1
  912. package/webscene/support/FeatureReference.d.ts +2 -1
  913. package/webscene/support/FeatureReferenceId.d.ts +2 -1
  914. package/webscene/support/LayerReference.d.ts +2 -1
  915. package/webscene/support/SlideElements.d.ts +2 -1
  916. package/webscene/support/SlideEnvironment.d.ts +2 -1
  917. package/webscene/support/SlideGround.d.ts +2 -1
  918. package/webscene/support/SlidePopupInfo.d.ts +2 -1
  919. package/webscene/support/SlideVisibleLayer.d.ts +2 -1
  920. package/webscene/support/Title.d.ts +2 -1
  921. package/webscene/support/schemaValidator.js +1 -1
  922. package/webscene/version.js +1 -1
  923. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +2 -1
  924. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -1
  925. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +2 -2
  926. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  927. package/widgets/BasemapLayerList/BasemapLayerListVisibleElements.d.ts +2 -2
  928. package/widgets/BasemapLayerList/types.d.ts +3 -3
  929. package/widgets/BasemapLayerList.d.ts +4 -3
  930. package/widgets/BasemapLayerList.js +1 -1
  931. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  932. package/widgets/BatchAttributeForm.js +1 -1
  933. package/widgets/Bookmarks/BookmarksViewModel.d.ts +2 -1
  934. package/widgets/Bookmarks.d.ts +2 -1
  935. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +2 -2
  936. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  937. package/widgets/CatalogLayerList/CatalogLayerListVisibleElements.d.ts +2 -2
  938. package/widgets/CatalogLayerList/types.d.ts +3 -3
  939. package/widgets/CatalogLayerList.d.ts +5 -4
  940. package/widgets/CatalogLayerList.js +1 -1
  941. package/widgets/Compass/CompassViewModel.d.ts +2 -1
  942. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -1
  943. package/widgets/Directions/DirectionsViewModel.d.ts +2 -1
  944. package/widgets/Editor/workflowUtils.js +1 -1
  945. package/widgets/Editor.js +1 -1
  946. package/widgets/ElevationProfile/ElevationProfileInteraction.js +1 -1
  947. package/widgets/Feature/FeatureViewModel.d.ts +2 -1
  948. package/widgets/FeatureForm/FeatureFormViewModel.d.ts +2 -1
  949. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  950. package/widgets/FeatureForm/UtilityNetworkAssociationInput.d.ts +2 -1
  951. package/widgets/FeatureForm.js +1 -1
  952. package/widgets/FeatureTable/support/ColumnTemplate.d.ts +2 -1
  953. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +2 -1
  954. package/widgets/FeatureTable/support/EditableColumnTemplateMixin.d.ts +2 -1
  955. package/widgets/FeatureTable/support/FieldColumnTemplate.d.ts +2 -1
  956. package/widgets/FeatureTable/support/TableTemplate.d.ts +2 -1
  957. package/widgets/FeatureTemplates/TemplateItemGroup.d.ts +2 -1
  958. package/widgets/Features/FeaturesViewModel.d.ts +2 -1
  959. package/widgets/FloorFilter/FloorFilterViewModel.d.ts +2 -1
  960. package/widgets/Home/HomeViewModel.d.ts +2 -1
  961. package/widgets/LayerList/LayerListViewModel.js +1 -1
  962. package/widgets/LayerList/LayerListVisibleElements.d.ts +2 -2
  963. package/widgets/LayerList/ListItem.d.ts +3 -2
  964. package/widgets/LayerList/ListItemPanel.d.ts +3 -2
  965. package/widgets/LayerList/types.d.ts +1 -1
  966. package/widgets/LayerList.d.ts +2 -1
  967. package/widgets/Measurement.js +1 -1
  968. package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
  969. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +2 -1
  970. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  971. package/widgets/OrientedImageryViewer/adapters/draw/HeightMeasurementAdapter.js +1 -1
  972. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  973. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  974. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  975. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  976. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  977. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  978. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  979. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  980. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  981. package/widgets/OrientedImageryViewer/components/NavigationNode.js +1 -1
  982. package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
  983. package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +1 -1
  984. package/widgets/OrientedImageryViewer/components/NavigationUIViewModel.js +1 -1
  985. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  986. package/widgets/OrientedImageryViewer/components/OverlayLayersListViewModel.js +1 -1
  987. package/widgets/OrientedImageryViewer/components/imageNavigationUtils.js +1 -1
  988. package/widgets/OrientedImageryViewer/constants.js +1 -1
  989. package/widgets/OrientedImageryViewer/featureCoverage.js +1 -1
  990. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  991. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  992. package/widgets/OrientedImageryViewer/imageMeasurementWorkerUtils.js +1 -1
  993. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  994. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  995. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  996. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  997. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  998. package/widgets/OrientedImageryViewer/panoramicImageProperties.js +1 -1
  999. package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
  1000. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  1001. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  1002. package/widgets/OrientedImageryViewer/services/TransformationService.js +1 -1
  1003. package/widgets/OrientedImageryViewer/support/MediaPrefetcher.js +1 -1
  1004. package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
  1005. package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +1 -1
  1006. package/widgets/OrientedImageryViewer/support/geometryUtils.js +1 -1
  1007. package/widgets/OrientedImageryViewer/support/navigationViewStateUtils.js +1 -1
  1008. package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
  1009. package/widgets/OrientedImageryViewer/support/resolveMediaProps.js +1 -1
  1010. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  1011. package/widgets/OrientedImageryViewer/support/typeUtils.js +1 -1
  1012. package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
  1013. package/widgets/OrientedImageryViewer/symbols.js +1 -1
  1014. package/widgets/OrientedImageryViewer/types.d.ts +10 -0
  1015. package/widgets/OrientedImageryViewer/utils.js +1 -1
  1016. package/widgets/OrientedImageryViewer.js +1 -1
  1017. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  1018. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  1019. package/widgets/PanoramicViewer/support/PanoramicMedia.js +1 -1
  1020. package/widgets/Print/PrintViewModel.d.ts +2 -1
  1021. package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
  1022. package/widgets/Search/SearchSource.d.ts +2 -1
  1023. package/widgets/Search/SearchViewModel.d.ts +2 -1
  1024. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  1025. package/widgets/Sketch/support/PluginManager.js +1 -1
  1026. package/widgets/TableList/ListItem.d.ts +4 -3
  1027. package/widgets/TableList/ListItemPanel.d.ts +6 -5
  1028. package/widgets/TableList/TableListViewModel.d.ts +4 -4
  1029. package/widgets/TableList/TableListViewModel.js +1 -1
  1030. package/widgets/TableList/TableListVisibleElements.d.ts +2 -2
  1031. package/widgets/TableList/types.d.ts +5 -5
  1032. package/widgets/TableList.d.ts +5 -4
  1033. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  1034. package/widgets/UtilityNetworkTrace.js +1 -1
  1035. package/widgets/Widget.d.ts +2 -1
  1036. package/widgets/support/GeolocationPositioning.d.ts +2 -1
  1037. package/widgets/support/GoTo.d.ts +2 -1
  1038. package/widgets/types.d.ts +0 -21
  1039. package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +0 -1
  1040. package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +0 -1
  1041. package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +0 -1
  1042. package/assets/esri/core/workers/chunks/1e5c5029b0653047a769.js +0 -1
  1043. package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +0 -1
  1044. package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +0 -1
  1045. package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +0 -1
  1046. package/assets/esri/core/workers/chunks/2e760d04641755d1820d.js +0 -1
  1047. package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +0 -1
  1048. package/assets/esri/core/workers/chunks/361d620b3f91868b1490.js +0 -1
  1049. package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +0 -1
  1050. package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +0 -1
  1051. package/assets/esri/core/workers/chunks/3a90b6eafa92f1a68ac5.js +0 -1
  1052. package/assets/esri/core/workers/chunks/3b552afffaa78bf4fe18.js +0 -1
  1053. package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +0 -1
  1054. package/assets/esri/core/workers/chunks/46969f379623810b2eca.js +0 -1
  1055. package/assets/esri/core/workers/chunks/47f0c717acc2c33ea670.js +0 -1
  1056. package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +0 -1
  1057. package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +0 -1
  1058. package/assets/esri/core/workers/chunks/4e03aa5518d46a36661c.js +0 -1
  1059. package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +0 -1
  1060. package/assets/esri/core/workers/chunks/59295b99bdff4045a0e7.js +0 -1
  1061. package/assets/esri/core/workers/chunks/5c2fe67527c9d7b4dba3.js +0 -1
  1062. package/assets/esri/core/workers/chunks/5d908a823b324bafda1e.js +0 -1
  1063. package/assets/esri/core/workers/chunks/5dea74fe52583e77f3ce.js +0 -1
  1064. package/assets/esri/core/workers/chunks/5f1cb79aec9c4a9b7ddc.js +0 -29
  1065. package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +0 -1
  1066. package/assets/esri/core/workers/chunks/67c2e5953087dadfd245.js +0 -1
  1067. package/assets/esri/core/workers/chunks/6f3732e7ba2d031ba789.js +0 -1
  1068. package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +0 -1
  1069. package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +0 -1
  1070. package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +0 -1
  1071. package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +0 -1
  1072. package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +0 -1
  1073. package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +0 -1
  1074. package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +0 -1
  1075. package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +0 -1
  1076. package/assets/esri/core/workers/chunks/919a6aedf38e9631ee09.js +0 -1
  1077. package/assets/esri/core/workers/chunks/9869c696e6321c8db0a9.js +0 -1
  1078. package/assets/esri/core/workers/chunks/9d0976f5979c4f9154dc.js +0 -1
  1079. package/assets/esri/core/workers/chunks/a332e31165b65a6fb92e.js +0 -1
  1080. package/assets/esri/core/workers/chunks/a4d3944700f1cc240176.js +0 -1
  1081. package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +0 -1
  1082. package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +0 -1
  1083. package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +0 -1
  1084. package/assets/esri/core/workers/chunks/b5e7475cc5fbf31289d3.js +0 -1
  1085. package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +0 -1
  1086. package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +0 -1
  1087. package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +0 -1
  1088. package/assets/esri/core/workers/chunks/c7f49493bd548d5dc1e0.js +0 -1
  1089. package/assets/esri/core/workers/chunks/cb62326b6526cde429c1.js +0 -1
  1090. package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +0 -1
  1091. package/assets/esri/core/workers/chunks/ce0274847ccce6a1ac53.js +0 -1
  1092. package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +0 -1
  1093. package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +0 -1
  1094. package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +0 -1
  1095. package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +0 -1
  1096. package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +0 -1
  1097. package/assets/esri/core/workers/chunks/eaf720dfdf6ceca31249.js +0 -1
  1098. package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +0 -1
  1099. package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +0 -1
  1100. package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +0 -1
  1101. package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +0 -1
  1102. package/assets/esri/core/workers/chunks/fd17c4a9e13bf77aa86a.js +0 -1
  1103. package/assets/esri/widgets/Attribution/t9n/messages.ar.json +0 -1
  1104. package/assets/esri/widgets/Attribution/t9n/messages.bg.json +0 -1
  1105. package/assets/esri/widgets/Attribution/t9n/messages.bs.json +0 -1
  1106. package/assets/esri/widgets/Attribution/t9n/messages.ca.json +0 -1
  1107. package/assets/esri/widgets/Attribution/t9n/messages.cs.json +0 -1
  1108. package/assets/esri/widgets/Attribution/t9n/messages.da.json +0 -1
  1109. package/assets/esri/widgets/Attribution/t9n/messages.de.json +0 -1
  1110. package/assets/esri/widgets/Attribution/t9n/messages.el.json +0 -1
  1111. package/assets/esri/widgets/Attribution/t9n/messages.en.json +0 -1
  1112. package/assets/esri/widgets/Attribution/t9n/messages.es.json +0 -1
  1113. package/assets/esri/widgets/Attribution/t9n/messages.et.json +0 -1
  1114. package/assets/esri/widgets/Attribution/t9n/messages.fi.json +0 -1
  1115. package/assets/esri/widgets/Attribution/t9n/messages.fr.json +0 -1
  1116. package/assets/esri/widgets/Attribution/t9n/messages.he.json +0 -1
  1117. package/assets/esri/widgets/Attribution/t9n/messages.hr.json +0 -1
  1118. package/assets/esri/widgets/Attribution/t9n/messages.hu.json +0 -1
  1119. package/assets/esri/widgets/Attribution/t9n/messages.id.json +0 -1
  1120. package/assets/esri/widgets/Attribution/t9n/messages.it.json +0 -1
  1121. package/assets/esri/widgets/Attribution/t9n/messages.ja.json +0 -1
  1122. package/assets/esri/widgets/Attribution/t9n/messages.ko.json +0 -1
  1123. package/assets/esri/widgets/Attribution/t9n/messages.lt.json +0 -1
  1124. package/assets/esri/widgets/Attribution/t9n/messages.lv.json +0 -1
  1125. package/assets/esri/widgets/Attribution/t9n/messages.nl.json +0 -1
  1126. package/assets/esri/widgets/Attribution/t9n/messages.no.json +0 -1
  1127. package/assets/esri/widgets/Attribution/t9n/messages.pl.json +0 -1
  1128. package/assets/esri/widgets/Attribution/t9n/messages.pt-BR.json +0 -1
  1129. package/assets/esri/widgets/Attribution/t9n/messages.pt-PT.json +0 -1
  1130. package/assets/esri/widgets/Attribution/t9n/messages.ro.json +0 -1
  1131. package/assets/esri/widgets/Attribution/t9n/messages.ru.json +0 -1
  1132. package/assets/esri/widgets/Attribution/t9n/messages.sk.json +0 -1
  1133. package/assets/esri/widgets/Attribution/t9n/messages.sl.json +0 -1
  1134. package/assets/esri/widgets/Attribution/t9n/messages.sr.json +0 -1
  1135. package/assets/esri/widgets/Attribution/t9n/messages.sv.json +0 -1
  1136. package/assets/esri/widgets/Attribution/t9n/messages.th.json +0 -1
  1137. package/assets/esri/widgets/Attribution/t9n/messages.tr.json +0 -1
  1138. package/assets/esri/widgets/Attribution/t9n/messages.uk.json +0 -1
  1139. package/assets/esri/widgets/Attribution/t9n/messages.vi.json +0 -1
  1140. package/assets/esri/widgets/Attribution/t9n/messages.zh-CN.json +0 -1
  1141. package/assets/esri/widgets/Attribution/t9n/messages.zh-HK.json +0 -1
  1142. package/assets/esri/widgets/Attribution/t9n/messages.zh-TW.json +0 -1
  1143. package/chunks/CloudsComposition.glsl.js +0 -3
  1144. package/popup/content.d.ts +0 -192
  1145. package/popup/content.js +0 -2
  1146. package/portal/schemas/buildingSceneLayerItem.js +0 -2
  1147. package/portal/schemas/gaussianSplatLayerItem.js +0 -2
  1148. package/portal/schemas/integratedMesh3DTilesLayerItem.js +0 -2
  1149. package/portal/schemas/integratedMeshLayerItem.js +0 -2
  1150. package/portal/schemas/pointCloudLayerItem.js +0 -2
  1151. package/portal/schemas/sceneLayerItem.js +0 -2
  1152. package/portal/schemas/webScene.js +0 -2
  1153. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.glsl.js +0 -2
  1154. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +0 -2
  1155. package/views/3d/webgl-engine/effects/clouds/CloudsCompositionTechnique.js +0 -2
  1156. package/widgets/Attribution/AttributionViewModel.d.ts +0 -41
  1157. package/widgets/Attribution/AttributionViewModel.js +0 -2
  1158. package/widgets/Attribution.d.ts +0 -105
  1159. package/widgets/Attribution.js +0 -2
  1160. package/widgets/OrientedImageryViewer/support/VideoFeatureCache.js +0 -2
  1161. package/widgets/OrientedImageryViewer/videoViewerUtils.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{substitute as t}from"../intl.js";import{deprecateWidget as n}from"../core/deprecate.js";import r from"../core/Logger.js";import{getOrCreateMapValue as i}from"../core/MapUtils.js";import{destroyMaybe as a}from"../core/maybe.js";import o from"../core/ReactiveMap.js";import{watch as s,when as c,on as l,sync as u}from"../core/reactiveUtils.js";import{formatFileSize as d}from"../core/unitFormatUtils.js";import{property as f,subclass as p}from"../core/accessorSupport/decorators.js";import{formatDate as m}from"../intl/date.js";import{isIntegerField as h}from"../layers/support/fieldUtils.js";import{isString as g}from"../support/guards.js";import ee from"./Widget.js";import{getAttachmentTypeCategory as te,getCalciteIconForAttachment as _}from"./Attachments/support/attachmentUtils.js";import{getAttachmentKey as v,isImageAttachment as y,getAttachmentFilenameParts as b}from"./BatchAttributeForm/attachmentUtils.js";import{getHiddenFieldsValidationErrorMessage as ne,getMessageString as x,isElementTemplateWithInputType as S,subtypeChangeShouldPrompt as re,flattenInputs as ie}from"./BatchAttributeForm/batchAttributeFormUtils.js";import C from"./BatchAttributeForm/BatchAttributeFormViewModel.js";import{css as w}from"./BatchAttributeForm/css.js";import{makeViewingEditedAttachmentFooterButtons as ae,makeViewingAttachmentFooterButtons as oe,makeCancelFooterButton as T,makeDefaultFooterButtons as E}from"./BatchAttributeForm/interfaceUtils.js";import D from"./BatchAttributeForm/VisibleElements.js";import{isDynamicChoiceController as O,isMultipleChoiceController as k}from"./BatchAttributeForm/inputs/support/controllerUtils.js";import{isGroupInput as A,isFieldInput as j,isTextElementInput as se,isRelationshipElementInput as ce,isAttachmentElementInput as le,isUtilityNetworkAssociationsElementInput as ue,differentValuesString as M,getNormalizedFieldName as N,isGroupedInput as P}from"./BatchAttributeForm/inputs/support/inputUtils.js";import{clearMultipleChoiceOtherChoiceStateForViewModel as F,otherChoiceCheckedPlaceholderValue as I,canRestoreMultipleChoiceOtherChoiceDraftValue as L}from"./BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js";import{loadRelationshipDetailsComponents as R,RelationshipDetails as z}from"./BatchAttributeForm/rendered-content/RelationshipDetails.js";import{Prompt as B}from"./Editor/components/Prompt.js";import{downloadAttachmentInfo as V}from"./FeatureTable/support/exportUtils.js";import{loadCalciteComponents as H}from"./support/componentsUtils.js";import{getLabelForDateFieldValue as de,getIntlOptionsForField as fe,prepareISOFieldValueForDateComponents as U,prepareUnixFieldValueForDateComponents as W,normalizeTimeOnlyString as G,getISOFieldValueFromDateComponents as pe,getUnixFieldValueFromDateComponents as me}from"./support/dateUtils.js";import{globalCss as K}from"./support/globalCss.js";import{Heading as he}from"./support/Heading.js";import{calciteListFilterProps as ge}from"./support/listUtils.js";import{messageBundle as q,vmEvent as _e,tsx as J}from"./support/widget.js";import{setFocus as ve}from"./support/widgetUtils.js";import{isEmptyValue as Y,ContingentValuesValidationError as X}from"./support/forms/formUtils.js";const Z=`data-element-id`,Q=`data-field-name`;let $=class extends ee{constructor(e){let{suppressDeprecationWarning:t,...i}=e??{};super(i),this.headingLevel=2,this.messagesCommon=null,this.messages=null,this.featureFormMessages=null,this.featureTableMessages=null,this.messagesUnits=null,this.viewModel=new C,this.visibleElements=new D,this.groupDisplay=`all`,this._associationsList=null,this._associationsWidgetsMap=new o,this._attemptFocusOnNextRender=!1,this._dateComponentMap=new Map,this._touchedInputs=new Set,this._dynamicChoiceItemSelections=new WeakSet,this._focusedFieldInput=null,this._pendingSubtypeChoice=null,this._batchSwitchInputInitialValues=new Map,this._listObserverNode=null,this._listObserver=new IntersectionObserver(e=>{e.length&&e[0].isIntersecting&&this.viewModel.activeRelationshipInput?.incrementPage()},{root:window.document}),this._attachmentDialogInfo=null,this._attachmentListFilterText=``,this._attachmentFileInputMap=new Map,this._prompt=null,this._selectedAttachmentReplaceFileInput=null,this._afterListObserverCreated=e=>{this.viewModel.activeRelationshipInput&&(this._listObserverNode=e)},this._afterListObserverRemoved=()=>{this._listObserverNode=null},this._maximizeSelectedAttachment=()=>{this._attachmentDialogInfo=this.selectedAttachmentDetails},this._enterAttachmentReplaceView=()=>{let e=this.selectedAttachmentDetails;this._canReplaceSelectedAttachment()&&e&&(e.input.clearValidationCriteriaState(),this.viewModel.setShowingSelectedAttachmentReplacePage(!0))},this._setSelectedAttachmentReplaceFileInput=e=>{this._selectedAttachmentReplaceFileInput=e},this._openSelectedAttachmentReplaceFilePicker=()=>{this._canReplaceSelectedAttachment()&&this._selectedAttachmentReplaceFileInput?.click()},this._resetSelectedAttachmentName=()=>{let e=this.selectedAttachmentDetails;if(!e?.attachment)return;let t=e.input.getAttachmentEditState(e.attachment).initialName;if(t==null)return;let n=e.input.template.elementId,r=v(e.attachment);this.viewModel.stageRenameAttachment(n,r,t)},this._closeAttachmentDialog=()=>{this.hideAttachmentDialog()},this._saveInputFromElement=this._saveInputFromElement.bind(this),this._onFormSubmit=this._onFormSubmit.bind(this),this._onComponentFocus=this._onComponentFocus.bind(this),this._onComponentBlur=this._onComponentBlur.bind(this),this._afterComponentCreateOrUpdate=this._afterComponentCreateOrUpdate.bind(this),this._afterDateComponentCreateOrUpdate=this._afterDateComponentCreateOrUpdate.bind(this),this._afterRadioGroupCreateOrUpdate=this._afterRadioGroupCreateOrUpdate.bind(this),t||(this.announceDeprecation=()=>{n(r.getLogger(this),`Editor`,`arcgis-editor`,{version:`5.0`})})}initialize(){this.addHandles([s(()=>this.features.toArray(),()=>{this._dateComponentMap.clear(),F(this.viewModel,{includeDraftValues:!0})}),s(()=>this.viewModel.activeForm,()=>{this._batchSwitchInputInitialValues.clear(),this._resetTransientFormState(),F(this.viewModel),this._setFocusableInput()}),s(()=>this.viewModel.selectedAttachmentAddElementId,()=>{this.hideAttachmentDialog()}),c(()=>!this.selectedAttachmentDetails,()=>this.hideAttachmentDialog()),s(()=>this.viewModel.selectedAttachmentListElementId,()=>{this._attachmentListFilterText=``}),s(()=>[this.viewModel.activeRelationshipInput,this._listObserverNode],()=>this._onObserverChange()),l(()=>this.viewModel,`submit`,()=>{this.valid||this.goToFirstError()}),s(()=>[this._associationsEnabled,this.viewModel.activeForm.allUtilityNetworkAssociationsElementInputs],()=>this._setUpAssociationsWidgets(),u),s(()=>this.viewModel.activeAssociationsInput,e=>this._onActiveAssociationsInputChange(e)),s(()=>this.groupDisplay,()=>this._syncGroupInputStates())])}loadDependencies(){return Promise.all([H({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),autocomplete:()=>import(`@esri/calcite-components/dist/components/calcite-autocomplete`),"autocomplete-item":()=>import(`@esri/calcite-components/dist/components/calcite-autocomplete-item`),block:()=>import(`@esri/calcite-components/dist/components/calcite-block`),button:()=>import(`@esri/calcite-components/dist/components/calcite-button`),checkbox:()=>import(`@esri/calcite-components/dist/components/calcite-checkbox`),chip:()=>import(`@esri/calcite-components/dist/components/calcite-chip`),combobox:()=>import(`@esri/calcite-components/dist/components/calcite-combobox`),"combobox-item":()=>import(`@esri/calcite-components/dist/components/calcite-combobox-item`),"combobox-item-group":()=>import(`@esri/calcite-components/dist/components/calcite-combobox-item-group`),dialog:()=>import(`@esri/calcite-components/dist/components/calcite-dialog`),dropdown:()=>import(`@esri/calcite-components/dist/components/calcite-dropdown`),"dropdown-group":()=>import(`@esri/calcite-components/dist/components/calcite-dropdown-group`),"dropdown-item":()=>import(`@esri/calcite-components/dist/components/calcite-dropdown-item`),icon:()=>import(`@esri/calcite-components/dist/components/calcite-icon`),input:()=>import(`@esri/calcite-components/dist/components/calcite-input`),"input-date-picker":()=>import(`@esri/calcite-components/dist/components/calcite-input-date-picker`),"input-message":()=>import(`@esri/calcite-components/dist/components/calcite-input-message`),"input-number":()=>import(`@esri/calcite-components/dist/components/calcite-input-number`),"input-time-picker":()=>import(`@esri/calcite-components/dist/components/calcite-input-time-picker`),"input-time-zone":()=>import(`@esri/calcite-components/dist/components/calcite-input-time-zone`),label:()=>import(`@esri/calcite-components/dist/components/calcite-label`),list:()=>import(`@esri/calcite-components/dist/components/calcite-list`),"list-item":()=>import(`@esri/calcite-components/dist/components/calcite-list-item`),loader:()=>import(`@esri/calcite-components/dist/components/calcite-loader`),notice:()=>import(`@esri/calcite-components/dist/components/calcite-notice`),switch:()=>import(`@esri/calcite-components/dist/components/calcite-switch`),"text-area":()=>import(`@esri/calcite-components/dist/components/calcite-text-area`),"radio-button":()=>import(`@esri/calcite-components/dist/components/calcite-radio-button`),"radio-button-group":()=>import(`@esri/calcite-components/dist/components/calcite-radio-button-group`)}),R()])}destroy(){this._destroyAssociationsWidgets(),this._associationsList=a(this._associationsList),this._listObserverNode&&this._listObserver.unobserve(this._listObserverNode)}get activeFeatureIndex(){return this.viewModel.activeFeatureIndex}set activeFeatureIndex(e){this.viewModel.activeFeatureIndex=e}get attachmentsEnabled(){return this.viewModel.attachmentsEnabled}set attachmentsEnabled(e){this.viewModel.attachmentsEnabled=e}get callbacks(){return this.viewModel.callbacks}set callbacks(e){this.viewModel.callbacks=e}get disabled(){return this.viewModel.disabled}set disabled(e){this.viewModel.disabled=e}get effectiveTitle(){let{features:e,messages:t,page:n}=this;return t?n===`replacing-attachment`?t.titles.replaceAttachment:n===`viewing-attachment-details`?t.titles.editAttachment:n===`adding-attachments`?t.titles.addAttachments:n===`viewing-attachments`?t.titles.attachments:e.length===1||this.activeFeatureIndex>-1?t.titles.editFeature:e.length>1?t.titles.editFeatures:``:``}get effectiveDisabled(){return this.disabledOrReadOnly||this.viewModel.updating}get disabledOrReadOnly(){return this.disabled||this.readOnly}get features(){return this.viewModel.features}set features(e){this.viewModel.features=e}get footerButtonInfos(){if(!this.features.length||!this.messages||!this.messagesCommon)return[];let{messages:e,messagesCommon:t,page:n}=this,r=this.effectiveDisabled;if(n===`adding-attachments`||n===`replacing-attachment`)return[];if(n===`viewing-attachment-details`){let t=this.selectedAttachmentDetails,n=t?.input?.getAttachmentEditState(t.attachment);return!t?.input||!n?[]:n.isRenamed||n.isReplaced?ae({doneOnclick:()=>this._setSelectedAttachment(null),messages:e.footerButtons,resetOnclick:()=>this._resetSelectedAttachmentChanges(),resetDisabled:this._disableAttachmentModification(t.input)}):oe({deleteDisabled:this._disableAttachmentModification(t.input),deleteOnclick:()=>this._deleteSelectedAttachment(),doneOnclick:()=>this._setSelectedAttachment(null),messages:e.footerButtons})}return n===`viewing-associated-features`?T({messages:t,purpose:`cancel-viewing-associated-features`,onclick:()=>this.goBack()}):n===`viewing-associated-layers`?T({messages:t,purpose:`cancel-viewing-associated-layers`,onclick:()=>this.goBack()}):n===`viewing-attachments`||n===`viewing-related-records`?[]:E({disabled:r||!this.valid,formId:this._formId,messages:e,callback:()=>this.submit()})}get map(){return this.viewModel.map}set map(e){this.viewModel.map=e}get maximumFeatureCount(){return this.viewModel.maximumFeatureCount}set maximumFeatureCount(e){this.viewModel.maximumFeatureCount=e}get maximumFeatureCountWithComplexForms(){return this.viewModel.maximumFeatureCountWithComplexForms}set maximumFeatureCountWithComplexForms(e){this.viewModel.maximumFeatureCountWithComplexForms=e}get spatialReference(){return this.viewModel.spatialReference}set spatialReference(e){this.viewModel.spatialReference=e}get layerInfos(){return this.viewModel.layerInfos}set layerInfos(e){this.viewModel.layerInfos=e}get timeZone(){return this.viewModel.timeZone}set timeZone(e){this.viewModel.timeZone=e}get icon(){return`edit-attributes`}set icon(e){this._overrideIfSome(`icon`,e)}get page(){return this.viewModel.page}get readOnly(){return this.viewModel.readOnly}set readOnly(e){this.viewModel.readOnly=e}get showPrompt(){return e=>{this._prompt?.cancel?.(),this._prompt=e}}set showPrompt(e){this._overrideIfSome(`showPrompt`,e)}get clearPrompt(){return()=>this._prompt=null}set clearPrompt(e){this._overrideIfSome(`clearPrompt`,e)}get selectedAttachment(){return this.viewModel.selectedAttachment}get selectedAttachmentDetails(){return this.viewModel.selectedAttachmentDetails}get valid(){return this.viewModel.valid}get _formHeaderVisible(){return this.viewModel.mode===`batch`||!this.viewModel.activeFeature?!1:!!(this.viewModel.formDescription||this.viewModel.formTitle)}get _associationsEnabled(){let{callbacks:e}=this;return!!(e?.addAssociation||e?.editAssociatedFeature)}get _formId(){return`${this.id}-form`}get _relatedRecordsEnabled(){let{callbacks:e}=this;return!!(e&&(e.addRelatedRecord||e.editRelatedRecord))}async goBack(){return this.viewModel.goBack()}async goHome(){return this.viewModel.goHome()}goToFirstError(){let e=this.viewModel.getFirstVisibleInvalidFieldInput();if(!e)return;let{groupInput:t}=e;t&&(t.open||=!0),this._setFocusableInput(e.input),this.scheduleRender()}render(){return J(`div`,{class:this.classes(w.base,K.widget,K.panel),ondragover:this._handleDragAndDrop,ondrop:this._handleDragAndDrop},this._renderContent(),this._renderAttachmentDialog(),this._prompt?J(B,{...this._prompt,headingLevel:this.headingLevel}):void 0)}setActiveAssociationsInput(e){this.viewModel.setActiveAssociationsInput(e)}setActiveAssociationsLayer(e){this.viewModel.setActiveAssociationsLayer(e)}setActiveAssociationType(e){this.viewModel.setActiveAssociationType(e)}submit(){return this.viewModel.submit()}get test(){return{saveInput:this._saveInput.bind(this),pendingSubtypeChoice:this._pendingSubtypeChoice,touchedInputs:this._touchedInputs}}_setDateTimeTimeZoneMap(e){let{datePart:t,elementId:n}=e.dataset,r=i(this._dateComponentMap,`${n}`,()=>({}));switch(t){case`date`:r.date=e;break;case`time`:r.time=e;break;case`timeZone`:r.timeZone=e}}_renderContent(){let{messages:e,viewModel:n}=this,{status:r}=n;if(r===`failed`)return n.hasTooManyComplexFeatures?this._renderErrorNotice(t(e.formFailedToLoadTooManyComplexFeatures,{num:n.maximumFeatureCountWithComplexForms})):n.hasTooManyFeatures?this._renderErrorNotice(t(e.formFailedToLoadTooManyFeatures,{num:n.maximumFeatureCount})):e.formFailedToLoad;if(n.hasLayersWithContingentValues&&this.viewModel.features.length>1)return this._renderErrorNotice(e.unsupportedContingentValues);if(r===`loading`&&this.visibleElements.loadingIndicator)return J(`calcite-loader`,{key:`loader`,label:this.messagesCommon?.loading});if(this.features.length!==0)return this._renderForm()}_renderErrorNotice(e,t=`warning`){return J(`calcite-notice`,{class:w.noticeError,icon:!0,kind:t,open:!0},J(`div`,{slot:`message`},e))}_renderForm(){return J(`form`,{class:w.form,id:this._formId,inert:!!this._prompt,onsubmit:this._onFormSubmit},this.viewModel.expressionEvaluationFailed&&this.visibleElements.expressionsErrorNotice&&this._renderErrorNotice(this.messages.expressionEvaluationFailed),this._renderInvisibleFieldsError(),this._renderPage())}_renderPage(){switch(this.page){case`adding-attachments`:return this._renderAttachmentAddPage();case`viewing-attachment-details`:case`replacing-attachment`:return this._renderAttachmentDetailPage();case`viewing-attachments`:return this._renderAttachmentListPage();case`viewing-associated-layers`:case`viewing-associated-features`:return this._renderViewingAssociationsPage();case`viewing-related-categories`:case`viewing-related-records`:return this._renderRelationshipListPage();default:return this._renderDefaultPage()}}_renderInvisibleFieldsError(){let{viewModel:e}=this,{hasNonActiveInvalidFeatures:t,activeForm:n}=e,r;if(!e.submitHasBeenAttempted)return null;if(n.invalidHiddenInputs.length>0){if(r=ne(n,e.mode,this.messages),this.viewModel.mode===`batch`){let e=n.invalidHiddenInputs.filter(e=>e.effectiveVisibilityCode===`hidden:group-visibility-expression:all-features`||e.visibilityCode===`hidden:visibility-expression:all-features`);e.length>0?r+=` (${e.map(e=>e.label).join(`, `)})`:r=null}else r=null}else if(t)return null;return r?this._renderErrorNotice(r,`danger`):null}_renderDefaultPage(){return[this._renderReadOnlyNotice(),this._renderFormHeader(),this._renderFormContent()]}_renderReadOnlyNotice(){if((this.disabled||this.readOnly)&&this.visibleElements.readOnlyNotice)return J(`calcite-notice`,{class:w.disabledNotice,"data-testid":`read-only-notice`,icon:`read-only-non-editable`,kind:`brand`,open:!0,scale:`s`,width:`full`},J(`div`,{slot:`message`},this.featureFormMessages.disabledForm))}_renderFormHeader(){let{formTitle:e,formDescription:t}=this.viewModel;if(!this._formHeaderVisible)return;let n=e?J(he,{key:`title`,level:this.headingLevel},e):void 0,r=t?J(`p`,{class:w.description,key:`description`},t):void 0;return J(`div`,{class:w.formHeader},n,r)}_renderFormContent(){return this.viewModel.hasVisibleInputs?this.viewModel.activeForm.inputs.filter(e=>e.visible).map(e=>this._renderInput(e)):this._renderErrorNotice(this.messages.noVisibleFields[this.viewModel.noVisibleElementsReason])}_renderInput(e){if(A(e))return this._renderGroupInput(e);if(j(e))return this._renderLabeledField(e);if(se(e))return this._renderTextComponent(e);if(ce(e))return this._renderRelationshipElementInput(e);if(le(e))return this._renderAttachmentElementInput(e);if(ue(e))return this._renderUtilityNetworkAssociationsElementInput(e)}_renderGroupInput(e){let{inputs:t,template:n,open:r}=e,i=t.filter(e=>e.visible),a=e.label??``,o=this._focusedFieldInput?.group===e,s=this.groupDisplay===`sequential`;return J(`calcite-block`,{class:this.classes(w.group,s?w.groupSequential:null,o?w.groupActive:null,this.disabled?w.inputDisabled:null),description:e.description??void 0,expandable:!0,expanded:r,heading:a,headingLevel:this.headingLevel,key:`{${n.elementId}-key}`,label:a,onCalciteBlockCollapse:({currentTarget:t})=>{e.open=!1,this._onGroupToggle(t,e)},onCalciteBlockExpand:({currentTarget:t})=>{e.open=!0,this._onGroupToggle(t,e)}},i.map(e=>this._renderInput(e)))}_renderLabeledField(e){let{elementId:n}=e.template,{label:r,required:i,dataType:a}=e,o=i?t(this.messages.requiredFieldLabel,{name:r}):r;return J(`calcite-label`,{"aria-label":o,class:w.label,key:`field--${n}`},J(`div`,{class:w.labelTextContent,key:`labelTextContainer`},r,i?J(`span`,{"aria-hidden":`true`,title:this.messagesCommon.required},`*`):void 0),a===`unsupported`?this._renderReadOnlyComponent(e):this._renderFieldInput(e),this._renderAuxiliaryText(e))}_renderFieldInput(e){let t=this.getCommonInputProps(e),{dataType:n}=e;return O(e.inputController)?this._renderDynamicChoiceComponent({input:e,props:t,controller:e.inputController}):e.domain?.type===`coded-value`?this._renderCodedInputs({input:e,props:t}):k(e.inputController)?this._renderMultipleChoiceComponent({input:e,props:t}):n===`date`?this._renderDateComponents(e,t):(t.disabled=this.disabled,t.readOnly=t.readOnly||this.viewModel.updating,n===`number`?this._renderNumberComponent(e,t):this._renderStringComponent(e,t))}_renderAuxiliaryText(e){let{description:t}=e,n=this._getErrorToDisplay(e),r=n?x(e,n,this.messages):null;return r?J(`calcite-input-message`,{icon:!0,status:`invalid`},r):e.valueIsOutOfDomain&&(this._touchedInputs.has(e.template.elementId)||this.viewModel.submitHasBeenAttempted)?J(`calcite-input-message`,{icon:!0,status:`idle`},this.messages.subtypes.fieldOutOfSubtypeDomainWarning):t?J(`calcite-input-message`,{class:w.description,icon:!1,status:`idle`},t):null}_renderCodedInputs({input:e,props:t}){let n=e.input?.type??null,r=e.codedValueOptions;switch(n){case`switch`:return this._renderSwitchField({input:e,props:t});case`radio-buttons`:return this._renderRadioButtonGroupComponent({input:e,options:r,props:t});default:return this._renderComboBoxComponent({options:r,props:t,input:e})}}_renderDynamicChoiceComponent({input:e,props:t,controller:n}){let r=n.filteredChoices,i=t.readOnly||t.disabled,a=e.showNoValueLabel||this.messages.empty,o=n.evaluated&&!n.evaluating&&!n.choices.length&&J(`calcite-notice`,{appearance:`transparent`,kind:`neutral`,open:!0,scale:`s`,slot:`content-bottom`,width:`full`},J(`div`,{slot:`message`},e.showNoValueOptionEnabled?this.messages.noDynamicChoicesWithNoValue:this.messages.noDynamicChoices)),s=t=>{this._saveInput(e,t)},l=(e,t)=>{this._dynamicChoiceItemSelections.delete(n);let r=e.closest(`calcite-autocomplete`);if(r){let e=t==null?``:n.getLabel(t);n.filterValue=``,r.inputValue=e}s(t)},u=({currentTarget:t})=>{let r=t.inputValue??``;n.filterValue=r,!r&&e.value!=null&&s(null)},d=e.showNoValueOptionEnabled?J(`calcite-autocomplete-item`,{disabled:i,heading:a,key:`dynamic-choice-empty`,selected:e.value==null,value:``,onCalciteAutocompleteItemSelect:({currentTarget:e})=>l(e,null),onpointerdown:()=>{this._dynamicChoiceItemSelections.add(n)}}):null,f=t=>{this.addHandles(c(()=>!n.initialEvaluationInProgress,()=>{t.inputValue=e.value===M?this.messages.differentValuesPlaceholder:e.value==null?``:n.inputValue},{once:!0,initial:!0}))};return J(`calcite-autocomplete`,{...t,afterCreate:f,disabled:i&&!n.interactionActive,loading:n.initialEvaluationInProgress,placeholder:e.value==null?a:t.placeholder,value:t.value===M?this.messages.differentValuesPlaceholder:String(t.value),onblur:e=>this._onDynamicChoiceBlur(e,n),onCalciteAutocompleteBeforeOpen:()=>n.beginInteraction(),onCalciteAutocompleteTextInput:u},n.evaluating?J(`calcite-loader`,{key:`dynamic-choice-loader`,label:this.messagesCommon.loading,scale:`s`,slot:`content-top`}):[o,d,...r.map(t=>J(`calcite-autocomplete-item`,{disabled:i,heading:t.name,key:`dynamic-choice-${t.code}`,selected:t.code===e.value,value:String(t.code),onCalciteAutocompleteItemSelect:({currentTarget:e})=>l(e,t.code),onpointerdown:()=>{this._dynamicChoiceItemSelections.add(n)}}))])}_renderMultipleChoiceComponent({input:e,props:t}){let{messages:n}=this,r=this._getMultipleChoiceController(e);if(!r)return null;let{input:i}=r,a=i.includeSelectAllChoices===!0,{checkboxStatesByValue:o,selectAllState:s}=r.selectionState,c=s.checked?n.deselectAllLabel:n.selectAllLabel,l=r.otherChoiceRenderState;return J(`div`,{class:w.multipleChoiceInput,key:`${t.key}-multiple-choice-group`},a?this._renderMultipleChoiceSelectAllCheckbox({props:t,selectAllState:s,selectAllLabel:c,handleSelectAllCheckboxChange:t=>{this._saveValueFromMultipleChoiceCheckbox({input:e,checkbox:t,isSelectAllCheckbox:!0})}}):null,this._renderMultipleChoiceChoiceCheckboxes({input:e,props:t,checkboxStatesByValue:o,handleChoiceCheckboxChange:t=>{this._saveValueFromMultipleChoiceCheckbox({input:e,checkbox:t})}}),l.shouldShow?this._renderMultipleChoiceOtherChoice({props:t,includeSelectAllChoices:a,otherChoiceRenderState:l,handleOtherChoiceCheckboxChange:t=>{let{fieldName:n}=l;n&&this._saveOtherChoiceCheckboxValue({input:e,isChecked:t.checked,otherChoiceFieldName:n})},handleOtherChoiceInputChange:t=>{this._saveValueFromMultipleChoiceTextInput({input:e,textInput:t,otherChoiceFieldName:l.fieldName??void 0})},differentValuesPlaceholder:n.differentValuesPlaceholder}):null)}_renderMultipleChoiceSelectAllCheckbox({props:e,selectAllState:t,selectAllLabel:n,handleSelectAllCheckboxChange:r}){return J(`calcite-checkbox`,{afterCreate:e.afterCreate,afterUpdate:e.afterUpdate,"aria-invalid":e[`aria-invalid`],checked:t.checked,class:w.multipleChoiceSelectAll,"data-element-id":e[Z],disabled:e.readOnly||e.disabled,indeterminate:t.indeterminate,key:`${e.key}-select-all`,label:n,labelText:n,value:`esri_BatchAttributeForm_select_all`,onblur:e.onblur,onCalciteCheckboxChange:({currentTarget:e})=>r(e),onfocus:e.onfocus})}_renderMultipleChoiceChoiceCheckboxes({input:e,props:t,checkboxStatesByValue:n,handleChoiceCheckboxChange:r}){let i=this._getMultipleChoiceController(e);if(!i)return[];let{choices:a}=i;return a.map(e=>{let i=n.get(e.value)??{checked:!1,indeterminate:!1};return J(`calcite-checkbox`,{afterCreate:t.afterCreate,afterUpdate:t.afterUpdate,"aria-invalid":t[`aria-invalid`],checked:i.checked,class:t.class,"data-element-id":t[Z],disabled:t.readOnly||t.disabled,indeterminate:i.indeterminate,key:`${t.key}-${e.value}`,label:e.label,labelText:e.label,value:e.value,onblur:t.onblur,onCalciteCheckboxChange:({currentTarget:e})=>r(e),onfocus:t.onfocus})})}_renderMultipleChoiceOtherChoice({props:e,includeSelectAllChoices:t,otherChoiceRenderState:n,handleOtherChoiceCheckboxChange:r,handleOtherChoiceInputChange:i,differentValuesPlaceholder:a}){let o=n.label??this.messages.otherOptionLabel;return J(`div`,{class:this.classes(w.multipleChoiceOtherChoice,t?w.multipleChoiceOtherChoiceWithSelectAll:null),key:`${e.key}-other-choice`},J(`calcite-checkbox`,{afterCreate:e.afterCreate,afterUpdate:e.afterUpdate,"aria-invalid":e[`aria-invalid`],checked:n.checkboxState.checked,class:e.class,"data-element-id":e[Z],disabled:e.readOnly||e.disabled,indeterminate:n.checkboxState.indeterminate,key:`${e.key}-other-choice-checkbox`,label:o,labelText:o,value:`esri_BatchAttributeForm_other_choice`,onblur:e.onblur,onCalciteCheckboxChange:({currentTarget:e})=>r(e),onfocus:e.onfocus}),n.checkboxState.checked?J(`calcite-input`,{afterCreate:e.afterCreate,afterUpdate:e.afterUpdate,"aria-invalid":e[`aria-invalid`],"aria-label":o,class:w.textElementInput,"data-element-id":e[Z],disabled:e.readOnly||e.disabled,key:`${e.key}-other-choice-input`,maxLength:n.maxLength,placeholder:n.value===M?a:n.hint,status:n.status,type:`text`,value:n.normalizedValue===M?``:n.normalizedValue?String(n.normalizedValue):``,onblur:e.onblur,onCalciteInputInput:({currentTarget:e})=>i(e),onfocus:e.onfocus}):null)}async _saveValueFromMultipleChoiceCheckbox({input:e,checkbox:t,isSelectAllCheckbox:n=!1}){this._markInputTouched(e);let r=this._getMultipleChoiceController(e);if(!r)return;if(r.input&&!n&&this.viewModel.mode===`batch`){await this._saveMultipleChoiceCheckboxValueByFeature({input:e,checkbox:t});return}let i=e.value,a=this._parseValue(t,e,n);a!==i&&await this.viewModel.setValue(e.template.elementId,a)}async _saveValueFromMultipleChoiceTextInput({input:e,textInput:t,otherChoiceFieldName:n}){if(!n)return;let r=t.value,i=r==null||r===``?null:r,a=this._getMultipleChoiceController(e);if(!a)return;a.initializeExplicitOtherChoiceCheckedState(),a.stashOtherChoiceDraftValueForFeatures(e.features,i);let o=N(e,n);o&&await this.viewModel.setValueForFieldName(o,i,Array.from(e.features,e=>e.source))}async _saveOtherChoiceCheckboxValue({input:e,isChecked:t,otherChoiceFieldName:n}){let r=this._getMultipleChoiceController(e);if(!r)return;r.setExplicitOtherChoiceCheckedState(t),this._markInputTouched(e),t||r.setOtherChoiceDraftValuesFromFeatures(e.features.toArray());let i=N(e,n);if(!i)return;let a=new Map;for(let i of e.features){let e=i.getAttribute(n);if(t){if(!Y(e))continue;let t=r.getOtherChoiceDraftValue(i),n=L(t)?t:I;a.set(i,n)}else e!=null&&a.set(i,null)}a.size!==0&&await this.viewModel.setValuePerFeatureForFieldName(i,new Map(Array.from(a,([e,t])=>[e.source,t])))}async _saveMultipleChoiceCheckboxValueByFeature({input:e,checkbox:t}){let n=this._getMultipleChoiceController(e);if(!n)return;let r=new Map(e.features.map(r=>[r,n.getUpdatedValueForFeature({choiceValue:t.value,currentValue:r.getAttribute(e.fieldName),isChecked:t.checked})]));r.size!==0&&await this.viewModel.setFieldInputValuePerFeature(e,r)}_renderSwitchField({input:e,props:t}){if((this._batchSwitchInputInitialValues.get(e)===M||e.value===M)&&this.viewModel.mode===`batch`){let n={dropdown:{afterCreate:this._afterComponentCreateOrUpdate,afterUpdate:this._afterComponentCreateOrUpdate,disabled:t.readOnly,open:!1,onblur:t.onblur,onfocus:t.onfocus,[Z]:t[Z]},trigger:{appearance:`transparent`,iconEnd:`chevron-down`,kind:`neutral`,slot:`trigger`,label:t.label},group:{mode:`single`}};return this._renderDropdownComponent({buttonValue:e.value,dropdownProps:n,options:[{name:this.messages.differentValuesPlaceholder,value:M,disabled:!0},...e.codedValueDomainOptions]})}return this._renderSwitchComponent({input:e,props:t})}_renderSwitchComponent({input:e,props:t}){return J(`calcite-switch`,{...t,checked:S(e.template,`switch`)?e.value===e.template.input.onValue:!1,class:w.inputSwitch,disabled:t.readOnly||t.disabled,onCalciteSwitchChange:({currentTarget:e})=>this._saveInputFromElement(e)})}_renderDropdownComponent({buttonValue:e,options:t,dropdownProps:n}){let{trigger:r,dropdown:i,group:a}=n;return J(`calcite-dropdown`,{...i,topLayerDisabled:this.topLayerDisabled,onCalciteDropdownSelect:({currentTarget:e})=>this._saveInputFromElement(e)},J(`calcite-button`,{...r},e===M?this.messages.differentValuesPlaceholder:e),J(`calcite-dropdown-group`,{selectionMode:a.mode},t.map(t=>J(`calcite-dropdown-item`,{disabled:t.disabled,label:String(t.name),selected:e===t.value},t.name))))}_renderComboBoxComponent({input:e,options:t,props:n}){let r=this.viewModel.editType===`INSERT`,i=this._touchedInputs.has(e?.template.elementId),a=r&&e.showNoValueOptionEnabled&&!i?()=>{}:n.onblur,o={...n,onblur:a};return J(`calcite-combobox`,{...o,clearDisabled:e.isSubtypeField,selectionMode:`single`,topLayerDisabled:this.topLayerDisabled,value:n.placeholder===this.messages.differentValuesPlaceholder?M:String(n.value),onCalciteComboboxChange:({currentTarget:t})=>{t.value!==M&&(e.isSubtypeField&&t.selectedItems.length===0?t.value=`${e.value}`:this._saveInputFromElement(t))}},this.renderComboboxOptionsList({input:e,options:t,props:n}))}renderComboboxOptionsList({input:e,options:t,props:n}){let r=e=>e.map(e=>{let{value:t}=e,r=Y(e.value)?this.messages.empty:e.name;return J(`calcite-combobox-item`,{heading:r,key:`#${t}`,selected:n.value===t,value:`${t}`})}),i=[],{messages:a}=this;t.other.length>0&&i.push(J(`calcite-combobox-item-group`,{key:`other`,label:a.other},r(t.other))),t.unsupported.length>0&&i.push(J(`calcite-combobox-item-group`,{key:`unsupported`,label:a.unsupported},r(t.unsupported)));let o=r(t.recommended);i.length>0?i.unshift(J(`calcite-combobox-item-group`,{key:`recommended`,label:a.recommended},o)):i=o;let s=n.placeholder===this.messages.differentValuesPlaceholder,c=!s&&Y(n.value);return e.showNoValueOptionEnabled&&!t.containsEmptyOption&&i.unshift(J(`calcite-combobox-item`,{heading:e.showNoValueLabel||this.messages.empty,key:`empty-option`,selected:c,value:``})),s&&i.unshift(J(`calcite-combobox-item`,{heading:this.messages.differentValuesPlaceholder,key:M,selected:!0,value:M})),i}_renderRadioButtonGroupComponent({input:e,options:t,props:n}){let r=[...t.recommended,...t.other,...t.unsupported].map(({name:t,value:r})=>this._renderRadioButtons({label:t,value:r,selected:r===e.value,props:n}));if(e.showNoValueOptionEnabled&&!t.containsEmptyOption){let t=e.showNoValueLabel||this.messages.empty,i=Y(e.value);r.unshift(this._renderRadioButtons({label:t,value:``,selected:i,props:n}))}return J(`calcite-radio-button-group`,{afterCreate:this._afterRadioGroupCreateOrUpdate,afterUpdate:this._afterRadioGroupCreateOrUpdate,class:w.inputRadioGroup,"data-field-name":n[Q],disabled:n.readOnly||n.disabled,key:`${n.key}-radio-group`,layout:`vertical`,name:`${n.name}-${this.id}`,required:n.required},r,n.placeholder===this.messages.differentValuesPlaceholder?J(`calcite-label`,{class:w.placeholderRadio,key:n.label,layout:`inline`},J(`calcite-radio-button`,{checked:!0,class:w.inputRadio,disabled:!0,value:n.placeholder}),n.placeholder):null)}_renderRadioButtons({value:e,selected:t,label:n,props:r}){return J(`calcite-label`,{class:w.inputRadioLabel,key:r.label,layout:`inline`},J(`calcite-radio-button`,{...r,afterCreate:void 0,afterUpdate:void 0,checked:t,class:w.inputRadio,disabled:r.readOnly||r.disabled,name:void 0,value:e,onCalciteRadioButtonChange:({currentTarget:e})=>{e.checked&&this._saveInputFromElement(e)}}),n)}_renderStringComponent(e,t){let{template:n}=e;return!n.field.editable||this.readOnly?this._renderReadOnlyComponent(e):n.input?.type===`text-area`?J(`calcite-text-area`,{...t,class:this.classes(w.individualElement),resize:`vertical`,value:t.value?String(t.value):``,onblur:n=>{t.onblur(n),e.userHasChangedValue&&this._saveInputFromElement(n.currentTarget)},onCalciteTextAreaInput:t=>{e.userHasChangedValue=!0,t.currentTarget.value===``&&this._saveInputFromElement(t.currentTarget)}}):J(`calcite-input`,{...t,class:this.classes(w.individualElement),type:`text`,value:t.value?String(t.value):``,onblur:n=>{t.onblur(n),e.userHasChangedValue&&this._saveInputFromElement(n.currentTarget)},onCalciteInputInput:t=>{e.userHasChangedValue=!0,t.currentTarget.value===``&&this._saveInputFromElement(t.currentTarget)}})}_renderNumberComponent(e,t){let n=h(e.field);return J(`calcite-input-number`,{...t,integer:n,step:n?1:`any`,type:`number`,value:n&&t.value!==``?Math.round(parseFloat(String(t.value))).toString():String(t.value),onblur:n=>{t.onblur(n),e.userHasChangedValue&&this._saveInputFromElement(n.currentTarget)},onCalciteInputNumberInput:t=>{e.userHasChangedValue=!0,t.currentTarget.value===``&&this._saveInputFromElement(t.currentTarget)}})}_renderReadOnlyComponent(e,t){let n=this.getCommonInputProps(e);return J(`calcite-input`,{...n,class:this.classes(w.fieldInput,w.inputDisabled,w.individualElement),readOnly:!0,type:`text`,value:String(t??n.value??``)})}_renderDateComponents(e,t){let{field:n}=e,r;switch(n.type){case`date`:r=this._renderDateFieldComponents(e,t);break;case`date-only`:r=this._renderDateOnlyFieldComponent(e,t);break;case`time-only`:r=this._renderTimeOnlyFieldComponent(e,t);break;case`timestamp-offset`:r=this._renderTimestampOffsetFieldComponents(e,t);break;default:r=this._renderReadOnlyComponent(e,de(n,t.value,{timeZone:e.effectiveTimeZone,...fe(e.template.field)}))}return e.value===M?[r,J(`calcite-input-message`,{icon:`information`,key:`diff-values-message`,status:`idle`},this.messages.differentValues)]:r}_renderDateOnlyFieldComponent(e,t){let{class:n,disabled:r,key:i,readOnly:a}=t,{rawMax:o,rawMin:s}=e.range;return J(`calcite-input-date-picker`,{afterCreate:this._afterDateComponentCreateOrUpdate,afterUpdate:this._afterDateComponentCreateOrUpdate,class:n,"data-date-part":`date`,"data-element-id":t[Z],"data-field-name":t[Q],disabled:r,key:`${i}-date-input`,max:g(o)?o:void 0,min:g(s)?s:void 0,overlayPositioning:`fixed`,readOnly:a,topLayerDisabled:this.topLayerDisabled,value:e.value===M?``:e.value?String(e.value):``,onblur:t.onblur,onCalciteInputDatePickerChange:t=>this._saveValueFromDateComponent(e,t.currentTarget),onfocus:t.onfocus})}_renderTimeOnlyFieldComponent(e,t){let{class:n,disabled:r,key:i,readOnly:a}=t;return J(`calcite-input-time-picker`,{afterCreate:this._afterDateComponentCreateOrUpdate,afterUpdate:this._afterDateComponentCreateOrUpdate,class:n,"data-date-part":`time`,"data-element-id":t[Z],"data-field-name":t[Q],disabled:r,key:`${i}-time-input`,overlayPositioning:`fixed`,readOnly:a,step:e.timeStep,value:e.value===M?``:e.value?String(e.value):``,onblur:t.onblur,onCalciteInputTimePickerChange:t=>this._saveValueFromDateComponent(e,t.currentTarget),onfocus:t.onfocus})}_renderTimestampOffsetFieldComponents(e,t){let{class:n,disabled:r,key:i,readOnly:a,onblur:o,onfocus:s}=t,{rawMax:c,rawMin:l}=e.range,u=e.effectiveTimeZone,d=U(c,u),f=U(l,u),p=U(e.value===M?``:e.value,u),m=e.includeTimeOffset,h={afterCreate:this._afterDateComponentCreateOrUpdate,afterUpdate:this._afterDateComponentCreateOrUpdate,disabled:r,[Z]:t[Z],[Q]:t[Q],onblur:o,onfocus:s,overlayPositioning:`fixed`,readOnly:a};return J(`div`,{class:w.dateInputContainer,key:`${i}-date-time-container`},J(`calcite-input-date-picker`,{...h,class:n,"data-date-part":`date`,key:`${i}-date-input`,max:d?.date??void 0,min:f?.date??void 0,topLayerDisabled:this.topLayerDisabled,value:p.date??``,onCalciteInputDatePickerChange:t=>this._saveValueFromDateComponent(e,t.target)}),J(`calcite-input-time-picker`,{...h,class:n,"data-date-part":`time`,key:`${i}-time-input`,step:e.timeStep,value:p.time??``,onCalciteInputTimePickerChange:t=>this._saveValueFromDateComponent(e,t.target)}),m?J(`calcite-input-time-zone`,{...h,class:n,clearable:e.value===M||e.value==null,"data-date-part":`timeZone`,key:`${i}-timezone-input`,value:p.timeZoneOffset||``,onCalciteInputTimeZoneChange:t=>this._saveValueFromDateComponent(e,t.target)}):null)}_renderDateFieldComponents(e,t){let{class:n,disabled:r,key:i,readOnly:a,min:o,max:s}=t,c=e.effectiveTimeZone,l=W(e.value===M?``:e.value,c),u=W(s,c),d=W(o,c),f=e.includeTime,p={afterCreate:this._afterDateComponentCreateOrUpdate,afterUpdate:this._afterDateComponentCreateOrUpdate,disabled:r,[Z]:t[Z],[Q]:t[Q],onblur:t.onblur,onfocus:t.onfocus,overlayPositioning:`fixed`,readOnly:a};return J(`div`,{class:w.dateInputContainer,key:`${i}-date-time-container`},J(`calcite-input-date-picker`,{...p,class:n,"data-date-part":`date`,key:`${i}-date-input`,max:u?.date??void 0,min:d?.date??void 0,topLayerDisabled:this.topLayerDisabled,value:l.date??``,onCalciteInputDatePickerChange:t=>this._saveValueFromDateComponent(e,t.target)}),f?J(`calcite-input-time-picker`,{...p,"data-date-part":`time`,key:`${i}-time-input`,step:1,value:l.time??``,onCalciteInputTimePickerChange:t=>{this._saveValueFromDateComponent(e,t.target)}}):null)}_renderRelationshipElementInput(e){return this._relatedRecordsEnabled?J(z,{afterObserverCreated:this._afterListObserverCreated,afterObserverRemoved:this._afterListObserverRemoved,input:e,messages:this.messages,messagesCommon:this.messagesCommon,viewModel:this.viewModel}):null}_renderRelationshipListPage(){let{activeRelationshipInput:e}=this.viewModel;if(e)return this._renderRelationshipElementInput(e)}_renderAttachmentElementInput(e){if(!this.attachmentsEnabled)return;let{allAttachmentsVisibleOnDefaultPage:t,attachments:n,defaultPageAttachments:r,template:{description:i,elementId:a,label:o}}=e,s=t?n:r;return J(`div`,{class:w.attachmentElementInput,"data-testid":`attachment-element-${a}`,key:`attachment-element-${a}`},o?J(`div`,{class:w.attachmentElementLabel,key:`attachment-element-label-${a}`},o):null,i?J(`div`,{class:w.description,key:`attachment-element-description-${a}`},i):null,n.length?this._renderAttachmentList(e,s,{label:o||this.messagesCommon.details,viewAllCount:t?null:n.length}):J(`div`,{class:w.attachmentElementEmptyState,key:`attachment-element-empty-state-${a}`},this.messages.attachments.noAttachments),this._renderAttachmentAddAction(e))}_renderAttachmentListPage(){let e=this.viewModel.selectedAttachmentListInput;if(e)return J(`div`,{class:w.attachmentElementAllPanel,key:`attachment-element-all-panel-${e.template.elementId}`},this._renderAttachmentList(e,e.attachments,{filterEnabled:!0,label:this.messages.titles.attachments}))}_renderAttachmentList(e,t,n){let{filterEnabled:r,label:i,viewAllCount:a}=n;return J(`calcite-list`,{class:w.attachmentElementList,filterEnabled:r,filterPlaceholder:r?this.messages.attachments.searchAttachments:void 0,filterProps:r?ge:void 0,filterText:r?this._attachmentListFilterText:void 0,label:i,selectionAppearance:`border`,selectionMode:`none`,onCalciteListFilter:r?e=>{this._attachmentListFilterText=e.currentTarget.filterText??``}:void 0},this._renderAttachmentListItems(e,t),a==null?null:this._renderViewAllAttachmentsItem(e,a))}_renderAttachmentListItems(e,t){let{elementId:n}=e.template;return t.map((t,r)=>{let i=this._formatAttachmentSize(t.size),a=this._getAttachmentLabel(t,r,i,e.displayFilename),o=a===i?void 0:i,s=v(t),c=e.isStagedAttachmentAddition(t),l=e.getAttachmentEditState(t),u=l.isDeleted,d=!u&&(c||l.isRenamed||l.isReplaced);return J(`calcite-list-item`,{class:w.attachmentElementListItem,description:o,key:`attachment-item-${s}`,label:a,onCalciteListItemSelect:c||u?void 0:()=>this._setSelectedAttachment({attachmentKey:s,elementId:n})},J(`div`,{class:w.attachmentElementListItemStart,slot:`content-start`},this._renderAttachmentPreviewThumbnail(t,a,e)),d?J(`span`,{class:w.attachmentElementListItemStagedIndicator,slot:`content-end`}):null,c?[J(`calcite-action`,{disabled:this._disableAttachmentModification(e),icon:`x`,scale:`s`,slot:`actions-end`,text:this.messagesCommon.delete,title:this.messagesCommon.delete,onclick:()=>this.viewModel.stageDeleteAttachment(n,v(t))})]:u?J(`calcite-chip`,{label:this.messages.attachments.deleted,scale:`s`,slot:`content-end`},this.messages.attachments.deleted):J(`calcite-icon`,{flipRtl:!0,icon:`chevron-right`,scale:`s`,slot:`content-end`}))})}_renderViewAllAttachmentsItem(e,n){let{elementId:r}=e.template,{viewAll:i}=this.messages.attachments;return J(`calcite-list-item`,{class:w.attachmentElementListItem,description:t(this.messages.attachments.count,{count:n}),key:`attachment-item-view-all-${r}`,label:i,onCalciteListItemSelect:()=>this._setAttachmentListElementId(r)},J(`calcite-icon`,{flipRtl:!0,icon:`chevron-right`,scale:`s`,slot:`content-end`}))}_renderAttachmentAddAction(e){let{elementId:t}=e.template,n=this.effectiveDisabled||e.addDisabled,r=this._renderAttachmentCountLimitsLabel(e),i=this._getAttachmentNoticeMessage(e),a=e.hasMinimumAttachmentCountNotMet||e.hasExceededAttachmentLimit?`danger`:`info`,o=e.canUploadFiles,s=e.isCaptureOnly&&!this.effectiveDisabled&&!i;return J(`div`,{class:w.attachmentElementAddActions,key:`attachment-element-add-actions-${t}`},o?J(`calcite-button`,{appearance:`outline`,disabled:n,iconStart:`attachment`,kind:`neutral`,round:!0,scale:`s`,onclick:()=>this._setAttachmentAddElementId(t)},this.messages.attachments.attach):null,this._renderAttachmentCaptureButton(e),s?this._renderAttachmentCaptureDisabledNotice(t):null,r?J(`div`,{class:w.attachmentElementEmptyActionHint},r):null,!this.effectiveDisabled&&i?J(`calcite-notice`,{closable:!1,icon:a===`danger`?`exclamation-mark-circle`:`lightbulb`,kind:a,open:!0,scale:`s`,width:`full`},J(`div`,{slot:`message`},i)):null)}_renderAttachmentCaptureButton(e){if(!e.hasCaptureInputs)return null;let t=e.captureMediaType;return J(`calcite-button`,{appearance:`outline`,disabled:!0,iconStart:ye(t),kind:`neutral`,round:!0,scale:`s`},this._getCaptureButtonLabel(t))}_getAttachmentNoticeMessage(e){let t=this.messages.attachments;return e.hasUnsupportedFileTypeValidationError?this._getUnsupportedFileTypeMessage():e.hasMinimumAttachmentCountNotMet&&this._shouldShowMinimumAttachmentNotice(e)?t.minimumNotMet:e.hasExceededAttachmentLimit?t.attachmentLimitExceeded:e.hasReachedAttachmentLimit?t.attachmentLimitReached:null}_shouldShowMinimumAttachmentNotice(e){return e.hasAttachmentChanges||this.viewModel.submitHasBeenAttempted||this._touchedInputs.has(e.template.elementId)}_getCaptureButtonLabel(e){let{capture:t,recordAudio:n,takePhoto:r,takeVideo:i}=this.messages.attachments;switch(e){case`image`:return r||t;case`video`:return i||t;case`audio`:return n||t;default:return t}}_renderAttachmentAddPage(){let e=this.viewModel.selectedAttachmentAddInput;return e?this._renderAttachmentAddPanel(e):null}_renderAttachmentAddPanel(e){let{maxAttachmentCount:t}=e,{elementId:n}=e.template;if(e.isCaptureOnly)return this._renderAttachmentCaptureDisabledNotice(n);let r=t==null||t-e.attachments.length>1,i=this.effectiveDisabled||e.addDisabled,a=this.messages.attachments,o=a.dragAndDropFile,s=e=>{this._attachmentFileInputMap.set(n,e)};return J(`div`,{class:w.attachmentElementAddPanel,key:`attachment-element-add-panel-${n}`},J(`input`,{accept:e.accept,afterCreate:s,afterRemoved:()=>{this._attachmentFileInputMap.delete(n)},afterUpdate:s,class:w.attachmentElementFileInput,"data-element-id":n,disabled:i,multiple:r,type:`file`,onchange:e=>{let t=e.currentTarget,r=t.files?Array.from(t.files):[];this._stageAttachmentFiles(n,r),t.value=``}}),J(`div`,{class:w.attachmentElementAddDropzone,"data-disabled":i?`true`:`false`,ondragover:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`)},ondrop:e=>{if(e.preventDefault(),e.stopPropagation(),i)return;let t=e.dataTransfer?.files?Array.from(e.dataTransfer.files):[];this._stageAttachmentFiles(n,t)}},J(`calcite-icon`,{class:w.attachmentElementAddDropzoneIcon,icon:`upload`,scale:`l`}),J(`div`,{class:w.attachmentElementAddDropzoneHeading},a.addFile),J(`div`,{class:w.attachmentElementAddDropzoneDetail,title:o},o),J(`calcite-button`,{appearance:`transparent`,disabled:i,iconStart:`folder-open`,kind:`brand`,scale:`s`,type:`button`,onclick:e=>{e.stopPropagation(),this._openAttachmentFilePicker(n,i)}},a.selectFile)),this._renderAttachmentValidationCriteria(e,{includeCountCriteria:!0}))}_renderAttachmentCaptureDisabledNotice(e){return J(`calcite-notice`,{class:w.attachmentElementCaptureNotice,icon:!0,key:`attachment-element-capture-disabled-notice-${e}`,kind:`warning`,open:!0,scale:`s`},J(`div`,{slot:`message`},this.messages.attachments.captureMethodNotSupported))}async _stageAttachmentFiles(e,t){if(t.length===0)return;let n=this.viewModel.selectedAttachmentAddInput,r=!0;try{r=(await this.viewModel.stageAddAttachments(e,t)).length>0&&!n?.hasInvalidValidationCriteria&&!n?.hasUnsupportedFileTypeValidationError}finally{r&&this.viewModel.setSelectedAttachmentAddElementId(null)}}_openAttachmentFilePicker(e,t){t||this._attachmentFileInputMap.get(e)?.click()}_renderAttachmentDetailPage(){let e=this.selectedAttachmentDetails;if(!e)return;if(this.page===`replacing-attachment`)return this._renderAttachmentReplacePanel(e);let{attachment:t,input:n}=e,r=v(t),i=!!n.getAttachmentPreviewUrl(t),a=!this._disableAttachmentModification(n)&&n.canUploadFiles,o=n.getAttachmentEditState(t);return J(`div`,{class:w.attachmentElementDetail,key:`attachment-detail-panel-${n.template.elementId}-${r}`},J(`div`,{class:w.attachmentElementDetailPreview},this._renderAttachmentPreviewImageForInput(t,n)),J(`div`,{class:w.attachmentElementDetailActions},y(t)?J(`calcite-button`,{appearance:`outline`,disabled:!i,iconStart:`expand`,kind:`neutral`,label:this.messages.attachments.maximize,scale:`m`,title:this.messages.attachments.maximize,onclick:this._maximizeSelectedAttachment}):null,J(`calcite-button`,{appearance:`outline`,disabled:!i||o.isReplaced,iconStart:`download`,kind:`neutral`,label:this.messages.attachments.download,scale:`m`,title:this.messages.attachments.download,onclick:()=>{this._downloadAttachment(t)}}),J(`calcite-button`,{appearance:`outline`,disabled:!a,iconStart:`upload-to`,kind:`neutral`,label:this.messages.attachments.replace,scale:`m`,title:this.messages.attachments.replace,onclick:this._enterAttachmentReplaceView})),J(`div`,{class:w.attachmentElementDetailMetadata},J(`div`,{class:w.attachmentElementDetailMetadataGroup},J(`span`,{class:w.attachmentElementDetailMetadataLabel},this.messages.attachments.fileName),this._renderFileNameContent(t,n)),J(`div`,{class:w.attachmentElementDetailMetadataGroup},J(`span`,{class:w.attachmentElementDetailMetadataLabel},this.messages.attachments.size),J(`span`,{class:w.attachmentElementDetailMetadataValue},this._formatAttachmentSize(t.size))),J(`div`,{class:w.attachmentElementDetailMetadataGroup},J(`span`,{class:w.attachmentElementDetailMetadataLabel},this.messages.attachments.type),J(`span`,{class:w.attachmentElementDetailMetadataValue},this._getLabelForAttachmentType(t)))))}_renderFileNameContent(e,t){if(!t.allowUserRename)return J(`span`,{class:w.attachmentElementDetailMetadataValue},e.name);let n=t.getAttachmentEditState(e),{baseName:r,extension:i}=b(e.name),a=this._disableAttachmentModification(t),o=!a&&e.name.trim().length===0;return[J(`div`,{class:w.attachmentElementDetailFileNameRow,key:`file-name-row`},J(`calcite-input`,{class:w.attachmentElementDetailFileNameInput,disabled:a,scale:`m`,status:o?`invalid`:`idle`,suffixText:i,value:r,onCalciteInputInput:({currentTarget:e})=>this._renameSelectedAttachment(e.value)}),J(`calcite-button`,{appearance:`transparent`,disabled:a||n.initialName==null||!n.isRenamed,iconStart:`reset`,kind:`neutral`,label:this.messages.footerButtons.reset,scale:`m`,title:this.messages.footerButtons.reset,onclick:this._resetSelectedAttachmentName})),o?J(`calcite-input-message`,{icon:!0,key:`file-name-message`,status:`invalid`},this.messages.validationErrors.cannotBeNull):null]}_renderAttachmentReplacePanel(e){let{attachment:t,input:n}=e,r=this._disableAttachmentModification(n)||!n.canUploadFiles,i=n.template.elementId;return J(`div`,{class:w.attachmentElementAddPanel,key:`attachment-replace-panel-${i}-${v(t)}`},J(`input`,{accept:n.accept,afterCreate:this._setSelectedAttachmentReplaceFileInput,afterRemoved:()=>{this._selectedAttachmentReplaceFileInput=null},afterUpdate:this._setSelectedAttachmentReplaceFileInput,class:w.attachmentElementFileInput,disabled:r,type:`file`,onchange:e=>{let t=e.currentTarget,n=t.files?.[0];n&&this._stageSelectedAttachmentReplacement(n),t.value=``}}),J(`div`,{class:w.attachmentElementAddDropzone,"data-disabled":r?`true`:`false`,ondragover:e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`)},ondrop:e=>{if(e.preventDefault(),e.stopPropagation(),r)return;let t=e.dataTransfer?.files?.[0];t&&this._stageSelectedAttachmentReplacement(t)}},J(`calcite-icon`,{class:w.attachmentElementAddDropzoneIcon,icon:`refresh`,scale:`l`}),J(`div`,{class:w.attachmentElementAddDropzoneHeading},this.messages.attachments.replace),J(`div`,{class:w.attachmentElementAddDropzoneDetail,title:this.messages.attachments.dragAndDropFile},this.messages.attachments.dragAndDropFile),J(`calcite-button`,{appearance:`transparent`,disabled:r,iconStart:`folder-open`,kind:`brand`,scale:`s`,onclick:e=>{e.stopPropagation(),this._openSelectedAttachmentReplaceFilePicker()}},this.messages.attachments.selectFile)),this._renderAttachmentValidationCriteria(n,{includeCountCriteria:!1}),J(`div`,{class:w.attachmentElementDetailMetadata},J(`div`,{class:w.attachmentElementDetailMetadataGroup},J(`span`,{class:w.attachmentElementDetailMetadataLabel},this.messages.attachments.fileToBeReplaced),J(`span`,{class:w.attachmentElementDetailMetadataValue},t.name))))}_renderAttachmentDialog(){let e=this._attachmentDialogInfo;if(!e)return null;let{attachment:t,input:n}=e;return J(`calcite-dialog`,{heading:t.name||this.messagesCommon.details,key:`attachment-preview-dialog`,modal:!0,open:!0,placement:`cover`,width:`l`,onCalciteDialogClose:this._closeAttachmentDialog},J(`div`,{class:w.attachmentElementDialogPreview},this._renderAttachmentPreviewImageForInput(t,n)))}_setSelectedAttachment(e,t){this._markInputTouched(t),this.viewModel.setSelectedAttachment(e),e||this.hideAttachmentDialog()}_setAttachmentAddElementId(e){let{viewModel:t}=this;t.setSelectedAttachmentAddElementId(e),this._markInputTouched(t.selectedAttachmentAddInput),t.selectedAttachmentAddInput?.clearValidationCriteriaState(),this.hideAttachmentDialog()}_setAttachmentListElementId(e){let{viewModel:t}=this;t.setSelectedAttachmentListElementId(e),this._markInputTouched(t.selectedAttachmentListInput),this.hideAttachmentDialog()}_getAttachmentLabel(e,n,r,i){return i!==!1&&g(e.name)&&e.name.length>0?e.name:r===this.messagesCommon.notApplicable?t(this.messages.attachments.attachmentNumberedLabel,{index:n+1}):r}_renderAttachmentCountLimitsLabel(e){let t=this.messages.attachments,n=e.minAttachmentCount!=null&&e.minAttachmentCount>0?this._renderAttachmentCountLimitLabel(t.minAttachmentsShort,e.minAttachmentCount,`min`):null,r=e.maxAttachmentCount==null?null:this._renderAttachmentCountLimitLabel(t.maxAttachmentsShort,e.maxAttachmentCount,`max`);return!n&&!r?null:[n,n&&r?J(`span`,{key:`attachment-count-limits-separator`},`, `):null,r]}_renderAttachmentCountLimitLabel(e,n,r){let i=`__count__`,[a,o]=t(e,{count:i}).split(i);return J(`span`,{key:r},a,J(`span`,{class:w.attachmentElementEmptyActionHintValue},n),o)}_renderAttachmentValidationCriteria(e,{includeCountCriteria:t}){let n=this._getAttachmentValidationCriteria(e,{includeCountCriteria:t}),r=`attachment-validation-criteria-${e.template.elementId}`;return n.length===0?null:J(`div`,{class:w.attachmentElementValidationCriteria,key:r},n.map(({key:e,message:t,state:n})=>J(`calcite-notice`,{appearance:n===`danger`?`outline-fill`:`transparent`,closable:!1,icon:!0,key:e,kind:n,open:!0,scale:`s`,width:`full`},J(`div`,{slot:`message`},t))))}_getAttachmentValidationCriteria(e,{includeCountCriteria:n}){let r=[],i=e.validationCriterionStates,a=this.messages.attachments,o=this._getNestableAttachmentInputs(e.input);e.hasUnsupportedFileTypeValidationError&&r.push({key:`unsupported-file-type`,message:this._getUnsupportedFileTypeMessage(),state:`danger`});for(let e of o)e.type===`document`&&e.maxFileSize!=null&&r.push({key:`maximum-file-size`,message:t(a.maximumFileSize,{maxSize:this._formatAttachmentSizeLimitInMegabytes(e.maxFileSize)}),state:i.get(`maximum-file-size`)??`info`}),e.type===`audio`&&e.maxDuration!=null&&r.push({key:`maximum-audio-length`,message:t(a.maximumAudioLength,{maxDuration:this._formatAttachmentDurationLimit(e.maxDuration)}),state:i.get(`maximum-audio-length`)??`info`}),e.type===`video`&&e.maxDuration!=null&&r.push({key:`maximum-video-length`,message:t(a.maximumVideoLength,{maxDuration:this._formatAttachmentDurationLimit(e.maxDuration)}),state:i.get(`maximum-video-length`)??`info`}),e.type===`image`&&e.maxImageSize!=null&&r.push({key:`maximum-image-size`,message:t(a.attachmentMustBeSmallerThan,{maxSize:`${e.maxImageSize}px`}),state:i.get(`maximum-image-size`)??`info`});return n&&e.minAttachmentCount!=null&&e.minAttachmentCount>0&&r.push({key:`minimum-number-of-files`,message:t(a.minimumNumberOfFiles,{count:e.minAttachmentCount}),state:i.get(`minimum-number-of-files`)??`info`}),n&&e.maxAttachmentCount!=null&&r.push({key:`maximum-number-of-files`,message:t(a.maximumNumberOfFiles,{count:e.maxAttachmentCount}),state:i.get(`maximum-number-of-files`)??`info`}),r}_getNestableAttachmentInputs(e){return e==null?[]:e.type===`attachment`?e.inputTypes?.slice()??[]:[e]}_getUnsupportedFileTypeMessage(){return this.featureTableMessages.errorFileUnsupported}_formatAttachmentSize(e){return e==null||Number.isNaN(e)?this.messagesCommon.notApplicable:d(this.messagesUnits,e)}_formatAttachmentSizeLimitInMegabytes(e){return d(this.messagesUnits,e*1048576)}_formatAttachmentDurationLimit(e){return m(Math.round(e)*1e3,{...e>=3600?{hour:`2-digit`,hourCycle:`h23`}:{},minute:`2-digit`,second:`2-digit`,timeZone:`UTC`})}_getLabelForAttachmentType({contentType:e}){if(!e)return this.messagesCommon.notApplicable;let t=this.messages.attachments.attachmentTypes,n=te(e);return t?.[n]||e}_renderAttachmentPreviewThumbnail(e,t,n){let r=n.getAttachmentPreviewUrl(e,64);return r&&y(e)?J(`img`,{alt:t,class:w.attachmentElementListItemThumb,src:r}):J(`calcite-icon`,{class:w.attachmentElementListItemIcon,icon:_(e.contentType),scale:`s`})}_renderAttachmentPreviewImageForInput(e,t){let n=t.getAttachmentPreviewUrl(e),r=e.name||this.messagesCommon.details;return n&&y(e)?J(`img`,{alt:r,class:w.attachmentElementDetailPreviewImage,src:n,title:r}):[J(`calcite-icon`,{class:w.attachmentElementDetailPreviewIcon,icon:_(e.contentType),scale:`l`,textLabel:r,title:r}),this.messages.attachments.noPreviewAvailable]}async _downloadAttachment(e){await V(e)}_canReplaceSelectedAttachment(){return!this.effectiveDisabled&&!!this.selectedAttachmentDetails?.input.canUploadFiles}_exitAttachmentReplaceView(){this.viewModel.setShowingSelectedAttachmentReplacePage(!1),this._selectedAttachmentReplaceFileInput=null}async _stageSelectedAttachmentReplacement(e){let t=this.selectedAttachmentDetails;if(!t?.attachment)return;let n=t.input.template.elementId,r=v(t.attachment),i=!1;try{i=await this.viewModel.stageReplaceAttachment(n,r,e)}finally{i&&this._exitAttachmentReplaceView()}}_renameSelectedAttachment(e){let t=this.selectedAttachmentDetails;if(!t?.attachment)return;let n=t.input.template.elementId,r=v(t.attachment);this.viewModel.stageRenameAttachment(n,r,e)}_resetSelectedAttachmentChanges(){let e=this.selectedAttachmentDetails;e?.attachment&&this.viewModel.resetAttachmentChanges(e.input.template.elementId,v(e.attachment))}_deleteSelectedAttachment(){let e=this.selectedAttachmentDetails;if(!e?.attachment||this._disableAttachmentModification(e.input))return;let t=e.input.template.elementId,n=v(e.attachment);this.viewModel.stageDeleteAttachment(t,n),this._setSelectedAttachment(null)}_disableAttachmentModification(e){return this.disabledOrReadOnly||!e.editable}hideAttachmentDialog(){this._attachmentDialogInfo=null}_renderTextComponent(e){let{elementId:t}=e.template;return J(`div`,{class:w.textElementInput,"data-testid":`text-element-${t}`,innerHTML:e.text,key:`text-element-${t}`})}_renderUtilityNetworkAssociationsElementInput(e){if(!this._associationsEnabled)return;let{elementId:t}=e.template;return J(`div`,{class:w.utilityNetworkAssociationsElementInput,"data-testid":t,key:t},this._associationsWidgetsMap.get(e)?.render())}getCommonInputProps(e){let{template:t,valid:n,value:r,minLength:i,maxLength:a,required:o,fieldName:s,editable:c,range:{max:l,min:u}}=e,d=!c||this.readOnly,f=this.disabled||this.viewModel.updating,p=this._getErrorToDisplay(e)?`invalid`:`idle`,m=t.hint??void 0,h=!1;return r===M&&(m=this.messages.differentValuesPlaceholder,h=!0),{afterCreate:this._afterComponentCreateOrUpdate,afterUpdate:this._afterComponentCreateOrUpdate,"aria-invalid":n?`false`:`true`,class:this.classes(w.fieldInput,d?w.inputDisabled:null),status:p,maxLength:a&&a>-1?a:void 0,minLength:i&&i>-1?i:void 0,key:t.elementId,label:s,name:s,max:l??void 0,min:u??void 0,disabled:f,readOnly:d,onblur:this._onComponentBlur,required:o,placeholder:m,value:h?``:r??``,[Z]:t.elementId,[Q]:s,onfocus:this._onComponentFocus}}_onObserverChange(){this._listObserverNode&&this._listObserver.unobserve(this._listObserverNode);let e=this.viewModel.activeRelationshipInput;e&&this._listObserverNode&&e.showAllEnabled&&this._listObserver.observe(this._listObserverNode)}_onFormSubmit(e){e.preventDefault()}_handleDragAndDrop(e){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`)}_getFieldInputFromHTMLElement(e){return this.viewModel.findFieldInput(e.getAttribute(Z))}_afterRadioGroupCreateOrUpdate(e){let t=e.selectedItem,n=e.querySelector(`calcite-radio-button`),r=t||n;r&&this._afterComponentCreateOrUpdate(r)}_onComponentFocus(e){let t=e.target,n=this._getFieldInputFromHTMLElement(t);this._focusedFieldInput=n}_markInputTouched(e){e&&this._touchedInputs.add(e.template.elementId)}_isMultipleChoiceCheckbox(e,t){let n=this._getMultipleChoiceController(t);return e.tagName===`CALCITE-CHECKBOX`&&n?.input!=null}_afterComponentCreateOrUpdate(e){let t=this._getFieldInputFromHTMLElement(e),n=this._focusedFieldInput;this._attemptFocusOnNextRender&&n===t&&(this._attemptFocusOnNextRender=!1,ve(e))}_onComponentBlur(e){let t=e.target,n=this._getFieldInputFromHTMLElement(t);this._isMultipleChoiceCheckbox(t,n)||this._markInputTouched(n),this._focusedFieldInput=null}_onDynamicChoiceBlur(e,t){let n=e.currentTarget;if(this._dynamicChoiceItemSelections.delete(t))return;let r=e.relatedTarget;r instanceof Node&&n.contains(r)||(t.endInteraction(),n.inputValue=t.fieldInput.value===M?this.messages.differentValuesPlaceholder:t.inputValue,this._onComponentBlur(e))}_resetTransientFormState(){this._attemptFocusOnNextRender=!1,this._focusedFieldInput=null,this._attachmentDialogInfo=null,this._selectedAttachmentReplaceFileInput=null,this._attachmentListFilterText=``,this._attachmentFileInputMap.clear()}_parseValue(e,t,n=!1){let r=this._getMultipleChoiceController(t);if(r){let{input:t,values:i}=r;if(t&&i){let t=e;return r.getValueFromCheckboxChange({choiceValue:t.value,isChecked:t.checked,isSelectAllCheckbox:n})}}if(S(t.template,`switch`)){if(e.localName===`calcite-dropdown`&&t.domain){for(let n of t.domain.codedValues)if(n.name===e.selectedItems[0].textContent)return n.code}return e.checked?t.template.input.onValue:t.template.input.offValue}let i=e.value;return i==null||i===``?null:t.dataType===`number`?i===`-0`||i===`-0.`||i===`-0,`?i:parseFloat(i):t.field.type===`date`?parseFloat(i):i}_getMultipleChoiceController(e){return k(e.inputController)?e.inputController:null}_saveInputFromElement(e){let t=this._getFieldInputFromHTMLElement(e);if(!t)return;let n=this._parseValue(e,t);this._saveInput(t,n)}_saveInput(e,t){let{elementId:n}=e.template,r=e?.value,{viewModel:a}=this;if(S(e.template,`switch`)&&a.mode!==`single`){let t=i(this._batchSwitchInputInitialValues,e,()=>e.value);this._batchSwitchInputInitialValues.set(e,t===null?r:t)}t!==r&&(this._markInputTouched(e),!e.isSubtypeField||a.mode===`batch`||!re(a.activeLayer,r,t)?a.setValue(n,t):this._pendingSubtypeChoice||=this._handleSubtypeChoice(e,t))}async _handleSubtypeChoice(e,n){let{value:r,template:i}=e,{elementId:a}=i,{messages:o,viewModel:s,messagesCommon:c}=this,{subtypes:l,activeFeatureIndex:u}=s;if(await s.setValue(a,n),!l?.length)return;let d=l.find(e=>e.code===n),f=l.find(e=>e.code===r)?.name??`${r}`;if(!d)return;let p=Promise.withResolvers();s.pendingSubtypeChoice=p;let m=`update-fields`,h=[{label:o.subtypes.useDefaultValuesOption,value:`update-fields`},{label:o.subtypes.keepCurrentValuesOption,value:`keep-existing`}],g={context:`info`,title:o.subtypes.changeWarningTitle,message:t(o.subtypes.changeWarning,{originalType:f,newType:d.name}),radios:h,defaultRadioSelection:`update-fields`,onRadioSelection:e=>{m=e},actions:{primary:{label:c.apply,action:()=>p.resolve(m),type:`positive`},secondary:{label:c.cancel,type:`neutral`,action:()=>p.resolve(`undo`)}},cancel:()=>p.reject()};try{switch(this.showPrompt(g),await p.promise){case`update-fields`:await s.applySubtypeDefaults(d),await s.handleSubtypeChanged(u);break;case`keep-existing`:await s.handleSubtypeChanged(u);break;case`undo`:await this.viewModel.setValue(a,r)}}finally{s.pendingSubtypeChoice=null,this.clearPrompt(),this._pendingSubtypeChoice=null}}_afterDateComponentCreateOrUpdate(e){this._setDateTimeTimeZoneMap(e),this._afterComponentCreateOrUpdate(e)}_saveValueFromDateComponent(e,t){let{elementId:n}=e.template,r=e.field.type,i=this._dateComponentMap.get(`${n}`);if(!i)return;let a=e.effectiveTimeZone,o=e.value===M?void 0:e.value,s=null;r===`date-only`?s=Array.isArray(t.value)?t.value[0]:t.value:r===`time-only`?(o=G(o),s=G(t.value)):s=r===`timestamp-offset`?t.value==null?null:pe({dateComponent:i.date,timeComponent:i.time,oldValue:o,timeZoneComponent:i.timeZone,defaultTimeZone:a}):t.value==null?null:me({oldValue:o,dateComponent:i.date,timeZone:a,timeComponent:i.time?.value===M?void 0:i.time}),o!==s&&(this._markInputTouched(e),s===null||!t.value?this.viewModel.setValue(n,null):this.viewModel.setValue(n,s))}_getErrorToDisplay(e){let t=e.compositeError;return e.valid||!t?null:t===X.CONTINGENCY_VIOLATION_ERROR||t===X.CONTINGENCY_VIOLATION_WARNING?t:!this._touchedInputs.has(e.template.elementId)&&!this.viewModel.submitHasBeenAttempted?null:t}_renderViewingAssociationsPage(){return this._associationsList?.render()}_onActiveAssociationsInputChange(e){let t=this._associationsList;t&&(e?(t.associationInput=e,t.viewModel=e.viewModel):t.associationInput=null)}async _setUpAssociationsWidgets(){let e=this.viewModel.activeForm.allUtilityNetworkAssociationsElementInputs;if(this._associationsEnabled&&e.length!==0){await this._setUpUtilityNetworkAssociationList();for(let t of e)this._associationsWidgetsMap.set(t,await this._createAssociationsWidget(t))}}async _setUpUtilityNetworkAssociationList(){if(this._associationsList)return;let e=(await import(`./FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js`)).default;this._associationsList=new e({onSelectLayer:this._onSelectAssociatedLayer.bind(this),onSelectFeature:this._onEditAssociatedFeature.bind(this),onAddAssociation:this._onAddAssociation.bind(this)});let t=this.viewModel.activeAssociationsInput;t&&(this._associationsList.associationInput=t,this._associationsList.viewModel=t.viewModel)}async _createAssociationsWidget(e){let t=(await import(`./Feature/FeatureUtilityNetworkAssociations.js`)).default;return new t({viewModel:e.viewModel,onSelectAssociationType:t=>this._onSelectAssociationType(e,t)})}_destroyAssociationsWidgets(){this._associationsWidgetsMap.forEach(e=>a(e)),this._associationsWidgetsMap.clear()}_onSelectAssociationType(e,{listType:t}){this.setActiveAssociationsInput(e),this.setActiveAssociationType(t)}_onSelectAssociatedLayer({layer:e}){this.setActiveAssociationsLayer(e)}async _onEditAssociatedFeature(e){let t=this.callbacks?.editAssociatedFeature,n=this.viewModel.activeAssociationsInput;if(!t||!n?.feature)return;let{association:r,feature:i}=e;await t({parentFeature:n.feature.plainGraphic,association:r,feature:i})}_onAddAssociation(e){let t=this.callbacks?.addAssociation,n=this.viewModel.activeAssociationsInput;if(!t||!n?.feature)return;let{associationType:r,utilityNetwork:i}=e;t({feature:n.feature.plainGraphic,associationType:r,utilityNetwork:i})}_setFocusableInput(e){let t=e&&j(e)?e:this._findFocusableInput(e);this._syncGroupInputStates(),this._focusedFieldInput=t,this._attemptFocusOnNextRender=!0}_findFocusableInput(e){let t=this.viewModel.activeForm.inputs;if(!t.length)return;let n=ie(t),r;if(!e)r=0;else if(A(e)){let t=e.inputs.find(e=>e.visible);r=t?n.indexOf(t):0}else{let i;i=P(e)&&!e.group.open?e.group.inputs.filter(j)[t.length-1]:e,r=n.indexOf(i)+1}for(let e=r;e<n.length;e++){let t=n[e];if(t.visible&&j(t)){if(this.disabledOrReadOnly&&(t?.inputType===`switch`||t?.inputType===`radio-buttons`))continue;return t}}return null}_onGroupToggle(e,t){e.expanded?(t.open=!0,this._setFocusableInput(t),this.groupDisplay===`sequential`&&this.viewModel.activeForm.allGroupInputs.forEach(e=>{e!==t&&(e.open=!1)})):t.open=!1,this.scheduleRender()}_syncGroupInputStates(){if(this.groupDisplay!==`sequential`)return;let e=this.viewModel.activeForm?.allGroupInputs;if(!e.length)return;let t=e.filter(e=>e.open);t.length===0?e[0].open=!0:t.length>1&&t.slice(1).forEach(e=>e.open=!1)}};e([f()],$.prototype,`activeFeatureIndex`,null),e([f()],$.prototype,`attachmentsEnabled`,null),e([f()],$.prototype,`callbacks`,null),e([f()],$.prototype,`disabled`,null),e([f()],$.prototype,`effectiveTitle`,null),e([f()],$.prototype,`effectiveDisabled`,null),e([f()],$.prototype,`disabledOrReadOnly`,null),e([f()],$.prototype,`features`,null),e([f()],$.prototype,`footerButtonInfos`,null),e([f()],$.prototype,`map`,null),e([f()],$.prototype,`maximumFeatureCount`,null),e([f()],$.prototype,`maximumFeatureCountWithComplexForms`,null),e([f()],$.prototype,`spatialReference`,null),e([f()],$.prototype,`layerInfos`,null),e([f()],$.prototype,`timeZone`,null),e([f()],$.prototype,`headingLevel`,void 0),e([f()],$.prototype,`icon`,null),e([f(),q(`esri/t9n/common`)],$.prototype,`messagesCommon`,void 0),e([f(),q(`esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm`)],$.prototype,`messages`,void 0),e([f(),q(`esri/widgets/FeatureForm/t9n/FeatureForm`)],$.prototype,`featureFormMessages`,void 0),e([f(),q(`esri/widgets/FeatureTable/t9n/FeatureTable`)],$.prototype,`featureTableMessages`,void 0),e([f(),q(`esri/core/t9n/Units`)],$.prototype,`messagesUnits`,void 0),e([f()],$.prototype,`page`,null),e([f()],$.prototype,`readOnly`,null),e([f()],$.prototype,`showPrompt`,null),e([f()],$.prototype,`clearPrompt`,null),e([f()],$.prototype,`selectedAttachment`,null),e([f()],$.prototype,`selectedAttachmentDetails`,null),e([f()],$.prototype,`valid`,null),e([f({type:C}),_e([`attachments-change`,`value-change`,`values-change`,`submit`])],$.prototype,`viewModel`,void 0),e([f({type:D,nonNullable:!0})],$.prototype,`visibleElements`,void 0),e([f()],$.prototype,`groupDisplay`,void 0),e([f()],$.prototype,`_formHeaderVisible`,null),e([f()],$.prototype,`_associationsEnabled`,null),e([f()],$.prototype,`_associationsList`,void 0),e([f()],$.prototype,`_attemptFocusOnNextRender`,void 0),e([f()],$.prototype,`_formId`,null),e([f()],$.prototype,`_focusedFieldInput`,void 0),e([f()],$.prototype,`_pendingSubtypeChoice`,void 0),e([f()],$.prototype,`_relatedRecordsEnabled`,null),e([f()],$.prototype,`_listObserverNode`,void 0),e([f()],$.prototype,`_attachmentDialogInfo`,void 0),e([f()],$.prototype,`_attachmentListFilterText`,void 0),e([f()],$.prototype,`_prompt`,void 0),e([f()],$.prototype,`test`,null),$=e([p(`esri.widgets.BatchAttributeForm`)],$);function ye(e){switch(e){case`audio`:return _(`audio/mpeg`);case`video`:return _(`video/mp4`);case`image`:return _(`image/png`);default:return`camera`}}const be=$;export{be as default};
2
+ import{__decorate as e}from"tslib";import{substitute as t}from"../intl.js";import{deprecateWidget as n}from"../core/deprecate.js";import r from"../core/Logger.js";import{getOrCreateMapValue as i}from"../core/MapUtils.js";import{destroyMaybe as a}from"../core/maybe.js";import o from"../core/ReactiveMap.js";import{watch as s,when as c,on as l,sync as u}from"../core/reactiveUtils.js";import{formatFileSize as d}from"../core/unitFormatUtils.js";import{property as f,subclass as p}from"../core/accessorSupport/decorators.js";import{formatDate as m}from"../intl/date.js";import{isIntegerField as h}from"../layers/support/fieldUtils.js";import{isString as g}from"../support/guards.js";import ee from"./Widget.js";import{getAttachmentTypeCategory as te,getCalciteIconForAttachment as _}from"./Attachments/support/attachmentUtils.js";import{getAttachmentKey as v,isImageAttachment as y,getAttachmentFilenameParts as b}from"./BatchAttributeForm/attachmentUtils.js";import{getHiddenFieldsValidationErrorMessage as ne,getMessageString as x,isElementTemplateWithInputType as S,subtypeChangeShouldPrompt as re,flattenInputs as ie}from"./BatchAttributeForm/batchAttributeFormUtils.js";import C from"./BatchAttributeForm/BatchAttributeFormViewModel.js";import{css as w}from"./BatchAttributeForm/css.js";import{makeViewingEditedAttachmentFooterButtons as ae,makeViewingAttachmentFooterButtons as oe,makeCancelFooterButton as T,makeDefaultFooterButtons as E}from"./BatchAttributeForm/interfaceUtils.js";import D from"./BatchAttributeForm/VisibleElements.js";import{isDynamicChoiceController as O,isMultipleChoiceController as k}from"./BatchAttributeForm/inputs/support/controllerUtils.js";import{isGroupInput as A,isFieldInput as j,isTextElementInput as se,isRelationshipElementInput as ce,isAttachmentElementInput as le,isUtilityNetworkAssociationsElementInput as ue,differentValuesString as M,getNormalizedFieldName as N,isGroupedInput as P}from"./BatchAttributeForm/inputs/support/inputUtils.js";import{clearMultipleChoiceOtherChoiceStateForViewModel as F,otherChoiceCheckedPlaceholderValue as I,canRestoreMultipleChoiceOtherChoiceDraftValue as L}from"./BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js";import{loadRelationshipDetailsComponents as R,RelationshipDetails as z}from"./BatchAttributeForm/rendered-content/RelationshipDetails.js";import{Prompt as B}from"./Editor/components/Prompt.js";import{downloadAttachmentInfo as V}from"./FeatureTable/support/exportUtils.js";import{loadCalciteComponents as H}from"./support/componentsUtils.js";import{getLabelForDateFieldValue as de,getIntlOptionsForField as fe,prepareISOFieldValueForDateComponents as U,prepareUnixFieldValueForDateComponents as W,normalizeTimeOnlyString as G,getISOFieldValueFromDateComponents as pe,getUnixFieldValueFromDateComponents as me}from"./support/dateUtils.js";import{globalCss as K}from"./support/globalCss.js";import{Heading as he}from"./support/Heading.js";import{calciteListFilterProps as ge}from"./support/listUtils.js";import{messageBundle as q,vmEvent as _e,tsx as J}from"./support/widget.js";import{setFocus as ve}from"./support/widgetUtils.js";import{isEmptyValue as Y,ContingentValuesValidationError as X}from"./support/forms/formUtils.js";const Z=`data-element-id`,Q=`data-field-name`;let $=class extends ee{constructor(e){let{suppressDeprecationWarning:t,...i}=e??{};super(i),this.headingLevel=2,this.messagesCommon=null,this.messages=null,this.featureFormMessages=null,this.featureTableMessages=null,this.messagesUnits=null,this.viewModel=new C,this.visibleElements=new D,this.groupDisplay=`all`,this._associationsList=null,this._associationsWidgetsMap=new o,this._attemptFocusOnNextRender=!1,this._dateComponentMap=new Map,this._touchedInputs=new Set,this._dynamicChoiceItemSelections=new WeakSet,this._focusedFieldInput=null,this._pendingSubtypeChoice=null,this._batchSwitchInputInitialValues=new Map,this._listObserverNode=null,this._listObserver=new IntersectionObserver(e=>{e.length&&e[0].isIntersecting&&this.viewModel.activeRelationshipInput?.incrementPage()},{root:window.document}),this._attachmentDialogInfo=null,this._attachmentListFilterText=``,this._attachmentFileInputMap=new Map,this._prompt=null,this._selectedAttachmentReplaceFileInput=null,this._afterListObserverCreated=e=>{this.viewModel.activeRelationshipInput&&(this._listObserverNode=e)},this._afterListObserverRemoved=()=>{this._listObserverNode=null},this._maximizeSelectedAttachment=()=>{this._attachmentDialogInfo=this.selectedAttachmentDetails},this._enterAttachmentReplaceView=()=>{let e=this.selectedAttachmentDetails;this._canReplaceSelectedAttachment()&&e&&(e.input.clearValidationCriteriaState(),this.viewModel.setShowingSelectedAttachmentReplacePage(!0))},this._setSelectedAttachmentReplaceFileInput=e=>{this._selectedAttachmentReplaceFileInput=e},this._openSelectedAttachmentReplaceFilePicker=()=>{this._canReplaceSelectedAttachment()&&this._selectedAttachmentReplaceFileInput?.click()},this._resetSelectedAttachmentName=()=>{let e=this.selectedAttachmentDetails;if(!e?.attachment)return;let t=e.input.getAttachmentEditState(e.attachment).initialName;if(t==null)return;let n=e.input.template.elementId,r=v(e.attachment);this.viewModel.stageRenameAttachment(n,r,t)},this._closeAttachmentDialog=()=>{this.hideAttachmentDialog()},this._saveInputFromElement=this._saveInputFromElement.bind(this),this._onFormSubmit=this._onFormSubmit.bind(this),this._onComponentFocus=this._onComponentFocus.bind(this),this._onComponentBlur=this._onComponentBlur.bind(this),this._afterComponentCreateOrUpdate=this._afterComponentCreateOrUpdate.bind(this),this._afterDateComponentCreateOrUpdate=this._afterDateComponentCreateOrUpdate.bind(this),this._afterRadioGroupCreateOrUpdate=this._afterRadioGroupCreateOrUpdate.bind(this),t||(this.announceDeprecation=()=>{n(r.getLogger(this),`Editor`,`arcgis-editor`,{version:`5.0`})})}initialize(){this.addHandles([s(()=>this.features.toArray(),()=>{this._dateComponentMap.clear(),F(this.viewModel,{includeDraftValues:!0})}),s(()=>this.viewModel.activeForm,()=>{this._batchSwitchInputInitialValues.clear(),this._resetTransientFormState(),F(this.viewModel),this._setFocusableInput()}),s(()=>this.viewModel.selectedAttachmentAddElementId,()=>{this.hideAttachmentDialog()}),c(()=>!this.selectedAttachmentDetails,()=>this.hideAttachmentDialog()),s(()=>this.viewModel.selectedAttachmentListElementId,()=>{this._attachmentListFilterText=``}),s(()=>[this.viewModel.activeRelationshipInput,this._listObserverNode],()=>this._onObserverChange()),l(()=>this.viewModel,`submit`,()=>{this.valid||this.goToFirstError()}),s(()=>[this._associationsEnabled,this.viewModel.activeForm.allUtilityNetworkAssociationsElementInputs],()=>this._setUpAssociationsWidgets(),u),s(()=>this.viewModel.activeAssociationsInput,e=>this._onActiveAssociationsInputChange(e)),s(()=>this.groupDisplay,()=>this._syncGroupInputStates())])}loadDependencies(){return Promise.all([H({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),autocomplete:()=>import(`@esri/calcite-components/dist/components/calcite-autocomplete`),"autocomplete-item":()=>import(`@esri/calcite-components/dist/components/calcite-autocomplete-item`),block:()=>import(`@esri/calcite-components/dist/components/calcite-block`),button:()=>import(`@esri/calcite-components/dist/components/calcite-button`),checkbox:()=>import(`@esri/calcite-components/dist/components/calcite-checkbox`),chip:()=>import(`@esri/calcite-components/dist/components/calcite-chip`),combobox:()=>import(`@esri/calcite-components/dist/components/calcite-combobox`),"combobox-item":()=>import(`@esri/calcite-components/dist/components/calcite-combobox-item`),"combobox-item-group":()=>import(`@esri/calcite-components/dist/components/calcite-combobox-item-group`),dialog:()=>import(`@esri/calcite-components/dist/components/calcite-dialog`),dropdown:()=>import(`@esri/calcite-components/dist/components/calcite-dropdown`),"dropdown-group":()=>import(`@esri/calcite-components/dist/components/calcite-dropdown-group`),"dropdown-item":()=>import(`@esri/calcite-components/dist/components/calcite-dropdown-item`),icon:()=>import(`@esri/calcite-components/dist/components/calcite-icon`),input:()=>import(`@esri/calcite-components/dist/components/calcite-input`),"input-date-picker":()=>import(`@esri/calcite-components/dist/components/calcite-input-date-picker`),"input-message":()=>import(`@esri/calcite-components/dist/components/calcite-input-message`),"input-number":()=>import(`@esri/calcite-components/dist/components/calcite-input-number`),"input-time-picker":()=>import(`@esri/calcite-components/dist/components/calcite-input-time-picker`),"input-time-zone":()=>import(`@esri/calcite-components/dist/components/calcite-input-time-zone`),label:()=>import(`@esri/calcite-components/dist/components/calcite-label`),list:()=>import(`@esri/calcite-components/dist/components/calcite-list`),"list-item":()=>import(`@esri/calcite-components/dist/components/calcite-list-item`),loader:()=>import(`@esri/calcite-components/dist/components/calcite-loader`),notice:()=>import(`@esri/calcite-components/dist/components/calcite-notice`),switch:()=>import(`@esri/calcite-components/dist/components/calcite-switch`),"text-area":()=>import(`@esri/calcite-components/dist/components/calcite-text-area`),"radio-button":()=>import(`@esri/calcite-components/dist/components/calcite-radio-button`),"radio-button-group":()=>import(`@esri/calcite-components/dist/components/calcite-radio-button-group`)}),R()])}destroy(){this._destroyAssociationsWidgets(),this._associationsList=a(this._associationsList),this._listObserverNode&&this._listObserver.unobserve(this._listObserverNode)}get activeFeatureIndex(){return this.viewModel.activeFeatureIndex}set activeFeatureIndex(e){this.viewModel.activeFeatureIndex=e}get attachmentsEnabled(){return this.viewModel.attachmentsEnabled}set attachmentsEnabled(e){this.viewModel.attachmentsEnabled=e}get callbacks(){return this.viewModel.callbacks}set callbacks(e){this.viewModel.callbacks=e}get disabled(){return this.viewModel.disabled}set disabled(e){this.viewModel.disabled=e}get effectiveTitle(){let{features:e,messages:t,page:n}=this;return t?n===`replacing-attachment`?t.titles.replaceAttachment:n===`viewing-attachment-details`?t.titles.editAttachment:n===`adding-attachments`?t.titles.addAttachments:n===`viewing-attachments`?t.titles.attachments:e.length===1||this.activeFeatureIndex>-1?t.titles.editFeature:e.length>1?t.titles.editFeatures:``:``}get effectiveDisabled(){return this.disabledOrReadOnly||this.viewModel.updating}get disabledOrReadOnly(){return this.disabled||this.readOnly}get features(){return this.viewModel.features}set features(e){this.viewModel.features=e}get footerButtonInfos(){if(!this.features.length||!this.messages||!this.messagesCommon)return[];let{messages:e,messagesCommon:t,page:n}=this,r=this.effectiveDisabled;if(n===`adding-attachments`||n===`replacing-attachment`)return[];if(n===`viewing-attachment-details`){let t=this.selectedAttachmentDetails,n=t?.input?.getAttachmentEditState(t.attachment);return!t?.input||!n?[]:n.isRenamed||n.isReplaced?ae({doneOnclick:()=>this._setSelectedAttachment(null),messages:e.footerButtons,resetOnclick:()=>this._resetSelectedAttachmentChanges(),resetDisabled:this._disableAttachmentModification(t.input)}):oe({deleteDisabled:this._disableAttachmentModification(t.input),deleteOnclick:()=>this._deleteSelectedAttachment(),doneOnclick:()=>this._setSelectedAttachment(null),messages:e.footerButtons})}return n===`viewing-associated-features`?T({messages:t,purpose:`cancel-viewing-associated-features`,onclick:()=>this.goBack()}):n===`viewing-associated-layers`?T({messages:t,purpose:`cancel-viewing-associated-layers`,onclick:()=>this.goBack()}):n===`viewing-attachments`||n===`viewing-related-records`?[]:E({disabled:r||!this.valid,formId:this._formId,messages:e,callback:()=>this.submit()})}get map(){return this.viewModel.map}set map(e){this.viewModel.map=e}get maximumFeatureCount(){return this.viewModel.maximumFeatureCount}set maximumFeatureCount(e){this.viewModel.maximumFeatureCount=e}get maximumFeatureCountWithComplexForms(){return this.viewModel.maximumFeatureCountWithComplexForms}set maximumFeatureCountWithComplexForms(e){this.viewModel.maximumFeatureCountWithComplexForms=e}get spatialReference(){return this.viewModel.spatialReference}set spatialReference(e){this.viewModel.spatialReference=e}get layerInfos(){return this.viewModel.layerInfos}set layerInfos(e){this.viewModel.layerInfos=e}get timeZone(){return this.viewModel.timeZone}set timeZone(e){this.viewModel.timeZone=e}get icon(){return`edit-attributes`}set icon(e){this._overrideIfSome(`icon`,e)}get page(){return this.viewModel.page}get readOnly(){return this.viewModel.readOnly}set readOnly(e){this.viewModel.readOnly=e}get showPrompt(){return e=>{this._prompt?.cancel?.(),this._prompt=e}}set showPrompt(e){this._overrideIfSome(`showPrompt`,e)}get clearPrompt(){return()=>this._prompt=null}set clearPrompt(e){this._overrideIfSome(`clearPrompt`,e)}get selectedAttachment(){return this.viewModel.selectedAttachment}get selectedAttachmentDetails(){return this.viewModel.selectedAttachmentDetails}get valid(){return this.viewModel.valid}get _formHeaderVisible(){return this.viewModel.mode===`batch`||!this.viewModel.activeFeature?!1:!!(this.viewModel.formDescription||this.viewModel.formTitle)}get _associationsEnabled(){let{callbacks:e}=this;return!!(e?.addAssociation||e?.editAssociatedFeature)}get _formId(){return`${this.id}-form`}get _relatedRecordsEnabled(){let{callbacks:e}=this;return!!(e&&(e.addRelatedRecord||e.editRelatedRecord))}async goBack(){return this.viewModel.goBack()}async goHome(){return this.viewModel.goHome()}goToFirstError(){let e=this.viewModel.getFirstVisibleInvalidFieldInput();if(!e)return;let{groupInput:t}=e;t&&(t.open||=!0),this._setFocusableInput(e.input),this.scheduleRender()}render(){return J(`div`,{class:this.classes(w.base,K.widget,K.panel),ondragover:this._handleDragAndDrop,ondrop:this._handleDragAndDrop},this._renderContent(),this._renderAttachmentDialog(),this._prompt?J(B,{...this._prompt,headingLevel:this.headingLevel}):void 0)}setActiveAssociationsInput(e){this.viewModel.setActiveAssociationsInput(e)}setActiveAssociationsLayer(e){this.viewModel.setActiveAssociationsLayer(e)}setActiveAssociationType(e){this.viewModel.setActiveAssociationType(e)}submit(){return this.viewModel.submit()}get test(){return{saveInput:this._saveInput.bind(this),pendingSubtypeChoice:this._pendingSubtypeChoice,touchedInputs:this._touchedInputs}}_setDateTimeTimeZoneMap(e){let{datePart:t,elementId:n}=e.dataset,r=i(this._dateComponentMap,`${n}`,()=>({}));switch(t){case`date`:r.date=e;break;case`time`:r.time=e;break;case`timeZone`:r.timeZone=e}}_renderContent(){let{messages:e,viewModel:n}=this,{status:r}=n;if(r===`failed`)return n.hasTooManyComplexFeatures?this._renderErrorNotice(t(e.formFailedToLoadTooManyComplexFeatures,{num:n.maximumFeatureCountWithComplexForms})):n.hasTooManyFeatures?this._renderErrorNotice(t(e.formFailedToLoadTooManyFeatures,{num:n.maximumFeatureCount})):e.formFailedToLoad;if(n.hasLayersWithContingentValues&&this.viewModel.features.length>1)return this._renderErrorNotice(e.unsupportedContingentValues);if(r===`loading`&&this.visibleElements.loadingIndicator)return J(`calcite-loader`,{key:`loader`,label:this.messagesCommon?.loading});if(this.features.length!==0)return this._renderForm()}_renderErrorNotice(e,t=`warning`){return J(`calcite-notice`,{class:w.noticeError,icon:!0,kind:t,open:!0},J(`div`,{slot:`message`},e))}_renderForm(){return J(`form`,{class:w.form,id:this._formId,inert:!!this._prompt,onsubmit:this._onFormSubmit},this.viewModel.expressionEvaluationFailed&&this.visibleElements.expressionsErrorNotice&&this._renderErrorNotice(this.messages.expressionEvaluationFailed),this._renderInvisibleFieldsError(),this._renderPage())}_renderPage(){switch(this.page){case`adding-attachments`:return this._renderAttachmentAddPage();case`viewing-attachment-details`:case`replacing-attachment`:return this._renderAttachmentDetailPage();case`viewing-attachments`:return this._renderAttachmentListPage();case`viewing-associated-layers`:case`viewing-associated-features`:return this._renderViewingAssociationsPage();case`viewing-related-categories`:case`viewing-related-records`:return this._renderRelationshipListPage();default:return this._renderDefaultPage()}}_renderInvisibleFieldsError(){let{viewModel:e}=this,{hasNonActiveInvalidFeatures:t,activeForm:n}=e,r;if(!e.submitHasBeenAttempted)return null;if(n.invalidHiddenInputs.length>0){if(r=ne(n,e.mode,this.messages),this.viewModel.mode===`batch`){let e=n.invalidHiddenInputs.filter(e=>e.effectiveVisibilityCode===`hidden:group-visibility-expression:all-features`||e.visibilityCode===`hidden:visibility-expression:all-features`);e.length>0?r+=` (${e.map(e=>e.label).join(`, `)})`:r=null}else r=null}else if(t)return null;return r?this._renderErrorNotice(r,`danger`):null}_renderDefaultPage(){return[this._renderReadOnlyNotice(),this._renderFormHeader(),this._renderFormContent()]}_renderReadOnlyNotice(){if((this.disabled||this.readOnly)&&this.visibleElements.readOnlyNotice)return J(`calcite-notice`,{class:w.disabledNotice,"data-testid":`read-only-notice`,icon:`read-only-non-editable`,kind:`brand`,open:!0,scale:`s`,width:`full`},J(`div`,{slot:`message`},this.featureFormMessages.disabledForm))}_renderFormHeader(){let{formTitle:e,formDescription:t}=this.viewModel;if(!this._formHeaderVisible)return;let n=e?J(he,{key:`title`,level:this.headingLevel},e):void 0,r=t?J(`p`,{class:w.description,key:`description`},t):void 0;return J(`div`,{class:w.formHeader},n,r)}_renderFormContent(){return this.viewModel.hasVisibleInputs?this.viewModel.activeForm.inputs.filter(e=>e.visible).map(e=>this._renderInput(e)):this._renderErrorNotice(this.messages.noVisibleFields[this.viewModel.noVisibleElementsReason])}_renderInput(e){if(A(e))return this._renderGroupInput(e);if(j(e))return this._renderLabeledField(e);if(se(e))return this._renderTextComponent(e);if(ce(e))return this._renderRelationshipElementInput(e);if(le(e))return this._renderAttachmentElementInput(e);if(ue(e))return this._renderUtilityNetworkAssociationsElementInput(e)}_renderGroupInput(e){let{inputs:t,template:n,open:r}=e,i=t.filter(e=>e.visible),a=e.label??``,o=this._focusedFieldInput?.group===e,s=this.groupDisplay===`sequential`;return J(`calcite-block`,{class:this.classes(w.group,s?w.groupSequential:null,o?w.groupActive:null,this.disabled?w.inputDisabled:null),description:e.description??void 0,expandable:!0,expanded:r,heading:a,headingLevel:this.headingLevel,key:`{${n.elementId}-key}`,label:a,onCalciteBlockCollapse:({currentTarget:t})=>{e.open=!1,this._onGroupToggle(t,e)},onCalciteBlockExpand:({currentTarget:t})=>{e.open=!0,this._onGroupToggle(t,e)}},i.map(e=>this._renderInput(e)))}_renderLabeledField(e){let{elementId:n}=e.template,{label:r,required:i,dataType:a}=e,o=i?t(this.messages.requiredFieldLabel,{name:r}):r;return J(`calcite-label`,{"aria-label":o,class:w.label,key:`field--${n}`},J(`div`,{class:w.labelTextContent,key:`labelTextContainer`},r,i?J(`span`,{"aria-hidden":`true`,title:this.messagesCommon.required},`*`):void 0),a===`unsupported`?this._renderReadOnlyComponent(e):this._renderFieldInput(e),this._renderAuxiliaryText(e))}_renderFieldInput(e){let t=this.getCommonInputProps(e),{dataType:n}=e;return O(e.inputController)?this._renderDynamicChoiceComponent({input:e,props:t,controller:e.inputController}):e.domain?.type===`coded-value`?this._renderCodedInputs({input:e,props:t}):k(e.inputController)?this._renderMultipleChoiceComponent({input:e,props:t}):n===`date`?this._renderDateComponents(e,t):(t.disabled=this.disabled,t.readOnly=t.readOnly||this.viewModel.updating,n===`number`?this._renderNumberComponent(e,t):this._renderStringComponent(e,t))}_renderAuxiliaryText(e){let{description:t}=e,n=this._getErrorToDisplay(e),r=n?x(e,n,this.messages):null;return r?J(`calcite-input-message`,{icon:!0,status:`invalid`},r):e.valueIsOutOfDomain&&(this._touchedInputs.has(e.template.elementId)||this.viewModel.submitHasBeenAttempted)?J(`calcite-input-message`,{icon:!0,status:`idle`},this.messages.subtypes.fieldOutOfSubtypeDomainWarning):t?J(`calcite-input-message`,{class:w.description,icon:!1,status:`idle`},t):null}_renderCodedInputs({input:e,props:t}){let n=e.input?.type??null,r=e.codedValueOptions;switch(n){case`switch`:return this._renderSwitchField({input:e,props:t});case`radio-buttons`:return this._renderRadioButtonGroupComponent({input:e,options:r,props:t});default:return this._renderComboBoxComponent({options:r,props:t,input:e})}}_renderDynamicChoiceComponent({input:e,props:t,controller:n}){let r=n.filteredChoices,i=t.readOnly||t.disabled,a=e.showNoValueLabel||this.messages.empty,o=n.evaluated&&!n.evaluating&&!n.choices.length&&J(`calcite-notice`,{appearance:`transparent`,kind:`neutral`,open:!0,scale:`s`,slot:`content-bottom`,width:`full`},J(`div`,{slot:`message`},e.showNoValueOptionEnabled?this.messages.noDynamicChoicesWithNoValue:this.messages.noDynamicChoices)),s=t=>{this._saveInput(e,t)},l=(e,t)=>{this._dynamicChoiceItemSelections.delete(n);let r=e.closest(`calcite-autocomplete`);if(r){let e=t==null?``:n.getLabel(t);n.filterValue=``,r.inputValue=e}s(t)},u=({currentTarget:t})=>{let r=t.inputValue??``;n.filterValue=r,!r&&e.value!=null&&s(null)},d=e.showNoValueOptionEnabled?J(`calcite-autocomplete-item`,{disabled:i,heading:a,key:`dynamic-choice-empty`,selected:e.value==null,value:``,onCalciteAutocompleteItemSelect:({currentTarget:e})=>l(e,null),onpointerdown:()=>{this._dynamicChoiceItemSelections.add(n)}}):null,f=t=>{this.addHandles(c(()=>!n.initialEvaluationInProgress,()=>{t.inputValue=e.value===M?this.messages.differentValuesPlaceholder:e.value==null?``:n.inputValue},{once:!0,initial:!0}))};return J(`calcite-autocomplete`,{...t,afterCreate:f,disabled:i&&!n.interactionActive,loading:n.initialEvaluationInProgress,placeholder:e.value==null?a:t.placeholder,value:t.value===M?this.messages.differentValuesPlaceholder:String(t.value),onblur:e=>this._onDynamicChoiceBlur(e,n),onCalciteAutocompleteBeforeOpen:()=>n.beginInteraction(),onCalciteAutocompleteTextInput:u},n.evaluating?J(`calcite-loader`,{key:`dynamic-choice-loader`,label:this.messagesCommon.loading,scale:`s`,slot:`content-top`}):[o,d,...r.map(t=>J(`calcite-autocomplete-item`,{disabled:i,heading:t.name,key:`dynamic-choice-${t.code}`,selected:t.code===e.value,value:String(t.code),onCalciteAutocompleteItemSelect:({currentTarget:e})=>l(e,t.code),onpointerdown:()=>{this._dynamicChoiceItemSelections.add(n)}}))])}_renderMultipleChoiceComponent({input:e,props:t}){let{messages:n}=this,r=this._getMultipleChoiceController(e);if(!r)return null;let{input:i}=r,a=i.includeSelectAllChoices===!0,{checkboxStatesByValue:o,selectAllState:s}=r.selectionState,c=s.checked?n.deselectAllLabel:n.selectAllLabel,l=r.otherChoiceRenderState;return J(`div`,{class:w.multipleChoiceInput,key:`${t.key}-multiple-choice-group`},a?this._renderMultipleChoiceSelectAllCheckbox({props:t,selectAllState:s,selectAllLabel:c,handleSelectAllCheckboxChange:t=>{this._saveValueFromMultipleChoiceCheckbox({input:e,checkbox:t,isSelectAllCheckbox:!0})}}):null,this._renderMultipleChoiceChoiceCheckboxes({input:e,props:t,checkboxStatesByValue:o,handleChoiceCheckboxChange:t=>{this._saveValueFromMultipleChoiceCheckbox({input:e,checkbox:t})}}),l.shouldShow?this._renderMultipleChoiceOtherChoice({props:t,includeSelectAllChoices:a,otherChoiceRenderState:l,handleOtherChoiceCheckboxChange:t=>{let{fieldName:n}=l;n&&this._saveOtherChoiceCheckboxValue({input:e,isChecked:t.checked,otherChoiceFieldName:n})},handleOtherChoiceInputChange:t=>{this._saveValueFromMultipleChoiceTextInput({input:e,textInput:t,otherChoiceFieldName:l.fieldName??void 0})},differentValuesPlaceholder:n.differentValuesPlaceholder}):null)}_renderMultipleChoiceSelectAllCheckbox({props:e,selectAllState:t,selectAllLabel:n,handleSelectAllCheckboxChange:r}){return J(`calcite-checkbox`,{afterCreate:e.afterCreate,afterUpdate:e.afterUpdate,"aria-invalid":e[`aria-invalid`],checked:t.checked,class:w.multipleChoiceSelectAll,"data-element-id":e[Z],disabled:e.readOnly||e.disabled,indeterminate:t.indeterminate,key:`${e.key}-select-all`,label:n,labelText:n,value:`esri_BatchAttributeForm_select_all`,onblur:e.onblur,onCalciteCheckboxChange:({currentTarget:e})=>r(e),onfocus:e.onfocus})}_renderMultipleChoiceChoiceCheckboxes({input:e,props:t,checkboxStatesByValue:n,handleChoiceCheckboxChange:r}){let i=this._getMultipleChoiceController(e);if(!i)return[];let{choices:a}=i;return a.map(e=>{let i=n.get(e.value)??{checked:!1,indeterminate:!1};return J(`calcite-checkbox`,{afterCreate:t.afterCreate,afterUpdate:t.afterUpdate,"aria-invalid":t[`aria-invalid`],checked:i.checked,class:t.class,"data-element-id":t[Z],disabled:t.readOnly||t.disabled,indeterminate:i.indeterminate,key:`${t.key}-${e.value}`,label:e.label,labelText:e.label,value:e.value,onblur:t.onblur,onCalciteCheckboxChange:({currentTarget:e})=>r(e),onfocus:t.onfocus})})}_renderMultipleChoiceOtherChoice({props:e,includeSelectAllChoices:t,otherChoiceRenderState:n,handleOtherChoiceCheckboxChange:r,handleOtherChoiceInputChange:i,differentValuesPlaceholder:a}){let o=n.label??this.messages.otherOptionLabel;return J(`div`,{class:this.classes(w.multipleChoiceOtherChoice,t?w.multipleChoiceOtherChoiceWithSelectAll:null),key:`${e.key}-other-choice`},J(`calcite-checkbox`,{afterCreate:e.afterCreate,afterUpdate:e.afterUpdate,"aria-invalid":e[`aria-invalid`],checked:n.checkboxState.checked,class:e.class,"data-element-id":e[Z],disabled:e.readOnly||e.disabled,indeterminate:n.checkboxState.indeterminate,key:`${e.key}-other-choice-checkbox`,label:o,labelText:o,value:`esri_BatchAttributeForm_other_choice`,onblur:e.onblur,onCalciteCheckboxChange:({currentTarget:e})=>r(e),onfocus:e.onfocus}),n.checkboxState.checked?J(`calcite-input`,{afterCreate:e.afterCreate,afterUpdate:e.afterUpdate,"aria-invalid":e[`aria-invalid`],"aria-label":o,class:w.textElementInput,"data-element-id":e[Z],disabled:e.readOnly||e.disabled,key:`${e.key}-other-choice-input`,maxLength:n.maxLength,placeholder:n.value===M?a:n.hint,status:n.status,type:`text`,value:n.normalizedValue===M?``:n.normalizedValue?String(n.normalizedValue):``,onblur:e.onblur,onCalciteInputInput:({currentTarget:e})=>i(e),onfocus:e.onfocus}):null)}async _saveValueFromMultipleChoiceCheckbox({input:e,checkbox:t,isSelectAllCheckbox:n=!1}){this._markInputTouched(e);let r=this._getMultipleChoiceController(e);if(!r)return;if(r.input&&!n&&this.viewModel.mode===`batch`){await this._saveMultipleChoiceCheckboxValueByFeature({input:e,checkbox:t});return}let i=e.value,a=this._parseValue(t,e,n);a!==i&&await this.viewModel.setValue(e.template.elementId,a)}async _saveValueFromMultipleChoiceTextInput({input:e,textInput:t,otherChoiceFieldName:n}){if(!n)return;let r=t.value,i=r==null||r===``?null:r,a=this._getMultipleChoiceController(e);if(!a)return;a.initializeExplicitOtherChoiceCheckedState(),a.stashOtherChoiceDraftValueForFeatures(e.features,i);let o=N(e,n);o&&await this.viewModel.setValueForFieldName(o,i,Array.from(e.features,e=>e.source))}async _saveOtherChoiceCheckboxValue({input:e,isChecked:t,otherChoiceFieldName:n}){let r=this._getMultipleChoiceController(e);if(!r)return;r.setExplicitOtherChoiceCheckedState(t),this._markInputTouched(e),t||r.setOtherChoiceDraftValuesFromFeatures(e.features.toArray());let i=N(e,n);if(!i)return;let a=new Map;for(let i of e.features){let e=i.getAttribute(n);if(t){if(!Y(e))continue;let t=r.getOtherChoiceDraftValue(i),n=L(t)?t:I;a.set(i,n)}else e!=null&&a.set(i,null)}a.size!==0&&await this.viewModel.setValuePerFeatureForFieldName(i,new Map(Array.from(a,([e,t])=>[e.source,t])))}async _saveMultipleChoiceCheckboxValueByFeature({input:e,checkbox:t}){let n=this._getMultipleChoiceController(e);if(!n)return;let r=new Map(e.features.map(r=>[r,n.getUpdatedValueForFeature({choiceValue:t.value,currentValue:r.getAttribute(e.fieldName),isChecked:t.checked})]));r.size!==0&&await this.viewModel.setFieldInputValuePerFeature(e,r)}_renderSwitchField({input:e,props:t}){if((this._batchSwitchInputInitialValues.get(e)===M||e.value===M)&&this.viewModel.mode===`batch`){let n={dropdown:{afterCreate:this._afterComponentCreateOrUpdate,afterUpdate:this._afterComponentCreateOrUpdate,disabled:t.readOnly,open:!1,onblur:t.onblur,onfocus:t.onfocus,[Z]:t[Z]},trigger:{appearance:`transparent`,iconEnd:`chevron-down`,kind:`neutral`,slot:`trigger`,label:t.label},group:{mode:`single`}};return this._renderDropdownComponent({buttonValue:e.value,dropdownProps:n,options:[{name:this.messages.differentValuesPlaceholder,value:M,disabled:!0},...e.codedValueDomainOptions]})}return this._renderSwitchComponent({input:e,props:t})}_renderSwitchComponent({input:e,props:t}){return J(`calcite-switch`,{...t,checked:S(e.template,`switch`)?e.value===e.template.input.onValue:!1,class:w.inputSwitch,disabled:t.readOnly||t.disabled,onCalciteSwitchChange:({currentTarget:e})=>this._saveInputFromElement(e)})}_renderDropdownComponent({buttonValue:e,options:t,dropdownProps:n}){let{trigger:r,dropdown:i,group:a}=n;return J(`calcite-dropdown`,{...i,topLayerDisabled:this.topLayerDisabled,onCalciteDropdownSelect:({currentTarget:e})=>this._saveInputFromElement(e)},J(`calcite-button`,{...r},e===M?this.messages.differentValuesPlaceholder:e),J(`calcite-dropdown-group`,{selectionMode:a.mode},t.map(t=>J(`calcite-dropdown-item`,{disabled:t.disabled,label:String(t.name),selected:e===t.value},t.name))))}_renderComboBoxComponent({input:e,options:t,props:n}){let r=this.viewModel.editType===`INSERT`,i=this._touchedInputs.has(e?.template.elementId),a=r&&e.showNoValueOptionEnabled&&!i?()=>{}:n.onblur,o={...n,onblur:a};return J(`calcite-combobox`,{...o,clearDisabled:e.isSubtypeField,selectionMode:`single`,topLayerDisabled:this.topLayerDisabled,value:n.placeholder===this.messages.differentValuesPlaceholder?M:String(n.value),onCalciteComboboxChange:({currentTarget:t})=>{t.value!==M&&(e.isSubtypeField&&t.selectedItems.length===0?t.value=`${e.value}`:this._saveInputFromElement(t))}},this.renderComboboxOptionsList({input:e,options:t,props:n}))}renderComboboxOptionsList({input:e,options:t,props:n}){let r=e=>e.map(e=>{let{value:t}=e,r=Y(e.value)?this.messages.empty:e.name;return J(`calcite-combobox-item`,{heading:r,key:`#${t}`,selected:n.value===t,value:`${t}`})}),i=[],{messages:a}=this;t.other.length>0&&i.push(J(`calcite-combobox-item-group`,{key:`other`,label:a.other},r(t.other))),t.unsupported.length>0&&i.push(J(`calcite-combobox-item-group`,{key:`unsupported`,label:a.unsupported},r(t.unsupported)));let o=r(t.recommended);i.length>0?i.unshift(J(`calcite-combobox-item-group`,{key:`recommended`,label:a.recommended},o)):i=o;let s=n.placeholder===this.messages.differentValuesPlaceholder,c=!s&&Y(n.value);return e.showNoValueOptionEnabled&&!t.containsEmptyOption&&i.unshift(J(`calcite-combobox-item`,{heading:e.showNoValueLabel||this.messages.empty,key:`empty-option`,selected:c,value:``})),s&&i.unshift(J(`calcite-combobox-item`,{heading:this.messages.differentValuesPlaceholder,key:M,selected:!0,value:M})),i}_renderRadioButtonGroupComponent({input:e,options:t,props:n}){let r=[...t.recommended,...t.other,...t.unsupported].map(({name:t,value:r})=>this._renderRadioButtons({label:t,value:r,selected:r===e.value,props:n}));if(e.showNoValueOptionEnabled&&!t.containsEmptyOption){let t=e.showNoValueLabel||this.messages.empty,i=Y(e.value);r.unshift(this._renderRadioButtons({label:t,value:``,selected:i,props:n}))}return J(`calcite-radio-button-group`,{afterCreate:this._afterRadioGroupCreateOrUpdate,afterUpdate:this._afterRadioGroupCreateOrUpdate,class:w.inputRadioGroup,"data-field-name":n[Q],disabled:n.readOnly||n.disabled,key:`${n.key}-radio-group`,layout:`vertical`,name:`${n.name}-${this.id}`,required:n.required},r,n.placeholder===this.messages.differentValuesPlaceholder?J(`calcite-label`,{class:w.placeholderRadio,key:n.label,layout:`inline`},J(`calcite-radio-button`,{checked:!0,class:w.inputRadio,disabled:!0,value:n.placeholder}),n.placeholder):null)}_renderRadioButtons({value:e,selected:t,label:n,props:r}){return J(`calcite-label`,{class:w.inputRadioLabel,key:r.label,layout:`inline`},J(`calcite-radio-button`,{...r,afterCreate:void 0,afterUpdate:void 0,checked:t,class:w.inputRadio,disabled:r.readOnly||r.disabled,name:void 0,value:e,onCalciteRadioButtonChange:({currentTarget:e})=>{e.checked&&this._saveInputFromElement(e)}}),n)}_renderStringComponent(e,t){let{template:n}=e;return!n.field.editable||this.readOnly?this._renderReadOnlyComponent(e):n.input?.type===`text-area`?J(`calcite-text-area`,{...t,class:this.classes(w.individualElement),resize:`vertical`,value:t.value?String(t.value):``,onblur:n=>{t.onblur(n),e.userHasChangedValue&&this._saveInputFromElement(n.currentTarget)},onCalciteTextAreaInput:t=>{e.userHasChangedValue=!0,t.currentTarget.value===``&&this._saveInputFromElement(t.currentTarget)}}):J(`calcite-input`,{...t,class:this.classes(w.individualElement),type:`text`,value:t.value?String(t.value):``,onblur:n=>{t.onblur(n),e.userHasChangedValue&&this._saveInputFromElement(n.currentTarget)},onCalciteInputInput:t=>{e.userHasChangedValue=!0,t.currentTarget.value===``&&this._saveInputFromElement(t.currentTarget)}})}_renderNumberComponent(e,t){let n=h(e.field);return J(`calcite-input-number`,{...t,integer:n,step:n?1:`any`,type:`number`,value:n&&t.value!==``?Math.round(parseFloat(String(t.value))).toString():String(t.value),onblur:n=>{t.onblur(n),e.userHasChangedValue&&this._saveInputFromElement(n.currentTarget)},onCalciteInputNumberInput:t=>{e.userHasChangedValue=!0,t.currentTarget.value===``&&this._saveInputFromElement(t.currentTarget)}})}_renderReadOnlyComponent(e,t){let n=this.getCommonInputProps(e);return J(`calcite-input`,{...n,class:this.classes(w.fieldInput,w.inputDisabled,w.individualElement),readOnly:!0,type:`text`,value:String(t??n.value??``)})}_renderDateComponents(e,t){let{field:n}=e,r;switch(n.type){case`date`:r=this._renderDateFieldComponents(e,t);break;case`date-only`:r=this._renderDateOnlyFieldComponent(e,t);break;case`time-only`:r=this._renderTimeOnlyFieldComponent(e,t);break;case`timestamp-offset`:r=this._renderTimestampOffsetFieldComponents(e,t);break;default:r=this._renderReadOnlyComponent(e,de(n,t.value,{timeZone:e.effectiveTimeZone,...fe(e.template.field)}))}return e.value===M?[r,J(`calcite-input-message`,{icon:`information`,key:`diff-values-message`,status:`idle`},this.messages.differentValues)]:r}_renderDateOnlyFieldComponent(e,t){let{class:n,disabled:r,key:i,readOnly:a}=t,{rawMax:o,rawMin:s}=e.range;return J(`calcite-input-date-picker`,{afterCreate:this._afterDateComponentCreateOrUpdate,afterUpdate:this._afterDateComponentCreateOrUpdate,class:n,"data-date-part":`date`,"data-element-id":t[Z],"data-field-name":t[Q],disabled:r,key:`${i}-date-input`,max:g(o)?o:void 0,min:g(s)?s:void 0,overlayPositioning:`fixed`,readOnly:a,topLayerDisabled:this.topLayerDisabled,value:e.value===M?``:e.value?String(e.value):``,onblur:t.onblur,onCalciteInputDatePickerChange:t=>this._saveValueFromDateComponent(e,t.currentTarget),onfocus:t.onfocus})}_renderTimeOnlyFieldComponent(e,t){let{class:n,disabled:r,key:i,readOnly:a}=t;return J(`calcite-input-time-picker`,{afterCreate:this._afterDateComponentCreateOrUpdate,afterUpdate:this._afterDateComponentCreateOrUpdate,class:n,"data-date-part":`time`,"data-element-id":t[Z],"data-field-name":t[Q],disabled:r,key:`${i}-time-input`,overlayPositioning:`fixed`,readOnly:a,step:e.timeStep,value:e.value===M?``:e.value?String(e.value):``,onblur:t.onblur,onCalciteInputTimePickerChange:t=>this._saveValueFromDateComponent(e,t.currentTarget),onfocus:t.onfocus})}_renderTimestampOffsetFieldComponents(e,t){let{class:n,disabled:r,key:i,readOnly:a,onblur:o,onfocus:s}=t,{rawMax:c,rawMin:l}=e.range,u=e.effectiveTimeZone,d=U(c,u),f=U(l,u),p=U(e.value===M?``:e.value,u),m=e.includeTimeOffset,h={afterCreate:this._afterDateComponentCreateOrUpdate,afterUpdate:this._afterDateComponentCreateOrUpdate,disabled:r,[Z]:t[Z],[Q]:t[Q],onblur:o,onfocus:s,overlayPositioning:`fixed`,readOnly:a};return J(`div`,{class:w.dateInputContainer,key:`${i}-date-time-container`},J(`calcite-input-date-picker`,{...h,class:n,"data-date-part":`date`,key:`${i}-date-input`,max:d?.date??void 0,min:f?.date??void 0,topLayerDisabled:this.topLayerDisabled,value:p.date??``,onCalciteInputDatePickerChange:t=>this._saveValueFromDateComponent(e,t.target)}),J(`calcite-input-time-picker`,{...h,class:n,"data-date-part":`time`,key:`${i}-time-input`,step:e.timeStep,value:p.time??``,onCalciteInputTimePickerChange:t=>this._saveValueFromDateComponent(e,t.target)}),m?J(`calcite-input-time-zone`,{...h,class:n,clearable:e.value===M||e.value==null,"data-date-part":`timeZone`,key:`${i}-timezone-input`,value:p.timeZoneOffset||``,onCalciteInputTimeZoneChange:t=>this._saveValueFromDateComponent(e,t.target)}):null)}_renderDateFieldComponents(e,t){let{class:n,disabled:r,key:i,readOnly:a,min:o,max:s}=t,c=e.effectiveTimeZone,l=W(e.value===M?``:e.value,c),u=W(s,c),d=W(o,c),f=e.includeTime,p={afterCreate:this._afterDateComponentCreateOrUpdate,afterUpdate:this._afterDateComponentCreateOrUpdate,disabled:r,[Z]:t[Z],[Q]:t[Q],onblur:t.onblur,onfocus:t.onfocus,overlayPositioning:`fixed`,readOnly:a};return J(`div`,{class:w.dateInputContainer,key:`${i}-date-time-container`},J(`calcite-input-date-picker`,{...p,class:n,"data-date-part":`date`,key:`${i}-date-input`,max:u?.date??void 0,min:d?.date??void 0,topLayerDisabled:this.topLayerDisabled,value:l.date??``,onCalciteInputDatePickerChange:t=>this._saveValueFromDateComponent(e,t.target)}),f?J(`calcite-input-time-picker`,{...p,"data-date-part":`time`,key:`${i}-time-input`,step:1,value:l.time??``,onCalciteInputTimePickerChange:t=>{this._saveValueFromDateComponent(e,t.target)}}):null)}_renderRelationshipElementInput(e){return this._relatedRecordsEnabled?J(z,{afterObserverCreated:this._afterListObserverCreated,afterObserverRemoved:this._afterListObserverRemoved,input:e,messages:this.messages,messagesCommon:this.messagesCommon,viewModel:this.viewModel}):null}_renderRelationshipListPage(){let{activeRelationshipInput:e}=this.viewModel;if(e)return this._renderRelationshipElementInput(e)}_renderAttachmentElementInput(e){if(!this.attachmentsEnabled)return;let{allAttachmentsVisibleOnDefaultPage:t,attachments:n,defaultPageAttachments:r,template:{description:i,elementId:a,label:o}}=e,s=t?n:r;return J(`div`,{class:w.attachmentElementInput,"data-testid":`attachment-element-${a}`,key:`attachment-element-${a}`},o?J(`div`,{class:w.attachmentElementLabel,key:`attachment-element-label-${a}`},o):null,i?J(`div`,{class:w.description,key:`attachment-element-description-${a}`},i):null,n.length?this._renderAttachmentList(e,s,{label:o||this.messagesCommon.details,viewAllCount:t?null:n.length}):J(`div`,{class:w.attachmentElementEmptyState,key:`attachment-element-empty-state-${a}`},this.messages.attachments.noAttachments),this._renderAttachmentAddAction(e))}_renderAttachmentListPage(){let e=this.viewModel.selectedAttachmentListInput;if(e)return J(`div`,{class:w.attachmentElementAllPanel,key:`attachment-element-all-panel-${e.template.elementId}`},this._renderAttachmentList(e,e.attachments,{filterEnabled:!0,label:this.messages.titles.attachments}))}_renderAttachmentList(e,t,n){let{filterEnabled:r,label:i,viewAllCount:a}=n;return J(`calcite-list`,{class:w.attachmentElementList,filterEnabled:r,filterPlaceholder:r?this.messages.attachments.searchAttachments:void 0,filterProps:r?ge:void 0,filterText:r?this._attachmentListFilterText:void 0,label:i,selectionAppearance:`border`,selectionMode:`none`,onCalciteListFilter:r?e=>{this._attachmentListFilterText=e.currentTarget.filterText??``}:void 0},this._renderAttachmentListItems(e,t),a==null?null:this._renderViewAllAttachmentsItem(e,a))}_renderAttachmentListItems(e,t){let{elementId:n}=e.template;return t.map((t,r)=>{let i=this._formatAttachmentSize(t.size),a=this._getAttachmentLabel(t,r,i,e.displayFilename),o=a===i?void 0:i,s=v(t),c=e.isStagedAttachmentAddition(t),l=e.getAttachmentEditState(t),u=l.isDeleted,d=!u&&(c||l.isRenamed||l.isReplaced);return J(`calcite-list-item`,{class:w.attachmentElementListItem,description:o,key:`attachment-item-${s}`,label:a,onCalciteListItemSelect:c||u?void 0:()=>this._setSelectedAttachment({attachmentKey:s,elementId:n})},J(`div`,{class:w.attachmentElementListItemStart,slot:`content-start`},this._renderAttachmentPreviewThumbnail(t,a,e)),d?J(`span`,{class:w.attachmentElementListItemStagedIndicator,slot:`content-end`}):null,c?[J(`calcite-action`,{disabled:this._disableAttachmentModification(e),icon:`x`,scale:`s`,slot:`actions-end`,text:this.messagesCommon.delete,title:this.messagesCommon.delete,onclick:()=>this.viewModel.stageDeleteAttachment(n,v(t))})]:u?J(`calcite-chip`,{label:this.messages.attachments.deleted,scale:`s`,slot:`content-end`},this.messages.attachments.deleted):J(`calcite-icon`,{flipRtl:!0,icon:`chevron-right`,scale:`s`,slot:`content-end`}))})}_renderViewAllAttachmentsItem(e,n){let{elementId:r}=e.template,{viewAll:i}=this.messages.attachments;return J(`calcite-list-item`,{class:w.attachmentElementListItem,description:t(this.messages.attachments.count,{count:n}),key:`attachment-item-view-all-${r}`,label:i,onCalciteListItemSelect:()=>this._setAttachmentListElementId(r)},J(`calcite-icon`,{flipRtl:!0,icon:`chevron-right`,scale:`s`,slot:`content-end`}))}_renderAttachmentAddAction(e){let{elementId:t}=e.template,n=this.effectiveDisabled||e.addDisabled,r=this._renderAttachmentCountLimitsLabel(e),i=this._getAttachmentNoticeMessage(e),a=e.hasMinimumAttachmentCountNotMet||e.hasExceededAttachmentLimit?`danger`:`info`,o=e.canUploadFiles,s=e.isCaptureOnly&&!this.effectiveDisabled&&!i;return J(`div`,{class:w.attachmentElementAddActions,key:`attachment-element-add-actions-${t}`},o?J(`calcite-button`,{appearance:`outline`,disabled:n,iconStart:`attachment`,kind:`neutral`,round:!0,scale:`s`,onclick:()=>this._setAttachmentAddElementId(t)},this.messages.attachments.attach):null,this._renderAttachmentCaptureButton(e),s?this._renderAttachmentCaptureDisabledNotice(t):null,r?J(`div`,{class:w.attachmentElementEmptyActionHint},r):null,!this.effectiveDisabled&&i?J(`calcite-notice`,{closable:!1,icon:a===`danger`?`exclamation-mark-circle`:`lightbulb`,kind:a,open:!0,scale:`s`,width:`full`},J(`div`,{slot:`message`},i)):null)}_renderAttachmentCaptureButton(e){if(!e.hasCaptureInputs)return null;let t=e.captureMediaType;return J(`calcite-button`,{appearance:`outline`,disabled:!0,iconStart:ye(t),kind:`neutral`,round:!0,scale:`s`},this._getCaptureButtonLabel(t))}_getAttachmentNoticeMessage(e){let t=this.messages.attachments;return e.hasUnsupportedFileTypeValidationError?this._getUnsupportedFileTypeMessage():e.hasMinimumAttachmentCountNotMet&&this._shouldShowMinimumAttachmentNotice(e)?t.minimumNotMet:e.hasExceededAttachmentLimit?t.attachmentLimitExceeded:e.hasReachedAttachmentLimit?t.attachmentLimitReached:null}_shouldShowMinimumAttachmentNotice(e){return e.hasAttachmentChanges||this.viewModel.submitHasBeenAttempted||this._touchedInputs.has(e.template.elementId)}_getCaptureButtonLabel(e){let{capture:t,recordAudio:n,takePhoto:r,takeVideo:i}=this.messages.attachments;switch(e){case`image`:return r||t;case`video`:return i||t;case`audio`:return n||t;default:return t}}_renderAttachmentAddPage(){let e=this.viewModel.selectedAttachmentAddInput;return e?this._renderAttachmentAddPanel(e):null}_renderAttachmentAddPanel(e){let{maxAttachmentCount:t}=e,{elementId:n}=e.template;if(e.isCaptureOnly)return this._renderAttachmentCaptureDisabledNotice(n);let r=t==null||t-e.attachments.length>1,i=this.effectiveDisabled||e.addDisabled,a=this.messages.attachments,o=a.dragAndDropFile,s=e=>{this._attachmentFileInputMap.set(n,e)};return J(`div`,{class:w.attachmentElementAddPanel,key:`attachment-element-add-panel-${n}`},J(`input`,{accept:e.accept,afterCreate:s,afterRemoved:()=>{this._attachmentFileInputMap.delete(n)},afterUpdate:s,class:w.attachmentElementFileInput,"data-element-id":n,disabled:i,multiple:r,type:`file`,onchange:e=>{let t=e.currentTarget,r=t.files?Array.from(t.files):[];this._stageAttachmentFiles(n,r),t.value=``}}),J(`div`,{class:w.attachmentElementAddDropzone,"data-disabled":i?`true`:`false`,ondragover:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`)},ondrop:e=>{if(e.preventDefault(),e.stopPropagation(),i)return;let t=e.dataTransfer?.files?Array.from(e.dataTransfer.files):[];this._stageAttachmentFiles(n,t)}},J(`calcite-icon`,{class:w.attachmentElementAddDropzoneIcon,icon:`upload`,scale:`l`}),J(`div`,{class:w.attachmentElementAddDropzoneHeading},a.addFile),J(`div`,{class:w.attachmentElementAddDropzoneDetail,title:o},o),J(`calcite-button`,{appearance:`transparent`,disabled:i,iconStart:`folder-open`,kind:`brand`,scale:`s`,type:`button`,onclick:e=>{e.stopPropagation(),this._openAttachmentFilePicker(n,i)}},a.selectFile)),this._renderAttachmentValidationCriteria(e,{includeCountCriteria:!0}))}_renderAttachmentCaptureDisabledNotice(e){return J(`calcite-notice`,{class:w.attachmentElementCaptureNotice,icon:!0,key:`attachment-element-capture-disabled-notice-${e}`,kind:`warning`,open:!0,scale:`s`},J(`div`,{slot:`message`},this.messages.attachments.captureMethodNotSupported))}async _stageAttachmentFiles(e,t){if(t.length===0)return;let n=this.viewModel.selectedAttachmentAddInput,r=!0;try{r=(await this.viewModel.stageAddAttachments(e,t)).length>0&&!n?.hasInvalidValidationCriteria&&!n?.hasUnsupportedFileTypeValidationError}finally{r&&this.viewModel.setSelectedAttachmentAddElementId(null)}}_openAttachmentFilePicker(e,t){t||this._attachmentFileInputMap.get(e)?.click()}_renderAttachmentDetailPage(){let e=this.selectedAttachmentDetails;if(!e)return;if(this.page===`replacing-attachment`)return this._renderAttachmentReplacePanel(e);let{attachment:t,input:n}=e,r=v(t),i=!!n.getAttachmentPreviewUrl(t),a=!this._disableAttachmentModification(n)&&n.canUploadFiles,o=n.getAttachmentEditState(t);return J(`div`,{class:w.attachmentElementDetail,key:`attachment-detail-panel-${n.template.elementId}-${r}`},J(`div`,{class:w.attachmentElementDetailPreview},this._renderAttachmentPreviewImageForInput(t,n)),J(`div`,{class:w.attachmentElementDetailActions},y(t)?J(`calcite-button`,{appearance:`outline`,disabled:!i,iconStart:`expand`,kind:`neutral`,label:this.messages.attachments.maximize,scale:`m`,title:this.messages.attachments.maximize,onclick:this._maximizeSelectedAttachment}):null,J(`calcite-button`,{appearance:`outline`,disabled:!i||o.isReplaced,iconStart:`download`,kind:`neutral`,label:this.messages.attachments.download,scale:`m`,title:this.messages.attachments.download,onclick:()=>{this._downloadAttachment(t)}}),J(`calcite-button`,{appearance:`outline`,disabled:!a,iconStart:`upload-to`,kind:`neutral`,label:this.messages.attachments.replace,scale:`m`,title:this.messages.attachments.replace,onclick:this._enterAttachmentReplaceView})),J(`div`,{class:w.attachmentElementDetailMetadata},J(`div`,{class:w.attachmentElementDetailMetadataGroup},J(`span`,{class:w.attachmentElementDetailMetadataLabel},this.messages.attachments.fileName),this._renderFileNameContent(t,n)),J(`div`,{class:w.attachmentElementDetailMetadataGroup},J(`span`,{class:w.attachmentElementDetailMetadataLabel},this.messages.attachments.size),J(`span`,{class:w.attachmentElementDetailMetadataValue},this._formatAttachmentSize(t.size))),J(`div`,{class:w.attachmentElementDetailMetadataGroup},J(`span`,{class:w.attachmentElementDetailMetadataLabel},this.messages.attachments.type),J(`span`,{class:w.attachmentElementDetailMetadataValue},this._getLabelForAttachmentType(t)))))}_renderFileNameContent(e,t){if(!t.allowUserRename)return J(`span`,{class:w.attachmentElementDetailMetadataValue},e.name);let n=t.getAttachmentEditState(e),{baseName:r,extension:i}=b(e.name),a=this._disableAttachmentModification(t),o=!a&&e.name.trim().length===0;return[J(`div`,{class:w.attachmentElementDetailFileNameRow,key:`file-name-row`},J(`calcite-input`,{class:w.attachmentElementDetailFileNameInput,disabled:a,scale:`m`,status:o?`invalid`:`idle`,suffixText:i,value:r,onCalciteInputInput:({currentTarget:e})=>this._renameSelectedAttachment(e.value)}),J(`calcite-button`,{appearance:`transparent`,disabled:a||n.initialName==null||!n.isRenamed,iconStart:`reset`,kind:`neutral`,label:this.messages.footerButtons.reset,scale:`m`,title:this.messages.footerButtons.reset,onclick:this._resetSelectedAttachmentName})),o?J(`calcite-input-message`,{icon:!0,key:`file-name-message`,status:`invalid`},this.messages.validationErrors.cannotBeNull):null]}_renderAttachmentReplacePanel(e){let{attachment:t,input:n}=e,r=this._disableAttachmentModification(n)||!n.canUploadFiles,i=n.template.elementId;return J(`div`,{class:w.attachmentElementAddPanel,key:`attachment-replace-panel-${i}-${v(t)}`},J(`input`,{accept:n.accept,afterCreate:this._setSelectedAttachmentReplaceFileInput,afterRemoved:()=>{this._selectedAttachmentReplaceFileInput=null},afterUpdate:this._setSelectedAttachmentReplaceFileInput,class:w.attachmentElementFileInput,disabled:r,type:`file`,onchange:e=>{let t=e.currentTarget,n=t.files?.[0];n&&this._stageSelectedAttachmentReplacement(n),t.value=``}}),J(`div`,{class:w.attachmentElementAddDropzone,"data-disabled":r?`true`:`false`,ondragover:e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`)},ondrop:e=>{if(e.preventDefault(),e.stopPropagation(),r)return;let t=e.dataTransfer?.files?.[0];t&&this._stageSelectedAttachmentReplacement(t)}},J(`calcite-icon`,{class:w.attachmentElementAddDropzoneIcon,icon:`refresh`,scale:`l`}),J(`div`,{class:w.attachmentElementAddDropzoneHeading},this.messages.attachments.replace),J(`div`,{class:w.attachmentElementAddDropzoneDetail,title:this.messages.attachments.dragAndDropFile},this.messages.attachments.dragAndDropFile),J(`calcite-button`,{appearance:`transparent`,disabled:r,iconStart:`folder-open`,kind:`brand`,scale:`s`,onclick:e=>{e.stopPropagation(),this._openSelectedAttachmentReplaceFilePicker()}},this.messages.attachments.selectFile)),this._renderAttachmentValidationCriteria(n,{includeCountCriteria:!1}),J(`div`,{class:w.attachmentElementDetailMetadata},J(`div`,{class:w.attachmentElementDetailMetadataGroup},J(`span`,{class:w.attachmentElementDetailMetadataLabel},this.messages.attachments.fileToBeReplaced),J(`span`,{class:w.attachmentElementDetailMetadataValue},t.name))))}_renderAttachmentDialog(){let e=this._attachmentDialogInfo;if(!e)return null;let{attachment:t,input:n}=e;return J(`calcite-dialog`,{heading:t.name||this.messagesCommon.details,key:`attachment-preview-dialog`,modal:!0,open:!0,placement:`cover`,width:`l`,onCalciteDialogClose:this._closeAttachmentDialog},J(`div`,{class:w.attachmentElementDialogPreview},this._renderAttachmentPreviewImageForInput(t,n)))}_setSelectedAttachment(e,t){this._markInputTouched(t),this.viewModel.setSelectedAttachment(e),e||this.hideAttachmentDialog()}_setAttachmentAddElementId(e){let{viewModel:t}=this;t.setSelectedAttachmentAddElementId(e),this._markInputTouched(t.selectedAttachmentAddInput),t.selectedAttachmentAddInput?.clearValidationCriteriaState(),this.hideAttachmentDialog()}_setAttachmentListElementId(e){let{viewModel:t}=this;t.setSelectedAttachmentListElementId(e),this._markInputTouched(t.selectedAttachmentListInput),this.hideAttachmentDialog()}_getAttachmentLabel(e,n,r,i){return i!==!1&&g(e.name)&&e.name.length>0?e.name:r===this.messagesCommon.notApplicable?t(this.messages.attachments.attachmentNumberedLabel,{index:n+1}):r}_renderAttachmentCountLimitsLabel(e){let t=this.messages.attachments,n=e.minAttachmentCount!=null&&e.minAttachmentCount>0?this._renderAttachmentCountLimitLabel(t.minAttachmentsShort,e.minAttachmentCount,`min`):null,r=e.maxAttachmentCount==null?null:this._renderAttachmentCountLimitLabel(t.maxAttachmentsShort,e.maxAttachmentCount,`max`);return!n&&!r?null:[n,n&&r?J(`span`,{key:`attachment-count-limits-separator`},`, `):null,r]}_renderAttachmentCountLimitLabel(e,n,r){let i=`__count__`,[a,o]=t(e,{count:i}).split(i);return J(`span`,{key:r},a,J(`span`,{class:w.attachmentElementEmptyActionHintValue},n),o)}_renderAttachmentValidationCriteria(e,{includeCountCriteria:t}){let n=this._getAttachmentValidationCriteria(e,{includeCountCriteria:t}),r=`attachment-validation-criteria-${e.template.elementId}`;return n.length===0?null:J(`div`,{class:w.attachmentElementValidationCriteria,key:r},n.map(({key:e,message:t,state:n})=>J(`calcite-notice`,{appearance:n===`danger`?`outline-fill`:`transparent`,closable:!1,icon:!0,key:e,kind:n,open:!0,scale:`s`,width:`full`},J(`div`,{slot:`message`},t))))}_getAttachmentValidationCriteria(e,{includeCountCriteria:n}){let r=[],i=e.validationCriterionStates,a=this.messages.attachments,o=this._getNestableAttachmentInputs(e.input);e.hasUnsupportedFileTypeValidationError&&r.push({key:`unsupported-file-type`,message:this._getUnsupportedFileTypeMessage(),state:`danger`});for(let e of o)e.type===`document`&&e.maxFileSize!=null&&r.push({key:`maximum-file-size`,message:t(a.maximumFileSize,{maxSize:this._formatAttachmentSizeLimitInMegabytes(e.maxFileSize)}),state:i.get(`maximum-file-size`)??`info`}),e.type===`audio`&&e.maxDuration!=null&&r.push({key:`maximum-audio-length`,message:t(a.maximumAudioLength,{maxDuration:this._formatAttachmentDurationLimit(e.maxDuration)}),state:i.get(`maximum-audio-length`)??`info`}),e.type===`video`&&e.maxDuration!=null&&r.push({key:`maximum-video-length`,message:t(a.maximumVideoLength,{maxDuration:this._formatAttachmentDurationLimit(e.maxDuration)}),state:i.get(`maximum-video-length`)??`info`}),e.type===`image`&&e.maxImageSize!=null&&r.push({key:`maximum-image-size`,message:t(a.attachmentMustBeSmallerThan,{maxSize:`${e.maxImageSize}px`}),state:i.get(`maximum-image-size`)??`info`});return n&&e.minAttachmentCount!=null&&e.minAttachmentCount>0&&r.push({key:`minimum-number-of-files`,message:t(a.minimumNumberOfFiles,{count:e.minAttachmentCount}),state:i.get(`minimum-number-of-files`)??`info`}),n&&e.maxAttachmentCount!=null&&r.push({key:`maximum-number-of-files`,message:t(a.maximumNumberOfFiles,{count:e.maxAttachmentCount}),state:i.get(`maximum-number-of-files`)??`info`}),r}_getNestableAttachmentInputs(e){return e==null?[]:e.type===`attachment`?e.inputTypes?.slice()??[]:[e]}_getUnsupportedFileTypeMessage(){return this.featureTableMessages.errorFileUnsupported}_formatAttachmentSize(e){return e==null||Number.isNaN(e)?this.messagesCommon.notApplicable:d(this.messagesUnits,e)}_formatAttachmentSizeLimitInMegabytes(e){return d(this.messagesUnits,e*1048576)}_formatAttachmentDurationLimit(e){return m(Math.round(e)*1e3,{...e>=3600?{hour:`2-digit`,hourCycle:`h23`}:{},minute:`2-digit`,second:`2-digit`,timeZone:`UTC`})}_getLabelForAttachmentType({contentType:e}){if(!e)return this.messagesCommon.notApplicable;let t=this.messages.attachments.attachmentTypes,n=te(e);return t?.[n]||e}_renderAttachmentPreviewThumbnail(e,t,n){let r=n.getAttachmentPreviewUrl(e,64);return r&&y(e)?J(`img`,{alt:t,class:w.attachmentElementListItemThumb,src:r}):J(`calcite-icon`,{class:w.attachmentElementListItemIcon,icon:_(e.contentType),scale:`s`})}_renderAttachmentPreviewImageForInput(e,t){let n=t.getAttachmentPreviewUrl(e),r=e.name||this.messagesCommon.details;return n&&y(e)?J(`img`,{alt:r,class:w.attachmentElementDetailPreviewImage,src:n,title:r}):[J(`calcite-icon`,{class:w.attachmentElementDetailPreviewIcon,icon:_(e.contentType),scale:`l`,textLabel:r,title:r}),this.messages.attachments.noPreviewAvailable]}async _downloadAttachment(e){await V(e)}_canReplaceSelectedAttachment(){return!this.effectiveDisabled&&!!this.selectedAttachmentDetails?.input.canUploadFiles}_exitAttachmentReplaceView(){this.viewModel.setShowingSelectedAttachmentReplacePage(!1),this._selectedAttachmentReplaceFileInput=null}async _stageSelectedAttachmentReplacement(e){let t=this.selectedAttachmentDetails;if(!t?.attachment)return;let n=t.input.template.elementId,r=v(t.attachment),i=!1;try{i=await this.viewModel.stageReplaceAttachment(n,r,e)}finally{i&&this._exitAttachmentReplaceView()}}_renameSelectedAttachment(e){let t=this.selectedAttachmentDetails;if(!t?.attachment)return;let n=t.input.template.elementId,r=v(t.attachment);this.viewModel.stageRenameAttachment(n,r,e)}_resetSelectedAttachmentChanges(){let e=this.selectedAttachmentDetails;e?.attachment&&this.viewModel.resetAttachmentChanges(e.input.template.elementId,v(e.attachment))}_deleteSelectedAttachment(){let e=this.selectedAttachmentDetails;if(!e?.attachment||this._disableAttachmentModification(e.input))return;let t=e.input.template.elementId,n=v(e.attachment);this.viewModel.stageDeleteAttachment(t,n),this._setSelectedAttachment(null)}_disableAttachmentModification(e){return this.disabledOrReadOnly||!e.editable}hideAttachmentDialog(){this._attachmentDialogInfo=null}_renderTextComponent(e){let{elementId:t}=e.template;return J(`div`,{class:w.textElementInput,"data-testid":`text-element-${t}`,innerHTML:e.text,key:`text-element-${t}`})}_renderUtilityNetworkAssociationsElementInput(e){if(!this._associationsEnabled)return;let{elementId:t}=e.template;return J(`div`,{class:w.utilityNetworkAssociationsElementInput,"data-testid":t,key:t},this._associationsWidgetsMap.get(e)?.render())}getCommonInputProps(e){let{template:t,valid:n,value:r,minLength:i,maxLength:a,required:o,fieldName:s,editable:c,range:{max:l,min:u}}=e,d=!c||this.readOnly,f=this.disabled||this.viewModel.updating,p=this._getErrorToDisplay(e)?`invalid`:`idle`,m=t.hint??void 0,h=!1;return r===M&&(m=this.messages.differentValuesPlaceholder,h=!0),{afterCreate:this._afterComponentCreateOrUpdate,afterUpdate:this._afterComponentCreateOrUpdate,"aria-invalid":n?`false`:`true`,class:this.classes(w.fieldInput,d?w.inputDisabled:null),status:p,maxLength:a&&a>-1?a:void 0,minLength:i&&i>-1?i:void 0,key:t.elementId,label:s,name:s,max:l??void 0,min:u??void 0,disabled:f,readOnly:d,onblur:this._onComponentBlur,required:o,placeholder:m,value:h?``:r??``,[Z]:t.elementId,[Q]:s,onfocus:this._onComponentFocus}}_onObserverChange(){this._listObserverNode&&this._listObserver.unobserve(this._listObserverNode);let e=this.viewModel.activeRelationshipInput;e&&this._listObserverNode&&e.showAllEnabled&&this._listObserver.observe(this._listObserverNode)}_onFormSubmit(e){e.preventDefault()}_handleDragAndDrop(e){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`)}_getFieldInputFromHTMLElement(e){return this.viewModel.findFieldInput(e.getAttribute(Z))}_afterRadioGroupCreateOrUpdate(e){let t=e.selectedItem,n=e.querySelector(`calcite-radio-button`),r=t||n;r&&this._afterComponentCreateOrUpdate(r)}_onComponentFocus(e){let t=e.target,n=this._getFieldInputFromHTMLElement(t);this._focusedFieldInput=n}_markInputTouched(e){e&&this._touchedInputs.add(e.template.elementId)}_isMultipleChoiceCheckbox(e,t){let n=this._getMultipleChoiceController(t);return e.tagName===`CALCITE-CHECKBOX`&&n?.input!=null}_afterComponentCreateOrUpdate(e){let t=this._getFieldInputFromHTMLElement(e),n=this._focusedFieldInput;this._attemptFocusOnNextRender&&n===t&&(this._attemptFocusOnNextRender=!1,ve(e))}_onComponentBlur(e){let t=e.target,n=this._getFieldInputFromHTMLElement(t);this._isMultipleChoiceCheckbox(t,n)||this._markInputTouched(n),this._focusedFieldInput=null}_onDynamicChoiceBlur(e,t){let n=e.currentTarget;if(this._dynamicChoiceItemSelections.delete(t))return;let r=e.relatedTarget;r instanceof Node&&n.contains(r)||(t.endInteraction(),n.inputValue=t.fieldInput.value===M?this.messages.differentValuesPlaceholder:t.inputValue,this._onComponentBlur(e))}_resetTransientFormState(){this._attemptFocusOnNextRender=!1,this._focusedFieldInput=null,this._attachmentDialogInfo=null,this._selectedAttachmentReplaceFileInput=null,this._attachmentListFilterText=``,this._attachmentFileInputMap.clear()}_parseValue(e,t,n=!1){let r=this._getMultipleChoiceController(t);if(r){let{input:t,values:i}=r;if(t&&i){let t=e;return r.getValueFromCheckboxChange({choiceValue:t.value,isChecked:t.checked,isSelectAllCheckbox:n})}}if(S(t.template,`switch`)){if(e.localName===`calcite-dropdown`&&t.domain){for(let n of t.domain.codedValues)if(n.name===e.selectedItems[0].textContent)return n.code}return e.checked?t.template.input.onValue:t.template.input.offValue}let i=e.value;return i==null||i===``?null:t.dataType===`number`?i===`-0`||i===`-0.`||i===`-0,`?i:parseFloat(i):t.field.type===`date`?parseFloat(i):i}_getMultipleChoiceController(e){return k(e.inputController)?e.inputController:null}_saveInputFromElement(e){let t=this._getFieldInputFromHTMLElement(e);if(!t)return;let n=this._parseValue(e,t);this._saveInput(t,n)}_saveInput(e,t){let{elementId:n}=e.template,r=e?.value,{viewModel:a}=this;if(S(e.template,`switch`)&&a.mode!==`single`){let t=i(this._batchSwitchInputInitialValues,e,()=>e.value);this._batchSwitchInputInitialValues.set(e,t===null?r:t)}t!==r&&(this._markInputTouched(e),!e.isSubtypeField||a.mode===`batch`||!re(a.activeLayer,r,t)?a.setValue(n,t):this._pendingSubtypeChoice||=this._handleSubtypeChoice(e,t))}async _handleSubtypeChoice(e,n){let{value:r,template:i}=e,{elementId:a}=i,{messages:o,viewModel:s,messagesCommon:c}=this,{subtypes:l,activeFeatureIndex:u}=s;if(await s.setValue(a,n),!l?.length)return;let d=l.find(e=>e.code===n),f=l.find(e=>e.code===r)?.name??`${r}`;if(!d)return;let p=Promise.withResolvers();s.pendingSubtypeChoice=p;let m=`update-fields`,h=[{label:o.subtypes.useDefaultValuesOption,value:`update-fields`},{label:o.subtypes.keepCurrentValuesOption,value:`keep-existing`}],g={context:`info`,title:o.subtypes.changeWarningTitle,message:t(o.subtypes.changeWarning,{originalType:f,newType:d.name}),radios:h,defaultRadioSelection:`update-fields`,onRadioSelection:e=>{m=e},actions:{primary:{label:c.apply,action:()=>p.resolve(m),type:`positive`},secondary:{label:c.cancel,type:`neutral`,action:()=>p.resolve(`undo`)}},cancel:()=>p.reject()};try{switch(this.showPrompt(g),await p.promise){case`update-fields`:await s.applySubtypeDefaults(d),await s.handleSubtypeChanged(u);break;case`keep-existing`:await s.handleSubtypeChanged(u);break;case`undo`:await this.viewModel.setValue(a,r)}}finally{s.pendingSubtypeChoice=null,this.clearPrompt(),this._pendingSubtypeChoice=null}}_afterDateComponentCreateOrUpdate(e){this._setDateTimeTimeZoneMap(e),this._afterComponentCreateOrUpdate(e)}_saveValueFromDateComponent(e,t){let{elementId:n}=e.template,r=e.field.type,i=this._dateComponentMap.get(`${n}`);if(!i)return;let a=e.effectiveTimeZone,o=e.value===M?void 0:e.value,s=null;r===`date-only`?s=Array.isArray(t.value)?t.value[0]:t.value:r===`time-only`?(o=G(o),s=G(t.value)):s=r===`timestamp-offset`?t.value==null?null:pe({dateComponent:i.date,timeComponent:i.time,oldValue:o,timeZoneComponent:i.timeZone,defaultTimeZone:a}):t.value==null?null:me({oldValue:o,dateComponent:i.date,timeZone:a,timeComponent:i.time?.value===M?void 0:i.time}),o!==s&&(this._markInputTouched(e),s===null||!t.value?this.viewModel.setValue(n,null):this.viewModel.setValue(n,s))}_getErrorToDisplay(e){let t=e.compositeError;return e.valid||!t?null:t===X.CONTINGENCY_VIOLATION_ERROR||t===X.CONTINGENCY_VIOLATION_WARNING?t:!this._touchedInputs.has(e.template.elementId)&&!this.viewModel.submitHasBeenAttempted?null:t}_renderViewingAssociationsPage(){return this._associationsList?.render()}_onActiveAssociationsInputChange(e){let t=this._associationsList;t&&(e?(t.associationInput=e,t.viewModel=e.viewModel):t.associationInput=null)}async _setUpAssociationsWidgets(){let e=this.viewModel.activeForm.allUtilityNetworkAssociationsElementInputs;if(this._associationsEnabled&&e.length!==0){await this._setUpUtilityNetworkAssociationList();for(let t of e)this._associationsWidgetsMap.set(t,await this._createAssociationsWidget(t))}}async _setUpUtilityNetworkAssociationList(){if(this._associationsList)return;let e=(await import(`./FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js`)).default;this._associationsList=new e({onSelectLayer:this._onSelectAssociatedLayer.bind(this),onSelectFeature:this._onEditAssociatedFeature.bind(this),onAddAssociation:this._onAddAssociation.bind(this)});let t=this.viewModel.activeAssociationsInput;t&&(this._associationsList.associationInput=t,this._associationsList.viewModel=t.viewModel)}async _createAssociationsWidget(e){return new(await(import(`./Feature/FeatureUtilityNetworkAssociations.js`))).default({viewModel:e.viewModel,onSelectAssociationType:t=>this._onSelectAssociationType(e,t)})}_destroyAssociationsWidgets(){this._associationsWidgetsMap.forEach(e=>a(e)),this._associationsWidgetsMap.clear()}_onSelectAssociationType(e,{listType:t}){this.setActiveAssociationsInput(e),this.setActiveAssociationType(t)}_onSelectAssociatedLayer({layer:e}){this.setActiveAssociationsLayer(e)}async _onEditAssociatedFeature(e){let t=this.callbacks?.editAssociatedFeature,n=this.viewModel.activeAssociationsInput;if(!t||!n?.feature)return;let{association:r,feature:i}=e;await t({parentFeature:n.feature.plainGraphic,association:r,feature:i})}_onAddAssociation(e){let t=this.callbacks?.addAssociation,n=this.viewModel.activeAssociationsInput;if(!t||!n?.feature)return;let{associationType:r,utilityNetwork:i}=e;t({feature:n.feature.plainGraphic,associationType:r,utilityNetwork:i})}_setFocusableInput(e){let t=e&&j(e)?e:this._findFocusableInput(e);this._syncGroupInputStates(),this._focusedFieldInput=t,this._attemptFocusOnNextRender=!0}_findFocusableInput(e){let t=this.viewModel.activeForm.inputs;if(!t.length)return;let n=ie(t),r;if(!e)r=0;else if(A(e)){let t=e.inputs.find(e=>e.visible);r=t?n.indexOf(t):0}else{let i;i=P(e)&&!e.group.open?e.group.inputs.filter(j)[t.length-1]:e,r=n.indexOf(i)+1}for(let e=r;e<n.length;e++){let t=n[e];if(t.visible&&j(t)){if(this.disabledOrReadOnly&&(t?.inputType===`switch`||t?.inputType===`radio-buttons`))continue;return t}}return null}_onGroupToggle(e,t){e.expanded?(t.open=!0,this._setFocusableInput(t),this.groupDisplay===`sequential`&&this.viewModel.activeForm.allGroupInputs.forEach(e=>{e!==t&&(e.open=!1)})):t.open=!1,this.scheduleRender()}_syncGroupInputStates(){if(this.groupDisplay!==`sequential`)return;let e=this.viewModel.activeForm?.allGroupInputs;if(!e.length)return;let t=e.filter(e=>e.open);t.length===0?e[0].open=!0:t.length>1&&t.slice(1).forEach(e=>e.open=!1)}};e([f()],$.prototype,`activeFeatureIndex`,null),e([f()],$.prototype,`attachmentsEnabled`,null),e([f()],$.prototype,`callbacks`,null),e([f()],$.prototype,`disabled`,null),e([f()],$.prototype,`effectiveTitle`,null),e([f()],$.prototype,`effectiveDisabled`,null),e([f()],$.prototype,`disabledOrReadOnly`,null),e([f()],$.prototype,`features`,null),e([f()],$.prototype,`footerButtonInfos`,null),e([f()],$.prototype,`map`,null),e([f()],$.prototype,`maximumFeatureCount`,null),e([f()],$.prototype,`maximumFeatureCountWithComplexForms`,null),e([f()],$.prototype,`spatialReference`,null),e([f()],$.prototype,`layerInfos`,null),e([f()],$.prototype,`timeZone`,null),e([f()],$.prototype,`headingLevel`,void 0),e([f()],$.prototype,`icon`,null),e([f(),q(`esri/t9n/common`)],$.prototype,`messagesCommon`,void 0),e([f(),q(`esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm`)],$.prototype,`messages`,void 0),e([f(),q(`esri/widgets/FeatureForm/t9n/FeatureForm`)],$.prototype,`featureFormMessages`,void 0),e([f(),q(`esri/widgets/FeatureTable/t9n/FeatureTable`)],$.prototype,`featureTableMessages`,void 0),e([f(),q(`esri/core/t9n/Units`)],$.prototype,`messagesUnits`,void 0),e([f()],$.prototype,`page`,null),e([f()],$.prototype,`readOnly`,null),e([f()],$.prototype,`showPrompt`,null),e([f()],$.prototype,`clearPrompt`,null),e([f()],$.prototype,`selectedAttachment`,null),e([f()],$.prototype,`selectedAttachmentDetails`,null),e([f()],$.prototype,`valid`,null),e([f({type:C}),_e([`attachments-change`,`value-change`,`values-change`,`submit`])],$.prototype,`viewModel`,void 0),e([f({type:D,nonNullable:!0})],$.prototype,`visibleElements`,void 0),e([f()],$.prototype,`groupDisplay`,void 0),e([f()],$.prototype,`_formHeaderVisible`,null),e([f()],$.prototype,`_associationsEnabled`,null),e([f()],$.prototype,`_associationsList`,void 0),e([f()],$.prototype,`_attemptFocusOnNextRender`,void 0),e([f()],$.prototype,`_formId`,null),e([f()],$.prototype,`_focusedFieldInput`,void 0),e([f()],$.prototype,`_pendingSubtypeChoice`,void 0),e([f()],$.prototype,`_relatedRecordsEnabled`,null),e([f()],$.prototype,`_listObserverNode`,void 0),e([f()],$.prototype,`_attachmentDialogInfo`,void 0),e([f()],$.prototype,`_attachmentListFilterText`,void 0),e([f()],$.prototype,`_prompt`,void 0),e([f()],$.prototype,`test`,null),$=e([p(`esri.widgets.BatchAttributeForm`)],$);function ye(e){switch(e){case`audio`:return _(`audio/mpeg`);case`video`:return _(`video/mp4`);case`image`:return _(`image/png`);default:return`camera`}}const be=$;export{be as default};
@@ -197,4 +197,5 @@ export default class BookmarksViewModel extends BookmarksViewModelSuperclass {
197
197
  */
198
198
  goTo(bookmark: Bookmark): Promise<any>;
199
199
  }
200
- declare const BookmarksViewModelSuperclass: typeof EventedAccessor & typeof GoTo
200
+ declare const BookmarksViewModelSuperclass: typeof EventedAccessor & typeof GoTo
201
+ export {};
@@ -365,4 +365,5 @@ export default class Bookmarks extends BookmarksSuperclass {
365
365
  */
366
366
  goTo(bookmark: Bookmark): Promise<void>;
367
367
  }
368
- declare const BookmarksSuperclass: typeof Widget & typeof IdentifiableMixin
368
+ declare const BookmarksSuperclass: typeof Widget & typeof IdentifiableMixin
369
+ export {};
@@ -9,13 +9,13 @@ import type { Action, ListItemModifier } from "../LayerList/types.js";
9
9
 
10
10
  export interface CatalogLayerListViewModelProperties extends Partial<Pick<CatalogLayerListViewModel, "catalogLayer" | "checkPublishStatusEnabled" | "listItemCreatedFunction" | "listModeDisabled" | "view">> {}
11
11
 
12
- /** @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead. */
12
+ /** @deprecated since version 5.2. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead. */
13
13
  export interface CatalogLayerListViewModelEvents extends LayerListViewModelEvents {}
14
14
 
15
15
  /**
16
16
  * Provides the logic for the [CatalogLayerList](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/) widget and [Catalog Layer List component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/).
17
17
  *
18
- * @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead.
18
+ * @deprecated since version 5.2. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead.
19
19
  * @since 4.30
20
20
  * @see [CatalogLayerList](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/) widget
21
21
  * @see [Catalog Layer List component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{deprecateUnnecessaryViewModel as n}from"../../core/deprecate.js";import{EventedAccessor as r}from"../../core/Evented.js";import i from"../../core/Logger.js";import{watch as a,initial as o,on as s}from"../../core/reactiveUtils.js";import{property as c,subclass as l}from"../../core/accessorSupport/decorators.js";import u from"../LayerList/ListItem.js";import{findLayerListMode as d}from"../LayerList/support/layerListUtils.js";const f={layerListMode:`layer-list-mode`},p=t.ofType(u);let m=class extends r{constructor(e){let{suppressDeprecationWarning:t,...r}=e??{};super(r),this.catalogItems=new p,this.checkPublishStatusEnabled=!1,this.catalogLayer=null,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.view=null,t||n(i.getLogger(this),`Catalog Layer List (Next)`,`arcgis-catalog-layer-list-next`,{version:`5.2`})}initialize(){this.addHandles([a(()=>[this.catalogLayer?.loaded,this.view?.ready],()=>this._compileList(),o),s(()=>this.catalogLayer?.dynamicGroupLayer.layers,`change`,()=>this._compileList()),a(()=>[this.listItemCreatedFunction,this.checkPublishStatusEnabled,this.listModeDisabled],()=>this._recompileList())])}destroy(){this.view=null,this._removeAllItems()}get state(){let{view:e,catalogLayer:t}=this;return e?.ready&&t?.loaded?`ready`:e&&t?`loading`:`disabled`}get totalItems(){return this.catalogItems.flatten(e=>e.children).length}triggerAction(e,t){e&&!e.disabled&&this.emit(`trigger-action`,{action:e,item:t})}_createListItem(e){let{view:t,listItemCreatedFunction:n,checkPublishStatusEnabled:r,listModeDisabled:i}=this;return new u({checkPublishStatusEnabled:r,listModeDisabled:i,layer:e,listItemCreatedFunction:n,view:t})}_removeAllItems(){this.catalogItems.destroyAll()}_getViewableLayers(e){return e?this.listModeDisabled?e:e.filter(e=>d(e)!==`hide`):void 0}_watchLayersListMode(e){this.removeHandles(f.layerListMode),e&&!this.listModeDisabled&&this.addHandles(a(()=>e.filter(e=>`listMode`in e).map(e=>e.listMode).toArray(),()=>this._compileList()),f.layerListMode)}_compileList(){let{catalogLayer:e}=this;if(!e?.loaded)return;let t=e?.dynamicGroupLayer.layers;this._watchLayersListMode(t);let n=this._getViewableLayers(t);n?.length?(this._createNewItems(n),this._removeItems(n),this._sortItems(n)):this._removeAllItems()}_createNewItems(e){let{catalogItems:t}=this;e.forEach(e=>{t.some(t=>t.layer===e)||t.add(this._createListItem(e))})}_removeItems(e){let{catalogItems:t}=this,n=[];t.forEach(t=>{t&&e?.includes(t.layer)||n.push(t)}),t.destroyMany(n)}_sortItems(e){let{catalogItems:t}=this;t.sort((t,n)=>{let r=e.indexOf(t.layer),i=e.indexOf(n.layer);return r>i?-1:+(r<i)})}_recompileList(){this._removeAllItems(),this._compileList()}};e([c({type:p})],m.prototype,`catalogItems`,void 0),e([c()],m.prototype,`checkPublishStatusEnabled`,void 0),e([c()],m.prototype,`catalogLayer`,void 0),e([c()],m.prototype,`listItemCreatedFunction`,void 0),e([c({nonNullable:!0})],m.prototype,`listModeDisabled`,void 0),e([c({readOnly:!0})],m.prototype,`state`,null),e([c()],m.prototype,`totalItems`,null),e([c()],m.prototype,`view`,void 0),m=e([l(`esri.widgets.CatalogLayerList.CatalogLayerListViewModel`)],m);export{m as default};
2
+ import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{deprecateUnnecessaryViewModel as n}from"../../core/deprecate.js";import{EventedAccessor as r}from"../../core/Evented.js";import i from"../../core/Logger.js";import{watch as a,initial as o,on as s}from"../../core/reactiveUtils.js";import{property as c,subclass as l}from"../../core/accessorSupport/decorators.js";import u from"../LayerList/ListItem.js";import{findLayerListMode as d}from"../LayerList/support/layerListUtils.js";const f={layerListMode:`layer-list-mode`},p=t.ofType(u);let m=class extends r{constructor(e){let{suppressDeprecationWarning:t,...r}=e??{};super(r),this.catalogItems=new p,this.checkPublishStatusEnabled=!1,this.catalogLayer=null,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.view=null,t||n(i.getLogger(this),`Catalog Layer List`,`arcgis-catalog-layer-list`,{version:`5.2`})}initialize(){this.addHandles([a(()=>[this.catalogLayer?.loaded,this.view?.ready],()=>this._compileList(),o),s(()=>this.catalogLayer?.dynamicGroupLayer.layers,`change`,()=>this._compileList()),a(()=>[this.listItemCreatedFunction,this.checkPublishStatusEnabled,this.listModeDisabled],()=>this._recompileList())])}destroy(){this.view=null,this._removeAllItems()}get state(){let{view:e,catalogLayer:t}=this;return e?.ready&&t?.loaded?`ready`:e&&t?`loading`:`disabled`}get totalItems(){return this.catalogItems.flatten(e=>e.children).length}triggerAction(e,t){e&&!e.disabled&&this.emit(`trigger-action`,{action:e,item:t})}_createListItem(e){let{view:t,listItemCreatedFunction:n,checkPublishStatusEnabled:r,listModeDisabled:i}=this;return new u({checkPublishStatusEnabled:r,listModeDisabled:i,layer:e,listItemCreatedFunction:n,view:t})}_removeAllItems(){this.catalogItems.destroyAll()}_getViewableLayers(e){return e?this.listModeDisabled?e:e.filter(e=>d(e)!==`hide`):void 0}_watchLayersListMode(e){this.removeHandles(f.layerListMode),e&&!this.listModeDisabled&&this.addHandles(a(()=>e.filter(e=>`listMode`in e).map(e=>e.listMode).toArray(),()=>this._compileList()),f.layerListMode)}_compileList(){let{catalogLayer:e}=this;if(!e?.loaded)return;let t=e?.dynamicGroupLayer.layers;this._watchLayersListMode(t);let n=this._getViewableLayers(t);n?.length?(this._createNewItems(n),this._removeItems(n),this._sortItems(n)):this._removeAllItems()}_createNewItems(e){let{catalogItems:t}=this;e.forEach(e=>{t.some(t=>t.layer===e)||t.add(this._createListItem(e))})}_removeItems(e){let{catalogItems:t}=this,n=[];t.forEach(t=>{t&&e?.includes(t.layer)||n.push(t)}),t.destroyMany(n)}_sortItems(e){let{catalogItems:t}=this;t.sort((t,n)=>{let r=e.indexOf(t.layer),i=e.indexOf(n.layer);return r>i?-1:+(r<i)})}_recompileList(){this._removeAllItems(),this._compileList()}};e([c({type:p})],m.prototype,`catalogItems`,void 0),e([c()],m.prototype,`checkPublishStatusEnabled`,void 0),e([c()],m.prototype,`catalogLayer`,void 0),e([c()],m.prototype,`listItemCreatedFunction`,void 0),e([c({nonNullable:!0})],m.prototype,`listModeDisabled`,void 0),e([c({readOnly:!0})],m.prototype,`state`,null),e([c()],m.prototype,`totalItems`,null),e([c()],m.prototype,`view`,void 0),m=e([l(`esri.widgets.CatalogLayerList.CatalogLayerListViewModel`)],m);export{m as default};
@@ -1,7 +1,7 @@
1
1
  import type Accessor from "../../core/Accessor.js";
2
2
 
3
3
  /**
4
- * @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead.
4
+ * @deprecated since version 5.2. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead.
5
5
  * @since 5.0
6
6
  */
7
7
  export interface CatalogLayerListVisibleElementsProperties extends Partial<Pick<CatalogLayerListVisibleElements, "closeButton" | "collapseButton" | "errors" | "filter" | "flow" | "heading" | "statusIndicators" | "temporaryLayerIndicators">> {}
@@ -10,7 +10,7 @@ export interface CatalogLayerListVisibleElementsProperties extends Partial<Pick<
10
10
  * The visible elements that are displayed within the catalog layer list.
11
11
  * This provides the ability to turn on/off individual elements of the catalog layer list.
12
12
  *
13
- * @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead.
13
+ * @deprecated since version 5.2. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead.
14
14
  * @since 5.0
15
15
  */
16
16
  export default class CatalogLayerListVisibleElements extends Accessor {
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * Types for the CatalogLayerList widget.
3
3
  *
4
- * @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead.
4
+ * @deprecated since version 5.2. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead.
5
5
  */
6
6
  import type CatalogLayerListViewModel from "./CatalogLayerListViewModel.js";
7
7
 
8
8
  /**
9
9
  * * Describes the current state of the list items in the [CatalogLayerListViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/CatalogLayerListViewModel/).
10
10
  *
11
- * @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead.
11
+ * @deprecated since version 5.2. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead.
12
12
  * @since 5.0
13
13
  */
14
14
  export type CatalogLayerListState = "ready" | "loading" | "disabled";
15
15
 
16
- /** @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead. */
16
+ /** @deprecated since version 5.2. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead. */
17
17
  export type CatalogLayerListViewModelParams = Partial<Pick<CatalogLayerListViewModel, "catalogItems" | "listItemCreatedFunction" | "view">>;
@@ -15,7 +15,7 @@ import type { ListItemProperties } from "./LayerList/ListItem.js";
15
15
  import type { ReadonlyArrayOrCollection } from "../core/Collection.js";
16
16
  import type { CatalogLayerListVisibleElementsProperties } from "./CatalogLayerList/CatalogLayerListVisibleElements.js";
17
17
 
18
- /** @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
18
+ /** @deprecated since version 5.2. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
19
19
  export interface CatalogLayerListProperties extends WidgetProperties, IdentifiableMixinProperties, Partial<Pick<CatalogLayerList, "catalogItems" | "catalogLayer" | "collapsed" | "filterPlaceholder" | "filterPredicate" | "filterText" | "headingLevel" | "listItemCreatedFunction" | "minFilterItems" | "selectionMode" | "view" | "visibilityAppearance">> {
20
20
  /**
21
21
  * Icon which represents the widget. It is typically used when the widget is controlled by another
@@ -66,7 +66,7 @@ export interface CatalogLayerListProperties extends WidgetProperties, Identifiab
66
66
  visibleElements?: CatalogLayerListVisibleElementsProperties;
67
67
  }
68
68
 
69
- /** @deprecated since version 5.0. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
69
+ /** @deprecated since version 5.0. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
70
70
  export interface CatalogLayerListEvents extends CatalogLayerListViewModelEvents {}
71
71
 
72
72
  /**
@@ -78,7 +78,7 @@ export interface CatalogLayerListEvents extends CatalogLayerListViewModelEvents
78
78
  *
79
79
  * ![CatalogLayerList](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/catalog-layer-list.avif)
80
80
  *
81
- * @deprecated since version 5.0. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
81
+ * @deprecated since version 5.0. Use the [Catalog Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
82
82
  * @since 4.30
83
83
  * @see [CatalogLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/)
84
84
  * @see [CatalogLayerListViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/CatalogLayerListViewModel/)
@@ -316,4 +316,5 @@ export default class CatalogLayerList extends CatalogLayerListSuperclass {
316
316
  */
317
317
  triggerAction(action: Action, item: ListItem): void;
318
318
  }
319
- declare const CatalogLayerListSuperclass: typeof Widget & typeof IdentifiableMixin
319
+ declare const CatalogLayerListSuperclass: typeof Widget & typeof IdentifiableMixin
320
+ export {};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../core/Collection.js";import{deprecateWidget as n}from"../core/deprecate.js";import{IdentifiableMixin as r}from"../core/Identifiable.js";import i from"../core/Logger.js";import a from"../core/ReactiveMap.js";import{on as o,initial as s,watch as c}from"../core/reactiveUtils.js";import{property as l,subclass as u}from"../core/accessorSupport/decorators.js";import d from"./Widget.js";import f from"./CatalogLayerList/CatalogLayerListViewModel.js";import p from"./CatalogLayerList/CatalogLayerListVisibleElements.js";import{css as m}from"./CatalogLayerList/css.js";import h from"./LayerList/LayerListItem.js";import g from"./LayerList/ListItem.js";import{minFilterItems as _,getItem as v,removeDestroyedListItems as y,setFilterPredicate as b}from"./LayerList/support/layerListUtils.js";import{loadCalciteComponents as x}from"./support/componentsUtils.js";import{globalCss as S}from"./support/globalCss.js";import{calciteListFilterProps as C}from"./support/listUtils.js";import{tsx as w,messageBundle as T,vmEvent as E}from"./support/widget.js";import{setFocus as D}from"./support/widgetUtils.js";var O;const k=t.ofType(g),A=`nested`;let j=O=class extends r(d){constructor(e){let{suppressDeprecationWarning:r,...o}=e??{};super(o),this._rootListEl=null,this._activeItem=null,this._tooltipReferenceMap=new a,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._layerListMap=new a,this._rootGroupUid=`operational-${this.uid}`,this._openedLayersController=null,this.catalogLayerList=null,this.catalogOptions=null,this.collapsed=!1,this.filterPlaceholder=``,this.filterPredicate=null,this.filterText=``,this.headingLevel=2,this.knowledgeGraphOptions=null,this.layerTablesEnabled=new t([`knowledge-graph`]),this.mapImageOptions=null,this.messages=null,this.messagesCommon=null,this.minFilterItems=_,this.openedLayers=new t,this.openedLayerLists=new t,this.selectedItems=new k,this.selectionMode=`none`,this.tableList=null,this.tileOptions=null,this.viewModel=new f({suppressDeprecationWarning:!0}),this.visibilityAppearance=`default`,this.visibleElements=new p,this._onTablesOpen=e=>{this.onTablesOpen?this.onTablesOpen(e):(this.openedLayers.push(e.layer),this._focusLayerFlowItem=e.layer?.uid)},this._onCatalogOpen=e=>{this.onCatalogOpen?this.onCatalogOpen(e):(this.openedLayers.push(e.layer?.parent),this._focusLayerFlowItem=e.layer?.uid)},this._onPanelOpen=()=>{this._focusPanelFlowItem=!0},this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._clearActiveItem=()=>{this._activeItem=null},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(e=>e.classList?.contains(m.item));this._activeItem=v(t)},r!==!0&&(this.announceDeprecation=()=>{n(i.getLogger(this),`Catalog Layer List`,`arcgis-catalog-layer-list-next`,{version:`5.0`})})}initialize(){this.addHandles([o(()=>this.openedLayers,`change`,()=>this._handleOpenedLayersChange(),s),o(()=>this.viewModel.catalogItems,`change`,()=>y(this.selectedItems),s),c(()=>[this.filterPredicate,this._rootListEl],()=>b(this._rootListEl,this.filterPredicate))])}loadDependencies(){return x({button:()=>import(`@esri/calcite-components/dist/components/calcite-button`),flow:()=>import(`@esri/calcite-components/dist/components/calcite-flow`),"flow-item":()=>import(`@esri/calcite-components/dist/components/calcite-flow-item`),list:()=>import(`@esri/calcite-components/dist/components/calcite-list`),notice:()=>import(`@esri/calcite-components/dist/components/calcite-notice`),tooltip:()=>import(`@esri/calcite-components/dist/components/calcite-tooltip`)})}destroy(){this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}get _filterEnabled(){return this.viewModel.totalItems>=this.minFilterItems&&this.visibleElements.filter}get _visibleItems(){return this.catalogItems?.filter(e=>!e.hidden&&(this.visibleElements.errors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,n)=>this._renderLayerFlowItem(t,n===e.length-1))}get catalogItems(){return this.viewModel.catalogItems}set catalogItems(e){this.viewModel.catalogItems=e}get catalogLayer(){return this.viewModel.catalogLayer}set catalogLayer(e){this.viewModel.catalogLayer=e}get icon(){return`catalog-dataset`}set icon(e){this._overrideIfSome(`icon`,e)}get label(){return this.messages?.widgetLabel??``}set label(e){this._overrideIfSome(`label`,e)}get listItemCreatedFunction(){return this.viewModel.listItemCreatedFunction}set listItemCreatedFunction(e){this.viewModel.listItemCreatedFunction=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}render(){let e=this.viewModel?.state,t={[S.hidden]:e===`loading`,[S.disabled]:e===`disabled`};return w(`div`,{class:this.classes(m.base,S.widget,S.panel,t)},this._renderItemTooltips(),this._renderItems())}async _createFlowList(e,t){let{_layerListMap:n}=this,r=n.get(e);if(r)return r;let i=e.type===`catalog`?this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||n.set(e,i),i}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:n}=this;this._openedLayersController?.abort();let r=new AbortController,{signal:i}=r;this._openedLayersController=r,e.forEach((n,r)=>{t.includes(r)||(n.destroy(),e.delete(r))});let a=await Promise.all(t.map(e=>this._createFlowList(e,i)));if(i.aborted)return;n.removeAll(),n.addMany(a);let o=n.at(-1);o?`catalogLayer`in o?(this._set(`catalogLayerList`,o),this._set(`tableList`,null)):(this._set(`catalogLayerList`,null),this._set(`tableList`,o)):(this._set(`catalogLayerList`,null),this._set(`tableList`,null))}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.forEach(e=>e.destroy()),this._layerListMap.clear()}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:n}=this;return e?.layer?w(`calcite-tooltip`,{key:`tooltip-${e.layer.uid}`,overlayPositioning:`fixed`,referenceElement:t.get(e.layer.uid),topLayerDisabled:this.topLayerDisabled},n.layerIncompatibleTooltip):null}_renderItemTooltipNodes(e){return e.incompatible?this._renderItemTooltip(e):e.children?.filter(e=>!e.hidden).toArray().map(e=>this._renderItemTooltipNodes(e))}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return w(`div`,{slot:`message`},this.messages.noItemsToDisplay)}_renderNoItems(){return w(`div`,{class:m.itemMessage,key:`esri-layer-list__no-items`},w(`calcite-notice`,{icon:`information`,kind:`info`,open:!0,width:`full`},this._renderNoItemsMessage()))}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return e.toArray().map(({title:n,panel:r},i)=>{let a=()=>this._handlePanelFlowItemBack(r);return w(`calcite-flow-item`,{afterCreate:this._focusPanelFlowItemNode,afterUpdate:this._focusPanelFlowItemNode,bind:this,description:n,heading:r.title,headingLevel:this.headingLevel,key:`flow-panel-${r.uid}`,selected:!t.length&&i===e.length-1,onCalciteFlowItemBack:e=>{e.preventDefault(),a()}},r.render(),w(`calcite-button`,{appearance:`transparent`,slot:`footer-start`,width:`full`,onclick:a},this.messagesCommon.back))})}_handlePanelFlowItemBack(e){e.open=!1,this._focusRootFlowItem=!0}_focusRootFlowItemNode(e){this._focusRootFlowItem&&(this._focusRootFlowItem=!1,D(e))}_focusPanelFlowItemNode(e){this._focusPanelFlowItem&&(this._focusPanelFlowItem=!1,D(e))}_renderItems(){let{visible:e,collapsed:t,_visibleItems:n,_filterEnabled:r,_rootGroupUid:i,visibleElements:{closeButton:a,collapseButton:o,heading:s,flow:c},selectionMode:l,filterText:u,filterPlaceholder:d,messages:f,openedLayers:p,_openedPanelItems:h}=this,g=[w(`calcite-flow-item`,{afterCreate:this._focusRootFlowItemNode,afterUpdate:this._focusRootFlowItemNode,bind:this,closable:a,closed:!e,collapsed:t,collapsible:o,heading:s?f.widgetLabel:void 0,headingLevel:this.headingLevel,key:`root-flow-item`,selected:!p.length&&!h.length,onCalciteFlowItemClose:()=>this.visible=!1},n?.length?null:this._renderNoItems(),w(`calcite-list`,{afterCreate:e=>{this._rootListEl=e,e.addEventListener(`focusin`,this._setActiveItem),e.addEventListener(`focusout`,this._clearActiveItem)},afterRemoved:e=>{this._rootListEl=null,e.removeEventListener(`focusin`,this._setActiveItem),e.removeEventListener(`focusout`,this._clearActiveItem)},"data-layer-type":i,displayMode:A,filterEnabled:r,filterPlaceholder:d,filterProps:C,filterText:r?u:``,group:i,key:`root-list`,label:f.widgetLabel,selectionAppearance:`border`,selectionMode:l,onCalciteListChange:e=>this._handleCalciteListChange(e),onCalciteListFilter:e=>this.filterText=e.currentTarget?.filterText??``,onmouseleave:this._clearActiveItem,onmouseover:this._setActiveItem},n.toArray().map(e=>this._renderItem(e)),r?w(`div`,{class:m.filterNoResults,slot:`filter-no-results`},w(`calcite-notice`,{kind:`info`,open:!0,width:`full`},this._renderNoItemsMessage())):null)),this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return e?c?w(`calcite-flow`,{key:`root-flow`},g):g:null}_focusLayerFlowItemNode(e){this._focusLayerFlowItem===e.dataset.layerUid&&(this._focusLayerFlowItem=null,D(e))}_renderLayerFlowItem(e,t){let{messages:n,openedLayers:r}=this,i=e.title||this.messages.untitledLayer;return w(`calcite-flow-item`,{afterCreate:this._focusLayerFlowItemNode,afterUpdate:this._focusLayerFlowItemNode,bind:this,"data-layer-uid":e.uid,description:i,heading:n[e.type===`catalog`?`catalogLayers`:`tables`],headingLevel:this.headingLevel,key:`flow-layer-list-${e.uid}`,selected:t,onCalciteFlowItemBack:e=>{e.preventDefault(),r.pop();let t=r.at(-1);t?this._focusLayerFlowItem=t.uid:this._focusRootFlowItem=!0}},this._layerListMap.get(e)?.render())}_createCatalogLayerList(e){let{headingLevel:t,catalogOptions:n,view:r,filterPlaceholder:i,listItemCreatedFunction:a,minFilterItems:o,selectionMode:s,visibilityAppearance:c,onCatalogOpen:l,onTablesOpen:u}=this;return new O({headingLevel:t,view:r,filterPlaceholder:i,listItemCreatedFunction:a,minFilterItems:o,selectionMode:s,visibilityAppearance:c,...n,catalogLayer:e,onCatalogOpen:l,onTablesOpen:u,suppressDeprecationWarning:!0})}_getTableListParams(e){switch(e.type){case`knowledge-graph`:return{...this.knowledgeGraphOptions,tables:e.tables};case`map-image`:return{...this.mapImageOptions,tables:e.subtables};case`tile`:return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{default:t}=await import(`./TableList.js`),{headingLevel:n,selectionMode:r}=this;return new t({headingLevel:n,selectionMode:r,...this._getTableListParams(e)})}_renderItem(e,t,n){return w(h,{activeItem:this._activeItem,css:m,displayMode:A,dragEnabled:!1,item:e,key:`layerListItem-${e.layer?.uid}`,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,messagesCommon:this.messagesCommon,parent:t,parentTitles:n,rootGroupUid:this._rootGroupUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,visibilityAppearance:this.visibilityAppearance,visibleElements:this.visibleElements,onAction:this._onTriggerAction,onCatalogOpen:this._onCatalogOpen,onPanelOpen:this._onPanelOpen,onTablesOpen:this._onTablesOpen,onTooltipReferenceChange:this._onTooltipReferenceChange})}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:n}=this;if(t===`none`)return;let r=e.target.selectedItems.map(e=>v(e)).filter(Boolean);n.removeAll(),n.addMany(r)}};e([l()],j.prototype,`_rootListEl`,void 0),e([l()],j.prototype,`_activeItem`,void 0),e([l()],j.prototype,`_tooltipReferenceMap`,void 0),e([l()],j.prototype,`_focusRootFlowItem`,void 0),e([l()],j.prototype,`_focusPanelFlowItem`,void 0),e([l()],j.prototype,`_focusLayerFlowItem`,void 0),e([l()],j.prototype,`_layerListMap`,void 0),e([l()],j.prototype,`_filterEnabled`,null),e([l()],j.prototype,`_visibleItems`,null),e([l()],j.prototype,`_openedPanelItems`,null),e([l()],j.prototype,`_renderedOpenLayerFlowItems`,null),e([l()],j.prototype,`catalogItems`,null),e([l()],j.prototype,`catalogLayer`,null),e([l({readOnly:!0})],j.prototype,`catalogLayerList`,void 0),e([l()],j.prototype,`catalogOptions`,void 0),e([l()],j.prototype,`collapsed`,void 0),e([l()],j.prototype,`filterPlaceholder`,void 0),e([l()],j.prototype,`filterPredicate`,void 0),e([l()],j.prototype,`filterText`,void 0),e([l()],j.prototype,`headingLevel`,void 0),e([l()],j.prototype,`icon`,null),e([l()],j.prototype,`knowledgeGraphOptions`,void 0),e([l()],j.prototype,`label`,null),e([l()],j.prototype,`layerTablesEnabled`,void 0),e([l()],j.prototype,`listItemCreatedFunction`,null),e([l()],j.prototype,`mapImageOptions`,void 0),e([l(),T(`esri/widgets/CatalogLayerList/t9n/CatalogLayerList`)],j.prototype,`messages`,void 0),e([l(),T(`esri/t9n/common`)],j.prototype,`messagesCommon`,void 0),e([l()],j.prototype,`minFilterItems`,void 0),e([l({readOnly:!0})],j.prototype,`openedLayers`,void 0),e([l({readOnly:!0})],j.prototype,`openedLayerLists`,void 0),e([l()],j.prototype,`onCatalogOpen`,void 0),e([l()],j.prototype,`onTablesOpen`,void 0),e([l({type:k})],j.prototype,`selectedItems`,void 0),e([l()],j.prototype,`selectionMode`,void 0),e([l({readOnly:!0})],j.prototype,`tableList`,void 0),e([l()],j.prototype,`tileOptions`,void 0),e([l()],j.prototype,`view`,null),e([E(`trigger-action`),l({type:f})],j.prototype,`viewModel`,void 0),e([l()],j.prototype,`visibilityAppearance`,void 0),e([l({type:p,nonNullable:!0})],j.prototype,`visibleElements`,void 0),j=O=e([u(`esri.widgets.CatalogLayerList`)],j);const M=j;export{M as default};
2
+ import{__decorate as e}from"tslib";import t from"../core/Collection.js";import{deprecateWidget as n}from"../core/deprecate.js";import{IdentifiableMixin as r}from"../core/Identifiable.js";import i from"../core/Logger.js";import a from"../core/ReactiveMap.js";import{on as o,initial as s,watch as c}from"../core/reactiveUtils.js";import{property as l,subclass as u}from"../core/accessorSupport/decorators.js";import d from"./Widget.js";import f from"./CatalogLayerList/CatalogLayerListViewModel.js";import p from"./CatalogLayerList/CatalogLayerListVisibleElements.js";import{css as m}from"./CatalogLayerList/css.js";import h from"./LayerList/LayerListItem.js";import g from"./LayerList/ListItem.js";import{minFilterItems as _,getItem as v,removeDestroyedListItems as y,setFilterPredicate as b}from"./LayerList/support/layerListUtils.js";import{loadCalciteComponents as x}from"./support/componentsUtils.js";import{globalCss as S}from"./support/globalCss.js";import{calciteListFilterProps as C}from"./support/listUtils.js";import{tsx as w,messageBundle as T,vmEvent as E}from"./support/widget.js";import{setFocus as D}from"./support/widgetUtils.js";var O;const k=t.ofType(g),A=`nested`;let j=O=class extends r(d){constructor(e){let{suppressDeprecationWarning:r,...o}=e??{};super(o),this._rootListEl=null,this._activeItem=null,this._tooltipReferenceMap=new a,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._layerListMap=new a,this._rootGroupUid=`operational-${this.uid}`,this._openedLayersController=null,this.catalogLayerList=null,this.catalogOptions=null,this.collapsed=!1,this.filterPlaceholder=``,this.filterPredicate=null,this.filterText=``,this.headingLevel=2,this.knowledgeGraphOptions=null,this.layerTablesEnabled=new t([`knowledge-graph`]),this.mapImageOptions=null,this.messages=null,this.messagesCommon=null,this.minFilterItems=_,this.openedLayers=new t,this.openedLayerLists=new t,this.selectedItems=new k,this.selectionMode=`none`,this.tableList=null,this.tileOptions=null,this.viewModel=new f({suppressDeprecationWarning:!0}),this.visibilityAppearance=`default`,this.visibleElements=new p,this._onTablesOpen=e=>{this.onTablesOpen?this.onTablesOpen(e):(this.openedLayers.push(e.layer),this._focusLayerFlowItem=e.layer?.uid)},this._onCatalogOpen=e=>{this.onCatalogOpen?this.onCatalogOpen(e):(this.openedLayers.push(e.layer?.parent),this._focusLayerFlowItem=e.layer?.uid)},this._onPanelOpen=()=>{this._focusPanelFlowItem=!0},this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._clearActiveItem=()=>{this._activeItem=null},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(e=>e.classList?.contains(m.item));this._activeItem=v(t)},r!==!0&&(this.announceDeprecation=()=>{n(i.getLogger(this),`Catalog Layer List`,`arcgis-catalog-layer-list`,{version:`5.0`})})}initialize(){this.addHandles([o(()=>this.openedLayers,`change`,()=>this._handleOpenedLayersChange(),s),o(()=>this.viewModel.catalogItems,`change`,()=>y(this.selectedItems),s),c(()=>[this.filterPredicate,this._rootListEl],()=>b(this._rootListEl,this.filterPredicate))])}loadDependencies(){return x({button:()=>import(`@esri/calcite-components/dist/components/calcite-button`),flow:()=>import(`@esri/calcite-components/dist/components/calcite-flow`),"flow-item":()=>import(`@esri/calcite-components/dist/components/calcite-flow-item`),list:()=>import(`@esri/calcite-components/dist/components/calcite-list`),notice:()=>import(`@esri/calcite-components/dist/components/calcite-notice`),tooltip:()=>import(`@esri/calcite-components/dist/components/calcite-tooltip`)})}destroy(){this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}get _filterEnabled(){return this.viewModel.totalItems>=this.minFilterItems&&this.visibleElements.filter}get _visibleItems(){return this.catalogItems?.filter(e=>!e.hidden&&(this.visibleElements.errors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,n)=>this._renderLayerFlowItem(t,n===e.length-1))}get catalogItems(){return this.viewModel.catalogItems}set catalogItems(e){this.viewModel.catalogItems=e}get catalogLayer(){return this.viewModel.catalogLayer}set catalogLayer(e){this.viewModel.catalogLayer=e}get icon(){return`catalog-dataset`}set icon(e){this._overrideIfSome(`icon`,e)}get label(){return this.messages?.widgetLabel??``}set label(e){this._overrideIfSome(`label`,e)}get listItemCreatedFunction(){return this.viewModel.listItemCreatedFunction}set listItemCreatedFunction(e){this.viewModel.listItemCreatedFunction=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}render(){let e=this.viewModel?.state,t={[S.hidden]:e===`loading`,[S.disabled]:e===`disabled`};return w(`div`,{class:this.classes(m.base,S.widget,S.panel,t)},this._renderItemTooltips(),this._renderItems())}async _createFlowList(e,t){let{_layerListMap:n}=this,r=n.get(e);if(r)return r;let i=e.type===`catalog`?this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||n.set(e,i),i}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:n}=this;this._openedLayersController?.abort();let r=new AbortController,{signal:i}=r;this._openedLayersController=r,e.forEach((n,r)=>{t.includes(r)||(n.destroy(),e.delete(r))});let a=await Promise.all(t.map(e=>this._createFlowList(e,i)));if(i.aborted)return;n.removeAll(),n.addMany(a);let o=n.at(-1);o?`catalogLayer`in o?(this._set(`catalogLayerList`,o),this._set(`tableList`,null)):(this._set(`catalogLayerList`,null),this._set(`tableList`,o)):(this._set(`catalogLayerList`,null),this._set(`tableList`,null))}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.forEach(e=>e.destroy()),this._layerListMap.clear()}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:n}=this;return e?.layer?w(`calcite-tooltip`,{key:`tooltip-${e.layer.uid}`,overlayPositioning:`fixed`,referenceElement:t.get(e.layer.uid),topLayerDisabled:this.topLayerDisabled},n.layerIncompatibleTooltip):null}_renderItemTooltipNodes(e){return e.incompatible?this._renderItemTooltip(e):e.children?.filter(e=>!e.hidden).toArray().map(e=>this._renderItemTooltipNodes(e))}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return w(`div`,{slot:`message`},this.messages.noItemsToDisplay)}_renderNoItems(){return w(`div`,{class:m.itemMessage,key:`esri-layer-list__no-items`},w(`calcite-notice`,{icon:`information`,kind:`info`,open:!0,width:`full`},this._renderNoItemsMessage()))}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return e.toArray().map(({title:n,panel:r},i)=>{let a=()=>this._handlePanelFlowItemBack(r);return w(`calcite-flow-item`,{afterCreate:this._focusPanelFlowItemNode,afterUpdate:this._focusPanelFlowItemNode,bind:this,description:n,heading:r.title,headingLevel:this.headingLevel,key:`flow-panel-${r.uid}`,selected:!t.length&&i===e.length-1,onCalciteFlowItemBack:e=>{e.preventDefault(),a()}},r.render(),w(`calcite-button`,{appearance:`transparent`,slot:`footer-start`,width:`full`,onclick:a},this.messagesCommon.back))})}_handlePanelFlowItemBack(e){e.open=!1,this._focusRootFlowItem=!0}_focusRootFlowItemNode(e){this._focusRootFlowItem&&(this._focusRootFlowItem=!1,D(e))}_focusPanelFlowItemNode(e){this._focusPanelFlowItem&&(this._focusPanelFlowItem=!1,D(e))}_renderItems(){let{visible:e,collapsed:t,_visibleItems:n,_filterEnabled:r,_rootGroupUid:i,visibleElements:{closeButton:a,collapseButton:o,heading:s,flow:c},selectionMode:l,filterText:u,filterPlaceholder:d,messages:f,openedLayers:p,_openedPanelItems:h}=this,g=[w(`calcite-flow-item`,{afterCreate:this._focusRootFlowItemNode,afterUpdate:this._focusRootFlowItemNode,bind:this,closable:a,closed:!e,collapsed:t,collapsible:o,heading:s?f.widgetLabel:void 0,headingLevel:this.headingLevel,key:`root-flow-item`,selected:!p.length&&!h.length,onCalciteFlowItemClose:()=>this.visible=!1},n?.length?null:this._renderNoItems(),w(`calcite-list`,{afterCreate:e=>{this._rootListEl=e,e.addEventListener(`focusin`,this._setActiveItem),e.addEventListener(`focusout`,this._clearActiveItem)},afterRemoved:e=>{this._rootListEl=null,e.removeEventListener(`focusin`,this._setActiveItem),e.removeEventListener(`focusout`,this._clearActiveItem)},"data-layer-type":i,displayMode:A,filterEnabled:r,filterPlaceholder:d,filterProps:C,filterText:r?u:``,group:i,key:`root-list`,label:f.widgetLabel,selectionAppearance:`border`,selectionMode:l,onCalciteListChange:e=>this._handleCalciteListChange(e),onCalciteListFilter:e=>this.filterText=e.currentTarget?.filterText??``,onmouseleave:this._clearActiveItem,onmouseover:this._setActiveItem},n.toArray().map(e=>this._renderItem(e)),r?w(`div`,{class:m.filterNoResults,slot:`filter-no-results`},w(`calcite-notice`,{kind:`info`,open:!0,width:`full`},this._renderNoItemsMessage())):null)),this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return e?c?w(`calcite-flow`,{key:`root-flow`},g):g:null}_focusLayerFlowItemNode(e){this._focusLayerFlowItem===e.dataset.layerUid&&(this._focusLayerFlowItem=null,D(e))}_renderLayerFlowItem(e,t){let{messages:n,openedLayers:r}=this,i=e.title||this.messages.untitledLayer;return w(`calcite-flow-item`,{afterCreate:this._focusLayerFlowItemNode,afterUpdate:this._focusLayerFlowItemNode,bind:this,"data-layer-uid":e.uid,description:i,heading:n[e.type===`catalog`?`catalogLayers`:`tables`],headingLevel:this.headingLevel,key:`flow-layer-list-${e.uid}`,selected:t,onCalciteFlowItemBack:e=>{e.preventDefault(),r.pop();let t=r.at(-1);t?this._focusLayerFlowItem=t.uid:this._focusRootFlowItem=!0}},this._layerListMap.get(e)?.render())}_createCatalogLayerList(e){let{headingLevel:t,catalogOptions:n,view:r,filterPlaceholder:i,listItemCreatedFunction:a,minFilterItems:o,selectionMode:s,visibilityAppearance:c,onCatalogOpen:l,onTablesOpen:u}=this;return new O({headingLevel:t,view:r,filterPlaceholder:i,listItemCreatedFunction:a,minFilterItems:o,selectionMode:s,visibilityAppearance:c,...n,catalogLayer:e,onCatalogOpen:l,onTablesOpen:u,suppressDeprecationWarning:!0})}_getTableListParams(e){switch(e.type){case`knowledge-graph`:return{...this.knowledgeGraphOptions,tables:e.tables};case`map-image`:return{...this.mapImageOptions,tables:e.subtables};case`tile`:return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{default:t}=await import(`./TableList.js`),{headingLevel:n,selectionMode:r}=this;return new t({headingLevel:n,selectionMode:r,...this._getTableListParams(e)})}_renderItem(e,t,n){return w(h,{activeItem:this._activeItem,css:m,displayMode:A,dragEnabled:!1,item:e,key:`layerListItem-${e.layer?.uid}`,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,messagesCommon:this.messagesCommon,parent:t,parentTitles:n,rootGroupUid:this._rootGroupUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,visibilityAppearance:this.visibilityAppearance,visibleElements:this.visibleElements,onAction:this._onTriggerAction,onCatalogOpen:this._onCatalogOpen,onPanelOpen:this._onPanelOpen,onTablesOpen:this._onTablesOpen,onTooltipReferenceChange:this._onTooltipReferenceChange})}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:n}=this;if(t===`none`)return;let r=e.target.selectedItems.map(e=>v(e)).filter(Boolean);n.removeAll(),n.addMany(r)}};e([l()],j.prototype,`_rootListEl`,void 0),e([l()],j.prototype,`_activeItem`,void 0),e([l()],j.prototype,`_tooltipReferenceMap`,void 0),e([l()],j.prototype,`_focusRootFlowItem`,void 0),e([l()],j.prototype,`_focusPanelFlowItem`,void 0),e([l()],j.prototype,`_focusLayerFlowItem`,void 0),e([l()],j.prototype,`_layerListMap`,void 0),e([l()],j.prototype,`_filterEnabled`,null),e([l()],j.prototype,`_visibleItems`,null),e([l()],j.prototype,`_openedPanelItems`,null),e([l()],j.prototype,`_renderedOpenLayerFlowItems`,null),e([l()],j.prototype,`catalogItems`,null),e([l()],j.prototype,`catalogLayer`,null),e([l({readOnly:!0})],j.prototype,`catalogLayerList`,void 0),e([l()],j.prototype,`catalogOptions`,void 0),e([l()],j.prototype,`collapsed`,void 0),e([l()],j.prototype,`filterPlaceholder`,void 0),e([l()],j.prototype,`filterPredicate`,void 0),e([l()],j.prototype,`filterText`,void 0),e([l()],j.prototype,`headingLevel`,void 0),e([l()],j.prototype,`icon`,null),e([l()],j.prototype,`knowledgeGraphOptions`,void 0),e([l()],j.prototype,`label`,null),e([l()],j.prototype,`layerTablesEnabled`,void 0),e([l()],j.prototype,`listItemCreatedFunction`,null),e([l()],j.prototype,`mapImageOptions`,void 0),e([l(),T(`esri/widgets/CatalogLayerList/t9n/CatalogLayerList`)],j.prototype,`messages`,void 0),e([l(),T(`esri/t9n/common`)],j.prototype,`messagesCommon`,void 0),e([l()],j.prototype,`minFilterItems`,void 0),e([l({readOnly:!0})],j.prototype,`openedLayers`,void 0),e([l({readOnly:!0})],j.prototype,`openedLayerLists`,void 0),e([l()],j.prototype,`onCatalogOpen`,void 0),e([l()],j.prototype,`onTablesOpen`,void 0),e([l({type:k})],j.prototype,`selectedItems`,void 0),e([l()],j.prototype,`selectionMode`,void 0),e([l({readOnly:!0})],j.prototype,`tableList`,void 0),e([l()],j.prototype,`tileOptions`,void 0),e([l()],j.prototype,`view`,null),e([E(`trigger-action`),l({type:f})],j.prototype,`viewModel`,void 0),e([l()],j.prototype,`visibilityAppearance`,void 0),e([l({type:p,nonNullable:!0})],j.prototype,`visibleElements`,void 0),j=O=e([u(`esri.widgets.CatalogLayerList`)],j);const M=j;export{M as default};
@@ -51,4 +51,5 @@ export default class CompassViewModel extends CompassViewModelSuperclass {
51
51
  */
52
52
  reset(): void;
53
53
  }
54
- declare const CompassViewModelSuperclass: typeof Accessor & typeof GoTo
54
+ declare const CompassViewModelSuperclass: typeof Accessor & typeof GoTo
55
+ export {};
@@ -224,4 +224,5 @@ export default class CoordinateConversionViewModel extends CoordinateConversionV
224
224
  */
225
225
  updateConversions(conversions: Conversion[], location: Point | null | undefined): Promise<Conversion[]>;
226
226
  }
227
- declare const CoordinateConversionViewModelSuperclass: typeof EventedAccessor & typeof GoTo
227
+ declare const CoordinateConversionViewModelSuperclass: typeof EventedAccessor & typeof GoTo
228
+ export {};
@@ -304,4 +304,5 @@ export default class DirectionsViewModel extends DirectionsViewModelSuperclass {
304
304
  /** Zoom so that the full route is displayed within the current map extent. */
305
305
  zoomToRoute(): void;
306
306
  }
307
- declare const DirectionsViewModelSuperclass: typeof EventedAccessor & typeof GoTo
307
+ declare const DirectionsViewModelSuperclass: typeof EventedAccessor & typeof GoTo
308
+ export {};