@arcgis/coding-components 5.0.0-next.136 → 5.0.0-next.137
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/addons/arcade-coding-assistant/useArcadeAssistant.d.ts +7 -17
- package/dist/addons/index.d.ts +2 -2
- package/dist/addons.js +1 -1
- package/dist/cdn/{OZZYHIPM.js → 22N5QBRQ.js} +1 -1
- package/dist/cdn/{ZBKMCGR7.js → 2EKDNAHO.js} +2 -2
- package/dist/cdn/{A7BGWNLB.js → 2NXZWMO2.js} +2 -2
- package/dist/cdn/{RFPCEKOB.js → 2UFRNIIX.js} +2 -2
- package/dist/cdn/{H3N4UPAY.js → 2ZQEKE2N.js} +3 -3
- package/dist/cdn/{OAJKP3TF.js → 3P2KVVSN.js} +1 -1
- package/dist/cdn/{EZGAUSIF.js → 3T5KGXQ7.js} +2 -2
- package/dist/cdn/{224QUA5Z.js → 5MGUXXER.js} +2 -2
- package/dist/cdn/{MMSAWKPK.js → 5N2Q2P7U.js} +2 -2
- package/dist/cdn/{UCG4NPRP.js → 652ZSIU3.js} +2 -2
- package/dist/cdn/{YTFTM7FZ.js → 6DBUX6JF.js} +1 -1
- package/dist/cdn/{22DCBJ5F.js → APQA7KWN.js} +2 -2
- package/dist/cdn/{OCZIBXWV.js → ATM4NOGS.js} +1 -1
- package/dist/cdn/{5N7BLQUC.js → B5CXJQR6.js} +1 -1
- package/dist/cdn/{MGX5UEEJ.js → BUACEA3I.js} +3 -3
- package/dist/cdn/{Q54H2UGW.js → CPWFDMAZ.js} +2 -2
- package/dist/cdn/{XLQLW2QL.js → D3RYGBRI.js} +2 -2
- package/dist/cdn/{PR666JT5.js → D6TFIJTU.js} +2 -2
- package/dist/cdn/{Q6ERATMA.js → FFISKNTL.js} +2 -2
- package/dist/cdn/{JYHLAFWX.js → FZU6DHUW.js} +2 -2
- package/dist/cdn/{U77BQSD4.js → G6GHNSL7.js} +2 -2
- package/dist/cdn/KGEHLX5T.js +4 -0
- package/dist/cdn/{ZWJAHBIF.js → KNPWBL2I.js} +2 -2
- package/dist/cdn/{FV6JUYSW.js → LKTNXGNX.js} +2 -2
- package/dist/cdn/{PP7BAX5L.js → LXFKAS3V.js} +2 -2
- package/dist/cdn/{UMHPBSPW.js → LXPYFEGT.js} +1 -1
- package/dist/cdn/{DSHANUYF.js → OB5OMUWO.js} +2 -2
- package/dist/cdn/{OCXFKC66.js → OPBG2VOB.js} +1 -1
- package/dist/cdn/{PWTWO4LQ.js → OS4TOCCI.js} +2 -2
- package/dist/cdn/{J2DLUEJO.js → OWLGWZHC.js} +2 -2
- package/dist/cdn/{TV544T2R.js → QDQF6MJO.js} +2 -2
- package/dist/cdn/{Q4UHUY3T.js → QK2B5NW2.js} +2 -2
- package/dist/cdn/{ZB3AQDM2.js → QSPWHJZL.js} +2 -2
- package/dist/cdn/{HSBLYEZV.js → QWNYDDUJ.js} +2 -2
- package/dist/cdn/{VDMEGRHB.js → R2YG3J22.js} +2 -2
- package/dist/cdn/{MEXDPC7D.js → R5MLSRIF.js} +1 -1
- package/dist/cdn/{TZYBHRPS.js → RUH6XBH5.js} +2 -2
- package/dist/cdn/SA2I6VGH.js +6 -0
- package/dist/cdn/{4RJPAWSA.js → TAAR5ZM6.js} +2 -2
- package/dist/cdn/TO7MSMOI.js +4 -0
- package/dist/cdn/{UI5EVXFU.js → TQNRSDFY.js} +2 -2
- package/dist/cdn/{UZMYMIUN.js → U4XM5Q3C.js} +2 -2
- package/dist/cdn/{CUWBQ6DE.js → UMCG5VR5.js} +2 -2
- package/dist/cdn/{HEOVDTIB.js → UXKT2D32.js} +2 -2
- package/dist/cdn/{36Y75YKB.js → VVGAJL4U.js} +2 -2
- package/dist/cdn/{RIEACZTY.js → WLIDKUHE.js} +2 -2
- package/dist/cdn/{TGBYUAUR.js → XB5O7QZI.js} +2 -2
- package/dist/cdn/{ZLUCSP73.js → ZMY3G2UA.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +2 -2
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +3 -3
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/monaco-theme.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/{arcade-contribution.js → setup-monaco-theme.js} +40 -40
- package/dist/chunks/sql-expr-defaults.js +2 -2
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/types.d.ts +3 -48
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +123 -112
- package/dist/components/arcgis-arcade-editor/customElement.js +2 -2
- package/dist/components/arcgis-arcade-editor/index.d.ts +0 -13
- package/dist/components/arcgis-arcade-results/customElement.js +7 -7
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.d.ts +74 -81
- package/dist/components/arcgis-code-editor/customElement.js +3 -3
- package/dist/components/arcgis-code-editor-shell/customElement.d.ts +9 -5
- package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/customElement.d.ts +23 -37
- package/dist/components/arcgis-code-viewer/customElement.js +2 -2
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +53 -49
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/index.d.ts +0 -7
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +1 -1470
- package/dist/docs/docs.json +1 -1381
- package/dist/docs/vscode.css-custom-data.json +1 -35
- package/dist/docs/vscode.html-custom-data.json +1 -119
- package/dist/docs/web-types.json +1 -385
- package/dist/index.d.ts +34 -21
- package/dist/index.js +1 -1
- package/dist/loader.js +7 -7
- package/dist/types/lumina.d.ts +11 -11
- package/dist/types/preact.d.ts +11 -11
- package/dist/types/react.d.ts +11 -11
- package/dist/types/stencil.d.ts +11 -11
- package/dist/utils/arcade-assistant/types.d.ts +8 -72
- package/dist/utils/arcade-executor.d.ts +158 -126
- package/dist/utils/arcade-monaco/arcade-defaults.d.ts +9 -49
- package/dist/utils/custom-panel.d.ts +35 -30
- package/dist/utils/editor-suggestions.d.ts +17 -28
- package/dist/utils/index.d.ts +4 -6
- package/dist/utils/profile/types.d.ts +273 -345
- package/dist/utils/sql-expr-monaco/sql-expr-defaults.d.ts +8 -22
- package/package.json +6 -6
- package/dist/addons/arcade-coding-assistant/chat-helper.d.ts +0 -78
- package/dist/addons/arcade-coding-assistant/index.d.ts +0 -2
- package/dist/addons/arcade-coding-assistant/temporary-strings.d.ts +0 -47
- package/dist/cdn/2WNWZ6AD.js +0 -4
- package/dist/cdn/EGURZWSY.js +0 -4
- package/dist/cdn/TIR4RXVC.js +0 -6
- package/dist/components/arcgis-arcade-coding-assistant/customElement.d.ts +0 -45
- package/dist/components/arcgis-arcade-coding-assistant/functional.d.ts +0 -235
- package/dist/components/arcgis-arcade-coding-assistant/index.d.ts +0 -27
- package/dist/components/arcgis-arcade-results/customElement.d.ts +0 -32
- package/dist/components/arcgis-arcade-results/functional.d.ts +0 -73
- package/dist/components/arcgis-arcade-results/index.d.ts +0 -10
- package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +0 -24
- package/dist/components/arcgis-arcade-suggestions/index.d.ts +0 -10
- package/dist/components/arcgis-editor-variables/customElement.d.ts +0 -40
- package/dist/components/arcgis-editor-variables/index.d.ts +0 -10
- package/dist/components/arcgis-language-api-panel/customElement.d.ts +0 -42
- package/dist/components/arcgis-language-api-panel/index.d.ts +0 -11
- package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +0 -23
- package/dist/components/arcgis-sql-expression-fields/index.d.ts +0 -7
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/runtime.d.ts +0 -6
- package/dist/utils/arcade-assistant/aiContext.d.ts +0 -6
- package/dist/utils/arcade-assistant/constants.d.ts +0 -2
- package/dist/utils/arcade-assistant/utils.d.ts +0 -9
- package/dist/utils/arcade-monaco/arcade-contribution.d.ts +0 -1
- package/dist/utils/arcade-monaco/arcade-language-features.d.ts +0 -35
- package/dist/utils/arcade-monaco/arcade-language-syntax.d.ts +0 -3
- package/dist/utils/arcade-monaco/arcade-mode.d.ts +0 -29
- package/dist/utils/arcade-monaco/arcade-profile-strategy.d.ts +0 -12
- package/dist/utils/arcade-monaco/arcade-service-accessors.d.ts +0 -31
- package/dist/utils/arcade-monaco/arcade-worker-manager.d.ts +0 -22
- package/dist/utils/arcade-monaco/arcade.worker.d.ts +0 -23
- package/dist/utils/arcade-monaco/types.d.ts +0 -9
- package/dist/utils/colorize.d.ts +0 -5
- package/dist/utils/constants.d.ts +0 -3
- package/dist/utils/css-vars.d.ts +0 -7
- package/dist/utils/fields.d.ts +0 -20
- package/dist/utils/internal-monaco-apis.d.ts +0 -67
- package/dist/utils/language-defaults-base.d.ts +0 -76
- package/dist/utils/markdown.d.ts +0 -6
- package/dist/utils/monaco-importer.d.ts +0 -28
- package/dist/utils/monaco-languages.d.ts +0 -17
- package/dist/utils/monaco-theme.json.d.ts +0 -27
- package/dist/utils/monaco-typings.d.ts +0 -8
- package/dist/utils/patch-monaco.d.ts +0 -16
- package/dist/utils/profile/editor-profile.d.ts +0 -278
- package/dist/utils/profile/utils.d.ts +0 -49
- package/dist/utils/setup-monaco-theme.d.ts +0 -1
- package/dist/utils/setup-monaco.d.ts +0 -31
- package/dist/utils/sql-expr-monaco/sql-expr-completion.d.ts +0 -74
- package/dist/utils/sql-expr-monaco/sql-expr-constants.d.ts +0 -67
- package/dist/utils/sql-expr-monaco/sql-expr-contribution.d.ts +0 -1
- package/dist/utils/sql-expr-monaco/sql-expr-language-features.d.ts +0 -23
- package/dist/utils/sql-expr-monaco/sql-expr-language-syntax.d.ts +0 -3
- package/dist/utils/sql-expr-monaco/sql-expr-mode.d.ts +0 -43
- package/dist/utils/sql-expr-monaco/sql-expr-parser-utils.d.ts +0 -36
- package/dist/utils/sql-expr-monaco/sql-expr-profile-utils.d.ts +0 -5
- package/dist/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +0 -19
- package/dist/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -33
- package/dist/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +0 -82
- package/dist/utils/sql-expr-monaco/sql-expr-validation.d.ts +0 -41
- package/dist/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +0 -22
- package/dist/utils/sql-expr-monaco/sql-expr.worker.d.ts +0 -22
- package/dist/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +0 -13
- package/dist/utils/sql-expr-monaco/types.d.ts +0 -96
- package/dist/utils/utilities.d.ts +0 -16
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
import { PropertyValues } from 'lit';
|
|
4
|
-
/**
|
|
5
|
-
* @remarks
|
|
6
|
-
* This component has 3 main parts to manage:
|
|
7
|
-
* 1. setting up the theme colors from monaco for syntax highlighting
|
|
8
|
-
* - done via stylesheets created and applied in adoptedStyleSheets
|
|
9
|
-
* - These styles need to update when: 1. the theme changes, 2. the component is first loaded, 3. the component reconnects with a different theme
|
|
10
|
-
* 2. setting the html content of the code block, which is "colorized" by monaco
|
|
11
|
-
* - This needs to happen when: 1. the code changes, 2. the language changes
|
|
12
|
-
* 3. managing the code content provided via the default slot
|
|
13
|
-
* - This needs to handle: 1. slotchange events, 2. mutations to the assigned nodes (e.g., innerHTML or textContent changes)
|
|
14
|
-
*/
|
|
2
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
|
|
15
3
|
|
|
16
4
|
/**
|
|
17
5
|
* A code viewer component for displaying code snippets.
|
|
18
6
|
* Supports syntax highlighting for various programming languages, include arcade and arcgis-sql-expression.
|
|
19
7
|
*
|
|
20
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-code-viewer/)
|
|
21
|
-
*
|
|
22
8
|
* @example
|
|
23
9
|
* ```tsx
|
|
24
10
|
* <arcgis-code-viewer language="javascript">
|
|
@@ -31,9 +17,9 @@ import { PropertyValues } from 'lit';
|
|
|
31
17
|
* HTML snippets (preserve markup)
|
|
32
18
|
* ```tsx
|
|
33
19
|
* <arcgis-code-viewer language="html">
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
20
|
+
* <template>
|
|
21
|
+
* <div class="greeting"><span>Hello</span> World!</div>
|
|
22
|
+
* </template>
|
|
37
23
|
* </arcgis-code-viewer>
|
|
38
24
|
* ```
|
|
39
25
|
* When `language="html"`, the component will attempt to preserve your original markup instead of reducing it
|
|
@@ -42,22 +28,22 @@ import { PropertyValues } from 'lit';
|
|
|
42
28
|
* raw text of text nodes. Script contents are treated as inert string data; they are never executed.
|
|
43
29
|
* @internal
|
|
44
30
|
*/
|
|
45
|
-
export
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
31
|
+
export abstract class ArcgisCodeViewer extends LitElement {
|
|
32
|
+
/**
|
|
33
|
+
* The language for the component.
|
|
34
|
+
* Currently supported language: arcade, arcgis-sql-expression, plus all the following languages found in monaco-editor's repo:
|
|
35
|
+
* https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages.
|
|
36
|
+
*
|
|
37
|
+
* Note: The number of supported languages is limited in cdn builds to reduce package size. In cdn builds,
|
|
38
|
+
* only the following languages are supported: css, html, javascript, typescript, and arcade, arcgis-sql-expression.
|
|
39
|
+
*
|
|
40
|
+
* @default "arcade"
|
|
41
|
+
*/
|
|
42
|
+
accessor language: string;
|
|
43
|
+
/**
|
|
44
|
+
* When `true`, adds a round style to the component.
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
accessor round: boolean;
|
|
49
|
+
}
|
|
@@ -4,7 +4,7 @@ import { slotChangeHasContent as g, observeAncestorsMutation as f, unsafeGetCalc
|
|
|
4
4
|
import { load as S } from "@arcgis/lumina/controllers";
|
|
5
5
|
import { i as v } from "../../chunks/monaco-importer.js";
|
|
6
6
|
import { css as E, html as a } from "lit";
|
|
7
|
-
import { w as l, s as h } from "../../chunks/
|
|
7
|
+
import { w as l, s as h } from "../../chunks/setup-monaco-theme.js";
|
|
8
8
|
import { c as T, g as c, o as b } from "../../chunks/colorize.js";
|
|
9
9
|
import { s as C } from "../../chunks/arcade-service-accessors.js";
|
|
10
10
|
import { debounce as y } from "@arcgis/toolkit/function";
|
|
@@ -12,7 +12,7 @@ import { Task as N } from "@lit/task";
|
|
|
12
12
|
import { rethrowError as O, log as w } from "@arcgis/toolkit/log";
|
|
13
13
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
14
14
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
15
|
-
v5.0.0-next.
|
|
15
|
+
v5.0.0-next.137 */
|
|
16
16
|
const z = E`pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);white-space:pre-line;code{font-size:var(--calcite-font-size--2);font-family:var(--calcite-font-family-code)}}:host([round]){pre{border-radius:var(--calcite-corner-radius-round)}}`;
|
|
17
17
|
class L extends p {
|
|
18
18
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
8
8
|
import { log as u } from "@arcgis/toolkit/log";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
11
|
-
v5.0.0-next.
|
|
11
|
+
v5.0.0-next.137 */
|
|
12
12
|
const g = n`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2);word-break:break-word}}`;
|
|
13
13
|
function p(l) {
|
|
14
14
|
l.key === "Enter" && l.stopPropagation();
|
|
@@ -9,7 +9,7 @@ import { c as r } from "../../chunks/markdown.js";
|
|
|
9
9
|
import { u as p } from "../../chunks/useT9n.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
12
|
+
v5.0.0-next.137 */
|
|
13
13
|
const g = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}calcite-flow{[slot=footer]{word-break:break-word}}}`;
|
|
14
14
|
class b extends h {
|
|
15
15
|
constructor() {
|
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { IPredefinedProfile } from '../../utils/profile/types';
|
|
7
|
-
import { editor } from 'monaco-editor';
|
|
2
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
|
|
3
|
+
import type { IPredefinedProfile } from "../../utils/profile/types.js";
|
|
4
|
+
import type { editor } from "monaco-editor";
|
|
5
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* The SQL Expression Editor provides a familiar code editor experience for writing your own SQL expressions.
|
|
11
9
|
* It supports syntax highlighting, code completion, and validation, allowing users to write SQL expressions using the
|
|
12
10
|
* [standardized SQL functions](https://doc.arcgis.com/en/arcgis-online/reference/sql-agol.htm) supported by ArcGIS.
|
|
13
11
|
*
|
|
14
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-sql-expression-editor/)
|
|
15
|
-
*
|
|
16
12
|
* @internal
|
|
17
13
|
*/
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
14
|
+
export abstract class ArcgisSqlExpressionEditor extends LitElement {
|
|
15
|
+
/**
|
|
16
|
+
* If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
* @example
|
|
20
|
+
* ```html
|
|
21
|
+
* <arcgis-sql-expression-editor hideSideBar></arcgis-sql-expression-editor>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
accessor hideSideBar: boolean;
|
|
25
|
+
/** @internal */
|
|
26
|
+
protected messages: Partial<{
|
|
27
|
+
fields: string;
|
|
28
|
+
functions: string;
|
|
29
|
+
}> & T9nMeta<{
|
|
30
|
+
fields: string;
|
|
31
|
+
functions: string;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* The profile to use for the editor. The profile defines the variables and functions that are available to the editor.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```jsx
|
|
38
|
+
* <arcgis-sql-expression-editor profile={id: "field-calculation", definitions: { $layer: layer }}></arcgis-sql-expression-editor>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
accessor profile: IPredefinedProfile | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The sql expression script. Use this property to define or update the script.
|
|
44
|
+
*
|
|
45
|
+
* @default ""
|
|
46
|
+
* @example
|
|
47
|
+
* ```html
|
|
48
|
+
* <arcgis-sql-expression-editor script="CAST(2.45 AS INTEGER)"></arcgis-sql-expression-editor>
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
accessor script: string;
|
|
52
|
+
/** Set the focus on the element. */
|
|
53
|
+
setFocus(): Promise<void>;
|
|
54
|
+
/** Emitted when the diagnostics collection has changed. */
|
|
55
|
+
readonly arcgisDiagnosticsChange: import("@arcgis/lumina").TargetedEvent<this, editor.IMarkerData[]>;
|
|
56
|
+
/** Emitted when the script string has changed. */
|
|
57
|
+
readonly arcgisScriptChange: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
58
|
+
readonly "@eventTypes": {
|
|
59
|
+
arcgisDiagnosticsChange: ArcgisSqlExpressionEditor["arcgisDiagnosticsChange"]["detail"];
|
|
60
|
+
arcgisScriptChange: ArcgisSqlExpressionEditor["arcgisScriptChange"]["detail"];
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -9,7 +9,7 @@ import { getSqlExprDiagnosticService as _ } from "../../chunks/sql-expr-mode.js"
|
|
|
9
9
|
import { rethrowError as a } from "@arcgis/toolkit/log";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
12
|
+
v5.0.0-next.137 */
|
|
13
13
|
const f = n`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}`;
|
|
14
14
|
class u extends d {
|
|
15
15
|
constructor() {
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import "../arcgis-code-editor-shell/index.js";
|
|
2
|
-
import "../arcgis-code-editor/index.js";
|
|
3
|
-
import "../arcgis-editor-variables/index.js";
|
|
4
|
-
import "../arcgis-language-api-panel/index.js";
|
|
5
|
-
import "@esri/calcite-components/components/calcite-action-bar";
|
|
6
|
-
import "@esri/calcite-components/components/calcite-action";
|
|
7
|
-
import "@esri/calcite-components/components/calcite-tooltip";
|
|
8
1
|
export * from "./customElement.js";
|
|
@@ -6,7 +6,7 @@ import { a as m } from "../../chunks/sql-expr-defaults.js";
|
|
|
6
6
|
import { u as d } from "../../chunks/useT9n.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
9
|
+
v5.0.0-next.137 */
|
|
10
10
|
const h = r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
11
11
|
class g extends n {
|
|
12
12
|
constructor() {
|