@arcgis/charts-components 5.2.0-next.111 → 5.2.0-next.112
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.
- package/dist/cdn/{M7NERHZY.js → 2UYSX5Y6.js} +1 -1
- package/dist/cdn/{RZJQJ43Y.js → 3NRKFMSC.js} +1 -1
- package/dist/cdn/{YHON6N45.js → 4C4IX5L7.js} +1 -1
- package/dist/cdn/{3A6N7WAM.js → 4IQL5O67.js} +1 -1
- package/dist/cdn/{I4RZDDUM.js → 4PGF4M34.js} +1 -1
- package/dist/cdn/{3S6ZGK3H.js → 4WPVY366.js} +1 -1
- package/dist/cdn/{E2YQ7BBF.js → 4Z5SNPOX.js} +1 -1
- package/dist/cdn/{XIBI3WA6.js → 52E7MCXY.js} +1 -1
- package/dist/cdn/{4NIKYLE5.js → 5AGSEMEN.js} +1 -1
- package/dist/cdn/{CREJLRJS.js → 5RNRKEWQ.js} +1 -1
- package/dist/cdn/{CLL7X6DF.js → 5UUJD65X.js} +1 -1
- package/dist/cdn/{HW7O5QZ4.js → 65Z5IYEA.js} +1 -1
- package/dist/cdn/{EWPEPYH7.js → 67XCXPQ6.js} +1 -1
- package/dist/cdn/{VSN5E7Y4.js → 6OLY4KSH.js} +1 -1
- package/dist/cdn/6OU5XURJ.js +2 -0
- package/dist/cdn/{U7NEGO4Z.js → 6U3OEXQ7.js} +1 -1
- package/dist/cdn/{IBUI4UOV.js → 7QFH42AK.js} +1 -1
- package/dist/cdn/{EMOJZ4XR.js → 7V4UDGBX.js} +1 -1
- package/dist/cdn/{PDDYOVQM.js → ASN6EN4Y.js} +1 -1
- package/dist/cdn/{MSU36MJR.js → CDHI4XFG.js} +1 -1
- package/dist/cdn/{EWNXVZMV.js → DCENTBQM.js} +1 -1
- package/dist/cdn/{NITHPHM6.js → DLZ6PPB7.js} +1 -1
- package/dist/cdn/{T7Z4DZ7V.js → EJBDH32O.js} +1 -1
- package/dist/cdn/{YJURFFSP.js → EVM7E4W3.js} +1 -1
- package/dist/cdn/{YFU2NPYA.js → FFEY4JDO.js} +1 -1
- package/dist/cdn/{MIA4DLUH.js → GSCC2TTU.js} +1 -1
- package/dist/cdn/{7CP5MYX6.js → HAIFP7IJ.js} +1 -1
- package/dist/cdn/{5SXFY4KT.js → HORW5HJV.js} +1 -1
- package/dist/cdn/{TK4E37D6.js → HS6LECKI.js} +1 -1
- package/dist/cdn/{WJQHEITU.js → I37JTF2K.js} +1 -1
- package/dist/cdn/{AEC7S556.js → IMDR5X6I.js} +1 -1
- package/dist/cdn/{DAQT4YNQ.js → IZZD4A5K.js} +1 -1
- package/dist/cdn/{J5JKYZZW.js → JI6L5KEB.js} +1 -1
- package/dist/cdn/{N2Y3TMUH.js → JRAHQN6D.js} +1 -1
- package/dist/cdn/{73R5I52R.js → JSL23SYS.js} +1 -1
- package/dist/cdn/{JV4CEAY2.js → K2IMX6HU.js} +1 -1
- package/dist/cdn/{5O2Y7SWC.js → KBPX6OO5.js} +1 -1
- package/dist/cdn/{L76QTUHW.js → KRLKB2IF.js} +1 -1
- package/dist/cdn/{ZYHMZQ7E.js → KT73CPBF.js} +1 -1
- package/dist/cdn/{7UUCZOKN.js → LBVGLNMU.js} +1 -1
- package/dist/cdn/{EEKAD6DT.js → LZYJ4U5Y.js} +1 -1
- package/dist/cdn/{LMXFW6NW.js → M32F4QYD.js} +1 -1
- package/dist/cdn/{VYD2S5WA.js → M4QCRRN6.js} +1 -1
- package/dist/cdn/{H7K6D57Z.js → MZ2NU4TE.js} +1 -1
- package/dist/cdn/{IHOTDAKI.js → N7QCYD5R.js} +1 -1
- package/dist/cdn/{GU4EQDNJ.js → NXSSBVFZ.js} +1 -1
- package/dist/cdn/{EY3OIDVL.js → OAYOGIS6.js} +1 -1
- package/dist/cdn/{YK5VKE7I.js → OLEFWZFS.js} +1 -1
- package/dist/cdn/{MQYMM7JO.js → ONOVYY7V.js} +1 -1
- package/dist/cdn/{NT7D3WEH.js → PNIDMUQY.js} +1 -1
- package/dist/cdn/{5HJSLXLN.js → PY4FAYSG.js} +1 -1
- package/dist/cdn/{FZHZIZUN.js → Q2CIGQ3D.js} +1 -1
- package/dist/cdn/{UVLCXTG4.js → Q3NST3BX.js} +1 -1
- package/dist/cdn/{M624HH3K.js → QG5XQDFK.js} +1 -1
- package/dist/cdn/{GQLSM5Q7.js → RCPTFBBV.js} +1 -1
- package/dist/cdn/{VQHPI3CU.js → ROYPCE27.js} +1 -1
- package/dist/cdn/{FTVVGZ4Z.js → SA4EONL6.js} +1 -1
- package/dist/cdn/{3NXCG3O2.js → SWYALBEP.js} +1 -1
- package/dist/cdn/{QXLY4SFY.js → T432ISUV.js} +1 -1
- package/dist/cdn/{3CIO2C6J.js → TJWLQHE3.js} +1 -1
- package/dist/cdn/{WDDGKBBJ.js → TNQYPSJT.js} +1 -1
- package/dist/cdn/{ZHFQTE2B.js → TST5LQAR.js} +1 -1
- package/dist/cdn/{AHOCGFB7.js → TTRMHJ6O.js} +1 -1
- package/dist/cdn/{MRSEZPVC.js → U4H2JPUO.js} +1 -1
- package/dist/cdn/{3ECXJYBU.js → U55VVCAI.js} +1 -1
- package/dist/cdn/{VQRSXCKD.js → UC3IFAOK.js} +1 -1
- package/dist/cdn/{724I3SBO.js → UGWU76ZY.js} +1 -1
- package/dist/cdn/{OIQ76HQC.js → UJERDZ26.js} +1 -1
- package/dist/cdn/{G22GCRXH.js → UU7YRQTV.js} +1 -1
- package/dist/cdn/{UNRHPYXW.js → UVI6GKAM.js} +6 -6
- package/dist/cdn/{OIBX62RU.js → UZASXX6P.js} +1 -1
- package/dist/cdn/{FY7T4YLN.js → VWQ473MG.js} +1 -1
- package/dist/cdn/{VZ7OCBNK.js → WFPJXSXF.js} +1 -1
- package/dist/cdn/{EHUV23QJ.js → WWT7QGWR.js} +1 -1
- package/dist/cdn/{56242OEE.js → X627M4QT.js} +1 -1
- package/dist/cdn/{XZVJMTU2.js → XE4QUCTL.js} +1 -1
- package/dist/cdn/{ADKPM4DW.js → XRHVGJ2G.js} +1 -1
- package/dist/cdn/{JJJRAQMT.js → Y5773WBI.js} +1 -1
- package/dist/cdn/{JTP6IREK.js → YF3NHMXM.js} +1 -1
- package/dist/cdn/{KYVBQUIS.js → YNBU26SW.js} +1 -1
- package/dist/cdn/{FCWOV4NW.js → YW3DR5XO.js} +1 -1
- package/dist/cdn/{5QBKM6NC.js → ZPL4UFZH.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +2 -3
- package/dist/chunks/box-plot-data.js +3 -3
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/data.js +8 -8
- package/dist/chunks/index.js +4 -4
- package/dist/chunks/index3.js +13 -13
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/utils.js +5 -5
- package/dist/components/arcgis-chart/customElement.d.ts +3 -4
- package/dist/components/arcgis-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +28 -27
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -9
- package/dist/interfaces.d.ts +16 -1
- package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
- package/dist/model/interfaces/common.d.ts +2 -2
- package/dist/model/shared/setup-utils.d.ts +3 -3
- package/dist/utils/chart-config/converter/index.d.ts +2 -3
- package/dist/utils/layer/index.d.ts +1 -2
- package/dist/utils/layer/interfaces.d.ts +2 -3
- package/dist/utils/layer/utils/index.d.ts +5 -5
- package/package.json +5 -5
- package/dist/cdn/2PWEWSG6.js +0 -2
|
@@ -5,7 +5,6 @@ import type Layer from "@arcgis/core/layers/Layer.js";
|
|
|
5
5
|
import type CodedValueDomain from "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
6
6
|
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
7
7
|
import type Renderer from "@arcgis/core/renderers/Renderer.js";
|
|
8
|
-
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
9
8
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
10
9
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
11
10
|
import type { ChartOptions } from "../../chart-rendering/common/interfaces.js";
|
|
@@ -342,7 +341,7 @@ export function extractFieldsFromConfigList(layer: SupportedLayer): Promise<stri
|
|
|
342
341
|
export function findMatchingLayerFromView(props: {
|
|
343
342
|
view?: MapView | SceneView;
|
|
344
343
|
portalItemId: string;
|
|
345
|
-
}):
|
|
344
|
+
}): SupportedLayer | undefined;
|
|
346
345
|
|
|
347
346
|
/**
|
|
348
347
|
* Loads the layer. Generates raster info if it's an ImageryLayer or an ImageryTileLayer.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
1
|
+
import type { ChartLayerView, SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
3
2
|
import type { RESTRendererType } from "../../spec/rest-js-object-literals.js";
|
|
4
3
|
|
|
5
4
|
/** @internal */
|
|
@@ -21,6 +20,6 @@ export interface ServerRestInfo {
|
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
export type QueryObject =
|
|
23
|
+
export type QueryObject = ChartLayerView | SupportedLayer;
|
|
25
24
|
|
|
26
25
|
export type QueryObjectOrRaster = QueryObject | SupportedRasterLayer;
|
|
@@ -6,7 +6,7 @@ import type LayerView from "@arcgis/core/views/layers/LayerView.js";
|
|
|
6
6
|
import type Layer from "@arcgis/core/layers/Layer.js";
|
|
7
7
|
import type { SelectableLayerWithObjectIds } from "@arcgis/core/views/selection/types.js";
|
|
8
8
|
import type { QueryObject, QueryObjectOrRaster } from "../interfaces.js";
|
|
9
|
-
import type { ChartLayer, ChartLayerInput, SupportedLayer, SupportedRasterLayer } from "../../../interfaces.js";
|
|
9
|
+
import type { ChartLayer, ChartLayerInput, ChartLayerView, SupportedLayer, SupportedRasterLayer } from "../../../interfaces.js";
|
|
10
10
|
import type { WebChart } from "../../../spec/web-chart.js";
|
|
11
11
|
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
12
12
|
|
|
@@ -24,7 +24,7 @@ export function isFeatureCollectionLayer(queryObject: QueryObjectOrRaster | unde
|
|
|
24
24
|
* @param queryObject
|
|
25
25
|
* @internal
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
27
|
+
export function isChartLayerView(queryObject: LayerView | QueryObjectOrRaster | SubtypeGroupLayer | undefined): queryObject is ChartLayerView;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Indicates whether the input object is an instance of `FeatureLayer`.
|
|
@@ -178,19 +178,19 @@ export function doesLayerSupportsQueryBinsForScatterplot(queryObject: QueryObjec
|
|
|
178
178
|
* @param layerOrLayerView
|
|
179
179
|
* @internal
|
|
180
180
|
*/
|
|
181
|
-
export function getLayerFromLayerOrLayerView(layerOrLayerView:
|
|
181
|
+
export function getLayerFromLayerOrLayerView(layerOrLayerView: ChartLayerView | SupportedLayer): SupportedLayer;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* @param layerOrLayerView
|
|
185
185
|
* @internal
|
|
186
186
|
*/
|
|
187
|
-
export function getLayerFromLayerOrLayerView(layerOrLayerView:
|
|
187
|
+
export function getLayerFromLayerOrLayerView(layerOrLayerView: ChartLayerView | SupportedLayer | SupportedRasterLayer): SupportedLayer | SupportedRasterLayer;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* @param layerOrLayerView
|
|
191
191
|
* @internal
|
|
192
192
|
*/
|
|
193
|
-
export function getLayerFromLayerOrLayerView(layerOrLayerView:
|
|
193
|
+
export function getLayerFromLayerOrLayerView(layerOrLayerView: ChartLayerView | SupportedLayer | SupportedRasterLayer): SupportedLayer | SupportedRasterLayer;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
196
|
* Returns a feature layer from a QueryObject instance.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.112",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@amcharts/amcharts4": "^4.10.31",
|
|
32
32
|
"@amcharts/amcharts5": "~5.20.5",
|
|
33
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
34
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
33
|
+
"@arcgis/lumina": "5.2.0-next.112",
|
|
34
|
+
"@arcgis/toolkit": "5.2.0-next.112",
|
|
35
35
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
36
36
|
"@lit/task": "^1.0.3",
|
|
37
37
|
"@zumer/snapdom": "^2.24.1",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"tslib": "^2.8.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@arcgis/core": "5.2.0-next.
|
|
49
|
-
"@esri/calcite-components": "^5.2.0-next.
|
|
48
|
+
"@arcgis/core": "5.2.0-next.112",
|
|
49
|
+
"@esri/calcite-components": "^5.2.0-next.73"
|
|
50
50
|
},
|
|
51
51
|
"css.customData": [
|
|
52
52
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/2PWEWSG6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./U7NEGO4Z.js";import{a as b}from"./7TM4LYGN.js";import{a as R}from"./MQI4ZLAS.js";import{a as I}from"./IHO3OLL3.js";import{a as $}from"./SZYIWW3C.js";import e from"./EWPEPYH7.js";import a from"./MIA4DLUH.js";import"./VQU2TVX7.js";import"./WOGALV3T.js";import"./62GSQDTE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./5SYHQWPP.js";import{B as g,C as c,F as u,H as v,g as C,i as r,k as d,n as o}from"./225VUGML.js";import{a as w}from"./P3AYFJRV.js";import{k as s}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{P:f},,{a:P}])=>{var h={addChartContainer:"add-chart-container",viewChartComponent:"view-chart-component",header:"header",dropdownPopup:"dropdown-popup"},E=C`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`,m=class extends g{constructor(){super(...arguments),this._messages=$(),this.chartRenamePopover=null,this.popoverClose=()=>{let e=this.modelList?.find(t=>t.chartId===this.selectedChartId);this.chartTitle=e?.titleText??"",this.selectedActionChartId="",this.removeChartRenamePopover()},this.onChartRename=e=>{if(!this.disableEditing){this.chartTitle=e.detail.name;let t=this.modelList?.find(i=>i.chartId===this.selectedActionChartId);t!==void 0&&(t.titleText=this.chartTitle),this.selectedActionChartId="",this.removeChartRenamePopover()}},this.onModelConfigChange=()=>{this.requestUpdate()},this.onCalciteListOrderChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;if(this.modelList!==void 0&&this.modelList?.length>0){let a=[...this.modelList],n=a?.[i],l=a?.[t];n&&l&&(a.splice(i,1),a.splice(t,0,n)),this.chartsOrderReorderCounter+=1,this.arcgisChartsConfigModelListReorder.emit({modelList:a})}}},this.isChartRenamePopoverOpen=!1,this.chartTitle="",this.chartsOrderReorderCounter=0,this.noGroup=!1,this.disableEditing=!1,this.arcgisChartsConfigModelListReorder=o(),this.arcgisChartsConfigViewChartAddChart=o(),this.arcgisChartsConfigViewChartDelete=o(),this.arcgisChartsConfigViewChartEdit=o(),this.arcgisChartsConfigViewChartSelect=o()}static{this.properties={isChartRenamePopoverOpen:16,chartTitle:16,selectedActionChartId:16,chartsOrderReorderCounter:16,messageOverrides:0,selectedChartId:1,layer:0,modelList:0,noGroup:5,disableEditing:5}}static{this.styles=E}willUpdate(e){e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList"))}disconnectedCallback(){super.disconnectedCallback(),this.removeChartRenamePopover()}modelListChange(e,t){t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e?.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)})}onAddChartClick(e){e.stopImmediatePropagation(),this.selectedActionChartId=void 0,this.isChartRenamePopoverOpen&&this.removeChartRenamePopover(),this.arcgisChartsConfigViewChartAddChart.emit({referenceElement:e.target,layerId:this.layer?.id.toString(),layerType:this.layer?.type})}buildTooltipLine(e,t){let i=typeof document<"u"&&document.documentElement.dir.toLowerCase()==="rtl",a=`${f(i)} `;return`${e}${a}${t}`}getChartTypeLabel(e){switch(w(e.chartType)){case s.BarChart:return this._messages.barChart??"";case s.LineChart:return this._messages.lineChart??"";case s.PieChart:return this._messages.pieChart??"";case s.Histogram:return this._messages.histogram??"";case s.Scatterplot:return this._messages.scatterplot??"";case s.BoxPlot:return this._messages.boxPlot??"";case s.HeatChart:return this._messages.calendarHeatChart??"";default:return""}}buildChartTooltip(e){let t=this.getChartTypeLabel(e);return this.buildTooltipLine(this._messages.chartType??"",t??"")}buildChartList(){let e=this.modelList?b(this.modelList,t=>t.chartId,(t,i)=>{let a=t.chartId,n=t.titleText,l=P(t.config),p=this.buildChartTooltip(t);return r`<calcite-list-item .label=${n??a??this._messages.chartTitle} title=${p??d} .selected=${this.selectedChartId===(a?.toString()??i.toString())} .value=${a??i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${l} title=${p??d}></calcite-icon>${this.disableEditing?null:r`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId===a} @calciteDropdownClose=${()=>this.chartActionClosed(a??"")} @calciteDropdownOpen=${()=>this.chartActionOpened(a??"")} class=${c(h.dropdownPopup)}><calcite-action scale=l .text=${this._messages.chartActions??""} slot=trigger .active=${a===this.selectedActionChartId}><calcite-icon icon=ellipsis></calcite-icon></calcite-action><calcite-dropdown-group selection-mode=none><calcite-dropdown-item accesskey=edit @calciteDropdownItemSelect=${this.chartEditSelect}>${this._messages.edit}</calcite-dropdown-item><calcite-dropdown-item accesskey=rename @click=${L=>L.stopPropagation()} @calciteDropdownItemSelect=${this.chartRenameSelect}>${this._messages.rename}</calcite-dropdown-item><calcite-dropdown-item accesskey=delete @calciteDropdownItemSelect=${this.chartDeleteSelect}>${this._messages.delete}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}</calcite-list-item>`}):null;return this.layer?r`<div>${this.noGroup?null:r`<p class=${c(h.header)}>${this.layer.title??this.layer.id.toString()}</p>`}${R(this.chartsOrderReorderCounter,r`<calcite-list label .dragEnabled=${!this.disableEditing} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${e}${this.disableEditing?null:r`<div class=${c(h.addChartContainer)}><calcite-fab slot=fab appearance=outline-fill kind=neutral text-enabled .text=${this._messages.addChart} .label=${this._messages.addChart} @click=${this.onAddChartClick} scale=s></calcite-fab></div>`}</calcite-list>`)}</div>`:null}onChartSelect(e){let t=e.currentTarget,i;t?.localName==="calcite-list-item"?i=t.value:t?.localName==="calcite-icon"&&(i=t.parentNode.value),this.arcgisChartsConfigViewChartSelect.emit({chartId:i})}chartEditSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartEdit.emit({chartId:this.selectedActionChartId}),this.chartActionClosed(this.selectedActionChartId))}chartRenameSelect(e){if(!this.disableEditing){let t=e.target.closest("calcite-list-item"),i=this.modelList?.find(a=>a.chartId===this.selectedActionChartId);t!==null&&(this.renameReferenceElement=t),this.arcgisChartsConfigViewChartSelect.emit({chartId:this.selectedActionChartId}),this.chartTitle=i?.titleText??"",this.setupRenamePopover()}}chartDeleteSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartDelete.emit({chartId:this.selectedActionChartId}),this.selectedActionChartId="")}chartActionClosed(e){e===this.selectedActionChartId&&!this.isChartRenamePopoverOpen&&(this.selectedActionChartId=void 0)}chartActionOpened(e){this.selectedActionChartId=e}setupRenamePopover(){this.isChartRenamePopoverOpen=!0,this.chartRenamePopover!==null&&(this.chartRenamePopover.name=this.chartTitle,this.chartRenamePopover.referenceElement=this.renameReferenceElement),this.chartRenamePopover=u(r`<arcgis-charts-config-chart-rename-popover .name=${this.chartTitle} .referenceElement=${this.renameReferenceElement} .open=${this.isChartRenamePopoverOpen} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigChartRenamePopoverChange=${this.onChartRename}></arcgis-charts-config-chart-rename-popover>`),!document.body.contains(this.chartRenamePopover)&&this.chartRenamePopover!==null&&document.body.appendChild(this.chartRenamePopover)}removeChartRenamePopover(){this.chartRenamePopover!==null&&(this.isChartRenamePopoverOpen=!1,this.chartRenamePopover=I(this.chartRenamePopover))}render(){return r`<div class=${c(h.viewChartComponent)}>${this.buildChartList()}</div>`}};v("arcgis-charts-config-view-charts",m);return m},a,e,f)
|