@arcgis/coding-components 4.29.0-beta.93 → 4.29.0-beta.94

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 (160) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +466 -26
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +466 -26
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +466 -26
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +466 -26
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +466 -26
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +466 -26
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +466 -26
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +466 -26
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +466 -26
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +466 -26
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +466 -26
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +466 -26
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +466 -26
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +466 -26
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +466 -26
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +466 -26
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +466 -26
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +466 -26
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +466 -26
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +466 -26
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +466 -26
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +466 -26
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +466 -26
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +466 -26
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +466 -26
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +466 -26
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +466 -26
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +466 -26
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +466 -26
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +466 -26
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +466 -26
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +466 -26
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +466 -26
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +466 -26
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +466 -26
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +466 -26
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +466 -26
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +466 -26
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +466 -26
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +466 -26
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +9 -2
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +9 -2
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +9 -2
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +9 -2
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +9 -2
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +9 -2
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +9 -2
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +9 -2
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +9 -2
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +9 -2
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +9 -2
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +9 -2
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +9 -2
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +9 -2
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +9 -2
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +9 -2
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +9 -2
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +9 -2
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +9 -2
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +9 -2
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +9 -2
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +9 -2
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +9 -2
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +9 -2
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +9 -2
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +9 -2
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +9 -2
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +9 -2
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +9 -2
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +9 -2
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +9 -2
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +9 -2
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +9 -2
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +9 -2
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +9 -2
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +9 -2
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +9 -2
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +9 -2
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +9 -2
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +9 -2
  82. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
  83. package/dist/arcgis-coding-components/index.esm.js +6 -1
  84. package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-06b7a85d.js} +6 -1
  85. package/dist/arcgis-coding-components/{p-4c959bce.js → p-22837217.js} +15 -10
  86. package/dist/arcgis-coding-components/{p-ccafed7f.js → p-2b1aca7c.js} +5 -0
  87. package/dist/arcgis-coding-components/{p-75ae922a.js → p-4c4149bc.js} +6 -1
  88. package/dist/arcgis-coding-components/{p-79707082.js → p-5fb23065.js} +6 -1
  89. package/dist/arcgis-coding-components/{p-009eaccf.js → p-8f020f20.js} +5 -0
  90. package/dist/arcgis-coding-components/p-a051ec0a.entry.js +6 -0
  91. package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-a17571b6.js} +6 -1
  92. package/dist/arcgis-coding-components/{p-1d062d47.js → p-a6429039.js} +6 -1
  93. package/dist/arcgis-coding-components/{p-590b795b.js → p-c2344fd6.js} +6 -1
  94. package/dist/arcgis-coding-components/{p-ca7059d4.js → p-d37fa51c.js} +6 -1
  95. package/dist/arcgis-coding-components/p-db60fe10.js +6 -0
  96. package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-042fbece.js} +487 -362
  97. package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-b495cb6f.js} +24 -20
  98. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +176 -112
  99. package/dist/cjs/arcgis-coding-components.cjs.js +6 -1
  100. package/dist/cjs/{css-eb1c8e5c.js → css-19093b80.js} +5 -0
  101. package/dist/cjs/{cssMode-90f06d02.js → cssMode-ce70c012.js} +7 -2
  102. package/dist/cjs/{html-1aa8e458.js → html-04cbd899.js} +7 -2
  103. package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-5e973c6f.js} +7 -2
  104. package/dist/cjs/{index-aaf14a3e.js → index-30445be8.js} +5 -0
  105. package/dist/cjs/index.cjs.js +7 -2
  106. package/dist/cjs/{javascript-7a4d9023.js → javascript-8717f18b.js} +8 -3
  107. package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-b93b2667.js} +7 -2
  108. package/dist/cjs/loader.cjs.js +6 -1
  109. package/dist/cjs/{tsMode-95a699e0.js → tsMode-73e2fe2f.js} +7 -2
  110. package/dist/cjs/{typescript-588df930.js → typescript-a75c0ef4.js} +7 -2
  111. package/dist/components/arcade-api.js +11 -6
  112. package/dist/components/arcade-contribution.js +16 -6
  113. package/dist/components/arcade-defaults.js +243 -118
  114. package/dist/components/arcade-mode.js +22 -18
  115. package/dist/components/arcade-results.js +137 -85
  116. package/dist/components/arcade-suggestions.js +9 -4
  117. package/dist/components/arcade-variables.js +10 -5
  118. package/dist/components/arcgis-arcade-api.js +5 -0
  119. package/dist/components/arcgis-arcade-editor.js +20 -8
  120. package/dist/components/arcgis-arcade-results.js +5 -0
  121. package/dist/components/arcgis-arcade-suggestions.js +5 -0
  122. package/dist/components/arcgis-arcade-variables.js +5 -0
  123. package/dist/components/arcgis-code-editor.js +5 -0
  124. package/dist/components/code-editor.js +9 -4
  125. package/dist/components/fields.js +5 -0
  126. package/dist/components/functional-components.js +5 -0
  127. package/dist/components/index.js +5 -0
  128. package/dist/components/index2.js +7 -2
  129. package/dist/components/markdown.js +5 -0
  130. package/dist/components/utilities.js +7 -2
  131. package/dist/esm/{arcade-defaults-0bc49d1c.js → arcade-defaults-106e7abf.js} +479 -354
  132. package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-a890a073.js} +24 -20
  133. package/dist/esm/arcgis-arcade-api_6.entry.js +176 -112
  134. package/dist/esm/arcgis-coding-components.js +7 -2
  135. package/dist/esm/{css-aade9167.js → css-5029659c.js} +5 -0
  136. package/dist/esm/{cssMode-edce5a89.js → cssMode-c3ebc40a.js} +7 -2
  137. package/dist/esm/{html-00b724af.js → html-13c9342a.js} +7 -2
  138. package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-053279f0.js} +7 -2
  139. package/dist/esm/{index-3732acb8.js → index-c845e955.js} +5 -0
  140. package/dist/esm/index.js +7 -2
  141. package/dist/esm/{javascript-bdd52d83.js → javascript-c580af02.js} +8 -3
  142. package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-cd51566e.js} +7 -2
  143. package/dist/esm/loader.js +7 -2
  144. package/dist/esm/{tsMode-0bd06180.js → tsMode-c0164816.js} +7 -2
  145. package/dist/esm/{typescript-dfdad07a.js → typescript-7e6d57f4.js} +7 -2
  146. package/dist/loader/cdn.js +5 -1
  147. package/dist/loader/index.cjs.js +5 -1
  148. package/dist/loader/index.es2017.js +5 -1
  149. package/dist/loader/index.js +5 -1
  150. package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
  151. package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
  152. package/dist/types/components.d.ts +3 -3
  153. package/dist/types/utils/arcade-executor.d.ts +12 -4
  154. package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
  155. package/dist/types/utils/profile/editor-profile.d.ts +10 -5
  156. package/dist/types/utils/profile/types.d.ts +3 -3
  157. package/dist/types/utils/profile/utils.d.ts +4 -0
  158. package/package.json +10 -10
  159. package/dist/arcgis-coding-components/p-86772125.js +0 -1
  160. package/dist/arcgis-coding-components/p-ac769046.entry.js +0 -1
