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

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-23f55366.entry.js +6 -0
  85. package/dist/arcgis-coding-components/{p-009eaccf.js → p-2ee92dd4.js} +5 -0
  86. package/dist/arcgis-coding-components/{p-79707082.js → p-3379c876.js} +6 -1
  87. package/dist/arcgis-coding-components/{p-1d062d47.js → p-361da3f4.js} +6 -1
  88. package/dist/arcgis-coding-components/{p-ccafed7f.js → p-6addbe14.js} +5 -0
  89. package/dist/arcgis-coding-components/{p-590b795b.js → p-704356f7.js} +6 -1
  90. package/dist/arcgis-coding-components/{p-75ae922a.js → p-b1d0e952.js} +7 -2
  91. package/dist/arcgis-coding-components/{p-4c959bce.js → p-ca87fa23.js} +15 -10
  92. package/dist/arcgis-coding-components/{p-ca7059d4.js → p-cc1182ad.js} +6 -1
  93. package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-d7115f8d.js} +6 -1
  94. package/dist/arcgis-coding-components/p-f75e9797.js +6 -0
  95. package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-f7de632b.js} +6 -1
  96. package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-ca7e0df9.js} +487 -362
  97. package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-804c5ea4.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-57d8d5ce.js} +5 -0
  101. package/dist/cjs/{cssMode-90f06d02.js → cssMode-26f96949.js} +7 -2
  102. package/dist/cjs/{html-1aa8e458.js → html-524d1fa5.js} +7 -2
  103. package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-cfbfa149.js} +7 -2
  104. package/dist/cjs/{index-aaf14a3e.js → index-b2077a1b.js} +5 -0
  105. package/dist/cjs/index.cjs.js +7 -2
  106. package/dist/cjs/{javascript-7a4d9023.js → javascript-256166f8.js} +8 -3
  107. package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-07101bba.js} +7 -2
  108. package/dist/cjs/loader.cjs.js +6 -1
  109. package/dist/cjs/{tsMode-95a699e0.js → tsMode-4bf06b38.js} +7 -2
  110. package/dist/cjs/{typescript-588df930.js → typescript-d05f2c7b.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-f929db03.js} +479 -354
  132. package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-87d3ea19.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-eb0f99ca.js} +5 -0
  136. package/dist/esm/{cssMode-edce5a89.js → cssMode-864388a5.js} +7 -2
  137. package/dist/esm/{html-00b724af.js → html-6c5b1b7a.js} +7 -2
  138. package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-8edd9000.js} +7 -2
  139. package/dist/esm/{index-3732acb8.js → index-06f96b57.js} +5 -0
  140. package/dist/esm/index.js +7 -2
  141. package/dist/esm/{javascript-bdd52d83.js → javascript-2f8e7e0f.js} +8 -3
  142. package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-7cd18ebd.js} +7 -2
  143. package/dist/esm/loader.js +7 -2
  144. package/dist/esm/{tsMode-0bd06180.js → tsMode-23e39ee2.js} +7 -2
  145. package/dist/esm/{typescript-dfdad07a.js → typescript-c122e586.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
@@ -1562,6 +1562,31 @@
1562
1562
  "max": 1
1563
1563
  }
1564
1564
  },
