@arcgis/core 4.32.0-next.20250129 → 4.32.0-next.20250131

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 (1122) hide show
  1. package/WebScene.js +1 -1
  2. package/applications/Components/SelectionOperation.d.ts +1 -2
  3. package/applications/Components/SketchTooltipControls.d.ts +1 -2
  4. package/applications/Components/basemapUtils.d.ts +1 -2
  5. package/applications/Components/drawUtils.d.ts +1 -2
  6. package/applications/Components/fontUtils.d.ts +1 -2
  7. package/applications/Components/getDefaultUnits.d.ts +1 -2
  8. package/applications/Components/gfxUtils.d.ts +1 -2
  9. package/applications/Components/layerOriginUtils.d.ts +4 -2
  10. package/applications/Components/layersEffectsJsonUtils.d.ts +1 -2
  11. package/applications/Components/previewSymbol2D.d.ts +1 -2
  12. package/applications/Components/reactiveUtils.d.ts +1 -2
  13. package/applications/Components/styleUtils.d.ts +1 -2
  14. package/applications/Components/svgUtils.d.ts +3 -2
  15. package/applications/Components/webStyleSymbolUtils.d.ts +1 -2
  16. package/applications/Excalibur/videoViewUtils.d.ts +1 -2
  17. package/applications/ExperienceBuilder/sketchUtils.d.ts +3 -2
  18. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +2 -2
  19. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +3 -2
  20. package/applications/KnowledgeStudio/resourceSerializationUtils.d.ts +4 -2
  21. package/applications/MapViewer/mediaUtils.d.ts +2 -2
  22. package/applications/MapViewer/templateUtils.d.ts +4 -2
  23. package/applications/SceneViewer/colorUtils.d.ts +1 -2
  24. package/applications/SceneViewer/devEnvironmentUtils.d.ts +3 -2
  25. package/applications/SceneViewer/layerUtils.d.ts +2 -2
  26. package/applications/SceneViewer/sceneViewerUtils.d.ts +15 -2
  27. package/applications/SceneViewer/symbolUtils.d.ts +1 -2
  28. package/applications/Urban/meshUtils.d.ts +1 -2
  29. package/applications/WebEditor/sketchUtils.d.ts +2 -2
  30. package/arcade.d.ts +2 -2
  31. package/assets/components/assets/icon/hammerCoin16.json +1 -0
  32. package/assets/components/assets/icon/hammerCoin24.json +1 -0
  33. package/assets/components/assets/icon/hammerCoin32.json +1 -0
  34. package/assets/components/assets/icon/hammerLock16.json +1 -0
  35. package/assets/components/assets/icon/hammerLock24.json +1 -0
  36. package/assets/components/assets/icon/hammerLock32.json +1 -0
  37. package/assets/esri/core/workers/RemoteClient.js +1 -1
  38. package/assets/esri/core/workers/chunks/{474c4f4c3b8649a807d9.js → 07c5f3fc475c57f5a7a7.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{41f7287832d407f13ce5.js → 09b77f82c22530b44daa.js} +1 -1
  40. package/assets/esri/core/workers/chunks/22e11a8abc70b6571a2b.js +1 -0
  41. package/assets/esri/core/workers/chunks/{6eb829a7959df2269b0e.js → 24c94f97a76646d415ae.js} +1 -1
  42. package/assets/esri/core/workers/chunks/25c8cc30faade043c8dc.js.LICENSE.txt +1 -1
  43. package/assets/esri/core/workers/chunks/2ff63a71213f618377d6.js +1 -0
  44. package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
  45. package/assets/esri/core/workers/chunks/34d464dacee52739c98c.js +1 -0
  46. package/assets/esri/core/workers/chunks/380d37ceb8cf52bad190.js +1 -0
  47. package/assets/esri/core/workers/chunks/39e38aab86dcee3f79be.js +1 -0
  48. package/assets/esri/core/workers/chunks/{1e17b693f2d974c3de2d.js → 3ec51b75d1a86dad6cb1.js} +1 -1
  49. package/assets/esri/core/workers/chunks/4263eee3247aaf4e64bf.js +1 -0
  50. package/assets/esri/core/workers/chunks/{b6440ddc595ba2ba8f8e.js → 448ee44c7f594e5b2551.js} +1 -1
  51. package/assets/esri/core/workers/chunks/476205ee4414ed80666a.js +1 -0
  52. package/assets/esri/core/workers/chunks/4b56c0c109e10d7409b8.js +1 -0
  53. package/assets/esri/core/workers/chunks/4da62cfe5e97fbc99306.js +1 -0
  54. package/assets/esri/core/workers/chunks/{1e1306527fb38c5894eb.js → 5a536de1ecae424bad05.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{b65dcdf5818ee04aa7e0.js → 5adeb979f178944b9ce5.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{f09c95c3d79205ee5a84.js → 5e9bf6d0db82526b8a8c.js} +5 -5
  57. package/assets/esri/core/workers/chunks/{429d19f4b59d9d265c2c.js → 6e25742ceedea7fb1b97.js} +1 -1
  58. package/assets/esri/core/workers/chunks/6e8905f20101c1f4509d.js.LICENSE.txt +1 -1
  59. package/assets/esri/core/workers/chunks/{a6e96d0d9ac3224c8f00.js → 6ef2514a6b7bbfb8e37d.js} +1 -1
  60. package/assets/esri/core/workers/chunks/72cf9192292e5c85c6df.js.LICENSE.txt +1 -1
  61. package/assets/esri/core/workers/chunks/{a591906154e12eb4fa43.js → 7810579a5a780933cdc9.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{fa0d968733d581bc2e4d.js → 7d120f8b01fe719eb257.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{09a897c342a45ef9125c.js → 7d3a441d2eb18d709ef9.js} +2 -2
  64. package/assets/esri/core/workers/chunks/{09a897c342a45ef9125c.js.LICENSE.txt → 7d3a441d2eb18d709ef9.js.LICENSE.txt} +1 -1
  65. package/assets/esri/core/workers/chunks/{d81fea1d36e7c2fbdffd.js → 881ddbdeb40336208e90.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{ec9d5af8887854e821c8.js → 88cbaa91c495d86f4bb0.js} +1 -1
  67. package/assets/esri/core/workers/chunks/af2a70d33afb12bb536f.js +972 -0
  68. package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
  69. package/assets/esri/core/workers/chunks/{4253b2802abb84afc428.js → b68bddd0c4ca91493543.js} +1 -1
  70. package/assets/esri/core/workers/chunks/bf9bc52a3c559108c19a.js +2 -0
  71. package/assets/esri/core/workers/chunks/{9b687465cc3863e14b29.js.LICENSE.txt → bf9bc52a3c559108c19a.js.LICENSE.txt} +1 -1
  72. package/assets/esri/core/workers/chunks/c249ad935f54d3b49ae3.js +1 -0
  73. package/assets/esri/core/workers/chunks/c4b0e3f7dcad6c7ea620.js +314 -0
  74. package/assets/esri/core/workers/chunks/c94ec324ecad77c53a87.js +1 -0
  75. package/assets/esri/core/workers/chunks/d1678945cf6a58f76863.js +1 -0
  76. package/assets/esri/core/workers/chunks/{9ed1691eab19dfb1cf04.js → d1718ad93e3271b0525e.js} +1 -1
  77. package/assets/esri/core/workers/chunks/d599ba865da87b487b1b.js +1 -0
  78. package/assets/esri/core/workers/chunks/dd46ec81cebe1a0a7b9c.js +1 -0
  79. package/assets/esri/core/workers/chunks/debfb75a94b66b58cbbc.js +1 -0
  80. package/assets/esri/core/workers/chunks/{c6135d2548d4a31298eb.js → e0de91eacf3a3b7eda55.js} +4 -4
  81. package/assets/esri/core/workers/chunks/e444ec05a8a1dfbd21a8.js +1 -0
  82. package/assets/esri/core/workers/chunks/{b84c28fe94b3cd7b480d.js → e4651d577d297386268e.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{c80507443f896dbfaba6.js → e4b80c8f4c45fd78bde1.js} +1 -1
  84. package/assets/esri/core/workers/chunks/f8367c21fa91435c7c53.js +1 -0
  85. package/assets/esri/core/workers/chunks/{d4760e583dfac95dc8a1.js → ffa2b9d70830aed03a8f.js} +1 -1
  86. package/assets/esri/themes/base/_Ui.scss +6 -0
  87. package/assets/esri/themes/base/_core.scss +4 -0
  88. package/assets/esri/themes/base/_mixins.scss +0 -7
  89. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +0 -4
  90. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -2
  91. package/assets/esri/themes/base/widgets/_Bookmarks.scss +0 -4
  92. package/assets/esri/themes/base/widgets/_CatalogLayerList.scss +0 -4
  93. package/assets/esri/themes/base/widgets/_Features.scss +0 -4
  94. package/assets/esri/themes/base/widgets/_FilterBuilder.scss +24 -0
  95. package/assets/esri/themes/base/widgets/_FilterCondition.scss +12 -0
  96. package/assets/esri/themes/base/widgets/_LayerList.scss +0 -4
  97. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +1 -1
  98. package/assets/esri/themes/base/widgets/_TableList.scss +0 -4
  99. package/assets/esri/themes/dark/main.css +1 -1
  100. package/assets/esri/themes/light/main.css +1 -1
  101. package/assets/esri/themes/light/view.css +1 -1
  102. package/assets/esri/views/interactive/tooltip/t9n/Tooltip.json +1 -1
  103. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ar.json +1 -1
  104. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bg.json +1 -1
  105. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bs.json +1 -1
  106. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ca.json +1 -1
  107. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_cs.json +1 -1
  108. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_da.json +1 -1
  109. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_de.json +1 -1
  110. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_el.json +1 -1
  111. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -1
  112. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_es.json +1 -1
  113. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_et.json +1 -1
  114. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fi.json +1 -1
  115. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fr.json +1 -1
  116. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_he.json +1 -1
  117. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hr.json +1 -1
  118. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hu.json +1 -1
  119. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_id.json +1 -1
  120. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_it.json +1 -1
  121. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ja.json +1 -1
  122. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ko.json +1 -1
  123. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lt.json +1 -1
  124. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lv.json +1 -1
  125. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_nl.json +1 -1
  126. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_no.json +1 -1
  127. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pl.json +1 -1
  128. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-BR.json +1 -1
  129. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-PT.json +1 -1
  130. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ro.json +1 -1
  131. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ru.json +1 -1
  132. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sk.json +1 -1
  133. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sl.json +1 -1
  134. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sr.json +1 -1
  135. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sv.json +1 -1
  136. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_th.json +1 -1
  137. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_tr.json +1 -1
  138. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_uk.json +1 -1
  139. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_vi.json +1 -1
  140. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-CN.json +1 -1
  141. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-HK.json +1 -1
  142. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-TW.json +1 -1
  143. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
  144. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
  145. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
  146. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
  147. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
  148. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
  149. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
  150. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
  151. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
  152. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
  153. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
  154. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
  155. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
  156. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
  157. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
  158. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
  159. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
  160. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
  161. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
  162. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
  163. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
  164. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
  165. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
  166. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
  167. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
  168. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
  169. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
  170. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
  171. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
  172. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
  173. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
  174. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
  175. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
  176. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
  177. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
  178. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
  179. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
  180. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
  181. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
  182. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
  183. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
  184. package/assets/esri/widgets/Directions/t9n/Directions.json +1 -1
  185. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  186. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  187. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  188. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  189. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  190. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  191. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  192. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  193. package/assets/esri/widgets/Directions/t9n/Directions_en.json +1 -1
  194. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  195. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  196. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  197. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  198. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  199. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  200. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  201. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  202. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  203. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  204. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  205. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  206. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  207. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  208. package/assets/esri/widgets/Directions/t9n/Directions_no.json +1 -1
  209. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  210. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  211. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  212. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  213. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  214. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  215. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  216. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  217. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  218. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  219. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  220. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  221. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  222. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  223. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  224. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  225. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  226. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  227. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  228. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  229. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  230. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  231. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  232. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  233. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  234. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  235. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  236. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  237. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  238. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  239. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  240. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  241. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  242. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  243. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  244. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  245. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  246. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  247. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  248. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  249. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  250. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  251. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  252. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  253. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  254. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  255. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  256. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  257. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  258. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  259. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  260. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  261. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  262. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  263. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  264. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  265. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  266. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm.json +1 -1
  267. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
  268. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
  269. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
  270. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
  271. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
  272. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
  273. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
  274. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
  275. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_en.json +1 -1
  276. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
  277. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
  278. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
  279. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
  280. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
  281. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
  282. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
  283. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
  284. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
  285. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
  286. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
  287. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
  288. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
  289. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
  290. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_no.json +1 -1
  291. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
  292. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
  293. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
  294. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
  295. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
  296. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
  297. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
  298. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
  299. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
  300. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
  301. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
  302. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
  303. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
  304. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
  305. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
  306. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
  307. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  308. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  309. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  310. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  311. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  312. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  313. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  314. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  315. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  316. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  317. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  318. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  319. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  320. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  321. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  322. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  323. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  324. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  325. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  326. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  327. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  328. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  329. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  330. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  331. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  332. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  333. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  334. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  335. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  336. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  337. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  338. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  339. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  340. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  341. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  342. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  343. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  344. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  345. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  346. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  347. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  348. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder.json +1 -0
  349. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_en.json +1 -0
  350. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition.json +1 -0
  351. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_en.json +1 -0
  352. package/chunks/AtmosphereCompositing.glsl.js +2 -2
  353. package/chunks/BlendLayers.glsl.js +1 -1
  354. package/chunks/BlendWeights.glsl.js +1 -1
  355. package/chunks/BloomBlur.glsl.js +23 -23
  356. package/chunks/BloomComposition.glsl.js +3 -3
  357. package/chunks/BloomDepthAdjust.glsl.js +2 -2
  358. package/chunks/Blur.glsl.js +1 -1
  359. package/chunks/ChapmanAtmosphere.glsl.js +2 -2
  360. package/chunks/CheckerBoard.glsl.js +2 -2
  361. package/chunks/Clouds.glsl.js +14 -14
  362. package/chunks/CloudsComposition.glsl.js +1 -1
  363. package/chunks/ColorMaterial.glsl.js +1 -1
  364. package/chunks/ComponentShader.glsl.js +4 -4
  365. package/chunks/Compositing.glsl.js +2 -2
  366. package/chunks/DefaultMaterial.glsl.js +16 -15
  367. package/chunks/EdgeDetect.glsl.js +2 -2
  368. package/chunks/EdgeShader.glsl.js +2 -2
  369. package/chunks/FocusAreaColor.glsl.js +2 -2
  370. package/chunks/FocusAreaMask.glsl.js +1 -1
  371. package/chunks/Fog.glsl.js +3 -3
  372. package/chunks/HUDCompositing.glsl.js +1 -1
  373. package/chunks/HUDMaterial.glsl.js +24 -24
  374. package/chunks/Haze.glsl.js +3 -3
  375. package/chunks/HazeCompositing.glsl.js +2 -2
  376. package/chunks/Heatmap.glsl.js +1 -1
  377. package/chunks/HeatmapDensity.glsl.js +5 -5
  378. package/chunks/HighlightApply.glsl.js +2 -2
  379. package/chunks/HighlightDownsample.glsl.js +2 -2
  380. package/chunks/HighlightToSingle.glsl.js +2 -2
  381. package/chunks/ImageMaterial.glsl.js +4 -4
  382. package/chunks/LaserlinePath.glsl.js +1 -1
  383. package/chunks/Laserlines.glsl.js +1 -1
  384. package/chunks/LineCallout.glsl.js +1 -1
  385. package/chunks/LineMarker.glsl.js +8 -8
  386. package/chunks/Magnifier.glsl.js +4 -4
  387. package/chunks/MeasurementArrow.glsl.js +2 -2
  388. package/chunks/NativeLine.glsl.js +4 -4
  389. package/chunks/NoiseTextureAtlas.glsl.js +34 -34
  390. package/chunks/OITBlend.glsl.js +3 -3
  391. package/chunks/OverlayCompositing.glsl.js +1 -1
  392. package/chunks/Path.glsl.js +9 -9
  393. package/chunks/Pattern.glsl.js +3 -3
  394. package/chunks/PointRenderer.glsl.js +1 -1
  395. package/chunks/Precipitation.glsl.js +1 -1
  396. package/chunks/RasterColorizer.glsl.js +9 -9
  397. package/chunks/RealisticTree.glsl.js +3 -3
  398. package/chunks/RibbonLine.glsl.js +32 -32
  399. package/chunks/SSAO.glsl.js +2 -2
  400. package/chunks/SSAOBlur.glsl.js +1 -1
  401. package/chunks/ShadedColorMaterial.glsl.js +3 -3
  402. package/chunks/ShadowCastAccumulate.glsl.js +2 -2
  403. package/chunks/ShadowCastVisualize.glsl.js +4 -4
  404. package/chunks/ShadowHighlight.glsl.js +2 -2
  405. package/chunks/SimpleAtmosphere.glsl.js +8 -8
  406. package/chunks/SingleHighlightApply.glsl.js +1 -1
  407. package/chunks/SingleHighlightBlur.glsl.js +6 -7
  408. package/chunks/SlicePlaneMaterial.glsl.js +2 -2
  409. package/chunks/Stars.glsl.js +2 -2
  410. package/chunks/Terrain.glsl.js +2 -2
  411. package/chunks/TextureOnly.glsl.js +2 -2
  412. package/chunks/Viewshed.glsl.js +2 -2
  413. package/chunks/WaterSurface.glsl.js +7 -7
  414. package/core/accessorSupport/decorators.d.ts +4 -2
  415. package/core/jsonMap.js +1 -1
  416. package/core/lang.d.ts +1 -2
  417. package/core/libs/gl-matrix-2/factories/vec2f64.js +1 -1
  418. package/core/promiseUtils.d.ts +5 -2
  419. package/core/quantity.d.ts +3 -2
  420. package/core/reactiveUtils.d.ts +5 -2
  421. package/core/scheduling.d.ts +2 -2
  422. package/core/sql.d.ts +1 -2
  423. package/core/units.d.ts +9 -2
  424. package/core/urlUtils.d.ts +5 -2
  425. package/core/workers.d.ts +1 -2
  426. package/editing/templateUtils.js +1 -1
  427. package/form/elements/inputs.d.ts +21 -2
  428. package/form/elements.d.ts +13 -2
  429. package/geometry/coordinateFormatter.d.ts +11 -2
  430. package/geometry/geometryEngine.d.ts +37 -2
  431. package/geometry/geometryEngineAsync.d.ts +37 -2
  432. package/geometry/operators/affineTransformOperator.d.ts +3 -2
  433. package/geometry/operators/alphaShapeOperator.d.ts +3 -2
  434. package/geometry/operators/areaOperator.d.ts +2 -2
  435. package/geometry/operators/autoCompleteOperator.d.ts +2 -2
  436. package/geometry/operators/boundaryOperator.d.ts +3 -2
  437. package/geometry/operators/bufferOperator.d.ts +3 -2
  438. package/geometry/operators/centroidOperator.d.ts +2 -2
  439. package/geometry/operators/clipOperator.d.ts +3 -2
  440. package/geometry/operators/containsOperator.d.ts +3 -2
  441. package/geometry/operators/convexHullOperator.d.ts +4 -2
  442. package/geometry/operators/crossesOperator.d.ts +3 -2
  443. package/geometry/operators/cutOperator.d.ts +2 -2
  444. package/geometry/operators/densifyOperator.d.ts +3 -2
  445. package/geometry/operators/differenceOperator.d.ts +3 -2
  446. package/geometry/operators/disjointOperator.d.ts +3 -2
  447. package/geometry/operators/distanceOperator.d.ts +2 -2
  448. package/geometry/operators/equalsOperator.d.ts +3 -2
  449. package/geometry/operators/extendOperator.d.ts +2 -2
  450. package/geometry/operators/generalizeOperator.d.ts +3 -2
  451. package/geometry/operators/geodesicBufferOperator.d.ts +5 -2
  452. package/geometry/operators/geodesicProximityOperator.d.ts +6 -2
  453. package/geometry/operators/geodeticAreaOperator.d.ts +4 -2
  454. package/geometry/operators/geodeticDensifyOperator.d.ts +5 -2
  455. package/geometry/operators/geodeticDistanceOperator.d.ts +4 -2
  456. package/geometry/operators/geodeticLengthOperator.d.ts +4 -2
  457. package/geometry/operators/graphicBufferOperator.d.ts +2 -2
  458. package/geometry/operators/integrateOperator.d.ts +2 -2
  459. package/geometry/operators/intersectionOperator.d.ts +4 -2
  460. package/geometry/operators/intersectsOperator.d.ts +3 -2
  461. package/geometry/operators/isNearOperator.d.ts +2 -2
  462. package/geometry/operators/labelPointOperator.d.ts +3 -2
  463. package/geometry/operators/lengthOperator.d.ts +2 -2
  464. package/geometry/operators/linesToPolygonsOperator.d.ts +2 -2
  465. package/geometry/operators/locateBetweenOperator.d.ts +2 -2
  466. package/geometry/operators/minimumBoundingCircleOperator.d.ts +3 -2
  467. package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
  468. package/geometry/operators/offsetOperator.d.ts +3 -2
  469. package/geometry/operators/overlapsOperator.d.ts +3 -2
  470. package/geometry/operators/polygonOverlayOperator.d.ts +2 -2
  471. package/geometry/operators/polygonSlicerOperator.d.ts +4 -2
  472. package/geometry/operators/projectOperator.d.ts +5 -2
  473. package/geometry/operators/proximityOperator.d.ts +4 -2
  474. package/geometry/operators/relateOperator.d.ts +4 -2
  475. package/geometry/operators/reshapeOperator.d.ts +2 -2
  476. package/geometry/operators/shapePreservingProjectOperator.d.ts +5 -2
  477. package/geometry/operators/simplifyOperator.d.ts +4 -2
  478. package/geometry/operators/support/geographicTransformationUtils.d.ts +4 -2
  479. package/geometry/operators/symmetricDifferenceOperator.d.ts +3 -2
  480. package/geometry/operators/touchesOperator.d.ts +3 -2
  481. package/geometry/operators/unionOperator.d.ts +3 -2
  482. package/geometry/operators/withinOperator.d.ts +3 -2
  483. package/geometry/projection.d.ts +5 -2
  484. package/geometry/support/geodesicUtils.d.ts +5 -2
  485. package/geometry/support/jsonUtils.d.ts +2 -2
  486. package/geometry/support/meshUtils.d.ts +6 -2
  487. package/geometry/support/normalizeUtils.d.ts +2 -2
  488. package/geometry/support/typeUtils.js +1 -1
  489. package/geometry/support/webMercatorUtils.d.ts +6 -2
  490. package/geometry.d.ts +13 -2
  491. package/interfaces.d.ts +292 -126
  492. package/intl.d.ts +16 -2
  493. package/kernel.d.ts +2 -2
  494. package/layers/FeatureLayer.js +1 -1
  495. package/layers/LinkChartLayer.js +1 -1
  496. package/layers/catalog/catalogUtils.d.ts +2 -2
  497. package/layers/graphics/OptimizedGeometry.js +1 -1
  498. package/layers/graphics/dehydratedFeatures.js +1 -1
  499. package/layers/graphics/sources/ParquetSource.js +1 -1
  500. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  501. package/layers/knowledgeGraph/cypherUtils.d.ts +1 -2
  502. package/layers/knowledgeGraph/layerUtils.js +1 -1
  503. package/layers/knowledgeGraph/supportUtils.d.ts +4 -2
  504. package/layers/mixins/APIKeyMixin.d.ts +1 -1
  505. package/layers/mixins/ArcGISCachedService.d.ts +1 -1
  506. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  507. package/layers/mixins/ArcGISMapService.d.ts +1 -1
  508. package/layers/mixins/BlendLayer.d.ts +1 -1
  509. package/layers/mixins/CustomParametersMixin.d.ts +1 -1
  510. package/layers/mixins/DisplayFilteredLayer.d.ts +1 -1
  511. package/layers/mixins/FeatureEffectLayer.d.ts +1 -1
  512. package/layers/mixins/FeatureLayerBase.d.ts +1 -1
  513. package/layers/mixins/FeatureReductionLayer.d.ts +1 -1
  514. package/layers/mixins/ImageryTileMixin.d.ts +1 -1
  515. package/layers/mixins/OperationalLayer.d.ts +1 -1
  516. package/layers/mixins/OrderedLayer.d.ts +1 -1
  517. package/layers/mixins/PortalLayer.d.ts +1 -1
  518. package/layers/mixins/PublishableLayer.d.ts +1 -1
  519. package/layers/mixins/RasterPresetRendererMixin.d.ts +1 -1
  520. package/layers/mixins/RefreshableLayer.d.ts +1 -1
  521. package/layers/mixins/ScaleRangeLayer.d.ts +1 -1
  522. package/layers/mixins/SceneService.d.ts +1 -1
  523. package/layers/mixins/SublayersOwner.d.ts +1 -1
  524. package/layers/mixins/TemporalLayer.d.ts +1 -1
  525. package/layers/mixins/TemporalSceneLayer.d.ts +1 -1
  526. package/layers/ogc/wcsUtils.d.ts +1 -2
  527. package/layers/ogc/wfsUtils.d.ts +2 -2
  528. package/layers/orientedImagery/transformations/imageToWorld.d.ts +1 -2
  529. package/layers/orientedImagery/transformations/utils.js +1 -1
  530. package/layers/orientedImagery/transformations/worldToImage.d.ts +1 -2
  531. package/layers/support/Sublayer.js +1 -1
  532. package/layers/support/arcadeUtils.d.ts +1 -2
  533. package/layers/support/csvUtils.d.ts +1 -2
  534. package/layers/support/domainUtils.js +1 -1
  535. package/layers/support/fieldUtils.d.ts +8 -2
  536. package/layers/support/parquetLayerUtils.js +1 -1
  537. package/layers/support/rasterFunctionConstants.d.ts +15 -2
  538. package/layers/support/rasterFunctionUtils.d.ts +105 -2
  539. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  540. package/package.json +3 -3
  541. package/pointCloudRenderers.d.ts +9 -2
  542. package/popup/content.d.ts +17 -2
  543. package/popup/support/UtilityNetworkAssociationType.js +1 -1
  544. package/rasterRenderers.d.ts +14 -2
  545. package/renderers/mixins/VisualVariablesMixin.d.ts +1 -1
  546. package/renderers/support/jsonUtils.d.ts +1 -2
  547. package/renderers/support/utils.d.ts +2 -2
  548. package/renderers.d.ts +16 -2
  549. package/rest/closestFacility.d.ts +1 -2
  550. package/rest/featureService/utils.d.ts +1 -2
  551. package/rest/find.d.ts +1 -2
  552. package/rest/geometryService.d.ts +21 -2
  553. package/rest/geoprocessor.d.ts +2 -2
  554. package/rest/identify.d.ts +1 -2
  555. package/rest/imageService.d.ts +19 -2
  556. package/rest/knowledgeGraphService.d.ts +11 -2
  557. package/rest/locator.d.ts +4 -2
  558. package/rest/networkService.d.ts +1 -2
  559. package/rest/networks/queryAssociations.d.ts +1 -2
  560. package/rest/networks/synthesizeAssociationGeometries.d.ts +1 -2
  561. package/rest/networks/trace.d.ts +1 -2
  562. package/rest/places.d.ts +3 -2
  563. package/rest/print.d.ts +2 -2
  564. package/rest/query.d.ts +11 -2
  565. package/rest/route.d.ts +1 -2
  566. package/rest/serviceArea.d.ts +1 -2
  567. package/rest/symbolService.d.ts +1 -2
  568. package/smartMapping/labels/bins.d.ts +1 -2
  569. package/smartMapping/labels/clusters.d.ts +1 -2
  570. package/smartMapping/popup/clusters.d.ts +1 -2
  571. package/smartMapping/popup/templates.d.ts +1 -2
  572. package/smartMapping/raster/renderers/classBreaks.d.ts +1 -2
  573. package/smartMapping/raster/renderers/colormap.d.ts +1 -2
  574. package/smartMapping/raster/renderers/flow.d.ts +1 -2
  575. package/smartMapping/raster/renderers/rgb.d.ts +1 -2
  576. package/smartMapping/raster/renderers/shadedRelief.d.ts +1 -2
  577. package/smartMapping/raster/renderers/stretch.d.ts +1 -2
  578. package/smartMapping/raster/renderers/uniqueValue.d.ts +1 -2
  579. package/smartMapping/raster/renderers/vectorField.d.ts +1 -2
  580. package/smartMapping/raster/support/colorRamps.d.ts +5 -2
  581. package/smartMapping/raster/support/utils.d.ts +2 -2
  582. package/smartMapping/renderers/color.d.ts +6 -2
  583. package/smartMapping/renderers/dotDensity.d.ts +1 -2
  584. package/smartMapping/renderers/dotDensity.js +1 -1
  585. package/smartMapping/renderers/heatmap.d.ts +2 -2
  586. package/smartMapping/renderers/heatmap.js +1 -1
  587. package/smartMapping/renderers/location.d.ts +1 -2
  588. package/smartMapping/renderers/opacity.d.ts +1 -2
  589. package/smartMapping/renderers/pieChart.d.ts +2 -2
  590. package/smartMapping/renderers/predominance.d.ts +1 -2
  591. package/smartMapping/renderers/relationship.d.ts +2 -2
  592. package/smartMapping/renderers/size.d.ts +5 -2
  593. package/smartMapping/renderers/support/rendererUtils.d.ts +1 -2
  594. package/smartMapping/renderers/type.d.ts +2 -2
  595. package/smartMapping/renderers/univariateColorSize.d.ts +2 -2
  596. package/smartMapping/statistics/heatmapStatistics.js +1 -1
  597. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  598. package/smartMapping/statistics/support/ageUtils.d.ts +1 -2
  599. package/smartMapping/statistics/support/predominanceUtils.d.ts +1 -2
  600. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  601. package/smartMapping/support/adapters/support/layerUtils.js +1 -1
  602. package/smartMapping/support/adapters/support/utils.js +1 -1
  603. package/smartMapping/support/utils.js +1 -1
  604. package/smartMapping/symbology/color.d.ts +7 -2
  605. package/smartMapping/symbology/dotDensity.d.ts +4 -2
  606. package/smartMapping/symbology/flow.d.ts +5 -2
  607. package/smartMapping/symbology/heatmap.d.ts +5 -2
  608. package/smartMapping/symbology/location.d.ts +3 -2
  609. package/smartMapping/symbology/pieChart.d.ts +5 -2
  610. package/smartMapping/symbology/predominance.d.ts +5 -2
  611. package/smartMapping/symbology/relationship.d.ts +5 -2
  612. package/smartMapping/symbology/size.d.ts +3 -2
  613. package/smartMapping/symbology/support/colorRamps.d.ts +4 -2
  614. package/smartMapping/symbology/type.d.ts +5 -2
  615. package/support/LayersMixin.d.ts +1 -1
  616. package/support/TablesMixin.d.ts +1 -1
  617. package/support/basemapDefinitions.js +1 -1
  618. package/support/featureFlags.js +1 -1
  619. package/support/popupUtils.d.ts +4 -2
  620. package/support/revision.js +1 -1
  621. package/support/timeUtils.d.ts +3 -2
  622. package/symbols/support/cimConversionUtils.d.ts +1 -2
  623. package/symbols/support/cimSymbolUtils.d.ts +6 -2
  624. package/symbols/support/jsonUtils.d.ts +1 -2
  625. package/symbols/support/symbolUtils.d.ts +7 -2
  626. package/symbols.d.ts +51 -2
  627. package/tables/elements.d.ts +9 -2
  628. package/unionTypes.d.ts +12 -2
  629. package/versionManagement/utils.d.ts +2 -2
  630. package/versionManagement/versionAdapters/utils.d.ts +2 -2
  631. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  632. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
  633. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  634. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  635. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  636. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
  637. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  638. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js +1 -1
  639. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
  640. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
  641. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
  642. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  643. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TestShader.js +1 -1
  644. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  645. package/views/2d/layers/MediaLayerView2D.js +1 -1
  646. package/views/2d/layers/TileLayerView2D.js +1 -1
  647. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  648. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  649. package/views/2d/layers/features/layerAdapters/geometryUtils.js +1 -1
  650. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  651. package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +1 -1
  652. package/views/2d/layers/features/sources/strategies/DrillDownTileLoadStrategy.js +1 -1
  653. package/views/2d/layers/features/sources/strategies/PagedTileLoadStrategy.js +1 -1
  654. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  655. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  656. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  657. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  658. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  659. package/views/3d/environment/ChapmanApproximation.glsl.js +3 -3
  660. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  661. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  662. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  663. package/views/3d/environment/ChapmanRaymarching.glsl.js +4 -4
  664. package/views/3d/environment/Clouds.glsl.js +1 -1
  665. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  666. package/views/3d/environment/CloudsComposition.js +1 -1
  667. package/views/3d/environment/CloudsCompositionTechnique.js +1 -1
  668. package/views/3d/environment/CloudsRenderer.js +1 -1
  669. package/views/3d/environment/CloudsTechnique.js +1 -1
  670. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  671. package/views/3d/environment/Fog.glsl.js +1 -1
  672. package/views/3d/environment/Fog.js +1 -1
  673. package/views/3d/environment/FogTechnique.js +1 -1
  674. package/views/3d/environment/LocalAtmosphere.js +1 -1
  675. package/views/3d/environment/MarsAtmosphere.js +1 -1
  676. package/views/3d/environment/NoiseTextureAtlas.glsl.js +1 -1
  677. package/views/3d/environment/NoiseTextureAtlas.js +1 -1
  678. package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
  679. package/views/3d/environment/Precipitation.glsl.js +1 -1
  680. package/views/3d/environment/Precipitation.js +1 -1
  681. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  682. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  683. package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
  684. package/views/3d/interactive/editingTools/media/ControlPointOperations.js +1 -1
  685. package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
  686. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  687. package/views/3d/layers/SceneLayerWorker.js +1 -1
  688. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  689. package/views/3d/layers/graphics/Labeler.js +1 -1
  690. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  691. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  692. package/views/3d/layers/graphics/pipeline/Tile.js +1 -1
  693. package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
  694. package/views/3d/layers/graphics/pipeline/featureData/FeatureData.js +1 -1
  695. package/views/3d/layers/graphics/pipeline/featureData/FeatureDataStore.js +1 -1
  696. package/views/3d/layers/graphics/pipeline/featureSet/PBFPointFeatureSetView.js +1 -1
  697. package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
  698. package/views/3d/layers/graphics/pipeline/fetching/Tile3DFetcher.js +1 -1
  699. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  700. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  701. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  702. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  703. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  704. package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
  705. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  706. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  707. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  708. package/views/3d/support/PBFDecoder.js +1 -1
  709. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  710. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  711. package/views/3d/terrain/OverlayRenderer.js +1 -1
  712. package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
  713. package/views/3d/terrain/TerrainRenderer.js +1 -1
  714. package/views/3d/terrain/TileCompositor.js +1 -1
  715. package/views/3d/webgl/RenderNode.js +1 -1
  716. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  717. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  718. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  719. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  720. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  721. package/views/3d/webgl-engine/collections/Component/Material/shader/DecodeSymbolColor.glsl.js +2 -2
  722. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  723. package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
  724. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  725. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +1 -1
  726. package/views/3d/webgl-engine/core/shaderLibrary/HighlightCellGridScreenSpacePass.glsl.js +1 -1
  727. package/views/3d/webgl-engine/core/shaderLibrary/HighlightReadBitmap.glsl.js +2 -2
  728. package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +3 -3
  729. package/views/3d/webgl-engine/core/shaderLibrary/NormalFromDepth.glsl.js +1 -1
  730. package/views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js +2 -2
  731. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +1 -1
  732. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js +2 -2
  733. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +3 -3
  734. package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +1 -1
  735. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +9 -9
  736. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +1 -1
  737. package/views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js +1 -1
  738. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
  739. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
  740. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  741. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +2 -2
  742. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +1 -1
  743. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
  744. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +1 -1
  745. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +2 -2
  746. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTangent.glsl.js +1 -1
  747. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +2 -2
  748. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +2 -2
  749. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
  750. package/views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js +3 -3
  751. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +2 -2
  752. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +1 -1
  753. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js +1 -1
  754. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +3 -3
  755. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +1 -1
  756. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +3 -3
  757. package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js +2 -2
  758. package/views/3d/webgl-engine/core/shaderLibrary/raster/Colormap.glsl.js +1 -1
  759. package/views/3d/webgl-engine/core/shaderLibrary/raster/Common.glsl.js +2 -2
  760. package/views/3d/webgl-engine/core/shaderLibrary/raster/Projection.glsl.js +1 -1
  761. package/views/3d/webgl-engine/core/shaderLibrary/raster/RasterColorizer.glsl.js +1 -1
  762. package/views/3d/webgl-engine/core/shaderLibrary/shading/AnalyticalSkyModel.glsl.js +1 -1
  763. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeFragmentNormals.glsl.js +1 -1
  764. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +1 -1
  765. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
  766. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +4 -4
  767. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js +1 -1
  768. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
  769. package/views/3d/webgl-engine/core/shaderLibrary/shading/FoamRendering.glsl.js +1 -1
  770. package/views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js +4 -4
  771. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +1 -1
  772. package/views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js +2 -2
  773. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +1 -1
  774. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +1 -1
  775. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -1
  776. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +1 -1
  777. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js +1 -1
  778. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +7 -7
  779. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +2 -2
  780. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +1 -1
  781. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +1 -1
  782. package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +2 -2
  783. package/views/3d/webgl-engine/core/shaderLibrary/shading/TextureTransformUV.glsl.js +1 -1
  784. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  785. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +1 -1
  786. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +1 -1
  787. package/views/3d/webgl-engine/core/shaderLibrary/terrain/BackgroundGrid.glsl.js +1 -1
  788. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +3 -3
  789. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +1 -1
  790. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBackground.glsl.js +6 -6
  791. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +1 -1
  792. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  793. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
  794. package/views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js +2 -2
  795. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +3 -3
  796. package/views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js +1 -1
  797. package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +1 -1
  798. package/views/3d/webgl-engine/core/shaderLibrary/util/DoublePrecision.glsl.js +1 -1
  799. package/views/3d/webgl-engine/core/shaderLibrary/util/IsNaN.glsl.js +2 -2
  800. package/views/3d/webgl-engine/core/shaderLibrary/util/LocalFromScreenSpace.glsl.js +2 -2
  801. package/views/3d/webgl-engine/core/shaderLibrary/util/MixExternalColor.glsl.js +1 -1
  802. package/views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloat16Encoding.glsl.js +1 -1
  803. package/views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js +1 -1
  804. package/views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js +1 -1
  805. package/views/3d/webgl-engine/core/shaderLibrary/util/TextureAtlasLookup.glsl.js +1 -1
  806. package/views/3d/webgl-engine/core/shaderLibrary/util/TextureOnly.glsl.js +1 -1
  807. package/views/3d/webgl-engine/core/shaderModules/BooleanBindUniform.js +1 -1
  808. package/views/3d/webgl-engine/core/shaderModules/BooleanPassUniform.js +1 -1
  809. package/views/3d/webgl-engine/core/shaderModules/Float2BindUniform.js +1 -1
  810. package/views/3d/webgl-engine/core/shaderModules/Float2DrawUniform.js +1 -1
  811. package/views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js +1 -1
  812. package/views/3d/webgl-engine/core/shaderModules/Float3BindUniform.js +1 -1
  813. package/views/3d/webgl-engine/core/shaderModules/Float3DrawUniform.js +1 -1
  814. package/views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js +1 -1
  815. package/views/3d/webgl-engine/core/shaderModules/Float4BindUniform.js +1 -1
  816. package/views/3d/webgl-engine/core/shaderModules/Float4DrawUniform.js +1 -1
  817. package/views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js +1 -1
  818. package/views/3d/webgl-engine/core/shaderModules/Float4sPassUniform.js +1 -1
  819. package/views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js +1 -1
  820. package/views/3d/webgl-engine/core/shaderModules/FloatDrawUniform.js +1 -1
  821. package/views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js +1 -1
  822. package/views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js +1 -1
  823. package/views/3d/webgl-engine/core/shaderModules/Integer2BindUniform.js +1 -1
  824. package/views/3d/webgl-engine/core/shaderModules/Integer2PassUniform.js +1 -1
  825. package/views/3d/webgl-engine/core/shaderModules/IntegerBindUniform.js +1 -1
  826. package/views/3d/webgl-engine/core/shaderModules/IntegerDrawUniform.js +1 -1
  827. package/views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js +1 -1
  828. package/views/3d/webgl-engine/core/shaderModules/Matrix3DrawUniform.js +1 -1
  829. package/views/3d/webgl-engine/core/shaderModules/Matrix3PassUniform.js +1 -1
  830. package/views/3d/webgl-engine/core/shaderModules/Matrix4BindUniform.js +1 -1
  831. package/views/3d/webgl-engine/core/shaderModules/Matrix4DrawUniform.js +1 -1
  832. package/views/3d/webgl-engine/core/shaderModules/Matrix4PassUniform.js +1 -1
  833. package/views/3d/webgl-engine/core/shaderModules/Matrix4sDrawUniform.js +1 -1
  834. package/views/3d/webgl-engine/core/shaderModules/Matrix4sPassUniform.js +1 -1
  835. package/views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js +1 -1
  836. package/views/3d/webgl-engine/core/shaderModules/Texture2DDrawUniform.js +1 -1
  837. package/views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js +1 -1
  838. package/views/3d/webgl-engine/core/shaderModules/TextureCubeBindUniform.js +1 -1
  839. package/views/3d/webgl-engine/core/shaderModules/glsl.js +5 -0
  840. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  841. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration.js +1 -1
  842. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  843. package/views/3d/webgl-engine/effects/OpaqueEnvironment.js +1 -1
  844. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  845. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  846. package/views/3d/webgl-engine/effects/TransparentEnvironment.js +1 -1
  847. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  848. package/views/3d/webgl-engine/effects/bloom/BloomBlur.glsl.js +1 -1
  849. package/views/3d/webgl-engine/effects/bloom/BloomBlurTechnique.js +1 -1
  850. package/views/3d/webgl-engine/effects/bloom/BloomComposition.glsl.js +1 -1
  851. package/views/3d/webgl-engine/effects/bloom/BloomCompositionTechnique.js +1 -1
  852. package/views/3d/webgl-engine/effects/bloom/BloomDepthAdjust.glsl.js +1 -1
  853. package/views/3d/webgl-engine/effects/bloom/BloomDepthAdjustTechnique.js +1 -1
  854. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  855. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  856. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +5 -0
  857. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  858. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +5 -0
  859. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  860. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  861. package/views/3d/webgl-engine/effects/haze/Haze.glsl.js +1 -1
  862. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  863. package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
  864. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  865. package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
  866. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  867. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  868. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  869. package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
  870. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  871. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  872. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  873. package/views/3d/webgl-engine/effects/highlight/SingleHighlightApplyTechnique.js +1 -1
  874. package/views/3d/webgl-engine/effects/highlight/SingleHighlightBlurTechnique.js +1 -1
  875. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  876. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  877. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechnique.js +1 -1
  878. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  879. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  880. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  881. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  882. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  883. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  884. package/views/3d/webgl-engine/effects/smaa/SMAAPassParameters.js +1 -1
  885. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  886. package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
  887. package/views/3d/webgl-engine/effects/ssao/SSAOParameters.js +1 -1
  888. package/views/3d/webgl-engine/effects/ssao/SSAOTechnique.js +1 -1
  889. package/views/3d/webgl-engine/effects/stars/Stars.glsl.js +1 -1
  890. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  891. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  892. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
  893. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  894. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  895. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  896. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  897. package/views/3d/webgl-engine/lib/GLMaterial.js +1 -1
  898. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  899. package/views/3d/webgl-engine/lib/Material.js +1 -1
  900. package/views/3d/webgl-engine/lib/Program.js +1 -1
  901. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  902. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  903. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  904. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  905. package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +1 -1
  906. package/views/3d/webgl-engine/lib/TextureCompressionWorkerHandle.js +1 -1
  907. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  908. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  909. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  910. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  911. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  912. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  913. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  914. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  915. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  916. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  917. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  918. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  919. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  920. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  921. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  922. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  923. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  924. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  925. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  926. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  927. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  928. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  929. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  930. package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
  931. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  932. package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
  933. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  934. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  935. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  936. package/views/3d/webgl-engine/shaders/BlendWeights.glsl.js +1 -1
  937. package/views/3d/webgl-engine/shaders/Blur.glsl.js +1 -1
  938. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  939. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  940. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  941. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  942. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  943. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  944. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  945. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  946. package/views/3d/webgl-engine/shaders/EdgeDetect.glsl.js +1 -1
  947. package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +1 -1
  948. package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +1 -1
  949. package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +1 -1
  950. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +1 -1
  951. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  952. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  953. package/views/3d/webgl-engine/shaders/Heatmap.glsl.js +1 -1
  954. package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
  955. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  956. package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +1 -1
  957. package/views/3d/webgl-engine/shaders/HighlightApply.glsl.js +1 -1
  958. package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +1 -1
  959. package/views/3d/webgl-engine/shaders/HighlightToSingle.glsl.js +1 -1
  960. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  961. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  962. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  963. package/views/3d/webgl-engine/shaders/Laserlines.glsl.js +1 -1
  964. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  965. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  966. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  967. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  968. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  969. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  970. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  971. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  972. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  973. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +7 -7
  974. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +1 -1
  975. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  976. package/views/3d/webgl-engine/shaders/Path.glsl.js +1 -1
  977. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  978. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  979. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  980. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  981. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  982. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  983. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  984. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  985. package/views/3d/webgl-engine/shaders/SSAO.glsl.js +1 -1
  986. package/views/3d/webgl-engine/shaders/SSAOBlur.glsl.js +1 -1
  987. package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -1
  988. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  989. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  990. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
  991. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  992. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  993. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  994. package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
  995. package/views/3d/webgl-engine/shaders/SingleHighlightApply.glsl.js +1 -1
  996. package/views/3d/webgl-engine/shaders/SingleHighlightBlur.glsl.js +1 -1
  997. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  998. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  999. package/views/3d/webgl-engine/shaders/SphereIntersect.glsl.js +2 -2
  1000. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  1001. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  1002. package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +1 -1
  1003. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  1004. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  1005. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  1006. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +2 -2
  1007. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardNonSilhouetteEdges.glsl.js +4 -4
  1008. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DistanceFalloff.glsl.js +2 -2
  1009. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShader.glsl.js +1 -1
  1010. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +1 -1
  1011. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +3 -3
  1012. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +7 -7
  1013. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +7 -7
  1014. package/views/3d/webgl.d.ts +3 -2
  1015. package/views/3d/webgl.js +1 -1
  1016. package/views/BreakpointsOwner.d.ts +1 -1
  1017. package/views/DOMContainer.d.ts +1 -1
  1018. package/views/FocusAreas.js +1 -1
  1019. package/views/PopupView.d.ts +1 -1
  1020. package/views/draw/DrawGraphicTool.js +1 -1
  1021. package/views/draw/DrawOperation.js +1 -1
  1022. package/views/draw/support/Box.js +1 -1
  1023. package/views/draw/support/helpMessageUtils.js +1 -1
  1024. package/views/draw/support/tooltipUtils.js +1 -1
  1025. package/views/interactive/keybindings.js +1 -1
  1026. package/views/interactive/tooltip/content/tooltipContentFactory.js +1 -1
  1027. package/views/interactive/tooltip/infos/DrawCircleTooltipInfo.js +1 -1
  1028. package/views/interactive/tooltip/infos/DrawMultipointTooltipInfo.js +5 -0
  1029. package/views/interactive/tooltip/infos/DrawRectangleTooltipInfo.js +1 -1
  1030. package/views/layers/FeatureLayerView.js +1 -1
  1031. package/views/layers/MediaLayerView.js +1 -1
  1032. package/views/support/colorUtils.d.ts +2 -2
  1033. package/views/webgl/NoParameters.js +5 -0
  1034. package/views/webgl/ShaderBuilder.js +5 -0
  1035. package/views/webgl/Texture.js +1 -1
  1036. package/views/webgl/Uniform.js +5 -0
  1037. package/views/webgl/testAppleAmdDrawArrays.js +1 -1
  1038. package/widgets/Attachments/AttachmentsViewModel.js +1 -1
  1039. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  1040. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  1041. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  1042. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  1043. package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
  1044. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  1045. package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
  1046. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  1047. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  1048. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  1049. package/widgets/BatchAttributeForm/templates/BatchFormTemplate.js +1 -1
  1050. package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
  1051. package/widgets/BatchAttributeForm/templates/GroupElementTemplate.js +1 -1
  1052. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  1053. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  1054. package/widgets/BatchAttributeForm.js +1 -1
  1055. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  1056. package/widgets/Editor/EditorViewModel.js +1 -1
  1057. package/widgets/Editor/UpdateWorkflow.js +1 -1
  1058. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  1059. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  1060. package/widgets/Editor.js +1 -1
  1061. package/widgets/Feature.js +1 -1
  1062. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/AssociationDetails.js +5 -0
  1063. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  1064. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationSettings.js +1 -1
  1065. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  1066. package/widgets/FeatureForm/FieldInput.js +1 -1
  1067. package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
  1068. package/widgets/FeatureForm.js +1 -1
  1069. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  1070. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.d.ts +4 -0
  1071. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.js +1 -1
  1072. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  1073. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  1074. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +5 -0
  1075. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  1076. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  1077. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  1078. package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
  1079. package/widgets/OrientedImageryViewer.js +1 -1
  1080. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  1081. package/widgets/Print.js +1 -1
  1082. package/widgets/Search.js +1 -1
  1083. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  1084. package/widgets/Swipe/SwipeViewModel.js +1 -1
  1085. package/widgets/UtilityNetworkTrace.js +1 -1
  1086. package/widgets/smartMapping/support/utils.d.ts +3 -2
  1087. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +5 -0
  1088. package/widgets/support/FilterBuilder.js +5 -0
  1089. package/widgets/support/FilterCondition/FilterConditionViewModel.js +5 -0
  1090. package/widgets/support/FilterCondition/conditionUtils.js +5 -0
  1091. package/widgets/support/FilterCondition.js +5 -0
  1092. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  1093. package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +1 -1
  1094. package/widgets/support/widget.d.ts +8 -2
  1095. package/assets/esri/core/workers/chunks/1557446aa4525705a5b2.js +0 -1
  1096. package/assets/esri/core/workers/chunks/2cf8677005dd2127f5eb.js +0 -1
  1097. package/assets/esri/core/workers/chunks/31b9faaa539fdc639a0a.js +0 -1
  1098. package/assets/esri/core/workers/chunks/349f31a1fb489fbfe60d.js +0 -1
  1099. package/assets/esri/core/workers/chunks/34b31091e172e910d750.js +0 -1
  1100. package/assets/esri/core/workers/chunks/4020c753fcbbb9f1c731.js +0 -1
  1101. package/assets/esri/core/workers/chunks/48a1b63291c62bc78a41.js +0 -1
  1102. package/assets/esri/core/workers/chunks/48e6f5571042aaffe543.js +0 -314
  1103. package/assets/esri/core/workers/chunks/5bb175106aee21025bc2.js +0 -1
  1104. package/assets/esri/core/workers/chunks/5c57aa9fdc4e1bab61ac.js +0 -1
  1105. package/assets/esri/core/workers/chunks/7719fe672ea74cdc87be.js +0 -1
  1106. package/assets/esri/core/workers/chunks/7ae1f26ded268099f429.js +0 -1
  1107. package/assets/esri/core/workers/chunks/99c0b133c97abf4c2eec.js +0 -1
  1108. package/assets/esri/core/workers/chunks/9a30ad773c22bde61c64.js +0 -1
  1109. package/assets/esri/core/workers/chunks/9b687465cc3863e14b29.js +0 -2
  1110. package/assets/esri/core/workers/chunks/b5ee6c203f536bdb6708.js +0 -1
  1111. package/assets/esri/core/workers/chunks/c12bdf6fd7f631e3f79e.js +0 -971
  1112. package/assets/esri/core/workers/chunks/c58f559eb68035ebe3da.js +0 -1
  1113. package/assets/esri/core/workers/chunks/d2403fc8f4c723301144.js +0 -1
  1114. package/assets/esri/core/workers/chunks/e7913ec1b4f9da490ba3.js +0 -1
  1115. package/views/2d/engine/webgl/shaderGraph/ShaderBuilder2D.js +0 -5
  1116. package/views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js +0 -5
  1117. package/views/3d/webgl-engine/core/shaderModules/Uniform.js +0 -5
  1118. package/views/3d/webgl-engine/core/shaderModules/interfaces.js +0 -5
  1119. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNode.js +0 -5
  1120. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNodeColorEffects.js +0 -5
  1121. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNodeGeometryMasking.js +0 -5
  1122. /package/views/{3d/webgl-engine/core/shaderTechnique → webgl}/BindType.js +0 -0
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../chunks/tslib.es6.js";import{zeroSquareMeters as r}from"../../../../core/quantityUtils.js";import{property as t}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as e}from"../../../../core/accessorSupport/decorators/subclass.js";import{SketchTooltipInfo as s}from"./SketchTooltipInfo.js";let i=class extends s{constructor(o){super(o),this.type="draw-circle",this.radius=null,this.xSize=null,this.ySize=null,this.area=r}get allFields(){return[]}};o([t()],i.prototype,"type",void 0),o([t()],i.prototype,"radius",void 0),o([t()],i.prototype,"xSize",void 0),o([t()],i.prototype,"ySize",void 0),o([t()],i.prototype,"area",void 0),o([t()],i.prototype,"allFields",null),i=o([e("esri.views.interactive.tooltip.infos.DrawCircleTooltipInfo")],i);export{i as DrawCircleTooltipInfo};
5
+ import{_ as o}from"../../../../chunks/tslib.es6.js";import{zeroSquareMeters as r}from"../../../../core/quantityUtils.js";import{property as t}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as e}from"../../../../core/accessorSupport/decorators/subclass.js";import{SketchTooltipInfo as s}from"./SketchTooltipInfo.js";let i=class extends s{constructor(o){super(o),this.type="draw-circle",this.radius=null,this.xSize=null,this.ySize=null,this.area=r}get allFields(){return[]}};o([t()],i.prototype,"type",void 0),o([t()],i.prototype,"radius",void 0),o([t()],i.prototype,"xSize",void 0),o([t()],i.prototype,"ySize",void 0),o([t()],i.prototype,"area",void 0),o([t()],i.prototype,"helpMessage",void 0),o([t()],i.prototype,"allFields",null),i=o([e("esri.views.interactive.tooltip.infos.DrawCircleTooltipInfo")],i);export{i as DrawCircleTooltipInfo};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
+ */
5
+ import{_ as o}from"../../../../chunks/tslib.es6.js";import{property as t}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as r}from"../../../../core/accessorSupport/decorators/subclass.js";import{SketchTooltipInfo as s}from"./SketchTooltipInfo.js";import{TooltipInfoWithCoordinates as e}from"./TooltipInfoWithCoordinates.js";let i=class extends(e(s)){constructor(o){super(o),this.type="draw-multipoint"}get allFields(){return[this.longitude,this.latitude,this.x,this.y,this.elevation]}};o([t()],i.prototype,"helpMessage",void 0),o([t()],i.prototype,"allFields",null),i=o([r("esri.views.interactive.tooltip.infos.DrawMultipointTooltipInfo")],i);export{i as DrawMultipointTooltipInfo};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../chunks/tslib.es6.js";import{zeroMeters as t,zeroSquareMeters as r}from"../../../../core/quantityUtils.js";import{property as e}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as s}from"../../../../core/accessorSupport/decorators/subclass.js";import{SketchTooltipInfo as i}from"./SketchTooltipInfo.js";let p=class extends i{constructor(o){super(o),this.type="draw-rectangle",this.xSize=t,this.ySize=t,this.area=r}get allFields(){return[]}};o([e()],p.prototype,"type",void 0),o([e()],p.prototype,"xSize",void 0),o([e()],p.prototype,"ySize",void 0),o([e()],p.prototype,"area",void 0),o([e()],p.prototype,"allFields",null),p=o([s("esri.views.interactive.tooltip.infos.DrawRectangleTooltipInfo")],p);export{p as DrawRectangleTooltipInfo};
5
+ import{_ as o}from"../../../../chunks/tslib.es6.js";import{zeroMeters as t,zeroSquareMeters as r}from"../../../../core/quantityUtils.js";import{property as e}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as s}from"../../../../core/accessorSupport/decorators/subclass.js";import{SketchTooltipInfo as i}from"./SketchTooltipInfo.js";let p=class extends i{constructor(o){super(o),this.type="draw-rectangle",this.xSize=t,this.ySize=t,this.area=r}get allFields(){return[]}};o([e()],p.prototype,"type",void 0),o([e()],p.prototype,"xSize",void 0),o([e()],p.prototype,"ySize",void 0),o([e()],p.prototype,"area",void 0),o([e()],p.prototype,"helpMessage",void 0),o([e()],p.prototype,"allFields",null),p=o([s("esri.views.interactive.tooltip.infos.DrawRectangleTooltipInfo")],p);export{p as DrawRectangleTooltipInfo};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../core/Error.js";import"../../core/has.js";import r from"../../core/Logger.js";import{throwIfAborted as i}from"../../core/promiseUtils.js";import{watch as s,syncAndInitial as l,on as n}from"../../core/reactiveUtils.js";import{sqlAnd as o}from"../../core/sql.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import"../../core/RandomLCG.js";import{subclass as u}from"../../core/accessorSupport/decorators/subclass.js";import{systemIsSpatialFieldName as p}from"../../layers/knowledgeGraph/constants.js";import{getEffectiveDisplayFilter as d}from"../../layers/support/displayFilterUtils.js";import f from"../../layers/support/FeatureEffect.js";import y from"../../layers/support/FeatureFilter.js";import{getSignedInUser as c}from"../../layers/support/featureLayerUtils.js";import{fixFields as h,unpackFieldNames as m,collectLabelingFields as F,collectElevationFields as g,collectFilterFields as I,collectFeatureReductionFields as b,collectOrderByInfos as w,collectFields as E,collectTrackInfoFields as v,collectDisplayFilterFields as x,collectField as R,featureHasFields as _}from"../../layers/support/fieldUtils.js";import{getFloorFilterClause as j}from"../../layers/support/floorFilterUtils.js";import q from"../../rest/support/Query.js";import{loadArcade as P}from"../../support/arcadeOnDemand.js";import{getFetchPopupTemplate as C,getRequiredFields as O}from"./support/popupUtils.js";import{WhereClauseVisitor as k}from"./support/WhereClauseVisitor.js";const L=L=>{let U=class extends L{constructor(...e){super(...e),this._updatingRequiredPromise=null,this.filter=null,this.layer=null,this.requiresCurrentUser=!1,this.requiredFields=[],this.view=null}initialize(){this.addHandles([s((()=>{const e=this.layer;return[e&&"elevationInfo"in e?e.elevationInfo?.featureExpressionInfo:null,e&&"displayField"in e?e.displayField:null,e&&"timeInfo"in e&&e.timeInfo,e&&"renderer"in e&&e.renderer,e&&"labelingInfo"in e&&e.labelingInfo,e&&"floorInfo"in e&&e.floorInfo,e.displayFilterInfo,this.displayFilterEnabled,this.filter,this.featureEffect,this.timeExtent,"knowledge-graph-sublayer"===e?.type&&"link-chart"===e.parentCompositeLayer.type&&e.parentCompositeLayer.linkChart?.linkChartProperties.nonspatialDataDisplay?.mode]}),(()=>this._handleChange()),l),n((()=>this.view?.floors),"change",(()=>this._handleChange())),n((()=>this.layer.displayFilterInfo?.filters),"change",(()=>this._handleChange())),n((()=>this.layer&&"sublayers"in this.layer?this.layer.sublayers:null),"change",(()=>this._handleChange()))])}get availableFields(){if(!this.layer)return[];const{layer:e,layer:{fieldsIndex:t},requiredFields:r}=this;return"outFields"in e&&e.outFields?h(t,[...m(t,e.outFields),...r]):h(t,r)}get displayFilterEnabled(){return(this.view?.displayFilterEnabled??!0)&&(!("displayFilterEnabled"in this.layer)||(this.layer?.displayFilterEnabled??!0))}get effectiveDisplayFilter(){const e=this.layer;return this.displayFilterEnabled&&e.displayFilterInfo?d(e.displayFilterInfo,this.view):null}get featureEffect(){return this.layer&&"featureEffect"in this.layer?this.layer.featureEffect:null}set featureEffect(e){this._override("featureEffect",e)}get maximumNumberOfFeatures(){return 0}set maximumNumberOfFeatures(e){r.getLogger(this).error("#maximumNumberOfFeatures=","Setting maximum number of features is not supported")}get maximumNumberOfFeaturesExceeded(){return!1}get signedInUser(){return this.layer?.url?c(this.layer.url):Promise.resolve(null)}highlight(e,t){throw new Error("missing implementation")}createQuery(){const e={outFields:["*"],returnGeometry:!0,outSpatialReference:this.view.spatialReference},t=null!=this.filter?this.filter.createQuery(e):new q(e);return"floorInfo"in this.layer&&this.layer.floorInfo&&(t.where=o(t.where,j(this))),"2d"===this.view.type&&this.displayFilterEnabled&&(t.where=o(t.where,this.effectiveDisplayFilter?.where)),null!=this.timeExtent&&(t.timeExtent=null!=t.timeExtent?t.timeExtent.intersection(this.timeExtent):this.timeExtent.clone()),t}createAggregateQuery(){const e={outFields:["*"],returnGeometry:!0,outSpatialReference:this.view.spatialReference};return new q(e)}queryFeatures(e,t){throw new Error("missing implementation")}queryObjectIds(e,t){throw new Error("missing implementation")}queryFeatureCount(e,t){throw new Error("missing implementation")}queryExtent(e,t){throw new Error("missing implementation")}async fetchPopupFeaturesFromGraphics(e,t){return this._validateFetchPopupFeatures(e,t),this._fetchPopupFeatures(e,t)}_loadArcadeModules(e){return e.expressionInfos?.length||Array.isArray(e.content)&&e.content.some((e=>"expression"===e.type))?P():Promise.resolve()}_handleChange(){const e=Promise.all([this._updateRequiredFields(),this._updateClientWhereClauseRequirements()]).then((()=>{}));return this._set("_updatingRequiredPromise",e),e.then((()=>{this._updatingRequiredPromise===e&&this._set("_updatingRequiredPromise",null)})),e}async _updateClientWhereClauseRequirements(){if(!this.layer||!this.view)return;const{layer:e}=this,t=new k(e.fieldsIndex);if(t.visitFilter(this.filter),"featureReduction"in e&&t.visitFeatureReduction(e.featureReduction),"labelingInfo"in e&&t.visitLabelingInfo(e.labelsVisible,e.labelingInfo),"trackInfo"in e&&t.visitTrackInfo(e.trackInfo),"2d"===this.view.type&&(t.visitFilter(this.featureEffect?.filter),t.visitDisplayFilter(this.displayFilterEnabled,e.displayFilterInfo),"featureReduction"in e&&t.visitFeatureReduction(e.featureReduction)),"subtype-group"===e.type)for(const r of e.sublayers)t.visitLabelingInfo(r.labelsVisible,r.labelingInfo);try{const e=await t.finish();this._set("requiresCurrentUser",e.requiresCurrentUser)}catch(i){r.getLogger(this).error(i)}}async _updateRequiredFields(){if(!this.layer||!this.view)return;const e="3d"===this.view.type,{layer:t,layer:{fieldsIndex:i,objectIdField:s}}=this,l="renderer"in t&&t.renderer,n="orderBy"in t&&t.orderBy,o="featureReduction"in t?t.featureReduction:null,a=new Set,u=[l?l.collectRequiredFields(a,i):null,F(a,t),e&&"elevationInfo"in t?g(a,t):null,null!=this.filter?I(a,t,this.filter):null,e||null==this.featureEffect?null:I(a,t,this.featureEffect.filter),!e&&o?b(a,t,o):null,!e&&n?w(a,t,n):null];if("timeInfo"in t&&t.timeInfo&&this.timeExtent&&E(a,t.fieldsIndex,[t.timeInfo.startField,t.timeInfo.endField]),"timeInfo"in t&&t.timeInfo&&"trackInfo"in t&&t.trackInfo){const{trackInfo:e}=t;E(a,t.fieldsIndex,[t.timeInfo.trackIdField]),"feature"!==t.type&&"startTimeField"!==e.timeField||E(a,t.fieldsIndex,[t.timeInfo.startField]),"endTimeField"===e.timeField&&E(a,t.fieldsIndex,[t.timeInfo.endField]),await v(a,t)}if("floorInfo"in t&&t.floorInfo&&E(a,t.fieldsIndex,[t.floorInfo.floorField]),!e&&this.displayFilterEnabled&&u.push(x(a,t,t.displayFilterInfo)),"feature"===t.type&&e&&null!=t.infoFor3D&&(null==t.globalIdField&&r.getLogger(this).error("globalIdField missing on 3DObjectFeatureLayer"),E(a,t.fieldsIndex,[t.globalIdField])),"subtype-group"===t.type){R(a,i,t.subtypeField);const e=t.sublayers.map((e=>Promise.all([e.renderer?.collectRequiredFields(a,i),F(a,e)])));u.push(Promise.all(e))}if("catalog-footprint"===t.type&&t.parent){const e=t.parent;E(a,i,[e.itemNameField,e.itemSourceField,e.itemTypeField,e.maxScaleField,e.minScaleField])}"knowledge-graph-sublayer"===t.type&&"link-chart"===t.parentCompositeLayer.type&&R(a,i,p);const d=await Promise.allSettled(u);R(a,i,s),e&&"displayField"in t&&t.displayField&&R(a,i,t.displayField);for(const p of d)"rejected"===p.status&&r.getLogger(this).error(p.reason);const f=Array.from(a).sort();this._set("requiredFields",f)}_validateFetchPopupFeatures(e,r){if(null!=r)for(const i of e){const e=i.origin&&"layer"in i.origin?i.origin.layer:i.layer;if("popupEnabled"in e&&!e.popupEnabled)throw new t("featurelayerview:fetchPopupFeatures","Popups are disabled",{layer:e});if(i.isAggregate){const r="featureReduction"in e?e.featureReduction:null,i="trackInfo"in e?e.trackInfo:null;if(null==r&&null==i||null!=r&&(!("popupTemplate"in r)||!r.popupEnabled||!r.popupTemplate)||i?.enabled&&(!("popupTemplate"in i)||!i.popupEnabled||!i.popupTemplate))throw new t("featurelayerview:fetchPopupFeatures","Popups are disabled",{layer:e})}else if("popupTemplate"in e){if(!C(e,r))throw new t("featurelayerview:fetchPopupFeatures","Layer does not define a popup template",{layer:e})}}}_popupFeatureHasRequiredFields(e,t){return _(t,e)}async _fetchPopupFeatures(e,t){const r=new Array(e.length),s=new Map,l=await this._createPopupQuery(e.map((e=>e.origin?.layer??e.layer)),t);for(let n=0;n<e.length;n++){const o=e[n];if(o.isAggregate){r[n]=o;continue}const a=o.origin?.layer??o.layer;if(!a||!("popupEnabled"in a))continue;const u=m(this.layer.fieldsIndex,l.outFields),p=C(a,t);if(null==p)continue;const d=await this._loadArcadeModules(p);i(t);d&&d.arcadeUtils.hasGeometryOperations(p)||!this._popupFeatureHasRequiredFields(o,u)?s.set(o.getObjectId(),{graphic:o,index:n}):r[n]=o}if("stream"===this.layer.type||"parquet"===this.layer.type||0===s.size)return r.filter(Boolean);l.objectIds=Array.from(s.keys());try{const e=await this.layer.queryFeatures(l,t);for(const t of e.features){const{graphic:{geometry:e,origin:i},index:l}=s.get(t.getObjectId());t.geometry||=e,t.origin=i,r[l]=t}}catch{}return r.filter(Boolean)}async _createPopupQuery(e,t){const r=this.layer.createQuery(),s=new Set;let l=!1;const n=e??[this.layer];for(const o of n){if(!("popupEnabled"in o))continue;const e=C(o,t);if(null==e)continue;const r=await this._loadArcadeModules(e);i(t);const n=r&&r.arcadeUtils.hasGeometryOperations(e);l=!("point"!==this.layer.geometryType&&!n);const a=await O(this.layer,e);i(t);for(const t of a)s.add(t)}if(r.returnGeometry=l,r.returnZ=l,r.returnM=l,r.outFields=Array.from(s),r.outSpatialReference=this.view.spatialReference,"floorInfo"in this.layer&&this.layer.floorInfo){const e=j(this);null!=e&&(r.where=r.where?`(${r.where}) AND (${e})`:e)}return r}canResume(){return!!super.canResume()&&(null==this.timeExtent||!this.timeExtent.isEmpty)}getTest(){}get test(){}};return e([a()],U.prototype,"_updatingRequiredPromise",void 0),e([a({readOnly:!0})],U.prototype,"availableFields",null),e([a({readOnly:!0})],U.prototype,"displayFilterEnabled",null),e([a({readOnly:!0})],U.prototype,"effectiveDisplayFilter",null),e([a({type:f})],U.prototype,"featureEffect",null),e([a({type:y})],U.prototype,"filter",void 0),e([a()],U.prototype,"layer",void 0),e([a({type:Number})],U.prototype,"maximumNumberOfFeatures",null),e([a({readOnly:!0,type:Boolean})],U.prototype,"maximumNumberOfFeaturesExceeded",null),e([a()],U.prototype,"requiresCurrentUser",void 0),e([a({readOnly:!0})],U.prototype,"requiredFields",void 0),e([a({readOnly:!0})],U.prototype,"signedInUser",null),e([a()],U.prototype,"suspended",void 0),e([a()],U.prototype,"view",void 0),U=e([u("esri.views.layers.FeatureLayerView")],U),U};export{L as default};
5
+ import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../core/Error.js";import"../../core/has.js";import r from"../../core/Logger.js";import{throwIfAborted as i}from"../../core/promiseUtils.js";import{watch as s,syncAndInitial as l,on as o}from"../../core/reactiveUtils.js";import{sqlAnd as n}from"../../core/sql.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import"../../core/RandomLCG.js";import{subclass as u}from"../../core/accessorSupport/decorators/subclass.js";import{systemIsSpatialFieldName as p}from"../../layers/knowledgeGraph/constants.js";import{getEffectiveDisplayFilter as d}from"../../layers/support/displayFilterUtils.js";import f from"../../layers/support/FeatureEffect.js";import y from"../../layers/support/FeatureFilter.js";import{getSignedInUser as h}from"../../layers/support/featureLayerUtils.js";import{fixFields as c,unpackFieldNames as m,collectLabelingFields as F,collectElevationFields as g,collectFilterFields as I,collectFeatureReductionFields as b,collectOrderByInfos as w,collectFields as E,collectTrackInfoFields as v,collectDisplayFilterFields as x,collectField as R,featureHasFields as _}from"../../layers/support/fieldUtils.js";import{getFloorFilterClause as q}from"../../layers/support/floorFilterUtils.js";import j from"../../rest/support/Query.js";import{loadArcade as P}from"../../support/arcadeOnDemand.js";import{getRequiredFields as C,getFetchPopupTemplate as O}from"./support/popupUtils.js";import{WhereClauseVisitor as k}from"./support/WhereClauseVisitor.js";const L=L=>{let U=class extends L{constructor(...e){super(...e),this._updatingRequiredPromise=null,this.filter=null,this.layer=null,this.requiresCurrentUser=!1,this.requiredFields=[],this.view=null}initialize(){this.addHandles([s((()=>{const e=this.layer;return[e&&"elevationInfo"in e?e.elevationInfo?.featureExpressionInfo:null,e&&"displayField"in e?e.displayField:null,e&&"timeInfo"in e&&e.timeInfo,e&&"renderer"in e&&e.renderer,e&&"labelingInfo"in e&&e.labelingInfo,e&&"floorInfo"in e&&e.floorInfo,e.displayFilterInfo,this.displayFilterEnabled,this.filter,this.featureEffect,this.timeExtent,"knowledge-graph-sublayer"===e?.type&&"link-chart"===e.parentCompositeLayer.type&&e.parentCompositeLayer.linkChart?.linkChartProperties.nonspatialDataDisplay?.mode,"parquet"===e?.type&&e.popupTemplate]}),(()=>this._handleChange()),l),o((()=>this.view?.floors),"change",(()=>this._handleChange())),o((()=>this.layer.displayFilterInfo?.filters),"change",(()=>this._handleChange())),o((()=>this.layer&&"sublayers"in this.layer?this.layer.sublayers:null),"change",(()=>this._handleChange()))])}get availableFields(){if(!this.layer)return[];const{layer:e,layer:{fieldsIndex:t},requiredFields:r}=this;return"outFields"in e&&e.outFields?c(t,[...m(t,e.outFields),...r]):c(t,r)}get displayFilterEnabled(){return(this.view?.displayFilterEnabled??!0)&&(!("displayFilterEnabled"in this.layer)||(this.layer?.displayFilterEnabled??!0))}get effectiveDisplayFilter(){const e=this.layer;return this.displayFilterEnabled&&e.displayFilterInfo?d(e.displayFilterInfo,this.view):null}get featureEffect(){return this.layer&&"featureEffect"in this.layer?this.layer.featureEffect:null}set featureEffect(e){this._override("featureEffect",e)}get maximumNumberOfFeatures(){return 0}set maximumNumberOfFeatures(e){r.getLogger(this).error("#maximumNumberOfFeatures=","Setting maximum number of features is not supported")}get maximumNumberOfFeaturesExceeded(){return!1}get signedInUser(){return this.layer?.url?h(this.layer.url):Promise.resolve(null)}highlight(e,t){throw new Error("missing implementation")}createQuery(){const e={outFields:["*"],returnGeometry:!0,outSpatialReference:this.view.spatialReference},t=null!=this.filter?this.filter.createQuery(e):new j(e);return"floorInfo"in this.layer&&this.layer.floorInfo&&(t.where=n(t.where,q(this))),"2d"===this.view.type&&this.displayFilterEnabled&&(t.where=n(t.where,this.effectiveDisplayFilter?.where)),null!=this.timeExtent&&(t.timeExtent=null!=t.timeExtent?t.timeExtent.intersection(this.timeExtent):this.timeExtent.clone()),t}createAggregateQuery(){const e={outFields:["*"],returnGeometry:!0,outSpatialReference:this.view.spatialReference};return new j(e)}queryFeatures(e,t){throw new Error("missing implementation")}queryObjectIds(e,t){throw new Error("missing implementation")}queryFeatureCount(e,t){throw new Error("missing implementation")}queryExtent(e,t){throw new Error("missing implementation")}async fetchPopupFeaturesFromGraphics(e,t){return this._validateFetchPopupFeatures(e,t),this._fetchPopupFeatures(e,t)}_loadArcadeModules(e){return e.expressionInfos?.length||Array.isArray(e.content)&&e.content.some((e=>"expression"===e.type))?P():Promise.resolve()}_handleChange(){const e=Promise.all([this._updateRequiredFields(),this._updateClientWhereClauseRequirements()]).then((()=>{}));return this._set("_updatingRequiredPromise",e),e.then((()=>{this._updatingRequiredPromise===e&&this._set("_updatingRequiredPromise",null)})),e}async _updateClientWhereClauseRequirements(){if(!this.layer||!this.view)return;const{layer:e}=this,t=new k(e.fieldsIndex);if(t.visitFilter(this.filter),"featureReduction"in e&&t.visitFeatureReduction(e.featureReduction),"labelingInfo"in e&&t.visitLabelingInfo(e.labelsVisible,e.labelingInfo),"trackInfo"in e&&t.visitTrackInfo(e.trackInfo),"2d"===this.view.type&&(t.visitFilter(this.featureEffect?.filter),t.visitDisplayFilter(this.displayFilterEnabled,e.displayFilterInfo),"featureReduction"in e&&t.visitFeatureReduction(e.featureReduction)),"subtype-group"===e.type)for(const r of e.sublayers)t.visitLabelingInfo(r.labelsVisible,r.labelingInfo);try{const e=await t.finish();this._set("requiresCurrentUser",e.requiresCurrentUser)}catch(i){r.getLogger(this).error(i)}}async _updateRequiredFields(){if(!this.layer||!this.view)return;const e="3d"===this.view.type,{layer:t,layer:{fieldsIndex:i,objectIdField:s}}=this,l="renderer"in t&&t.renderer,o="orderBy"in t&&t.orderBy,n="featureReduction"in t?t.featureReduction:null,a=new Set,u=[l?l.collectRequiredFields(a,i):null,F(a,t),e&&"elevationInfo"in t?g(a,t):null,null!=this.filter?I(a,t,this.filter):null,e||null==this.featureEffect?null:I(a,t,this.featureEffect.filter),!e&&n?b(a,t,n):null,!e&&o?w(a,t,o):null];if("timeInfo"in t&&t.timeInfo&&this.timeExtent&&E(a,t.fieldsIndex,[t.timeInfo.startField,t.timeInfo.endField]),"timeInfo"in t&&t.timeInfo&&"trackInfo"in t&&t.trackInfo){const{trackInfo:e}=t;E(a,t.fieldsIndex,[t.timeInfo.trackIdField]),"feature"!==t.type&&"startTimeField"!==e.timeField||E(a,t.fieldsIndex,[t.timeInfo.startField]),"endTimeField"===e.timeField&&E(a,t.fieldsIndex,[t.timeInfo.endField]),await v(a,t)}if("floorInfo"in t&&t.floorInfo&&E(a,t.fieldsIndex,[t.floorInfo.floorField]),!e&&this.displayFilterEnabled&&u.push(x(a,t,t.displayFilterInfo)),"feature"===t.type&&e&&null!=t.infoFor3D&&(null==t.globalIdField&&r.getLogger(this).error("globalIdField missing on 3DObjectFeatureLayer"),E(a,t.fieldsIndex,[t.globalIdField])),"subtype-group"===t.type){R(a,i,t.subtypeField);const e=t.sublayers.map((e=>Promise.all([e.renderer?.collectRequiredFields(a,i),F(a,e)])));u.push(Promise.all(e))}if("catalog-footprint"===t.type&&t.parent){const e=t.parent;E(a,i,[e.itemNameField,e.itemSourceField,e.itemTypeField,e.maxScaleField,e.minScaleField])}"knowledge-graph-sublayer"===t.type&&"link-chart"===t.parentCompositeLayer.type&&R(a,i,p),"parquet"===t.type&&u.push(C(t,t.popupTemplate).then((e=>{for(const t of e)a.add(t)})));const d=await Promise.allSettled(u);R(a,i,s),e&&"displayField"in t&&t.displayField&&R(a,i,t.displayField);for(const p of d)"rejected"===p.status&&r.getLogger(this).error(p.reason);const f=Array.from(a).sort();this._set("requiredFields",f)}_validateFetchPopupFeatures(e,r){if(null!=r)for(const i of e){const e=i.origin&&"layer"in i.origin?i.origin.layer:i.layer;if("popupEnabled"in e&&!e.popupEnabled)throw new t("featurelayerview:fetchPopupFeatures","Popups are disabled",{layer:e});if(i.isAggregate){const r="featureReduction"in e?e.featureReduction:null,i="trackInfo"in e?e.trackInfo:null;if(null==r&&null==i||null!=r&&(!("popupTemplate"in r)||!r.popupEnabled||!r.popupTemplate)||i?.enabled&&(!("popupTemplate"in i)||!i.popupEnabled||!i.popupTemplate))throw new t("featurelayerview:fetchPopupFeatures","Popups are disabled",{layer:e})}else if("popupTemplate"in e){if(!O(e,r))throw new t("featurelayerview:fetchPopupFeatures","Layer does not define a popup template",{layer:e})}}}_popupFeatureHasRequiredFields(e,t){return _(t,e)}async _fetchPopupFeatures(e,t){const r=new Array(e.length),s=new Map,l=await this._createPopupQuery(e.map((e=>e.origin?.layer??e.layer)),t);for(let o=0;o<e.length;o++){const n=e[o];if(n.isAggregate){r[o]=n;continue}const a=n.origin?.layer??n.layer;if(!a||!("popupEnabled"in a))continue;const u=m(this.layer.fieldsIndex,l.outFields),p=O(a,t);if(null==p)continue;const d=await this._loadArcadeModules(p);i(t);d&&d.arcadeUtils.hasGeometryOperations(p)||!this._popupFeatureHasRequiredFields(n,u)?s.set(n.getObjectId(),{graphic:n,index:o}):r[o]=n}if("stream"===this.layer.type||"parquet"===this.layer.type||0===s.size)return r.filter(Boolean);l.objectIds=Array.from(s.keys());try{const e=await this.layer.queryFeatures(l,t);for(const t of e.features){const{graphic:{geometry:e,origin:i},index:l}=s.get(t.getObjectId());t.geometry||=e,t.origin=i,r[l]=t}}catch{}return r.filter(Boolean)}async _createPopupQuery(e,t){const r=this.layer.createQuery(),s=new Set;let l=!1;const o=e??[this.layer];for(const n of o){if(!("popupEnabled"in n))continue;const e=O(n,t);if(null==e)continue;const r=await this._loadArcadeModules(e);i(t);const o=r&&r.arcadeUtils.hasGeometryOperations(e);l=!("point"!==this.layer.geometryType&&!o);const a=await C(this.layer,e);i(t);for(const t of a)s.add(t)}if(r.returnGeometry=l,r.returnZ=l,r.returnM=l,r.outFields=Array.from(s),r.outSpatialReference=this.view.spatialReference,"floorInfo"in this.layer&&this.layer.floorInfo){const e=q(this);null!=e&&(r.where=r.where?`(${r.where}) AND (${e})`:e)}return r}canResume(){return!!super.canResume()&&(null==this.timeExtent||!this.timeExtent.isEmpty)}getTest(){}get test(){}};return e([a()],U.prototype,"_updatingRequiredPromise",void 0),e([a({readOnly:!0})],U.prototype,"availableFields",null),e([a({readOnly:!0})],U.prototype,"displayFilterEnabled",null),e([a({readOnly:!0})],U.prototype,"effectiveDisplayFilter",null),e([a({type:f})],U.prototype,"featureEffect",null),e([a({type:y})],U.prototype,"filter",void 0),e([a()],U.prototype,"layer",void 0),e([a({type:Number})],U.prototype,"maximumNumberOfFeatures",null),e([a({readOnly:!0,type:Boolean})],U.prototype,"maximumNumberOfFeaturesExceeded",null),e([a()],U.prototype,"requiresCurrentUser",void 0),e([a({readOnly:!0})],U.prototype,"requiredFields",void 0),e([a({readOnly:!0})],U.prototype,"signedInUser",null),e([a()],U.prototype,"suspended",void 0),e([a()],U.prototype,"view",void 0),U=e([u("esri.views.layers.FeatureLayerView")],U),U};export{L as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../chunks/tslib.es6.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as r}from"../../core/accessorSupport/decorators/subclass.js";import{MediaLayerInteractionOptions as o}from"../3d/layers/support/MediaLayerInteractionOptions.js";const s=s=>{let i=class extends s{constructor(...e){super(...e),this.layer=null,this.interactive=!1,this.interactionOptions=new o,this.selectedElement=null}highlight(e,t){throw new Error("missing implementation")}};return e([t()],i.prototype,"layer",void 0),e([t()],i.prototype,"interactive",void 0),e([t()],i.prototype,"interactionOptions",void 0),e([t()],i.prototype,"selectedElement",void 0),i=e([r("esri.views.layers.MediaLayerView")],i),i};export{s as default};
5
+ import{_ as e}from"../../chunks/tslib.es6.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as r}from"../../core/accessorSupport/decorators/subclass.js";import{MediaLayerInteractionOptions as o}from"../3d/layers/support/MediaLayerInteractionOptions.js";const s=s=>{let i=class extends s{constructor(...e){super(...e),this.layer=null,this.interactive=!1,this.interactionOptions=new o,this.selectedElement=null}highlight(e,t){throw new Error("missing implementation")}};return e([t()],i.prototype,"layer",void 0),e([t()],i.prototype,"interactive",void 0),e([t({type:o})],i.prototype,"interactionOptions",void 0),e([t()],i.prototype,"selectedElement",void 0),i=e([r("esri.views.layers.MediaLayerView")],i),i};export{s as default};
@@ -1,4 +1,4 @@
1
1
  import "../../interfaces";
2
2
 
3
- import colorUtils = __esri.colorUtils;
4
- export = colorUtils;
3
+ export const getBackgroundColor: __esri.colorUtils["getBackgroundColor"];
4
+ export const getBackgroundColorTheme: __esri.colorUtils["getBackgroundColorTheme"];
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
+ */
5
+ class s{}const c=s,e=new c;export{c as NoParameters,e as noParameters};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
+ */
5
+ import e from"../../core/Error.js";import"../../core/has.js";import t from"../../core/Logger.js";import{BindType as r}from"./BindType.js";const n=()=>t.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder");class s{constructor(){this._includedModules=new Map}include(e,t){this._includedModules.has(e)?this._includedModules.get(e):(this._includedModules.set(e,t),e(this.builder,t))}}class i extends s{constructor(){super(...arguments),this.vertex=new c,this.fragment=new c,this.attributes=new h,this.varyings=new m,this.extensions=new _,this.outputs=new d}get fragmentUniforms(){return this.fragment.uniforms.entries}get builder(){return this}generate(e,t=!1){const r=this.extensions.generateSource(e),n=this.attributes.generateSource(e),s=this.varyings.generateSource(e),i="vertex"===e?this.vertex:this.fragment,o=i.uniforms.generateSource(),a=i.code.generateSource(),u=i.main.generateSource(t),c="vertex"===e?f:g,h=i.constants.generateSource(),m=this.outputs.generateSource(e);return`#version 300 es\n${r.join("\n")}\n${c}\n${h.join("\n")}\n${o.join("\n")}\n${n.join("\n")}\n${s.join("\n")}\n${m.join("\n")}\n${a.join("\n")}\n${u.join("\n")}`}generateBind(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const n=e.bind[r.Bind];n&&t.set(e.name,n)})),this.fragment.uniforms.entries.forEach((e=>{const n=e.bind[r.Bind];n&&t.set(e.name,n)}));const n=Array.from(t.values()),s=n.length;return t=>{for(let r=0;r<s;++r)n[r](e,t)}}generateBindPass(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const n=e.bind[r.Pass];n&&t.set(e.name,n)})),this.fragment.uniforms.entries.forEach((e=>{const n=e.bind[r.Pass];n&&t.set(e.name,n)}));const n=Array.from(t.values()),s=n.length;return(t,r)=>{for(let i=0;i<s;++i)n[i](e,t,r)}}generateBindDraw(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const n=e.bind[r.Draw];n&&t.set(e.name,n)})),this.fragment.uniforms.entries.forEach((e=>{const n=e.bind[r.Draw];n&&t.set(e.name,n)}));const n=Array.from(t.values()),s=n.length;return(t,r,i)=>{for(let o=0;o<s;++o)n[o](e,i,t,r)}}}class o{constructor(e){this._stage=e,this._entries=new Map}add(...e){for(const t of e)this._add(t);return this._stage}get(e){return this._entries.get(e)}_add(t){if(null!=t){if(this._entries.has(t.name)&&!this._entries.get(t.name).equals(t))throw new e(`Duplicate uniform name ${t.name} for different uniform type`);this._entries.set(t.name,t)}else n().error(`Trying to add null Uniform from ${(new Error).stack}.`)}generateSource(){return Array.from(this._entries.values()).map((e=>null!=e.arraySize?`uniform ${e.type} ${e.name}[${e.arraySize}];`:`uniform ${e.type} ${e.name};`))}get entries(){return Array.from(this._entries.values())}}class a{constructor(e){this._stage=e,this._bodies=new Array}add(e){return this._bodies.push(e),this._stage}generateSource(t){if(this._bodies.length>0)return[`void main() {\n ${this._bodies.join("\n")||""} \n}`];if(t)throw new e("Shader does not contain main function body.");return[]}}class u{constructor(e){this._stage=e,this._entries=new Array}add(e){return this._entries.push(e),this._stage}generateSource(){return this._entries}}class c extends s{constructor(){super(...arguments),this.uniforms=new o(this),this.main=new a(this),this.code=new u(this),this.constants=new l(this)}get builder(){return this}}class h{constructor(){this._entries=new Array}add(e,t){this._entries.push([e,t])}generateSource(e){return"fragment"===e?[]:this._entries.map((e=>`in ${e[1]} ${e[0]};`))}}class m{constructor(){this._entries=new Map}add(e,t){this._entries.has(e)?n().warn(`Ignoring duplicate varying ${t} ${e}`):this._entries.set(e,t)}generateSource(e){const t=new Array;return this._entries.forEach(((r,n)=>t.push("vertex"===e?`out ${r} ${n};`:`in ${r} ${n};`))),t}}class _{constructor(){this._entries=new Set}add(e){this._entries.add(e)}generateSource(e){const t="vertex"===e?_.ALLOWLIST_VERTEX:_.ALLOWLIST_FRAGMENT;return Array.from(this._entries).filter((e=>t.includes(e))).map((e=>`#extension ${e} : enable`))}}_.ALLOWLIST_FRAGMENT=["GL_EXT_shader_texture_lod","GL_OES_standard_derivatives"],_.ALLOWLIST_VERTEX=[];class d{constructor(){this._entries=new Map}add(e,t,r=0){const s=this._entries.get(r);s?.name!==e||s?.type!==t?this._entries.set(r,{name:e,type:t}):n().warn(`Fragment shader output location ${r} occupied`)}generateSource(e){if("vertex"===e)return[];0===this._entries.size&&this._entries.set(0,{name:d.DEFAULT_NAME,type:d.DEFAULT_TYPE});const t=new Array;return this._entries.forEach(((e,r)=>t.push(`layout(location = ${r}) out ${e.type} ${e.name};`))),t}}d.DEFAULT_TYPE="vec4",d.DEFAULT_NAME="fragColor";class l{constructor(e){this._stage=e,this._entries=new Set}add(e,t,r){let n="ERROR_CONSTRUCTOR_STRING";switch(t){case"float":n=l._numberToFloatStr(r);break;case"int":n=l._numberToIntStr(r);break;case"bool":n=r.toString();break;case"vec2":n=`vec2(${l._numberToFloatStr(r[0])}, ${l._numberToFloatStr(r[1])})`;break;case"vec3":n=`vec3(${l._numberToFloatStr(r[0])}, ${l._numberToFloatStr(r[1])}, ${l._numberToFloatStr(r[2])})`;break;case"vec4":n=`vec4(${l._numberToFloatStr(r[0])}, ${l._numberToFloatStr(r[1])}, ${l._numberToFloatStr(r[2])}, ${l._numberToFloatStr(r[3])})`;break;case"ivec2":n=`ivec2(${l._numberToIntStr(r[0])}, ${l._numberToIntStr(r[1])})`;break;case"ivec3":n=`ivec3(${l._numberToIntStr(r[0])}, ${l._numberToIntStr(r[1])}, ${l._numberToIntStr(r[2])})`;break;case"ivec4":n=`ivec4(${l._numberToIntStr(r[0])}, ${l._numberToIntStr(r[1])}, ${l._numberToIntStr(r[2])}, ${l._numberToIntStr(r[3])})`;break;case"mat2":case"mat3":case"mat4":n=`${t}(${Array.prototype.map.call(r,(e=>l._numberToFloatStr(e))).join(", ")})`}return this._entries.add(`const ${t} ${e} = ${n};`),this._stage}static _numberToIntStr(e){return e.toFixed(0)}static _numberToFloatStr(e){return Number.isInteger(e)?e.toFixed(1):e.toString()}generateSource(){return Array.from(this._entries)}}const g="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n#else\n precision mediump float;\n precision mediump int;\n precision mediump sampler2D;\n#endif",f="precision highp float;\nprecision highp sampler2D;";export{u as Code,s as Includes,a as Main,i as ShaderBuilder,c as Stage,o as Uniforms};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import t from"../../core/Error.js";import"../../core/has.js";import e from"../../core/Logger.js";import{abortMaybe as i}from"../../core/maybe.js";import{isAbortError as r}from"../../core/promiseUtils.js";import{signal as s}from"../../core/signal.js";import{getTextureCompressionWorker as o,isCompressible as a}from"../support/TextureCompressionHelper.js";import{checkWebGLError as n}from"./checkWebGLError.js";import{TextureType as l,ResourceType as p,CompressedTextureFormat as m,TextureSamplingMode as h}from"./enums.js";import{GLObjectType as _}from"./GLObjectType.js";import{estimateMemory as d}from"./TextureDescriptor.js";import{isCompressedData as c,deriveInternalFormat as u,isTexImageSource as g,getDimensions as T,is3DTarget as x,validateTexture as E,isCompressedFormat as M,calcMipmapLevels as A,isSizedPixelFormat as f}from"./textureUtils.js";import{ValidatedTextureDescriptor as I}from"./ValidatedTextureDescriptor.js";const w=null,b=()=>e.getLogger("esri/views/webgl/Texture");let D=class e{constructor(e,i=null,r=null){if(this.type=_.Texture,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._wasImmutablyAllocated=!1,this._compressionAbortController=s(null),"context"in e)this._descriptor=e,r=i;else{const r=I.validate(e,i);if(!r)throw new t("Texture descriptor invalid");this._descriptor=r}this._descriptor.target===l.TEXTURE_CUBE_MAP?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return d(this._descriptor)}get cachedMemory(){return this.usedMemory}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty}get isCompressing(){return null!==this._compressionAbortController.value}dispose(){this.abortCompression(),this._glName&&this._descriptor.context.instanceCounter.decrement(p.Texture,this),this._descriptor.context.gl&&this._glName&&(this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null)}release(){this.dispose()}resize(e,i){const r=this._descriptor;if(r.width!==e||r.height!==i){if(this._wasImmutablyAllocated)throw new t("Immutable textures can't be resized!");r.width=e,r.height=i,this._descriptor.target===l.TEXTURE_CUBE_MAP?this._setDataCubeMap(null):this.setData(null)}}enableCompression(t){this._descriptor.shouldCompress=t}setData(t){return this.abortCompression(),!c(t)&&this._descriptor.internalFormat&&this._descriptor.internalFormat in m&&(this._descriptor.internalFormat=void 0),this._setData(t),o()&&!c(t)&&a(t)&&this._descriptor.shouldCompress&&this.compressOnWorker(t),this.isCompressing}updateData(i,r,s,o,a,n,l=0){n||b().error("An attempt to use uninitialized data!"),this._glName||b().error("An attempt to update uninitialized texture!");const p=this._descriptor;p.internalFormat=u(p);const{context:m,pixelFormat:h,dataType:_,target:d,isImmutable:x}=p;if(x&&!this._wasImmutablyAllocated)throw new t("Cannot update immutable texture before allocation!");const E=m.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES,!0);(r<0||s<0||r+o>p.width||s+a>p.height)&&b().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:M}=m;if(l&&(o&&a||b().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),M.pixelStorei(M.UNPACK_SKIP_ROWS,l)),g(n)){const{width:t,height:e}=T(n);t===o&&e===a||b().warn("The size of the data does not match the provided dimensions"),M.texSubImage2D(d,i,r,s,o,a,h,_,n)}else c(n)?M.compressedTexSubImage2D(d,i,r,s,o,a,p.internalFormat,n.levels[i]):M.texSubImage2D(d,i,r,s,o,a,h,_,n);l&&M.pixelStorei(M.UNPACK_SKIP_ROWS,0),m.bindTexture(E,e.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(i,r,s,o,a,n,l,p){p||b().error("An attempt to use uninitialized data!"),this._glName||b().error("An attempt to update an uninitialized texture!");const m=this._descriptor;m.internalFormat=u(m);const{context:h,pixelFormat:_,dataType:d,isImmutable:g,target:T}=m;if(g&&!this._wasImmutablyAllocated)throw new t("Cannot update immutable texture before allocation!");x(T)||b().warn("Attempting to set 3D texture data on a non-3D texture");const E=h.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);h.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),(r<0||s<0||o<0||r+a>m.width||s+n>m.height||o+l>m.depth)&&b().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:M}=h;if(c(p))p=p.levels[i],M.compressedTexSubImage3D(T,i,r,s,o,a,n,l,m.internalFormat,p);else{const t=p;M.texSubImage3D(T,i,r,s,o,a,n,l,_,d,t)}h.bindTexture(E,e.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){const i=this._descriptor;if(!i.hasMipmap){if(this._wasImmutablyAllocated)throw new t("Cannot add mipmaps to immutable texture after allocation");i.hasMipmap=!0,this._samplingModeDirty=!0,E(i)}i.samplingMode===h.LINEAR?(this._samplingModeDirty=!0,i.samplingMode=h.LINEAR_MIPMAP_NEAREST):i.samplingMode===h.NEAREST&&(this._samplingModeDirty=!0,i.samplingMode=h.NEAREST_MIPMAP_NEAREST);const r=this._descriptor.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(i.target),this._descriptor.context.bindTexture(r,e.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){const e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new t("Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,E(e)}e.samplingMode===h.LINEAR_MIPMAP_NEAREST?(this._samplingModeDirty=!0,e.samplingMode=h.LINEAR):e.samplingMode===h.NEAREST_MIPMAP_NEAREST&&(this._samplingModeDirty=!0,e.samplingMode=h.NEAREST)}setSamplingMode(t){t!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=t,this._samplingModeDirty=!0)}setWrapMode(t){t!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=t,E(this._descriptor),this._wrapModeDirty=!0)}applyChanges(){this._samplingModeDirty&&(this._applySamplingMode(),this._samplingModeDirty=!1),this._wrapModeDirty&&(this._applyWrapMode(),this._wrapModeDirty=!1)}abortCompression(){this.isCompressing&&(this._compressionAbortController.value=i(this._compressionAbortController.value))}_setData(i,r){const s=this._descriptor,o=s.context?.gl;if(!o)return;n(o),this._glName||(this._glName=o.createTexture(),this._glName&&s.context.instanceCounter.increment(p.Texture,this)),E(s);const a=s.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);s.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),n(o);const l=r??s.target,m=x(l);if(g(i))this._setDataFromTexImageSource(i,l);else{const{width:e,height:r,depth:a}=s;if(null==e||null==r)throw new t("Width and height must be specified!");if(m&&null==a)throw new t("Depth must be specified!");if(s.internalFormat=u(s),s.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(l,s.internalFormat,s.hasMipmap,e,r,a),c(i)){if(!M(s.internalFormat))throw new t("Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(i,s.internalFormat,l)}else this._texImage(l,0,s.internalFormat,e,r,a,i),n(o),s.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),n(o),s.context.bindTexture(a,e.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(t=null){for(let e=l.TEXTURE_CUBE_MAP_POSITIVE_X;e<=l.TEXTURE_CUBE_MAP_NEGATIVE_Z;e++)this._setData(t,e)}_configurePixelStorage(){const t=this._descriptor.context.gl,{unpackAlignment:e,flipped:i,preMultiplyAlpha:r}=this._descriptor;t.pixelStorei(t.UNPACK_ALIGNMENT,e),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,i?1:0),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r?1:0)}_setDataFromTexImageSource(t,e){const{gl:i}=this._descriptor.context,r=this._descriptor;r.internalFormat=u(r);const s=x(e),{width:o,height:a,depth:l}=T(t);r.width&&r.height,r.width||(r.width=o),r.height||(r.height=a),s&&r.depth,s&&(r.depth=l),r.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(e,r.internalFormat,r.hasMipmap,o,a,l),this._texImage(e,0,r.internalFormat,o,a,l,t),n(i),r.hasMipmap&&(this.generateMipmap(),n(i))}_setDataFromCompressedSource(t,e,i){const r=this._descriptor,{width:s,height:o,depth:a}=r,n=t.levels,l=A(i,s,o,a),p=Math.min(l,n.length)-1;this._descriptor.context.gl.texParameteri(r.target,r.context.gl.TEXTURE_MAX_LEVEL,p),this._forEachMipmapLevel(((t,r,s,o)=>{const a=n[Math.min(t,n.length-1)];this._compressedTexImage(i,t,e,r,s,o,a)}),p)}_texStorage(e,i,r,s,o,a){const{gl:n}=this._descriptor.context;if(!f(i))throw new t("Immutable textures must have a sized internal format");if(!this._descriptor.isImmutable)return;const l=r?A(e,s,o,a):1;if(x(e)){if(null==a)throw new t("Missing depth dimension for 3D texture upload");n.texStorage3D(e,l,i,s,o,a)}else n.texStorage2D(e,l,i,s,o);this._wasImmutablyAllocated=!0}_texImage(e,i,r,s,o,a,n){const l=this._descriptor.context.gl,p=x(e),{isImmutable:m,pixelFormat:h,dataType:_}=this._descriptor;if(m){if(null!=n){const r=n;if(p){if(null==a)throw new t("Missing depth dimension for 3D texture upload");l.texSubImage3D(e,i,0,0,0,s,o,a,h,_,r)}else l.texSubImage2D(e,i,0,0,s,o,h,_,r)}}else{const m=n;if(p){if(null==a)throw new t("Missing depth dimension for 3D texture upload");l.texImage3D(e,i,r,s,o,a,0,h,_,m)}else l.texImage2D(e,i,r,s,o,0,h,_,m)}}_compressedTexImage(e,i,r,s,o,a,n){const l=this._descriptor.context.gl,p=x(e);if(this._descriptor.isImmutable){if(null!=n)if(p){if(null==a)throw new t("Missing depth dimension for 3D texture upload");l.compressedTexSubImage3D(e,i,0,0,0,s,o,a,r,n)}else l.compressedTexSubImage2D(e,i,0,0,s,o,r,n)}else if(p){if(null==a)throw new t("Missing depth dimension for 3D texture upload");l.compressedTexImage3D(e,i,r,s,o,a,0,n)}else l.compressedTexImage2D(e,i,r,s,o,0,n)}async compressOnWorker(t){const e=this._descriptor.context?.gl.getExtension("WEBGL_compressed_texture_etc"),i=this._descriptor.context?.gl.getExtension("WEBGL_compressed_texture_s3tc"),s=o();if(s&&(e||i)){const o=new AbortController;this._compressionAbortController.value=o;const a={data:await createImageBitmap(t),flipped:this.descriptor.flipped,width:t.width,height:t.height,hasMipmap:this._descriptor.hasMipmap,hasETC:!!e,hasS3TC:!!i,buffer:[new ArrayBuffer(0)]};s.invoke(a,this._compressionAbortController.value.signal).then((t=>{t&&this.isCompressing&&this.glName&&(this._descriptor.internalFormat=t.internalFormat,this._setData(t.compressedTexture)),o===this._compressionAbortController.value&&(this._compressionAbortController.value=null)})).catch((t=>{r(t)||o!==this._compressionAbortController.value||(this._compressionAbortController.value=null)}))}}_forEachMipmapLevel(e,i=1/0){let{width:r,height:s,depth:o,hasMipmap:a,target:n}=this._descriptor;const p=n===l.TEXTURE_3D;if(null==r||null==s||p&&null==o)throw new t("Missing texture dimensions for mipmap calculation");for(let t=0;e(t,r,s,o),a&&(1!==r||1!==s||p&&1!==o)&&!(t>=i);++t)r=Math.max(1,r>>1),s=Math.max(1,s>>1),p&&(o=Math.max(1,o>>1))}_applySamplingMode(){const t=this._descriptor,e=t.context?.gl;let i=t.samplingMode,r=t.samplingMode;i===h.LINEAR_MIPMAP_NEAREST||i===h.LINEAR_MIPMAP_LINEAR?(i=h.LINEAR,t.hasMipmap||(r=h.LINEAR)):i!==h.NEAREST_MIPMAP_NEAREST&&i!==h.NEAREST_MIPMAP_LINEAR||(i=h.NEAREST,t.hasMipmap||(r=h.NEAREST)),e.texParameteri(t.target,e.TEXTURE_MAG_FILTER,i),e.texParameteri(t.target,e.TEXTURE_MIN_FILTER,r)}_applyWrapMode(){const t=this._descriptor,e=t.context?.gl;"number"==typeof t.wrapMode?(e.texParameteri(t.target,e.TEXTURE_WRAP_S,t.wrapMode),e.texParameteri(t.target,e.TEXTURE_WRAP_T,t.wrapMode)):(e.texParameteri(t.target,e.TEXTURE_WRAP_S,t.wrapMode.s),e.texParameteri(t.target,e.TEXTURE_WRAP_T,t.wrapMode.t))}_applyAnisotropicFilteringParameters(){const t=this._descriptor,e=t.context.capabilities.textureFilterAnisotropic;if(!e)return;t.context.gl.texParameterf(t.target,e.TEXTURE_MAX_ANISOTROPY,t.maxAnisotropy??1)}};D.TEXTURE_UNIT_FOR_UPDATES=0;export{D as Texture,w as tracer};
5
+ import t from"../../core/Error.js";import"../../core/has.js";import e from"../../core/Logger.js";import{abortMaybe as i}from"../../core/maybe.js";import{isAbortError as r}from"../../core/promiseUtils.js";import{signal as s}from"../../core/signal.js";import{getTextureCompressionWorker as o,isCompressible as a}from"../support/TextureCompressionHelper.js";import{checkWebGLError as n}from"./checkWebGLError.js";import{TextureType as l,ResourceType as p,CompressedTextureFormat as m,TextureSamplingMode as h}from"./enums.js";import{GLObjectType as _}from"./GLObjectType.js";import{estimateMemory as d}from"./TextureDescriptor.js";import{isCompressedData as c,deriveInternalFormat as u,isTexImageSource as g,getDimensions as T,is3DTarget as x,validateTexture as E,isCompressedFormat as M,calcMipmapLevels as A,isSizedPixelFormat as f}from"./textureUtils.js";import{ValidatedTextureDescriptor as I}from"./ValidatedTextureDescriptor.js";const w=null,D=()=>e.getLogger("esri/views/webgl/Texture");let R=class e{constructor(e,i=null,r=null){if(this.type=_.Texture,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._wasImmutablyAllocated=!1,this._compressionAbortController=s(null),"context"in e)this._descriptor=e,r=i;else{const r=I.validate(e,i);if(!r)throw new t("Texture descriptor invalid");this._descriptor=r}this._descriptor.target===l.TEXTURE_CUBE_MAP?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return d(this._descriptor)}get cachedMemory(){return this.usedMemory}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty}get isCompressing(){return null!==this._compressionAbortController.value}dispose(){this.abortCompression(),this._glName&&this._descriptor.context.instanceCounter.decrement(p.Texture,this),this._descriptor.context.gl&&this._glName&&(this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null)}release(){this.dispose()}resize(e,i){const r=this._descriptor;if(r.width!==e||r.height!==i){if(this._wasImmutablyAllocated)throw new t("Immutable textures can't be resized!");r.width=e,r.height=i,this._descriptor.target===l.TEXTURE_CUBE_MAP?this._setDataCubeMap(null):this.setData(null)}}enableCompression(t){this._descriptor.shouldCompress=t}setData(t){return this.abortCompression(),!c(t)&&this._descriptor.internalFormat&&this._descriptor.internalFormat in m&&(this._descriptor.internalFormat=void 0),this._setData(t),o()&&!c(t)&&a(t)&&this._descriptor.shouldCompress&&this.compressOnWorker(t),this.isCompressing}updateData(i,r,s,o,a,n,l=0){n||D().error("An attempt to use uninitialized data!"),this._glName||D().error("An attempt to update uninitialized texture!");const p=this._descriptor;p.internalFormat=u(p);const{context:m,pixelFormat:h,dataType:_,target:d,isImmutable:x}=p;if(x&&!this._wasImmutablyAllocated)throw new t("Cannot update immutable texture before allocation!");const E=m.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES,!0);(r<0||s<0||r+o>p.width||s+a>p.height)&&D().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:M}=m;if(l&&(o&&a||D().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),M.pixelStorei(M.UNPACK_SKIP_ROWS,l)),g(n)){const{width:t,height:e}=T(n);t===o&&e===a||D().warn("The size of the data does not match the provided dimensions"),M.texSubImage2D(d,i,r,s,o,a,h,_,n)}else c(n)?M.compressedTexSubImage2D(d,i,r,s,o,a,p.internalFormat,n.levels[i]):M.texSubImage2D(d,i,r,s,o,a,h,_,n);l&&M.pixelStorei(M.UNPACK_SKIP_ROWS,0),m.bindTexture(E,e.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(i,r,s,o,a,n,l,p){p||D().error("An attempt to use uninitialized data!"),this._glName||D().error("An attempt to update an uninitialized texture!");const m=this._descriptor;m.internalFormat=u(m);const{context:h,pixelFormat:_,dataType:d,isImmutable:g,target:T}=m;if(g&&!this._wasImmutablyAllocated)throw new t("Cannot update immutable texture before allocation!");x(T)||D().warn("Attempting to set 3D texture data on a non-3D texture");const E=h.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);h.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),(r<0||s<0||o<0||r+a>m.width||s+n>m.height||o+l>m.depth)&&D().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:M}=h;if(c(p))p=p.levels[i],M.compressedTexSubImage3D(T,i,r,s,o,a,n,l,m.internalFormat,p);else{const t=p;M.texSubImage3D(T,i,r,s,o,a,n,l,_,d,t)}h.bindTexture(E,e.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){const i=this._descriptor;if(!i.hasMipmap){if(this._wasImmutablyAllocated)throw new t("Cannot add mipmaps to immutable texture after allocation");i.hasMipmap=!0,this._samplingModeDirty=!0,E(i)}i.samplingMode===h.LINEAR?(this._samplingModeDirty=!0,i.samplingMode=h.LINEAR_MIPMAP_NEAREST):i.samplingMode===h.NEAREST&&(this._samplingModeDirty=!0,i.samplingMode=h.NEAREST_MIPMAP_NEAREST);const r=this._descriptor.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(i.target),this._descriptor.context.bindTexture(r,e.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){const e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new t("Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,E(e)}e.samplingMode===h.LINEAR_MIPMAP_NEAREST?(this._samplingModeDirty=!0,e.samplingMode=h.LINEAR):e.samplingMode===h.NEAREST_MIPMAP_NEAREST&&(this._samplingModeDirty=!0,e.samplingMode=h.NEAREST)}setSamplingMode(t){t!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=t,this._samplingModeDirty=!0)}setWrapMode(t){t!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=t,E(this._descriptor),this._wrapModeDirty=!0)}applyChanges(){this._samplingModeDirty&&(this._applySamplingMode(),this._samplingModeDirty=!1),this._wrapModeDirty&&(this._applyWrapMode(),this._wrapModeDirty=!1)}abortCompression(){this.isCompressing&&(this._compressionAbortController.value=i(this._compressionAbortController.value))}_setData(i,r){const s=this._descriptor,o=s.context?.gl;if(!o)return;n(o),this._glName||(this._glName=o.createTexture(),this._glName&&s.context.instanceCounter.increment(p.Texture,this)),E(s);const a=s.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);s.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),n(o);const l=r??s.target,m=x(l);if(g(i))this._setDataFromTexImageSource(i,l);else{const{width:e,height:r,depth:a}=s;if(null==e||null==r)throw new t("Width and height must be specified!");if(m&&null==a)throw new t("Depth must be specified!");if(s.internalFormat=u(s),s.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(l,s.internalFormat,s.hasMipmap,e,r,a),c(i)){if(!M(s.internalFormat))throw new t("Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(i,s.internalFormat,l)}else this._texImage(l,0,s.internalFormat,e,r,a,i),n(o),s.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),n(o),s.context.bindTexture(a,e.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(t=null){for(let e=l.TEXTURE_CUBE_MAP_POSITIVE_X;e<=l.TEXTURE_CUBE_MAP_NEGATIVE_Z;e++)this._setData(t,e)}_configurePixelStorage(){const t=this._descriptor.context.gl,{unpackAlignment:e,flipped:i,preMultiplyAlpha:r}=this._descriptor;t.pixelStorei(t.UNPACK_ALIGNMENT,e),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,i?1:0),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r?1:0)}_setDataFromTexImageSource(t,e){const{gl:i}=this._descriptor.context,r=this._descriptor;r.internalFormat=u(r);const s=x(e),{width:o,height:a,depth:l}=T(t);r.width&&r.height,r.width||(r.width=o),r.height||(r.height=a),s&&r.depth,s&&(r.depth=l),r.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(e,r.internalFormat,r.hasMipmap,o,a,l),this._texImage(e,0,r.internalFormat,o,a,l,t),n(i),r.hasMipmap&&(this.generateMipmap(),n(i))}_setDataFromCompressedSource(t,e,i){const r=this._descriptor,{width:s,height:o,depth:a}=r,n=t.levels,l=A(i,s,o,a),p=Math.min(l,n.length)-1;this._descriptor.context.gl.texParameteri(r.target,r.context.gl.TEXTURE_MAX_LEVEL,p),this._forEachMipmapLevel(((t,r,s,o)=>{const a=n[Math.min(t,n.length-1)];this._compressedTexImage(i,t,e,r,s,o,a)}),p)}_texStorage(e,i,r,s,o,a){const{gl:n}=this._descriptor.context;if(!f(i))throw new t("Immutable textures must have a sized internal format");if(!this._descriptor.isImmutable)return;const l=r?A(e,s,o,a):1;if(x(e)){if(null==a)throw new t("Missing depth dimension for 3D texture upload");n.texStorage3D(e,l,i,s,o,a)}else n.texStorage2D(e,l,i,s,o);this._wasImmutablyAllocated=!0}_texImage(e,i,r,s,o,a,n){const l=this._descriptor.context.gl,p=x(e),{isImmutable:m,pixelFormat:h,dataType:_}=this._descriptor;if(m){if(null!=n){const r=n;if(p){if(null==a)throw new t("Missing depth dimension for 3D texture upload");l.texSubImage3D(e,i,0,0,0,s,o,a,h,_,r)}else l.texSubImage2D(e,i,0,0,s,o,h,_,r)}}else{const m=n;if(p){if(null==a)throw new t("Missing depth dimension for 3D texture upload");l.texImage3D(e,i,r,s,o,a,0,h,_,m)}else l.texImage2D(e,i,r,s,o,0,h,_,m)}}_compressedTexImage(e,i,r,s,o,a,n){const l=this._descriptor.context.gl,p=x(e);if(this._descriptor.isImmutable){if(null!=n)if(p){if(null==a)throw new t("Missing depth dimension for 3D texture upload");l.compressedTexSubImage3D(e,i,0,0,0,s,o,a,r,n)}else l.compressedTexSubImage2D(e,i,0,0,s,o,r,n)}else if(p){if(null==a)throw new t("Missing depth dimension for 3D texture upload");l.compressedTexImage3D(e,i,r,s,o,a,0,n)}else l.compressedTexImage2D(e,i,r,s,o,0,n)}async compressOnWorker(t){const e=this._descriptor.context?.gl.getExtension("WEBGL_compressed_texture_etc"),i=this._descriptor.context?.gl.getExtension("WEBGL_compressed_texture_s3tc"),s=o();if(s&&(e||i)){const o=new AbortController;this._compressionAbortController.value=o;const a={data:await createImageBitmap(t),flipped:this.descriptor.flipped,width:t.width,height:t.height,hasMipmap:this._descriptor.hasMipmap,hasETC:!!e,hasS3TC:!!i};s.invoke(a,this._compressionAbortController.value.signal).then((t=>{t&&this.isCompressing&&this.glName&&(this._descriptor.internalFormat=t.internalFormat,this._setData(t.compressedTexture)),o===this._compressionAbortController.value&&(this._compressionAbortController.value=null)})).catch((t=>{r(t)||o!==this._compressionAbortController.value||(this._compressionAbortController.value=null)}))}}_forEachMipmapLevel(e,i=1/0){let{width:r,height:s,depth:o,hasMipmap:a,target:n}=this._descriptor;const p=n===l.TEXTURE_3D;if(null==r||null==s||p&&null==o)throw new t("Missing texture dimensions for mipmap calculation");for(let t=0;e(t,r,s,o),a&&(1!==r||1!==s||p&&1!==o)&&!(t>=i);++t)r=Math.max(1,r>>1),s=Math.max(1,s>>1),p&&(o=Math.max(1,o>>1))}_applySamplingMode(){const t=this._descriptor,e=t.context?.gl;let i=t.samplingMode,r=t.samplingMode;i===h.LINEAR_MIPMAP_NEAREST||i===h.LINEAR_MIPMAP_LINEAR?(i=h.LINEAR,t.hasMipmap||(r=h.LINEAR)):i!==h.NEAREST_MIPMAP_NEAREST&&i!==h.NEAREST_MIPMAP_LINEAR||(i=h.NEAREST,t.hasMipmap||(r=h.NEAREST)),e.texParameteri(t.target,e.TEXTURE_MAG_FILTER,i),e.texParameteri(t.target,e.TEXTURE_MIN_FILTER,r)}_applyWrapMode(){const t=this._descriptor,e=t.context?.gl;"number"==typeof t.wrapMode?(e.texParameteri(t.target,e.TEXTURE_WRAP_S,t.wrapMode),e.texParameteri(t.target,e.TEXTURE_WRAP_T,t.wrapMode)):(e.texParameteri(t.target,e.TEXTURE_WRAP_S,t.wrapMode.s),e.texParameteri(t.target,e.TEXTURE_WRAP_T,t.wrapMode.t))}_applyAnisotropicFilteringParameters(){const t=this._descriptor,e=t.context.capabilities.textureFilterAnisotropic;if(!e)return;t.context.gl.texParameterf(t.target,e.TEXTURE_MAX_ANISOTROPY,t.maxAnisotropy??1)}};R.TEXTURE_UNIT_FOR_UPDATES=0;export{R as Texture,w as tracer};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
+ */
5
+ import"../../core/has.js";import{BindType as s}from"./BindType.js";class i{constructor(i,a,e,r,t=null){if(this.name=i,this.type=a,this.arraySize=t,this.bind={[s.Bind]:null,[s.Pass]:null,[s.Draw]:null},r)switch(e){case void 0:break;case s.Bind:this.bind[s.Bind]=r;break;case s.Pass:this.bind[s.Pass]=r;break;case s.Draw:this.bind[s.Draw]=r}}equals(s){return this.type===s.type&&this.name===s.name&&this.arraySize===s.arraySize}}export{i as Uniform};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import has from"../../core/has.js";import{glsl as e}from"../3d/webgl-engine/core/shaderModules/interfaces.js";import{AppleAmdDriverHelper as r}from"./AppleAmdDriverHelper.js";import{BufferObject as t}from"./BufferObject.js";import{TextureWrapMode as o,TextureSamplingMode as n,Usage as i,BufferType as s,PrimitiveType as a,DataType as p,PixelFormat as c,PixelType as l}from"./enums.js";import{FramebufferObject as m}from"./FramebufferObject.js";import{TextureDescriptor as f}from"./TextureDescriptor.js";import{WebGLDriverTestModule as g}from"./WebGLDriverTestModule.js";class d extends g{constructor(e){super(),this._rctx=e,this._helperProgram=null,has("mac")&&has("chrome")&&(this._program=this._prepareProgram(),this._helperProgram=this._prepareHelperProgram())}dispose(){super.dispose(),this._helperProgram?.dispose(),this._helperProgram=null}_test(e){const r=this._rctx,g=r.getBoundFramebufferObject(),{x:d,y:h,width:u,height:_}=r.getViewport();r.resetState();const v=new f(1);v.wrapMode=o.CLAMP_TO_EDGE,v.samplingMode=n.NEAREST;const P=new m(r,v),w=t.createIndex(this._rctx,i.STATIC_DRAW,new Uint8Array([0]));r.bindFramebuffer(P),r.setViewport(0,0,1,1),r.useProgram(this._helperProgram),r.bindBuffer(w,s.ELEMENT_ARRAY_BUFFER),r.drawElements(a.POINTS,1,p.UNSIGNED_BYTE,0),r.useProgram(e),r.bindVAO(null),r.drawArrays(a.TRIANGLES,0,258);const x=new Uint8Array(4);return P.readPixels(0,0,1,1,c.RGBA,l.UNSIGNED_BYTE,x),r.setViewport(d,h,u,_),r.bindFramebuffer(g),P.dispose(),w.dispose(),255===x[0]}_prepareProgram(){const r=85,t=`#version 300 es\n precision highp float;\n\n out float triangleId;\n\n const vec3 triangleVertices[3] = vec3[3](vec3(-0.5, -0.5, 0.0), vec3(0.5, -0.5, 0.0), vec3(0.0, 0.5, 0.0));\n\n void main(void) {\n triangleId = floor(float(gl_VertexID)/3.0);\n\n vec3 position = triangleVertices[gl_VertexID % 3];\n float offset = triangleId / ${e.float(r)};\n position.z = 0.5 - offset;\n\n gl_Position = vec4(position, 1.0);\n }\n `,o=`#version 300 es\n precision highp float;\n\n in float triangleId;\n\n out vec4 fragColor;\n\n void main(void) {\n fragColor = triangleId == ${e.float(r)} ? vec4(0.0, 1.0, 0.0, 1.0) : vec4(1.0, 0.0, 0.0, 1.0);\n }\n `;return this._rctx.programCache.acquire(t,o,new Map([]))}_prepareHelperProgram(){const e=r.getShaderSources();return this._rctx.programCache.acquire(e.vertex,e.fragment,new Map([]))}}export{d as DrawArraysRequiresIndicesTypeReset};
5
+ import has from"../../core/has.js";import{glsl as e}from"../3d/webgl-engine/core/shaderModules/glsl.js";import{AppleAmdDriverHelper as r}from"./AppleAmdDriverHelper.js";import{BufferObject as t}from"./BufferObject.js";import{TextureWrapMode as o,TextureSamplingMode as n,Usage as i,BufferType as s,PrimitiveType as a,DataType as p,PixelFormat as l,PixelType as c}from"./enums.js";import{FramebufferObject as m}from"./FramebufferObject.js";import{TextureDescriptor as g}from"./TextureDescriptor.js";import{WebGLDriverTestModule as f}from"./WebGLDriverTestModule.js";class d extends f{constructor(e){super(),this._rctx=e,this._helperProgram=null,has("mac")&&has("chrome")&&(this._program=this._prepareProgram(),this._helperProgram=this._prepareHelperProgram())}dispose(){super.dispose(),this._helperProgram?.dispose(),this._helperProgram=null}_test(e){const r=this._rctx,f=r.getBoundFramebufferObject(),{x:d,y:h,width:u,height:_}=r.getViewport();r.resetState();const v=new g(1);v.wrapMode=o.CLAMP_TO_EDGE,v.samplingMode=n.NEAREST;const P=new m(r,v),w=t.createIndex(this._rctx,i.STATIC_DRAW,new Uint8Array([0]));r.bindFramebuffer(P),r.setViewport(0,0,1,1),r.useProgram(this._helperProgram),r.bindBuffer(w,s.ELEMENT_ARRAY_BUFFER),r.drawElements(a.POINTS,1,p.UNSIGNED_BYTE,0),r.useProgram(e),r.bindVAO(null),r.drawArrays(a.TRIANGLES,0,258);const x=new Uint8Array(4);return P.readPixels(0,0,1,1,l.RGBA,c.UNSIGNED_BYTE,x),r.setViewport(d,h,u,_),r.bindFramebuffer(f),P.dispose(),w.dispose(),255===x[0]}_prepareProgram(){const r=85,t=`#version 300 es\n precision highp float;\n\n out float triangleId;\n\n const vec3 triangleVertices[3] = vec3[3](vec3(-0.5, -0.5, 0.0), vec3(0.5, -0.5, 0.0), vec3(0.0, 0.5, 0.0));\n\n void main(void) {\n triangleId = floor(float(gl_VertexID)/3.0);\n\n vec3 position = triangleVertices[gl_VertexID % 3];\n float offset = triangleId / ${e.float(r)};\n position.z = 0.5 - offset;\n\n gl_Position = vec4(position, 1.0);\n }\n `,o=`#version 300 es\n precision highp float;\n\n in float triangleId;\n\n out vec4 fragColor;\n\n void main(void) {\n fragColor = triangleId == ${e.float(r)} ? vec4(0.0, 1.0, 0.0, 1.0) : vec4(1.0, 0.0, 0.0, 1.0);\n }\n `;return this._rctx.programCache.acquire(t,o,new Map([]))}_prepareHelperProgram(){const e=r.getShaderSources();return this._rctx.programCache.acquire(e.vertex,e.fragment,new Map([]))}}export{d as DrawArraysRequiresIndicesTypeReset};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../chunks/tslib.es6.js";import e from"../../Graphic.js";import i from"../../core/Accessor.js";import a from"../../core/Collection.js";import n from"../../core/Error.js";import{watch as r,initial as s}from"../../core/reactiveUtils.js";import{property as o}from"../../core/accessorSupport/decorators/property.js";import{cast as c}from"../../core/accessorSupport/decorators/cast.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as h}from"../../core/accessorSupport/decorators/subclass.js";import d from"../../rest/query/support/AttachmentInfo.js";import l from"../../rest/support/AttachmentQuery.js";import{getSourceLayer as m}from"../Feature/support/featureUtils.js";const p={editing:!1,operations:{add:!0,update:!0,delete:!0}},u=a.ofType(d);let f=class extends i{constructor(t){super(t),this._getAttachmentsPromise=null,this._attachmentLayer=null,this.capabilities={...p},this.activeAttachmentInfo=null,this.activeFileInfo=null,this.attachmentInfos=new u,this.fileInfos=new a,this.graphic=null,this.mode="view",this.filesEnabled=!1,this.addHandles(r((()=>this.graphic),(()=>this._graphicChanged()),s))}destroy(){this._attachmentLayer=null,this.graphic=null}castCapabilities(t){return{...p,...t}}get state(){return this._getAttachmentsPromise?"loading":this.graphic?"ready":"disabled"}get supportsResizeAttachments(){const{graphic:t}=this;if(!t)return!1;const e=t.layer||t.sourceLayer;return e?.loaded&&"capabilities"in e&&e.capabilities&&"operations"in e.capabilities&&"supportsResizeAttachments"in e.capabilities.operations&&e.capabilities.operations.supportsResizeAttachments||!1}async getAttachments(){const{_attachmentLayer:t,attachmentInfos:e}=this;if(!t||"function"!=typeof t.queryAttachments)throw new n("invalid-layer","getAttachments(): A valid layer is required.");const i=this._getObjectId();if("number"!=typeof i)throw new n("invalid-object-id","getAttachments(): Numeric object id is required");const a=new l({objectIds:[i],returnMetadata:!0}),r=[],s=t.queryAttachments(a).then((t=>t[i]||r)).catch((()=>r));this._getAttachmentsPromise=s,this.notifyChange("state");const o=await s;return e.destroyAll(),o.length&&e.addMany(o),this._getAttachmentsPromise=null,this.notifyChange("state"),o}async addAttachment(t,e=this.graphic){const{_attachmentLayer:i,attachmentInfos:a,capabilities:r}=this;if(!e)throw new n("invalid-graphic","addAttachment(): A valid graphic is required.",{graphic:e});if(!t)throw new n("invalid-attachment","addAttachment(): An attachment is required.",{attachment:t});if(!r.operations?.add)throw new n("invalid-capabilities","addAttachment(): add capabilities are required.");if(!i||"function"!=typeof i.addAttachment)throw new n("invalid-layer","addAttachment(): A valid layer is required.");const s=i.addAttachment(e,t).then((t=>this._queryAttachment(t.objectId,e))),o=await s;return a.add(o),o}async deleteAttachment(t){const{_attachmentLayer:e,attachmentInfos:i,graphic:a,capabilities:r}=this;if(!t)throw new n("invalid-attachment-info","deleteAttachment(): An attachmentInfo is required.",{attachmentInfo:t});if(!r.operations?.delete)throw new n("invalid-capabilities","deleteAttachment(): delete capabilities are required.");if(!e||"function"!=typeof e.deleteAttachments)throw new n("invalid-layer","deleteAttachment(): A valid layer is required.");if(!a)throw new n("invalid-graphic","deleteAttachment(): A graphic is required.");const s=e.deleteAttachments(a,[t.id]).then((()=>t)),o=await s;return i.remove(o),o.destroy(),o}async updateAttachment(t,e=this.activeAttachmentInfo){const{_attachmentLayer:i,attachmentInfos:a,graphic:r,capabilities:s}=this;if(!t)throw new n("invalid-attachment","updateAttachment(): An attachment is required.",{attachment:t});if(!e)throw new n("invalid-attachment-info","updateAttachment(): An attachmentInfo is required.",{attachmentInfo:e});if(!s.operations?.update)throw new n("invalid-capabilities","updateAttachment(): Update capabilities are required.");const o=a.indexOf(e);if(!i||"function"!=typeof i.updateAttachment)throw new n("invalid-layer","updateAttachment(): A valid layer is required.");if(!r)throw new n("invalid-graphic","updateAttachment(): A graphic is required.");const c=i.updateAttachment(r,e.id,t).then((t=>this._queryAttachment(t.objectId))),h=await c;return a.splice(o,1,h),h}async commitFiles(){return await Promise.all(this.fileInfos.items.map((t=>this.addAttachment(t.form)))),this.fileInfos.removeAll(),this.getAttachments()}addFile(t,e){if(!t||!e)return null;const i={file:t,form:e};return this.fileInfos.add(i),i}updateFile(t,e,i=this.activeFileInfo){if(!t||!e||!i)return null;const a=this.fileInfos.indexOf(i);return a>-1&&this.fileInfos.splice(a,1,{file:t,form:e}),this.fileInfos.items[a]}deleteFile(t){const e=this.fileInfos.find((e=>e.file===t));return e?(this.fileInfos.remove(e),e):null}async _queryAttachment(t,e){const{_attachmentLayer:i}=this;if(!t||!i?.queryAttachments)throw new n("invalid-attachment-id","Could not query attachment.");const a=this._getObjectId(e);if("number"!=typeof a)throw new n("invalid-object-id","getAttachments(): Numeric object id is required");const r=new l({objectIds:[a],attachmentsWhere:`AttachmentId=${t}`,returnMetadata:!0});return i.queryAttachments(r).then((t=>t[a][0]))}_getObjectId(t=this.graphic){return t?.getObjectId()??null}_graphicChanged(){this.graphic&&(this._setAttachmentLayer(),this.getAttachments().catch((()=>this.attachmentInfos.destroyAll())))}_setAttachmentLayer(){const{graphic:t}=this,e=m(t);this._attachmentLayer=e?"scene"===e.type&&null!=e.associatedLayer?e.associatedLayer:e:null}};t([o()],f.prototype,"capabilities",void 0),t([c("capabilities")],f.prototype,"castCapabilities",null),t([o()],f.prototype,"activeAttachmentInfo",void 0),t([o()],f.prototype,"activeFileInfo",void 0),t([o({readOnly:!0,type:u})],f.prototype,"attachmentInfos",void 0),t([o()],f.prototype,"fileInfos",void 0),t([o({type:e})],f.prototype,"graphic",void 0),t([o()],f.prototype,"mode",void 0),t([o({readOnly:!0})],f.prototype,"state",null),t([o()],f.prototype,"filesEnabled",void 0),t([o({readOnly:!0})],f.prototype,"supportsResizeAttachments",null),f=t([h("esri.widgets.Attachments.AttachmentsViewModel")],f);const y=f;export{y as default};
5
+ import{_ as t}from"../../chunks/tslib.es6.js";import e from"../../Graphic.js";import a from"../../core/Accessor.js";import i from"../../core/Collection.js";import n from"../../core/Error.js";import{watch as r,initial as s}from"../../core/reactiveUtils.js";import{property as c}from"../../core/accessorSupport/decorators/property.js";import{cast as o}from"../../core/accessorSupport/decorators/cast.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as h}from"../../core/accessorSupport/decorators/subclass.js";import d from"../../rest/query/support/AttachmentInfo.js";import l from"../../rest/support/AttachmentQuery.js";import{getSourceLayer as m}from"../Feature/support/featureUtils.js";const p={editing:!1,operations:{add:!0,update:!0,delete:!0}},u=i.ofType(d);let f=class extends a{constructor(t){super(t),this._getAttachmentsPromise=null,this._attachmentLayer=null,this.capabilities={...p},this.activeAttachmentInfo=null,this.activeFileInfo=null,this.attachmentInfos=new u,this.fileInfos=new i,this.graphic=null,this.mode="view",this.filesEnabled=!1,this.addHandles(r((()=>this.graphic),(()=>this._graphicChanged()),s))}destroy(){this._attachmentLayer=null,this.graphic=null}castCapabilities(t){return{...p,...t}}get state(){return this._getAttachmentsPromise?"loading":this.graphic?"ready":"disabled"}get supportsResizeAttachments(){const{graphic:t}=this;if(!t)return!1;const e=t.layer||t.sourceLayer;return e?.loaded&&"capabilities"in e&&e.capabilities&&"attachment"in e.capabilities&&e.capabilities.attachment&&"supportsResize"in e.capabilities.attachment&&e.capabilities.attachment.supportsResize||!1}async getAttachments(){const{_attachmentLayer:t,attachmentInfos:e}=this;if(!t||"function"!=typeof t.queryAttachments)throw new n("invalid-layer","getAttachments(): A valid layer is required.");const a=this._getObjectId();if("number"!=typeof a)throw new n("invalid-object-id","getAttachments(): Numeric object id is required");const i=new l({objectIds:[a],returnMetadata:!0}),r=[],s=t.queryAttachments(i).then((t=>t[a]||r)).catch((()=>r));this._getAttachmentsPromise=s,this.notifyChange("state");const c=await s;return e.destroyAll(),c.length&&e.addMany(c),this._getAttachmentsPromise=null,this.notifyChange("state"),c}async addAttachment(t,e=this.graphic){const{_attachmentLayer:a,attachmentInfos:i,capabilities:r}=this;if(!e)throw new n("invalid-graphic","addAttachment(): A valid graphic is required.",{graphic:e});if(!t)throw new n("invalid-attachment","addAttachment(): An attachment is required.",{attachment:t});if(!r.operations?.add)throw new n("invalid-capabilities","addAttachment(): add capabilities are required.");if(!a||"function"!=typeof a.addAttachment)throw new n("invalid-layer","addAttachment(): A valid layer is required.");const s=a.addAttachment(e,t).then((t=>this._queryAttachment(t.objectId,e))),c=await s;return i.add(c),c}async deleteAttachment(t){const{_attachmentLayer:e,attachmentInfos:a,graphic:i,capabilities:r}=this;if(!t)throw new n("invalid-attachment-info","deleteAttachment(): An attachmentInfo is required.",{attachmentInfo:t});if(!r.operations?.delete)throw new n("invalid-capabilities","deleteAttachment(): delete capabilities are required.");if(!e||"function"!=typeof e.deleteAttachments)throw new n("invalid-layer","deleteAttachment(): A valid layer is required.");if(!i)throw new n("invalid-graphic","deleteAttachment(): A graphic is required.");const s=e.deleteAttachments(i,[t.id]).then((()=>t)),c=await s;return a.remove(c),c.destroy(),c}async updateAttachment(t,e=this.activeAttachmentInfo){const{_attachmentLayer:a,attachmentInfos:i,graphic:r,capabilities:s}=this;if(!t)throw new n("invalid-attachment","updateAttachment(): An attachment is required.",{attachment:t});if(!e)throw new n("invalid-attachment-info","updateAttachment(): An attachmentInfo is required.",{attachmentInfo:e});if(!s.operations?.update)throw new n("invalid-capabilities","updateAttachment(): Update capabilities are required.");const c=i.indexOf(e);if(!a||"function"!=typeof a.updateAttachment)throw new n("invalid-layer","updateAttachment(): A valid layer is required.");if(!r)throw new n("invalid-graphic","updateAttachment(): A graphic is required.");const o=a.updateAttachment(r,e.id,t).then((t=>this._queryAttachment(t.objectId))),h=await o;return i.splice(c,1,h),h}async commitFiles(){return await Promise.all(this.fileInfos.items.map((t=>this.addAttachment(t.form)))),this.fileInfos.removeAll(),this.getAttachments()}addFile(t,e){if(!t||!e)return null;const a={file:t,form:e};return this.fileInfos.add(a),a}updateFile(t,e,a=this.activeFileInfo){if(!t||!e||!a)return null;const i=this.fileInfos.indexOf(a);return i>-1&&this.fileInfos.splice(i,1,{file:t,form:e}),this.fileInfos.items[i]}deleteFile(t){const e=this.fileInfos.find((e=>e.file===t));return e?(this.fileInfos.remove(e),e):null}async _queryAttachment(t,e){const{_attachmentLayer:a}=this;if(!t||!a?.queryAttachments)throw new n("invalid-attachment-id","Could not query attachment.");const i=this._getObjectId(e);if("number"!=typeof i)throw new n("invalid-object-id","getAttachments(): Numeric object id is required");const r=new l({objectIds:[i],attachmentsWhere:`AttachmentId=${t}`,returnMetadata:!0});return a.queryAttachments(r).then((t=>t[i][0]))}_getObjectId(t=this.graphic){return t?.getObjectId()??null}_graphicChanged(){this.graphic&&(this._setAttachmentLayer(),this.getAttachments().catch((()=>this.attachmentInfos.destroyAll())))}_setAttachmentLayer(){const{graphic:t}=this,e=m(t);this._attachmentLayer=e?"scene"===e.type&&null!=e.associatedLayer?e.associatedLayer:e:null}};t([c()],f.prototype,"capabilities",void 0),t([o("capabilities")],f.prototype,"castCapabilities",null),t([c()],f.prototype,"activeAttachmentInfo",void 0),t([c()],f.prototype,"activeFileInfo",void 0),t([c({readOnly:!0,type:u})],f.prototype,"attachmentInfos",void 0),t([c()],f.prototype,"fileInfos",void 0),t([c({type:e})],f.prototype,"graphic",void 0),t([c()],f.prototype,"mode",void 0),t([c({readOnly:!0})],f.prototype,"state",null),t([c()],f.prototype,"filesEnabled",void 0),t([c({readOnly:!0})],f.prototype,"supportsResizeAttachments",null),f=t([h("esri.widgets.Attachments.AttachmentsViewModel")],f);const y=f;export{y as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../chunks/tslib.es6.js";import{createTask as t}from"../../core/asyncUtils.js";import r from"../../core/Collection.js";import s from"../../core/Error.js";import o from"../../core/Evented.js";import{abortMaybe as a}from"../../core/maybe.js";import{throwIfAborted as i}from"../../core/promiseUtils.js";import n from"../../core/ReactiveMap.js";import{on as p,watch as u,sync as m}from"../../core/reactiveUtils.js";import{property as l}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as d}from"../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as h}from"../../core/support/UpdatingHandles.js";import{createReactiveGraphic as c}from"./batchAttributeFormUtils.js";import{ArcadeExecutorProvider as F}from"./expressions/ArcadeExecutorProvider.js";import{BatchFormInputs as f}from"./inputs/BatchFormInputs.js";import{createBatchFormInputsFromBatchFormTemplate as y}from"./inputs/support/createBatchFormInputs.js";import v from"./templates/BatchFormTemplate.js";import{createBatchFormTemplate as _}from"./templates/support/createBatchFormTemplate.js";let g=class extends o.EventedAccessor{constructor(e){super(e),this.activeFeatureIndex=-1,this.disabled=!1,this.submitHasBeenAttempted=!1,this.editType="NA",this.features=new r,this.userHasChangedValues=!1,this._arcadeExecutorProvider=new F,this._activeFormInputsByElementId=new Map,this._emptyForm=new f({inputs:[]}),this._emptyFormTemplate=new v({elements:[]}),this._featureFormMap=new Map,this._prepareTask=null,this._updatingHandles=new h,this._layerTemplateMap=new n,this._workingFeatures=new r,this.sharedForm=this._emptyForm,this.sharedFormTemplate=this._emptyFormTemplate}initialize(){this.addHandles([p((()=>this.features),"after-changes",(()=>this._prepare()),{onListenerAdd:()=>this._prepare(),sync:!0}),u((()=>this.activeForm),(()=>this._activeFormInputsByElementId.clear()),m)]),this._prepare()}destroy(){this._prepareTask=a(this._prepareTask),this._workingFeatures.destroyAll(),this._emptyForm.destroy(),this._emptyFormTemplate.destroy()}get activeFeature(){const e=this.activeFeatureIndex;return e<0?null:this.features.at(e)}get activeForm(){if("batch"===this.mode)return this.sharedForm;const e=this._workingFeatures.at(this.activeFeatureIndex);if(!e)return this._emptyForm;const t=this._featureFormMap.get(e);if(t)return t;const r=this._makeBatchFormInputsForFeature(e);return r!==this._emptyForm&&this._featureFormMap.set(e,r),r}get hasNonActiveInvalidFeatures(){if("batch"===this.mode)return!1;const{activeFeature:e}=this;return this.invalidFeatures.some((t=>t!==e))}get invalidFeatures(){return this.sharedForm.invalidFeatures}get status(){const e=this._prepareTask;return null==e?"not-loaded":e.finished?null!=e.error?"failed":"loaded":"loading"}get submittable(){return this.valid,!0}get updating(){return this._updatingHandles.updating}get valid(){return this.sharedForm.valid}get layers(){const e=new Set;return this.features.forEach((t=>{const r=t.sourceLayer??t.layer;e.add(r)})),Array.from(e)}get mode(){return this.activeFeatureIndex>-1?"single":"batch"}submit(){this.submitHasBeenAttempted=!0,this.emit("submit",{})}findFieldInput(e){if(null==e)return;const t=this._activeFormInputsByElementId;if(t.has(e))return t.get(e);const r=this.activeForm.allFieldInputs.find((t=>t.template.elementId===e));return void 0!==r?(t.set(e,r),r):void 0}getFieldInputValue(e){return this.findFieldInput(e)?.value}getValues(e){const t=this._workingFeatures.find((({original:t})=>t===e));if(!t)throw new s("feature-not-found","The given feature is not present in the BatchAttributeForm");return{...t.attributes}}setFieldInputValue(e,t){e.setValueFromUser(t),this.emit("value-change",{features:e.features.toArray().map((e=>e.original)),fieldName:e.fieldName,name:"value-change",value:t})}setValue(e,t){const r=this.findFieldInput(e);if(null==r)throw new s("no-FieldInput-found",`Cannot set the value of FieldInput with ID: ${e} because none was found in the active form`);this.setFieldInputValue(r,t)}validate(){return!1}getCodedValueOptions(e){return e.codedValues.map((({name:e,code:t})=>({name:e,value:t})))}_makeBatchFormInputsForFeature(e){const t=this._layerTemplateMap.get(e.layer);return t?y(t,new r([e])):this._emptyForm}async _prepare(){this._prepareTask=a(this._prepareTask),this._updateWorkingFeatures();const{layers:e}=this;if(0===e.length)return;const r=t((async t=>{i(t);const r=new Map;for(const o of e){const e=await _(o,{arcadeExecutorProvider:this._arcadeExecutorProvider});this._layerTemplateMap.set(o,e);for(const t of e.elements){const{elementId:e}=t;r.has(e)?r.get(e).foldIn(t):r.set(e,t.clone())}}const s=new v({elements:Array.from(r.values())});this.sharedFormTemplate=s,this.sharedForm=y(s,this._workingFeatures)}));this._updatingHandles.addPromise(r.promise),this._prepareTask=r}_updateWorkingFeatures(){this._workingFeatures.destroyAll();const{features:e}=this;0!==e.length&&this._workingFeatures.addMany(e.map(c))}};e([l({readOnly:!0})],g.prototype,"activeFeature",null),e([l()],g.prototype,"activeFeatureIndex",void 0),e([l({readOnly:!0})],g.prototype,"activeForm",null),e([l()],g.prototype,"disabled",void 0),e([l()],g.prototype,"submitHasBeenAttempted",void 0),e([l()],g.prototype,"editType",void 0),e([l()],g.prototype,"features",void 0),e([l()],g.prototype,"hasNonActiveInvalidFeatures",null),e([l()],g.prototype,"invalidFeatures",null),e([l()],g.prototype,"updating",null),e([l()],g.prototype,"valid",null),e([l()],g.prototype,"layers",null),e([l()],g.prototype,"mode",null),e([l()],g.prototype,"submit",null),e([l()],g.prototype,"sharedForm",void 0),e([l()],g.prototype,"sharedFormTemplate",void 0),e([l()],g.prototype,"userHasChangedValues",void 0),e([l()],g.prototype,"_arcadeExecutorProvider",void 0),e([l()],g.prototype,"_prepareTask",void 0),e([l()],g.prototype,"_layerTemplateMap",void 0),e([l()],g.prototype,"_workingFeatures",void 0),g=e([d("esri.widgets.BatchAttributeForm.BatchAttributeFormViewModel")],g);const w=g;export{w as default};
5
+ import{_ as e}from"../../chunks/tslib.es6.js";import{createTask as t}from"../../core/asyncUtils.js";import r from"../../core/Collection.js";import s from"../../core/Error.js";import i from"../../core/Evented.js";import o from"../../core/Logger.js";import{abortMaybe as a}from"../../core/maybe.js";import{throwIfAborted as n}from"../../core/promiseUtils.js";import p from"../../core/ReactiveMap.js";import{on as l,watch as u,sync as m}from"../../core/reactiveUtils.js";import{property as d}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as h}from"../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as c}from"../../core/support/UpdatingHandles.js";import f from"../../geometry/SpatialReference.js";import{system as _}from"../../time/timeZoneUtils.js";import{createReactiveGraphic as F}from"./batchAttributeFormUtils.js";import{ArcadeExecutorProvider as y}from"./expressions/ArcadeExecutorProvider.js";import{ExpressionsManager as g}from"./expressions/ExpressionsManager.js";import{ExpressionsModel as v}from"./expressions/ExpressionsModel.js";import{BatchFormInputs as I}from"./inputs/BatchFormInputs.js";import{createBatchFormInputsFromBatchFormTemplate as E}from"./inputs/support/createBatchFormInputs.js";import{NoVisibleElementCodes as x,InputVisibilityCode as w}from"./inputs/support/inputUtils.js";import T from"./templates/BatchFormTemplate.js";import{createBatchFormTemplate as M}from"./templates/support/createBatchFormTemplate.js";let b=class extends i.EventedAccessor{constructor(e){super(e),this.activeFeatureIndex=-1,this.disabled=!1,this.editType="NA",this.features=new r,this.map=null,this.spatialReference=null,this.submitHasBeenAttempted=!1,this.timeZone=null,this.userHasChangedValues=!1,this._arcadeExecutorProvider=new y,this._activeFormInputsByElementId=new Map,this._emptyForm=new I({inputs:[]}),this._emptyFormTemplate=new T({elements:[]}),this._featureFormMap=new Map,this._prepareTask=null,this._updatingHandles=new c,this._layerTemplateMap=new p,this._workingFeatures=new r,this._expressionsManager=new g({arcadeContext:{editType:"NA",spatialReference:null,map:null,timeZone:_}}),this.sharedForm=this._emptyForm,this.sharedFormTemplate=this._emptyFormTemplate}initialize(){this.addHandles([l((()=>this.features),"after-changes",(()=>this._prepare()),{sync:!0}),u((()=>[this.features,this.map,this.timeZone,this.editType]),(()=>{this._prepare()}),m),u((()=>this.activeForm),(()=>this._activeFormInputsByElementId.clear()),m)]),this._prepare()}destroy(){this._prepareTask=a(this._prepareTask),this._workingFeatures.destroyAll(),this._expressionsManager&&this._expressionsManager.abort(),this._emptyForm.destroy(),this._emptyFormTemplate.destroy()}get _effectiveTimeZone(){return this.timeZone??"system"}get activeFeature(){const e=this.activeFeatureIndex;return e<0?null:this.features.at(e)}get activeForm(){if("batch"===this.mode)return this.sharedForm;const e=this._workingFeatures.at(this.activeFeatureIndex);if(!e)return this._emptyForm;const t=this._featureFormMap.get(e);if(t)return t;const r=this._makeBatchFormInputsForFeature(e);return r!==this._emptyForm&&this._featureFormMap.set(e,r),r}get calculating(){return this._expressionsManager.calculating}get expressionEvaluationFailed(){return this._expressionsManager.expressionEvaluationFailed}get hasNonActiveInvalidFeatures(){if("batch"===this.mode)return!1;const{activeFeature:e}=this;return this.invalidFeatures.some((t=>t!==e))}get invalidFeatures(){return this.sharedForm.invalidFeatures}get hasVisibleInputs(){return this.activeForm.inputs.filter((e=>e.visible)).length>0}get noVisibleElementsReason(){if(this.hasVisibleInputs)return null;if(0===this.activeForm.inputs.length)return x.noElements;const e=new Set;for(const t of this.activeForm.inputs)switch(t.visibilityCode){case w.HIDDEN_NOT_IN_ALL_LAYERS:case w.HIDDEN_NO_DOMAIN_IN_COMMON:e.add(x.noElementsInCommon);break;case w.HIDDEN_FIELD_DEFINITION:case w.HIDDEN_GROUP_VISIBILITY_EXPRESSION_ALL:case w.HIDDEN_VISIBILITY_EXPRESSION_ALL:e.add(x.allElementsHidden);break;case w.HIDDEN_GROUP_VISIBILITY_EXPRESSION_SOME:case w.HIDDEN_VISIBILITY_EXPRESSION_SOME:return x.elementsHiddenInSome}return e.has(x.allElementsHidden)?x.allElementsHidden:x.noElementsInCommon}get status(){const e=this._prepareTask;return null==e?"not-loaded":e.finished?null!=e.error?"failed":"loaded":"loading"}get submittable(){return this.valid,!0}get updating(){return this._updatingHandles.updating||this.calculating}get valid(){return this.sharedForm.valid}get layers(){const e=new Set;return this.features.forEach((t=>{const r=t.sourceLayer??t.layer;e.add(r)})),Array.from(e)}get mode(){return this.activeFeatureIndex>-1?"single":"batch"}submit(){this.submitHasBeenAttempted=!0,this.emit("submit",{})}findFieldInput(e){if(null==e)return;const t=this._activeFormInputsByElementId;if(t.has(e))return t.get(e);const r=this.activeForm.allFieldInputs.find((t=>t.template.elementId===e));return void 0!==r?(t.set(e,r),r):void 0}getFieldInputValue(e){return this.findFieldInput(e)?.value}getValues(e){const t=this._workingFeatures.find((({original:t})=>t===e));if(!t)throw new s("feature-not-found","The given feature is not present in the BatchAttributeForm");return{...t.attributes}}setFieldInputValue(e,t){e.setValueFromUser(t),this.emit("value-change",{features:e.features.toArray().map((e=>e.original)),fieldName:e.fieldName,name:"value-change",value:t})}setValue(e,t){const r=this.findFieldInput(e);if(null==r)throw new s("no-FieldInput-found",`Cannot set the value of FieldInput with ID: ${e} because none was found in the active form`);this.setFieldInputValue(r,t)}validate(){return!1}getCodedValueOptions(e){return e.codedValues.map((({name:e,code:t})=>({name:e,value:t})))}_makeBatchFormInputsForFeature(e){const t=this._layerTemplateMap.get(e.layer);return t?E(t,new r([e]),this._expressionsManager):this._emptyForm}async _prepare(){this._prepareTask=a(this._prepareTask),this._updateWorkingFeatures(),a(this._expressionsManager),this._expressionsManager=new g({arcadeContext:{editType:this.editType,spatialReference:this.spatialReference??f.WebMercator,map:this.map,timeZone:this._effectiveTimeZone}});const{layers:e}=this;if(0===e.length)return;const r=t((async t=>{try{n(t);const r=new Map;for(const t of e){const e=await M(t,{arcadeExecutorProvider:this._arcadeExecutorProvider,formTimeZone:this._effectiveTimeZone});this._layerTemplateMap.set(t,e),this._expressionsManager.layerExpressionsModelMap.set(t,new v({preserveFieldValuesWhenHidden:e.preserveFieldValuesWhenHidden,executorMap:e.getExpressionExecutorsForLayer(t)}));for(const t of e.elements){const{elementId:e}=t;r.has(e)?r.get(e).foldIn(t):r.set(e,t.clone())}}const s=new T({elements:Array.from(r.values())});this.sharedFormTemplate=s,this.sharedForm=E(s,this._workingFeatures,this._expressionsManager),await this._expressionsManager.runAllExpressions(this._workingFeatures)}catch(r){throw o.getLogger(this).error("Failed preparing form",r),r}}));this._updatingHandles.addPromise(r.promise),this._prepareTask=r}_updateWorkingFeatures(){this._workingFeatures.destroyAll();const{features:e}=this;0!==e.length&&this._workingFeatures.addMany(e.map(F))}};e([d()],b.prototype,"_effectiveTimeZone",null),e([d({readOnly:!0})],b.prototype,"activeFeature",null),e([d()],b.prototype,"activeFeatureIndex",void 0),e([d({readOnly:!0})],b.prototype,"activeForm",null),e([d()],b.prototype,"disabled",void 0),e([d()],b.prototype,"calculating",null),e([d()],b.prototype,"editType",void 0),e([d()],b.prototype,"features",void 0),e([d()],b.prototype,"expressionEvaluationFailed",null),e([d()],b.prototype,"hasNonActiveInvalidFeatures",null),e([d()],b.prototype,"invalidFeatures",null),e([d()],b.prototype,"hasVisibleInputs",null),e([d()],b.prototype,"map",void 0),e([d()],b.prototype,"noVisibleElementsReason",null),e([d()],b.prototype,"spatialReference",void 0),e([d()],b.prototype,"submitHasBeenAttempted",void 0),e([d()],b.prototype,"timeZone",void 0),e([d()],b.prototype,"updating",null),e([d()],b.prototype,"valid",null),e([d()],b.prototype,"layers",null),e([d()],b.prototype,"mode",null),e([d()],b.prototype,"submit",null),e([d()],b.prototype,"sharedForm",void 0),e([d()],b.prototype,"sharedFormTemplate",void 0),e([d()],b.prototype,"userHasChangedValues",void 0),e([d()],b.prototype,"_arcadeExecutorProvider",void 0),e([d()],b.prototype,"_prepareTask",void 0),e([d()],b.prototype,"_layerTemplateMap",void 0),e([d()],b.prototype,"_workingFeatures",void 0),e([d()],b.prototype,"_expressionsManager",void 0),b=e([h("esri.widgets.BatchAttributeForm.BatchAttributeFormViewModel")],b);const j=b;export{j as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import"../../intl.js";import{neverReached as i}from"../../core/compilerUtils.js";import{DomainValidationError as t}from"../../layers/support/domainUtils.js";import{NumericRangeValidationError as r,TypeValidationError as n}from"../../layers/support/fieldUtils.js";import{ReactiveGraphic as e}from"./ReactiveGraphic.js";import{MultiFeatureError as o,InputVisibilityCode as s}from"./inputs/support/inputUtils.js";import{getIntlOptionsForField as l}from"../support/dateUtils.js";import{InputValidationError as a,getRangeErrorMessage as I,shouldUseScientificNotation as _,scientificNumberFormatOptions as u,numberFormatOptions as E}from"../support/forms/formUtils.js";import{substitute as p}from"../../intl/substitute.js";const m=(i,t)=>null!=i&&i.input?.type===t;function N(i){return new e({original:i})}function O(i,e,s,m){const{dataType:N,minLength:O}=i,c=s?.validationErrors;if(!c||!e)return null;if(e===o.DIFFERENT_ERRORS)return c.invalidBatchFormType;if(e===a.CANNOT_BE_EMPTY)return c.cannotBeNull;if(e===t.VALUE_OUT_OF_RANGE||e===r.OUT_OF_RANGE){const{field:t,range:r}=i,n={type:"date",intlOptions:{timeZone:"date"===t.type&&m?m:void 0,...l(t)}},e=I(r,c);return p(e,r,{format:{max:"date"===N?n:null!=r.max&&_(r.max)?u:E,min:"date"===N?n:null!=r.min&&_(r.min)?u:E}})}return e===t.INVALID_CODED_VALUE?c.invalidCodedValue:e===n.INVALID_TYPE?c.invalidType:e===a.TOO_SHORT?p(c.tooShort,{min:O}):(a.TOO_LONG,null)}function c(t,r){const n=r?.validationErrors;if(!n)return null;let e=null;for(const o of t.invalidHiddenInputs)switch(o.visibilityCode){case s.HIDDEN_VISIBILITY_EXPRESSION_ALL:case s.HIDDEN_GROUP_VISIBILITY_EXPRESSION_ALL:case s.HIDDEN_FIELD_DEFINITION:return n.nonVisibleError_changeValues;case s.HIDDEN_NO_DOMAIN_IN_COMMON:case s.HIDDEN_VISIBILITY_EXPRESSION_SOME:case s.HIDDEN_GROUP_VISIBILITY_EXPRESSION_SOME:case s.HIDDEN_NOT_IN_ALL_LAYERS:e=n.nonVisibleError_checkIndividualFeatures;break;case s.VISIBLE:continue;default:i(o.visibilityCode)}return e}export{N as createReactiveGraphic,c as getHiddenFieldsValidationErrorMessage,O as getVisibleFieldInputValidationErrorMessage,m as isElementTemplateWithInputType};
5
+ import"../../intl.js";import{neverReached as i}from"../../core/compilerUtils.js";import{DomainValidationError as t}from"../../layers/support/domainUtils.js";import{NumericRangeValidationError as r,TypeValidationError as e}from"../../layers/support/fieldUtils.js";import{ReactiveGraphic as n}from"./ReactiveGraphic.js";import{MultiFeatureError as o,InputVisibilityCode as s}from"./inputs/support/inputUtils.js";import{getIntlOptionsForField as l}from"../support/dateUtils.js";import{InputValidationError as a,getRangeErrorMessage as I,shouldUseScientificNotation as _,scientificNumberFormatOptions as u,numberFormatOptions as E}from"../support/forms/formUtils.js";import{substitute as p}from"../../intl/substitute.js";const m=(i,t)=>null!=i&&i.input?.type===t;function c(i){return new n({original:i})}function f(i,n,s,m){const{dataType:c,minLength:f}=i,N=s?.validationErrors;if(!N||!n)return null;if(n===o.DIFFERENT_ERRORS)return N.invalidBatchFormType;if(n===a.CANNOT_BE_EMPTY)return N.cannotBeNull;if(n===t.VALUE_OUT_OF_RANGE||n===r.OUT_OF_RANGE){const{field:t,range:r}=i,e={type:"date",intlOptions:{timeZone:"date"===t.type&&m?m:void 0,...l(t)}},n=I(r,N);return p(n,r,{format:{max:"date"===c?e:null!=r.max&&_(r.max)?u:E,min:"date"===c?e:null!=r.min&&_(r.min)?u:E}})}return n===t.INVALID_CODED_VALUE?N.invalidCodedValue:n===e.INVALID_TYPE?N.invalidType:n===a.TOO_SHORT?p(N.tooShort,{min:f}):(a.TOO_LONG,null)}function N(t,r,e){const n=e?.validationErrors;if(!n)return null;let o=null;for(const l of t.invalidHiddenInputs)switch(l.effectiveVisibilityCode){case s.HIDDEN_VISIBILITY_EXPRESSION_ALL:case s.HIDDEN_GROUP_VISIBILITY_EXPRESSION_ALL:case s.HIDDEN_FIELD_DEFINITION:return"single"===r?n.nonVisibleError_changeValues:n.nonVisibleError_checkIndividualFeatures;case s.HIDDEN_NO_DOMAIN_IN_COMMON:case s.HIDDEN_VISIBILITY_EXPRESSION_SOME:case s.HIDDEN_GROUP_VISIBILITY_EXPRESSION_SOME:case s.HIDDEN_NOT_IN_ALL_LAYERS:o=n.nonVisibleError_checkIndividualFeatures;break;case s.VISIBLE:continue;default:i(l.effectiveVisibilityCode)}return o}export{c as createReactiveGraphic,N as getHiddenFieldsValidationErrorMessage,f as getVisibleFieldInputValidationErrorMessage,m as isElementTemplateWithInputType};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import o from"../../../core/Collection.js";class e{constructor(){this.workingFeatures=new o}valueChanged(o,e){}}export{e as ExpressionsManager};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Accessor.js";import r from"../../../core/Error.js";import s from"../../../core/Logger.js";import{getOrCreateMapValue as o}from"../../../core/MapUtils.js";import{whenOrAbort as a}from"../../../core/promiseUtils.js";import i from"../../../core/ReactiveMap.js";import{property as n}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/RandomLCG.js";import{subclass as l}from"../../../core/accessorSupport/decorators/subclass.js";import{DateOnly as u}from"../../../core/sql/DateOnly.js";import{TimeOnly as c}from"../../../core/sql/TimeOnly.js";import{makeUseId as p}from"../inputs/support/inputUtils.js";import{isGroupElementTemplate as d,isFieldElementTemplate as f}from"../templates/support/templateUtils.js";let m=null;const h="esri.widgets.BatchAttributeForm.expressions.ExpressionsManager",g=()=>s.getLogger(h);let y=class extends t{constructor(e){super(e),this.calculating=!1,this.arcadeContext=null,this._abortController=new AbortController,this.layerExpressionsModelMap=new Map,this.evaluatedExpressions=new i,this.expressionEvaluationFailed=!1}abort(){this._abortController.abort()}async runAllExpressions(e,t=!1){this.calculating=!0;try{const r=[];for(const s of e){const e=this.layerExpressionsModelMap.get(s.layer);if(!e||0===e.components.length)continue;const o=new Set;r.push(this.evaluateAffectedComponents(e.components,s,e,t,o))}await a(Promise.all(r),this._abortController)}catch(r){g().error(r),this.expressionEvaluationFailed=!0}finally{this.calculating=!1}}async valueChanged(e,t,r=!0){try{this.calculating=!0;const s=t.map((t=>this.evaluateValueChangedForFeature(e,t,r)));await Promise.all(s)}catch(s){g().error(s),this.expressionEvaluationFailed=!0}finally{this.calculating=!1}}async evaluateValueChangedForFeature(e,t,r){if(this._abortController.signal.aborted)return;const s=this.layerExpressionsModelMap.get(t.layer);if(!s||0===s.components.length)return;const o=new Set,a=new Set([e]),i=new Set;for(;a.size>0;){const[e]=a;if(a.delete(e),o.has(e))continue;o.add(e);const n=s.fieldReferencesMap.get(e.toLowerCase());if(!n)continue;for(const t of n)i.has(t)&&n.delete(t);if(0===n.size)continue;const l=new Set;await this.evaluateAffectedComponents([...n],t,s,r,l);for(const t of n)i.add(t);for(const t of l)o.has(t)||a.add(t)}}async evaluateAffectedComponents(e,t,r,s,o){const a=new Map;for(const n of e)a.has(n)||a.set(n,this.createSccEvaluator(n,t,a,r));if(0===a.size)return;const i=[...a.values()].map((e=>e.evaluate(s,o)));await Promise.all(i)}createSccEvaluator(e,t,r,s){const a=new v(e,t,this.arcadeContext,s,this.evaluatedExpressions,this._abortController);for(const i of e.adjacencyList)a.dependentEvaluators.push(o(r,i,(()=>this.createSccEvaluator(i,t,r,s))));return a}};e([n()],y.prototype,"calculating",void 0),e([n({constructOnly:!0})],y.prototype,"arcadeContext",void 0),e([n()],y.prototype,"_abortController",void 0),e([n()],y.prototype,"layerExpressionsModelMap",void 0),e([n()],y.prototype,"evaluatedExpressions",void 0),e([n()],y.prototype,"expressionEvaluationFailed",void 0),y=e([l(h)],y);class v{constructor(e,t,r,s,o,a){this.scc=e,this.feature=t,this.arcadeContextInfo=r,this.expressionsModel=s,this.evaluatedExpressions=o,this._abortController=a,this.dependentEvaluators=[],this._evaluatorPromise=null}get baseContext(){const{editType:e,map:t,spatialReference:r,timeZone:s}=this.arcadeContextInfo,o=this.feature.layer,a="scene"===o?.type&&null!=o.associatedLayer?o.associatedLayer:o;return{variables:{$originalfeature:this.feature.original.clone(),$editcontext:{editType:e},$layer:a,$featureset:a,$datastore:a?.url,$feature:this.feature.plainGraphic.clone(),$map:t},executeContext:{rawOutput:!0,spatialReference:r??void 0,timeZone:s,abortSignal:this._abortController.signal}}}evaluate(e,t){return null==this._evaluatorPromise&&(this._evaluatorPromise=this._evaluate(e,t)),this._evaluatorPromise}async _evaluate(e,t){null===m&&(m=await import("../../../arcade/languageUtils.js"));const s=this.dependentEvaluators.map((r=>r.evaluate(e,t)));await a(Promise.all(s),this._abortController);for(const a of this.scc.executors){const s=this.baseContext;if(this._abortController.signal.aborted)break;const l=this.expressionsModel.arcadeExecutorUses.get(a)??[],u=o(this.evaluatedExpressions,this.feature,(()=>new i));let c=null,m=null;try{c=a.isAsync?await a.executeAsync(s.variables,s.executeContext):a.execute(s.variables,s.executeContext),m={result:c,status:"success"}}catch(n){m={error:n,status:"error"}}for(const r of l){const s=this.expressionsModel.elementTemplateMap.get(r.elementId);switch(r.executorPurpose){case"editable":case"required":u.set(p(r.elementId,r.executorPurpose),m);break;case"value":{if("error"===m?.status)continue;const e=s.getExpressionExecutorsForLayer(this.feature.layer);let r=!0;if(e?.editableExpression&&(r=!1===u.get(p(s.elementId,"editable"))?.result),r){const e=this.feature.getAttribute(s.fieldName)??null,r=x(m.result,this.feature,s.fieldName,this.arcadeContextInfo.timeZone);r!==e&&(this.feature.setAttribute(s.fieldName,r),t.add(s.fieldName))}}break;case"visibility":if(u.set(p(r.elementId,r.executorPurpose),m),!this.expressionsModel.preserveFieldValuesWhenHidden&&!1===m.result&&e)if(d(s)){for(const e of s.elements)if(f(e)){null!==this.feature.getAttribute(e.fieldName)&&t.add(e.fieldName),this.feature.setAttribute(e.fieldName,null)}}else if(f(s)){null!==this.feature.getAttribute(s.fieldName)&&t.add(s.fieldName),this.feature.setAttribute(s.fieldName,null)}}}if("error"===m?.status){const e=new Set;for(const t of l){const r=this.expressionsModel.elementTemplateMap.get(t.elementId);if(r)switch(t.executorPurpose){case"editable":e.add(r.label+" - Editable expression");break;case"required":e.add(r.label+" - Required expression");break;case"value":e.add(r.label+" - Value expression");break;case"visibility":e.add(r.label+" - Visibility expression")}}if(e.size>0)throw new r("expression-evaluation-failed","Arcade evaluation failed ("+[...e].join(",")+")");throw new r("expression-evaluation-failed","Arcade evaluation failed ")}}}}function x(e,t,s,o){if(null===e)return null;const a=t.layer.fieldsIndex.get(s);if(!a)throw new r("field-not-found","Unable set field value as the field cannot be found. ("+s+")");switch(a.type){case"big-integer":case"integer":case"long":case"oid":case"small-integer":case"single":case"double":return m.toNumber(e);case"global-id":case"guid":case"string":return m.toString(e);case"date":{if(m.isDate(e))return e.getTime();const t=m.toDate(e,o);if(!t)throw new r("unsupported-value-type","Arcade return type is not a supported field type. ("+s+")");return t.getTime()}case"date-only":{if(m.isDateOnly(e))return e.toStorageFormat();if(m.isDate(e))return u.fromDateTime(e.toDateTime()).toStorageFormat();const t=u.fromString(m.toString(e));if(!t)throw new r("unsupported-value-type","Arcade return type is not a supported field type.");return t.toStorageFormat()}case"time-only":{if(m.isTime(e))return e.toStorageString();if(m.isDate(e)){return c.fromDateTime(e.toDateTime()).toStorageString()}const t=c.fromString(m.toString(e));if(!t)throw new r("unsupported-value-type","Arcade return type is not a supported field type.");return t.toStorageString()}case"timestamp-offset":{if(m.isDate(e))return e.toISOString(!1);const t=m.toDate(e,o);if(!t)throw new r("unsupported-value-type","Arcade return type is not a supported field type. ("+s+")");return t.toISOString(!1)}}throw new r("unsupported-value-type","Arcade return type is not a supported field type. ("+s+")")}export{y as ExpressionsManager};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as e,pushIfSome as n}from"../../../core/arrayUtils.js";import{getOrCreateMapValue as o}from"../../../core/MapUtils.js";import t from"../../../core/Queue.js";import{last as r,addMany as i}from"../../../core/SetUtils.js";import{isFieldElementTemplate as s}from"../templates/support/templateUtils.js";class c{constructor(e){this.preserveFieldValuesWhenHidden=!1,this.executorMap=e.executorMap,this._buildDependencyGraph()}_buildDependencyGraph(){const e=f(this.executorMap),n={components:[],executorMap:this.executorMap,fieldElementTemplateMap:d(this.executorMap),fieldReferencesMap:new Map,nextIndex:0,nodeInfoMap:e,nodeStack:new t(r),shouldConsiderVisibility:!this.preserveFieldValuesWhenHidden};for(const o of e.values())-1===o.index&&a(o,n);this.dependencyGraphComponents=u(n.nodeInfoMap),this.fieldReferencesMap=m(n)}}function a(e,n){e.index=e.lowlink=n.nextIndex++,n.nodeStack.push(e);for(const o of l(e,n))-1===o.index?(a(o,n),e.lowlink=Math.min(e.lowlink,o.lowlink)):o.index<e.index&&n.nodeStack.contains(o)&&(e.lowlink=Math.min(e.lowlink,o.index)),n.nodeStack.contains(o)||e.crossLinkNeighbors.add(o);if(e.lowlink===e.index){const o=x();for(n.components.push(o);M(n.nodeStack)>=e.index;){const e=n.nodeStack.pop();if(null!=e){e.component=o,o.executors.add(e.executor);for(const n of e.crossLinkNeighbors)null!=n.component&&o.adjacencyList.add(n.component)}}}}function l({executor:n},t){const r=new Set;for(const e of n.fieldsUsed){const s=e.toLowerCase();o(t.fieldReferencesMap,s,(()=>new Set)).add(n),i(r,p(s,t))}return Array.from(r).map((e=>t.nodeInfoMap.get(e))).filter(e)}function p(e,{executorMap:o,fieldElementTemplateMap:t,shouldConsiderVisibility:r}){const i=[],s=t.get(e);if(null==s)return i;const c=o.get(s);if(null==c)return i;if(n(i,c.editableExpression),n(i,c.valueExpression),r){n(i,c?.visibilityExpression);const{group:e}=s;null!=e&&n(i,o.get(e)?.visibilityExpression)}return i}function d(e){const n=new Map;for(const o of e.keys())s(o)&&n.set(o.fieldName.toLowerCase(),o);return n}function f(n){const o=Array.from(n.values()).filter(e),t=new Set(o.flatMap((e=>Array.from(Object.values(e))))),r=Array.from(t).map((e=>({component:null,crossLinkNeighbors:new Set,executor:e,index:-1,lowlink:-1,onStack:!1})));return new Map(r.map((e=>[e.executor,e])))}function u(e){return new Map([...e.values()].map((({component:e,executor:n})=>[n,e])))}function m({fieldReferencesMap:e,nodeInfoMap:n}){const o=new Map;for(const[t,r]of e.entries()){const e=new Set;for(const o of r){const t=n.get(o);t?.component&&e.add(t.component)}o.set(t,e)}return o}function x(){return{executors:new Set,adjacencyList:new Set}}function M(e){return e.peek()?.index??-1}export{c as ExpressionsModel,l as getDirectDependencies};
5
+ import{isSome as e,pushIfSome as t}from"../../../core/arrayUtils.js";import{getOrCreateMapValue as n}from"../../../core/MapUtils.js";import o from"../../../core/Queue.js";import{last as s,addMany as r}from"../../../core/SetUtils.js";import{isFieldElementTemplate as i}from"../templates/support/templateUtils.js";let c=0;class a{constructor(e){this.arcadeExecutorUses=new Map,this.components=[],this.preserveFieldValuesWhenHidden=!1,this.executorMap=e.executorMap,this.preserveFieldValuesWhenHidden=!0===e.preserveFieldValuesWhenHidden,this.elementTemplateMap=new Map;for(const t of this.executorMap.keys())this.elementTemplateMap.set(t.elementId,t);this._buildDependencyGraph()}_buildDependencyGraph(){const e=f(this.executorMap),t={components:[],arcadeExecutorUses:this.arcadeExecutorUses,elementTemplatesById:new Map([...this.executorMap.keys()].map((e=>[e.elementId,e]))),executorMap:this.executorMap,fieldElementTemplateMap:u(this.executorMap),fieldReferencesMap:new Map,nextIndex:0,nodeInfoMap:e,nodeStack:new o(s),shouldConsiderVisibility:!this.preserveFieldValuesWhenHidden};for(const o of this.executorMap.keys()){const e=this.executorMap.get(o);e.editableExpression&&n(this.arcadeExecutorUses,e.editableExpression,(()=>[])).push({elementId:o.elementId,executorPurpose:"editable"}),e.valueExpression&&n(this.arcadeExecutorUses,e.valueExpression,(()=>[])).push({elementId:o.elementId,executorPurpose:"value"}),e?.visibilityExpression&&n(this.arcadeExecutorUses,e.visibilityExpression,(()=>[])).push({elementId:o.elementId,executorPurpose:"visibility"}),e?.requiredExpression&&n(this.arcadeExecutorUses,e.requiredExpression,(()=>[])).push({elementId:o.elementId,executorPurpose:"required"})}for(const n of this.arcadeExecutorUses.values())n.sort((e=>"editable"===e.executorPurpose?-1:1));for(const n of e.values())-1===n.index&&p(n,t);this.dependencyGraphComponents=x(t.nodeInfoMap),this.fieldReferencesMap=m(t),this.components=t.components}}function p(e,t){e.index=e.lowlink=t.nextIndex++,t.nodeStack.push(e);for(const n of l(e,t))-1===n.index?(p(n,t),e.lowlink=Math.min(e.lowlink,n.lowlink)):n.index<e.index&&t.nodeStack.contains(n)&&(e.lowlink=Math.min(e.lowlink,n.index)),t.nodeStack.contains(n)||e.crossLinkNeighbors.add(n);if(e.lowlink===e.index){const n=h();for(t.components.push(n);M(t.nodeStack)>=e.index;){const e=t.nodeStack.pop();if(null!=e){e.component=n,n.executors.add(e.executor);for(const t of e.crossLinkNeighbors)null!=t.component&&n.adjacencyList.add(t.component)}}}}function l({executor:t},o){const s=new Set;for(const e of t.fieldsUsed){const i=e.toLowerCase();n(o.fieldReferencesMap,i,(()=>new Set)).add(t),r(s,d(i,o))}const i=o.arcadeExecutorUses.get(t)?.filter((e=>"value"===e.executorPurpose))??[];for(const e of i){const n=o.executorMap.get(o.elementTemplatesById.get(e.elementId));n?.editableExpression&&n.editableExpression!==t&&s.add(n.editableExpression)}return Array.from(s).map((e=>o.nodeInfoMap.get(e))).filter(e)}function d(e,{executorMap:n,fieldElementTemplateMap:o,shouldConsiderVisibility:s}){const r=[],i=o.get(e);if(null==i)return r;const c=n.get(i);if(null==c)return r;if(t(r,c.editableExpression),t(r,c.valueExpression),s){t(r,c?.visibilityExpression);const{group:e}=i;if(null!=e){const o=n.get(e)?.visibilityExpression;t(r,o)}}return r}function u(e){const t=new Map;for(const n of e.keys())i(n)&&t.set(n.fieldName.toLowerCase(),n);return t}function f(t){const n=Array.from(t.values()).filter(e),o=new Set(n.flatMap((e=>Array.from(Object.values(e))))),s=Array.from(o).map((e=>({component:null,crossLinkNeighbors:new Set,executor:e,index:-1,lowlink:-1,onStack:!1})));return new Map(s.map((e=>[e.executor,e])))}function x(e){return new Map([...e.values()].map((({component:e,executor:t})=>[t,e])))}function m({fieldReferencesMap:e,nodeInfoMap:t}){const n=new Map;for(const[o,s]of e.entries()){const e=new Set;for(const n of s){const o=t.get(n);o?.component&&e.add(o.component)}n.set(o,e)}return n}function h(){c++;const e=c.toString();return{executors:new Set,adjacencyList:new Set,componentId:e}}function M(e){return e.peek()?.index??-1}export{a as ExpressionsModel,l as getDirectDependencies};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{InputBase as o}from"./InputBase.js";let s=class extends o{constructor(){super(...arguments),this.editType="NA"}get editable(){return this._evaluatedEditableExpression??!0}get _evaluatedEditableExpression(){return null}};e([t()],s.prototype,"editable",null),e([t()],s.prototype,"editType",void 0),e([t()],s.prototype,"_evaluatedEditableExpression",null),s=e([r("esri.widgets.BatchAttributeForm.inputs.EditableInput")],s);export{s as EditableInput};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as s}from"../../../core/accessorSupport/decorators/subclass.js";import{InputBase as r}from"./InputBase.js";import{makeUseId as o}from"./support/inputUtils.js";let i=class extends r{constructor(){super(...arguments),this.editType="NA"}get editable(){return this._evaluatedEditableExpression??!0}get _evaluatedEditableExpression(){let e=!0,t=!0;for(const s of this.features){if(null==this.template.getExpressionExecutorsForLayer(s.layer)?.editableExpression){e=e&&!0;continue}t=!1;const r=this.expressionsManager.evaluatedExpressions.get(s)?.get(o(this.template.elementId,"editable"));"success"===r?.status?e=e&&!0===r.result:e=!1}return t?null:e}};e([t()],i.prototype,"editable",null),e([t()],i.prototype,"editType",void 0),e([t()],i.prototype,"_evaluatedEditableExpression",null),i=e([s("esri.widgets.BatchAttributeForm.inputs.EditableInput")],i);export{i as EditableInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import{isSome as t}from"../../../core/arrayUtils.js";import{property as i}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{CodedValue as a}from"../../../layers/support/CodedValue.js";import n from"../../../layers/support/CodedValueDomain.js";import"../../../layers/support/Domain.js";import"../../../layers/support/InheritedDomain.js";import l from"../../../layers/support/RangeDomain.js";import{getDomainRange as s,dateTimeFieldValuesToNumericRange as o}from"../../../layers/support/domainUtils.js";import{isNumericField as u,isStringField as m,isTimeOnlyField as p,getFieldRange as d}from"../../../layers/support/fieldUtils.js";import{isAnyDateField as f}from"../../../smartMapping/support/utils.js";import{isNumber as h}from"../../../support/guards.js";import{EditableInput as c}from"./EditableInput.js";import{MultiFeatureError as y,visibilityCodeToBoolean as g,InputVisibilityCode as V,differentValuesString as _}from"./support/inputUtils.js";import{FieldInputDataTypes as b,getMaxLength as x,getMinLength as v,isEmptyValue as N,dateIsValid as I,validateFormValue as D}from"../../support/forms/formUtils.js";let E=class extends c{constructor(e){super(e),this.group=null,this.type="field",this.userHasChangedValue=!1,this._hasIntersectionWithElementFieldDomain=!1}get compositeError(){if(this.valid)return null;const{errors:e}=this;if(e.length<this.features.length)return y.DIFFERENT_ERRORS;const t=e[0];for(const i of e)if(i.error!==t.error)return y.DIFFERENT_ERRORS;return t.error}get dataType(){const{field:e}=this;return u(e)?b.Number:m(e)?b.Text:f(e)||p(e)?b.Date:b.Unsupported}get domain(){let e=this._allDomains.toArray(),t=e.find((e=>null!=e));const i=this.template.domain;if(t){switch(t.type){case"coded-value":if(e.some((e=>!e))){if(!i)return null;e=e.filter((e=>null!==e))}break;case"range":e=e.filter((e=>null!==e))}if(!e.every((e=>e?.type===t?.type)))return null}else{if(!i)return null;e=[i],t=i}let r=null;switch(t?.type){case"range":r=this._intersectRangeDomains(e);break;case"coded-value":r=this._intersectCodedValueDomains(e)}return r}get distinctValues(){if(this.featuresHaveSameValue)return[this.value];const e=new Set;for(const t of this.features)e.add(t.getAttribute(this.fieldName));return Array.from(e)}get editable(){return!!this.field.editable&&(this._evaluatedEditableExpression??!0)}get effectiveVisible(){return g(this.effectiveVisibilityCode)}get effectiveVisibilityCode(){const{visibilityCode:e}=this;if(e!==V.VISIBLE)return e;const{group:t}=this;if(null==t)return e;const i=t.visibilityCode;return i===V.HIDDEN_VISIBILITY_EXPRESSION_ALL?V.HIDDEN_GROUP_VISIBILITY_EXPRESSION_ALL:i===V.HIDDEN_VISIBILITY_EXPRESSION_SOME?V.HIDDEN_GROUP_VISIBILITY_EXPRESSION_SOME:e}get errors(){return this._validate()}get featuresHaveSameValue(){const{fieldName:e}=this,t=this.features.at(0)?.getAttribute(e);return this.features.every((i=>i.getAttribute(e)===t))}get field(){return this.template.field}get fieldName(){return this.field.name}get invalidFeatures(){return this.errors.map((e=>e.feature))}get isSubtypeField(){return this.layers.some((e=>{if(e&&"subtypeField"in e){const{subtypeField:t,fieldsIndex:i}=e;return(i.get(t)?.name??t)===this.fieldName}return!1}))}get includeTime(){const{template:e,field:t}=this;return this.dataType===b.Date&&("time-only"===t.type||"date-only"!==t.type&&("datetime-picker"!==e.input?.type||e.input.includeTime))}get includeTimeOffset(){if("timestamp-offset"!==this.field.type)return!1;const e=this.template.input;return!e||"datetimeoffset-picker"===e.type&&e.includeTimeOffset}get maxLength(){return x({dataType:this.dataType,field:this.field,input:this.template.input})}get minLength(){return v({dataType:this.dataType,field:this.field,input:this.template.input})}get range(){if("date"===this.dataType)return this._dateRange;const{domain:e,field:t}=this;if(e){const i=s(t,e);return{max:i?.max,min:i?.min}}const i=this._allDomains.toArray().every((e=>!e))?d(t):null;return{max:i?.max===Number.MAX_VALUE?null:i?.max??null,min:i?.min===-Number.MAX_VALUE?null:i?.min??null}}get required(){if(!this.editable)return!1;if(!this.field.nullable||this.isSubtypeField)return!0;const e=this.visible&&!1!==this.group?.visible,t=this._evaluatedRequiredExpression;return!(!e||null==t)&&t}get submittable(){if(this.required&&this.distinctValues.some((e=>N(e))))return!1;if(this.valid)return!0;const{fieldName:e}=this;return this.features.every((t=>!t.attributeHasChanged(e)))}get valid(){return 0===this.errors.length}get value(){return this.featuresHaveSameValue?this.features.at(0)?.getAttribute(this.fieldName)??null:_}get visibilityCode(){return this.field.visible?this._fieldShouldHaveDomain&&null==this.domain?V.HIDDEN_NO_DOMAIN_IN_COMMON:this._baseVisibilityCode:V.HIDDEN_FIELD_DEFINITION}get _evaluatedRequiredExpression(){return null}get _allDomains(){const e=this.template.domain;return this.features.map((t=>{const i=t.layer.getFieldDomain(this.fieldName,{feature:t.plainGraphic});return"range"===i?.type||"range"===e?.type?i??this.template.domain:i}))}get _fieldShouldHaveDomain(){return!!this._hasIntersectionWithElementFieldDomain||this._allDomains.some(t)}get _dateFormRange(){if("date"!==this.dataType)return{};const e=this.template.input;if(!e)return{};const{type:t}=e;let i={};if("date-picker"!==t&&"time-picker"!==t&&"datetimeoffset-picker"!==t||(i=o(this.field,e.max,e.min)),"datetime-picker"===t){const{max:t,min:r}=e;i={max:null!=t&&I(t)?t.getTime():null,min:null!=r&&I(r)?r.getTime():null}}return{min:i.min,max:i.max,rawMax:i?.rawMax??null,rawMin:i?.rawMin??null}}get _dateRange(){const{_dateFormRange:e,template:t,field:i,domain:r}=this;if("date"!==this.dataType)return{};if(!r)return this._fieldShouldHaveDomain?{}:e;const a=s(i,r),{max:n,min:l,rawMax:o,rawMin:u}=e,{type:m}=t.field;if("date"===m){const{max:e,min:t}=a;return{max:h(n)&&(null===e||null!=e&&n<=e)?n:e??null,min:h(l)&&(null===t||null!=t&&l>=t)?l:t??null}}if("date-only"===m||"time-only"===m||"timestamp-offset"===m){const{max:e,min:t,rawMax:i,rawMin:r}=a,s=h(n)&&o&&(null==e||n<e);return{max:s?n:e,min:h(l)&&u&&(null==t||l>t)?l:t,rawMax:s?o:i,rawMin:s?u:r}}return{}}async setValueFromExpressionManager(e){}async setValueFromUser(e){this.userHasChangedValue=!0,this._setValue(e)}_setValue(e){const{fieldName:t}=this;for(const i of this.features)i.setAttribute(t,e)}_validate(){const{dataType:e,fieldName:t,maxLength:i,minLength:r,range:a,required:n}=this,l=[];for(const s of this.features){const{layer:o}=s,u=o.getField(t)??this.field,m=o.getFieldDomain(t,{feature:s.plainGraphic}),p=s.getAttribute(t),d=D(p,{dataType:e,domain:m,field:u,maxLength:i,minLength:r,range:a,required:n});d&&l.push({error:d,feature:s.original})}return l}_intersectCodedValueDomains(e){if(!e.length)return null;const t=new Map(e[0].codedValues.map((({code:e,name:t})=>[e,t]))),i=this.template.domain?new Map(this.template.domain.codedValues.map((({code:e,name:t})=>[e,t]))):null;for(const a of e)for(const[e,i]of t){a.codedValues.some((t=>t.code===e&&t.name===i))||t.delete(e)}let r=t;if(i){r=new Map;for(const[e,a]of i)t.has(e)&&r.set(e,a)}const l=Array.from(r.entries()).map((([e,t])=>new a({code:e,name:t})));return l.length?new n({codedValues:l}):null}_intersectRangeDomains(e){if(!e.length)return null;const t=e.reduce(((e,t)=>isNaN(Number(e?.minValue))||isNaN(Number(e?.maxValue))?null:(e.minValue=Math.max(Number(e.minValue),Number(t.minValue)),e.maxValue=Math.min(Number(e.maxValue),Number(t.maxValue)),e.name="intersection",e.minValue>e.maxValue?null:e)),new l({name:"intersection",minValue:e[0].minValue,maxValue:e[0].maxValue})),{domain:i}=this.template;if(t&&i&&i instanceof l){if(t.minValue=Math.max(Number(t.minValue),Number(i.minValue)),t.maxValue=Math.min(Number(t.maxValue),Number(i.maxValue)),t.minValue>t.maxValue)return null;this._hasIntersectionWithElementFieldDomain=!0}return t}};e([i()],E.prototype,"dataType",null),e([i()],E.prototype,"domain",null),e([i()],E.prototype,"distinctValues",null),e([i()],E.prototype,"editable",null),e([i()],E.prototype,"effectiveVisible",null),e([i()],E.prototype,"effectiveVisibilityCode",null),e([i()],E.prototype,"errors",null),e([i()],E.prototype,"featuresHaveSameValue",null),e([i()],E.prototype,"field",null),e([i()],E.prototype,"fieldName",null),e([i()],E.prototype,"group",void 0),e([i()],E.prototype,"invalidFeatures",null),e([i()],E.prototype,"isSubtypeField",null),e([i()],E.prototype,"includeTime",null),e([i()],E.prototype,"includeTimeOffset",null),e([i()],E.prototype,"maxLength",null),e([i()],E.prototype,"minLength",null),e([i()],E.prototype,"range",null),e([i()],E.prototype,"required",null),e([i()],E.prototype,"submittable",null),e([i({readOnly:!0})],E.prototype,"type",void 0),e([i()],E.prototype,"userHasChangedValue",void 0),e([i()],E.prototype,"valid",null),e([i()],E.prototype,"value",null),e([i()],E.prototype,"visibilityCode",null),e([i()],E.prototype,"_evaluatedRequiredExpression",null),e([i()],E.prototype,"_hasIntersectionWithElementFieldDomain",void 0),e([i()],E.prototype,"_allDomains",null),e([i()],E.prototype,"_fieldShouldHaveDomain",null),e([i()],E.prototype,"_dateFormRange",null),e([i()],E.prototype,"_dateRange",null),E=e([r("esri.widgets.BatchAttributeForm.inputs.FieldInput")],E);export{E as FieldInput};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import{isSome as t}from"../../../core/arrayUtils.js";import i from"../../../core/Collection.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import{subclass as n}from"../../../core/accessorSupport/decorators/subclass.js";import{CodedValue as a}from"../../../layers/support/CodedValue.js";import l from"../../../layers/support/CodedValueDomain.js";import"../../../layers/support/Domain.js";import"../../../layers/support/InheritedDomain.js";import s from"../../../layers/support/RangeDomain.js";import{getDomainRange as o,dateTimeFieldValuesToNumericRange as u,isDomainValidForField as m}from"../../../layers/support/domainUtils.js";import{isNumericField as p,isStringField as d,isTimeOnlyField as f,getFieldRange as h,isDateOnlyField as c,isTimestampOffsetField as g}from"../../../layers/support/fieldUtils.js";import{isAnyDateField as y}from"../../../smartMapping/support/utils.js";import{isNumber as _}from"../../../support/guards.js";import{EditableInput as x}from"./EditableInput.js";import{MultiFeatureError as V,visibilityCodeToBoolean as b,InputVisibilityCode as D,differentValuesString as v,makeUseId as I}from"./support/inputUtils.js";import{FieldInputDataTypes as E,getMaxLength as M,getMinLength as N,isEmptyValue as R,dateIsValid as w,validateFormValue as S}from"../../support/forms/formUtils.js";let T=class extends x{constructor(e){super(e),this.group=null,this.type="field",this.userHasChangedValue=!1,this._hasIntersectionWithElementFieldDomain=!1}get compositeError(){if(this.valid)return null;const{errors:e}=this;if(e.length<this.features.length)return V.DIFFERENT_ERRORS;const t=e[0];for(const i of e)if(i.error!==t.error)return V.DIFFERENT_ERRORS;return t.error}get dataType(){const{field:e}=this;return p(e)?E.Number:d(e)?E.Text:y(e)||f(e)?E.Date:E.Unsupported}get domain(){const e=this._allDomains.toArray();return this.calculateDomain(e)}get distinctValues(){if(this.featuresHaveSameValue)return[this.value];const e=new Set;for(const t of this.features)e.add(t.getAttribute(this.fieldName));return Array.from(e)}get editable(){return!!this.field.editable&&(this._evaluatedEditableExpression??!0)}get effectiveVisible(){return b(this.effectiveVisibilityCode)}get effectiveVisibilityCode(){const{visibilityCode:e}=this;if(e!==D.VISIBLE)return e;const{group:t}=this;if(null==t)return e;const i=t.visibilityCode;return i===D.HIDDEN_VISIBILITY_EXPRESSION_ALL?D.HIDDEN_GROUP_VISIBILITY_EXPRESSION_ALL:i===D.HIDDEN_VISIBILITY_EXPRESSION_SOME?D.HIDDEN_GROUP_VISIBILITY_EXPRESSION_SOME:e}get errors(){return this._validate()}get featuresHaveSameValue(){const{fieldName:e}=this,t=this.features.at(0)?.getAttribute(e);return this.features.every((i=>i.getAttribute(e)===t))}get field(){return this.template.field}get fieldName(){return this.field.name}get invalidFeatures(){return this.errors.map((e=>e.feature))}get isSubtypeField(){return this.layers.some((e=>{if(e&&"subtypeField"in e){const{subtypeField:t,fieldsIndex:i}=e;return(i.get(t)?.name??t)===this.fieldName}return!1}))}get includeTime(){const{template:e,field:t}=this;return this.dataType===E.Date&&("time-only"===t.type||"date-only"!==t.type&&("datetime-picker"!==e.input?.type||e.input.includeTime))}get includeTimeOffset(){if("timestamp-offset"!==this.field.type)return!1;const e=this.template.input;return!e||"datetimeoffset-picker"===e.type&&e.includeTimeOffset}get maxLength(){return M({dataType:this.dataType,field:this.field,input:this.template.input})}get minLength(){return N({dataType:this.dataType,field:this.field,input:this.template.input})}get range(){if("date"===this.dataType)return this._dateRange;const{domain:e,field:t}=this;if(e){const i=o(t,e);return{max:i?.max,min:i?.min}}const i=this._allDomains.toArray().every((e=>!e))?h(t):null;return{max:i?.max===Number.MAX_VALUE?null:i?.max??null,min:i?.min===-Number.MAX_VALUE?null:i?.min??null}}get required(){if(!this.editable)return!1;if(!this.field.nullable||this.isSubtypeField)return!0;const e=this.visible&&!1!==this.group?.visible,t=this._evaluatedRequiredExpression;return!(!e||null==t)&&t}get submittable(){if(this.required&&this.distinctValues.some((e=>R(e))))return!1;if(this.valid)return!0;const{fieldName:e}=this;return this.features.every((t=>!t.attributeHasChanged(e)))}get valid(){return 0===this.errors.length}get value(){return this.featuresHaveSameValue?this.features.at(0)?.getAttribute(this.fieldName)??null:v}get visibilityCode(){return this.field.visible?this._fieldShouldHaveDomain&&null==this.domain?D.HIDDEN_NO_DOMAIN_IN_COMMON:this._baseVisibilityCode:D.HIDDEN_FIELD_DEFINITION}get _evaluatedRequiredExpression(){let e=!1,t=!0;const i=this.template;for(const r of this.features){if(null==i.getExpressionExecutorsForLayer(r.layer)?.requiredExpression)continue;t=!1;const n=this.expressionsManager.evaluatedExpressions.get(r)?.get(I(i.elementId,"required"));"success"===n?.status?e=e||!0===n.result:e=!0}return t?null:e}get _allDomains(){const e=this.template.domain;return this.features.map((t=>{const i=t.layer.getFieldDomain(this.fieldName,{feature:t.plainGraphic});return"range"===i?.type||"range"===e?.type?i??this.template.domain:i}))}get _fieldShouldHaveDomain(){return!!this._hasIntersectionWithElementFieldDomain||this._allDomains.some(t)}get _dateFormRange(){if("date"!==this.dataType)return{};const e=this.template.input;if(!e)return{};const{type:t}=e;let i={};if("date-picker"!==t&&"time-picker"!==t&&"datetimeoffset-picker"!==t||(i=u(this.field,e.max,e.min)),"datetime-picker"===t){const{max:t,min:r}=e;i={max:null!=t&&w(t)?t.getTime():null,min:null!=r&&w(r)?r.getTime():null}}return{min:i.min,max:i.max,rawMax:i?.rawMax??null,rawMin:i?.rawMin??null}}get _dateRange(){const{_dateFormRange:e,template:t,field:i,domain:r}=this;if("date"!==this.dataType)return{};if(!r)return this._fieldShouldHaveDomain?{}:e;const n=o(i,r),{max:a,min:l,rawMax:s,rawMin:u}=e,{type:m}=t.field;if("date"===m){const{max:e,min:t}=n;return{max:_(a)&&(null===e||null!=e&&a<=e)?a:e??null,min:_(l)&&(null===t||null!=t&&l>=t)?l:t??null}}if("date-only"===m||"time-only"===m||"timestamp-offset"===m){const{max:e,min:t,rawMax:i,rawMin:r}=n,o=_(a)&&s&&(null==e||a<e),m=_(l)&&u&&(null==t||l>t);return{max:o?a:e,min:m?l:t,rawMax:o?s:i,rawMin:m?u:r}}return{}}async setValueFromUser(e){this.userHasChangedValue=!0;const t=new i,r=this.fieldName;for(const i of this.features)i.getAttribute(r)!==e&&t.push(i);this._setValue(e),await this.expressionsManager.valueChanged(r,t)}_setValue(e){const{fieldName:t}=this;for(const i of this.features)i.setAttribute(t,e)}_validate(){const{dataType:e,fieldName:t,maxLength:i,minLength:r,range:n,required:a}=this,l=[];for(const s of this.features){const{layer:o}=s,u=o.getField(t)??this.field,m=o.getFieldDomain(t,{feature:s.plainGraphic}),p=this.calculateDomain([m]),d=s.getAttribute(t),f=S(d,{dataType:e,domain:p,field:u,maxLength:i,minLength:r,range:n,required:a});f&&l.push({error:f,feature:s.original})}return l}calculateDomain(e){const t=e.find((e=>null!=e)),i=this.template.domain;if(!t)return i&&m(this.field,i)?i:null;switch(t.type){case"coded-value":if(e.some((e=>!e))){if(!i)return null;e=e.filter((e=>null!==e))}break;case"range":e=e.filter((e=>null!==e))}if(!e.every((e=>e?.type===t?.type)))return null;let r=null;switch(t?.type){case"range":r=this._intersectRangeDomains(e);break;case"coded-value":r=this._intersectCodedValueDomains(e)}return r}_intersectCodedValueDomains(e){if(!e.length)return null;const t=new Map(e[0].codedValues.map((({code:e,name:t})=>[e,t]))),i=this.template.domain?new Map(this.template.domain.codedValues.map((({code:e,name:t})=>[e,t]))):null;for(const a of e)for(const[e,i]of t){a.codedValues.some((t=>t.code===e&&t.name===i))||t.delete(e)}let r=t;if(i){r=new Map;for(const[e,n]of i)t.has(e)&&r.set(e,n)}const n=Array.from(r.entries()).map((([e,t])=>new a({code:e,name:t})));return n.length?new l({codedValues:n}):null}_intersectRangeDomains(e){if(!e.length)return null;let t=e[0];if(e.length>1&&(t=e.reduce(((e,t)=>{const i=this._findMinMaxValuesBetweenTwoDomains(e,t);return i||null}),t)),t&&!m(this.field,t))return null;const{domain:i}=this.template;if(t&&i&&i instanceof s){const e=this._findMinMaxValuesBetweenTwoDomains(t,i);return this._hasIntersectionWithElementFieldDomain=!!e,e}return t}_getMinMaxFromRangeDomain(e){const t=e.minValue,i=e.maxValue,{field:r}=this;return c(r)||f(r)||g(r)?u(r,i,t):{min:null!=t&&"number"==typeof t?t:null,max:null!=i&&"number"==typeof i?i:null}}_findMinMaxValuesBetweenTwoDomains(e,t){const i=new s,r=this._getMinMaxFromRangeDomain(e),n=this._getMinMaxFromRangeDomain(t),{field:a}=this,l=this._getValidRangeValue(r.min,-1/0),o=this._getValidRangeValue(r.max,1/0),u=this._getValidRangeValue(n.min,-1/0),m=this._getValidRangeValue(n.max,1/0);return i.minValue=Math.max(l,u),i.maxValue=Math.min(o,m),i.minValue===-1/0||i.maxValue===1/0||i.minValue>i.maxValue?null:((c(a)||f(a)||g(a))&&(i.minValue=Number(r.min)>Number(n.min)?r.rawMin:n.rawMin,i.maxValue=Number(r.max)<Number(n.max)?r.rawMax:n.rawMax),i.name="intersection",i)}_getValidRangeValue(e,t){return _(e)?e:t}};e([r()],T.prototype,"dataType",null),e([r()],T.prototype,"domain",null),e([r()],T.prototype,"distinctValues",null),e([r()],T.prototype,"editable",null),e([r()],T.prototype,"effectiveVisible",null),e([r()],T.prototype,"effectiveVisibilityCode",null),e([r()],T.prototype,"errors",null),e([r()],T.prototype,"featuresHaveSameValue",null),e([r()],T.prototype,"field",null),e([r()],T.prototype,"fieldName",null),e([r()],T.prototype,"group",void 0),e([r()],T.prototype,"invalidFeatures",null),e([r()],T.prototype,"isSubtypeField",null),e([r()],T.prototype,"includeTime",null),e([r()],T.prototype,"includeTimeOffset",null),e([r()],T.prototype,"maxLength",null),e([r()],T.prototype,"minLength",null),e([r()],T.prototype,"range",null),e([r()],T.prototype,"required",null),e([r()],T.prototype,"submittable",null),e([r({readOnly:!0})],T.prototype,"type",void 0),e([r()],T.prototype,"userHasChangedValue",void 0),e([r()],T.prototype,"valid",null),e([r()],T.prototype,"value",null),e([r()],T.prototype,"visibilityCode",null),e([r()],T.prototype,"_evaluatedRequiredExpression",null),e([r()],T.prototype,"_hasIntersectionWithElementFieldDomain",void 0),e([r()],T.prototype,"_allDomains",null),e([r()],T.prototype,"_fieldShouldHaveDomain",null),e([r()],T.prototype,"_dateFormRange",null),e([r()],T.prototype,"_dateRange",null),T=e([n("esri.widgets.BatchAttributeForm.inputs.FieldInput")],T);export{T as FieldInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../chunks/tslib.es6.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as s}from"../../../core/accessorSupport/decorators/subclass.js";import{InputBase as r}from"./InputBase.js";import{visibilityCodeToBoolean as i}from"./support/inputUtils.js";let p=class extends r{constructor(t){super(t),this.inputs=[],this.type="group"}initialize(){for(const t of this.inputs)t.group=this}get visible(){return i(this.visibilityCode)&&this.inputs.some((t=>t.visible))}};t([o()],p.prototype,"inputs",void 0),t([o({readOnly:!0})],p.prototype,"type",void 0),t([o()],p.prototype,"visible",null),p=t([s("esri.widgets.BatchAttributeForm.inputs.GroupInput")],p);export{p as GroupInput};
5
+ import{_ as t}from"../../../chunks/tslib.es6.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{InputBase as s}from"./InputBase.js";import{visibilityCodeToBoolean as e}from"./support/inputUtils.js";let i=class extends s{constructor(t){super(t),this.inputs=[],this.type="group"}initialize(){for(const t of this.inputs)t.group=this}get open(){return"expanded"===this.template.initialState}set open(t){this._override("open",t)}get visible(){return e(this.visibilityCode)&&this.inputs.some((t=>t.visible))}};t([o()],i.prototype,"inputs",void 0),t([o({readOnly:!0})],i.prototype,"type",void 0),t([o()],i.prototype,"open",null),t([o()],i.prototype,"visible",null),i=t([r("esri.widgets.BatchAttributeForm.inputs.GroupInput")],i);export{i as GroupInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../chunks/tslib.es6.js";import e from"../../../core/Accessor.js";import i from"../../../core/Collection.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as s}from"../../../core/accessorSupport/decorators/subclass.js";import{visibilityCodeToBoolean as o,InputVisibilityCode as l}from"./support/inputUtils.js";let p=class extends e{constructor(t){super(t),this.existsInAllLayers=!0,this.features=new i}get description(){return this.template.description}get featuresHaveSameCalculatedVisibility(){return!0}get label(){return this.template.label}get layers(){return Array.from(new Set(this.features.map((t=>t.layer))))}get visibilityCode(){return this._baseVisibilityCode}get visible(){return o(this.visibilityCode)}get _baseVisibilityCode(){return this.existsInAllLayers?this.featuresHaveSameCalculatedVisibility?!1===this._evaluatedVisibilityExpression?l.HIDDEN_VISIBILITY_EXPRESSION_ALL:l.VISIBLE:l.HIDDEN_VISIBILITY_EXPRESSION_SOME:l.HIDDEN_NOT_IN_ALL_LAYERS}get _evaluatedVisibilityExpression(){return null}};t([r()],p.prototype,"description",null),t([r()],p.prototype,"existsInAllLayers",void 0),t([r()],p.prototype,"features",void 0),t([r()],p.prototype,"featuresHaveSameCalculatedVisibility",null),t([r()],p.prototype,"label",null),t([r()],p.prototype,"layers",null),t([r({constructOnly:!0})],p.prototype,"template",void 0),t([r()],p.prototype,"visibilityCode",null),t([r()],p.prototype,"visible",null),t([r()],p.prototype,"_baseVisibilityCode",null),t([r()],p.prototype,"_evaluatedVisibilityExpression",null),p=t([s("esri.widgets.BatchAttributeForm.inputs.InputBase")],p);export{p as InputBase};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Accessor.js";import s from"../../../core/Collection.js";import{property as i}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{visibilityCodeToBoolean as o,InputVisibilityCode as l,makeUseId as a}from"./support/inputUtils.js";let p=class extends t{constructor(e){super(e),this.existsInAllLayers=!0,this.features=new s}get description(){return this.template.description}get featuresHaveSameCalculatedVisibility(){return!0}get label(){return this.template.label}get layers(){return Array.from(new Set(this.features.map((e=>e.layer))))}get visibilityCode(){return this._baseVisibilityCode}get visible(){return o(this.visibilityCode)}get _baseVisibilityCode(){return this.existsInAllLayers?this.featuresHaveSameCalculatedVisibility?!1===this._evaluatedVisibilityExpression?l.HIDDEN_VISIBILITY_EXPRESSION_ALL:l.VISIBLE:l.HIDDEN_VISIBILITY_EXPRESSION_SOME:l.HIDDEN_NOT_IN_ALL_LAYERS}get _evaluatedVisibilityExpression(){let e=!0,t=!0;for(const s of this.features){if(null==this.template.getExpressionExecutorsForLayer(s.layer)?.visibilityExpression){e=e&&!0;continue}t=!1;const i=this.expressionsManager.evaluatedExpressions.get(s)?.get(a(this.template.elementId,"visibility"));"success"===i?.status?e=e&&!0===i.result:e=!1}return t?null:e}};e([i({constructOnly:!0})],p.prototype,"expressionsManager",void 0),e([i()],p.prototype,"description",null),e([i()],p.prototype,"existsInAllLayers",void 0),e([i()],p.prototype,"features",void 0),e([i()],p.prototype,"featuresHaveSameCalculatedVisibility",null),e([i()],p.prototype,"label",null),e([i()],p.prototype,"layers",null),e([i({constructOnly:!0})],p.prototype,"template",void 0),e([i()],p.prototype,"visibilityCode",null),e([i()],p.prototype,"visible",null),e([i()],p.prototype,"_baseVisibilityCode",null),e([i()],p.prototype,"_evaluatedVisibilityExpression",null),p=e([r("esri.widgets.BatchAttributeForm.inputs.InputBase")],p);export{p as InputBase};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../../core/Error.js";import{BatchFormInputs as t}from"../BatchFormInputs.js";import{FieldInput as r}from"../FieldInput.js";import{GroupInput as n}from"../GroupInput.js";import{isFieldElementTemplate as o,isGroupElementTemplate as p}from"../../templates/support/templateUtils.js";function s(e,r){const n=e.elements.map((e=>m(e,r)));return new t({inputs:n,template:e})}function m(t,s){const l=new Set(t.layers),a=s.filter((e=>l.has(e.layer))),i=a.length===s.length;if(o(t))return new r({existsInAllLayers:i,features:a,template:t});if(p(t)){const e=t.elements.map((e=>m(e,s)));return new n({existsInAllLayers:i,features:a,inputs:e,template:t})}throw new e("batch-attribute-form:unsupported-element-template","The type of form element template provided is not supported")}export{s as createBatchFormInputsFromBatchFormTemplate};
5
+ import e from"../../../../core/Error.js";import{BatchFormInputs as t}from"../BatchFormInputs.js";import{FieldInput as r}from"../FieldInput.js";import{GroupInput as s}from"../GroupInput.js";import{isFieldElementTemplate as n,isGroupElementTemplate as o}from"../../templates/support/templateUtils.js";function p(e,r,s){const n=e.elements.map((e=>m(e,r,s)));return new t({inputs:n,template:e})}function m(t,p,a){const l=new Set(t.layers),i=p.filter((e=>l.has(e.layer))),u=i.length===p.length;if(n(t))return new r({existsInAllLayers:u,features:i,template:t,expressionsManager:a});if(o(t)){const e=t.elements.map((e=>m(e,p,a)));return new s({existsInAllLayers:u,features:i,inputs:e,template:t,expressionsManager:a})}throw new e("batch-attribute-form:unsupported-element-template","The type of form element template provided is not supported")}export{p as createBatchFormInputsFromBatchFormTemplate};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- const i="esri_BatchAttributeForm_different_values";var e,I;function n(i){return i===I.VISIBLE}function t(i){return"field"===i.type}function r(i){return"group"===i.type}!function(i){i.DIFFERENT_ERRORS="batch-attribute-form-validation::features-have-different-errors"}(e||(e={})),function(i){i.HIDDEN_FIELD_DEFINITION="hidden:field-definition",i.HIDDEN_GROUP_VISIBILITY_EXPRESSION_ALL="hidden:group-visibility-expression:all-features",i.HIDDEN_GROUP_VISIBILITY_EXPRESSION_SOME="hidden:group-visibility-expression:some-features",i.HIDDEN_NO_DOMAIN_IN_COMMON="hidden:no-domain-in-common",i.HIDDEN_NOT_IN_ALL_LAYERS="hidden:not-in-all-layers",i.HIDDEN_VISIBILITY_EXPRESSION_ALL="hidden:visibility-expression:all-features",i.HIDDEN_VISIBILITY_EXPRESSION_SOME="hidden:visibility-expression:some-features",i.VISIBLE="visible"}(I||(I={}));export{I as InputVisibilityCode,e as MultiFeatureError,i as differentValuesString,t as isFieldInput,r as isGroupInput,n as visibilityCodeToBoolean};
5
+ const e="esri_BatchAttributeForm_different_values";var n,i,t;function I(e){return e===t.VISIBLE}function o(e){return"field"===e.type}function r(e){return"group"===e.type}function s(e,n){return`${e}:${n}`}!function(e){e.DIFFERENT_ERRORS="batch-attribute-form-validation::features-have-different-errors"}(n||(n={})),function(e){e.noElementsInCommon="noElementsInCommon",e.noElements="noElements",e.elementsHiddenInSome="elementsHiddenInSome",e.allElementsHidden="allElementsHidden"}(i||(i={})),function(e){e.HIDDEN_FIELD_DEFINITION="hidden:field-definition",e.HIDDEN_GROUP_VISIBILITY_EXPRESSION_ALL="hidden:group-visibility-expression:all-features",e.HIDDEN_GROUP_VISIBILITY_EXPRESSION_SOME="hidden:group-visibility-expression:some-features",e.HIDDEN_NO_DOMAIN_IN_COMMON="hidden:no-domain-in-common",e.HIDDEN_NOT_IN_ALL_LAYERS="hidden:not-in-all-layers",e.HIDDEN_VISIBILITY_EXPRESSION_ALL="hidden:visibility-expression:all-features",e.HIDDEN_VISIBILITY_EXPRESSION_SOME="hidden:visibility-expression:some-features",e.VISIBLE="visible"}(t||(t={}));export{t as InputVisibilityCode,n as MultiFeatureError,i as NoVisibleElementCodes,e as differentValuesString,o as isFieldInput,r as isGroupInput,s as makeUseId,I as visibilityCodeToBoolean};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Accessor.js";import{property as s}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{isGroupElementTemplate as r}from"./support/templateUtils.js";let l=class extends t{constructor(e){super(e),this.description=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}get elementsFlat(){const e=[];for(const t of this.elements)if(e.push(t),r(t))for(const s of t.elements)e.push(s);return e}get elementsInCommon(){const e=this.layers.length;return this.elements.filter((t=>t.layers.length===e))}get layers(){const e=new Set(this.elements.flatMap((e=>e.layers)));return Array.from(e)}getExpressionExecutorsForLayer(e){const t=new Map;for(const s of this.elementsFlat)s.layers.includes(e)&&t.set(s,s.getExpressionExecutorsForLayer(e));return t}};e([s()],l.prototype,"description",void 0),e([s()],l.prototype,"elements",void 0),e([s()],l.prototype,"elementsFlat",null),e([s()],l.prototype,"elementsInCommon",null),e([s()],l.prototype,"layers",null),e([s()],l.prototype,"title",void 0),l=e([o("esri.widgets.BatchAttributeForm.templates.BatchFormTemplate")],l);const n=l;export{n as default};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Accessor.js";import{property as s}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{isGroupElementTemplate as r}from"./support/templateUtils.js";let l=class extends t{constructor(e){super(e),this.description=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}get elementsFlat(){const e=[];for(const t of this.elements)if(e.push(t),r(t))for(const s of t.elements)e.push(s);return e}get elementsInCommon(){const e=this.layers.length;return this.elements.filter((t=>t.layers.length===e))}get layers(){const e=new Set(this.elements.flatMap((e=>e.layers)));return Array.from(e)}getExpressionExecutorsForLayer(e){const t=new Map;for(const s of this.elementsFlat)s.layers.includes(e)&&t.set(s,s.getExpressionExecutorsForLayer(e));return t}};e([s()],l.prototype,"description",void 0),e([s()],l.prototype,"elements",void 0),e([s()],l.prototype,"elementsFlat",null),e([s()],l.prototype,"elementsInCommon",null),e([s()],l.prototype,"layers",null),e([s()],l.prototype,"preserveFieldValuesWhenHidden",void 0),e([s()],l.prototype,"title",void 0),l=e([o("esri.widgets.BatchAttributeForm.templates.BatchFormTemplate")],l);const n=l;export{n as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as t}from"../../../core/accessorSupport/decorators/subclass.js";import{ElementTemplateBase as r}from"./ElementTemplateBase.js";let p=class extends r{constructor(e){super(e),this.domain=null,this.group=null,this.hint=null,this.input=null,this.type="field"}get fieldName(){return this.field.name}};e([o({clonable:"reference"})],p.prototype,"domain",void 0),e([o({clonable:"reference",constructOnly:!0})],p.prototype,"field",void 0),e([o()],p.prototype,"fieldName",null),e([o({clonable:!1})],p.prototype,"group",void 0),e([o()],p.prototype,"hint",void 0),e([o()],p.prototype,"input",void 0),e([o()],p.prototype,"type",void 0),p=e([t("esri.widgets.BatchAttributeForm.templates.FieldElementTemplate")],p);export{p as FieldElementTemplate};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as t}from"../../../core/accessorSupport/decorators/subclass.js";import{ElementTemplateBase as r}from"./ElementTemplateBase.js";let s=class extends r{constructor(e){super(e),this.domain=null,this.group=null,this.hint=null,this.input=null,this.type="field",this.layerTimeZone=null,this.formTimeZone=null}get fieldName(){return this.field.name}get hasValueCalculations(){for(const e of this.layers){const o=this.getExpressionExecutorsForLayer(e);if(o?.valueExpression)return!0}return!1}};e([o({clonable:"reference"})],s.prototype,"domain",void 0),e([o({clonable:"reference",constructOnly:!0})],s.prototype,"field",void 0),e([o()],s.prototype,"fieldName",null),e([o({clonable:!1})],s.prototype,"group",void 0),e([o()],s.prototype,"hint",void 0),e([o()],s.prototype,"input",void 0),e([o()],s.prototype,"type",void 0),e([o()],s.prototype,"layerTimeZone",void 0),e([o()],s.prototype,"formTimeZone",void 0),e([o()],s.prototype,"hasValueCalculations",null),s=e([t("esri.widgets.BatchAttributeForm.templates.FieldElementTemplate")],s);export{s as FieldElementTemplate};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Error.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{ElementTemplateBase as s}from"./ElementTemplateBase.js";let n=class extends s{constructor(e){super(e),this.type="group"}initialize(){for(const e of this.elements)e.group=this}foldIn(e){const{elements:o}=this,r=e.elements;if(o.length!==r.length)throw new t("unable-to-fold-in","Unable to fold in the given GroupElementTemplate because it has a different number of child elements");for(const t of e.layers){this.addLayer(t,e.getExpressionExecutorsForLayer(t));for(let e=0;e<o.length;e++)o.at(e).foldIn(r.at(e))}}};e([o({constructOnly:!0})],n.prototype,"elements",void 0),e([o()],n.prototype,"type",void 0),n=e([r("esri.widgets.BatchAttributeForm.templates.GroupElementTemplate")],n);export{n as GroupElementTemplate};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Error.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{ElementTemplateBase as s}from"./ElementTemplateBase.js";let i=class extends s{constructor(e){super(e),this.initialState="expanded",this.type="group"}initialize(){for(const e of this.elements)e.group=this}foldIn(e){const{elements:o}=this,r=e.elements;if(o.length!==r.length)throw new t("unable-to-fold-in","Unable to fold in the given GroupElementTemplate because it has a different number of child elements");for(const t of e.layers){this.addLayer(t,e.getExpressionExecutorsForLayer(t));for(let e=0;e<o.length;e++)o.at(e).foldIn(r.at(e))}}};e([o()],i.prototype,"initialState",void 0),e([o({constructOnly:!0})],i.prototype,"elements",void 0),e([o()],i.prototype,"type",void 0),i=e([r("esri.widgets.BatchAttributeForm.templates.GroupElementTemplate")],i);export{i as GroupElementTemplate};