@arcgis/coding-components 4.31.0-next.98 → 4.32.0-next.2
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 +3 -3
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +43 -43
- 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 +18 -18
- 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 +3 -3
- package/dist/arcgis-coding-components/{p-8ce2a1af.js → p-2ff9c3b1.js} +3 -3
- package/dist/arcgis-coding-components/{p-cd706357.js → p-3a02ec49.js} +2 -2
- package/dist/arcgis-coding-components/{p-8436fc3b.js → p-3e3fe4e2.js} +11 -11
- package/dist/arcgis-coding-components/{p-c0e14552.js → p-45d5d08c.js} +3 -3
- package/dist/arcgis-coding-components/{p-34cda426.js → p-534574aa.js} +3 -3
- package/dist/arcgis-coding-components/{p-f8b015e0.entry.js → p-5609ffa9.entry.js} +3 -3
- package/dist/arcgis-coding-components/{p-7f656e14.js → p-6ea55b0d.js} +2 -2
- package/dist/arcgis-coding-components/{p-52bbb39b.js → p-7ede01c4.js} +3 -3
- package/dist/arcgis-coding-components/{p-86185974.js → p-810982ce.js} +3 -3
- package/dist/arcgis-coding-components/p-86ac3ba3.js +6 -0
- package/dist/arcgis-coding-components/{p-cb46a8b1.entry.js → p-93399310.entry.js} +3 -3
- package/dist/arcgis-coding-components/{p-eb65c18a.js → p-9bb0a9b8.js} +3 -3
- package/dist/arcgis-coding-components/p-aa5ca703.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-fe538f7b.js → p-c7e8f807.js} +3 -3
- package/dist/arcgis-coding-components/p-e40d1c72.js +6 -0
- package/dist/arcgis-coding-components/{p-861aa068.js → p-f2133384.js} +3 -3
- package/dist/arcgis-coding-components/p-fbd8567b.js +6 -0
- package/dist/arcgis-coding-components/{p-500278d2.js → p-fd292a0b.js} +3 -3
- package/dist/cjs/{app-globals-33fab07e.js → app-globals-369fff1c.js} +2 -2
- package/dist/cjs/{arcade-defaults-7de31bf8.js → arcade-defaults-f2f2aef5.js} +4 -4
- package/dist/cjs/{arcade-mode-dd8f44b9.js → arcade-mode-43f7ea6d.js} +4 -4
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +5 -5
- package/dist/cjs/{css-4ce7df7f.js → css-bb9e6855.js} +2 -2
- package/dist/cjs/{cssMode-85125fdd.js → cssMode-5a9f9458.js} +4 -4
- package/dist/cjs/{html-b97c7c47.js → html-f0b7b602.js} +4 -4
- package/dist/cjs/{htmlMode-1dd79e3f.js → htmlMode-ebe8b57f.js} +4 -4
- package/dist/cjs/{index-183b9560.js → index-661b6ae1.js} +2 -2
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{javascript-8791760c.js → javascript-08435efd.js} +5 -5
- package/dist/cjs/{jsonMode-14de22b2.js → jsonMode-72f98a9f.js} +4 -4
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-00a9dcb5.js → sql-expr-defaults-2d1df28c.js} +39 -29
- package/dist/cjs/{sql-expr-mode-179953e1.js → sql-expr-mode-e3111d56.js} +5 -5
- package/dist/cjs/{tsMode-b2e3cebf.js → tsMode-13683633.js} +4 -4
- package/dist/cjs/{typescript-cfbd1c72.js → typescript-0da7ad5a.js} +4 -4
- package/dist/cjs/{useT9n-0cd27204.js → useT9n-07705722.js} +13 -7
- package/dist/components/arcade-defaults.js +2 -2
- package/dist/components/arcade-mode.js +2 -2
- package/dist/components/arcade-results.js +3 -3
- package/dist/components/arcade-suggestions.js +3 -3
- package/dist/components/arcgis-arcade-editor.js +3 -3
- package/dist/components/arcgis-arcade-results.js +2 -2
- package/dist/components/arcgis-arcade-suggestions.js +2 -2
- package/dist/components/arcgis-assets.d.ts +2 -2
- package/dist/components/arcgis-assets.js +2 -2
- package/dist/components/arcgis-code-editor.js +2 -2
- package/dist/components/arcgis-editor-variables.js +2 -2
- package/dist/components/arcgis-language-api-panel.js +2 -2
- package/dist/components/arcgis-sql-expression-editor.js +6 -6
- package/dist/components/arcgis-sql-expression-fields.js +3 -3
- package/dist/components/{chunk-IUUKU7EW.js → chunk-DH6FIUFH.js} +8 -4
- package/dist/components/code-editor.js +3 -3
- package/dist/components/editor-variables.js +3 -3
- package/dist/components/fields.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index2.js +2 -2
- package/dist/components/language-api-panel.js +3 -3
- package/dist/components/markdown.js +2 -2
- package/dist/components/sql-expr-defaults.js +30 -20
- package/dist/components/sql-expr-mode.js +3 -3
- package/dist/components/useT9n.js +6 -4
- package/dist/components/utilities.js +2 -2
- package/dist/esm/{app-globals-913cca84.js → app-globals-61a0b37f.js} +2 -2
- package/dist/esm/{arcade-defaults-fce78edf.js → arcade-defaults-39c09fb3.js} +4 -4
- package/dist/esm/{arcade-mode-84eef194.js → arcade-mode-f71b93c3.js} +4 -4
- package/dist/esm/arcgis-arcade-editor_6.entry.js +8 -8
- package/dist/esm/arcgis-coding-components.js +5 -5
- package/dist/esm/arcgis-sql-expression-editor.entry.js +8 -8
- package/dist/esm/arcgis-sql-expression-fields.entry.js +5 -5
- package/dist/esm/{css-906fbdfa.js → css-a277ad93.js} +2 -2
- package/dist/esm/{cssMode-9f6312d5.js → cssMode-8e69e001.js} +4 -4
- package/dist/esm/{html-aab3c828.js → html-1ee1e335.js} +4 -4
- package/dist/esm/{htmlMode-a3a50c83.js → htmlMode-f719c141.js} +4 -4
- package/dist/esm/{index-aedc5d3b.js → index-8e0246ff.js} +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/{javascript-ab01de7f.js → javascript-bf625a2d.js} +5 -5
- package/dist/esm/{jsonMode-deacacde.js → jsonMode-f2d341c1.js} +4 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-0ac6e3bd.js → sql-expr-defaults-803d0865.js} +39 -29
- package/dist/esm/{sql-expr-mode-49313741.js → sql-expr-mode-0acae40b.js} +5 -5
- package/dist/esm/{tsMode-176d24ae.js → tsMode-13293815.js} +4 -4
- package/dist/esm/{typescript-4cee163a.js → typescript-e213d515.js} +4 -4
- package/dist/esm/{useT9n-d33c26b0.js → useT9n-a77e7a6f.js} +13 -7
- package/dist/loader/cdn.js +2 -2
- package/dist/loader/index.cjs.js +2 -2
- package/dist/loader/index.es2017.js +2 -2
- package/dist/loader/index.js +2 -2
- 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-expr-completion.d.ts +1 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +1 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +8 -23
- package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +5 -1
- package/dist/types/utils/sql-expr-monaco/types.d.ts +1 -0
- package/package.json +21 -16
- package/dist/arcgis-coding-components/p-484f6ab3.js +0 -6
- package/dist/arcgis-coding-components/p-557614cc.js +0 -6
- package/dist/arcgis-coding-components/p-6cdef0c0.entry.js +0 -6
- package/dist/arcgis-coding-components/p-fb4e9b2f.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import { D as Deferred, r as editor, T as debounce, w as languages, x as sqlExprDefaults, V as Emitter } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { D as Deferred, r as editor, T as debounce, w as languages, x as sqlExprDefaults, V as Emitter } from './sql-expr-defaults-803d0865.js';
|
|
7
|
+
import './index-8e0246ff.js';
|
|
8
8
|
|
|
9
9
|
// hold onto a promise that resolves when the worker is ready
|
|
10
10
|
let deferredWorker = new Deferred();
|
|
@@ -121,6 +121,7 @@ const sqlExprKeywords = [
|
|
|
121
121
|
"FROM",
|
|
122
122
|
"HOUR",
|
|
123
123
|
"IN",
|
|
124
|
+
"INT",
|
|
124
125
|
"INTEGER",
|
|
125
126
|
"INTERVAL",
|
|
126
127
|
"LEADING",
|
|
@@ -315,7 +316,6 @@ class SqlExprCompletionProvider {
|
|
|
315
316
|
endColumn: word.endColumn,
|
|
316
317
|
};
|
|
317
318
|
const apiContext = this._defaults.getApiContextForModel(model.uri);
|
|
318
|
-
console.log(await worker.doComplete(model.uri.toString(), range, position, apiContext));
|
|
319
319
|
return await worker.doComplete(model.uri.toString(), range, position, apiContext);
|
|
320
320
|
}
|
|
321
321
|
catch (err) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import { P as typescriptDefaults, O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { P as typescriptDefaults, O as monaco_editor_core_star } from './sql-expr-defaults-803d0865.js';
|
|
7
|
+
import './index-8e0246ff.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
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.2
|
|
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-803d0865.js';
|
|
7
|
+
import './index-8e0246ff.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
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-
|
|
7
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-803d0865.js';
|
|
7
|
+
import { g as getAssetPath } from './index-8e0246ff.js';
|
|
8
8
|
|
|
9
9
|
// src/framework.ts
|
|
10
10
|
function retrieveComponentMembers(component, isLit) {
|
|
@@ -662,8 +662,12 @@ var ComponentInternals = class {
|
|
|
662
662
|
break;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
|
|
665
|
+
const preAccessorValue = newValue;
|
|
666
666
|
originalSet.call(this, newValue);
|
|
667
|
+
newValue = internals.accessorSetter[name2](newValue, oldValue, name2);
|
|
668
|
+
if (newValue !== preAccessorValue) {
|
|
669
|
+
originalSet.call(this, newValue);
|
|
670
|
+
}
|
|
667
671
|
if (newValue !== oldValue) {
|
|
668
672
|
internals.enabledWatchers[name2]?.forEach((watcher) => watcher(newValue, oldValue, name2));
|
|
669
673
|
}
|
|
@@ -808,7 +812,7 @@ var ControllerManager = class extends GenericController {
|
|
|
808
812
|
const tagName = this.component.el.tagName.toLowerCase();
|
|
809
813
|
this.component.el.remove();
|
|
810
814
|
throw new Error(
|
|
811
|
-
`The ${tagName} component has already been destroyed. It
|
|
815
|
+
`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.`
|
|
812
816
|
);
|
|
813
817
|
}
|
|
814
818
|
if (this._autoDestroyTimeout !== void 0) {
|
|
@@ -1208,7 +1212,9 @@ var makeT9nController = (getAssetPath) => (options = {}) => (
|
|
|
1208
1212
|
const currentValue = controller.exports;
|
|
1209
1213
|
const rawMessages = currentValue._original ?? currentValue;
|
|
1210
1214
|
const updated = deepMerge(rawMessages, messageOverrides);
|
|
1211
|
-
|
|
1215
|
+
if (messageOverrides) {
|
|
1216
|
+
updated._original = rawMessages;
|
|
1217
|
+
}
|
|
1212
1218
|
controller.exports = updated;
|
|
1213
1219
|
}
|
|
1214
1220
|
if ("messageOverrides" in componentWithOverrides) {
|
package/dist/loader/cdn.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
module.exports = require('../cjs/loader.cjs.js');
|
package/dist/loader/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
module.exports = require('../cjs/loader.cjs.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
export * from '../esm/loader.js';
|
package/dist/loader/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.2
|
|
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
7
|
export * from '../esm/loader.js';
|
|
@@ -25,27 +25,14 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
25
25
|
_executingScript: boolean;
|
|
26
26
|
_consoleLogs: string[];
|
|
27
27
|
_executionResult?: ArcadeResult;
|
|
28
|
-
messages: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
suggestions?: string | undefined;
|
|
37
|
-
run?: string | undefined;
|
|
38
|
-
lastresults?: string | undefined;
|
|
39
|
-
};
|
|
40
|
-
_original?: {
|
|
41
|
-
help: string;
|
|
42
|
-
profilevariables: string;
|
|
43
|
-
constantsandfunctions: string;
|
|
44
|
-
suggestions: string;
|
|
45
|
-
run: string;
|
|
46
|
-
lastresults: string;
|
|
47
|
-
} | undefined;
|
|
48
|
-
} & Partial<{
|
|
28
|
+
messages: Partial<{
|
|
29
|
+
help: string;
|
|
30
|
+
profilevariables: string;
|
|
31
|
+
constantsandfunctions: string;
|
|
32
|
+
suggestions: string;
|
|
33
|
+
run: string;
|
|
34
|
+
lastresults: string;
|
|
35
|
+
}> & import("@arcgis/components-controllers").T9nMeta<{
|
|
49
36
|
help: string;
|
|
50
37
|
profilevariables: string;
|
|
51
38
|
constantsandfunctions: string;
|
|
@@ -5,37 +5,19 @@ export type ResultPanelName = "console" | "log" | "output";
|
|
|
5
5
|
/** @internal */
|
|
6
6
|
export declare class ArcgisArcadeResults implements ComponentInterface {
|
|
7
7
|
manager: ControllerManager<this>;
|
|
8
|
-
messages: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
runscriptmessage?: string | undefined;
|
|
22
|
-
showingfirstitemsformat?: string | undefined;
|
|
23
|
-
executionerrorformat?: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
_original?: {
|
|
26
|
-
close: string;
|
|
27
|
-
console: string;
|
|
28
|
-
output: string;
|
|
29
|
-
log: string;
|
|
30
|
-
consolemessage: string;
|
|
31
|
-
lastexecutionformat: string;
|
|
32
|
-
compilationtimeformat: string;
|
|
33
|
-
executiontimeformat: string;
|
|
34
|
-
runscriptmessage: string;
|
|
35
|
-
showingfirstitemsformat: string;
|
|
36
|
-
executionerrorformat: string;
|
|
37
|
-
} | undefined;
|
|
38
|
-
} & Partial<{
|
|
8
|
+
messages: Partial<{
|
|
9
|
+
close: string;
|
|
10
|
+
console: string;
|
|
11
|
+
output: string;
|
|
12
|
+
log: string;
|
|
13
|
+
consolemessage: string;
|
|
14
|
+
lastexecutionformat: string;
|
|
15
|
+
compilationtimeformat: string;
|
|
16
|
+
executiontimeformat: string;
|
|
17
|
+
runscriptmessage: string;
|
|
18
|
+
showingfirstitemsformat: string;
|
|
19
|
+
executionerrorformat: string;
|
|
20
|
+
}> & import("@arcgis/components-controllers").T9nMeta<{
|
|
39
21
|
close: string;
|
|
40
22
|
console: string;
|
|
41
23
|
output: string;
|
|
@@ -6,23 +6,12 @@ export declare class ArcgisArcadeSuggestions implements ComponentInterface {
|
|
|
6
6
|
manager: ControllerManager<this>;
|
|
7
7
|
private _flowObserver?;
|
|
8
8
|
private _themeChangedListener?;
|
|
9
|
-
messages: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
suggestions?: string | undefined;
|
|
16
|
-
insert?: string | undefined;
|
|
17
|
-
noitems?: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
_original?: {
|
|
20
|
-
expand: string;
|
|
21
|
-
suggestions: string;
|
|
22
|
-
insert: string;
|
|
23
|
-
noitems: string;
|
|
24
|
-
} | undefined;
|
|
25
|
-
} & Partial<{
|
|
9
|
+
messages: Partial<{
|
|
10
|
+
expand: string;
|
|
11
|
+
suggestions: string;
|
|
12
|
+
insert: string;
|
|
13
|
+
noitems: string;
|
|
14
|
+
}> & import("@arcgis/components-controllers").T9nMeta<{
|
|
26
15
|
expand: string;
|
|
27
16
|
suggestions: string;
|
|
28
17
|
insert: string;
|
|
@@ -9,29 +9,15 @@ type Mode = "featureSet" | "profile";
|
|
|
9
9
|
export declare class ArcgisEditorVariables implements ComponentInterface {
|
|
10
10
|
manager: ControllerManager<this>;
|
|
11
11
|
private _flowObserver?;
|
|
12
|
-
messages: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
noitems?: string | undefined;
|
|
22
|
-
noprofilevariablesmessage?: string | undefined;
|
|
23
|
-
fields?: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
_original?: {
|
|
26
|
-
backtotop: string;
|
|
27
|
-
expand: string;
|
|
28
|
-
loading: string;
|
|
29
|
-
profilevariables: string;
|
|
30
|
-
noitems: string;
|
|
31
|
-
noprofilevariablesmessage: string;
|
|
32
|
-
fields: string;
|
|
33
|
-
} | undefined;
|
|
34
|
-
} & Partial<{
|
|
12
|
+
messages: Partial<{
|
|
13
|
+
backtotop: string;
|
|
14
|
+
expand: string;
|
|
15
|
+
loading: string;
|
|
16
|
+
profilevariables: string;
|
|
17
|
+
noitems: string;
|
|
18
|
+
noprofilevariablesmessage: string;
|
|
19
|
+
fields: string;
|
|
20
|
+
}> & import("@arcgis/components-controllers").T9nMeta<{
|
|
35
21
|
backtotop: string;
|
|
36
22
|
expand: string;
|
|
37
23
|
loading: string;
|
|
@@ -6,27 +6,14 @@ export declare class ArcgisLanguageApiPanel implements ComponentInterface {
|
|
|
6
6
|
manager: ControllerManager<this>;
|
|
7
7
|
private _flowObserver?;
|
|
8
8
|
private _themeChangedListener?;
|
|
9
|
-
messages: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
insert?: string | undefined;
|
|
18
|
-
noitems?: string | undefined;
|
|
19
|
-
moreinformation?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
_original?: {
|
|
22
|
-
expand: string;
|
|
23
|
-
loading: string;
|
|
24
|
-
constantsandfunctions: string;
|
|
25
|
-
insert: string;
|
|
26
|
-
noitems: string;
|
|
27
|
-
moreinformation: string;
|
|
28
|
-
} | undefined;
|
|
29
|
-
} & Partial<{
|
|
9
|
+
messages: Partial<{
|
|
10
|
+
expand: string;
|
|
11
|
+
loading: string;
|
|
12
|
+
constantsandfunctions: string;
|
|
13
|
+
insert: string;
|
|
14
|
+
noitems: string;
|
|
15
|
+
moreinformation: string;
|
|
16
|
+
}> & import("@arcgis/components-controllers").T9nMeta<{
|
|
30
17
|
expand: string;
|
|
31
18
|
loading: string;
|
|
32
19
|
constantsandfunctions: string;
|
|
@@ -13,19 +13,10 @@ export declare class SqlExpressionEditor implements ComponentInterface {
|
|
|
13
13
|
_activeAction: "fields" | "functions" | undefined;
|
|
14
14
|
_apiLibrary: ApiCategory[] | undefined;
|
|
15
15
|
sideActionBarExpanded: boolean;
|
|
16
|
-
messages: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
_overrides: {
|
|
21
|
-
fields?: string | undefined;
|
|
22
|
-
functions?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
_original?: {
|
|
25
|
-
fields: string;
|
|
26
|
-
functions: string;
|
|
27
|
-
} | undefined;
|
|
28
|
-
} & Partial<{
|
|
16
|
+
messages: Partial<{
|
|
17
|
+
fields: string;
|
|
18
|
+
functions: string;
|
|
19
|
+
}> & import("@arcgis/components-controllers").T9nMeta<{
|
|
29
20
|
fields: string;
|
|
30
21
|
functions: string;
|
|
31
22
|
}>;
|
|
@@ -4,19 +4,10 @@ import { type ComponentInterface, type EventEmitter, type VNode } from "../../st
|
|
|
4
4
|
export declare class SqlExpressionFields implements ComponentInterface {
|
|
5
5
|
manager: ControllerManager<this>;
|
|
6
6
|
private _flowObserver?;
|
|
7
|
-
messages: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_overrides: {
|
|
12
|
-
availablefields?: string | undefined;
|
|
13
|
-
domainvalues?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
_original?: {
|
|
16
|
-
availablefields: string;
|
|
17
|
-
domainvalues: string;
|
|
18
|
-
} | undefined;
|
|
19
|
-
} & Partial<{
|
|
7
|
+
messages: Partial<{
|
|
8
|
+
availablefields: string;
|
|
9
|
+
domainvalues: string;
|
|
10
|
+
}> & import("@arcgis/components-controllers").T9nMeta<{
|
|
20
11
|
availablefields: string;
|
|
21
12
|
domainvalues: string;
|
|
22
13
|
}>;
|
|
@@ -66,6 +66,7 @@ export declare class SqlExpressionCompletion {
|
|
|
66
66
|
private _suggestDateFunctions;
|
|
67
67
|
private _suggestExpressions;
|
|
68
68
|
private _suggestNull;
|
|
69
|
+
private _suggestCurrentUser;
|
|
69
70
|
/**
|
|
70
71
|
* looks at the node and finds any children attached to it. If there are children, it will traverse them.
|
|
71
72
|
* @param node The current node to traverse
|
|
@@ -6,6 +6,7 @@ export declare enum ValidationDiagnosticCodes {
|
|
|
6
6
|
IncompatibleListDataType = "IncompatibleListDataType",
|
|
7
7
|
IncorrectArgumentLength = "IncorrectArgumentLength",
|
|
8
8
|
IncorrectCastParameters = "IncorrectCastParameters",
|
|
9
|
+
InvalidDateArithmetic = "InvalidDateArithmetic",
|
|
9
10
|
IncorrectExtractParameters = "IncorrectExtractParameters",
|
|
10
11
|
IncorrectSubstringParameters = "IncorrectSubstringParameters",
|
|
11
12
|
IncorrectTrimParameters = "IncorrectTrimParameters",
|
|
@@ -40,29 +40,6 @@ export declare enum Token {
|
|
|
40
40
|
SINGLE_QUOTE = "'",
|
|
41
41
|
WHITE_SPACE = " "
|
|
42
42
|
}
|
|
43
|
-
export declare enum BinaryOperator {
|
|
44
|
-
AND = "AND",
|
|
45
|
-
OR = "OR",
|
|
46
|
-
IS = "IS",
|
|
47
|
-
IS_NOT = "ISNOT",
|
|
48
|
-
IN = "IN",
|
|
49
|
-
NOT_IN = "NOT IN",
|
|
50
|
-
BETWEEN = "BETWEEN",
|
|
51
|
-
NOT_BETWEEN = "NOTBETWEEN",
|
|
52
|
-
LIKE = "LIKE",
|
|
53
|
-
NOT_LIKE = "NOT LIKE",
|
|
54
|
-
NOT_EQUALS = "<>",
|
|
55
|
-
LESS_THAN = "<",
|
|
56
|
-
GREATER_THAN = ">",
|
|
57
|
-
GREATER_THAN_EQUAL = ">=",
|
|
58
|
-
LESS_THAN_EQUAL = "<=",
|
|
59
|
-
EQUAL = "=",
|
|
60
|
-
MULTIPLY = "*",
|
|
61
|
-
SUBTRACT = "-",
|
|
62
|
-
ADD = "+",
|
|
63
|
-
DIVIDE = "/",
|
|
64
|
-
CONCATENATE = "||"
|
|
65
|
-
}
|
|
66
43
|
export declare enum NodeReturnType {
|
|
67
44
|
BOOLEAN = "BOOLEAN",
|
|
68
45
|
DOUBLE = "DOUBLE",
|
|
@@ -87,6 +64,14 @@ export declare const relationalTypes: SqlExpressionLiteral[];
|
|
|
87
64
|
export declare const qualifiers: TokenType[];
|
|
88
65
|
export declare function convertArcgisTypeToSqlReturnType(arcgisType: ArcGISFieldType): SqlExpressionLiteral;
|
|
89
66
|
export declare const identifyNodeReturnType: (node: __esri.SQLNode, fields: ApiVariable[]) => SqlExpressionLiteral | "time-only" | "unknown_function";
|
|
67
|
+
/**
|
|
68
|
+
* Helper function to identify if the given type is able to be used in arithmetic operations
|
|
69
|
+
*/
|
|
70
|
+
export declare const isArithmeticType: (type: SqlExpressionLiteral) => boolean;
|
|
71
|
+
/**
|
|
72
|
+
* SQL allows arithmetic operations on intervals combined with dates or numbers.
|
|
73
|
+
*/
|
|
74
|
+
export declare const isValidIntervalArithmetic: (leftNode: __esri.SQLNode, rightNode: __esri.SQLNode, fields: ApiVariable[]) => boolean;
|
|
90
75
|
export declare const isNumericType: (type: SqlExpressionLiteral) => boolean;
|
|
91
76
|
export declare const formatListToString: (types: SqlExpressionLiteral[], delimiter: string) => string;
|
|
92
77
|
export declare const formatType: (type: string) => string;
|
|
@@ -6,7 +6,11 @@ import type { IPredefinedProfile, IEditorProfileDefinition } from "../profile/ty
|
|
|
6
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
7
|
*/
|
|
8
8
|
export declare const sqlExprEditorToApiProfile: (editorProfile: EditorProfile) => ApiProfile;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* converts a predefined editor profile to a IEditorProfileDefinition.
|
|
11
|
+
* This is used to hydrate a profile definition from a predefined profile.
|
|
12
|
+
*/
|
|
13
|
+
export declare function convertToEditorProfileDefinition(predefinedProfile: IPredefinedProfile): IEditorProfileDefinition | undefined;
|
|
10
14
|
/**
|
|
11
15
|
* util to retrieve fields from the $layer variable in the api context.
|
|
12
16
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.32.0-next.2",
|
|
4
4
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -50,23 +50,23 @@
|
|
|
50
50
|
"generate": "stencil generate"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@arcgis/arcade-languageservice": "4.
|
|
54
|
-
"@arcgis/components-controllers": "4.
|
|
55
|
-
"@arcgis/components-utils": "4.
|
|
56
|
-
"@arcgis/languages-api-utils": "4.
|
|
53
|
+
"@arcgis/arcade-languageservice": "4.32.0-next.2",
|
|
54
|
+
"@arcgis/components-controllers": "4.32.0-next.2",
|
|
55
|
+
"@arcgis/components-utils": "4.32.0-next.2",
|
|
56
|
+
"@arcgis/languages-api-utils": "4.32.0-next.2",
|
|
57
57
|
"@stencil/core": "4.20.0",
|
|
58
58
|
"monaco-editor": "0.45.0",
|
|
59
59
|
"tslib": "^2.7.0",
|
|
60
60
|
"vscode-languageserver-types": "^3.17.5"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@arcgis/components-build-utils": "4.
|
|
64
|
-
"@arcgis/components-plugins": "4.
|
|
63
|
+
"@arcgis/components-build-utils": "4.32.0-next.2",
|
|
64
|
+
"@arcgis/components-plugins": "4.32.0-next.2",
|
|
65
65
|
"@arcgis/core": ">=4.31.0-next <4.32",
|
|
66
|
-
"@arcgis/core-adapter": "4.
|
|
67
|
-
"@arcgis/sql-expression-sdk": "^1.1.0-next.
|
|
68
|
-
"@arcgis/storybook-utils": "4.
|
|
69
|
-
"@arcgis/typescript-config": "4.
|
|
66
|
+
"@arcgis/core-adapter": "4.32.0-next.2",
|
|
67
|
+
"@arcgis/sql-expression-sdk": "^1.1.0-next.14",
|
|
68
|
+
"@arcgis/storybook-utils": "4.32.0-next.2",
|
|
69
|
+
"@arcgis/typescript-config": "4.32.0-next.2",
|
|
70
70
|
"@esri/calcite-components": "^2.12.1",
|
|
71
71
|
"@stencil/react-output-target": "0.5.3",
|
|
72
72
|
"@stencil/sass": "^3.0.12",
|
|
@@ -79,19 +79,19 @@
|
|
|
79
79
|
"@types/node": "^20.2.5",
|
|
80
80
|
"@types/postcss-url": "^10.0.0",
|
|
81
81
|
"@types/resize-observer-browser": "^0.1.7",
|
|
82
|
-
"esbuild": "^0.
|
|
82
|
+
"esbuild": "^0.24.0",
|
|
83
83
|
"eslint": "^8.55.0",
|
|
84
84
|
"jest": "^29.5.0",
|
|
85
85
|
"jest-cli": "^29.5.0",
|
|
86
86
|
"magic-string": "^0.30.10",
|
|
87
87
|
"marked": "^5.1.2",
|
|
88
|
-
"postcss": "
|
|
88
|
+
"postcss": "^8.4.47",
|
|
89
89
|
"postcss-discard-comments": "^5.1.2",
|
|
90
90
|
"postcss-url": "^10.1.3",
|
|
91
91
|
"resolve-pkg": "^2.0.0",
|
|
92
92
|
"rimraf": "^5.0.0",
|
|
93
|
-
"rollup": "^4.
|
|
94
|
-
"rollup-plugin-import-css": "^3.
|
|
93
|
+
"rollup": "^4.24.0",
|
|
94
|
+
"rollup-plugin-import-css": "^3.5.4",
|
|
95
95
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
96
96
|
"storybook": "^8.2.4",
|
|
97
97
|
"tsx": "^4.19.0",
|
|
@@ -103,5 +103,10 @@
|
|
|
103
103
|
"@arcgis/core": ">=4.31.0-next <4.32",
|
|
104
104
|
"@esri/calcite-components": "^2.12.1"
|
|
105
105
|
},
|
|
106
|
-
"
|
|
106
|
+
"webGISComponents": {
|
|
107
|
+
"deployBuilds": {
|
|
108
|
+
"storybook-static": "builds"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"gitHead": "8c9d6f7c0e88ea1b6ddbc00ebdb1c89069b0cbbf"
|
|
107
112
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.98
|
|
5
|
-
*/
|
|
6
|
-
import{D as e,r as t,T as s,w as i,x as n,V as o}from"./p-8436fc3b.js";import"./p-cd706357.js";let r=new e;class a{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null,r=new e),this._client=null}static async waitForWorker(){return await r.promise}async _getClientProxy(){if(!this._client){const{languageId:e}=this._defaults;this._worker=t.createWebWorker({moduleId:"SqlExprWorker",label:e,createData:{languageId:e},host:this._defaults.workerHost}),r.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}var c,l;!function(e){e.ARGS="args",e.CLAUSES="clauses",e.ELSE="else",e.END="end",e.EXPR="expr",e.LEFT="left",e.OPERAND="operand",e.QUALIFIER="qualifier",e.RIGHT="right",e.START="start",e.VALUE="value"}(c||(c={})),function(e){e.CASE_EXPRESSION="case-expression",e.EXPRESSION_LIST="expression-list",e.FUNCTION="function",e.INTERVAL="interval",e.INTERVAL_QUALIFIER="interval-qualifier",e.WHEN_CLAUSE="when-clause",e.UNARY_EXPRESSION="unary-expression",e.BINARY_EXPRESSION="binary-expression"}(l||(l={})),Object.values({date:"DATE",float:"FLOAT",integer:"INTEGER",real:"REAL",smallint:"SMALLINT",time:"TIME",timestamp:"TIMESTAMP",varchar:"VARCHAR"});const h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},u={defaultToken:"",tokenPostfix:".arcgis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AND","AS","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INTEGER","INTERVAL","LEADING","LIKE","MINUTE","MONTH","POSITION","REAL","SECOND","SMALLINT","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],operators:["AND","BETWEEN","LIKE","NOT","OR","IS","NULL"],builtinFunctions:["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","MOD","NULLIF","POWER","ROUND","SIGN","SIN","TAN","TRUNCATE","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","SUBSTRING","TRIM","UPPER"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};class E{constructor(e,t){this._worker=e,this._defaults=t}async provideCompletionItems(e,t){try{const s=await this._worker(e.uri),i=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn},o=this._defaults.getApiContextForModel(e.uri);return console.log(await s.doComplete(e.uri.toString(),n,t,o)),await s.doComplete(e.uri.toString(),n,t,o)}catch(e){return console.error(e),{suggestions:[]}}}}class d{constructor(e,i,{defaults:n,diagnosticService:o}){this._languageId=e,this._worker=i,this._disposables=[],this._listener=new Map,this._diagnosticsService=o,this._defaults=n;const r=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const i=s((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(i)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const i=this._listener.get(s);i&&(i.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(r)),this._disposables.push(t.onWillDisposeModel((e=>a(e)))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),r(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),r(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(r)}async _doValidate(e,s){if(e.isAttachedToEditor())try{const i=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),o=await i.doValidation(e.uri.toString(),n);this._diagnosticsService.fireDiagnosticsChange(e.uri,o),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}let T;async function p(...e){return await a.waitForWorker(),await new Promise(((t,s)=>{T?t(T(...e)):s(new Error("sql expression worker not registered!"))}))}const N=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function m(){return N}function I(e){const t=new a(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);T=s,i.setMonarchTokensProvider(n.languageId,u),i.setLanguageConfiguration(n.languageId,h);const o=new E(s,n);i.registerCompletionItemProvider(n.languageId,o),new d(e.languageId,s,{defaults:e,diagnosticService:N})}export{m as getSqlExprDiagnosticService,p as getSqlExprWorker,I as setupMode}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.98
|
|
5
|
-
*/
|
|
6
|
-
import{r as e,c as i,h as s,H as t,a}from"./p-cd706357.js";import{u as o,a as n}from"./p-fb4e9b2f.js";import{l as r,x as c}from"./p-8436fc3b.js";const d=class{constructor(s){e(this,s),this.arcgisScriptChange=i(this,"arcgisScriptChange",3),this.manager=o(this),this._modelId=r(),this._insertAsSnippet=e=>{this._codeEditorElt?.insertSnippet(e.detail).catch(console.error)},this._insertAsText=e=>{this._codeEditorElt?.insertText(e.detail.replaceAll('"',"'")).catch(console.error)},this._updateApiLibrary=async()=>{this._apiLibrary=await c.getApiLibraryForModel(this._modelId)},this._onCodeEditorValueChange=e=>{e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)},this._toggleSideActionBarExpanded=()=>{this.sideActionBarExpanded=!this.sideActionBarExpanded},this._preparing=!1,this._editorProfile=void 0,this._activeAction=void 0,this._apiLibrary=void 0,this.sideActionBarExpanded=!1,this.messages=n(),this.profile=void 0,this.script=""}async _messagesChanged(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _profileChanged(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _updateEditorProfile(){this._preparing=!0;try{await c.setProfileForModel(this._modelId,this.profile),this._editorProfile=c.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(e){this._activeAction=this._activeAction!==e?e:void 0}_handleActionClick(e){this._setActiveAction(e.target.dataset.panelName)}_getFeatureSetVariable(){let e;const i=c.getEditorProfileForModel(this._modelId);return i?.variables?.length&&"featureSet"!==i?.variables?.[0]?.type?console.error("encountered unexpected editor profile"):e=i?.variables?.[0],e}async componentWillLoad(){await this._updateEditorProfile().catch(console.error)}async componentDidLoad(){await this._updateApiLibrary()}render(){const e=this._getFeatureSetVariable();return s(t,{key:"7045de8598251dd6984000e7b29954e061c026d1"},s("div",{key:"be7bdc3c1f67698806cb82340db7298ea4a587c8",class:"flex-row flex-adjustable"},s("div",{key:"fd8fc820e4936b92e56b5d6391645d0bbd9f25ec",class:"flex-column flex-adjustable"},s("arcgis-code-editor",{key:"1f99b35c123aa46d06533d3bd6435e771efc0a74",language:"arcgis-sql-expression",modelId:this._modelId,ref:e=>this._codeEditorElt=e,value:this.script??"",onArcgisValueChange:this._onCodeEditorValueChange})),"fields"===this._activeAction&&s("arcgis-editor-variables",{key:"0670d6ac75b6139db6d941ac277bf273ce6bae1b",variable:e,class:"side-panel flex-panel border-inline-start",loading:this._preparing,modelId:this._modelId,onArcgisItemSelected:this._insertAsText,onArcgisClose:()=>this._setActiveAction(void 0),"data-panel-name":"none"}),"functions"===this._activeAction&&s("arcgis-language-api-panel",{key:"2439b8611bed242bfe15435ee8ca7705561a3819",class:"side-panel flex-panel border-inline-start",onArcgisItemSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0),loading:this._preparing,apiLibrary:this._apiLibrary,"data-panel-name":"none",hideDocumentationActions:!0}),s("calcite-action-bar",{key:"7596963e07e7b2e1a02f5f9818078ff485b48d48",class:"side-action-bar border-inline-start",expanded:this.sideActionBarExpanded,position:"end",onCalciteActionBarToggle:this._toggleSideActionBarExpanded},s("calcite-action",{key:"4838d3f894e2a718a42896c335c70fb08fc65f18",id:"fields-action",text:this.messages.fields??"Fields",icon:"profile-variables",active:"fields"===this._activeAction,"data-panel-name":"fields",onClick:e=>this._handleActionClick(e)}),!this.sideActionBarExpanded&&s("calcite-tooltip",{key:"09b5f61900753504dbf2c9adf6e0d92f00ebb81e","reference-element":"fields-action"},s("span",{key:"fe19f406a90c8a5fb1904aee382d09e9c02c747b"},this.messages.fields??"Fields")),s("calcite-action",{key:"74ee905a61962bd87661a6a7ea1e0b0fda509b2f",id:"functions-action",text:this.messages.functions??"Functions",icon:"function",active:"functions"===this._activeAction,"data-panel-name":"functions",onClick:e=>this._handleActionClick(e)}),!this.sideActionBarExpanded&&s("calcite-tooltip",{key:"a83c4265bc3ff134981b734cc33f68e82c2f33fa","reference-element":"functions-action"},s("span",{key:"8a7dbde7774ce4ee07580fdee2f6a8a074763a27"},this.messages.functions??"Functions")))))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messages:["_messagesChanged"],profile:["_profileChanged"]}}};d.style="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%}";export{d as arcgis_sql_expression_editor}
|