@@ -145,6 +145,62 @@
145
145
  }
146
146
  ]
147
147
  },
148
+ {
149
+ "id": "knowledgegraph_functions",
150
+ "title": "Ă_Knowledge graph functions__________________________ș",
151
+ "items": [
152
+ {
153
+ "type": "function",
154
+ "name": "knowledgegraphbyportalitem",
155
+ "bundle": "knowledge-graph",
156
+ "sinceVersion": "1.26",
157
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
158
+ "description": "Ă_Returns a knowledge graph from a portal item________________________ș.",
159
+ "examples": "\n##### Exemplu\n\nĂ_Returns the knowledge graph from the portal item__________________________ș.\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
160
+ "completion": {
161
+ "label": "KnowledgeGraphByPortalItem",
162
+ "detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
163
+ "insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
164
+ "insertTextMode": 2,
165
+ "insertTextFormat": 2,
166
+ "kind": 3,
167
+ "documentation": {
168
+ "kind": "markdown",
169
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nĂ_Returns a knowledge graph from a portal item________________________ș.\n\n**Parametri**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - Ă_The Portal from which to query features_____________________ș.\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Ă_The GUID of the portal item referencing a knowledge graph service. _This value must be a text literal.______________________________________________________ș\n\n**Returnare versiune**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
170
+ }
171
+ },
172
+ "parametersInfo": {
173
+ "min": 2,
174
+ "max": 2
175
+ }
176
+ },
177
+ {
178
+ "type": "function",
179
+ "name": "querygraph",
180
+ "bundle": "knowledge-graph",
181
+ "sinceVersion": "1.26",
182
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
183
+ "description": "Ă_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ș.",
184
+ "examples": "\n##### Exemplu\n\nĂ_Queries the knowledge graph for information about the `Student` entities it contains____________________________________________ș.\n\n```arcade\nvar results = QueryGraph(\n knowledgeGraph,\n 'MATCH (p:Student)-[e:EnrolledAt]->(s:School)\n WHERE s.name = 'Eastside Elementary'\n RETURN p,e,s.principal,s.numStaff\n LIMIT 1');\n\nreturn Text(results);\n```\n\n",
185
+ "completion": {
186
+ "label": "QueryGraph",
187
+ "detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
188
+ "insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
189
+ "insertTextMode": 2,
190
+ "insertTextFormat": 2,
191
+ "kind": 3,
192
+ "documentation": {
193
+ "kind": "markdown",
194
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nĂ_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ș.\n\n**Parametri**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - Ă_The knowledge graph to query______________________________ș.\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Ă_The openCypher query to be executed against the knowledge graph_________________________________ș.\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Ă_A dictionary of named query parameters for the openCypher query_________________________________ș. Ă_The parameter names or keys in the dictionary are case-sensitive__________________________________ș. Ă_Parameters accepted depend on the external graph store and can be of type: `Array`, `Date`, `Dictionary`, `Geometry`, `Number, Text`___________________________________________________________________ș\n\n**Returnare versiune**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
195
+ }
196
+ },
197
+ "parametersInfo": {
198
+ "min": 2,
199
+ "max": 3
200
+ }
201
+ }
202
+ ]
203
+ },
148
204
  {
149
205
  "id": "date_functions",
150
206
  "title": "Funcții de dată",
@@ -1313,6 +1369,57 @@
1313
1369
  "id": "dictionary_functions",
1314
1370
  "title": "Funcții de dicționar",
1315
1371
  "items": [
1372
+ [
1373
+ {
1374
+ "type": "function",
1375
+ "name": "defaultvalue",
1376
+ "bundle": "core",
1377
+ "sinceVersion": "1.26",
1378
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
1379
+ "description": "Returns a specified default value if a key in a dictionary does not exist or the value at the specified key is `null` or an empty text value.",
1380
+ "examples": "\n##### Exemple\n\nDefaultValue returns a defined value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is defined, so it is returned\n// returns Jan 24, 2024, 12:00:00 PM system time\n```\n\nDefaultValue returns a default if there is no value at the specified key.\n\n```arcade\nvar data = {\n time: '',\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is empty, so the default is returned\n// returns \"No time logged\"\n```\n\nDefaultValue returns a default if the key does not exist.\n\n```arcade\nvar data = {\n time: ''\n}\n\nDefaultValue(data, \"conditions\", \"n/a\")\n// the conditions key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\n",
1381
+ "completion": {
1382
+ "label": "DefaultValue",
1383
+ "detail": "DefaultValue(container, key, defaultValue) -> Any",
1384
+ "insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
1385
+ "insertTextMode": 2,
1386
+ "insertTextFormat": 2,
1387
+ "kind": 3,
1388
+ "documentation": {
1389
+ "kind": "markdown",
1390
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a key in a dictionary does not exist or the value at the specified key is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The input dictionary to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the key does not exist or the value at the specified key is `null` or an empty text value.\n\n**Returnare versiune**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key if defined. Otherwise, returns the value specified in `defaultValue`."
1391
+ }
1392
+ },
1393
+ "parametersInfo": {
1394
+ "min": 3,
1395
+ "max": 3
1396
+ }
1397
+ },
1398
+ {
1399
+ "type": "function",
1400
+ "name": "defaultvalue",
1401
+ "bundle": "core",
1402
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
1403
+ "description": "Returns a specified default value if at least one of the keys in a nested dictionary does not exist or the value at the specified key is `null` or an empty text value.",
1404
+ "examples": "\n##### Exemple\n\nDefaultValue returns a defined value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], \"No time logged\")\n// value of data.weather.precipitation.value is defined, so it is returned\n// returns 0.4\n```\n\nDefaultValue returns a default if there is no value at the specified key.\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], 0)\n// value of data.weather.precipitation.value is null, so the default is returned\n// returns 0\n```\n\nDefaultValue returns a default if the key does not exist.\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"wind\", \"value\"], \"n/a\")\n// the data.weather.wind key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\nCheck null value in an array within a dictionary with key that exists\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"values\", 3], 0)\n// the value data.weather.precipitation.values[3] is null, so the default is returned\n// returns 0\n```\n\n",
1405
+ "completion": {
1406
+ "label": "DefaultValue",
1407
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
1408
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
1409
+ "insertTextMode": 2,
1410
+ "insertTextFormat": 2,
1411
+ "kind": 3,
1412
+ "documentation": {
1413
+ "kind": "markdown",
1414
+ "value": "Returns a specified default value if at least one of the keys in a nested dictionary does not exist or the value at the specified key is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The input dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Returnare versiune**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
1415
+ }
1416
+ },
1417
+ "parametersInfo": {
1418
+ "min": 3,
1419
+ "max": 3
1420
+ }
1421
+ }
1422
+ ],
1316
1423
  [
1317
1424
  {
1318
1425
  "type": "function",
@@ -1488,31 +1595,58 @@
1488
1595
  "max": 2
1489
1596
  }
1490
1597
  },
1491
- {
1492
- "type": "function",
1493
- "name": "hasvalue",
1494
- "bundle": "core",
1495
- "sinceVersion": "1.20",
1496
- "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue",
1497
- "description": "Indică dacă un dicționar are o cheie dată și dacă acea cheie are o valoare.",
1498
- "examples": "\n##### Exemple\n\nDicționar cu cheie care are o valoare\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nDicționar cu cheie care nu are o valoare\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDicționar fără cheie furnizată\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDicționar fără cheie furnizată\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
1499
- "completion": {
1500
- "label": "HasValue",
1501
- "detail": "HasValue(inputDictionary, key) -> Boolean",
1502
- "insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
1503
- "insertTextMode": 2,
1504
- "insertTextFormat": 2,
1505
- "kind": 3,
1506
- "documentation": {
1507
- "kind": "markdown",
1508
- "value": "**[De la versiune 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndică dacă un dicționar are o cheie dată și dacă acea cheie are o valoare.\n\n**Parametri**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Dicționarul sau obiectul spațiale se va verifica.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Cheia sau numele de câmp de verificat.\n\n**Returnare versiune**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
1598
+ [
1599
+ {
1600
+ "type": "function",
1601
+ "name": "hasvalue",
1602
+ "bundle": "core",
1603
+ "sinceVersion": "1.20",
1604
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
1605
+ "description": "Indicates whether a dictionary has a given key and if that key has a value.",
1606
+ "examples": "\n##### Exemple\n\nDictionary with key that has a value\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nDictionary with key that does not have a value\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDictionary without the provided key\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDictionary without the provided key\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
1607
+ "completion": {
1608
+ "label": "HasValue",
1609
+ "detail": "HasValue(inputDictionary, key) -> Boolean",
1610
+ "insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
1611
+ "insertTextMode": 2,
1612
+ "insertTextFormat": 2,
1613
+ "kind": 3,
1614
+ "documentation": {
1615
+ "kind": "markdown",
1616
+ "value": "**[De la versiune 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a dictionary has a given key and if that key has a value.\n\n**Parametri**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key or field name to check.\n\n**Returnare versiune**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
1617
+ }
1618
+ },
1619
+ "parametersInfo": {
1620
+ "min": 2,
1621
+ "max": 2
1509
1622
  }
1510
1623
  },
1511
- "parametersInfo": {
1512
- "min": 2,
1513
- "max": 2
1624
+ {
1625
+ "type": "function",
1626
+ "name": "hasvalue",
1627
+ "bundle": "core",
1628
+ "sinceVersion": "1.26",
1629
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
1630
+ "description": "Checks whether a property nested several levels deep in a dictionary has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.",
1631
+ "examples": "\n##### Exemple\n\nCheck dictionary with key that has a nested value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"value\"])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.value;\n}\n```\n\nCheck value in a dictionary with key that does not exist\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 0])){\n // if() evaluates to false (\"values\" does not exist), thus avoiding the block\n return data.weather.precipitation.values;\n}\n```\n\nCheck value in an array within a dictionary with key that does exist\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 6])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.values[6];\n}\n```\n\n",
1632
+ "completion": {
1633
+ "label": "HasValue",
1634
+ "detail": "HasValue(inputDictionary, keys) -> Boolean",
1635
+ "insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
1636
+ "insertTextMode": 2,
1637
+ "insertTextFormat": 2,
1638
+ "kind": 3,
1639
+ "documentation": {
1640
+ "kind": "markdown",
1641
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property nested several levels deep in a dictionary has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**Parametri**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the structure.\n\n**Returnare versiune**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
1642
+ }
1643
+ },
1644
+ "parametersInfo": {
1645
+ "min": 2,
1646
+ "max": 2
1647
+ }
1514
1648
  }
1515
- }
1649
+ ]
1516
1650
  ]
1517
1651
  },
1518
1652
  {
@@ -1925,6 +2059,57 @@
1925
2059
  "max": 2
1926
2060
  }
1927
2061
  },
2062
+ [
2063
+ {
2064
+ "type": "function",
2065
+ "name": "defaultvalue",
2066
+ "bundle": "core",
2067
+ "sinceVersion": "1.26",
2068
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
2069
+ "description": "Returns a specified default value if a key in a geometry does not exist or the value at the specified key is `null` or an empty text value.",
2070
+ "examples": "\n##### Exemple\n\nPoint that has a z-value\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nPoint that does not have a z-value\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
2071
+ "completion": {
2072
+ "label": "DefaultValue",
2073
+ "detail": "DefaultValue(container, key, defaultValue) -> Any",
2074
+ "insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
2075
+ "insertTextMode": 2,
2076
+ "insertTextFormat": 2,
2077
+ "kind": 3,
2078
+ "documentation": {
2079
+ "kind": "markdown",
2080
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a key in a geometry does not exist or the value at the specified key is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the key does not exist or the value at the specified key is `null` or an empty text value.\n\n**Returnare versiune**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key if defined. Otherwise, returns the value specified in `defaultValue`."
2081
+ }
2082
+ },
2083
+ "parametersInfo": {
2084
+ "min": 3,
2085
+ "max": 3
2086
+ }
2087
+ },
2088
+ {
2089
+ "type": "function",
2090
+ "name": "defaultvalue",
2091
+ "bundle": "core",
2092
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
2093
+ "description": "Returns a specified default value if at least one of the keys in a geometry's nested properties does not exist or the value at the specified key is `null` or an empty text value.",
2094
+ "examples": "\n##### Exemple\n\nRing, coordinate, and x value all exist and have a value\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"z\"], 1000)\n// returns 100\n```\n\nRing does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",2,0,\"z\"], 1000)\n// returns 1000\n```\n\nRing and coordinate exist, but m-value does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"m\"], 100)\n// returns 100\n```\n\n",
2095
+ "completion": {
2096
+ "label": "DefaultValue",
2097
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
2098
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
2099
+ "insertTextMode": 2,
2100
+ "insertTextFormat": 2,
2101
+ "kind": 3,
2102
+ "documentation": {
2103
+ "kind": "markdown",
2104
+ "value": "Returns a specified default value if at least one of the keys in a geometry's nested properties does not exist or the value at the specified key is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Returnare versiune**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
2105
+ }
2106
+ },
2107
+ "parametersInfo": {
2108
+ "min": 3,
2109
+ "max": 3
2110
+ }
2111
+ }
2112
+ ],
1928
2113
  {
1929
2114
  "type": "function",
1930
2115
  "name": "densify",
@@ -2075,6 +2260,31 @@
2075
2260
  "max": 3
2076
2261
  }
2077
2262
  },
2263
+ {
2264
+ "type": "function",
2265
+ "name": "distancetocoordinate",
2266
+ "bundle": "geometry",
2267
+ "sinceVersion": "1.26",
2268
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
2269
+ "description": "Returns a coordinate along an input line based on a given distance. If the distance is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
2270
+ "examples": "\n##### Exemplu\n\nReturns the coordinate of the input polyline based on the given distance value\n\n```arcade\nvar result = DistanceToCoordinate(Geometry($feature), 1038);\n\nreturn result.coordinate;\n```\n\n",
2271
+ "completion": {
2272
+ "label": "DistanceToCoordinate",
2273
+ "detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
2274
+ "insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
2275
+ "insertTextMode": 2,
2276
+ "insertTextFormat": 2,
2277
+ "kind": 3,
2278
+ "documentation": {
2279
+ "kind": "markdown",
2280
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given distance. If the distance is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Parametri**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The distance used to find the coordinate along `inputLine` from the start of the line.\n\n**Returnare versiune**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties. If the distance is not found along the input line, then the result will be `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The coordinates of a point along `inputLine` based on the given distance value. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
2281
+ }
2282
+ },
2283
+ "parametersInfo": {
2284
+ "min": 2,
2285
+ "max": 2
2286
+ }
2287
+ },
2078
2288
  {
2079
2289
  "type": "function",
2080
2290
  "name": "envelopeintersects",
@@ -2248,6 +2458,58 @@
2248
2458
  "max": 1
2249
2459
  }
2250
2460
  },
2461
+ [
2462
+ {
2463
+ "type": "function",
2464
+ "name": "hasvalue",
2465
+ "bundle": "core",
2466
+ "sinceVersion": "1.26",
2467
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
2468
+ "description": "Indicates whether a geometry has a value at a given key or index.",
2469
+ "examples": "\n##### Exemple\n\nPoint that has a z value\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\nPolygon with key that does not exist\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
2470
+ "completion": {
2471
+ "label": "HasValue",
2472
+ "detail": "HasValue(inputGeometry, key) -> Boolean",
2473
+ "insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
2474
+ "insertTextMode": 2,
2475
+ "insertTextFormat": 2,
2476
+ "kind": 3,
2477
+ "documentation": {
2478
+ "kind": "markdown",
2479
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a geometry has a value at a given key or index.\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The geometry to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key or property name to check.\n\n**Returnare versiune**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2480
+ }
2481
+ },
2482
+ "parametersInfo": {
2483
+ "min": 2,
2484
+ "max": 2
2485
+ }
2486
+ },
2487
+ {
2488
+ "type": "function",
2489
+ "name": "hasvalue",
2490
+ "bundle": "core",
2491
+ "sinceVersion": "1.26",
2492
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
2493
+ "description": "Checks whether a property or index nested several levels deep in a geometry has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.",
2494
+ "examples": "\n##### Exemple\n\nRing, coordinate, and x value all exist and have a value\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,0,\"x\"])){\n // if() evaluates to true, thus executing the return\n return shape.rings[0][0].x;\n // returns -97.06138\n}\n```\n\nRing does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",2,0,\"x\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[2][0].x;\n // polygon only has one ring; there is not a third ring\n}\n```\n\nRing and coordinate exist, but m value does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,3,\"m\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[0][3].m;\n // there is a coordinate at this location, but it does not have an m value\n}\n```\n\n",
2495
+ "completion": {
2496
+ "label": "HasValue",
2497
+ "detail": "HasValue(inputGeometry, keys) -> Boolean",
2498
+ "insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
2499
+ "insertTextMode": 2,
2500
+ "insertTextFormat": 2,
2501
+ "kind": 3,
2502
+ "documentation": {
2503
+ "kind": "markdown",
2504
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property or index nested several levels deep in a geometry has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The dictionary or feature to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the structure.\n\n**Returnare versiune**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2505
+ }
2506
+ },
2507
+ "parametersInfo": {
2508
+ "min": 2,
2509
+ "max": 2
2510
+ }
2511
+ }
2512
+ ],
2251
2513
  {
2252
2514
  "type": "function",
2253
2515
  "name": "intersection",
@@ -2423,6 +2685,31 @@
2423
2685
  "max": 2
2424
2686
  }
2425
2687
  },
2688
+ {
2689
+ "type": "function",
2690
+ "name": "measuretocoordinate",
2691
+ "bundle": "geometry",
2692
+ "sinceVersion": "1.26",
2693
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
2694
+ "description": "Returns a coordinate along an input line based on a given measure, or m-value. If the measure is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
2695
+ "examples": "\n##### Exemplu\n\nReturns the coordinate of the input polyline based on the given measure value\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
2696
+ "completion": {
2697
+ "label": "MeasureToCoordinate",
2698
+ "detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
2699
+ "insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
2700
+ "insertTextMode": 2,
2701
+ "insertTextFormat": 2,
2702
+ "kind": 3,
2703
+ "documentation": {
2704
+ "kind": "markdown",
2705
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given measure, or m-value. If the measure is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Parametri**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The measure, or m-value, from which to find a coordinate along `inputLine` from the start of the line.\n\n**Returnare versiune**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties. If the measure is not found along the input line, then the result will be `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The coordinates of a point along `inputLine` based on the given measure value. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
2706
+ }
2707
+ },
2708
+ "parametersInfo": {
2709
+ "min": 2,
2710
+ "max": 2
2711
+ }
2712
+ },
2426
2713
  {
2427
2714
  "type": "function",
2428
2715
  "name": "multiparttosinglepart",
@@ -2539,7 +2826,7 @@
2539
2826
  "kind": 3,
2540
2827
  "documentation": {
2541
2828
  "kind": "markdown",
2542
- "value": "**[De la versiune 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnează cea mai apropiată coordonată (nu vârf) a geometriei de intrare la punctul de căutare. Dicționarul returnat include și cea mai scurtă distanță planară de la punctul de căutare la cea mai apropiată coordonată. Dacă punctul de căutare intersectează geometria de intrare, punctul de căutare este returnat ca rezultat cu o distanță de zero.\n\n_Geometriile de obiecte spațiale în profilurile de vizualizare și etichetare sunt generalizate în funcție de rezoluția scalei modului de vizualizare pentru a îmbunătăți performanța de trasare. Prin urmare, utilizarea unei geometrii de obiect spațial (de ex. $feature`) ca introducere în orice funcție de geometrie în aceste contexte va returna rezultate diferite la fiecare nivel de scară. Alte profiluri, cum ar fi pop-up, furnizează geometria la rezoluție completă._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometria de la care se poate obține cea mai apropiată coordonată.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punctul de la care se poate găsi cea mai apropiată coordonată de „Geometrie de intrare”.\n\n**Returnare versiune**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturnează un dicționar cu următoarele proprietăți.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Cea mai apropiată coordonată de la „Geometria de intrare” la „Punctul de căutare”.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Distanța planară de la cea mai apropiată coordonată la „Punctul de căutare”. Aceasta reprezintă cea mai scurtă distanță dintre „Geometria de intrare” și „Punctul de căutare”."
2829
+ "value": "**[De la versiune 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnează cea mai apropiată coordonată (nu vârf) a geometriei de intrare la punctul de căutare. Dicționarul returnat include și cea mai scurtă distanță planară de la punctul de căutare la cea mai apropiată coordonată. Dacă punctul de căutare intersectează geometria de intrare, punctul de căutare este returnat ca rezultat cu o distanță de zero.\n\n_Geometriile de obiecte spațiale în profilurile de vizualizare și etichetare sunt generalizate în funcție de rezoluția scalei modului de vizualizare pentru a îmbunătăți performanța de trasare. Prin urmare, utilizarea unei geometrii de obiect spațial (de ex. $feature`) ca introducere în orice funcție de geometrie în aceste contexte va returna rezultate diferite la fiecare nivel de scară. Alte profiluri, cum ar fi pop-up, furnizează geometria la rezoluție completă._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometria de la care se poate obține cea mai apropiată coordonată.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punctul de la care se poate găsi cea mai apropiată coordonată de „Geometrie de intrare”.\n\n**Returnare versiune**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturnează un dicționar cu următoarele proprietăți.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Cea mai apropiată coordonată de la „Geometria de intrare” la „Punctul de căutare”.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Distanța planară de la cea mai apropiată coordonată la „Punctul de căutare”. Aceasta reprezintă cea mai scurtă distanță dintre „Geometria de intrare” și „Punctul de căutare”.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
2543
2830
  }
2544
2831
  },
2545
2832
  "parametersInfo": {
@@ -2564,7 +2851,7 @@
2564
2851
  "kind": 3,
2565
2852
  "documentation": {
2566
2853
  "kind": "markdown",
2567
- "value": "**[De la versiune 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnează cel mai apropiat vârf de la geometria de intrare la punctul de căutare. Dicționarul returnat include distanța planară de la punctul de căutare la cel mai apropiat vârf.\n\n_Geometriile de obiecte spațiale în profilurile de vizualizare și etichetare sunt generalizate în funcție de rezoluția scalei modului de vizualizare pentru a îmbunătăți performanța de trasare. Prin urmare, utilizarea unei geometrii de obiect spațial (de ex. $feature`) ca introducere în orice funcție de geometrie în aceste contexte va returna rezultate diferite la fiecare nivel de scară. Alte profiluri, cum ar fi pop-up, furnizează geometria la rezoluție completă._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometria de la care se poate obține cel mai apropiat vârf.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punctul de la care se poate găsi cel mai apropiat vârf de „Geometrie de intrare”.\n\n**Returnare versiune**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturnează un dicționar cu următoarele proprietăți.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Locația punctului reprezentând cel mai apropiat punct de la „Geometria de intrare” la „Punctul de căutare”.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Distanța planară de la geometria de intrare cea mai apropiată de „Punctul de căutare”."
2854
+ "value": "**[De la versiune 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnează cel mai apropiat vârf de la geometria de intrare la punctul de căutare. Dicționarul returnat include distanța planară de la punctul de căutare la cel mai apropiat vârf.\n\n_Geometriile de obiecte spațiale în profilurile de vizualizare și etichetare sunt generalizate în funcție de rezoluția scalei modului de vizualizare pentru a îmbunătăți performanța de trasare. Prin urmare, utilizarea unei geometrii de obiect spațial (de ex. $feature`) ca introducere în orice funcție de geometrie în aceste contexte va returna rezultate diferite la fiecare nivel de scară. Alte profiluri, cum ar fi pop-up, furnizează geometria la rezoluție completă._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometria de la care se poate obține cel mai apropiat vârf.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punctul de la care se poate găsi cel mai apropiat vârf de „Geometrie de intrare”.\n\n**Returnare versiune**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturnează un dicționar cu următoarele proprietăți.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Locația punctului reprezentând cel mai apropiat punct de la „Geometria de intrare” la „Punctul de căutare”.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Distanța planară de la geometria de intrare cea mai apropiată de „Punctul de căutare”.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
2568
2855
  }
2569
2856
  },
2570
2857
  "parametersInfo": {
@@ -2672,6 +2959,31 @@
2672
2959
  }
2673
2960
  }
