@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.
Files changed (176) hide show
  1. package/dist/addons/arcade-coding-assistant/useArcadeAssistant.d.ts +7 -17
  2. package/dist/addons/index.d.ts +2 -2
  3. package/dist/addons.js +1 -1
  4. package/dist/cdn/{OZZYHIPM.js → 22N5QBRQ.js} +1 -1
  5. package/dist/cdn/{ZBKMCGR7.js → 2EKDNAHO.js} +2 -2
  6. package/dist/cdn/{A7BGWNLB.js → 2NXZWMO2.js} +2 -2
  7. package/dist/cdn/{RFPCEKOB.js → 2UFRNIIX.js} +2 -2
  8. package/dist/cdn/{H3N4UPAY.js → 2ZQEKE2N.js} +3 -3
  9. package/dist/cdn/{OAJKP3TF.js → 3P2KVVSN.js} +1 -1
  10. package/dist/cdn/{EZGAUSIF.js → 3T5KGXQ7.js} +2 -2
  11. package/dist/cdn/{224QUA5Z.js → 5MGUXXER.js} +2 -2
  12. package/dist/cdn/{MMSAWKPK.js → 5N2Q2P7U.js} +2 -2
  13. package/dist/cdn/{UCG4NPRP.js → 652ZSIU3.js} +2 -2
  14. package/dist/cdn/{YTFTM7FZ.js → 6DBUX6JF.js} +1 -1
  15. package/dist/cdn/{22DCBJ5F.js → APQA7KWN.js} +2 -2
  16. package/dist/cdn/{OCZIBXWV.js → ATM4NOGS.js} +1 -1
  17. package/dist/cdn/{5N7BLQUC.js → B5CXJQR6.js} +1 -1
  18. package/dist/cdn/{MGX5UEEJ.js → BUACEA3I.js} +3 -3
  19. package/dist/cdn/{Q54H2UGW.js → CPWFDMAZ.js} +2 -2
  20. package/dist/cdn/{XLQLW2QL.js → D3RYGBRI.js} +2 -2
  21. package/dist/cdn/{PR666JT5.js → D6TFIJTU.js} +2 -2
  22. package/dist/cdn/{Q6ERATMA.js → FFISKNTL.js} +2 -2
  23. package/dist/cdn/{JYHLAFWX.js → FZU6DHUW.js} +2 -2
  24. package/dist/cdn/{U77BQSD4.js → G6GHNSL7.js} +2 -2
  25. package/dist/cdn/KGEHLX5T.js +4 -0
  26. package/dist/cdn/{ZWJAHBIF.js → KNPWBL2I.js} +2 -2
  27. package/dist/cdn/{FV6JUYSW.js → LKTNXGNX.js} +2 -2
  28. package/dist/cdn/{PP7BAX5L.js → LXFKAS3V.js} +2 -2
  29. package/dist/cdn/{UMHPBSPW.js → LXPYFEGT.js} +1 -1
  30. package/dist/cdn/{DSHANUYF.js → OB5OMUWO.js} +2 -2
  31. package/dist/cdn/{OCXFKC66.js → OPBG2VOB.js} +1 -1
  32. package/dist/cdn/{PWTWO4LQ.js → OS4TOCCI.js} +2 -2
  33. package/dist/cdn/{J2DLUEJO.js → OWLGWZHC.js} +2 -2
  34. package/dist/cdn/{TV544T2R.js → QDQF6MJO.js} +2 -2
  35. package/dist/cdn/{Q4UHUY3T.js → QK2B5NW2.js} +2 -2
  36. package/dist/cdn/{ZB3AQDM2.js → QSPWHJZL.js} +2 -2
  37. package/dist/cdn/{HSBLYEZV.js → QWNYDDUJ.js} +2 -2
  38. package/dist/cdn/{VDMEGRHB.js → R2YG3J22.js} +2 -2
  39. package/dist/cdn/{MEXDPC7D.js → R5MLSRIF.js} +1 -1
  40. package/dist/cdn/{TZYBHRPS.js → RUH6XBH5.js} +2 -2
  41. package/dist/cdn/SA2I6VGH.js +6 -0
  42. package/dist/cdn/{4RJPAWSA.js → TAAR5ZM6.js} +2 -2
  43. package/dist/cdn/TO7MSMOI.js +4 -0
  44. package/dist/cdn/{UI5EVXFU.js → TQNRSDFY.js} +2 -2
  45. package/dist/cdn/{UZMYMIUN.js → U4XM5Q3C.js} +2 -2
  46. package/dist/cdn/{CUWBQ6DE.js → UMCG5VR5.js} +2 -2
  47. package/dist/cdn/{HEOVDTIB.js → UXKT2D32.js} +2 -2
  48. package/dist/cdn/{36Y75YKB.js → VVGAJL4U.js} +2 -2
  49. package/dist/cdn/{RIEACZTY.js → WLIDKUHE.js} +2 -2
  50. package/dist/cdn/{TGBYUAUR.js → XB5O7QZI.js} +2 -2
  51. package/dist/cdn/{ZLUCSP73.js → ZMY3G2UA.js} +2 -2
  52. package/dist/cdn/index.js +2 -2
  53. package/dist/chunks/arcade-defaults.js +2 -2
  54. package/dist/chunks/arcade-executor.js +1 -1
  55. package/dist/chunks/arcade-mode.js +1 -1
  56. package/dist/chunks/arcade-service-accessors.js +1 -1
  57. package/dist/chunks/colorize.js +1 -1
  58. package/dist/chunks/fields.js +1 -1
  59. package/dist/chunks/language-defaults-base.js +3 -3
  60. package/dist/chunks/markdown.js +1 -1
  61. package/dist/chunks/monaco-importer.js +1 -1
  62. package/dist/chunks/monaco-theme.js +1 -1
  63. package/dist/chunks/runtime.js +1 -1
  64. package/dist/chunks/{arcade-contribution.js → setup-monaco-theme.js} +40 -40
  65. package/dist/chunks/sql-expr-defaults.js +2 -2
  66. package/dist/chunks/sql-expr-mode.js +1 -1
  67. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  68. package/dist/chunks/useT9n.js +1 -1
  69. package/dist/chunks/utilities.js +1 -1
  70. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  71. package/dist/components/arcgis-arcade-coding-assistant/types.d.ts +3 -48
  72. package/dist/components/arcgis-arcade-editor/customElement.d.ts +123 -112
  73. package/dist/components/arcgis-arcade-editor/customElement.js +2 -2
  74. package/dist/components/arcgis-arcade-editor/index.d.ts +0 -13
  75. package/dist/components/arcgis-arcade-results/customElement.js +7 -7
  76. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  77. package/dist/components/arcgis-code-editor/customElement.d.ts +74 -81
  78. package/dist/components/arcgis-code-editor/customElement.js +3 -3
  79. package/dist/components/arcgis-code-editor-shell/customElement.d.ts +9 -5
  80. package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
  81. package/dist/components/arcgis-code-viewer/customElement.d.ts +23 -37
  82. package/dist/components/arcgis-code-viewer/customElement.js +2 -2
  83. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  84. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  85. package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +53 -49
  86. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  87. package/dist/components/arcgis-sql-expression-editor/index.d.ts +0 -7
  88. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  89. package/dist/docs/api.json +1 -1470
  90. package/dist/docs/docs.json +1 -1381
  91. package/dist/docs/vscode.css-custom-data.json +1 -35
  92. package/dist/docs/vscode.html-custom-data.json +1 -119
  93. package/dist/docs/web-types.json +1 -385
  94. package/dist/index.d.ts +34 -21
  95. package/dist/index.js +1 -1
  96. package/dist/loader.js +7 -7
  97. package/dist/types/lumina.d.ts +11 -11
  98. package/dist/types/preact.d.ts +11 -11
  99. package/dist/types/react.d.ts +11 -11
  100. package/dist/types/stencil.d.ts +11 -11
  101. package/dist/utils/arcade-assistant/types.d.ts +8 -72
  102. package/dist/utils/arcade-executor.d.ts +158 -126
  103. package/dist/utils/arcade-monaco/arcade-defaults.d.ts +9 -49
  104. package/dist/utils/custom-panel.d.ts +35 -30
  105. package/dist/utils/editor-suggestions.d.ts +17 -28
  106. package/dist/utils/index.d.ts +4 -6
  107. package/dist/utils/profile/types.d.ts +273 -345
  108. package/dist/utils/sql-expr-monaco/sql-expr-defaults.d.ts +8 -22
  109. package/package.json +6 -6
  110. package/dist/addons/arcade-coding-assistant/chat-helper.d.ts +0 -78
  111. package/dist/addons/arcade-coding-assistant/index.d.ts +0 -2
  112. package/dist/addons/arcade-coding-assistant/temporary-strings.d.ts +0 -47
  113. package/dist/cdn/2WNWZ6AD.js +0 -4
  114. package/dist/cdn/EGURZWSY.js +0 -4
  115. package/dist/cdn/TIR4RXVC.js +0 -6
  116. package/dist/components/arcgis-arcade-coding-assistant/customElement.d.ts +0 -45
  117. package/dist/components/arcgis-arcade-coding-assistant/functional.d.ts +0 -235
  118. package/dist/components/arcgis-arcade-coding-assistant/index.d.ts +0 -27
  119. package/dist/components/arcgis-arcade-results/customElement.d.ts +0 -32
  120. package/dist/components/arcgis-arcade-results/functional.d.ts +0 -73
  121. package/dist/components/arcgis-arcade-results/index.d.ts +0 -10
  122. package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +0 -24
  123. package/dist/components/arcgis-arcade-suggestions/index.d.ts +0 -10
  124. package/dist/components/arcgis-editor-variables/customElement.d.ts +0 -40
  125. package/dist/components/arcgis-editor-variables/index.d.ts +0 -10
  126. package/dist/components/arcgis-language-api-panel/customElement.d.ts +0 -42
  127. package/dist/components/arcgis-language-api-panel/index.d.ts +0 -11
  128. package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +0 -23
  129. package/dist/components/arcgis-sql-expression-fields/index.d.ts +0 -7
  130. package/dist/controllers/useT9n.d.ts +0 -1
  131. package/dist/runtime.d.ts +0 -6
  132. package/dist/utils/arcade-assistant/aiContext.d.ts +0 -6
  133. package/dist/utils/arcade-assistant/constants.d.ts +0 -2
  134. package/dist/utils/arcade-assistant/utils.d.ts +0 -9
  135. package/dist/utils/arcade-monaco/arcade-contribution.d.ts +0 -1
  136. package/dist/utils/arcade-monaco/arcade-language-features.d.ts +0 -35
  137. package/dist/utils/arcade-monaco/arcade-language-syntax.d.ts +0 -3
  138. package/dist/utils/arcade-monaco/arcade-mode.d.ts +0 -29
  139. package/dist/utils/arcade-monaco/arcade-profile-strategy.d.ts +0 -12
  140. package/dist/utils/arcade-monaco/arcade-service-accessors.d.ts +0 -31
  141. package/dist/utils/arcade-monaco/arcade-worker-manager.d.ts +0 -22
  142. package/dist/utils/arcade-monaco/arcade.worker.d.ts +0 -23
  143. package/dist/utils/arcade-monaco/types.d.ts +0 -9
  144. package/dist/utils/colorize.d.ts +0 -5
  145. package/dist/utils/constants.d.ts +0 -3
  146. package/dist/utils/css-vars.d.ts +0 -7
  147. package/dist/utils/fields.d.ts +0 -20
  148. package/dist/utils/internal-monaco-apis.d.ts +0 -67
  149. package/dist/utils/language-defaults-base.d.ts +0 -76
  150. package/dist/utils/markdown.d.ts +0 -6
  151. package/dist/utils/monaco-importer.d.ts +0 -28
  152. package/dist/utils/monaco-languages.d.ts +0 -17
  153. package/dist/utils/monaco-theme.json.d.ts +0 -27
  154. package/dist/utils/monaco-typings.d.ts +0 -8
  155. package/dist/utils/patch-monaco.d.ts +0 -16
  156. package/dist/utils/profile/editor-profile.d.ts +0 -278
  157. package/dist/utils/profile/utils.d.ts +0 -49
  158. package/dist/utils/setup-monaco-theme.d.ts +0 -1
  159. package/dist/utils/setup-monaco.d.ts +0 -31
  160. package/dist/utils/sql-expr-monaco/sql-expr-completion.d.ts +0 -74
  161. package/dist/utils/sql-expr-monaco/sql-expr-constants.d.ts +0 -67
  162. package/dist/utils/sql-expr-monaco/sql-expr-contribution.d.ts +0 -1
  163. package/dist/utils/sql-expr-monaco/sql-expr-language-features.d.ts +0 -23
  164. package/dist/utils/sql-expr-monaco/sql-expr-language-syntax.d.ts +0 -3
  165. package/dist/utils/sql-expr-monaco/sql-expr-mode.d.ts +0 -43
  166. package/dist/utils/sql-expr-monaco/sql-expr-parser-utils.d.ts +0 -36
  167. package/dist/utils/sql-expr-monaco/sql-expr-profile-utils.d.ts +0 -5
  168. package/dist/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +0 -19
  169. package/dist/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -33
  170. package/dist/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +0 -82
  171. package/dist/utils/sql-expr-monaco/sql-expr-validation.d.ts +0 -41
  172. package/dist/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +0 -22
  173. package/dist/utils/sql-expr-monaco/sql-expr.worker.d.ts +0 -22
  174. package/dist/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +0 -13
  175. package/dist/utils/sql-expr-monaco/types.d.ts +0 -96
  176. package/dist/utils/utilities.d.ts +0 -16
