@arcgis/coding-components 5.1.4 → 5.1.6
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/cdn/{2Q2IEXFZ.js → 2CHFCPBD.js} +1 -1
- package/dist/cdn/2J3TPEMT.js +2 -0
- package/dist/cdn/{S6DW2NNU.js → 3TN2UMGK.js} +1 -1
- package/dist/cdn/{Q7MSRF5V.js → 4TUDZPCF.js} +1 -1
- package/dist/cdn/5NXW3GXW.js +2 -0
- package/dist/cdn/{ZYQIDHFO.js → 7BCZQ7QX.js} +1 -1
- package/dist/cdn/{5QKJWVVY.js → AC74DZXV.js} +1 -1
- package/dist/cdn/{EKYGMX5Q.js → CDLXUNI4.js} +1 -1
- package/dist/cdn/{V42CKTYR.js → CKI3N5EA.js} +1 -1
- package/dist/cdn/{RZP7SZTD.js → DPGWNOCR.js} +1 -1
- package/dist/cdn/{HUJVXIUS.js → EBC4GERK.js} +1 -1
- package/dist/cdn/{XALV5WXG.js → FWORKOGW.js} +1 -1
- package/dist/cdn/{3KYL4EOE.js → HEDFRI4F.js} +1 -1
- package/dist/cdn/{HLDSPJ74.js → JWPKZHE4.js} +1 -1
- package/dist/cdn/{KWYJH6Q7.js → L2JIFHOJ.js} +1 -1
- package/dist/cdn/{JNQAX4UK.js → LTSDWCEE.js} +1 -1
- package/dist/cdn/{BB3TLOST.js → MF7XXV2F.js} +1 -1
- package/dist/cdn/{Z3DM545L.js → NCRYSVK5.js} +1 -1
- package/dist/cdn/{LCYDHZU4.js → NNZGDPOD.js} +1 -1
- package/dist/cdn/{RIKJY53G.js → P6LQTQDF.js} +1 -1
- package/dist/cdn/{2W4CF7S4.js → PFSDXUHR.js} +1 -1
- package/dist/cdn/{PICRRE5E.js → QNDGWEUN.js} +1 -1
- package/dist/cdn/{5RJAJJZQ.js → QWYQNOEV.js} +1 -1
- package/dist/cdn/{XOLNEA4S.js → R6CWEJHW.js} +1 -1
- package/dist/cdn/{IGBFVUYS.js → RCCHNRMN.js} +1 -1
- package/dist/cdn/{V4YZR2GF.js → TVTLLJWM.js} +1 -1
- package/dist/cdn/{K5T6EWF6.js → UYZL5OBR.js} +1 -1
- package/dist/cdn/{ROJA64QL.js → VKBZOFKF.js} +1 -1
- package/dist/cdn/{HBBERRZJ.js → VY2HSHLK.js} +1 -1
- package/dist/cdn/{E5OXH2IV.js → W5UIYLL2.js} +1 -1
- package/dist/cdn/{CQYKPA6X.js → YZIBJ3I4.js} +1 -1
- package/dist/cdn/{HLMQYACH.js → ZRYNFCJL.js} +1 -1
- package/dist/cdn/assets/code-editor/arcade.worker.js +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +2 -2
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -0
- package/dist/components/arcgis-editor-variables/customElement.js +2 -2
- package/dist/components/arcgis-language-api-panel/customElement.js +9 -9
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/2O4O3EQO.js +0 -2
- package/dist/cdn/A7KNLBNC.js +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as r } from "../../chunks/runtime.js";
|
|
3
|
-
import { ref as
|
|
4
|
-
import { css as
|
|
5
|
-
import { setFocusOnElement as
|
|
6
|
-
import { addLtrMark as
|
|
3
|
+
import { ref as a } from "lit/directives/ref.js";
|
|
4
|
+
import { css as d, html as l } from "lit";
|
|
5
|
+
import { setFocusOnElement as m, focusElement as u } from "@arcgis/toolkit/dom";
|
|
6
|
+
import { addLtrMark as c } from "@arcgis/toolkit/string";
|
|
7
7
|
import { LitElement as h, createEvent as o } from "@arcgis/lumina";
|
|
8
8
|
import { f } from "../../chunks/utilities.js";
|
|
9
9
|
import { c as n } from "../../chunks/markdown.js";
|
|
10
10
|
import { u as p } from "../../chunks/useT9n.js";
|
|
11
|
-
const g =
|
|
11
|
+
const g = d`: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)}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}calcite-flow{[slot=footer]{word-break:break-word}}.container{block-size:100%;display:grid;grid-template-rows:auto 1fr;overflow:hidden}.scrollable{min-block-size:0;overflow:auto}}`;
|
|
12
12
|
class b extends h {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), this.messages = p(), this._unselectItem = async () => {
|
|
@@ -43,7 +43,7 @@ class b extends h {
|
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
this._flowObserver || (this._flowObserver = new MutationObserver(() => {
|
|
46
|
-
|
|
46
|
+
m(e.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
47
47
|
}), this._flowObserver.observe(e, { attributes: !0, attributeFilter: ["id"], childList: !0 }));
|
|
48
48
|
}
|
|
49
49
|
_emitItemSelected(e, i) {
|
|
@@ -70,17 +70,17 @@ class b extends h {
|
|
|
70
70
|
}
|
|
71
71
|
renderApiCategory(e) {
|
|
72
72
|
const i = f(e.items, "name", this._filterValue);
|
|
73
|
-
return i.length ?
|
|
73
|
+
return i.length ? l`<calcite-list-item-group .heading=${e.title}>${i.map((t) => l`<calcite-list-item .label=${c(t.completion.detail)} @calciteListItemSelect=${(s) => this._emitItemSelected(s, t)} @keydown=${(s) => this._emitItemSelected(s, t)}><calcite-action slot=actions-end .text=${this.messages.expand ?? ""} icon=chevron-right icon-flip-rtl scale=s @click=${(s) => this._selectItem(s, t)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>` : null;
|
|
74
74
|
}
|
|
75
75
|
renderApiItemFlowItem() {
|
|
76
76
|
const e = this._selectedApiItem;
|
|
77
|
-
return e ?
|
|
77
|
+
return e ? l`<calcite-flow-item heading-level=2 .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose} selected>${this.hideDocumentationActions ? null : l`<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)} ${a(u)}>${this.messages.insert}</calcite-button><calcite-block expanded .heading=${c(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation) ?? ""}></div>${e.examples ? l`<div ${a(this._elementToMarkdown)}></div>` : null}</calcite-block></calcite-flow-item>` : null;
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
80
|
if (this.closed)
|
|
81
81
|
return null;
|
|
82
82
|
const e = (this.apiLibrary ?? []).map((t) => this.renderApiCategory(t)), i = e.every((t) => !t);
|
|
83
|
-
return
|
|
83
|
+
return l`<calcite-flow ${a(this.flowFocusHandler)}><calcite-flow-item heading-level=2 .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedApiItem}><div class="container"><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} scale=m></calcite-input><div class="scrollable">${this.loading ? l`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? "Loading"}></calcite-loader>` : l`<calcite-list .label=${this.messages.api ?? "API"}>${i ? l`<div class="notice-container">${this.messages.noitems}</div>` : e}</calcite-list>`}</div></div></calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
r("arcgis-language-api-panel", b);
|