1565
+ {
1566
+ "type": "function",
1567
+ "name": "hasvalue",
1568
+ "bundle": "core",
1569
+ "sinceVersion": "1.20",
1570
+ "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
1571
+ "description": "Indicates whether a feature has a given field and if that field has a value.",
1572
+ "examples": "\n##### Piemērs\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",
1573
+ "completion": {
1574
+ "label": "HasValue",
1575
+ "detail": "HasValue(inputFeature, fieldName) -> Boolean",
1576
+ "insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
1577
+ "insertTextMode": 2,
1578
+ "insertTextFormat": 2,
1579
+ "kind": 3,
1580
+ "documentation": {
1581
+ "kind": "markdown",
1582
+ "value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
1583
+ }
1584
+ },
1585
+ "parametersInfo": {
1586
+ "min": 2,
1587
+ "max": 2
1588
+ }
1589
+ },
1565
1590
  {
1566
1591
  "type": "function",
1567
1592
  "name": "schema",
@@ -2426,7 +2451,7 @@
2426
2451
  "sinceVersion": "1.14",
2427
2452
  "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
2428
2453
  "description": "Uzrāda ievades FeatureSet plaknes (t.i., Dekarta) garumu, ņemot vērā augstumu vai Z informāciju. Šai funkcijai nodrošinātā ģeometrija jāpiešķir projicētai koordinātu sistēmai. Ja telpiskajā atskaitē nav norādīta vērtība Z vienībām, rezultāts tiks uzrādīts metros. Ņemiet vērā, ka ne visi klienti (piemēram, ArcGIS API for JavaScript 3.x sērija ) atbalsta Z vērtības pieprasīšanu pat tad, ja dati satur Z informāciju.\n\n_Elementu ģeometrijas vizualizācijas un marķēšanas profilos ir vispārinātas atbilstoši skata mēroga izšķirtspējai, lai uzlabotu zīmēšanas veiktspēju. Tāpēc, izmantojot elementa ģeometriju (t.i., `$feature`) kā ievadi jebkurā ģeometrijas funkcijā šajos kontekstos tiks uzrādīti atšķirīgi rezultāti katrā mēroga līmenī. Citi profili, piemēram, uznirstošais elements, nodrošina pilnu izšķirtspējas ģeometriju._",
2429
- "examples": "\n##### Piemērs\n\nUzrāda slāņa elementu 3D garumu metros\n\n```arcade\nLength($layer, 'meters')\n```\n\n",
2454
+ "examples": "\n##### Piemērs\n\nUzrāda slāņa elementu 3D garumu metros\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
2430
2455
  "completion": {
2431
2456
  "label": "Length3D",
2432
2457
  "detail": "Length3D(features, unit?) -> Number",
@@ -3201,6 +3226,57 @@
3201
3226
  "max": 2
3202
3227
  }
3203
3228
  },
3229
+ [
3230
+ {
3231
+ "type": "function",
3232
+ "name": "defaultvalue",
3233
+ "bundle": "core",
3234
+ "sinceVersion": "1.26",
3235
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
3236
+ "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.",
3237
+ "examples": "\n##### Piemēri\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",
3238
+ "completion": {
3239
+ "label": "DefaultValue",
3240
+ "detail": "DefaultValue(container, key, defaultValue) -> Any",
3241
+ "insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
3242
+ "insertTextMode": 2,
3243
+ "insertTextFormat": 2,
3244
+ "kind": 3,
3245
+ "documentation": {
3246
+ "kind": "markdown",
3247
+ "value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: [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`."
3248
+ }
3249
+ },
3250
+ "parametersInfo": {
3251
+ "min": 3,
3252
+ "max": 3
3253
+ }
3254
+ },
3255
+ {
3256
+ "type": "function",
3257
+ "name": "defaultvalue",
3258
+ "bundle": "core",
3259
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
3260
+ "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.",
3261
+ "examples": "\n##### Piemēri\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",
3262
+ "completion": {
3263
+ "label": "DefaultValue",
3264
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
3265
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
3266
+ "insertTextMode": 2,
3267
+ "insertTextFormat": 2,
3268
+ "kind": 3,
3269
+ "documentation": {
3270
+ "kind": "markdown",
3271
+ "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)<[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**Uzrādīt vērtību**: [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`."
3272
+ }
3273
+ },
3274
+ "parametersInfo": {
3275
+ "min": 3,
3276
+ "max": 3
3277
+ }
3278
+ }
3279
+ ],
3204
3280
  {
3205
3281
  "type": "function",
3206
3282
  "name": "densify",
@@ -3351,6 +3427,31 @@
3351
3427
  "max": 3
3352
3428
  }
3353
3429
  },
