@arcgis/coding-components 5.0.0-next.136 → 5.0.0-next.138
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/{UCG4NPRP.js → 2263YYN4.js} +2 -2
- package/dist/cdn/{FV6JUYSW.js → 2BB3QRVG.js} +2 -2
- package/dist/cdn/{Q4UHUY3T.js → 2E4AQ7LP.js} +2 -2
- package/dist/cdn/{EZGAUSIF.js → 46IOYPYQ.js} +2 -2
- package/dist/cdn/{DSHANUYF.js → 4FUSZCAD.js} +2 -2
- package/dist/cdn/{22DCBJ5F.js → 7EGGU2CS.js} +2 -2
- package/dist/cdn/{J2DLUEJO.js → 7F5ICS2R.js} +2 -2
- package/dist/cdn/{UI5EVXFU.js → 7YIS622N.js} +2 -2
- package/dist/cdn/{36Y75YKB.js → AU6VAVFX.js} +2 -2
- package/dist/cdn/{TZYBHRPS.js → B6MSWJY2.js} +2 -2
- package/dist/cdn/{U77BQSD4.js → BMKVGGGT.js} +2 -2
- package/dist/cdn/{MEXDPC7D.js → BTLRRKDQ.js} +1 -1
- package/dist/cdn/{HSBLYEZV.js → CP4WW3L6.js} +2 -2
- package/dist/cdn/{RIEACZTY.js → DQ2MOHDK.js} +2 -2
- package/dist/cdn/{UMHPBSPW.js → EFNX7T2R.js} +1 -1
- package/dist/cdn/{TV544T2R.js → EQV3M2CA.js} +2 -2
- package/dist/cdn/{PP7BAX5L.js → EZ5XJTDZ.js} +2 -2
- package/dist/cdn/{TGBYUAUR.js → GAJRGYGF.js} +2 -2
- package/dist/cdn/{XLQLW2QL.js → HHKNAKMH.js} +2 -2
- package/dist/cdn/{H3N4UPAY.js → IAOEXBRW.js} +3 -3
- package/dist/cdn/{UZMYMIUN.js → ICT2QXVB.js} +2 -2
- package/dist/cdn/{PWTWO4LQ.js → IL3ODH4Q.js} +2 -2
- package/dist/cdn/{RFPCEKOB.js → J5BB2DTX.js} +2 -2
- package/dist/cdn/{ZWJAHBIF.js → JGRG3RTL.js} +2 -2
- package/dist/cdn/{YTFTM7FZ.js → KCG4J2TQ.js} +1 -1
- package/dist/cdn/{5N7BLQUC.js → KY2A6GJX.js} +1 -1
- package/dist/cdn/{CUWBQ6DE.js → LZEK7RTW.js} +2 -2
- package/dist/cdn/M2XE3C7T.js +6 -0
- package/dist/cdn/{VDMEGRHB.js → MBTVAM7I.js} +2 -2
- package/dist/cdn/N3P4PLZT.js +4 -0
- package/dist/cdn/{JYHLAFWX.js → NB4EJVRJ.js} +2 -2
- package/dist/cdn/{ZBKMCGR7.js → NGXPOKHF.js} +2 -2
- package/dist/cdn/{PR666JT5.js → NM7YCIBL.js} +2 -2
- package/dist/cdn/{A7BGWNLB.js → OAY75OXY.js} +2 -2
- package/dist/cdn/{MMSAWKPK.js → OHULNXEE.js} +2 -2
- package/dist/cdn/{OZZYHIPM.js → QN4HJ3GS.js} +1 -1
- package/dist/cdn/{ZB3AQDM2.js → RVGC5EOD.js} +2 -2
- package/dist/cdn/{Q6ERATMA.js → TBZNDJPR.js} +2 -2
- package/dist/cdn/{OCXFKC66.js → TFP62745.js} +1 -1
- package/dist/cdn/{ZLUCSP73.js → TXSPPN6R.js} +2 -2
- package/dist/cdn/{4RJPAWSA.js → UV5OY4GJ.js} +2 -2
- package/dist/cdn/W5PHIIDU.js +4 -0
- package/dist/cdn/{Q54H2UGW.js → X6STFO7U.js} +2 -2
- package/dist/cdn/{MGX5UEEJ.js → Y3CNVWXF.js} +3 -3
- package/dist/cdn/{HEOVDTIB.js → YOZZJZW5.js} +2 -2
- package/dist/cdn/{OAJKP3TF.js → Z2EROYP7.js} +1 -1
- package/dist/cdn/{224QUA5Z.js → Z45QIMDD.js} +2 -2
- package/dist/cdn/{OCZIBXWV.js → ZEXTPWCM.js} +1 -1
- 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,21 +1,15 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { ICustomPanel } from '../../utils/custom-panel';
|
|
13
|
-
import { ArcadeAssistantConfig, ArcadeAssistantRemoteState } from '../../utils/arcade-assistant/types';
|
|
2
|
+
import type { editor as Editor } from "monaco-editor";
|
|
3
|
+
import type { Diagnostic } from "@arcgis/arcade-languageservice";
|
|
4
|
+
import type { ApiSnippet } from "@arcgis/languages-api-utils";
|
|
5
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
|
|
6
|
+
import type { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../utils/editor-suggestions.js";
|
|
7
|
+
import type { IEditorProfileDefinition, IPredefinedProfile } from "../../utils/profile/types.js";
|
|
8
|
+
import type { ArcadeResult, IEditorTestContext } from "../../utils/arcade-executor.js";
|
|
9
|
+
import type { ICustomPanel } from "../../utils/custom-panel.js";
|
|
10
|
+
import type { ArcadeAssistantConfig } from "../../utils/arcade-assistant/types.js";
|
|
11
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
14
12
|
|
|
15
|
-
type SidePanelName = "api" | "none" | "suggestions" | "variables";
|
|
16
|
-
type WithCustomPanels = {
|
|
17
|
-
customPanels?: ICustomPanel[];
|
|
18
|
-
};
|
|
19
13
|
/**
|
|
20
14
|
* [**Arcade**](https://developers.arcgis.com/arcade/) is a portable, and lightweight expression language used to create custom content throughout the [ArcGIS system](https://www.esri.com/en-us/arcgis/products/index).
|
|
21
15
|
* Like other expression languages, it can perform mathematical calculations, format text, and evaluate logical statements.
|
|
@@ -35,101 +29,118 @@ type WithCustomPanels = {
|
|
|
35
29
|
* - Built-in [keyboard shortcuts](https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/discover-the-arcade-editors-powerful-new-features/#keyboard-shortcuts)
|
|
36
30
|
* - In-editor help for finding information about profile variables relevant to your profile, documentation for constants and functions, a link to the official Arcade documentation, and, in some case, suggestions.
|
|
37
31
|
* - Support for many [languages and directionality](https://developers.arcgis.com/javascript/latest/localization/)
|
|
38
|
-
*
|
|
39
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-arcade-editor/)
|
|
40
32
|
*/
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
33
|
+
export abstract class ArcgisArcadeEditor<T extends WithCustomPanels = object> extends LitElement {
|
|
34
|
+
/** enables and configures the arcade assistant \@internal */
|
|
35
|
+
accessor arcadeAssistant: ArcadeAssistantConfig | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Custom panels to be displayed in the side panel.
|
|
38
|
+
* Will be placed below the default panels but above the help panel.
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
accessor customPanels: ICustomPanel[] | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Options to update on the editor.
|
|
45
|
+
* For example:
|
|
46
|
+
* ```json
|
|
47
|
+
* {
|
|
48
|
+
* "fontSize": 18
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* To get the full list of available options, see the Monaco Editor options [documentation](https://microsoft.github.io/monaco-editor/typedoc/variables/editor.EditorOptions.html) for more details.
|
|
53
|
+
*/
|
|
54
|
+
accessor editorOptions: Editor.IEditorOptions & Editor.IGlobalEditorOptions | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* If true, it will hide the documentation action in the side panel
|
|
57
|
+
*
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
accessor hideDocumentationActions: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
|
|
63
|
+
*
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
accessor hideSideBar: boolean;
|
|
67
|
+
/** @internal */
|
|
68
|
+
protected messages: Partial<{
|
|
69
|
+
help: string;
|
|
70
|
+
profilevariables: string;
|
|
71
|
+
constantsandfunctions: string;
|
|
72
|
+
suggestions: string;
|
|
73
|
+
run: string;
|
|
74
|
+
lastresults: string;
|
|
75
|
+
arcadeassistant: string;
|
|
76
|
+
}> & T9nMeta<{
|
|
77
|
+
help: string;
|
|
78
|
+
profilevariables: string;
|
|
79
|
+
constantsandfunctions: string;
|
|
80
|
+
suggestions: string;
|
|
81
|
+
run: string;
|
|
82
|
+
lastresults: string;
|
|
83
|
+
arcadeassistant: string;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* The name of the opened side panel. 'none' means 'no panel opened'.
|
|
87
|
+
*
|
|
88
|
+
* @default "none"
|
|
89
|
+
*/
|
|
90
|
+
accessor openedSidePanel: T extends Required<WithCustomPanels> ? SidePanelName : string;
|
|
91
|
+
/**
|
|
92
|
+
* The profile contains metadata used by the editor for editing context and help.
|
|
93
|
+
* Example:
|
|
94
|
+
* ```
|
|
95
|
+
* {
|
|
96
|
+
* bundles: ["core", "dataAccess", "geometry", "portal-access"],
|
|
97
|
+
* variables: [
|
|
98
|
+
* {
|
|
99
|
+
* name: "$feature",
|
|
100
|
+
* description: "The feature passed to the script during execution.",
|
|
101
|
+
* definition: aFeatureLayerInstance
|
|
102
|
+
* }
|
|
103
|
+
* ]
|
|
104
|
+
* }
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
accessor profile: IEditorProfileDefinition | IPredefinedProfile | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* The arcade script. Use this property to define or update the script.
|
|
110
|
+
*
|
|
111
|
+
* @default ""
|
|
112
|
+
*/
|
|
113
|
+
accessor script: string;
|
|
114
|
+
/**
|
|
115
|
+
* If true, the side action bar will be expanded
|
|
116
|
+
*
|
|
117
|
+
* @default false
|
|
118
|
+
*/
|
|
119
|
+
accessor sideActionBarExpanded: boolean;
|
|
120
|
+
/** Collection of snippets */
|
|
121
|
+
accessor snippets: ApiSnippet[] | undefined;
|
|
122
|
+
/** Collection of suggestions */
|
|
123
|
+
accessor suggestions: IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[] | undefined;
|
|
124
|
+
/** Test data used to execute the script in the editor. If undefined the execute script UX will be hidden. */
|
|
125
|
+
accessor testData: IEditorTestContext | undefined;
|
|
126
|
+
/** @deprecated **Deprecated** since 4.30. Use `script` property instead. */
|
|
127
|
+
getScript(): Promise<string | undefined>;
|
|
128
|
+
/** Returns the Arcade result for the script for the provided test data. */
|
|
129
|
+
getTestResult(): Promise<ArcadeResult>;
|
|
130
|
+
/** Set the focus on the element. */
|
|
131
|
+
setFocus(): Promise<void>;
|
|
132
|
+
/** Emitted when the diagnostics collection has changed. */
|
|
133
|
+
readonly arcgisDiagnosticsChange: import("@arcgis/lumina").TargetedEvent<this, Diagnostic[]>;
|
|
134
|
+
/** Emitted when the script string has changed. */
|
|
135
|
+
readonly arcgisScriptChange: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
136
|
+
readonly "@eventTypes": {
|
|
137
|
+
arcgisDiagnosticsChange: ArcgisArcadeEditor<T>["arcgisDiagnosticsChange"]["detail"];
|
|
138
|
+
arcgisScriptChange: ArcgisArcadeEditor<T>["arcgisScriptChange"]["detail"];
|
|
139
|
+
};
|
|
134
140
|
}
|
|
135
|
-
|
|
141
|
+
|
|
142
|
+
export type SidePanelName = "api" | "none" | "suggestions" | "variables";
|
|
143
|
+
|
|
144
|
+
export type WithCustomPanels = {
|
|
145
|
+
customPanels?: ICustomPanel[];
|
|
146
|
+
};
|
|
@@ -20,7 +20,7 @@ import N from "@arcgis/core/identity/IdentityManager.js";
|
|
|
20
20
|
import { log as O, rethrowError as o } from "@arcgis/toolkit/log";
|
|
21
21
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
22
22
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
23
|
-
v5.0.0-next.
|
|
23
|
+
v5.0.0-next.138 */
|
|
24
24
|
const j = y`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}.main-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}`, z = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (s, e) => O(s, "Arcade Assistant", e), H = (s) => {
|
|
25
25
|
const { aiAssistantsEnabled: e } = s;
|
|
26
26
|
return e === void 0 ? (a("warn", "`areAiAssistantsEnabled` is not defined in the organizations settings."), !1) : e;
|
|
@@ -63,7 +63,7 @@ class q extends C {
|
|
|
63
63
|
}, this._consoleLogs = [], this._executingScript = !1, this._preparingArcade = !1, this._resultPanel = "output", this._showExecutionPanel = !1, this._arcadeAssistantRemoteState = { shouldRender: !1 }, this.hideDocumentationActions = !1, this.hideSideBar = !1, this.openedSidePanel = "none", this.script = "", this.sideActionBarExpanded = !1, this.arcgisDiagnosticsChange = P({ bubbles: !1 }), this.arcgisScriptChange = P({ bubbles: !1 });
|
|
64
64
|
}
|
|
65
65
|
static {
|
|
66
|
-
this.properties = { _apiLibrary: 16, _consoleLogs: 16, _editorProfile: 16, _executingScript: 16, _executionResult: 16, _preparingArcade: 16, _resultPanel: 16, _showExecutionPanel: 16, _arcadeAssistantRemoteState: 16, editorInstance: 32, editorOptions: 0, hideDocumentationActions: 5, hideSideBar: 5, openedSidePanel:
|
|
66
|
+
this.properties = { _apiLibrary: 16, _consoleLogs: 16, _editorProfile: 16, _executingScript: 16, _executionResult: 16, _preparingArcade: 16, _resultPanel: 16, _showExecutionPanel: 16, _arcadeAssistantRemoteState: 16, editorInstance: 32, editorOptions: 0, hideDocumentationActions: 5, hideSideBar: 5, openedSidePanel: 3, profile: 0, script: 1, sideActionBarExpanded: 7, snippets: 0, suggestions: 0, testData: 0, customPanels: 0, arcadeAssistant: 0 };
|
|
67
67
|
}
|
|
68
68
|
static {
|
|
69
69
|
this.styles = [j];
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
import "@esri/calcite-components/components/calcite-action-bar";
|
|
2
|
-
import "@esri/calcite-components/components/calcite-action-group";
|
|
3
|
-
import "@esri/calcite-components/components/calcite-action";
|
|
4
|
-
import "../arcgis-code-editor/index.js";
|
|
5
|
-
import "@esri/calcite-components/components/calcite-tooltip";
|
|
6
|
-
import "../arcgis-language-api-panel/index.js";
|
|
7
|
-
import "../arcgis-editor-variables/index.js";
|
|
8
|
-
import "../arcgis-arcade-suggestions/index.js";
|
|
9
|
-
import "../arcgis-arcade-coding-assistant/index.js";
|
|
10
|
-
import "@esri/calcite-components/components/calcite-flow";
|
|
11
|
-
import "@esri/calcite-components/components/calcite-flow-item";
|
|
12
|
-
import "../arcgis-arcade-results/index.js";
|
|
13
|
-
import "../arcgis-code-editor-shell/index.js";
|
|
14
1
|
export * from "./customElement.js";
|
|
@@ -6,12 +6,12 @@ import { B as x, v as b, M as m, f as F, a as L, b as I } from "../../chunks/arc
|
|
|
6
6
|
import { u as _ } from "../../chunks/useT9n.js";
|
|
7
7
|
import { s as j } from "../../chunks/fields.js";
|
|
8
8
|
import "@arcgis/toolkit/function";
|
|
9
|
-
import { createRef as g, ref as
|
|
9
|
+
import { createRef as g, ref as f } from "lit/directives/ref.js";
|
|
10
10
|
import { t as k } from "../../chunks/monaco-theme.js";
|
|
11
11
|
import { observeAncestorsMutation as z, unsafeGetCalciteModeName as N } from "@arcgis/toolkit/dom";
|
|
12
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
14
|
-
v5.0.0-next.
|
|
14
|
+
v5.0.0-next.138 */
|
|
15
15
|
const E = w`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, l = {
|
|
16
16
|
lines: !0,
|
|
17
17
|
selectionMode: "none",
|
|
@@ -51,14 +51,14 @@ const E = w`:host{display:flex;flex-direction:column;width:100%;background-color
|
|
|
51
51
|
const i = e.geometry?.();
|
|
52
52
|
return t`<calcite-tree slot=${"children"} .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}>${e.keys().map((c) => {
|
|
53
53
|
const n = b(e.field(c));
|
|
54
|
-
return e.arcadeDeclaredClass === "esri.arcade.Feature" && n.type === "geometry" ? null :
|
|
55
|
-
})}${i ?
|
|
54
|
+
return e.arcadeDeclaredClass === "esri.arcade.Feature" && n.type === "geometry" ? null : $({ arcadeResult: n, name: c, t9nStrings: s });
|
|
55
|
+
})}${i ? $({ arcadeResult: { type: "geometry", value: i }, name: "geometry", t9nStrings: s }) : null}</calcite-tree>`;
|
|
56
56
|
}, V = ({ arcadeResult: e, t9nStrings: a }) => t`<div class="value-type"><span>${e.type}:</span>${e.features.length >= x ? t`<span> ${o(a.showingfirstitemsformat, {
|
|
57
57
|
count: x.toString()
|
|
58
58
|
})}</span>` : null}</div>`, M = ({ items: e, subtree: a, t9nStrings: s }) => t`<calcite-tree slot=${"children"} .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}>${e.map((i, c) => {
|
|
59
59
|
const n = b(i);
|
|
60
|
-
return
|
|
61
|
-
})}</calcite-tree>`,
|
|
60
|
+
return $({ arcadeResult: n, name: c, expanded: !a, t9nStrings: s });
|
|
61
|
+
})}</calcite-tree>`, $ = ({ arcadeResult: e, name: a, expanded: s, t9nStrings: i }) => {
|
|
62
62
|
switch (e.type) {
|
|
63
63
|
case "null":
|
|
64
64
|
case "unknown":
|
|
@@ -221,7 +221,7 @@ class B extends A {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
render() {
|
|
224
|
-
return t`<header class="flex-row"><calcite-action-bar class="flex-adjustable" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .active=${this.openedResultPanel === "output"} .text=${this.messages.output ?? ""} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=output ${
|
|
224
|
+
return t`<header class="flex-row"><calcite-action-bar class="flex-adjustable" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .active=${this.openedResultPanel === "output"} .text=${this.messages.output ?? ""} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=output ${f(this.outputRef)}></calcite-action><calcite-action .active=${this.openedResultPanel === "console"} .text=${this.messages.console ?? ""} text-enabled scale=s icon=console icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=console ${f(this.consoleRef)}></calcite-action><calcite-action .active=${this.openedResultPanel === "log"} .text=${this.messages.log ?? ""} text-enabled scale=s icon=list icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=log ${f(this.logRef)}></calcite-action></calcite-action-group></calcite-action-bar><calcite-action scale=s icon=x .text=${this.messages.close ?? ""} @click=${this._emitClose}></calcite-action></header><article class="flex-adjustable">${this.loading ? t`<calcite-loader scale=s type=indeterminate label></calcite-loader>` : t`<div class="flex-column y-scrollable-container">${this.renderOutputPanel()}${this.renderConsolePanel()}${this.renderLogPanel()}</div>`}</article>`;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
D("arcgis-arcade-results", B);
|
|
@@ -9,7 +9,7 @@ import { c as b } from "../../chunks/markdown.js";
|
|
|
9
9
|
import { u as _ } 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.138 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -1,83 +1,76 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import { Selection, editor as Editor } from
|
|
3
|
-
import {
|
|
4
|
-
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
2
|
+
import type { Selection, editor as Editor } from "monaco-editor";
|
|
3
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
|
|
5
4
|
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
readonly arcgisValueChange: TargetedEvent<this, string>;
|
|
79
|
-
"@eventTypes": {
|
|
80
|
-
"arcgisSelectionChange": ArcgisCodeEditor["arcgisSelectionChange"]["detail"];
|
|
81
|
-
"arcgisValueChange": ArcgisCodeEditor["arcgisValueChange"]["detail"];
|
|
82
|
-
};
|
|
83
|
-
}
|
|
5
|
+
/** @internal */
|
|
6
|
+
export abstract class ArcgisCodeEditor extends LitElement {
|
|
7
|
+
/**
|
|
8
|
+
* The instance of the Monaco Editor after the component has been rendered.
|
|
9
|
+
* To determine when a component is rendered, you can use componentOnReady() method.
|
|
10
|
+
* The method returns a Promise that resolves after the component rendered for the first time.
|
|
11
|
+
*/
|
|
12
|
+
get editorInstance(): Editor.IStandaloneCodeEditor | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Options to update on the editor.
|
|
15
|
+
* For example:
|
|
16
|
+
* ```json
|
|
17
|
+
* {
|
|
18
|
+
* "fontSize": 18
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* To get the full list of options set on the editor, use the editorInstance property and see Monaco Editor options documentation for more details.
|
|
23
|
+
*/
|
|
24
|
+
accessor editorOptions: Editor.IEditorOptions & Editor.IGlobalEditorOptions | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The language for the editor.
|
|
27
|
+
* Currently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.
|
|
28
|
+
*/
|
|
29
|
+
accessor language: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* A unique identifier for the model.
|
|
32
|
+
* The unique identifier is sometimes used by language defaults to store model metadata.
|
|
33
|
+
* For example, with arcade, the model id is used to store the arcade profile and other metadata.
|
|
34
|
+
* The unique identifier is especially useful when there are multiple editors on the same page.
|
|
35
|
+
*/
|
|
36
|
+
accessor modelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
37
|
+
/**
|
|
38
|
+
* The initial value for the editor.
|
|
39
|
+
* The value is the script, code, css, json, etc.
|
|
40
|
+
*
|
|
41
|
+
* @default ""
|
|
42
|
+
*/
|
|
43
|
+
accessor value: string;
|
|
44
|
+
/** @deprecated **Deprecated** since 4.30. Use `value` property instead. */
|
|
45
|
+
getValue(): Promise<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Inserts a snippet at the current position in the editor.
|
|
48
|
+
*
|
|
49
|
+
* @param text - The string snippet to insert
|
|
50
|
+
*/
|
|
51
|
+
insertSnippet(text: string | null | undefined): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Inserts a text at the current position in the editor.
|
|
54
|
+
*
|
|
55
|
+
* @param text - The string to insert
|
|
56
|
+
*/
|
|
57
|
+
insertText(text: string | null | undefined): Promise<void>;
|
|
58
|
+
/** Sets the focus on the editor. */
|
|
59
|
+
setFocus(): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated **Deprecated** since 4.30. Use `value` property instead.
|
|
62
|
+
* @param text
|
|
63
|
+
*/
|
|
64
|
+
setValue(text: string | null | undefined): Promise<void>;
|
|
65
|
+
/** Emitted when the selection has changed. */
|
|
66
|
+
readonly arcgisSelectionChange: import("@arcgis/lumina").TargetedEvent<this, {
|
|
67
|
+
selection: Selection;
|
|
68
|
+
model: Editor.ITextModel | null | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
/** Emitted when the value has changed (script, code, css, json, etc.) */
|
|
71
|
+
readonly arcgisValueChange: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
72
|
+
readonly "@eventTypes": {
|
|
73
|
+
arcgisSelectionChange: ArcgisCodeEditor["arcgisSelectionChange"]["detail"];
|
|
74
|
+
arcgisValueChange: ArcgisCodeEditor["arcgisValueChange"]["detail"];
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -5,7 +5,7 @@ import { observeAncestorsMutation as y, unsafeGetCalciteModeName as Y } from "@a
|
|
|
5
5
|
import { generateGuid as f } from "@arcgis/toolkit/string";
|
|
6
6
|
import { LitElement as N, createEvent as Q } from "@arcgis/lumina";
|
|
7
7
|
import { s as J } from "../../chunks/arcade-service-accessors.js";
|
|
8
|
-
import "../../chunks/
|
|
8
|
+
import "../../chunks/setup-monaco-theme.js";
|
|
9
9
|
import { load as H } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { log as r } from "@arcgis/toolkit/log";
|
|
11
11
|
import { createRef as S, ref as R } from "lit/directives/ref.js";
|
|
@@ -19,7 +19,7 @@ import { EditorMouseEventFactory as x, EditorMouseEvent as I } from "monaco-edit
|
|
|
19
19
|
import { MouseTargetFactory as T } from "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
|
|
20
20
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
21
21
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
22
|
-
v5.0.0-next.
|
|
22
|
+
v5.0.0-next.138 */
|
|
23
23
|
const L = v`/*!-----------------------------------------------------------
|
|
24
24
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
25
25
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -234,7 +234,7 @@ class tA extends N {
|
|
|
234
234
|
super(...arguments), this._componentReadyDefer = Promise.withResolvers(), this._disposables = [], this._monacoEditor = H(k), this._editorContainer = S(), this.modelId = f(), this.value = "", this.arcgisSelectionChange = Q({ bubbles: !1 }), this.arcgisValueChange = Q({ bubbles: !1 });
|
|
235
235
|
}
|
|
236
236
|
static {
|
|
237
|
-
this.properties = { editorInstance: 32, editorOptions: 0, language: 1, modelId:
|
|
237
|
+
this.properties = { editorInstance: 32, editorOptions: 0, language: 1, modelId: 1, value: 1 };
|
|
238
238
|
}
|
|
239
239
|
static {
|
|
240
240
|
this.styles = [L];
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import { PublicLitElement as LitElement
|
|
2
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A layout component for code editors that provides slots for an editor, results panel, side panel, and action bars.
|
|
6
6
|
*
|
|
7
|
-
* [
|
|
8
|
-
*
|
|
7
|
+
* @cssproperty [--arcgis-coding-components-border] - The border style for the editor shell *
|
|
8
|
+
* @cssproperty [--arcgis-coding-components-background-color] - The background color for the editor shell *
|
|
9
|
+
* @cssproperty [--arcgis-coding-components-side-action-bar-max-w] - The max width for the side action bar *
|
|
10
|
+
* @cssproperty [--arcgis-coding-components-code-editor-side-panel-w] - The width for the code editor side panel *
|
|
11
|
+
* @cssproperty [--arcgis-coding-components-code-editor-side-panel-max-w] - The max width for the code editor side panel *
|
|
12
|
+
* @cssproperty [--arcgis-coding-components-code-editor-results-panel-max-h] - The max height for the code editor results panel *
|
|
13
|
+
* @cssproperty [--arcgis-coding-components-code-editor-results-panel-h] - The default height for the code editor results panel (preferred over min-h). *
|
|
9
14
|
* @slot [top-action-bar] - A slot for placing a top action bar above the editor area.
|
|
10
15
|
* @slot [editor] - A slot for placing the main code editor component.
|
|
11
16
|
* @slot [results-panel] - A slot for placing a results panel below the code editor.
|
|
@@ -13,5 +18,4 @@ import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/
|
|
|
13
18
|
* @slot [side-action-bar] - A slot for placing a side action bar next to the side panel.
|
|
14
19
|
* @internal
|
|
15
20
|
*/
|
|
16
|
-
export
|
|
17
|
-
}
|
|
21
|
+
export abstract class CodeEditorShell extends LitElement {}
|
|
@@ -3,7 +3,7 @@ import { css as e, html as n } from "lit";
|
|
|
3
3
|
import { LitElement as r } from "@arcgis/lumina";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
-
v5.0.0-next.
|
|
6
|
+
v5.0.0-next.138 */
|
|
7
7
|
const i = e`:host{--arcgis-coding-components-internal-border: var( --arcgis-coding-components-border, 1px solid var(--calcite-color-border-3) );--arcgis-coding-components-internal-background-color: var( --arcgis-coding-components-background-color, var(--calcite-color-foreground-1) );--arcgis-coding-components-internal-side-action-bar-max-w: var(--arcgis-coding-components-side-action-bar-max-w, 25%);--arcgis-coding-components-internal-code-editor-side-panel-w: var( --arcgis-coding-components-code-editor-side-panel-w, 600px );--arcgis-coding-components-internal-code-editor-side-panel-max-w: var( --arcgis-coding-components-code-editor-side-panel-max-w, 45% );--arcgis-coding-components-internal-code-editor-results-panel-max-h: var( --arcgis-coding-components-code-editor-results-panel-max-h, 50% );--arcgis-coding-components-internal-code-editor-results-panel-h: var( --arcgis-coding-components-code-editor-results-panel-h, 50% );display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-internal-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-internal-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}}slot[name=top-action-bar]::slotted(*){border-bottom:var(--arcgis-coding-components-internal-border);flex:0 0 auto}slot[name=side-panel]::slotted(*){max-width:var(--arcgis-coding-components-internal-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-internal-code-editor-side-panel-w);border-inline-start:var(--arcgis-coding-components-internal-border);box-sizing:border-box;flex:1 0 auto}slot[name=side-panel]::slotted(.hidden){display:none}slot[name=editor]::slotted(*){flex:1 1 auto;overflow:hidden}slot[name=results-panel]::slotted(*){flex:0 0 var(--arcgis-coding-components-internal-code-editor-results-panel-h);overflow:hidden;border-top:var(--arcgis-coding-components-internal-border);box-sizing:border-box;max-height:var(--arcgis-coding-components-internal-code-editor-results-panel-max-h);margin-bottom:-1px}slot[name=side-action-bar]::slotted(*){max-width:var(--arcgis-coding-components-internal-side-action-bar-max-w);border-inline-start:var(--arcgis-coding-components-internal-border)}`;
|
|
8
8
|
class t extends r {
|
|
9
9
|
static {
|