@@ -1,21 +1,15 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { PropertyValues } from 'lit';
3
- import { editor as Editor } from 'monaco-editor';
4
- import { Diagnostic } from '@arcgis/arcade-languageservice';
5
- import { ApiCategory, ApiSnippet } from '@arcgis/languages-api-utils';
6
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
- import { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from '../../utils/editor-suggestions';
8
- import { IEditorProfileDefinition, IPredefinedProfile } from '../../utils/profile/types';
9
- import { EditorProfile } from '../../utils/profile/editor-profile';
10
- import { ArcadeResult, IEditorTestContext } from '../../utils/arcade-executor';
11
- import { ResultPanelName } from '../arcgis-arcade-results/customElement.js';
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 declare class ArcgisArcadeEditor<T extends WithCustomPanels = object> extends LitElement {
42
- /**
43
- * Options to update on the editor.
44
- * For example:
45
- * ```json
46
- * {
47
- * "fontSize": 18
48
- * }
49
- * ```
50
- *
51
- * 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.
52
- */
53
- editorOptions?: Editor.IEditorOptions & Editor.IGlobalEditorOptions;
54
- /**
55
- * If true, it will hide the documentation action in the side panel
56
- *
57
- * @default false
58
- */
59
- hideDocumentationActions: boolean;
60
- /**
61
- * If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
62
- *
63
- * @default false
64
- */
65
- hideSideBar: boolean;
66
- /**
67
- * The name of the opened side panel. 'none' means 'no panel opened'.
68
- *
69
- * @default "none"
70
- */
71
- openedSidePanel: T extends Required<WithCustomPanels> ? SidePanelName : string;
72
- /**
73
- * The profile contains metadata used by the editor for editing context and help.
74
- * Example:
75
- * ```
76
- * {
77
- * bundles: ["core", "dataAccess", "geometry", "portal-access"],
78
- * variables: [
79
- * {
80
- * name: "$feature",
81
- * description: "The feature passed to the script during execution.",
82
- * definition: aFeatureLayerInstance
83
- * }
84
- * ]
85
- * }
86
- * ```
87
- */
88
- profile?: IEditorProfileDefinition | IPredefinedProfile;
89
- /**
90
- * The arcade script. Use this property to define or update the script.
91
- *
92
- * @default ""
93
- */
94
- script: string;
95
- /**
96
- * If true, the side action bar will be expanded
97
- *
98
- * @default false
99
- */
100
- sideActionBarExpanded: boolean;
101
- /** Collection of snippets */
102
- snippets?: ApiSnippet[];
103
- /** Collection of suggestions */
104
- suggestions?: IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[];
105
- /** Test data used to execute the script in the editor. If undefined the execute script UX will be hidden. */
106
- testData?: IEditorTestContext;
107
- /**
108
- * Custom panels to be displayed in the side panel.
109
- * Will be placed below the default panels but above the help panel.
110
- *
111
- * @internal
112
- */
113
- customPanels?: ICustomPanel[];
114
- /**
115
- * enables and configures the arcade assistant
116
- *
117
- * @internal
118
- */
119
- arcadeAssistant?: ArcadeAssistantConfig;
120
- /** @deprecated **Deprecated** since 4.30. Use `script` property instead. */
121
- getScript(): Promise<string | undefined>;
122
- /** Returns the Arcade result for the script for the provided test data. */
123
- getTestResult(): Promise<ArcadeResult>;
124
- /** Set the focus on the element. */
125
- setFocus(): Promise<void>;
126
- /** Emitted when the diagnostics collection has changed. */
127
- readonly arcgisDiagnosticsChange: TargetedEvent<this, Diagnostic[]>;
128
- /** Emitted when the script string has changed. */
129
- readonly arcgisScriptChange: TargetedEvent<this, string>;
130
- "@eventTypes": {
131
- "arcgisDiagnosticsChange": ArcgisArcadeEditor["arcgisDiagnosticsChange"]["detail"];
132
- "arcgisScriptChange": ArcgisArcadeEditor["arcgisScriptChange"]["detail"];
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
- export {};
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.136 */
23
+ v5.0.0-next.137 */
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: 2, profile: 0, script: 1, sideActionBarExpanded: 7, snippets: 0, suggestions: 0, testData: 0, customPanels: 0, arcadeAssistant: 0 };
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 $ } from "lit/directives/ref.js";
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.136 */
14
+ v5.0.0-next.137 */
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 : f({ arcadeResult: n, name: c, t9nStrings: s });
55
- })}${i ? f({ arcadeResult: { type: "geometry", value: i }, name: "geometry", t9nStrings: s }) : null}</calcite-tree>`;
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>&nbsp;${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 f({ arcadeResult: n, name: c, expanded: !a, t9nStrings: s });
61
- })}</calcite-tree>`, f = ({ arcadeResult: e, name: a, expanded: s, t9nStrings: i }) => {
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 ${$(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 ${$(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 ${$(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>`;
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.136 */
12
+ v5.0.0-next.137 */
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 'monaco-editor';
3
- import { PropertyValues } from 'lit';
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
- * [Read more...](https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-code-editor/)
8
- *
9
- * @internal
10
- */
11
- export declare class ArcgisCodeEditor extends LitElement {
12
- /**
13
- * The instance of the Monaco Editor after the component has been rendered.
14
- * To determine when a component is rendered, you can use componentOnReady() method.
15
- * The method returns a Promise that resolves after the component rendered for the first time.
16
- */
17
- get editorInstance(): Editor.IStandaloneCodeEditor | undefined;
18
- /**
19
- * Options to update on the editor.
20
- * For example:
21
- * ```json
22
- * {
23
- * "fontSize": 18
24
- * }
25
- * ```
26
- *
27
- * To get the full list of options set on the editor, use the editorInstance property and see Monaco Editor options documentation for more details.
28
- */
29
- editorOptions?: Editor.IEditorOptions & Editor.IGlobalEditorOptions;
30
- /**
31
- * The language for the editor.
32
- * Currently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.
33
- */
34
- language?: string;
35
- /**
36
- * A unique identifier for the model.
37
- * The unique identifier is sometimes used by language defaults to store model metadata.
38
- * For example, with arcade, the model id is used to store the arcade profile and other metadata.
39
- * The unique identifier is especially useful when there are multiple editors on the same page.
40
- */
41
- modelId: `${string}-${string}-${string}-${string}-${string}`;
42
- /**
43
- * The initial value for the editor.
44
- * The value is the script, code, css, json, etc.
45
- *
46
- * @default ""
47
- */
48
- value: string;
49
- /** @deprecated **Deprecated** since 4.30. Use `value` property instead. */
50
- getValue(): Promise<string>;
51
- /**
52
- * Inserts a snippet at the current position in the editor.
53
- *
54
- * @param text
55
- * @param text - The string snippet to insert
56
- */
57
- insertSnippet(text: string | null | undefined): Promise<void>;
58
- /**
59
- * Inserts a text at the current position in the editor.
60
- *
61
- * @param text
62
- * @param text - The string to insert
63
- */
64
- insertText(text: string | null | undefined): Promise<void>;
65
- /** Sets the focus on the editor. */
66
- setFocus(): Promise<void>;
67
- /**
68
- * @deprecated **Deprecated** since 4.30. Use `value` property instead.
69
- * @param text
70
- */
71
- setValue(text: string | null | undefined): Promise<void>;
72
- /** Emitted when the selection has changed. */
73
- readonly arcgisSelectionChange: TargetedEvent<this, {
74
- selection: Selection;
75
- model: Editor.ITextModel | null | undefined;
76
- }>;
77
- /** Emitted when the value has changed (script, code, css, json, etc.) */
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/arcade-contribution.js";
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.136 */
22
+ v5.0.0-next.137 */
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: 0, value: 1 };
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, JsxNode, TargetedEvent } from '@arcgis/lumina';
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
- * [Read more...](https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-code-editor-shell/)
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 declare class CodeEditorShell extends LitElement {
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.136 */
6
+ v5.0.0-next.137 */
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 {