@arcgis/coding-components 4.33.0-next.51 → 4.33.0-next.53
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/{CHXWG77J.js → 3HFMFQZV.js} +2 -2
- package/dist/arcgis-coding-components/{MQMYPN5F.js → 3V5QVN4Y.js} +2 -2
- package/dist/arcgis-coding-components/{6VF3P4NY.js.LEGAL.txt → 3V5QVN4Y.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{CPZOK6U4.js → 64RQN3S3.js} +1 -1
- package/dist/arcgis-coding-components/{LD3SJH62.js → 6DQ6JOGQ.js} +2 -2
- package/dist/arcgis-coding-components/{BCA6BTCK.js.LEGAL.txt → 6DQ6JOGQ.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{OHSL22B5.js → 6LEB2UHR.js} +2 -2
- package/dist/arcgis-coding-components/{G72FHAWT.js.LEGAL.txt → 6LEB2UHR.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{VRRYAETX.js → 7FVJS5P4.js} +2 -2
- package/dist/arcgis-coding-components/{G32FGO3F.js → 7QU6JXL3.js} +2 -2
- package/dist/arcgis-coding-components/{EVLYQPS7.js → C756WLLJ.js} +2 -2
- package/dist/arcgis-coding-components/{U7EYHB27.js → C7R3YECV.js} +2 -2
- package/dist/arcgis-coding-components/{IBMU6EL5.js.LEGAL.txt → C7R3YECV.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{GOQ4FNYT.js → CGOJPEAN.js} +1 -1
- package/dist/arcgis-coding-components/{LOAJ2VB3.js → CZU5OTK5.js} +2 -2
- package/dist/arcgis-coding-components/CZU5OTK5.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{KBZWIN4F.js → DSCK73AM.js} +2 -2
- package/dist/arcgis-coding-components/DSCK73AM.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{WVMMN2YC.js → FR4HXIOE.js} +2 -2
- package/dist/arcgis-coding-components/FR4HXIOE.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{G72FHAWT.js → HLG2RPBH.js} +2 -2
- package/dist/arcgis-coding-components/HLG2RPBH.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{IBMU6EL5.js → IOH47GR4.js} +2 -2
- package/dist/arcgis-coding-components/IOH47GR4.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{3KCW2CBM.js → JCDPYG7E.js} +2 -2
- package/dist/arcgis-coding-components/{3KCW2CBM.js.LEGAL.txt → JCDPYG7E.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{JNKWUYHO.js → K7FTHRGZ.js} +2 -2
- package/dist/arcgis-coding-components/K7FTHRGZ.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{ZI6236UB.js → KBLKKE6R.js} +2 -2
- package/dist/arcgis-coding-components/KBLKKE6R.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{E7CZOBWH.js → LZMM7LZY.js} +2 -2
- package/dist/arcgis-coding-components/{PL53PJNO.js → M6TUO7KC.js} +2 -2
- package/dist/arcgis-coding-components/{G77QPRTQ.js → MB6MRJQL.js} +2 -2
- package/dist/arcgis-coding-components/{G77QPRTQ.js.LEGAL.txt → MB6MRJQL.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{6VF3P4NY.js → NJMTQE3T.js} +2 -2
- package/dist/arcgis-coding-components/NJMTQE3T.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{3HHTNFON.js → NVBGCFNN.js} +2 -2
- package/dist/arcgis-coding-components/{EKAXJXDQ.js → NZUZXABI.js} +2 -2
- package/dist/arcgis-coding-components/{LVRRSCZB.js → OU3BO4LQ.js} +1 -1
- package/dist/arcgis-coding-components/{63KXV3WY.js → QB6EHWBU.js} +3 -3
- package/dist/arcgis-coding-components/{63KXV3WY.js.LEGAL.txt → QB6EHWBU.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{BCA6BTCK.js → QJ45PEZE.js} +1 -1
- package/dist/arcgis-coding-components/QJ45PEZE.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{R2UQDY22.js → TCTRYTYD.js} +2 -2
- package/dist/arcgis-coding-components/{EAW54PB6.js → WPGW4SM3.js} +2 -2
- package/dist/arcgis-coding-components/{INMUUT2J.js → XOMYEZV6.js} +2 -2
- package/dist/arcgis-coding-components/{WIQGCOGN.js → XYNFXIQ5.js} +2 -2
- package/dist/arcgis-coding-components/XYNFXIQ5.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{4M75QUPS.js → Y2VZ74G2.js} +2 -2
- package/dist/arcgis-coding-components/{55Q647LT.js → Y4OXWC3I.js} +2 -2
- package/dist/arcgis-coding-components/{PJLMZEA2.js → ZCOICEJO.js} +2 -2
- package/dist/arcgis-coding-components/ZCOICEJO.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{Z454W2NQ.js → ZP4PLMAW.js} +2 -2
- package/dist/arcgis-coding-components/ZP4PLMAW.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 +1 -1
- 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 +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +11 -11
- package/dist/components/arcgis-arcade-results/customElement.js +5 -5
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +9 -9
- 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 +7 -7
- package/dist/components/arcgis-sql-expression-fields/customElement.js +7 -7
- 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 +7 -7
- package/dist/arcgis-coding-components/JNKWUYHO.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/KBZWIN4F.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/LD3SJH62.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/LOAJ2VB3.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/MQMYPN5F.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/OHSL22B5.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/PJLMZEA2.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/U7EYHB27.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/WIQGCOGN.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/WVMMN2YC.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/Z454W2NQ.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/ZI6236UB.js.LEGAL.txt +0 -3
- /package/dist/arcgis-coding-components/{CHXWG77J.js.LEGAL.txt → 3HFMFQZV.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{CPZOK6U4.js.LEGAL.txt → 64RQN3S3.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{VRRYAETX.js.LEGAL.txt → 7FVJS5P4.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{G32FGO3F.js.LEGAL.txt → 7QU6JXL3.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{EVLYQPS7.js.LEGAL.txt → C756WLLJ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{EAW54PB6.js.LEGAL.txt → CGOJPEAN.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{E7CZOBWH.js.LEGAL.txt → LZMM7LZY.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{PL53PJNO.js.LEGAL.txt → M6TUO7KC.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{3HHTNFON.js.LEGAL.txt → NVBGCFNN.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{EKAXJXDQ.js.LEGAL.txt → NZUZXABI.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{GOQ4FNYT.js.LEGAL.txt → OU3BO4LQ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{R2UQDY22.js.LEGAL.txt → TCTRYTYD.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{LVRRSCZB.js.LEGAL.txt → WPGW4SM3.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{INMUUT2J.js.LEGAL.txt → XOMYEZV6.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{4M75QUPS.js.LEGAL.txt → Y2VZ74G2.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{55Q647LT.js.LEGAL.txt → Y4OXWC3I.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.53 */
|
|
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.53 */
|
|
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.53 */
|
|
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.53 */
|
|
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.53 */
|
|
12
12
|
function W(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.53 */
|
|
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.53 */
|
|
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.53 */
|
|
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.53 */
|
|
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.53 */
|
|
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/components-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.53 */
|
|
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.53 */
|
|
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>");
|
|
@@ -38,8 +38,8 @@ class C extends m {
|
|
|
38
38
|
static {
|
|
39
39
|
this.styles = D;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region Public Properties
|
|
43
43
|
/**
|
|
44
44
|
* The instance of the Monaco Editor after the component has been rendered.
|
|
45
45
|
* To determine when a component is rendered, you can use componentOnReady() method.
|
|
@@ -51,8 +51,8 @@ class C extends m {
|
|
|
51
51
|
get editorInstance() {
|
|
52
52
|
return this._codeEditorElt.value?.editorInstance;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region Public Methods
|
|
56
56
|
/**
|
|
57
57
|
* @private
|
|
58
58
|
* @deprecated Use `editorInstance` property instead.
|
|
@@ -79,8 +79,8 @@ class C extends m {
|
|
|
79
79
|
async setFocus() {
|
|
80
80
|
await this._componentReadyDefer.promise, await this._codeEditorElt.value?.setFocus();
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region Lifecycle
|
|
84
84
|
async load() {
|
|
85
85
|
const e = u("./assets");
|
|
86
86
|
P(e), await this._updateEditorProfile();
|
|
@@ -100,8 +100,8 @@ class C extends m {
|
|
|
100
100
|
for (super.disconnectedCallback(); this._disposables.length; )
|
|
101
101
|
this._disposables.pop()?.dispose();
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region Private Methods
|
|
105
105
|
async _updateDataModelDeps() {
|
|
106
106
|
await this._updateEditorProfile(), await this._updateApiLibrary();
|
|
107
107
|
}
|
|
@@ -181,8 +181,8 @@ class C extends m {
|
|
|
181
181
|
const i = this._disposables.indexOf(e);
|
|
182
182
|
i !== -1 && this._disposables.splice(i, 1), e.dispose();
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region Rendering
|
|
186
186
|
renderMainActionBar() {
|
|
187
187
|
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;
|
|
188
188
|
}
|
|
@@ -8,7 +8,7 @@ import { u as M } from "../../chunks/useT9n.js";
|
|
|
8
8
|
import { css as C } 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.53 */
|
|
12
12
|
const A = C`: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",
|
|
@@ -71,8 +71,8 @@ class L extends w {
|
|
|
71
71
|
static {
|
|
72
72
|
this.styles = A;
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region Private Methods
|
|
76
76
|
updateResultPanel(t) {
|
|
77
77
|
this.openedResultPanel = t, this.arcgisOpenedResultPanelChange.emit(t);
|
|
78
78
|
}
|
|
@@ -85,8 +85,8 @@ class L extends w {
|
|
|
85
85
|
_emitClose() {
|
|
86
86
|
this.arcgisClose.emit();
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region Rendering
|
|
90
90
|
renderConsolePanel() {
|
|
91
91
|
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
92
|
}
|
|
@@ -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.53 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -13,7 +13,7 @@ import { css as C } from "@lit/reactive-element/css-tag.js";
|
|
|
13
13
|
import { load as b } from "@arcgis/components-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.53 */
|
|
17
17
|
c.register({
|
|
18
18
|
id: n.languageId,
|
|
19
19
|
aliases: ["Arcade", "arcade"],
|
|
@@ -122,8 +122,8 @@ class z extends h {
|
|
|
122
122
|
static {
|
|
123
123
|
this.styles = [U];
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region Public Properties
|
|
127
127
|
/**
|
|
128
128
|
* The instance of the Monaco Editor after the component has been rendered.
|
|
129
129
|
* To determine when a component is rendered, you can use componentOnReady() method.
|
|
@@ -134,8 +134,8 @@ class z extends h {
|
|
|
134
134
|
get editorInstance() {
|
|
135
135
|
return this._editorInstance;
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region Public Methods
|
|
139
139
|
/**
|
|
140
140
|
* @private
|
|
141
141
|
* @deprecated Use `editorInstance` property instead.
|
|
@@ -182,8 +182,8 @@ class z extends h {
|
|
|
182
182
|
async setValue(A) {
|
|
183
183
|
await this._componentReadyDefer.promise, this.value = A ?? "";
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region Lifecycle
|
|
187
187
|
load() {
|
|
188
188
|
p(B("./assets"));
|
|
189
189
|
}
|
|
@@ -209,8 +209,8 @@ class z extends h {
|
|
|
209
209
|
this._disposables.pop()?.dispose();
|
|
210
210
|
this._themeObserver?.();
|
|
211
211
|
}
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region Private Methods
|
|
214
214
|
_updateModelValue() {
|
|
215
215
|
if (!this._editorInstance)
|
|
216
216
|
return;
|
|
@@ -7,7 +7,7 @@ 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.
|
|
10
|
+
v4.33.0-next.53 */
|
|
11
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)}}`;
|
|
12
12
|
function g(l) {
|
|
13
13
|
l.key === "Enter" && l.stopPropagation();
|
|
@@ -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.53 */
|
|
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.53 */
|
|
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() {
|
|
@@ -23,16 +23,16 @@ class f extends s {
|
|
|
23
23
|
static {
|
|
24
24
|
this.styles = g;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region Lifecycle
|
|
28
28
|
async load() {
|
|
29
29
|
await this._updateEditorProfile().catch(console.error);
|
|
30
30
|
}
|
|
31
31
|
willUpdate(e) {
|
|
32
32
|
(e.has("messages") || e.has("profile")) && this._updateDataModelDeps();
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region Private Methods
|
|
36
36
|
async _updateDataModelDeps() {
|
|
37
37
|
await this._updateEditorProfile(), await this._updateApiLibrary();
|
|
38
38
|
}
|
|
@@ -81,8 +81,8 @@ class f extends s {
|
|
|
81
81
|
_toggleSideActionBarExpanded() {
|
|
82
82
|
this.sideActionBarExpanded = !this.sideActionBarExpanded;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region Rendering
|
|
86
86
|
render() {
|
|
87
87
|
const e = this._getFeatureSetVariable();
|
|
88
88
|
return i`<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} ${p(this._codeEditorElt)}></arcgis-code-editor></div>${this._activeAction === "fields" && !this.hideSideBar && i`<arcgis-editor-variables .variable=${e} 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 && i`<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 && i`<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 && i`<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 && i`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions ?? "Functions"}</span></calcite-tooltip>` || ""}</calcite-action-bar>` || ""}</div>`;
|
|
@@ -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.53 */
|
|
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() {
|
|
@@ -19,16 +19,16 @@ class f extends r {
|
|
|
19
19
|
static {
|
|
20
20
|
this.styles = h;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region Lifecycle
|
|
24
24
|
willUpdate(t) {
|
|
25
25
|
t.has("modelId") && (this._flowItemRenderers = []);
|
|
26
26
|
}
|
|
27
27
|
disconnectedCallback() {
|
|
28
28
|
super.disconnectedCallback(), this._flowObserver?.disconnect();
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region Private Methods
|
|
32
32
|
_handleSelectField(t) {
|
|
33
33
|
if (t.target instanceof HTMLElement)
|
|
34
34
|
switch (t.target.tagName.toLowerCase()) {
|
|
@@ -49,8 +49,8 @@ class f extends r {
|
|
|
49
49
|
_emitClose() {
|
|
50
50
|
this.arcgisClose.emit();
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region Rendering
|
|
54
54
|
render() {
|
|
55
55
|
const t = n.getFeatureLayerForModel(this.modelId ?? "");
|
|
56
56
|
return this.loading || !this.modelId || !t ? i`<calcite-block .heading=${this.messages.availablefields ?? ""}></calcite-block>` : i`<calcite-flow><calcite-flow-item .heading=${this.messages.availablefields ?? ""} closable @calciteFlowItemClose=${this._emitClose}><calcite-list label=fields filter-enabled>${a(t.fields, (e) => e.name, (e) => i`<calcite-list-item @click=${this._handleSelectField} .label=${e.name} .description=${e.alias ?? ""} .value=${e.name}>${e.domain && i`<calcite-action slot=actions-end text=open icon=chevron-right @click=${() => {
|
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.53",
|
|
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.53 */
|
|
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.53 */
|
|
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.53",
|
|
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,12 @@
|
|
|
37
37
|
],
|
|
38
38
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcgis/arcade-languageservice": "4.33.0-next.
|
|
41
|
-
"@arcgis/components-controllers": "4.33.0-next.
|
|
42
|
-
"@arcgis/components-utils": "4.33.0-next.
|
|
43
|
-
"@arcgis/core-adapter": "4.33.0-next.
|
|
44
|
-
"@arcgis/languages-api-utils": "4.33.0-next.
|
|
45
|
-
"@arcgis/lumina": "4.33.0-next.
|
|
40
|
+
"@arcgis/arcade-languageservice": "4.33.0-next.53",
|
|
41
|
+
"@arcgis/components-controllers": "4.33.0-next.53",
|
|
42
|
+
"@arcgis/components-utils": "4.33.0-next.53",
|
|
43
|
+
"@arcgis/core-adapter": "4.33.0-next.53",
|
|
44
|
+
"@arcgis/languages-api-utils": "4.33.0-next.53",
|
|
45
|
+
"@arcgis/lumina": "4.33.0-next.53",
|
|
46
46
|
"monaco-editor": "^0.52.0",
|
|
47
47
|
"tslib": "^2.7.0",
|
|
48
48
|
"vscode-languageserver-types": "^3.17.5"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|