2674
2961
  ],
2962
+ {
2963
+ "type": "function",
2964
+ "name": "pointtocoordinate",
2965
+ "bundle": "geometry",
2966
+ "sinceVersion": "1.26",
2967
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
2968
+ "description": "Returns the nearest coordinate and distance to that coordinate of the search point to the input line.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
2969
+ "examples": "\n##### Exemplu\n\nReturns the distance to the nearest coordinate along the input polyline based on the clicked location to open a popup\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
2970
+ "completion": {
2971
+ "label": "PointToCoordinate",
2972
+ "detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
2973
+ "insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
2974
+ "insertTextMode": 2,
2975
+ "insertTextFormat": 2,
2976
+ "kind": 3,
2977
+ "documentation": {
2978
+ "kind": "markdown",
2979
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the nearest coordinate and distance to that coordinate of the search point to the input line.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Parametri**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to get the nearest coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point from which to find the nearest coordinate of the `inputLine`.\n\n**Returnare versiune**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point coordinate representing the nearest coordinate along the `inputLine` to the `searchPoint`. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the `searchPoint` to the `coordinate`.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
2980
+ }
2981
+ },
2982
+ "parametersInfo": {
2983
+ "min": 2,
2984
+ "max": 2
2985
+ }
2986
+ },
2675
2987
  [
2676
2988
  {
2677
2989
  "type": "function",
@@ -3337,6 +3649,57 @@
3337
3649
  "max": 1
3338
3650
  }
3339
3651
  },
