@arcgis/coding-components 4.31.0-next.100 → 4.31.0-next.101
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/assets/code-editor/sql-expr.worker.js +28 -28
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ar.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.bg.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.bs.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ca.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.cs.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.da.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.de.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.el.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.es.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.et.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.fi.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.fr.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.he.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.hr.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.hu.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.id.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.it.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ja.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ko.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.lt.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.lv.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.nb.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.nl.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pl.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pt-BR.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pt-PT.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ro.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ru.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sk.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sl.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sr.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sv.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.th.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.tr.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.uk.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.vi.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-CN.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-HK.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-TW.json +2 -1
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ar.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.bg.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.bs.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ca.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.cs.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.da.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.de.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.el.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.en.json +9 -9
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.es.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.et.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.fi.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.fr.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.he.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.hr.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.hu.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.id.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.it.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ja.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ko.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.lt.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.lv.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.nl.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.no.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pl.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pt-BR.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pt-PT.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ro.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ru.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sk.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sl.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sr.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sv.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.th.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.tr.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.uk.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.vi.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-CN.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-HK.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-TW.json +758 -0
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/p-0099cb0d.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-ca5e21ae.js → p-0dce262c.js} +2 -2
- package/dist/arcgis-coding-components/{p-9789b25b.js → p-1858151a.js} +2 -2
- package/dist/arcgis-coding-components/{p-62a81db6.js → p-2de7e7b2.js} +2 -2
- package/dist/arcgis-coding-components/{p-f6c8c48e.js → p-2fa7b354.js} +3 -3
- package/dist/arcgis-coding-components/{p-4574ffe0.js → p-3b31375b.js} +1 -1
- package/dist/arcgis-coding-components/{p-e4107fc7.entry.js → p-6f45223d.entry.js} +2 -2
- package/dist/arcgis-coding-components/p-7e43a86f.js +6 -0
- package/dist/arcgis-coding-components/{p-707dc6c6.js → p-936afb5f.js} +2 -2
- package/dist/arcgis-coding-components/{p-93497829.js → p-9ce8bda4.js} +1 -1
- package/dist/arcgis-coding-components/{p-d499c2c8.js → p-ac165874.js} +2 -2
- package/dist/arcgis-coding-components/{p-71912899.js → p-b2df0560.js} +2 -2
- package/dist/arcgis-coding-components/{p-19787db2.js → p-cdc51488.js} +1 -1
- package/dist/arcgis-coding-components/{p-64ea3c58.entry.js → p-cef69bbe.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-6d1679d7.js → p-d1dc7e54.js} +2 -2
- package/dist/arcgis-coding-components/p-d515c77f.js +6 -0
- package/dist/arcgis-coding-components/{p-b283dbfb.js → p-eb6d6bcd.js} +10 -10
- package/dist/arcgis-coding-components/{p-362b106d.js → p-edfcf736.js} +2 -2
- package/dist/cjs/{app-globals-4b840643.js → app-globals-fa455e3b.js} +1 -1
- package/dist/cjs/{arcade-defaults-4fb2f0f2.js → arcade-defaults-c65f2946.js} +3 -3
- package/dist/cjs/{arcade-mode-99d1b659.js → arcade-mode-c26e9d6a.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-37282522.js → css-0fd2d99c.js} +1 -1
- package/dist/cjs/{cssMode-3f042660.js → cssMode-b80b147d.js} +3 -3
- package/dist/cjs/{html-bfa7b20b.js → html-da7b375d.js} +3 -3
- package/dist/cjs/{htmlMode-39496270.js → htmlMode-d32befb1.js} +3 -3
- package/dist/cjs/{index-56b575b4.js → index-7784a06f.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-a5972240.js → javascript-a868b6f5.js} +4 -4
- package/dist/cjs/{jsonMode-7dea9123.js → jsonMode-78dca1a7.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-e6038f75.js → sql-expr-defaults-2c542856.js} +38 -28
- package/dist/cjs/{sql-expr-mode-7b4ee768.js → sql-expr-mode-f2d1c231.js} +4 -4
- package/dist/cjs/{tsMode-8b8c14e0.js → tsMode-ffa70775.js} +3 -3
- package/dist/cjs/{typescript-f9e9e491.js → typescript-7bebb368.js} +3 -3
- package/dist/cjs/{useT9n-e6815234.js → useT9n-8cbeec71.js} +7 -5
- 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/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-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-editor-variables.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +5 -5
- package/dist/components/arcgis-sql-expression-fields.js +2 -2
- package/dist/components/{chunk-IUUKU7EW.js → chunk-UFIZBDFE.js} +2 -2
- package/dist/components/code-editor.js +2 -2
- package/dist/components/editor-variables.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/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +29 -19
- package/dist/components/sql-expr-mode.js +2 -2
- package/dist/components/useT9n.js +5 -3
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-b21bcc49.js → app-globals-07f5e1d4.js} +1 -1
- package/dist/esm/{arcade-defaults-3a1b86cd.js → arcade-defaults-d78913f5.js} +3 -3
- package/dist/esm/{arcade-mode-befc845e.js → arcade-mode-879e0ab7.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +7 -7
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-6c7e70f9.js → css-c6fb1209.js} +1 -1
- package/dist/esm/{cssMode-46bb8d53.js → cssMode-2015e5c2.js} +3 -3
- package/dist/esm/{html-6b81f908.js → html-a247b2ef.js} +3 -3
- package/dist/esm/{htmlMode-b25e0941.js → htmlMode-bbddb780.js} +3 -3
- package/dist/esm/{index-8e6962cc.js → index-03e0d6f3.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-0c525554.js → javascript-10c11c6a.js} +4 -4
- package/dist/esm/{jsonMode-c0e68cc9.js → jsonMode-31194587.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-324e2199.js → sql-expr-defaults-4960af21.js} +38 -28
- package/dist/esm/{sql-expr-mode-a1cf73b7.js → sql-expr-mode-2fb66dd0.js} +4 -4
- package/dist/esm/{tsMode-f795e4e5.js → tsMode-9ca0ac88.js} +3 -3
- package/dist/esm/{typescript-3d4e668d.js → typescript-79944363.js} +3 -3
- package/dist/esm/{useT9n-f4687877.js → useT9n-475945b0.js} +7 -5
- 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 +8 -21
- package/dist/types/components/arcade-results/arcade-results.d.ts +13 -31
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +6 -17
- package/dist/types/components/editor-variables/editor-variables.d.ts +9 -23
- package/dist/types/components/language-api-panel/language-api-panel.d.ts +8 -21
- package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +4 -13
- package/dist/types/components/sql-expression-fields/sql-expression-fields.d.ts +4 -13
- package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +5 -1
- package/package.json +12 -12
- package/dist/arcgis-coding-components/p-82550582.entry.js +0 -6
- package/dist/arcgis-coding-components/p-c73873d0.js +0 -6
- package/dist/arcgis-coding-components/p-c8915176.js +0 -6
|
@@ -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.101
|
|
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-UFIZBDFE.js';
|
|
10
10
|
import { t 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,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.101
|
|
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
|
-
import { u as useControllerManager, g as getSet } from './chunk-
|
|
9
|
+
import { u as useControllerManager, g as getSet } from './chunk-UFIZBDFE.js';
|
|
10
10
|
import { D as Deferred, g as generateGuid } from './index2.js';
|
|
11
11
|
import { d as defineCustomElement$4, s as setupMonacoEnvironment, g as getArcadeDiagnosticService } from './code-editor.js';
|
|
12
12
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.101
|
|
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.101
|
|
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.101
|
|
5
5
|
*/
|
|
6
6
|
let resourceUrl = "https://js.arcgis.com/coding-components/next/";
|
|
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.101
|
|
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.101
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisEditorVariables$1, d as defineCustomElement$1 } from './editor-variables.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.101
|
|
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.101
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
|
-
import { u as useControllerManager } from './chunk-
|
|
7
|
+
import { u as useControllerManager } from './chunk-UFIZBDFE.js';
|
|
8
8
|
import { g as generateGuid } from './index2.js';
|
|
9
9
|
import { d as sqlExprDefaults } from './sql-expr-defaults.js';
|
|
10
10
|
import { u as useT9n } from './useT9n.js';
|
|
@@ -68,7 +68,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
68
68
|
async _updateEditorProfile() {
|
|
69
69
|
this._preparing = true;
|
|
70
70
|
try {
|
|
71
|
-
await sqlExprDefaults.setProfileForModel(this._modelId, this.profile);
|
|
71
|
+
await sqlExprDefaults.setProfileForModel(this._modelId, this.profile, { locale: this.messages._t9nLocale });
|
|
72
72
|
this._editorProfile = sqlExprDefaults.getEditorProfileForModel(this._modelId);
|
|
73
73
|
}
|
|
74
74
|
catch {
|
|
@@ -120,9 +120,9 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
120
120
|
// #endregion
|
|
121
121
|
render() {
|
|
122
122
|
const variable = this._getFeatureSetVariable();
|
|
123
|
-
return (h(Host, { key: '
|
|
123
|
+
return (h(Host, { key: '5d7a1877b7cf39220d8d71b31da2a6a8c0eb8e06' }, h("div", { key: '301acf20965aec80a882e8b42fe69758ec4b3c99', class: "flex-row flex-adjustable" }, h("div", { key: '40c8d933e1b77930f36e6b90341a1d7c9267f337', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: 'f29e52368b5feb73eabd0d1445a34b0ac1c13a59', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (h("arcgis-editor-variables", { key: 'ceae6e48d27024f0d21843ec5185f9a05445fe0b', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (h("arcgis-language-api-panel", { key: '01df45fee1ff9dffd483519747996f23edfa315d', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none", hideDocumentationActions: true })), h("calcite-action-bar", { key: 'ae8dd2dfd8e31838d08439f2723871473655b8bc', class: "side-action-bar border-inline-start", expanded: this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action", { key: '7e2a31f08d0d97b07deaeef31c9e0e2a097ceb5c', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
|
|
124
124
|
// need to use an arrow function to automatically bind 'this'
|
|
125
|
-
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '
|
|
125
|
+
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '29734989408b3ee7b703d923fba093cd58ea6b0d', "reference-element": "fields-action" }, h("span", { key: '20c1b55f2e42b9258549ab2807fe44f76ebef77e' }, this.messages.fields ?? "Fields"))), h("calcite-action", { key: '64eeac74b70f8e7efde68e398ee0687c06bd08c6', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '8463172366fbc6536757885835ca49c474edf372', "reference-element": "functions-action" }, h("span", { key: '0e441ab9ff790002cfd69fd78a47fbf67ff4bfc8' }, this.messages.functions ?? "Functions")))))));
|
|
126
126
|
}
|
|
127
127
|
static get assetsDirs() { return ["assets"]; }
|
|
128
128
|
get el() { return this; }
|
|
@@ -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.101
|
|
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-UFIZBDFE.js';
|
|
8
8
|
import { d as sqlExprDefaults } from './sql-expr-defaults.js';
|
|
9
9
|
import { u as useT9n } from './useT9n.js';
|
|
10
10
|
import "@esri/calcite-components/dist/components/calcite-block.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.101
|
|
5
5
|
*/
|
|
6
6
|
import { a as isNotUndefined, D as Deferred, e as safeAsyncCall, h as devToolsAwareTimeout, j as safeCall } from './index2.js';
|
|
7
7
|
|
|
@@ -807,7 +807,7 @@ var ControllerManager = class extends GenericController {
|
|
|
807
807
|
const tagName = this.component.el.tagName.toLowerCase();
|
|
808
808
|
this.component.el.remove();
|
|
809
809
|
throw new Error(
|
|
810
|
-
`The ${tagName} component has already been destroyed. It
|
|
810
|
+
`The ${tagName} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${autoDestroyDisabledPropName} prop.`
|
|
811
811
|
);
|
|
812
812
|
}
|
|
813
813
|
if (this._autoDestroyTimeout !== void 0) {
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { languages, editor, Range, Uri, KeyMod, KeyCode } from 'monaco-editor';
|
|
8
8
|
import { i as importRequest } from './fields.js';
|
|
9
9
|
import { k as isURL, l as hasSameOrigin, D as Deferred, g as generateGuid, o as observeAncestorsMutation, m 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-UFIZBDFE.js';
|
|
11
11
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
12
12
|
import { d as sqlExprDefaults } from './sql-expr-defaults.js';
|
|
13
13
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.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.101
|
|
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-UFIZBDFE.js';
|
|
8
8
|
import { t as setFocusOnElement, d as createFilterExpression } from './index2.js';
|
|
9
9
|
import { u as useT9n } from './useT9n.js';
|
|
10
10
|
import "@esri/calcite-components/dist/components/calcite-flow-item.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.101
|
|
5
5
|
*/
|
|
6
6
|
// src/index.ts
|
|
7
7
|
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis && !("forceESM" in window.$arcgis);
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.101
|
|
5
5
|
*/
|
|
6
6
|
export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
7
7
|
export { a as arcade } from './arcade-defaults.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.101
|
|
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, b as colorizedAllCodeElements } 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-UFIZBDFE.js';
|
|
10
10
|
import { t as setFocusOnElement, b as addLTRMark } 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,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.101
|
|
5
5
|
*/
|
|
6
6
|
import { editor } from 'monaco-editor';
|
|
7
7
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.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.101
|
|
5
5
|
*/
|
|
6
6
|
import { n as newLayersFeatureLayer, i as importRequest, s as supportedFields, a as newPortalPortalItem, b as newWebScene, c as newWebMap, f as fieldAlias, d as fieldTypeToIconName, e as fieldTypeToApiValueVarType } from './fields.js';
|
|
7
7
|
import { InsertTextMode, InsertTextFormat, CompletionItemKind, MarkupKind } from 'vscode-languageserver-types';
|
|
@@ -1400,26 +1400,32 @@ function variableToApiProfile(variable) {
|
|
|
1400
1400
|
resultCompletion.documentation = { kind: "markdown", value: featureCompletionDescription };
|
|
1401
1401
|
return result;
|
|
1402
1402
|
}
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1403
|
+
/**
|
|
1404
|
+
* A predefined profile for field calculation. For now this is the only predefined profile, and is only used behind the scenes.
|
|
1405
|
+
* In the future, if the variables are displayed in the UX, we will need to move this information to the sql sdk and adapt for translation.
|
|
1406
|
+
*/
|
|
1407
|
+
const fieldCalcProfile = {
|
|
1408
|
+
id: "field-calculation",
|
|
1409
|
+
variables: [
|
|
1410
|
+
{
|
|
1411
|
+
name: "$layer",
|
|
1412
|
+
type: "featureSet",
|
|
1413
|
+
description: "The layer being calculated.",
|
|
1414
|
+
},
|
|
1415
|
+
],
|
|
1414
1416
|
};
|
|
1415
|
-
|
|
1416
|
-
return
|
|
1417
|
+
function getSdkPredefinedProfile( /*locale = "en"*/) {
|
|
1418
|
+
return fieldCalcProfile;
|
|
1417
1419
|
}
|
|
1418
|
-
|
|
1420
|
+
/**
|
|
1421
|
+
* converts a predefined editor profile to a IEditorProfileDefinition.
|
|
1422
|
+
* This is used to hydrate a profile definition from a predefined profile.
|
|
1423
|
+
*/
|
|
1424
|
+
function convertToEditorProfileDefinition(predefinedProfile) {
|
|
1419
1425
|
if (!isPredefinedProfile(predefinedProfile)) {
|
|
1420
|
-
|
|
1426
|
+
throw Error("SQL Expression profile must be a predefined profile");
|
|
1421
1427
|
}
|
|
1422
|
-
const sdkPredefinedProfile =
|
|
1428
|
+
const sdkPredefinedProfile = getSdkPredefinedProfile( /*locale*/);
|
|
1423
1429
|
if (!sdkPredefinedProfile) {
|
|
1424
1430
|
return undefined;
|
|
1425
1431
|
}
|
|
@@ -1472,9 +1478,13 @@ class SqlExprDefaults extends LanguageDefaultsBase {
|
|
|
1472
1478
|
async setProfileForModel(modelId, definition, apiContext = { locale: "en" }) {
|
|
1473
1479
|
// for now, it can ONLY be a predefined profile
|
|
1474
1480
|
if (isPredefinedProfile(definition)) {
|
|
1475
|
-
definition =
|
|
1481
|
+
definition = convertToEditorProfileDefinition(definition);
|
|
1476
1482
|
}
|
|
1477
|
-
|
|
1483
|
+
/**
|
|
1484
|
+
* FIXME: SQL is using arcades profile strings for now.
|
|
1485
|
+
* These should probably be moved to a more general location
|
|
1486
|
+
* since both languages utilize the same strings.
|
|
1487
|
+
*/
|
|
1478
1488
|
const intlStrings = await fetchT9nStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
1479
1489
|
if (!intlStrings) {
|
|
1480
1490
|
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
6
|
import { editor, languages, Emitter } from 'monaco-editor';
|
|
7
7
|
import { D as Deferred, u as debounce } from './index2.js';
|
|
@@ -122,6 +122,7 @@ const sqlExprKeywords = [
|
|
|
122
122
|
"FROM",
|
|
123
123
|
"HOUR",
|
|
124
124
|
"IN",
|
|
125
|
+
"INT",
|
|
125
126
|
"INTEGER",
|
|
126
127
|
"INTERVAL",
|
|
127
128
|
"LEADING",
|
|
@@ -316,7 +317,6 @@ class SqlExprCompletionProvider {
|
|
|
316
317
|
endColumn: word.endColumn,
|
|
317
318
|
};
|
|
318
319
|
const apiContext = this._defaults.getApiContextForModel(model.uri);
|
|
319
|
-
console.log(await worker.doComplete(model.uri.toString(), range, position, apiContext));
|
|
320
320
|
return await worker.doComplete(model.uri.toString(), range, position, apiContext);
|
|
321
321
|
}
|
|
322
322
|
catch (err) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.101
|
|
5
5
|
*/
|
|
6
|
-
import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-
|
|
6
|
+
import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-UFIZBDFE.js';
|
|
7
7
|
import { p as startLocaleObserver, r as getElementLocales } from './index2.js';
|
|
8
8
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|
|
9
9
|
|
|
@@ -75,7 +75,9 @@ var makeT9nController = (getAssetPath) => (options = {}) => (
|
|
|
75
75
|
const currentValue = controller.exports;
|
|
76
76
|
const rawMessages = currentValue._original ?? currentValue;
|
|
77
77
|
const updated = deepMerge(rawMessages, messageOverrides);
|
|
78
|
-
|
|
78
|
+
if (messageOverrides) {
|
|
79
|
+
updated._original = rawMessages;
|
|
80
|
+
}
|
|
79
81
|
controller.exports = updated;
|
|
80
82
|
}
|
|
81
83
|
if ("messageOverrides" in componentWithOverrides) {
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
|
-
import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-
|
|
7
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-4960af21.js';
|
|
7
|
+
import { g as getAssetPath } from './index-03e0d6f3.js';
|
|
8
8
|
|
|
9
9
|
// #region convert editor profile to apiProfile
|
|
10
10
|
/**
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
|
-
import { m as main, r as editor, Q as MarkerSeverity, R as Range, w as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { m as main, r as editor, Q as MarkerSeverity, R as Range, w as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-4960af21.js';
|
|
7
|
+
import './index-03e0d6f3.js';
|
|
8
8
|
|
|
9
9
|
var V={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"},xe=["++","--"],Ge=["-","+","!","~"],Je=["=","/=","*=","%=","+=","-="],Qe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];xe.forEach(e=>U[e.length-1]?.push(e));Ge.forEach(e=>U[e.length-1]?.push(e));Qe.forEach(e=>U[e.length-1]?.push(e));Je.forEach(e=>U[e.length-1]?.push(e));Lt.forEach(e=>U[e.length-1]?.push(e));var lt=Object.values(f),pt=Object.values(V);pt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Constant}));lt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Keyword}));
|
|
10
10
|
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-
|
|
7
|
-
import { g as importArcade, h as isURL, j as hasSameOrigin, k as importRequest, D as Deferred, l as generateGuid, K as KeyCode, n as setValuesInString, q as quoteString, o as supportedFields, p as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, r as editor, t as commonjsGlobal, u as setFocusOnElement, v as filterCollection, w as languages, x as sqlExprDefaults, R as Range, y as observeAncestorsMutation, U as Uri, z as getElementTheme, A as KeyMod, B as createFilterExpression, C as addLTRMark } from './sql-expr-defaults-
|
|
8
|
-
import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-
|
|
9
|
-
import { b as arcadeDefaults } from './arcade-defaults-
|
|
6
|
+
import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-03e0d6f3.js';
|
|
7
|
+
import { g as importArcade, h as isURL, j as hasSameOrigin, k as importRequest, D as Deferred, l as generateGuid, K as KeyCode, n as setValuesInString, q as quoteString, o as supportedFields, p as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, r as editor, t as commonjsGlobal, u as setFocusOnElement, v as filterCollection, w as languages, x as sqlExprDefaults, R as Range, y as observeAncestorsMutation, U as Uri, z as getElementTheme, A as KeyMod, B as createFilterExpression, C as addLTRMark } from './sql-expr-defaults-4960af21.js';
|
|
8
|
+
import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-475945b0.js';
|
|
9
|
+
import { b as arcadeDefaults } from './arcade-defaults-d78913f5.js';
|
|
10
10
|
|
|
11
11
|
const DevelopersWebSitePath = "https://developers.arcgis.com/arcade/";
|
|
12
12
|
const MaxArrayItems = 100;
|
|
@@ -303,7 +303,7 @@ async function getArcadeDiagnosticService() {
|
|
|
303
303
|
* @returns arcade mode module
|
|
304
304
|
*/
|
|
305
305
|
async function getMode$1() {
|
|
306
|
-
return await import('./arcade-mode-
|
|
306
|
+
return await import('./arcade-mode-879e0ab7.js');
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-arcade-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
|
|
@@ -3953,7 +3953,7 @@ languages.onLanguage(arcadeDefaults.languageId, () => {
|
|
|
3953
3953
|
* @returns sql-expression mode module
|
|
3954
3954
|
*/
|
|
3955
3955
|
async function getMode() {
|
|
3956
|
-
return await import('./sql-expr-mode-
|
|
3956
|
+
return await import('./sql-expr-mode-2fb66dd0.js');
|
|
3957
3957
|
}
|
|
3958
3958
|
|
|
3959
3959
|
// Register the language in Monaco
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
8
|
-
import { g as globalScripts } from './app-globals-
|
|
6
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-03e0d6f3.js';
|
|
7
|
+
export { s as setNonce } from './index-03e0d6f3.js';
|
|
8
|
+
import { g as globalScripts } from './app-globals-07f5e1d4.js';
|
|
9
9
|
|
|
10
10
|
/*
|
|
11
11
|
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
7
|
-
import { u as useControllerManager, a as useT9n } from './useT9n-
|
|
8
|
-
import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-
|
|
6
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-03e0d6f3.js';
|
|
7
|
+
import { u as useControllerManager, a as useT9n } from './useT9n-475945b0.js';
|
|
8
|
+
import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-4960af21.js';
|
|
9
9
|
|
|
10
10
|
const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-sql-expression-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
|
|
11
11
|
const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
|
|
@@ -55,7 +55,7 @@ const SqlExpressionEditor = class {
|
|
|
55
55
|
async _updateEditorProfile() {
|
|
56
56
|
this._preparing = true;
|
|
57
57
|
try {
|
|
58
|
-
await sqlExprDefaults.setProfileForModel(this._modelId, this.profile);
|
|
58
|
+
await sqlExprDefaults.setProfileForModel(this._modelId, this.profile, { locale: this.messages._t9nLocale });
|
|
59
59
|
this._editorProfile = sqlExprDefaults.getEditorProfileForModel(this._modelId);
|
|
60
60
|
}
|
|
61
61
|
catch {
|
|
@@ -107,9 +107,9 @@ const SqlExpressionEditor = class {
|
|
|
107
107
|
// #endregion
|
|
108
108
|
render() {
|
|
109
109
|
const variable = this._getFeatureSetVariable();
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '5d7a1877b7cf39220d8d71b31da2a6a8c0eb8e06' }, h("div", { key: '301acf20965aec80a882e8b42fe69758ec4b3c99', class: "flex-row flex-adjustable" }, h("div", { key: '40c8d933e1b77930f36e6b90341a1d7c9267f337', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: 'f29e52368b5feb73eabd0d1445a34b0ac1c13a59', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (h("arcgis-editor-variables", { key: 'ceae6e48d27024f0d21843ec5185f9a05445fe0b', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (h("arcgis-language-api-panel", { key: '01df45fee1ff9dffd483519747996f23edfa315d', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none", hideDocumentationActions: true })), h("calcite-action-bar", { key: 'ae8dd2dfd8e31838d08439f2723871473655b8bc', class: "side-action-bar border-inline-start", expanded: this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action", { key: '7e2a31f08d0d97b07deaeef31c9e0e2a097ceb5c', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
|
|
111
111
|
// need to use an arrow function to automatically bind 'this'
|
|
112
|
-
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '
|
|
112
|
+
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '29734989408b3ee7b703d923fba093cd58ea6b0d', "reference-element": "fields-action" }, h("span", { key: '20c1b55f2e42b9258549ab2807fe44f76ebef77e' }, this.messages.fields ?? "Fields"))), h("calcite-action", { key: '64eeac74b70f8e7efde68e398ee0687c06bd08c6', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '8463172366fbc6536757885835ca49c474edf372', "reference-element": "functions-action" }, h("span", { key: '0e441ab9ff790002cfd69fd78a47fbf67ff4bfc8' }, this.messages.functions ?? "Functions")))))));
|
|
113
113
|
}
|
|
114
114
|
static get assetsDirs() { return ["assets"]; }
|
|
115
115
|
get el() { return getElement(this); }
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-
|
|
7
|
-
import { u as useControllerManager, a as useT9n } from './useT9n-
|
|
8
|
-
import { x as sqlExprDefaults } from './sql-expr-defaults-
|
|
6
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-03e0d6f3.js';
|
|
7
|
+
import { u as useControllerManager, a as useT9n } from './useT9n-475945b0.js';
|
|
8
|
+
import { x as sqlExprDefaults } from './sql-expr-defaults-4960af21.js';
|
|
9
9
|
|
|
10
10
|
const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
|
|
11
11
|
const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-4960af21.js';
|
|
7
|
+
import './index-03e0d6f3.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.101
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-4960af21.js';
|
|
7
|
+
import './index-03e0d6f3.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|