3430
+ {
3431
+ "type": "function",
3432
+ "name": "distancetocoordinate",
3433
+ "bundle": "geometry",
3434
+ "sinceVersion": "1.26",
3435
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
3436
+ "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._",
3437
+ "examples": "\n##### Piemērs\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",
3438
+ "completion": {
3439
+ "label": "DistanceToCoordinate",
3440
+ "detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
3441
+ "insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
3442
+ "insertTextMode": 2,
3443
+ "insertTextFormat": 2,
3444
+ "kind": 3,
3445
+ "documentation": {
3446
+ "kind": "markdown",
3447
+ "value": "**[Iepriekšējā versija 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)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [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**Uzrādīt vērtību**: [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`."
3448
+ }
3449
+ },
3450
+ "parametersInfo": {
3451
+ "min": 2,
3452
+ "max": 2
3453
+ }
3454
+ },
3354
3455
  {
3355
3456
  "type": "function",
3356
3457
  "name": "envelopeintersects",
@@ -3524,6 +3625,58 @@
3524
3625
  "max": 1
3525
3626
  }
3526
3627
  },
3628
+ [
3629
+ {
3630
+ "type": "function",
3631
+ "name": "hasvalue",
3632
+ "bundle": "core",
3633
+ "sinceVersion": "1.26",
3634
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
3635
+ "description": "Indicates whether a geometry has a value at a given key or index.",
3636
+ "examples": "\n##### Piemēri\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",
3637
+ "completion": {
3638
+ "label": "HasValue",
3639
+ "detail": "HasValue(inputGeometry, key) -> Boolean",
3640
+ "insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
3641
+ "insertTextMode": 2,
3642
+ "insertTextFormat": 2,
3643
+ "kind": 3,
3644
+ "documentation": {
3645
+ "kind": "markdown",
3646
+ "value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3647
+ }
3648
+ },
3649
+ "parametersInfo": {
3650
+ "min": 2,
3651
+ "max": 2
3652
+ }
3653
+ },
3654
+ {
3655
+ "type": "function",
3656
+ "name": "hasvalue",
3657
+ "bundle": "core",
3658
+ "sinceVersion": "1.26",
3659
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
3660
+ "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.",
3661
+ "examples": "\n##### Piemēri\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",
3662
+ "completion": {
3663
+ "label": "HasValue",
3664
+ "detail": "HasValue(inputGeometry, keys) -> Boolean",
3665
+ "insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
3666
+ "insertTextMode": 2,
3667
+ "insertTextFormat": 2,
3668
+ "kind": 3,
3669
+ "documentation": {
3670
+ "kind": "markdown",
3671
+ "value": "**[Iepriekšējā versija 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)<[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 structure.\n\n**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3672
+ }
3673
+ },
3674
+ "parametersInfo": {
3675
+ "min": 2,
3676
+ "max": 2
3677
+ }
3678
+ }
3679
+ ],
3527
3680
  {
3528
3681
  "type": "function",
3529
3682
  "name": "intersection",
@@ -3699,6 +3852,31 @@
3699
3852
  "max": 2
3700
3853
  }
3701
3854
  },
