@arcgis/coding-components 4.32.0-next.36 → 4.32.0-next.38

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 (88) hide show
  1. package/dist/arcgis-coding-components/{JPDXK2HN.js → 3HUHU26F.js} +2 -2
  2. package/dist/arcgis-coding-components/{BDS2UWZH.js → 4N3GUE2G.js} +2 -2
  3. package/dist/arcgis-coding-components/57BEP6CD.js +6 -0
  4. package/dist/arcgis-coding-components/6G2WELIY.js +6 -0
  5. package/dist/arcgis-coding-components/{NJBJ7EWC.js → 6GFJX7HU.js} +2 -2
  6. package/dist/arcgis-coding-components/{ETG2QJKT.js → 6KDWDYVA.js} +2 -2
  7. package/dist/arcgis-coding-components/6QJWPZHP.js +6 -0
  8. package/dist/arcgis-coding-components/{FRTVYQPI.js → 7M6SESPO.js} +2 -2
  9. package/dist/arcgis-coding-components/7QMQQ4TN.js +6 -0
  10. package/dist/arcgis-coding-components/{DJ2GDEVZ.js → BS34C3BZ.js} +2 -2
  11. package/dist/arcgis-coding-components/{BOTRITC3.js → CNU2GMDM.js} +2 -2
  12. package/dist/arcgis-coding-components/{CH2ZBYJL.js → ESJSHYKM.js} +2 -2
  13. package/dist/arcgis-coding-components/{WX6PL3OW.js → FNC437NW.js} +2 -2
  14. package/dist/arcgis-coding-components/{7EQ5ORAJ.js → HFHONK36.js} +2 -2
  15. package/dist/arcgis-coding-components/{DSLERYVJ.js → IKNATZ6Y.js} +2 -2
  16. package/dist/arcgis-coding-components/{7O7T37IN.js → JXISXYIO.js} +3 -3
  17. package/dist/arcgis-coding-components/{GEP4KWED.js → KCR2IYM3.js} +2 -2
  18. package/dist/arcgis-coding-components/{EPUNBYUS.js → M67W4T3R.js} +2 -2
  19. package/dist/arcgis-coding-components/{ZDTK3XPV.js → MUAXPGK2.js} +2 -2
  20. package/dist/arcgis-coding-components/{7JVGWMBO.js → N4BGEYQC.js} +2 -2
  21. package/dist/arcgis-coding-components/{KHC3MYQU.js → ONHEAIWL.js} +1 -1
  22. package/dist/arcgis-coding-components/{SQ4TC7TY.js → OTJUKTBB.js} +1 -1
  23. package/dist/arcgis-coding-components/{M5N7FD3B.js → OY76CCSI.js} +2 -2
  24. package/dist/arcgis-coding-components/{NKMH5M7L.js → P3CGSBRQ.js} +2 -2
  25. package/dist/arcgis-coding-components/{YN653IZA.js → S65UXLUI.js} +2 -2
  26. package/dist/arcgis-coding-components/T5XSJEZK.js +6 -0
  27. package/dist/arcgis-coding-components/{FCV5QCHQ.js → VB7HPQBB.js} +2 -2
  28. package/dist/arcgis-coding-components/{NISEGZWM.js → WQ35HJ3S.js} +1 -1
  29. package/dist/arcgis-coding-components/{MQRHDY2S.js → WTUFL7AE.js} +2 -2
  30. package/dist/arcgis-coding-components/{JLZUXOSJ.js → XXTVX3PN.js} +2 -2
  31. package/dist/arcgis-coding-components/{SMDHWAMZ.js → Y5VAO46O.js} +2 -2
  32. package/dist/arcgis-coding-components/{Y336CSDY.js → YLXL3E7L.js} +1 -1
  33. package/dist/arcgis-coding-components/{GIVLERGL.js → Z3AD4CXU.js} +2 -2
  34. package/dist/arcgis-coding-components/{UBVBDXTI.js → ZBWB7BGP.js} +2 -2
  35. package/dist/arcgis-coding-components/{63ZQ4BEU.js → ZHVXLP6Z.js} +2 -2
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +331 -278
  38. package/dist/chunks/arcade-defaults.js +1 -1
  39. package/dist/chunks/arcade-executor.js +1 -1
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +1 -1
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +1 -1
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +1 -1
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  51. package/dist/components/arcgis-arcade-editor/index.d.ts +4 -4
  52. package/dist/components/arcgis-arcade-editor/index.js +4 -4
  53. package/dist/components/arcgis-arcade-results/customElement.js +16 -16
  54. package/dist/components/arcgis-arcade-results/index.d.ts +9 -9
  55. package/dist/components/arcgis-arcade-results/index.js +9 -9
  56. package/dist/components/arcgis-arcade-suggestions/customElement.js +4 -4
  57. package/dist/components/arcgis-arcade-suggestions/index.d.ts +9 -9
  58. package/dist/components/arcgis-arcade-suggestions/index.js +9 -9
  59. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  60. package/dist/components/arcgis-editor-variables/customElement.js +33 -29
  61. package/dist/components/arcgis-editor-variables/index.d.ts +9 -9
  62. package/dist/components/arcgis-editor-variables/index.js +9 -9
  63. package/dist/components/arcgis-language-api-panel/customElement.js +8 -8
  64. package/dist/components/arcgis-language-api-panel/index.d.ts +10 -10
  65. package/dist/components/arcgis-language-api-panel/index.js +10 -10
  66. package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +22 -1
  67. package/dist/components/arcgis-sql-expression-editor/customElement.js +11 -11
  68. package/dist/components/arcgis-sql-expression-editor/index.d.ts +3 -3
  69. package/dist/components/arcgis-sql-expression-editor/index.js +3 -3
  70. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  71. package/dist/components/arcgis-sql-expression-fields/index.d.ts +6 -6
  72. package/dist/components/arcgis-sql-expression-fields/index.js +6 -6
  73. package/dist/docs/api.json +52 -4
  74. package/dist/docs/docs.json +42 -5
  75. package/dist/docs/vscode.html-custom-data.json +5 -0
  76. package/dist/docs/web-types.json +15 -1
  77. package/dist/index.js +1 -1
  78. package/dist/loader.js +2 -2
  79. package/dist/types/lumina.d.ts +1 -1
  80. package/dist/types/preact.d.ts +1 -1
  81. package/dist/types/react.d.ts +1 -1
  82. package/dist/types/stencil.d.ts +1 -1
  83. package/package.json +8 -8
  84. package/dist/arcgis-coding-components/7EGSORAE.js +0 -6
  85. package/dist/arcgis-coding-components/BQAVM27I.js +0 -6
  86. package/dist/arcgis-coding-components/F3MKXHSO.js +0 -6
  87. package/dist/arcgis-coding-components/V54JTMV6.js +0 -6
  88. package/dist/arcgis-coding-components/XJ2A24IN.js +0 -6
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextMode as f, InsertTextFormat as d } f
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.36
8
+ * v4.32.0-next.38
9
9
  */
