@arcgis/coding-components 5.0.0-next.77 → 5.0.0-next.79
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/addons.js +1 -1
- package/dist/cdn/{XBAQR4RX.js → 2BCO6SG5.js} +1 -1
- package/dist/cdn/3477DX4G.js +4 -0
- package/dist/cdn/{ZJQO4X4Q.js → 3ATGZYPK.js} +2 -2
- package/dist/cdn/{F4Y5OCLJ.js → 3WYDB6WK.js} +2 -2
- package/dist/cdn/{XKU2UF3G.js → 4E6AI3M3.js} +2 -2
- package/dist/cdn/{HBE2SRY7.js → 4ZBPHVXD.js} +2 -2
- package/dist/cdn/{NIF66Q56.js → 5233CPHM.js} +3 -3
- package/dist/cdn/{OS3JLEEL.js → 56FKMMXL.js} +1 -1
- package/dist/cdn/{4D7CTYPQ.js → 5TRYLEX6.js} +2 -2
- package/dist/cdn/{G3IFQ6J5.js → 624Z75GK.js} +2 -2
- package/dist/cdn/{NNVNH2X7.js → 62EDUAWV.js} +1 -1
- package/dist/cdn/{X7X44FVH.js → 62KDE4FX.js} +2 -2
- package/dist/cdn/{QFSZYGEF.js → 6Z7FJFAP.js} +2 -2
- package/dist/cdn/{GJ5WS6S4.js → A3SXALTG.js} +2 -2
- package/dist/cdn/{P57C7CGK.js → ATHG4HDW.js} +2 -2
- package/dist/cdn/{O3CKVQLF.js → B6QSXEEJ.js} +2 -2
- package/dist/cdn/{222HSHNA.js → BZ7S2JIN.js} +2 -2
- package/dist/cdn/{RMMLQDOM.js → CA67TDRM.js} +2 -2
- package/dist/cdn/{HIP2GPRJ.js → CF3PEDQC.js} +2 -2
- package/dist/cdn/{YRWQXBAW.js → CKDTAOOH.js} +2 -2
- package/dist/cdn/{JVNVR2K3.js → CY3ARDC3.js} +3 -3
- package/dist/cdn/{5SQWI343.js → F23FPJK7.js} +2 -2
- package/dist/cdn/{MJPIRGST.js → G2FUIEOL.js} +2 -2
- package/dist/cdn/{FOJISQSB.js → GL6UZR7S.js} +2 -2
- package/dist/cdn/{SK4E2BBN.js → HCGO4CID.js} +2 -2
- package/dist/cdn/{ZQF7C5NG.js → HNHLWF6C.js} +2 -2
- package/dist/cdn/{WETHULC7.js → I37MPCOZ.js} +2 -2
- package/dist/cdn/{AXE4R6O3.js → JC5ASDOX.js} +2 -2
- package/dist/cdn/{PXCKGEQ3.js → JCTM4ZMN.js} +2 -2
- package/dist/cdn/{7FTGBEUZ.js → LX36SKEI.js} +2 -2
- package/dist/cdn/{WBN6DWT4.js → MS6DTZFO.js} +2 -2
- package/dist/cdn/{LG7G5KKG.js → NYS5HWK3.js} +2 -2
- package/dist/cdn/{EH5ZSBB5.js → PFV5PJCJ.js} +1 -1
- package/dist/cdn/{5EEQEMML.js → QANQKGY7.js} +2 -2
- package/dist/cdn/{64MRJU7Y.js → QT3YCSX4.js} +2 -2
- package/dist/cdn/{XZH2MLB2.js → RYY4FPRC.js} +2 -2
- package/dist/cdn/{NJHVKDMX.js → SIHZ7STO.js} +1 -1
- package/dist/cdn/{C6NFHNXE.js → T3UFYAPZ.js} +1 -1
- package/dist/cdn/{ZUII2VBD.js → TK6Z7WN3.js} +2 -2
- package/dist/cdn/{X56E367I.js → TOPE5YDS.js} +2 -2
- package/dist/cdn/{V347WVJY.js → U4GP7ZFP.js} +1 -1
- package/dist/cdn/{QL4Z6K5M.js → UE6WH52J.js} +1 -1
- package/dist/cdn/{GZ23VCFF.js → VXOM6RAS.js} +2 -2
- package/dist/cdn/VZVRK7RU.js +4 -0
- package/dist/cdn/{BHRZHJIW.js → XOQAJOTJ.js} +2 -2
- package/dist/cdn/{W2J5GXI5.js → XWGDWNHQ.js} +2 -2
- package/dist/cdn/{24YXYHS4.js → YISBCFSW.js} +2 -2
- package/dist/cdn/{SHZIUE3R.js → ZPVNHFPP.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-contribution.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +21 -18
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/monaco-theme.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +3 -2
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +15 -9
- package/dist/docs/docs.json +9 -4
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/monacoStyles.js +1 -1
- package/dist/utils/arcade-executor.d.ts +6 -2
- package/package.json +5 -5
- package/dist/cdn/BHDJW32U.js +0 -4
- package/dist/cdn/DWWGN273.js +0 -4
|
@@ -93,7 +93,7 @@ interface IArcadeRuntimeTimeOnly {
|
|
|
93
93
|
*/
|
|
94
94
|
toString: () => string;
|
|
95
95
|
}
|
|
96
|
-
export type ResultType = "array" | "attachment" | "boolean" | "date" | "dateOnly" | "dictionary" | "error" | "feature" | "featureSet" | "geometry" | "knowledgeGraph" | "null" | "number" | "portal" | "text" | "time" | "unknown";
|
|
96
|
+
export type ResultType = "array" | "attachment" | "boolean" | "date" | "dateOnly" | "dictionary" | "error" | "feature" | "featureSet" | "geometry" | "knowledgeGraph" | "null" | "number" | "pixel" | "portal" | "text" | "time" | "unknown";
|
|
97
97
|
interface IArcadeResultBase {
|
|
98
98
|
type: ResultType;
|
|
99
99
|
timeStamp?: Date;
|
|
@@ -155,6 +155,10 @@ export interface IArcadeResultFeature extends IArcadeResultBase {
|
|
|
155
155
|
type: "feature";
|
|
156
156
|
value: IArcadeRuntimeDictionary;
|
|
157
157
|
}
|
|
158
|
+
export interface IArcadeResultPixel extends IArcadeResultBase {
|
|
159
|
+
type: "pixel";
|
|
160
|
+
value: IArcadeRuntimeDictionary;
|
|
161
|
+
}
|
|
158
162
|
export interface IArcadeResultFeatureSet extends IArcadeResultBase {
|
|
159
163
|
type: "featureSet";
|
|
160
164
|
value: IArcadeRuntimeFeatureSet;
|
|
@@ -169,7 +173,7 @@ export interface IArcadeResultAttachment extends IArcadeResultBase {
|
|
|
169
173
|
type: "attachment";
|
|
170
174
|
value: IArcadeRuntimeDictionary;
|
|
171
175
|
}
|
|
172
|
-
export type ArcadeResult = IArcadeResultArray | IArcadeResultAttachment | IArcadeResultBoolean | IArcadeResultDate | IArcadeResultDateOnly | IArcadeResultDictionary | IArcadeResultError | IArcadeResultFeature | IArcadeResultFeatureSet | IArcadeResultGeometry | IArcadeResultKnowledgeGraph | IArcadeResultNull | IArcadeResultNumber | IArcadeResultPortal | IArcadeResultString | IArcadeResultTimeOnly | IArcadeResultUnknown;
|
|
176
|
+
export type ArcadeResult = IArcadeResultArray | IArcadeResultAttachment | IArcadeResultBoolean | IArcadeResultDate | IArcadeResultDateOnly | IArcadeResultDictionary | IArcadeResultError | IArcadeResultFeature | IArcadeResultFeatureSet | IArcadeResultGeometry | IArcadeResultKnowledgeGraph | IArcadeResultNull | IArcadeResultNumber | IArcadeResultPixel | IArcadeResultPortal | IArcadeResultString | IArcadeResultTimeOnly | IArcadeResultUnknown;
|
|
173
177
|
export declare function valueToArcadeResult(value: unknown): ArcadeResult;
|
|
174
178
|
export declare function formatArcadeResultDate(dateObject: IArcadeResultDate, lang?: string): string;
|
|
175
179
|
export declare function formatArcadeResultDateOnly(dateObject: IArcadeResultDateOnly): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.79",
|
|
4
4
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
],
|
|
43
43
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@arcgis/arcade-languageservice": "5.0.0-next.
|
|
46
|
-
"@arcgis/languages-api-utils": "5.0.0-next.
|
|
47
|
-
"@arcgis/lumina": "5.0.0-next.
|
|
48
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
45
|
+
"@arcgis/arcade-languageservice": "5.0.0-next.79",
|
|
46
|
+
"@arcgis/languages-api-utils": "5.0.0-next.79",
|
|
47
|
+
"@arcgis/lumina": "5.0.0-next.79",
|
|
48
|
+
"@arcgis/toolkit": "5.0.0-next.79",
|
|
49
49
|
"@lit/task": "^1.0.3",
|
|
50
50
|
"lit": "^3.3.0",
|
|
51
51
|
"monaco-editor": "^0.52.0",
|
package/dist/cdn/BHDJW32U.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.77 */
|
|
4
|
-
export default $arcgis.t(([{createArcadeExecutor:m}])=>{var k="https://developers.arcgis.com/arcade/",E=100,v=100;function C(e){return!!e&&typeof e=="object"&&"declaredRootClass"in e&&typeof e.declaredRootClass=="string"&&e.declaredRootClass==="esri.arcade.featureset.support.FeatureSet"}function g(e){return!!e&&typeof e=="object"&&"arcadeDeclaredClass"in e&&typeof e.arcadeDeclaredClass=="string"&&e.arcadeDeclaredClass==="esri.arcade.Feature"}function b(e){return!!e&&typeof e=="object"&&"declaredClass"in e&&typeof e.declaredClass=="string"&&e.declaredClass==="esri.arcade.Dictionary"}function w(e){return!!e&&typeof e=="object"&&"declaredClass"in e&&typeof e.declaredClass=="string"&&e.declaredClass.startsWith("esri.geometry.")}function R(e){return!!e&&typeof e=="object"&&"declaredClass"in e&&typeof e.declaredClass=="string"&&e.declaredClass.startsWith("esri.rest.knowledgeGraph.KnowledgeGraph")}function h(e){return!!e&&typeof e=="object"&&"declaredClass"in e&&typeof e.declaredClass=="string"&&e.declaredClass==="esri.arcade.Portal"}function j(e){return!!e&&typeof e=="object"&&"declaredClass"in e&&typeof e.declaredClass=="string"&&e.declaredClass==="esri.arcade.Attachment"}function A(e){return!!e&&typeof e=="object"&&"declaredRootClass"in e&&typeof e.declaredRootClass=="string"&&e.declaredRootClass==="esri.arcade.arcadedate"}function D(e){return!!e&&typeof e=="object"&&"declaredRootClass"in e&&typeof e.declaredRootClass=="string"&&e.declaredRootClass==="esri.core.sql.dateonly"}function F(e){return!!e&&typeof e=="object"&&"declaredRootClass"in e&&typeof e.declaredRootClass=="string"&&e.declaredRootClass==="esri.core.sql.timeonly"}function S(e){return!!e&&typeof e=="object"&&"length"in e&&typeof e.length=="function"&&"get"in e&&typeof e.get=="function"&&"toArray"in e&&typeof e.toArray=="function"&&"_elements"in e&&Array.isArray(e._elements)}function Z(e){return e==null?{type:"null"}:Array.isArray(e)?{type:"array",value:e}:S(e)?{type:"array",value:e.toArray()}:e instanceof Date?{type:"date",value:e}:typeof e=="string"?{type:"text",value:e}:typeof e=="number"?{type:"number",value:e}:typeof e=="boolean"?{type:"boolean",value:e}:typeof e!="object"?{type:"unknown"}:A(e)?{type:"date",value:e}:D(e)?{type:"dateOnly",value:e}:F(e)?{type:"time",value:e}:j(e)?{type:"attachment",value:e}:h(e)?{type:"portal",value:e}:C(e)?{type:"featureSet",value:e,features:[],iterator:null}:g(e)?{type:"feature",value:e}:b(e)?{type:"dictionary",value:e}:w(e)?{type:"geometry",value:e}:R(e)?{type:"knowledgeGraph",value:e}:{type:"unknown"}}function G(e,r="en"){return e.value instanceof Date?new Intl.DateTimeFormat(r,{dateStyle:"medium",timeStyle:"long"}).format(e.value):e.value.toDateTime().setLocale(r).toFormat(e.value.isUnknownTimeZone?"FF":"FF ZZZZZ")}function B(e){return e.value.toString()}function I(e){return e.value.toString()}async function x(e,r="system"){let a=Z(e);return a.type!=="featureSet"||(await a.value.load(),a.iterator=a.value.iterator({aborted:!1}),a.features=await a.iterator.nextBatchAsArcadeFeatures(v,r)??[]),a}async function O(e,r,a,s){let l=new Date;s??=()=>{};try{let o=performance.now(),n=await m(r??"",{variables:e?.variables??[]}),c=performance.now(),{profileVariableInstances:u,spatialReference:d,timeZone:i,services:y}=a,p={spatialReference:d,timeZone:i,rawOutput:!0,console:s,services:y},f=await n.executeAsync(u,p),t=await x(f,i);return t.timeStamp=l,t.compilationTime=c-o,t.executionTime=performance.now()-c,t}catch(o){let n="Unknown Error";return o instanceof Error&&(n=o.message),{type:"error",value:n,error:o,timeStamp:l,compilationTime:0,executionTime:0}}}return{a:k,b:E,c:v,d:Z,e:G,f:B,g:I,h:O}},"arcade")
|
package/dist/cdn/DWWGN273.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.77 */
|
|
4
|
-
import c from"./O3CKVQLF.js";import"./X56E367I.js";import b from"./4D7CTYPQ.js";import a from"./24YXYHS4.js";import"./EH5ZSBB5.js";import"./NJHVKDMX.js";import"./64MRJU7Y.js";import"./NIF66Q56.js";import"./OS3JLEEL.js";import"./SK4E2BBN.js";import"./C6NFHNXE.js";import"./RMMLQDOM.js";import"./NNVNH2X7.js";import"./WBN6DWT4.js";import"./QL4Z6K5M.js";export default $arcgis.t(([,,{a:a,b:b,c:c}])=>{return{getSqlExprDiagnosticService:b,getSqlExprWorker:a,setupMode:c}},a,b,c)
|