@arcgis/coding-components 4.30.0-next.99 → 4.30.0
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/README.md +22 -3
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ca.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +5 -5
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ca.json +2 -2
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.de.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.he.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ca.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.it.json +1 -1
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-71030413.js → p-24fb1d11.js} +2 -2
- package/dist/arcgis-coding-components/{p-df22caf3.js → p-69ef969a.js} +10 -10
- package/dist/arcgis-coding-components/{p-8e5106fd.js → p-9770fb37.js} +2 -2
- package/dist/arcgis-coding-components/{p-b27225fb.js → p-98cf909d.js} +2 -2
- package/dist/arcgis-coding-components/{p-88c8c547.js → p-ae0db715.js} +2 -2
- package/dist/arcgis-coding-components/{p-0f86fcd3.js → p-b7981062.js} +2 -2
- package/dist/arcgis-coding-components/p-bf047552.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-6b70d00e.js → p-ca3f5530.js} +2 -2
- package/dist/arcgis-coding-components/{p-c5b5ad43.js → p-e37595ba.js} +3 -3
- package/dist/arcgis-coding-components/{p-804fc70c.js → p-e9510c84.js} +2 -2
- package/dist/arcgis-coding-components/{p-8f59b7ab.js → p-ed5c78ce.js} +1 -1
- package/dist/arcgis-coding-components/{p-09fc6deb.js → p-f40fe9c5.js} +1 -1
- package/dist/arcgis-coding-components/{p-46fac9d8.js → p-f602fc86.js} +1 -1
- package/dist/cjs/{app-globals-4f0e7eae.js → app-globals-18ba6880.js} +1 -1
- package/dist/cjs/{arcade-defaults-57559f4d.js → arcade-defaults-d0931224.js} +23 -23
- package/dist/cjs/{arcade-mode-5e9d9501.js → arcade-mode-8424eafa.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +8 -7
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-3b5f7de7.js → css-d8a65bb9.js} +1 -1
- package/dist/cjs/{cssMode-ee50e646.js → cssMode-07dbb853.js} +3 -3
- package/dist/cjs/{html-1414ae85.js → html-bb10cced.js} +3 -3
- package/dist/cjs/{htmlMode-c04fe1a3.js → htmlMode-7df0a09d.js} +3 -3
- package/dist/cjs/{index-aa7289d7.js → index-15bcce7e.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-f871d3e1.js → javascript-f0dbed11.js} +4 -4
- package/dist/cjs/{jsonMode-d0bba5f8.js → jsonMode-9e54e9b7.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-2cee8df6.js → tsMode-ca28bc5f.js} +3 -3
- package/dist/cjs/{typescript-e699bcbb.js → typescript-39540ed7.js} +3 -3
- package/dist/components/arcade-api.js +4 -2
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-defaults.js +14 -14
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +4 -2
- package/dist/components/arcade-suggestions.js +4 -2
- package/dist/components/arcade-variables.js +4 -2
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +4 -2
- 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 +2 -2
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/{chunk-IHYYRFLQ.js → chunk-2CDDVOQU.js} +4 -3
- package/dist/components/code-editor.js +5 -3
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/useT9n.js +2 -2
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-1f81b3b1.js → app-globals-2a0e9afb.js} +1 -1
- package/dist/esm/{arcade-defaults-73fede8d.js → arcade-defaults-811bdd4d.js} +23 -23
- package/dist/esm/{arcade-mode-3719f850.js → arcade-mode-e9728a63.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +8 -7
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-a2a21514.js → css-61c794c2.js} +1 -1
- package/dist/esm/{cssMode-a8d4806a.js → cssMode-6e0ccd51.js} +3 -3
- package/dist/esm/{html-7e9fbd0f.js → html-44ad432e.js} +3 -3
- package/dist/esm/{htmlMode-f2cf3793.js → htmlMode-fd336434.js} +3 -3
- package/dist/esm/{index-3f3310e0.js → index-0d124a57.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-a6285ee9.js → javascript-ac057954.js} +4 -4
- package/dist/esm/{jsonMode-f88952f9.js → jsonMode-ea8fa529.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-764b2d3b.js → tsMode-af9c3001.js} +3 -3
- package/dist/esm/{typescript-7eaebbd1.js → typescript-baec45d6.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/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +8 -1
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +5 -1
- package/dist/types/utils/profile/types.d.ts +25 -0
- package/dist/types/utils/profile/utils.d.ts +1 -1
- package/package.json +15 -15
- package/dist/arcgis-coding-components/p-f7fcef66.entry.js +0 -6
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0
|
|
4
|
+
* v4.30.0
|
|
5
5
|
*/
|
|
6
6
|
// src/index.ts
|
|
7
7
|
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
package/dist/components/index.js
CHANGED
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0
|
|
4
|
+
* v4.30.0
|
|
5
5
|
*/
|
|
6
6
|
export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
7
7
|
export { a as arcade } from './arcade-defaults.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0
|
|
4
|
+
* v4.30.0
|
|
5
5
|
*/
|
|
6
6
|
import { editor } from 'monaco-editor';
|
|
7
7
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0
|
|
4
|
+
* v4.30.0
|
|
5
5
|
*/
|
|
6
|
-
import { m as makeController } from './chunk-
|
|
6
|
+
import { m as makeController } from './chunk-2CDDVOQU.js';
|
|
7
7
|
import { n as startLocaleObserver, o as getElementLocales } from './index2.js';
|
|
8
8
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0
|
|
4
|
+
* v4.30.0
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-0d124a57.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the last element of an array.
|
|
@@ -120594,7 +120594,7 @@ registerLanguage({
|
|
|
120594
120594
|
mimetypes: ["text/css"],
|
|
120595
120595
|
loader: () => {
|
|
120596
120596
|
{
|
|
120597
|
-
return import('./css-
|
|
120597
|
+
return import('./css-61c794c2.js');
|
|
120598
120598
|
}
|
|
120599
120599
|
}
|
|
120600
120600
|
});
|
|
@@ -120612,7 +120612,7 @@ registerLanguage({
|
|
|
120612
120612
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120613
120613
|
loader: () => {
|
|
120614
120614
|
{
|
|
120615
|
-
return import('./html-
|
|
120615
|
+
return import('./html-44ad432e.js');
|
|
120616
120616
|
}
|
|
120617
120617
|
}
|
|
120618
120618
|
});
|
|
@@ -120632,7 +120632,7 @@ registerLanguage({
|
|
|
120632
120632
|
mimetypes: ["text/javascript"],
|
|
120633
120633
|
loader: () => {
|
|
120634
120634
|
{
|
|
120635
|
-
return import('./javascript-
|
|
120635
|
+
return import('./javascript-ac057954.js');
|
|
120636
120636
|
}
|
|
120637
120637
|
}
|
|
120638
120638
|
});
|
|
@@ -120650,7 +120650,7 @@ registerLanguage({
|
|
|
120650
120650
|
mimetypes: ["text/typescript"],
|
|
120651
120651
|
loader: () => {
|
|
120652
120652
|
{
|
|
120653
|
-
return import('./typescript-
|
|
120653
|
+
return import('./typescript-baec45d6.js');
|
|
120654
120654
|
}
|
|
120655
120655
|
}
|
|
120656
120656
|
});
|
|
@@ -120771,7 +120771,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120771
120771
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120772
120772
|
function getMode$3() {
|
|
120773
120773
|
{
|
|
120774
|
-
return import('./cssMode-
|
|
120774
|
+
return import('./cssMode-6e0ccd51.js');
|
|
120775
120775
|
}
|
|
120776
120776
|
}
|
|
120777
120777
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120896,7 +120896,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120896
120896
|
};
|
|
120897
120897
|
function getMode$2() {
|
|
120898
120898
|
{
|
|
120899
|
-
return import('./htmlMode-
|
|
120899
|
+
return import('./htmlMode-fd336434.js');
|
|
120900
120900
|
}
|
|
120901
120901
|
}
|
|
120902
120902
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120998,7 +120998,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120998
120998
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120999
120999
|
function getMode$1() {
|
|
121000
121000
|
{
|
|
121001
|
-
return import('./jsonMode-
|
|
121001
|
+
return import('./jsonMode-ea8fa529.js');
|
|
121002
121002
|
}
|
|
121003
121003
|
}
|
|
121004
121004
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121267,7 +121267,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121267
121267
|
};
|
|
121268
121268
|
function getMode() {
|
|
121269
121269
|
{
|
|
121270
|
-
return import('./tsMode-
|
|
121270
|
+
return import('./tsMode-af9c3001.js');
|
|
121271
121271
|
}
|
|
121272
121272
|
}
|
|
121273
121273
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -169054,13 +169054,13 @@ async function importRequest() {
|
|
|
169054
169054
|
}
|
|
169055
169055
|
|
|
169056
169056
|
//#region Type Guards
|
|
169057
|
-
function
|
|
169057
|
+
function isFeatureLayerLikeInstance(item) {
|
|
169058
169058
|
return (!!item &&
|
|
169059
169059
|
typeof item === "object" &&
|
|
169060
169060
|
"declaredClass" in item &&
|
|
169061
169061
|
typeof item.declaredClass === "string" &&
|
|
169062
169062
|
item.declaredClass.startsWith("esri.layers.") &&
|
|
169063
|
-
|
|
169063
|
+
isFieldsDefinition(item) &&
|
|
169064
169064
|
"queryFeatures" in item &&
|
|
169065
169065
|
typeof item.queryFeatures === "function");
|
|
169066
169066
|
}
|
|
@@ -170480,7 +170480,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170480
170480
|
const relationshipsGroup = new GroupOfVariables(this._profile, { code: "relationships" });
|
|
170481
170481
|
const relationshipItems = await Promise.all(source.relationships.map(async (relationship) => {
|
|
170482
170482
|
const relatedLayer = await getRelatedFeatureLayer(source, relationship);
|
|
170483
|
-
if (!
|
|
170483
|
+
if (!isFeatureLayerLikeInstance(relatedLayer)) {
|
|
170484
170484
|
return null;
|
|
170485
170485
|
}
|
|
170486
170486
|
if (relationship.relatedTableId === this.relationshipsProperties?.sourceTableId) {
|
|
@@ -170782,7 +170782,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170782
170782
|
.toArray()
|
|
170783
170783
|
.reverse()
|
|
170784
170784
|
.forEach((layer) => {
|
|
170785
|
-
if (
|
|
170785
|
+
if (isFeatureLayerLikeInstance(layer)) {
|
|
170786
170786
|
layerVariables.push(this._createFeatureSetVariable(layer, true));
|
|
170787
170787
|
return;
|
|
170788
170788
|
}
|
|
@@ -170795,31 +170795,31 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170795
170795
|
});
|
|
170796
170796
|
return layerVariables;
|
|
170797
170797
|
}
|
|
170798
|
-
_createFeatureSetVariable(
|
|
170798
|
+
_createFeatureSetVariable(featureLayerLike, isFromWebMap = false) {
|
|
170799
170799
|
return new FeatureSetVariable(this, {
|
|
170800
170800
|
profile: this._profile,
|
|
170801
|
-
declaration: { name:
|
|
170801
|
+
declaration: { name: featureLayerLike.title, definition: featureLayerLike },
|
|
170802
170802
|
label: isFromWebMap
|
|
170803
|
-
?
|
|
170804
|
-
:
|
|
170803
|
+
? featureLayerLike.title
|
|
170804
|
+
: featureLayerLike.sourceJSON.name ?? featureLayerLike.title,
|
|
170805
170805
|
description: "",
|
|
170806
170806
|
nonInteractive: true,
|
|
170807
|
-
}, this._makeFeatureSetSnippets(
|
|
170807
|
+
}, this._makeFeatureSetSnippets(featureLayerLike, isFromWebMap));
|
|
170808
170808
|
}
|
|
170809
|
-
_makeFeatureSetSnippets(
|
|
170809
|
+
_makeFeatureSetSnippets(featureLayerLike, isFromWebMap = false) {
|
|
170810
170810
|
if (!this._profile?.supportFeatureSetFunctions) {
|
|
170811
170811
|
return [];
|
|
170812
170812
|
}
|
|
170813
170813
|
if (isFromWebMap) {
|
|
170814
|
-
const snippetById = `FeatureSetById(${this.snippet}, "${
|
|
170815
|
-
const snippetByName = `FeatureSetByName(${this.snippet}, "${
|
|
170814
|
+
const snippetById = `FeatureSetById(${this.snippet}, "${featureLayerLike.id}")`;
|
|
170815
|
+
const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayerLike.title}")`;
|
|
170816
170816
|
return [
|
|
170817
170817
|
new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
|
|
170818
170818
|
new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
|
|
170819
170819
|
];
|
|
170820
170820
|
}
|
|
170821
170821
|
else {
|
|
170822
|
-
const snippetById = `FeatureSetById(${this.snippet}, "${
|
|
170822
|
+
const snippetById = `FeatureSetById(${this.snippet}, "${featureLayerLike.layerId}")`;
|
|
170823
170823
|
return [new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById })];
|
|
170824
170824
|
}
|
|
170825
170825
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0
|
|
4
|
+
* v4.30.0
|
|
5
5
|
*/
|
|
6
|
-
import { E as main, e as editor, M as MarkerSeverity, R as Range, m as languages, F as debounce, G as Emitter } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { E as main, e as editor, M as MarkerSeverity, R as Range, m as languages, F as debounce, G as Emitter } from './arcade-defaults-811bdd4d.js';
|
|
7
|
+
import './index-0d124a57.js';
|
|
8
8
|
|
|
9
9
|
var j={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:main.exports.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:main.exports.CompletionItemKind.Keyword}));
|
|
10
10
|
|