3652
+ [
3653
+ {
3654
+ "type": "function",
3655
+ "name": "defaultvalue",
3656
+ "bundle": "core",
3657
+ "sinceVersion": "1.26",
3658
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
3659
+ "description": "Returns a specified default value if an index in an array does not exist or the value at the specified index is `null` or an empty text value.",
3660
+ "examples": "\n##### Exemple\n\nArray with value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\nArray with no value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\nArray with a null value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
3661
+ "completion": {
3662
+ "label": "DefaultValue",
3663
+ "detail": "DefaultValue(container, index, defaultValue) -> Any",
3664
+ "insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
3665
+ "insertTextMode": 2,
3666
+ "insertTextFormat": 2,
3667
+ "kind": 3,
3668
+ "documentation": {
3669
+ "kind": "markdown",
3670
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if an index in an array does not exist or the value at the specified index is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - The input array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the index does not exist or the value at the specified index is `null` or an empty text value.\n\n**Returnare versiune**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified index if defined. Otherwise, returns the value specified in `defaultValue`."
3671
+ }
3672
+ },
3673
+ "parametersInfo": {
3674
+ "min": 3,
3675
+ "max": 3
3676
+ }
3677
+ },
3678
+ {
3679
+ "type": "function",
3680
+ "name": "defaultvalue",
3681
+ "bundle": "core",
3682
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
3683
+ "description": "Checks whether an index nested several levels deep in a multidimensional array has a value and returns that value if present. Otherwise, this function returns a specified default value if at least one of the nested keys or indices does not exist or the value at the specified key or index is `null` or an empty text value. This allows you to drill into a nested structure in one step rather than check values within each array.",
3684
+ "examples": "\n##### Exemple\n\nArray with a value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 3], \"No data\");\n// returns 1\n```\n\nArray with no value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 10], \"No data\");\n// returns \"No data\"\n```\n\nArray with no value at the parent index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [10, 3], \"No data\");\n// returns \"No data\"\n```\n\nArray of dictionaries with nested values\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nDefaultValue(a, [0, \"weather\",\"precipitation\",\"values\", 6], \"No data\");\n// returns 1\n```\n\n",
3685
+ "completion": {
3686
+ "label": "DefaultValue",
3687
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
3688
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
3689
+ "insertTextMode": 2,
3690
+ "insertTextFormat": 2,
3691
+ "kind": 3,
3692
+ "documentation": {
3693
+ "kind": "markdown",
3694
+ "value": "Checks whether an index nested several levels deep in a multidimensional array has a value and returns that value if present. Otherwise, this function returns a specified default value if at least one of the nested keys or indices does not exist or the value at the specified key or index is `null` or an empty text value. This allows you to drill into a nested structure in one step rather than check values within each array.\n\n**Parametri**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - The input array to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Returnare versiune**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
3695
+ }
3696
+ },
3697
+ "parametersInfo": {
3698
+ "min": 3,
3699
+ "max": 3
3700
+ }
3701
+ }
3702
+ ],
3340
3703
  [
3341
3704
  {
3342
3705
  "type": "function",
@@ -3488,6 +3851,58 @@
3488
3851
  "max": 1
3489
3852
  }
3490
3853
  },
