@arcgis/coding-components 4.34.0-next.86 → 4.34.0-next.88
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/arcade-coding-assistant/useArcadeAssistant.d.ts +2 -0
- package/dist/addons.js +1 -1
- package/dist/cdn/{BZZ3OLKH.js → 22CUL3UX.js} +2 -2
- package/dist/cdn/2GH2NPFM.js +4 -0
- package/dist/cdn/{UUABYQVD.js → 2ZKERAZ4.js} +2 -2
- package/dist/cdn/{NJOA4SBB.js → 3AA3VAS3.js} +2 -2
- package/dist/cdn/{FN2DWHGZ.js → 55WTGAHC.js} +2 -2
- package/dist/cdn/{FCJP5BTI.js → 5MVWTV6I.js} +2 -2
- package/dist/cdn/{RIP6VEEO.js → 7JE6E5DM.js} +2 -2
- package/dist/cdn/{TLZNAJL6.js → 7WDPVAKR.js} +2 -2
- package/dist/cdn/{KSSRE3XQ.js → 7XXD4H2S.js} +1 -1
- package/dist/cdn/{3B7VB2X6.js → A6VACHRY.js} +2 -2
- package/dist/cdn/{5YLMMOBI.js → AAXWW25P.js} +2 -2
- package/dist/cdn/{FQUTR3T7.js → ACWXOQCQ.js} +2 -2
- package/dist/cdn/AIR6P3PK.js +4 -0
- package/dist/cdn/{OAPYIJ47.js → ASQET4JI.js} +2 -2
- package/dist/cdn/{QXCWBWGD.js → BDCMKRWH.js} +1 -1
- package/dist/cdn/{TKSDZ3NF.js → BI3MDYLO.js} +2 -2
- package/dist/cdn/{MVR5JLC6.js → BT4ZX2SG.js} +2 -2
- package/dist/cdn/{2FUDGVYP.js → BUHMRTUD.js} +3 -3
- package/dist/cdn/{A6I4PFMU.js → BZ7PF4RD.js} +2 -2
- package/dist/cdn/{IJ2G4YOX.js → CRRDYGNS.js} +2 -2
- package/dist/cdn/{ZUBNBNKD.js → DEK7IDG5.js} +2 -2
- package/dist/cdn/{3WNLVJHE.js → EVDZKJZF.js} +2 -2
- package/dist/cdn/{6762YOZL.js → FD5CWRJI.js} +1 -1
- package/dist/cdn/{IFU7L5YA.js → HXQJ45ZI.js} +2 -2
- package/dist/cdn/{DA2MGOPY.js → KAM2XIYK.js} +2 -2
- package/dist/cdn/{A2Y6UL5A.js → KAWNVXLJ.js} +2 -2
- package/dist/cdn/{UK22SX7M.js → L7BR4ZAV.js} +2 -2
- package/dist/cdn/{CGEASYVQ.js → LIWZ75Z7.js} +2 -2
- package/dist/cdn/{IKMFNK6J.js → MLJNF3UH.js} +1 -1
- package/dist/cdn/{G4HQYD75.js → N7FIJZ6P.js} +1 -1
- package/dist/cdn/{5YL5E5KF.js → PH2FWBAZ.js} +4 -4
- package/dist/cdn/{GJYTYZLT.js → RKBA6CHG.js} +2 -2
- package/dist/cdn/{IPSQP7FX.js → ROOKN4TA.js} +2 -2
- package/dist/cdn/{267VXT7C.js → SI5WP4CZ.js} +2 -2
- package/dist/cdn/{ZZCOJ5X5.js → TGZSBCP6.js} +2 -2
- package/dist/cdn/{BCYG5NPA.js → THSY5WC7.js} +2 -2
- package/dist/cdn/{4D4OM3XG.js → TXX6LDEZ.js} +2 -2
- package/dist/cdn/{RFKVHUDC.js → UJDFGLV3.js} +1 -1
- package/dist/cdn/{5L2I6U32.js → UTD5AEKP.js} +2 -2
- package/dist/cdn/{7YDVVJVD.js → VUKQWE3K.js} +2 -2
- package/dist/cdn/{SKE3PFKL.js → WLMF7G6D.js} +2 -2
- package/dist/cdn/{ZDT6IM7U.js → XFLZQYYX.js} +2 -2
- package/dist/cdn/assets/arcade-editor/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +45096 -44897
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.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/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +4 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +108 -56
- package/dist/components/arcgis-arcade-editor/index.d.ts +1 -0
- package/dist/components/arcgis-arcade-editor/index.js +1 -0
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +2 -2
- 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 +13 -24
- package/dist/docs/docs.json +23 -12
- package/dist/docs/vscode.html-custom-data.json +0 -5
- package/dist/docs/web-types.json +8 -10
- package/dist/index.js +1 -1
- package/dist/loader.js +6 -6
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/arcade-assistant/types.d.ts +28 -0
- package/dist/utils/arcade-assistant/utils.d.ts +9 -0
- package/package.json +5 -5
- package/dist/cdn/AWUIHID7.js +0 -4
- package/dist/cdn/LJKRENXI.js +0 -4
|
@@ -8,7 +8,7 @@ import { createRef as h, ref as g } from "lit-html/directives/ref.js";
|
|
|
8
8
|
import { s as f } from "../../chunks/editor.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
11
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.88 */
|
|
12
12
|
const _ = r`@layer{arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border)!important;box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}}`;
|
|
13
13
|
class u extends n {
|
|
14
14
|
constructor() {
|
|
@@ -6,7 +6,7 @@ import { a as m } from "../../chunks/sql-expr-defaults.js";
|
|
|
6
6
|
import { u as d } from "../../chunks/useT9n.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.88 */
|
|
10
10
|
const h = r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
11
11
|
class f extends n {
|
|
12
12
|
constructor() {
|
package/dist/docs/api.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-08-
|
|
2
|
+
"timestamp": "2025-08-09T16:00:54",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@arcgis/lumina-compiler",
|
|
5
|
-
"version": "4.34.0-next.
|
|
5
|
+
"version": "4.34.0-next.88",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
8
|
"schemaVersion": "1.0.0",
|
|
@@ -35,6 +35,14 @@
|
|
|
35
35
|
"pascalCaseName": "ArcgisArcadeEditor",
|
|
36
36
|
"importPath": "components/arcgis-arcade-editor",
|
|
37
37
|
"members": [
|
|
38
|
+
{
|
|
39
|
+
"kind": "field",
|
|
40
|
+
"name": "arcadeAssistant",
|
|
41
|
+
"description": "enables and configures the arcade assistant",
|
|
42
|
+
"type": {
|
|
43
|
+
"text": "{\n portalUrl: string;\n appVersion: string;\n}"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
38
46
|
{
|
|
39
47
|
"kind": "method",
|
|
40
48
|
"name": "componentOnReady",
|
|
@@ -307,7 +315,7 @@
|
|
|
307
315
|
{
|
|
308
316
|
"kind": "field",
|
|
309
317
|
"name": "profile",
|
|
310
|
-
"description": "The profile contains metadata used by the editor for editing context and help.\nExample:\n```\n {\n bundles: [\"core\", \"dataAccess\", \"geometry\", \"portal\"],\n variables: [\n {\n name: \"$feature\",\n description: \"The feature passed to the script during execution.\",\n definition: aFeatureLayerInstance\n }\n ]\n }\n```",
|
|
318
|
+
"description": "The profile contains metadata used by the editor for editing context and help.\nExample:\n```\n {\n bundles: [\"core\", \"dataAccess\", \"geometry\", \"portal-access\"],\n variables: [\n {\n name: \"$feature\",\n description: \"The feature passed to the script during execution.\",\n definition: aFeatureLayerInstance\n }\n ]\n }\n```",
|
|
311
319
|
"type": {
|
|
312
320
|
"text": "IEditorProfileDefinition | IPredefinedProfile",
|
|
313
321
|
"references": [
|
|
@@ -820,14 +828,8 @@
|
|
|
820
828
|
"name": "modelId",
|
|
821
829
|
"description": "A unique identifier for the model.\nThe unique identifier is sometimes used by language defaults to store model metadata.\nFor example, with arcade, the model id is used to store the arcade profile and other metadata.\nThe unique identifier is especially useful when there are multiple editors on the same page.",
|
|
822
830
|
"type": {
|
|
823
|
-
"text": "string"
|
|
824
|
-
|
|
825
|
-
{
|
|
826
|
-
"type": "string"
|
|
827
|
-
}
|
|
828
|
-
]
|
|
829
|
-
},
|
|
830
|
-
"attribute": "model-id"
|
|
831
|
+
"text": "`${string}-${string}-${string}-${string}-${string}`"
|
|
832
|
+
}
|
|
831
833
|
},
|
|
832
834
|
{
|
|
833
835
|
"kind": "method",
|
|
@@ -925,19 +927,6 @@
|
|
|
925
927
|
},
|
|
926
928
|
"fieldName": "language"
|
|
927
929
|
},
|
|
928
|
-
{
|
|
929
|
-
"name": "model-id",
|
|
930
|
-
"description": "A unique identifier for the model.\nThe unique identifier is sometimes used by language defaults to store model metadata.\nFor example, with arcade, the model id is used to store the arcade profile and other metadata.\nThe unique identifier is especially useful when there are multiple editors on the same page.",
|
|
931
|
-
"type": {
|
|
932
|
-
"text": "string",
|
|
933
|
-
"values": [
|
|
934
|
-
{
|
|
935
|
-
"type": "string"
|
|
936
|
-
}
|
|
937
|
-
]
|
|
938
|
-
},
|
|
939
|
-
"fieldName": "modelId"
|
|
940
|
-
},
|
|
941
930
|
{
|
|
942
931
|
"name": "value",
|
|
943
932
|
"description": "The initial value for the editor.\nThe value is the script, code, css, json, etc.",
|
package/dist/docs/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-08-
|
|
2
|
+
"timestamp": "2025-08-09T16:00:54",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@arcgis/lumina-compiler",
|
|
5
|
-
"version": "4.34.0-next.
|
|
5
|
+
"version": "4.34.0-next.88",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -24,6 +24,22 @@
|
|
|
24
24
|
"dependencies": [],
|
|
25
25
|
"dependencyGraph": {},
|
|
26
26
|
"props": [
|
|
27
|
+
{
|
|
28
|
+
"name": "arcadeAssistant",
|
|
29
|
+
"type": "{\n portalUrl: string;\n appVersion: string;\n}",
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "{\n portalUrl: string;\n appVersion: string;\n}",
|
|
32
|
+
"resolved": "{\n portalUrl: string;\n appVersion: string;\n}",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"mutable": true,
|
|
36
|
+
"reflectToAttr": false,
|
|
37
|
+
"docs": "enables and configures the arcade assistant",
|
|
38
|
+
"docsTags": [],
|
|
39
|
+
"values": [],
|
|
40
|
+
"optional": true,
|
|
41
|
+
"required": false
|
|
42
|
+
},
|
|
27
43
|
{
|
|
28
44
|
"name": "customPanels",
|
|
29
45
|
"type": "(Array<{\n id: string;\n name: string;\n location: \"sidebar\";\n renderer: ({ closePanel, insertText, closed, editorRef, }: {\n closePanel: (e: Event) => void;\n insertText: (text: string) => void;\n closed: boolean;\n editorRef: ArcgisArcadeEditor<object>;\n }) => JsxNode;\n} & {\n icon: string;\n description?: string | undefined;\n useFlows?: boolean | undefined;\n enabled?: boolean | undefined;\n location: \"sidebar\";\n}>)",
|
|
@@ -165,7 +181,7 @@
|
|
|
165
181
|
},
|
|
166
182
|
"mutable": true,
|
|
167
183
|
"reflectToAttr": false,
|
|
168
|
-
"docs": "The profile contains metadata used by the editor for editing context and help.\nExample:\n```\n {\n bundles: [\"core\", \"dataAccess\", \"geometry\", \"portal\"],\n variables: [\n {\n name: \"$feature\",\n description: \"The feature passed to the script during execution.\",\n definition: aFeatureLayerInstance\n }\n ]\n }\n```",
|
|
184
|
+
"docs": "The profile contains metadata used by the editor for editing context and help.\nExample:\n```\n {\n bundles: [\"core\", \"dataAccess\", \"geometry\", \"portal-access\"],\n variables: [\n {\n name: \"$feature\",\n description: \"The feature passed to the script during execution.\",\n definition: aFeatureLayerInstance\n }\n ]\n }\n```",
|
|
169
185
|
"docsTags": [],
|
|
170
186
|
"values": [
|
|
171
187
|
{
|
|
@@ -644,22 +660,17 @@
|
|
|
644
660
|
},
|
|
645
661
|
{
|
|
646
662
|
"name": "modelId",
|
|
647
|
-
"type": "string",
|
|
663
|
+
"type": "`${string}-${string}-${string}-${string}-${string}`",
|
|
648
664
|
"complexType": {
|
|
649
|
-
"original": "string",
|
|
650
|
-
"resolved": "string",
|
|
665
|
+
"original": "`${string}-${string}-${string}-${string}-${string}`",
|
|
666
|
+
"resolved": "`${string}-${string}-${string}-${string}-${string}`",
|
|
651
667
|
"references": {}
|
|
652
668
|
},
|
|
653
669
|
"mutable": true,
|
|
654
|
-
"attr": "model-id",
|
|
655
670
|
"reflectToAttr": false,
|
|
656
671
|
"docs": "A unique identifier for the model.\nThe unique identifier is sometimes used by language defaults to store model metadata.\nFor example, with arcade, the model id is used to store the arcade profile and other metadata.\nThe unique identifier is especially useful when there are multiple editors on the same page.",
|
|
657
672
|
"docsTags": [],
|
|
658
|
-
"values": [
|
|
659
|
-
{
|
|
660
|
-
"type": "string"
|
|
661
|
-
}
|
|
662
|
-
],
|
|
673
|
+
"values": [],
|
|
663
674
|
"optional": true,
|
|
664
675
|
"required": false
|
|
665
676
|
},
|
|
@@ -47,11 +47,6 @@
|
|
|
47
47
|
"description": "The language for the editor.\nCurrently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.",
|
|
48
48
|
"values": []
|
|
49
49
|
},
|
|
50
|
-
{
|
|
51
|
-
"name": "model-id",
|
|
52
|
-
"description": "A unique identifier for the model.\nThe unique identifier is sometimes used by language defaults to store model metadata.\nFor example, with arcade, the model id is used to store the arcade profile and other metadata.\nThe unique identifier is especially useful when there are multiple editors on the same page.",
|
|
53
|
-
"values": []
|
|
54
|
-
},
|
|
55
50
|
{
|
|
56
51
|
"name": "value",
|
|
57
52
|
"description": "The initial value for the editor.\nThe value is the script, code, css, json, etc.",
|
package/dist/docs/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@arcgis/coding-components",
|
|
4
|
-
"version": "4.34.0-next.
|
|
4
|
+
"version": "4.34.0-next.88",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -58,6 +58,11 @@
|
|
|
58
58
|
],
|
|
59
59
|
"js": {
|
|
60
60
|
"properties": [
|
|
61
|
+
{
|
|
62
|
+
"name": "arcadeAssistant",
|
|
63
|
+
"description": "enables and configures the arcade assistant",
|
|
64
|
+
"type": "{\n portalUrl: string;\n appVersion: string;\n}"
|
|
65
|
+
},
|
|
61
66
|
{
|
|
62
67
|
"name": "customPanels",
|
|
63
68
|
"description": "Custom panels to be displayed in the side panel.\nWill be placed below the default panels but above the help panel.",
|
|
@@ -85,7 +90,7 @@
|
|
|
85
90
|
},
|
|
86
91
|
{
|
|
87
92
|
"name": "profile",
|
|
88
|
-
"description": "The profile contains metadata used by the editor for editing context and help.\nExample:\n```\n {\n bundles: [\"core\", \"dataAccess\", \"geometry\", \"portal\"],\n variables: [\n {\n name: \"$feature\",\n description: \"The feature passed to the script during execution.\",\n definition: aFeatureLayerInstance\n }\n ]\n }\n```",
|
|
93
|
+
"description": "The profile contains metadata used by the editor for editing context and help.\nExample:\n```\n {\n bundles: [\"core\", \"dataAccess\", \"geometry\", \"portal-access\"],\n variables: [\n {\n name: \"$feature\",\n description: \"The feature passed to the script during execution.\",\n definition: aFeatureLayerInstance\n }\n ]\n }\n```",
|
|
89
94
|
"type": "IEditorProfileDefinition | IPredefinedProfile"
|
|
90
95
|
},
|
|
91
96
|
{
|
|
@@ -140,13 +145,6 @@
|
|
|
140
145
|
"type": "string"
|
|
141
146
|
}
|
|
142
147
|
},
|
|
143
|
-
{
|
|
144
|
-
"name": "model-id",
|
|
145
|
-
"description": "A unique identifier for the model.\nThe unique identifier is sometimes used by language defaults to store model metadata.\nFor example, with arcade, the model id is used to store the arcade profile and other metadata.\nThe unique identifier is especially useful when there are multiple editors on the same page.",
|
|
146
|
-
"value": {
|
|
147
|
-
"type": "string"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
148
|
{
|
|
151
149
|
"name": "value",
|
|
152
150
|
"description": "The initial value for the editor.\nThe value is the script, code, css, json, etc.",
|
|
@@ -188,7 +186,7 @@
|
|
|
188
186
|
{
|
|
189
187
|
"name": "modelId",
|
|
190
188
|
"description": "A unique identifier for the model.\nThe unique identifier is sometimes used by language defaults to store model metadata.\nFor example, with arcade, the model id is used to store the arcade profile and other metadata.\nThe unique identifier is especially useful when there are multiple editors on the same page.",
|
|
191
|
-
"type": "string"
|
|
189
|
+
"type": "`${string}-${string}-${string}-${string}-${string}`"
|
|
192
190
|
},
|
|
193
191
|
{
|
|
194
192
|
"name": "value",
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as c } from "./chunks/arcade-defaults.js";
|
|
|
3
3
|
import { s as p } from "./chunks/sql-expr-defaults.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
6
|
-
v4.34.0-next.
|
|
6
|
+
v4.34.0-next.88 */
|
|
7
7
|
const a = s, r = t;
|
|
8
8
|
export {
|
|
9
9
|
c as arcade,
|
package/dist/loader.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as e } from "./chunks/runtime.js";
|
|
2
|
-
import { makeDefineCustomElements as
|
|
2
|
+
import { makeDefineCustomElements as s } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
5
|
-
v4.34.0-next.
|
|
6
|
-
const
|
|
5
|
+
v4.34.0-next.88 */
|
|
6
|
+
const a = s(e, {
|
|
7
7
|
"arcgis-arcade-coding-assistant": [() => import("./components/arcgis-arcade-coding-assistant/customElement.js"), "appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],
|
|
8
|
-
"arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
|
|
8
|
+
"arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
|
|
9
9
|
"arcgis-arcade-results": [() => import("./components/arcgis-arcade-results/customElement.js"), "consoleLogs:,loading,openedResultPanel,result:"],
|
|
10
10
|
"arcgis-arcade-suggestions": [() => import("./components/arcgis-arcade-suggestions/customElement.js"), "closed,suggestions:"],
|
|
11
|
-
"arcgis-code-editor": [() => import("./components/arcgis-code-editor/customElement.js"), "editorInstance:,editorOptions:,language,modelId
|
|
11
|
+
"arcgis-code-editor": [() => import("./components/arcgis-code-editor/customElement.js"), "editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],
|
|
12
12
|
"arcgis-editor-variables": [() => import("./components/arcgis-editor-variables/customElement.js"), "closed,loading,modelId,variable:"],
|
|
13
13
|
"arcgis-language-api-panel": [() => import("./components/arcgis-language-api-panel/customElement.js"), "apiLibrary:,closed,hideDocumentationActions,languageId,loading"],
|
|
14
14
|
"arcgis-sql-expression-editor": [() => import("./components/arcgis-sql-expression-editor/customElement.js"), "hideSideBar,profile:,script"],
|
|
15
15
|
"arcgis-sql-expression-fields": [() => import("./components/arcgis-sql-expression-fields/customElement.js"), "loading,modelId"]
|
|
16
16
|
});
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
a as defineCustomElements
|
|
19
19
|
};
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { ArcgisCodeEditor } from "../components/arcgis-code-editor";
|
|
|
4
4
|
import type { ArcgisSqlExpressionEditor } from "../components/arcgis-sql-expression-editor";
|
|
5
5
|
import type { h, EventHandler } from "@arcgis/lumina";
|
|
6
6
|
|
|
7
|
-
interface LuminaArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, 'customPanels' | 'editorOptions' | 'hideDocumentationActions' | 'hideSideBar' | 'openedSidePanel' | 'profile' | 'script' | 'sideActionBarExpanded' | 'snippets' | 'suggestions' | 'testData'>>, h.JSX.HTMLAttributes<HTMLArcgisArcadeEditorElement> {
|
|
7
|
+
interface LuminaArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, 'arcadeAssistant' | 'customPanels' | 'editorOptions' | 'hideDocumentationActions' | 'hideSideBar' | 'openedSidePanel' | 'profile' | 'script' | 'sideActionBarExpanded' | 'snippets' | 'suggestions' | 'testData'>>, h.JSX.HTMLAttributes<HTMLArcgisArcadeEditorElement> {
|
|
8
8
|
onarcgisDiagnosticsChange?: EventHandler<HTMLArcgisArcadeEditorElement["arcgisDiagnosticsChange"]>;
|
|
9
9
|
onarcgisScriptChange?: EventHandler<HTMLArcgisArcadeEditorElement["arcgisScriptChange"]>;
|
|
10
10
|
}
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ArcgisSqlExpressionEditor } from "../components/arcgis-sql-express
|
|
|
5
5
|
import { JSX as PreactJsx } from "preact";
|
|
6
6
|
import type { EventHandler } from "@arcgis/lumina";
|
|
7
7
|
|
|
8
|
-
interface PreactArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, 'customPanels' | 'editorOptions' | 'hideDocumentationActions' | 'hideSideBar' | 'openedSidePanel' | 'profile' | 'script' | 'sideActionBarExpanded' | 'snippets' | 'suggestions' | 'testData'>>, PreactJsx.HTMLAttributes<HTMLArcgisArcadeEditorElement> {
|
|
8
|
+
interface PreactArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, 'arcadeAssistant' | 'customPanels' | 'editorOptions' | 'hideDocumentationActions' | 'hideSideBar' | 'openedSidePanel' | 'profile' | 'script' | 'sideActionBarExpanded' | 'snippets' | 'suggestions' | 'testData'>>, PreactJsx.HTMLAttributes<HTMLArcgisArcadeEditorElement> {
|
|
9
9
|
onarcgisDiagnosticsChange?: EventHandler<HTMLArcgisArcadeEditorElement["arcgisDiagnosticsChange"]>;
|
|
10
10
|
onarcgisScriptChange?: EventHandler<HTMLArcgisArcadeEditorElement["arcgisScriptChange"]>;
|
|
11
11
|
}
|
package/dist/types/react.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ArcgisSqlExpressionEditor } from "../components/arcgis-sql-express
|
|
|
5
5
|
import type { HTMLProps } from 'react';
|
|
6
6
|
import type { EventHandler } from "@arcgis/lumina";
|
|
7
7
|
|
|
8
|
-
interface ReactArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, 'customPanels' | 'editorOptions' | 'hideDocumentationActions' | 'hideSideBar' | 'openedSidePanel' | 'profile' | 'script' | 'sideActionBarExpanded' | 'snippets' | 'suggestions' | 'testData'>>, HTMLProps<HTMLArcgisArcadeEditorElement> {
|
|
8
|
+
interface ReactArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, 'arcadeAssistant' | 'customPanels' | 'editorOptions' | 'hideDocumentationActions' | 'hideSideBar' | 'openedSidePanel' | 'profile' | 'script' | 'sideActionBarExpanded' | 'snippets' | 'suggestions' | 'testData'>>, HTMLProps<HTMLArcgisArcadeEditorElement> {
|
|
9
9
|
onarcgisDiagnosticsChange?: EventHandler<HTMLArcgisArcadeEditorElement["arcgisDiagnosticsChange"]>;
|
|
10
10
|
onarcgisScriptChange?: EventHandler<HTMLArcgisArcadeEditorElement["arcgisScriptChange"]>;
|
|
11
11
|
}
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ArcgisSqlExpressionEditor } from "../components/arcgis-sql-express
|
|
|
5
5
|
import { JSXBase as StencilJsx } from "@stencil/core/internal";
|
|
6
6
|
import type { EventHandler } from "@arcgis/lumina";
|
|
7
7
|
|
|
8
|
-
interface StencilArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, 'customPanels' | 'editorOptions' | 'hideDocumentationActions' | 'hideSideBar' | 'openedSidePanel' | 'profile' | 'script' | 'sideActionBarExpanded' | 'snippets' | 'suggestions' | 'testData'>>, StencilJsx.HTMLAttributes<HTMLArcgisArcadeEditorElement> {
|
|
8
|
+
interface StencilArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, 'arcadeAssistant' | 'customPanels' | 'editorOptions' | 'hideDocumentationActions' | 'hideSideBar' | 'openedSidePanel' | 'profile' | 'script' | 'sideActionBarExpanded' | 'snippets' | 'suggestions' | 'testData'>>, StencilJsx.HTMLAttributes<HTMLArcgisArcadeEditorElement> {
|
|
9
9
|
onArcgisDiagnosticsChange?: EventHandler<HTMLArcgisArcadeEditorElement["arcgisDiagnosticsChange"]>;
|
|
10
10
|
onArcgisScriptChange?: EventHandler<HTMLArcgisArcadeEditorElement["arcgisScriptChange"]>;
|
|
11
11
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Public configuration options for the arcade assistant */
|
|
2
|
+
export type ArcadeAssistantConfig = {
|
|
3
|
+
portalUrl: string;
|
|
4
|
+
appVersion: string;
|
|
5
|
+
};
|
|
6
|
+
export type ArcadeAssistantRemoteState = {
|
|
7
|
+
shouldRender: true;
|
|
8
|
+
serviceUrl: string;
|
|
9
|
+
feedbackServiceUrl: string;
|
|
10
|
+
helpBase: string;
|
|
11
|
+
assistantsEnabled: boolean;
|
|
12
|
+
} | {
|
|
13
|
+
shouldRender: false;
|
|
14
|
+
};
|
|
15
|
+
export interface PortalSelfResponse {
|
|
16
|
+
helperServices?: {
|
|
17
|
+
aiAssistantServices?: {
|
|
18
|
+
url?: string;
|
|
19
|
+
};
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
helpBase?: string;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export interface PortalSettingsResponse {
|
|
26
|
+
aiAssistantsEnabled?: boolean;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ArcadeAssistantConfig, ArcadeAssistantRemoteState } from './types';
|
|
2
|
+
import { ArcgisArcadeEditor } from '../../components/arcgis-arcade-editor/customElement.js';
|
|
3
|
+
/**
|
|
4
|
+
* Checks provided Arcade Assistant configuration and returns the necessary properties.
|
|
5
|
+
* We do this outside of the arcade-coding-assistant component because we need to know if we should render the assistant in the action bar
|
|
6
|
+
*/
|
|
7
|
+
export declare function getArcadeAssistantRemoteState({ portalUrl, profile, }: ArcadeAssistantConfig & {
|
|
8
|
+
profile: ArcgisArcadeEditor["profile"];
|
|
9
|
+
}): Promise<ArcadeAssistantRemoteState>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.88",
|
|
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": "4.34.0-next.
|
|
46
|
-
"@arcgis/languages-api-utils": "4.34.0-next.
|
|
47
|
-
"@arcgis/lumina": "4.34.0-next.
|
|
48
|
-
"@arcgis/toolkit": "4.34.0-next.
|
|
45
|
+
"@arcgis/arcade-languageservice": "4.34.0-next.88",
|
|
46
|
+
"@arcgis/languages-api-utils": "4.34.0-next.88",
|
|
47
|
+
"@arcgis/lumina": "4.34.0-next.88",
|
|
48
|
+
"@arcgis/toolkit": "4.34.0-next.88",
|
|
49
49
|
"lit": "^3.3.0",
|
|
50
50
|
"monaco-editor": "^0.52.0",
|
|
51
51
|
"tslib": "^2.8.1",
|
package/dist/cdn/AWUIHID7.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.86 */
|
|
4
|
-
import j from"./IKMFNK6J.js";import{a as S}from"./IJ2G4YOX.js";import{a as A}from"./DA2MGOPY.js";import i from"./TLZNAJL6.js";import e from"./RFKVHUDC.js";import{a as P}from"./5YLMMOBI.js";import"./BZZ3OLKH.js";import d from"./CGEASYVQ.js";import"./QXCWBWGD.js";import"./5YL5E5KF.js";import"./ZZCOJ5X5.js";import"./G4HQYD75.js";import{A as a,D as b,E as f,g as h,h as t,j as r,l as c,n as u,x as _,y as m,z as x}from"./IFU7L5YA.js";import{a as p,g}from"./LJKRENXI.js";import{Hl as $,kk as C}from"./5L2I6U32.js";import"./6762YOZL.js";export default $arcgis.t(([,{a:v,h:l},s,E])=>{C();var R=h`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border)!important;box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.main-action-bar{border-bottom:var(--arcgis-coding-components-border)!important;flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border)!important;box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}.hidden{display:none}}}`,d=class extends x{constructor(){super(...arguments),this._codeEditorElt=_(),this._componentReadyDefer=new p,this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=P(),this._modelId=g(),this._openArcadeHelp=()=>void window.open(v,"Arcade Help"),this._toggleSidePanel=e=>{if(!e.target)return;let i=e.target?.dataset.panelName??"none";this.openedSidePanel=i===this.openedSidePanel?"none":i,this.openedSidePanel==="none"&&this._codeEditorElt.value?.setFocus().catch(console.error)},this._consoleLogs=[],this._executingScript=!1,this._preparingArcade=!1,this._resultPanel="output",this._showExecutionPanel=!1,this.hideDocumentationActions=!1,this.hideSideBar=!1,this.openedSidePanel="none",this.script="",this.sideActionBarExpanded=!1,this.arcgisDiagnosticsChange=c({bubbles:!1}),this.arcgisScriptChange=c({bubbles:!1})}static{this.properties={_apiLibrary:16,_consoleLogs:16,_editorProfile:16,_executingScript:16,_executionResult:16,_preparingArcade:16,_resultPanel:16,_showExecutionPanel:16,editorInstance:32,editorOptions:0,hideDocumentationActions:5,hideSideBar:5,openedSidePanel:2,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0,customPanels:0}}static{this.shadowRootOptions=u}static{this.styles=[R,A]}get editorInstance(){return this._codeEditorElt.value?.editorInstance}async getEditorInstance(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.editorInstance}async getScript(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.value}async getTestResult(){if(!this.testData)return{type:"error",value:"Missing test data",error:null};let e=await this._editorProfilePromise;if(!e)return{type:"error",value:"Missing editor profile",error:null};await this._componentReadyDefer.promise;let i=this._codeEditorElt.value?.value;return await l(e.definition,i,this.testData)}async setFocus(){await this._componentReadyDefer.promise,await this._codeEditorElt.value?.setFocus()}async load(){let e=f("./assets");E(e),await this._updateEditorProfile()}willUpdate(e){(e.has("messages")||e.has("profile"))&&this._updateDataModelDeps(),e.has("testData")&&this._testDataChanged(),e.has("snippets")&&s.updateApiContextForModel(this._modelId,{snippets:this.snippets})}async loaded(){this._componentReadyDefer.resolve(),await this._updateApiLibrary();let e=await S();this._disposables.push(e.onDiagnosticsChange(i=>!this._preparingArcade&&this.arcgisDiagnosticsChange.emit(i.diagnostics))),this.testData&&this._addExecuteScriptAction(),await this._codeEditorElt.value?.setFocus()}disconnectedCallback(){for(super.disconnectedCallback();this._disposables.length;)this._disposables.pop()?.dispose()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}_testDataChanged(){!this.testData&&this._executeScriptAction&&(this._disposeSafely(this._executeScriptAction),this._executeScriptAction=void 0),this.testData&&!this._executeScriptAction&&this._addExecuteScriptAction(),this._showExecutionPanel&&this._executeScript().catch(console.error)}async _updateEditorProfile(){this._preparingArcade=!0;try{await s.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale,snippets:this.snippets}),this._editorProfile=s.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._editorProfilePromise=Promise.resolve(this._editorProfile),this._preparingArcade=!1}}async _updateApiLibrary(){this._apiLibrary=await s.getApiLibraryForModel(this._modelId)}async _executeScript(){let e=this.testData;if(!this._codeEditorElt.value||!e)return;let i=await this._editorProfilePromise;if(!i){this._executionResult={type:"error",value:"Missing editor profile",error:null};return}this._showExecutionPanel=!0,this._executingScript=!0,this._consoleLogs=[],setTimeout(()=>void(async()=>{let o=this._codeEditorElt.value?.value;this._executionResult=await l(i.definition,o,e,n=>setTimeout(()=>this._consoleLogs=[...this._consoleLogs,n],0)),this._executingScript=!1})(),0)}_toggleShowExecutionPanel(){this._showExecutionPanel=!this._showExecutionPanel}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}_onCodeEditorValueChange(e){e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)}_insertAsSnippet(e){this._codeEditorElt.value?.insertSnippet(e.detail).catch(console.error)}_insertAsText(e){this._insertText(e.detail)}_insertText(e){this._codeEditorElt.value?.insertText(e).catch(console.error)}_onResultPanelChange(e){this._resultPanel=e.detail}_onExecutionPanelClose(){this._showExecutionPanel=!1}_addExecuteScriptAction(){let e=this.editorInstance?.addAction({id:"run-script",label:"Run Arcade Expression",keybindings:[$.F5],contextMenuGroupId:"code",contextMenuOrder:1,run:()=>{this.testData&&this._executeScript().catch(console.error)}});e&&(this._executeScriptAction=e,this._disposables.push(e))}_disposeSafely(e){let i=this._disposables.indexOf(e);i!==-1&&this._disposables.splice(i,1),e.dispose()}renderMainActionBar(){return this.testData?t`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .text=${this.messages.run??""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${()=>void this._executeScript().catch(console.error)}></calcite-action>${this._executionResult?t`<calcite-action .text=${this.messages.lastresults??""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>`:null}</calcite-action-group></calcite-action-bar>`:null}renderMainPanel(){return t`<arcgis-code-editor class="flex-adjustable" .editorOptions=${this.editorOptions} .language=${s.languageId} .value=${this.script??""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${m(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:i,icon:o,active:n,panelName:w,iconFlipRtl:y=!1,onClick:D=this._toggleSidePanel}){return t`<calcite-action id=${e??r} .text=${i} .textEnabled=${this.sideActionBarExpanded} .icon=${o} .active=${n} @click=${D} data-panel-name=${w??r} .iconFlipRtl=${y}></calcite-action>${!this.sideActionBarExpanded&&t`<calcite-tooltip .referenceElement=${e}><span>${i}</span></calcite-tooltip>`||""}`}renderSideActionBar(){return this.hideSideBar?null:t`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${!!this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({id:"profile-variables-action",label:this.messages.profilevariables??"",icon:"profile-variables",active:this.openedSidePanel==="variables",panelName:"variables"})}${this.renderAction({id:"function-action",label:this.messages.constantsandfunctions??"",icon:"function",active:this.openedSidePanel==="api",panelName:"api"})}${this.suggestions?.length?this.renderAction({id:"suggestions-action",label:this.messages.suggestions??"",icon:"lightbulb",active:this.openedSidePanel==="suggestions",panelName:"suggestions"}):null}${this.customPanels?.map(e=>e.enabled?this.renderAction({id:e.id,label:e.name,icon:e.icon,active:this.openedSidePanel===e.id,panelName:e.id}):null)}${this.hideDocumentationActions?null:this.renderAction({id:"developer-website-action",label:this.messages.help??"",icon:"question",active:!1,panelName:"none",iconFlipRtl:this.messages._lang==="ar",onClick:this._openArcadeHelp})}</calcite-action-group></calcite-action-bar>`}renderSidePanel(){if(this.hideSideBar)return null;let{openedSidePanel:e}=this;return t`<arcgis-language-api-panel class=${a(e==="api"&&"side-panel flex-panel border-inline-start")} .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${this._toggleSidePanel} data-panel-name=none .closed=${e!=="api"}></arcgis-language-api-panel><arcgis-editor-variables class=${a(e==="variables"&&"side-panel flex-panel border-inline-start")} .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile} .closed=${e!=="variables"}></arcgis-editor-variables>${this.suggestions?.length&&t`<arcgis-arcade-suggestions class=${a(e==="suggestions"&&"side-panel flex-panel border-inline-start")} .closed=${e!=="suggestions"} .suggestions=${this.suggestions} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>`||""}${this.customPanels?.map(i=>i?.useFlows?i.renderer?.({closePanel:this._toggleSidePanel,insertText:this._insertText.bind(this),closed:e!==i.id,editorRef:this.el}):t`<calcite-flow class=${a(e===i.id?"side-panel flex-panel border-inline-start":"hidden")}><calcite-flow-item .heading=${i.name} closable @calciteFlowItemClose=${this._toggleSidePanel} .description=${i.description}>${i.renderer?.({closePanel:this._toggleSidePanel,insertText:this._insertText.bind(this),closed:e!==i.id,editorRef:this.el})}</calcite-flow-item></calcite-flow>`)}`}renderResultsPanel(){return this._showExecutionPanel?t`<arcgis-arcade-results class="flex-adjustable" .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisOpenedResultPanelChange=${this._onResultPanelChange} @arcgisClose=${this._onExecutionPanelClose}></arcgis-arcade-results>`:null}render(){return t`${this.renderMainActionBar()}<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable">${this.renderMainPanel()}${this.renderResultsPanel()}</div>${this.renderSidePanel()}${this.renderSideActionBar()}</div>`}};b("arcgis-arcade-editor",d);return d},d,e,i,j)
|
package/dist/cdn/LJKRENXI.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.86 */
|
|
4
|
-
var l=class{constructor(){this.promise=new Promise((t,o)=>{this.resolve=t,this.reject=o})}},E=(e,t)=>{let o=t>m?$:t/w,s=0,r=setInterval(()=>{s+=o,s>=t&&(clearInterval(r),e())},o);return r},m=4e3,$=2e3,w=4;var b=e=>e.replace(A,(t,o)=>`${o===0?"":"-"}${t.toLowerCase()}`),A=/[A-Z]+(?![a-z])|[A-Z]/gu;var p='"',u="'",g=(e,t)=>new Array(t+1).join(e),x=e=>{let t=p,o=u;e.includes(t)&&!e.includes(o)&&(o=p,t=u);let r=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${o})+)`,"gu");e=e.replace(r,(h,c,a,i)=>c+a+g(o,i.length/2));let d=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(d,(h,c,a,i)=>c+a+g(`\\${t}`,i.length)),t+e+t},j=e=>{let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")},f=e=>`\u200E${e??""}\u200E`,n=e=>{let t="";for(let o=0;o<e;o++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t},v=()=>[n(2),n(1),n(1),n(1),n(3)].join("-");var I=(e,t={})=>(e??"").replace(/\{(?<valueName>.*?)\}/gu,(o,s)=>t[s]??o);export{l as a,E as b,b as c,x as d,j as e,f,v as g,I as h};
|