@arcgis/coding-components 4.30.0-next.90 → 4.30.0-next.92
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-c96c1f63.js → p-0190a309.js} +2 -2
- package/dist/arcgis-coding-components/{p-8ab17e08.js → p-1bc7e0c2.js} +3 -3
- package/dist/arcgis-coding-components/p-25501682.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-9a8d10a0.js → p-3e4f3f41.js} +1 -1
- package/dist/arcgis-coding-components/{p-e6b496fb.js → p-46d1cda2.js} +3 -3
- package/dist/arcgis-coding-components/p-6c40604b.js +6 -0
- package/dist/arcgis-coding-components/{p-da9568f1.js → p-79d193ed.js} +2 -2
- package/dist/arcgis-coding-components/{p-79a7c8f6.js → p-7cde797e.js} +2 -2
- package/dist/arcgis-coding-components/p-a98568ee.js +7 -0
- package/dist/arcgis-coding-components/{p-26bd6f29.js → p-cd448d71.js} +2 -2
- package/dist/arcgis-coding-components/p-ec7e1a55.js +6 -0
- package/dist/arcgis-coding-components/{p-560553f8.js → p-ed73e5a3.js} +3 -3
- package/dist/arcgis-coding-components/p-f57f9e70.js +68 -0
- package/dist/cjs/app-globals-047e78fc.js +10 -0
- package/dist/cjs/{arcade-defaults-4f585faa.js → arcade-defaults-3c4dc2cf.js} +103 -40
- package/dist/cjs/{arcade-mode-07b44b47.js → arcade-mode-1eb8e568.js} +36 -36
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +27 -19
- package/dist/cjs/arcgis-coding-components.cjs.js +13 -11
- package/dist/cjs/{css-c33e390e.js → css-0ae86119.js} +1 -1
- package/dist/cjs/{cssMode-db89e9b2.js → cssMode-ba9bc009.js} +3 -3
- package/dist/cjs/{html-a924e3d5.js → html-4df48129.js} +3 -3
- package/dist/cjs/{htmlMode-9caeb45e.js → htmlMode-071997b3.js} +3 -3
- package/dist/cjs/index-f0f092db.js +1303 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-f4f032c8.js → javascript-f4eb7ca9.js} +4 -4
- package/dist/cjs/{jsonMode-61d579b5.js → jsonMode-757a7b5a.js} +3 -3
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{tsMode-7584a323.js → tsMode-a00f62e2.js} +3 -3
- package/dist/cjs/{typescript-42c3d4ff.js → typescript-7b3e1f2a.js} +3 -3
- package/dist/components/arcade-api.js +4 -3
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-defaults.js +2 -2
- package/dist/components/arcade-mode.js +3 -3
- package/dist/components/arcade-results.js +4 -3
- package/dist/components/arcade-suggestions.js +4 -3
- package/dist/components/arcade-variables.js +3 -2
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +5 -4
- 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/chunk-IHYYRFLQ.js +1 -1
- package/dist/components/code-editor.js +4 -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 +6 -18
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/app-globals-2d0bde8e.js +8 -0
- package/dist/esm/{arcade-defaults-82b8fd29.js → arcade-defaults-ce7d07c9.js} +104 -40
- package/dist/esm/{arcade-mode-3f43d922.js → arcade-mode-6a725db5.js} +36 -36
- package/dist/esm/arcgis-arcade-api_6.entry.js +27 -19
- package/dist/esm/arcgis-coding-components.js +14 -12
- package/dist/esm/{css-1dbe6092.js → css-f83ea0c7.js} +1 -1
- package/dist/esm/{cssMode-d60fa4bd.js → cssMode-1a8b382c.js} +3 -3
- package/dist/esm/{html-13ac939a.js → html-ceee1af3.js} +3 -3
- package/dist/esm/{htmlMode-83b26098.js → htmlMode-7c78efa5.js} +3 -3
- package/dist/esm/index-200cf3a7.js +1272 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-263a46b1.js → javascript-f46e9bad.js} +4 -4
- package/dist/esm/{jsonMode-e06b248a.js → jsonMode-ab0411e0.js} +3 -3
- package/dist/esm/loader.js +6 -4
- package/dist/esm/{tsMode-69a014ca.js → tsMode-fe9beec6.js} +3 -3
- package/dist/esm/{typescript-c26d15e4.js → typescript-b1c8cd2a.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 +10 -10
- package/dist/arcgis-coding-components/p-a907183e.js +0 -68
- package/dist/arcgis-coding-components/p-c1812436.js +0 -6
- package/dist/arcgis-coding-components/p-c8fbc152.entry.js +0 -6
- package/dist/arcgis-coding-components/p-cbbf8c28.js +0 -7
- package/dist/cjs/index-9d3cd341.js +0 -1994
- package/dist/esm/index-b792d4a8.js +0 -1963
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.92
|
|
5
|
+
*/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
const globalScripts = () => {};
|
|
9
|
+
|
|
10
|
+
exports.globalScripts = globalScripts;
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.92
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-f0f092db.js');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -6123,6 +6123,7 @@ const uiMap = new KeyCodeStrMap();
|
|
|
6123
6123
|
const userSettingsUSMap = new KeyCodeStrMap();
|
|
6124
6124
|
const userSettingsGeneralMap = new KeyCodeStrMap();
|
|
6125
6125
|
const EVENT_KEY_CODE_MAP = new Array(230);
|
|
6126
|
+
const NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE = {};
|
|
6126
6127
|
const scanCodeIntToStr = [];
|
|
6127
6128
|
const scanCodeStrToInt = Object.create(null);
|
|
6128
6129
|
const scanCodeLowerCaseStrToInt = Object.create(null);
|
|
@@ -6411,6 +6412,9 @@ for (let i = 0; i <= 132 /* KeyCode.MAX_VALUE */; i++) {
|
|
|
6411
6412
|
if (eventKeyCode) {
|
|
6412
6413
|
EVENT_KEY_CODE_MAP[eventKeyCode] = keyCode;
|
|
6413
6414
|
}
|
|
6415
|
+
if (vkey) {
|
|
6416
|
+
NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[vkey] = keyCode;
|
|
6417
|
+
}
|
|
6414
6418
|
}
|
|
6415
6419
|
// Manually added due to the exclusion above (due to duplication with NumpadEnter)
|
|
6416
6420
|
IMMUTABLE_KEY_CODE_TO_CODE[3 /* KeyCode.Enter */] = 46 /* ScanCode.Enter */;
|
|
@@ -21872,6 +21876,7 @@ CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS = '\'"`;
|
|
|
21872
21876
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
21873
21877
|
*--------------------------------------------------------------------------------------------*/
|
|
21874
21878
|
const hasBuffer = (typeof Buffer !== 'undefined');
|
|
21879
|
+
new Lazy(() => new Uint8Array(256));
|
|
21875
21880
|
let textDecoder;
|
|
21876
21881
|
class VSBuffer {
|
|
21877
21882
|
/**
|
|
@@ -22782,6 +22787,12 @@ Registry.add(Extensions$7.JSONContribution, jsonContributionRegistry);
|
|
|
22782
22787
|
const Extensions$6 = {
|
|
22783
22788
|
Configuration: 'base.contributions.configuration'
|
|
22784
22789
|
};
|
|
22790
|
+
const allSettings = { properties: {}, patternProperties: {} };
|
|
22791
|
+
const applicationSettings = { properties: {}, patternProperties: {} };
|
|
22792
|
+
const machineSettings = { properties: {}, patternProperties: {} };
|
|
22793
|
+
const machineOverridableSettings = { properties: {}, patternProperties: {} };
|
|
22794
|
+
const windowSettings = { properties: {}, patternProperties: {} };
|
|
22795
|
+
const resourceSettings = { properties: {}, patternProperties: {} };
|
|
22785
22796
|
const resourceLanguageSettingsSchemaId = 'vscode://schemas/settings/resourceLanguage';
|
|
22786
22797
|
const contributionRegistry = Registry.as(Extensions$7.JSONContribution);
|
|
22787
22798
|
class ConfigurationRegistry {
|
|
@@ -22954,18 +22965,25 @@ class ConfigurationRegistry {
|
|
|
22954
22965
|
register(configuration);
|
|
22955
22966
|
}
|
|
22956
22967
|
updateSchema(key, property) {
|
|
22968
|
+
allSettings.properties[key] = property;
|
|
22957
22969
|
switch (property.scope) {
|
|
22958
22970
|
case 1 /* ConfigurationScope.APPLICATION */:
|
|
22971
|
+
applicationSettings.properties[key] = property;
|
|
22959
22972
|
break;
|
|
22960
22973
|
case 2 /* ConfigurationScope.MACHINE */:
|
|
22974
|
+
machineSettings.properties[key] = property;
|
|
22961
22975
|
break;
|
|
22962
22976
|
case 6 /* ConfigurationScope.MACHINE_OVERRIDABLE */:
|
|
22977
|
+
machineOverridableSettings.properties[key] = property;
|
|
22963
22978
|
break;
|
|
22964
22979
|
case 3 /* ConfigurationScope.WINDOW */:
|
|
22980
|
+
windowSettings.properties[key] = property;
|
|
22965
22981
|
break;
|
|
22966
22982
|
case 4 /* ConfigurationScope.RESOURCE */:
|
|
22983
|
+
resourceSettings.properties[key] = property;
|
|
22967
22984
|
break;
|
|
22968
22985
|
case 5 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */:
|
|
22986
|
+
resourceSettings.properties[key] = property;
|
|
22969
22987
|
this.resourceLanguageSettingsSchema.properties[key] = property;
|
|
22970
22988
|
break;
|
|
22971
22989
|
}
|
|
@@ -22980,15 +22998,27 @@ class ConfigurationRegistry {
|
|
|
22980
22998
|
$ref: resourceLanguageSettingsSchemaId,
|
|
22981
22999
|
};
|
|
22982
23000
|
this.updatePropertyDefaultValue(overrideIdentifierProperty, resourceLanguagePropertiesSchema);
|
|
23001
|
+
allSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
23002
|
+
applicationSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
23003
|
+
machineSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
23004
|
+
machineOverridableSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
23005
|
+
windowSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
23006
|
+
resourceSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22983
23007
|
}
|
|
22984
23008
|
}
|
|
22985
23009
|
registerOverridePropertyPatternKey() {
|
|
22986
|
-
|
|
23010
|
+
const resourceLanguagePropertiesSchema = {
|
|
22987
23011
|
type: 'object',
|
|
22988
23012
|
description: localize('overrideSettings.defaultDescription', "Configure editor settings to be overridden for a language."),
|
|
22989
23013
|
errorMessage: localize('overrideSettings.errorMessage', "This setting does not support per-language configuration."),
|
|
22990
23014
|
$ref: resourceLanguageSettingsSchemaId,
|
|
22991
|
-
}
|
|
23015
|
+
};
|
|
23016
|
+
allSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
23017
|
+
applicationSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
23018
|
+
machineSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
23019
|
+
machineOverridableSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
23020
|
+
windowSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
23021
|
+
resourceSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22992
23022
|
this._onDidSchemaChange.fire();
|
|
22993
23023
|
}
|
|
22994
23024
|
updatePropertyDefaultValue(key, property) {
|
|
@@ -60194,6 +60224,34 @@ class ExtUri {
|
|
|
60194
60224
|
* ```
|
|
60195
60225
|
*/
|
|
60196
60226
|
const extUri = new ExtUri(() => false);
|
|
60227
|
+
/**
|
|
60228
|
+
* BIASED utility that _mostly_ ignored the case of urs paths. ONLY use this util if you
|
|
60229
|
+
* understand what you are doing.
|
|
60230
|
+
*
|
|
60231
|
+
* This utility is INCOMPATIBLE with `uri.toString()`-usages and both CANNOT be used interchanged.
|
|
60232
|
+
*
|
|
60233
|
+
* When dealing with uris from files or documents, `extUri` (the unbiased friend)is sufficient
|
|
60234
|
+
* because those uris come from a "trustworthy source". When creating unknown uris it's always
|
|
60235
|
+
* better to use `IUriIdentityService` which exposes an `IExtUri`-instance which knows when path
|
|
60236
|
+
* casing matters.
|
|
60237
|
+
*/
|
|
60238
|
+
new ExtUri(uri => {
|
|
60239
|
+
// A file scheme resource is in the same platform as code, so ignore case for non linux platforms
|
|
60240
|
+
// Resource can be from another platform. Lowering the case as an hack. Should come from File system provider
|
|
60241
|
+
return uri.scheme === Schemas.file ? !isLinux : true;
|
|
60242
|
+
});
|
|
60243
|
+
/**
|
|
60244
|
+
* BIASED utility that always ignores the casing of uris paths. ONLY use this util if you
|
|
60245
|
+
* understand what you are doing.
|
|
60246
|
+
*
|
|
60247
|
+
* This utility is INCOMPATIBLE with `uri.toString()`-usages and both CANNOT be used interchanged.
|
|
60248
|
+
*
|
|
60249
|
+
* When dealing with uris from files or documents, `extUri` (the unbiased friend)is sufficient
|
|
60250
|
+
* because those uris come from a "trustworthy source". When creating unknown uris it's always
|
|
60251
|
+
* better to use `IUriIdentityService` which exposes an `IExtUri`-instance which knows when path
|
|
60252
|
+
* casing matters.
|
|
60253
|
+
*/
|
|
60254
|
+
new ExtUri(_ => true);
|
|
60197
60255
|
const isEqual = extUri.isEqual.bind(extUri);
|
|
60198
60256
|
extUri.isEqualOrParent.bind(extUri);
|
|
60199
60257
|
extUri.getComparisonKey.bind(extUri);
|
|
@@ -105036,6 +105094,20 @@ const intlFileNameCollatorBaseNumeric = new Lazy(() => {
|
|
|
105036
105094
|
collatorIsNumeric: collator.resolvedOptions().numeric
|
|
105037
105095
|
};
|
|
105038
105096
|
});
|
|
105097
|
+
// A collator with numeric sorting enabled.
|
|
105098
|
+
new Lazy(() => {
|
|
105099
|
+
const collator = new Intl.Collator(undefined, { numeric: true });
|
|
105100
|
+
return {
|
|
105101
|
+
collator
|
|
105102
|
+
};
|
|
105103
|
+
});
|
|
105104
|
+
// A collator with numeric sorting enabled, and sensitivity to accents and diacritics but not case.
|
|
105105
|
+
new Lazy(() => {
|
|
105106
|
+
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'accent' });
|
|
105107
|
+
return {
|
|
105108
|
+
collator
|
|
105109
|
+
};
|
|
105110
|
+
});
|
|
105039
105111
|
/** Compares filenames without distinguishing the name from the extension. Disambiguates by unicode comparison. */
|
|
105040
105112
|
function compareFileNames(one, other, caseSensitive = false) {
|
|
105041
105113
|
const a = one || '';
|
|
@@ -120544,7 +120616,7 @@ registerLanguage({
|
|
|
120544
120616
|
mimetypes: ["text/css"],
|
|
120545
120617
|
loader: () => {
|
|
120546
120618
|
{
|
|
120547
|
-
return Promise.resolve().then(function () { return require('./css-
|
|
120619
|
+
return Promise.resolve().then(function () { return require('./css-0ae86119.js'); });
|
|
120548
120620
|
}
|
|
120549
120621
|
}
|
|
120550
120622
|
});
|
|
@@ -120562,7 +120634,7 @@ registerLanguage({
|
|
|
120562
120634
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120563
120635
|
loader: () => {
|
|
120564
120636
|
{
|
|
120565
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
120637
|
+
return Promise.resolve().then(function () { return require('./html-4df48129.js'); });
|
|
120566
120638
|
}
|
|
120567
120639
|
}
|
|
120568
120640
|
});
|
|
@@ -120582,7 +120654,7 @@ registerLanguage({
|
|
|
120582
120654
|
mimetypes: ["text/javascript"],
|
|
120583
120655
|
loader: () => {
|
|
120584
120656
|
{
|
|
120585
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
120657
|
+
return Promise.resolve().then(function () { return require('./javascript-f4eb7ca9.js'); });
|
|
120586
120658
|
}
|
|
120587
120659
|
}
|
|
120588
120660
|
});
|
|
@@ -120600,7 +120672,7 @@ registerLanguage({
|
|
|
120600
120672
|
mimetypes: ["text/typescript"],
|
|
120601
120673
|
loader: () => {
|
|
120602
120674
|
{
|
|
120603
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
120675
|
+
return Promise.resolve().then(function () { return require('./typescript-7b3e1f2a.js'); });
|
|
120604
120676
|
}
|
|
120605
120677
|
}
|
|
120606
120678
|
});
|
|
@@ -120721,7 +120793,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120721
120793
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120722
120794
|
function getMode$3() {
|
|
120723
120795
|
{
|
|
120724
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
120796
|
+
return Promise.resolve().then(function () { return require('./cssMode-ba9bc009.js'); });
|
|
120725
120797
|
}
|
|
120726
120798
|
}
|
|
120727
120799
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120846,7 +120918,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120846
120918
|
};
|
|
120847
120919
|
function getMode$2() {
|
|
120848
120920
|
{
|
|
120849
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
120921
|
+
return Promise.resolve().then(function () { return require('./htmlMode-071997b3.js'); });
|
|
120850
120922
|
}
|
|
120851
120923
|
}
|
|
120852
120924
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120948,7 +121020,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120948
121020
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120949
121021
|
function getMode$1() {
|
|
120950
121022
|
{
|
|
120951
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
121023
|
+
return Promise.resolve().then(function () { return require('./jsonMode-757a7b5a.js'); });
|
|
120952
121024
|
}
|
|
120953
121025
|
}
|
|
120954
121026
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121217,7 +121289,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121217
121289
|
};
|
|
121218
121290
|
function getMode() {
|
|
121219
121291
|
{
|
|
121220
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
121292
|
+
return Promise.resolve().then(function () { return require('./tsMode-a00f62e2.js'); });
|
|
121221
121293
|
}
|
|
121222
121294
|
}
|
|
121223
121295
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -166666,21 +166738,13 @@ registerEditorAction(ToggleHighContrast);
|
|
|
166666
166738
|
|
|
166667
166739
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
166668
166740
|
|
|
166669
|
-
function
|
|
166670
|
-
|
|
166671
|
-
path: basedir,
|
|
166672
|
-
exports: {},
|
|
166673
|
-
require: function (path, base) {
|
|
166674
|
-
return commonjsRequire();
|
|
166675
|
-
}
|
|
166676
|
-
}, fn(module, module.exports), module.exports;
|
|
166741
|
+
function commonjsRequire (path) {
|
|
166742
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
166677
166743
|
}
|
|
166678
166744
|
|
|
166679
|
-
|
|
166680
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
166681
|
-
}
|
|
166745
|
+
var main = {exports: {}};
|
|
166682
166746
|
|
|
166683
|
-
|
|
166747
|
+
(function (module, exports) {
|
|
166684
166748
|
(function (factory) {
|
|
166685
166749
|
{
|
|
166686
166750
|
var v = factory(commonjsRequire, exports);
|
|
@@ -168945,7 +169009,7 @@ var main = createCommonjsModule(function (module, exports) {
|
|
|
168945
169009
|
Is.typedArray = typedArray;
|
|
168946
169010
|
})(Is || (Is = {}));
|
|
168947
169011
|
});
|
|
168948
|
-
});
|
|
169012
|
+
}(main, main.exports));
|
|
168949
169013
|
|
|
168950
169014
|
// src/index.ts
|
|
168951
169015
|
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
|
@@ -169760,7 +169824,7 @@ function getMapPortalItem(map) {
|
|
|
169760
169824
|
}
|
|
169761
169825
|
//#endregion
|
|
169762
169826
|
//#region Editor Profile to Language Service Profile functions
|
|
169763
|
-
async function variablesToLSVariable(editorVariables, kind = main.CompletionItemKind.Variable) {
|
|
169827
|
+
async function variablesToLSVariable(editorVariables, kind = main.exports.CompletionItemKind.Variable) {
|
|
169764
169828
|
return await Promise.all(editorVariables.map(async (editorVariable) => {
|
|
169765
169829
|
switch (editorVariable.type) {
|
|
169766
169830
|
case "dictionary":
|
|
@@ -169783,8 +169847,8 @@ function variableToLSVariable(editorVariable, kind) {
|
|
|
169783
169847
|
label: name,
|
|
169784
169848
|
detail: name,
|
|
169785
169849
|
insertText: name,
|
|
169786
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169787
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169850
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169851
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169788
169852
|
kind,
|
|
169789
169853
|
documentation: { kind: "markdown", value: description },
|
|
169790
169854
|
},
|
|
@@ -169799,8 +169863,8 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169799
169863
|
label: name,
|
|
169800
169864
|
detail: name,
|
|
169801
169865
|
insertText: name,
|
|
169802
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169803
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169866
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169867
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169804
169868
|
kind,
|
|
169805
169869
|
};
|
|
169806
169870
|
const result = {
|
|
@@ -169843,9 +169907,9 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169843
169907
|
label: field.name,
|
|
169844
169908
|
detail: description,
|
|
169845
169909
|
insertText,
|
|
169846
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169847
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169848
|
-
kind: main.CompletionItemKind.Field,
|
|
169910
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169911
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169912
|
+
kind: main.exports.CompletionItemKind.Field,
|
|
169849
169913
|
documentation: { kind: "markdown", value: fieldCompletionDescription },
|
|
169850
169914
|
},
|
|
169851
169915
|
});
|
|
@@ -169865,9 +169929,9 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169865
169929
|
label: field.alias,
|
|
169866
169930
|
detail: field.name,
|
|
169867
169931
|
insertText,
|
|
169868
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169869
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169870
|
-
kind: main.CompletionItemKind.Field,
|
|
169932
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169933
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169934
|
+
kind: main.exports.CompletionItemKind.Field,
|
|
169871
169935
|
documentation: { kind: "markdown", value: aliasCompletionDescription },
|
|
169872
169936
|
},
|
|
169873
169937
|
});
|
|
@@ -169894,13 +169958,13 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
|
|
|
169894
169958
|
name,
|
|
169895
169959
|
description,
|
|
169896
169960
|
type: "dictionary",
|
|
169897
|
-
properties: await variablesToLSVariable(variables, main.CompletionItemKind.Field),
|
|
169961
|
+
properties: await variablesToLSVariable(variables, main.exports.CompletionItemKind.Field),
|
|
169898
169962
|
completion: {
|
|
169899
169963
|
label: name,
|
|
169900
169964
|
detail: name,
|
|
169901
169965
|
insertText: name,
|
|
169902
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169903
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169966
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169967
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169904
169968
|
kind,
|
|
169905
169969
|
documentation: { kind: "markdown", value: completionDescription },
|
|
169906
169970
|
},
|
|
@@ -171125,7 +171189,6 @@ exports.arcade = arcade;
|
|
|
171125
171189
|
exports.arcadeDefaults = arcadeDefaults;
|
|
171126
171190
|
exports.camelToKebab = camelToKebab;
|
|
171127
171191
|
exports.commonjsGlobal = commonjsGlobal;
|
|
171128
|
-
exports.createCommonjsModule = createCommonjsModule;
|
|
171129
171192
|
exports.createFilterExpression = createFilterExpression;
|
|
171130
171193
|
exports.debounce = debounce;
|
|
171131
171194
|
exports.devToolsAwareTimeout = devToolsAwareTimeout;
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.92
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-3c4dc2cf.js');
|
|
9
|
+
require('./index-f0f092db.js');
|
|
10
10
|
|
|
11
|
-
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:arcadeDefaults.main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Keyword}));
|
|
11
|
+
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:arcadeDefaults.main.exports.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:arcadeDefaults.main.exports.CompletionItemKind.Keyword}));
|
|
12
12
|
|
|
13
13
|
const operators = [
|
|
14
14
|
"<=",
|
|
@@ -141,8 +141,8 @@ const arcadeMonarchLanguage = {
|
|
|
141
141
|
// delimiter: after number because of .\d floats
|
|
142
142
|
[/[;,.]/u, "delimiter"],
|
|
143
143
|
// strings
|
|
144
|
-
[/"([^"\\]|\\.)*$/u, "string.invalid"],
|
|
145
|
-
[/'([^'\\]|\\.)*$/u, "string.invalid"],
|
|
144
|
+
[/"([^"\\]|\\.)*$/u, "string.invalid"], // non-teminated string
|
|
145
|
+
[/'([^'\\]|\\.)*$/u, "string.invalid"], // non-teminated string
|
|
146
146
|
[/"/u, "string", "@string_double"],
|
|
147
147
|
[/'/u, "string", "@string_single"],
|
|
148
148
|
[/`/u, "string", "@string_backtick"],
|
|
@@ -303,13 +303,13 @@ class DiagnosticsAdapter {
|
|
|
303
303
|
}
|
|
304
304
|
function toSeverity(languageServiceSeverity) {
|
|
305
305
|
switch (languageServiceSeverity) {
|
|
306
|
-
case arcadeDefaults.main.DiagnosticSeverity.Error:
|
|
306
|
+
case arcadeDefaults.main.exports.DiagnosticSeverity.Error:
|
|
307
307
|
return arcadeDefaults.MarkerSeverity.Error;
|
|
308
|
-
case arcadeDefaults.main.DiagnosticSeverity.Warning:
|
|
308
|
+
case arcadeDefaults.main.exports.DiagnosticSeverity.Warning:
|
|
309
309
|
return arcadeDefaults.MarkerSeverity.Warning;
|
|
310
|
-
case arcadeDefaults.main.DiagnosticSeverity.Information:
|
|
310
|
+
case arcadeDefaults.main.exports.DiagnosticSeverity.Information:
|
|
311
311
|
return arcadeDefaults.MarkerSeverity.Info;
|
|
312
|
-
case arcadeDefaults.main.DiagnosticSeverity.Hint:
|
|
312
|
+
case arcadeDefaults.main.exports.DiagnosticSeverity.Hint:
|
|
313
313
|
return arcadeDefaults.MarkerSeverity.Hint;
|
|
314
314
|
default:
|
|
315
315
|
return arcadeDefaults.MarkerSeverity.Info;
|
|
@@ -348,55 +348,55 @@ function isInsertReplaceEdit(edit) {
|
|
|
348
348
|
function toCompletionItemKind(kind) {
|
|
349
349
|
const mItemKind = arcadeDefaults.languages.CompletionItemKind;
|
|
350
350
|
switch (kind) {
|
|
351
|
-
case arcadeDefaults.main.CompletionItemKind.Text:
|
|
351
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Text:
|
|
352
352
|
return mItemKind.Text;
|
|
353
|
-
case arcadeDefaults.main.CompletionItemKind.Method:
|
|
353
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Method:
|
|
354
354
|
return mItemKind.Method;
|
|
355
|
-
case arcadeDefaults.main.CompletionItemKind.Function:
|
|
355
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Function:
|
|
356
356
|
return mItemKind.Function;
|
|
357
|
-
case arcadeDefaults.main.CompletionItemKind.Constructor:
|
|
357
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Constructor:
|
|
358
358
|
return mItemKind.Constructor;
|
|
359
|
-
case arcadeDefaults.main.CompletionItemKind.Field:
|
|
359
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Field:
|
|
360
360
|
return mItemKind.Field;
|
|
361
|
-
case arcadeDefaults.main.CompletionItemKind.Variable:
|
|
361
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Variable:
|
|
362
362
|
return mItemKind.Variable;
|
|
363
|
-
case arcadeDefaults.main.CompletionItemKind.Class:
|
|
363
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Class:
|
|
364
364
|
return mItemKind.Class;
|
|
365
|
-
case arcadeDefaults.main.CompletionItemKind.Interface:
|
|
365
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Interface:
|
|
366
366
|
return mItemKind.Interface;
|
|
367
|
-
case arcadeDefaults.main.CompletionItemKind.Module:
|
|
367
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Module:
|
|
368
368
|
return mItemKind.Module;
|
|
369
|
-
case arcadeDefaults.main.CompletionItemKind.Property:
|
|
369
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Property:
|
|
370
370
|
return mItemKind.Property;
|
|
371
|
-
case arcadeDefaults.main.CompletionItemKind.Unit:
|
|
371
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Unit:
|
|
372
372
|
return mItemKind.Unit;
|
|
373
|
-
case arcadeDefaults.main.CompletionItemKind.Value:
|
|
373
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Value:
|
|
374
374
|
return mItemKind.Value;
|
|
375
|
-
case arcadeDefaults.main.CompletionItemKind.Enum:
|
|
375
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Enum:
|
|
376
376
|
return mItemKind.Enum;
|
|
377
|
-
case arcadeDefaults.main.CompletionItemKind.Keyword:
|
|
377
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Keyword:
|
|
378
378
|
return mItemKind.Keyword;
|
|
379
|
-
case arcadeDefaults.main.CompletionItemKind.Snippet:
|
|
379
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Snippet:
|
|
380
380
|
return mItemKind.Snippet;
|
|
381
|
-
case arcadeDefaults.main.CompletionItemKind.Color:
|
|
381
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Color:
|
|
382
382
|
return mItemKind.Color;
|
|
383
|
-
case arcadeDefaults.main.CompletionItemKind.File:
|
|
383
|
+
case arcadeDefaults.main.exports.CompletionItemKind.File:
|
|
384
384
|
return mItemKind.File;
|
|
385
|
-
case arcadeDefaults.main.CompletionItemKind.Reference:
|
|
385
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Reference:
|
|
386
386
|
return mItemKind.Reference;
|
|
387
|
-
case arcadeDefaults.main.CompletionItemKind.Folder:
|
|
387
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Folder:
|
|
388
388
|
return mItemKind.Folder;
|
|
389
|
-
case arcadeDefaults.main.CompletionItemKind.EnumMember:
|
|
389
|
+
case arcadeDefaults.main.exports.CompletionItemKind.EnumMember:
|
|
390
390
|
return mItemKind.EnumMember;
|
|
391
|
-
case arcadeDefaults.main.CompletionItemKind.Constant:
|
|
391
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Constant:
|
|
392
392
|
return mItemKind.Constant;
|
|
393
|
-
case arcadeDefaults.main.CompletionItemKind.Struct:
|
|
393
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Struct:
|
|
394
394
|
return mItemKind.Struct;
|
|
395
|
-
case arcadeDefaults.main.CompletionItemKind.Event:
|
|
395
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Event:
|
|
396
396
|
return mItemKind.Event;
|
|
397
|
-
case arcadeDefaults.main.CompletionItemKind.Operator:
|
|
397
|
+
case arcadeDefaults.main.exports.CompletionItemKind.Operator:
|
|
398
398
|
return mItemKind.Operator;
|
|
399
|
-
case arcadeDefaults.main.CompletionItemKind.TypeParameter:
|
|
399
|
+
case arcadeDefaults.main.exports.CompletionItemKind.TypeParameter:
|
|
400
400
|
return mItemKind.TypeParameter;
|
|
401
401
|
default:
|
|
402
402
|
return mItemKind.Property;
|
|
@@ -439,7 +439,7 @@ class CompletionProvider {
|
|
|
439
439
|
if (entry.additionalTextEdits) {
|
|
440
440
|
item.additionalTextEdits = entry.additionalTextEdits.map(toTextEdit);
|
|
441
441
|
}
|
|
442
|
-
if (entry.insertTextFormat === arcadeDefaults.main.InsertTextFormat.Snippet) {
|
|
442
|
+
if (entry.insertTextFormat === arcadeDefaults.main.exports.InsertTextFormat.Snippet) {
|
|
443
443
|
item.insertTextRules = arcadeDefaults.languages.CompletionItemInsertTextRule.InsertAsSnippet;
|
|
444
444
|
}
|
|
445
445
|
if (entry.documentation) {
|