10
10
  async function S(e) {
11
11
  const { apiVersion: i, bundles: t, hiddenApiItems: r } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
@@ -2,7 +2,7 @@ import { importArcade as C } from "@arcgis/core-adapter";
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- * v4.32.0-next.36
5
+ * v4.32.0-next.38
6
6
  */
7
7
  const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
8
8
  function u(t) {
@@ -9,7 +9,7 @@ import { debounce as T, Deferred as _ } from "@arcgis/components-utils";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.36
12
+ * v4.32.0-next.38
13
13
  */
14
14
  const y = [
15
15
  "<=",
@@ -3,7 +3,7 @@ import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.36
6
+ * v4.32.0-next.38
7
7
  */
8
8
  function a() {
9
9
  return !!window.MonacoEnvironment?.getWorkerUrl;
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.36
4
+ * v4.32.0-next.38
5
5
  */
6
6
  function t(e) {
7
7
  switch (e.type) {
@@ -9,7 +9,7 @@ import { Emitter as $, Uri as A } from "monaco-editor";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.36
12
+ * v4.32.0-next.38
13
13
  */
14
14
  function B(t) {
15
15
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
@@ -5,7 +5,7 @@ import { generateTokensCSSForColorMap as te } from "monaco-editor/esm/vs/editor/
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.36
8
+ * v4.32.0-next.38
9
9
  */
10
10
  async function ne(l) {
11
11
  return await (await ee()).colorize(l, "arcade", { tabSize: 2 });
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization";
6
6
  /*!
7
7
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- * v4.32.0-next.36
9
+ * v4.32.0-next.38
10
10
  */
11
11
  function g(r, t, n, m) {
12
12
  if (!t)
@@ -2,7 +2,7 @@ import { makeRuntime as t } from "@arcgis/lumina";
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- * v4.32.0-next.36
5
+ * v4.32.0-next.38
6
6
  */
7
7
  const s = t({ defaultAssetPath: "https://jsdev.arcgis.com/coding-components/next/", hydratedAttribute: "hydrated" }), { customElement: a, getAssetPath: o, setAssetPath: m } = s;
8
8
  export {
@@ -5,7 +5,7 @@ import { g as b } from "./runtime.js";
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.36
8
+ * v4.32.0-next.38
9
9
  */
10
10
  const x = (r) => {
11
11
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
@@ -8,7 +8,7 @@ import { a as d } from "./sql-expr-defaults.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.36
11
+ * v4.32.0-next.38
12
12
  */
13
13
  let h = new _();
14
14
  class k {
@@ -3,7 +3,7 @@ import { g as t } from "./runtime.js";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.36
6
+ * v4.32.0-next.38
7
7
  */
8
8
  const s = o(t);
9
9
  export {
@@ -15,7 +15,7 @@ import { css as w } from "@lit/reactive-element/css-tag.js";
15
15
  /*!
16
16
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
17
17
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
18
- * v4.32.0-next.36
18
+ * v4.32.0-next.38
19
19
  */
20
20
  const $ = w`arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}`;
21
21
  class y extends _ {
@@ -1,8 +1,8 @@
1
- import "@esri/calcite-components/dist/components/calcite-action-bar.js";
2
- import "@esri/calcite-components/dist/components/calcite-action-group.js";
3
- import "@esri/calcite-components/dist/components/calcite-action.js";
1
+ import "@esri/calcite-components/components/calcite-action-bar";
2
+ import "@esri/calcite-components/components/calcite-action-group";
3
+ import "@esri/calcite-components/components/calcite-action";
4
4
  import "../arcgis-code-editor/index.js";
5
- import "@esri/calcite-components/dist/components/calcite-tooltip.js";
5
+ import "@esri/calcite-components/components/calcite-tooltip";
6
6
  import "../arcgis-language-api-panel/index.js";
7
7
  import "../arcgis-editor-variables/index.js";
8
8
  import "../arcgis-arcade-suggestions/index.js";
@@ -1,8 +1,8 @@
1
- import "@esri/calcite-components/dist/components/calcite-action-bar.js";
2
- import "@esri/calcite-components/dist/components/calcite-action-group.js";
3
- import "@esri/calcite-components/dist/components/calcite-action.js";
1
+ import "@esri/calcite-components/components/calcite-action-bar";
2
+ import "@esri/calcite-components/components/calcite-action-group";
3
+ import "@esri/calcite-components/components/calcite-action";
4
4
  import "../arcgis-code-editor/index.js";
5
- import "@esri/calcite-components/dist/components/calcite-tooltip.js";
5
+ import "@esri/calcite-components/components/calcite-tooltip";
6
6
  import "../arcgis-language-api-panel/index.js";
7
7
  import "../arcgis-editor-variables/index.js";
8
8
  import "../arcgis-arcade-suggestions/index.js";
@@ -3,19 +3,19 @@ import { html as e } from "lit-html";
3
3
  import { LitElement as w, createEvent as $, safeClassMap as v, nothing as p } from "@arcgis/lumina";
4
4
  import { setValuesInString as o, quoteString as h } from "@arcgis/components-utils";
5
5
  import { M as u, v as g, B as f, f as T, a as S, b as k } from "../../chunks/arcade-executor.js";
6
- import { s as C } from "../../chunks/fields.js";
7
- import { u as P } from "../../chunks/useT9n.js";
8
- import { css as M } from "@lit/reactive-element/css-tag.js";
6
+ import { s as P } from "../../chunks/fields.js";
7
+ import { u as M } from "../../chunks/useT9n.js";
8
+ import { css as C } from "@lit/reactive-element/css-tag.js";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.36
12
+ * v4.32.0-next.38
13
13
  */
14
- const A = M`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, a = {
14
+ const A = C`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, a = {
15
15
  lines: !0,
16
16
  selectionMode: "none",
17
17
  scale: "s",
18
- onCalciteTreeSelect: (l) => l.target.selectedItems.forEach((t) => t.selected = !1)
18
+ oncalciteTreeSelect: (l) => l.currentTarget.selectedItems.forEach((t) => t.selected = !1)
19
19
  }, c = {
20
20
  onClick: (l) => {
21
21
  const t = l.currentTarget;
@@ -26,10 +26,10 @@ function n(l) {
26
26
  return e`<span class="dictionary-property">${l}</span><span>:&nbsp;</span>`;
27
27
  }
28
28
  function b(l, t = !1) {
29
- return e`<calcite-tree slot=${(t ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.onCalciteTreeSelect}><calcite-tree-item class="string-value">${JSON.stringify(l.castAsJson(), void 0, 2)}</calcite-tree-item></calcite-tree>`;
29
+ return e`<calcite-tree slot=${(t ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item class="string-value">${JSON.stringify(l.castAsJson(), void 0, 2)}</calcite-tree-item></calcite-tree>`;
30
30
  }
31
31
  function y(l, t = !1) {
32
- return e`<calcite-tree slot=${(t ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.onCalciteTreeSelect}><calcite-tree-item><div class="tree-item-label">${n("type")}${l.type}</div></calcite-tree-item><calcite-tree-item><div class="tree-item-label">${n("value")}<span class="string-value">${JSON.stringify(l, void 0, 2)}</span></div></calcite-tree-item></calcite-tree>`;
32
+ return e`<calcite-tree slot=${(t ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item><div class="tree-item-label">${n("type")}${l.type}</div></calcite-tree-item><calcite-tree-item><div class="tree-item-label">${n("value")}<span class="string-value">${JSON.stringify(l, void 0, 2)}</span></div></calcite-tree-item></calcite-tree>`;
33
33
  }
34
34
  function m(l) {
35
35
  switch (l.type) {
@@ -53,7 +53,7 @@ function m(l) {
53
53
  }
54
54
  }
55
55
  function I(l) {
56
- const t = C(l.value.fields);
56
+ const t = P(l.value.fields);
57
57
  return e`<table><thead><tr>${t.map((i) => e`<th>${i.name}</th>`)}</tr></thead><tbody>${l.features.map((i) => e`<tr>${t.map((s) => {
58
58
  try {
59
59
  const r = g(i.field(s.name));
@@ -65,7 +65,7 @@ function I(l) {
65
65
  }
66
66
  class L extends w {
67
67
  constructor() {
68
- super(...arguments), this.messages = P(), this.loading = !0, this.openedResultPanel = "output", this.arcgisClose = $({ bubbles: !1 }), this.arcgisOpenedResultPanelChange = $({ bubbles: !1 });
68
+ super(...arguments), this.messages = M(), this.loading = !0, this.openedResultPanel = "output", this.arcgisClose = $({ bubbles: !1 }), this.arcgisOpenedResultPanelChange = $({ bubbles: !1 });
69
69
  }
70
70
  static {
71
71
  this.properties = { consoleLogs: 0, loading: 5, openedResultPanel: 3, result: 0 };
@@ -139,16 +139,16 @@ class L extends w {
139
139
  return e`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}:&nbsp;</span>${m(this.result)}</div>`;
140
140
  case "array": {
141
141
  const i = (this.result.value ?? []).slice(0, u);
142
- return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.onCalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.renderArrayHeader(this.result)}</div>${this.renderArrayTree(i, !0)}</calcite-tree-item></calcite-tree></div>`;
142
+ return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.renderArrayHeader(this.result)}</div>${this.renderArrayTree(i, !0)}</calcite-tree-item></calcite-tree></div>`;
143
143
  }
144
144
  case "geometry":
145
- return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.onCalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${y(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
145
+ return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${y(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
146
146
  case "attachment":
147
- return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.onCalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${b(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
147
+ return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${b(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
148
148
  case "feature":
149
149
  case "dictionary":
150
150
  case "portal":
151
- return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.onCalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${this.renderDictionaryTree(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
151
+ return e`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${this.renderDictionaryTree(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
152
152
  case "featureSet":
153
153
  return e`<div class="result-value-table ltr-container">${this.renderFeatureSetLabel(this.result)}${I(this.result)}</div>`;
154
154
  case "knowledgeGraph":
@@ -164,14 +164,14 @@ class L extends w {
164
164
  })}</span>` : null}`;
165
165
  }
166
166
  renderArrayTree(t, i = !1) {
167
- return e`<calcite-tree slot=${(i ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.onCalciteTreeSelect}>${t.map((s, r) => {
167
+ return e`<calcite-tree slot=${(i ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}>${t.map((s, r) => {
168
168
  const d = g(s);
169
169
  return this.renderTreeItem(d, r, !i);
170
170
  })}</calcite-tree>`;
171
171
  }
172
172
  renderDictionaryTree(t, i = !1) {
173
173
  const s = t.geometry?.();
174
- return e`<calcite-tree slot=${(i ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.onCalciteTreeSelect}>${t.keys().map((r) => {
174
+ return e`<calcite-tree slot=${(i ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}>${t.keys().map((r) => {
175
175
  const d = g(t.field(r));
176
176
  return this.renderTreeItem(d, r);
177
177
  })}${s ? this.renderTreeItem({ type: "geometry", value: s }, "geometry") : null}</calcite-tree>`;
@@ -1,10 +1,10 @@
1
- import "@esri/calcite-components/dist/components/calcite-tree.js";
2
- import "@esri/calcite-components/dist/components/calcite-tree-item.js";
3
- import "@esri/calcite-components/dist/components/calcite-loader.js";
4
- import "@esri/calcite-components/dist/components/calcite-list.js";
5
- import "@esri/calcite-components/dist/components/calcite-list-item.js";
6
- import "@esri/calcite-components/dist/components/calcite-icon.js";
7
- import "@esri/calcite-components/dist/components/calcite-action-bar.js";
8
- import "@esri/calcite-components/dist/components/calcite-action-group.js";
9
- import "@esri/calcite-components/dist/components/calcite-action.js";
1
+ import "@esri/calcite-components/components/calcite-tree";
2
+ import "@esri/calcite-components/components/calcite-tree-item";
3
+ import "@esri/calcite-components/components/calcite-loader";
4
+ import "@esri/calcite-components/components/calcite-list";
5
+ import "@esri/calcite-components/components/calcite-list-item";
6
+ import "@esri/calcite-components/components/calcite-icon";
7
+ import "@esri/calcite-components/components/calcite-action-bar";
8
+ import "@esri/calcite-components/components/calcite-action-group";
9
+ import "@esri/calcite-components/components/calcite-action";
10
10
  export * from "./customElement.js";
@@ -1,10 +1,10 @@
1
- import "@esri/calcite-components/dist/components/calcite-tree.js";
2
- import "@esri/calcite-components/dist/components/calcite-tree-item.js";
3
- import "@esri/calcite-components/dist/components/calcite-loader.js";
4
- import "@esri/calcite-components/dist/components/calcite-list.js";
5
- import "@esri/calcite-components/dist/components/calcite-list-item.js";
6
- import "@esri/calcite-components/dist/components/calcite-icon.js";
7
- import "@esri/calcite-components/dist/components/calcite-action-bar.js";
8
- import "@esri/calcite-components/dist/components/calcite-action-group.js";
9
- import "@esri/calcite-components/dist/components/calcite-action.js";
1
+ import "@esri/calcite-components/components/calcite-tree";
2
+ import "@esri/calcite-components/components/calcite-tree-item";
3
+ import "@esri/calcite-components/components/calcite-loader";
4
+ import "@esri/calcite-components/components/calcite-list";
5
+ import "@esri/calcite-components/components/calcite-list-item";
6
+ import "@esri/calcite-components/components/calcite-icon";
7
+ import "@esri/calcite-components/components/calcite-action-bar";
8
+ import "@esri/calcite-components/components/calcite-action-group";
9
+ import "@esri/calcite-components/components/calcite-action";
10
10
  export * from "./customElement.js";
@@ -10,7 +10,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
10
10
  /*!
11
11
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
12
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- * v4.32.0-next.36
13
+ * v4.32.0-next.38
14
14
  */
15
15
  function v(o) {
16
16
  return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
@@ -54,7 +54,7 @@ class S extends g {
54
54
  }), this._flowObserver.observe(e, { attributes: !0, attributeFilter: ["id"], childList: !0 }));
55
55
  }
56
56
  _updateFilterValue(e) {
57
- this._filterValue = e.target?.value ?? "";
57
+ this._filterValue = e.currentTarget?.value ?? "";
58
58
  }
59
59
  _emitItemSelected(e, t) {
60
60
  const i = e;
@@ -76,10 +76,10 @@ class S extends g {
76
76
  }
77
77
  renderSuggestionFlowItem() {
78
78
  const e = this._selectedSuggestion;
79
- return e ? s`<calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .beforeBack=${this._beforeBack}><calcite-button width=half slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${(t) => this._emitItemSelected(t, e)} data-item=${e ?? l} ${c((t) => void t?.setFocus())}>${this.messages.insert}</calcite-button><calcite-block open .heading=${e.label} .description=${e.description}><div .innerHTML=${h(e.documentation) ?? ""}></div><pre><code ${c((t) => t === void 0 ? void 0 : void m(t, e.code).catch(console.error))}></code></pre></calcite-block></calcite-flow-item>` : null;
79
+ return e ? s`<calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .beforeBack=${this._beforeBack} selected><calcite-button width=half slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${(t) => this._emitItemSelected(t, e)} data-item=${e ?? l} ${c((t) => void t?.setFocus())}>${this.messages.insert}</calcite-button><calcite-block open .heading=${e.label} .description=${e.description}><div .innerHTML=${h(e.documentation) ?? ""}></div><pre><code ${c((t) => t === void 0 ? void 0 : void m(t, e.code).catch(console.error))}></code></pre></calcite-block></calcite-flow-item>` : null;
80
80
  }
81
81
  render() {
82
- return s`<style>${this._colorizeStyle}</style><calcite-flow ${c(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input><calcite-list>${this.renderSuggestionGroups()}</calcite-list></calcite-flow-item>${this.renderSuggestionFlowItem()}</calcite-flow>`;
82
+ return s`<style>${this._colorizeStyle}</style><calcite-flow ${c(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedSuggestion}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input><calcite-list>${this.renderSuggestionGroups()}</calcite-list></calcite-flow-item>${this.renderSuggestionFlowItem()}</calcite-flow>`;
83
83
  }
84
84
  }
85
85
  n("arcgis-arcade-suggestions", S);
@@ -1,10 +1,10 @@
1
- import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
2
- import "@esri/calcite-components/dist/components/calcite-list-item.js";
3
- import "@esri/calcite-components/dist/components/calcite-action.js";
4
- import "@esri/calcite-components/dist/components/calcite-flow-item.js";
5
- import "@esri/calcite-components/dist/components/calcite-button.js";
6
- import "@esri/calcite-components/dist/components/calcite-block.js";
7
- import "@esri/calcite-components/dist/components/calcite-flow.js";
8
- import "@esri/calcite-components/dist/components/calcite-input.js";
9
- import "@esri/calcite-components/dist/components/calcite-list.js";
1
+ import "@esri/calcite-components/components/calcite-list-item-group";
2
+ import "@esri/calcite-components/components/calcite-list-item";
3
+ import "@esri/calcite-components/components/calcite-action";
4
+ import "@esri/calcite-components/components/calcite-flow-item";
5
+ import "@esri/calcite-components/components/calcite-button";
6
+ import "@esri/calcite-components/components/calcite-block";
7
+ import "@esri/calcite-components/components/calcite-flow";
8
+ import "@esri/calcite-components/components/calcite-input";
9
+ import "@esri/calcite-components/components/calcite-list";
10
10
  export * from "./customElement.js";
@@ -1,10 +1,10 @@
1
- import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
2
- import "@esri/calcite-components/dist/components/calcite-list-item.js";
3
- import "@esri/calcite-components/dist/components/calcite-action.js";
4
- import "@esri/calcite-components/dist/components/calcite-flow-item.js";
5
- import "@esri/calcite-components/dist/components/calcite-button.js";
6
- import "@esri/calcite-components/dist/components/calcite-block.js";
7
- import "@esri/calcite-components/dist/components/calcite-flow.js";
8
- import "@esri/calcite-components/dist/components/calcite-input.js";
9
- import "@esri/calcite-components/dist/components/calcite-list.js";
1
+ import "@esri/calcite-components/components/calcite-list-item-group";
2
+ import "@esri/calcite-components/components/calcite-list-item";
3
+ import "@esri/calcite-components/components/calcite-action";
4
+ import "@esri/calcite-components/components/calcite-flow-item";
5
+ import "@esri/calcite-components/components/calcite-button";
6
+ import "@esri/calcite-components/components/calcite-block";
7
+ import "@esri/calcite-components/components/calcite-flow";
8
+ import "@esri/calcite-components/components/calcite-input";
9
+ import "@esri/calcite-components/components/calcite-list";
10
10
  export * from "./customElement.js";
@@ -14,7 +14,7 @@ import { load as D } from "@arcgis/components-controllers";
14
14
  /*!
15
15
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
17
- * v4.32.0-next.36
17
+ * v4.32.0-next.38
18
18
  */
19
19
  c.register({
20
20
  id: n.languageId,
@@ -1,30 +1,30 @@
1
1
  import { c as o } from "../../chunks/runtime.js";
2
2
  import { ref as c } from "lit-html/directives/ref.js";
3
- import { html as i } from "lit";
3
+ import { html as s } from "lit";
4
4
  import { LitElement as n, createEvent as a } from "@arcgis/lumina";
5
5
  import { setFocusOnElement as d, createFilterExpression as h } from "@arcgis/components-utils";
6
- import { u as m } from "../../chunks/useT9n.js";
7
- import { css as u } from "@lit/reactive-element/css-tag.js";
6
+ import { u as f } from "../../chunks/useT9n.js";
7
+ import { css as m } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.36
11
+ * v4.32.0-next.38
12
12
  */
13
- const f = u`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
14
- function g(r) {
15
- r.key === "Enter" && r.stopPropagation();
13
+ const u = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
14
+ function g(l) {
15
+ l.key === "Enter" && l.stopPropagation();
16
16
  }
17
17
  class p extends n {
18
18
  constructor() {
19
19
  super(...arguments), this._beforeBack = async () => {
20
20
  this.removeLastPanelRenderer(), this._filterValue = "";
21
- }, this.messages = m(), this._filterValue = "", this._flowItemRenderers = [], this._mode = "profile", this._mutationCounter = 1, this.loading = !1, this.arcgisClose = a({ bubbles: !1 }), this.arcgisItemSelected = a({ bubbles: !1 });
21
+ }, this.messages = f(), this._filterValue = "", this._flowItemRenderers = [], this._mode = "profile", this._mutationCounter = 1, this.loading = !1, this.arcgisClose = a({ bubbles: !1 }), this.arcgisItemSelected = a({ bubbles: !1 });
22
22
  }
23
23
  static {
24
24
  this.properties = { _filterValue: 16, _flowItemRenderers: 16, _mode: 16, _mutationCounter: 16, loading: 5, modelId: 1, variable: 0 };
25
25
  }
26
26
  static {
27
- this.styles = f;
27
+ this.styles = u;
28
28
  }
29
29
  // #endregion
30
30
  // #region Lifecycle
@@ -61,7 +61,7 @@ class p extends n {
61
61
  }), this._flowObserver.observe(e, { attributes: !0, attributeFilter: ["id"], childList: !0 }));
62
62
  }
63
63
  _updateFilterValue(e) {
64
- this._filterValue = e.target.value;
64
+ this._filterValue = e.currentTarget.value;
65
65
  }
66
66
  _emitClose() {
67
67
  this.arcgisClose.emit();
@@ -72,11 +72,14 @@ class p extends n {
72
72
  _emitItemSelected(e, t) {
73
73
  if (t.nonInteractive)
74
74
  return;
75
- const s = e;
76
- (!s.key || s.key === "Enter") && (e.preventDefault(), this.arcgisItemSelected.emit(t.snippet));
75
+ const i = e;
76
+ (!i.key || i.key === "Enter") && (e.preventDefault(), this.arcgisItemSelected.emit(t.snippet));
77
77
  }
78
78
  _showCollectionPanel(e, t) {
79
- e.stopPropagation(), this.addPanelRenderer(this.collectionBasedVariableRenderer(t));
79
+ e.stopPropagation(), this.addPanelRenderer(
80
+ // Add a function to render the variable
81
+ (i) => this.renderCollectionBasedVariable(t, !1, i)
82
+ );
80
83
  }
81
84
  _getHeadingForCollection(e) {
82
85
  if (!e)
@@ -98,34 +101,35 @@ class p extends n {
98
101
  return e.variables[0]?.getLabel() ?? "";
99
102
  }
100
103
  }
101
- collectionBasedVariableRenderer(e, t = !1) {
102
- return () => {
103
- if (!e)
104
- return null;
105
- let s = this.loading;
106
- return !s && !e.loaded && (e.loadSource().then(() => setTimeout(() => {
107
- this._mutationCounter += 1;
108
- })).catch(() => {
109
- console.error("Error loading collection"), s = !1;
110
- }), s = !0), i`<calcite-flow-item .heading=${this._getHeadingForCollection(e)} .description=${this._getDescriptionForCollection(e)} .beforeBack=${this._beforeBack} closable @calciteFlowItemClose=${this._emitClose}><calcite-action slot=header-actions-end .text=${this.messages.backtotop ?? ""} scale=m .hidden=${t || this._isMode("featureSet")} icon=chevrons-left icon-flip-rtl @click=${this._backToTop}></calcite-action><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${s ? i`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? ""}></calcite-loader>` : i`<calcite-list>${this.renderEditorVariables(e)}</calcite-list>`}</calcite-flow-item>`;
111
- };
104
+ renderCollectionBasedVariable(e, t = !1, i = !1) {
105
+ if (!e)
106
+ return null;
107
+ let r = this.loading;
108
+ return !r && !e.loaded && (e.loadSource().then(() => setTimeout(() => {
109
+ this._mutationCounter += 1;
110
+ })).catch(() => {
111
+ console.error("Error loading collection"), r = !1;
112
+ }), r = !0), s`<calcite-flow-item .heading=${this._getHeadingForCollection(e)} .description=${this._getDescriptionForCollection(e)} .beforeBack=${this._beforeBack} closable @calciteFlowItemClose=${this._emitClose} .selected=${i}><calcite-action slot=header-actions-end .text=${this.messages.backtotop ?? ""} scale=m .hidden=${t || this._isMode("featureSet")} icon=chevrons-left icon-flip-rtl @click=${this._backToTop}></calcite-action><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${r ? s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? ""}></calcite-loader>` : s`<calcite-list>${this.renderEditorVariables(e)}</calcite-list>`}</calcite-flow-item>`;
112
113
  }
113
114
  // #endregion
114
115
  // #region Rendering
115
116
  renderEditorVariables(e) {
116
- const t = h(this._filterValue), s = e.variables.filter((l) => l.passFilter(t));
117
- return s.length ? s.map((l) => this.renderEditorVariable(l)) : i`<div class="notice-container">${this.messages.noitems}</div>`;
117
+ const t = h(this._filterValue), i = e.variables.filter((r) => r.passFilter(t));
118
+ return i.length ? i.map((r) => this.renderEditorVariable(r)) : s`<div class="notice-container">${this.messages.noitems}</div>`;
118
119
  }
119
120
  renderEditorVariable(e) {
120
121
  switch (e.type) {
121
122
  case "group":
122
- return this._isMode("featureSet") && e.isHeader ? i`<calcite-list-item-group .heading=${e.getLabel()}></calcite-list-item-group>` : this._isMode("featureSet") && e._label?.code === "fields" ? this.renderEditorVariables(e) : i`<calcite-list-item-group .heading=${e.getLabel()}>${this.renderEditorVariables(e)}</calcite-list-item-group>`;
123
+ return this._isMode("featureSet") && e.isHeader ? s`<calcite-list-item-group .heading=${e.getLabel()}></calcite-list-item-group>` : this._isMode("featureSet") && e._label?.code === "fields" ? this.renderEditorVariables(e) : s`<calcite-list-item-group .heading=${e.getLabel()}>${this.renderEditorVariables(e)}</calcite-list-item-group>`;
123
124
  default:
124
- return i`<calcite-list-item .label=${e.getLabel()} .description=${e.getDescription()} @calciteListItemSelect=${(t) => this._emitItemSelected(t, e)} @keydown=${(t) => this._emitItemSelected(t, e)}>${e.isCollection ? i`<calcite-action slot=actions-end .text=${this.messages.expand ?? ""} scale=s icon=chevron-right icon-flip-rtl @click=${(t) => this._showCollectionPanel(t, e)} @keydown=${g}></calcite-action>` : null}${e.icon ? i`<calcite-icon .icon=${e.icon} scale=s slot=content-start></calcite-icon>` : null}</calcite-list-item>`;
125
+ return s`<calcite-list-item .label=${e.getLabel()} .description=${e.getDescription()} @calciteListItemSelect=${(t) => this._emitItemSelected(t, e)} @keydown=${(t) => this._emitItemSelected(t, e)}>${e.isCollection ? s`<calcite-action slot=actions-end .text=${this.messages.expand ?? ""} scale=s icon=chevron-right icon-flip-rtl @click=${(t) => this._showCollectionPanel(t, e)} @keydown=${g}></calcite-action>` : null}${e.icon ? s`<calcite-icon .icon=${e.icon} scale=s slot=content-start></calcite-icon>` : null}</calcite-list-item>`;
125
126
  }
126
127
  }
127
128
  render() {
128
- return !this.loading && this.variable?.loaded && !this.variable?.variables.length ? i`<calcite-flow><calcite-flow-item .heading=${this.messages.profilevariables} closable @calciteFlowItemClose=${this._emitClose}><div class="notice-container">${this.messages.noprofilevariablesmessage}</div></calcite-flow-item></calcite-flow>` : i`<calcite-flow ${c(this.flowFocusHandler)}>${this.collectionBasedVariableRenderer(this.variable, !0)()}${this._flowItemRenderers.map((e) => e())}</calcite-flow>`;
129
+ return !this.loading && this.variable?.loaded && !this.variable?.variables.length ? s`<calcite-flow><calcite-flow-item .heading=${this.messages.profilevariables} closable @calciteFlowItemClose=${this._emitClose}><div class="notice-container">${this.messages.noprofilevariablesmessage}</div></calcite-flow-item></calcite-flow>` : s`<calcite-flow ${c(this.flowFocusHandler)}>${this.renderCollectionBasedVariable(this.variable, !0, this._flowItemRenderers.length === 0)}${this._flowItemRenderers.map((e, t, i) => (
130
+ // check if the current flow item is the last one, if so, renderer will set selected = true
131
+ e(t === i.length - 1)
132
+ ))}</calcite-flow>`;
129
133
  }
130
134
  }
131
135
  o("arcgis-editor-variables", p);
@@ -1,10 +1,10 @@
1
- import "@esri/calcite-components/dist/components/calcite-flow-item.js";
2
- import "@esri/calcite-components/dist/components/calcite-action.js";
3
- import "@esri/calcite-components/dist/components/calcite-input.js";
4
- import "@esri/calcite-components/dist/components/calcite-loader.js";
5
- import "@esri/calcite-components/dist/components/calcite-list.js";
6
- import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
7
- import "@esri/calcite-components/dist/components/calcite-list-item.js";
8
- import "@esri/calcite-components/dist/components/calcite-icon.js";
9
- import "@esri/calcite-components/dist/components/calcite-flow.js";
1
+ import "@esri/calcite-components/components/calcite-flow-item";
2
+ import "@esri/calcite-components/components/calcite-action";
3
+ import "@esri/calcite-components/components/calcite-input";
4
+ import "@esri/calcite-components/components/calcite-loader";
5
+ import "@esri/calcite-components/components/calcite-list";
6
+ import "@esri/calcite-components/components/calcite-list-item-group";
7
+ import "@esri/calcite-components/components/calcite-list-item";
8
+ import "@esri/calcite-components/components/calcite-icon";
9
+ import "@esri/calcite-components/components/calcite-flow";
10
10
  export * from "./customElement.js";
@@ -1,10 +1,10 @@
1
- import "@esri/calcite-components/dist/components/calcite-flow-item.js";
2
- import "@esri/calcite-components/dist/components/calcite-action.js";
3
- import "@esri/calcite-components/dist/components/calcite-input.js";
4
- import "@esri/calcite-components/dist/components/calcite-loader.js";
5
- import "@esri/calcite-components/dist/components/calcite-list.js";
6
- import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
7
- import "@esri/calcite-components/dist/components/calcite-list-item.js";
8
- import "@esri/calcite-components/dist/components/calcite-icon.js";
9
- import "@esri/calcite-components/dist/components/calcite-flow.js";
1
+ import "@esri/calcite-components/components/calcite-flow-item";
2
+ import "@esri/calcite-components/components/calcite-action";
3
+ import "@esri/calcite-components/components/calcite-input";
4
+ import "@esri/calcite-components/components/calcite-loader";
5
+ import "@esri/calcite-components/components/calcite-list";
6
+ import "@esri/calcite-components/components/calcite-list-item-group";
7
+ import "@esri/calcite-components/components/calcite-list-item";
8
+ import "@esri/calcite-components/components/calcite-icon";
9
+ import "@esri/calcite-components/components/calcite-flow";
10
10
  export * from "./customElement.js";