@arcgis/coding-components 4.31.0-next.83 → 4.31.0-next.85

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 (135) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +73 -73
  3. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ar.json +6 -6
  4. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.bg.json +6 -6
  5. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.bs.json +6 -6
  6. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ca.json +6 -6
  7. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.cs.json +6 -6
  8. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.da.json +6 -6
  9. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.de.json +6 -6
  10. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.el.json +6 -6
  11. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.es.json +6 -6
  12. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.et.json +6 -6
  13. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.fi.json +6 -6
  14. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.fr.json +6 -6
  15. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.he.json +6 -6
  16. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.hr.json +6 -6
  17. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.hu.json +6 -6
  18. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.id.json +6 -6
  19. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.it.json +6 -6
  20. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ja.json +6 -6
  21. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ko.json +6 -6
  22. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.lt.json +6 -6
  23. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.lv.json +6 -6
  24. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.nb.json +6 -6
  25. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.nl.json +6 -6
  26. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pl.json +6 -6
  27. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pt-BR.json +6 -6
  28. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pt-PT.json +6 -6
  29. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ro.json +6 -6
  30. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ru.json +6 -6
  31. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sk.json +6 -6
  32. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sl.json +6 -6
  33. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sr.json +6 -6
  34. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sv.json +6 -6
  35. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.th.json +6 -6
  36. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.tr.json +6 -6
  37. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.uk.json +6 -6
  38. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.vi.json +6 -6
  39. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-CN.json +6 -6
  40. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-HK.json +6 -6
  41. package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-TW.json +6 -6
  42. package/dist/arcgis-coding-components/index.esm.js +2 -2
  43. package/dist/arcgis-coding-components/{p-147a52cb.js → p-21986b95.js} +2 -2
  44. package/dist/arcgis-coding-components/{p-7f2e71d2.js → p-34f45a39.js} +1 -1
  45. package/dist/arcgis-coding-components/p-40e55c7e.entry.js +6 -0
  46. package/dist/arcgis-coding-components/{p-49fd13d9.js → p-4dc09b9b.js} +2 -2
  47. package/dist/arcgis-coding-components/{p-00f68e4b.js → p-4f1f2dd0.js} +2 -2
  48. package/dist/arcgis-coding-components/{p-30d246c3.js → p-6b2d51ce.js} +3 -3
  49. package/dist/arcgis-coding-components/{p-c37525ab.js → p-6ba86387.js} +2 -2
  50. package/dist/arcgis-coding-components/{p-2243b3dd.js → p-6db4951f.js} +2 -2
  51. package/dist/arcgis-coding-components/{p-3958b9fe.js → p-6dddf7c6.js} +10 -10
  52. package/dist/arcgis-coding-components/{p-633efe4c.js → p-717b28d7.js} +1 -1
  53. package/dist/arcgis-coding-components/{p-068e84dd.js → p-79d58774.js} +2 -2
  54. package/dist/arcgis-coding-components/{p-0fa6886f.js → p-8504f6ee.js} +2 -2
  55. package/dist/arcgis-coding-components/{p-f8f95cd3.js → p-88ac4d4e.js} +1 -1
  56. package/dist/arcgis-coding-components/{p-a23c02de.js → p-88de12c7.js} +2 -2
  57. package/dist/arcgis-coding-components/{p-43677e31.entry.js → p-aad7c354.entry.js} +2 -2
  58. package/dist/arcgis-coding-components/{p-161baaec.js → p-d0decfa1.js} +2 -2
  59. package/dist/arcgis-coding-components/{p-59f4f463.entry.js → p-ef40e5fb.entry.js} +2 -2
  60. package/dist/arcgis-coding-components/{p-92e73271.js → p-f9a6d614.js} +2 -2
  61. package/dist/cjs/{app-globals-6d0248f7.js → app-globals-64321eee.js} +1 -1
  62. package/dist/cjs/{arcade-defaults-b0a05d80.js → arcade-defaults-adc065a1.js} +3 -3
  63. package/dist/cjs/{arcade-mode-cf8ab475.js → arcade-mode-edd4fdf3.js} +3 -3
  64. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
  65. package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
  66. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +12 -6
  67. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  68. package/dist/cjs/{css-b03bb7e7.js → css-28229e9e.js} +1 -1
  69. package/dist/cjs/{cssMode-93baa37f.js → cssMode-bab07355.js} +3 -3
  70. package/dist/cjs/{html-295342a5.js → html-5b883749.js} +3 -3
  71. package/dist/cjs/{htmlMode-6560a5af.js → htmlMode-95f8a4cc.js} +3 -3
  72. package/dist/cjs/{index-a8a3d899.js → index-e078ddd9.js} +1 -1
  73. package/dist/cjs/index.cjs.js +4 -4
  74. package/dist/cjs/{javascript-6fd7155f.js → javascript-f1667c96.js} +4 -4
  75. package/dist/cjs/{jsonMode-96e9d0f5.js → jsonMode-8b831485.js} +3 -3
  76. package/dist/cjs/loader.cjs.js +4 -4
  77. package/dist/cjs/{sql-expr-defaults-621a6814.js → sql-expr-defaults-0a2f3160.js} +10 -10
  78. package/dist/cjs/{sql-expr-mode-a8ef60ca.js → sql-expr-mode-658d46fd.js} +3 -3
  79. package/dist/cjs/{tsMode-68f57770.js → tsMode-9327cb13.js} +3 -3
  80. package/dist/cjs/{typescript-8afe0878.js → typescript-8e259ec5.js} +3 -3
  81. package/dist/cjs/{useT9n-b9982af9.js → useT9n-c50e3a5b.js} +3 -3
  82. package/dist/components/arcade-defaults.js +1 -1
  83. package/dist/components/arcade-mode.js +1 -1
  84. package/dist/components/arcade-results.js +2 -2
  85. package/dist/components/arcade-suggestions.js +2 -2
  86. package/dist/components/arcgis-arcade-editor.js +2 -2
  87. package/dist/components/arcgis-arcade-results.js +1 -1
  88. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  89. package/dist/components/arcgis-assets.d.ts +1 -1
  90. package/dist/components/arcgis-assets.js +1 -1
  91. package/dist/components/arcgis-code-editor.js +1 -1
  92. package/dist/components/arcgis-editor-variables.js +1 -1
  93. package/dist/components/arcgis-language-api-panel.js +1 -1
  94. package/dist/components/arcgis-sql-expression-editor.js +12 -5
  95. package/dist/components/arcgis-sql-expression-fields.js +2 -2
  96. package/dist/components/{chunk-A4MUWALE.js → chunk-IUUKU7EW.js} +1 -1
  97. package/dist/components/code-editor.js +2 -2
  98. package/dist/components/editor-variables.js +2 -2
  99. package/dist/components/fields.js +1 -1
  100. package/dist/components/index.js +1 -1
  101. package/dist/components/index2.js +1 -1
  102. package/dist/components/language-api-panel.js +2 -2
  103. package/dist/components/markdown.js +1 -1
  104. package/dist/components/sql-expr-defaults.js +1 -1
  105. package/dist/components/sql-expr-mode.js +1 -1
  106. package/dist/components/useT9n.js +2 -2
  107. package/dist/components/utilities.js +1 -1
  108. package/dist/esm/{app-globals-70b626f1.js → app-globals-0fdff2c9.js} +1 -1
  109. package/dist/esm/{arcade-defaults-60fb74bd.js → arcade-defaults-fc8720cf.js} +3 -3
  110. package/dist/esm/{arcade-mode-5f4b68c1.js → arcade-mode-09716194.js} +3 -3
  111. package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
  112. package/dist/esm/arcgis-coding-components.js +5 -5
  113. package/dist/esm/arcgis-sql-expression-editor.entry.js +12 -6
  114. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  115. package/dist/esm/{css-99f2d5dd.js → css-ee3a1991.js} +1 -1
  116. package/dist/esm/{cssMode-93e55210.js → cssMode-dc6b1abe.js} +3 -3
  117. package/dist/esm/{html-f345229f.js → html-d289b15b.js} +3 -3
  118. package/dist/esm/{htmlMode-65e942c2.js → htmlMode-ac296150.js} +3 -3
  119. package/dist/esm/{index-61f30af7.js → index-6e2de412.js} +1 -1
  120. package/dist/esm/index.js +4 -4
  121. package/dist/esm/{javascript-77d5681f.js → javascript-376b79d1.js} +4 -4
  122. package/dist/esm/{jsonMode-3f0cd60c.js → jsonMode-d7625920.js} +3 -3
  123. package/dist/esm/loader.js +5 -5
  124. package/dist/esm/{sql-expr-defaults-228bcdc8.js → sql-expr-defaults-443c4344.js} +10 -10
  125. package/dist/esm/{sql-expr-mode-c75f4a29.js → sql-expr-mode-049af586.js} +3 -3
  126. package/dist/esm/{tsMode-b05e1aba.js → tsMode-bc18818c.js} +3 -3
  127. package/dist/esm/{typescript-bad965ed.js → typescript-057af1f6.js} +3 -3
  128. package/dist/esm/{useT9n-ceabf769.js → useT9n-574037bc.js} +3 -3
  129. package/dist/loader/cdn.js +1 -1
  130. package/dist/loader/index.cjs.js +1 -1
  131. package/dist/loader/index.es2017.js +1 -1
  132. package/dist/loader/index.js +1 -1
  133. package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +1 -0
  134. package/package.json +11 -11
  135. package/dist/arcgis-coding-components/p-e075614f.entry.js +0 -6
