@arcgis/core 5.2.0-next.40 → 5.2.0-next.42

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 (634) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/02ab09285a5c4ca98066.js +1 -0
  3. package/assets/esri/core/workers/chunks/0646524250bb9fe82935.js +1 -0
  4. package/assets/esri/core/workers/chunks/0a50efb07eee36237e21.js +1 -0
  5. package/assets/esri/core/workers/chunks/0a98a13418f53082ca7a.js +1 -0
  6. package/assets/esri/core/workers/chunks/0ae0483b72f5e8d00d55.js +1 -0
  7. package/assets/esri/core/workers/chunks/0ae35b02dda9b9662560.js +1 -0
  8. package/assets/esri/core/workers/chunks/0d1224693a62a26a0e72.js +1 -0
  9. package/assets/esri/core/workers/chunks/{542d8a6c415098b9857c.js → 0da4816c11b45b4a6289.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8a39dd585742960d3ca2.js → 0dcfd82a2669df6eb5a0.js} +1 -1
  11. package/assets/esri/core/workers/chunks/0f19bc532be24ca64755.js +1 -0
  12. package/assets/esri/core/workers/chunks/0f674c625f24ac73e25a.js +1 -0
  13. package/assets/esri/core/workers/chunks/11a3aa43fb940c21f148.js +1 -0
  14. package/assets/esri/core/workers/chunks/11e00ca5ac1b004f4ecc.js +1 -0
  15. package/assets/esri/core/workers/chunks/1276df03201c1b855fee.js +1 -0
  16. package/assets/esri/core/workers/chunks/13c893e448bedc5c1cef.js +1 -0
  17. package/assets/esri/core/workers/chunks/15c2d9bec0455fc363a9.js +1 -0
  18. package/assets/esri/core/workers/chunks/15de305ac3d6433748e7.js +1 -0
  19. package/assets/esri/core/workers/chunks/18d874739ee9ffad7480.js +1 -0
  20. package/assets/esri/core/workers/chunks/1dc1bfb3425665f560e4.js +1 -0
  21. package/assets/esri/core/workers/chunks/{1cd8dff4373494b01ad4.js → 1e342d532925569daadb.js} +1 -1
  22. package/assets/esri/core/workers/chunks/1f118d85d8271ad7690b.js +1 -0
  23. package/assets/esri/core/workers/chunks/1fece9757de7c10d1e9f.js +1 -0
  24. package/assets/esri/core/workers/chunks/{a2e754df3215e8b00a8f.js → 2015f4def2ef201bdab8.js} +1 -1
  25. package/assets/esri/core/workers/chunks/23570397304969f724b3.js +1 -0
  26. package/assets/esri/core/workers/chunks/24c0b3586bb6500eda53.js +2 -0
  27. package/assets/esri/core/workers/chunks/26e7884d8639df4d994b.js +1 -0
  28. package/assets/esri/core/workers/chunks/26fdc8382e009672924e.js +1 -0
  29. package/assets/esri/core/workers/chunks/{96860b6035e0b06672dd.js → 272c8ab189217240d05f.js} +1 -1
  30. package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +1 -0
  31. package/assets/esri/core/workers/chunks/279a9a38b04a21cdfd11.js +1 -0
  32. package/assets/esri/core/workers/chunks/284e88805184334396fe.js +1 -0
  33. package/assets/esri/core/workers/chunks/28bc5e8e82f188b30eb9.js +1 -0
  34. package/assets/esri/core/workers/chunks/2a4868acd546312aa6d8.js +1 -0
  35. package/assets/esri/core/workers/chunks/2d7cfc68a38dabd8898a.js +1 -0
  36. package/assets/esri/core/workers/chunks/2da337d7fd9295f6b967.js +1 -0
  37. package/assets/esri/core/workers/chunks/2e79fb1b8445b2091cdb.js +1 -0
  38. package/assets/esri/core/workers/chunks/2f29f08cddd5add9388e.js +1 -0
  39. package/assets/esri/core/workers/chunks/30c53a7e1ad5aa52f2f3.js +1 -0
  40. package/assets/esri/core/workers/chunks/31c4db1eac8f765bb93f.js +1 -0
  41. package/assets/esri/core/workers/chunks/321dbc60f44819c2b4de.js +1 -0
  42. package/assets/esri/core/workers/chunks/32fb597aef66c444758f.js +1 -0
  43. package/assets/esri/core/workers/chunks/34fcb776e4de1d870bbd.js +30 -0
  44. package/assets/esri/core/workers/chunks/354199a41de44902de84.js +1 -0
  45. package/assets/esri/core/workers/chunks/36781219ca9ba5d7fe52.js +1 -0
  46. package/assets/esri/core/workers/chunks/36999a2e383c8eb3c398.js +1 -0
  47. package/assets/esri/core/workers/chunks/36f8a912842181e1f0aa.js +1 -0
  48. package/assets/esri/core/workers/chunks/{ed1d4ebf487c7dcd5c33.js → 37a8cfec11057947b45f.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{2b2b042a6d6949b06127.js → 381790e1f3df05c7eb68.js} +1 -1
  50. package/assets/esri/core/workers/chunks/383304d33b496c5d8baa.js +1 -0
  51. package/assets/esri/core/workers/chunks/{4e28f49d0be20ea50fd7.js → 383392c63202ac044b6c.js} +1 -1
  52. package/assets/esri/core/workers/chunks/394716bd1ecfd638d708.js +2 -0
  53. package/assets/esri/core/workers/chunks/399e23d777a043efa9f1.js +1 -0
  54. package/assets/esri/core/workers/chunks/3aacb935d632834d4154.js +1 -0
  55. package/assets/esri/core/workers/chunks/3c8e98cf23ad8ef12fcb.js +1 -0
  56. package/assets/esri/core/workers/chunks/4129b27fcd4103cdc499.js +1 -0
  57. package/assets/esri/core/workers/chunks/44e64186318728d1be51.js +1 -0
  58. package/assets/esri/core/workers/chunks/474ea8c97d101e41b3f5.js +1 -0
  59. package/assets/esri/core/workers/chunks/475c60ed8785d07911c6.js +1 -0
  60. package/assets/esri/core/workers/chunks/{c7662455252b48531da1.js → 484b3e2a220c440ccbb4.js} +1 -1
  61. package/assets/esri/core/workers/chunks/4d4710d57c72ec75cccc.js +1 -0
  62. package/assets/esri/core/workers/chunks/4e1b087453fc5e20e961.js +1 -0
  63. package/assets/esri/core/workers/chunks/4e94793aab42ebd251ca.js +1 -0
  64. package/assets/esri/core/workers/chunks/4f59357f535f30a6b5cc.js +1 -0
  65. package/assets/esri/core/workers/chunks/509cfac9e5d86a8ee449.js +1 -0
  66. package/assets/esri/core/workers/chunks/510acf2e8781be9b0dba.js +1 -0
  67. package/assets/esri/core/workers/chunks/5133083222588799493f.js +1 -0
  68. package/assets/esri/core/workers/chunks/52c4b4dabcb0d162be72.js +1 -0
  69. package/assets/esri/core/workers/chunks/{697e0ce10d77b90d4fee.js → 538fe46dfd685a490e23.js} +1 -1
  70. package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +1 -0
  71. package/assets/esri/core/workers/chunks/551d0c5432f7a08dea77.js +1 -0
  72. package/assets/esri/core/workers/chunks/55924fb0de05e727f5e3.js +1 -0
  73. package/assets/esri/core/workers/chunks/55af58b6dff52dc040fe.js +2 -0
  74. package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +1 -0
  75. package/assets/esri/core/workers/chunks/57824ecc10b25e3ad794.js +1 -0
  76. package/assets/esri/core/workers/chunks/{9ba705a6ddabca0f77b1.js → 580451761cadfe308919.js} +1 -1
  77. package/assets/esri/core/workers/chunks/590e977f8eeb379b86c8.js +1398 -0
  78. package/assets/esri/core/workers/chunks/5923ebadd4f75be2c9cc.js +1 -0
  79. package/assets/esri/core/workers/chunks/5b18696109fe84a1010a.js +2 -0
  80. package/assets/esri/core/workers/chunks/{db96a0c66578b2d1b715.js → 5b30231ae0a8f4b8435f.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{77a4f6f224d7ca4b69f4.js → 5bf4ab72b9634b06cc5d.js} +1 -1
  82. package/assets/esri/core/workers/chunks/5ce168ae45ab7e7a71d1.js +1 -0
  83. package/assets/esri/core/workers/chunks/{7b1678dcf62481469544.js → 5dc17b76c6ecc24e7b9a.js} +1 -1
  84. package/assets/esri/core/workers/chunks/5e35828216020f33e26b.js +1 -0
  85. package/assets/esri/core/workers/chunks/5f0d6c853873a7f32527.js +1 -0
  86. package/assets/esri/core/workers/chunks/5fe9eea35ddb428efd8b.js +1 -0
  87. package/assets/esri/core/workers/chunks/6010b7be978698a642d0.js +1 -0
  88. package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +1 -0
  89. package/assets/esri/core/workers/chunks/6210fb6cd31844f23964.js +1 -0
  90. package/assets/esri/core/workers/chunks/632ab11cdd4b0d9a5cc5.js +1 -0
  91. package/assets/esri/core/workers/chunks/64247e439ef3e1f712e9.js +1 -0
  92. package/assets/esri/core/workers/chunks/661a59133ae34f172174.js +1 -0
  93. package/assets/esri/core/workers/chunks/67468c50ecb1fbedda87.js +1 -0
  94. package/assets/esri/core/workers/chunks/6b0acd1a7dd74a7367e0.js +1 -0
  95. package/assets/esri/core/workers/chunks/6d247ff53421d27628ce.js +1 -0
  96. package/assets/esri/core/workers/chunks/6e45d0db97ffa4509177.js +1 -0
  97. package/assets/esri/core/workers/chunks/6f408397e2c8a2ea9805.js +1 -0
  98. package/assets/esri/core/workers/chunks/700c08dd2e734c15e621.js +1 -0
  99. package/assets/esri/core/workers/chunks/705d6b108fd121cea887.js +1 -0
  100. package/assets/esri/core/workers/chunks/71ce1009dadcae8f8094.js +1 -0
  101. package/assets/esri/core/workers/chunks/72fe7fb03c156f26a589.js +1 -0
  102. package/assets/esri/core/workers/chunks/733b2e181683d5fc7c95.js +1 -0
  103. package/assets/esri/core/workers/chunks/7684f0c771d312e05bb4.js +680 -0
  104. package/assets/esri/core/workers/chunks/79b857bb301f9c4169d6.js +1 -0
  105. package/assets/esri/core/workers/chunks/79c0a966f7d11d3c217f.js +1 -0
  106. package/assets/esri/core/workers/chunks/7a818499c1079906c2d7.js +1 -0
  107. package/assets/esri/core/workers/chunks/7ac47a9ad244100bc3b1.js +1 -0
  108. package/assets/esri/core/workers/chunks/7b862a074816c099b9ff.js +1 -0
  109. package/assets/esri/core/workers/chunks/7baa363b3b0a442a63d2.js +1 -0
  110. package/assets/esri/core/workers/chunks/7cc729b57a6a52c8ac68.js +1 -0
  111. package/assets/esri/core/workers/chunks/{4abe820bbe4f7ffccc09.js → 7df795bc4fa1d433463b.js} +1 -1
  112. package/assets/esri/core/workers/chunks/7f7a76f5fef25049fbf8.js +1 -0
  113. package/assets/esri/core/workers/chunks/7fa9dc39bf0a7a6fdc1f.js +1 -0
  114. package/assets/esri/core/workers/chunks/821176ee3be724621bb0.js +1 -0
  115. package/assets/esri/core/workers/chunks/825eb845216762a1ed2f.js +1 -0
  116. package/assets/esri/core/workers/chunks/82f4aa0533db009b11d8.js +2 -0
  117. package/assets/esri/core/workers/chunks/{2a344bca6837ca3b5c41.js.LICENSE.txt → 82f4aa0533db009b11d8.js.LICENSE.txt} +0 -6
  118. package/assets/esri/core/workers/chunks/830d1a7dee43422507ab.js +1 -0
  119. package/assets/esri/core/workers/chunks/835643f716f7058a2722.js +1 -0
  120. package/assets/esri/core/workers/chunks/84fa102a93b2144c28fb.js +1 -0
  121. package/assets/esri/core/workers/chunks/85ce7673d42526a79fd2.js +1 -0
  122. package/assets/esri/core/workers/chunks/893ffc38e1a43de5b63d.js +1 -0
  123. package/assets/esri/core/workers/chunks/{93df864c2e829f0fd5ce.js → 8a1970e68bc1e833cb7f.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{684c9b4bd9590d2db12f.js → 8a410edcdf74ba957159.js} +1 -1
  125. package/assets/esri/core/workers/chunks/8b73694d5a97638a3a61.js +1 -0
  126. package/assets/esri/core/workers/chunks/8bb20ef549ec1c86b38e.js +1 -0
  127. package/assets/esri/core/workers/chunks/{6ef3b8d67b498d655a99.js → 8c5e65982c3f9295e844.js} +1 -1
  128. package/assets/esri/core/workers/chunks/8cb2fe91d1d8f49c14f8.js +1 -0
  129. package/assets/esri/core/workers/chunks/{1961b59756933e0a82f2.js → 8dcc6c19d5b3a5ac5512.js} +1 -1
  130. package/assets/esri/core/workers/chunks/8dee03779b569f233daf.js +1 -0
  131. package/assets/esri/core/workers/chunks/8ec5e470583b75fceae1.js +1 -0
  132. package/assets/esri/core/workers/chunks/8f2fecd8a0a972d68590.js +1 -0
  133. package/assets/esri/core/workers/chunks/9073b0f0ec93d6e243b9.js +1 -0
  134. package/assets/esri/core/workers/chunks/90ace5f9b4af1beea6bf.js +1 -0
  135. package/assets/esri/core/workers/chunks/934044f2ef6ce199b399.js +1 -0
  136. package/assets/esri/core/workers/chunks/94719ac469dadc4c05dc.js +1 -0
  137. package/assets/esri/core/workers/chunks/94e9cf8e729ec36de5be.js +1 -0
  138. package/assets/esri/core/workers/chunks/96d5fed0235558c0e348.js +1 -0
  139. package/assets/esri/core/workers/chunks/98b27cf8acbfa4259758.js +1 -0
  140. package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +1 -0
  141. package/assets/esri/core/workers/chunks/99772ce7e628364434fa.js +1 -0
  142. package/assets/esri/core/workers/chunks/{b1a0eb6598309e11337f.js → 99e3aa4832ed87474ab4.js} +1 -1
  143. package/assets/esri/core/workers/chunks/9a6208ab670ad74e6f7d.js +1 -0
  144. package/assets/esri/core/workers/chunks/9a97f6cda2f36941efae.js +1 -0
  145. package/assets/esri/core/workers/chunks/9b1199104a6822ab7340.js +1 -0
  146. package/assets/esri/core/workers/chunks/9ceeae787dc7c194d60e.js +1 -0
  147. package/assets/esri/core/workers/chunks/9ebc98746b1f085b82b7.js +1 -0
  148. package/assets/esri/core/workers/chunks/9ee3741eef73f3edb18b.js +1 -0
  149. package/assets/esri/core/workers/chunks/9fb87a7dba62b527c0ba.js +1 -0
  150. package/assets/esri/core/workers/chunks/a10f63a08d976be058be.js +1 -0
  151. package/assets/esri/core/workers/chunks/a183b77854f5b42c1a86.js +1 -0
  152. package/assets/esri/core/workers/chunks/a23f4d8e7c372f5fb6d7.js +1 -0
  153. package/assets/esri/core/workers/chunks/a25f51d2d3ff6b9af7ca.js +1 -0
  154. package/assets/esri/core/workers/chunks/a27172dacdb85a774c4b.js +1 -0
  155. package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +1 -0
  156. package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +1 -0
  157. package/assets/esri/core/workers/chunks/a3c882fe7599dc0f4f27.js +1 -0
  158. package/assets/esri/core/workers/chunks/a90f7b1c6c69b6033b4c.js +1 -0
  159. package/assets/esri/core/workers/chunks/a9c641bcdef161c754bf.js +1 -0
  160. package/assets/esri/core/workers/chunks/a9d391071803b1e9e8a0.js +1 -0
  161. package/assets/esri/core/workers/chunks/aaa66a04b882b0ba2961.js +1 -0
  162. package/assets/esri/core/workers/chunks/ae50b2d5e63f62c088d2.js +1 -0
  163. package/assets/esri/core/workers/chunks/af3ac4bed43e901b59c7.js +1 -0
  164. package/assets/esri/core/workers/chunks/af97e19516dbbcfb5286.js +1 -0
  165. package/assets/esri/core/workers/chunks/aff0e7761276036e029d.js +1 -0
  166. package/assets/esri/core/workers/chunks/b23d1e10fc4161d1f3eb.js +1 -0
  167. package/assets/esri/core/workers/chunks/b32bdf5730953c2fb16b.js +1 -0
  168. package/assets/esri/core/workers/chunks/b3f1a442d6b7826e917f.js +1 -0
  169. package/assets/esri/core/workers/chunks/b4047333265a2665aef9.js +1 -0
  170. package/assets/esri/core/workers/chunks/b7170816736769d3b7b0.js +1 -0
  171. package/assets/esri/core/workers/chunks/{5c63b38160c7d063b8af.js → b780514be87a22b49b01.js} +1 -1
  172. package/assets/esri/core/workers/chunks/b792857a178da2dd77d6.js +1 -0
  173. package/assets/esri/core/workers/chunks/b819a9187426d0c146df.js +1 -0
  174. package/assets/esri/core/workers/chunks/{1d92da90fbbc3f98b201.js → b8d788e110c212a879ab.js} +1 -1
  175. package/assets/esri/core/workers/chunks/b94cd7eac5ff4a78dd5b.js +1 -0
  176. package/assets/esri/core/workers/chunks/b9d6f89f9b8e9d1bc787.js +1 -0
  177. package/assets/esri/core/workers/chunks/b9f40681af1fa00b5bbe.js +1 -0
  178. package/assets/esri/core/workers/chunks/{bc547cf814d6703cef59.js → bb95922cd4631d6f17fb.js} +1 -1
  179. package/assets/esri/core/workers/chunks/bcb5017500d144b73908.js +1 -0
  180. package/assets/esri/core/workers/chunks/bd862382f72ebd446b46.js +1 -0
  181. package/assets/esri/core/workers/chunks/bdd19dab276d20d5381a.js +1 -0
  182. package/assets/esri/core/workers/chunks/bee5e738ecf8680909c4.js +1 -0
  183. package/assets/esri/core/workers/chunks/{9be4438ce2c7180adadf.js → bf287f0e2ecb4532dc00.js} +1 -1
  184. package/assets/esri/core/workers/chunks/{5115059b012ef84407cf.js → bfb6566c27c09deb0929.js} +1 -1
  185. package/assets/esri/core/workers/chunks/c055c16379f5bb56e930.js +1 -0
  186. package/assets/esri/core/workers/chunks/c13e55b9efb0b532f7ee.js +1 -0
  187. package/assets/esri/core/workers/chunks/c1845682cc9a5aac8703.js +261 -0
  188. package/assets/esri/core/workers/chunks/c369d4266f38e9ea6592.js +1 -0
  189. package/assets/esri/core/workers/chunks/c3fae4f4522604a9c17e.js +1 -0
  190. package/assets/esri/core/workers/chunks/c4c25db769a78e677e33.js +1 -0
  191. package/assets/esri/core/workers/chunks/c50e4e8c6188e64e7d45.js +1 -0
  192. package/assets/esri/core/workers/chunks/c838cc1c786368b78598.js +1 -0
  193. package/assets/esri/core/workers/chunks/c8db0a4fb5bc982dc9fc.js +1 -0
  194. package/assets/esri/core/workers/chunks/{82adfa2dbd40e1becaf4.js → c97451f75c23be979476.js} +1 -1
  195. package/assets/esri/core/workers/chunks/ca118c42c0f609ca7912.js +1 -0
  196. package/assets/esri/core/workers/chunks/ca419858910af5505d3d.js +1 -0
  197. package/assets/esri/core/workers/chunks/cb17cd8aaf77238c0236.js +1 -0
  198. package/assets/esri/core/workers/chunks/{034dd8ee5152a12412cd.js → cba3316910ff088f4d77.js} +1 -1
  199. package/assets/esri/core/workers/chunks/cc414fd2e313d89d524d.js +1 -0
  200. package/assets/esri/core/workers/chunks/{7b8466f892a38a53c600.js → cce83896093279c70449.js} +1 -1
  201. package/assets/esri/core/workers/chunks/cda04571d7623c17ada2.js +1 -0
  202. package/assets/esri/core/workers/chunks/cea4b18e7f83c02922b1.js +1 -0
  203. package/assets/esri/core/workers/chunks/cf03d391d50a4c7aca4f.js +1 -0
  204. package/assets/esri/core/workers/chunks/d03f427442bb0c287d05.js +1 -0
  205. package/assets/esri/core/workers/chunks/d082de5dd83bd73d209b.js +1 -0
  206. package/assets/esri/core/workers/chunks/d08d3c6f21e6ba8268ca.js +1 -0
  207. package/assets/esri/core/workers/chunks/d36f17d32c654b1ac7fa.js +1 -0
  208. package/assets/esri/core/workers/chunks/d36fba71c52ea4e71546.js +1 -0
  209. package/assets/esri/core/workers/chunks/{18f980465db5a86153d1.js → d37a72111dffc4c4db70.js} +1 -1
  210. package/assets/esri/core/workers/chunks/d41ab2abcfacc87809b5.js +1 -0
  211. package/assets/esri/core/workers/chunks/d4ed094962a41d756c95.js +1 -0
  212. package/assets/esri/core/workers/chunks/d5561dff043789494845.js +1 -0
  213. package/assets/esri/core/workers/chunks/d66d58ed5d66520ab1bf.js +1 -0
  214. package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +1 -0
  215. package/assets/esri/core/workers/chunks/d847c3cb2043a983145b.js +1 -0
  216. package/assets/esri/core/workers/chunks/d849bdaf5bdfdc37531a.js +1 -0
  217. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +1 -0
  218. package/assets/esri/core/workers/chunks/{c48dfda8dcb9551606fb.js → dad39ddf0f8dfb0bef47.js} +1 -1
  219. package/assets/esri/core/workers/chunks/dadefe369f49e89a2610.js +1 -0
  220. package/assets/esri/core/workers/chunks/dccb46c7dce68528c72b.js +1 -0
  221. package/assets/esri/core/workers/chunks/ddafe402f1bc9e8285ef.js +1 -0
  222. package/assets/esri/core/workers/chunks/de9573871f64c01e9f01.js +1 -0
  223. package/assets/esri/core/workers/chunks/dedf678490572c500a19.js +30 -0
  224. package/assets/esri/core/workers/chunks/df174346a7e9b629a392.js +1 -0
  225. package/assets/esri/core/workers/chunks/df30053a10d4930924d5.js +1 -0
  226. package/assets/esri/core/workers/chunks/dfbdc72c7ea137e3841d.js +1 -0
  227. package/assets/esri/core/workers/chunks/e21b3490bfce75405e55.js +1 -0
  228. package/assets/esri/core/workers/chunks/e2c9393bec747f7876bb.js +1 -0
  229. package/assets/esri/core/workers/chunks/e3e966777f18164afcd8.js +1 -0
  230. package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +1 -0
  231. package/assets/esri/core/workers/chunks/{d0983cc19d19c19c3478.js → e4aacfc1617ccf60bd5a.js} +1 -1
  232. package/assets/esri/core/workers/chunks/{3a526e1d18490b99332f.js → e5bb7ee670a3ba5ba3fe.js} +1 -1
  233. package/assets/esri/core/workers/chunks/e5c75459de85a6dd2f14.js +1 -0
  234. package/assets/esri/core/workers/chunks/{757982a73174aa7ab0d1.js → e6b5c015205d38abe037.js} +1 -1
  235. package/assets/esri/core/workers/chunks/e798ca23f02a2dd65bd4.js +1 -0
  236. package/assets/esri/core/workers/chunks/e94f2d6037fba042dc6e.js +1 -0
  237. package/assets/esri/core/workers/chunks/e9511627418c6864148a.js +1 -0
  238. package/assets/esri/core/workers/chunks/ec1a2e68957fae48e60b.js +30 -0
  239. package/assets/esri/core/workers/chunks/ec2e0b2e31fd53b81d0a.js +1 -0
  240. package/assets/esri/core/workers/chunks/ed552941eca621a51f16.js +1 -0
  241. package/assets/esri/core/workers/chunks/ee58f4bbc0a1f7d03df0.js +1 -0
  242. package/assets/esri/core/workers/chunks/f04cb48fc73635d0572f.js +1 -0
  243. package/assets/esri/core/workers/chunks/f06f591680c9e93e69f6.js +1 -0
  244. package/assets/esri/core/workers/chunks/f1d3cf674b6bea89e122.js +1 -0
  245. package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +1 -0
  246. package/assets/esri/core/workers/chunks/{6a51499c6623ddce5f00.js → f2adf1227a795604d3b8.js} +1 -1
  247. package/assets/esri/core/workers/chunks/{57c003c6745d450558a7.js → f4aed2b6e92bd0474069.js} +1 -1
  248. package/assets/esri/core/workers/chunks/f4eda59ec1e816ecc827.js +1 -0
  249. package/assets/esri/core/workers/chunks/f5d7f69047e1b1116202.js +1 -0
  250. package/assets/esri/core/workers/chunks/f5d809d30cbb56be852d.js +1 -0
  251. package/assets/esri/core/workers/chunks/{2d92f0042facb55edcff.js → f65adaaa33d9f3b131f6.js} +1 -1
  252. package/assets/esri/core/workers/chunks/f8f0de841be17cd05c8f.js +1 -0
  253. package/assets/esri/core/workers/chunks/f9b654f801cb416e9e17.js +1 -0
  254. package/assets/esri/core/workers/chunks/fb34d6d96c8c0d53fcf6.js +1 -0
  255. package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +1 -0
  256. package/assets/esri/core/workers/chunks/fba8065a3a6fbd877e23.js +1 -0
  257. package/assets/esri/core/workers/chunks/fd47ee8598e37fea03fe.js +1 -0
  258. package/assets/esri/core/workers/chunks/fefbde2c2e527bb716ee.js +1 -0
  259. package/assets/esri/core/workers/chunks/ff089723a27859fe18d1.js +1 -0
  260. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  261. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  262. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  263. package/assets/esri/themes/base/_core.scss +0 -6
  264. package/assets/esri/themes/dark/main.css +1 -1
  265. package/assets/esri/themes/light/main.css +1 -1
  266. package/assets/esri/themes/light/view.css +1 -1
  267. package/chunks/CutFillMinMaxDepth.glsl.js +2 -0
  268. package/chunks/CutFillTotalDepth.glsl.js +2 -0
  269. package/chunks/EdgeShader.glsl.js +9 -9
  270. package/chunks/GaussianSplat.glsl.js +1 -1
  271. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  272. package/chunks/arcgis-knowledge-client-core.js +1 -1
  273. package/chunks/cameraUtilsSpherical.js +1 -1
  274. package/config.js +1 -1
  275. package/editing/geometry/coordUtils.js +1 -1
  276. package/geohash/geohashUtils.js +1 -1
  277. package/geometry/support/aaBoundingRect.js +1 -1
  278. package/geometry/support/quantizationUtils.js +1 -1
  279. package/geometry/support/sphere.js +1 -1
  280. package/interfaces.d.ts +5 -0
  281. package/intl/date.js +1 -1
  282. package/kernel.js +1 -1
  283. package/layers/AnnotationFeatureLayer.d.ts +13 -3
  284. package/layers/DimensionFeatureLayer.d.ts +10 -3
  285. package/layers/graphics/featureConversionUtils.js +1 -1
  286. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  287. package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
  288. package/layers/raster/formats/Lerc.js +1 -1
  289. package/layers/raster/formats/RasterCodec.js +1 -1
  290. package/layers/support/fieldUtils.js +1 -1
  291. package/package.json +3 -3
  292. package/support/revision.js +1 -1
  293. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  294. package/views/2d/engine/webgl/Painter.js +1 -1
  295. package/views/2d/engine/webgl/definitions.js +1 -1
  296. package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
  297. package/views/2d/engine/webgl/effects/HighlightEffect.js +1 -1
  298. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  299. package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
  300. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  301. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  302. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitBlitShader.js +2 -0
  303. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DebugOverlayShader.js +2 -0
  304. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HighlightShader.js +2 -0
  305. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/WorldExtentStencilShader.js +2 -0
  306. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  307. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  308. package/views/2d/engine/webgl/shaderGraph/techniques/utility/BitBlitTechnique.js +2 -0
  309. package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +2 -0
  310. package/views/2d/engine/webgl/shaderGraph/techniques/utility/HighlightTechnique.js +2 -0
  311. package/views/2d/engine/webgl/shaderGraph/techniques/utility/WorldExtentClipTechnique.js +2 -0
  312. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  313. package/views/2d/layers/features/FeatureContainer.js +1 -1
  314. package/views/2d/layers/support/DebugOverlay.js +1 -1
  315. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  316. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  317. package/views/3d/layers/I3SMeshView3D.js +1 -1
  318. package/views/3d/layers/SceneLayerWorker.js +1 -1
  319. package/views/3d/layers/SceneLayerWorkerHandle.js +1 -1
  320. package/views/3d/layers/i3s/I3SNode.js +1 -1
  321. package/views/3d/layers/i3s/SphereCone.js +1 -1
  322. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  323. package/views/3d/support/cameraUtilsSpherical.js +1 -1
  324. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  325. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  326. package/views/3d/terrain/OverlayRenderer.js +1 -1
  327. package/views/3d/webgl/RenderCamera.js +1 -1
  328. package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +2 -2
  329. package/views/3d/webgl-engine/core/shaderLibrary/util/emissionFilter.glsl.js +1 -1
  330. package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
  331. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  332. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  333. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  334. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  335. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  336. package/views/3d/webgl-engine/lib/CutFillComputation.js +1 -1
  337. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  338. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  339. package/views/3d/webgl-engine/lib/IntersectorInterfaces.js +1 -1
  340. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  341. package/views/3d/webgl-engine/lib/PolygonIntersections2D.js +2 -0
  342. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  343. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  344. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  345. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/AdjustProjectedPosition.glsl.js +1 -1
  346. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/DiscardNonSilhouetteEdges.glsl.js +1 -1
  347. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  348. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
  349. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/EdgeUtil.glsl.js +1 -1
  350. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/LineAmplitude.glsl.js +1 -1
  351. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/LineOffset.glsl.js +1 -1
  352. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/UnpackAttributes.glsl.js +1 -1
  353. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  354. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  355. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  356. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  357. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  358. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  359. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  360. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  361. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  362. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  363. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  364. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  365. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  366. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  367. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  368. package/views/3d/webgl-engine/materials/renderers/BufferRange.js +1 -1
  369. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  370. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  371. package/views/3d/webgl-engine/shaders/CutFillMinMaxDepth.glsl.js +2 -0
  372. package/views/3d/webgl-engine/shaders/CutFillMinMaxDepthTechnique.js +2 -0
  373. package/views/3d/webgl-engine/shaders/{CutFillDepth.glsl.js → CutFillTotalDepth.glsl.js} +1 -1
  374. package/views/3d/webgl-engine/shaders/CutFillTotalDepthTechnique.js +2 -0
  375. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +1 -1
  376. package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -1
  377. package/views/Viewport2DMixin.js +1 -1
  378. package/views/input/BrowserEventSource.js +1 -1
  379. package/views/input/InputManager.js +1 -1
  380. package/views/interactive/snapping/snappingUtils.js +1 -1
  381. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  382. package/views/webgl/VertexAttributeLayouts.js +1 -1
  383. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  384. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  385. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  386. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  387. package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
  388. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  389. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  390. package/widgets/Legend/support/relationshipRampUtils.js +1 -1
  391. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  392. package/widgets/OrientedImageryViewer/utils.js +1 -1
  393. package/widgets/Sketch.js +1 -1
  394. package/assets/esri/core/workers/chunks/02b043a3c5fa8bcb4c5b.js +0 -1
  395. package/assets/esri/core/workers/chunks/03437a8ef35c200dbf17.js +0 -1
  396. package/assets/esri/core/workers/chunks/0603cbd938ab619c706b.js +0 -1
  397. package/assets/esri/core/workers/chunks/08405116b5feb2d00101.js +0 -1
  398. package/assets/esri/core/workers/chunks/0a6e03263ab0906d8bcf.js +0 -1
  399. package/assets/esri/core/workers/chunks/0af6b87a3d77bb93b893.js +0 -1
  400. package/assets/esri/core/workers/chunks/0edd250159ec259601b3.js +0 -1
  401. package/assets/esri/core/workers/chunks/0f10d7d592c36ee2d1ea.js +0 -1
  402. package/assets/esri/core/workers/chunks/0f8fcbd0650b6a924f75.js +0 -1
  403. package/assets/esri/core/workers/chunks/0f976bfb7db98c2c0e05.js +0 -1
  404. package/assets/esri/core/workers/chunks/1040bce57ea63a6dbca4.js +0 -2
  405. package/assets/esri/core/workers/chunks/10510f76f8538c2dfb84.js +0 -1
  406. package/assets/esri/core/workers/chunks/1079914101d69a40b3eb.js +0 -1
  407. package/assets/esri/core/workers/chunks/11af659688cf963ea6cd.js +0 -1
  408. package/assets/esri/core/workers/chunks/15081b361fc42f40b865.js +0 -1
  409. package/assets/esri/core/workers/chunks/1599dc5309a4e60017ce.js +0 -261
  410. package/assets/esri/core/workers/chunks/181e98399732f425305d.js +0 -1
  411. package/assets/esri/core/workers/chunks/1837f97f720d255a1694.js +0 -1
  412. package/assets/esri/core/workers/chunks/18c4c437ded8bfbd3305.js +0 -1
  413. package/assets/esri/core/workers/chunks/18f4b2099299942aaf97.js +0 -1
  414. package/assets/esri/core/workers/chunks/1958facb000b6c16bfe4.js +0 -1
  415. package/assets/esri/core/workers/chunks/196e7515a43bd0026f49.js +0 -1
  416. package/assets/esri/core/workers/chunks/1a0903b1d2d5101977c6.js +0 -1
  417. package/assets/esri/core/workers/chunks/1aa7496a7dc95aae11ac.js +0 -1
  418. package/assets/esri/core/workers/chunks/1bd49e8d2657c72bf3f9.js +0 -1
  419. package/assets/esri/core/workers/chunks/1c263ffb7144e171a64f.js +0 -1
  420. package/assets/esri/core/workers/chunks/1d524690c4b66289bd20.js +0 -1
  421. package/assets/esri/core/workers/chunks/20fa2c3d4360afa5e136.js +0 -1
  422. package/assets/esri/core/workers/chunks/210ffc448c73a7bf63aa.js +0 -1
  423. package/assets/esri/core/workers/chunks/23f81f4a3d7a983eef23.js +0 -1
  424. package/assets/esri/core/workers/chunks/2540beb53f1443a070d7.js +0 -1
  425. package/assets/esri/core/workers/chunks/25c1f5e2561986330b80.js +0 -1
  426. package/assets/esri/core/workers/chunks/2757c4bf0280e27f3484.js +0 -1
  427. package/assets/esri/core/workers/chunks/294537e1ac43e8dfeaea.js +0 -1
  428. package/assets/esri/core/workers/chunks/29a1d0659bbc5a039864.js +0 -1
  429. package/assets/esri/core/workers/chunks/29df3f829006719b2680.js +0 -1
  430. package/assets/esri/core/workers/chunks/2a344bca6837ca3b5c41.js +0 -2
  431. package/assets/esri/core/workers/chunks/2a5dbed88bbd96cfac9f.js +0 -1
  432. package/assets/esri/core/workers/chunks/2b044c8fab2055a8818d.js +0 -1
  433. package/assets/esri/core/workers/chunks/2d956dacb26d71d1c174.js +0 -1
  434. package/assets/esri/core/workers/chunks/2da797ae5af9d2ede42d.js +0 -1
  435. package/assets/esri/core/workers/chunks/2dbcdfdf000226bfe746.js +0 -1
  436. package/assets/esri/core/workers/chunks/2e495a28494c2351837b.js +0 -1
  437. package/assets/esri/core/workers/chunks/2ef80e003b4f0393ac2e.js +0 -1
  438. package/assets/esri/core/workers/chunks/2fc3e43b64300014dddc.js +0 -1
  439. package/assets/esri/core/workers/chunks/30cf84a47ebefd180bb7.js +0 -1
  440. package/assets/esri/core/workers/chunks/314bc1b356d43bfa72a8.js +0 -1
  441. package/assets/esri/core/workers/chunks/34a024eda22d228e1fbe.js +0 -1
  442. package/assets/esri/core/workers/chunks/37e823202424c11076cb.js +0 -1
  443. package/assets/esri/core/workers/chunks/38a76bc4ef5c10ab0488.js +0 -1
  444. package/assets/esri/core/workers/chunks/390f2beee8e3f2a302e4.js +0 -1
  445. package/assets/esri/core/workers/chunks/3a76fffa2016c16d7989.js +0 -1398
  446. package/assets/esri/core/workers/chunks/3c2eb386c0165150e039.js +0 -1
  447. package/assets/esri/core/workers/chunks/3e4b379a6a197b9c4e6b.js +0 -1
  448. package/assets/esri/core/workers/chunks/3ec91474658eae87b832.js +0 -1
  449. package/assets/esri/core/workers/chunks/3eee32db0e9a5086b9a8.js +0 -1
  450. package/assets/esri/core/workers/chunks/406c7723e8db470822bf.js +0 -1
  451. package/assets/esri/core/workers/chunks/41aca863324387576cf8.js +0 -1
  452. package/assets/esri/core/workers/chunks/442424200e7475e9a08f.js +0 -1
  453. package/assets/esri/core/workers/chunks/4452fd0c59431904d533.js +0 -1
  454. package/assets/esri/core/workers/chunks/448e0596005cba9a4225.js +0 -1
  455. package/assets/esri/core/workers/chunks/4545cf12ad0824ce6b41.js +0 -1
  456. package/assets/esri/core/workers/chunks/45530a49fa1f09d1682e.js +0 -1
  457. package/assets/esri/core/workers/chunks/459e89d1b94a3b204d20.js +0 -30
  458. package/assets/esri/core/workers/chunks/45b2e58051f42ebd236e.js +0 -1
  459. package/assets/esri/core/workers/chunks/4611cf051c3c396fdf96.js +0 -1
  460. package/assets/esri/core/workers/chunks/46e3d33e44e5398221e2.js +0 -1
  461. package/assets/esri/core/workers/chunks/47656ec12401e53f4bd3.js +0 -1
  462. package/assets/esri/core/workers/chunks/47948c72bc01bd173c20.js +0 -2
  463. package/assets/esri/core/workers/chunks/48f1c3a7c9f16d6896f6.js +0 -1
  464. package/assets/esri/core/workers/chunks/49713dfa4c8b788079d1.js +0 -1
  465. package/assets/esri/core/workers/chunks/4a8201e09bc3ad5cc00b.js +0 -1
  466. package/assets/esri/core/workers/chunks/4ad86d6b1be07c97b6f6.js +0 -1
  467. package/assets/esri/core/workers/chunks/4be0c64bbf2449d57ea5.js +0 -1
  468. package/assets/esri/core/workers/chunks/4d57c771af4137f74bfb.js +0 -1
  469. package/assets/esri/core/workers/chunks/4f25aac84d9eb10cac83.js +0 -1
  470. package/assets/esri/core/workers/chunks/50b34e246f8eef2f6e07.js +0 -1
  471. package/assets/esri/core/workers/chunks/514ab968c0d75062e6ab.js +0 -1
  472. package/assets/esri/core/workers/chunks/51838d55d8ec4ce70398.js +0 -1
  473. package/assets/esri/core/workers/chunks/557300ec03bae84d8afc.js +0 -1
  474. package/assets/esri/core/workers/chunks/57abf838fcff0f0e2c5e.js +0 -1
  475. package/assets/esri/core/workers/chunks/57dd017fed2943d24e3d.js +0 -1
  476. package/assets/esri/core/workers/chunks/59801b2ccaaf4b394e02.js +0 -1
  477. package/assets/esri/core/workers/chunks/5a2d2dcdfa8d958f277d.js +0 -1
  478. package/assets/esri/core/workers/chunks/5a62c9f64db4fcae5e52.js +0 -1
  479. package/assets/esri/core/workers/chunks/5aebecb5c2b3e7887127.js +0 -1
  480. package/assets/esri/core/workers/chunks/5e68b74fd548c7cdba36.js +0 -1
  481. package/assets/esri/core/workers/chunks/5f360492560ae07083a6.js +0 -1
  482. package/assets/esri/core/workers/chunks/6022f43ebd58e21c737a.js +0 -1
  483. package/assets/esri/core/workers/chunks/6048c89fc4dcd2e9988d.js +0 -1
  484. package/assets/esri/core/workers/chunks/61efc7f5fab1c2b1f764.js +0 -1
  485. package/assets/esri/core/workers/chunks/62b137a795e487fa06a1.js +0 -1
  486. package/assets/esri/core/workers/chunks/632de34ebd2f44b4423d.js +0 -1
  487. package/assets/esri/core/workers/chunks/63ca17f569407c89bde1.js +0 -30
  488. package/assets/esri/core/workers/chunks/643c7506f8fe8e06acd2.js +0 -1
  489. package/assets/esri/core/workers/chunks/6596b12bb286a0b45a68.js +0 -1
  490. package/assets/esri/core/workers/chunks/65cc9a48ac95523f7aa8.js +0 -1
  491. package/assets/esri/core/workers/chunks/661f50cb97604453f942.js +0 -1
  492. package/assets/esri/core/workers/chunks/686c1a1b794ebe1a0341.js +0 -1
  493. package/assets/esri/core/workers/chunks/6896a6dd36fa91a27151.js +0 -1
  494. package/assets/esri/core/workers/chunks/68bc674affe2f7269c40.js +0 -1
  495. package/assets/esri/core/workers/chunks/6c02493a1c1deff49c7e.js +0 -1
  496. package/assets/esri/core/workers/chunks/6cdf1db30793133294dd.js +0 -1
  497. package/assets/esri/core/workers/chunks/6ff6783f89ecd3a5e752.js +0 -1
  498. package/assets/esri/core/workers/chunks/70763c7b68d8abe8d5fe.js +0 -1
  499. package/assets/esri/core/workers/chunks/716b1f073e3cd807abd3.js +0 -1
  500. package/assets/esri/core/workers/chunks/71a3f05cb86ae2920f8d.js +0 -1
  501. package/assets/esri/core/workers/chunks/71b672259bac2befd9c7.js +0 -1
  502. package/assets/esri/core/workers/chunks/71c996e1ae84d9daddf2.js +0 -1
  503. package/assets/esri/core/workers/chunks/723bb56de2324b41df4e.js +0 -1
  504. package/assets/esri/core/workers/chunks/73f61107cb7e6d30bf03.js +0 -1
  505. package/assets/esri/core/workers/chunks/752c34cee981862add89.js +0 -1
  506. package/assets/esri/core/workers/chunks/75915f81caaf9e5345a9.js +0 -1
  507. package/assets/esri/core/workers/chunks/75baf6dff6e7658b17b3.js +0 -1
  508. package/assets/esri/core/workers/chunks/760dfd585b6c2c1937ce.js +0 -1
  509. package/assets/esri/core/workers/chunks/76449e50222111ba0eb1.js +0 -1
  510. package/assets/esri/core/workers/chunks/76789f46b2c65d219cf9.js +0 -1
  511. package/assets/esri/core/workers/chunks/76bed5497f42f23a27ed.js +0 -1
  512. package/assets/esri/core/workers/chunks/7849cf0352c0a604e164.js +0 -1
  513. package/assets/esri/core/workers/chunks/7908aed639521cf572e8.js +0 -1
  514. package/assets/esri/core/workers/chunks/7d65a8ec5e1f871b9321.js +0 -1
  515. package/assets/esri/core/workers/chunks/7e4093f42795ba2f8cfd.js +0 -1
  516. package/assets/esri/core/workers/chunks/7f849c8255140be6097f.js +0 -1
  517. package/assets/esri/core/workers/chunks/804c31973f7d116523cb.js +0 -1
  518. package/assets/esri/core/workers/chunks/81726d997a2d34449bb2.js +0 -1
  519. package/assets/esri/core/workers/chunks/81883bca8a79ee2ddb00.js +0 -1
  520. package/assets/esri/core/workers/chunks/832ecc1f7d45774c4726.js +0 -1
  521. package/assets/esri/core/workers/chunks/8461f50e9875db4ccfec.js +0 -1
  522. package/assets/esri/core/workers/chunks/8598997340682113a2a5.js +0 -1
  523. package/assets/esri/core/workers/chunks/860a0f9d20f53db1caf4.js +0 -1
  524. package/assets/esri/core/workers/chunks/867e39bb444947c93586.js +0 -1
  525. package/assets/esri/core/workers/chunks/88ec63501fa2f6fdadca.js +0 -1
  526. package/assets/esri/core/workers/chunks/8980767c5b626e4dc3b9.js +0 -1
  527. package/assets/esri/core/workers/chunks/89dd1b1acb0d69264c93.js +0 -1
  528. package/assets/esri/core/workers/chunks/8a66a3e8391206f7d8aa.js +0 -1
  529. package/assets/esri/core/workers/chunks/8a8b7ac6693bdfbebf07.js +0 -1
  530. package/assets/esri/core/workers/chunks/8ad5e80e911419c1685a.js +0 -1
  531. package/assets/esri/core/workers/chunks/8b526ca2dd6fc6a7e921.js +0 -1
  532. package/assets/esri/core/workers/chunks/8e80441eddef1b5be8b9.js +0 -1
  533. package/assets/esri/core/workers/chunks/8f16a358ed83d2264415.js +0 -1
  534. package/assets/esri/core/workers/chunks/8fce15ce4cfdccf407f3.js +0 -1
  535. package/assets/esri/core/workers/chunks/8fd63cb38036f331a803.js +0 -1
  536. package/assets/esri/core/workers/chunks/91c5205d1274c7f190d5.js +0 -1
  537. package/assets/esri/core/workers/chunks/92341f36a8b15f34bcca.js +0 -1
  538. package/assets/esri/core/workers/chunks/937cf55b3b9d324eea73.js +0 -1
  539. package/assets/esri/core/workers/chunks/93d4bda22bde33fafa57.js +0 -1
  540. package/assets/esri/core/workers/chunks/9639b1dd27ccc17ee21e.js +0 -1
  541. package/assets/esri/core/workers/chunks/966d002acec8c72be56a.js +0 -1
  542. package/assets/esri/core/workers/chunks/986d8c3907aeeb18c4f6.js +0 -1
  543. package/assets/esri/core/workers/chunks/98e489c2b85feded7776.js +0 -1
  544. package/assets/esri/core/workers/chunks/9aef0b87f471626abd66.js +0 -1
  545. package/assets/esri/core/workers/chunks/9ba9a3705623679bc305.js +0 -1
  546. package/assets/esri/core/workers/chunks/a188d0767825d322f96d.js +0 -1
  547. package/assets/esri/core/workers/chunks/a4d3cbc02dc1186a9a6d.js +0 -1
  548. package/assets/esri/core/workers/chunks/a638de0102c3990403d1.js +0 -1
  549. package/assets/esri/core/workers/chunks/a6bda5f17fb1c03f7e4b.js +0 -1
  550. package/assets/esri/core/workers/chunks/a6dc01847f39413f78b8.js +0 -1
  551. package/assets/esri/core/workers/chunks/acc733b4881c3e4e503e.js +0 -1
  552. package/assets/esri/core/workers/chunks/b022debf9e0bc2bff0e2.js +0 -1
  553. package/assets/esri/core/workers/chunks/b09935d0105d50a0971b.js +0 -1
  554. package/assets/esri/core/workers/chunks/b12fc1b5a9da97346684.js +0 -1
  555. package/assets/esri/core/workers/chunks/b4323e69e624c6b51754.js +0 -1
  556. package/assets/esri/core/workers/chunks/b45e91249a8ea1559a2b.js +0 -1
  557. package/assets/esri/core/workers/chunks/b50a42a9f96515beb929.js +0 -1
  558. package/assets/esri/core/workers/chunks/b5141f240ca79729686d.js +0 -1
  559. package/assets/esri/core/workers/chunks/b549a4d4b1a34bee8beb.js +0 -1
  560. package/assets/esri/core/workers/chunks/bb89b6fd93513c61b2d3.js +0 -1
  561. package/assets/esri/core/workers/chunks/bc553ecc8cbcc1b02717.js +0 -1
  562. package/assets/esri/core/workers/chunks/bcba02f61cf0abcb5600.js +0 -1
  563. package/assets/esri/core/workers/chunks/bccc199af4e2e49f7acd.js +0 -1
  564. package/assets/esri/core/workers/chunks/bd0f488e228a75fbefb3.js +0 -30
  565. package/assets/esri/core/workers/chunks/bd155794e9bc16dd0474.js +0 -1
  566. package/assets/esri/core/workers/chunks/bf6ae205fbfbfcd1a0ee.js +0 -1
  567. package/assets/esri/core/workers/chunks/c148ad0ea9258046ac1f.js +0 -1
  568. package/assets/esri/core/workers/chunks/c228b058dd91bf0e1102.js +0 -1
  569. package/assets/esri/core/workers/chunks/c4e44fde4bc4ff89e2bc.js +0 -1
  570. package/assets/esri/core/workers/chunks/c4fc85281ca83af7abaf.js +0 -1
  571. package/assets/esri/core/workers/chunks/c610ccbfdb1c5b06c217.js +0 -1
  572. package/assets/esri/core/workers/chunks/c660a5a1086870a3a6b9.js +0 -1
  573. package/assets/esri/core/workers/chunks/c8b7ffc5cb3f1493129e.js +0 -1
  574. package/assets/esri/core/workers/chunks/c9057b0ad2c2bae4a8ce.js +0 -1
  575. package/assets/esri/core/workers/chunks/c93a68618674b38b932e.js +0 -1
  576. package/assets/esri/core/workers/chunks/c961aff385e38b081204.js +0 -1
  577. package/assets/esri/core/workers/chunks/cc0efa716b8414a44398.js +0 -1
  578. package/assets/esri/core/workers/chunks/cd66bd30f654fe571e57.js +0 -1
  579. package/assets/esri/core/workers/chunks/cd88e6f02bc2e5b67abf.js +0 -1
  580. package/assets/esri/core/workers/chunks/cf826787ab8d4b27ad80.js +0 -1
  581. package/assets/esri/core/workers/chunks/cfbbfa5edffa57bd3a8e.js +0 -1
  582. package/assets/esri/core/workers/chunks/d0217187aed8bb7038f4.js +0 -1
  583. package/assets/esri/core/workers/chunks/d1928a8c86a8966e5582.js +0 -1
  584. package/assets/esri/core/workers/chunks/d2745886ba5a86fd5c4c.js +0 -680
  585. package/assets/esri/core/workers/chunks/d4c341b15d9244276fb9.js +0 -1
  586. package/assets/esri/core/workers/chunks/d5faab9799891e5da5a8.js +0 -1
  587. package/assets/esri/core/workers/chunks/d811924acc9c0be95bba.js +0 -1
  588. package/assets/esri/core/workers/chunks/db90fb8ac96579259566.js +0 -1
  589. package/assets/esri/core/workers/chunks/dd0acd0f8b96839b4f24.js +0 -2
  590. package/assets/esri/core/workers/chunks/dd785e595cd08b2d6284.js +0 -1
  591. package/assets/esri/core/workers/chunks/e0b47b08ae2c36c76fa2.js +0 -1
  592. package/assets/esri/core/workers/chunks/e1ddb8e4977b317fd40c.js +0 -1
  593. package/assets/esri/core/workers/chunks/e4015870412edd69453c.js +0 -1
  594. package/assets/esri/core/workers/chunks/e7cb1b72f0b54e845741.js +0 -1
  595. package/assets/esri/core/workers/chunks/e7e7c7cbfd8542bd7a46.js +0 -1
  596. package/assets/esri/core/workers/chunks/e80376832050a4b6d28a.js +0 -1
  597. package/assets/esri/core/workers/chunks/e8a885b576da3ec145d3.js +0 -1
  598. package/assets/esri/core/workers/chunks/e95ee94027c1934086d8.js +0 -1
  599. package/assets/esri/core/workers/chunks/e961c6140c39921816a8.js +0 -1
  600. package/assets/esri/core/workers/chunks/eb7daa0f6610983ff8db.js +0 -1
  601. package/assets/esri/core/workers/chunks/eb842cf470ce28a73187.js +0 -1
  602. package/assets/esri/core/workers/chunks/eeea5710275c967e8d51.js +0 -1
  603. package/assets/esri/core/workers/chunks/ef32e454012f3b0e3f77.js +0 -1
  604. package/assets/esri/core/workers/chunks/f31a8e76f1dde23c0900.js +0 -1
  605. package/assets/esri/core/workers/chunks/f50bba74ae72c07e131a.js +0 -1
  606. package/assets/esri/core/workers/chunks/f58ddf37dee066a5c0d8.js +0 -1
  607. package/assets/esri/core/workers/chunks/f80cadcc2a588da63b38.js +0 -1
  608. package/assets/esri/core/workers/chunks/f83e3ad67b60744afd6d.js +0 -1
  609. package/assets/esri/core/workers/chunks/f859c53432f258af77e3.js +0 -2
  610. package/assets/esri/core/workers/chunks/f8bbb52b865a0a242140.js +0 -1
  611. package/assets/esri/core/workers/chunks/f8f3579d0c1b65762902.js +0 -1
  612. package/assets/esri/core/workers/chunks/f9592bcdd9988199a7ea.js +0 -1
  613. package/assets/esri/core/workers/chunks/fedbeb488d5d7c07c7dc.js +0 -1
  614. package/assets/esri/core/workers/chunks/ff7e1eb2366d4301d288.js +0 -1
  615. package/assets/esri/themes/base/_colorVariables.scss +0 -1
  616. package/assets/esri/themes/base/widgets/_DatePicker.scss +0 -170
  617. package/assets/esri/themes/base/widgets/_FeatureUtilityNetworkAssociationList.scss +0 -13
  618. package/assets/esri/themes/base/widgets/_TimePicker.scss +0 -15
  619. package/chunks/CutFillDepth.glsl.js +0 -2
  620. package/core/PLRUCache.js +0 -2
  621. package/views/2d/engine/webgl/BitBlitRenderer.js +0 -2
  622. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +0 -2
  623. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +0 -2
  624. package/views/2d/engine/webgl/shaders/BitBlitPrograms.js +0 -2
  625. package/views/2d/engine/webgl/shaders/HighlightPrograms.js +0 -2
  626. package/views/2d/engine/webgl/shaders/StencilPrograms.js +0 -2
  627. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +0 -2
  628. package/views/3d/webgl-engine/shaders/CutFillDepthTechniqueConfiguration.js +0 -2
  629. package/views/support/euclideanAreaMeasurementUtils.js +0 -2
  630. package/widgets/ShadowCast/ShadowVisualizationType.js +0 -2
  631. /package/assets/esri/core/workers/chunks/{47948c72bc01bd173c20.js.LICENSE.txt → 24c0b3586bb6500eda53.js.LICENSE.txt} +0 -0
  632. /package/assets/esri/core/workers/chunks/{f859c53432f258af77e3.js.LICENSE.txt → 394716bd1ecfd638d708.js.LICENSE.txt} +0 -0
  633. /package/assets/esri/core/workers/chunks/{1040bce57ea63a6dbca4.js.LICENSE.txt → 55af58b6dff52dc040fe.js.LICENSE.txt} +0 -0
  634. /package/assets/esri/core/workers/chunks/{dd0acd0f8b96839b4f24.js.LICENSE.txt → 5b18696109fe84a1010a.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{onLocaleChange as t,substitute as i,fetchMessageBundle as s}from"../../intl.js";import{isSome as n}from"../../core/arrayUtils.js";import l from"../../core/Collection.js";import{referenceSetter as r}from"../../core/collectionUtils.js";import o from"../../core/Error.js";import a from"../../core/Logger.js";import{debounce as d,ignoreAbortErrors as h}from"../../core/promiseUtils.js";import{watch as m,initial as c,on as p,syncAndInitial as u}from"../../core/reactiveUtils.js";import{throttle as g}from"../../core/throttle.js";import{property as b,subclass as f}from"../../core/accessorSupport/decorators.js";import{getEffectiveFieldAlias as y}from"../../editing/fieldUtils.js";import{geometryTypes as T}from"../../geometry/support/typeUtils.js";import{getLowerCaseDefaultHiddenFields as w}from"../../layers/support/fieldUtils.js";import{getSubtypesFromLayer as C,isSubtypeGroupLayer as I}from"../../layers/support/layerUtils.js";import{createFieldInfos as v}from"../../support/popupUtils.js";import _ from"../../tables/AttributeTableTemplate.js";import{syncAttributeTableTemplateWithColumns as E}from"../../tables/support/templateUtils.js";import S from"../../time/TimeExtent.js";import{isSelectableLayerWithObjectIds as A}from"../../views/support/selectionUtils.js";import F from"./ActionColumn.js";import j from"./AttachmentsColumn.js";import x from"./FieldColumn.js";import R from"./RelationshipColumn.js";import O from"./Grid/Column.js";import U from"./Grid/Grid.js";import P from"./Grid/GridViewModel.js";import V from"./Grid/GroupColumn.js";import z from"./support/AttachmentsColumnTemplate.js";import W from"./support/AttachmentsViewOptions.js";import{isAttachmentsColumn as B,isFieldColumn as L,isRelationshipColumn as G}from"./support/columnUtils.js";import{downloadAttachmentInfo as M,exportToCSV as N}from"./support/exportUtils.js";import k from"./support/FeatureStore.js";import D from"./support/FieldColumnTemplate.js";import H from"./support/RelationshipColumnTemplate.js";import $ from"./support/TableTemplate.js";import{isIFeatureTableSupportedLayerWithFieldConfigurations as Z,isIFeatureTableSupportedLayerWithRelationships as q,findRelatedLayerInSources as Q,findRelationship as J,uniqueColumnNames as K,hasColumnForField as X,findField as Y,isIFeatureTableSupportedLayerWithAttachments as ee,getRelationshipIdsToShow as te}from"./support/tableUtils.js";import{goTo as ie}from"../support/goToUtils.js";import{messageBundle as se}from"../support/widget.js";const ne="80px";let le=class extends P{constructor(e){super(e),this._refreshDebounced=d(()=>this._refresh()),this._syncTemplateThrottled=g(()=>this._syncAttributeTableTemplate()),this.attachmentsViewOptions=new W,this.attributeTableTemplate=null,this.autoRefreshEnabled=!0,this.columns=new l,this.dataProvider=async(e,t)=>{const{layer:i,store:s}=this;if(!t)return;if(!i||!s)return void(t&&t([]));await i.load();const{objectIds:n}=this;if(this.filterBySelectionEnabled&&!this.highlightIds.length||1===n.length&&-1===n.items[0])return void t([]);if("loaded"!==s.state&&"loading"!==s.state)try{await s.load()}catch{return}const l=this.paginationEnabled?this.pageIndex:e.page;try{const i=await s.fetchItems({...e,page:l});t?.(i)}catch{return}},this.grid=null,this.layers=null,this.menuConfig=null,this.messages=null,this.messagesCommon=null,this.messagesUnits=null,this.messagesURIUtils=null,this.prompt=null,this.relatedTables=new l,this.relationshipColumnConfigs=null,this.showRelatedTableCallback=null,this.store=null,this.syncTemplateOnChangesEnabled=!0,this.tableController=null,this.tableParent=null,this.tableTemplate=null,this.tableTemplateOverride=null,this._onLayerRefresh=this._onLayerRefresh.bind(this),this._onShowPromptCallback=this._onShowPromptCallback.bind(this),this._set("store",new k),this._set("grid",new U({viewModel:this}))}initialize(){const e=async()=>{this.messages=await s("esri/widgets/FeatureTable/t9n/FeatureTable"),this.messagesCommon=await s("esri/t9n/common"),this.messagesUnits=await s("esri/core/t9n/Units"),this.messagesURIUtils=await s("esri/widgets/support/t9n/uriUtils")};e(),this.addHandles([t(()=>{e(),this._generateColumns()}),m(()=>[this.messages,this.messagesCommon,this.messagesURIUtils],()=>{const e=this.messages;this.grid&&(this.grid.messages=e),this.allColumns.forEach(t=>{t.messages=e,t.messagesCommon=this.messagesCommon,t.messagesURIUtils=this.messagesURIUtils}),this.refreshCellContent()},c),m(()=>this.attachmentsEnabled,()=>this.layer?.loaded&&this._generateColumns()),m(()=>this.layer,async(e,t)=>{const i=this.grid;i&&(i.clearSort(),e&&t&&await this.reset()),this.goToPage(0),this._drainColumns(),this.store.layer=e,e&&(e.loaded?this._onLayerLoad():e.load().catch(()=>{})),this.syncViewSelection&&this._syncSelection(),t&&null!=this.attachmentsViewOptions.objectId&&(this.attachmentsViewOptions.objectId=null)}),m(()=>this.layer?.loaded,e=>e&&this._onLayerLoad()),m(()=>this.store.state,e=>{"loaded"===e&&(this.scrollToTop(),this.refreshCellContent())}),m(()=>this._effectiveTableTemplate,()=>{this.scrollLeft(),this.layer?.loaded&&this._generateColumns()}),m(()=>this.editingEnabled,()=>this.refreshCellContent()),m(()=>this.timeZone??this.view?.timeZone,()=>this.refreshCellContent()),m(()=>this.store.effectiveWhere,()=>"loaded"===this.store.state&&this.reset()),m(()=>this.layer?.timeExtent,(e,t)=>(e||t)&&!this.timeExtent&&"loaded"===this.store.state&&this.reset()),p(()=>this.layer,"refresh",e=>this._onLayerRefresh(e)),p(()=>this.grid,["cell-click","cell-dblclick","cell-pointerover","cell-pointerout","cell-keydown","column-reorder"],({index:e,item:t,native:i,path:s,type:n})=>{const l=t?.feature,r=l?.getObjectId(),o="cell-keydown"===n&&i&&i instanceof KeyboardEvent&&"Enter"===i.key;this.emit(n,{feature:l,index:e,native:i,type:n,fieldName:s??void 0,objectId:r}),(o||"cell-click"===n)&&this._onCellInteraction(r)}),m(()=>this.actionColumnConfig,e=>{const{actionColumn:t,columns:i}=this;t?e?t.set(e):i.remove(t):e&&i.length&&i.add(this._generateActionColumn(),!1!==e.frozenToEnd?void 0:this._getIndexOfFirstFrozenToEndColumn())}),m(()=>this.relatedRecordsEnabled,()=>this.layer?.loaded&&this._generateColumns()),p(()=>this.objectIds,"change",()=>this._onObjectIdsChange(),{onListenerAdd:()=>this._onObjectIdsChange()}),m(()=>[this.paginationEnabled,this.pageIndex],()=>this.refreshPageCache()),m(()=>this.activeSortOrders,e=>{this.store.sortOrders=e,this._syncTemplateThrottled()}),m(()=>this.allVisibleColumns,()=>this._syncTemplateThrottled()),m(()=>this.pageCount,()=>{this.pageIndex>=this.pageCount&&this.goToPage(0)}),m(()=>this.state,e=>{"disabled"===e&&this.relatedTables.length&&this.drainRelatedTables()}),p(()=>this.tableParent?.highlightIds,"change",({added:e})=>{const{relationshipConfig:t}=this,i=e[0];if(null==i||!t)return;const{relatedLayer:s,relationshipId:n}=t;this.relationshipConfig={objectId:i,relatedLayer:s,relationshipId:n}}),p(()=>this.tableParent,"cell-click",async e=>{const{objectId:t}=e;this.tableController&&this.hasPendingEdits?await this.tableController.discardPendingEdits(void 0,!0).then(e=>e&&this._syncTableParentSelection(t)):this._syncTableParentSelection(t)}),m(()=>this.attachmentsViewOptions.objectId,(e,t)=>{null!=e?null==t&&this.showAttachmentsView({objectId:e}):this.hideAttachmentsView()}),m(()=>[this.layerFieldConfigurations,this.pendingEditsCount],()=>this.refreshCellContent()),p(()=>this.highlightIds,"change",e=>this._onHighlightIdsChange(e),{onListenerAdd:()=>this._syncSelection(),onListenerRemove:()=>this.defaultSelectionManager.clear()}),m(()=>this.effectiveSelectionManager,()=>this._syncSelection(),u),p(()=>this.effectiveSelectionManager,"selection-change",()=>this._syncSelection(),u)])}destroy(){this._drainColumns(),this.grid?.destroy(),this.columns.destroyed||this.columns.destroy(),this.layer=null,this.view=null}get _defaultHiddenFields(){return w(this.layer)}get _effectiveTableTemplate(){return this.tableTemplateOverride||this.tableTemplate}get _effectiveAttributeTableTemplate(){return this.attributeTableTemplate||this.layer?.attributeTableTemplate}get _subtypes(){return C(this.layer)}get actionColumn(){return super.actionColumn}get activeFilters(){const{filterGeometry:e,objectIds:t,filterBySelectionEnabled:i,highlightIds:s}=this,n=new l;return e&&n.push({type:"geometry",geometry:e}),i?n.push({type:"selection",objectIds:s.toArray()}):t.length&&n.push({type:"objectId",objectIds:t.toArray()}),n}get activeSortOrders(){return this.grid?.sortOrders?this.grid.sortOrders.map(({path:e,direction:t})=>({fieldName:e,direction:t})).filter(e=>e.fieldName&&e.direction):[]}get allColumns(){return super.allColumns}get allRelatedTablesVisible(){return!!(this.relatedRecordsEnabled&&this.relatedTables.length&&this.showAllRelatedTables)}get allVisibleColumns(){return super.allVisibleColumns}get attachmentsColumns(){return this.allColumns.filter(e=>B(e))}get attachmentsEnabled(){return this.store.attachmentsEnabled}set attachmentsEnabled(e){this.store.attachmentsEnabled=e}get autoSaveEnabled(){return this.store.autoSaveEnabled}set autoSaveEnabled(e){this.store.autoSaveEnabled=e}get canAddRelatedFeature(){return this.store.canAddRelatedFeature}get clearPrompt(){return()=>this.prompt=null}set clearPrompt(e){this._overrideIfSome("clearPrompt",e)}get defaultSelectionManager(){return this.store.defaultSelectionManager}get definitionExpression(){return this.store.where}set definitionExpression(e){this.store.where=e}get editingEnabled(){return super.editingEnabled}set editingEnabled(e){super.editingEnabled=e}get effectiveSelectionManager(){return this.store.effectiveSelectionManager}get effectiveMultipleSelectionEnabled(){return super.effectiveMultipleSelectionEnabled}get effectiveSize(){return super.effectiveSize}get fieldColumns(){return this.allColumns.filter(e=>L(e))}get filterByViewExtent(){return this.store.filterByViewExtent}set filterByViewExtent(e){this.store.filterByViewExtent=e}get filterByLayerScaleRange(){return this.store.filterByLayerScaleRange}set filterByLayerScaleRange(e){this.store.filterByLayerScaleRange=e}get filterGeometry(){return this.store.filterGeometry}set filterGeometry(e){this.store.filterGeometry=e}get filterBySelectionEnabled(){return!!this._get("filterBySelectionEnabled")}set filterBySelectionEnabled(e){const{objectIds:t}=this,i=t.length;e?(i&&(t.removeAll(),this._logWarning("Selection filter has been applied with an objectID filter. Object ID filter has been removed.")),this.filterGeometry&&this._logWarning("Selection filter has been applied with a geometry filter. Results may appear inconsistent"),this._syncObjectIdsWithStore(this.highlightIds.toArray())):i||this._syncObjectIdsWithStore(null),this._set("filterBySelectionEnabled",e)}get groupColumns(){return super.groupColumns}get hasContingentValues(){return this.relatedTableHasContingentValues||this.store.hasContingentValues}get hasInvalidPendingEdits(){return this.relatedTableHasInvalidPendingEdits||this.store.hasInvalidPendingEdits}get hasPendingEdits(){return this.relatedTableHasPendingEdits||this.store.hasPendingEdits}get hiddenFields(){return this._get("hiddenFields")??new l}set hiddenFields(e){this._set("hiddenFields",r(e,this._get("hiddenFields"),l))}get highlightEnabled(){return this.store.highlightEnabled}set highlightEnabled(e){this.store.highlightEnabled=e}get highlightIds(){return super.highlightIds}set highlightIds(e){super.highlightIds=e}get initialSize(){return this.store.initialSize}set initialSize(e){this.store.initialSize=e}get isEditing(){return super.isEditing}get isQuerying(){return super.isQuerying}get isSyncing(){return super.isSyncing}get isQueryingOrSyncing(){return this.isQuerying||this.isSyncing||this.relatedTables.some(e=>!!e.isQueryingOrSyncing)}get isSyncingAttachments(){return this.store.isSyncingAttachmentEdits||this.relatedTables.some(e=>!!e.isSyncingAttachments)}get layer(){return this._get("layer")}set layer(e){this.drainRelatedTables(),this._set("layer",e)}get layerFieldConfigurations(){const e=this.layer;return Z(e)?e.fieldConfigurations:void 0}get layerView(){return this.store.layerView}get maxSize(){return super.maxSize}set maxSize(e){super.maxSize=e}get objectIds(){return super.objectIds}set objectIds(e){super.objectIds=e}get outFields(){return this.store.outFields}set outFields(e){this.store.outFields=e}get pageCount(){return super.pageCount}get pageIndex(){return super.pageIndex}set pageIndex(e){super.pageIndex=e}get pageSize(){return super.pageSize}set pageSize(e){super.pageSize=e}get paginationEnabled(){return super.paginationEnabled}set paginationEnabled(e){super.paginationEnabled=e}get pendingEditsCount(){return this.store.pendingEditsCount}get relatedRecordsEnabled(){return this.store.relatedRecordsEnabled}set relatedRecordsEnabled(e){this.store.relatedRecordsEnabled=e}get relatedTable(){return this.relatedTables.at(-1)}get relatedTableHasContingentValues(){return!!this.relatedTable?.hasContingentValues}get relatedTableHasInvalidPendingEdits(){return!!this.relatedTable?.hasInvalidPendingEdits}get relatedTableHasPendingEdits(){return!!this.relatedTable?.hasPendingEdits}get relationship(){return this.store.relationship}get relationshipColumns(){return this.allColumns.filter(e=>G(e))}get relationshipConfig(){return this.store.relationshipConfig}set relationshipConfig(e){this.highlightIds.removeAll(),this.objectIds.removeAll(),this.filterBySelectionEnabled=!1,this.store.relationshipConfig=e}get relationshipInfos(){const{layer:e,layers:t,relationships:i,tableController:s}=this,n=this.store.relationshipInfos;if(n.length||!q(e)||!i?.length)return n;const l=[],r=s?.layers||t||[];return i.forEach(t=>{const i=Q(e,r,t);i&&(i.load().catch(()=>{}),l.push({layer:e,relatedLayer:i,relationshipId:t.id}))}),l}get relationships(){return this.store.relationships}get returnGeometryEnabled(){return this.store.returnGeometry}set returnGeometryEnabled(e){this.store.returnGeometry=e}get returnMEnabled(){return this.store.returnM}set returnMEnabled(e){this.store.returnM=e}get returnZEnabled(){return this.store.returnZ}set returnZEnabled(e){this.store.returnZ=e}get rowHighlightIds(){return super.rowHighlightIds}set rowHighlightIds(e){super.rowHighlightIds=e}get selectionManager(){return this.store.selectionManager}set selectionManager(e){this.store.selectionManager=e}get selectionSource(){return"table"}set selectionSource(e){this.syncViewSelection="view"===e,this._overrideIfSome("selectionSource",e)}get showAllRelatedTables(){return this._get("showAllRelatedTables")}set showAllRelatedTables(e){const{relatedTable:t}=this;this._set("showAllRelatedTables",e),t&&(e?this._showAllRelatedTables(t):this._hideAllRelatedTables(t))}get showPrompt(){return e=>{this.prompt?.cancel?.(),this.prompt=e}}set showPrompt(e){this._overrideIfSome("showPrompt",e)}get size(){return super.size}get state(){return super.state}get supportsAttachments(){return this.store.supportsAttachments}get supportsAddAttachments(){const{store:{supportsAddAttachments:e,supportsEditing:t}}=this;return this.editingEnabled&&t&&e}get supportsDeleteAttachments(){return this.supportsUpdateAttachments}get supportsResizeAttachments(){return this.store.supportsResizeAttachments}get supportsUpdateAttachments(){const{store:{supportsUpdateAttachments:e,supportsEditing:t}}=this;return this.editingEnabled&&t&&e}get syncViewSelection(){return this.store.syncViewSelection}set syncViewSelection(e){this.store.syncViewSelection=e}get timeExtent(){return this.store.timeExtent}set timeExtent(e){this.store.timeExtent=e}get timeZone(){return this.store.timeZone}set timeZone(e){this.store.timeZone=e}get view(){return this.store.view}set view(e){this.store.view=e,this.fieldColumns.forEach(t=>t.view=e),this.refreshCellContent()}get visibleColumns(){return super.visibleColumns}async addAttachment(e,t){const{attachmentsViewOptions:i,store:s}=this,n=i.objectId===e;await s.addAttachment(e,t).catch(e=>{n&&e&&"object"==typeof e&&"error"in e&&e.error instanceof o&&(this._logWarning(`Unable to add attachment. ${e.error.name} ${e.error.message}`),i.error=e.error)}),n&&!i.error&&(i.onEditComplete(),i.attachmentInfos=await s.getAttachmentsByObjectId(e,!0)),this.refreshCellContent()}addPendingEdits(e){this.store.addPendingEdits(e)}collapseRelatedTable(e,t){const{relatedLayer:i,objectId:s,relationshipId:n}=t,{objectIdField:r}=i,o=J(i,n),a=i.displayField||o?.keyField||r;e.set({highlightIds:new l([s]),multipleSelectionEnabledOverride:!1,tableTemplateOverride:this._getTableTemplateForRelatedTableView(e,a,n)});const d=e.hiddenFields;d.includes(K.action)||d.add(K.action),d.includes(K.attachments)||d.add(K.attachments),e.scrollLeft()}async deleteAttachments(e,t){const{attachmentsViewOptions:i,store:s}=this,n=i.objectId===e;await s.deleteAttachments(e,t).catch(e=>{n&&e&&"object"==typeof e&&"error"in e&&e.error instanceof o&&(this._logWarning(`Unable to delete attachment(s). ${e.error.name} ${e.error.message}`),i.error=e.error)}),n&&!i.error&&(i.onEditComplete(),i.attachmentInfos=await s.getAttachmentsByObjectId(e,!0)),this.refreshCellContent()}async deleteSelection(){const e=this.highlightIds.toArray();if(!e?.length)return;const{deleteFeatureResults:t}=await this.store.deleteRowsByObjectId(e),i=t.filter(e=>!e.error).map(e=>e.objectId);i.length&&(this.highlightIds.removeMany(i),await this.refresh())}async discardPendingEdits(e){return this.relatedTable&&this.relatedTableHasPendingEdits?this.relatedTable.discardPendingEdits(e):(this.store.discardPendingEdits(e),!0)}async downloadAttachmentById(e,t){const i=(await this.store.getAttachmentsByObjectId(e,!0)).find(e=>e.id===t);await M(i)}drainRelatedTables(){this.relatedTables.drain(e=>e.destroy()),this.set({multipleSelectionEnabledOverride:null,relationshipColumnConfigs:null,showAllRelatedTables:!1,tableTemplateOverride:null}),this.hiddenFields.removeMany([K.action,K.attachments])}drainRelatedTablesAboveIndex(e){const{relatedTables:t}=this,i=t.slice(e+1);t.removeMany(i).forEach(e=>e.destroy());const s=t.at(-1);s&&(s.attachmentsViewOptions.objectId=null,this.allRelatedTablesVisible?this._showAllRelatedTables(s):this._hideAllRelatedTables(s))}async exportSelectionToCSV(e){const{highlightIds:t,layer:i,outFields:s}=this;i&&t.length?await N({layer:i,objectIds:t.toArray(),outFields:s,includeGeometry:e}):this._logWarning("Export failed.")}getFeatureStoreItemByObjectId(e){return this.store.getItemByObjectId(e)}async getFeatureTitle(e,t){return this.store.getFeatureTitle(e,t)}getFeatureTitleSync(e){const t=this.layer;if(!t)return`${e}`;const i=`${t.objectIdField}: ${e}`;return null==e?i:this.store.featureTitleMap.get(e)??i}getObjectIdIndex(e){return this.store.getItemIndexByObjectId(e)}getValue(e,t){const i=this.getFeatureStoreItemByObjectId(e);return i?.feature?.attributes[t]}getVirtualPageIndex(){return this.grid?.getVirtualPageIndex()??0}goToPage(e){if(null==e||!Number.isInteger(e))return void this._logWarning("Invalid 'page' parameter provided to 'goToPage()'. Current page will remain the same.");const{pageCount:t}=this;(e>=t||-1===e)&&(e=t-1),e<-1&&(e=0),e!==this.pageIndex&&(this.pageIndex=e),this.paginationEnabled||this.scrollToIndex(e*this.pageSize)}hideAttachmentsView(){this.attachmentsViewOptions.objectId=null,this.set({relationshipColumnConfigs:null,multipleSelectionEnabledOverride:null,tableTemplateOverride:null}),this.hiddenFields.remove(K.action)}nextPage(){const e=this.paginationEnabled?this.pageIndex:this.getVirtualPageIndex();this.goToPage(e+1)}previousPage(){const e=this.paginationEnabled?this.pageIndex:this.getVirtualPageIndex();this.goToPage(e-1)}async refresh(){await Promise.all([...this.relatedTables.map(e=>e.refresh()),h(this._refreshDebounced())])}refreshCellContent(){this.grid?.requestContentUpdate()}refreshPageCache(){this.grid?.refreshPageCache()}async reset(){this.goToPage(0),await(this.grid?.reset())}async savePendingEdits(){!this.relatedTableHasPendingEdits||this.relatedTableHasInvalidPendingEdits?this.hasPendingEdits&&!this.relatedTable&&(await this.store.savePendingEdits(),await this.refresh()):await(this.relatedTable?.savePendingEdits())}scrollLeft(){this.grid?.scrollLeft(0)}scrollToBottom(){this.grid?.scrollToBottom()}scrollToIndex(e){this.grid?.scrollToIndex(e)}scrollToRow(e){const t=this.store.getItemIndexByObjectId(e);t>-1?this.grid?.scrollToIndex(t):this._logWarning("Row not found. Associated data may not be loaded yet.")}scrollToTop(){this.grid?.scrollToTop()}async saveAttachmentsViewForm(){const{attachmentId:e,form:t,objectId:i}=this.attachmentsViewOptions;null!=i&&t&&(null!=e?await this.updateAttachment(i,e,t):await this.addAttachment(i,t))}async showAttachmentsView({objectId:e}){const{attachmentsViewOptions:t,hiddenFields:i,layer:s}=this;if(!this.attachmentsEnabled||!s)return void this._logWarning("The 'attachmentsEnabled' property is currently false.");await s.load();const n=this._getDefaultLayerDisplayField(s),r=await this.store.getAttachmentsByObjectId(e,!0),o=this.store.getItemIndexByObjectId(e);t.set({attachmentInfos:r,mode:r.length?"list":"file",objectId:e}),this.set({highlightIds:new l([e]),multipleSelectionEnabledOverride:!1,relationshipColumnConfigs:[],tableTemplateOverride:this._getTableTemplateForAttachmentsView(n)}),i.includes(K.action)||i.add(K.action),null!=o&&this.scrollToIndex(o)}syncAttributeTableTemplate(){this._syncAttributeTableTemplate(!0)}syncSelectionSources(){this.store.syncSelectionSources()}async updateAttachment(e,t,i){const{attachmentsViewOptions:s,store:n}=this,l=s.objectId===e;await n.updateAttachment(e,t,i).catch(e=>{l&&e&&"object"==typeof e&&"error"in e&&e.error instanceof o&&(this._logWarning(`Unable to update attachment. ${e.error.name} ${e.error.message}`),s.error=e.error)}),l&&!s.error&&(s.onEditComplete(),s.attachmentInfos=await n.getAttachmentsByObjectId(e,!0)),this.refreshCellContent()}async zoomToSelection(){const{layer:e,view:t}=this,i=this.highlightIds.toArray();if(!e||!t||!i.length)return;const s=e.createQuery();s.objectIds=i,s.returnGeometry=!0;const n=await e.queryFeatures(s);try{await ie(t,n.features)}catch(l){"AbortError"!==l.name&&console.error(l)}}_syncAttributeTableTemplate(e=!1){const{_effectiveAttributeTableTemplate:t,layer:i,tableTemplateOverride:s,syncTemplateOnChangesEnabled:n}=this;if(!i||!t||!n&&!e||s||this.tableParent||this.relatedTable||null!==this.attachmentsViewOptions.objectId)return;const l=JSON.stringify(t.toJSON());E(t,this.columns.toArray(),this.activeSortOrders),t===i.attributeTableTemplate&&JSON.stringify(t.toJSON())!==l&&(i.attributeTableTemplate=t.clone())}async _refresh(){await super.refresh();const e=this.highlightIds.toArray();if(e.length){(await this.store.verifyFeaturesByObjectId(e)).forEach((t,i)=>{t||this.highlightIds.remove(e[i])})}this.refreshPageCache();const t=this.attachmentsViewOptions;null!=t?.objectId&&(t.attachmentInfos=await this.store.getAttachmentsByObjectId(t.objectId,!0))}async _onLayerLoad(){const{layer:e,pageSize:t}=this;if(!e)return;e.parent&&I(e.parent)&&await e.parent.loadAll();const i=e.capabilities.query?.maxRecordCount,s=i&&i<t,n=s?i:t;s&&(this._logWarning("The value for 'pageSize' has been adjusted due to the provided layer's max record count."),this.pageSize=n),this.grid?.set("pageSize",n),this.store.load().catch(()=>{}),this._generateColumns()}_onLayerRefresh(e){this.autoRefreshEnabled&&e.dataChanged&&this.refresh()}_generateColumns(){this._drainColumns();const{_effectiveTableTemplate:e,_effectiveAttributeTableTemplate:t,layer:i}=this,s=e?.columnTemplates;if(!i)return;const n=this._generateColumnsFromColumnTemplates(i,s)??this._generateColumnsFromAttributeTableTemplate(i,t)??this._generateDefaultFieldColumns(i);n.length&&(this.attachmentsEnabled&&!n.some(e=>B(e))&&n.push(this._generateDefaultAttachmentsColumn(i)),this.relatedRecordsEnabled&&this.relationshipInfos.length&&!n.some(e=>G(e))&&n.push(...this._generateDefaultRelationshipColumns()),this.actionColumnConfig&&n.push(this._generateActionColumn()),n.sort((e,t)=>e.frozen&&t.frozen||e.frozenToEnd&&t.frozenToEnd?0:e.frozen||t.frozenToEnd?-1:0),this.columns.addMany(n))}_generateColumnsFromAttributeTableTemplate(e,t){if(!t)return null;const{elements:i,orderByFields:s}=t,l=v(e),r=[];r.push(...this._generateColumnsFromAttributeTableElements(e,i,s));const o=l.map(t=>{if(!t.fieldName||X(t.fieldName,r))return null;const{fieldName:i}=t,n=Y(e,i);return n?this._generateDefaultFieldColumn(e,n,{hidden:!0,orderByFields:s}):(this._logTemplateWarning("A valid 'field' could not be found for the provided template."),null)}).filter(n);return r.push(...o),this.attachmentsEnabled&&ee(e)&&!r.some(e=>B(e))&&r.push(this._generateDefaultAttachmentsColumn(e,{hidden:!0})),this.relatedRecordsEnabled&&q(e)&&e.relationships?.forEach(({id:e},t)=>{const i=this.relationshipInfos.find(t=>t.relationshipId===e);i&&!r.some(t=>G(t)&&t.relationshipId===e)&&r.push(this._generateDefaultRelationshipColumn({hidden:!0,info:i,index:t}))}),r.length?r:null}_generateColumnsFromAttributeTableElements(e,t,i){return t?.map((t,s)=>{switch(t.type){case"field":return this._createFieldColumnFromElement({layer:e,element:t,orderByFields:i});case"group":return this._createGroupColumnFromElement({layer:e,element:t,orderByFields:i});case"attachment":return this._createAttachmentColumnFromElement({layer:e,element:t,index:s});case"relationship":return this._createRelationshipColumnFromElement({element:t,index:s})}}).filter(e=>!!e)??[]}_createFieldColumnFromElement(e){const{layer:t,element:i,orderByFields:s}=e,{fieldName:n}=i;if(null==n)return this._logTemplateWarning("A valid 'fieldName' must be provided."),null;const l=Y(t,n);if(!l)return this._logTemplateWarning("A valid 'field' could not be found for the provided template."),null;const{description:r,label:o}=i,a=s?.findIndex(({field:e})=>e&&e===n)??-1,d=a>-1?s?.at(a)?.order:void 0,h=a>-1?a:void 0,{grid:m,messages:c,messagesCommon:p,messagesURIUtils:u,store:g,view:b}=this;return new x({description:r,direction:d,field:l,fieldName:n,grid:m,initialSortPriority:h,label:o,layer:t,messages:c,messagesCommon:p,messagesURIUtils:u,store:g,view:b,onShowPromptCallback:this._onShowPromptCallback})}_createGroupColumnFromElement(e){const{layer:t,element:i,orderByFields:s}=e,{description:n,label:l}=i;if(!l)return this._logTemplateWarning("Group columns require a label."),null;if(!i.elements.length)return this._logTemplateWarning("Group columns require child columns."),null;const{grid:r,messages:o,messagesCommon:a,messagesURIUtils:d,store:h}=this;return new V({columns:this._generateColumnsFromAttributeTableElements(t,i.elements,s),description:n,grid:r,label:l,messages:o,messagesCommon:a,messagesURIUtils:d,store:h})}_createAttachmentColumnFromElement(e){if(!this.attachmentsEnabled)return void this._logTemplateWarning("The 'attachmentsEnabled' property is currently false.");const{layer:t,element:i,index:s}=e,{description:n,label:l}=i,{grid:r,messages:o,messagesCommon:a,messagesURIUtils:d,store:h}=this;return new j({description:n,fieldName:`${K.attachments}-${s}`,grid:r,label:l,layer:t,messages:o,messagesCommon:a,messagesURIUtils:d,store:h,onShowAttachments:e=>this._onShowAttachments(e)})}_createRelationshipColumnFromElement(e){if(!this.relatedRecordsEnabled)return void this._logTemplateWarning("Relationship columns require related records to be enabled on the table.");const{element:t,index:i}=e,{description:s,label:n,relationshipId:l}=t,r=this.relationshipInfos.find(e=>e.relationshipId===l);if(!r)return this._logTemplateWarning("Unable to find valid related layer target based on the provided relationship id."),null;const{grid:o,messages:a,messagesCommon:d,messagesURIUtils:h,store:m}=this;return new R({description:s,fieldName:`${K.relationship}-${l}-${i}`,grid:o,label:n,messages:a,messagesCommon:d,messagesURIUtils:h,relationshipId:l,store:m,layer:r.relatedLayer,relatedLayer:r.layer,showRelatedTableCallback:e=>this._onShowRelatedTable(e)})}_generateColumnsFromColumnTemplates(e,t){const{grid:i,messages:s,messagesCommon:n,messagesURIUtils:l,store:r,view:o}=this;if(!t?.length)return null;const a=[];return t.forEach((t,d)=>{const{autoWidth:h,description:m,direction:c,flexGrow:p,fieldName:u,formatFunction:g,frozen:b,frozenToEnd:f,icon:y,iconText:T,initialSortPriority:w,invalid:C,label:I,labelTooltipText:v,menuConfig:_,resizable:E,sortable:S,textAlign:A,textWrap:F,timeZone:j,type:R,width:U}=t;if(!R)return void this._logTemplateWarning("Property 'type' is missing from the provided template.");if(b&&f)return void this._logTemplateWarning("Properties 'frozen' and 'frozenToEnd' cannot both be true for the same column.");const P=!1===t.visible;if("group"===R){if(!t.columnTemplates?.length)return void this._logTemplateWarning("Group columns must contain column templates.");if(!t.label)return void this._logTemplateWarning("Group columns require a label.");const r=this._generateColumnsFromColumnTemplates(e,t.columnTemplates),o=P||this._isFieldHidden(t.label);a.push(new V({autoWidth:h,columns:r,description:m,flexGrow:p,frozen:b,frozenToEnd:f,grid:i,hidden:o,icon:y,iconText:T,invalid:C,label:I,labelTooltipText:v,menuConfig:_,messages:s,messagesCommon:n,messagesURIUtils:l,resizable:E,textAlign:A,textWrap:F,timeZone:j,width:U}))}else if("attachment"===R){if(!this.attachmentsEnabled)return void this._logTemplateWarning("Attachment columns require attachments to be enabled on the table.");a.push(this._generateAttachmentsColumnFromTemplate(e,t,d))}else if("relationship"===R){if(!this.relatedRecordsEnabled)return void this._logTemplateWarning("Relationship columns require related records to be enabled on the table.");const{relationshipId:e}=t;if(null==e)return void this._logTemplateWarning("Property 'relationshipId' is missing from the provided template.");const i=this.relationshipInfos.find(t=>t.relationshipId===e);if(!i)return void this._logTemplateWarning("Unable to find valid related layer target based on the provided relationship id.");a.push(this._generateRelationshipColumnFromTemplate(i,t,d))}else if(!u)return void this._logTemplateWarning("Value for 'fieldName' property was missing from the provided template.");const z=P||this._isFieldHidden(u);if("column"===R)a.push(new O({autoWidth:h,description:m,direction:c,fieldName:u,flexGrow:p,formatFunction:g,frozen:b,frozenToEnd:f,grid:i,hidden:z,icon:y,iconText:T,initialSortPriority:w,invalid:C,label:I,labelTooltipText:v,menuConfig:_,messages:s,messagesCommon:n,messagesURIUtils:l,resizable:E,sortable:S,store:r,textAlign:A,textWrap:F,timeZone:j,width:U}));else if("field"===R){const d=Y(e,t.fieldName);if(!d)return void this._logTemplateWarning("A valid 'field' could not be found for the provided template.");const{editable:u,required:R}=t;a.push(new x({autoWidth:h,description:m,direction:c,editable:u,field:d,fieldName:d.name,flexGrow:p,formatFunction:g,frozen:b,frozenToEnd:f,grid:i,hidden:z,icon:y,iconText:T,initialSortPriority:w,invalid:C,label:I,labelTooltipText:v,layer:e,messages:s,messagesCommon:n,messagesURIUtils:l,menuConfig:_,required:R,resizable:E,sortable:S,store:r,template:t,textAlign:A,textWrap:F,timeZone:j,width:U,view:o,onShowPromptCallback:this._onShowPromptCallback}))}}),a.length?a:null}_generateDefaultFieldColumns(e){return e.fields?.map(t=>this._generateDefaultFieldColumn(e,t)).filter(n)??[]}_generateDefaultFieldColumn(e,t,i){const{grid:s,messages:n,messagesCommon:l,messagesURIUtils:r,store:o,view:a}=this;if(!t.visible||"geometry"===t.type)return null;const d=i?.orderByFields,h=t.name,m=d?.findIndex(({field:e})=>e&&e===h)??-1,c=m>-1?d?.at(m)?.order:void 0,p=m>-1?m:void 0;return new x({direction:c,field:t,fieldName:h,grid:s,hidden:i?.hidden||this._isFieldHidden(h),initialSortPriority:p,layer:e,messages:n,messagesCommon:l,messagesURIUtils:r,store:o,view:a,onShowPromptCallback:this._onShowPromptCallback})}_generateAttachmentsColumnFromTemplate(e,t,i){const{grid:s,messages:n,messagesCommon:l,messagesURIUtils:r,store:o}=this,{attachmentsViewEnabled:a,autoWidth:d,description:h,flexGrow:m,fieldName:c,formatFunction:p,frozen:u,frozenToEnd:g,icon:b,iconText:f,invalid:y,label:T,labelTooltipText:w,menuConfig:C,resizable:I,textAlign:v,textWrap:_,thumbnailAppearance:E,thumbnailCount:S,thumbnailIconScale:A,thumbnailsEnabled:F,timeZone:x,width:R}=t;return new j({attachmentsViewEnabled:a,autoWidth:d,description:h,fieldName:`${K.attachments}-${i}`,flexGrow:m,formatFunction:p,frozen:u,frozenToEnd:g,grid:s,hidden:!1===t.visible||this._isFieldHidden(T)||this._isFieldHidden(c),icon:b,iconText:f,invalid:y,label:T,labelTooltipText:w,layer:e,menuConfig:C,messages:n,messagesCommon:l,messagesURIUtils:r,resizable:I,store:o,textAlign:v,textWrap:_,thumbnailAppearance:E,thumbnailCount:S,thumbnailIconScale:A,thumbnailsEnabled:F,timeZone:x,width:R,onShowAttachments:e=>this._onShowAttachments(e)})}_generateDefaultAttachmentsColumn(e,t){const{grid:i,messages:s,messagesCommon:n,messagesURIUtils:l,store:r}=this,o=K.attachments;return new j({fieldName:o,grid:i,hidden:t?.hidden||this._isFieldHidden(o),layer:e,messages:s,messagesCommon:n,messagesURIUtils:l,store:r,onShowAttachments:e=>this._onShowAttachments(e)})}_generateRelationshipColumnFromTemplate(e,t,i){const{grid:s,messages:n,messagesCommon:l,messagesURIUtils:r,store:o}=this,{autoWidth:a,collapsed:d,description:h,flexGrow:m,fieldName:c,formatFunction:p,frozen:u,frozenToEnd:g,icon:b,iconText:f,invalid:y,label:T,labelTooltipText:w,menuConfig:C,relationshipId:I,resizable:v,textAlign:_,textWrap:E,timeZone:S,width:A}=t;return new R({autoWidth:a,collapsed:d,description:h,fieldName:`${K.relationship}-${I}-${i}`,flexGrow:m,formatFunction:p,frozen:u,frozenToEnd:g,grid:s,hidden:!1===t.visible||this._isFieldHidden(T)||this._isFieldHidden(c),icon:b,iconText:f,invalid:y,label:T,labelTooltipText:w,menuConfig:C,messages:n,messagesCommon:l,messagesURIUtils:r,relationshipId:I,resizable:v,store:o,textAlign:_,textWrap:E,timeZone:S,width:A,layer:e.relatedLayer,relatedLayer:e.layer,showRelatedTableCallback:e=>this._onShowRelatedTable(e)})}_generateDefaultRelationshipColumns(){const{relationshipInfos:e,relationshipColumnConfigs:t}=this,i=[];return e?.length?(t?t.forEach((t,s)=>{const{relationshipId:n}=t,l=e.find(e=>e.relationshipId===n);l&&i.push(this._generateDefaultRelationshipColumn({config:t,index:s,info:l}))}):e.forEach((e,t)=>i.push(this._generateDefaultRelationshipColumn({index:t,info:e}))),i):i}_generateDefaultRelationshipColumn(e){const{config:t,hidden:i,index:s,info:n}=e,{grid:l,messages:r,messagesCommon:o,messagesURIUtils:a,store:d}=this,{relationshipId:h}=n;return new R({...t,fieldName:`${K.relationship}-${h}-${s}`,grid:l,hidden:!!i,messages:r,messagesCommon:o,messagesURIUtils:a,layer:n.relatedLayer,relatedLayer:n.layer,relationshipId:h,store:d,showRelatedTableCallback:e=>this._onShowRelatedTable(e)})}_generateActionColumn(){const e=this.actionColumnConfig,t=!0!==e?.frozen&&(e?.frozenToEnd??!0);return new F({hidden:this._isFieldHidden(K.action),store:this.store,...e,frozenToEnd:t})}_isFieldHidden(e){const t=e?.toLowerCase();return(this.hiddenFields??this._defaultHiddenFields).some(e=>e.toLowerCase()===t)}_syncSelection(){const{layer:e}=this;A(e)?this.highlightIds.items=this.effectiveSelectionManager.getSelection(e)??[]:this.highlightIds.removeAll()}_addToSelection(e){const t=this.layer;A(t)&&this.effectiveSelectionManager.add(t,e)}_removeFromSelection(e){const t=this.layer;A(t)&&this.effectiveSelectionManager.remove(t,e)}async _onHighlightIdsChange(e){const{added:t,removed:i}=e,{attachmentsViewOptions:s}=this;if(this._removeFromSelection(i),this._addToSelection(t),this.filterBySelectionEnabled&&this._syncObjectIdsWithStore(this.highlightIds.toArray()),null!=s.objectId){const e=this.highlightIds.at(0);if(null!=e){const t=await this.store.getAttachmentsByObjectId(e,!0);s.set({attachmentInfos:t,objectId:e,mode:t.length?"list":"file"}),this.getFeatureTitle(e)}}}_syncTableParentSelection(e){const{tableParent:t}=this;t&&null!=e&&t.highlightIds.add(e)}_onShowRelatedTable(e){const{highlightIds:t}=this,{objectId:i}=e;t.removeAll(),t.add(i),this.showRelatedTableCallback?this.showRelatedTableCallback(e):this.emit("show-related-table",e)}_onObjectIdsChange(){const e=this.objectIds.toArray();e.length&&this.filterBySelectionEnabled&&(this.filterBySelectionEnabled=!1,this._logWarning("Object ID filter was applied while a selection filter was applied. Selection filter has been removed.")),this._syncObjectIdsWithStore(e)}_syncObjectIdsWithStore(e){this.store.objectIds=e,this.refreshPageCache()}_drainColumns(){this.columns.drain(e=>!e.destroyed&&e.destroy())}_showAllRelatedTables(e){const t=e.layer;if(!t)return;const i=this._getDefaultLayerDisplayField(t);e.set({relationshipColumnConfigs:[],tableTemplateOverride:this._getTableTemplateForShowAllTablesView(e,i)});const s=e.hiddenFields;s.includes(K.action)||s.add(K.action),s.includes(K.attachments)||s.add(K.attachments)}_hideAllRelatedTables(e){const{layer:t,relationship:i}=e;if(t&&null!=i?.id)if(null!=e.attachmentsViewOptions.objectId){const i=this._getDefaultLayerDisplayField(t);e.set({multipleSelectionEnabledOverride:!1,relationshipColumnConfigs:[],showAllRelatedTables:!1,tableTemplateOverride:this._getTableTemplateForAttachmentsView(i)})}else e.set({multipleSelectionEnabledOverride:null,relationshipColumnConfigs:te(t,i.id),showAllRelatedTables:!1,tableTemplateOverride:null}),e.hiddenFields.removeMany([K.action,K.attachments])}_getTableTemplateForRelatedTableView(e,t,i){return new $({columnTemplates:[new D({fieldName:t,editable:!1,menuConfig:{selectionMode:"single",icon:"chevron-down",items:this._extractFieldColumnInfosFromTableTemplate(e.viewModel).map(([s,n])=>({selected:s===t,label:n||s,clickFunction:()=>{e.tableTemplateOverride=this._getTableTemplateForRelatedTableView(e,s,i)}}))},resizable:!1}),new H({autoWidth:!1,collapsed:!0,flexGrow:0,label:"",resizable:!1,relationshipId:i,width:ne})]})}_getTableTemplateForShowAllTablesView(e,t){const i=[new D({fieldName:t,editable:!1,menuConfig:{selectionMode:"single",icon:"chevron-down",items:this._extractFieldColumnInfosFromTableTemplate(e.viewModel).map(([i,s])=>({selected:i===t,label:s||i,clickFunction:()=>{e.tableTemplateOverride=this._getTableTemplateForShowAllTablesView(e,i)}}))},resizable:!1})];return null!=e.attachmentsViewOptions.objectId&&i.push(new z({attachmentsViewEnabled:!1,autoWidth:!1,flexGrow:0,label:"",resizable:!1,thumbnailsEnabled:!1,width:ne})),new $({columnTemplates:i})}async _onShowPromptCallback(e){const{column:t,objectId:i,oldValue:s,value:n}=e,{_subtypes:l,layer:r}=this;if(!r||!l.length)return void t.cancel();const o=l.find(e=>e.code===n);if(!o)return void t.cancel();const a=Promise.withResolvers(),d=this._createSubtypeEditPrompt(s,o,a),h=!!r.parent&&this.autoSaveEnabled;try{this.showPrompt(d);const e=await a.promise,s=[{fieldName:t.fieldName,value:n}];switch(e){case"update-fields":for(const[e,t]of Object.entries(o.defaultValues))null!=t&&s.push({fieldName:e,value:t});await t.updateItems({objectId:i,updates:s}),h&&this.refresh();break;case"keep-existing":await t.updateItems({objectId:i,updates:s}),h&&this.refresh();break;case"undo":t.cancel()}}finally{this.clearPrompt()}}_createSubtypeEditPrompt(e,t,s){const{_subtypes:n,messages:l,messagesCommon:r}=this,o=n.find(t=>t.code===e)?.name??`${e}`;let a="update-fields";const d=[{label:l.subtypes.useDefaultValuesOption,value:"update-fields"},{label:l.subtypes.keepCurrentValuesOption,value:"keep-existing"}];return{context:"info",title:l.subtypes.changeWarningTitle,message:i(l.subtypes.changeWarning,{originalType:o,newType:t.name}),radios:d,defaultRadioSelection:"update-fields",onRadioSelection:e=>{a=e},actions:{primary:{label:r.apply,action:()=>s.resolve(a),type:"positive"},secondary:{label:r.cancel,type:"neutral",action:()=>s.resolve("undo")}},cancel:()=>s.reject()}}_onShowAttachments({objectId:e}){this.hasPendingEdits||(this.attachmentsViewOptions.objectId=e)}_getTableTemplateForAttachmentsView(e){return new $({columnTemplates:[new D({fieldName:e,editable:!1,menuConfig:{selectionMode:"single",icon:"chevron-down",items:this._extractFieldColumnInfosFromTableTemplate(this).map(([t,i])=>({selected:t===e,label:i||t,clickFunction:()=>{this.tableTemplateOverride=this._getTableTemplateForAttachmentsView(t)}}))},resizable:!1}),new z({attachmentsViewEnabled:!1,autoWidth:!1,flexGrow:0,label:"",resizable:!1,thumbnailsEnabled:!1,width:ne})]})}_extractFieldColumnInfosFromTableTemplate(e){const t=e??this,{layer:i,tableTemplate:s}=t;return s?s.columnTemplates.filter(({type:e})=>"field"===e||"column"===e).map(({fieldName:e,label:t})=>{if(null!=t&&""!==t)return[e,t];const s=i?.fieldsIndex.get(e);return[e,s&&y(s,i)]}):i?.fields.map(e=>[e.name,y(e,i)])??[]}_getDefaultLayerDisplayField(e){const{displayField:t,objectIdField:i}=e;return t&&""!==t.trim()?t:i||(e.fields.length?e.fields[0].name:"")}_getIndexOfFirstFrozenToEndColumn(){const e=this.columns.findIndex(e=>e.frozenToEnd);return e>-1?e:void 0}_logWarning(e,t){t?a.getLogger(this).warnOnce(e):a.getLogger(this).warn(e)}_logTemplateWarning(e){this._logWarning(`${e} Skipped generating a column using the provided template.`,!0)}_onCellInteraction(e){null!=e&&null!=this.attachmentsViewOptions.objectId&&this.highlightIds.add(e)}};e([b()],le.prototype,"_defaultHiddenFields",null),e([b()],le.prototype,"_effectiveTableTemplate",null),e([b()],le.prototype,"_effectiveAttributeTableTemplate",null),e([b()],le.prototype,"_subtypes",null),e([b()],le.prototype,"activeFilters",null),e([b({readOnly:!0})],le.prototype,"activeSortOrders",null),e([b()],le.prototype,"allRelatedTablesVisible",null),e([b()],le.prototype,"attachmentsColumns",null),e([b()],le.prototype,"attachmentsEnabled",null),e([b()],le.prototype,"attachmentsViewOptions",void 0),e([b({type:_})],le.prototype,"attributeTableTemplate",void 0),e([b()],le.prototype,"autoRefreshEnabled",void 0),e([b()],le.prototype,"autoSaveEnabled",null),e([b()],le.prototype,"canAddRelatedFeature",null),e([b()],le.prototype,"clearPrompt",null),e([b({readOnly:!0})],le.prototype,"columns",void 0),e([b()],le.prototype,"dataProvider",void 0),e([b()],le.prototype,"defaultSelectionManager",null),e([b()],le.prototype,"definitionExpression",null),e([b()],le.prototype,"effectiveSelectionManager",null),e([b()],le.prototype,"fieldColumns",null),e([b()],le.prototype,"filterByViewExtent",null),e([b()],le.prototype,"filterByLayerScaleRange",null),e([b({types:T})],le.prototype,"filterGeometry",null),e([b()],le.prototype,"filterBySelectionEnabled",null),e([b({readOnly:!0})],le.prototype,"grid",void 0),e([b()],le.prototype,"hasContingentValues",null),e([b()],le.prototype,"hasInvalidPendingEdits",null),e([b()],le.prototype,"hasPendingEdits",null),e([b()],le.prototype,"hiddenFields",null),e([b()],le.prototype,"highlightEnabled",null),e([b()],le.prototype,"initialSize",null),e([b()],le.prototype,"isQueryingOrSyncing",null),e([b()],le.prototype,"isSyncingAttachments",null),e([b()],le.prototype,"layer",null),e([b()],le.prototype,"layers",void 0),e([b()],le.prototype,"layerFieldConfigurations",null),e([b()],le.prototype,"layerView",null),e([b()],le.prototype,"menuConfig",void 0),e([b()],le.prototype,"messages",void 0),e([b(),se("esri/t9n/common")],le.prototype,"messagesCommon",void 0),e([b(),se("esri/core/t9n/Units")],le.prototype,"messagesUnits",void 0),e([b(),se("esri/widgets/support/t9n/uriUtils")],le.prototype,"messagesURIUtils",void 0),e([b()],le.prototype,"outFields",null),e([b()],le.prototype,"pendingEditsCount",null),e([b()],le.prototype,"prompt",void 0),e([b()],le.prototype,"relatedRecordsEnabled",null),e([b()],le.prototype,"relatedTable",null),e([b()],le.prototype,"relatedTableHasContingentValues",null),e([b()],le.prototype,"relatedTables",void 0),e([b()],le.prototype,"relationship",null),e([b()],le.prototype,"relationshipColumnConfigs",void 0),e([b()],le.prototype,"relationshipColumns",null),e([b()],le.prototype,"relationshipConfig",null),e([b()],le.prototype,"relationshipInfos",null),e([b()],le.prototype,"relationships",null),e([b()],le.prototype,"returnGeometryEnabled",null),e([b()],le.prototype,"returnMEnabled",null),e([b()],le.prototype,"returnZEnabled",null),e([b()],le.prototype,"selectionManager",null),e([b()],le.prototype,"selectionSource",null),e([b()],le.prototype,"showAllRelatedTables",null),e([b()],le.prototype,"showPrompt",null),e([b()],le.prototype,"showRelatedTableCallback",void 0),e([b({readOnly:!0,type:k})],le.prototype,"store",void 0),e([b()],le.prototype,"supportsAttachments",null),e([b()],le.prototype,"supportsAddAttachments",null),e([b()],le.prototype,"supportsDeleteAttachments",null),e([b()],le.prototype,"supportsResizeAttachments",null),e([b()],le.prototype,"supportsUpdateAttachments",null),e([b()],le.prototype,"syncTemplateOnChangesEnabled",void 0),e([b()],le.prototype,"syncViewSelection",null),e([b()],le.prototype,"tableController",void 0),e([b()],le.prototype,"tableParent",void 0),e([b({type:$})],le.prototype,"tableTemplate",void 0),e([b()],le.prototype,"tableTemplateOverride",void 0),e([b({type:S})],le.prototype,"timeExtent",null),e([b()],le.prototype,"timeZone",null),e([b()],le.prototype,"view",null),le=e([f("esri.widgets.FeatureTable.FeatureTableViewModel")],le);const re=le;export{re as default};
2
+ import{__decorate as e}from"tslib";import{onLocaleChange as t,substitute as i,fetchMessageBundle as s}from"../../intl.js";import{isSome as n}from"../../core/arrayUtils.js";import l from"../../core/Collection.js";import{referenceSetter as r}from"../../core/collectionUtils.js";import o from"../../core/Error.js";import a from"../../core/Logger.js";import{debounce as d,ignoreAbortErrors as h}from"../../core/promiseUtils.js";import{watch as m,initial as c,on as p,syncAndInitial as u}from"../../core/reactiveUtils.js";import{throttle as g}from"../../core/throttle.js";import{property as b,subclass as f}from"../../core/accessorSupport/decorators.js";import{getEffectiveFieldAlias as y}from"../../editing/fieldUtils.js";import{geometryTypes as T}from"../../geometry/support/typeUtils.js";import{getLowerCaseDefaultHiddenFields as w}from"../../layers/support/fieldUtils.js";import{getSubtypesFromLayer as C,isSubtypeGroupLayer as I}from"../../layers/support/layerUtils.js";import{createFieldInfos as v}from"../../support/popupUtils.js";import _ from"../../tables/AttributeTableTemplate.js";import{syncAttributeTableTemplateWithColumns as E}from"../../tables/support/templateUtils.js";import S from"../../time/TimeExtent.js";import{isSelectableLayerWithObjectIds as A}from"../../views/support/selectionUtils.js";import F from"./ActionColumn.js";import j from"./AttachmentsColumn.js";import x from"./FieldColumn.js";import R from"./RelationshipColumn.js";import O from"./Grid/Column.js";import U from"./Grid/Grid.js";import P from"./Grid/GridViewModel.js";import V from"./Grid/GroupColumn.js";import z from"./support/AttachmentsColumnTemplate.js";import W from"./support/AttachmentsViewOptions.js";import{isAttachmentsColumn as B,isFieldColumn as L,isRelationshipColumn as G}from"./support/columnUtils.js";import{downloadAttachmentInfo as M,exportToCSV as N}from"./support/exportUtils.js";import k from"./support/FeatureStore.js";import D from"./support/FieldColumnTemplate.js";import H from"./support/RelationshipColumnTemplate.js";import $ from"./support/TableTemplate.js";import{isIFeatureTableSupportedLayerWithFieldConfigurations as Z,isIFeatureTableSupportedLayerWithRelationships as q,findRelatedLayerInSources as Q,findRelationship as J,uniqueColumnNames as K,hasColumnForField as X,findField as Y,isIFeatureTableSupportedLayerWithAttachments as ee,getRelationshipIdsToShow as te}from"./support/tableUtils.js";import{goTo as ie}from"../support/goToUtils.js";import{messageBundle as se}from"../support/widget.js";const ne="80px";let le=class extends P{constructor(e){super(e),this._refreshDebounced=d(()=>this._refresh()),this._syncTemplateThrottled=g(()=>this._syncAttributeTableTemplate()),this.attachmentsViewOptions=new W,this.attributeTableTemplate=null,this.autoRefreshEnabled=!0,this.columns=new l,this.dataProvider=async(e,t)=>{const{layer:i,store:s}=this;if(!t)return;if(!i||!s)return void(t&&t([]));try{await i.load()}catch{return}const{objectIds:n}=this;if(this.filterBySelectionEnabled&&!this.highlightIds.length||1===n.length&&-1===n.items[0])return void t([]);if("loaded"!==s.state&&"loading"!==s.state)try{await s.load()}catch{return}const l=this.paginationEnabled?this.pageIndex:e.page;try{const i=await s.fetchItems({...e,page:l});t?.(i)}catch{return}},this.grid=null,this.layers=null,this.menuConfig=null,this.messages=null,this.messagesCommon=null,this.messagesUnits=null,this.messagesURIUtils=null,this.prompt=null,this.relatedTables=new l,this.relationshipColumnConfigs=null,this.showRelatedTableCallback=null,this.store=null,this.syncTemplateOnChangesEnabled=!0,this.tableController=null,this.tableParent=null,this.tableTemplate=null,this.tableTemplateOverride=null,this._onLayerRefresh=this._onLayerRefresh.bind(this),this._onShowPromptCallback=this._onShowPromptCallback.bind(this),this._set("store",new k),this._set("grid",new U({viewModel:this}))}initialize(){const e=async()=>{this.messages=await s("esri/widgets/FeatureTable/t9n/FeatureTable"),this.messagesCommon=await s("esri/t9n/common"),this.messagesUnits=await s("esri/core/t9n/Units"),this.messagesURIUtils=await s("esri/widgets/support/t9n/uriUtils")};e(),this.addHandles([t(()=>{e(),this._generateColumns()}),m(()=>[this.messages,this.messagesCommon,this.messagesURIUtils],()=>{const e=this.messages;this.grid&&(this.grid.messages=e),this.allColumns.forEach(t=>{t.messages=e,t.messagesCommon=this.messagesCommon,t.messagesURIUtils=this.messagesURIUtils}),this.refreshCellContent()},c),m(()=>this.attachmentsEnabled,()=>this.layer?.loaded&&this._generateColumns()),m(()=>this.layer,async(e,t)=>{const i=this.grid;i&&(i.clearSort(),e&&t&&await this.reset()),this.goToPage(0),this._drainColumns(),this.store.layer=e,e&&(e.loaded?this._onLayerLoad().catch(()=>{}):e.load().catch(()=>{})),this.syncViewSelection&&this._syncSelection(),t&&null!=this.attachmentsViewOptions.objectId&&(this.attachmentsViewOptions.objectId=null)}),m(()=>this.layer?.loaded,e=>{e&&this._onLayerLoad().catch(()=>{})}),m(()=>this.store.state,e=>{"loaded"===e&&(this.scrollToTop(),this.refreshCellContent())}),m(()=>this._effectiveTableTemplate,()=>{this.scrollLeft(),this.layer?.loaded&&this._generateColumns()}),m(()=>this.editingEnabled,()=>this.refreshCellContent()),m(()=>this.timeZone??this.view?.timeZone,()=>this.refreshCellContent()),m(()=>this.store.effectiveWhere,()=>{"loaded"===this.store.state&&this.reset().catch(()=>{})}),m(()=>this.layer?.timeExtent,(e,t)=>(e||t)&&!this.timeExtent&&"loaded"===this.store.state&&this.reset().catch(()=>{})),p(()=>this.layer,"refresh",e=>this._onLayerRefresh(e)),p(()=>this.grid,["cell-click","cell-dblclick","cell-pointerover","cell-pointerout","cell-keydown","column-reorder"],({index:e,item:t,native:i,path:s,type:n})=>{const l=t?.feature,r=l?.getObjectId(),o="cell-keydown"===n&&i&&i instanceof KeyboardEvent&&"Enter"===i.key;this.emit(n,{feature:l,index:e,native:i,type:n,fieldName:s??void 0,objectId:r}),(o||"cell-click"===n)&&this._onCellInteraction(r)}),m(()=>this.actionColumnConfig,e=>{const{actionColumn:t,columns:i}=this;t?e?t.set(e):i.remove(t):e&&i.length&&i.add(this._generateActionColumn(),!1!==e.frozenToEnd?void 0:this._getIndexOfFirstFrozenToEndColumn())}),m(()=>this.relatedRecordsEnabled,()=>this.layer?.loaded&&this._generateColumns()),p(()=>this.objectIds,"change",()=>this._onObjectIdsChange(),{onListenerAdd:()=>this._onObjectIdsChange()}),m(()=>[this.paginationEnabled,this.pageIndex],()=>this.refreshPageCache()),m(()=>this.activeSortOrders,e=>{this.store.sortOrders=e,this._syncTemplateThrottled()}),m(()=>this.allVisibleColumns,()=>this._syncTemplateThrottled()),m(()=>this.pageCount,()=>{this.pageIndex>=this.pageCount&&this.goToPage(0)}),m(()=>this.state,e=>{"disabled"===e&&this.relatedTables.length&&this.drainRelatedTables()}),p(()=>this.tableParent?.highlightIds,"change",({added:e})=>{const{relationshipConfig:t}=this,i=e[0];if(null==i||!t)return;const{relatedLayer:s,relationshipId:n}=t;this.relationshipConfig={objectId:i,relatedLayer:s,relationshipId:n}}),p(()=>this.tableParent,"cell-click",async e=>{const{objectId:t}=e;this.tableController&&this.hasPendingEdits?await this.tableController.discardPendingEdits(void 0,!0).then(e=>e&&this._syncTableParentSelection(t)):this._syncTableParentSelection(t)}),m(()=>this.attachmentsViewOptions.objectId,(e,t)=>{null!=e?null==t&&this.showAttachmentsView({objectId:e}):this.hideAttachmentsView()}),m(()=>[this.layerFieldConfigurations,this.pendingEditsCount],()=>this.refreshCellContent()),p(()=>this.highlightIds,"change",e=>this._onHighlightIdsChange(e),{onListenerAdd:()=>this._syncSelection(),onListenerRemove:()=>this.defaultSelectionManager.clear()}),m(()=>this.effectiveSelectionManager,()=>this._syncSelection(),u),p(()=>this.effectiveSelectionManager,"selection-change",()=>this._syncSelection(),u)])}destroy(){this._drainColumns(),this.grid?.destroy(),this.columns.destroyed||this.columns.destroy(),this.layer=null,this.view=null}get _defaultHiddenFields(){return w(this.layer)}get _effectiveTableTemplate(){return this.tableTemplateOverride||this.tableTemplate}get _effectiveAttributeTableTemplate(){return this.attributeTableTemplate||this.layer?.attributeTableTemplate}get _subtypes(){return C(this.layer)}get actionColumn(){return super.actionColumn}get activeFilters(){const{filterGeometry:e,objectIds:t,filterBySelectionEnabled:i,highlightIds:s}=this,n=new l;return e&&n.push({type:"geometry",geometry:e}),i?n.push({type:"selection",objectIds:s.toArray()}):t.length&&n.push({type:"objectId",objectIds:t.toArray()}),n}get activeSortOrders(){return this.grid?.sortOrders?this.grid.sortOrders.map(({path:e,direction:t})=>({fieldName:e,direction:t})).filter(e=>e.fieldName&&e.direction):[]}get allColumns(){return super.allColumns}get allRelatedTablesVisible(){return!!(this.relatedRecordsEnabled&&this.relatedTables.length&&this.showAllRelatedTables)}get allVisibleColumns(){return super.allVisibleColumns}get attachmentsColumns(){return this.allColumns.filter(e=>B(e))}get attachmentsEnabled(){return this.store.attachmentsEnabled}set attachmentsEnabled(e){this.store.attachmentsEnabled=e}get autoSaveEnabled(){return this.store.autoSaveEnabled}set autoSaveEnabled(e){this.store.autoSaveEnabled=e}get canAddRelatedFeature(){return this.store.canAddRelatedFeature}get clearPrompt(){return()=>this.prompt=null}set clearPrompt(e){this._overrideIfSome("clearPrompt",e)}get defaultSelectionManager(){return this.store.defaultSelectionManager}get definitionExpression(){return this.store.where}set definitionExpression(e){this.store.where=e}get editingEnabled(){return super.editingEnabled}set editingEnabled(e){super.editingEnabled=e}get effectiveSelectionManager(){return this.store.effectiveSelectionManager}get effectiveMultipleSelectionEnabled(){return super.effectiveMultipleSelectionEnabled}get effectiveSize(){return super.effectiveSize}get fieldColumns(){return this.allColumns.filter(e=>L(e))}get filterByViewExtent(){return this.store.filterByViewExtent}set filterByViewExtent(e){this.store.filterByViewExtent=e}get filterByLayerScaleRange(){return this.store.filterByLayerScaleRange}set filterByLayerScaleRange(e){this.store.filterByLayerScaleRange=e}get filterGeometry(){return this.store.filterGeometry}set filterGeometry(e){this.store.filterGeometry=e}get filterBySelectionEnabled(){return!!this._get("filterBySelectionEnabled")}set filterBySelectionEnabled(e){const{objectIds:t}=this,i=t.length;e?(i&&(t.removeAll(),this._logWarning("Selection filter has been applied with an objectID filter. Object ID filter has been removed.")),this.filterGeometry&&this._logWarning("Selection filter has been applied with a geometry filter. Results may appear inconsistent"),this._syncObjectIdsWithStore(this.highlightIds.toArray())):i||this._syncObjectIdsWithStore(null),this._set("filterBySelectionEnabled",e)}get groupColumns(){return super.groupColumns}get hasContingentValues(){return this.relatedTableHasContingentValues||this.store.hasContingentValues}get hasInvalidPendingEdits(){return this.relatedTableHasInvalidPendingEdits||this.store.hasInvalidPendingEdits}get hasPendingEdits(){return this.relatedTableHasPendingEdits||this.store.hasPendingEdits}get hiddenFields(){return this._get("hiddenFields")??new l}set hiddenFields(e){this._set("hiddenFields",r(e,this._get("hiddenFields"),l))}get highlightEnabled(){return this.store.highlightEnabled}set highlightEnabled(e){this.store.highlightEnabled=e}get highlightIds(){return super.highlightIds}set highlightIds(e){super.highlightIds=e}get initialSize(){return this.store.initialSize}set initialSize(e){this.store.initialSize=e}get isEditing(){return super.isEditing}get isQuerying(){return super.isQuerying}get isSyncing(){return super.isSyncing}get isQueryingOrSyncing(){return this.isQuerying||this.isSyncing||this.relatedTables.some(e=>!!e.isQueryingOrSyncing)}get isSyncingAttachments(){return this.store.isSyncingAttachmentEdits||this.relatedTables.some(e=>!!e.isSyncingAttachments)}get layer(){return this._get("layer")}set layer(e){this.drainRelatedTables(),this._set("layer",e)}get layerFieldConfigurations(){const e=this.layer;return Z(e)?e.fieldConfigurations:void 0}get layerView(){return this.store.layerView}get maxSize(){return super.maxSize}set maxSize(e){super.maxSize=e}get objectIds(){return super.objectIds}set objectIds(e){super.objectIds=e}get outFields(){return this.store.outFields}set outFields(e){this.store.outFields=e}get pageCount(){return super.pageCount}get pageIndex(){return super.pageIndex}set pageIndex(e){super.pageIndex=e}get pageSize(){return super.pageSize}set pageSize(e){super.pageSize=e}get paginationEnabled(){return super.paginationEnabled}set paginationEnabled(e){super.paginationEnabled=e}get pendingEditsCount(){return this.store.pendingEditsCount}get relatedRecordsEnabled(){return this.store.relatedRecordsEnabled}set relatedRecordsEnabled(e){this.store.relatedRecordsEnabled=e}get relatedTable(){return this.relatedTables.at(-1)}get relatedTableHasContingentValues(){return!!this.relatedTable?.hasContingentValues}get relatedTableHasInvalidPendingEdits(){return!!this.relatedTable?.hasInvalidPendingEdits}get relatedTableHasPendingEdits(){return!!this.relatedTable?.hasPendingEdits}get relationship(){return this.store.relationship}get relationshipColumns(){return this.allColumns.filter(e=>G(e))}get relationshipConfig(){return this.store.relationshipConfig}set relationshipConfig(e){this.highlightIds.removeAll(),this.objectIds.removeAll(),this.filterBySelectionEnabled=!1,this.store.relationshipConfig=e}get relationshipInfos(){const{layer:e,layers:t,relationships:i,tableController:s}=this,n=this.store.relationshipInfos;if(n.length||!q(e)||!i?.length)return n;const l=[],r=s?.layers||t||[];return i.forEach(t=>{const i=Q(e,r,t);i&&(i.load().catch(()=>{}),l.push({layer:e,relatedLayer:i,relationshipId:t.id}))}),l}get relationships(){return this.store.relationships}get returnGeometryEnabled(){return this.store.returnGeometry}set returnGeometryEnabled(e){this.store.returnGeometry=e}get returnMEnabled(){return this.store.returnM}set returnMEnabled(e){this.store.returnM=e}get returnZEnabled(){return this.store.returnZ}set returnZEnabled(e){this.store.returnZ=e}get rowHighlightIds(){return super.rowHighlightIds}set rowHighlightIds(e){super.rowHighlightIds=e}get selectionManager(){return this.store.selectionManager}set selectionManager(e){this.store.selectionManager=e}get selectionSource(){return"table"}set selectionSource(e){this.syncViewSelection="view"===e,this._overrideIfSome("selectionSource",e)}get showAllRelatedTables(){return this._get("showAllRelatedTables")}set showAllRelatedTables(e){const{relatedTable:t}=this;this._set("showAllRelatedTables",e),t&&(e?this._showAllRelatedTables(t):this._hideAllRelatedTables(t))}get showPrompt(){return e=>{this.prompt?.cancel?.(),this.prompt=e}}set showPrompt(e){this._overrideIfSome("showPrompt",e)}get size(){return super.size}get state(){return super.state}get supportsAttachments(){return this.store.supportsAttachments}get supportsAddAttachments(){const{store:{supportsAddAttachments:e,supportsEditing:t}}=this;return this.editingEnabled&&t&&e}get supportsDeleteAttachments(){return this.supportsUpdateAttachments}get supportsResizeAttachments(){return this.store.supportsResizeAttachments}get supportsUpdateAttachments(){const{store:{supportsUpdateAttachments:e,supportsEditing:t}}=this;return this.editingEnabled&&t&&e}get syncViewSelection(){return this.store.syncViewSelection}set syncViewSelection(e){this.store.syncViewSelection=e}get timeExtent(){return this.store.timeExtent}set timeExtent(e){this.store.timeExtent=e}get timeZone(){return this.store.timeZone}set timeZone(e){this.store.timeZone=e}get view(){return this.store.view}set view(e){this.store.view=e,this.fieldColumns.forEach(t=>t.view=e),this.refreshCellContent()}get visibleColumns(){return super.visibleColumns}async addAttachment(e,t){const{attachmentsViewOptions:i,store:s}=this,n=i.objectId===e;await s.addAttachment(e,t).catch(e=>{n&&e&&"object"==typeof e&&"error"in e&&e.error instanceof o&&(this._logWarning(`Unable to add attachment. ${e.error.name} ${e.error.message}`),i.error=e.error)}),n&&!i.error&&(i.onEditComplete(),i.attachmentInfos=await s.getAttachmentsByObjectId(e,!0)),this.refreshCellContent()}addPendingEdits(e){this.store.addPendingEdits(e)}collapseRelatedTable(e,t){const{relatedLayer:i,objectId:s,relationshipId:n}=t,{objectIdField:r}=i,o=J(i,n),a=i.displayField||o?.keyField||r;e.set({highlightIds:new l([s]),multipleSelectionEnabledOverride:!1,tableTemplateOverride:this._getTableTemplateForRelatedTableView(e,a,n)});const d=e.hiddenFields;d.includes(K.action)||d.add(K.action),d.includes(K.attachments)||d.add(K.attachments),e.scrollLeft()}async deleteAttachments(e,t){const{attachmentsViewOptions:i,store:s}=this,n=i.objectId===e;await s.deleteAttachments(e,t).catch(e=>{n&&e&&"object"==typeof e&&"error"in e&&e.error instanceof o&&(this._logWarning(`Unable to delete attachment(s). ${e.error.name} ${e.error.message}`),i.error=e.error)}),n&&!i.error&&(i.onEditComplete(),i.attachmentInfos=await s.getAttachmentsByObjectId(e,!0)),this.refreshCellContent()}async deleteSelection(){const e=this.highlightIds.toArray();if(!e?.length)return;const{deleteFeatureResults:t}=await this.store.deleteRowsByObjectId(e),i=t.filter(e=>!e.error).map(e=>e.objectId);i.length&&(this.highlightIds.removeMany(i),await this.refresh())}async discardPendingEdits(e){return this.relatedTable&&this.relatedTableHasPendingEdits?this.relatedTable.discardPendingEdits(e):(this.store.discardPendingEdits(e),!0)}async downloadAttachmentById(e,t){const i=(await this.store.getAttachmentsByObjectId(e,!0)).find(e=>e.id===t);await M(i)}drainRelatedTables(){this.relatedTables.drain(e=>e.destroy()),this.set({multipleSelectionEnabledOverride:null,relationshipColumnConfigs:null,showAllRelatedTables:!1,tableTemplateOverride:null}),this.hiddenFields.removeMany([K.action,K.attachments])}drainRelatedTablesAboveIndex(e){const{relatedTables:t}=this,i=t.slice(e+1);t.removeMany(i).forEach(e=>e.destroy());const s=t.at(-1);s&&(s.attachmentsViewOptions.objectId=null,this.allRelatedTablesVisible?this._showAllRelatedTables(s):this._hideAllRelatedTables(s))}async exportSelectionToCSV(e){const{highlightIds:t,layer:i,outFields:s}=this;i&&t.length?await N({layer:i,objectIds:t.toArray(),outFields:s,includeGeometry:e}):this._logWarning("Export failed.")}getFeatureStoreItemByObjectId(e){return this.store.getItemByObjectId(e)}async getFeatureTitle(e,t){return this.store.getFeatureTitle(e,t)}getFeatureTitleSync(e){const t=this.layer;if(!t)return`${e}`;const i=`${t.objectIdField}: ${e}`;return null==e?i:this.store.featureTitleMap.get(e)??i}getObjectIdIndex(e){return this.store.getItemIndexByObjectId(e)}getValue(e,t){const i=this.getFeatureStoreItemByObjectId(e);return i?.feature?.attributes[t]}getVirtualPageIndex(){return this.grid?.getVirtualPageIndex()??0}goToPage(e){if(null==e||!Number.isInteger(e))return void this._logWarning("Invalid 'page' parameter provided to 'goToPage()'. Current page will remain the same.");const{pageCount:t}=this;(e>=t||-1===e)&&(e=t-1),e<-1&&(e=0),e!==this.pageIndex&&(this.pageIndex=e),this.paginationEnabled||this.scrollToIndex(e*this.pageSize)}hideAttachmentsView(){this.attachmentsViewOptions.objectId=null,this.set({relationshipColumnConfigs:null,multipleSelectionEnabledOverride:null,tableTemplateOverride:null}),this.hiddenFields.remove(K.action)}nextPage(){const e=this.paginationEnabled?this.pageIndex:this.getVirtualPageIndex();this.goToPage(e+1)}previousPage(){const e=this.paginationEnabled?this.pageIndex:this.getVirtualPageIndex();this.goToPage(e-1)}async refresh(){await Promise.all([...this.relatedTables.map(e=>e.refresh()),h(this._refreshDebounced())])}refreshCellContent(){this.grid?.requestContentUpdate()}refreshPageCache(){this.grid?.refreshPageCache()}async reset(){this.goToPage(0),await(this.grid?.reset())}async savePendingEdits(){!this.relatedTableHasPendingEdits||this.relatedTableHasInvalidPendingEdits?this.hasPendingEdits&&!this.relatedTable&&(await this.store.savePendingEdits(),await this.refresh()):await(this.relatedTable?.savePendingEdits())}scrollLeft(){this.grid?.scrollLeft(0)}scrollToBottom(){this.grid?.scrollToBottom()}scrollToIndex(e){this.grid?.scrollToIndex(e)}scrollToRow(e){const t=this.store.getItemIndexByObjectId(e);t>-1?this.grid?.scrollToIndex(t):this._logWarning("Row not found. Associated data may not be loaded yet.")}scrollToTop(){this.grid?.scrollToTop()}async saveAttachmentsViewForm(){const{attachmentId:e,form:t,objectId:i}=this.attachmentsViewOptions;null!=i&&t&&(null!=e?await this.updateAttachment(i,e,t):await this.addAttachment(i,t))}async showAttachmentsView({objectId:e}){const{attachmentsViewOptions:t,hiddenFields:i,layer:s}=this;if(!this.attachmentsEnabled||!s)return void this._logWarning("The 'attachmentsEnabled' property is currently false.");await s.load();const n=this._getDefaultLayerDisplayField(s),r=await this.store.getAttachmentsByObjectId(e,!0),o=this.store.getItemIndexByObjectId(e);t.set({attachmentInfos:r,mode:r.length?"list":"file",objectId:e}),this.set({highlightIds:new l([e]),multipleSelectionEnabledOverride:!1,relationshipColumnConfigs:[],tableTemplateOverride:this._getTableTemplateForAttachmentsView(n)}),i.includes(K.action)||i.add(K.action),null!=o&&this.scrollToIndex(o)}syncAttributeTableTemplate(){this._syncAttributeTableTemplate(!0)}syncSelectionSources(){this.store.syncSelectionSources()}async updateAttachment(e,t,i){const{attachmentsViewOptions:s,store:n}=this,l=s.objectId===e;await n.updateAttachment(e,t,i).catch(e=>{l&&e&&"object"==typeof e&&"error"in e&&e.error instanceof o&&(this._logWarning(`Unable to update attachment. ${e.error.name} ${e.error.message}`),s.error=e.error)}),l&&!s.error&&(s.onEditComplete(),s.attachmentInfos=await n.getAttachmentsByObjectId(e,!0)),this.refreshCellContent()}async zoomToSelection(){const{layer:e,view:t}=this,i=this.highlightIds.toArray();if(!e||!t||!i.length)return;const s=e.createQuery();s.objectIds=i,s.returnGeometry=!0;const n=await e.queryFeatures(s);try{await ie(t,n.features)}catch(l){"AbortError"!==l.name&&console.error(l)}}_syncAttributeTableTemplate(e=!1){const{_effectiveAttributeTableTemplate:t,layer:i,tableTemplateOverride:s,syncTemplateOnChangesEnabled:n}=this;if(!i||!t||!n&&!e||s||this.tableParent||this.relatedTable||null!==this.attachmentsViewOptions.objectId)return;const l=JSON.stringify(t.toJSON());E(t,this.columns.toArray(),this.activeSortOrders),t===i.attributeTableTemplate&&JSON.stringify(t.toJSON())!==l&&(i.attributeTableTemplate=t.clone())}async _refresh(){await super.refresh();const e=this.highlightIds.toArray();if(e.length){(await this.store.verifyFeaturesByObjectId(e)).forEach((t,i)=>{t||this.highlightIds.remove(e[i])})}this.refreshPageCache();const t=this.attachmentsViewOptions;null!=t?.objectId&&(t.attachmentInfos=await this.store.getAttachmentsByObjectId(t.objectId,!0))}async _onLayerLoad(){const{layer:e,pageSize:t}=this;if(!e)return;e.parent&&I(e.parent)&&await e.parent.loadAll();const i=e.capabilities.query?.maxRecordCount,s=i&&i<t,n=s?i:t;s&&(this._logWarning("The value for 'pageSize' has been adjusted due to the provided layer's max record count."),this.pageSize=n),this.grid?.set("pageSize",n),this.store.load().catch(()=>{}),this._generateColumns()}_onLayerRefresh(e){this.autoRefreshEnabled&&e.dataChanged&&this.refresh()}_generateColumns(){this._drainColumns();const{_effectiveTableTemplate:e,_effectiveAttributeTableTemplate:t,layer:i}=this,s=e?.columnTemplates;if(!i)return;const n=this._generateColumnsFromColumnTemplates(i,s)??this._generateColumnsFromAttributeTableTemplate(i,t)??this._generateDefaultFieldColumns(i);n.length&&(this.attachmentsEnabled&&!n.some(e=>B(e))&&n.push(this._generateDefaultAttachmentsColumn(i)),this.relatedRecordsEnabled&&this.relationshipInfos.length&&!n.some(e=>G(e))&&n.push(...this._generateDefaultRelationshipColumns()),this.actionColumnConfig&&n.push(this._generateActionColumn()),n.sort((e,t)=>e.frozen&&t.frozen||e.frozenToEnd&&t.frozenToEnd?0:e.frozen||t.frozenToEnd?-1:0),this.columns.addMany(n))}_generateColumnsFromAttributeTableTemplate(e,t){if(!t)return null;const{elements:i,orderByFields:s}=t,l=v(e),r=[];r.push(...this._generateColumnsFromAttributeTableElements(e,i,s));const o=l.map(t=>{if(!t.fieldName||X(t.fieldName,r))return null;const{fieldName:i}=t,n=Y(e,i);return n?this._generateDefaultFieldColumn(e,n,{hidden:!0,orderByFields:s}):(this._logTemplateWarning("A valid 'field' could not be found for the provided template."),null)}).filter(n);return r.push(...o),this.attachmentsEnabled&&ee(e)&&!r.some(e=>B(e))&&r.push(this._generateDefaultAttachmentsColumn(e,{hidden:!0})),this.relatedRecordsEnabled&&q(e)&&e.relationships?.forEach(({id:e},t)=>{const i=this.relationshipInfos.find(t=>t.relationshipId===e);i&&!r.some(t=>G(t)&&t.relationshipId===e)&&r.push(this._generateDefaultRelationshipColumn({hidden:!0,info:i,index:t}))}),r.length?r:null}_generateColumnsFromAttributeTableElements(e,t,i){return t?.map((t,s)=>{switch(t.type){case"field":return this._createFieldColumnFromElement({layer:e,element:t,orderByFields:i});case"group":return this._createGroupColumnFromElement({layer:e,element:t,orderByFields:i});case"attachment":return this._createAttachmentColumnFromElement({layer:e,element:t,index:s});case"relationship":return this._createRelationshipColumnFromElement({element:t,index:s})}}).filter(e=>!!e)??[]}_createFieldColumnFromElement(e){const{layer:t,element:i,orderByFields:s}=e,{fieldName:n}=i;if(null==n)return this._logTemplateWarning("A valid 'fieldName' must be provided."),null;const l=Y(t,n);if(!l)return this._logTemplateWarning("A valid 'field' could not be found for the provided template."),null;const{description:r,label:o}=i,a=s?.findIndex(({field:e})=>e&&e===n)??-1,d=a>-1?s?.at(a)?.order:void 0,h=a>-1?a:void 0,{grid:m,messages:c,messagesCommon:p,messagesURIUtils:u,store:g,view:b}=this;return new x({description:r,direction:d,field:l,fieldName:n,grid:m,initialSortPriority:h,label:o,layer:t,messages:c,messagesCommon:p,messagesURIUtils:u,store:g,view:b,onShowPromptCallback:this._onShowPromptCallback})}_createGroupColumnFromElement(e){const{layer:t,element:i,orderByFields:s}=e,{description:n,label:l}=i;if(!l)return this._logTemplateWarning("Group columns require a label."),null;if(!i.elements.length)return this._logTemplateWarning("Group columns require child columns."),null;const{grid:r,messages:o,messagesCommon:a,messagesURIUtils:d,store:h}=this;return new V({columns:this._generateColumnsFromAttributeTableElements(t,i.elements,s),description:n,grid:r,label:l,messages:o,messagesCommon:a,messagesURIUtils:d,store:h})}_createAttachmentColumnFromElement(e){if(!this.attachmentsEnabled)return void this._logTemplateWarning("The 'attachmentsEnabled' property is currently false.");const{layer:t,element:i,index:s}=e,{description:n,label:l}=i,{grid:r,messages:o,messagesCommon:a,messagesURIUtils:d,store:h}=this;return new j({description:n,fieldName:`${K.attachments}-${s}`,grid:r,label:l,layer:t,messages:o,messagesCommon:a,messagesURIUtils:d,store:h,onShowAttachments:e=>this._onShowAttachments(e)})}_createRelationshipColumnFromElement(e){if(!this.relatedRecordsEnabled)return void this._logTemplateWarning("Relationship columns require related records to be enabled on the table.");const{element:t,index:i}=e,{description:s,label:n,relationshipId:l}=t,r=this.relationshipInfos.find(e=>e.relationshipId===l);if(!r)return this._logTemplateWarning("Unable to find valid related layer target based on the provided relationship id."),null;const{grid:o,messages:a,messagesCommon:d,messagesURIUtils:h,store:m}=this;return new R({description:s,fieldName:`${K.relationship}-${l}-${i}`,grid:o,label:n,messages:a,messagesCommon:d,messagesURIUtils:h,relationshipId:l,store:m,layer:r.relatedLayer,relatedLayer:r.layer,showRelatedTableCallback:e=>this._onShowRelatedTable(e)})}_generateColumnsFromColumnTemplates(e,t){const{grid:i,messages:s,messagesCommon:n,messagesURIUtils:l,store:r,view:o}=this;if(!t?.length)return null;const a=[];return t.forEach((t,d)=>{const{autoWidth:h,description:m,direction:c,flexGrow:p,fieldName:u,formatFunction:g,frozen:b,frozenToEnd:f,icon:y,iconText:T,initialSortPriority:w,invalid:C,label:I,labelTooltipText:v,menuConfig:_,resizable:E,sortable:S,textAlign:A,textWrap:F,timeZone:j,type:R,width:U}=t;if(!R)return void this._logTemplateWarning("Property 'type' is missing from the provided template.");if(b&&f)return void this._logTemplateWarning("Properties 'frozen' and 'frozenToEnd' cannot both be true for the same column.");const P=!1===t.visible;if("group"===R){if(!t.columnTemplates?.length)return void this._logTemplateWarning("Group columns must contain column templates.");if(!t.label)return void this._logTemplateWarning("Group columns require a label.");const r=this._generateColumnsFromColumnTemplates(e,t.columnTemplates),o=P||this._isFieldHidden(t.label);a.push(new V({autoWidth:h,columns:r,description:m,flexGrow:p,frozen:b,frozenToEnd:f,grid:i,hidden:o,icon:y,iconText:T,invalid:C,label:I,labelTooltipText:v,menuConfig:_,messages:s,messagesCommon:n,messagesURIUtils:l,resizable:E,textAlign:A,textWrap:F,timeZone:j,width:U}))}else if("attachment"===R){if(!this.attachmentsEnabled)return void this._logTemplateWarning("Attachment columns require attachments to be enabled on the table.");a.push(this._generateAttachmentsColumnFromTemplate(e,t,d))}else if("relationship"===R){if(!this.relatedRecordsEnabled)return void this._logTemplateWarning("Relationship columns require related records to be enabled on the table.");const{relationshipId:e}=t;if(null==e)return void this._logTemplateWarning("Property 'relationshipId' is missing from the provided template.");const i=this.relationshipInfos.find(t=>t.relationshipId===e);if(!i)return void this._logTemplateWarning("Unable to find valid related layer target based on the provided relationship id.");a.push(this._generateRelationshipColumnFromTemplate(i,t,d))}else if(!u)return void this._logTemplateWarning("Value for 'fieldName' property was missing from the provided template.");const z=P||this._isFieldHidden(u);if("column"===R)a.push(new O({autoWidth:h,description:m,direction:c,fieldName:u,flexGrow:p,formatFunction:g,frozen:b,frozenToEnd:f,grid:i,hidden:z,icon:y,iconText:T,initialSortPriority:w,invalid:C,label:I,labelTooltipText:v,menuConfig:_,messages:s,messagesCommon:n,messagesURIUtils:l,resizable:E,sortable:S,store:r,textAlign:A,textWrap:F,timeZone:j,width:U}));else if("field"===R){const d=Y(e,t.fieldName);if(!d)return void this._logTemplateWarning("A valid 'field' could not be found for the provided template.");const{editable:u,required:R}=t;a.push(new x({autoWidth:h,description:m,direction:c,editable:u,field:d,fieldName:d.name,flexGrow:p,formatFunction:g,frozen:b,frozenToEnd:f,grid:i,hidden:z,icon:y,iconText:T,initialSortPriority:w,invalid:C,label:I,labelTooltipText:v,layer:e,messages:s,messagesCommon:n,messagesURIUtils:l,menuConfig:_,required:R,resizable:E,sortable:S,store:r,template:t,textAlign:A,textWrap:F,timeZone:j,width:U,view:o,onShowPromptCallback:this._onShowPromptCallback}))}}),a.length?a:null}_generateDefaultFieldColumns(e){return e.fields?.map(t=>this._generateDefaultFieldColumn(e,t)).filter(n)??[]}_generateDefaultFieldColumn(e,t,i){const{grid:s,messages:n,messagesCommon:l,messagesURIUtils:r,store:o,view:a}=this;if(!t.visible||"geometry"===t.type)return null;const d=i?.orderByFields,h=t.name,m=d?.findIndex(({field:e})=>e&&e===h)??-1,c=m>-1?d?.at(m)?.order:void 0,p=m>-1?m:void 0;return new x({direction:c,field:t,fieldName:h,grid:s,hidden:i?.hidden||this._isFieldHidden(h),initialSortPriority:p,layer:e,messages:n,messagesCommon:l,messagesURIUtils:r,store:o,view:a,onShowPromptCallback:this._onShowPromptCallback})}_generateAttachmentsColumnFromTemplate(e,t,i){const{grid:s,messages:n,messagesCommon:l,messagesURIUtils:r,store:o}=this,{attachmentsViewEnabled:a,autoWidth:d,description:h,flexGrow:m,fieldName:c,formatFunction:p,frozen:u,frozenToEnd:g,icon:b,iconText:f,invalid:y,label:T,labelTooltipText:w,menuConfig:C,resizable:I,textAlign:v,textWrap:_,thumbnailAppearance:E,thumbnailCount:S,thumbnailIconScale:A,thumbnailsEnabled:F,timeZone:x,width:R}=t;return new j({attachmentsViewEnabled:a,autoWidth:d,description:h,fieldName:`${K.attachments}-${i}`,flexGrow:m,formatFunction:p,frozen:u,frozenToEnd:g,grid:s,hidden:!1===t.visible||this._isFieldHidden(T)||this._isFieldHidden(c),icon:b,iconText:f,invalid:y,label:T,labelTooltipText:w,layer:e,menuConfig:C,messages:n,messagesCommon:l,messagesURIUtils:r,resizable:I,store:o,textAlign:v,textWrap:_,thumbnailAppearance:E,thumbnailCount:S,thumbnailIconScale:A,thumbnailsEnabled:F,timeZone:x,width:R,onShowAttachments:e=>this._onShowAttachments(e)})}_generateDefaultAttachmentsColumn(e,t){const{grid:i,messages:s,messagesCommon:n,messagesURIUtils:l,store:r}=this,o=K.attachments;return new j({fieldName:o,grid:i,hidden:t?.hidden||this._isFieldHidden(o),layer:e,messages:s,messagesCommon:n,messagesURIUtils:l,store:r,onShowAttachments:e=>this._onShowAttachments(e)})}_generateRelationshipColumnFromTemplate(e,t,i){const{grid:s,messages:n,messagesCommon:l,messagesURIUtils:r,store:o}=this,{autoWidth:a,collapsed:d,description:h,flexGrow:m,fieldName:c,formatFunction:p,frozen:u,frozenToEnd:g,icon:b,iconText:f,invalid:y,label:T,labelTooltipText:w,menuConfig:C,relationshipId:I,resizable:v,textAlign:_,textWrap:E,timeZone:S,width:A}=t;return new R({autoWidth:a,collapsed:d,description:h,fieldName:`${K.relationship}-${I}-${i}`,flexGrow:m,formatFunction:p,frozen:u,frozenToEnd:g,grid:s,hidden:!1===t.visible||this._isFieldHidden(T)||this._isFieldHidden(c),icon:b,iconText:f,invalid:y,label:T,labelTooltipText:w,menuConfig:C,messages:n,messagesCommon:l,messagesURIUtils:r,relationshipId:I,resizable:v,store:o,textAlign:_,textWrap:E,timeZone:S,width:A,layer:e.relatedLayer,relatedLayer:e.layer,showRelatedTableCallback:e=>this._onShowRelatedTable(e)})}_generateDefaultRelationshipColumns(){const{relationshipInfos:e,relationshipColumnConfigs:t}=this,i=[];return e?.length?(t?t.forEach((t,s)=>{const{relationshipId:n}=t,l=e.find(e=>e.relationshipId===n);l&&i.push(this._generateDefaultRelationshipColumn({config:t,index:s,info:l}))}):e.forEach((e,t)=>i.push(this._generateDefaultRelationshipColumn({index:t,info:e}))),i):i}_generateDefaultRelationshipColumn(e){const{config:t,hidden:i,index:s,info:n}=e,{grid:l,messages:r,messagesCommon:o,messagesURIUtils:a,store:d}=this,{relationshipId:h}=n;return new R({...t,fieldName:`${K.relationship}-${h}-${s}`,grid:l,hidden:!!i,messages:r,messagesCommon:o,messagesURIUtils:a,layer:n.relatedLayer,relatedLayer:n.layer,relationshipId:h,store:d,showRelatedTableCallback:e=>this._onShowRelatedTable(e)})}_generateActionColumn(){const e=this.actionColumnConfig,t=!0!==e?.frozen&&(e?.frozenToEnd??!0);return new F({hidden:this._isFieldHidden(K.action),store:this.store,...e,frozenToEnd:t})}_isFieldHidden(e){const t=e?.toLowerCase();return(this.hiddenFields??this._defaultHiddenFields).some(e=>e.toLowerCase()===t)}_syncSelection(){const{layer:e}=this;A(e)?this.highlightIds.items=this.effectiveSelectionManager.getSelection(e)??[]:this.highlightIds.removeAll()}_addToSelection(e){const t=this.layer;A(t)&&this.effectiveSelectionManager.add(t,e)}_removeFromSelection(e){const t=this.layer;A(t)&&this.effectiveSelectionManager.remove(t,e)}async _onHighlightIdsChange(e){const{added:t,removed:i}=e,{attachmentsViewOptions:s}=this;if(this._removeFromSelection(i),this._addToSelection(t),this.filterBySelectionEnabled&&this._syncObjectIdsWithStore(this.highlightIds.toArray()),null!=s.objectId){const e=this.highlightIds.at(0);if(null!=e){const t=await this.store.getAttachmentsByObjectId(e,!0);s.set({attachmentInfos:t,objectId:e,mode:t.length?"list":"file"}),this.getFeatureTitle(e)}}}_syncTableParentSelection(e){const{tableParent:t}=this;t&&null!=e&&t.highlightIds.add(e)}_onShowRelatedTable(e){const{highlightIds:t}=this,{objectId:i}=e;t.removeAll(),t.add(i),this.showRelatedTableCallback?this.showRelatedTableCallback(e):this.emit("show-related-table",e)}_onObjectIdsChange(){const e=this.objectIds.toArray();e.length&&this.filterBySelectionEnabled&&(this.filterBySelectionEnabled=!1,this._logWarning("Object ID filter was applied while a selection filter was applied. Selection filter has been removed.")),this._syncObjectIdsWithStore(e)}_syncObjectIdsWithStore(e){this.store.objectIds=e,this.refreshPageCache()}_drainColumns(){this.columns.drain(e=>!e.destroyed&&e.destroy())}_showAllRelatedTables(e){const t=e.layer;if(!t)return;const i=this._getDefaultLayerDisplayField(t);e.set({relationshipColumnConfigs:[],tableTemplateOverride:this._getTableTemplateForShowAllTablesView(e,i)});const s=e.hiddenFields;s.includes(K.action)||s.add(K.action),s.includes(K.attachments)||s.add(K.attachments)}_hideAllRelatedTables(e){const{layer:t,relationship:i}=e;if(t&&null!=i?.id)if(null!=e.attachmentsViewOptions.objectId){const i=this._getDefaultLayerDisplayField(t);e.set({multipleSelectionEnabledOverride:!1,relationshipColumnConfigs:[],showAllRelatedTables:!1,tableTemplateOverride:this._getTableTemplateForAttachmentsView(i)})}else e.set({multipleSelectionEnabledOverride:null,relationshipColumnConfigs:te(t,i.id),showAllRelatedTables:!1,tableTemplateOverride:null}),e.hiddenFields.removeMany([K.action,K.attachments])}_getTableTemplateForRelatedTableView(e,t,i){return new $({columnTemplates:[new D({fieldName:t,editable:!1,menuConfig:{selectionMode:"single",icon:"chevron-down",items:this._extractFieldColumnInfosFromTableTemplate(e.viewModel).map(([s,n])=>({selected:s===t,label:n||s,clickFunction:()=>{e.tableTemplateOverride=this._getTableTemplateForRelatedTableView(e,s,i)}}))},resizable:!1}),new H({autoWidth:!1,collapsed:!0,flexGrow:0,label:"",resizable:!1,relationshipId:i,width:ne})]})}_getTableTemplateForShowAllTablesView(e,t){const i=[new D({fieldName:t,editable:!1,menuConfig:{selectionMode:"single",icon:"chevron-down",items:this._extractFieldColumnInfosFromTableTemplate(e.viewModel).map(([i,s])=>({selected:i===t,label:s||i,clickFunction:()=>{e.tableTemplateOverride=this._getTableTemplateForShowAllTablesView(e,i)}}))},resizable:!1})];return null!=e.attachmentsViewOptions.objectId&&i.push(new z({attachmentsViewEnabled:!1,autoWidth:!1,flexGrow:0,label:"",resizable:!1,thumbnailsEnabled:!1,width:ne})),new $({columnTemplates:i})}async _onShowPromptCallback(e){const{column:t,objectId:i,oldValue:s,value:n}=e,{_subtypes:l,layer:r}=this;if(!r||!l.length)return void t.cancel();const o=l.find(e=>e.code===n);if(!o)return void t.cancel();const a=Promise.withResolvers(),d=this._createSubtypeEditPrompt(s,o,a),h=!!r.parent&&this.autoSaveEnabled;try{this.showPrompt(d);const e=await a.promise,s=[{fieldName:t.fieldName,value:n}];switch(e){case"update-fields":for(const[e,t]of Object.entries(o.defaultValues))null!=t&&s.push({fieldName:e,value:t});await t.updateItems({objectId:i,updates:s}),h&&this.refresh();break;case"keep-existing":await t.updateItems({objectId:i,updates:s}),h&&this.refresh();break;case"undo":t.cancel()}}finally{this.clearPrompt()}}_createSubtypeEditPrompt(e,t,s){const{_subtypes:n,messages:l,messagesCommon:r}=this,o=n.find(t=>t.code===e)?.name??`${e}`;let a="update-fields";const d=[{label:l.subtypes.useDefaultValuesOption,value:"update-fields"},{label:l.subtypes.keepCurrentValuesOption,value:"keep-existing"}];return{context:"info",title:l.subtypes.changeWarningTitle,message:i(l.subtypes.changeWarning,{originalType:o,newType:t.name}),radios:d,defaultRadioSelection:"update-fields",onRadioSelection:e=>{a=e},actions:{primary:{label:r.apply,action:()=>s.resolve(a),type:"positive"},secondary:{label:r.cancel,type:"neutral",action:()=>s.resolve("undo")}},cancel:()=>s.reject()}}_onShowAttachments({objectId:e}){this.hasPendingEdits||(this.attachmentsViewOptions.objectId=e)}_getTableTemplateForAttachmentsView(e){return new $({columnTemplates:[new D({fieldName:e,editable:!1,menuConfig:{selectionMode:"single",icon:"chevron-down",items:this._extractFieldColumnInfosFromTableTemplate(this).map(([t,i])=>({selected:t===e,label:i||t,clickFunction:()=>{this.tableTemplateOverride=this._getTableTemplateForAttachmentsView(t)}}))},resizable:!1}),new z({attachmentsViewEnabled:!1,autoWidth:!1,flexGrow:0,label:"",resizable:!1,thumbnailsEnabled:!1,width:ne})]})}_extractFieldColumnInfosFromTableTemplate(e){const t=e??this,{layer:i,tableTemplate:s}=t;return s?s.columnTemplates.filter(({type:e})=>"field"===e||"column"===e).map(({fieldName:e,label:t})=>{if(null!=t&&""!==t)return[e,t];const s=i?.fieldsIndex.get(e);return[e,s&&y(s,i)]}):i?.fields.map(e=>[e.name,y(e,i)])??[]}_getDefaultLayerDisplayField(e){const{displayField:t,objectIdField:i}=e;return t&&""!==t.trim()?t:i||(e.fields.length?e.fields[0].name:"")}_getIndexOfFirstFrozenToEndColumn(){const e=this.columns.findIndex(e=>e.frozenToEnd);return e>-1?e:void 0}_logWarning(e,t){t?a.getLogger(this).warnOnce(e):a.getLogger(this).warn(e)}_logTemplateWarning(e){this._logWarning(`${e} Skipped generating a column using the provided template.`,!0)}_onCellInteraction(e){null!=e&&null!=this.attachmentsViewOptions.objectId&&this.highlightIds.add(e)}};e([b()],le.prototype,"_defaultHiddenFields",null),e([b()],le.prototype,"_effectiveTableTemplate",null),e([b()],le.prototype,"_effectiveAttributeTableTemplate",null),e([b()],le.prototype,"_subtypes",null),e([b()],le.prototype,"activeFilters",null),e([b({readOnly:!0})],le.prototype,"activeSortOrders",null),e([b()],le.prototype,"allRelatedTablesVisible",null),e([b()],le.prototype,"attachmentsColumns",null),e([b()],le.prototype,"attachmentsEnabled",null),e([b()],le.prototype,"attachmentsViewOptions",void 0),e([b({type:_})],le.prototype,"attributeTableTemplate",void 0),e([b()],le.prototype,"autoRefreshEnabled",void 0),e([b()],le.prototype,"autoSaveEnabled",null),e([b()],le.prototype,"canAddRelatedFeature",null),e([b()],le.prototype,"clearPrompt",null),e([b({readOnly:!0})],le.prototype,"columns",void 0),e([b()],le.prototype,"dataProvider",void 0),e([b()],le.prototype,"defaultSelectionManager",null),e([b()],le.prototype,"definitionExpression",null),e([b()],le.prototype,"effectiveSelectionManager",null),e([b()],le.prototype,"fieldColumns",null),e([b()],le.prototype,"filterByViewExtent",null),e([b()],le.prototype,"filterByLayerScaleRange",null),e([b({types:T})],le.prototype,"filterGeometry",null),e([b()],le.prototype,"filterBySelectionEnabled",null),e([b({readOnly:!0})],le.prototype,"grid",void 0),e([b()],le.prototype,"hasContingentValues",null),e([b()],le.prototype,"hasInvalidPendingEdits",null),e([b()],le.prototype,"hasPendingEdits",null),e([b()],le.prototype,"hiddenFields",null),e([b()],le.prototype,"highlightEnabled",null),e([b()],le.prototype,"initialSize",null),e([b()],le.prototype,"isQueryingOrSyncing",null),e([b()],le.prototype,"isSyncingAttachments",null),e([b()],le.prototype,"layer",null),e([b()],le.prototype,"layers",void 0),e([b()],le.prototype,"layerFieldConfigurations",null),e([b()],le.prototype,"layerView",null),e([b()],le.prototype,"menuConfig",void 0),e([b()],le.prototype,"messages",void 0),e([b(),se("esri/t9n/common")],le.prototype,"messagesCommon",void 0),e([b(),se("esri/core/t9n/Units")],le.prototype,"messagesUnits",void 0),e([b(),se("esri/widgets/support/t9n/uriUtils")],le.prototype,"messagesURIUtils",void 0),e([b()],le.prototype,"outFields",null),e([b()],le.prototype,"pendingEditsCount",null),e([b()],le.prototype,"prompt",void 0),e([b()],le.prototype,"relatedRecordsEnabled",null),e([b()],le.prototype,"relatedTable",null),e([b()],le.prototype,"relatedTableHasContingentValues",null),e([b()],le.prototype,"relatedTables",void 0),e([b()],le.prototype,"relationship",null),e([b()],le.prototype,"relationshipColumnConfigs",void 0),e([b()],le.prototype,"relationshipColumns",null),e([b()],le.prototype,"relationshipConfig",null),e([b()],le.prototype,"relationshipInfos",null),e([b()],le.prototype,"relationships",null),e([b()],le.prototype,"returnGeometryEnabled",null),e([b()],le.prototype,"returnMEnabled",null),e([b()],le.prototype,"returnZEnabled",null),e([b()],le.prototype,"selectionManager",null),e([b()],le.prototype,"selectionSource",null),e([b()],le.prototype,"showAllRelatedTables",null),e([b()],le.prototype,"showPrompt",null),e([b()],le.prototype,"showRelatedTableCallback",void 0),e([b({readOnly:!0,type:k})],le.prototype,"store",void 0),e([b()],le.prototype,"supportsAttachments",null),e([b()],le.prototype,"supportsAddAttachments",null),e([b()],le.prototype,"supportsDeleteAttachments",null),e([b()],le.prototype,"supportsResizeAttachments",null),e([b()],le.prototype,"supportsUpdateAttachments",null),e([b()],le.prototype,"syncTemplateOnChangesEnabled",void 0),e([b()],le.prototype,"syncViewSelection",null),e([b()],le.prototype,"tableController",void 0),e([b()],le.prototype,"tableParent",void 0),e([b({type:$})],le.prototype,"tableTemplate",void 0),e([b()],le.prototype,"tableTemplateOverride",void 0),e([b({type:S})],le.prototype,"timeExtent",null),e([b()],le.prototype,"timeZone",null),e([b()],le.prototype,"view",null),le=e([f("esri.widgets.FeatureTable.FeatureTableViewModel")],le);const re=le;export{re as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clone as t}from"../../../core/lang.js";import{getStroke as o,getFill as e}from"../../../symbols/support/gfxUtils.js";import{getSymbolLayerFill as r}from"../../../symbols/support/previewSymbol3D.js";const s={HH:315,HL:45,LL:135,LH:225},l={2:[["HL","HH"],["LL","LH"]],3:[["HL","HM","HH"],["ML","MM","MH"],["LL","LM","LH"]],4:[["HL","HM1","HM2","HH"],["M2L","M2M1","M2M2","M2H"],["M1L","M1M1","M1M2","M1H"],["LL","LM1","LM2","LH"]]};function n(t){if(!t)return;const{type:s}=t;if(s.includes("3d"))return r(t.symbolLayers.at(0));if("simple-line"===s){const e=o(t);return e&&e.color}if("simple-marker"===t.type&&("x"===t.style||"cross"===t.style)){const e=o(t);return e&&e.color}return e(t)}function H(t,o){const e=o.HH.label,r=o.LL.label,s=o.HL.label,l=o.LH.label;switch(t){case"HH":default:return{top:e,bottom:r,left:s,right:l};case"HL":return{top:s,bottom:l,left:r,right:e};case"LL":return{top:r,bottom:e,left:l,right:s};case"LH":return{top:l,bottom:s,left:e,right:r}}}function L(o,e){const r=[],s=o.length**.5,l=t(o),n=(e||"HH").split(""),H=n[0],L="H"===n[1];for(;l.length;){const t=[];for(;t.length<s;)t.push(l.shift());L&&t.reverse(),r.push(t)}return"L"===H&&r.reverse(),r}function i(t){const{focus:o,infos:e,numClasses:r}=t,s=l[r],L={};e.forEach(t=>{L[t.value]={label:t.label,fill:n(t.symbol)}});const i=[];for(let l=0;l<r;l++){const t=[];for(let o=0;o<r;o++){const e=L[s[l][o]];t.push(e.fill)}i.push(t)}return{type:"relationship-ramp",numClasses:r,focus:o,colors:i,labels:H(o,L),rotation:u(o)}}function u(t){let o=s[t];return t&&null==o&&(o=s.HH),o||0}export{L as getRelationshipRampColors2D,i as getRelationshipRampElement,u as getRotationAngleForFocus};
2
+ import{getStroke as t,getFill as o}from"../../../symbols/support/gfxUtils.js";import{getSymbolLayerFill as e}from"../../../symbols/support/previewSymbol3D.js";const l={HH:315,HL:45,LL:135,LH:225},r={2:[["HL","HH"],["LL","LH"]],3:[["HL","HM","HH"],["ML","MM","MH"],["LL","LM","LH"]],4:[["HL","HM1","HM2","HH"],["M2L","M2M1","M2M2","M2H"],["M1L","M1M1","M1M2","M1H"],["LL","LM1","LM2","LH"]]};function s(l){if(!l)return;const{type:r}=l;if(r.includes("3d"))return e(l.symbolLayers.at(0));if("simple-line"===r){const o=t(l);return o&&o.color}if("simple-marker"===l.type&&("x"===l.style||"cross"===l.style)){const o=t(l);return o&&o.color}return o(l)}function n(t,o){const e=o.HH.label,l=o.LL.label,r=o.HL.label,s=o.LH.label;switch(t){case"HH":default:return{top:e,bottom:l,left:r,right:s};case"HL":return{top:r,bottom:s,left:l,right:e};case"LL":return{top:l,bottom:e,left:s,right:r};case"LH":return{top:s,bottom:r,left:e,right:l}}}function H(t){const{focus:o,infos:e,numClasses:l}=t,H=r[l],i={};e.forEach(t=>{i[t.value]={label:t.label,fill:s(t.symbol)}});const u=[];for(let r=0;r<l;r++){const t=[];for(let o=0;o<l;o++){const e=i[H[r][o]];t.push(e.fill)}u.push(t)}return{type:"relationship-ramp",numClasses:l,focus:o,colors:u,labels:n(o,i),rotation:L(o)}}function L(t){let o=l[t];return t&&null==o&&(o=l.HH),o||0}export{H as getRelationshipRampElement,L as getRotationAngleForFocus};