3855
+ {
3856
+ "type": "function",
3857
+ "name": "measuretocoordinate",
3858
+ "bundle": "geometry",
3859
+ "sinceVersion": "1.26",
3860
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
3861
+ "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._",
3862
+ "examples": "\n##### Piemērs\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",
3863
+ "completion": {
3864
+ "label": "MeasureToCoordinate",
3865
+ "detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
3866
+ "insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
3867
+ "insertTextMode": 2,
3868
+ "insertTextFormat": 2,
3869
+ "kind": 3,
3870
+ "documentation": {
3871
+ "kind": "markdown",
3872
+ "value": "**[Iepriekšējā versija 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)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [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**Uzrādīt vērtību**: [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`."
3873
+ }
3874
+ },
3875
+ "parametersInfo": {
3876
+ "min": 2,
3877
+ "max": 2
3878
+ }
3879
+ },
3702
3880
  {
3703
3881
  "type": "function",
3704
3882
  "name": "multiparttosinglepart",
@@ -3815,7 +3993,7 @@
3815
3993
  "kind": 3,
3816
3994
  "documentation": {
3817
3995
  "kind": "markdown",
3818
- "value": "**[Iepriekšējā versija 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda meklēšanas punktam tuvāko ievades ģeometrijas koordinātu (nevis virsotni). Uzrādītajā vārdnīcā ir iekļauts arī īsākais plaknes attālums no meklēšanas punkta līdz tuvākajai koordinātei. Ja meklēšanas punkts krustojas ar ievades ģeometriju, meklēšanas punkts tiek uzrādīts kā rezultāts ar nulles attālumu.\n\n_Elementu ģeometrijas vizualizācijas un marķēšanas profilos ir vispārinātas atbilstoši skata mēroga izšķirtspējai, lai uzlabotu zīmēšanas veiktspēju. Tāpēc, izmantojot elementa ģeometriju (t.i., `$feature`) kā ievadi jebkurā ģeometrijas funkcijā šajos kontekstos tiks uzrādīti atšķirīgi rezultāti katrā mēroga līmenī. Citi profili, piemēram, uznirstošais elements, nodrošina pilnu izšķirtspējas ģeometriju._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Ģeometrija, no kuras iegūt tuvāko koordināti.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punkts, no kura atrast `inputGeometry` tuvāko koordināti.\n\n**Uzrādīt vērtību**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nUzrāda vārdnīcu ar šādiem rekvizītiem.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Vistuvākā koordināta no `inputGeometry` līdz `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Plaknes attālums no tuvākās koordinātas līdz `searchPoint`. Tas norāda īsāko attālumu starp `inputGeometry` un `searchPoint`."
3996
+ "value": "**[Iepriekšējā versija 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda meklēšanas punktam tuvāko ievades ģeometrijas koordinātu (nevis virsotni). Uzrādītajā vārdnīcā ir iekļauts arī īsākais plaknes attālums no meklēšanas punkta līdz tuvākajai koordinātei. Ja meklēšanas punkts krustojas ar ievades ģeometriju, meklēšanas punkts tiek uzrādīts kā rezultāts ar nulles attālumu.\n\n_Elementu ģeometrijas vizualizācijas un marķēšanas profilos ir vispārinātas atbilstoši skata mēroga izšķirtspējai, lai uzlabotu zīmēšanas veiktspēju. Tāpēc, izmantojot elementa ģeometriju (t.i., `$feature`) kā ievadi jebkurā ģeometrijas funkcijā šajos kontekstos tiks uzrādīti atšķirīgi rezultāti katrā mēroga līmenī. Citi profili, piemēram, uznirstošais elements, nodrošina pilnu izšķirtspējas ģeometriju._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Ģeometrija, no kuras iegūt tuvāko koordināti.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punkts, no kura atrast `inputGeometry` tuvāko koordināti.\n\n**Uzrādīt vērtību**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nUzrāda vārdnīcu ar šādiem rekvizītiem.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Vistuvākā koordināta no `inputGeometry` līdz `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Plaknes attālums no tuvākās koordinātas līdz `searchPoint`. Tas norāda īsāko attālumu starp `inputGeometry` un `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
3819
3997
  }
3820
3998
  },
