@arcgis/coding-components 4.33.0-next.107 → 4.33.0-next.109
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/{XDIOX4GW.js → 3Y2627CP.js} +2 -2
- package/dist/arcgis-coding-components/4A3KCIXJ.js +4 -0
- package/dist/arcgis-coding-components/{3TUUDQHY.js → 4SUM77G6.js} +1 -1
- package/dist/arcgis-coding-components/{C4YL3G53.js → 5GXT7DJI.js} +2 -2
- package/dist/arcgis-coding-components/{T5ULTETY.js → 5OWQWSH2.js} +2 -2
- package/dist/arcgis-coding-components/{GSWETX5W.js → 5RHYT4EO.js} +2 -2
- package/dist/arcgis-coding-components/7FZREYXQ.js +4 -0
- package/dist/arcgis-coding-components/{VKHQY3TH.js → A7YPVNT3.js} +2 -2
- package/dist/arcgis-coding-components/{GY7EJG2G.js → ASUGUWIA.js} +2 -2
- package/dist/arcgis-coding-components/{JJ6GJDDT.js → CAF3USPW.js} +2 -2
- package/dist/arcgis-coding-components/{EISSQJVY.js → CBXJNCJJ.js} +2 -2
- package/dist/arcgis-coding-components/{JQ7VSS7H.js → CHNBIC2D.js} +2 -2
- package/dist/arcgis-coding-components/{PETPJYNV.js → CJPSVHWK.js} +1 -1
- package/dist/arcgis-coding-components/{2BE6FSTL.js → CJUW3OWD.js} +1 -1
- package/dist/arcgis-coding-components/{ZYEZKXQB.js → CQW3LRXV.js} +2 -2
- package/dist/arcgis-coding-components/{T26N7WLN.js → DD7AXDL6.js} +2 -2
- package/dist/arcgis-coding-components/DI6P2I7I.js +4 -0
- package/dist/arcgis-coding-components/{4CRKFUC4.js → DZ4GBFBV.js} +3 -3
- package/dist/arcgis-coding-components/F42UBPX3.js +4 -0
- package/dist/arcgis-coding-components/{CD7HMMHG.js → FIAZXQHO.js} +2 -2
- package/dist/arcgis-coding-components/{O2TMVMMV.js → HN74GEMZ.js} +2 -2
- package/dist/arcgis-coding-components/{7B2PAKIN.js → IGSRT6OY.js} +2 -2
- package/dist/arcgis-coding-components/{22CFXJJM.js.LEGAL.txt → JGYVWIOL.js} +2 -1
- package/dist/arcgis-coding-components/{UNE6OS2T.js → JQZ3ODVW.js} +3 -3
- package/dist/arcgis-coding-components/{N5IQK7RB.js → LCQ5LRWZ.js} +2 -2
- package/dist/arcgis-coding-components/{R65CIUFJ.js → LDIBFNEC.js} +1 -1
- package/dist/arcgis-coding-components/{CO3ZPGMS.js → LIXQY7SR.js} +2 -2
- package/dist/arcgis-coding-components/{KBPOBK72.js → MAMMTDKU.js} +2 -2
- package/dist/arcgis-coding-components/{APQOFW32.js → O7XUDENI.js} +2 -2
- package/dist/arcgis-coding-components/{H2ZLUPXB.js → QCHXYFBQ.js} +2 -2
- package/dist/arcgis-coding-components/{7CPSRGTI.js → QJDMPVG5.js} +2 -2
- package/dist/arcgis-coding-components/{MQTJI42N.js → RFKIPQPL.js} +2 -2
- package/dist/arcgis-coding-components/SZRBHPBE.js +4 -0
- package/dist/arcgis-coding-components/TQ5ZBIWK.js +4 -0
- package/dist/arcgis-coding-components/{QX5I6NKV.js → TRO4CFSW.js} +2 -2
- package/dist/arcgis-coding-components/{SUVWM53R.js → U4U7ILCC.js} +2 -2
- package/dist/arcgis-coding-components/{VEEPHGJL.js → WZOYYLIE.js} +2 -2
- package/dist/arcgis-coding-components/{22CFXJJM.js → XGDCD4ZA.js} +2 -2
- package/dist/arcgis-coding-components/{HBRSHYP6.js → YGTVYPV4.js} +3 -3
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +39 -39
- 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/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.js +39 -45
- package/dist/components/arcgis-arcade-results/customElement.js +109 -120
- package/dist/components/arcgis-arcade-results/functional.d.ts +73 -0
- package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +2 -0
- package/dist/components/arcgis-arcade-suggestions/customElement.js +4 -4
- package/dist/components/arcgis-code-editor/customElement.js +2 -2
- package/dist/components/arcgis-editor-variables/customElement.d.ts +2 -0
- package/dist/components/arcgis-editor-variables/customElement.js +7 -7
- package/dist/components/arcgis-language-api-panel/customElement.d.ts +2 -0
- package/dist/components/arcgis-language-api-panel/customElement.js +12 -10
- package/dist/components/arcgis-sql-expression-editor/customElement.js +12 -12
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +3 -3
- package/dist/docs/docs.json +5 -5
- package/dist/docs/web-types.json +2 -2
- package/dist/index.js +1 -1
- package/dist/loader.js +4 -4
- package/dist/utils/arcade-executor.d.ts +4 -0
- package/dist/utils/custom-panel.d.ts +2 -1
- package/package.json +6 -6
- package/dist/arcgis-coding-components/2BE6FSTL.js.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/3TUUDQHY.js.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/4CRKFUC4.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/7B2PAKIN.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/7CPSRGTI.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/APQOFW32.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/ARPNRPTX.js +0 -4
- package/dist/arcgis-coding-components/ARPNRPTX.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/C4YL3G53.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/CD7HMMHG.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/CGXSA5HM.js +0 -4
- package/dist/arcgis-coding-components/CGXSA5HM.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/CO3ZPGMS.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/EISSQJVY.js.LEGAL.txt +0 -4
- package/dist/arcgis-coding-components/GSWETX5W.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/GY7EJG2G.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/H2ZLUPXB.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/HBRSHYP6.js.LEGAL.txt +0 -69
- package/dist/arcgis-coding-components/JJ6GJDDT.js.LEGAL.txt +0 -145
- package/dist/arcgis-coding-components/JQ7VSS7H.js.LEGAL.txt +0 -15
- package/dist/arcgis-coding-components/KBPOBK72.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/MQTJI42N.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/N5IQK7RB.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/NSLPKDYP.css.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/O2TMVMMV.js.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/OPTRUP6P.js +0 -4
- package/dist/arcgis-coding-components/OPTRUP6P.js.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/PETPJYNV.js.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/QJN5BRFC.css.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/QX5I6NKV.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/R65CIUFJ.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/R6Z5J4HN.js +0 -4
- package/dist/arcgis-coding-components/R6Z5J4HN.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/SUVWM53R.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/T26N7WLN.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/T5ULTETY.js.LEGAL.txt +0 -12
- package/dist/arcgis-coding-components/UNE6OS2T.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/V7PQEVV2.js +0 -4
- package/dist/arcgis-coding-components/V7PQEVV2.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/VEEPHGJL.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/VKHQY3TH.js.LEGAL.txt +0 -9
- package/dist/arcgis-coding-components/VTPAFXWN.js +0 -4
- package/dist/arcgis-coding-components/VTPAFXWN.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/XDIOX4GW.js.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/YVACEAOH.js +0 -4
- package/dist/arcgis-coding-components/YVACEAOH.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/ZYEZKXQB.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.css.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +0 -3
- /package/dist/arcgis-coding-components/{arcgis-coding-components.esm.css → stdin.css} +0 -0
|
@@ -4,7 +4,7 @@ import { g as m } from "./runtime.js";
|
|
|
4
4
|
import { CompletionItemKind as w, InsertTextFormat as f, InsertTextMode as d } from "vscode-languageserver-types";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.109 */
|
|
8
8
|
async function S(e) {
|
|
9
9
|
const { apiVersion: i, bundles: t, hiddenApiItems: n } = e.toEditorProfileDefinition(), r = await h(e.dictionaryVariables);
|
|
10
10
|
return { apiVersion: i, bundles: t, variables: r, hiddenApiItems: n?.map((s) => s.toLowerCase()) };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { importArcade as C } from "@arcgis/core-adapter";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
|
-
v4.33.0-next.
|
|
4
|
+
v4.33.0-next.109 */
|
|
5
5
|
const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
|
|
6
6
|
function u(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -8,7 +8,7 @@ import { InsertTextFormat as y, CompletionItemKind as o, DiagnosticSeverity as m
|
|
|
8
8
|
import { debounce as F, Deferred as _ } from "@arcgis/components-utils";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.109 */
|
|
12
12
|
const S = [
|
|
13
13
|
"<=",
|
|
14
14
|
">=",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
3
|
+
v4.33.0-next.109 */
|
|
4
4
|
async function a() {
|
|
5
5
|
return (await e()).getArcadeDiagnosticService();
|
|
6
6
|
}
|
package/dist/chunks/fields.js
CHANGED
|
@@ -8,7 +8,7 @@ import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
|
|
|
8
8
|
import { Emitter as x, Uri as $ } from "monaco-editor";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.109 */
|
|
12
12
|
function B(t) {
|
|
13
13
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
|
|
14
14
|
}
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as G } from "monaco-editor/esm/vs/editor/standa
|
|
|
4
4
|
import { generateTokensCSSForColorMap as te } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.109 */
|
|
8
8
|
async function ne(l, t) {
|
|
9
9
|
return await (await ee()).colorize(l, t, { tabSize: 2 });
|
|
10
10
|
}
|
|
@@ -5,7 +5,7 @@ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
|
5
5
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
8
|
-
v4.33.0-next.
|
|
8
|
+
v4.33.0-next.109 */
|
|
9
9
|
function g(r, t, n, m) {
|
|
10
10
|
if (!t)
|
|
11
11
|
return [];
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeRuntime as t } from "@arcgis/lumina";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
|
-
v4.33.0-next.
|
|
4
|
+
v4.33.0-next.109 */
|
|
5
5
|
const s = t({ defaultAssetPath: "https://jsdev.arcgis.com/coding-components/next/", hydratedAttribute: "hydrated" }), { customElement: a, getAssetPath: o, setAssetPath: m } = s;
|
|
6
6
|
export {
|
|
7
7
|
a as c,
|
|
@@ -2,7 +2,7 @@ import { importRequest as n } from "@arcgis/core-adapter";
|
|
|
2
2
|
import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.109 */
|
|
6
6
|
function s() {
|
|
7
7
|
return !!window.MonacoEnvironment?.getWorkerUrl;
|
|
8
8
|
}
|
|
@@ -8,7 +8,7 @@ import { g as c } from "./arcade-service-accessors.js";
|
|
|
8
8
|
import { a as n } from "./sql-expr-defaults.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.109 */
|
|
12
12
|
const s = /* @__PURE__ */ new Set();
|
|
13
13
|
function g(e, o) {
|
|
14
14
|
return () => {
|
|
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/components-utils";
|
|
|
4
4
|
import { g as b } from "./runtime.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.109 */
|
|
8
8
|
const x = (r) => {
|
|
9
9
|
const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
|
|
10
10
|
return {
|
|
@@ -7,7 +7,7 @@ import { Deferred as _, debounce as N } from "@arcgis/components-utils";
|
|
|
7
7
|
import { a as d } from "./sql-expr-defaults.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.109 */
|
|
11
11
|
let h = new _();
|
|
12
12
|
class k {
|
|
13
13
|
constructor(e) {
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
|
|
|
2
2
|
import { g as t } from "./runtime.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.109 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -5,7 +5,7 @@ import { css as e } from "@lit/reactive-element/css-tag.js";
|
|
|
5
5
|
import { u as o } from "../../chunks/useT9n.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
8
|
-
v4.33.0-next.
|
|
8
|
+
v4.33.0-next.109 */
|
|
9
9
|
const a = e`:host{background-color:var(--calcite-color-foreground-1);calcite-flow{height:100%}}`;
|
|
10
10
|
class c extends r {
|
|
11
11
|
constructor() {
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { g as u, c as
|
|
2
|
-
import { html as t, nothing as
|
|
3
|
-
import { KeyCode as
|
|
1
|
+
import { g as u, c as _ } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as t, nothing as c } from "lit";
|
|
3
|
+
import { KeyCode as m } from "monaco-editor";
|
|
4
4
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
5
5
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
6
6
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { Deferred as
|
|
9
|
-
import { D as
|
|
10
|
-
import { s as
|
|
7
|
+
import { LitElement as f, createEvent as l, noShadowRoot as x, safeClassMap as a } from "@arcgis/lumina";
|
|
8
|
+
import { Deferred as b, generateGuid as v } from "@arcgis/components-utils";
|
|
9
|
+
import { D as P, e as d } from "../../chunks/arcade-executor.js";
|
|
10
|
+
import { s as $ } from "../../chunks/setup-monaco.js";
|
|
11
11
|
import { b as s } from "../../chunks/arcade-defaults.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { u as
|
|
12
|
+
import { a as E } from "../../chunks/arcade-service-accessors.js";
|
|
13
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
14
14
|
import { createRef as S, ref as A } from "lit-html/directives/ref.js";
|
|
15
|
-
import { css as
|
|
15
|
+
import { css as y } from "@lit/reactive-element/css-tag.js";
|
|
16
16
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
17
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
18
|
-
v4.33.0-next.
|
|
19
|
-
const
|
|
20
|
-
if (!
|
|
18
|
+
v4.33.0-next.109 */
|
|
19
|
+
const D = (r) => {
|
|
20
|
+
if (!r.toString().includes("calcite-flow-item"))
|
|
21
21
|
throw new Error("Renderer must return a JSX node that starts with <calcite-flow-item>");
|
|
22
22
|
return !0;
|
|
23
|
-
},
|
|
24
|
-
class
|
|
23
|
+
}, C = y`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.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}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);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);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}.hidden{display:none}}}`;
|
|
24
|
+
class R extends f {
|
|
25
25
|
constructor() {
|
|
26
|
-
super(...arguments), this._codeEditorElt = S(), this._componentReadyDefer = new
|
|
26
|
+
super(...arguments), this._codeEditorElt = S(), this._componentReadyDefer = new b(), this._disposables = [], this._editorProfilePromise = Promise.resolve(void 0), this.messages = w(), this._modelId = v(), this._openArcadeHelp = () => void window.open(P, "Arcade Help"), this._toggleSidePanel = (e) => {
|
|
27
27
|
if (!e.target)
|
|
28
28
|
return;
|
|
29
29
|
const i = e.target?.dataset.panelName ?? "none";
|
|
30
30
|
this.openedSidePanel = i === this.openedSidePanel ? "none" : i, this.openedSidePanel === "none" && this._codeEditorElt.value?.setFocus().catch(console.error);
|
|
31
|
-
}, 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 =
|
|
31
|
+
}, 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 = l({ bubbles: !1 }), this.arcgisScriptChange = l({ bubbles: !1 });
|
|
32
32
|
}
|
|
33
33
|
static {
|
|
34
34
|
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 };
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
|
-
this.shadowRootOptions =
|
|
37
|
+
this.shadowRootOptions = x;
|
|
38
38
|
}
|
|
39
39
|
static {
|
|
40
|
-
this.styles =
|
|
40
|
+
this.styles = C;
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region Public Properties
|
|
@@ -74,7 +74,7 @@ class C extends m {
|
|
|
74
74
|
return { type: "error", value: "Missing editor profile", error: null };
|
|
75
75
|
await this._componentReadyDefer.promise;
|
|
76
76
|
const i = this._codeEditorElt.value?.value;
|
|
77
|
-
return await
|
|
77
|
+
return await d(e.definition, i, this.testData);
|
|
78
78
|
}
|
|
79
79
|
/** Set the focus on the element. */
|
|
80
80
|
async setFocus() {
|
|
@@ -84,7 +84,7 @@ class C extends m {
|
|
|
84
84
|
//#region Lifecycle
|
|
85
85
|
async load() {
|
|
86
86
|
const e = u("./assets");
|
|
87
|
-
|
|
87
|
+
$(e), await this._updateEditorProfile();
|
|
88
88
|
}
|
|
89
89
|
willUpdate(e) {
|
|
90
90
|
(e.has("messages") || e.has("profile")) && this._updateDataModelDeps(), e.has("testData") && this._testDataChanged(), e.has("snippets") && s.updateApiContextForModel(this._modelId, {
|
|
@@ -94,7 +94,7 @@ class C extends m {
|
|
|
94
94
|
/** This lifecycle method is not expected to return a promise. The returned promise will be ignored by Lit rather than awaited. */
|
|
95
95
|
async loaded() {
|
|
96
96
|
this._componentReadyDefer.resolve(), await this._updateApiLibrary();
|
|
97
|
-
const e = await
|
|
97
|
+
const e = await E();
|
|
98
98
|
this._disposables.push(e.onDiagnosticsChange((i) => !this._preparingArcade && this.arcgisDiagnosticsChange.emit(i.diagnostics))), this.testData && this._addExecuteScriptAction(), await this._codeEditorElt.value?.setFocus();
|
|
99
99
|
}
|
|
100
100
|
disconnectedCallback() {
|
|
@@ -135,8 +135,8 @@ class C extends m {
|
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
137
|
this._showExecutionPanel = !0, this._executingScript = !0, this._consoleLogs = [], setTimeout(() => void (async () => {
|
|
138
|
-
const
|
|
139
|
-
this._executionResult = await
|
|
138
|
+
const o = this._codeEditorElt.value?.value;
|
|
139
|
+
this._executionResult = await d(i.definition, o, e, (n) => setTimeout(() => this._consoleLogs = [...this._consoleLogs, n], 0)), this._executingScript = !1;
|
|
140
140
|
})(), 0);
|
|
141
141
|
}
|
|
142
142
|
_toggleShowExecutionPanel() {
|
|
@@ -168,7 +168,7 @@ class C extends m {
|
|
|
168
168
|
// An unique identifier for the action.
|
|
169
169
|
id: "run-script",
|
|
170
170
|
label: "Run Arcade Expression",
|
|
171
|
-
keybindings: [
|
|
171
|
+
keybindings: [m.F5],
|
|
172
172
|
contextMenuGroupId: "code",
|
|
173
173
|
contextMenuOrder: 1,
|
|
174
174
|
run: () => {
|
|
@@ -190,8 +190,8 @@ class C extends m {
|
|
|
190
190
|
renderMainPanel() {
|
|
191
191
|
return t`<arcgis-code-editor class="flex-adjustable" .editorOptions=${this.editorOptions} .language=${s.languageId} .value=${this.script ?? ""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${A(this._codeEditorElt)}></arcgis-code-editor>`;
|
|
192
192
|
}
|
|
193
|
-
renderAction({ id: e, label: i, icon:
|
|
194
|
-
return t`<calcite-action id=${e ??
|
|
193
|
+
renderAction({ id: e, label: i, icon: o, active: n, panelName: h, iconFlipRtl: p = !1, onClick: g = this._toggleSidePanel }) {
|
|
194
|
+
return t`<calcite-action id=${e ?? c} .text=${i} .textEnabled=${this.sideActionBarExpanded} .icon=${o} .active=${n} @click=${g} data-panel-name=${h ?? c} .iconFlipRtl=${p}></calcite-action>${!this.sideActionBarExpanded && t`<calcite-tooltip .referenceElement=${e}><span>${i}</span></calcite-tooltip>` || ""}`;
|
|
195
195
|
}
|
|
196
196
|
renderSideActionBar() {
|
|
197
197
|
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({
|
|
@@ -231,22 +231,16 @@ class C extends m {
|
|
|
231
231
|
renderSidePanel() {
|
|
232
232
|
if (this.hideSideBar)
|
|
233
233
|
return null;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
const e = this.customPanels?.find((i) => i.id === this.openedSidePanel);
|
|
245
|
-
if (e) {
|
|
246
|
-
const i = !!e?.useFlows;
|
|
247
|
-
return t`<calcite-flow class="side-panel flex-panel border-inline-start">${i && y(e.renderer) ? e.renderer({ closePanel: this._toggleSidePanel, insertText: this._insertText.bind(this) }) : t`<calcite-flow-item .heading=${e.name} closable @calciteFlowItemClose=${this._toggleSidePanel} .description=${e.description}>${e.renderer({ closePanel: this._toggleSidePanel, insertText: this._insertText.bind(this) })}</calcite-flow-item>`}</calcite-flow>`;
|
|
248
|
-
}
|
|
249
|
-
return null;
|
|
234
|
+
const { openedSidePanel: e } = this;
|
|
235
|
+
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) => t`<calcite-flow class=${a(e === i.id ? "side-panel flex-panel border-inline-start" : "hidden")}>${i?.useFlows && D(i.renderer) ? i.renderer({
|
|
236
|
+
closePanel: this._toggleSidePanel,
|
|
237
|
+
insertText: this._insertText.bind(this),
|
|
238
|
+
closed: e !== i.id
|
|
239
|
+
}) : t`<calcite-flow-item .heading=${i.name} closable @calciteFlowItemClose=${this._toggleSidePanel} .description=${i.description}>${i.renderer({
|
|
240
|
+
closePanel: this._toggleSidePanel,
|
|
241
|
+
insertText: this._insertText.bind(this),
|
|
242
|
+
closed: e !== i.id
|
|
243
|
+
})}</calcite-flow-item>`}</calcite-flow>`)}`;
|
|
250
244
|
}
|
|
251
245
|
renderResultsPanel() {
|
|
252
246
|
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;
|
|
@@ -255,7 +249,7 @@ class C extends m {
|
|
|
255
249
|
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>`;
|
|
256
250
|
}
|
|
257
251
|
}
|
|
258
|
-
|
|
252
|
+
_("arcgis-arcade-editor", R);
|
|
259
253
|
export {
|
|
260
|
-
|
|
254
|
+
R as ArcgisArcadeEditor
|
|
261
255
|
};
|