@arcgis/coding-components 4.31.0-next.2 → 4.31.0-next.3

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 (152) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
  3. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
  4. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
  5. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +11 -0
  6. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
  7. package/dist/arcgis-coding-components/assets/sql-expression-editor/api/sql-expression-api.t9n.en.json +735 -0
  8. package/dist/arcgis-coding-components/index.esm.js +2 -2
  9. package/dist/arcgis-coding-components/p-0105cc95.js +6 -0
  10. package/dist/arcgis-coding-components/{p-9eced6fc.js → p-111ba641.js} +2 -2
  11. package/dist/arcgis-coding-components/p-3ca5ba95.entry.js +6 -0
  12. package/dist/arcgis-coding-components/{p-bb7e832e.js → p-42c8b545.js} +3 -3
  13. package/dist/arcgis-coding-components/{p-93a97573.js → p-4986aaf2.js} +3 -3
  14. package/dist/arcgis-coding-components/p-5e26a360.js +6 -0
  15. package/dist/arcgis-coding-components/{p-60c2a820.js → p-5eb82abf.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-62ee6251.js → p-6554a853.js} +1 -1
  17. package/dist/arcgis-coding-components/{p-7984ea8e.js → p-7c6b3d40.js} +2 -2
  18. package/dist/arcgis-coding-components/{p-5ef7cce5.js → p-86106a9a.js} +1 -1
  19. package/dist/arcgis-coding-components/{p-03ea6cd7.js → p-8b4298d5.js} +3 -3
  20. package/dist/arcgis-coding-components/p-9132bc9c.entry.js +6 -0
  21. package/dist/arcgis-coding-components/{p-36fedc23.js → p-93d0e0cc.js} +10 -10
  22. package/dist/arcgis-coding-components/{p-e8211ffe.js → p-9c7e0089.js} +1 -1
  23. package/dist/arcgis-coding-components/p-b82e98f0.js +6 -0
  24. package/dist/arcgis-coding-components/{p-e7ee4d64.js → p-c4a5150e.js} +3 -3
  25. package/dist/arcgis-coding-components/p-d353f1ba.entry.js +6 -0
  26. package/dist/arcgis-coding-components/{p-0c6de9b3.js → p-fe6ccfe0.js} +2 -2
  27. package/dist/cjs/{app-globals-aee5f4b5.js → app-globals-92c5b499.js} +1 -1
  28. package/dist/cjs/arcade-defaults-34e82ff5.js +116 -0
  29. package/dist/cjs/{arcade-mode-b85ae7d4.js → arcade-mode-dfd66b4b.js} +62 -62
  30. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +177 -1491
  31. package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
  32. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +81 -0
  33. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +80 -0
  34. package/dist/cjs/{css-7cc05f76.js → css-9b0053c3.js} +1 -1
  35. package/dist/cjs/{cssMode-2b0daeae.js → cssMode-62e53008.js} +4 -4
  36. package/dist/cjs/{html-f56911e1.js → html-3036e89e.js} +4 -4
  37. package/dist/cjs/{htmlMode-43eed674.js → htmlMode-c37eee42.js} +4 -4
  38. package/dist/cjs/{index-b34238a6.js → index-be6b2520.js} +9 -1
  39. package/dist/cjs/index.cjs.js +4 -3
  40. package/dist/cjs/{javascript-5115cb76.js → javascript-7276c023.js} +4 -4
  41. package/dist/cjs/{jsonMode-550dda36.js → jsonMode-baa295f0.js} +4 -4
  42. package/dist/cjs/{arcade-defaults-a8d8f8e2.js → language-defaults-base-5817af52.js} +61 -162
  43. package/dist/cjs/loader.cjs.js +4 -4
  44. package/dist/cjs/sql-expr-defaults-746bbc5f.js +1285 -0
  45. package/dist/cjs/sql-expr-mode-a9f1b697.js +25135 -0
  46. package/dist/cjs/{tsMode-336306a9.js → tsMode-36398912.js} +5 -5
  47. package/dist/cjs/{typescript-b395242f.js → typescript-608a420b.js} +4 -4
  48. package/dist/components/arcade-defaults.js +8 -1557
  49. package/dist/components/arcade-mode.js +2 -2
  50. package/dist/components/arcade-results.js +6 -4
  51. package/dist/components/arcade-suggestions.js +7 -5
  52. package/dist/components/arcade-variables.js +8 -6
  53. package/dist/components/arcgis-arcade-editor.js +33 -32
  54. package/dist/components/arcgis-arcade-results.js +1 -1
  55. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  56. package/dist/components/arcgis-arcade-variables.js +1 -1
  57. package/dist/components/arcgis-assets.d.ts +1 -1
  58. package/dist/components/arcgis-assets.js +1 -1
  59. package/dist/components/arcgis-code-editor.js +1 -1
  60. package/dist/components/arcgis-language-api-panel.js +1 -1
  61. package/dist/components/arcgis-sql-expression-editor.d.ts +11 -0
  62. package/dist/components/arcgis-sql-expression-editor.js +120 -0
  63. package/dist/components/arcgis-sql-expression-fields.d.ts +11 -0
  64. package/dist/components/arcgis-sql-expression-fields.js +11 -0
  65. package/dist/components/chunk-6TARY3NN.js +1159 -0
  66. package/dist/components/code-editor.js +41 -7
  67. package/dist/components/fields.js +2 -2
  68. package/dist/components/index.js +1 -1
  69. package/dist/components/index2.js +30 -22
  70. package/dist/components/language-api-panel.js +13 -40
  71. package/dist/components/language-defaults-base.js +1551 -0
  72. package/dist/components/markdown.js +1 -1
  73. package/dist/components/sql-expr-defaults.js +131 -0
  74. package/dist/components/sql-expr-mode.js +25132 -0
  75. package/dist/components/sql-expression-fields.js +102 -0
  76. package/dist/components/useT9n.js +45 -8
  77. package/dist/components/utilities.js +1 -1
  78. package/dist/esm/{app-globals-59faaf33.js → app-globals-5e178541.js} +1 -1
  79. package/dist/esm/arcade-defaults-6dac6b30.js +111 -0
  80. package/dist/esm/{arcade-mode-5d46035e.js → arcade-mode-02336ce9.js} +3 -3
  81. package/dist/esm/arcgis-arcade-editor_6.entry.js +124 -1438
  82. package/dist/esm/arcgis-coding-components.js +5 -5
  83. package/dist/esm/arcgis-sql-expression-editor.entry.js +77 -0
  84. package/dist/esm/arcgis-sql-expression-fields.entry.js +76 -0
  85. package/dist/esm/{css-e257dc49.js → css-e79f1ed1.js} +1 -1
  86. package/dist/esm/{cssMode-c11f7f40.js → cssMode-cd007d02.js} +3 -3
  87. package/dist/esm/{html-a6c37a99.js → html-d079d00d.js} +3 -3
  88. package/dist/esm/{htmlMode-1270bc7d.js → htmlMode-ff14e035.js} +3 -3
  89. package/dist/esm/{index-a970952c.js → index-88fc341d.js} +9 -1
  90. package/dist/esm/index.js +4 -3
  91. package/dist/esm/{javascript-ee179624.js → javascript-69f7c282.js} +4 -4
  92. package/dist/esm/{jsonMode-07502ccb.js → jsonMode-18ddadde.js} +3 -3
  93. package/dist/esm/{arcade-defaults-9eb28407.js → language-defaults-base-6687d11a.js} +55 -158
  94. package/dist/esm/loader.js +5 -5
  95. package/dist/esm/sql-expr-defaults-2cdfe08a.js +1279 -0
  96. package/dist/esm/sql-expr-mode-f10e5a43.js +25132 -0
  97. package/dist/esm/{tsMode-96749a12.js → tsMode-c2e5d33a.js} +3 -3
  98. package/dist/esm/{typescript-a3cf9881.js → typescript-a0fbebf0.js} +3 -3
  99. package/dist/loader/cdn.js +1 -1
  100. package/dist/loader/index.cjs.js +1 -1
  101. package/dist/loader/index.es2017.js +1 -1
  102. package/dist/loader/index.js +1 -1
  103. package/dist/types/components/arcade-editor/arcade-editor.d.ts +33 -8
  104. package/dist/types/components/arcade-results/arcade-results.d.ts +43 -1
  105. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +22 -1
  106. package/dist/types/components/arcade-variables/arcade-variables.d.ts +28 -1
  107. package/dist/types/components/code-editor/code-editor.d.ts +2 -1
  108. package/dist/types/components/language-api-panel/language-api-panel.d.ts +34 -8
  109. package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +24 -0
  110. package/dist/types/components/sql-expression-fields/sql-expression-fields.d.ts +32 -0
  111. package/dist/types/components.d.ts +85 -11
  112. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +13 -0
  113. package/dist/types/dependencies.d.ts +6 -10
  114. package/dist/types/utils/language-defaults-base.d.ts +2 -9
  115. package/dist/types/utils/profile/predefined-profile.d.ts +3 -1
  116. package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +41 -0
  117. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +16 -0
  118. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +26 -0
  119. package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +37 -0
  120. package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +11 -0
  121. package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +122 -0
  122. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +5 -0
  123. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +18 -0
  124. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +6 -0
  125. package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +156 -0
  126. package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +150 -0
  127. package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +1397 -0
  128. package/dist/types/utils/sql-expr-monaco/libraries/date/properties/index.d.ts +59 -0
  129. package/dist/types/utils/sql-expr-monaco/libraries/numeric/properties/index.d.ts +295 -0
  130. package/dist/types/utils/sql-expr-monaco/libraries/string/properties/index.d.ts +135 -0
  131. package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +5 -0
  132. package/dist/types/utils/sql-expr-monaco/sql-expr-contribution.d.ts +11 -0
  133. package/dist/types/utils/sql-expr-monaco/sql-expr-defaults.d.ts +22 -0
  134. package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +540 -0
  135. package/dist/types/utils/sql-expr-monaco/sql-expr-language-syntax.d.ts +8 -0
  136. package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +10 -0
  137. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-adapter.d.ts +3 -0
  138. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +41 -0
  139. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +99 -0
  140. package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +41 -0
  141. package/dist/types/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +15 -0
  142. package/dist/types/utils/sql-expr-monaco/sql-expr.worker.d.ts +21 -0
  143. package/dist/types/utils/sql-expr-monaco/types.d.ts +91 -0
  144. package/dist/types/utils/sql-expr-profile/predefined-profile.d.ts +2 -0
  145. package/package.json +25 -20
  146. package/dist/arcgis-coding-components/p-81c37dab.entry.js +0 -6
  147. package/dist/components/chunk-IHYYRFLQ.js +0 -1363
  148. package/dist/types/components/arcade-editor/t9n-types.d.ts +0 -8
  149. package/dist/types/components/arcade-results/t9n-types.d.ts +0 -13
  150. package/dist/types/components/arcade-suggestions/t9n-types.d.ts +0 -6
  151. package/dist/types/components/arcade-variables/t9n-types.d.ts +0 -8
  152. package/dist/types/components/language-api-panel/t9n-types.d.ts +0 -8
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.2
4
+ * v4.31.0-next.3
5
5
  */