3821
3999
  "parametersInfo": {
@@ -3840,7 +4018,7 @@
3840
4018
  "kind": 3,
3841
4019
  "documentation": {
3842
4020
  "kind": "markdown",
3843
- "value": "**[Iepriekšējā versija 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda meklēšanas punktam tuvāko ievades ģeometrijas virsotni. Uzrādītajā vārdnīcā ir iekļauts plaknes attālums no meklēšanas punkta līdz tuvākajai virsotnei.\n\n_Elementu ģeometrijas vizualizācijas un marķēšanas profilos ir vispārinātas atbilstoši skata mēroga izšķirtspējai, lai uzlabotu zīmēšanas veiktspēju. Tāpēc, izmantojot elementa ģeometriju (t.i., `$feature`) kā ievadi jebkurā ģeometrijas funkcijā šajos kontekstos tiks uzrādīti atšķirīgi rezultāti katrā mēroga līmenī. Citi profili, piemēram, uznirstošais elements, nodrošina pilnu izšķirtspējas ģeometriju._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Ģeometrija, no kuras iegūt tuvāko virsotni.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punkts, no kura atrast `inputGeometry` tuvāko virsotni.\n\n**Uzrādīt vērtību**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nUzrāda vārdnīcu ar šādiem rekvizītiem.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Punkta novietojums, kas attēlo tuvāko virsotni no `inputGeometry` līdz `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Plaknes attālums no ievades ģeometrijas tuvākās virsotnes līdz `searchPoint`."
4021
+ "value": "**[Iepriekšējā versija 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda meklēšanas punktam tuvāko ievades ģeometrijas virsotni. Uzrādītajā vārdnīcā ir iekļauts plaknes attālums no meklēšanas punkta līdz tuvākajai virsotnei.\n\n_Elementu ģeometrijas vizualizācijas un marķēšanas profilos ir vispārinātas atbilstoši skata mēroga izšķirtspējai, lai uzlabotu zīmēšanas veiktspēju. Tāpēc, izmantojot elementa ģeometriju (t.i., `$feature`) kā ievadi jebkurā ģeometrijas funkcijā šajos kontekstos tiks uzrādīti atšķirīgi rezultāti katrā mēroga līmenī. Citi profili, piemēram, uznirstošais elements, nodrošina pilnu izšķirtspējas ģeometriju._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Ģeometrija, no kuras iegūt tuvāko virsotni.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punkts, no kura atrast `inputGeometry` tuvāko virsotni.\n\n**Uzrādīt vērtību**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nUzrāda vārdnīcu ar šādiem rekvizītiem.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Punkta novietojums, kas attēlo tuvāko virsotni no `inputGeometry` līdz `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Plaknes attālums no ievades ģeometrijas tuvākās virsotnes līdz `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
3844
4022
  }
3845
4023
  },
3846
4024
  "parametersInfo": {
@@ -3948,6 +4126,31 @@
3948
4126
  }
3949
4127
  }
3950
4128
  ],
4129
+ {
4130
+ "type": "function",
4131
+ "name": "pointtocoordinate",
4132
+ "bundle": "geometry",
4133
+ "sinceVersion": "1.26",
4134
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
4135
+ "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._",
4136
+ "examples": "\n##### Piemērs\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",
4137
+ "completion": {
4138
+ "label": "PointToCoordinate",
4139
+ "detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
4140
+ "insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
4141
+ "insertTextMode": 2,
4142
+ "insertTextFormat": 2,
4143
+ "kind": 3,
4144
+ "documentation": {
4145
+ "kind": "markdown",
4146
+ "value": "**[Iepriekšējā versija 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)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [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**Uzrādīt vērtību**: [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`."
4147
+ }
4148
+ },
4149
+ "parametersInfo": {
4150
+ "min": 2,
4151
+ "max": 2
4152
+ }
4153
+ },
3951
4154
  [
3952
4155
  {
3953
4156
  "type": "function",
@@ -4511,7 +4714,7 @@
4511
4714
  "sinceVersion": "1.12",
4512
4715
  "link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
4513
4716
  "description": "Nobraukto attālumu summa starp novērojumiem no pirmā līdz pašreizējam novērojumam un norādītā vērtība.",
4514
- "examples": "\n##### Piemēri\n\nKā redzams iepriekš, jūsu ceļā ir seši elementi. Izteiksme uzrāda katra ceļa elementa vērtību. Pirmajā piemērā mēs pārbaudām rezultātus, izvērtējot tos 2. elementā (p2) ar rādītāja vērtību 2. Aprēķins ir `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nKā redzams iepriekš, jūsu ceļā ir seši elementi. Izteiksme uzrāda katra ceļa elementa vērtību. Nākamajā piemērā mēs pārbaudām rezultātus, izvērtējot tos 4. elementā (p4) ar rādītāja vērtību 4. Aprēķins ir `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 230\n```\n\n",
4717
+ "examples": "\n##### Piemēri\n\nKā redzams iepriekš, jūsu ceļā ir seši elementi. Izteiksme uzrāda katra ceļa elementa vērtību. Pirmajā piemērā mēs pārbaudām rezultātus, izvērtējot tos 2. elementā (p2) ar rādītāja vērtību 2. Aprēķins ir `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nKā redzams iepriekš, jūsu ceļā ir seši elementi. Izteiksme uzrāda katra ceļa elementa vērtību. Nākamajā piemērā mēs pārbaudām rezultātus, izvērtējot tos 4. elementā (p4) ar rādītāja vērtību 4. Aprēķins ir `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
4515
4718
  "completion": {
4516
4719
  "label": "TrackDistanceAt",
4517
4720
  "detail": "TrackDistanceAt(index) -> Number",
@@ -4756,6 +4959,62 @@
4756
4959
  }
4757
4960
  ]
4758
4961
  },