@@ -1,12 +1,12 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
8
8
  import { f as filterCollection } from './utilities.js';
9
- import { u as useControllerManager } from './chunk-A4MUWALE.js';
9
+ import { u as useControllerManager } from './chunk-IUUKU7EW.js';
10
10
  import { t as setFocusOnElement } from './index2.js';
11
11
  import { u as useT9n } from './useT9n.js';
12
12
  import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
@@ -1,13 +1,13 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { KeyCode } from 'monaco-editor';
8
8
  import { d as defineCustomElement$6, e as executeScript, D as DevelopersWebSitePath } from './arcade-results.js';
9
9
  import { d as defineCustomElement$4, u as updateThemeColors, c as colorRulesKeys, s as setupMonacoEnvironment, g as getArcadeDiagnosticService } from './code-editor.js';
10
- import { u as useControllerManager, g as getSet } from './chunk-A4MUWALE.js';
10
+ import { u as useControllerManager, g as getSet } from './chunk-IUUKU7EW.js';
11
11
  import { D as Deferred, g as generateGuid, e as getElementTheme } from './index2.js';
12
12
  import { b as arcadeDefaults } from './arcade-defaults.js';
13
13
  import { u as useT9n } from './useT9n.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
7
7
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
7
7
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
 
7
7
  /**
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  let resourceUrl = "https://js.arcgis.com/coding-components/next/";
7
7
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
7
7
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { A as ArcgisEditorVariables$1, d as defineCustomElement$1 } from './editor-variables.js';
7
7
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { A as ArcgisLanguageApiPanel$1, d as defineCustomElement$1 } from './language-api-panel.js';
7
7
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
- import { u as useControllerManager } from './chunk-A4MUWALE.js';
7
+ import { u as useControllerManager } from './chunk-IUUKU7EW.js';
8
8
  import { g as generateGuid } from './index2.js';
9
9
  import { d as sqlExprDefaults } from './sql-expr-defaults.js';
10
10
  import { u as useT9n } from './useT9n.js';
@@ -13,11 +13,12 @@ import { d as defineCustomElement$3 } from './editor-variables.js';
13
13
  import { d as defineCustomElement$2 } from './language-api-panel.js';
14
14
  import "@esri/calcite-components/dist/components/calcite-action-bar.js";
15
15
  import "@esri/calcite-components/dist/components/calcite-action.js";
16
+ import "@esri/calcite-components/dist/components/calcite-tooltip.js";
16
17
 
17
18
  const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
18
19
  const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
19
20
 
20
- const __cmpMeta = [0,"arcgis-sql-expression-editor",{"profile":[1040],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"messages":[32]},undefined,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}];
21
+ const __cmpMeta = [0,"arcgis-sql-expression-editor",{"profile":[1040],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"sideActionBarExpanded":[32],"messages":[32]},undefined,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}];
21
22
  const SqlExpressionEditor = /*@__PURE__*/ proxyCustomElement(class SqlExpressionEditor extends HTMLElement {
22
23
  connectedCallback() { this.manager._connectedCallback(); }
23
24
  disconnectedCallback() { this.manager._disconnectedCallback(); }
@@ -46,6 +47,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
46
47
  this._editorProfile = undefined;
47
48
  this._activeAction = undefined;
48
49
  this._apiLibrary = undefined;
50
+ this.sideActionBarExpanded = false;
49
51
  this.messages = useT9n();
50
52
  this.profile = undefined;
51
53
  this.script = "";
@@ -74,6 +76,11 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
74
76
  }
75
77
  }