6
- import { F as typescriptDefaults, E as monaco_editor_core_star } from './arcade-defaults-9eb28407.js';
7
- import './index-a970952c.js';
6
+ import { H as typescriptDefaults, G as monaco_editor_core_star } from './language-defaults-base-6687d11a.js';
7
+ import './index-88fc341d.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.2
4
+ * v4.31.0-next.3
5
5
  */
6
- import { E as monaco_editor_core_star } from './arcade-defaults-9eb28407.js';
7
- import './index-a970952c.js';
6
+ import { G as monaco_editor_core_star } from './language-defaults-base-6687d11a.js';
7
+ import './index-88fc341d.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.2
4
+ * v4.31.0-next.3
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.2
4
+ * v4.31.0-next.3
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.2
4
+ * v4.31.0-next.3
5
5
  */
6
6
  export * from '../esm/polyfills/index.js';
7
7
  export * from '../esm/loader.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.2
4
+ * v4.31.0-next.3
5
5
  */
6
6
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
7
7
  export * from '../esm/polyfills/index.js';
@@ -1,6 +1,5 @@
1
1
  import type { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
2
- import type { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
3
- import type { ArcadeEditorStrings } from "./t9n-types";
2
+ import type { ApiCategory, ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
4
3
  import type { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../utils/editor-suggestions";
5
4
  import type { IEditorProfileDefinition, IPredefinedProfile } from "../../utils/profile/types";
6
5
  import type { editor } from "monaco-editor";
@@ -18,17 +17,43 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
18
17
  private _editorProfilePromise;
19
18
  private _disposables;
20
19
  el: HTMLArcgisArcadeEditorElement;
21
- messages: {
22
- _lang: string;
23
- _t9nLocale: string;
24
- } & Partial<ArcadeEditorStrings>;
25
- _preparingProfile: boolean;
20
+ _preparingArcade: boolean;
26
21
  _editorProfile: EditorProfile | undefined;
22
+ _apiLibrary: ApiCategory[] | undefined;
27
23
  _showExecutionPanel: boolean;
28
24
  _resultPanel: ResultPanelName;
29
25
  _executingScript: boolean;
30
26
  _consoleLogs: string[];
31
27
  _executionResult?: ArcadeResult;
28
+ messages: {
29
+ _lang: string;
30
+ _t9nLocale: "en" | "id" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
31
+ _loading: boolean;
32
+ _overrides: {
33
+ help?: string | undefined;
34
+ profilevariables?: string | undefined;
35
+ constantsandfunctions?: string | undefined;
36
+ suggestions?: string | undefined;
37
+ run?: string | undefined;
38
+ lastresults?: string | undefined;
39
+ };
40
+ _original?: {
41
+ help: string;
42
+ profilevariables: string;
43
+ constantsandfunctions: string;
44
+ suggestions: string;
45
+ run: string;
46
+ lastresults: string;
47
+ } | undefined;
48
+ } & Partial<{
49
+ help: string;
50
+ profilevariables: string;
51
+ constantsandfunctions: string;
52
+ suggestions: string;
53
+ run: string;
54
+ lastresults: string;
55
+ }>;
56
+ _messagesChanged(): void;
32
57
  /**
33
58
  * The profile contains metadata used by the editor for editing context and help.
34
59
  * Example:
@@ -124,7 +149,7 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
124
149
  componentWillLoad(): Promise<void>;
125
150
  componentDidLoad(): Promise<void>;
126
151
  disconnectedCallback(): void;
127
- private _updateEditorProfile;
152
+ private _updateArcadeDefaults;
128
153
  private _executeScript;
129
154
  private _toggleShowExecutionPanel;
130
155
  private _toggleSideActionBarExpanded;
@@ -5,7 +5,49 @@ export type ResultPanelName = "console" | "log" | "output";
5
5
  /** @internal */
6
6
  export declare class ArcgisArcadeResults implements ComponentInterface {
7
7
  manager: ControllerManager<this>;
8
- private messages;
8
+ messages: {
9
+ _lang: string;
10
+ _t9nLocale: "en" | "id" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
11
+ _loading: boolean;
12
+ _overrides: {
13
+ close?: string | undefined;
14
+ console?: string | undefined;
15
+ output?: string | undefined;
16
+ log?: string | undefined;
17
+ consolemessage?: string | undefined;
18
+ lastexecutionformat?: string | undefined;
19
+ compilationtimeformat?: string | undefined;
20
+ executiontimeformat?: string | undefined;
21
+ runscriptmessage?: string | undefined;
22
+ showingfirstitemsformat?: string | undefined;
23
+ executionerrorformat?: string | undefined;
24
+ };
25
+ _original?: {
26
+ close: string;
27
+ console: string;
28
+ output: string;
29
+ log: string;
30
+ consolemessage: string;
31
+ lastexecutionformat: string;
32
+ compilationtimeformat: string;
33
+ executiontimeformat: string;
34
+ runscriptmessage: string;
35
+ showingfirstitemsformat: string;
36
+ executionerrorformat: string;
37
+ } | undefined;
38
+ } & Partial<{
39
+ close: string;
40
+ console: string;
41
+ output: string;
42
+ log: string;
43
+ consolemessage: string;
44
+ lastexecutionformat: string;
45
+ compilationtimeformat: string;
46
+ executiontimeformat: string;
47
+ runscriptmessage: string;
48
+ showingfirstitemsformat: string;
49
+ executionerrorformat: string;
50
+ }>;
9
51
  el: HTMLArcgisArcadeResultsElement;
10
52
  /**
11
53
  * Loading state
@@ -6,7 +6,28 @@ export declare class ArcgisArcadeSuggestions implements ComponentInterface {
6
6
  manager: ControllerManager<this>;
7
7
  private _flowObserver?;
8
8
  private _themeChangedListener?;
9
- private messages;
9
+ messages: {
10
+ _lang: string;
11
+ _t9nLocale: "en" | "id" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
12
+ _loading: boolean;
13
+ _overrides: {
14
+ expand?: string | undefined;
15
+ suggestions?: string | undefined;
16
+ insert?: string | undefined;
17
+ noitems?: string | undefined;
18
+ };
19
+ _original?: {
20
+ expand: string;
21
+ suggestions: string;
22
+ insert: string;
23
+ noitems: string;
24
+ } | undefined;
25
+ } & Partial<{
26
+ expand: string;
27
+ suggestions: string;
28
+ insert: string;
29
+ noitems: string;
30
+ }>;
10
31
  el: HTMLArcgisArcadeSuggestionsElement;
11
32
  _selectedSuggestion: IEditorCodeSuggestion | undefined;
12
33
  _filterValue: string;
@@ -4,7 +4,34 @@ import type { ControllerManager } from "@arcgis/components-controllers";
4
4
  export declare class ArcgisArcadeVariables implements ComponentInterface {
5
5
  manager: ControllerManager<this>;
6
6
  private _flowObserver?;
7
- private messages;
7
+ messages: {
8
+ _lang: string;
9
+ _t9nLocale: "en" | "id" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
10
+ _loading: boolean;
11
+ _overrides: {
12
+ backtotop?: string | undefined;
13
+ expand?: string | undefined;
14
+ loading?: string | undefined;
15
+ profilevariables?: string | undefined;
16
+ noitems?: string | undefined;
17
+ noprofilevariablesmessage?: string | undefined;
18
+ };
19
+ _original?: {
20
+ backtotop: string;
21
+ expand: string;
22
+ loading: string;
23
+ profilevariables: string;
24
+ noitems: string;
25
+ noprofilevariablesmessage: string;
26
+ } | undefined;
27
+ } & Partial<{
28
+ backtotop: string;
29
+ expand: string;
30
+ loading: string;
31
+ profilevariables: string;
32
+ noitems: string;
33
+ noprofilevariablesmessage: string;
34
+ }>;
8
35
  el: HTMLArcgisArcadeVariablesElement;
9
36
  _mutationCounter: number;
10
37
  _flowItemRenderers: (() => VNode)[];
@@ -3,6 +3,7 @@ import type { Selection } from "monaco-editor";
3
3
  import { editor } from "monaco-editor";
4
4
  import type { ControllerManager } from "@arcgis/components-controllers";
5
5
  import "../../utils/arcade-monaco/arcade-contribution";
6
+ import "../../utils/sql-expr-monaco/sql-expr-contribution";
6
7
  export declare class ArcgisCodeEditor implements ComponentInterface {
7
8
  manager: ControllerManager<this>;
8
9
  private _editorInstance;
@@ -18,7 +19,7 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
18
19
  value: string;
19
20
  /**
20
21
  * The language for the editor.
21
- * Currently supported language: arcade, json, css, html, javascript, typescript, and text.
22
+ * Currently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.
22
23
  */
23
24
  language: string | undefined;
24
25
  languagePropChange(): void;
@@ -1,28 +1,55 @@
1
1
  import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
2
2
  import type { ApiCategory, ApiItem } from "@arcgis/arcade-languageservice";
3
3
  import type { ControllerManager } from "@arcgis/components-controllers";
4
- import type { LanguageDefaultsBase } from "../../utils/language-defaults-base";
5
4
  /** @internal */
6
5
  export declare class ArcgisLanguageApiPanel implements ComponentInterface {
7
6
  manager: ControllerManager<this>;
8
7
  private _flowObserver?;
9
8
  private _themeChangedListener?;
10
- private messages;
9
+ messages: {
10
+ _lang: string;
11
+ _t9nLocale: "en" | "id" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
12
+ _loading: boolean;
13
+ _overrides: {
14
+ expand?: string | undefined;
15
+ loading?: string | undefined;
16
+ constantsandfunctions?: string | undefined;
17
+ insert?: string | undefined;
18
+ noitems?: string | undefined;
19
+ moreinformation?: string | undefined;
20
+ };
21
+ _original?: {
22
+ expand: string;
23
+ loading: string;
24
+ constantsandfunctions: string;
25
+ insert: string;
26
+ noitems: string;
27
+ moreinformation: string;
28
+ } | undefined;
29
+ } & Partial<{
30
+ expand: string;
31
+ loading: string;
32
+ constantsandfunctions: string;
33
+ insert: string;
34
+ noitems: string;
35
+ moreinformation: string;
36
+ }>;
11
37
  el: HTMLArcgisLanguageApiPanelElement;
12
38
  _selectedApiItem: ApiItem | undefined;
13
39
  _filterValue: string;
14
40
  _colorizeStyle: string;
15
- _preparingApi: boolean;
16
- _apiLibrary: ApiCategory[] | undefined;
17
41
  /**
18
42
  * Should the documentation action be hidden
19
43
  */
20
44
  hideDocumentationActions: boolean;
21
45
  /**
22
- * The model id used by the component to retrieve the api library
46
+ * When true, a busy indicator is displayed
23
47
  */
24
- modelId: string | undefined;
25
- languageDefaults: LanguageDefaultsBase;
48
+ loading: boolean;
49
+ /**
50
+ * The api library to display
51
+ */
52
+ apiLibrary: ApiCategory[] | undefined;
26
53
  /**
27
54
  * Raised when the close action has been requested
28
55
  */
@@ -33,7 +60,6 @@ export declare class ArcgisLanguageApiPanel implements ComponentInterface {
33
60
  arcgisItemSelected: EventEmitter<string>;
34
61
  componentWillLoad(): Promise<void>;
35
62
  disconnectedCallback(): void;
36
- private _updateApiLibrary;
37
63
  private flowFocusHandler;
38
64
  private _emitItemSelected;
39
65
  private _emitClose;
@@ -0,0 +1,24 @@
1
+ import type { ComponentInterface, VNode } from "../../stencil-public-runtime";
2
+ import type { ControllerManager } from "@arcgis/components-controllers";
3
+ import type { EditorProfile } from "../../utils/profile/editor-profile";
4
+ import type { IPredefinedProfile } from "../../components";
5
+ import type { ApiCategory } from "@arcgis/languages-api-utils";
6
+ export declare class SqlExpressionEditor implements ComponentInterface {
7
+ manager: ControllerManager<this>;
8
+ el: HTMLArcgisArcadeEditorElement;
9
+ private _modelId;
10
+ private _codeEditorElt?;
11
+ _preparing: boolean;
12
+ _editorProfile: EditorProfile | undefined;
13
+ _activeAction: "fields" | "functions" | undefined;
14
+ _apiLibrary: ApiCategory[] | undefined;
15
+ profile: IPredefinedProfile | undefined;
16
+ _profileChanged(): void;
17
+ private _updateSqlExprDefaults;
18
+ private _setActiveAction;
19
+ private _handleActionClick;
20
+ private _insertAsSnippet;
21
+ componentWillLoad(): Promise<void>;
22
+ disconnectedCallback(): void;
23
+ render(): VNode;
24
+ }
@@ -0,0 +1,32 @@
1
+ import { type ControllerManager } from "@arcgis/components-controllers";
2
+ import { type ComponentInterface, type EventEmitter, type VNode } from "../../stencil-public-runtime";
3
+ /** @internal */
4
+ export declare class SqlExpressionFields implements ComponentInterface {
5
+ manager: ControllerManager<this>;
6
+ private _flowObserver?;
7
+ el: HTMLDivElement;
8
+ _mutationCounter: number;
9
+ _flowItemRenderers: (() => VNode)[];
10
+ _filterValue: string;
11
+ /**
12
+ * Loading state
13
+ */
14
+ loading: boolean;
15
+ /**
16
+ * The model id
17
+ */
18
+ modelId: string | undefined;
19
+ modelIdPropChanged(): void;
20
+ /**
21
+ * Emitted when close action has been activated
22
+ */
23
+ arcgisClose: EventEmitter<void>;
24
+ /**
25
+ * Emitted when a field has been selected
26
+ */
27
+ arcgisFieldSelected: EventEmitter<string>;
28
+ disconnectedCallback(): void;
29
+ private _handleSelectField;
30
+ private _emitClose;
31
+ render(): VNode;
32
+ }
@@ -8,21 +8,21 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { IEditorProfileDefinition, IPredefinedProfile } from "./utils/profile/types";
9
9
  import { ArcadeResult, IEditorTestContext } from "./utils/arcade-executor";
10
10
  import { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "./utils/editor-suggestions";
11
- import { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
11
+ import { ApiCategory, ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
12
12
  import { SidePanelName } from "./components/arcade-editor/arcade-editor";
13
13
  import { editor, Selection } from "monaco-editor";
14
14
  import { IColorRules } from "./utils/arcade-monaco/arcade-theme";
15
15
  import { ResultPanelName } from "./components/arcade-results/arcade-results";
16
- import { LanguageDefaultsBase } from "./utils/language-defaults-base";
16
+ import { IPredefinedProfile as IPredefinedProfile1 } from "./components";
17
17
  export { IEditorProfileDefinition, IPredefinedProfile } from "./utils/profile/types";
18
18
  export { ArcadeResult, IEditorTestContext } from "./utils/arcade-executor";
19
19
  export { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "./utils/editor-suggestions";
20
- export { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
20
+ export { ApiCategory, ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
21
21
  export { SidePanelName } from "./components/arcade-editor/arcade-editor";
22
22
  export { editor, Selection } from "monaco-editor";
23
23
  export { IColorRules } from "./utils/arcade-monaco/arcade-theme";
24
24
  export { ResultPanelName } from "./components/arcade-results/arcade-results";
25
- export { LanguageDefaultsBase } from "./utils/language-defaults-base";
25
+ export { IPredefinedProfile as IPredefinedProfile1 } from "./components";
26
26
  export namespace Components {
27
27
  interface ArcgisArcadeEditor {
28
28
  /**
@@ -152,7 +152,7 @@ export namespace Components {
152
152
  */
153
153
  "insertText": (text: string | null | undefined) => Promise<void>;
154
154
  /**
155
- * The language for the editor. Currently supported language: arcade, json, css, html, javascript, typescript, and text.
155
+ * The language for the editor. Currently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.
156
156
  */
157
157
  "language": string | undefined;
158
158
  /**
@@ -178,13 +178,29 @@ export namespace Components {
178
178
  "value": string;
179
179
  }
180
180
  interface ArcgisLanguageApiPanel {
181
+ /**
182
+ * The api library to display
183
+ */
184
+ "apiLibrary": ApiCategory[] | undefined;
181
185
  /**
182
186
  * Should the documentation action be hidden
183
187
  */
184
188
  "hideDocumentationActions": boolean;
185
- "languageDefaults": LanguageDefaultsBase;
186
189
  /**
187
- * The model id used by the component to retrieve the api library
190
+ * When true, a busy indicator is displayed
191
+ */
192
+ "loading": boolean;
193
+ }
194
+ interface ArcgisSqlExpressionEditor {
195
+ "profile": IPredefinedProfile1 | undefined;
196
+ }
197
+ interface ArcgisSqlExpressionFields {
198
+ /**
199
+ * Loading state
200
+ */
201
+ "loading": boolean;
202
+ /**
203
+ * The model id
188
204
  */
189
205
  "modelId": string | undefined;
190
206
  }
@@ -213,6 +229,10 @@ export interface ArcgisLanguageApiPanelCustomEvent<T> extends CustomEvent<T> {
213
229
  detail: T;
214
230
  target: HTMLArcgisLanguageApiPanelElement;
215
231
  }
232
+ export interface ArcgisSqlExpressionFieldsCustomEvent<T> extends CustomEvent<T> {
233
+ detail: T;
234
+ target: HTMLArcgisSqlExpressionFieldsElement;
235
+ }
216
236
  declare global {
217
237
  interface HTMLArcgisArcadeEditorElementEventMap {
218
238
  "arcgisScriptChange": string;
@@ -325,6 +345,30 @@ declare global {
325
345
  prototype: HTMLArcgisLanguageApiPanelElement;
326
346
  new (): HTMLArcgisLanguageApiPanelElement;
327
347
  };
348
+ interface HTMLArcgisSqlExpressionEditorElement extends Components.ArcgisSqlExpressionEditor, HTMLStencilElement {
349
+ }
350
+ var HTMLArcgisSqlExpressionEditorElement: {
351
+ prototype: HTMLArcgisSqlExpressionEditorElement;
352
+ new (): HTMLArcgisSqlExpressionEditorElement;
353
+ };
354
+ interface HTMLArcgisSqlExpressionFieldsElementEventMap {
355
+ "arcgisClose": void;
356
+ "arcgisFieldSelected": string;
357
+ }
358
+ interface HTMLArcgisSqlExpressionFieldsElement extends Components.ArcgisSqlExpressionFields, HTMLStencilElement {
359
+ addEventListener<K extends keyof HTMLArcgisSqlExpressionFieldsElementEventMap>(type: K, listener: (this: HTMLArcgisSqlExpressionFieldsElement, ev: ArcgisSqlExpressionFieldsCustomEvent<HTMLArcgisSqlExpressionFieldsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
360
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
361
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
362
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
363
+ removeEventListener<K extends keyof HTMLArcgisSqlExpressionFieldsElementEventMap>(type: K, listener: (this: HTMLArcgisSqlExpressionFieldsElement, ev: ArcgisSqlExpressionFieldsCustomEvent<HTMLArcgisSqlExpressionFieldsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
364
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
365
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
366
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
367
+ }
368
+ var HTMLArcgisSqlExpressionFieldsElement: {
369
+ prototype: HTMLArcgisSqlExpressionFieldsElement;
370
+ new (): HTMLArcgisSqlExpressionFieldsElement;
371
+ };
328
372
  interface HTMLElementTagNameMap {
329
373
  "arcgis-arcade-editor": HTMLArcgisArcadeEditorElement;
330
374
  "arcgis-arcade-results": HTMLArcgisArcadeResultsElement;
@@ -332,6 +376,8 @@ declare global {
332
376
  "arcgis-arcade-variables": HTMLArcgisArcadeVariablesElement;
333
377
  "arcgis-code-editor": HTMLArcgisCodeEditorElement;
334
378
  "arcgis-language-api-panel": HTMLArcgisLanguageApiPanelElement;
379
+ "arcgis-sql-expression-editor": HTMLArcgisSqlExpressionEditorElement;
380
+ "arcgis-sql-expression-fields": HTMLArcgisSqlExpressionFieldsElement;
335
381
  }
336
382
  }
337
383
  declare namespace LocalJSX {
@@ -450,7 +496,7 @@ declare namespace LocalJSX {
450
496
  */
451
497
  "editorInstance"?: editor.IStandaloneCodeEditor | undefined;
452
498
  /**
453
- * The language for the editor. Currently supported language: arcade, json, css, html, javascript, typescript, and text.
499
+ * The language for the editor. Currently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.
454
500
  */
455
501
  "language"?: string | undefined;
456
502
  /**
@@ -478,15 +524,18 @@ declare namespace LocalJSX {
478
524
  "value"?: string;
479
525
  }
480
526
  interface ArcgisLanguageApiPanel {
527
+ /**
528
+ * The api library to display
529
+ */
530
+ "apiLibrary"?: ApiCategory[] | undefined;
481
531
  /**
482
532
  * Should the documentation action be hidden
483
533
  */
484
534
  "hideDocumentationActions"?: boolean;
485
- "languageDefaults": LanguageDefaultsBase;
486
535
  /**
487
- * The model id used by the component to retrieve the api library
536
+ * When true, a busy indicator is displayed
488
537
  */
489
- "modelId"?: string | undefined;
538
+ "loading"?: boolean;
490
539
  /**
491
540
  * Raised when the close action has been requested
492
541
  */
@@ -496,6 +545,27 @@ declare namespace LocalJSX {
496
545
  */
497
546
  "onArcgisItemSelected"?: (event: ArcgisLanguageApiPanelCustomEvent<string>) => void;
498
547
  }
548
+ interface ArcgisSqlExpressionEditor {
549
+ "profile"?: IPredefinedProfile1 | undefined;
550
+ }
551
+ interface ArcgisSqlExpressionFields {
552
+ /**
553
+ * Loading state
554
+ */
555
+ "loading"?: boolean;
556
+ /**
557
+ * The model id
558
+ */
559
+ "modelId"?: string | undefined;
560
+ /**
561
+ * Emitted when close action has been activated
562
+ */
563
+ "onArcgisClose"?: (event: ArcgisSqlExpressionFieldsCustomEvent<void>) => void;
564
+ /**
565
+ * Emitted when a field has been selected
566
+ */
567
+ "onArcgisFieldSelected"?: (event: ArcgisSqlExpressionFieldsCustomEvent<string>) => void;
568
+ }
499
569
  interface IntrinsicElements {
500
570
  "arcgis-arcade-editor": ArcgisArcadeEditor;
501
571
  "arcgis-arcade-results": ArcgisArcadeResults;
@@ -503,6 +573,8 @@ declare namespace LocalJSX {
503
573
  "arcgis-arcade-variables": ArcgisArcadeVariables;
504
574
  "arcgis-code-editor": ArcgisCodeEditor;
505
575
  "arcgis-language-api-panel": ArcgisLanguageApiPanel;
576
+ "arcgis-sql-expression-editor": ArcgisSqlExpressionEditor;
577
+ "arcgis-sql-expression-fields": ArcgisSqlExpressionFields;
506
578
  }
507
579
  }
508
580
  export { LocalJSX as JSX };
@@ -515,6 +587,8 @@ declare module "@stencil/core" {
515
587
  "arcgis-arcade-variables": LocalJSX.ArcgisArcadeVariables & JSXBase.HTMLAttributes<HTMLArcgisArcadeVariablesElement>;
516
588
  "arcgis-code-editor": LocalJSX.ArcgisCodeEditor & JSXBase.HTMLAttributes<HTMLArcgisCodeEditorElement>;
517
589
  "arcgis-language-api-panel": LocalJSX.ArcgisLanguageApiPanel & JSXBase.HTMLAttributes<HTMLArcgisLanguageApiPanelElement>;
590
+ "arcgis-sql-expression-editor": LocalJSX.ArcgisSqlExpressionEditor & JSXBase.HTMLAttributes<HTMLArcgisSqlExpressionEditorElement>;
591
+ "arcgis-sql-expression-fields": LocalJSX.ArcgisSqlExpressionFields & JSXBase.HTMLAttributes<HTMLArcgisSqlExpressionFieldsElement>;
518
592
  }
519
593
  }
520
594
  }
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from "@storybook/web-components";
2
+ import { type Components } from "../../../src/components";
3
+ declare const meta: Meta<Components.ArcgisSqlExpressionEditor>;
4
+ export default meta;
5
+ interface Configuration {
6
+ portalKey: "devext" | "qaext" | "www";
7
+ itemId: string;
8
+ sublayerId?: number;
9
+ }
10
+ type StoryType = Components.ArcgisArcadeEditor & {
11
+ configuration: Configuration;
12
+ };
13
+ export declare const SimpleStory: StoryObj<StoryType>;
@@ -2,24 +2,20 @@
2
2
  * This is a workaround for missing JSX typing for components authored in Stencil.
3
3
  * @see https://github.com/maxpatiiuk/web-component-framework-benchmarks/tree/stencil-calcite-no-typing/stencil
4
4
  */
5
-
6
5
  import type { JSX as CalciteJsx } from "@esri/calcite-components/dist/types/components";
7
6
  import type { JSXBase } from "./stencil-public-runtime";
8
-
9
7
  /**
10
8
  * The "JSX" type exported from @esri/calcite-components includes only component
11
9
  * props, without HTMLElement props. This type re-maps the Calcite JSX type to
12
10
  * add HTMLElement props
13
11
  */
14
12
  type ReMappedCalciteJsx = {
15
- [Key in keyof CalciteJsx.IntrinsicElements]: Partial<
16
- CalciteJsx.IntrinsicElements[Key] & JSXBase.HTMLAttributes<HTMLElementTagNameMap[Key]>
17
- >;
13
+ [Key in keyof CalciteJsx.IntrinsicElements]: JSXBase.HTMLAttributes<HTMLElementTagNameMap[Key]>;
18
14
  };
19
-
20
15
  declare module "@stencil/core" {
21
- export namespace JSX {
22
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
23
- interface IntrinsicElements extends ReMappedCalciteJsx {}
24
- }
16
+ namespace JSX {
17
+ interface IntrinsicElements extends ReMappedCalciteJsx {
18
+ }
19
+ }
25
20
  }
21
+ export {};