@arcgis/coding-components 4.31.0-next.3 → 4.31.0-next.30
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-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/assets/code-editor/sql-expr.worker.js +447 -7
- package/dist/arcgis-coding-components/assets/language-api-panel/t9n/language-api-panel.t9n.ca.json +1 -1
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-42c8b545.js → p-1cec2132.js} +3 -3
- package/dist/arcgis-coding-components/{p-3ca5ba95.entry.js → p-2186676a.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-86106a9a.js → p-26f5a06d.js} +1 -1
- package/dist/arcgis-coding-components/p-3645c71d.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-8b4298d5.js → p-4ce2a213.js} +2 -2
- package/dist/arcgis-coding-components/{p-111ba641.js → p-57bde3ee.js} +2 -2
- package/dist/arcgis-coding-components/p-57dbf777.js +7 -0
- package/dist/arcgis-coding-components/{p-9132bc9c.entry.js → p-639adfca.entry.js} +2 -2
- package/dist/arcgis-coding-components/p-71d639a6.js +6 -0
- package/dist/arcgis-coding-components/{p-6554a853.js → p-72266079.js} +1 -1
- package/dist/arcgis-coding-components/p-7e2ae261.js +6 -0
- package/dist/arcgis-coding-components/{p-5eb82abf.js → p-8897f806.js} +2 -2
- package/dist/arcgis-coding-components/p-91bb956b.js +6 -0
- package/dist/arcgis-coding-components/p-9b2002c3.js +6 -0
- package/dist/arcgis-coding-components/{p-7c6b3d40.js → p-9c411f13.js} +2 -2
- package/dist/arcgis-coding-components/{p-c4a5150e.js → p-bd309794.js} +3 -3
- package/dist/arcgis-coding-components/{p-4986aaf2.js → p-cc0edd81.js} +3 -3
- package/dist/arcgis-coding-components/{p-93d0e0cc.js → p-e295aee1.js} +12 -12
- package/dist/arcgis-coding-components/p-fe4ee070.js +6 -0
- package/dist/cjs/{app-globals-92c5b499.js → app-globals-e98febdb.js} +1 -1
- package/dist/cjs/arcade-defaults-c6ecbcbe.js +349 -0
- package/dist/cjs/arcade-language-features-eeb1f261.js +274 -0
- package/dist/cjs/{arcade-mode-dfd66b4b.js → arcade-mode-a2d05415.js} +6 -266
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +20 -26
- package/dist/cjs/arcgis-coding-components.cjs.js +5 -5
- 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-9b0053c3.js → css-1b37a5a3.js} +1 -1
- package/dist/cjs/{cssMode-62e53008.js → cssMode-e08a9e80.js} +2 -3
- package/dist/cjs/{html-3036e89e.js → html-b55754c8.js} +2 -3
- package/dist/cjs/{htmlMode-c37eee42.js → htmlMode-e335e2e0.js} +2 -3
- package/dist/cjs/{index-be6b2520.js → index-1e6c6daf.js} +43 -15
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-7276c023.js → javascript-5d6e0e2f.js} +3 -4
- package/dist/cjs/{jsonMode-baa295f0.js → jsonMode-5aeae11c.js} +2 -3
- package/dist/cjs/{language-defaults-base-5817af52.js → language-defaults-base-b33c98c5.js} +842 -1062
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-746bbc5f.js → sql-expr-defaults-2fcbfae4.js} +101 -39
- package/dist/cjs/sql-expr-mode-72880fff.js +1171 -0
- package/dist/cjs/{tsMode-36398912.js → tsMode-5559948f.js} +2 -3
- package/dist/cjs/{typescript-608a420b.js → typescript-6dfdd308.js} +2 -3
- package/dist/components/arcade-defaults.js +238 -4
- package/dist/components/arcade-language-features.js +271 -0
- package/dist/components/arcade-mode.js +4 -264
- package/dist/components/arcade-results.js +3 -3
- package/dist/components/arcade-suggestions.js +2 -2
- package/dist/components/arcade-variables.js +2 -2
- package/dist/components/arcgis-arcade-editor.js +7 -6
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-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-EOMOY2EF.js} +12 -17
- package/dist/components/code-editor.js +16 -23
- package/dist/components/fields.js +22 -4
- package/dist/components/index.d.ts +18 -3
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +2 -2
- package/dist/components/language-api-panel.js +2 -2
- package/dist/components/language-defaults-base.js +81 -323
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +89 -24
- package/dist/components/sql-expr-mode.js +1009 -24971
- 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-5e178541.js → app-globals-906d2920.js} +1 -1
- package/dist/esm/arcade-defaults-01c1778e.js +344 -0
- package/dist/esm/arcade-language-features-5d86df55.js +269 -0
- package/dist/esm/{arcade-mode-02336ce9.js → arcade-mode-ffa50b73.js} +3 -263
- package/dist/esm/arcgis-arcade-editor_6.entry.js +21 -27
- package/dist/esm/arcgis-coding-components.js +6 -6
- 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-e79f1ed1.js → css-e6d12b19.js} +1 -1
- package/dist/esm/{cssMode-cd007d02.js → cssMode-eda5bf61.js} +2 -3
- package/dist/esm/{html-d079d00d.js → html-b5f697d7.js} +2 -3
- package/dist/esm/{htmlMode-ff14e035.js → htmlMode-1b54015e.js} +2 -3
- package/dist/esm/{index-88fc341d.js → index-0ec9c3f1.js} +43 -15
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-69f7c282.js → javascript-f1c7843a.js} +3 -4
- package/dist/esm/{jsonMode-18ddadde.js → jsonMode-2277640b.js} +2 -3
- package/dist/esm/{language-defaults-base-6687d11a.js → language-defaults-base-b508c08f.js} +837 -1062
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-2cdfe08a.js → sql-expr-defaults-715f6bad.js} +100 -40
- package/dist/esm/sql-expr-mode-3cd5df90.js +1167 -0
- package/dist/esm/{tsMode-c2e5d33a.js → tsMode-075abf4a.js} +2 -3
- package/dist/esm/{typescript-a0fbebf0.js → typescript-22cfacaa.js} +2 -3
- package/dist/loader/cdn.js +2 -3
- package/dist/loader/index.cjs.js +2 -3
- package/dist/loader/index.es2017.js +2 -3
- package/dist/loader/index.js +2 -3
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +13 -3
- 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/code-editor/code-editor.d.ts +14 -4
- package/dist/types/components/language-api-panel/language-api-panel.d.ts +1 -1
- package/dist/types/components.d.ts +13 -13
- 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/stencil-public-runtime.d.ts +3 -8
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -0
- package/dist/types/utils/arcade-monaco/arcade-profile-strategy.d.ts +9 -0
- package/dist/types/utils/fields.d.ts +2 -2
- package/dist/types/utils/profile/editor-profile.d.ts +7 -6
- package/dist/types/utils/profile/types.d.ts +53 -65
- package/dist/types/utils/profile/utils.d.ts +9 -8
- package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +3 -2
- package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +45 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-contribution.d.ts +1 -11
- package/dist/types/utils/sql-expr-monaco/sql-expr-defaults.d.ts +0 -1
- package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +19 -520
- package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +34 -1
- package/dist/types/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +19 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -7
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +75 -77
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +5 -6
- package/dist/types/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +2 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr.worker.d.ts +9 -6
- package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +13 -0
- package/dist/types/utils/sql-expr-monaco/types.d.ts +6 -12
- package/package.json +19 -19
- package/dist/arcgis-coding-components/p-0105cc95.js +0 -6
- package/dist/arcgis-coding-components/p-5e26a360.js +0 -6
- package/dist/arcgis-coding-components/p-9c7e0089.js +0 -7
- package/dist/arcgis-coding-components/p-b82e98f0.js +0 -6
- package/dist/arcgis-coding-components/p-d353f1ba.entry.js +0 -6
- package/dist/arcgis-coding-components/p-fe6ccfe0.js +0 -6
- package/dist/cjs/arcade-defaults-34e82ff5.js +0 -116
- package/dist/cjs/sql-expr-mode-a9f1b697.js +0 -25135
- package/dist/esm/arcade-defaults-6dac6b30.js +0 -111
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/sql-expr-mode-f10e5a43.js +0 -25132
- package/dist/types/utils/profile/predefined-profile.d.ts +0 -4
- package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +0 -41
- package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +0 -16
- package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +0 -26
- package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +0 -37
- package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +0 -11
- package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +0 -122
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +0 -5
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +0 -18
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +0 -6
- package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +0 -156
- package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +0 -150
- package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +0 -1397
- package/dist/types/utils/sql-expr-monaco/libraries/date/properties/index.d.ts +0 -59
- package/dist/types/utils/sql-expr-monaco/libraries/numeric/properties/index.d.ts +0 -295
- package/dist/types/utils/sql-expr-monaco/libraries/string/properties/index.d.ts +0 -135
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-adapter.d.ts +0 -3
- package/dist/types/utils/sql-expr-profile/predefined-profile.d.ts +0 -2
|
@@ -1,10 +1,9 @@
|
|
|
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.30
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-88fc341d.js';
|
|
6
|
+
import { N as typescriptDefaults, M as monaco_editor_core_star } from './language-defaults-base-b508c08f.js';
|
|
8
7
|
|
|
9
8
|
/*!-----------------------------------------------------------------------------
|
|
10
9
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,9 @@
|
|
|
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.30
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-88fc341d.js';
|
|
6
|
+
import { M as monaco_editor_core_star } from './language-defaults-base-b508c08f.js';
|
|
8
7
|
|
|
9
8
|
/*!-----------------------------------------------------------------------------
|
|
10
9
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/loader/cdn.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
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.30
|
|
5
5
|
*/
|
|
6
|
-
module.exports = require('../cjs/loader.cjs.js');
|
|
7
|
-
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
|
6
|
+
module.exports = require('../cjs/loader.cjs.js');
|
package/dist/loader/index.cjs.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
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.30
|
|
5
5
|
*/
|
|
6
|
-
module.exports = require('../cjs/loader.cjs.js');
|
|
7
|
-
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
|
6
|
+
module.exports = require('../cjs/loader.cjs.js');
|
|
@@ -1,7 +1,6 @@
|
|
|
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.30
|
|
5
5
|
*/
|
|
6
|
-
export * from '../esm/
|
|
7
|
-
export * from '../esm/loader.js';
|
|
6
|
+
export * from '../esm/loader.js';
|
package/dist/loader/index.js
CHANGED
|
@@ -1,8 +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.30
|
|
5
5
|
*/
|
|
6
6
|
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
7
|
-
export * from '../esm/
|
|
8
|
-
export * from '../esm/loader.js';
|
|
7
|
+
export * from '../esm/loader.js';
|
|
@@ -27,7 +27,7 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
27
27
|
_executionResult?: ArcadeResult;
|
|
28
28
|
messages: {
|
|
29
29
|
_lang: string;
|
|
30
|
-
_t9nLocale: "
|
|
30
|
+
_t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
|
|
31
31
|
_loading: boolean;
|
|
32
32
|
_overrides: {
|
|
33
33
|
help?: string | undefined;
|
|
@@ -107,11 +107,21 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
107
107
|
*/
|
|
108
108
|
openedSidePanel: SidePanelName;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Options to update on the editor.
|
|
111
|
+
* For example:
|
|
112
|
+
* ```json
|
|
113
|
+
* {
|
|
114
|
+
* "fontSize": 18
|
|
115
|
+
* }
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* To get the full list of available options, see the Monaco Editor options documentation for more details.
|
|
111
119
|
*/
|
|
112
120
|
editorOptions: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
113
121
|
/**
|
|
114
|
-
* The instance of the Monaco Editor.
|
|
122
|
+
* The instance of the Monaco Editor after the component has been rendered.
|
|
123
|
+
* To determine when a component is rendered, you can use componentOnReady() method.
|
|
124
|
+
* The method returns a Promise that resolves after the component rendered for the first time.
|
|
115
125
|
* @readonly
|
|
116
126
|
* @internal
|
|
117
127
|
*/
|
|
@@ -7,7 +7,7 @@ export declare class ArcgisArcadeResults implements ComponentInterface {
|
|
|
7
7
|
manager: ControllerManager<this>;
|
|
8
8
|
messages: {
|
|
9
9
|
_lang: string;
|
|
10
|
-
_t9nLocale: "
|
|
10
|
+
_t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
|
|
11
11
|
_loading: boolean;
|
|
12
12
|
_overrides: {
|
|
13
13
|
close?: string | undefined;
|
|
@@ -8,7 +8,7 @@ export declare class ArcgisArcadeSuggestions implements ComponentInterface {
|
|
|
8
8
|
private _themeChangedListener?;
|
|
9
9
|
messages: {
|
|
10
10
|
_lang: string;
|
|
11
|
-
_t9nLocale: "
|
|
11
|
+
_t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
|
|
12
12
|
_loading: boolean;
|
|
13
13
|
_overrides: {
|
|
14
14
|
expand?: string | undefined;
|
|
@@ -6,7 +6,7 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
|
6
6
|
private _flowObserver?;
|
|
7
7
|
messages: {
|
|
8
8
|
_lang: string;
|
|
9
|
-
_t9nLocale: "
|
|
9
|
+
_t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
|
|
10
10
|
_loading: boolean;
|
|
11
11
|
_overrides: {
|
|
12
12
|
backtotop?: string | undefined;
|
|
@@ -32,12 +32,22 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
|
32
32
|
modelId: string;
|
|
33
33
|
modelIdPropChange(): void;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Options to update on the editor.
|
|
36
|
+
* For example:
|
|
37
|
+
* ```json
|
|
38
|
+
* {
|
|
39
|
+
* "fontSize": 18
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* To get the full list of options set on the editor, use the editorInstance property and see Monaco Editor options documentation for more details.
|
|
36
44
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
editorOptions: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
46
|
+
editorOptionsPropChange(newValue: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined): void;
|
|
39
47
|
/**
|
|
40
|
-
* The instance of the Monaco Editor.
|
|
48
|
+
* The instance of the Monaco Editor after the component has been rendered.
|
|
49
|
+
* To determine when a component is rendered, you can use componentOnReady() method.
|
|
50
|
+
* The method returns a Promise that resolves after the component rendered for the first time.
|
|
41
51
|
* @readonly
|
|
42
52
|
*/
|
|
43
53
|
editorInstance: editor.IStandaloneCodeEditor | undefined;
|
|
@@ -8,7 +8,7 @@ export declare class ArcgisLanguageApiPanel implements ComponentInterface {
|
|
|
8
8
|
private _themeChangedListener?;
|
|
9
9
|
messages: {
|
|
10
10
|
_lang: string;
|
|
11
|
-
_t9nLocale: "
|
|
11
|
+
_t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
|
|
12
12
|
_loading: boolean;
|
|
13
13
|
_overrides: {
|
|
14
14
|
expand?: string | undefined;
|
|
@@ -26,12 +26,12 @@ export { IPredefinedProfile as IPredefinedProfile1 } from "./components";
|
|
|
26
26
|
export namespace Components {
|
|
27
27
|
interface ArcgisArcadeEditor {
|
|
28
28
|
/**
|
|
29
|
-
* The instance of the Monaco Editor.
|
|
29
|
+
* The instance of the Monaco Editor after the component has been rendered. To determine when a component is rendered, you can use componentOnReady() method. The method returns a Promise that resolves after the component rendered for the first time.
|
|
30
30
|
* @readonly
|
|
31
31
|
*/
|
|
32
32
|
"editorInstance": editor.IStandaloneCodeEditor | undefined;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Options to update on the editor. For example: ```json { "fontSize": 18 } ``` To get the full list of available options, see the Monaco Editor options documentation for more details.
|
|
35
35
|
*/
|
|
36
36
|
"editorOptions": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
37
37
|
/**
|
|
@@ -127,10 +127,14 @@ export namespace Components {
|
|
|
127
127
|
}
|
|
128
128
|
interface ArcgisCodeEditor {
|
|
129
129
|
/**
|
|
130
|
-
* The instance of the Monaco Editor.
|
|
130
|
+
* The instance of the Monaco Editor after the component has been rendered. To determine when a component is rendered, you can use componentOnReady() method. The method returns a Promise that resolves after the component rendered for the first time.
|
|
131
131
|
* @readonly
|
|
132
132
|
*/
|
|
133
133
|
"editorInstance": editor.IStandaloneCodeEditor | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Options to update on the editor. For example: ```json { "fontSize": 18 } ``` To get the full list of options set on the editor, use the editorInstance property and see Monaco Editor options documentation for more details.
|
|
136
|
+
*/
|
|
137
|
+
"editorOptions": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
134
138
|
/**
|
|
135
139
|
* @deprecated Use `editorInstance` property instead.
|
|
136
140
|
*/
|
|
@@ -159,10 +163,6 @@ export namespace Components {
|
|
|
159
163
|
* A unique identifier for the model. The unique identifier is sometimes used by language defaults to store model metadata. For example, with arcade, the model id is used to store the arcade profile and other metadata. The unique identifier is especially useful when there are multiple editors on the same page.
|
|
160
164
|
*/
|
|
161
165
|
"modelId": string;
|
|
162
|
-
/**
|
|
163
|
-
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
164
|
-
*/
|
|
165
|
-
"options": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
166
166
|
/**
|
|
167
167
|
* Sets the focus on the editor.
|
|
168
168
|
* @returns
|
|
@@ -383,7 +383,7 @@ declare global {
|
|
|
383
383
|
declare namespace LocalJSX {
|
|
384
384
|
interface ArcgisArcadeEditor {
|
|
385
385
|
/**
|
|
386
|
-
*
|
|
386
|
+
* Options to update on the editor. For example: ```json { "fontSize": 18 } ``` To get the full list of available options, see the Monaco Editor options documentation for more details.
|
|
387
387
|
*/
|
|
388
388
|
"editorOptions"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
389
389
|
/**
|
|
@@ -491,10 +491,14 @@ declare namespace LocalJSX {
|
|
|
491
491
|
}
|
|
492
492
|
interface ArcgisCodeEditor {
|
|
493
493
|
/**
|
|
494
|
-
* The instance of the Monaco Editor.
|
|
494
|
+
* The instance of the Monaco Editor after the component has been rendered. To determine when a component is rendered, you can use componentOnReady() method. The method returns a Promise that resolves after the component rendered for the first time.
|
|
495
495
|
* @readonly
|
|
496
496
|
*/
|
|
497
497
|
"editorInstance"?: editor.IStandaloneCodeEditor | undefined;
|
|
498
|
+
/**
|
|
499
|
+
* Options to update on the editor. For example: ```json { "fontSize": 18 } ``` To get the full list of options set on the editor, use the editorInstance property and see Monaco Editor options documentation for more details.
|
|
500
|
+
*/
|
|
501
|
+
"editorOptions"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
498
502
|
/**
|
|
499
503
|
* The language for the editor. Currently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.
|
|
500
504
|
*/
|
|
@@ -514,10 +518,6 @@ declare namespace LocalJSX {
|
|
|
514
518
|
* Emitted when the value has changed (script, code, css, json, etc.)
|
|
515
519
|
*/
|
|
516
520
|
"onArcgisValueChange"?: (event: ArcgisCodeEditorCustomEvent<string>) => void;
|
|
517
|
-
/**
|
|
518
|
-
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
519
|
-
*/
|
|
520
|
-
"options"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
521
521
|
/**
|
|
522
522
|
* The initial value for the editor. The value is the script, code, css, json, etc.
|
|
523
523
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/web-components";
|
|
2
2
|
import type { Components } from "../../../src/components";
|
|
3
|
+
import type { LayerItemPopupProfileConfiguration } from "./editorContext";
|
|
3
4
|
import { type PopupProfileConfiguration } from "./editorContext";
|
|
5
|
+
import type { BundleType } from "@arcgis/arcade-languageservice";
|
|
4
6
|
declare const meta: Meta<Components.ArcgisArcadeEditor>;
|
|
5
7
|
export default meta;
|
|
6
8
|
interface PopupProfileAdditionalArgs {
|
|
@@ -8,8 +10,13 @@ interface PopupProfileAdditionalArgs {
|
|
|
8
10
|
}
|
|
9
11
|
type PopupProfileStoryType = Components.ArcgisArcadeEditor & PopupProfileAdditionalArgs;
|
|
10
12
|
export declare const PopupProfileStory: StoryObj<PopupProfileStoryType>;
|
|
13
|
+
interface SLPopupProfileAdditionalArgs {
|
|
14
|
+
configuration: LayerItemPopupProfileConfiguration;
|
|
15
|
+
}
|
|
16
|
+
type SLPopupProfileStoryType = Components.ArcgisArcadeEditor & SLPopupProfileAdditionalArgs;
|
|
17
|
+
export declare const SLPopupProfileStory: StoryObj<SLPopupProfileStoryType>;
|
|
11
18
|
export declare const HideItemsCustomProfileStory: StoryObj<Components.ArcgisArcadeEditor & {
|
|
12
|
-
bundles?:
|
|
19
|
+
bundles?: BundleType[];
|
|
13
20
|
hiddenApiItems: string[];
|
|
14
21
|
}>;
|
|
15
22
|
export declare const HideItemsPredefinedProfileStory: StoryObj<Components.ArcgisArcadeEditor & {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Components } from "../../../src/components";
|
|
2
|
+
type PortalKeyType = "devext" | "qaext" | "www";
|
|
2
3
|
export interface PopupProfileConfiguration {
|
|
3
|
-
portalKey:
|
|
4
|
+
portalKey: PortalKeyType;
|
|
4
5
|
itemId: string;
|
|
5
6
|
layerId: string;
|
|
6
7
|
subtypeCode?: number;
|
|
@@ -9,3 +10,6 @@ export interface PopupProfileConfiguration {
|
|
|
9
10
|
}
|
|
10
11
|
export type PopupProfileEditorContext = Partial<Pick<Components.ArcgisArcadeEditor, "profile" | "testData">>;
|
|
11
12
|
export declare function getPopupProfileEditorContext({ portalKey, itemId, layerId, timeZone, subtypeCode, sublayerId, }: PopupProfileConfiguration): Promise<PopupProfileEditorContext>;
|
|
13
|
+
export type LayerItemPopupProfileConfiguration = Pick<PopupProfileConfiguration, "layerId" | "portalKey">;
|
|
14
|
+
export declare function getPopupProfileEditorContextForLayerItem({ portalKey, layerId }: LayerItemPopupProfileConfiguration, createTestData?: boolean): Promise<PopupProfileEditorContext>;
|
|
15
|
+
export {};
|
|
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
|
|
|
768
768
|
hrefLang?: string;
|
|
769
769
|
hreflang?: string;
|
|
770
770
|
media?: string;
|
|
771
|
+
ping?: string;
|
|
771
772
|
rel?: string;
|
|
772
773
|
target?: string;
|
|
773
774
|
referrerPolicy?: ReferrerPolicy;
|
|
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
|
|
|
794
795
|
cite?: string;
|
|
795
796
|
}
|
|
796
797
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
797
|
-
autoFocus?: boolean;
|
|
798
798
|
disabled?: boolean;
|
|
799
799
|
form?: string;
|
|
800
800
|
formAction?: string;
|
|
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
|
|
|
921
921
|
autocapitalize?: string;
|
|
922
922
|
autoComplete?: string;
|
|
923
923
|
autocomplete?: string;
|
|
924
|
-
autoFocus?: boolean;
|
|
925
|
-
autofocus?: boolean | string;
|
|
926
924
|
capture?: string;
|
|
927
925
|
checked?: boolean;
|
|
928
926
|
crossOrigin?: string;
|
|
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
|
|
|
979
977
|
popoverTarget?: string;
|
|
980
978
|
}
|
|
981
979
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
982
|
-
autoFocus?: boolean;
|
|
983
|
-
autofocus?: boolean | string;
|
|
984
980
|
challenge?: string;
|
|
985
981
|
disabled?: boolean;
|
|
986
982
|
form?: string;
|
|
@@ -1129,7 +1125,6 @@ export declare namespace JSXBase {
|
|
|
1129
1125
|
type?: string;
|
|
1130
1126
|
}
|
|
1131
1127
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1132
|
-
autoFocus?: boolean;
|
|
1133
1128
|
disabled?: boolean;
|
|
1134
1129
|
form?: string;
|
|
1135
1130
|
multiple?: boolean;
|
|
@@ -1164,8 +1159,6 @@ export declare namespace JSXBase {
|
|
|
1164
1159
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
1160
|
autoComplete?: string;
|
|
1166
1161
|
autocomplete?: string;
|
|
1167
|
-
autoFocus?: boolean;
|
|
1168
|
-
autofocus?: boolean | string;
|
|
1169
1162
|
cols?: number;
|
|
1170
1163
|
disabled?: boolean;
|
|
1171
1164
|
form?: string;
|
|
@@ -1218,6 +1211,8 @@ export declare namespace JSXBase {
|
|
|
1218
1211
|
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1219
1212
|
innerHTML?: string;
|
|
1220
1213
|
accessKey?: string;
|
|
1214
|
+
autoFocus?: boolean;
|
|
1215
|
+
autofocus?: boolean | string;
|
|
1221
1216
|
class?: string | {
|
|
1222
1217
|
[className: string]: boolean;
|
|
1223
1218
|
};
|
|
@@ -19,6 +19,7 @@ export declare class DiagnosticsAdapter {
|
|
|
19
19
|
dispose(): void;
|
|
20
20
|
private _doValidate;
|
|
21
21
|
}
|
|
22
|
+
export declare function toCompletionItemKind(kind: number | undefined): languages.CompletionItemKind;
|
|
22
23
|
export declare class CompletionProvider implements languages.CompletionItemProvider {
|
|
23
24
|
private _worker;
|
|
24
25
|
private _defaults;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApiProfile } from "@arcgis/arcade-languageservice";
|
|
2
|
+
import type { EditorProfile } from "../profile/editor-profile";
|
|
3
|
+
import type { IPredefinedProfile, IEditorProfileDefinition } from "../profile/types";
|
|
4
|
+
/**
|
|
5
|
+
* Converts an editor profile to an api profile.
|
|
6
|
+
* The api profile is an optimized version of the editor profile designed for minimal data transfer between the main thread and the worker.
|
|
7
|
+
*/
|
|
8
|
+
export declare function arcadeEditorToApiProfile(editorProfile: EditorProfile): Promise<ApiProfile>;
|
|
9
|
+
export declare function convertToEditorProfileDefinition(predefinedProfile: IPredefinedProfile, locale?: string): Promise<IEditorProfileDefinition | undefined>;
|
|
@@ -4,8 +4,8 @@ import type { ApiValueVariableType } from "@arcgis/arcade-languageservice";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare function fieldTypeToIconName(field: __esri.Field): string;
|
|
6
6
|
/**
|
|
7
|
-
* Returns the
|
|
7
|
+
* Returns the ApiValueVariable type for the given field.
|
|
8
8
|
*/
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function fieldTypeToApiValueVarType(field: __esri.Field): ApiValueVariableType;
|
|
10
10
|
export declare function supportedFields(fields: __esri.Field[] | null | undefined): __esri.Field[];
|
|
11
11
|
export declare function fieldAlias(field: __esri.Field): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { ApiVariableType
|
|
1
|
+
import type { ApiVariableType } from "@arcgis/arcade-languageservice";
|
|
2
2
|
import type * as types from "./types";
|
|
3
|
+
import type { ApiValueVariable } from "@arcgis/languages-api-utils";
|
|
3
4
|
/**
|
|
4
5
|
* FeatureSetCollection interface. Used in Arcade expressions to represent Web Maps
|
|
5
6
|
* or Feature Services.
|
|
@@ -21,6 +22,10 @@ interface IFeatureSetCollections {
|
|
|
21
22
|
*/
|
|
22
23
|
source: __esri.Map | __esri.WebMap | __esri.WebScene | string;
|
|
23
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* converts fields to profile values and calculates the feature completion description all in one iteration
|
|
27
|
+
*/
|
|
28
|
+
export declare function fieldsToProfileValues(fields: __esri.Field[], initialFeatureCompletionDescription: string, includeAliases?: boolean): [ApiValueVariable[], string];
|
|
24
29
|
type ProfileItemType = ApiVariableType | "group";
|
|
25
30
|
export type EditorVariable = ArrayVariable | DictionaryVariable | FeatureSetCollectionVariable | FeatureSetVariable | FeatureVariable | ValueVariable;
|
|
26
31
|
interface ConstructorProperties<T> {
|
|
@@ -200,7 +205,7 @@ export declare class FeatureSetVariable extends SourceBasedVariable {
|
|
|
200
205
|
constructor(owner: CollectionBasedVariable | undefined, props: ConstructorProperties<types.IProfileFeatureSet>, featureSetSnippets?: ValueVariable[], relationshipProps?: IRelationshipsProperties);
|
|
201
206
|
get title(): types.IIntlString | string;
|
|
202
207
|
protected _loadSource(): Promise<types.SupportedSource | null>;
|
|
203
|
-
toProfileVariableDefinition(): types.
|
|
208
|
+
toProfileVariableDefinition(): types.IProfileFeatureSet;
|
|
204
209
|
}
|
|
205
210
|
export declare class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
206
211
|
type: "featureSetCollection";
|
|
@@ -239,10 +244,6 @@ export declare class EditorProfile extends DictionaryVariable {
|
|
|
239
244
|
* Returns true if the profile supports feature set functions for snippets.
|
|
240
245
|
*/
|
|
241
246
|
get supportFeatureSetFunctions(): boolean;
|
|
242
|
-
/**
|
|
243
|
-
* Returns the language service profile. It is different than the editor profile as it is optimized for Monaco.
|
|
244
|
-
*/
|
|
245
|
-
toLSProfile(): Promise<ApiProfile>;
|
|
246
247
|
/**
|
|
247
248
|
* Returns the EditorProfile as a json. The EditorProfile may have been updated. This function allows to
|
|
248
249
|
* get the new json representing mutations.
|
|
@@ -13,7 +13,7 @@ export interface IEditorProfileDefinition {
|
|
|
13
13
|
label?: string;
|
|
14
14
|
/**
|
|
15
15
|
* The collection of variables that will be passed to the expression at execution time.
|
|
16
|
-
* The variable
|
|
16
|
+
* The variable declarations are used to help the editor provide validation and completion.
|
|
17
17
|
*/
|
|
18
18
|
variables: IProfileVariable[];
|
|
19
19
|
/**
|
|
@@ -165,12 +165,7 @@ export interface IUrlDefinition {
|
|
|
165
165
|
/**
|
|
166
166
|
* The most basic way to define a feature or feature set is by passing a collection of fields
|
|
167
167
|
*/
|
|
168
|
-
export
|
|
169
|
-
/**
|
|
170
|
-
* An array of fields.
|
|
171
|
-
*/
|
|
172
|
-
fields: __esri.Field[];
|
|
173
|
-
}
|
|
168
|
+
export type IFieldsDefinition = Pick<__esri.FeatureLayer, "fields">;
|
|
174
169
|
/**
|
|
175
170
|
* FeatureDefinition represents various ways a Feature variable could be defined.
|
|
176
171
|
* Layer instance is the most common way to define a feature,
|
|
@@ -218,29 +213,39 @@ export type SupportedSource = IFieldsDefinition;
|
|
|
218
213
|
/**
|
|
219
214
|
* Layer that supports title.
|
|
220
215
|
*/
|
|
221
|
-
export
|
|
222
|
-
/**
|
|
223
|
-
* The title of the source.
|
|
224
|
-
*/
|
|
225
|
-
title: string;
|
|
226
|
-
}
|
|
216
|
+
export type ITitleCapableSource = Pick<__esri.Layer, "title">;
|
|
227
217
|
/**
|
|
228
218
|
* Layer that supports url.
|
|
229
219
|
*/
|
|
230
|
-
export
|
|
231
|
-
/**
|
|
232
|
-
* The url of the source.
|
|
233
|
-
*/
|
|
234
|
-
url: string;
|
|
235
|
-
}
|
|
220
|
+
export type IUrlCapableSource = Pick<__esri.FeatureLayer, "url">;
|
|
236
221
|
/**
|
|
237
222
|
* Layer that supports layer id.
|
|
238
223
|
*/
|
|
239
|
-
export
|
|
224
|
+
export type ILayerIdCapableSource = Pick<__esri.FeatureLayer, "layerId">;
|
|
225
|
+
/**
|
|
226
|
+
* Layer that supports queryFeatures
|
|
227
|
+
*/
|
|
228
|
+
export interface IFeatureLayerLikeInstance extends IFieldsDefinition, ITitleCapableSource {
|
|
229
|
+
/**
|
|
230
|
+
* The declared class of the layer.
|
|
231
|
+
*/
|
|
232
|
+
declaredClass: string;
|
|
240
233
|
/**
|
|
241
|
-
* The
|
|
234
|
+
* The unique ID assigned to the layer.
|
|
235
|
+
*/
|
|
236
|
+
id: string;
|
|
237
|
+
/**
|
|
238
|
+
* The layer ID, or layer index, of a Feature Service layer.
|
|
242
239
|
*/
|
|
243
240
|
layerId: number;
|
|
241
|
+
/**
|
|
242
|
+
* Executes a Query against the feature service and returns a Promise to a FeatureSet.
|
|
243
|
+
*/
|
|
244
|
+
queryFeatures: (query?: __esri.Query | __esri.QueryProperties) => Promise<__esri.FeatureSet>;
|
|
245
|
+
/**
|
|
246
|
+
* The service's metadata JSON exposed by the ArcGIS REST API.
|
|
247
|
+
*/
|
|
248
|
+
sourceJSON?: any;
|
|
244
249
|
}
|
|
245
250
|
/**
|
|
246
251
|
* Layer that supports field domains.
|
|
@@ -254,62 +259,39 @@ export interface IDomainsCapableSource {
|
|
|
254
259
|
/**
|
|
255
260
|
* Layer that implements types
|
|
256
261
|
*/
|
|
257
|
-
export
|
|
258
|
-
/**
|
|
259
|
-
* The name of the field holding the type ID or subtypes for the features.
|
|
260
|
-
*/
|
|
261
|
-
typeIdField: string;
|
|
262
|
-
/**
|
|
263
|
-
* An array of subtypes defined in the feature service exposed by ArcGIS REST API.
|
|
264
|
-
*/
|
|
265
|
-
types: __esri.FeatureType[];
|
|
266
|
-
}
|
|
262
|
+
export type IFeatureTypesCapableSource = IDomainsCapableSource & Pick<__esri.FeatureLayer, "typeIdField" | "types">;
|
|
267
263
|
/**
|
|
268
264
|
* Layer that has a subtype field
|
|
269
265
|
*/
|
|
270
|
-
export
|
|
271
|
-
/**
|
|
272
|
-
* The name of the field which holds the id of the subtypes.
|
|
273
|
-
*/
|
|
274
|
-
subtypeField: string;
|
|
275
|
-
}
|
|
266
|
+
export type ISubtypeFieldCapableSource = IDomainsCapableSource & Pick<__esri.FeatureLayer, "subtypeField">;
|
|
276
267
|
/**
|
|
277
268
|
* Layer that exposes subtypes.
|
|
278
269
|
*/
|
|
279
|
-
export
|
|
280
|
-
/**
|
|
281
|
-
* An array of subtypes defined in the layer.
|
|
282
|
-
*/
|
|
283
|
-
subtypes: __esri.Subtype[];
|
|
284
|
-
}
|
|
270
|
+
export type ISubtypesCapableSource = ISubtypeFieldCapableSource & Pick<__esri.FeatureLayer, "subtypes">;
|
|
285
271
|
/**
|
|
286
272
|
* Layer that supports relationships.
|
|
287
273
|
*/
|
|
288
|
-
export
|
|
289
|
-
/**
|
|
290
|
-
* Array of relationships set up for the layer.
|
|
291
|
-
*/
|
|
292
|
-
relationships: __esri.Relationship[];
|
|
293
|
-
/**
|
|
294
|
-
* The absolute URL of the REST endpoint of the layer, non-spatial table or service.
|
|
295
|
-
*/
|
|
296
|
-
url: string;
|
|
297
|
-
}
|
|
274
|
+
export type IRelationshipsCapableSource = ILayerIdCapableSource & IUrlCapableSource & Pick<__esri.FeatureLayer, "relationships">;
|
|
298
275
|
/**
|
|
299
276
|
* Layer that is capable of being npn-spatial.
|
|
300
277
|
*/
|
|
301
|
-
export
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
278
|
+
export type ITableCapableSource = Pick<__esri.FeatureLayer, "isTable">;
|
|
279
|
+
/**
|
|
280
|
+
* An instance that requires a load operation to be performed.
|
|
281
|
+
*/
|
|
282
|
+
export type ILoadableSource = Pick<__esri.Layer, "load">;
|
|
283
|
+
/**
|
|
284
|
+
* An instance that requires a loadAll operation to be performed.
|
|
285
|
+
*/
|
|
286
|
+
export type ILoadAllCapable = Pick<__esri.WebMap | __esri.WebScene, "loadAll">;
|
|
287
|
+
/**
|
|
288
|
+
* An instance that is based on a portal item.
|
|
289
|
+
*/
|
|
290
|
+
export type IPortalItemCapable = Pick<__esri.PortalItemResource, "portalItem">;
|
|
291
|
+
/**
|
|
292
|
+
* An instance that exposes all layers and tables collections.
|
|
293
|
+
*/
|
|
294
|
+
export type IGroupLayerCapable = Pick<__esri.Map, "allLayers" | "allTables">;
|
|
313
295
|
/**
|
|
314
296
|
* Represents a string that will have to be manufactured from a Intl strings resource.
|
|
315
297
|
*/
|
|
@@ -326,8 +308,14 @@ export interface IIntlString {
|
|
|
326
308
|
*/
|
|
327
309
|
formatValues?: Record<string, string>;
|
|
328
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
* The bare minimum interface for layer information coming from the rest API.
|
|
313
|
+
*/
|
|
329
314
|
export interface LayerInfo {
|
|
330
315
|
id: number;
|
|
331
316
|
type: string;
|
|
332
317
|
capabilities?: string;
|
|
333
318
|
}
|
|
319
|
+
export interface IExtendedPredefinedProfile extends IPredefinedProfile {
|
|
320
|
+
additionalVariables?: IProfileVariable[];
|
|
321
|
+
}
|