@arcgis/coding-components 4.28.0-beta.10 → 4.28.0-beta.12
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 +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +51 -52
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +9 -10
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +9 -10
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +19 -19
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-acbdd63d.entry.js → p-0058a559.entry.js} +1 -1
- package/dist/arcgis-coding-components/{p-d4923085.js → p-0a1c12bc.js} +1 -1
- package/dist/arcgis-coding-components/p-23a9d01f.js +62 -0
- package/dist/arcgis-coding-components/{p-c4665951.js → p-833d7d5d.js} +1 -1
- package/dist/arcgis-coding-components/{p-8ffe58f2.js → p-86c7337f.js} +2 -2
- package/dist/arcgis-coding-components/{p-358ed87a.js → p-b98f37e4.js} +1 -1
- package/dist/arcgis-coding-components/{p-c1ebad13.js → p-d0a7fde3.js} +1 -1
- package/dist/arcgis-coding-components/{p-30774b8f.js → p-d8a77530.js} +2 -2
- package/dist/arcgis-coding-components/p-e255a13c.js +1 -0
- package/dist/arcgis-coding-components/{p-cff113f1.js → p-fdd3f4de.js} +1 -1
- package/dist/cjs/{arcade-defaults-fe6b2490.js → arcade-defaults-4a9774c6.js} +267 -581
- package/dist/cjs/{arcade-mode-684d2b36.js → arcade-mode-c040c92c.js} +3 -5
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +34 -34
- package/dist/cjs/{cssMode-67c943a9.js → cssMode-2b1f78c9.js} +1 -1
- package/dist/cjs/{html-98e131a9.js → html-0c87581b.js} +1 -1
- package/dist/cjs/{htmlMode-900fc9a2.js → htmlMode-007d54b7.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-5baa3db6.js → javascript-8cef2a6b.js} +2 -2
- package/dist/cjs/{jsonMode-bd64dcac.js → jsonMode-d7517de7.js} +1 -1
- package/dist/cjs/{tsMode-d958fede.js → tsMode-d3684fd5.js} +1 -1
- package/dist/cjs/{typescript-5ebad4f3.js → typescript-99122582.js} +1 -1
- package/dist/components/arcade-api.js +6 -6
- package/dist/components/arcade-contribution.js +2 -2
- package/dist/components/arcade-defaults.js +9 -9
- package/dist/components/arcade-mode.js +3 -5
- package/dist/components/arcade-results.js +12 -12
- package/dist/components/arcade-suggestions.js +4 -4
- package/dist/components/arcade-variables.js +5 -5
- package/dist/components/arcgis-arcade-editor.js +15 -15
- package/dist/components/code-editor.js +6 -6
- package/dist/components/index2.js +2 -316
- package/dist/components/utilities.js +2 -2
- package/dist/esm/{arcade-defaults-1023126c.js → arcade-defaults-93ecbfa3.js} +255 -569
- package/dist/esm/arcade-mode-48ac843d.js +594 -0
- package/dist/esm/arcgis-arcade-api_6.entry.js +34 -34
- package/dist/esm/{cssMode-eff7de28.js → cssMode-9d4a5968.js} +1 -1
- package/dist/esm/{html-9661ece4.js → html-bbd01073.js} +1 -1
- package/dist/esm/{htmlMode-482b86a1.js → htmlMode-16f49bff.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-90f59381.js → javascript-d9d37aa3.js} +2 -2
- package/dist/esm/{jsonMode-334ce784.js → jsonMode-5f32debe.js} +1 -1
- package/dist/esm/{tsMode-28b98722.js → tsMode-dc4e785a.js} +1 -1
- package/dist/esm/{typescript-aec431cc.js → typescript-52f0d258.js} +1 -1
- package/package.json +13 -13
- package/dist/arcgis-coding-components/p-5d8443b7.js +0 -62
- package/dist/arcgis-coding-components/p-e464f3a9.js +0 -1
- package/dist/esm/arcade-mode-b060035b.js +0 -596
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement, F as Fragment } from './index-d4ec142a.js';
|
|
2
|
-
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal,
|
|
2
|
+
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, D, V, i as importRequest, l as languages, d as arcadeDefaults, $, U as Uri, F, O, f as filterCollection, q, h as importArcade, j as h$1, _, C, K as KeyCode, B, W, s as supportedFields, z, R as Range, p, k as KeyMod } from './arcade-defaults-93ecbfa3.js';
|
|
3
3
|
|
|
4
4
|
async function colorizeCode(code) {
|
|
5
5
|
return editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -2968,7 +2968,7 @@ function setupMonacoEnvironment(assetsPath) {
|
|
|
2968
2968
|
break;
|
|
2969
2969
|
}
|
|
2970
2970
|
// If we have a relative path or we are on same orgin, we can use the default js implementation
|
|
2971
|
-
if (!
|
|
2971
|
+
if (!D(url) || V(url, location.href, true)) {
|
|
2972
2972
|
return new Worker(url, { name: languageId });
|
|
2973
2973
|
}
|
|
2974
2974
|
// For cross orgin, we will load the worker code as a string and manufacture a blob
|
|
@@ -3015,7 +3015,7 @@ async function getArcadeWorker(uri) {
|
|
|
3015
3015
|
* @returns mode for arcade
|
|
3016
3016
|
*/
|
|
3017
3017
|
function getMode() {
|
|
3018
|
-
return import('./arcade-mode-
|
|
3018
|
+
return import('./arcade-mode-48ac843d.js');
|
|
3019
3019
|
}
|
|
3020
3020
|
// Register the language in Monaco
|
|
3021
3021
|
languages.register({
|
|
@@ -3093,7 +3093,7 @@ const ArcgisArcadeApi = class {
|
|
|
3093
3093
|
async componentWillLoad() {
|
|
3094
3094
|
this._colorizeStyle = generateColorizeStyles();
|
|
3095
3095
|
this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
|
|
3096
|
-
await
|
|
3096
|
+
await $(this, getAssetPath("./assets"));
|
|
3097
3097
|
arcadeDefaults.onModelContextDidChange((key) => {
|
|
3098
3098
|
if (!this.modelId || key !== Uri.parse(this.modelId).toString()) {
|
|
3099
3099
|
return;
|
|
@@ -3103,7 +3103,7 @@ const ArcgisArcadeApi = class {
|
|
|
3103
3103
|
this._updateApiLibrary();
|
|
3104
3104
|
}
|
|
3105
3105
|
disconnectedCallback() {
|
|
3106
|
-
|
|
3106
|
+
F(this);
|
|
3107
3107
|
this._flowObserver?.disconnect();
|
|
3108
3108
|
this._themeChangedListner?.dispose();
|
|
3109
3109
|
}
|
|
@@ -3147,7 +3147,7 @@ const ArcgisArcadeApi = class {
|
|
|
3147
3147
|
// When switching between flow the same reference is reused
|
|
3148
3148
|
this._flowObserver = new MutationObserver(() => {
|
|
3149
3149
|
// Get the last panel and try to set focus on the input element
|
|
3150
|
-
|
|
3150
|
+
O(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
3151
3151
|
});
|
|
3152
3152
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
3153
3153
|
}
|
|
@@ -3158,14 +3158,14 @@ const ArcgisArcadeApi = class {
|
|
|
3158
3158
|
if (!filteredApiItems.length) {
|
|
3159
3159
|
return null;
|
|
3160
3160
|
}
|
|
3161
|
-
return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label:
|
|
3161
|
+
return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: q(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 }))))));
|
|
3162
3162
|
}
|
|
3163
3163
|
renderApiItemFlowItem() {
|
|
3164
3164
|
const apiItem = this._selectedApiItem;
|
|
3165
3165
|
if (!apiItem) {
|
|
3166
3166
|
return null;
|
|
3167
3167
|
}
|
|
3168
|
-
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-actions", 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-actions", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading:
|
|
3168
|
+
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-actions", 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-actions", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading: q(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
|
|
3169
3169
|
if (!e) {
|
|
3170
3170
|
return;
|
|
3171
3171
|
}
|
|
@@ -3428,8 +3428,8 @@ const ArcgisArcadeEditor = class {
|
|
|
3428
3428
|
registerInstance(this, hostRef);
|
|
3429
3429
|
this.scriptChange = createEvent(this, "scriptChange", 3);
|
|
3430
3430
|
this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
|
|
3431
|
-
this._componentReadyDefer = new
|
|
3432
|
-
this._modelId =
|
|
3431
|
+
this._componentReadyDefer = new h$1();
|
|
3432
|
+
this._modelId = _();
|
|
3433
3433
|
this._editorProfilePromise = Promise.resolve(undefined);
|
|
3434
3434
|
this._disposables = [];
|
|
3435
3435
|
this._executeScript = async () => {
|
|
@@ -3569,7 +3569,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3569
3569
|
* @internal
|
|
3570
3570
|
*/
|
|
3571
3571
|
async updateThemeColors(colorRules) {
|
|
3572
|
-
const theme =
|
|
3572
|
+
const theme = C(this._hostElt);
|
|
3573
3573
|
updateThemeColors(theme, colorRules);
|
|
3574
3574
|
if (colorRules === undefined) {
|
|
3575
3575
|
["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
|
|
@@ -3598,7 +3598,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3598
3598
|
// Starts a locale observer. It will load the correct t9n strings for the component
|
|
3599
3599
|
// when the locale changes. We also pass updateEditorProfile. It will be invoked the first
|
|
3600
3600
|
// and on each locale change. The profile has to be refreshed on locale change as well.
|
|
3601
|
-
await
|
|
3601
|
+
await $(this, assetsPath, async () => await this._updateEditorProfile());
|
|
3602
3602
|
}
|
|
3603
3603
|
async componentDidLoad() {
|
|
3604
3604
|
// Mark on component as ready.
|
|
@@ -3626,7 +3626,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3626
3626
|
await this._codeEditorElt?.setFocus();
|
|
3627
3627
|
}
|
|
3628
3628
|
disconnectedCallback() {
|
|
3629
|
-
|
|
3629
|
+
F(this);
|
|
3630
3630
|
arcadeDefaults.disposeApiContextForModel(this._modelId);
|
|
3631
3631
|
arcadeDefaults.disposeEditorProfileForModel(this._modelId);
|
|
3632
3632
|
while (this._disposables.length) {
|
|
@@ -3829,10 +3829,10 @@ const ArcgisArcadeResults = class {
|
|
|
3829
3829
|
//#endregion
|
|
3830
3830
|
// #region Component lifecycle events
|
|
3831
3831
|
async componentWillLoad() {
|
|
3832
|
-
await
|
|
3832
|
+
await $(this, getAssetPath("./assets"));
|
|
3833
3833
|
}
|
|
3834
3834
|
disconnectedCallback() {
|
|
3835
|
-
|
|
3835
|
+
F(this);
|
|
3836
3836
|
}
|
|
3837
3837
|
// #endregion
|
|
3838
3838
|
//#region Private Methods
|
|
@@ -3861,15 +3861,15 @@ const ArcgisArcadeResults = class {
|
|
|
3861
3861
|
return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
3862
3862
|
}
|
|
3863
3863
|
const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
|
|
3864
|
-
return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label:
|
|
3864
|
+
return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: B(this._t9nStrings?.lastexecutionformat, {
|
|
3865
3865
|
timeStamp: new Intl.DateTimeFormat(this._locale, { dateStyle: "medium", timeStyle: "medium" }).format(this.result.timeStamp)
|
|
3866
|
-
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label:
|
|
3866
|
+
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: B(this._t9nStrings?.compilationtimeformat, {
|
|
3867
3867
|
time: new Intl.NumberFormat(this._locale, {
|
|
3868
3868
|
style: "unit",
|
|
3869
3869
|
unit: "millisecond",
|
|
3870
3870
|
maximumFractionDigits: 2
|
|
3871
3871
|
}).format(this.result.compilationTime ?? 0)
|
|
3872
|
-
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label:
|
|
3872
|
+
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: B(this._t9nStrings?.executiontimeformat, {
|
|
3873
3873
|
time: new Intl.NumberFormat(this._locale, {
|
|
3874
3874
|
style: "unit",
|
|
3875
3875
|
unit: "millisecond",
|
|
@@ -3886,7 +3886,7 @@ const ArcgisArcadeResults = class {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
switch (this.result?.type) {
|
|
3888
3888
|
case "error":
|
|
3889
|
-
return (h("div", { class: "result-value-simple flex-adjustable" },
|
|
3889
|
+
return (h("div", { class: "result-value-simple flex-adjustable" }, B(this._t9nStrings?.executionerrorformat, {
|
|
3890
3890
|
message: this.result.value
|
|
3891
3891
|
})));
|
|
3892
3892
|
case "null":
|
|
@@ -3927,7 +3927,7 @@ const ArcgisArcadeResults = class {
|
|
|
3927
3927
|
case "null":
|
|
3928
3928
|
return h("span", { class: "constant-value" }, arcadeResult.type);
|
|
3929
3929
|
case "text":
|
|
3930
|
-
return h("span", { class: "string-value" },
|
|
3930
|
+
return h("span", { class: "string-value" }, W(arcadeResult.value));
|
|
3931
3931
|
case "number":
|
|
3932
3932
|
return h("span", { class: "number-value" }, arcadeResult.value.toString());
|
|
3933
3933
|
case "boolean":
|
|
@@ -3935,9 +3935,9 @@ const ArcgisArcadeResults = class {
|
|
|
3935
3935
|
case "date":
|
|
3936
3936
|
return h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
|
|
3937
3937
|
case "dateOnly":
|
|
3938
|
-
return h("span", { class: "string-value" },
|
|
3938
|
+
return h("span", { class: "string-value" }, W(formatArcadeResultDateOnly(arcadeResult)));
|
|
3939
3939
|
case "time":
|
|
3940
|
-
return h("span", { class: "string-value" },
|
|
3940
|
+
return h("span", { class: "string-value" }, W(formatArcadeResultTimeOnly(arcadeResult)));
|
|
3941
3941
|
default:
|
|
3942
3942
|
return null;
|
|
3943
3943
|
}
|
|
@@ -3945,7 +3945,7 @@ const ArcgisArcadeResults = class {
|
|
|
3945
3945
|
renderArrayHeader(arcadeResult) {
|
|
3946
3946
|
const items = arcadeResult.value ?? [];
|
|
3947
3947
|
const leftoverCount = Math.max(items.length - MaxArrayItems, 0);
|
|
3948
|
-
return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0",
|
|
3948
|
+
return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", B(this._t9nStrings?.showingfirstitemsformat, {
|
|
3949
3949
|
count: MaxArrayItems.toString()
|
|
3950
3950
|
}))) : null));
|
|
3951
3951
|
}
|
|
@@ -3997,7 +3997,7 @@ const ArcgisArcadeResults = class {
|
|
|
3997
3997
|
}
|
|
3998
3998
|
}
|
|
3999
3999
|
renderFeatureSetLabel(arcadeResult) {
|
|
4000
|
-
return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0",
|
|
4000
|
+
return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", B(this._t9nStrings?.showingfirstitemsformat, {
|
|
4001
4001
|
count: BatchSize.toString()
|
|
4002
4002
|
}))) : null));
|
|
4003
4003
|
}
|
|
@@ -4080,12 +4080,12 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4080
4080
|
async componentWillLoad() {
|
|
4081
4081
|
this._colorizeStyle = generateColorizeStyles();
|
|
4082
4082
|
this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
|
|
4083
|
-
await
|
|
4083
|
+
await $(this, getAssetPath("./assets"));
|
|
4084
4084
|
}
|
|
4085
4085
|
disconnectedCallback() {
|
|
4086
4086
|
this._flowObserver?.disconnect();
|
|
4087
4087
|
this._themeChangedListner?.dispose();
|
|
4088
|
-
|
|
4088
|
+
F(this);
|
|
4089
4089
|
}
|
|
4090
4090
|
// #endregion
|
|
4091
4091
|
//#region Private Methods
|
|
@@ -4103,7 +4103,7 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4103
4103
|
// When switching between flow the same reference is reused
|
|
4104
4104
|
this._flowObserver = new MutationObserver(() => {
|
|
4105
4105
|
// Get the last panel and try to set focus on the input element
|
|
4106
|
-
|
|
4106
|
+
O(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
4107
4107
|
});
|
|
4108
4108
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
4109
4109
|
}
|
|
@@ -4200,10 +4200,10 @@ const ArcgisArcadeVariables = class {
|
|
|
4200
4200
|
//#endregion
|
|
4201
4201
|
// #region Component lifecycle events
|
|
4202
4202
|
async componentWillLoad() {
|
|
4203
|
-
await
|
|
4203
|
+
await $(this, getAssetPath("./assets"));
|
|
4204
4204
|
}
|
|
4205
4205
|
disconnectedCallback() {
|
|
4206
|
-
|
|
4206
|
+
F(this);
|
|
4207
4207
|
this._flowObserver?.disconnect();
|
|
4208
4208
|
}
|
|
4209
4209
|
// #endregion
|
|
@@ -4228,7 +4228,7 @@ const ArcgisArcadeVariables = class {
|
|
|
4228
4228
|
// When switching between flow the same reference is reused
|
|
4229
4229
|
this._flowObserver = new MutationObserver(() => {
|
|
4230
4230
|
// Get the last panel and try to set focus on the input element
|
|
4231
|
-
|
|
4231
|
+
O(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
4232
4232
|
});
|
|
4233
4233
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
4234
4234
|
}
|
|
@@ -4254,7 +4254,7 @@ const ArcgisArcadeVariables = class {
|
|
|
4254
4254
|
}
|
|
4255
4255
|
renderEditorVariables(collection) {
|
|
4256
4256
|
// Filter the variables. Skip group, we will filter the children later on.
|
|
4257
|
-
const filterExpression =
|
|
4257
|
+
const filterExpression = z(this._filterValue);
|
|
4258
4258
|
const filteredVariables = collection.variables.filter((variable) => variable.passFilter(filterExpression));
|
|
4259
4259
|
if (!filteredVariables.length) {
|
|
4260
4260
|
return h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No item");
|
|
@@ -4305,7 +4305,7 @@ const ArcgisCodeEditor = class {
|
|
|
4305
4305
|
constructor(hostRef) {
|
|
4306
4306
|
registerInstance(this, hostRef);
|
|
4307
4307
|
this.valueChange = createEvent(this, "valueChange", 3);
|
|
4308
|
-
this._componentReadyDefer = new
|
|
4308
|
+
this._componentReadyDefer = new h$1();
|
|
4309
4309
|
this._disposables = [];
|
|
4310
4310
|
this.value = undefined;
|
|
4311
4311
|
this.language = undefined;
|
|
@@ -4443,7 +4443,7 @@ const ArcgisCodeEditor = class {
|
|
|
4443
4443
|
this.valueChange.emit(script);
|
|
4444
4444
|
});
|
|
4445
4445
|
// Detect if the host element or its ancestors got a theme attribute mutation
|
|
4446
|
-
this._themeObserver =
|
|
4446
|
+
this._themeObserver = p(this._hostElt, ["class"], () => this.updateTheme());
|
|
4447
4447
|
// Update the theme of the Monaco Editor
|
|
4448
4448
|
this.updateTheme();
|
|
4449
4449
|
// Creates a resize observer to re-layout the editor on size changing
|
|
@@ -4474,7 +4474,7 @@ const ArcgisCodeEditor = class {
|
|
|
4474
4474
|
// This is called the first time and subsequently by the Mutation Observer
|
|
4475
4475
|
// Figure out the theme by walking the ancestor path.
|
|
4476
4476
|
// If no theme is found then default to light.
|
|
4477
|
-
const theme =
|
|
4477
|
+
const theme = C(this._hostElt) === "light" ? "vs" : "vs-dark";
|
|
4478
4478
|
if (theme === this._currentTheme) {
|
|
4479
4479
|
return;
|
|
4480
4480
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-93ecbfa3.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-93ecbfa3.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-93ecbfa3.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as arcade } from './arcade-defaults-
|
|
1
|
+
export { a as arcade } from './arcade-defaults-93ecbfa3.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { conf as conf$1, language as language$1 } from './typescript-
|
|
2
|
-
import './arcade-defaults-
|
|
1
|
+
import { conf as conf$1, language as language$1 } from './typescript-52f0d258.js';
|
|
2
|
+
import './arcade-defaults-93ecbfa3.js';
|
|
3
3
|
import './index-d4ec142a.js';
|
|
4
4
|
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-93ecbfa3.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as typescriptDefaults, m as monaco_editor_core_star } from './arcade-defaults-93ecbfa3.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-93ecbfa3.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
3
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
4
|
-
"version": "4.28.0-beta.
|
|
4
|
+
"version": "4.28.0-beta.12",
|
|
5
5
|
"module": "dist/components/index.js",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
27
27
|
"scripts": {
|
|
28
|
-
"start": "yarn pre
|
|
28
|
+
"start": "yarn pre && yarn build:monaco-workers --sourcemap && yarn build:components:watch --serve --no-open",
|
|
29
29
|
"start:storybook": "storybook dev -c .storybook/internal --quiet",
|
|
30
30
|
"start:external-storybook": "kill-port 6018 && storybook dev -c .storybook/external -p 6018 --quiet",
|
|
31
|
-
"build": "yarn pre
|
|
32
|
-
"build:dev": "yarn pre
|
|
31
|
+
"build": "yarn pre && yarn build:monaco-workers && yarn build:components",
|
|
32
|
+
"build:dev": "yarn pre && yarn build:monaco-workers --sourcemap && yarn build:components:dev",
|
|
33
33
|
"build:storybook": "storybook build -c .storybook/internal --quiet",
|
|
34
34
|
"build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet",
|
|
35
35
|
"build:components": "stencil build",
|
|
@@ -42,27 +42,28 @@
|
|
|
42
42
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
43
43
|
"clean": "rimraf ./node_modules ./storybook-static ./storybook-static-external ./turbo ./dist ./www",
|
|
44
44
|
"lint": "eslint .",
|
|
45
|
-
"pre
|
|
46
|
-
"
|
|
47
|
-
"pre:build-t9n-types": "awc-build-t9n-types",
|
|
45
|
+
"pre": "rimraf ./dist ./www && awc-build-t9n-types",
|
|
46
|
+
"util:build-t9n-types": "awc-build-t9n-types",
|
|
48
47
|
"update:storybook": "npx storybook@latest upgrade",
|
|
49
48
|
"generate": "stencil generate",
|
|
50
49
|
"prettier": "prettier . --write"
|
|
51
50
|
},
|
|
52
51
|
"dependencies": {
|
|
53
|
-
"@arcgis/arcade-languageservice": "4.28.0-beta.
|
|
52
|
+
"@arcgis/arcade-languageservice": "4.28.0-beta.12",
|
|
54
53
|
"@esri/calcite-components": "^1.8.0",
|
|
55
54
|
"@stencil/core": "2.22.3",
|
|
56
55
|
"monaco-editor": "^0.39.0",
|
|
57
56
|
"vscode-languageserver-types": "^3.17.3"
|
|
58
57
|
},
|
|
59
58
|
"devDependencies": {
|
|
60
|
-
"@arcgis/components-plugins": "4.28.0-beta.
|
|
61
|
-
"@arcgis/components-utils": "4.28.0-beta.
|
|
59
|
+
"@arcgis/components-plugins": "4.28.0-beta.12",
|
|
60
|
+
"@arcgis/components-utils": "4.28.0-beta.12",
|
|
62
61
|
"@arcgis/core": ">=4.28.0-next <4.29",
|
|
63
|
-
"@arcgis/core-adapter": "4.28.0-beta.
|
|
62
|
+
"@arcgis/core-adapter": "4.28.0-beta.12",
|
|
64
63
|
"@arcgis/eslint-config": "1.0.0",
|
|
65
64
|
"@arcgis/typescript-config": "1.0.0",
|
|
65
|
+
"@stencil/angular-output-target": "0.8.1",
|
|
66
|
+
"@stencil/react-output-target": "0.5.3",
|
|
66
67
|
"@stencil/sass": "^2.0.4",
|
|
67
68
|
"@storybook/addon-a11y": "^7.4.5",
|
|
68
69
|
"@storybook/addon-essentials": "^7.4.5",
|
|
@@ -89,7 +90,6 @@
|
|
|
89
90
|
"lit": "^2.8.0",
|
|
90
91
|
"magic-string": "^0.30.0",
|
|
91
92
|
"marked": "^5.0.5",
|
|
92
|
-
"npm-run-all": "^4.1.5",
|
|
93
93
|
"postcss": "^8.4.19",
|
|
94
94
|
"postcss-discard-comments": "^5.1.2",
|
|
95
95
|
"postcss-url": "^10.1.3",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"@arcgis/core": ">=4.28.0-next <4.29"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "0fc81414d18e1e8b9e1feb27b355c429e5f79024"
|
|
116
116
|
}
|