@arcgis/coding-components 4.31.0-next.55 → 4.31.0-next.56
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/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +32 -32
- package/dist/arcgis-coding-components/assets/sql-expression-fields/t9n/sql-expression-fields.t9n.en.json +4 -0
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-773d9ba4.js → p-0048c7be.js} +2 -2
- package/dist/arcgis-coding-components/p-3966b909.entry.js +6 -0
- package/dist/arcgis-coding-components/p-47da1193.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-5cf73c57.js → p-4afbb375.js} +1 -1
- package/dist/arcgis-coding-components/{p-98bc0e2e.js → p-4d15b7fb.js} +2 -2
- package/dist/arcgis-coding-components/{p-80b0534e.js → p-4d8c4601.js} +2 -2
- package/dist/arcgis-coding-components/{p-df8755a6.js → p-515abc51.js} +1 -1
- package/dist/arcgis-coding-components/{p-091cdb1e.js → p-5285c444.js} +2 -2
- package/dist/arcgis-coding-components/p-529e06e1.js +6 -0
- package/dist/arcgis-coding-components/{p-a6baba61.js → p-605de796.js} +9 -9
- package/dist/arcgis-coding-components/{p-74e53b4a.js → p-8afe732b.js} +2 -2
- package/dist/arcgis-coding-components/{p-ba514722.js → p-9e8d27e9.js} +2 -2
- package/dist/arcgis-coding-components/{p-67b27736.js → p-b620b06c.js} +3 -3
- package/dist/arcgis-coding-components/{p-d297077d.js → p-bf988dbf.js} +2 -2
- package/dist/arcgis-coding-components/{p-141487fe.js → p-d6a50105.js} +2 -2
- package/dist/arcgis-coding-components/{p-32cb6ea2.js → p-dbc5c2e8.js} +1 -1
- package/dist/arcgis-coding-components/{p-0e602e10.js → p-e36a3779.js} +2 -2
- package/dist/arcgis-coding-components/p-f2a42428.entry.js +6 -0
- package/dist/cjs/{app-globals-e6c77e1e.js → app-globals-0b20f844.js} +1 -1
- package/dist/cjs/{arcade-defaults-a9946815.js → arcade-defaults-d588ea90.js} +4 -4
- package/dist/cjs/{arcade-mode-7b6729b3.js → arcade-mode-23964e19.js} +2 -2
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +10 -11
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +5 -6
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +16 -10
- package/dist/cjs/{css-0e5b9fb9.js → css-1527ad06.js} +1 -1
- package/dist/cjs/{cssMode-3d5ea09f.js → cssMode-266600eb.js} +2 -2
- package/dist/cjs/{html-baccaba5.js → html-c79594b0.js} +2 -2
- package/dist/cjs/{htmlMode-54ec4b3d.js → htmlMode-9f7c4794.js} +2 -2
- package/dist/cjs/{index-9e74612d.js → index-a6a79883.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-ed0c5ba8.js → javascript-f757ee11.js} +3 -3
- package/dist/cjs/{jsonMode-e2e8cbc6.js → jsonMode-730c12d6.js} +2 -2
- package/dist/cjs/{language-defaults-base-277ce995.js → language-defaults-base-f992e8fd.js} +9 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-a54696c1.js → sql-expr-defaults-14e3c0f4.js} +108 -8
- package/dist/cjs/{sql-expr-mode-65d156b7.js → sql-expr-mode-5cf780b5.js} +4 -4
- package/dist/cjs/{tsMode-5e037421.js → tsMode-f009817f.js} +2 -2
- package/dist/cjs/{typescript-94a06ac9.js → typescript-b067d8ea.js} +2 -2
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +1 -1
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-W77CUVCX.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/language-defaults-base.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +1 -1
- package/dist/components/sql-expression-fields.js +14 -7
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-5e71a2db.js → app-globals-68a9d20e.js} +1 -1
- package/dist/esm/{arcade-defaults-880f5e12.js → arcade-defaults-06fa8817.js} +4 -4
- package/dist/esm/{arcade-mode-970a9dae.js → arcade-mode-e2e247bd.js} +2 -2
- package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -6
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -5
- package/dist/esm/arcgis-sql-expression-fields.entry.js +16 -10
- package/dist/esm/{css-f6ef0a8a.js → css-9bd3c065.js} +1 -1
- package/dist/esm/{cssMode-c9706c47.js → cssMode-b0760052.js} +2 -2
- package/dist/esm/{html-adf0ac7b.js → html-bccc0bb4.js} +2 -2
- package/dist/esm/{htmlMode-f5b54f77.js → htmlMode-d49b807b.js} +2 -2
- package/dist/esm/{index-542987c6.js → index-b5d43ca7.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-17c964c5.js → javascript-56c5dd2a.js} +3 -3
- package/dist/esm/{jsonMode-f5377551.js → jsonMode-5e5edb97.js} +2 -2
- package/dist/esm/{language-defaults-base-cf9491cd.js → language-defaults-base-307b77e5.js} +9 -9
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-5d4eebcc.js → sql-expr-defaults-c2608671.js} +108 -5
- package/dist/esm/{sql-expr-mode-8e292455.js → sql-expr-mode-a76dd370.js} +4 -4
- package/dist/esm/{tsMode-64a3b7da.js → tsMode-81f755f4.js} +2 -2
- package/dist/esm/{typescript-80a07ece.js → typescript-63767e00.js} +2 -2
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/sql-expression-fields/sql-expression-fields.d.ts +17 -0
- package/package.json +11 -11
- package/dist/arcgis-coding-components/p-54f78145.entry.js +0 -6
- package/dist/arcgis-coding-components/p-8efb1de5.entry.js +0 -6
- package/dist/arcgis-coding-components/p-989e9ba7.js +0 -6
- package/dist/arcgis-coding-components/p-d43d29ac.js +0 -6
- package/dist/arcgis-coding-components/p-e54e0516.entry.js +0 -6
- package/dist/cjs/useT9n-4e453944.js +0 -115
- package/dist/esm/useT9n-917bda01.js +0 -113
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
12
|
-
require('./language-defaults-base-
|
|
10
|
+
const index = require('./index-a6a79883.js');
|
|
11
|
+
const sqlExprDefaults = require('./sql-expr-defaults-14e3c0f4.js');
|
|
12
|
+
require('./language-defaults-base-f992e8fd.js');
|
|
13
13
|
|
|
14
14
|
const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
|
|
15
15
|
const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
|
|
@@ -20,22 +20,28 @@ const SqlExpressionFields = class {
|
|
|
20
20
|
this.arcgisClose = index.createEvent(this, "arcgisClose", 3);
|
|
21
21
|
this.arcgisFieldSelected = index.createEvent(this, "arcgisFieldSelected", 3);
|
|
22
22
|
this.manager = sqlExprDefaults.useControllerManager(this);
|
|
23
|
+
this.messages = sqlExprDefaults.useT9n();
|
|
23
24
|
// #endregion
|
|
24
25
|
// #region Private Methods
|
|
25
26
|
this._handleSelectField = (event) => {
|
|
26
27
|
if (event.target instanceof HTMLElement) {
|
|
27
28
|
const tagName = event.target.tagName;
|
|
28
29
|
switch (tagName.toLowerCase()) {
|
|
29
|
-
case "calcite-list-item":
|
|
30
|
-
|
|
31
|
-
this.arcgisFieldSelected.emit(
|
|
30
|
+
case "calcite-list-item": {
|
|
31
|
+
const value = event.target.value;
|
|
32
|
+
this.arcgisFieldSelected.emit(value ?? "");
|
|
32
33
|
break;
|
|
34
|
+
}
|
|
33
35
|
case "calcite-action":
|
|
34
36
|
event.stopPropagation();
|
|
35
37
|
break;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
};
|
|
41
|
+
this._handleSelectDomain = (event) => {
|
|
42
|
+
const value = event.target.value;
|
|
43
|
+
this.arcgisFieldSelected.emit(value ? `'${value}'` : "");
|
|
44
|
+
};
|
|
39
45
|
this._emitClose = () => {
|
|
40
46
|
this.arcgisClose.emit();
|
|
41
47
|
};
|
|
@@ -57,14 +63,14 @@ const SqlExpressionFields = class {
|
|
|
57
63
|
render() {
|
|
58
64
|
const layer = sqlExprDefaults.sqlExprDefaults.getFeatureLayerForModel(this.modelId ?? "");
|
|
59
65
|
if (this.loading || !this.modelId || !layer) {
|
|
60
|
-
return index.h("calcite-block", { heading:
|
|
66
|
+
return index.h("calcite-block", { heading: this.messages.availablefields ?? "" });
|
|
61
67
|
}
|
|
62
|
-
return (index.h("calcite-flow", null, index.h("calcite-flow-item", { heading:
|
|
68
|
+
return (index.h("calcite-flow", null, index.h("calcite-flow-item", { heading: this.messages.availablefields ?? "", closable: true, onCalciteFlowItemClose: this._emitClose }, index.h("calcite-list", { filterEnabled: true }, layer.fields.map((field) => (index.h("calcite-list-item", { key: field.name, onClick: this._handleSelectField, label: field.name, description: field.alias, value: field.name }, field.domain && (index.h("calcite-action", { slot: "actions-end", text: "open", icon: "chevron-right", onClick: () => {
|
|
63
69
|
const domain = field.domain;
|
|
64
70
|
if (domain.type === "coded-value") {
|
|
65
71
|
this._flowItemRenderers = [
|
|
66
72
|
...this._flowItemRenderers,
|
|
67
|
-
() => (index.h("calcite-flow-item", { closable: true, heading: "
|
|
73
|
+
() => (index.h("calcite-flow-item", { closable: true, heading: this.messages.domainvalues ?? "", description: field.name, onCalciteFlowItemClose: this._emitClose }, index.h("calcite-list", null, domain.codedValues.map((value) => (index.h("calcite-list-item", { key: value.code, onClick: this._handleSelectDomain, label: value.name, description: String(value.code), value: String(value.code) })))))),
|
|
68
74
|
];
|
|
69
75
|
}
|
|
70
76
|
} }))))))), this._flowItemRenderers.map((renderer) => renderer())));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-f992e8fd.js');
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-f992e8fd.js');
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-f992e8fd.js');
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
11
|
-
require('./language-defaults-base-
|
|
12
|
-
require('./index-
|
|
10
|
+
const arcadeDefaults = require('./arcade-defaults-d588ea90.js');
|
|
11
|
+
require('./language-defaults-base-f992e8fd.js');
|
|
12
|
+
require('./index-a6a79883.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const typescript = require('./typescript-
|
|
9
|
-
require('./language-defaults-base-
|
|
8
|
+
const typescript = require('./typescript-b067d8ea.js');
|
|
9
|
+
require('./language-defaults-base-f992e8fd.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-f992e8fd.js');
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -120614,7 +120614,7 @@ registerLanguage({
|
|
|
120614
120614
|
mimetypes: ["text/css"],
|
|
120615
120615
|
loader: () => {
|
|
120616
120616
|
{
|
|
120617
|
-
return Promise.resolve().then(function () { return require('./css-
|
|
120617
|
+
return Promise.resolve().then(function () { return require('./css-1527ad06.js'); });
|
|
120618
120618
|
}
|
|
120619
120619
|
}
|
|
120620
120620
|
});
|
|
@@ -120632,7 +120632,7 @@ registerLanguage({
|
|
|
120632
120632
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120633
120633
|
loader: () => {
|
|
120634
120634
|
{
|
|
120635
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
120635
|
+
return Promise.resolve().then(function () { return require('./html-c79594b0.js'); });
|
|
120636
120636
|
}
|
|
120637
120637
|
}
|
|
120638
120638
|
});
|
|
@@ -120652,7 +120652,7 @@ registerLanguage({
|
|
|
120652
120652
|
mimetypes: ["text/javascript"],
|
|
120653
120653
|
loader: () => {
|
|
120654
120654
|
{
|
|
120655
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
120655
|
+
return Promise.resolve().then(function () { return require('./javascript-f757ee11.js'); });
|
|
120656
120656
|
}
|
|
120657
120657
|
}
|
|
120658
120658
|
});
|
|
@@ -120670,7 +120670,7 @@ registerLanguage({
|
|
|
120670
120670
|
mimetypes: ["text/typescript"],
|
|
120671
120671
|
loader: () => {
|
|
120672
120672
|
{
|
|
120673
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
120673
|
+
return Promise.resolve().then(function () { return require('./typescript-b067d8ea.js'); });
|
|
120674
120674
|
}
|
|
120675
120675
|
}
|
|
120676
120676
|
});
|
|
@@ -120791,7 +120791,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120791
120791
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120792
120792
|
function getMode$3() {
|
|
120793
120793
|
{
|
|
120794
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
120794
|
+
return Promise.resolve().then(function () { return require('./cssMode-266600eb.js'); });
|
|
120795
120795
|
}
|
|
120796
120796
|
}
|
|
120797
120797
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120916,7 +120916,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120916
120916
|
};
|
|
120917
120917
|
function getMode$2() {
|
|
120918
120918
|
{
|
|
120919
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
120919
|
+
return Promise.resolve().then(function () { return require('./htmlMode-9f7c4794.js'); });
|
|
120920
120920
|
}
|
|
120921
120921
|
}
|
|
120922
120922
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -121018,7 +121018,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
121018
121018
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
121019
121019
|
function getMode$1() {
|
|
121020
121020
|
{
|
|
121021
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
121021
|
+
return Promise.resolve().then(function () { return require('./jsonMode-730c12d6.js'); });
|
|
121022
121022
|
}
|
|
121023
121023
|
}
|
|
121024
121024
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121287,7 +121287,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121287
121287
|
};
|
|
121288
121288
|
function getMode() {
|
|
121289
121289
|
{
|
|
121290
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
121290
|
+
return Promise.resolve().then(function () { return require('./tsMode-f009817f.js'); });
|
|
121291
121291
|
}
|
|
121292
121292
|
}
|
|
121293
121293
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const appGlobals = require('./app-globals-
|
|
10
|
+
const index = require('./index-a6a79883.js');
|
|
11
|
+
const appGlobals = require('./app-globals-0b20f844.js');
|
|
12
12
|
|
|
13
13
|
const defineCustomElements = async (win, options) => {
|
|
14
14
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
9
|
-
const index = require('./index-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-f992e8fd.js');
|
|
9
|
+
const index = require('./index-a6a79883.js');
|
|
10
10
|
|
|
11
11
|
// src/framework.ts
|
|
12
12
|
function retrieveComponentMembers(component, isLit) {
|
|
@@ -1150,6 +1150,109 @@ function setProxy(controller, { host, key, isReactive: assignedToProp }, initial
|
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
|
+
// src/functional.ts
|
|
1154
|
+
var makeController = (constructor) => proxy(void 0, constructor);
|
|
1155
|
+
var FunctionalController = class extends Controller {
|
|
1156
|
+
constructor(component, constructor) {
|
|
1157
|
+
super(component);
|
|
1158
|
+
const originalExports = this.exports;
|
|
1159
|
+
try {
|
|
1160
|
+
setAmbientComponent(this.component);
|
|
1161
|
+
const value = constructor(this.component, this);
|
|
1162
|
+
const constructorChangedExports = this.exports !== originalExports;
|
|
1163
|
+
if (value instanceof Promise) {
|
|
1164
|
+
if (!constructorChangedExports) {
|
|
1165
|
+
this.setProvisionalExports(value);
|
|
1166
|
+
}
|
|
1167
|
+
const resolved = value.then((result) => {
|
|
1168
|
+
this.exports = result;
|
|
1169
|
+
super.catchUpLifecycle();
|
|
1170
|
+
}).catch((error) => {
|
|
1171
|
+
this._ready.reject(error);
|
|
1172
|
+
console.error(error);
|
|
1173
|
+
});
|
|
1174
|
+
this.onLoad(async () => await resolved);
|
|
1175
|
+
} else {
|
|
1176
|
+
if (!constructorChangedExports || value !== void 0) {
|
|
1177
|
+
this.exports = value;
|
|
1178
|
+
}
|
|
1179
|
+
queueMicrotask(() => super.catchUpLifecycle());
|
|
1180
|
+
}
|
|
1181
|
+
} catch (error) {
|
|
1182
|
+
this._ready.reject(error);
|
|
1183
|
+
console.error(error);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
/** Noop - will be called in the constructor instead */
|
|
1187
|
+
catchUpLifecycle() {
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
var proxy = proxyExports(FunctionalController);
|
|
1192
|
+
var makeT9nController = (getAssetPath) => (options = {}) => (
|
|
1193
|
+
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
1194
|
+
makeController((component, controller) => {
|
|
1195
|
+
const componentWithOverrides = component;
|
|
1196
|
+
controller.onLifecycle(
|
|
1197
|
+
() => languageDefaultsBase.startLocaleObserver(
|
|
1198
|
+
component.el,
|
|
1199
|
+
getAssetPath("./assets"),
|
|
1200
|
+
({ t9nLocale, t9nStrings, lang }) => {
|
|
1201
|
+
const withoutOverrides = {
|
|
1202
|
+
...t9nStrings,
|
|
1203
|
+
_lang: lang,
|
|
1204
|
+
_t9nLocale: t9nLocale,
|
|
1205
|
+
_loading: false
|
|
1206
|
+
};
|
|
1207
|
+
controller.exports = withoutOverrides;
|
|
1208
|
+
const label = t9nStrings.componentLabel ?? t9nStrings.widgetLabel;
|
|
1209
|
+
if (typeof label === "string" && "label" in component && component.label == null) {
|
|
1210
|
+
component.label ?? (component.label = label);
|
|
1211
|
+
}
|
|
1212
|
+
applyOverrides(componentWithOverrides.messageOverrides);
|
|
1213
|
+
},
|
|
1214
|
+
options.name
|
|
1215
|
+
)
|
|
1216
|
+
);
|
|
1217
|
+
function applyOverrides(messageOverrides) {
|
|
1218
|
+
const currentValue = controller.exports;
|
|
1219
|
+
const rawMessages = currentValue._original ?? currentValue;
|
|
1220
|
+
const updated = deepMerge(rawMessages, messageOverrides);
|
|
1221
|
+
updated._original = rawMessages;
|
|
1222
|
+
controller.exports = updated;
|
|
1223
|
+
}
|
|
1224
|
+
if ("messageOverrides" in componentWithOverrides) {
|
|
1225
|
+
controller.onLifecycle(() => watch(componentWithOverrides, "messageOverrides", applyOverrides));
|
|
1226
|
+
}
|
|
1227
|
+
if (options.blocking) {
|
|
1228
|
+
return controller.ready;
|
|
1229
|
+
}
|
|
1230
|
+
const locale = languageDefaultsBase.getElementLocales(component.el);
|
|
1231
|
+
const pending = {
|
|
1232
|
+
_lang: locale.lang,
|
|
1233
|
+
_t9nLocale: locale.t9nLocale,
|
|
1234
|
+
_loading: true
|
|
1235
|
+
};
|
|
1236
|
+
return pending;
|
|
1237
|
+
})
|
|
1238
|
+
);
|
|
1239
|
+
function deepMerge(original, overwrites) {
|
|
1240
|
+
if (!overwrites) {
|
|
1241
|
+
return original;
|
|
1242
|
+
}
|
|
1243
|
+
const merged = { ...original };
|
|
1244
|
+
Object.entries(overwrites).forEach(([key, value]) => {
|
|
1245
|
+
if (typeof value === "object") {
|
|
1246
|
+
merged[key] = deepMerge(original[key], value);
|
|
1247
|
+
} else {
|
|
1248
|
+
merged[key] = value ?? original[key];
|
|
1249
|
+
}
|
|
1250
|
+
});
|
|
1251
|
+
return merged;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
const useT9n = makeT9nController(index.getAssetPath);
|
|
1255
|
+
|
|
1153
1256
|
// #region convert editor profile to apiProfile
|
|
1154
1257
|
/**
|
|
1155
1258
|
* Converts an editor profile to an api profile.
|
|
@@ -1267,7 +1370,7 @@ async function getSqlExprWorker(uri) {
|
|
|
1267
1370
|
* @returns sql-expression mode module
|
|
1268
1371
|
*/
|
|
1269
1372
|
async function getMode() {
|
|
1270
|
-
return await Promise.resolve().then(function () { return require('./sql-expr-mode-
|
|
1373
|
+
return await Promise.resolve().then(function () { return require('./sql-expr-mode-5cf780b5.js'); });
|
|
1271
1374
|
}
|
|
1272
1375
|
|
|
1273
1376
|
const languageId = "arcgis-sql-expression";
|
|
@@ -1322,11 +1425,8 @@ class SqlExprDefaults extends languageDefaultsBase.LanguageDefaultsBase {
|
|
|
1322
1425
|
}
|
|
1323
1426
|
const sqlExprDefaults = new SqlExprDefaults();
|
|
1324
1427
|
|
|
1325
|
-
exports.Controller = Controller;
|
|
1326
1428
|
exports.getMode = getMode;
|
|
1327
1429
|
exports.getSet = getSet;
|
|
1328
|
-
exports.proxyExports = proxyExports;
|
|
1329
|
-
exports.setAmbientComponent = setAmbientComponent;
|
|
1330
1430
|
exports.sqlExprDefaults = sqlExprDefaults;
|
|
1331
1431
|
exports.useControllerManager = useControllerManager;
|
|
1332
|
-
exports.
|
|
1432
|
+
exports.useT9n = useT9n;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
9
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
10
|
-
require('./index-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-f992e8fd.js');
|
|
9
|
+
const sqlExprDefaults = require('./sql-expr-defaults-14e3c0f4.js');
|
|
10
|
+
require('./index-a6a79883.js');
|
|
11
11
|
|
|
12
12
|
// hold onto a promise that resolves when the worker is ready
|
|
13
13
|
let deferredWorker = new languageDefaultsBase.Deferred();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-f992e8fd.js');
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-f992e8fd.js');
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { Uri } from 'monaco-editor';
|
|
7
7
|
import { f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, L as LanguageDefaultsBase, E as EditorProfile } from './language-defaults-base.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
|
|
7
7
|
import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host, forceUpdate } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as importArcade, s as supportedFields } from './fields.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
|
|
7
7
|
import { u as useControllerManager } from './chunk-W77CUVCX.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { KeyCode } from 'monaco-editor';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
let resourceUrl = "https://js.arcgis.com/coding-components/next/";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisLanguageApiPanel$1, d as defineCustomElement$1 } from './language-api-panel.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { u as useControllerManager } from './chunk-W77CUVCX.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { S as SqlExpressionFields, d as defineCustomElement$1 } from './sql-expression-fields.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.56
|
|
5
5
|
*/
|
|
6
6
|
import { a as isNotUndefined, D as Deferred, k as safeAsyncCall, l as devToolsAwareTimeout, m as safeCall } from './index2.js';
|
|
7
7
|
|