@arcgis/coding-components 5.0.0-next.135 → 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 (177) 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/{Z74QJ3TT.js → 22N5QBRQ.js} +1 -1
  5. package/dist/cdn/{MU5ED3IJ.js → 2EKDNAHO.js} +2 -2
  6. package/dist/cdn/{YCWERWTW.js → 2NXZWMO2.js} +2 -2
  7. package/dist/cdn/{2FCTYV2Q.js → 2UFRNIIX.js} +2 -2
  8. package/dist/cdn/{REEANXEO.js → 2ZQEKE2N.js} +3 -3
  9. package/dist/cdn/{2T6EKNXO.js → 3P2KVVSN.js} +1 -1
  10. package/dist/cdn/{S4IE7QC4.js → 3T5KGXQ7.js} +2 -2
  11. package/dist/cdn/{6655T2A3.js → 5MGUXXER.js} +2 -2
  12. package/dist/cdn/{W3JDVAPE.js → 5N2Q2P7U.js} +2 -2
  13. package/dist/cdn/{4ITETNCM.js → 652ZSIU3.js} +2 -2
  14. package/dist/cdn/{5Z2QK75J.js → 6DBUX6JF.js} +1 -1
  15. package/dist/cdn/{DU5WWFCX.js → APQA7KWN.js} +2 -2
  16. package/dist/cdn/{XWXNZUVT.js → ATM4NOGS.js} +1 -1
  17. package/dist/cdn/{SAZPSOZK.js → B5CXJQR6.js} +1 -1
  18. package/dist/cdn/{B63JLHF6.js → BUACEA3I.js} +3 -3
  19. package/dist/cdn/{2AYYMI4E.js → CPWFDMAZ.js} +2 -2
  20. package/dist/cdn/{MQNYJZAO.js → D3RYGBRI.js} +2 -2
  21. package/dist/cdn/{DXURG3X2.js → D6TFIJTU.js} +2 -2
  22. package/dist/cdn/{JFCRHYTF.js → FFISKNTL.js} +2 -2
  23. package/dist/cdn/{S7YKROWI.js → FZU6DHUW.js} +2 -2
  24. package/dist/cdn/{2LOG4FQL.js → G6GHNSL7.js} +2 -2
  25. package/dist/cdn/KGEHLX5T.js +4 -0
  26. package/dist/cdn/{CWKABAQZ.js → KNPWBL2I.js} +2 -2
  27. package/dist/cdn/{3WKTZFSF.js → LKTNXGNX.js} +2 -2
  28. package/dist/cdn/{7M6MC7GV.js → LXFKAS3V.js} +2 -2
  29. package/dist/cdn/{BDA6HGXU.js → LXPYFEGT.js} +1 -1
  30. package/dist/cdn/{Q6WVDTWM.js → OB5OMUWO.js} +2 -2
  31. package/dist/cdn/{I2QTAUYZ.js → OPBG2VOB.js} +1 -1
  32. package/dist/cdn/{BF4TNUE3.js → OS4TOCCI.js} +2 -2
  33. package/dist/cdn/{LZVN2FFV.js → OWLGWZHC.js} +2 -2
  34. package/dist/cdn/{Z6VRTVVZ.js → QDQF6MJO.js} +2 -2
  35. package/dist/cdn/{GPBRDZOC.js → QK2B5NW2.js} +2 -2
  36. package/dist/cdn/{S7DZFLXH.js → QSPWHJZL.js} +2 -2
  37. package/dist/cdn/{7OEAUUR7.js → QWNYDDUJ.js} +2 -2
  38. package/dist/cdn/{XFWIWBYC.js → R2YG3J22.js} +2 -2
  39. package/dist/cdn/{RQOSGRQB.js → R5MLSRIF.js} +1 -1
  40. package/dist/cdn/{D72C7HBI.js → RUH6XBH5.js} +2 -2
  41. package/dist/cdn/SA2I6VGH.js +6 -0
  42. package/dist/cdn/{Z226IR5E.js → TAAR5ZM6.js} +2 -2
  43. package/dist/cdn/TO7MSMOI.js +4 -0
  44. package/dist/cdn/{ZIZS7IVY.js → TQNRSDFY.js} +2 -2
  45. package/dist/cdn/{5N4J2PCI.js → U4XM5Q3C.js} +2 -2
  46. package/dist/cdn/{EY544LMK.js → UMCG5VR5.js} +2 -2
  47. package/dist/cdn/{36ZZEJGK.js → UXKT2D32.js} +2 -2
  48. package/dist/cdn/{BQMBC2HU.js → VVGAJL4U.js} +2 -2
  49. package/dist/cdn/{JJYQ32OD.js → WLIDKUHE.js} +2 -2
  50. package/dist/cdn/{F4XFDPKK.js → XB5O7QZI.js} +2 -2
  51. package/dist/cdn/{DE6KX4DL.js → ZMY3G2UA.js} +2 -2
  52. package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
  53. package/dist/cdn/index.js +2 -2
  54. package/dist/chunks/arcade-defaults.js +2 -2
  55. package/dist/chunks/arcade-executor.js +1 -1
  56. package/dist/chunks/arcade-mode.js +1 -1
  57. package/dist/chunks/arcade-service-accessors.js +1 -1
  58. package/dist/chunks/colorize.js +1 -1
  59. package/dist/chunks/fields.js +1 -1
  60. package/dist/chunks/language-defaults-base.js +3 -3
  61. package/dist/chunks/markdown.js +1 -1
  62. package/dist/chunks/monaco-importer.js +1 -1
  63. package/dist/chunks/monaco-theme.js +1 -1
  64. package/dist/chunks/runtime.js +1 -1
  65. package/dist/chunks/{arcade-contribution.js → setup-monaco-theme.js} +40 -40
  66. package/dist/chunks/sql-expr-defaults.js +2 -2
  67. package/dist/chunks/sql-expr-mode.js +1 -1
  68. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  69. package/dist/chunks/useT9n.js +1 -1
  70. package/dist/chunks/utilities.js +1 -1
  71. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  72. package/dist/components/arcgis-arcade-coding-assistant/types.d.ts +3 -48
  73. package/dist/components/arcgis-arcade-editor/customElement.d.ts +123 -112
  74. package/dist/components/arcgis-arcade-editor/customElement.js +2 -2
  75. package/dist/components/arcgis-arcade-editor/index.d.ts +0 -13
  76. package/dist/components/arcgis-arcade-results/customElement.js +7 -7
  77. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  78. package/dist/components/arcgis-code-editor/customElement.d.ts +74 -81
  79. package/dist/components/arcgis-code-editor/customElement.js +3 -3
  80. package/dist/components/arcgis-code-editor-shell/customElement.d.ts +9 -5
  81. package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
  82. package/dist/components/arcgis-code-viewer/customElement.d.ts +23 -37
  83. package/dist/components/arcgis-code-viewer/customElement.js +2 -2
  84. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  85. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  86. package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +53 -49
  87. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  88. package/dist/components/arcgis-sql-expression-editor/index.d.ts +0 -7
  89. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  90. package/dist/docs/api.json +1 -1470
  91. package/dist/docs/docs.json +1 -1381
  92. package/dist/docs/vscode.css-custom-data.json +1 -35
  93. package/dist/docs/vscode.html-custom-data.json +1 -119
  94. package/dist/docs/web-types.json +1 -385
  95. package/dist/index.d.ts +34 -21
  96. package/dist/index.js +1 -1
  97. package/dist/loader.js +7 -7
  98. package/dist/types/lumina.d.ts +11 -11
  99. package/dist/types/preact.d.ts +11 -11
  100. package/dist/types/react.d.ts +11 -11
  101. package/dist/types/stencil.d.ts +11 -11
  102. package/dist/utils/arcade-assistant/types.d.ts +8 -72
  103. package/dist/utils/arcade-executor.d.ts +158 -126
  104. package/dist/utils/arcade-monaco/arcade-defaults.d.ts +9 -49
  105. package/dist/utils/custom-panel.d.ts +35 -30
  106. package/dist/utils/editor-suggestions.d.ts +17 -28
  107. package/dist/utils/index.d.ts +4 -6
  108. package/dist/utils/profile/types.d.ts +273 -345
  109. package/dist/utils/sql-expr-monaco/sql-expr-defaults.d.ts +8 -22
  110. package/package.json +6 -6
  111. package/dist/addons/arcade-coding-assistant/chat-helper.d.ts +0 -78
  112. package/dist/addons/arcade-coding-assistant/index.d.ts +0 -2
  113. package/dist/addons/arcade-coding-assistant/temporary-strings.d.ts +0 -47
  114. package/dist/cdn/3G5FZLOG.js +0 -4
  115. package/dist/cdn/QXBXDIG2.js +0 -6
  116. package/dist/cdn/T5ZRKBPY.js +0 -4
  117. package/dist/components/arcgis-arcade-coding-assistant/customElement.d.ts +0 -45
  118. package/dist/components/arcgis-arcade-coding-assistant/functional.d.ts +0 -235
  119. package/dist/components/arcgis-arcade-coding-assistant/index.d.ts +0 -27
  120. package/dist/components/arcgis-arcade-results/customElement.d.ts +0 -32
  121. package/dist/components/arcgis-arcade-results/functional.d.ts +0 -73
  122. package/dist/components/arcgis-arcade-results/index.d.ts +0 -10
  123. package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +0 -24
  124. package/dist/components/arcgis-arcade-suggestions/index.d.ts +0 -10
  125. package/dist/components/arcgis-editor-variables/customElement.d.ts +0 -40
  126. package/dist/components/arcgis-editor-variables/index.d.ts +0 -10
  127. package/dist/components/arcgis-language-api-panel/customElement.d.ts +0 -42
  128. package/dist/components/arcgis-language-api-panel/index.d.ts +0 -11
  129. package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +0 -23
  130. package/dist/components/arcgis-sql-expression-fields/index.d.ts +0 -7
  131. package/dist/controllers/useT9n.d.ts +0 -1
  132. package/dist/runtime.d.ts +0 -6
  133. package/dist/utils/arcade-assistant/aiContext.d.ts +0 -6
  134. package/dist/utils/arcade-assistant/constants.d.ts +0 -2
  135. package/dist/utils/arcade-assistant/utils.d.ts +0 -9
  136. package/dist/utils/arcade-monaco/arcade-contribution.d.ts +0 -1
  137. package/dist/utils/arcade-monaco/arcade-language-features.d.ts +0 -35
  138. package/dist/utils/arcade-monaco/arcade-language-syntax.d.ts +0 -3
  139. package/dist/utils/arcade-monaco/arcade-mode.d.ts +0 -29
  140. package/dist/utils/arcade-monaco/arcade-profile-strategy.d.ts +0 -12
  141. package/dist/utils/arcade-monaco/arcade-service-accessors.d.ts +0 -31
  142. package/dist/utils/arcade-monaco/arcade-worker-manager.d.ts +0 -22
  143. package/dist/utils/arcade-monaco/arcade.worker.d.ts +0 -23
  144. package/dist/utils/arcade-monaco/types.d.ts +0 -9
  145. package/dist/utils/colorize.d.ts +0 -5
  146. package/dist/utils/constants.d.ts +0 -3
  147. package/dist/utils/css-vars.d.ts +0 -7
  148. package/dist/utils/fields.d.ts +0 -20
  149. package/dist/utils/internal-monaco-apis.d.ts +0 -67
  150. package/dist/utils/language-defaults-base.d.ts +0 -76
  151. package/dist/utils/markdown.d.ts +0 -6
  152. package/dist/utils/monaco-importer.d.ts +0 -28
  153. package/dist/utils/monaco-languages.d.ts +0 -17
  154. package/dist/utils/monaco-theme.json.d.ts +0 -27
  155. package/dist/utils/monaco-typings.d.ts +0 -8
  156. package/dist/utils/patch-monaco.d.ts +0 -16
  157. package/dist/utils/profile/editor-profile.d.ts +0 -278
  158. package/dist/utils/profile/utils.d.ts +0 -49
  159. package/dist/utils/setup-monaco-theme.d.ts +0 -1
  160. package/dist/utils/setup-monaco.d.ts +0 -31
  161. package/dist/utils/sql-expr-monaco/sql-expr-completion.d.ts +0 -74
  162. package/dist/utils/sql-expr-monaco/sql-expr-constants.d.ts +0 -67
  163. package/dist/utils/sql-expr-monaco/sql-expr-contribution.d.ts +0 -1
  164. package/dist/utils/sql-expr-monaco/sql-expr-language-features.d.ts +0 -23
  165. package/dist/utils/sql-expr-monaco/sql-expr-language-syntax.d.ts +0 -3
  166. package/dist/utils/sql-expr-monaco/sql-expr-mode.d.ts +0 -43
  167. package/dist/utils/sql-expr-monaco/sql-expr-parser-utils.d.ts +0 -36
  168. package/dist/utils/sql-expr-monaco/sql-expr-profile-utils.d.ts +0 -5
  169. package/dist/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +0 -19
  170. package/dist/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -33
  171. package/dist/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +0 -82
  172. package/dist/utils/sql-expr-monaco/sql-expr-validation.d.ts +0 -41
  173. package/dist/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +0 -22
  174. package/dist/utils/sql-expr-monaco/sql-expr.worker.d.ts +0 -22
  175. package/dist/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +0 -13
  176. package/dist/utils/sql-expr-monaco/types.d.ts +0 -96
  177. package/dist/utils/utilities.d.ts +0 -16
