@arcgis/coding-components 4.32.0-next.17 → 4.32.0-next.19
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/{PJIM5CVB.js → 3L4RY47I.js} +2 -2
- package/dist/arcgis-coding-components/{E55X3A5I.js → 3WAL6VTQ.js} +2 -2
- package/dist/arcgis-coding-components/{DQDWUNRW.js → 4NW6ASPU.js} +2 -2
- package/dist/arcgis-coding-components/{LJH27Y2G.js → BG6T7AY3.js} +2 -2
- package/dist/arcgis-coding-components/{6CXAVCJD.js → BSECA2RU.js} +2 -2
- package/dist/arcgis-coding-components/{DQJ2C7BA.js → DZ2N5TAI.js} +2 -2
- package/dist/arcgis-coding-components/ETKZJLUJ.js +6 -0
- package/dist/arcgis-coding-components/{PKO3WCVQ.js → FLQRTGRO.js} +2 -2
- package/dist/arcgis-coding-components/{CB7FNZGQ.js → GOEY6DHU.js} +1 -1
- package/dist/arcgis-coding-components/{PTUK2NVN.js → GW4QIVKG.js} +2 -2
- package/dist/arcgis-coding-components/{PAGWYFQI.js → ILD5GAZP.js} +2 -2
- package/dist/arcgis-coding-components/{JRQTAI77.js → IYYILYHU.js} +3 -3
- package/dist/arcgis-coding-components/{ISEFWYKS.js → JFN5WQCV.js} +2 -2
- package/dist/arcgis-coding-components/{VYGQDML4.js → LIZ57PRQ.js} +2 -2
- package/dist/arcgis-coding-components/{XAP4VSRB.js → LJAXVC46.js} +2 -2
- package/dist/arcgis-coding-components/{H3ZXUPGI.js → LKU4PQIS.js} +2 -2
- package/dist/arcgis-coding-components/{KTIY5U7I.js → LP55G6VH.js} +2 -2
- package/dist/arcgis-coding-components/{7RT3IUBL.js → LVXPIL5J.js} +2 -2
- package/dist/arcgis-coding-components/{BXMDUOG5.js → LYMIMUDX.js} +2 -2
- package/dist/arcgis-coding-components/{PP4LQMW6.js → MBQDBZ5Q.js} +2 -2
- package/dist/arcgis-coding-components/{HEMUY4EX.js → MIMRYQDK.js} +2 -2
- package/dist/arcgis-coding-components/{K65MMKQZ.js → MPQONZKK.js} +2 -2
- package/dist/arcgis-coding-components/{GYRAGUCS.js → MQPGUAKU.js} +2 -2
- package/dist/arcgis-coding-components/{AN5XOTG3.js → MT6E7WAE.js} +2 -2
- package/dist/arcgis-coding-components/{C7AOZLHG.js → OKZIDXTH.js} +2 -2
- package/dist/arcgis-coding-components/OOTSJLE7.js +8 -0
- package/dist/arcgis-coding-components/{54R6KKGA.js → PPHYUAQB.js} +1 -1
- package/dist/arcgis-coding-components/{PPN3MKSY.js → Q3MEWLG6.js} +2 -2
- package/dist/arcgis-coding-components/{ONWSK62Q.js → QSD2HIV4.js} +2 -2
- package/dist/arcgis-coding-components/{EIZ2XTGD.js → RM3PUYKP.js} +2 -2
- package/dist/arcgis-coding-components/{ZS5XSXBA.js → TDQSMBML.js} +2 -2
- package/dist/arcgis-coding-components/WQIYCHVV.js +6 -0
- package/dist/arcgis-coding-components/{ZGVAC5ZL.js → YDXZPRQS.js} +2 -2
- package/dist/arcgis-coding-components/{TX2HX5VE.js → YIY2X63A.js} +1 -1
- package/dist/arcgis-coding-components/{472M2R72.js → YZN6YOSZ.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 +7 -453
- 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 +12 -11
- package/dist/components/arcgis-arcade-results/customElement.js +5 -4
- package/dist/components/arcgis-arcade-suggestions/customElement.js +7 -6
- package/dist/components/arcgis-code-editor/customElement.js +11 -10
- package/dist/components/arcgis-editor-variables/customElement.js +12 -11
- package/dist/components/arcgis-language-api-panel/customElement.js +13 -12
- package/dist/components/arcgis-sql-expression-editor/customElement.js +7 -6
- package/dist/components/arcgis-sql-expression-fields/customElement.js +10 -9
- 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 +5 -4
- package/dist/utils/language-defaults-base.d.ts +1 -1
- package/package.json +7 -6
- package/dist/arcgis-coding-components/2JO3YPBV.js +0 -6
- package/dist/arcgis-coding-components/AWZRXR2G.js +0 -8
- package/dist/arcgis-coding-components/JBLNDPQ4.js +0 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as x } from "../../chunks/runtime.js";
|
|
2
2
|
import { html as e } from "lit-html";
|
|
3
|
+
import { LitElement as w, createEvent as $, safeClassMap as v, nothing as p } from "@arcgis/lumina";
|
|
3
4
|
import { setValuesInString as o, quoteString as h } from "@arcgis/components-utils";
|
|
4
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";
|
|
5
6
|
import { s as C } from "../../chunks/fields.js";
|
|
@@ -8,7 +9,7 @@ import { css as M } from "@lit/reactive-element/css-tag.js";
|
|
|
8
9
|
/*!
|
|
9
10
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
11
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
12
|
+
* v4.32.0-next.19
|
|
12
13
|
*/
|
|
13
14
|
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 = {
|
|
14
15
|
lines: !0,
|
|
@@ -62,7 +63,7 @@ function I(l) {
|
|
|
62
63
|
}
|
|
63
64
|
})}</tr>`)}</tbody></table>`;
|
|
64
65
|
}
|
|
65
|
-
class L extends
|
|
66
|
+
class L extends w {
|
|
66
67
|
constructor() {
|
|
67
68
|
super(...arguments), this.messages = P(), this.loading = !0, this.openedResultPanel = "output", this.arcgisClose = $({ bubbles: !1 }), this.arcgisOpenedResultPanelChange = $({ bubbles: !1 });
|
|
68
69
|
}
|
|
@@ -211,7 +212,7 @@ class L extends x {
|
|
|
211
212
|
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>`;
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
|
-
|
|
215
|
+
x("arcgis-arcade-results", L);
|
|
215
216
|
export {
|
|
216
217
|
L as ArcgisArcadeResults
|
|
217
218
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as n } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as c } from "lit-html/directives/ref.js";
|
|
3
3
|
import { html as s, nothing as l } from "lit";
|
|
4
|
-
import { setFocusOnElement as
|
|
4
|
+
import { setFocusOnElement as d } from "@arcgis/components-utils";
|
|
5
|
+
import { LitElement as g, createEvent as r } from "@arcgis/lumina";
|
|
5
6
|
import { g as a, o as u, c as h, b as m } from "../../chunks/markdown.js";
|
|
6
7
|
import { f } from "../../chunks/monaco-importer.js";
|
|
7
8
|
import { u as p } from "../../chunks/useT9n.js";
|
|
@@ -9,13 +10,13 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
|
|
|
9
10
|
/*!
|
|
10
11
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
12
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
12
|
-
* v4.32.0-next.
|
|
13
|
+
* v4.32.0-next.19
|
|
13
14
|
*/
|
|
14
15
|
function v(o) {
|
|
15
16
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
16
17
|
}
|
|
17
18
|
const _ = 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)}}`;
|
|
18
|
-
class S extends
|
|
19
|
+
class S extends g {
|
|
19
20
|
constructor() {
|
|
20
21
|
super(...arguments), this._beforeBack = async () => {
|
|
21
22
|
this._selectedSuggestion = void 0;
|
|
@@ -49,7 +50,7 @@ class S extends n {
|
|
|
49
50
|
return;
|
|
50
51
|
}
|
|
51
52
|
this._flowObserver || (this._flowObserver = new MutationObserver(() => {
|
|
52
|
-
|
|
53
|
+
d(e.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
53
54
|
}), this._flowObserver.observe(e, { attributes: !0, attributeFilter: ["id"], childList: !0 }));
|
|
54
55
|
}
|
|
55
56
|
_updateFilterValue(e) {
|
|
@@ -81,7 +82,7 @@ class S extends n {
|
|
|
81
82
|
return s`<style>${this._colorizeStyle}</style><calcite-flow ${c(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input><calcite-list>${this.renderSuggestionGroups()}</calcite-list></calcite-flow-item>${this.renderSuggestionFlowItem()}</calcite-flow>`;
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
+
n("arcgis-arcade-suggestions", S);
|
|
85
86
|
export {
|
|
86
87
|
S as ArcgisArcadeSuggestions
|
|
87
88
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as s, c as w } from "../../chunks/runtime.js";
|
|
2
2
|
import { i as B } from "../../chunks/monaco-importer.js";
|
|
3
|
-
import { Deferred as
|
|
3
|
+
import { Deferred as l, generateGuid as E, observeAncestorsMutation as Q, getElementTheme as m } from "@arcgis/components-utils";
|
|
4
|
+
import { LitElement as M, createEvent as r, noShadowRoot as h } from "@arcgis/lumina";
|
|
4
5
|
import { g as x, s as p } from "../../chunks/arcade-service-accessors.js";
|
|
5
6
|
import { languages as c, Range as C, Uri as a, KeyMod as d, KeyCode as g } from "monaco-editor";
|
|
6
7
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices";
|
|
@@ -13,7 +14,7 @@ import { load as D } from "@arcgis/components-controllers";
|
|
|
13
14
|
/*!
|
|
14
15
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
16
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
16
|
-
* v4.32.0-next.
|
|
17
|
+
* v4.32.0-next.19
|
|
17
18
|
*/
|
|
18
19
|
c.register({
|
|
19
20
|
id: n.languageId,
|
|
@@ -110,15 +111,15 @@ const U = I`/*!-----------------------------------------------------------
|
|
|
110
111
|
tabSize: 2,
|
|
111
112
|
useShadowDOM: !0
|
|
112
113
|
};
|
|
113
|
-
class z extends
|
|
114
|
+
class z extends M {
|
|
114
115
|
constructor() {
|
|
115
|
-
super(...arguments), this._componentReadyDefer = new
|
|
116
|
+
super(...arguments), this._componentReadyDefer = new l(), this._disposables = [], this._monacoEditor = D(B), this.modelId = E(), this.value = "", this.arcgisSelectionChange = r({ bubbles: !1 }), this.arcgisValueChange = r({ bubbles: !1 });
|
|
116
117
|
}
|
|
117
118
|
static {
|
|
118
119
|
this.properties = { editorInstance: 32, editorOptions: 0, language: 1, modelId: 1, value: 1 };
|
|
119
120
|
}
|
|
120
121
|
static {
|
|
121
|
-
this.shadowRootOptions =
|
|
122
|
+
this.shadowRootOptions = h;
|
|
122
123
|
}
|
|
123
124
|
static {
|
|
124
125
|
this.styles = [U];
|
|
@@ -186,7 +187,7 @@ class z extends s {
|
|
|
186
187
|
// #endregion
|
|
187
188
|
// #region Lifecycle
|
|
188
189
|
load() {
|
|
189
|
-
p(
|
|
190
|
+
p(s("./assets"));
|
|
190
191
|
}
|
|
191
192
|
willUpdate(A) {
|
|
192
193
|
A.has("value") && this._updateModelValue(), (A.has("language") || A.has("modelId")) && this._updateModel(), A.has("editorOptions") && this._editorInstance?.updateOptions(this.editorOptions ?? {});
|
|
@@ -203,7 +204,7 @@ class z extends s {
|
|
|
203
204
|
this.value = this._editorInstance?.getValue() ?? "", this.arcgisValueChange.emit(this.value);
|
|
204
205
|
}), this._editorInstance.onDidChangeCursorSelection((o) => {
|
|
205
206
|
this.arcgisSelectionChange.emit({ selection: o.selection, model: this._editorInstance?.getModel() });
|
|
206
|
-
}), this._themeObserver =
|
|
207
|
+
}), this._themeObserver = Q(this.el, ["class"], () => this.updateTheme()), this.updateTheme(), new ResizeObserver(() => this._editorInstance?.layout()).observe(this.el), this.addCommonEditorActions();
|
|
207
208
|
}
|
|
208
209
|
disconnectedCallback() {
|
|
209
210
|
for (super.disconnectedCallback(), this._editorInstance?.getModel()?.dispose(); this._disposables.length; )
|
|
@@ -231,7 +232,7 @@ class z extends s {
|
|
|
231
232
|
return this.modelId ? a.parse(this.modelId) : a.parse("");
|
|
232
233
|
}
|
|
233
234
|
updateTheme() {
|
|
234
|
-
const A =
|
|
235
|
+
const A = m(this.el) === "light" ? "vs" : "vs-dark";
|
|
235
236
|
A !== this._currentTheme && (this._currentTheme = A, this._monacoEditor.setTheme(A));
|
|
236
237
|
}
|
|
237
238
|
addCommonEditorActions() {
|
|
@@ -258,7 +259,7 @@ class z extends s {
|
|
|
258
259
|
});
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
|
-
|
|
262
|
+
w("arcgis-code-editor", z);
|
|
262
263
|
export {
|
|
263
264
|
z as ArcgisCodeEditor
|
|
264
265
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ref as
|
|
1
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
2
|
+
import { ref as c } from "lit-html/directives/ref.js";
|
|
3
3
|
import { html as i } from "lit";
|
|
4
|
+
import { LitElement as n, createEvent as a } from "@arcgis/lumina";
|
|
4
5
|
import { setFocusOnElement as d, createFilterExpression as h } from "@arcgis/components-utils";
|
|
5
|
-
import { u } from "../../chunks/useT9n.js";
|
|
6
|
-
import { css as
|
|
6
|
+
import { u as m } from "../../chunks/useT9n.js";
|
|
7
|
+
import { css as u } from "@lit/reactive-element/css-tag.js";
|
|
7
8
|
/*!
|
|
8
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.19
|
|
11
12
|
*/
|
|
12
|
-
const
|
|
13
|
+
const f = u`: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)}}`;
|
|
13
14
|
function g(r) {
|
|
14
15
|
r.key === "Enter" && r.stopPropagation();
|
|
15
16
|
}
|
|
16
|
-
class p extends
|
|
17
|
+
class p extends n {
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments), this._beforeBack = async () => {
|
|
19
20
|
this.removeLastPanelRenderer(), this._filterValue = "";
|
|
20
|
-
}, this.messages =
|
|
21
|
+
}, this.messages = m(), this._filterValue = "", this._flowItemRenderers = [], this._mode = "profile", this._mutationCounter = 1, this.loading = !1, this.arcgisClose = a({ bubbles: !1 }), this.arcgisItemSelected = a({ bubbles: !1 });
|
|
21
22
|
}
|
|
22
23
|
static {
|
|
23
24
|
this.properties = { _filterValue: 16, _flowItemRenderers: 16, _mode: 16, _mutationCounter: 16, loading: 5, modelId: 1, variable: 0 };
|
|
24
25
|
}
|
|
25
26
|
static {
|
|
26
|
-
this.styles =
|
|
27
|
+
this.styles = f;
|
|
27
28
|
}
|
|
28
29
|
// #endregion
|
|
29
30
|
// #region Lifecycle
|
|
@@ -124,10 +125,10 @@ class p extends o {
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
render() {
|
|
127
|
-
return !this.loading && this.variable?.loaded && !this.variable?.variables.length ? i`<calcite-flow><calcite-flow-item .heading=${this.messages.profilevariables} closable @calciteFlowItemClose=${this._emitClose}><div class="notice-container">${this.messages.noprofilevariablesmessage}</div></calcite-flow-item></calcite-flow>` : i`<calcite-flow ${
|
|
128
|
+
return !this.loading && this.variable?.loaded && !this.variable?.variables.length ? i`<calcite-flow><calcite-flow-item .heading=${this.messages.profilevariables} closable @calciteFlowItemClose=${this._emitClose}><div class="notice-container">${this.messages.noprofilevariablesmessage}</div></calcite-flow-item></calcite-flow>` : i`<calcite-flow ${c(this.flowFocusHandler)}>${this.collectionBasedVariableRenderer(this.variable, !0)()}${this._flowItemRenderers.map((e) => e())}</calcite-flow>`;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
|
|
131
|
+
o("arcgis-editor-variables", p);
|
|
131
132
|
export {
|
|
132
133
|
p as ArcgisEditorVariables
|
|
133
134
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ref as
|
|
1
|
+
import { c as m } from "../../chunks/runtime.js";
|
|
2
|
+
import { ref as o } from "lit-html/directives/ref.js";
|
|
3
3
|
import { html as s } from "lit";
|
|
4
|
-
import { setFocusOnElement as
|
|
4
|
+
import { setFocusOnElement as d, addLTRMark as c } from "@arcgis/components-utils";
|
|
5
|
+
import { LitElement as h, createEvent as a } from "@arcgis/lumina";
|
|
5
6
|
import { g as r, o as u, c as n, a as f } from "../../chunks/markdown.js";
|
|
6
7
|
import { f as p } from "../../chunks/monaco-importer.js";
|
|
7
8
|
import { u as g } from "../../chunks/useT9n.js";
|
|
@@ -9,14 +10,14 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
|
|
|
9
10
|
/*!
|
|
10
11
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
12
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
12
|
-
* v4.32.0-next.
|
|
13
|
+
* v4.32.0-next.19
|
|
13
14
|
*/
|
|
14
15
|
const _ = 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)}}`;
|
|
15
|
-
class v extends
|
|
16
|
+
class v extends h {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments), this.messages = g(), this._unselectItem = async () => {
|
|
18
19
|
this._selectedApiItem = void 0;
|
|
19
|
-
}, this._colorizeStyle = "", this._filterValue = "", this.hideDocumentationActions = !1, this.loading = !1, this.arcgisClose =
|
|
20
|
+
}, this._colorizeStyle = "", this._filterValue = "", this.hideDocumentationActions = !1, this.loading = !1, this.arcgisClose = a({ bubbles: !1 }), this.arcgisItemSelected = a({ bubbles: !1 });
|
|
20
21
|
}
|
|
21
22
|
static {
|
|
22
23
|
this.properties = { _colorizeStyle: 16, _filterValue: 16, _selectedApiItem: 16, apiLibrary: 0, hideDocumentationActions: 5, loading: 5 };
|
|
@@ -53,7 +54,7 @@ class v extends m {
|
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
55
56
|
this._flowObserver || (this._flowObserver = new MutationObserver(() => {
|
|
56
|
-
|
|
57
|
+
d(e.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
57
58
|
}), this._flowObserver.observe(e, { attributes: !0, attributeFilter: ["id"], childList: !0 }));
|
|
58
59
|
}
|
|
59
60
|
_emitItemSelected(e, t) {
|
|
@@ -79,22 +80,22 @@ class v extends m {
|
|
|
79
80
|
// #region Rendering
|
|
80
81
|
renderApiCategory(e) {
|
|
81
82
|
const t = p(e.items, "name", this._filterValue);
|
|
82
|
-
return t.length ? s`<calcite-list-item-group .heading=${e.title}>${t.map((i) => s`<calcite-list-item .label=${
|
|
83
|
+
return t.length ? s`<calcite-list-item-group .heading=${e.title}>${t.map((i) => s`<calcite-list-item .label=${c(i.completion.detail)} @calciteListItemSelect=${(l) => this._emitItemSelected(l, i)} @keydown=${(l) => this._emitItemSelected(l, i)}><calcite-action slot=actions-end .text=${this.messages.expand ?? ""} icon=chevron-right icon-flip-rtl scale=s @click=${(l) => this._selectItem(l, i)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>` : null;
|
|
83
84
|
}
|
|
84
85
|
renderApiItemFlowItem() {
|
|
85
86
|
const e = this._selectedApiItem;
|
|
86
|
-
return e ? s`<calcite-flow-item .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose}>${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=${(t) => this._emitItemSelectedAndClose(t, e)} ${
|
|
87
|
+
return e ? s`<calcite-flow-item .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose}>${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=${(t) => this._emitItemSelectedAndClose(t, e)} ${o((t) => {
|
|
87
88
|
t?.setFocus && t.setFocus();
|
|
88
|
-
})}>${this.messages.insert}</calcite-button><calcite-block open .heading=${
|
|
89
|
+
})}>${this.messages.insert}</calcite-button><calcite-block open .heading=${c(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation) ?? ""}></div>${e.examples ? s`<div ${o((t) => {
|
|
89
90
|
t && (t.innerHTML = n(e.examples), f(t).catch(console.error));
|
|
90
91
|
})}></div>` : null}</calcite-block></calcite-flow-item>` : null;
|
|
91
92
|
}
|
|
92
93
|
render() {
|
|
93
94
|
const e = (this.apiLibrary ?? []).map((i) => this.renderApiCategory(i)), t = e.every((i) => !i);
|
|
94
|
-
return s`<style>${this._colorizeStyle}</style><calcite-flow ${
|
|
95
|
+
return s`<style>${this._colorizeStyle}</style><calcite-flow ${o(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose}><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>${t ? s`<div class="notice-container">${this.messages.noitems}</div>` : e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`;
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
+
m("arcgis-language-api-panel", v);
|
|
98
99
|
export {
|
|
99
100
|
v as ArcgisLanguageApiPanel
|
|
100
101
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
2
2
|
import { html as t } from "lit";
|
|
3
|
+
import { LitElement as s, createEvent as r, noShadowRoot as n } from "@arcgis/lumina";
|
|
3
4
|
import { generateGuid as c } from "@arcgis/components-utils";
|
|
4
5
|
import { a } from "../../chunks/sql-expr-defaults.js";
|
|
5
6
|
import { u as l } from "../../chunks/useT9n.js";
|
|
@@ -8,18 +9,18 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
|
8
9
|
/*!
|
|
9
10
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
11
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
12
|
+
* v4.32.0-next.19
|
|
12
13
|
*/
|
|
13
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%}}}`;
|
|
14
|
-
class f extends
|
|
15
|
+
class f extends s {
|
|
15
16
|
constructor() {
|
|
16
|
-
super(...arguments), this._codeEditorElt = d(), this.messages = l(), this._modelId = c(), this._preparing = !1, this.sideActionBarExpanded = !1, this.script = "", this.arcgisScriptChange =
|
|
17
|
+
super(...arguments), this._codeEditorElt = d(), this.messages = l(), this._modelId = c(), this._preparing = !1, this.sideActionBarExpanded = !1, this.script = "", this.arcgisScriptChange = r({ bubbles: !1 });
|
|
17
18
|
}
|
|
18
19
|
static {
|
|
19
20
|
this.properties = { _activeAction: 16, _apiLibrary: 16, _editorProfile: 16, _preparing: 16, sideActionBarExpanded: 16, profile: 0, script: 1 };
|
|
20
21
|
}
|
|
21
22
|
static {
|
|
22
|
-
this.shadowRootOptions =
|
|
23
|
+
this.shadowRootOptions = n;
|
|
23
24
|
}
|
|
24
25
|
static {
|
|
25
26
|
this.styles = g;
|
|
@@ -89,7 +90,7 @@ class f extends o {
|
|
|
89
90
|
return t`<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" && t`<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" && t`<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>` || ""}<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 && t`<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 && t`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions ?? "Functions"}</span></calcite-tooltip>` || ""}</calcite-action-bar></div>`;
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
|
-
|
|
93
|
+
o("arcgis-sql-expression-editor", f);
|
|
93
94
|
export {
|
|
94
95
|
f as ArcgisSqlExpressionEditor
|
|
95
96
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { repeat as
|
|
1
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
2
|
+
import { repeat as a } from "lit-html/directives/repeat.js";
|
|
3
3
|
import { html as i } from "lit";
|
|
4
|
+
import { LitElement as r, createEvent as c } from "@arcgis/lumina";
|
|
4
5
|
import { a as n } from "../../chunks/sql-expr-defaults.js";
|
|
5
6
|
import { u as m } from "../../chunks/useT9n.js";
|
|
6
7
|
import { css as d } from "@lit/reactive-element/css-tag.js";
|
|
7
8
|
/*!
|
|
8
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.19
|
|
11
12
|
*/
|
|
12
13
|
const h = d`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
13
|
-
class
|
|
14
|
+
class f extends r {
|
|
14
15
|
constructor() {
|
|
15
|
-
super(...arguments), this.messages = m(), this._filterValue = "", this._flowItemRenderers = [], this._mutationCounter = 1, this.loading = !1, this.arcgisClose =
|
|
16
|
+
super(...arguments), this.messages = m(), this._filterValue = "", this._flowItemRenderers = [], this._mutationCounter = 1, this.loading = !1, this.arcgisClose = c({ bubbles: !1 }), this.arcgisFieldSelected = c({ bubbles: !1 });
|
|
16
17
|
}
|
|
17
18
|
static {
|
|
18
19
|
this.properties = { _filterValue: 16, _flowItemRenderers: 16, _mutationCounter: 16, loading: 5, modelId: 1 };
|
|
@@ -54,16 +55,16 @@ class g extends o {
|
|
|
54
55
|
// #region Rendering
|
|
55
56
|
render() {
|
|
56
57
|
const t = n.getFeatureLayerForModel(this.modelId ?? "");
|
|
57
|
-
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 filter-enabled>${
|
|
58
|
+
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 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=${() => {
|
|
58
59
|
const s = e.domain;
|
|
59
60
|
s.type === "coded-value" && (this._flowItemRenderers = [
|
|
60
61
|
...this._flowItemRenderers,
|
|
61
|
-
() => i`<calcite-flow-item closable .heading=${this.messages.domainvalues ?? ""} .description=${e.name} @calciteFlowItemClose=${this._emitClose}><calcite-list>${
|
|
62
|
+
() => i`<calcite-flow-item closable .heading=${this.messages.domainvalues ?? ""} .description=${e.name} @calciteFlowItemClose=${this._emitClose}><calcite-list>${a(s.codedValues, (l) => l.code, (l) => i`<calcite-list-item @click=${this._handleSelectDomain} .label=${l.name} .description=${String(l.code)} .value=${String(l.code)}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`
|
|
62
63
|
]);
|
|
63
64
|
}}></calcite-action>` || ""}</calcite-list-item>`)}</calcite-list></calcite-flow-item>${this._flowItemRenderers.map((e) => e())}</calcite-flow>`;
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
+
o("arcgis-sql-expression-fields", f);
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
f as SqlExpressionFields
|
|
69
70
|
};
|
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.19",
|
|
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.19
|
|
8
8
|
*/
|
|
9
9
|
const a = s, r = t;
|
|
10
10
|
export {
|
package/dist/loader.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as e } from "./chunks/runtime.js";
|
|
2
|
+
import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
2
3
|
/*!
|
|
3
4
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
5
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
5
|
-
* v4.32.0-next.
|
|
6
|
+
* v4.32.0-next.19
|
|
6
7
|
*/
|
|
7
|
-
const
|
|
8
|
+
const o = i(e, {
|
|
8
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"],
|
|
9
10
|
"arcgis-arcade-results": [() => import("./components/arcgis-arcade-results/customElement.js"), "consoleLogs:,loading,openedResultPanel,result:"],
|
|
10
11
|
"arcgis-arcade-suggestions": [() => import("./components/arcgis-arcade-suggestions/customElement.js"), "suggestions:"],
|
|
@@ -15,5 +16,5 @@ const s = e(i, {
|
|
|
15
16
|
"arcgis-sql-expression-fields": [() => import("./components/arcgis-sql-expression-fields/customElement.js"), "loading,modelId"]
|
|
16
17
|
});
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
o as defineCustomElements
|
|
19
20
|
};
|
|
@@ -16,7 +16,7 @@ export declare abstract class LanguageDefaultsBase<TApiContext extends ApiContex
|
|
|
16
16
|
protected _onDidChange: Emitter<this>;
|
|
17
17
|
protected _modelToProfileMap: Map<string, EditorProfile>;
|
|
18
18
|
protected _modelToApiContextMap: Map<string, TApiContext>;
|
|
19
|
-
protected _localeToApiLibraryPromiseMap: Map<"id" | "en" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "el" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW", Promise<ApiCategory[]>>;
|
|
19
|
+
protected _localeToApiLibraryPromiseMap: Map<"id" | "en" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "el" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "no" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW", Promise<ApiCategory[]>>;
|
|
20
20
|
protected _onModelContextDidChange: Emitter<string>;
|
|
21
21
|
protected _onDidModelContextChangeTimeout: number;
|
|
22
22
|
constructor(languageId: string, _apiConfig: ApiConfig);
|
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.19",
|
|
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,11 +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.
|
|
39
|
+
"@arcgis/arcade-languageservice": "4.32.0-next.19",
|
|
40
|
+
"@arcgis/components-controllers": "4.32.0-next.19",
|
|
41
|
+
"@arcgis/components-utils": "4.32.0-next.19",
|
|
42
|
+
"@arcgis/core-adapter": "4.32.0-next.19",
|
|
43
|
+
"@arcgis/languages-api-utils": "4.32.0-next.19",
|
|
44
|
+
"@arcgis/lumina": "4.32.0-next.19",
|
|
44
45
|
"monaco-editor": "0.45.0",
|
|
45
46
|
"tslib": "^2.7.0",
|
|
46
47
|
"vscode-languageserver-types": "^3.17.5"
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.17
|
|
5
|
-
*/
|
|
6
|
-
import{a as E}from"./PKO3WCVQ.js";import{a as M}from"./PJIM5CVB.js";import"./PPN3MKSY.js";import"./CB7FNZGQ.js";import"./TX2HX5VE.js";import"./JRQTAI77.js";import"./ZS5XSXBA.js";import{c as y,d as p,e as F,g as S,h as x,i as R,k as g,l as u,m as V,n as L,o as v,p as $,s as P,w as D}from"./AWZRXR2G.js";import"./JBLNDPQ4.js";import"./K65MMKQZ.js";import"./54R6KKGA.js";var q=(a,s,t)=>{let d=new Map;for(let e=s;e<=t;e++)d.set(a[e],e);return d},_=x(class extends R{constructor(a){if(super(a),a.type!==S.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,s,t){let d;t===void 0?t=s:s!==void 0&&(d=s);let e=[],n=[],o=0;for(let m of a)e[o]=d?d(m,o):o,n[o]=t(m,o),o++;return{values:n,keys:e}}render(a,s,t){return this.dt(a,s,t).values}update(a,[s,t,d]){let e=L(a),{values:n,keys:o}=this.dt(s,t,d);if(!Array.isArray(e))return this.ut=o,n;let m=this.ut??=[],h=[],b,I,i=0,c=e.length-1,l=0,r=n.length-1;for(;i<=c&&l<=r;)if(e[i]===null)i++;else if(e[c]===null)c--;else if(m[i]===o[l])h[l]=u(e[i],n[l]),i++,l++;else if(m[c]===o[r])h[r]=u(e[c],n[r]),c--,r--;else if(m[i]===o[r])h[r]=u(e[i],n[r]),g(a,h[r+1],e[i]),i++,r--;else if(m[c]===o[l])h[l]=u(e[c],n[l]),g(a,e[i],e[c]),c--,l++;else if(b===void 0&&(b=q(o,l,r),I=q(m,i,c)),b.has(m[i]))if(b.has(m[c])){let f=I.get(o[l]),w=f!==void 0?e[f]:null;if(w===null){let k=g(a,e[i]);u(k,n[l]),h[l]=k}else h[l]=u(w,n[l]),g(a,e[i],w),e[f]=null;l++}else v(e[c]),c--;else v(e[i]),i++;for(;l<=r;){let f=g(a,h[r+1]);u(f,n[l]),h[l++]=f}for(;i<=c;){let f=e[i++];f!==null&&v(f)}return this.ut=o,V(a,h),F}});var A=y`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,C=class extends P{constructor(){super(...arguments),this.messages=E(),this._filterValue="",this._flowItemRenderers=[],this._mutationCounter=1,this.loading=!1,this.arcgisClose=$({bubbles:!1}),this.arcgisFieldSelected=$({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mutationCounter:16,loading:5,modelId:1}}static{this.styles=A}willUpdate(s){s.has("modelId")&&(this._flowItemRenderers=[])}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_handleSelectField(s){if(s.target instanceof HTMLElement)switch(s.target.tagName.toLowerCase()){case"calcite-list-item":{let t=s.target.value;this.arcgisFieldSelected.emit(t??"");break}case"calcite-action":s.stopPropagation();break}}_handleSelectDomain(s){let t=s.target.value;this.arcgisFieldSelected.emit(t?`'${t}'`:"")}_emitClose(){this.arcgisClose.emit()}render(){let s=M.getFeatureLayerForModel(this.modelId??"");return this.loading||!this.modelId||!s?p`<calcite-block .heading=${this.messages.availablefields??""}></calcite-block>`:p`<calcite-flow><calcite-flow-item .heading=${this.messages.availablefields??""} closable @calciteFlowItemClose=${this._emitClose}><calcite-list filter-enabled>${_(s.fields,t=>t.name,t=>p`<calcite-list-item @click=${this._handleSelectField} .label=${t.name} .description=${t.alias} .value=${t.name}>${t.domain&&p`<calcite-action slot=actions-end text=open icon=chevron-right @click=${()=>{let d=t.domain;d.type==="coded-value"&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>p`<calcite-flow-item closable .heading=${this.messages.domainvalues??""} .description=${t.name} @calciteFlowItemClose=${this._emitClose}><calcite-list>${_(d.codedValues,e=>e.code,e=>p`<calcite-list-item @click=${this._handleSelectDomain} .label=${e.name} .description=${String(e.code)} .value=${String(e.code)}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`])}}></calcite-action>`||""}</calcite-list-item>`)}</calcite-list></calcite-flow-item>${this._flowItemRenderers.map(t=>t())}</calcite-flow>`}};D("arcgis-sql-expression-fields",C);export{C as SqlExpressionFields};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.17
|
|
5
|
-
*/
|
|
6
|
-
import{a as b,e as p,f as I,j as Nt,l as kt,q as yt,r as Ut,t as Rt}from"./JBLNDPQ4.js";function Mt(e,t){if(t){let o=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(o,([s,r])=>r.noAccessor?void 0:[s,[(r.readOnly?2048:0)|(r.state?32:16)]]).filter(Rt))}else{let o=e.constructor,s=o.__registerControllers?.(e)??void 0;if(o.__registerControllers=void 0,typeof s!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(s).filter(([r,[n]])=>(n&63)!==0))}}function jt(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var Vt=(e,t)=>e.manager.internals.members?.[t]?.[0];var tt=Symbol.for("controller");var Wt=e=>typeof e=="object"&&e!==null&&(tt in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var W;function x(e){W!==e&&(W=e,queueMicrotask(()=>{W===e&&(W=void 0)}))}function G(e){return W}var P=[];function et(e){if(e===void 0){P=[];return}let t=P.indexOf(e);P=t===-1?[...P,e]:P.slice(0,t+1),queueMicrotask(()=>{P=[]})}function zt(){return P}var M;function Se(e){M!==e&&(M=e,queueMicrotask(()=>{M===e&&(M=void 0)}))}function Pe(){let e=M;return M=void 0,e}var Le=async(e,t)=>{let o=vt(e);if(o===void 0)return e;if(await o.ready,typeof t=="function"){let s=o.watchExports(r=>t(r,s))}return o.exports},xe=async e=>{let t=vt(e);return await t.ready,t},vt=e=>{let t=Pe();if(t!==void 0)return t;let s=G().manager.internals.resolveExports(e);if(s!==void 0)return s;if(Wt(e))return e},z={setter:!1,getter:!1,readOnly:!1},B=new WeakMap,Bt;Bt=tt;var bt=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new b,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[Bt]=!0,this.ready=this._ready.promise,this._exports=It(this),this._exportWatchers=new Set;let t=e??G(new.target.name);this.component=t,this.component.addController(this),et(this),this.component.manager===void 0||queueMicrotask(()=>this.catchUpLifecycle())}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?It(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return x(this.component),Le}get useRef(){return x(this.component),xe}get useRefSync(){return x(this.component),vt}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await I(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(I)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(Ht,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(Ht,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){x(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(s=>{typeof s=="function"?this._lifecycleCleanups.push(s):typeof s=="object"&&typeof s.remove=="function"&&this._lifecycleCleanups.push(s.remove)})}};function Ht(e){p(e,void 0,this)}var Gt=bt;function It(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(o,s,r){if(!(De.has(s)&&s in o&&o[s]===t)&&(s in o||s in Promise.prototype||typeof s=="symbol"))return typeof o=="function"?o[s]:Reflect.get(o,s,r)},set:(o,s,r,n)=>Reflect.set(o,s,r,n)});return t}var De=new Set(["exports","_exports"]);function ot(e,t,o){let s=Object.keys(e),r=s.length;L===void 0&&queueMicrotask(q),L??(L=new Map);let n=L.get(e);return n===void 0&&(n={callbacks:[],keyCount:r},L.set(e,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(s)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[r];a===void 0?c(void 0):e[a]===o?c(a):c(void 0)}),o}var L=void 0;function q(){Array.from(L?.entries()??[]).forEach(([e,{callbacks:t}])=>{let o=Object.keys(e);t.forEach(s=>s(o))}),L=void 0}function st(e,t,o){var s;let r=t,n=e.manager.internals;(s=n.allWatchers)[r]??(s[r]=[]);let i=n.allWatchers[r],c=o,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var qt=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([o,[s]])=>{var r;s&2048&&((r=t.setters)[o]??(r[o]=[]),t.setters[o].push(t.readonlySetter))})},this.trackedValue=_t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,o,s)=>{if(z.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let o=this.keyTrackers;this.trackedValue=_t,this.keyTrackers=[],o.forEach(s=>s(e,t))}getSetProxy(e){let t=this.component,o=t.constructor.prototype;if(this._getSetProxy(o,e,"class"),t.manager.isLit)return;let s=t.el.constructor.prototype;o!==s&&this._getSetProxy(s,e,"html")}_getSetProxy(e,t,o){let s=this.component,r=Vt(s,t),n;do n=Object.getOwnPropertyDescriptor(e,t);while(!n&&(e=Object.getPrototypeOf(e)));if(!n)return;let i=n.get,c=n.set,a=X in i,l=X in c;if(a&&l)return;let d=!a,h=!l,f=d?function(){let _=i.call(this),E=B.get(this);if(z.getter||E===void 0)return _;let R=E.manager.internals;_=R.accessorGetter[t](_,t);let y=R.getters[t]??gt;for(let C=0;C<y.length;C++)_=y[C](_,t);return _}:i,g=h?function(_){let E=i.call(this),R=B.get(this);if(R===void 0){c.call(this,_);return}let y=R.manager.isLit?_??void 0:jt(_,r),C=R.manager.internals;if(y===E)c.call(this,y);else{let Tt=z.setter?gt:C.setters[t]??gt;for(let H=0;H<Tt.length&&(y=Tt[H](y,E,t),y!==E);H++);y=C.accessorSetter[t](y,E,t),c.call(this,y),y!==E&&C.enabledWatchers[t]?.forEach(H=>H(y,E,t))}C.keyTrackers.length>0&&C?.firePropTrackers(t,_)}:c;d&&(f[X]=!0),h&&(g[X]=!0),Object.defineProperty(e,t,{...n,get:f,set:g})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},gt=[],X=Symbol(),_t=Symbol();function Ft(e,t,o){let s=e.manager.internals;return s.trackedValue!==_t&&s.trackedValue!==o&&s.firePropTrackers(void 0,void 0),s.keyTrackers.length===0&&queueMicrotask(()=>s.firePropTrackers(void 0,void 0)),s.trackedValue=o,s.keyTrackers.push((r,n)=>p(t,void 0,o===n?r:void 0)),o}function Kt(e,t,o){let s=Array.isArray(e)?e:[e],r=s.length+1,n=c=>{r-=1,c!==void 0&&(r=Math.min(r,0)),r===0&&t(c)};s.forEach(c=>ot(c,a=>n(a===void 0?void 0:{key:a,host:c,isReactive:!1}),o));let i=s.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&Ft(i,c=>n(c===void 0?void 0:{key:c,host:i,isReactive:!0}),o),o}function Yt(e){z.readOnly=!0;try{return e()}finally{z.readOnly=!1}}var Jt=e=>(...t)=>{let o=zt(),s=new e(...t),r=s.exports;et(o.at(-1));let n=s.component.manager.internals;n.markExports(s,r),s.watchExports(c=>n.markExports(s,c)),Se(s);let i=[s.component,...o].reverse();return Kt(i,c=>c===void 0?void 0:Te(s,c,r),r)};function Te(e,{host:t,key:o,isReactive:s},r){let n=t,i=n[o]!==e.exports,c=n[o]!==r,a=r!==e.exports;if(i&&!c&&a&&(n[o]=e.exports),t===e.component){if(s){let d=e.component.manager.internals;c&&d.markExports(e,n[o]),st(e.component,o,h=>{h!==e.exports&&d.markExports(e,h)})}e.assignedProperty=s?void 0:o}e.watchExports(()=>{if(n[o]===e.exports)return;let d=e.component.manager;d.internals.setters[o]?.includes(d.internals.readonlySetter)?Yt(()=>{n[o]=e.exports}):n[o]=e.exports})}var Zt=(e,t)=>new Ne(e,t),Ne=class extends Gt{constructor(e,t){let o="addController"in e,s=new Set;function r(a){s.add(a),!(tt in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function n(a){s.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=r,i.removeController=n,!o){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new qt(this.component),this.destroyed=!1,this._updatePromise=new b,this._originalLifecycles={},this.isLit=o,this.component.manager=this,Mt(e,o),this._controllers=s,this.exports=void 0,this.hasDestroy=Et in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=Qt,c.accessorSetter[a]=Qt,c.getSetProxy(a)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),et(void 0),x(e),B.set(e.el,e),B.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,o=e.el===e;this._originalLifecycles={_connectedCallback:t||o?void 0:e.connectedCallback,_disconnectedCallback:t||o?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let s=this._connectedCallback.bind(this),r=this._disconnectedCallback.bind(this),n=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:s,hostDisconnected:r,hostUpdate:n,hostUpdated:i}):(e.connectedCallback=s,e.disconnectedCallback=r,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=n,e.componentDidUpdate=i),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Et} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,q(),e.enableReadonly?.(),this._controllers.forEach(Ue),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Re),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Me)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&st(this.component,Et,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(je),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(Ve,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(He,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new b,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Ie),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=Ut(e,ke)}}},Et="autoDestroyDisabled",ke=1e3;var Qt=e=>e;function Ue(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function Re(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function Me(e){"triggerLoad"in e?await e.triggerLoad():await I(e.hostLoad,e)}function je(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function Ve(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function He(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function Ie(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var Xt=e=>ze(void 0,e);var We=class extends bt{constructor(e,t){super(e);let o=this.exports;try{x(this.component);let s=t(this.component,this),r=this.exports!==o;if(s instanceof Promise){r||this.setProvisionalExports(s);let n=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await n)}else(!r||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}},ze=Jt(We);var Mo=Xt;var Vo=e=>(t={})=>Xt((o,s)=>{let r=Nt(o.el),n={_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0},i=o;queueMicrotask(()=>s.onLifecycle(()=>kt(o.el,e("./assets"),({t9nLocale:a,t9nStrings:l,lang:d})=>{let h={...l,_lang:d,_t9nLocale:a,_loading:!1};s.exports=h;let f=l.componentLabel??l.widgetLabel;typeof f=="string"&&"label"in o&&o.label==null&&(o.label??(o.label=f)),c(i.messageOverrides)},t.name)));function c(a){let l=s.exports,d=l._original??l,h=te(d,a);a&&(h._original=d),s.exports=h}return"messageOverrides"in i&&s.onLifecycle(()=>st(i,"messageOverrides",c)),t.blocking?(s.setProvisionalExports(n,!1),s.ready):n});function te(e,t){if(!t)return e;let o={...e};return Object.entries(t).forEach(([s,r])=>{typeof r=="object"?o[s]=te(e[s],r):o[s]=r??e[s]}),o}var rt=globalThis,nt=rt.ShadowRoot&&(rt.ShadyCSS===void 0||rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ct=Symbol(),ee=new WeakMap,F=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==Ct)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o,o=this.t;if(nt&&t===void 0){let s=o!==void 0&&o.length===1;s&&(t=ee.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ee.set(o,t))}return t}toString(){return this.cssText}},oe=e=>new F(typeof e=="string"?e:e+"",void 0,Ct),Be=(e,...t)=>{let o=e.length===1?e[0]:t.reduce((s,r,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]);return new F(o,e,Ct)},$t=(e,t)=>{if(nt)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let s=document.createElement("style"),r=rt.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=o.cssText,e.appendChild(s)}},it=nt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(let s of t.cssRules)o+=s.cssText;return oe(o)})(e):e;var At=globalThis,at=At.trustedTypes,se=at?at.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ot="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+$,Ge=`<${St}>`,N=document,Y=()=>N.createComment(""),J=e=>e===null||typeof e!="object"&&typeof e!="function",Pt=Array.isArray,le=e=>Pt(e)||typeof e?.[Symbol.iterator]=="function",wt=`[
|
|
7
|
-
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,re=/-->/g,ne=/>/g,D=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
|
|
8
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ie=/'/g,ae=/"/g,he=/^(?:script|style|textarea|title)$/i,Lt=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Bo=Lt(1),Go=Lt(2),qo=Lt(3),m=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ce=new WeakMap,T=N.createTreeWalker(N,129);function de(e,t){if(!Pt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return se!==void 0?se.createHTML(t):t}var pe=(e,t)=>{let o=e.length-1,s=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=K;for(let c=0;c<o;c++){let a=e[c],l,d,h=-1,f=0;for(;f<a.length&&(i.lastIndex=f,d=i.exec(a),d!==null);)f=i.lastIndex,i===K?d[1]==="!--"?i=re:d[1]!==void 0?i=ne:d[2]!==void 0?(he.test(d[2])&&(r=RegExp("</"+d[2],"g")),i=D):d[3]!==void 0&&(i=D):i===D?d[0]===">"?(i=r??K,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?D:d[3]==='"'?ae:ie):i===ae||i===ie?i=D:i===re||i===ne?i=K:(i=D,r=void 0);let g=i===D&&e[c+1].startsWith("/>")?" ":"";n+=i===K?a+Ge:h>=0?(s.push(l),a.slice(0,h)+Ot+a.slice(h)+$+g):a+$+(h===-2?c:g)}return[de(e,n+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=class e{constructor({strings:t,_$litType$:o},s){let r;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,d]=pe(t,o);if(this.el=e.createElement(l,s),T.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=T.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(Ot)){let f=d[i++],g=r.getAttribute(h).split($),S=/([.?@])?(.*)/.exec(f);a.push({type:1,index:n,name:S[2],strings:g,ctor:S[1]==="."?lt:S[1]==="?"?ht:S[1]==="@"?dt:U}),r.removeAttribute(h)}else h.startsWith($)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(he.test(r.tagName)){let h=r.textContent.split($),f=h.length-1;if(f>0){r.textContent=at?at.emptyScript:"";for(let g=0;g<f;g++)r.append(h[g],Y()),T.nextNode(),a.push({type:2,index:++n});r.append(h[f],Y())}}}else if(r.nodeType===8)if(r.data===St)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf($,h+1))!==-1;)a.push({type:7,index:n}),h+=$.length-1}n++}}static createElement(t,o){let s=N.createElement("template");return s.innerHTML=t,s}};function k(e,t,o=e,s){if(t===m)return t;let r=s!==void 0?o.o?.[s]:o.l,n=J(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,o,s)),s!==void 0?(o.o??=[])[s]=r:o.l=r),r!==void 0&&(t=k(e,r._$AS(e,t.values),r,s)),t}var ct=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:s}=this._$AD,r=(t?.creationScope??N).importNode(o,!0);T.currentNode=r;let n=T.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new j(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new pt(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=T.nextNode(),i++)}return T.currentNode=N,r}p(t){let o=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,o),o+=s.strings.length-2):s._$AI(t[o])),o++}},j=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,o,s,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=s,this.options=r,this.v=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=k(this,t,o),J(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==m&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):le(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&J(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(de(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(o);else{let n=new ct(r,this),i=n.u(this.options);n.p(o),this.T(i),this._$AH=n}}_$AC(t){let o=ce.get(t.strings);return o===void 0&&ce.set(t.strings,o=new Q(t)),o}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,s,r=0;for(let n of t)r===o.length?o.push(s=new e(this.O(Y()),this.O(Y()),this,this.options)):s=o[r],s._$AI(n),r++;r<o.length&&(this._$AR(s&&s._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,s,r,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}_$AI(t,o=this,s,r){let n=this.strings,i=!1;if(n===void 0)t=k(this,t,o,0),i=!J(t)||t!==this._$AH&&t!==m,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=k(this,c[s+a],o,a),l===m&&(l=this._$AH[a]),i||=!J(l)||l!==this._$AH[a],l===u?t=u:t!==u&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!r&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},lt=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},ht=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},dt=class extends U{constructor(t,o,s,r,n){super(t,o,s,r,n),this.type=5}_$AI(t,o=this){if((t=k(this,t,o,0)??u)===m)return;let s=this._$AH,r=t===u&&s!==u||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==u&&(s===u||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},pt=class{constructor(t,o,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){k(this,t)}},ue={M:Ot,P:$,A:St,C:1,L:pe,R:ct,D:le,V:k,I:j,H:U,N:ht,U:dt,B:lt,F:pt},qe=At.litHtmlPolyfillSupport;qe?.(Q,j),(At.litHtmlVersions??=[]).push("3.2.0");var me=(e,t,o)=>{let s=o?.renderBefore??t,r=s._$litPart$;if(r===void 0){let n=o?.renderBefore??null;s._$litPart$=r=new j(t.insertBefore(Y(),n),n,void 0,o??{})}return r._$AI(e),r};var{is:Fe,defineProperty:Ke,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:Je,getOwnPropertySymbols:Qe,getPrototypeOf:Ze}=Object,mt=globalThis,fe=mt.trustedTypes,Xe=fe?fe.emptyScript:"",to=mt.reactiveElementPolyfillSupport,Z=(e,t)=>e,ut={toAttribute(e,t){switch(t){case Boolean:e=e?Xe:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},xt=(e,t)=>!Fe(e,t),ye={attribute:!0,type:String,converter:ut,reflect:!1,hasChanged:xt};Symbol.metadata??=Symbol("metadata"),mt.litPropertyMetadata??=new WeakMap;var w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=ye){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,o);r!==void 0&&Ke(this.prototype,t,r)}}static getPropertyDescriptor(t,o,s){let{get:r,set:n}=Ye(this.prototype,t)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return r?.call(this)},set(i){let c=r?.call(this);n.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ye}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;let t=Ze(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){let o=this.properties,s=[...Je(o),...Qe(o)];for(let r of s)this.createProperty(r,o[r])}let t=this[Symbol.metadata];if(t!==null){let o=litPropertyMetadata.get(t);if(o!==void 0)for(let[s,r]of o)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[o,s]of this.elementProperties){let r=this._$Eu(o,s);r!==void 0&&this._$Eh.set(r,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let o=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)o.unshift(it(r))}else t!==void 0&&o.push(it(t));return o}static _$Eu(t,o){let s=o.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,o=this.constructor.elementProperties;for(let s of o.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $t(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,o,s){this._$AK(t,s)}_$EC(t,o){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:ut).toAttribute(o,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,o){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let n=s.getPropertyOptions(r),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:ut;this._$Em=r,this[r]=i.fromAttribute(o,n.type),this._$Em=null}}requestUpdate(t,o,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??xt)(this[t],o))return;this.P(t,o,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,o,s){this._$AL.has(t)||this._$AL.set(t,o),s.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,n]of s)n.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],n)}let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(o)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[Z("elementProperties")]=new Map,w[Z("finalized")]=new Map,to?.({ReactiveElement:w}),(mt.reactiveElementVersions??=[]).push("2.0.4");var A=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=me(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return m}};A._$litElement$=!0,A.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:A});var eo=globalThis.litElementPolyfillSupport;eo?.({LitElement:A});(globalThis.litElementVersions??=[]).push("4.1.0");var v={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},V=e=>(...t)=>({_$litDirective$:e,values:t}),O=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,s){this.t=t,this._$AM=o,this.i=s}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};var ge=V(class extends O{constructor(e){if(super(e),e.type!==v.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let o=e.element.classList;for(let s of this.st)s in t||(o.remove(s),this.st.delete(s));for(let s in t){let r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(o.add(s),this.st.add(s)):(o.remove(s),this.st.delete(s)))}return m}});var _e="important",oo=" !"+_e,bs=V(class extends O{constructor(e){if(super(e),e.type!==v.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,o)=>{let s=e[o];return s==null?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[t]){let{style:o}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?o.removeProperty(s):o[s]=null);for(let s in t){let r=t[s];if(r!=null){this.ft.add(s);let n=typeof r=="string"&&r.endsWith(oo);s.includes("-")||n?o.setProperty(s,n?r.slice(0,-11):r,n?_e:""):o[s]=r}}return m}});var{I:so}=ue;var be=e=>e.strings===void 0,ve=()=>document.createComment(""),Os=(e,t,o)=>{let s=e._$AA.parentNode,r=t===void 0?e._$AB:t._$AA;if(o===void 0){let n=s.insertBefore(ve(),r),i=s.insertBefore(ve(),r);o=new so(n,i,e,e.options)}else{let n=o._$AB.nextSibling,i=o._$AM,c=i!==e;if(c){let a;o._$AQ?.(e),o._$AM=e,o._$AP!==void 0&&(a=e._$AU)!==i._$AU&&o._$AP(a)}if(n!==r||c){let a=o._$AA;for(;a!==n;){let l=a.nextSibling;s.insertBefore(a,r),a=l}}}return o},Ss=(e,t,o=e)=>(e._$AI(t,o),e),ro={},Ee=(e,t=ro)=>e._$AH=t,Ps=e=>e._$AH,Ls=e=>{e._$AP?.(!1,!0);let t=e._$AA,o=e._$AB.nextSibling;for(;t!==o;){let s=t.nextSibling;t.remove(),t=s}};var ks=V(class extends O{constructor(e){if(super(e),e.type!==v.PROPERTY&&e.type!==v.ATTRIBUTE&&e.type!==v.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!be(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===m||t===u)return t;let o=e.element,s=e.name;if(e.type===v.PROPERTY){if(t===o[s])return m}else if(e.type===v.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(s))return m}else if(e.type===v.ATTRIBUTE&&o.getAttribute(s)===t+"")return m;return Ee(e),t}});var io=";",Dt=",",ao=":",$e=(e="",t={},o=G())=>{let s={emit:r=>{e===""&&q();let n=new CustomEvent(e,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return o.el.dispatchEvent(n),n}};return e===""&&ot(o,r=>{e=r},s),s},Fs=$e.bind(null,"");function we(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let o=t;return o.manager?.loadedCalled||o._offspring.push(e),o._postLoad.promise}return!1}var Ce={},Ks=(e,t)=>function(o,s){if(!globalThis.customElements)return;let r=(s??o??{}).resourcesUrl;r&&e.setAssetPath(r),Object.entries(t).forEach(co)};function co([e,[t,o=""]]){if(customElements.get(e))return;let[s,r,n]=o.split(io),i=s?s?.split(Dt).map(Ae):void 0,c=i?.map(([l])=>l),a=class extends ho{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=r?r?.split(Dt):void 0}static{this._syncMethods=n?.split(Dt)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var ft=Object.defineProperty;function Ae(e){let t=e.split(ao);return t.length===1?[t[0],yt(t[0])]:t}var lo=globalThis.HTMLElement??Ae,ho=class extends lo{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new b,this._postLoaded=new b,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){ft(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){ft(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){ft(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=t[o],delete t[o])})}attributeChangedCallback(e,t,o){this._litElement?.attributeChangedCallback(e,t,o),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=we(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let t=this.constructor,o=t._name,s=Object.values(e).find(c=>c.tagName===o),r=`${o}--lazy`;t._LitConstructor||(t._LitConstructor=s,s.prototype.removeAttribute=function(c){HTMLElement.prototype.removeAttribute.call(this.el,c)},s.prototype.setAttribute=function(c,a){HTMLElement.prototype.setAttribute.call(this.el,c,a)},ft(s.prototype,"isConnected",{get(){return this.el.isConnected}}),customElements.define(r,s)),s.lazy=this;let n=document.createElement(r);s.lazy=void 0,this._litElement=n,this._pendingAttributes.forEach(c=>{let a=this.getAttribute(c);n.attributeChangedCallback(c,null,a)}),Object.entries(this._store).forEach(po,n),this._store=n;let i=this.isConnected;(i||this._ancestorLoad)&&(n.connectedCallback?.(),i||n.disconnectedCallback())}};function po([e,t]){this[e]=t}var uo=()=>{},mo=class Oe extends A{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=Zt(this),this._postLoad=this.constructor.lazy?._postLoad??new b,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new b,this._enableUpdating=this.enableUpdating,this.enableUpdating=uo;let t=Oe.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let o=super.finalizeStyles(t),s=this.shadowRootOptions===Ce;return this.runtime?.commonStyles===void 0||s?o:[this.runtime.commonStyles,...o]}static createProperty(t,o){let s=typeof o=="number"?o:Array.isArray(o)?o[0]:0,r=Array.isArray(o)?o[1]:void 0;super.createProperty(t,{attribute:s&1&&typeof t=="string"?yt(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),...r})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(o=>{this._postLoaded.reject(o),setTimeout(()=>{throw o})}))}createRenderRoot(){let t=this.el.shadowRoot,o=this.constructor,s=o.shadowRootOptions,r=t??(s===Ce?this.el:this.el.attachShadow(s));if(Object.defineProperty(this,"shadowRoot",{value:r}),t)return A.prototype.createRenderRoot.call(this),t;if(this.isConnected){let n=r.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...o.elementStyles.map(i=>"styleSheet"in i?i.styleSheet:i)]}return r}async _load(){let t=this.el._ancestorLoad??we(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let o=this._offspring.filter(s=>!s.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async s=>await s.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,o,s){let r=o?.bind(this)??o;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,o,s,r){let n=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(o,n,r),()=>t.removeEventListener(o,n,r)))}async componentOnReady(){return await this._postLoaded.promise,this}};mo.$createEvent=$e;function fo(e){let t,o=r=>{t=new URL(r,globalThis.location?.href).href},s={...e,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:o,customElement(r,n){n.runtime=s,n.tagName=r,customElements.get(r)||customElements.define(r,n)}};return o(e.defaultAssetPath),s}var Ys=e=>typeof e=="object"&&e!=null?ge(e):e,Js=u,yo=fo({defaultAssetPath:"https://jsdev.arcgis.com/coding-components/next/",hydratedAttribute:"hydrated"}),{customElement:Qs,getAssetPath:Zs,setAssetPath:Xs}=yo;export{Mo as a,Vo as b,Be as c,Bo as d,m as e,u as f,v as g,V as h,O as i,be as j,Os as k,Ss as l,Ee as m,Ps as n,Ls as o,Fs as p,Ce as q,Ks as r,mo as s,Ys as t,Js as u,yo as v,Qs as w,Zs as x};
|