3854
+ [
3855
+ {
3856
+ "type": "function",
3857
+ "name": "hasvalue",
3858
+ "bundle": "core",
3859
+ "sinceVersion": "1.26",
3860
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
3861
+ "description": "Indicates whether an array has a value at the given index.",
3862
+ "examples": "\n##### Exemple\n\nArray with value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\nArray with no value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\nArray with a null value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
3863
+ "completion": {
3864
+ "label": "HasValue",
3865
+ "detail": "HasValue(inputArray, index) -> Boolean",
3866
+ "insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
3867
+ "insertTextMode": 2,
3868
+ "insertTextFormat": 2,
3869
+ "kind": 3,
3870
+ "documentation": {
3871
+ "kind": "markdown",
3872
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**Parametri**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - The array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n\n**Returnare versiune**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3873
+ }
3874
+ },
3875
+ "parametersInfo": {
3876
+ "min": 2,
3877
+ "max": 2
3878
+ }
3879
+ },
3880
+ {
3881
+ "type": "function",
3882
+ "name": "hasvalue",
3883
+ "bundle": "core",
3884
+ "sinceVersion": "1.26",
3885
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
3886
+ "description": "Checks whether an index nested several levels deep in a multidimensional array has a value. This allows you to drill into a nested structure in one step rather than check values within each array. Returns `true` if the indexes at each level of the structure exist and include a non-null value.",
3887
+ "examples": "\n##### Exemple\n\nArray with a value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nArray with no value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\nArray with no value at the parent index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nArray of dictionaries with nested values\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nif(HasValue(a, [0, \"weather\",\"precipitation\",\"values\", 6])){\n // This check succeeds so the value will be returned\n return a[0].weather.precipitation.values[6];\n // returns 1\n}\n```\n\n",
3888
+ "completion": {
3889
+ "label": "HasValue",
3890
+ "detail": "HasValue(inputArray, indexes) -> Boolean",
3891
+ "insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
3892
+ "insertTextMode": 2,
3893
+ "insertTextFormat": 2,
3894
+ "kind": 3,
3895
+ "documentation": {
3896
+ "kind": "markdown",
3897
+ "value": "**[De la versiune 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether an index nested several levels deep in a multidimensional array has a value. This allows you to drill into a nested structure in one step rather than check values within each array. Returns `true` if the indexes at each level of the structure exist and include a non-null value.\n\n**Parametri**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - The array to check.\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the structure.\n\n**Returnare versiune**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3898
+ }
3899
+ },
3900
+ "parametersInfo": {
3901
+ "min": 2,
3902
+ "max": 2
3903
+ }
3904
+ }
3905
+ ],
3491
3906
  {
3492
3907
  "type": "function",
3493
3908
  "name": "includes",
@@ -3998,7 +4413,7 @@
3998
4413
  "sinceVersion": "1.12",
3999
4414
  "link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
4000
4415
  "description": "Suma distanțelor parcurse între observări de la prima observare până la observarea actuală, plus valoarea dată.",
4001
- "examples": "\n##### Exemple\n\nTraseul dvs. are șase obiecte spațiale, ca mai sus. Expresia returnează o valoare pentru fiecare obiect spațial de pe traseu. În primul exemplu, studiem rezultatele când sunt evaluate la obiectul spațial 2 (p2) cu o valoare a indicelui de 2. Calculul este `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nTraseul dvs. are șase obiecte spațiale, ca mai sus. Expresia returnează o valoare pentru fiecare obiect spațial de pe traseu. În exemplul următor, studiem rezultatele când sunt evaluate la obiectul spațial 4 (p4) cu o valoare a indicelui de 4. Calculul este `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 230\n```\n\n",
4416
+ "examples": "\n##### Exemple\n\nTraseul dvs. are șase obiecte spațiale, ca mai sus. Expresia returnează o valoare pentru fiecare obiect spațial de pe traseu. În primul exemplu, studiem rezultatele când sunt evaluate la obiectul spațial 2 (p2) cu o valoare a indicelui de 2. Calculul este `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nTraseul dvs. are șase obiecte spațiale, ca mai sus. Expresia returnează o valoare pentru fiecare obiect spațial de pe traseu. În exemplul următor, studiem rezultatele când sunt evaluate la obiectul spațial 4 (p4) cu o valoare a indicelui de 4. Calculul este `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
4002
4417
  "completion": {
4003
4418
  "label": "TrackDistanceAt",
4004
4419
  "detail": "TrackDistanceAt(index) -> Number",
@@ -5036,7 +5451,7 @@
5036
5451
  "sinceVersion": "1.14",
5037
5452
  "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
5038
5453
  "description": "Returnează lungimea planară (sau carteziană) a obiectului spațial de intrare, ținând seama de înălțime sau informațiile Z. Geometria furnizată pentru această funcție trebuie să fie atribuită unui sistem de coordonate proiectat. Dacă referința spațială nu furnizează o valoare pentru unități Z, rezultatul va fi returnat în metri. Rețineți că nu toți clienții (cum ar fi seria 3.x a ArcGIS API pentru JavaScript) acceptă solicitarea valorilor Z chiar și atunci când datele conțin informații Z.\n\n_Geometriile de obiecte spațiale în profilurile de vizualizare și etichetare sunt generalizate în funcție de rezoluția scalei modului de vizualizare pentru a îmbunătăți performanța de trasare. Prin urmare, utilizarea unei geometrii de obiect spațial (de ex. $feature`) ca introducere în orice funcție de geometrie în aceste contexte va returna rezultate diferite la fiecare nivel de scară. Alte profiluri, cum ar fi pop-up, furnizează geometria la rezoluție completă._",
5039
- "examples": "\n##### Exemplu\n\nSe returnează lungimea 3D a obiectelor spațiale ale stratului tematic în metri\n\n```arcade\nLength($layer, 'meters')\n```\n\n",
5454
+ "examples": "\n##### Exemplu\n\nSe returnează lungimea 3D a obiectelor spațiale ale stratului tematic în metri\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
5040
5455
  "completion": {
5041
5456
  "label": "Length3D",
5042
5457
  "detail": "Length3D(features, unit?) -> Number",
@@ -6694,6 +7109,31 @@
6694
7109
  "max": 1
6695
7110
  }
6696
7111
  },
7112
+ {
7113
+ "type": "function",
7114
+ "name": "hasvalue",
7115
+ "bundle": "core",
7116
+ "sinceVersion": "1.20",
7117
+ "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
7118
+ "description": "Indicates whether a feature has a given field and if that field has a value.",
7119
+ "examples": "\n##### Exemplu\n\nReturn false if feature attribute does not exist or is empty\n\n```arcade\nif(HasValue($feature, \"population\")){\n return $feature.population / AreaGeodetic($feature)\n}\n// Returns the population density if population is available\n```\n\n",
7120
+ "completion": {
7121
+ "label": "HasValue",
7122
+ "detail": "HasValue(inputFeature, fieldName) -> Boolean",
7123
+ "insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
7124
+ "insertTextMode": 2,
7125
+ "insertTextFormat": 2,
7126
+ "kind": 3,
7127
+ "documentation": {
7128
+ "kind": "markdown",
7129
+ "value": "**[De la versiune 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a feature has a given field and if that field has a value.\n\n**Parametri**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n\n**Returnare versiune**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7130
+ }
7131
+ },
7132
+ "parametersInfo": {
7133
+ "min": 2,
7134
+ "max": 2
7135
+ }
7136
+ },
6697
7137
  {
6698
7138
  "type": "function",
6699
7139
  "name": "schema",