@arcgis/coding-components 4.30.0-next.21 → 4.30.0-next.23
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.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/p-250241d4.entry.js +6 -0
- package/dist/arcgis-coding-components/p-3217369b.js +68 -0
- package/dist/arcgis-coding-components/{p-1451e0cc.js → p-49bca36f.js} +2 -2
- package/dist/arcgis-coding-components/{p-192601ca.js → p-5b2565ca.js} +2 -2
- package/dist/arcgis-coding-components/p-600be247.js +6 -0
- package/dist/arcgis-coding-components/{p-0e7b5896.js → p-64abf203.js} +2 -2
- package/dist/arcgis-coding-components/{p-253f92ea.js → p-68006f08.js} +2 -2
- package/dist/arcgis-coding-components/p-716a8741.js +6 -0
- package/dist/arcgis-coding-components/{p-b177db92.js → p-9b73a641.js} +3 -3
- package/dist/arcgis-coding-components/{p-a63eeed9.js → p-bc0aa910.js} +1 -1
- package/dist/arcgis-coding-components/{p-cb5166f2.js → p-c0185a0d.js} +2 -2
- package/dist/arcgis-coding-components/{p-5583b25d.js → p-d7560609.js} +2 -2
- package/dist/arcgis-coding-components/p-de307b87.js +6 -0
- package/dist/arcgis-coding-components/{p-eb16cce2.js → p-f75b073c.js} +2 -2
- package/dist/arcgis-coding-components/p-ff1c764c.js +7 -0
- package/dist/cjs/Accessor-YDTURKZ7-2cd6deb4.js +1249 -0
- package/dist/cjs/{arcade-defaults-9d57f506.js → arcade-defaults-fb1a3fd7.js} +294 -295
- package/dist/cjs/{arcade-mode-9079b8e0.js → arcade-mode-2560e670.js} +4 -4
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1347 -89
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/chunk-OMA4PI5N-60e6be60.js +1286 -0
- package/dist/cjs/{css-9aa4569b.js → css-f659c186.js} +1 -1
- package/dist/cjs/{cssMode-6f57c416.js → cssMode-6a246ae2.js} +3 -3
- package/dist/cjs/decorators-443AWDOE-fb0006fa.js +120 -0
- package/dist/cjs/{html-95d3a234.js → html-d999957e.js} +3 -3
- package/dist/cjs/{htmlMode-ebd8894d.js → htmlMode-777d5d7e.js} +3 -3
- package/dist/cjs/{index-a3f52cf5.js → index-60fec5d8.js} +42 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-1a01235b.js → javascript-5c4612fc.js} +4 -4
- package/dist/cjs/{jsonMode-26ed7799.js → jsonMode-21544f43.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-9cfeb9a5.js → tsMode-34b259f1.js} +3 -3
- package/dist/cjs/{typescript-f9907455.js → typescript-6f9695a1.js} +3 -3
- package/dist/components/Accessor-YDTURKZ7.js +1247 -0
- package/dist/components/arcade-api.js +9 -15
- package/dist/components/arcade-contribution.js +3 -3
- package/dist/components/arcade-defaults.js +10 -10
- package/dist/components/arcade-mode.js +3 -3
- package/dist/components/arcade-results.js +24 -35
- package/dist/components/arcade-suggestions.js +10 -16
- package/dist/components/arcade-variables.js +11 -20
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +20 -24
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/chunk-3I7AEPTU.js +1290 -0
- package/dist/components/chunk-OMA4PI5N.js +1257 -0
- package/dist/components/code-editor.js +6 -6
- package/dist/components/decorators-443AWDOE.js +109 -0
- package/dist/components/fields.js +40 -39
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -3
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +3 -3
- package/dist/esm/Accessor-YDTURKZ7-dcaf409b.js +1247 -0
- package/dist/esm/{arcade-defaults-1577045c.js → arcade-defaults-9833f532.js} +286 -285
- package/dist/esm/{arcade-mode-ec8b7890.js → arcade-mode-a9774d50.js} +4 -4
- package/dist/esm/arcgis-arcade-api_6.entry.js +1389 -131
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/chunk-OMA4PI5N-2da97f52.js +1257 -0
- package/dist/esm/{css-6350c0f7.js → css-294de2b5.js} +1 -1
- package/dist/esm/{cssMode-629b1349.js → cssMode-8bf465a1.js} +3 -3
- package/dist/esm/decorators-443AWDOE-8b8ddc71.js +109 -0
- package/dist/esm/{html-979016b0.js → html-df0c0abf.js} +3 -3
- package/dist/esm/{htmlMode-dd504dae.js → htmlMode-379ba474.js} +3 -3
- package/dist/esm/{index-093931a1.js → index-aafc3e0b.js} +42 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-7af48cb1.js → javascript-7f02143c.js} +4 -4
- package/dist/esm/{jsonMode-eb6b41d1.js → jsonMode-0db8e4ac.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-64deb000.js → tsMode-8bd448ad.js} +3 -3
- package/dist/esm/{typescript-c9b14542.js → typescript-a14f4a55.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-api/arcade-api.d.ts +4 -5
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +7 -4
- package/dist/types/components/arcade-results/arcade-results.d.ts +4 -7
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +4 -5
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +4 -6
- package/package.json +12 -12
- package/dist/arcgis-coding-components/p-81935687.js +0 -68
- package/dist/arcgis-coding-components/p-a2190df0.js +0 -7
- package/dist/arcgis-coding-components/p-e8c2933f.entry.js +0 -6
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -3
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -9
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -19
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -6
|
@@ -6580,6 +6580,31 @@
|
|
|
6580
6580
|
"id": "feature_functions",
|
|
6581
6581
|
"title": "Функції об'єкта",
|
|
6582
6582
|
"items": [
|
|
6583
|
+
{
|
|
6584
|
+
"type": "function",
|
|
6585
|
+
"name": "defaultvalue",
|
|
6586
|
+
"bundle": "core",
|
|
6587
|
+
"sinceVersion": "1.26",
|
|
6588
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#defaultvalue",
|
|
6589
|
+
"description": "Returns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.",
|
|
6590
|
+
"examples": "\n##### Приклад\n\nReturn \"n/a\" if feature attribute does not exist or is empty\n\n```arcade\nDefaultValue($feature, \"population\", \"n/a\")\n// Returns the population value if available\n// or n/a if not available\n```\n\n",
|
|
6591
|
+
"completion": {
|
|
6592
|
+
"label": "DefaultValue",
|
|
6593
|
+
"detail": "DefaultValue(container, fieldName, defaultValue) -> Any",
|
|
6594
|
+
"insertText": "DefaultValue(${1:container_}, ${2:fieldName_}, ${3:defaultValue_})$0",
|
|
6595
|
+
"insertTextMode": 2,
|
|
6596
|
+
"insertTextFormat": 2,
|
|
6597
|
+
"kind": 3,
|
|
6598
|
+
"documentation": {
|
|
6599
|
+
"kind": "markdown",
|
|
6600
|
+
"value": "**[Починаючи з версії 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.\n\n**Параметри**\n\n- **container**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The input feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the field name does not exist or the value at the specified field is `null` or an empty text value.\n\n**Повернуте значення**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value for the specified field if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
6601
|
+
}
|
|
6602
|
+
},
|
|
6603
|
+
"parametersInfo": {
|
|
6604
|
+
"min": 3,
|
|
6605
|
+
"max": 3
|
|
6606
|
+
}
|
|
6607
|
+
},
|
|
6583
6608
|
{
|
|
6584
6609
|
"type": "function",
|
|
6585
6610
|
"name": "domain",
|
|
@@ -1071,6 +1071,31 @@
|
|
|
1071
1071
|
"id": "feature_functions",
|
|
1072
1072
|
"title": "Hàm đối tượng",
|
|
1073
1073
|
"items": [
|
|
1074
|
+
{
|
|
1075
|
+
"type": "function",
|
|
1076
|
+
"name": "defaultvalue",
|
|
1077
|
+
"bundle": "core",
|
|
1078
|
+
"sinceVersion": "1.26",
|
|
1079
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#defaultvalue",
|
|
1080
|
+
"description": "Returns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.",
|
|
1081
|
+
"examples": "\n##### Ví dụ\n\nReturn \"n/a\" if feature attribute does not exist or is empty\n\n```arcade\nDefaultValue($feature, \"population\", \"n/a\")\n// Returns the population value if available\n// or n/a if not available\n```\n\n",
|
|
1082
|
+
"completion": {
|
|
1083
|
+
"label": "DefaultValue",
|
|
1084
|
+
"detail": "DefaultValue(container, fieldName, defaultValue) -> Any",
|
|
1085
|
+
"insertText": "DefaultValue(${1:container_}, ${2:fieldName_}, ${3:defaultValue_})$0",
|
|
1086
|
+
"insertTextMode": 2,
|
|
1087
|
+
"insertTextFormat": 2,
|
|
1088
|
+
"kind": 3,
|
|
1089
|
+
"documentation": {
|
|
1090
|
+
"kind": "markdown",
|
|
1091
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.\n\n**Thông số**\n\n- **container**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The input feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the field name does not exist or the value at the specified field is `null` or an empty text value.\n\n**Giá trị trả về**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value for the specified field if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"parametersInfo": {
|
|
1095
|
+
"min": 3,
|
|
1096
|
+
"max": 3
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1074
1099
|
{
|
|
1075
1100
|
"type": "function",
|
|
1076
1101
|
"name": "domain",
|
|
@@ -3044,6 +3044,31 @@
|
|
|
3044
3044
|
"id": "feature_functions",
|
|
3045
3045
|
"title": "功能函数",
|
|
3046
3046
|
"items": [
|
|
3047
|
+
{
|
|
3048
|
+
"type": "function",
|
|
3049
|
+
"name": "defaultvalue",
|
|
3050
|
+
"bundle": "core",
|
|
3051
|
+
"sinceVersion": "1.26",
|
|
3052
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#defaultvalue",
|
|
3053
|
+
"description": "Returns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.",
|
|
3054
|
+
"examples": "\n##### 示例\n\nReturn \"n/a\" if feature attribute does not exist or is empty\n\n```arcade\nDefaultValue($feature, \"population\", \"n/a\")\n// Returns the population value if available\n// or n/a if not available\n```\n\n",
|
|
3055
|
+
"completion": {
|
|
3056
|
+
"label": "DefaultValue",
|
|
3057
|
+
"detail": "DefaultValue(container, fieldName, defaultValue) -> Any",
|
|
3058
|
+
"insertText": "DefaultValue(${1:container_}, ${2:fieldName_}, ${3:defaultValue_})$0",
|
|
3059
|
+
"insertTextMode": 2,
|
|
3060
|
+
"insertTextFormat": 2,
|
|
3061
|
+
"kind": 3,
|
|
3062
|
+
"documentation": {
|
|
3063
|
+
"kind": "markdown",
|
|
3064
|
+
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.\n\n**参数**\n\n- **container**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The input feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the field name does not exist or the value at the specified field is `null` or an empty text value.\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value for the specified field if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
3065
|
+
}
|
|
3066
|
+
},
|
|
3067
|
+
"parametersInfo": {
|
|
3068
|
+
"min": 3,
|
|
3069
|
+
"max": 3
|
|
3070
|
+
}
|
|
3071
|
+
},
|
|
3047
3072
|
{
|
|
3048
3073
|
"type": "function",
|
|
3049
3074
|
"name": "domain",
|
|
@@ -1470,6 +1470,31 @@
|
|
|
1470
1470
|
"id": "feature_functions",
|
|
1471
1471
|
"title": "圖徵函數",
|
|
1472
1472
|
"items": [
|
|
1473
|
+
{
|
|
1474
|
+
"type": "function",
|
|
1475
|
+
"name": "defaultvalue",
|
|
1476
|
+
"bundle": "core",
|
|
1477
|
+
"sinceVersion": "1.26",
|
|
1478
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#defaultvalue",
|
|
1479
|
+
"description": "Returns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.",
|
|
1480
|
+
"examples": "\n##### 範例\n\nReturn \"n/a\" if feature attribute does not exist or is empty\n\n```arcade\nDefaultValue($feature, \"population\", \"n/a\")\n// Returns the population value if available\n// or n/a if not available\n```\n\n",
|
|
1481
|
+
"completion": {
|
|
1482
|
+
"label": "DefaultValue",
|
|
1483
|
+
"detail": "DefaultValue(container, fieldName, defaultValue) -> Any",
|
|
1484
|
+
"insertText": "DefaultValue(${1:container_}, ${2:fieldName_}, ${3:defaultValue_})$0",
|
|
1485
|
+
"insertTextMode": 2,
|
|
1486
|
+
"insertTextFormat": 2,
|
|
1487
|
+
"kind": 3,
|
|
1488
|
+
"documentation": {
|
|
1489
|
+
"kind": "markdown",
|
|
1490
|
+
"value": "**[自版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.\n\n**參數**\n\n- **container**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The input feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the field name does not exist or the value at the specified field is `null` or an empty text value.\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value for the specified field if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
1493
|
+
"parametersInfo": {
|
|
1494
|
+
"min": 3,
|
|
1495
|
+
"max": 3
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1473
1498
|
{
|
|
1474
1499
|
"type": "function",
|
|
1475
1500
|
"name": "domain",
|
|
@@ -1470,6 +1470,31 @@
|
|
|
1470
1470
|
"id": "feature_functions",
|
|
1471
1471
|
"title": "圖徵函數",
|
|
1472
1472
|
"items": [
|
|
1473
|
+
{
|
|
1474
|
+
"type": "function",
|
|
1475
|
+
"name": "defaultvalue",
|
|
1476
|
+
"bundle": "core",
|
|
1477
|
+
"sinceVersion": "1.26",
|
|
1478
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#defaultvalue",
|
|
1479
|
+
"description": "Returns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.",
|
|
1480
|
+
"examples": "\n##### 範例\n\nReturn \"n/a\" if feature attribute does not exist or is empty\n\n```arcade\nDefaultValue($feature, \"population\", \"n/a\")\n// Returns the population value if available\n// or n/a if not available\n```\n\n",
|
|
1481
|
+
"completion": {
|
|
1482
|
+
"label": "DefaultValue",
|
|
1483
|
+
"detail": "DefaultValue(container, fieldName, defaultValue) -> Any",
|
|
1484
|
+
"insertText": "DefaultValue(${1:container_}, ${2:fieldName_}, ${3:defaultValue_})$0",
|
|
1485
|
+
"insertTextMode": 2,
|
|
1486
|
+
"insertTextFormat": 2,
|
|
1487
|
+
"kind": 3,
|
|
1488
|
+
"documentation": {
|
|
1489
|
+
"kind": "markdown",
|
|
1490
|
+
"value": "**[自版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a field name in a feature does not exist or the value at the specified field is `null` or an empty text value.\n\n**參數**\n\n- **container**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The input feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the field name does not exist or the value at the specified field is `null` or an empty text value.\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value for the specified field if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
1493
|
+
"parametersInfo": {
|
|
1494
|
+
"min": 3,
|
|
1495
|
+
"max": 3
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1473
1498
|
{
|
|
1474
1499
|
"type": "function",
|
|
1475
1500
|
"name": "domain",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
export{a as arcade}from"./p-
|
|
6
|
+
export{a as arcade}from"./p-3217369b.js";import"./p-ff1c764c.js";
|