@arcgis/coding-components 4.31.0-next.5 → 4.31.0-next.6
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-e31be2c5.js → p-022df536.js} +1 -1
- package/dist/arcgis-coding-components/{p-60739af5.js → p-10cab8d9.js} +2 -2
- package/dist/arcgis-coding-components/{p-de85c014.js → p-14ab3ed5.js} +1 -1
- package/dist/arcgis-coding-components/{p-ae6af9eb.js → p-19b4f0e9.js} +2 -2
- package/dist/arcgis-coding-components/{p-5b62a1ac.entry.js → p-1baf3624.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-2c85c4b2.js → p-2a7ef2fd.js} +2 -2
- package/dist/arcgis-coding-components/{p-2d32fb1b.js → p-38534c31.js} +2 -2
- package/dist/arcgis-coding-components/{p-aa9d06e6.js → p-41c932b5.js} +2 -2
- package/dist/arcgis-coding-components/{p-c41f6d7c.js → p-8c6a6176.js} +2 -2
- package/dist/arcgis-coding-components/{p-3d5b8c4b.js → p-8e61744c.js} +10 -10
- package/dist/arcgis-coding-components/{p-28d34a6e.entry.js → p-933de2b5.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-65bb8c77.js → p-9dfc06ea.js} +2 -2
- package/dist/arcgis-coding-components/{p-88b5d206.js → p-a536144e.js} +2 -2
- package/dist/arcgis-coding-components/p-cd67026d.js +6 -0
- package/dist/arcgis-coding-components/{p-7bd74de6.entry.js → p-d7e83ea1.entry.js} +2 -2
- package/dist/arcgis-coding-components/p-e055c041.js +6 -0
- package/dist/arcgis-coding-components/{p-7f776266.js → p-e11999af.js} +2 -2
- package/dist/arcgis-coding-components/{p-e89166f0.js → p-f1fab45e.js} +1 -1
- package/dist/cjs/{app-globals-886c7ef0.js → app-globals-8991f48d.js} +1 -1
- package/dist/cjs/{arcade-defaults-56b6742a.js → arcade-defaults-2d36c400.js} +4 -4
- package/dist/cjs/{arcade-mode-2175ca7d.js → arcade-mode-ee5f5a57.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +6 -6
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-b5a232da.js → css-c0ad88d7.js} +1 -1
- package/dist/cjs/{cssMode-f67c30d4.js → cssMode-deeb6f90.js} +3 -3
- package/dist/cjs/{html-d57fda6b.js → html-be08d94a.js} +3 -3
- package/dist/cjs/{htmlMode-c1513225.js → htmlMode-f5b8239a.js} +3 -3
- package/dist/cjs/{index-6563aa26.js → index-358de60d.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-d7362563.js → javascript-37d3d13f.js} +4 -4
- package/dist/cjs/{jsonMode-1ea2f163.js → jsonMode-12a2a091.js} +3 -3
- package/dist/cjs/{language-defaults-base-66e1921b.js → language-defaults-base-1f082ad7.js} +30 -46
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-e30d7627.js → sql-expr-defaults-dca57c68.js} +13 -18
- package/dist/cjs/{sql-expr-mode-74c5c2c2.js → sql-expr-mode-c644220d.js} +4 -4
- package/dist/cjs/{tsMode-9db1a5aa.js → tsMode-d33a7021.js} +3 -3
- package/dist/cjs/{typescript-f6d1b2b4.js → typescript-f3be2ce7.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +2 -2
- package/dist/components/arcade-suggestions.js +2 -2
- package/dist/components/arcade-variables.js +2 -2
- package/dist/components/arcgis-arcade-editor.js +2 -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 +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +2 -2
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/{chunk-6TARY3NN.js → chunk-3IUJHIAA.js} +11 -16
- package/dist/components/code-editor.js +2 -2
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +2 -2
- package/dist/components/language-defaults-base.js +21 -37
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +1 -1
- package/dist/components/sql-expression-fields.js +2 -2
- package/dist/components/useT9n.js +2 -2
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-4531df03.js → app-globals-3e4e0353.js} +1 -1
- package/dist/esm/{arcade-defaults-d85fe608.js → arcade-defaults-1adb5004.js} +4 -4
- package/dist/esm/{arcade-mode-121c8f8b.js → arcade-mode-4a83348d.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +6 -6
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-f03ce15d.js → css-bad8d1c3.js} +1 -1
- package/dist/esm/{cssMode-9350af4a.js → cssMode-68a5f601.js} +3 -3
- package/dist/esm/{html-8a5ee186.js → html-9b27df1a.js} +3 -3
- package/dist/esm/{htmlMode-dbcde814.js → htmlMode-361ad282.js} +3 -3
- package/dist/esm/{index-71c8a762.js → index-8a552796.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-b11dc132.js → javascript-8004e14f.js} +4 -4
- package/dist/esm/{jsonMode-7afef1a4.js → jsonMode-91a0be74.js} +3 -3
- package/dist/esm/{language-defaults-base-47e8d77c.js → language-defaults-base-df906b3d.js} +30 -46
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-fa9b2d75.js → sql-expr-defaults-ae0be602.js} +13 -18
- package/dist/esm/{sql-expr-mode-931857be.js → sql-expr-mode-1821b2b9.js} +4 -4
- package/dist/esm/{tsMode-76190ec2.js → tsMode-2756c213.js} +3 -3
- package/dist/esm/{typescript-346e9d47.js → typescript-1aaf3ddd.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/components/arcade-editor/arcade-editor.d.ts +1 -1
- package/dist/types/components/arcade-results/arcade-results.d.ts +1 -1
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +1 -1
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +1 -1
- package/dist/types/components/language-api-panel/language-api-panel.d.ts +1 -1
- package/dist/types/utils/profile/types.d.ts +29 -69
- package/dist/types/utils/profile/utils.d.ts +4 -7
- package/package.json +10 -10
- package/dist/arcgis-coding-components/p-43da2244.js +0 -6
- package/dist/arcgis-coding-components/p-cbf4fec2.js +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-358de60d.js');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -120616,7 +120616,7 @@ registerLanguage({
|
|
|
120616
120616
|
mimetypes: ["text/css"],
|
|
120617
120617
|
loader: () => {
|
|
120618
120618
|
{
|
|
120619
|
-
return Promise.resolve().then(function () { return require('./css-
|
|
120619
|
+
return Promise.resolve().then(function () { return require('./css-c0ad88d7.js'); });
|
|
120620
120620
|
}
|
|
120621
120621
|
}
|
|
120622
120622
|
});
|
|
@@ -120634,7 +120634,7 @@ registerLanguage({
|
|
|
120634
120634
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120635
120635
|
loader: () => {
|
|
120636
120636
|
{
|
|
120637
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
120637
|
+
return Promise.resolve().then(function () { return require('./html-be08d94a.js'); });
|
|
120638
120638
|
}
|
|
120639
120639
|
}
|
|
120640
120640
|
});
|
|
@@ -120654,7 +120654,7 @@ registerLanguage({
|
|
|
120654
120654
|
mimetypes: ["text/javascript"],
|
|
120655
120655
|
loader: () => {
|
|
120656
120656
|
{
|
|
120657
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
120657
|
+
return Promise.resolve().then(function () { return require('./javascript-37d3d13f.js'); });
|
|
120658
120658
|
}
|
|
120659
120659
|
}
|
|
120660
120660
|
});
|
|
@@ -120672,7 +120672,7 @@ registerLanguage({
|
|
|
120672
120672
|
mimetypes: ["text/typescript"],
|
|
120673
120673
|
loader: () => {
|
|
120674
120674
|
{
|
|
120675
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
120675
|
+
return Promise.resolve().then(function () { return require('./typescript-f3be2ce7.js'); });
|
|
120676
120676
|
}
|
|
120677
120677
|
}
|
|
120678
120678
|
});
|
|
@@ -120793,7 +120793,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120793
120793
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120794
120794
|
function getMode$3() {
|
|
120795
120795
|
{
|
|
120796
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
120796
|
+
return Promise.resolve().then(function () { return require('./cssMode-deeb6f90.js'); });
|
|
120797
120797
|
}
|
|
120798
120798
|
}
|
|
120799
120799
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120918,7 +120918,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120918
120918
|
};
|
|
120919
120919
|
function getMode$2() {
|
|
120920
120920
|
{
|
|
120921
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
120921
|
+
return Promise.resolve().then(function () { return require('./htmlMode-f5b8239a.js'); });
|
|
120922
120922
|
}
|
|
120923
120923
|
}
|
|
120924
120924
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -121020,7 +121020,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
121020
121020
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
121021
121021
|
function getMode$1() {
|
|
121022
121022
|
{
|
|
121023
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
121023
|
+
return Promise.resolve().then(function () { return require('./jsonMode-12a2a091.js'); });
|
|
121024
121024
|
}
|
|
121025
121025
|
}
|
|
121026
121026
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121289,7 +121289,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121289
121289
|
};
|
|
121290
121290
|
function getMode() {
|
|
121291
121291
|
{
|
|
121292
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
121292
|
+
return Promise.resolve().then(function () { return require('./tsMode-d33a7021.js'); });
|
|
121293
121293
|
}
|
|
121294
121294
|
}
|
|
121295
121295
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -169086,19 +169086,13 @@ function isQueryableLayerInstance(item) {
|
|
|
169086
169086
|
"queryFeatures" in item &&
|
|
169087
169087
|
typeof item.queryFeatures === "function");
|
|
169088
169088
|
}
|
|
169089
|
-
function
|
|
169089
|
+
function isGroupLayerCapable(item) {
|
|
169090
169090
|
return (!!item &&
|
|
169091
169091
|
typeof item === "object" &&
|
|
169092
|
-
"
|
|
169093
|
-
|
|
169094
|
-
item.
|
|
169095
|
-
|
|
169096
|
-
function isGroupLayerInstance(item) {
|
|
169097
|
-
return (!!item &&
|
|
169098
|
-
typeof item === "object" &&
|
|
169099
|
-
"declaredClass" in item &&
|
|
169100
|
-
typeof item.declaredClass === "string" &&
|
|
169101
|
-
item.declaredClass === "esri.layers.GroupLayer");
|
|
169092
|
+
"allLayers" in item &&
|
|
169093
|
+
"allTables" in item &&
|
|
169094
|
+
typeof item.allLayers === "object" &&
|
|
169095
|
+
typeof item.allTables === "object");
|
|
169102
169096
|
}
|
|
169103
169097
|
function isMapInstance(item) {
|
|
169104
169098
|
return (!!item &&
|
|
@@ -169109,14 +169103,8 @@ function isMapInstance(item) {
|
|
|
169109
169103
|
item.declaredClass === "esri.WebMap" ||
|
|
169110
169104
|
item.declaredClass === "esri.WebScene"));
|
|
169111
169105
|
}
|
|
169112
|
-
function
|
|
169113
|
-
return item
|
|
169114
|
-
}
|
|
169115
|
-
function isWebSceneInstance(item) {
|
|
169116
|
-
return item.declaredClass === "esri.WebScene";
|
|
169117
|
-
}
|
|
169118
|
-
function isLoadableMapInstance(item) {
|
|
169119
|
-
return item.declaredClass === "esri.WebMap" || item.declaredClass === "esri.WebScene";
|
|
169106
|
+
function isLoadAllCapable(item) {
|
|
169107
|
+
return !!item && typeof item === "object" && "loadAll" in item && typeof item.loadAll === "function";
|
|
169120
169108
|
}
|
|
169121
169109
|
function isPortalItemDefinition(item) {
|
|
169122
169110
|
return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
|
|
@@ -169181,6 +169169,9 @@ function isSubtypeFieldCapableLayer(item) {
|
|
|
169181
169169
|
function isSubtypesCapableLayer(item) {
|
|
169182
169170
|
return isSubtypeFieldCapableLayer(item) && "subtypes" in item;
|
|
169183
169171
|
}
|
|
169172
|
+
function isPortalItemCapable(item) {
|
|
169173
|
+
return !!item && typeof item === "object" && "portalItem" in item;
|
|
169174
|
+
}
|
|
169184
169175
|
function isRelationshipsCapableLayer(item) {
|
|
169185
169176
|
return (isLayerIdCapableSource(item) &&
|
|
169186
169177
|
"relationships" in item &&
|
|
@@ -169780,14 +169771,6 @@ function sortFields(layer) {
|
|
|
169780
169771
|
if (secondField.type === "oid") {
|
|
169781
169772
|
return 1;
|
|
169782
169773
|
}
|
|
169783
|
-
if (isSubtypeSublayerInstance(layer)) {
|
|
169784
|
-
if (firstField.name === layer.parent.subtypeField) {
|
|
169785
|
-
return -1;
|
|
169786
|
-
}
|
|
169787
|
-
if (secondField.name === layer.parent.subtypeField) {
|
|
169788
|
-
return 1;
|
|
169789
|
-
}
|
|
169790
|
-
}
|
|
169791
169774
|
if (isSubtypeFieldCapableLayer(layer)) {
|
|
169792
169775
|
if (firstField.name === layer.subtypeField) {
|
|
169793
169776
|
return -1;
|
|
@@ -169825,7 +169808,7 @@ function assembleMemberExpression(obj, prop) {
|
|
|
169825
169808
|
return `${obj}${getMemberExpressionProperty(prop)}`;
|
|
169826
169809
|
}
|
|
169827
169810
|
function getMapPortalItem(map) {
|
|
169828
|
-
if (
|
|
169811
|
+
if (isPortalItemCapable(map)) {
|
|
169829
169812
|
return map.portalItem;
|
|
169830
169813
|
}
|
|
169831
169814
|
return null;
|
|
@@ -170681,13 +170664,14 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170681
170664
|
if (typeof this._featureSetCollections.source === "string") {
|
|
170682
170665
|
return this._profile?.intlStrings.featureservice ?? "featureservice";
|
|
170683
170666
|
}
|
|
170684
|
-
|
|
170685
|
-
|
|
170686
|
-
|
|
170687
|
-
|
|
170688
|
-
|
|
170667
|
+
switch (this._featureSetCollections.source.declaredClass) {
|
|
170668
|
+
case "esri.WebMap":
|
|
170669
|
+
return this._profile?.intlStrings.webmap ?? "webmap";
|
|
170670
|
+
case "esri.WebScene":
|
|
170671
|
+
return this._profile?.intlStrings.webscene ?? "webscene";
|
|
170672
|
+
default:
|
|
170673
|
+
return this._profile?.intlStrings.map ?? "map";
|
|
170689
170674
|
}
|
|
170690
|
-
return this._profile?.intlStrings.map ?? "map";
|
|
170691
170675
|
}
|
|
170692
170676
|
async loadSource() {
|
|
170693
170677
|
if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
|
|
@@ -170754,7 +170738,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170754
170738
|
return null;
|
|
170755
170739
|
}
|
|
170756
170740
|
async _featureSetCollectionFromMap(map) {
|
|
170757
|
-
if (
|
|
170741
|
+
if (isLoadAllCapable(map)) {
|
|
170758
170742
|
// Make sure the map is loaded
|
|
170759
170743
|
await map.loadAll();
|
|
170760
170744
|
}
|
|
@@ -170816,7 +170800,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170816
170800
|
layerVariables.push(this._createFeatureSetVariable(layer, true));
|
|
170817
170801
|
return;
|
|
170818
170802
|
}
|
|
170819
|
-
if (
|
|
170803
|
+
if (isGroupLayerCapable(layer)) {
|
|
170820
170804
|
const groupLayerVariables = filteringTables
|
|
170821
170805
|
? this._convertWebMapLayersToVariables(layer.allTables, true)
|
|
170822
170806
|
: this._convertWebMapLayersToVariables(layer.allLayers);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const appGlobals = require('./app-globals-
|
|
10
|
+
const index = require('./index-358de60d.js');
|
|
11
|
+
const appGlobals = require('./app-globals-8991f48d.js');
|
|
12
12
|
|
|
13
13
|
const defineCustomElements = async (win, options) => {
|
|
14
14
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
9
|
-
const index = require('./index-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-1f082ad7.js');
|
|
9
|
+
const index = require('./index-358de60d.js');
|
|
10
10
|
|
|
11
11
|
// src/framework.ts
|
|
12
12
|
function retrieveComponentMembers(component, isLit) {
|
|
@@ -18,7 +18,7 @@ function retrieveComponentMembers(component, isLit) {
|
|
|
18
18
|
([name, descriptor]) => descriptor.noAccessor ? void 0 : [
|
|
19
19
|
name,
|
|
20
20
|
[
|
|
21
|
-
(descriptor.
|
|
21
|
+
(descriptor.readOnly ? 2048 /* ReadOnly */ : 0) | (descriptor.state ? 32 /* State */ : descriptor.type === Number ? 2 /* Number */ : descriptor.type === Boolean ? 4 /* Boolean */ : 1 /* String */)
|
|
22
22
|
]
|
|
23
23
|
]
|
|
24
24
|
).filter(languageDefaultsBase.isNotUndefined)
|
|
@@ -144,7 +144,7 @@ var useRefSync = (value) => {
|
|
|
144
144
|
var shouldBypass = {
|
|
145
145
|
setter: false,
|
|
146
146
|
getter: false,
|
|
147
|
-
|
|
147
|
+
readOnly: false
|
|
148
148
|
};
|
|
149
149
|
var elementToInstance = /* @__PURE__ */ new WeakMap();
|
|
150
150
|
var _a;
|
|
@@ -417,12 +417,7 @@ _a = controllerSymbol;
|
|
|
417
417
|
function callUpdate(callback) {
|
|
418
418
|
languageDefaultsBase.safeCall(callback, void 0, this);
|
|
419
419
|
}
|
|
420
|
-
var GenericController =
|
|
421
|
-
// Redundant constructor needed to improve typing
|
|
422
|
-
constructor(component) {
|
|
423
|
-
super(component);
|
|
424
|
-
}
|
|
425
|
-
};
|
|
420
|
+
var GenericController = Controller;
|
|
426
421
|
function makeProvisionalValue(base) {
|
|
427
422
|
if (typeof base !== "object" && typeof base !== "function" || base === null) {
|
|
428
423
|
return base;
|
|
@@ -520,7 +515,7 @@ var ComponentInternals = class {
|
|
|
520
515
|
this.enabledWatchers = {};
|
|
521
516
|
this.allWatchers = {};
|
|
522
517
|
/**
|
|
523
|
-
* "
|
|
518
|
+
* "readOnly" is not enabled initially since we need to allow to set property
|
|
524
519
|
* default values in the constructor.
|
|
525
520
|
* For Stencil, readonly is enabled by the `readonly()` controller.
|
|
526
521
|
* For Lit, we have the following logic:
|
|
@@ -533,7 +528,7 @@ var ComponentInternals = class {
|
|
|
533
528
|
const internals = this.component.manager.internals;
|
|
534
529
|
Object.entries(internals.members).forEach(([name2, [type]]) => {
|
|
535
530
|
var _a2;
|
|
536
|
-
const isReadOnly = type & 2048 /*
|
|
531
|
+
const isReadOnly = type & 2048 /* ReadOnly */;
|
|
537
532
|
if (isReadOnly) {
|
|
538
533
|
(_a2 = internals.setters)[name2] ?? (_a2[name2] = []);
|
|
539
534
|
internals.setters[name2].push(internals.readonlySetter);
|
|
@@ -549,7 +544,7 @@ var ComponentInternals = class {
|
|
|
549
544
|
this.reactiveUtilsIntegrations = /* @__PURE__ */ new Set();
|
|
550
545
|
this._exports = /* @__PURE__ */ new WeakMap();
|
|
551
546
|
this.readonlySetter = (newValue, _oldValue, property) => {
|
|
552
|
-
if (shouldBypass.
|
|
547
|
+
if (shouldBypass.readOnly) {
|
|
553
548
|
return newValue;
|
|
554
549
|
}
|
|
555
550
|
throw new Error(
|
|
@@ -1054,12 +1049,12 @@ function genericGetSet(component, property, getSet2) {
|
|
|
1054
1049
|
}
|
|
1055
1050
|
}
|
|
1056
1051
|
var ignoreSet = (_, value) => value;
|
|
1057
|
-
function
|
|
1058
|
-
shouldBypass.
|
|
1052
|
+
function bypassReadOnly(callback) {
|
|
1053
|
+
shouldBypass.readOnly = true;
|
|
1059
1054
|
try {
|
|
1060
1055
|
return callback();
|
|
1061
1056
|
} finally {
|
|
1062
|
-
shouldBypass.
|
|
1057
|
+
shouldBypass.readOnly = false;
|
|
1063
1058
|
}
|
|
1064
1059
|
}
|
|
1065
1060
|
|
|
@@ -1110,7 +1105,7 @@ function setProxy(controller, { host, key, isReactive: assignedToProp }, initial
|
|
|
1110
1105
|
const manager = controller.component.manager;
|
|
1111
1106
|
const isReadOnly = manager.internals.setters[key]?.includes(manager.internals.readonlySetter);
|
|
1112
1107
|
if (isReadOnly) {
|
|
1113
|
-
|
|
1108
|
+
bypassReadOnly(() => {
|
|
1114
1109
|
genericHost[key] = controller.exports;
|
|
1115
1110
|
});
|
|
1116
1111
|
} else {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
9
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
10
|
-
require('./index-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-1f082ad7.js');
|
|
9
|
+
const sqlExprDefaults = require('./sql-expr-defaults-dca57c68.js');
|
|
10
|
+
require('./index-358de60d.js');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Manager to create our sql-expression worker and client proxy
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
9
|
-
require('./index-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-1f082ad7.js');
|
|
9
|
+
require('./index-358de60d.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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
9
|
-
require('./index-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-1f082ad7.js');
|
|
9
|
+
require('./index-358de60d.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { Uri } from 'monaco-editor';
|
|
7
7
|
import { L as LanguageDefaultsBase, i as isPredefinedProfile, c as convertToEditorProfileDefinition, E as EditorProfile } from './language-defaults-base.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
|
|
7
7
|
import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host, forceUpdate } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as importArcade, s as supportedFields } from './fields.js';
|
|
8
|
-
import { u as useControllerManager } from './chunk-
|
|
8
|
+
import { u as useControllerManager } from './chunk-3IUJHIAA.js';
|
|
9
9
|
import { s as setValuesInString, q as quoteString } from './index2.js';
|
|
10
10
|
import { u as useT9n } from './useT9n.js';
|
|
11
11
|
import "@esri/calcite-components/dist/components/calcite-tree.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
|
|
8
8
|
import { f as filterCollection } from './utilities.js';
|
|
9
|
-
import { u as useControllerManager } from './chunk-
|
|
9
|
+
import { u as useControllerManager } from './chunk-3IUJHIAA.js';
|
|
10
10
|
import { r as setFocusOnElement } from './index2.js';
|
|
11
11
|
import { u as useT9n } from './useT9n.js';
|
|
12
12
|
import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
|
|
7
|
-
import { u as useControllerManager } from './chunk-
|
|
7
|
+
import { u as useControllerManager } from './chunk-3IUJHIAA.js';
|
|
8
8
|
import { r as setFocusOnElement, d as createFilterExpression } from './index2.js';
|
|
9
9
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
10
10
|
import { u as useT9n } from './useT9n.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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { KeyCode } from 'monaco-editor';
|
|
8
8
|
import { d as defineCustomElement$6, e as executeScript, D as DevelopersWebSitePath } from './arcade-results.js';
|
|
9
9
|
import { d as defineCustomElement$3, u as updateThemeColors, c as colorRulesKeys, s as setupMonacoEnvironment } from './code-editor.js';
|
|
10
|
-
import { u as useControllerManager, g as getSet } from './chunk-
|
|
10
|
+
import { u as useControllerManager, g as getSet } from './chunk-3IUJHIAA.js';
|
|
11
11
|
import { D as Deferred, g as generateGuid, e as getElementTheme } from './index2.js';
|
|
12
12
|
import { b as arcadeDefaults, g as getArcadeDiagnosticService } from './arcade-defaults.js';
|
|
13
13
|
import { u as useT9n } from './useT9n.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
5
|
-
* v4.31.0-next.
|
|
5
|
+
* v4.31.0-next.6
|
|
6
6
|
*/
|
|
7
7
|
let resourceUrl = "https://js.arcgis.com/coding-components/next/";
|
|
8
8
|
export const getArcgisAssetPath = (path) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisLanguageApiPanel$1, d as defineCustomElement$1 } from './language-api-panel.js';
|
|
7
7
|
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
|
-
import { u as useControllerManager } from './chunk-
|
|
7
|
+
import { u as useControllerManager } from './chunk-3IUJHIAA.js';
|
|
8
8
|
import { g as generateGuid } from './index2.js';
|
|
9
9
|
import { s as sqlExprDefaults } from './sql-expr-defaults.js';
|
|
10
10
|
import { d as defineCustomElement$4 } from './code-editor.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { S as SqlExpressionFields, d as defineCustomElement$1 } from './sql-expression-fields.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { a as isNotUndefined, D as Deferred, k as safeAsyncCall, l as devToolsAwareTimeout, m as safeCall } from './index2.js';
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ function retrieveComponentMembers(component, isLit) {
|
|
|
15
15
|
([name, descriptor]) => descriptor.noAccessor ? void 0 : [
|
|
16
16
|
name,
|
|
17
17
|
[
|
|
18
|
-
(descriptor.
|
|
18
|
+
(descriptor.readOnly ? 2048 /* ReadOnly */ : 0) | (descriptor.state ? 32 /* State */ : descriptor.type === Number ? 2 /* Number */ : descriptor.type === Boolean ? 4 /* Boolean */ : 1 /* String */)
|
|
19
19
|
]
|
|
20
20
|
]
|
|
21
21
|
).filter(isNotUndefined)
|
|
@@ -141,7 +141,7 @@ var useRefSync = (value) => {
|
|
|
141
141
|
var shouldBypass = {
|
|
142
142
|
setter: false,
|
|
143
143
|
getter: false,
|
|
144
|
-
|
|
144
|
+
readOnly: false
|
|
145
145
|
};
|
|
146
146
|
var elementToInstance = /* @__PURE__ */ new WeakMap();
|
|
147
147
|
var _a;
|
|
@@ -414,12 +414,7 @@ _a = controllerSymbol;
|
|
|
414
414
|
function callUpdate(callback) {
|
|
415
415
|
safeCall(callback, void 0, this);
|
|
416
416
|
}
|
|
417
|
-
var GenericController =
|
|
418
|
-
// Redundant constructor needed to improve typing
|
|
419
|
-
constructor(component) {
|
|
420
|
-
super(component);
|
|
421
|
-
}
|
|
422
|
-
};
|
|
417
|
+
var GenericController = Controller;
|
|
423
418
|
function makeProvisionalValue(base) {
|
|
424
419
|
if (typeof base !== "object" && typeof base !== "function" || base === null) {
|
|
425
420
|
return base;
|
|
@@ -517,7 +512,7 @@ var ComponentInternals = class {
|
|
|
517
512
|
this.enabledWatchers = {};
|
|
518
513
|
this.allWatchers = {};
|
|
519
514
|
/**
|
|
520
|
-
* "
|
|
515
|
+
* "readOnly" is not enabled initially since we need to allow to set property
|
|
521
516
|
* default values in the constructor.
|
|
522
517
|
* For Stencil, readonly is enabled by the `readonly()` controller.
|
|
523
518
|
* For Lit, we have the following logic:
|
|
@@ -530,7 +525,7 @@ var ComponentInternals = class {
|
|
|
530
525
|
const internals = this.component.manager.internals;
|
|
531
526
|
Object.entries(internals.members).forEach(([name2, [type]]) => {
|
|
532
527
|
var _a2;
|
|
533
|
-
const isReadOnly = type & 2048 /*
|
|
528
|
+
const isReadOnly = type & 2048 /* ReadOnly */;
|
|
534
529
|
if (isReadOnly) {
|
|
535
530
|
(_a2 = internals.setters)[name2] ?? (_a2[name2] = []);
|
|
536
531
|
internals.setters[name2].push(internals.readonlySetter);
|
|
@@ -546,7 +541,7 @@ var ComponentInternals = class {
|
|
|
546
541
|
this.reactiveUtilsIntegrations = /* @__PURE__ */ new Set();
|
|
547
542
|
this._exports = /* @__PURE__ */ new WeakMap();
|
|
548
543
|
this.readonlySetter = (newValue, _oldValue, property) => {
|
|
549
|
-
if (shouldBypass.
|
|
544
|
+
if (shouldBypass.readOnly) {
|
|
550
545
|
return newValue;
|
|
551
546
|
}
|
|
552
547
|
throw new Error(
|
|
@@ -1051,12 +1046,12 @@ function genericGetSet(component, property, getSet2) {
|
|
|
1051
1046
|
}
|
|
1052
1047
|
}
|
|
1053
1048
|
var ignoreSet = (_, value) => value;
|
|
1054
|
-
function
|
|
1055
|
-
shouldBypass.
|
|
1049
|
+
function bypassReadOnly(callback) {
|
|
1050
|
+
shouldBypass.readOnly = true;
|
|
1056
1051
|
try {
|
|
1057
1052
|
return callback();
|
|
1058
1053
|
} finally {
|
|
1059
|
-
shouldBypass.
|
|
1054
|
+
shouldBypass.readOnly = false;
|
|
1060
1055
|
}
|
|
1061
1056
|
}
|
|
1062
1057
|
|
|
@@ -1107,7 +1102,7 @@ function setProxy(controller, { host, key, isReactive: assignedToProp }, initial
|
|
|
1107
1102
|
const manager = controller.component.manager;
|
|
1108
1103
|
const isReadOnly = manager.internals.setters[key]?.includes(manager.internals.readonlySetter);
|
|
1109
1104
|
if (isReadOnly) {
|
|
1110
|
-
|
|
1105
|
+
bypassReadOnly(() => {
|
|
1111
1106
|
genericHost[key] = controller.exports;
|
|
1112
1107
|
});
|
|
1113
1108
|
} else {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { editor, languages, Range, Uri, KeyMod, KeyCode } from 'monaco-editor';
|
|
8
8
|
import { i as importRequest } from './fields.js';
|
|
9
9
|
import { h as isURL, j as hasSameOrigin, D as Deferred, g as generateGuid, o as observeAncestorsMutation, e as getElementTheme } from './index2.js';
|
|
10
|
-
import { u as useControllerManager, g as getSet } from './chunk-
|
|
10
|
+
import { u as useControllerManager, g as getSet } from './chunk-3IUJHIAA.js';
|
|
11
11
|
import { b as arcadeDefaults, c as getMode$1 } from './arcade-defaults.js';
|
|
12
12
|
import { s as sqlExprDefaults } from './sql-expr-defaults.js';
|
|
13
13
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|