@arcgis/coding-components 4.33.0-next.94 → 4.33.0-next.96
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/{EP2YUSNH.js → 3MYLOOCD.js} +2 -2
- package/dist/arcgis-coding-components/{IZR6CPOM.js → 4SCRYS5U.js} +2 -2
- package/dist/arcgis-coding-components/{ZUZCOEYS.js → 53KDHA4B.js} +2 -2
- package/dist/arcgis-coding-components/{CZ76XOMS.js → 5IC57CTN.js} +2 -2
- package/dist/arcgis-coding-components/{ZBFJT24O.js → 6ND5QZ7I.js} +2 -2
- package/dist/arcgis-coding-components/{SYOOXRWH.js → 7CRQCXXJ.js} +2 -2
- package/dist/arcgis-coding-components/{6Q43GJXJ.js.LEGAL.txt → 7CRQCXXJ.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{QY7PG52Y.js → CWCIUUNN.js} +2 -2
- package/dist/arcgis-coding-components/{ARKJVFIT.js.LEGAL.txt → CWCIUUNN.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{TBUHAI37.js → DM7H3X2U.js} +2 -2
- package/dist/arcgis-coding-components/{C6GPTPY4.js → DQVHKB4U.js} +1 -1
- package/dist/arcgis-coding-components/{C6GPTPY4.js.LEGAL.txt → DQVHKB4U.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/F3HLFRKQ.js +4 -0
- package/dist/arcgis-coding-components/G26TZKTT.js +4 -0
- package/dist/arcgis-coding-components/{T63CAV7V.js.LEGAL.txt → G26TZKTT.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{OXUVXK47.js → GII7XRBS.js} +2 -2
- package/dist/arcgis-coding-components/{6W27X4A5.js → ITKOCXUH.js} +2 -2
- package/dist/arcgis-coding-components/{PY4OG5MY.js → IZAMYKBT.js} +2 -2
- package/dist/arcgis-coding-components/{CFP7ORLC.js.LEGAL.txt → IZAMYKBT.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{A7MICUG4.js → IZWZ42I2.js} +2 -2
- package/dist/arcgis-coding-components/{NRPCKA2V.js → JGWARU5C.js} +2 -2
- package/dist/arcgis-coding-components/{B45X2RCU.js → K266OADM.js} +1 -1
- package/dist/arcgis-coding-components/MO2KUK6E.js +4 -0
- package/dist/arcgis-coding-components/MO2KUK6E.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/NBPE4QWT.js +6 -0
- package/dist/arcgis-coding-components/{LBDYBLQS.js.LEGAL.txt → NBPE4QWT.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{FUIHPHGW.js → NVCX3HBG.js} +2 -2
- package/dist/arcgis-coding-components/NVCX3HBG.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/PLU4WNW5.js +4 -0
- package/dist/arcgis-coding-components/PLU4WNW5.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/QJJ6FX2R.js +4 -0
- package/dist/arcgis-coding-components/QJJ6FX2R.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{6Q43GJXJ.js → QMQVERYO.js} +2 -2
- package/dist/arcgis-coding-components/QMQVERYO.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{JWU3LRFA.js → QRA2ZFNA.js} +2 -2
- package/dist/arcgis-coding-components/QRA2ZFNA.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{KW7UAGYK.js → RIHTBYCN.js} +3 -3
- package/dist/arcgis-coding-components/{KW7UAGYK.js.LEGAL.txt → RIHTBYCN.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/SOSZMCTW.js +4 -0
- package/dist/arcgis-coding-components/SOSZMCTW.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/TZFVQ7YP.js +4 -0
- package/dist/arcgis-coding-components/TZFVQ7YP.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{KYFKKTKR.js → UA5DHEVG.js} +3 -3
- package/dist/arcgis-coding-components/UA5DHEVG.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{2UOMUDCU.js → UXZZFJS5.js} +1 -1
- package/dist/arcgis-coding-components/{5BIHMNUZ.js → V6KMD3G6.js} +1 -1
- package/dist/arcgis-coding-components/{4L75MIPA.js → W3NDSK7A.js} +2 -2
- package/dist/arcgis-coding-components/W45F5XYO.js +4 -0
- package/dist/arcgis-coding-components/W45F5XYO.js.LEGAL.txt +0 -0
- package/dist/arcgis-coding-components/WXBTIG3X.js +4 -0
- package/dist/arcgis-coding-components/WXBTIG3X.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{N3T3NW5N.js → XT2MXE54.js} +2 -2
- package/dist/arcgis-coding-components/XT2MXE54.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{IDCJQ76C.js → Y4G7MJ7L.js} +2 -2
- package/dist/arcgis-coding-components/YVNOL6OA.js +4 -0
- package/dist/arcgis-coding-components/YVNOL6OA.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +32 -32
- 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/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +2 -2
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +64 -72
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +2 -2
- package/dist/components/arcgis-editor-variables/customElement.js +2 -2
- 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/controllers/useT9n.d.ts +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +6 -7
- package/dist/arcgis-coding-components/ARKJVFIT.js +0 -4
- package/dist/arcgis-coding-components/CFP7ORLC.js +0 -4
- package/dist/arcgis-coding-components/D7BXQG4L.js +0 -4
- package/dist/arcgis-coding-components/D7BXQG4L.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/EURLPKDS.js +0 -4
- package/dist/arcgis-coding-components/EURLPKDS.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/FUIHPHGW.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/HDCM3LC5.js +0 -4
- package/dist/arcgis-coding-components/HDCM3LC5.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/I65OQ4H6.js +0 -4
- package/dist/arcgis-coding-components/I65OQ4H6.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/JWU3LRFA.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/KYFKKTKR.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/LBDYBLQS.js +0 -6
- package/dist/arcgis-coding-components/N3T3NW5N.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/P2YKRZDD.js +0 -4
- package/dist/arcgis-coding-components/PATWPXZE.js +0 -4
- package/dist/arcgis-coding-components/PATWPXZE.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/PY4OG5MY.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/QY7PG52Y.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/SYOOXRWH.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/T63CAV7V.js +0 -4
- /package/dist/arcgis-coding-components/{EP2YUSNH.js.LEGAL.txt → 3MYLOOCD.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{IZR6CPOM.js.LEGAL.txt → 4SCRYS5U.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{ZUZCOEYS.js.LEGAL.txt → 53KDHA4B.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{CZ76XOMS.js.LEGAL.txt → 5IC57CTN.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{ZBFJT24O.js.LEGAL.txt → 6ND5QZ7I.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{TBUHAI37.js.LEGAL.txt → DM7H3X2U.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{2UOMUDCU.js.LEGAL.txt → F3HLFRKQ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{OXUVXK47.js.LEGAL.txt → GII7XRBS.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{5BIHMNUZ.js.LEGAL.txt → ITKOCXUH.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{A7MICUG4.js.LEGAL.txt → IZWZ42I2.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{NRPCKA2V.js.LEGAL.txt → JGWARU5C.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{6W27X4A5.js.LEGAL.txt → K266OADM.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{B45X2RCU.js.LEGAL.txt → UXZZFJS5.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{P2YKRZDD.js.LEGAL.txt → V6KMD3G6.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{4L75MIPA.js.LEGAL.txt → W3NDSK7A.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{IDCJQ76C.js.LEGAL.txt → Y4G7MJ7L.js.LEGAL.txt} +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.96 */
|
|
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.96 */
|
|
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.96 */
|
|
12
12
|
const S = [
|
|
13
13
|
"<=",
|
|
14
14
|
">=",
|
|
@@ -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.96 */
|
|
6
6
|
function a() {
|
|
7
7
|
return !!window.MonacoEnvironment?.getWorkerUrl;
|
|
8
8
|
}
|
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.96 */
|
|
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.96 */
|
|
8
8
|
async function ne(l) {
|
|
9
9
|
return await (await ee()).colorize(l, "arcade", { 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.96 */
|
|
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.96 */
|
|
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,
|
|
@@ -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.96 */
|
|
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.96 */
|
|
11
11
|
let h = new _();
|
|
12
12
|
class k {
|
|
13
13
|
constructor(e) {
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { makeT9nController as o } from "@arcgis/
|
|
1
|
+
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.96 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -14,7 +14,7 @@ import { createRef as S, ref as A } from "lit-html/directives/ref.js";
|
|
|
14
14
|
import { css as $ } from "@lit/reactive-element/css-tag.js";
|
|
15
15
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
16
16
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
17
|
-
v4.33.0-next.
|
|
17
|
+
v4.33.0-next.96 */
|
|
18
18
|
const y = (n) => {
|
|
19
19
|
if (!n.toString().includes("calcite-flow-item"))
|
|
20
20
|
throw new Error("Renderer must return a JSX node that starts with <calcite-flow-item>");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as x } from "../../chunks/runtime.js";
|
|
2
|
-
import { html as
|
|
2
|
+
import { html as e } from "lit-html";
|
|
3
3
|
import { LitElement as w, createEvent as $, safeClassMap as v, nothing as p } from "@arcgis/lumina";
|
|
4
4
|
import { setValuesInString as d, quoteString as h } from "@arcgis/components-utils";
|
|
5
5
|
import { M as u, v as g, B as f, f as T, a as S, b as k } from "../../chunks/arcade-executor.js";
|
|
@@ -8,56 +8,56 @@ import { u as C } from "../../chunks/useT9n.js";
|
|
|
8
8
|
import { css as M } from "@lit/reactive-element/css-tag.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.96 */
|
|
12
12
|
const A = M`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{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)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, a = {
|
|
13
13
|
lines: !0,
|
|
14
14
|
selectionMode: "none",
|
|
15
15
|
scale: "s",
|
|
16
|
-
oncalciteTreeSelect: (l) => l.currentTarget.selectedItems.forEach((
|
|
16
|
+
oncalciteTreeSelect: (l) => l.currentTarget.selectedItems.forEach((t) => t.selected = !1)
|
|
17
17
|
}, c = {
|
|
18
18
|
onClick: (l) => {
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const t = l.currentTarget;
|
|
20
|
+
t.expanded = !t.expanded;
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
function n(l) {
|
|
24
|
-
return
|
|
24
|
+
return e`<span class="dictionary-property">${l}</span><span>: </span>`;
|
|
25
25
|
}
|
|
26
|
-
function b(l,
|
|
27
|
-
return
|
|
26
|
+
function b(l, t = !1) {
|
|
27
|
+
return e`<calcite-tree slot=${(t ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item class="string-value">${JSON.stringify(l.castAsJson(), void 0, 2)}</calcite-tree-item></calcite-tree>`;
|
|
28
28
|
}
|
|
29
|
-
function y(l,
|
|
30
|
-
return
|
|
29
|
+
function y(l, t = !1) {
|
|
30
|
+
return e`<calcite-tree slot=${(t ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item><div class="tree-item-label">${n("type")}${l.type}</div></calcite-tree-item><calcite-tree-item><div class="tree-item-label">${n("value")}<span class="string-value">${JSON.stringify(l, void 0, 2)}</span></div></calcite-tree-item></calcite-tree>`;
|
|
31
31
|
}
|
|
32
32
|
function m(l) {
|
|
33
33
|
switch (l.type) {
|
|
34
34
|
case "unknown":
|
|
35
35
|
case "null":
|
|
36
|
-
return
|
|
36
|
+
return e`<span class="constant-value">${l.type}</span>`;
|
|
37
37
|
case "text":
|
|
38
|
-
return
|
|
38
|
+
return e`<span class="string-value">${h(l.value)}</span>`;
|
|
39
39
|
case "number":
|
|
40
|
-
return
|
|
40
|
+
return e`<span class="number-value">${l.value.toString()}</span>`;
|
|
41
41
|
case "boolean":
|
|
42
|
-
return
|
|
42
|
+
return e`<span class="constant-value">${l.value.toString()}</span>`;
|
|
43
43
|
case "date":
|
|
44
|
-
return
|
|
44
|
+
return e`<span class="date-value">${k(l)}</span>`;
|
|
45
45
|
case "dateOnly":
|
|
46
|
-
return
|
|
46
|
+
return e`<span class="string-value">${h(S(l))}</span>`;
|
|
47
47
|
case "time":
|
|
48
|
-
return
|
|
48
|
+
return e`<span class="string-value">${h(T(l))}</span>`;
|
|
49
49
|
default:
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
function I(l) {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
54
|
+
const t = P(l.value.fields);
|
|
55
|
+
return e`<table><thead><tr>${t.map((i) => e`<th>${i.name}</th>`)}</tr></thead><tbody>${l.features.map((i) => e`<tr>${t.map((s) => {
|
|
56
56
|
try {
|
|
57
57
|
const r = g(i.field(s.name));
|
|
58
|
-
return
|
|
58
|
+
return e`<td>${m(r)}</td>`;
|
|
59
59
|
} catch {
|
|
60
|
-
return
|
|
60
|
+
return e`<td></td>`;
|
|
61
61
|
}
|
|
62
62
|
})}</tr>`)}</tbody></table>`;
|
|
63
63
|
}
|
|
@@ -73,13 +73,11 @@ class L extends w {
|
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region Private Methods
|
|
76
|
-
updateResultPanel(
|
|
77
|
-
this.openedResultPanel =
|
|
76
|
+
updateResultPanel(t) {
|
|
77
|
+
this.openedResultPanel = t, this.arcgisOpenedResultPanelChange.emit(t);
|
|
78
78
|
}
|
|
79
|
-
_switchResultPanel(
|
|
80
|
-
|
|
81
|
-
return;
|
|
82
|
-
const i = e.target?.dataset.panelName;
|
|
79
|
+
_switchResultPanel(t) {
|
|
80
|
+
const i = t.currentTarget.dataset.panelName;
|
|
83
81
|
i && this.updateResultPanel(i);
|
|
84
82
|
}
|
|
85
83
|
_emitClose() {
|
|
@@ -88,94 +86,90 @@ class L extends w {
|
|
|
88
86
|
//#endregion
|
|
89
87
|
//#region Rendering
|
|
90
88
|
renderConsolePanel() {
|
|
91
|
-
return this.openedResultPanel !== "console" ? null : this.loading && !this.consoleLogs?.length ?
|
|
89
|
+
return this.openedResultPanel !== "console" ? null : this.loading && !this.consoleLogs?.length ? e`<calcite-loader scale=s type=indeterminate label></calcite-loader>` : e`<div class="console-logs-container ltr-container">${this.consoleLogs?.length ? this.consoleLogs.map((t) => e`<p>${t}</p>`) : e`<p>${this.messages.consolemessage}</p>`}</div>`;
|
|
92
90
|
}
|
|
93
91
|
renderLogPanel() {
|
|
94
92
|
if (this.openedResultPanel !== "log")
|
|
95
93
|
return null;
|
|
96
94
|
if (this.loading)
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
return
|
|
95
|
+
return e`<calcite-loader scale=s type=indeterminate label></calcite-loader>`;
|
|
96
|
+
const t = this.result?.type === "error" ? "color-error" : "color-success";
|
|
97
|
+
return e`<calcite-list label=results>${this.result ? e`<calcite-list-item .label=${d(this.messages.lastexecutionformat, {
|
|
100
98
|
timeStamp: new Intl.DateTimeFormat(this.messages._t9nLocale, {
|
|
101
99
|
dateStyle: "medium",
|
|
102
100
|
timeStyle: "medium"
|
|
103
101
|
}).format(this.result.timeStamp)
|
|
104
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${v(
|
|
102
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${v(t)}></calcite-icon></calcite-list-item><calcite-list-item .label=${d(this.messages.compilationtimeformat, {
|
|
105
103
|
time: new Intl.NumberFormat(this.messages._t9nLocale, {
|
|
106
104
|
style: "unit",
|
|
107
105
|
unit: "millisecond",
|
|
108
106
|
maximumFractionDigits: 2
|
|
109
107
|
}).format(this.result.compilationTime ?? 0)
|
|
110
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${v(
|
|
108
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${v(t)}></calcite-icon></calcite-list-item><calcite-list-item .label=${d(this.messages.executiontimeformat, {
|
|
111
109
|
time: new Intl.NumberFormat(this.messages._t9nLocale, {
|
|
112
110
|
style: "unit",
|
|
113
111
|
unit: "millisecond",
|
|
114
112
|
maximumFractionDigits: 2
|
|
115
113
|
}).format(this.result.executionTime ?? 0)
|
|
116
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${v(
|
|
114
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${v(t)}></calcite-icon></calcite-list-item>` : e`<calcite-list-item .label=${this.messages.runscriptmessage}><calcite-icon slot=content-start icon=information scale=s class="color-info"></calcite-icon></calcite-list-item>`}</calcite-list>`;
|
|
117
115
|
}
|
|
118
116
|
renderOutputPanel() {
|
|
119
117
|
if (this.openedResultPanel !== "output")
|
|
120
118
|
return null;
|
|
121
119
|
if (this.loading)
|
|
122
|
-
return
|
|
120
|
+
return e`<calcite-loader scale=s type=indeterminate label></calcite-loader>`;
|
|
123
121
|
switch (this.result?.type) {
|
|
124
122
|
case "error":
|
|
125
|
-
return
|
|
126
|
-
message: this.result.value
|
|
127
|
-
})}</div>`;
|
|
123
|
+
return e`<div class="result-value-simple flex-adjustable">${d(this.messages.executionerrorformat, { message: this.result.value })}</div>`;
|
|
128
124
|
case "null":
|
|
129
125
|
case "unknown":
|
|
130
|
-
return
|
|
126
|
+
return e`<div class="result-value-simple ltr-container">${m(this.result)}</div>`;
|
|
131
127
|
case "text":
|
|
132
128
|
case "number":
|
|
133
129
|
case "date":
|
|
134
130
|
case "dateOnly":
|
|
135
131
|
case "time":
|
|
136
132
|
case "boolean":
|
|
137
|
-
return
|
|
133
|
+
return e`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}: </span>${m(this.result)}</div>`;
|
|
138
134
|
case "array": {
|
|
139
135
|
const i = (this.result.value ?? []).slice(0, u);
|
|
140
|
-
return
|
|
136
|
+
return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.renderArrayHeader(this.result)}</div>${this.renderArrayTree(i, !0)}</calcite-tree-item></calcite-tree></div>`;
|
|
141
137
|
}
|
|
142
138
|
case "geometry":
|
|
143
|
-
return
|
|
139
|
+
return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${y(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
|
|
144
140
|
case "attachment":
|
|
145
|
-
return
|
|
141
|
+
return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${b(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
|
|
146
142
|
case "feature":
|
|
147
143
|
case "dictionary":
|
|
148
144
|
case "portal":
|
|
149
|
-
return
|
|
145
|
+
return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${this.renderDictionaryTree(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
|
|
150
146
|
case "featureSet":
|
|
151
|
-
return
|
|
147
|
+
return e`<div class="result-value-table ltr-container">${this.renderFeatureSetLabel(this.result)}${I(this.result)}</div>`;
|
|
152
148
|
case "knowledgeGraph":
|
|
153
|
-
return
|
|
149
|
+
return e`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}: </span><span class="string-value">${this.result.value.url}</span></div>`;
|
|
154
150
|
default:
|
|
155
|
-
return
|
|
151
|
+
return e`<div class="result-value-simple flex-adjustable ltr-container">${this.messages.runscriptmessage}</div>`;
|
|
156
152
|
}
|
|
157
153
|
}
|
|
158
|
-
renderArrayHeader(
|
|
159
|
-
const i =
|
|
160
|
-
return
|
|
161
|
-
count: u.toString()
|
|
162
|
-
})}</span>` : null}`;
|
|
154
|
+
renderArrayHeader(t) {
|
|
155
|
+
const i = t.value ?? [], s = Math.max(i.length - u, 0);
|
|
156
|
+
return e`<span>${`${t.type}(${i.length ?? 0})`}</span>${s > 0 ? e`<span> ${d(this.messages.showingfirstitemsformat, { count: u.toString() })}</span>` : null}`;
|
|
163
157
|
}
|
|
164
|
-
renderArrayTree(
|
|
165
|
-
return
|
|
158
|
+
renderArrayTree(t, i = !1) {
|
|
159
|
+
return e`<calcite-tree slot=${(i ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}>${t.map((s, r) => {
|
|
166
160
|
const o = g(s);
|
|
167
161
|
return this.renderTreeItem(o, r, !i);
|
|
168
162
|
})}</calcite-tree>`;
|
|
169
163
|
}
|
|
170
|
-
renderDictionaryTree(
|
|
171
|
-
const s =
|
|
172
|
-
return
|
|
173
|
-
const o = g(
|
|
174
|
-
return
|
|
164
|
+
renderDictionaryTree(t, i = !1) {
|
|
165
|
+
const s = t.geometry?.();
|
|
166
|
+
return e`<calcite-tree slot=${(i ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}>${t.keys().map((r) => {
|
|
167
|
+
const o = g(t.field(r));
|
|
168
|
+
return t.arcadeDeclaredClass === "esri.arcade.Feature" && o.type === "geometry" ? null : this.renderTreeItem(o, r);
|
|
175
169
|
})}${s ? this.renderTreeItem({ type: "geometry", value: s }, "geometry") : null}</calcite-tree>`;
|
|
176
170
|
}
|
|
177
|
-
renderTreeItem(
|
|
178
|
-
switch (
|
|
171
|
+
renderTreeItem(t, i, s = !1) {
|
|
172
|
+
switch (t.type) {
|
|
179
173
|
case "null":
|
|
180
174
|
case "unknown":
|
|
181
175
|
case "text":
|
|
@@ -184,30 +178,28 @@ class L extends w {
|
|
|
184
178
|
case "dateOnly":
|
|
185
179
|
case "time":
|
|
186
180
|
case "boolean":
|
|
187
|
-
return
|
|
181
|
+
return e`<calcite-tree-item><div class="tree-item-label">${n(i)}${m(t)}</div></calcite-tree-item>`;
|
|
188
182
|
case "array": {
|
|
189
|
-
const o = (
|
|
190
|
-
return
|
|
183
|
+
const o = (t.value ?? []).slice(0, u);
|
|
184
|
+
return e`<calcite-tree-item .expanded=${s} @click=${c.onClick}><div class="tree-item-label">${n(i)}${this.renderArrayHeader(t)}</div>${this.renderArrayTree(o, !0)}</calcite-tree-item>`;
|
|
191
185
|
}
|
|
192
186
|
case "geometry":
|
|
193
|
-
return
|
|
187
|
+
return e`<calcite-tree-item .expanded=${s} @click=${c.onClick}><div class="tree-item-label">${n(i)}<span>${t.type}</span></div>${y(t.value, !0)}</calcite-tree-item>`;
|
|
194
188
|
case "attachment":
|
|
195
|
-
return
|
|
189
|
+
return e`<calcite-tree-item .expanded=${s} @click=${c.onClick}><div class="tree-item-label">${n(i)}<span>${t.type}</span></div>${b(t.value, !0)}</calcite-tree-item>`;
|
|
196
190
|
case "feature":
|
|
197
191
|
case "dictionary":
|
|
198
192
|
case "portal":
|
|
199
|
-
return
|
|
193
|
+
return e`<calcite-tree-item .expanded=${s} @click=${c.onClick}><div class="tree-item-label">${n(i)}<span>${t.type}</span></div>${this.renderDictionaryTree(t.value, !0)}</calcite-tree-item>`;
|
|
200
194
|
default:
|
|
201
195
|
return null;
|
|
202
196
|
}
|
|
203
197
|
}
|
|
204
|
-
renderFeatureSetLabel(
|
|
205
|
-
return
|
|
206
|
-
count: f.toString()
|
|
207
|
-
})}</span>` : null}</div>`;
|
|
198
|
+
renderFeatureSetLabel(t) {
|
|
199
|
+
return e`<div class="value-type"><span>${t.type}:</span>${t.features.length >= f ? e`<span> ${d(this.messages.showingfirstitemsformat, { count: f.toString() })}</span>` : null}</div>`;
|
|
208
200
|
}
|
|
209
201
|
render() {
|
|
210
|
-
return
|
|
202
|
+
return e`<header class="flex-row"><calcite-action-bar class="flex-adjustable" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .active=${this.openedResultPanel === "output"} .text=${this.messages.output ?? ""} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=output></calcite-action><calcite-action .active=${this.openedResultPanel === "console"} .text=${this.messages.console ?? ""} text-enabled scale=s icon=console icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=console></calcite-action><calcite-action .active=${this.openedResultPanel === "log"} .text=${this.messages.log ?? ""} text-enabled scale=s icon=list icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=log></calcite-action></calcite-action-group></calcite-action-bar><calcite-action scale=s icon=x .text=${this.messages.close ?? ""} @click=${this._emitClose}></calcite-action></header><article class="flex-adjustable">${this.loading ? e`<calcite-loader scale=s type=indeterminate label></calcite-loader>` : e`<div class="flex-column y-scrollable-container">${this.renderOutputPanel()}${this.renderConsolePanel()}${this.renderLogPanel()}</div>`}</article>`;
|
|
211
203
|
}
|
|
212
204
|
}
|
|
213
205
|
x("arcgis-arcade-results", L);
|
|
@@ -9,7 +9,7 @@ import { u as b } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as _ } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.96 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -10,10 +10,10 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
|
10
10
|
import { b as n } from "../../chunks/arcade-defaults.js";
|
|
11
11
|
import { a as t } from "../../chunks/sql-expr-defaults.js";
|
|
12
12
|
import { css as C } from "@lit/reactive-element/css-tag.js";
|
|
13
|
-
import { load as b } from "@arcgis/
|
|
13
|
+
import { load as b } from "@arcgis/lumina/controllers";
|
|
14
14
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
15
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
16
|
-
v4.33.0-next.
|
|
16
|
+
v4.33.0-next.96 */
|
|
17
17
|
c.register({
|
|
18
18
|
id: n.languageId,
|
|
19
19
|
aliases: ["Arcade", "arcade"],
|
|
@@ -7,8 +7,8 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as m } from "@lit/reactive-element/css-tag.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.
|
|
11
|
-
const u = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
10
|
+
v4.33.0-next.96 */
|
|
11
|
+
const u = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2);word-break:break-word}}`;
|
|
12
12
|
function g(l) {
|
|
13
13
|
l.key === "Enter" && l.stopPropagation();
|
|
14
14
|
}
|
|
@@ -9,7 +9,7 @@ import { u as _ } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as b } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.96 */
|
|
13
13
|
const v = b`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
14
14
|
class y extends u {
|
|
15
15
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { createRef as d, ref as p } from "lit-html/directives/ref.js";
|
|
|
8
8
|
import { css as h } from "@lit/reactive-element/css-tag.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.96 */
|
|
12
12
|
const g = h`@layer{arcgis-sql-expression-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}.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%}}}}`;
|
|
13
13
|
class f extends s {
|
|
14
14
|
constructor() {
|
|
@@ -7,7 +7,7 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as d } from "@lit/reactive-element/css-tag.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.96 */
|
|
11
11
|
const h = d`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
12
12
|
class f extends r {
|
|
13
13
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useT9n: import('@arcgis/
|
|
1
|
+
export declare const useT9n: import('@arcgis/lumina/controllers').UseT9n;
|
package/dist/docs/api.json
CHANGED
package/dist/docs/docs.json
CHANGED
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.33.0-next.
|
|
4
|
+
"version": "4.33.0-next.96",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
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.33/esri/copyright.txt for details.
|
|
6
|
-
v4.33.0-next.
|
|
6
|
+
v4.33.0-next.96 */
|
|
7
7
|
const a = s, r = t;
|
|
8
8
|
export {
|
|
9
9
|
c as arcade,
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
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.96 */
|
|
6
6
|
const o = i(e, {
|
|
7
7
|
"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
8
|
"arcgis-arcade-results": [() => import("./components/arcgis-arcade-results/customElement.js"), "consoleLogs:,loading,openedResultPanel,result:"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "4.33.0-next.
|
|
3
|
+
"version": "4.33.0-next.96",
|
|
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",
|
|
@@ -37,12 +37,11 @@
|
|
|
37
37
|
],
|
|
38
38
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcgis/arcade-languageservice": "4.33.0-next.
|
|
41
|
-
"@arcgis/components-
|
|
42
|
-
"@arcgis/
|
|
43
|
-
"@arcgis/
|
|
44
|
-
"@arcgis/
|
|
45
|
-
"@arcgis/lumina": "4.33.0-next.94",
|
|
40
|
+
"@arcgis/arcade-languageservice": "4.33.0-next.96",
|
|
41
|
+
"@arcgis/components-utils": "4.33.0-next.96",
|
|
42
|
+
"@arcgis/core-adapter": "4.33.0-next.96",
|
|
43
|
+
"@arcgis/languages-api-utils": "4.33.0-next.96",
|
|
44
|
+
"@arcgis/lumina": "4.33.0-next.96",
|
|
46
45
|
"monaco-editor": "^0.52.0",
|
|
47
46
|
"tslib": "^2.7.0",
|
|
48
47
|
"vscode-languageserver-types": "^3.17.5"
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.94 */
|
|
4
|
-
import{a as h,b as g}from"./IZR6CPOM.js";import{a as p}from"./I65OQ4H6.js";import{a}from"./PY4OG5MY.js";import"./SYOOXRWH.js";import"./2UOMUDCU.js";import"./C6GPTPY4.js";import"./KW7UAGYK.js";import"./EP2YUSNH.js";import{c as r,e as n,f as e,r as c,s as d,w as l}from"./LBDYBLQS.js";import{h as s}from"./5BIHMNUZ.js";import"./TBUHAI37.js";import"./B45X2RCU.js";var f=r`@layer{arcgis-sql-expression-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}.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%}}}}`,o=class extends d{constructor(){super(...arguments),this._codeEditorElt=h(),this.messages=p(),this._modelId=s(),this._preparing=!1,this.sideActionBarExpanded=!1,this.script="",this.hideSideBar=!1,this.arcgisScriptChange=c({bubbles:!1})}static{this.properties={_activeAction:16,_apiLibrary:16,_editorProfile:16,_preparing:16,sideActionBarExpanded:16,profile:0,script:1,hideSideBar:5}}static{this.shadowRootOptions=n}static{this.styles=f}async load(){await this._updateEditorProfile().catch(console.error)}willUpdate(i){(i.has("messages")||i.has("profile"))&&this._updateDataModelDeps()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _updateEditorProfile(){this._preparing=!0;try{await a.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale}),this._editorProfile=a.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(i){if(this._activeAction===i){this._activeAction=void 0;return}this._activeAction=i}_handleActionClick(i){let t=i.target;this._setActiveAction(t.dataset.panelName)}_insertAsSnippet(i){this._codeEditorElt.value?.insertSnippet(i.detail).catch(console.error)}_insertAsText(i){this._codeEditorElt.value?.insertText(i.detail.replaceAll('"',"'")).catch(console.error)}async _updateApiLibrary(){this._apiLibrary=await a.getApiLibraryForModel(this._modelId)}_onCodeEditorValueChange(i){i.stopPropagation(),this.script=i.detail,this.arcgisScriptChange.emit(i.detail)}_getFeatureSetVariable(){let i,t=a.getEditorProfileForModel(this._modelId);return t?.variables?.length&&t?.variables?.[0]?.type!=="featureSet"?console.error("encountered unexpected editor profile"):i=t?.variables?.[0],i}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}render(){let i=this._getFeatureSetVariable();return e`<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable"><arcgis-code-editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script??""} @arcgisValueChange=${this._onCodeEditorValueChange} ${g(this._codeEditorElt)}></arcgis-code-editor></div>${this._activeAction==="fields"&&!this.hideSideBar&&e`<arcgis-editor-variables .variable=${i} class="side-panel flex-panel border-inline-start" .loading=${this._preparing} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${()=>this._setActiveAction(void 0)} data-panel-name=none></arcgis-editor-variables>`||""}${this._activeAction==="functions"&&!this.hideSideBar&&e`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${()=>this._setActiveAction(void 0)} .loading=${this._preparing} .apiLibrary=${this._apiLibrary} data-panel-name=none hide-documentation-actions></arcgis-language-api-panel>`||""}${!this.hideSideBar&&e`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action id=fields-action .text=${this.messages.fields??"Fields"} icon=profile-variables .active=${this._activeAction==="fields"} data-panel-name=fields @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=fields-action><span>${this.messages.fields??"Fields"}</span></calcite-tooltip>`||""}<calcite-action id=functions-action .text=${this.messages.functions??"Functions"} icon=function .active=${this._activeAction==="functions"} data-panel-name=functions @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions??"Functions"}</span></calcite-tooltip>`||""}</calcite-action-bar>`||""}</div>`}};l("arcgis-sql-expression-editor",o);export{o as ArcgisSqlExpressionEditor};
|