@@ -1,24 +1,10 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
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
- * <template>
35
- * <div class="greeting"><span>Hello</span> World!</div>
36
- * </template>
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 declare class ArcgisCodeViewer extends LitElement {
46
- /**
47
- * The language for the component.
48
- * Currently supported language: arcade, arcgis-sql-expression, plus all the following languages found in monaco-editor's repo:
49
- * https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages.
50
- *
51
- * Note: The number of supported languages is limited in cdn builds to reduce package size. In cdn builds,
52
- * only the following languages are supported: css, html, javascript, typescript, and arcade, arcgis-sql-expression.
53
- *
54
- * @default "arcade"
55
- */
56
- language: string;
57
- /**
58
- * When `true`, adds a round style to the component.
59
- *
60
- * @default false
61
- */
62
- round: boolean;
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/arcade-contribution.js";
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.135 */
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.135 */
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.135 */
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 { PropertyValues } from 'lit';
3
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
4
- import { ApiCategory } from '@arcgis/languages-api-utils';
5
- import { EditorProfile } from '../../utils/profile/editor-profile';
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 declare class ArcgisSqlExpressionEditor extends LitElement {
19
- /**
20
- * The profile to use for the editor. The profile defines the variables and functions that are available to the editor.
21
- *
22
- * @example
23
- * ```jsx
24
- * <arcgis-sql-expression-editor profile={id: "field-calculation", definitions: { $layer: layer }}></arcgis-sql-expression-editor>
25
- * ```
26
- */
27
- profile?: IPredefinedProfile;
28
- /**
29
- * The sql expression script. Use this property to define or update the script.
30
- *
31
- * @default ""
32
- * @example
33
- * ```html
34
- * <arcgis-sql-expression-editor script="CAST(2.45 AS INTEGER)"></arcgis-sql-expression-editor>
35
- * ```
36
- */
37
- script: string;
38
- /**
39
- * If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
40
- *
41
- * @default false
42
- * @example
43
- * ```html
44
- * <arcgis-sql-expression-editor hideSideBar></arcgis-sql-expression-editor>
45
- * ```
46
- */
47
- hideSideBar: boolean;
48
- /** Set the focus on the element. */
49
- setFocus(): Promise<void>;
50
- /** Emitted when the diagnostics collection has changed. */
51
- readonly arcgisDiagnosticsChange: TargetedEvent<this, editor.IMarkerData[]>;
52
- /** Emitted when the script string has changed. */
53
- readonly arcgisScriptChange: TargetedEvent<this, string>;
54
- "@eventTypes": {
55
- "arcgisDiagnosticsChange": ArcgisSqlExpressionEditor["arcgisDiagnosticsChange"]["detail"];
56
- "arcgisScriptChange": ArcgisSqlExpressionEditor["arcgisScriptChange"]["detail"];
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.135 */
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.135 */
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() {