4962
+ {
4963
+ "id": "knowledgegraph_functions",
4964
+ "title": "ķ_Knowledge graph functions__________________________ū",
4965
+ "items": [
4966
+ {
4967
+ "type": "function",
4968
+ "name": "knowledgegraphbyportalitem",
4969
+ "bundle": "knowledge-graph",
4970
+ "sinceVersion": "1.26",
4971
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
4972
+ "description": "ķ_Returns a knowledge graph from a portal item________________________ū.",
4973
+ "examples": "\n##### Piemērs\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",
4974
+ "completion": {
4975
+ "label": "KnowledgeGraphByPortalItem",
4976
+ "detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
4977
+ "insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
4978
+ "insertTextMode": 2,
4979
+ "insertTextFormat": 2,
4980
+ "kind": 3,
4981
+ "documentation": {
4982
+ "kind": "markdown",
4983
+ "value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
4984
+ }
4985
+ },
4986
+ "parametersInfo": {
4987
+ "min": 2,
4988
+ "max": 2
4989
+ }
4990
+ },
4991
+ {
4992
+ "type": "function",
4993
+ "name": "querygraph",
4994
+ "bundle": "knowledge-graph",
4995
+ "sinceVersion": "1.26",
4996
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
4997
+ "description": "ķ_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ū.",
4998
+ "examples": "\n##### Piemērs\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",
4999
+ "completion": {
5000
+ "label": "QueryGraph",
5001
+ "detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
5002
+ "insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
5003
+ "insertTextMode": 2,
5004
+ "insertTextFormat": 2,
5005
+ "kind": 3,
5006
+ "documentation": {
5007
+ "kind": "markdown",
5008
+ "value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
5009
+ }
5010
+ },
5011
+ "parametersInfo": {
5012
+ "min": 2,
5013
+ "max": 3
5014
+ }
5015
+ }
5016
+ ]
5017
+ },
4759
5018
  {
4760
5019
  "id": "logical_functions",
4761
5020
  "title": "Loģiskās funkcijas",
@@ -5135,6 +5394,57 @@
5135
5394
  "max": 1
5136
5395
  }
5137
5396
  },
5397
+ [
5398
+ {
5399
+ "type": "function",
5400
+ "name": "defaultvalue",
5401
+ "bundle": "core",
5402
+ "sinceVersion": "1.26",
5403
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
5404
+ "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.",
5405
+ "examples": "\n##### Piemēri\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",
5406
+ "completion": {
5407
+ "label": "DefaultValue",
5408
+ "detail": "DefaultValue(container, index, defaultValue) -> Any",
5409
+ "insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
5410
+ "insertTextMode": 2,
5411
+ "insertTextFormat": 2,
5412
+ "kind": 3,
5413
+ "documentation": {
5414
+ "kind": "markdown",
5415
+ "value": "**[Iepriekšējā versija 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)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 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**Uzrādīt vērtību**: [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`."
5416
+ }
5417
+ },
5418
+ "parametersInfo": {
5419
+ "min": 3,
5420
+ "max": 3
5421
+ }
5422
+ },
5423
+ {
5424
+ "type": "function",
5425
+ "name": "defaultvalue",
5426
+ "bundle": "core",
5427
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
5428
+ "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.",
5429
+ "examples": "\n##### Piemēri\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",
5430
+ "completion": {
5431
+ "label": "DefaultValue",
5432
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
5433
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
5434
+ "insertTextMode": 2,
5435
+ "insertTextFormat": 2,
5436
+ "kind": 3,
5437
+ "documentation": {
5438
+ "kind": "markdown",
5439
+ "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)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array 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**Uzrādīt vērtību**: [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`."
5440
+ }
5441
+ },
5442
+ "parametersInfo": {
5443
+ "min": 3,
5444
+ "max": 3
5445
+ }
5446
+ }
5447
+ ],
5138
5448
  [
5139
5449
  {
5140
5450
  "type": "function",
@@ -5286,6 +5596,58 @@
5286
5596
  "max": 1
5287
5597
  }
5288
5598
  },
