@arcgis/coding-components 4.29.0-beta.98 → 4.29.0-beta.99
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/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-938f887f.js → p-0bab0228.js} +2 -2
- package/dist/arcgis-coding-components/{p-17ec5df5.js → p-457e3916.js} +2 -2
- package/dist/arcgis-coding-components/{p-b95e1afe.js → p-4648782b.js} +2 -2
- package/dist/arcgis-coding-components/{p-a5e854a6.entry.js → p-6d56a4b8.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-62c20e58.js → p-7e0e8ecc.js} +2 -2
- package/dist/arcgis-coding-components/{p-57eecfbc.js → p-7f9d3fdc.js} +1 -1
- package/dist/arcgis-coding-components/{p-52277c67.js → p-87d7ad9e.js} +1 -1
- package/dist/arcgis-coding-components/{p-19e852ca.js → p-a75f5087.js} +2 -2
- package/dist/arcgis-coding-components/{p-01bd9845.js → p-ad86a5f5.js} +11 -11
- package/dist/arcgis-coding-components/{p-4b73a136.js → p-e1cb02b3.js} +2 -2
- package/dist/arcgis-coding-components/{p-fc3b0e07.js → p-f23f7fee.js} +2 -2
- package/dist/arcgis-coding-components/{p-59f69d30.js → p-f75beb80.js} +3 -3
- package/dist/cjs/{arcade-defaults-34d2ca7a.js → arcade-defaults-5dd9ebb7.js} +24 -24
- package/dist/cjs/{arcade-mode-b37e58de.js → arcade-mode-0b4c53a1.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +33 -33
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{css-518baf18.js → css-fe7f8980.js} +1 -1
- package/dist/cjs/{cssMode-1afc41aa.js → cssMode-4c9b3a32.js} +3 -3
- package/dist/cjs/{html-50e3a85a.js → html-b044fbba.js} +3 -3
- package/dist/cjs/{htmlMode-5354d5ac.js → htmlMode-956a6ffa.js} +3 -3
- package/dist/cjs/{index-0a029bd8.js → index-aaceaf1f.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-51514382.js → javascript-6c55ac8b.js} +4 -4
- package/dist/cjs/{jsonMode-a5a10c9c.js → jsonMode-d83e322c.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-8f8ede29.js → tsMode-5c5ffa3e.js} +3 -3
- package/dist/cjs/{typescript-490dc9d7.js → typescript-6143656a.js} +3 -3
- package/dist/components/arcade-api.js +7 -7
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-defaults.js +8 -8
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +13 -13
- package/dist/components/arcade-suggestions.js +5 -5
- package/dist/components/arcade-variables.js +6 -6
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +6 -6
- 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-code-editor.js +1 -1
- package/dist/components/code-editor.js +4 -4
- package/dist/components/fields.js +1 -1
- package/dist/components/functional-components.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -3
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +3 -3
- package/dist/esm/{arcade-defaults-18fb859b.js → arcade-defaults-2d7283d4.js} +19 -19
- package/dist/esm/{arcade-mode-ffe5fbd3.js → arcade-mode-a8abe5af.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +33 -33
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{css-2f6adbcc.js → css-d31a02ca.js} +1 -1
- package/dist/esm/{cssMode-17af7d35.js → cssMode-5ee45e91.js} +3 -3
- package/dist/esm/{html-5b2772dd.js → html-5c2e488c.js} +3 -3
- package/dist/esm/{htmlMode-0a919718.js → htmlMode-376cd5e8.js} +3 -3
- package/dist/esm/{index-aed60412.js → index-1b265749.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-b9cd741d.js → javascript-13ddec2b.js} +4 -4
- package/dist/esm/{jsonMode-8e552acf.js → jsonMode-674e89d6.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-9a7cdb79.js → tsMode-4c4398d7.js} +3 -3
- package/dist/esm/{typescript-a07439c3.js → typescript-b328b622.js} +3 -3
- 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/package.json +8 -17
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
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 arcadeDefaults = require('./arcade-defaults-
|
|
10
|
+
const index = require('./index-aaceaf1f.js');
|
|
11
|
+
const arcadeDefaults = require('./arcade-defaults-5dd9ebb7.js');
|
|
12
12
|
|
|
13
13
|
async function colorizeCode(code) {
|
|
14
14
|
return await arcadeDefaults.editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -3024,7 +3024,7 @@ async function getArcadeWorker(uri) {
|
|
|
3024
3024
|
* @returns mode for arcade
|
|
3025
3025
|
*/
|
|
3026
3026
|
async function getMode() {
|
|
3027
|
-
return await Promise.resolve().then(function () { return require('./arcade-mode-
|
|
3027
|
+
return await Promise.resolve().then(function () { return require('./arcade-mode-0b4c53a1.js'); });
|
|
3028
3028
|
}
|
|
3029
3029
|
// Register the language in Monaco
|
|
3030
3030
|
arcadeDefaults.languages.register({
|
|
@@ -3108,7 +3108,7 @@ const ArcgisArcadeApi = class {
|
|
|
3108
3108
|
async componentWillLoad() {
|
|
3109
3109
|
this._colorizeStyle = generateColorizeStyles();
|
|
3110
3110
|
this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
|
|
3111
|
-
await arcadeDefaults.
|
|
3111
|
+
await arcadeDefaults.B(this, index.getAssetPath("./assets"));
|
|
3112
3112
|
arcadeDefaults.arcadeDefaults.onModelContextDidChange((key) => {
|
|
3113
3113
|
if (!this.modelId || key !== arcadeDefaults.Uri.parse(this.modelId).toString()) {
|
|
3114
3114
|
return;
|
|
@@ -3118,7 +3118,7 @@ const ArcgisArcadeApi = class {
|
|
|
3118
3118
|
this._updateApiLibrary();
|
|
3119
3119
|
}
|
|
3120
3120
|
disconnectedCallback() {
|
|
3121
|
-
arcadeDefaults.
|
|
3121
|
+
arcadeDefaults.H(this);
|
|
3122
3122
|
this._flowObserver?.disconnect();
|
|
3123
3123
|
this._themeChangedListner?.dispose();
|
|
3124
3124
|
}
|
|
@@ -3163,7 +3163,7 @@ const ArcgisArcadeApi = class {
|
|
|
3163
3163
|
// When switching between flow the same reference is reused
|
|
3164
3164
|
this._flowObserver = new MutationObserver(() => {
|
|
3165
3165
|
// Get the last panel and try to set focus on the input element
|
|
3166
|
-
arcadeDefaults.
|
|
3166
|
+
arcadeDefaults.F(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
3167
3167
|
});
|
|
3168
3168
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
3169
3169
|
}
|
|
@@ -3174,14 +3174,14 @@ const ArcgisArcadeApi = class {
|
|
|
3174
3174
|
if (!filteredApiItems.length) {
|
|
3175
3175
|
return null;
|
|
3176
3176
|
}
|
|
3177
|
-
return (index.h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (index.h("calcite-list-item", { label: arcadeDefaults.
|
|
3177
|
+
return (index.h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (index.h("calcite-list-item", { label: arcadeDefaults.Z(apiItem.completion.detail), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": apiItem }, index.h("calcite-action", { slot: "actions-end", text: this._t9nStrings?.expand ?? "Expand", icon: "chevron-right", iconFlipRtl: true, scale: "s", onClick: this._selectItem, "data-item": apiItem }))))));
|
|
3178
3178
|
}
|
|
3179
3179
|
renderApiItemFlowItem() {
|
|
3180
3180
|
const apiItem = this._selectedApiItem;
|
|
3181
3181
|
if (!apiItem) {
|
|
3182
3182
|
return null;
|
|
3183
3183
|
}
|
|
3184
|
-
return (index.h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (index.h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), index.h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => void e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), index.h("calcite-block", { open: true, heading: arcadeDefaults.
|
|
3184
|
+
return (index.h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (index.h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), index.h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => void e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), index.h("calcite-block", { open: true, heading: arcadeDefaults.Z(apiItem.completion.detail) }, index.h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (index.h("div", { ref: (e) => {
|
|
3185
3185
|
if (!e) {
|
|
3186
3186
|
return;
|
|
3187
3187
|
}
|
|
@@ -3495,7 +3495,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3495
3495
|
this.scriptChange = index.createEvent(this, "scriptChange", 3);
|
|
3496
3496
|
this.diagnosticsChange = index.createEvent(this, "diagnosticsChange", 3);
|
|
3497
3497
|
this._componentReadyDefer = new arcadeDefaults.h();
|
|
3498
|
-
this._modelId = arcadeDefaults.
|
|
3498
|
+
this._modelId = arcadeDefaults.U();
|
|
3499
3499
|
this._editorProfilePromise = Promise.resolve(undefined);
|
|
3500
3500
|
this._disposables = [];
|
|
3501
3501
|
this._executeScript = async () => {
|
|
@@ -3636,7 +3636,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3636
3636
|
* @internal
|
|
3637
3637
|
*/
|
|
3638
3638
|
async updateThemeColors(colorRules) {
|
|
3639
|
-
const theme = arcadeDefaults.
|
|
3639
|
+
const theme = arcadeDefaults.k(this._hostElement);
|
|
3640
3640
|
updateThemeColors(theme, colorRules);
|
|
3641
3641
|
if (colorRules === undefined) {
|
|
3642
3642
|
["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
|
|
@@ -3665,7 +3665,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3665
3665
|
// Starts a locale observer. It will load the correct t9n strings for the component
|
|
3666
3666
|
// when the locale changes. We also pass updateEditorProfile. It will be invoked the first
|
|
3667
3667
|
// and on each locale change. The profile has to be refreshed on locale change as well.
|
|
3668
|
-
await arcadeDefaults.
|
|
3668
|
+
await arcadeDefaults.B(this, assetsPath, async () => await this._updateEditorProfile());
|
|
3669
3669
|
}
|
|
3670
3670
|
async componentDidLoad() {
|
|
3671
3671
|
// Mark on component as ready.
|
|
@@ -3693,7 +3693,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3693
3693
|
await this._codeEditorElt?.setFocus();
|
|
3694
3694
|
}
|
|
3695
3695
|
disconnectedCallback() {
|
|
3696
|
-
arcadeDefaults.
|
|
3696
|
+
arcadeDefaults.H(this);
|
|
3697
3697
|
arcadeDefaults.arcadeDefaults.disposeApiContextForModel(this._modelId);
|
|
3698
3698
|
arcadeDefaults.arcadeDefaults.disposeEditorProfileForModel(this._modelId);
|
|
3699
3699
|
while (this._disposables.length) {
|
|
@@ -3887,7 +3887,7 @@ function renderSimpleValue(arcadeResult) {
|
|
|
3887
3887
|
case "null":
|
|
3888
3888
|
return index.h("span", { class: "constant-value" }, arcadeResult.type);
|
|
3889
3889
|
case "text":
|
|
3890
|
-
return index.h("span", { class: "string-value" }, arcadeDefaults.
|
|
3890
|
+
return index.h("span", { class: "string-value" }, arcadeDefaults.Q(arcadeResult.value));
|
|
3891
3891
|
case "number":
|
|
3892
3892
|
return index.h("span", { class: "number-value" }, arcadeResult.value.toString());
|
|
3893
3893
|
case "boolean":
|
|
@@ -3895,9 +3895,9 @@ function renderSimpleValue(arcadeResult) {
|
|
|
3895
3895
|
case "date":
|
|
3896
3896
|
return index.h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
|
|
3897
3897
|
case "dateOnly":
|
|
3898
|
-
return index.h("span", { class: "string-value" }, arcadeDefaults.
|
|
3898
|
+
return index.h("span", { class: "string-value" }, arcadeDefaults.Q(formatArcadeResultDateOnly(arcadeResult)));
|
|
3899
3899
|
case "time":
|
|
3900
|
-
return index.h("span", { class: "string-value" }, arcadeDefaults.
|
|
3900
|
+
return index.h("span", { class: "string-value" }, arcadeDefaults.Q(formatArcadeResultTimeOnly(arcadeResult)));
|
|
3901
3901
|
default:
|
|
3902
3902
|
return null;
|
|
3903
3903
|
}
|
|
@@ -3941,10 +3941,10 @@ const ArcgisArcadeResults = class {
|
|
|
3941
3941
|
//#endregion
|
|
3942
3942
|
// #region Component lifecycle events
|
|
3943
3943
|
async componentWillLoad() {
|
|
3944
|
-
await arcadeDefaults.
|
|
3944
|
+
await arcadeDefaults.B(this, index.getAssetPath("./assets"));
|
|
3945
3945
|
}
|
|
3946
3946
|
disconnectedCallback() {
|
|
3947
|
-
arcadeDefaults.
|
|
3947
|
+
arcadeDefaults.H(this);
|
|
3948
3948
|
}
|
|
3949
3949
|
// #endregion
|
|
3950
3950
|
//#region Private Methods
|
|
@@ -3971,18 +3971,18 @@ const ArcgisArcadeResults = class {
|
|
|
3971
3971
|
return index.h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
3972
3972
|
}
|
|
3973
3973
|
const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
|
|
3974
|
-
return (index.h("calcite-list", null, this.result ? (index.h(index.Fragment, null, index.h("calcite-list-item", { label: arcadeDefaults.
|
|
3974
|
+
return (index.h("calcite-list", null, this.result ? (index.h(index.Fragment, null, index.h("calcite-list-item", { label: arcadeDefaults.K(this._t9nStrings?.lastexecutionformat, {
|
|
3975
3975
|
timeStamp: new Intl.DateTimeFormat(this._t9nLocale, {
|
|
3976
3976
|
dateStyle: "medium",
|
|
3977
3977
|
timeStyle: "medium"
|
|
3978
3978
|
}).format(this.result.timeStamp)
|
|
3979
|
-
}) }, index.h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), index.h("calcite-list-item", { label: arcadeDefaults.
|
|
3979
|
+
}) }, index.h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), index.h("calcite-list-item", { label: arcadeDefaults.K(this._t9nStrings?.compilationtimeformat, {
|
|
3980
3980
|
time: new Intl.NumberFormat(this._t9nLocale, {
|
|
3981
3981
|
style: "unit",
|
|
3982
3982
|
unit: "millisecond",
|
|
3983
3983
|
maximumFractionDigits: 2
|
|
3984
3984
|
}).format(this.result.compilationTime ?? 0)
|
|
3985
|
-
}) }, index.h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), index.h("calcite-list-item", { label: arcadeDefaults.
|
|
3985
|
+
}) }, index.h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), index.h("calcite-list-item", { label: arcadeDefaults.K(this._t9nStrings?.executiontimeformat, {
|
|
3986
3986
|
time: new Intl.NumberFormat(this._t9nLocale, {
|
|
3987
3987
|
style: "unit",
|
|
3988
3988
|
unit: "millisecond",
|
|
@@ -3999,7 +3999,7 @@ const ArcgisArcadeResults = class {
|
|
|
3999
3999
|
}
|
|
4000
4000
|
switch (this.result?.type) {
|
|
4001
4001
|
case "error":
|
|
4002
|
-
return (index.h("div", { class: "result-value-simple flex-adjustable" }, arcadeDefaults.
|
|
4002
|
+
return (index.h("div", { class: "result-value-simple flex-adjustable" }, arcadeDefaults.K(this._t9nStrings?.executionerrorformat, {
|
|
4003
4003
|
message: this.result.value
|
|
4004
4004
|
})));
|
|
4005
4005
|
case "null":
|
|
@@ -4036,7 +4036,7 @@ const ArcgisArcadeResults = class {
|
|
|
4036
4036
|
renderArrayHeader(arcadeResult) {
|
|
4037
4037
|
const items = arcadeResult.value ?? [];
|
|
4038
4038
|
const leftoverCount = Math.max(items.length - MaxArrayItems, 0);
|
|
4039
|
-
return (index.h(index.Fragment, null, index.h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (index.h("span", null, "\u00A0", arcadeDefaults.
|
|
4039
|
+
return (index.h(index.Fragment, null, index.h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (index.h("span", null, "\u00A0", arcadeDefaults.K(this._t9nStrings?.showingfirstitemsformat, {
|
|
4040
4040
|
count: MaxArrayItems.toString()
|
|
4041
4041
|
}))) : null));
|
|
4042
4042
|
}
|
|
@@ -4082,7 +4082,7 @@ const ArcgisArcadeResults = class {
|
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
4084
|
renderFeatureSetLabel(arcadeResult) {
|
|
4085
|
-
return (index.h("div", { class: "value-type" }, index.h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (index.h("span", null, "\u00A0", arcadeDefaults.
|
|
4085
|
+
return (index.h("div", { class: "value-type" }, index.h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (index.h("span", null, "\u00A0", arcadeDefaults.K(this._t9nStrings?.showingfirstitemsformat, {
|
|
4086
4086
|
count: BatchSize.toString()
|
|
4087
4087
|
}))) : null));
|
|
4088
4088
|
}
|
|
@@ -4152,12 +4152,12 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4152
4152
|
async componentWillLoad() {
|
|
4153
4153
|
this._colorizeStyle = generateColorizeStyles();
|
|
4154
4154
|
this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
|
|
4155
|
-
await arcadeDefaults.
|
|
4155
|
+
await arcadeDefaults.B(this, index.getAssetPath("./assets"));
|
|
4156
4156
|
}
|
|
4157
4157
|
disconnectedCallback() {
|
|
4158
4158
|
this._flowObserver?.disconnect();
|
|
4159
4159
|
this._themeChangedListner?.dispose();
|
|
4160
|
-
arcadeDefaults.
|
|
4160
|
+
arcadeDefaults.H(this);
|
|
4161
4161
|
}
|
|
4162
4162
|
// #endregion
|
|
4163
4163
|
//#region Private Methods
|
|
@@ -4175,7 +4175,7 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4175
4175
|
// When switching between flow the same reference is reused
|
|
4176
4176
|
this._flowObserver = new MutationObserver(() => {
|
|
4177
4177
|
// Get the last panel and try to set focus on the input element
|
|
4178
|
-
arcadeDefaults.
|
|
4178
|
+
arcadeDefaults.F(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
4179
4179
|
});
|
|
4180
4180
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
4181
4181
|
}
|
|
@@ -4271,10 +4271,10 @@ const ArcgisArcadeVariables = class {
|
|
|
4271
4271
|
//#endregion
|
|
4272
4272
|
// #region Component lifecycle events
|
|
4273
4273
|
async componentWillLoad() {
|
|
4274
|
-
await arcadeDefaults.
|
|
4274
|
+
await arcadeDefaults.B(this, index.getAssetPath("./assets"));
|
|
4275
4275
|
}
|
|
4276
4276
|
disconnectedCallback() {
|
|
4277
|
-
arcadeDefaults.
|
|
4277
|
+
arcadeDefaults.H(this);
|
|
4278
4278
|
this._flowObserver?.disconnect();
|
|
4279
4279
|
}
|
|
4280
4280
|
// #endregion
|
|
@@ -4299,7 +4299,7 @@ const ArcgisArcadeVariables = class {
|
|
|
4299
4299
|
// When switching between flow the same reference is reused
|
|
4300
4300
|
this._flowObserver = new MutationObserver(() => {
|
|
4301
4301
|
// Get the last panel and try to set focus on the input element
|
|
4302
|
-
arcadeDefaults.
|
|
4302
|
+
arcadeDefaults.F(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
4303
4303
|
});
|
|
4304
4304
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
4305
4305
|
}
|
|
@@ -4327,7 +4327,7 @@ const ArcgisArcadeVariables = class {
|
|
|
4327
4327
|
}
|
|
4328
4328
|
renderEditorVariables(collection) {
|
|
4329
4329
|
// Filter the variables. Skip group, we will filter the children later on.
|
|
4330
|
-
const filterExpression = arcadeDefaults.
|
|
4330
|
+
const filterExpression = arcadeDefaults.D(this._filterValue);
|
|
4331
4331
|
const filteredVariables = collection.variables.filter((variable) => variable.passFilter(filterExpression));
|
|
4332
4332
|
if (!filteredVariables.length) {
|
|
4333
4333
|
return index.h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No item");
|
|
@@ -4382,7 +4382,7 @@ const ArcgisCodeEditor = class {
|
|
|
4382
4382
|
this._disposables = [];
|
|
4383
4383
|
this.value = undefined;
|
|
4384
4384
|
this.language = undefined;
|
|
4385
|
-
this.modelId = arcadeDefaults.
|
|
4385
|
+
this.modelId = arcadeDefaults.U();
|
|
4386
4386
|
}
|
|
4387
4387
|
valuePropChange(newValue, oldValue) {
|
|
4388
4388
|
if (!this._editorInstance || newValue === oldValue) {
|
|
@@ -4547,7 +4547,7 @@ const ArcgisCodeEditor = class {
|
|
|
4547
4547
|
// This is called the first time and subsequently by the Mutation Observer
|
|
4548
4548
|
// Figure out the theme by walking the ancestor path.
|
|
4549
4549
|
// If no theme is found then default to light.
|
|
4550
|
-
const theme = arcadeDefaults.
|
|
4550
|
+
const theme = arcadeDefaults.k(this._hostElt) === "light" ? "vs" : "vs-dark";
|
|
4551
4551
|
if (theme === this._currentTheme) {
|
|
4552
4552
|
return;
|
|
4553
4553
|
}
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
10
|
+
const index = require('./index-aaceaf1f.js');
|
|
11
11
|
|
|
12
12
|
/*
|
|
13
13
|
Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-5dd9ebb7.js');
|
|
9
|
+
require('./index-aaceaf1f.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-5dd9ebb7.js');
|
|
9
|
+
require('./index-aaceaf1f.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-5dd9ebb7.js');
|
|
9
|
+
require('./index-aaceaf1f.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/cjs/index.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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
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('./index-
|
|
10
|
+
const arcadeDefaults = require('./arcade-defaults-5dd9ebb7.js');
|
|
11
|
+
require('./index-aaceaf1f.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const typescript = require('./typescript-
|
|
9
|
-
require('./arcade-defaults-
|
|
10
|
-
require('./index-
|
|
8
|
+
const typescript = require('./typescript-6143656a.js');
|
|
9
|
+
require('./arcade-defaults-5dd9ebb7.js');
|
|
10
|
+
require('./index-aaceaf1f.js');
|
|
11
11
|
|
|
12
12
|
/*!-----------------------------------------------------------------------------
|
|
13
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-5dd9ebb7.js');
|
|
9
|
+
require('./index-aaceaf1f.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
10
|
+
const index = require('./index-aaceaf1f.js');
|
|
11
11
|
|
|
12
12
|
const defineCustomElements = (win, options) => {
|
|
13
13
|
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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-5dd9ebb7.js');
|
|
9
|
+
require('./index-aaceaf1f.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-5dd9ebb7.js');
|
|
9
|
+
require('./index-aaceaf1f.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizedAllCodeElements } from './markdown.js';
|
|
8
8
|
import { S as StickyFilterInput } from './functional-components.js';
|
|
9
9
|
import { f as filterCollection } from './utilities.js';
|
|
10
10
|
import { Uri } from 'monaco-editor';
|
|
11
|
-
import {
|
|
11
|
+
import { B, H, F, Z } from './index2.js';
|
|
12
12
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
13
13
|
import { g as getArcadeWorker } from './arcade-contribution.js';
|
|
14
14
|
import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
|
|
@@ -83,7 +83,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
|
|
|
83
83
|
async componentWillLoad() {
|
|
84
84
|
this._colorizeStyle = generateColorizeStyles();
|
|
85
85
|
this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
|
|
86
|
-
await
|
|
86
|
+
await B(this, getAssetPath("./assets"));
|
|
87
87
|
arcadeDefaults.onModelContextDidChange((key) => {
|
|
88
88
|
if (!this.modelId || key !== Uri.parse(this.modelId).toString()) {
|
|
89
89
|
return;
|
|
@@ -93,7 +93,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
|
|
|
93
93
|
this._updateApiLibrary();
|
|
94
94
|
}
|
|
95
95
|
disconnectedCallback() {
|
|
96
|
-
|
|
96
|
+
H(this);
|
|
97
97
|
this._flowObserver?.disconnect();
|
|
98
98
|
this._themeChangedListner?.dispose();
|
|
99
99
|
}
|
|
@@ -138,7 +138,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
|
|
|
138
138
|
// When switching between flow the same reference is reused
|
|
139
139
|
this._flowObserver = new MutationObserver(() => {
|
|
140
140
|
// Get the last panel and try to set focus on the input element
|
|
141
|
-
|
|
141
|
+
F(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
142
142
|
});
|
|
143
143
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
144
144
|
}
|
|
@@ -149,14 +149,14 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
|
|
|
149
149
|
if (!filteredApiItems.length) {
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
152
|
-
return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label:
|
|
152
|
+
return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: Z(apiItem.completion.detail), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": apiItem }, h("calcite-action", { slot: "actions-end", text: this._t9nStrings?.expand ?? "Expand", icon: "chevron-right", iconFlipRtl: true, scale: "s", onClick: this._selectItem, "data-item": apiItem }))))));
|
|
153
153
|
}
|
|
154
154
|
renderApiItemFlowItem() {
|
|
155
155
|
const apiItem = this._selectedApiItem;
|
|
156
156
|
if (!apiItem) {
|
|
157
157
|
return null;
|
|
158
158
|
}
|
|
159
|
-
return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => void e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading:
|
|
159
|
+
return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => void e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading: Z(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
|
|
160
160
|
if (!e) {
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
import { languages } from 'monaco-editor';
|
|
7
7
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
import { Emitter, Uri } from 'monaco-editor';
|
|
7
7
|
import { InsertTextMode, InsertTextFormat, CompletionItemKind } from 'vscode-languageserver-types';
|
|
8
8
|
import { i as importPortalPortalItem, a as importLayersFeatureLayer, b as importWebMap, s as supportedFields, n as newWebScene, c as importRequest, f as fieldTypeToIconName, d as fieldTypeToArcadeType } from './fields.js';
|
|
9
9
|
import { p as portalItemPageUrl } from './utilities.js';
|
|
10
|
-
import {
|
|
10
|
+
import { Y, e as ee, Z, K, E, N } from './index2.js';
|
|
11
11
|
import { getAssetPath } from '@stencil/core/internal/client';
|
|
12
12
|
|
|
13
13
|
async function newPortalItem(definition) {
|
|
@@ -475,9 +475,9 @@ class ProfileItemBase {
|
|
|
475
475
|
// If the component is under RTL, the string is messed up.
|
|
476
476
|
// It is converted from $feature to feature$, This is not acceptable since the label
|
|
477
477
|
// represents a variable name. We are adding in front of the $ sign a right to left mark.
|
|
478
|
-
return
|
|
478
|
+
return Z(this._label);
|
|
479
479
|
}
|
|
480
|
-
return
|
|
480
|
+
return K(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
483
|
* Returns the description string.
|
|
@@ -489,7 +489,7 @@ class ProfileItemBase {
|
|
|
489
489
|
if (typeof this.description === "string") {
|
|
490
490
|
return this.description;
|
|
491
491
|
}
|
|
492
|
-
return
|
|
492
|
+
return K(this._profile?.intlStrings[this.description.code], this.description.formatValues);
|
|
493
493
|
}
|
|
494
494
|
/**
|
|
495
495
|
* Returns true if the item pass the filter test
|
|
@@ -721,7 +721,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
721
721
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
722
722
|
}
|
|
723
723
|
async loadSource() {
|
|
724
|
-
if (
|
|
724
|
+
if (Y(this._loadPromise) && ee(this._loadPromise)) {
|
|
725
725
|
return await this._loadPromise;
|
|
726
726
|
}
|
|
727
727
|
this._loadPromise = this._loadSource();
|
|
@@ -917,7 +917,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
917
917
|
nonInteractive: true
|
|
918
918
|
}, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
|
|
919
919
|
}));
|
|
920
|
-
relationshipsGroup.variables = relationshipItems.filter(
|
|
920
|
+
relationshipsGroup.variables = relationshipItems.filter(Y);
|
|
921
921
|
if (!relationshipsGroup.variables.length) {
|
|
922
922
|
return null;
|
|
923
923
|
}
|
|
@@ -1075,7 +1075,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
1075
1075
|
return this._profile?.intlStrings.featureservice ?? "featureservice";
|
|
1076
1076
|
}
|
|
1077
1077
|
async loadSource() {
|
|
1078
|
-
if (
|
|
1078
|
+
if (Y(this._loadPromise) && ee(this._loadPromise)) {
|
|
1079
1079
|
return await this._loadPromise;
|
|
1080
1080
|
}
|
|
1081
1081
|
this._loadPromise = this._loadSource();
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.99
|
|
5
5
|
*/
|
|
6
6
|
import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
|
|
7
7
|
import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
|