@arcgis/coding-components 4.32.0-next.74 → 4.32.0-next.75
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/{VVI6CF5E.js → 2U3V6HLJ.js} +2 -2
- package/dist/arcgis-coding-components/{TYDG45HK.js → 4NWRT4BQ.js} +2 -2
- package/dist/arcgis-coding-components/{RTVENWE5.js → 72HB67M6.js} +2 -2
- package/dist/arcgis-coding-components/{2XEC2FX7.js → BI7NWVP6.js} +2 -2
- package/dist/arcgis-coding-components/{ZBTWEDB3.js → DCSGBSOH.js} +1 -1
- package/dist/arcgis-coding-components/{QGDKUOKE.js → DXTKJ2KP.js} +3 -3
- package/dist/arcgis-coding-components/{S23DQMDK.js → EU2FGJHH.js} +1 -1
- package/dist/arcgis-coding-components/{R67V427C.js → GC66TIUZ.js} +2 -2
- package/dist/arcgis-coding-components/{2V4GFR44.js → GILUZVPK.js} +2 -2
- package/dist/arcgis-coding-components/{FSURKT6K.js → GJ6J5L6S.js} +2 -2
- package/dist/arcgis-coding-components/{ZSKX3L7M.js → GUQX3EFO.js} +2 -2
- package/dist/arcgis-coding-components/{2ZBHIYME.js → IO62456K.js} +2 -2
- package/dist/arcgis-coding-components/{CVRDRKQS.js → J3UZXH5Z.js} +2 -2
- package/dist/arcgis-coding-components/{6BIIOFTT.js → JAJSGEMB.js} +2 -2
- package/dist/arcgis-coding-components/{X5FS7YSO.js → KAJA2X34.js} +2 -2
- package/dist/arcgis-coding-components/{V3LC6TCE.js → KDMA3ELX.js} +2 -2
- package/dist/arcgis-coding-components/{4EMZWJWB.js → KWGUYFI7.js} +2 -2
- package/dist/arcgis-coding-components/{3DPLG7PE.js → M4SXM6SF.js} +2 -2
- package/dist/arcgis-coding-components/{SILKLZJL.js → MMPXM7U6.js} +2 -2
- package/dist/arcgis-coding-components/{HACFUXVF.js → NRASYFXD.js} +2 -2
- package/dist/arcgis-coding-components/{ITBS73CV.js → OFYM3GAP.js} +2 -2
- package/dist/arcgis-coding-components/{QWYHZLWG.js → OUDP3KDY.js} +2 -2
- package/dist/arcgis-coding-components/{YJKBOBUB.js → Q4BJ5R27.js} +2 -2
- package/dist/arcgis-coding-components/{GS5XVAXW.js → QX6JC23U.js} +2 -2
- package/dist/arcgis-coding-components/{4ZRSJBOS.js → RNA5CDOZ.js} +2 -2
- package/dist/arcgis-coding-components/{FYEWKXKS.js → SPVXY56A.js} +2 -2
- package/dist/arcgis-coding-components/{ZH2TQH6A.js → SZA3BGKS.js} +2 -2
- package/dist/arcgis-coding-components/{LVBZA7EK.js → UA3Q7RYD.js} +2 -2
- package/dist/arcgis-coding-components/{GBXRHUPD.js → V3EMEUWI.js} +1 -1
- package/dist/arcgis-coding-components/{U5H4PSAM.js → VBPQ6LDV.js} +2 -2
- package/dist/arcgis-coding-components/{3A65JHJW.js → W3QAW4SK.js} +2 -2
- package/dist/arcgis-coding-components/{ESV3XDBL.js → WMXGLRXX.js} +2 -2
- package/dist/arcgis-coding-components/{FSWX3MTV.js → XSUPOHRZ.js} +1 -1
- package/dist/arcgis-coding-components/{HF525XGT.js → ZJAW22KR.js} +2 -2
- package/dist/arcgis-coding-components/{RKZMTHY5.js → ZLFJNU6W.js} +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- 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 +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +12 -12
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +7 -7
- package/dist/components/arcgis-language-api-panel/customElement.js +10 -10
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +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
|
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextMode as f, InsertTextFormat as d } f
|
|
|
5
5
|
/*!
|
|
6
6
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
8
|
-
* v4.32.0-next.
|
|
8
|
+
* v4.32.0-next.75
|
|
9
9
|
*/
|
|
10
10
|
async function S(e) {
|
|
11
11
|
const { apiVersion: s, bundles: t, hiddenApiItems: r } = e.toEditorProfileDefinition(), n = await g(e.dictionaryVariables);
|
|
@@ -2,7 +2,7 @@ import { importArcade as C } from "@arcgis/core-adapter";
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
5
|
-
* v4.32.0-next.
|
|
5
|
+
* v4.32.0-next.75
|
|
6
6
|
*/
|
|
7
7
|
const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
|
|
8
8
|
function u(t) {
|
|
@@ -9,7 +9,7 @@ import { debounce as F, Deferred as _ } from "@arcgis/components-utils";
|
|
|
9
9
|
/*!
|
|
10
10
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
12
|
-
* v4.32.0-next.
|
|
12
|
+
* v4.32.0-next.75
|
|
13
13
|
*/
|
|
14
14
|
const S = [
|
|
15
15
|
"<=",
|
|
@@ -3,7 +3,7 @@ import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
|
|
|
3
3
|
/*!
|
|
4
4
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
6
|
-
* v4.32.0-next.
|
|
6
|
+
* v4.32.0-next.75
|
|
7
7
|
*/
|
|
8
8
|
function a() {
|
|
9
9
|
return !!window.MonacoEnvironment?.getWorkerUrl;
|
package/dist/chunks/fields.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Emitter as x, Uri as $ } from "monaco-editor";
|
|
|
9
9
|
/*!
|
|
10
10
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
12
|
-
* v4.32.0-next.
|
|
12
|
+
* v4.32.0-next.75
|
|
13
13
|
*/
|
|
14
14
|
function W(t) {
|
|
15
15
|
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";
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -5,7 +5,7 @@ import { generateTokensCSSForColorMap as te } from "monaco-editor/esm/vs/editor/
|
|
|
5
5
|
/*!
|
|
6
6
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
8
|
-
* v4.32.0-next.
|
|
8
|
+
* v4.32.0-next.75
|
|
9
9
|
*/
|
|
10
10
|
async function ne(l) {
|
|
11
11
|
return await (await ee()).colorize(l, "arcade", { tabSize: 2 });
|
|
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization";
|
|
|
6
6
|
/*!
|
|
7
7
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
9
|
-
* v4.32.0-next.
|
|
9
|
+
* v4.32.0-next.75
|
|
10
10
|
*/
|
|
11
11
|
function g(r, t, n, m) {
|
|
12
12
|
if (!t)
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeRuntime as t } from "@arcgis/lumina";
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
5
|
-
* v4.32.0-next.
|
|
5
|
+
* v4.32.0-next.75
|
|
6
6
|
*/
|
|
7
7
|
const s = t({ defaultAssetPath: "https://jsdev.arcgis.com/coding-components/next/", hydratedAttribute: "hydrated" }), { customElement: a, getAssetPath: o, setAssetPath: m } = s;
|
|
8
8
|
export {
|
|
@@ -5,7 +5,7 @@ import { g as b } from "./runtime.js";
|
|
|
5
5
|
/*!
|
|
6
6
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
8
|
-
* v4.32.0-next.
|
|
8
|
+
* v4.32.0-next.75
|
|
9
9
|
*/
|
|
10
10
|
const x = (r) => {
|
|
11
11
|
const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
|
|
@@ -8,7 +8,7 @@ import { a as d } from "./sql-expr-defaults.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.75
|
|
12
12
|
*/
|
|
13
13
|
let h = new _();
|
|
14
14
|
class k {
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -15,7 +15,7 @@ import { css as w } from "@lit/reactive-element/css-tag.js";
|
|
|
15
15
|
/*!
|
|
16
16
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
17
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
18
|
-
* v4.32.0-next.
|
|
18
|
+
* v4.32.0-next.75
|
|
19
19
|
*/
|
|
20
20
|
const $ = w`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}}}`;
|
|
21
21
|
class y extends _ {
|
|
@@ -9,7 +9,7 @@ import { css as C } from "@lit/reactive-element/css-tag.js";
|
|
|
9
9
|
/*!
|
|
10
10
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
12
|
-
* v4.32.0-next.
|
|
12
|
+
* v4.32.0-next.75
|
|
13
13
|
*/
|
|
14
14
|
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 = {
|
|
15
15
|
lines: !0,
|
|
@@ -3,14 +3,14 @@ import { ref as l } from "lit-html/directives/ref.js";
|
|
|
3
3
|
import { html as s, nothing as c } from "lit";
|
|
4
4
|
import { setFocusOnElement as d, focusElement as g } from "@arcgis/components-utils";
|
|
5
5
|
import { LitElement as u, createEvent as r } from "@arcgis/lumina";
|
|
6
|
-
import { g as a, o as h,
|
|
6
|
+
import { g as a, o as h, b as m, c as f } from "../../chunks/markdown.js";
|
|
7
7
|
import { f as p } from "../../chunks/monaco-importer.js";
|
|
8
8
|
import { u as b } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as _ } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*!
|
|
11
11
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
12
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
13
|
-
* v4.32.0-next.
|
|
13
|
+
* v4.32.0-next.75
|
|
14
14
|
*/
|
|
15
15
|
function v(o) {
|
|
16
16
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
@@ -28,8 +28,8 @@ class $ extends u {
|
|
|
28
28
|
static {
|
|
29
29
|
this.styles = S;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region Lifecycle
|
|
33
33
|
load() {
|
|
34
34
|
this._colorizeStyle = a(), this._themeChangedListener = h(() => this._colorizeStyle = a());
|
|
35
35
|
}
|
|
@@ -39,8 +39,8 @@ class $ extends u {
|
|
|
39
39
|
disconnectedCallback() {
|
|
40
40
|
super.disconnectedCallback(), this._flowObserver?.disconnect(), this._themeChangedListener?.dispose();
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region Private Methods
|
|
44
44
|
suggestionsPropChanged() {
|
|
45
45
|
this._selectedSuggestion = void 0;
|
|
46
46
|
}
|
|
@@ -66,8 +66,11 @@ class $ extends u {
|
|
|
66
66
|
_emitClose() {
|
|
67
67
|
this.arcgisClose.emit();
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
_colorizeCode(e) {
|
|
70
|
+
e !== void 0 && m(e, this._selectedSuggestion.code);
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region Rendering
|
|
71
74
|
renderSuggestionGroups() {
|
|
72
75
|
return this.suggestions === void 0 ? null : v(this.suggestions) ? this.suggestions.map((e) => s`<calcite-list-item-group .heading=${e.label}>${this.renderSuggestionListItems(e.suggestions)}</calcite-list-item-group>`) : this.renderSuggestionListItems(this.suggestions);
|
|
73
76
|
}
|
|
@@ -76,10 +79,7 @@ class $ extends u {
|
|
|
76
79
|
}
|
|
77
80
|
renderSuggestionFlowItem() {
|
|
78
81
|
const e = this._selectedSuggestion;
|
|
79
|
-
return e ? s`<calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .beforeBack=${this._beforeBack} selected><calcite-button width=half slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${(t) => this._emitItemSelected(t, e)} data-item=${e ?? c} ${l(g)}>${this.messages.insert}</calcite-button><calcite-block open .heading=${e.label} .description=${e.description}><div .innerHTML=${
|
|
80
|
-
}
|
|
81
|
-
_colorizeCode(e) {
|
|
82
|
-
e !== void 0 && f(e, this._selectedSuggestion.code);
|
|
82
|
+
return e ? s`<calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .beforeBack=${this._beforeBack} selected><calcite-button width=half slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${(t) => this._emitItemSelected(t, e)} data-item=${e ?? c} ${l(g)}>${this.messages.insert}</calcite-button><calcite-block open .heading=${e.label} .description=${e.description}><div .innerHTML=${f(e.documentation) ?? ""}></div><pre><code ${l(this._colorizeCode)}></code></pre></calcite-block></calcite-flow-item>` : null;
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
85
|
return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedSuggestion}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input><calcite-list label=suggestions>${this.renderSuggestionGroups()}</calcite-list></calcite-flow-item>${this.renderSuggestionFlowItem()}</calcite-flow>`;
|
|
@@ -14,7 +14,7 @@ import { load as b } from "@arcgis/components-controllers";
|
|
|
14
14
|
/*!
|
|
15
15
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
16
16
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
17
|
-
* v4.32.0-next.
|
|
17
|
+
* v4.32.0-next.75
|
|
18
18
|
*/
|
|
19
19
|
c.register({
|
|
20
20
|
id: n.languageId,
|
|
@@ -8,7 +8,7 @@ import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.75
|
|
12
12
|
*/
|
|
13
13
|
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)}}`;
|
|
14
14
|
function g(l) {
|
|
@@ -26,8 +26,8 @@ class p extends n {
|
|
|
26
26
|
static {
|
|
27
27
|
this.styles = u;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region Lifecycle
|
|
31
31
|
load() {
|
|
32
32
|
this._variableChanged();
|
|
33
33
|
}
|
|
@@ -37,8 +37,8 @@ class p extends n {
|
|
|
37
37
|
disconnectedCallback() {
|
|
38
38
|
super.disconnectedCallback(), this._flowObserver?.disconnect();
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region Private Methods
|
|
42
42
|
_variableChanged() {
|
|
43
43
|
this._mode = this.variable?.type === "featureSet" ? "featureSet" : "profile";
|
|
44
44
|
}
|
|
@@ -101,6 +101,8 @@ class p extends n {
|
|
|
101
101
|
return e.variables[0]?.getLabel() ?? "";
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region Rendering
|
|
104
106
|
renderCollectionBasedVariable(e, t = !1, i = !1) {
|
|
105
107
|
if (!e)
|
|
106
108
|
return null;
|
|
@@ -111,8 +113,6 @@ class p extends n {
|
|
|
111
113
|
console.error("Error loading collection"), r = !1;
|
|
112
114
|
}), r = !0), s`<calcite-flow-item .heading=${this._getHeadingForCollection(e)} .description=${this._getDescriptionForCollection(e)} .beforeBack=${this._beforeBack} closable @calciteFlowItemClose=${this._emitClose} .selected=${i}><calcite-action slot=header-actions-end .text=${this.messages.backtotop ?? ""} scale=m .hidden=${t || this._isMode("featureSet")} icon=chevrons-left icon-flip-rtl @click=${this._backToTop}></calcite-action><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${r ? s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? ""}></calcite-loader>` : s`<calcite-list label=variables>${this.renderEditorVariables(e)}</calcite-list>`}</calcite-flow-item>`;
|
|
113
115
|
}
|
|
114
|
-
// #endregion
|
|
115
|
-
// #region Rendering
|
|
116
116
|
renderEditorVariables(e) {
|
|
117
117
|
const t = h(this._filterValue), i = e.variables.filter((r) => r.passFilter(t));
|
|
118
118
|
return i.length ? i.map((r) => this.renderEditorVariable(r)) : s`<div class="notice-container">${this.messages.noitems}</div>`;
|
|
@@ -10,7 +10,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
|
|
|
10
10
|
/*!
|
|
11
11
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
12
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
13
|
-
* v4.32.0-next.
|
|
13
|
+
* v4.32.0-next.75
|
|
14
14
|
*/
|
|
15
15
|
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)}}`;
|
|
16
16
|
class y extends u {
|
|
@@ -25,8 +25,8 @@ class y extends u {
|
|
|
25
25
|
static {
|
|
26
26
|
this.styles = v;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region Lifecycle
|
|
30
30
|
load() {
|
|
31
31
|
this._colorizeStyle = r(), this._themeChangedListener = p(() => this._colorizeStyle = r());
|
|
32
32
|
}
|
|
@@ -46,8 +46,8 @@ class y extends u {
|
|
|
46
46
|
disconnectedCallback() {
|
|
47
47
|
super.disconnectedCallback(), this._flowObserver?.disconnect(), this._themeChangedListener?.dispose();
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region Private Methods
|
|
51
51
|
flowFocusHandler(e) {
|
|
52
52
|
if (!e) {
|
|
53
53
|
this._flowObserver?.disconnect(), this._flowObserver = void 0;
|
|
@@ -76,8 +76,11 @@ class y extends u {
|
|
|
76
76
|
_updateFilterValue(e) {
|
|
77
77
|
this._filterValue = e.currentTarget.value ?? "";
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_elementToMarkdown(e) {
|
|
80
|
+
e !== void 0 && (e.innerHTML = n(this._selectedApiItem.examples), f(e).catch(console.error));
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region Rendering
|
|
81
84
|
renderApiCategory(e) {
|
|
82
85
|
const i = g(e.items, "name", this._filterValue);
|
|
83
86
|
return i.length ? s`<calcite-list-item-group .heading=${e.title}>${i.map((t) => s`<calcite-list-item .label=${o(t.completion.detail)} @calciteListItemSelect=${(l) => this._emitItemSelected(l, t)} @keydown=${(l) => this._emitItemSelected(l, t)}><calcite-action slot=actions-end .text=${this.messages.expand ?? ""} icon=chevron-right icon-flip-rtl scale=s @click=${(l) => this._selectItem(l, t)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>` : null;
|
|
@@ -86,9 +89,6 @@ class y extends u {
|
|
|
86
89
|
const e = this._selectedApiItem;
|
|
87
90
|
return e ? s`<calcite-flow-item .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose} selected>${this.hideDocumentationActions ? null : s`<calcite-button width=half slot=footer appearance=outline kind=brand scale=s .href=${e.link} target=Help icon-start=information>${this.messages.moreinformation}</calcite-button>`}<calcite-button .width=${this.hideDocumentationActions ? "full" : "half"} slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${(i) => this._emitItemSelectedAndClose(i, e)} ${c(h)}>${this.messages.insert}</calcite-button><calcite-block open .heading=${o(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation) ?? ""}></div>${e.examples ? s`<div ${c(this._elementToMarkdown)}></div>` : null}</calcite-block></calcite-flow-item>` : null;
|
|
88
91
|
}
|
|
89
|
-
_elementToMarkdown(e) {
|
|
90
|
-
e !== void 0 && (e.innerHTML = n(this._selectedApiItem.examples), f(e).catch(console.error));
|
|
91
|
-
}
|
|
92
92
|
render() {
|
|
93
93
|
const e = (this.apiLibrary ?? []).map((t) => this.renderApiCategory(t)), i = e.every((t) => !t);
|
|
94
94
|
return s`<style>${this._colorizeStyle}</style><calcite-flow ${c(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedApiItem}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${this.loading ? s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? "Loading"}></calcite-loader>` : s`<calcite-list label="arcade api">${i ? s`<div class="notice-container">${this.messages.noitems}</div>` : e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`;
|
|
@@ -9,7 +9,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
|
9
9
|
/*!
|
|
10
10
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
12
|
-
* v4.32.0-next.
|
|
12
|
+
* v4.32.0-next.75
|
|
13
13
|
*/
|
|
14
14
|
const g = h`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%}}}`;
|
|
15
15
|
class f extends s {
|
|
@@ -8,7 +8,7 @@ import { css as d } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.75
|
|
12
12
|
*/
|
|
13
13
|
const h = d`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
14
14
|
class f extends r {
|
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.32.0-next.
|
|
4
|
+
"version": "4.32.0-next.75",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { s as p } from "./chunks/sql-expr-defaults.js";
|
|
|
4
4
|
/*!
|
|
5
5
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
7
|
-
* v4.32.0-next.
|
|
7
|
+
* v4.32.0-next.75
|
|
8
8
|
*/
|
|
9
9
|
const a = s, r = t;
|
|
10
10
|
export {
|
package/dist/loader.js
CHANGED
|
@@ -3,7 +3,7 @@ import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
|
3
3
|
/*!
|
|
4
4
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
6
|
-
* v4.32.0-next.
|
|
6
|
+
* v4.32.0-next.75
|
|
7
7
|
*/
|
|
8
8
|
const o = i(e, {
|
|
9
9
|
"arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "4.32.0-next.
|
|
3
|
+
"version": "4.32.0-next.75",
|
|
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",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
],
|
|
37
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@arcgis/arcade-languageservice": "4.32.0-next.
|
|
40
|
-
"@arcgis/components-controllers": "4.32.0-next.
|
|
41
|
-
"@arcgis/components-utils": "4.32.0-next.
|
|
42
|
-
"@arcgis/core-adapter": "4.32.0-next.
|
|
43
|
-
"@arcgis/languages-api-utils": "4.32.0-next.
|
|
44
|
-
"@arcgis/lumina": "4.32.0-next.
|
|
39
|
+
"@arcgis/arcade-languageservice": "4.32.0-next.75",
|
|
40
|
+
"@arcgis/components-controllers": "4.32.0-next.75",
|
|
41
|
+
"@arcgis/components-utils": "4.32.0-next.75",
|
|
42
|
+
"@arcgis/core-adapter": "4.32.0-next.75",
|
|
43
|
+
"@arcgis/languages-api-utils": "4.32.0-next.75",
|
|
44
|
+
"@arcgis/lumina": "4.32.0-next.75",
|
|
45
45
|
"monaco-editor": "^0.52.0",
|
|
46
46
|
"tslib": "^2.7.0",
|
|
47
47
|
"vscode-languageserver-types": "^3.17.5"
|