5599
+ [
5600
+ {
5601
+ "type": "function",
5602
+ "name": "hasvalue",
5603
+ "bundle": "core",
5604
+ "sinceVersion": "1.26",
5605
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
5606
+ "description": "Indicates whether an array has a value at the given index.",
5607
+ "examples": "\n##### Piemēri\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",
5608
+ "completion": {
5609
+ "label": "HasValue",
5610
+ "detail": "HasValue(inputArray, index) -> Boolean",
5611
+ "insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
5612
+ "insertTextMode": 2,
5613
+ "insertTextFormat": 2,
5614
+ "kind": 3,
5615
+ "documentation": {
5616
+ "kind": "markdown",
5617
+ "value": "**[Iepriekšējā versija 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)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n\n**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
5618
+ }
5619
+ },
5620
+ "parametersInfo": {
5621
+ "min": 2,
5622
+ "max": 2
5623
+ }
5624
+ },
5625
+ {
5626
+ "type": "function",
5627
+ "name": "hasvalue",
5628
+ "bundle": "core",
5629
+ "sinceVersion": "1.26",
5630
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
5631
+ "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.",
5632
+ "examples": "\n##### Piemēri\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",
5633
+ "completion": {
5634
+ "label": "HasValue",
5635
+ "detail": "HasValue(inputArray, indexes) -> Boolean",
5636
+ "insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
5637
+ "insertTextMode": 2,
5638
+ "insertTextFormat": 2,
5639
+ "kind": 3,
5640
+ "documentation": {
5641
+ "kind": "markdown",
5642
+ "value": "**[Iepriekšējā versija 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)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **indexes**: [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 structure.\n\n**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
5643
+ }
5644
+ },
5645
+ "parametersInfo": {
5646
+ "min": 2,
5647
+ "max": 2
5648
+ }
5649
+ }
5650
+ ],
5289
5651
  {
5290
5652
  "type": "function",
5291
5653
  "name": "includes",
@@ -7112,6 +7474,57 @@
7112
7474
  "id": "dictionary_functions",
7113
7475
  "title": "Vārdnīcas funkcijas",
7114
7476
  "items": [
7477
+ [
7478
+ {
7479
+ "type": "function",
7480
+ "name": "defaultvalue",
7481
+ "bundle": "core",
7482
+ "sinceVersion": "1.26",
7483
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
7484
+ "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.",
7485
+ "examples": "\n##### Piemēri\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",
7486
+ "completion": {
7487
+ "label": "DefaultValue",
7488
+ "detail": "DefaultValue(container, key, defaultValue) -> Any",
7489
+ "insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
7490
+ "insertTextMode": 2,
7491
+ "insertTextFormat": 2,
7492
+ "kind": 3,
7493
+ "documentation": {
7494
+ "kind": "markdown",
7495
+ "value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: [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`."
7496
+ }
7497
+ },
7498
+ "parametersInfo": {
7499
+ "min": 3,
7500
+ "max": 3
7501
+ }
7502
+ },
7503
+ {
7504
+ "type": "function",
7505
+ "name": "defaultvalue",
7506
+ "bundle": "core",
7507
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
7508
+ "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.",
7509
+ "examples": "\n##### Piemēri\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",
7510
+ "completion": {
7511
+ "label": "DefaultValue",
7512
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
7513
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
7514
+ "insertTextMode": 2,
7515
+ "insertTextFormat": 2,
7516
+ "kind": 3,
7517
+ "documentation": {
7518
+ "kind": "markdown",
7519
+ "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**Uzrādīt vērtību**: [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`."
7520
+ }
7521
+ },
7522
+ "parametersInfo": {
7523
+ "min": 3,
7524
+ "max": 3
7525
+ }
7526
+ }
7527
+ ],
7115
7528
  [
7116
7529
  {
7117
7530
  "type": "function",
@@ -7287,31 +7700,58 @@
7287
7700
  "max": 2
7288
7701
  }
7289
7702
  },
7290
- {
7291
- "type": "function",
7292
- "name": "hasvalue",
7293
- "bundle": "core",
7294
- "sinceVersion": "1.20",
7295
- "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue",
7296
- "description": "Norāda, vai vārdnīcai ir konkrēts taustiņš un vai šai atslēgai ir vērtība.",
7297
- "examples": "\n##### Piemēri\n\nVārdnīca ar atslēgu, kurai ir vērtība\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nVārdnīca ar atslēgu, kurai nav vērtības\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nVārdnīca bez norādītās atslēgas\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nVārdnīca bez norādītās atslēgas\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
7298
- "completion": {
7299
- "label": "HasValue",
7300
- "detail": "HasValue(inputDictionary, key) -> Boolean",
7301
- "insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
7302
- "insertTextMode": 2,
7303
- "insertTextFormat": 2,
7304
- "kind": 3,
7305
- "documentation": {
7306
- "kind": "markdown",
7307
- "value": "**[Iepriekšējā versija 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nNorāda, vai vārdnīcai ir konkrēts taustiņš un vai šai atslēgai ir vērtība.\n\n**Parametri**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Pārbaudāmā vārdnīca vai elements.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Pārbaudāmās atslēgas vai lauka nosaukums.\n\n**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7703
+ [
7704
+ {
7705
+ "type": "function",
7706
+ "name": "hasvalue",
7707
+ "bundle": "core",
7708
+ "sinceVersion": "1.20",
7709
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
7710
+ "description": "Indicates whether a dictionary has a given key and if that key has a value.",
7711
+ "examples": "\n##### Piemēri\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",
7712
+ "completion": {
7713
+ "label": "HasValue",
7714
+ "detail": "HasValue(inputDictionary, key) -> Boolean",
7715
+ "insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
7716
+ "insertTextMode": 2,
7717
+ "insertTextFormat": 2,
7718
+ "kind": 3,
7719
+ "documentation": {
7720
+ "kind": "markdown",
7721
+ "value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7722
+ }
7723
+ },
7724
+ "parametersInfo": {
7725
+ "min": 2,
7726
+ "max": 2
7308
7727
  }
7309
7728
  },
7310
- "parametersInfo": {
7311
- "min": 2,
7312
- "max": 2
7729
+ {
7730
+ "type": "function",
7731
+ "name": "hasvalue",
7732
+ "bundle": "core",
7733
+ "sinceVersion": "1.26",
7734
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
7735
+ "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.",
7736
+ "examples": "\n##### Piemēri\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",
7737
+ "completion": {
7738
+ "label": "HasValue",
7739
+ "detail": "HasValue(inputDictionary, keys) -> Boolean",
7740
+ "insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
7741
+ "insertTextMode": 2,
7742
+ "insertTextFormat": 2,
7743
+ "kind": 3,
7744
+ "documentation": {
7745
+ "kind": "markdown",
7746
+ "value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7747
+ }
7748
+ },
7749
+ "parametersInfo": {
7750
+ "min": 2,
7751
+ "max": 2
7752
+ }
7313
7753
  }
7314
- }
7754
+ ]
7315
7755
  ]
7316
7756
  }
7317
7757
  ]