76
78
  _setActiveAction(action) {
79
+ // if the action is already active, close the panel
80
+ if (this._activeAction === action) {
81
+ this._activeAction = undefined;
82
+ return;
83
+ }
77
84
  this._activeAction = action;
78
85
  }
79
86
  _handleActionClick(e) {
@@ -110,9 +117,9 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
110
117
  // #endregion
111
118
  render() {
112
119
  const variable = this._getFeatureSetVariable();
113
- return (h(Host, { key: '68c73513b93f3509d8113eaa32a08f2fbf647427' }, h("div", { key: '5ca783649ff7d73e170bcc7e066545f876303d78', class: "flex-row flex-adjustable" }, h("div", { key: 'a7d4a39802a0ae38089c0491ae6dbdb462e476c5', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: '8dcae6b4cd56a035beadd32a8d7140bc123424fc', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (h("arcgis-editor-variables", { key: '5b1e2d0afd9c0c63b2135c00a380ae3708fa18f6', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (h("arcgis-language-api-panel", { key: '423bbdbe0e8b54c2c630a1f741f3894be22741ab', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none" })), h("calcite-action-bar", { key: '300f670c25b9eca51fc34c94726d7a43d89dd68d', class: "side-action-bar border-inline-start", expanded: false, position: "end" }, h("calcite-action", { key: '779c32f84f04208feb7675b4b0f23a070b780492', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
120
+ return (h(Host, { key: '5f95a72e1b00e27ed5f8316b002d25a443461419' }, h("div", { key: '925c0b2438054eeeacdd46a422f131f894c77f55', class: "flex-row flex-adjustable" }, h("div", { key: 'a74d000c1f6b2bce5e4fb09d4af8c1daf726610b', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: 'e38fb8c645fcbeaa8089c5dfe512cec47ea14fb2', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (h("arcgis-editor-variables", { key: '9ad19a58a50b172bec3382d605f1d5a61975f5da', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (h("arcgis-language-api-panel", { key: '9572f9acb6885000f15c0cf95321a9489eaa124a', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none" })), h("calcite-action-bar", { key: '8399751840445b9e98825521e7929689216d90e2', class: "side-action-bar border-inline-start", expanded: this.sideActionBarExpanded, position: "end" }, h("calcite-action", { key: '98c325f268f5d3a4d5fea19143e759157ae2f5b9', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
114
121
  // need to use an arrow function to automatically bind 'this'
115
- onClick: (e) => this._handleActionClick(e) }), h("calcite-action", { key: '5e115476df037fb8eace7c02d9a025b800a80ab7', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) })))));
122
+ onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: 'ec9271d314217e648eac40ec4b3a788ee1f935af', "reference-element": "fields-action" }, h("span", { key: '09b2840a94edfa22c264e92eeaac144cc90c67c5' }, this.messages.fields ?? "Fields"))), h("calcite-action", { key: 'a24d9694a6c4102e82314005c4d8243261d122d0', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: 'fd21276945b77961ca21e794aaee340ed088f3d4', "reference-element": "functions-action" }, h("span", { key: '4f83ba17b426b10270cb1ae35a3e3e117928e0cb' }, this.messages.functions ?? "Functions")))))));
116
123
  }
117
124
  static get assetsDirs() { return ["assets"]; }
118
125
  get el() { return this; }
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
- import { u as useControllerManager } from './chunk-A4MUWALE.js';
7
+ import { u as useControllerManager } from './chunk-IUUKU7EW.js';
8
8
  import { d as sqlExprDefaults } from './sql-expr-defaults.js';
9
9
  import { u as useT9n } from './useT9n.js';
10
10
  import "@esri/calcite-components/dist/components/calcite-block.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { a as isNotUndefined, D as Deferred, k as safeAsyncCall, l as devToolsAwareTimeout, m as safeCall } from './index2.js';
7
7
 
@@ -1,13 +1,13 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { editor, languages, Range, Uri, KeyMod, KeyCode } from 'monaco-editor';
8
8
  import { i as importRequest } from './fields.js';
9
9
  import { h as isURL, j as hasSameOrigin, D as Deferred, g as generateGuid, o as observeAncestorsMutation, e as getElementTheme } from './index2.js';
10
- import { u as useControllerManager, g as getSet } from './chunk-A4MUWALE.js';
10
+ import { u as useControllerManager, g as getSet } from './chunk-IUUKU7EW.js';
11
11
  import { b as arcadeDefaults } from './arcade-defaults.js';
12
12
  import { d as sqlExprDefaults } from './sql-expr-defaults.js';
13
13
  import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
- import { u as useControllerManager } from './chunk-A4MUWALE.js';
7
+ import { u as useControllerManager } from './chunk-IUUKU7EW.js';
8
8
  import { t as setFocusOnElement, d as createFilterExpression } from './index2.js';
9
9
  import { u as useT9n } from './useT9n.js';
10
10
  import "@esri/calcite-components/dist/components/calcite-flow-item.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  // src/index.ts
7
7
  var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis && !("forceESM" in window.$arcgis);
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
7
7
  export { a as arcade } from './arcade-defaults.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  // src/array-utils.ts
7
7
 
@@ -1,12 +1,12 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, b as colorizedAllCodeElements } from './markdown.js';
8
8
  import { f as filterCollection } from './utilities.js';
9
- import { u as useControllerManager } from './chunk-A4MUWALE.js';
9
+ import { u as useControllerManager } from './chunk-IUUKU7EW.js';
10
10
  import { t as setFocusOnElement, b as addLTRMark } from './index2.js';
11
11
  import { u as useT9n } from './useT9n.js';
12
12
  import "@esri/calcite-components/dist/components/calcite-list-item-group.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { editor } from 'monaco-editor';
7
7
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { n as newLayersFeatureLayer, i as importRequest, s as supportedFields, a as newPortalPortalItem, b as newWebScene, c as newWebMap, f as fieldAlias, d as fieldTypeToIconName, e as fieldTypeToApiValueVarType } from './fields.js';
7
7
  import { InsertTextMode, InsertTextFormat, CompletionItemKind, MarkupKind } from 'vscode-languageserver-types';
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { editor, languages, Emitter } from 'monaco-editor';
7
7
  import { D as Deferred, u as debounce } from './index2.js';
@@ -1,9 +1,9 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-A4MUWALE.js';
6
+ import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-IUUKU7EW.js';
7
7
  import { p as startLocaleObserver, r as getElementLocales } from './index2.js';
8
8
  import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
9
9
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  import { d as createFilterExpression } from './index2.js';
7
7
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  const globalScripts = () => {};
7
7
 
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-228bcdc8.js';
7
- import { g as getAssetPath } from './index-61f30af7.js';
6
+ import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-443c4344.js';
7
+ import { g as getAssetPath } from './index-6e2de412.js';
8
8
 
9
9
  // #region convert editor profile to apiProfile
10
10
  /**
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { m as main, h as editor, Q as MarkerSeverity, R as Range, x as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-228bcdc8.js';
7
- import './index-61f30af7.js';
6
+ import { m as main, h as editor, Q as MarkerSeverity, R as Range, x as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-443c4344.js';
7
+ import './index-6e2de412.js';
8
8
 
9
9
  var V={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},xe=["++","--"],Ge=["-","+","!","~"],Je=["=","/=","*=","%=","+=","-="],Qe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];xe.forEach(e=>U[e.length-1]?.push(e));Ge.forEach(e=>U[e.length-1]?.push(e));Qe.forEach(e=>U[e.length-1]?.push(e));Je.forEach(e=>U[e.length-1]?.push(e));Lt.forEach(e=>U[e.length-1]?.push(e));var lt=Object.values(f),pt=Object.values(V);pt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Constant}));lt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Keyword}));
10
10
 
@@ -1,12 +1,12 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-61f30af7.js';
7
- import { g as importArcade, h as editor, j as isURL, k as hasSameOrigin, l as importRequest, D as Deferred, n as generateGuid, o as getElementTheme, K as KeyCode, p as setValuesInString, q as quoteString, r as supportedFields, t as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, u as commonjsGlobal, v as setFocusOnElement, w as filterCollection, x as languages, y as sqlExprDefaults, R as Range, z as observeAncestorsMutation, U as Uri, A as KeyMod, B as createFilterExpression, C as addLTRMark } from './sql-expr-defaults-228bcdc8.js';
8
- import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-ceabf769.js';
9
- import { b as arcadeDefaults } from './arcade-defaults-60fb74bd.js';
6
+ import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-6e2de412.js';
7
+ import { g as importArcade, h as editor, j as isURL, k as hasSameOrigin, l as importRequest, D as Deferred, n as generateGuid, o as getElementTheme, K as KeyCode, p as setValuesInString, q as quoteString, r as supportedFields, t as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, u as commonjsGlobal, v as setFocusOnElement, w as filterCollection, x as languages, y as sqlExprDefaults, R as Range, z as observeAncestorsMutation, U as Uri, A as KeyMod, B as createFilterExpression, C as addLTRMark } from './sql-expr-defaults-443c4344.js';
8
+ import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-574037bc.js';
9
+ import { b as arcadeDefaults } from './arcade-defaults-fc8720cf.js';
10
10
 
11
11
  const DevelopersWebSitePath = "https://developers.arcgis.com/arcade/";
12
12
  const MaxArrayItems = 100;
@@ -363,7 +363,7 @@ async function getArcadeDiagnosticService() {
363
363
  * @returns arcade mode module
364
364
  */
365
365
  async function getMode$1() {
366
- return await import('./arcade-mode-5f4b68c1.js');
366
+ return await import('./arcade-mode-09716194.js');
367
367
  }
368
368
 
369
369
  const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-color-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
@@ -4011,7 +4011,7 @@ languages.onLanguage(arcadeDefaults.languageId, () => {
4011
4011
  * @returns sql-expression mode module
4012
4012
  */
4013
4013
  async function getMode() {
4014
- return await import('./sql-expr-mode-c75f4a29.js');
4014
+ return await import('./sql-expr-mode-049af586.js');
4015
4015
  }
4016
4016
 
4017
4017
  // Register the language in Monaco
@@ -1,11 +1,11 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-61f30af7.js';
7
- export { s as setNonce } from './index-61f30af7.js';
8
- import { g as globalScripts } from './app-globals-70b626f1.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-6e2de412.js';
7
+ export { s as setNonce } from './index-6e2de412.js';
8
+ import { g as globalScripts } from './app-globals-0fdff2c9.js';
9
9
 
10
10
  /*
11
11
  Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -21,5 +21,5 @@ var patchBrowser = () => {
21
21
 
22
22
  patchBrowser().then(async (options) => {
23
23
  await globalScripts();
24
- return bootstrapLazy([["arcgis-arcade-editor_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-editor-variables",{"loading":[4],"modelId":[1,"model-id"],"variable":[16],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32],"_mode":[32]},null,{"modelId":["modelIdPropChanged"],"variable":["_variableChanged"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"apiLibrary":["_apiLibraryChanged"]}]]],["arcgis-sql-expression-editor",[[0,"arcgis-sql-expression-editor",{"profile":[16],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"messages":[32]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}]]],["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]]], options);
24
+ return bootstrapLazy([["arcgis-arcade-editor_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-editor-variables",{"loading":[4],"modelId":[1,"model-id"],"variable":[16],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32],"_mode":[32]},null,{"modelId":["modelIdPropChanged"],"variable":["_variableChanged"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"apiLibrary":["_apiLibraryChanged"]}]]],["arcgis-sql-expression-editor",[[0,"arcgis-sql-expression-editor",{"profile":[16],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"sideActionBarExpanded":[32],"messages":[32]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}]]],["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]]], options);
25
25
  });
@@ -1,11 +1,11 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-61f30af7.js';
7
- import { u as useControllerManager, a as useT9n } from './useT9n-ceabf769.js';
8
- import { n as generateGuid, y as sqlExprDefaults } from './sql-expr-defaults-228bcdc8.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-6e2de412.js';
7
+ import { u as useControllerManager, a as useT9n } from './useT9n-574037bc.js';
8
+ import { n as generateGuid, y as sqlExprDefaults } from './sql-expr-defaults-443c4344.js';
9
9
 
10
10
  const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
11
11
  const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
@@ -34,6 +34,7 @@ const SqlExpressionEditor = class {
34
34
  this._editorProfile = undefined;
35
35
  this._activeAction = undefined;
36
36
  this._apiLibrary = undefined;
37
+ this.sideActionBarExpanded = false;
37
38
  this.messages = useT9n();
38
39
  this.profile = undefined;
39
40
  this.script = "";
@@ -62,6 +63,11 @@ const SqlExpressionEditor = class {
62
63
  }
63
64
  }
64
65
  _setActiveAction(action) {
66
+ // if the action is already active, close the panel
67
+ if (this._activeAction === action) {
68
+ this._activeAction = undefined;
69
+ return;
70
+ }
65
71
  this._activeAction = action;
66
72
  }
67
73
  _handleActionClick(e) {
@@ -98,9 +104,9 @@ const SqlExpressionEditor = class {
98
104
  // #endregion
99
105
  render() {
100
106
  const variable = this._getFeatureSetVariable();
101
- return (h(Host, { key: '68c73513b93f3509d8113eaa32a08f2fbf647427' }, h("div", { key: '5ca783649ff7d73e170bcc7e066545f876303d78', class: "flex-row flex-adjustable" }, h("div", { key: 'a7d4a39802a0ae38089c0491ae6dbdb462e476c5', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: '8dcae6b4cd56a035beadd32a8d7140bc123424fc', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (h("arcgis-editor-variables", { key: '5b1e2d0afd9c0c63b2135c00a380ae3708fa18f6', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (h("arcgis-language-api-panel", { key: '423bbdbe0e8b54c2c630a1f741f3894be22741ab', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none" })), h("calcite-action-bar", { key: '300f670c25b9eca51fc34c94726d7a43d89dd68d', class: "side-action-bar border-inline-start", expanded: false, position: "end" }, h("calcite-action", { key: '779c32f84f04208feb7675b4b0f23a070b780492', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
107
+ return (h(Host, { key: '5f95a72e1b00e27ed5f8316b002d25a443461419' }, h("div", { key: '925c0b2438054eeeacdd46a422f131f894c77f55', class: "flex-row flex-adjustable" }, h("div", { key: 'a74d000c1f6b2bce5e4fb09d4af8c1daf726610b', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: 'e38fb8c645fcbeaa8089c5dfe512cec47ea14fb2', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (h("arcgis-editor-variables", { key: '9ad19a58a50b172bec3382d605f1d5a61975f5da', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (h("arcgis-language-api-panel", { key: '9572f9acb6885000f15c0cf95321a9489eaa124a', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none" })), h("calcite-action-bar", { key: '8399751840445b9e98825521e7929689216d90e2', class: "side-action-bar border-inline-start", expanded: this.sideActionBarExpanded, position: "end" }, h("calcite-action", { key: '98c325f268f5d3a4d5fea19143e759157ae2f5b9', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
102
108
  // need to use an arrow function to automatically bind 'this'
103
- onClick: (e) => this._handleActionClick(e) }), h("calcite-action", { key: '5e115476df037fb8eace7c02d9a025b800a80ab7', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) })))));
109
+ onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: 'ec9271d314217e648eac40ec4b3a788ee1f935af', "reference-element": "fields-action" }, h("span", { key: '09b2840a94edfa22c264e92eeaac144cc90c67c5' }, this.messages.fields ?? "Fields"))), h("calcite-action", { key: 'a24d9694a6c4102e82314005c4d8243261d122d0', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: 'fd21276945b77961ca21e794aaee340ed088f3d4', "reference-element": "functions-action" }, h("span", { key: '4f83ba17b426b10270cb1ae35a3e3e117928e0cb' }, this.messages.functions ?? "Functions")))))));
104
110
  }
105
111
  static get assetsDirs() { return ["assets"]; }
106
112
  get el() { return getElement(this); }
@@ -1,11 +1,11 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-61f30af7.js';
7
- import { u as useControllerManager, a as useT9n } from './useT9n-ceabf769.js';
8
- import { y as sqlExprDefaults } from './sql-expr-defaults-228bcdc8.js';
6
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-6e2de412.js';
7
+ import { u as useControllerManager, a as useT9n } from './useT9n-574037bc.js';
8
+ import { y as sqlExprDefaults } from './sql-expr-defaults-443c4344.js';
9
9
 
10
10
  const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
11
11
  const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
@@ -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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * 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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-228bcdc8.js';
7
- import './index-61f30af7.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-443c4344.js';
7
+ import './index-6e2de412.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-228bcdc8.js';
7
- import './index-61f30af7.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-443c4344.js';
7
+ import './index-6e2de412.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-228bcdc8.js';
7
- import './index-61f30af7.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-443c4344.js';
7
+ import './index-6e2de412.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.83
4
+ * v4.31.0-next.85
5
5
  */
6
6
  const NAMESPACE = 'arcgis-coding-components';
7
7
  const BUILD = /* arcgis-coding-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
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.83
4
+ * v4.31.0-next.85
5
5
  */
6
- export { a as arcade } from './arcade-defaults-60fb74bd.js';
7
- export { s as sqlExpression } from './sql-expr-defaults-228bcdc8.js';
8
- import './index-61f30af7.js';
6
+ export { a as arcade } from './arcade-defaults-fc8720cf.js';
7
+ export { s as sqlExpression } from './sql-expr-defaults-443c4344.js';
8
+ import './index-6e2de412.js';