@arcgis/coding-components 4.33.0-next.107 → 4.33.0-next.109

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 (126) hide show
  1. package/dist/arcgis-coding-components/{XDIOX4GW.js → 3Y2627CP.js} +2 -2
  2. package/dist/arcgis-coding-components/4A3KCIXJ.js +4 -0
  3. package/dist/arcgis-coding-components/{3TUUDQHY.js → 4SUM77G6.js} +1 -1
  4. package/dist/arcgis-coding-components/{C4YL3G53.js → 5GXT7DJI.js} +2 -2
  5. package/dist/arcgis-coding-components/{T5ULTETY.js → 5OWQWSH2.js} +2 -2
  6. package/dist/arcgis-coding-components/{GSWETX5W.js → 5RHYT4EO.js} +2 -2
  7. package/dist/arcgis-coding-components/7FZREYXQ.js +4 -0
  8. package/dist/arcgis-coding-components/{VKHQY3TH.js → A7YPVNT3.js} +2 -2
  9. package/dist/arcgis-coding-components/{GY7EJG2G.js → ASUGUWIA.js} +2 -2
  10. package/dist/arcgis-coding-components/{JJ6GJDDT.js → CAF3USPW.js} +2 -2
  11. package/dist/arcgis-coding-components/{EISSQJVY.js → CBXJNCJJ.js} +2 -2
  12. package/dist/arcgis-coding-components/{JQ7VSS7H.js → CHNBIC2D.js} +2 -2
  13. package/dist/arcgis-coding-components/{PETPJYNV.js → CJPSVHWK.js} +1 -1
  14. package/dist/arcgis-coding-components/{2BE6FSTL.js → CJUW3OWD.js} +1 -1
  15. package/dist/arcgis-coding-components/{ZYEZKXQB.js → CQW3LRXV.js} +2 -2
  16. package/dist/arcgis-coding-components/{T26N7WLN.js → DD7AXDL6.js} +2 -2
  17. package/dist/arcgis-coding-components/DI6P2I7I.js +4 -0
  18. package/dist/arcgis-coding-components/{4CRKFUC4.js → DZ4GBFBV.js} +3 -3
  19. package/dist/arcgis-coding-components/F42UBPX3.js +4 -0
  20. package/dist/arcgis-coding-components/{CD7HMMHG.js → FIAZXQHO.js} +2 -2
  21. package/dist/arcgis-coding-components/{O2TMVMMV.js → HN74GEMZ.js} +2 -2
  22. package/dist/arcgis-coding-components/{7B2PAKIN.js → IGSRT6OY.js} +2 -2
  23. package/dist/arcgis-coding-components/{22CFXJJM.js.LEGAL.txt → JGYVWIOL.js} +2 -1
  24. package/dist/arcgis-coding-components/{UNE6OS2T.js → JQZ3ODVW.js} +3 -3
  25. package/dist/arcgis-coding-components/{N5IQK7RB.js → LCQ5LRWZ.js} +2 -2
  26. package/dist/arcgis-coding-components/{R65CIUFJ.js → LDIBFNEC.js} +1 -1
  27. package/dist/arcgis-coding-components/{CO3ZPGMS.js → LIXQY7SR.js} +2 -2
  28. package/dist/arcgis-coding-components/{KBPOBK72.js → MAMMTDKU.js} +2 -2
  29. package/dist/arcgis-coding-components/{APQOFW32.js → O7XUDENI.js} +2 -2
  30. package/dist/arcgis-coding-components/{H2ZLUPXB.js → QCHXYFBQ.js} +2 -2
  31. package/dist/arcgis-coding-components/{7CPSRGTI.js → QJDMPVG5.js} +2 -2
  32. package/dist/arcgis-coding-components/{MQTJI42N.js → RFKIPQPL.js} +2 -2
  33. package/dist/arcgis-coding-components/SZRBHPBE.js +4 -0
  34. package/dist/arcgis-coding-components/TQ5ZBIWK.js +4 -0
  35. package/dist/arcgis-coding-components/{QX5I6NKV.js → TRO4CFSW.js} +2 -2
  36. package/dist/arcgis-coding-components/{SUVWM53R.js → U4U7ILCC.js} +2 -2
  37. package/dist/arcgis-coding-components/{VEEPHGJL.js → WZOYYLIE.js} +2 -2
  38. package/dist/arcgis-coding-components/{22CFXJJM.js → XGDCD4ZA.js} +2 -2
  39. package/dist/arcgis-coding-components/{HBRSHYP6.js → YGTVYPV4.js} +3 -3
  40. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  41. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +39 -39
  42. package/dist/chunks/arcade-defaults.js +1 -1
  43. package/dist/chunks/arcade-executor.js +1 -1
  44. package/dist/chunks/arcade-mode.js +1 -1
  45. package/dist/chunks/arcade-service-accessors.js +1 -1
  46. package/dist/chunks/fields.js +1 -1
  47. package/dist/chunks/language-defaults-base.js +1 -1
  48. package/dist/chunks/markdown.js +1 -1
  49. package/dist/chunks/monaco-importer.js +1 -1
  50. package/dist/chunks/runtime.js +1 -1
  51. package/dist/chunks/setup-monaco.js +1 -1
  52. package/dist/chunks/sql-expr-contribution.js +1 -1
  53. package/dist/chunks/sql-expr-defaults.js +1 -1
  54. package/dist/chunks/sql-expr-mode.js +1 -1
  55. package/dist/chunks/useT9n.js +1 -1
  56. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  57. package/dist/components/arcgis-arcade-editor/customElement.js +39 -45
  58. package/dist/components/arcgis-arcade-results/customElement.js +109 -120
  59. package/dist/components/arcgis-arcade-results/functional.d.ts +73 -0
  60. package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +2 -0
  61. package/dist/components/arcgis-arcade-suggestions/customElement.js +4 -4
  62. package/dist/components/arcgis-code-editor/customElement.js +2 -2
  63. package/dist/components/arcgis-editor-variables/customElement.d.ts +2 -0
  64. package/dist/components/arcgis-editor-variables/customElement.js +7 -7
  65. package/dist/components/arcgis-language-api-panel/customElement.d.ts +2 -0
  66. package/dist/components/arcgis-language-api-panel/customElement.js +12 -10
  67. package/dist/components/arcgis-sql-expression-editor/customElement.js +12 -12
  68. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  69. package/dist/docs/api.json +3 -3
  70. package/dist/docs/docs.json +5 -5
  71. package/dist/docs/web-types.json +2 -2
  72. package/dist/index.js +1 -1
  73. package/dist/loader.js +4 -4
  74. package/dist/utils/arcade-executor.d.ts +4 -0
  75. package/dist/utils/custom-panel.d.ts +2 -1
  76. package/package.json +6 -6
  77. package/dist/arcgis-coding-components/2BE6FSTL.js.LEGAL.txt +0 -0
  78. package/dist/arcgis-coding-components/3TUUDQHY.js.LEGAL.txt +0 -0
  79. package/dist/arcgis-coding-components/4CRKFUC4.js.LEGAL.txt +0 -3
  80. package/dist/arcgis-coding-components/7B2PAKIN.js.LEGAL.txt +0 -3
  81. package/dist/arcgis-coding-components/7CPSRGTI.js.LEGAL.txt +0 -9
  82. package/dist/arcgis-coding-components/APQOFW32.js.LEGAL.txt +0 -9
  83. package/dist/arcgis-coding-components/ARPNRPTX.js +0 -4
  84. package/dist/arcgis-coding-components/ARPNRPTX.js.LEGAL.txt +0 -3
  85. package/dist/arcgis-coding-components/C4YL3G53.js.LEGAL.txt +0 -9
  86. package/dist/arcgis-coding-components/CD7HMMHG.js.LEGAL.txt +0 -9
  87. package/dist/arcgis-coding-components/CGXSA5HM.js +0 -4
  88. package/dist/arcgis-coding-components/CGXSA5HM.js.LEGAL.txt +0 -3
  89. package/dist/arcgis-coding-components/CO3ZPGMS.js.LEGAL.txt +0 -9
  90. package/dist/arcgis-coding-components/EISSQJVY.js.LEGAL.txt +0 -4
  91. package/dist/arcgis-coding-components/GSWETX5W.js.LEGAL.txt +0 -3
  92. package/dist/arcgis-coding-components/GY7EJG2G.js.LEGAL.txt +0 -3
  93. package/dist/arcgis-coding-components/H2ZLUPXB.js.LEGAL.txt +0 -3
  94. package/dist/arcgis-coding-components/HBRSHYP6.js.LEGAL.txt +0 -69
  95. package/dist/arcgis-coding-components/JJ6GJDDT.js.LEGAL.txt +0 -145
  96. package/dist/arcgis-coding-components/JQ7VSS7H.js.LEGAL.txt +0 -15
  97. package/dist/arcgis-coding-components/KBPOBK72.js.LEGAL.txt +0 -3
  98. package/dist/arcgis-coding-components/MQTJI42N.js.LEGAL.txt +0 -9
  99. package/dist/arcgis-coding-components/N5IQK7RB.js.LEGAL.txt +0 -3
  100. package/dist/arcgis-coding-components/NSLPKDYP.css.LEGAL.txt +0 -0
  101. package/dist/arcgis-coding-components/O2TMVMMV.js.LEGAL.txt +0 -0
  102. package/dist/arcgis-coding-components/OPTRUP6P.js +0 -4
  103. package/dist/arcgis-coding-components/OPTRUP6P.js.LEGAL.txt +0 -0
  104. package/dist/arcgis-coding-components/PETPJYNV.js.LEGAL.txt +0 -0
  105. package/dist/arcgis-coding-components/QJN5BRFC.css.LEGAL.txt +0 -0
  106. package/dist/arcgis-coding-components/QX5I6NKV.js.LEGAL.txt +0 -3
  107. package/dist/arcgis-coding-components/R65CIUFJ.js.LEGAL.txt +0 -3
  108. package/dist/arcgis-coding-components/R6Z5J4HN.js +0 -4
  109. package/dist/arcgis-coding-components/R6Z5J4HN.js.LEGAL.txt +0 -3
  110. package/dist/arcgis-coding-components/SUVWM53R.js.LEGAL.txt +0 -3
  111. package/dist/arcgis-coding-components/T26N7WLN.js.LEGAL.txt +0 -9
  112. package/dist/arcgis-coding-components/T5ULTETY.js.LEGAL.txt +0 -12
  113. package/dist/arcgis-coding-components/UNE6OS2T.js.LEGAL.txt +0 -3
  114. package/dist/arcgis-coding-components/V7PQEVV2.js +0 -4
  115. package/dist/arcgis-coding-components/V7PQEVV2.js.LEGAL.txt +0 -3
  116. package/dist/arcgis-coding-components/VEEPHGJL.js.LEGAL.txt +0 -9
  117. package/dist/arcgis-coding-components/VKHQY3TH.js.LEGAL.txt +0 -9
  118. package/dist/arcgis-coding-components/VTPAFXWN.js +0 -4
  119. package/dist/arcgis-coding-components/VTPAFXWN.js.LEGAL.txt +0 -3
  120. package/dist/arcgis-coding-components/XDIOX4GW.js.LEGAL.txt +0 -0
  121. package/dist/arcgis-coding-components/YVACEAOH.js +0 -4
  122. package/dist/arcgis-coding-components/YVACEAOH.js.LEGAL.txt +0 -3
  123. package/dist/arcgis-coding-components/ZYEZKXQB.js.LEGAL.txt +0 -3
  124. package/dist/arcgis-coding-components/arcgis-coding-components.esm.css.LEGAL.txt +0 -0
  125. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +0 -3
  126. /package/dist/arcgis-coding-components/{arcgis-coding-components.esm.css → stdin.css} +0 -0
