@arcgis/coding-components 4.28.0-beta.10 → 4.28.0-beta.12
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 +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +51 -52
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +9 -10
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +19 -19
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-acbdd63d.entry.js → p-0058a559.entry.js} +1 -1
- package/dist/arcgis-coding-components/{p-d4923085.js → p-0a1c12bc.js} +1 -1
- package/dist/arcgis-coding-components/p-23a9d01f.js +62 -0
- package/dist/arcgis-coding-components/{p-c4665951.js → p-833d7d5d.js} +1 -1
- package/dist/arcgis-coding-components/{p-8ffe58f2.js → p-86c7337f.js} +2 -2
- package/dist/arcgis-coding-components/{p-358ed87a.js → p-b98f37e4.js} +1 -1
- package/dist/arcgis-coding-components/{p-c1ebad13.js → p-d0a7fde3.js} +1 -1
- package/dist/arcgis-coding-components/{p-30774b8f.js → p-d8a77530.js} +2 -2
- package/dist/arcgis-coding-components/p-e255a13c.js +1 -0
- package/dist/arcgis-coding-components/{p-cff113f1.js → p-fdd3f4de.js} +1 -1
- package/dist/cjs/{arcade-defaults-fe6b2490.js → arcade-defaults-4a9774c6.js} +267 -581
- package/dist/cjs/{arcade-mode-684d2b36.js → arcade-mode-c040c92c.js} +3 -5
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +34 -34
- package/dist/cjs/{cssMode-67c943a9.js → cssMode-2b1f78c9.js} +1 -1
- package/dist/cjs/{html-98e131a9.js → html-0c87581b.js} +1 -1
- package/dist/cjs/{htmlMode-900fc9a2.js → htmlMode-007d54b7.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-5baa3db6.js → javascript-8cef2a6b.js} +2 -2
- package/dist/cjs/{jsonMode-bd64dcac.js → jsonMode-d7517de7.js} +1 -1
- package/dist/cjs/{tsMode-d958fede.js → tsMode-d3684fd5.js} +1 -1
- package/dist/cjs/{typescript-5ebad4f3.js → typescript-99122582.js} +1 -1
- package/dist/components/arcade-api.js +6 -6
- package/dist/components/arcade-contribution.js +2 -2
- package/dist/components/arcade-defaults.js +9 -9
- package/dist/components/arcade-mode.js +3 -5
- package/dist/components/arcade-results.js +12 -12
- package/dist/components/arcade-suggestions.js +4 -4
- package/dist/components/arcade-variables.js +5 -5
- package/dist/components/arcgis-arcade-editor.js +15 -15
- package/dist/components/code-editor.js +6 -6
- package/dist/components/index2.js +2 -316
- package/dist/components/utilities.js +2 -2
- package/dist/esm/{arcade-defaults-1023126c.js → arcade-defaults-93ecbfa3.js} +255 -569
- package/dist/esm/arcade-mode-48ac843d.js +594 -0
- package/dist/esm/arcgis-arcade-api_6.entry.js +34 -34
- package/dist/esm/{cssMode-eff7de28.js → cssMode-9d4a5968.js} +1 -1
- package/dist/esm/{html-9661ece4.js → html-bbd01073.js} +1 -1
- package/dist/esm/{htmlMode-482b86a1.js → htmlMode-16f49bff.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-90f59381.js → javascript-d9d37aa3.js} +2 -2
- package/dist/esm/{jsonMode-334ce784.js → jsonMode-5f32debe.js} +1 -1
- package/dist/esm/{tsMode-28b98722.js → tsMode-dc4e785a.js} +1 -1
- package/dist/esm/{typescript-aec431cc.js → typescript-52f0d258.js} +1 -1
- package/package.json +13 -13
- package/dist/arcgis-coding-components/p-5d8443b7.js +0 -62
- package/dist/arcgis-coding-components/p-e464f3a9.js +0 -1
- package/dist/esm/arcade-mode-b060035b.js +0 -596
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
"bundle": "data-access",
|
|
581
581
|
"sinceVersion": "1.24",
|
|
582
582
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
583
|
-
"description": "Returns the related records for a given feature
|
|
583
|
+
"description": "Returns the related records for a given feature based on the name of a given relationship class.",
|
|
584
584
|
"examples": "\n##### 示例\n\nReturns the count of pole inspection related records\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
|
|
585
585
|
"completion": {
|
|
586
586
|
"label": "FeatureSetByRelationshipClass",
|
|
@@ -591,7 +591,7 @@
|
|
|
591
591
|
"kind": 3,
|
|
592
592
|
"documentation": {
|
|
593
593
|
"kind": "markdown",
|
|
594
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature
|
|
594
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature based on the name of a given relationship class.\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature from which to fetch related records.\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The name of the relationship class as defined in the data source.\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - The fields to return in the FeatureSet. This list includes fields from both the relationship table and the input Feature.\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - Indicates whether to return the geometry for the resulting features.\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
595
595
|
}
|
|
596
596
|
},
|
|
597
597
|
"parametersInfo": {
|
|
@@ -4498,7 +4498,6 @@
|
|
|
4498
4498
|
{
|
|
4499
4499
|
"type": "function",
|
|
4500
4500
|
"name": "front",
|
|
4501
|
-
"disableDocumentation": true,
|
|
4502
4501
|
"bundle": "core",
|
|
4503
4502
|
"sinceVersion": "1.12",
|
|
4504
4503
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#front",
|
|
@@ -5409,7 +5408,7 @@
|
|
|
5409
5408
|
"kind": 3,
|
|
5410
5409
|
"documentation": {
|
|
5411
5410
|
"kind": "markdown",
|
|
5412
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value.
|
|
5411
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value. The time zone must be one of the following:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5413
5412
|
}
|
|
5414
5413
|
},
|
|
5415
5414
|
"parametersInfo": {
|
|
@@ -5434,7 +5433,7 @@
|
|
|
5434
5433
|
"kind": 3,
|
|
5435
5434
|
"documentation": {
|
|
5436
5435
|
"kind": "markdown",
|
|
5437
|
-
"value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**参数**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context.
|
|
5436
|
+
"value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**参数**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5438
5437
|
}
|
|
5439
5438
|
},
|
|
5440
5439
|
"parametersInfo": {
|
|
@@ -5507,7 +5506,7 @@
|
|
|
5507
5506
|
"kind": 3,
|
|
5508
5507
|
"documentation": {
|
|
5509
5508
|
"kind": "markdown",
|
|
5510
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**参数**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone.
|
|
5509
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**参数**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5511
5510
|
}
|
|
5512
5511
|
},
|
|
5513
5512
|
"parametersInfo": {
|
|
@@ -5634,7 +5633,7 @@
|
|
|
5634
5633
|
"kind": 3,
|
|
5635
5634
|
"documentation": {
|
|
5636
5635
|
"kind": "markdown",
|
|
5637
|
-
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**参数**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone.
|
|
5636
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**参数**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5638
5637
|
}
|
|
5639
5638
|
},
|
|
5640
5639
|
"parametersInfo": {
|
|
@@ -6304,7 +6303,7 @@
|
|
|
6304
6303
|
"bundle": "core",
|
|
6305
6304
|
"sinceVersion": "1.24",
|
|
6306
6305
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
6307
|
-
"description": "Returns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the
|
|
6306
|
+
"description": "Returns the time zone of the given Date. The time zone will be one of the following:\n\n- text representing an entry in the IANA time zone database (i.e. `America/New_York`)\n\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n\n- `system` - time zone will be based on the client or system's local time zone\n\n- `UTC`\n\n- `Unknown` - time zone information is not defined.",
|
|
6308
6307
|
"examples": "\n##### 示例\n\nReturns the time zone of a Date\n\n```arcade\nvar natlPizzaDay = Date(2024, 1, 9, 0, 0, 0, 0, \"America/Los_Angeles\");\nTimeZone(natlPizzaDay);\n// Returns 'America/Los_Angeles'\n```\n\n",
|
|
6309
6308
|
"completion": {
|
|
6310
6309
|
"label": "TimeZone",
|
|
@@ -6315,7 +6314,7 @@
|
|
|
6315
6314
|
"kind": 3,
|
|
6316
6315
|
"documentation": {
|
|
6317
6316
|
"kind": "markdown",
|
|
6318
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the
|
|
6317
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n\n- text representing an entry in the IANA time zone database (i.e. `America/New_York`)\n\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n\n- `system` - time zone will be based on the client or system's local time zone\n\n- `UTC`\n\n- `Unknown` - time zone information is not defined.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
6319
6318
|
}
|
|
6320
6319
|
},
|
|
6321
6320
|
"parametersInfo": {
|
|
@@ -6542,7 +6541,7 @@
|
|
|
6542
6541
|
"kind": 3,
|
|
6543
6542
|
"documentation": {
|
|
6544
6543
|
"kind": "markdown",
|
|
6545
|
-
"value": "**[起始版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n提供有关执行 Arcade 表达式的上下文和环境的信息。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回包含以下属性的字典。 返回的属性可能因运行 Arcade 表达式的位置而异,因此建议使用 [`HasValue`](https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue) 函数以确保所需环境属性存在。\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Arcade 版本。 有关版本的详细信息,请参阅 [版本矩阵](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 执行 Arcade 表达式的引擎。 可能的值为:`web`、`native`、`jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 执行 Arcade 表达式的引擎的版本。 有关版本的详细信息,请参阅 [版本矩阵](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 在其中运行 Arcade 表达式的应用程序。 由应用程序开发人员设置此值。 因此,此属性可能为空,具体取决于在其中执行表达式的应用程序。\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 客户端或系统的区域设置。\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Arcade 上下文的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 空间参考的熟知 ID
|
|
6544
|
+
"value": "**[起始版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n提供有关执行 Arcade 表达式的上下文和环境的信息。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回包含以下属性的字典。 返回的属性可能因运行 Arcade 表达式的位置而异,因此建议使用 [`HasValue`](https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue) 函数以确保所需环境属性存在。\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Arcade 版本。 有关版本的详细信息,请参阅 [版本矩阵](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 执行 Arcade 表达式的引擎。 可能的值为:`web`、`native`、`jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 执行 Arcade 表达式的引擎的版本。 有关版本的详细信息,请参阅 [版本矩阵](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 在其中运行 Arcade 表达式的应用程序。 由应用程序开发人员设置此值。 因此,此属性可能为空,具体取决于在其中执行表达式的应用程序。\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 客户端或系统的区域设置。\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Arcade 上下文的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 空间参考的熟知 ID。\n- **timeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
6546
6545
|
}
|
|
6547
6546
|
},
|
|
6548
6547
|
"parametersInfo": {
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
"bundle": "data-access",
|
|
581
581
|
"sinceVersion": "1.24",
|
|
582
582
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
583
|
-
"description": "Returns the related records for a given feature
|
|
583
|
+
"description": "Returns the related records for a given feature based on the name of a given relationship class.",
|
|
584
584
|
"examples": "\n##### 範例\n\nReturns the count of pole inspection related records\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
|
|
585
585
|
"completion": {
|
|
586
586
|
"label": "FeatureSetByRelationshipClass",
|
|
@@ -591,7 +591,7 @@
|
|
|
591
591
|
"kind": 3,
|
|
592
592
|
"documentation": {
|
|
593
593
|
"kind": "markdown",
|
|
594
|
-
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature
|
|
594
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature based on the name of a given relationship class.\n\n**參數**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature from which to fetch related records.\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The name of the relationship class as defined in the data source.\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - The fields to return in the FeatureSet. This list includes fields from both the relationship table and the input Feature.\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - Indicates whether to return the geometry for the resulting features.\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
595
595
|
}
|
|
596
596
|
},
|
|
597
597
|
"parametersInfo": {
|
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
"kind": 3,
|
|
1324
1324
|
"documentation": {
|
|
1325
1325
|
"kind": "markdown",
|
|
1326
|
-
"value": "**[自版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n提供有關執行 Arcade 表達式的內容和環境的資訊。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n傳回包含以下屬性的字典。 傳回的屬性可能因執行 Arcade 表達式的位置而異,因此建議使用 [`HasValue`](https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue) 函數以確保存在所需的環境屬性。\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Arcade 版本。 有關版本化的詳細資訊,請參閱 [version matrix](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的引擎。 可能的值: `web`、`native`、`jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的引擎版本。 有關版本化的詳細資訊,請參閱 [版本矩陣](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的應用程式。 由應用程式開發者設定此值。 因此,此屬性可能為空,具體取決於執行表達式的應用程式。\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用戶端或系統的區域設定。\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Arcade 上下文的空間參考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 空間參考的已知 ID
|
|
1326
|
+
"value": "**[自版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n提供有關執行 Arcade 表達式的內容和環境的資訊。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n傳回包含以下屬性的字典。 傳回的屬性可能因執行 Arcade 表達式的位置而異,因此建議使用 [`HasValue`](https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue) 函數以確保存在所需的環境屬性。\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Arcade 版本。 有關版本化的詳細資訊,請參閱 [version matrix](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的引擎。 可能的值: `web`、`native`、`jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的引擎版本。 有關版本化的詳細資訊,請參閱 [版本矩陣](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的應用程式。 由應用程式開發者設定此值。 因此,此屬性可能為空,具體取決於執行表達式的應用程式。\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用戶端或系統的區域設定。\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Arcade 上下文的空間參考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 空間參考的已知 ID。\n- **timeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
1327
1327
|
}
|
|
1328
1328
|
},
|
|
1329
1329
|
"parametersInfo": {
|
|
@@ -4916,7 +4916,7 @@
|
|
|
4916
4916
|
"kind": 3,
|
|
4917
4917
|
"documentation": {
|
|
4918
4918
|
"kind": "markdown",
|
|
4919
|
-
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**參數**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value.
|
|
4919
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**參數**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value. The time zone must be one of the following:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4920
4920
|
}
|
|
4921
4921
|
},
|
|
4922
4922
|
"parametersInfo": {
|
|
@@ -4941,7 +4941,7 @@
|
|
|
4941
4941
|
"kind": 3,
|
|
4942
4942
|
"documentation": {
|
|
4943
4943
|
"kind": "markdown",
|
|
4944
|
-
"value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**參數**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context.
|
|
4944
|
+
"value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**參數**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4945
4945
|
}
|
|
4946
4946
|
},
|
|
4947
4947
|
"parametersInfo": {
|
|
@@ -5014,7 +5014,7 @@
|
|
|
5014
5014
|
"kind": 3,
|
|
5015
5015
|
"documentation": {
|
|
5016
5016
|
"kind": "markdown",
|
|
5017
|
-
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**參數**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone.
|
|
5017
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**參數**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5018
5018
|
}
|
|
5019
5019
|
},
|
|
5020
5020
|
"parametersInfo": {
|
|
@@ -5141,7 +5141,7 @@
|
|
|
5141
5141
|
"kind": 3,
|
|
5142
5142
|
"documentation": {
|
|
5143
5143
|
"kind": "markdown",
|
|
5144
|
-
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**參數**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone.
|
|
5144
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**參數**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5145
5145
|
}
|
|
5146
5146
|
},
|
|
5147
5147
|
"parametersInfo": {
|
|
@@ -5811,7 +5811,7 @@
|
|
|
5811
5811
|
"bundle": "core",
|
|
5812
5812
|
"sinceVersion": "1.24",
|
|
5813
5813
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
5814
|
-
"description": "Returns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the
|
|
5814
|
+
"description": "Returns the time zone of the given Date. The time zone will be one of the following:\n\n- text representing an entry in the IANA time zone database (i.e. `America/New_York`)\n\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n\n- `system` - time zone will be based on the client or system's local time zone\n\n- `UTC`\n\n- `Unknown` - time zone information is not defined.",
|
|
5815
5815
|
"examples": "\n##### 範例\n\nReturns the time zone of a Date\n\n```arcade\nvar natlPizzaDay = Date(2024, 1, 9, 0, 0, 0, 0, \"America/Los_Angeles\");\nTimeZone(natlPizzaDay);\n// Returns 'America/Los_Angeles'\n```\n\n",
|
|
5816
5816
|
"completion": {
|
|
5817
5817
|
"label": "TimeZone",
|
|
@@ -5822,7 +5822,7 @@
|
|
|
5822
5822
|
"kind": 3,
|
|
5823
5823
|
"documentation": {
|
|
5824
5824
|
"kind": "markdown",
|
|
5825
|
-
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the
|
|
5825
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n\n- text representing an entry in the IANA time zone database (i.e. `America/New_York`)\n\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n\n- `system` - time zone will be based on the client or system's local time zone\n\n- `UTC`\n\n- `Unknown` - time zone information is not defined.\n\n**參數**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
5826
5826
|
}
|
|
5827
5827
|
},
|
|
5828
5828
|
"parametersInfo": {
|
|
@@ -6918,7 +6918,6 @@
|
|
|
6918
6918
|
{
|
|
6919
6919
|
"type": "function",
|
|
6920
6920
|
"name": "front",
|
|
6921
|
-
"disableDocumentation": true,
|
|
6922
6921
|
"bundle": "core",
|
|
6923
6922
|
"sinceVersion": "1.12",
|
|
6924
6923
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#front",
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
"bundle": "data-access",
|
|
581
581
|
"sinceVersion": "1.24",
|
|
582
582
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
583
|
-
"description": "Returns the related records for a given feature
|
|
583
|
+
"description": "Returns the related records for a given feature based on the name of a given relationship class.",
|
|
584
584
|
"examples": "\n##### 範例\n\nReturns the count of pole inspection related records\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
|
|
585
585
|
"completion": {
|
|
586
586
|
"label": "FeatureSetByRelationshipClass",
|
|
@@ -591,7 +591,7 @@
|
|
|
591
591
|
"kind": 3,
|
|
592
592
|
"documentation": {
|
|
593
593
|
"kind": "markdown",
|
|
594
|
-
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature
|
|
594
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature based on the name of a given relationship class.\n\n**參數**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature from which to fetch related records.\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The name of the relationship class as defined in the data source.\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - The fields to return in the FeatureSet. This list includes fields from both the relationship table and the input Feature.\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - Indicates whether to return the geometry for the resulting features.\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
595
595
|
}
|
|
596
596
|
},
|
|
597
597
|
"parametersInfo": {
|
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
"kind": 3,
|
|
1324
1324
|
"documentation": {
|
|
1325
1325
|
"kind": "markdown",
|
|
1326
|
-
"value": "**[自版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n提供有關執行 Arcade 表達式的內容和環境的資訊。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n傳回包含以下屬性的字典。 傳回的屬性可能因執行 Arcade 表達式的位置而異,因此建議使用 [`HasValue`](https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue) 函數以確保存在所需的環境屬性。\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Arcade 版本。 有關版本化的詳細資訊,請參閱 [version matrix](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的引擎。 可能的值: `web`、`native`、`jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的引擎版本。 有關版本化的詳細資訊,請參閱 [版本矩陣](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的應用程式。 由應用程式開發者設定此值。 因此,此屬性可能為空,具體取決於執行表達式的應用程式。\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用戶端或系統的區域設定。\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Arcade 上下文的空間參考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 空間參考的已知 ID
|
|
1326
|
+
"value": "**[自版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n提供有關執行 Arcade 表達式的內容和環境的資訊。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n傳回包含以下屬性的字典。 傳回的屬性可能因執行 Arcade 表達式的位置而異,因此建議使用 [`HasValue`](https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue) 函數以確保存在所需的環境屬性。\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Arcade 版本。 有關版本化的詳細資訊,請參閱 [version matrix](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的引擎。 可能的值: `web`、`native`、`jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的引擎版本。 有關版本化的詳細資訊,請參閱 [版本矩陣](https://developers.arcgis.com/arcade/guide/version-matrix/)。\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 執行 Arcade 表達式的應用程式。 由應用程式開發者設定此值。 因此,此屬性可能為空,具體取決於執行表達式的應用程式。\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用戶端或系統的區域設定。\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Arcade 上下文的空間參考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 空間參考的已知 ID。\n- **timeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
1327
1327
|
}
|
|
1328
1328
|
},
|
|
1329
1329
|
"parametersInfo": {
|
|
@@ -4916,7 +4916,7 @@
|
|
|
4916
4916
|
"kind": 3,
|
|
4917
4917
|
"documentation": {
|
|
4918
4918
|
"kind": "markdown",
|
|
4919
|
-
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**參數**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value.
|
|
4919
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**參數**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value. The time zone must be one of the following:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4920
4920
|
}
|
|
4921
4921
|
},
|
|
4922
4922
|
"parametersInfo": {
|
|
@@ -4941,7 +4941,7 @@
|
|
|
4941
4941
|
"kind": 3,
|
|
4942
4942
|
"documentation": {
|
|
4943
4943
|
"kind": "markdown",
|
|
4944
|
-
"value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**參數**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context.
|
|
4944
|
+
"value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**參數**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4945
4945
|
}
|
|
4946
4946
|
},
|
|
4947
4947
|
"parametersInfo": {
|
|
@@ -5014,7 +5014,7 @@
|
|
|
5014
5014
|
"kind": 3,
|
|
5015
5015
|
"documentation": {
|
|
5016
5016
|
"kind": "markdown",
|
|
5017
|
-
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**參數**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone.
|
|
5017
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**參數**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5018
5018
|
}
|
|
5019
5019
|
},
|
|
5020
5020
|
"parametersInfo": {
|
|
@@ -5141,7 +5141,7 @@
|
|
|
5141
5141
|
"kind": 3,
|
|
5142
5142
|
"documentation": {
|
|
5143
5143
|
"kind": "markdown",
|
|
5144
|
-
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**參數**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone.
|
|
5144
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**參數**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone. Possible values:\n\n - text representing an entry in the IANA time zone database (e.g. `America/New_York`)\n\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n\n - `system` - time zone will be set to the device or system's local time zone\n\n - `default` - the time zone of the profile's execution context\n\n - `UTC` - Universal Time Coordinated\n\n - `unknown` - removes time zone information for the given value and displays the date and time as defined in the expression.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5145
5145
|
}
|
|
5146
5146
|
},
|
|
5147
5147
|
"parametersInfo": {
|
|
@@ -5811,7 +5811,7 @@
|
|
|
5811
5811
|
"bundle": "core",
|
|
5812
5812
|
"sinceVersion": "1.24",
|
|
5813
5813
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
5814
|
-
"description": "Returns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the
|
|
5814
|
+
"description": "Returns the time zone of the given Date. The time zone will be one of the following:\n\n- text representing an entry in the IANA time zone database (i.e. `America/New_York`)\n\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n\n- `system` - time zone will be based on the client or system's local time zone\n\n- `UTC`\n\n- `Unknown` - time zone information is not defined.",
|
|
5815
5815
|
"examples": "\n##### 範例\n\nReturns the time zone of a Date\n\n```arcade\nvar natlPizzaDay = Date(2024, 1, 9, 0, 0, 0, 0, \"America/Los_Angeles\");\nTimeZone(natlPizzaDay);\n// Returns 'America/Los_Angeles'\n```\n\n",
|
|
5816
5816
|
"completion": {
|
|
5817
5817
|
"label": "TimeZone",
|
|
@@ -5822,7 +5822,7 @@
|
|
|
5822
5822
|
"kind": 3,
|
|
5823
5823
|
"documentation": {
|
|
5824
5824
|
"kind": "markdown",
|
|
5825
|
-
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the
|
|
5825
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n\n- text representing an entry in the IANA time zone database (i.e. `America/New_York`)\n\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n\n- `system` - time zone will be based on the client or system's local time zone\n\n- `UTC`\n\n- `Unknown` - time zone information is not defined.\n\n**參數**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
5826
5826
|
}
|
|
5827
5827
|
},
|
|
5828
5828
|
"parametersInfo": {
|
|
@@ -6918,7 +6918,6 @@
|
|
|
6918
6918
|
{
|
|
6919
6919
|
"type": "function",
|
|
6920
6920
|
"name": "front",
|
|
6921
|
-
"disableDocumentation": true,
|
|
6922
6921
|
"bundle": "core",
|
|
6923
6922
|
"sinceVersion": "1.12",
|
|
6924
6923
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#front",
|