@@ -1,145 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
4
-
5
- Bundled license information:
6
-
7
- @lit/reactive-element/css-tag.js:
8
- /**
9
- * @license
10
- * Copyright 2019 Google LLC
11
- * SPDX-License-Identifier: BSD-3-Clause
12
- */
13
-
14
- lit-html/lit-html.js:
15
- /**
16
- * @license
17
- * Copyright 2017 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */
20
-
21
- @lit/reactive-element/reactive-element.js:
22
- /**
23
- * @license
24
- * Copyright 2017 Google LLC
25
- * SPDX-License-Identifier: BSD-3-Clause
26
- */
27
-
28
- lit-element/lit-element.js:
29
- /**
30
- * @license
31
- * Copyright 2017 Google LLC
32
- * SPDX-License-Identifier: BSD-3-Clause
33
- */
34
-
35
- lit-html/is-server.js:
36
- /**
37
- * @license
38
- * Copyright 2022 Google LLC
39
- * SPDX-License-Identifier: BSD-3-Clause
40
- */
41
-
42
- @lit/context/lib/context-request-event.js:
43
- /**
44
- * @license
45
- * Copyright 2021 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */
48
-
49
- @lit/context/lib/create-context.js:
50
- /**
51
- * @license
52
- * Copyright 2021 Google LLC
53
- * SPDX-License-Identifier: BSD-3-Clause
54
- */
55
-
56
- @lit/context/lib/controllers/context-consumer.js:
57
- /**
58
- * @license
59
- * Copyright 2021 Google LLC
60
- * SPDX-License-Identifier: BSD-3-Clause
61
- */
62
-
63
- @lit/context/lib/value-notifier.js:
64
- /**
65
- * @license
66
- * Copyright 2021 Google LLC
67
- * SPDX-License-Identifier: BSD-3-Clause
68
- */
69
-
70
- @lit/context/lib/controllers/context-provider.js:
71
- /**
72
- * @license
73
- * Copyright 2021 Google LLC
74
- * SPDX-License-Identifier: BSD-3-Clause
75
- */
76
-
77
- @lit/context/lib/context-root.js:
78
- /**
79
- * @license
80
- * Copyright 2021 Google LLC
81
- * SPDX-License-Identifier: BSD-3-Clause
82
- */
83
-
84
- @lit/context/lib/decorators/provide.js:
85
- /**
86
- * @license
87
- * Copyright 2017 Google LLC
88
- * SPDX-License-Identifier: BSD-3-Clause
89
- */
90
-
91
- @lit/context/lib/decorators/consume.js:
92
- /**
93
- * @license
94
- * Copyright 2022 Google LLC
95
- * SPDX-License-Identifier: BSD-3-Clause
96
- */
97
-
98
- @lit/reactive-element/decorators/property.js:
99
- /**
100
- * @license
101
- * Copyright 2017 Google LLC
102
- * SPDX-License-Identifier: BSD-3-Clause
103
- */
104
-
105
- @lit/reactive-element/decorators/state.js:
106
- /**
107
- * @license
108
- * Copyright 2017 Google LLC
109
- * SPDX-License-Identifier: BSD-3-Clause
110
- */
111
-
112
- lit-html/directive.js:
113
- /**
114
- * @license
115
- * Copyright 2017 Google LLC
116
- * SPDX-License-Identifier: BSD-3-Clause
117
- */
118
-
119
- lit-html/directives/class-map.js:
120
- /**
121
- * @license
122
- * Copyright 2018 Google LLC
123
- * SPDX-License-Identifier: BSD-3-Clause
124
- */
125
-
126
- lit-html/directives/style-map.js:
127
- /**
128
- * @license
129
- * Copyright 2018 Google LLC
130
- * SPDX-License-Identifier: BSD-3-Clause
131
- */
132
-
133
- lit-html/directive-helpers.js:
134
- /**
135
- * @license
136
- * Copyright 2020 Google LLC
137
- * SPDX-License-Identifier: BSD-3-Clause
138
- */
139
-
140
- lit-html/directives/live.js:
141
- /**
142
- * @license
143
- * Copyright 2020 Google LLC
144
- * SPDX-License-Identifier: BSD-3-Clause
145
- */
@@ -1,15 +0,0 @@
1
- Bundled license information:
2
-
3
- lit-html/async-directive.js:
4
- /**
5
- * @license
6
- * Copyright 2017 Google LLC
7
- * SPDX-License-Identifier: BSD-3-Clause
8
- */
9
-
10
- lit-html/directives/ref.js:
11
- /**
12
- * @license
13
- * Copyright 2020 Google LLC
14
- * SPDX-License-Identifier: BSD-3-Clause
15
- */
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,9 +0,0 @@
1
- Bundled license information:
2
-
3
- monaco-editor/esm/vs/language/typescript/monaco.contribution.js:
4
- /*!-----------------------------------------------------------------------------
5
- * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
7
- * Released under the MIT license
8
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
- *-----------------------------------------------------------------------------*/
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
4
- import{a,b}from"./VEEPHGJL.js";import"./EISSQJVY.js";import"./3TUUDQHY.js";export{a as conf,b as language};
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
4
- import{a as m}from"./N5IQK7RB.js";import"./UNE6OS2T.js";import{a as v,c as r,d as I,e as n}from"./KBPOBK72.js";import{b as l}from"./JQ7VSS7H.js";import"./ZYEZKXQB.js";import"./GSWETX5W.js";import"./2BE6FSTL.js";import"./R65CIUFJ.js";import{a as b}from"./HBRSHYP6.js";import"./MQTJI42N.js";import{a as _}from"./22CFXJJM.js";import"./XDIOX4GW.js";import{C as f,a as u,b as s,l as o,y as g}from"./JJ6GJDDT.js";import{d as h,e as p,q as c}from"./PETPJYNV.js";import"./EISSQJVY.js";import"./3TUUDQHY.js";var $=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-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,d=class extends g{constructor(){super(...arguments),this.messages=_(),this._unselectItem=async()=>{this._selectedApiItem=void 0},this._colorizeStyle="",this._filterValue="",this.languageId="arcade",this.hideDocumentationActions=!1,this.loading=!1,this.arcgisClose=o({bubbles:!1}),this.arcgisItemSelected=o({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedApiItem:16,languageId:1,apiLibrary:0,hideDocumentationActions:5,loading:5}}static{this.styles=$}async load(){await m(this.languageId),this._colorizeStyle=r(),this._themeChangedListener=I(()=>this._colorizeStyle=r())}willUpdate(e){if(e.has("languageId")&&m(this.languageId),e.has("apiLibrary")){if(!this._selectedApiItem)return;for(let i of this.apiLibrary??[])for(let t of i.items)if(t.name===this._selectedApiItem.name){this._selectedApiItem=t;return}this._selectedApiItem=void 0}}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect(),this._themeChangedListener?.dispose()}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{p(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_emitItemSelected(e,i){if(!i)return;let t=e;(!t.key||t.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(i.completion.insertText??""))}_emitClose(){this.arcgisClose.emit()}_emitItemSelectedAndClose(e,i){let t=e;(!t.key||t.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(i.completion.insertText??""))}_selectItem(e,i){e.stopPropagation(),this._selectedApiItem=i}_updateFilterValue(e){this._filterValue=e.currentTarget.value??""}_elementToMarkdown(e){e!==void 0&&(e.innerHTML=n(this._selectedApiItem.examples),v(e,this.languageId).catch(console.error))}renderApiCategory(e){let i=b(e.items,"name",this._filterValue);return i.length?s`<calcite-list-item-group .heading=${e.title}>${i.map(t=>s`<calcite-list-item .label=${c(t.completion.detail)} @calciteListItemSelect=${a=>this._emitItemSelected(a,t)} @keydown=${a=>this._emitItemSelected(a,t)}><calcite-action slot=actions-end .text=${this.messages.expand??""} icon=chevron-right icon-flip-rtl scale=s @click=${a=>this._selectItem(a,t)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>`:null}renderApiItemFlowItem(){let e=this._selectedApiItem;return e?s`<calcite-flow-item .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose} selected>${this.hideDocumentationActions?null:s`<calcite-button width=half slot=footer appearance=outline kind=brand scale=s .href=${e.link} target=Help icon-start=information>${this.messages.moreinformation}</calcite-button>`}<calcite-button .width=${this.hideDocumentationActions?"full":"half"} slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${i=>this._emitItemSelectedAndClose(i,e)} ${l(h)}>${this.messages.insert}</calcite-button><calcite-block open .heading=${c(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation)??""}></div>${e.examples?s`<div ${l(this._elementToMarkdown)}></div>`:null}</calcite-block></calcite-flow-item>`:null}render(){let e=(this.apiLibrary??[]).map(t=>this.renderApiCategory(t)),i=e.every(t=>!t);return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedApiItem}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${this.loading?s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??"Loading"}></calcite-loader>`:s`<calcite-list label="arcade api">${i?s`<div class="notice-container">${this.messages.noitems}</div>`:e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`}};f("arcgis-language-api-panel",d);export{d as ArcgisLanguageApiPanel};
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,9 +0,0 @@
1
- Bundled license information:
2
-
3
- monaco-editor/esm/vs/language/css/cssMode.js:
4
- /*!-----------------------------------------------------------------------------
5
- * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
7
- * Released under the MIT license
8
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
- *-----------------------------------------------------------------------------*/
@@ -1,12 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
4
-
5
- Bundled license information:
6
-
7
- lit-html/directives/repeat.js:
8
- /**
9
- * @license
10
- * Copyright 2017 Google LLC
11
- * SPDX-License-Identifier: BSD-3-Clause
12
- */
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
4
- import{b as f}from"./JQ7VSS7H.js";import{a as u}from"./22CFXJJM.js";import"./XDIOX4GW.js";import{C as m,a as d,b as i,l,y as h}from"./JJ6GJDDT.js";import{e as c,o as n}from"./PETPJYNV.js";import"./3TUUDQHY.js";var g=d`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2);word-break:break-word}}`;function b(a){a.key==="Enter"&&a.stopPropagation()}var o=class extends h{constructor(){super(...arguments),this._beforeBack=async()=>{this.removeLastPanelRenderer(),this._filterValue=""},this.messages=u(),this._filterValue="",this._flowItemRenderers=[],this._mode="profile",this._mutationCounter=1,this.loading=!1,this.arcgisClose=l({bubbles:!1}),this.arcgisItemSelected=l({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mode:16,_mutationCounter:16,loading:5,modelId:1,variable:0}}static{this.styles=g}load(){this._variableChanged()}willUpdate(e){e.has("modelId")&&(this._flowItemRenderers=[]),e.has("variable")&&this._variableChanged()}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_variableChanged(){this._mode=this.variable?.type==="featureSet"?"featureSet":"profile"}addPanelRenderer(e){this._flowItemRenderers=[...this._flowItemRenderers,e]}removeLastPanelRenderer(){this._flowItemRenderers=this._flowItemRenderers.slice(0,-1)}_isMode(e){return this._mode===e}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{c(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_updateFilterValue(e){this._filterValue=e.currentTarget.value}_emitClose(){this.arcgisClose.emit()}_backToTop(){this._flowItemRenderers=[]}_emitItemSelected(e,t){if(t.nonInteractive)return;let s=e;(!s.key||s.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.snippet))}_showCollectionPanel(e,t){e.stopPropagation(),this.addPanelRenderer(s=>this.renderCollectionBasedVariable(t,!1,s))}_getHeadingForCollection(e){if(!e)return"";switch(this._mode){case"profile":return this.messages.profilevariables??"";case"featureSet":return this.messages.fields??""}}_getDescriptionForCollection(e){if(!e)return"";switch(this._mode){case"profile":return e.breadcrumb;case"featureSet":return e.variables[0]?.getLabel()??""}}renderCollectionBasedVariable(e,t=!1,s=!1){if(!e)return null;let r=this.loading;return!r&&!e.loaded&&(e.loadSource().then(()=>setTimeout(()=>{this._mutationCounter+=1})).catch(()=>{console.error("Error loading collection"),r=!1}),r=!0),i`<calcite-flow-item .heading=${this._getHeadingForCollection(e)} .description=${this._getDescriptionForCollection(e)} .beforeBack=${this._beforeBack} closable @calciteFlowItemClose=${this._emitClose} .selected=${s}><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?i`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??""}></calcite-loader>`:i`<calcite-list label=variables>${this.renderEditorVariables(e)}</calcite-list>`}</calcite-flow-item>`}renderEditorVariables(e){let t=n(this._filterValue),s=e.variables.filter(r=>r.passFilter(t));return s.length?s.map(r=>this.renderEditorVariable(r)):i`<div class="notice-container">${this.messages.noitems}</div>`}renderEditorVariable(e){switch(e.type){case"group":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>`;default: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=${b}></calcite-action>`:null}${e.icon?i`<calcite-icon .icon=${e.icon} scale=s slot=content-start></calcite-icon>`:null}</calcite-list-item>`}}render(){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 ${f(this.flowFocusHandler)}>${this.renderCollectionBasedVariable(this.variable,!0,this._flowItemRenderers.length===0)}${this._flowItemRenderers.map((e,t,s)=>e(t===s.length-1))}</calcite-flow>`}};m("arcgis-editor-variables",o);export{o as ArcgisEditorVariables};
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,9 +0,0 @@
1
- Bundled license information:
2
-
3
- monaco-editor/esm/vs/basic-languages/typescript/typescript.js:
4
- /*!-----------------------------------------------------------------------------
5
- * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
7
- * Released under the MIT license
8
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
- *-----------------------------------------------------------------------------*/
@@ -1,9 +0,0 @@
1
- Bundled license information:
2
-
3
- monaco-editor/esm/vs/basic-languages/css/css.js:
4
- /*!-----------------------------------------------------------------------------
5
- * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
7
- * Released under the MIT license
8
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
- *-----------------------------------------------------------------------------*/
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
4
- import{a as h,b as g}from"./JQ7VSS7H.js";import{a as t}from"./ZYEZKXQB.js";import"./GSWETX5W.js";import"./2BE6FSTL.js";import"./R65CIUFJ.js";import"./HBRSHYP6.js";import"./MQTJI42N.js";import{a as p}from"./22CFXJJM.js";import"./XDIOX4GW.js";import{C as l,a as r,b as e,l as n,o as c,y as d}from"./JJ6GJDDT.js";import{h as s}from"./PETPJYNV.js";import"./EISSQJVY.js";import"./3TUUDQHY.js";var f=r`@layer{arcgis-sql-expression-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}.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%}}}}`,o=class extends d{constructor(){super(...arguments),this._codeEditorElt=h(),this.messages=p(),this._modelId=s(),this._preparing=!1,this.sideActionBarExpanded=!1,this.script="",this.hideSideBar=!1,this.arcgisScriptChange=n({bubbles:!1})}static{this.properties={_activeAction:16,_apiLibrary:16,_editorProfile:16,_preparing:16,sideActionBarExpanded:16,profile:0,script:1,hideSideBar:5}}static{this.shadowRootOptions=c}static{this.styles=f}async load(){await this._updateEditorProfile().catch(console.error)}willUpdate(i){(i.has("messages")||i.has("profile"))&&this._updateDataModelDeps()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _updateEditorProfile(){this._preparing=!0;try{await t.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale}),this._editorProfile=t.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(i){if(this._activeAction===i){this._activeAction=void 0;return}this._activeAction=i}_handleActionClick(i){let a=i.target;this._setActiveAction(a.dataset.panelName)}_insertAsSnippet(i){this._codeEditorElt.value?.insertSnippet(i.detail).catch(console.error)}_insertAsText(i){this._codeEditorElt.value?.insertText(i.detail.replaceAll('"',"'")).catch(console.error)}async _updateApiLibrary(){this._apiLibrary=await t.getApiLibraryForModel(this._modelId)}_onCodeEditorValueChange(i){i.stopPropagation(),this.script=i.detail,this.arcgisScriptChange.emit(i.detail)}_getFeatureSetVariable(){let i,a=t.getEditorProfileForModel(this._modelId);return a?.variables?.length&&a?.variables?.[0]?.type!=="featureSet"?console.error("encountered unexpected editor profile"):i=a?.variables?.[0],i}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}render(){let i=this._getFeatureSetVariable();return e`<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable"><arcgis-code-editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script??""} @arcgisValueChange=${this._onCodeEditorValueChange} ${g(this._codeEditorElt)}></arcgis-code-editor></div>${this._activeAction==="fields"&&!this.hideSideBar&&e`<arcgis-editor-variables .variable=${i} class="side-panel flex-panel border-inline-start" .loading=${this._preparing} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${()=>this._setActiveAction(void 0)} data-panel-name=none></arcgis-editor-variables>`||""}${this._activeAction==="functions"&&!this.hideSideBar&&e`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${()=>this._setActiveAction(void 0)} .loading=${this._preparing} .apiLibrary=${this._apiLibrary} data-panel-name=none hide-documentation-actions .languageId=${t.languageId}></arcgis-language-api-panel>`||""}${!this.hideSideBar&&e`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action id=fields-action .text=${this.messages.fields??"Fields"} icon=profile-variables .active=${this._activeAction==="fields"} data-panel-name=fields @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=fields-action><span>${this.messages.fields??"Fields"}</span></calcite-tooltip>`||""}<calcite-action id=functions-action .text=${this.messages.functions??"Functions"} icon=function .active=${this._activeAction==="functions"} data-panel-name=functions @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions??"Functions"}</span></calcite-tooltip>`||""}</calcite-action-bar>`||""}</div>`}};l("arcgis-sql-expression-editor",o);export{o as ArcgisSqlExpressionEditor};
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
4
- import{b as u,c as f,d as h,e as T,f as S,g as P}from"./GY7EJG2G.js";import{i as M}from"./R65CIUFJ.js";import{a as k}from"./22CFXJJM.js";import"./XDIOX4GW.js";import{A as d,C as w,a as y,b as e,l as $,y as x,z as v}from"./JJ6GJDDT.js";import{n as p,p as n}from"./PETPJYNV.js";import"./3TUUDQHY.js";var L=y`: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={lines:!0,selectionMode:"none",scale:"s",oncalciteTreeSelect:l=>l.currentTarget.selectedItems.forEach(t=>t.selected=!1)},r={onClick:l=>{let t=l.currentTarget;t.expanded=!t.expanded}};function o(l){return e`<span class="dictionary-property">${l}</span><span>:&nbsp;</span>`}function C(l,t=!1){return e`<calcite-tree slot=${(t?"children":void 0)??d} .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>`}function R(l,t=!1){return e`<calcite-tree slot=${(t?"children":void 0)??d} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item><div class="tree-item-label">${o("type")}${l.type}</div></calcite-tree-item><calcite-tree-item><div class="tree-item-label">${o("value")}<span class="string-value">${JSON.stringify(l,void 0,2)}</span></div></calcite-tree-item></calcite-tree>`}function g(l){switch(l.type){case"unknown":case"null":return e`<span class="constant-value">${l.type}</span>`;case"text":return e`<span class="string-value">${p(l.value)}</span>`;case"number":return e`<span class="number-value">${l.value.toString()}</span>`;case"boolean":return e`<span class="constant-value">${l.value.toString()}</span>`;case"date":return e`<span class="date-value">${T(l)}</span>`;case"dateOnly":return e`<span class="string-value">${p(S(l))}</span>`;case"time":return e`<span class="string-value">${p(P(l))}</span>`;default:return null}}function A(l){let t=M(l.value.fields);return e`<table><thead><tr>${t.map(c=>e`<th>${c.name}</th>`)}</tr></thead><tbody>${l.features.map(c=>e`<tr>${t.map(i=>{try{let s=h(c.field(i.name));return e`<td>${g(s)}</td>`}catch{return e`<td></td>`}})}</tr>`)}</tbody></table>`}var b=class extends x{constructor(){super(...arguments),this.messages=k(),this.openedResultPanel="output",this.arcgisClose=$({bubbles:!1}),this.arcgisOpenedResultPanelChange=$({bubbles:!1})}static{this.properties={consoleLogs:0,loading:5,openedResultPanel:3,result:0}}static{this.styles=L}updateResultPanel(t){this.openedResultPanel=t,this.arcgisOpenedResultPanelChange.emit(t)}_switchResultPanel(t){let c=t.currentTarget.dataset.panelName;c&&this.updateResultPanel(c)}_emitClose(){this.arcgisClose.emit()}renderConsolePanel(){return this.openedResultPanel!=="console"?null:this.loading&&!this.consoleLogs?.length?e`<calcite-loader scale=s type=indeterminate label></calcite-loader>`:e`<div class="console-logs-container ltr-container">${this.consoleLogs?.length?this.consoleLogs.map(t=>e`<p>${t}</p>`):e`<p>${this.messages.consolemessage}</p>`}</div>`}renderLogPanel(){if(this.openedResultPanel!=="log")return null;if(this.loading)return e`<calcite-loader scale=s type=indeterminate label></calcite-loader>`;let t=this.result?.type==="error"?"color-error":"color-success";return e`<calcite-list label=results>${this.result?e`<calcite-list-item .label=${n(this.messages.lastexecutionformat,{timeStamp:new Intl.DateTimeFormat(this.messages._t9nLocale,{dateStyle:"medium",timeStyle:"medium"}).format(this.result.timeStamp)})}><calcite-icon slot=content-start icon=information scale=s class=${v(t)}></calcite-icon></calcite-list-item><calcite-list-item .label=${n(this.messages.compilationtimeformat,{time:new Intl.NumberFormat(this.messages._t9nLocale,{style:"unit",unit:"millisecond",maximumFractionDigits:2}).format(this.result.compilationTime??0)})}><calcite-icon slot=content-start icon=information scale=s class=${v(t)}></calcite-icon></calcite-list-item><calcite-list-item .label=${n(this.messages.executiontimeformat,{time:new Intl.NumberFormat(this.messages._t9nLocale,{style:"unit",unit:"millisecond",maximumFractionDigits:2}).format(this.result.executionTime??0)})}><calcite-icon slot=content-start icon=information scale=s class=${v(t)}></calcite-icon></calcite-list-item>`:e`<calcite-list-item .label=${this.messages.runscriptmessage}><calcite-icon slot=content-start icon=information scale=s class="color-info"></calcite-icon></calcite-list-item>`}</calcite-list>`}renderOutputPanel(){if(this.openedResultPanel!=="output")return null;if(this.loading)return e`<calcite-loader scale=s type=indeterminate label></calcite-loader>`;switch(this.result?.type){case"error":return e`<div class="result-value-simple flex-adjustable">${n(this.messages.executionerrorformat,{message:this.result.value})}</div>`;case"null":case"unknown":return e`<div class="result-value-simple ltr-container">${g(this.result)}</div>`;case"text":case"number":case"date":case"dateOnly":case"time":case"boolean":return e`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}:&nbsp;</span>${g(this.result)}</div>`;case"array":{let t=(this.result.value??[]).slice(0,u);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=${r.onClick}><div class="tree-item-label">${this.renderArrayHeader(this.result)}</div>${this.renderArrayTree(t,!0)}</calcite-tree-item></calcite-tree></div>`}case"geometry":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=${r.onClick}><div class="tree-item-label">${this.result.type}</div>${R(this.result.value,!0)}</calcite-tree-item></calcite-tree></div>`;case"attachment":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=${r.onClick}><div class="tree-item-label">${this.result.type}</div>${C(this.result.value,!0)}</calcite-tree-item></calcite-tree></div>`;case"feature":case"dictionary":case"portal":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=${r.onClick}><div class="tree-item-label">${this.result.type}</div>${this.renderDictionaryTree(this.result.value,!0)}</calcite-tree-item></calcite-tree></div>`;case"featureSet":return e`<div class="result-value-table ltr-container">${this.renderFeatureSetLabel(this.result)}${A(this.result)}</div>`;case"knowledgeGraph":return e`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}:&nbsp;</span><span class="string-value">${this.result.value.url}</span></div>`;default:return e`<div class="result-value-simple flex-adjustable ltr-container">${this.messages.runscriptmessage}</div>`}}renderArrayHeader(t){let c=t.value??[],i=Math.max(c.length-u,0);return e`<span>${`${t.type}(${c.length??0})`}</span>${i>0?e`<span>&nbsp;${n(this.messages.showingfirstitemsformat,{count:u.toString()})}</span>`:null}`}renderArrayTree(t,c=!1){return e`<calcite-tree slot=${(c?"children":void 0)??d} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}>${t.map((i,s)=>{let m=h(i);return this.renderTreeItem(m,s,!c)})}</calcite-tree>`}renderDictionaryTree(t,c=!1){let i=t.geometry?.();return e`<calcite-tree slot=${(c?"children":void 0)??d} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}>${t.keys().map(s=>{let m=h(t.field(s));return t.arcadeDeclaredClass==="esri.arcade.Feature"&&m.type==="geometry"?null:this.renderTreeItem(m,s)})}${i?this.renderTreeItem({type:"geometry",value:i},"geometry"):null}</calcite-tree>`}renderTreeItem(t,c,i=!1){switch(t.type){case"null":case"unknown":case"text":case"number":case"date":case"dateOnly":case"time":case"boolean":return e`<calcite-tree-item><div class="tree-item-label">${o(c)}${g(t)}</div></calcite-tree-item>`;case"array":{let s=(t.value??[]).slice(0,u);return e`<calcite-tree-item .expanded=${i} @click=${r.onClick}><div class="tree-item-label">${o(c)}${this.renderArrayHeader(t)}</div>${this.renderArrayTree(s,!0)}</calcite-tree-item>`}case"geometry":return e`<calcite-tree-item .expanded=${i} @click=${r.onClick}><div class="tree-item-label">${o(c)}<span>${t.type}</span></div>${R(t.value,!0)}</calcite-tree-item>`;case"attachment":return e`<calcite-tree-item .expanded=${i} @click=${r.onClick}><div class="tree-item-label">${o(c)}<span>${t.type}</span></div>${C(t.value,!0)}</calcite-tree-item>`;case"feature":case"dictionary":case"portal":return e`<calcite-tree-item .expanded=${i} @click=${r.onClick}><div class="tree-item-label">${o(c)}<span>${t.type}</span></div>${this.renderDictionaryTree(t.value,!0)}</calcite-tree-item>`;default:return null}}renderFeatureSetLabel(t){return e`<div class="value-type"><span>${t.type}:</span>${t.features.length>=f?e`<span>&nbsp;${n(this.messages.showingfirstitemsformat,{count:f.toString()})}</span>`:null}</div>`}render(){return e`<header class="flex-row"><calcite-action-bar class="flex-adjustable" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .active=${this.openedResultPanel==="output"} .text=${this.messages.output??""} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=output></calcite-action><calcite-action .active=${this.openedResultPanel==="console"} .text=${this.messages.console??""} text-enabled scale=s icon=console icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=console></calcite-action><calcite-action .active=${this.openedResultPanel==="log"} .text=${this.messages.log??""} text-enabled scale=s icon=list icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=log></calcite-action></calcite-action-group></calcite-action-bar><calcite-action scale=s icon=x .text=${this.messages.close??""} @click=${this._emitClose}></calcite-action></header><article class="flex-adjustable">${this.loading?e`<calcite-loader scale=s type=indeterminate label></calcite-loader>`:e`<div class="flex-column y-scrollable-container">${this.renderOutputPanel()}${this.renderConsolePanel()}${this.renderLogPanel()}</div>`}</article>`}};w("arcgis-arcade-results",b);export{b as ArcgisArcadeResults};
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */
@@ -1,3 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.107 */