@arcgis/charts-components 5.1.0-next.21 → 5.1.0-next.22
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/{KPBWVMGE.js → 24XOYLWH.js} +1 -1
- package/dist/cdn/{6B5GEXUO.js → 2ITFVEOH.js} +1 -1
- package/dist/cdn/{VSEQFHH5.js → 2WUK2QHJ.js} +1 -1
- package/dist/cdn/{VJG77I7U.js → 355HB6CQ.js} +1 -1
- package/dist/cdn/{ZX62VIVY.js → 3KKAYOBZ.js} +1 -1
- package/dist/cdn/{S34MESBA.js → 4FJRUHWC.js} +1 -1
- package/dist/cdn/{AIIJWOD7.js → 4GAQELMP.js} +1 -1
- package/dist/cdn/{YXQV36H7.js → 4HLWEIBB.js} +1 -1
- package/dist/cdn/{RRHKVNRQ.js → 4MXJ223N.js} +1 -1
- package/dist/cdn/{VFP7AKUR.js → 52HAFZ4K.js} +1 -1
- package/dist/cdn/{PNOQJKYT.js → 5HUNQVNU.js} +1 -1
- package/dist/cdn/{YRRAGKB3.js → 5MHBRXLA.js} +1 -1
- package/dist/cdn/{4SCBKZTI.js → 5YQMMZNR.js} +1 -1
- package/dist/cdn/{YTX3LB4J.js → 66PZIBHT.js} +1 -1
- package/dist/cdn/{MV3GH6TU.js → 6H4R3RUJ.js} +1 -1
- package/dist/cdn/{BF6DWEJM.js → 6OOHQ4OW.js} +1 -1
- package/dist/cdn/{7A2HGKNN.js → 6SIIJRNU.js} +1 -1
- package/dist/cdn/{X67E5QKE.js → 7HMIOJZC.js} +1 -1
- package/dist/cdn/{KVJ3UTYD.js → A7RTZOZF.js} +1 -1
- package/dist/cdn/{ADC5UBPK.js → APVBYCD4.js} +1 -1
- package/dist/cdn/{6HYDI3GS.js → B3EMLYKP.js} +1 -1
- package/dist/cdn/{Y3F3ANQJ.js → BAC67DJW.js} +1 -1
- package/dist/cdn/{6GNN4GJ2.js → BGQHVBLD.js} +1 -1
- package/dist/cdn/{J4O25SQ3.js → BOPPJVY5.js} +1 -1
- package/dist/cdn/{2MWF6CXW.js → BQYCNOBE.js} +1 -1
- package/dist/cdn/{SPAXIJWK.js → C4C2IRUU.js} +1 -1
- package/dist/cdn/{H5G2GMJ7.js → CECHNFMK.js} +1 -1
- package/dist/cdn/{VR22QSTX.js → CSNJ4JGN.js} +1 -1
- package/dist/cdn/{LCIYJAEX.js → CUTB54U3.js} +1 -1
- package/dist/cdn/{RM73PTAA.js → CXMGXDST.js} +1 -1
- package/dist/cdn/{SBHIJW76.js → D4EA5XR2.js} +1 -1
- package/dist/cdn/{VDN7HE7R.js → DCNU7UTN.js} +1 -1
- package/dist/cdn/{Z256UQAQ.js → DONOSNTG.js} +1 -1
- package/dist/cdn/{3SHOFDUQ.js → EEXRI5MR.js} +1 -1
- package/dist/cdn/{I7MTUVJT.js → F5XCNYZS.js} +1 -1
- package/dist/cdn/{Q5O3J2BJ.js → H4NPK53F.js} +1 -1
- package/dist/cdn/{QNGN4PVZ.js → HDMBNLEQ.js} +1 -1
- package/dist/cdn/{IUWFBAI5.js → HGI4LABI.js} +1 -1
- package/dist/cdn/{J6K4U7SD.js → HRIH2T2Q.js} +1 -1
- package/dist/cdn/{NPCQE65S.js → HXOLGEVT.js} +1 -1
- package/dist/cdn/{YD6MCD6E.js → HYEDJVUL.js} +1 -1
- package/dist/cdn/{OR76R2TB.js → I6BJSMZD.js} +3 -3
- package/dist/cdn/{JZE533VD.js → JHURGRPZ.js} +1 -1
- package/dist/cdn/{VQT2MAAN.js → JJWC72GX.js} +1 -1
- package/dist/cdn/{LYJUB3F4.js → JJWGRHSD.js} +1 -1
- package/dist/cdn/{GJMAANLX.js → JLVO3HY6.js} +1 -1
- package/dist/cdn/{NSIMC3DG.js → JVHQGNQ4.js} +1 -1
- package/dist/cdn/{5LLHD3YO.js → JWV7CJOU.js} +1 -1
- package/dist/cdn/{YS6SO2QP.js → K33ANVXO.js} +1 -1
- package/dist/cdn/{3QFNNNEP.js → L26KXEKQ.js} +1 -1
- package/dist/cdn/{SQCABIIN.js → LC67F433.js} +1 -1
- package/dist/cdn/{6DSWJCEU.js → M6V4A57M.js} +1 -1
- package/dist/cdn/{OIKSGB43.js → NFCLBIMI.js} +1 -1
- package/dist/cdn/{OINYX6QU.js → NIBXIFL7.js} +1 -1
- package/dist/cdn/{TPIRAQDS.js → NO22XPMO.js} +1 -1
- package/dist/cdn/{LBRAXDT7.js → OBB23SJ6.js} +1 -1
- package/dist/cdn/{5J4YH3HT.js → OOE72G42.js} +1 -1
- package/dist/cdn/{MU7QUPXU.js → OU6PQLQO.js} +1 -1
- package/dist/cdn/{VJQOH2OJ.js → OUFTPWZU.js} +1 -1
- package/dist/cdn/{3UIWR22I.js → PDULOERS.js} +1 -1
- package/dist/cdn/{L24X5CMO.js → PJ6ZYQM3.js} +1 -1
- package/dist/cdn/{YE3RBM3L.js → R52CG7W7.js} +1 -1
- package/dist/cdn/{4REL5NSA.js → R5T4MERR.js} +1 -1
- package/dist/cdn/{JTW6TEF2.js → R6MQQR77.js} +1 -1
- package/dist/cdn/{ZLR7TTNC.js → R6PZBYBU.js} +1 -1
- package/dist/cdn/{4LP37HGS.js → ROBM5MKQ.js} +1 -1
- package/dist/cdn/S4BR3BWK.js +4 -0
- package/dist/cdn/{X234VMFB.js → S4J4RWSP.js} +1 -1
- package/dist/cdn/{BSS5D5Z2.js → S6EQOH4F.js} +1 -1
- package/dist/cdn/{5B6DMXOV.js → SAMQINQ5.js} +1 -1
- package/dist/cdn/{EVWSDR7F.js → SDENK4UK.js} +1 -1
- package/dist/cdn/{AWRXAEAR.js → SM2PKLYA.js} +1 -1
- package/dist/cdn/{YUFKLXMQ.js → SNMHFSMZ.js} +1 -1
- package/dist/cdn/{ERC7RV2B.js → SPJVLQCN.js} +1 -1
- package/dist/cdn/{WBWOSLU6.js → SQFVHU7Z.js} +1 -1
- package/dist/cdn/{R6LIXP6Q.js → SR22NN7P.js} +1 -1
- package/dist/cdn/{TVAXBEMN.js → SVT7ZB5F.js} +1 -1
- package/dist/cdn/{4K5XO5M6.js → T6PXJP2U.js} +1 -1
- package/dist/cdn/{V65U5JKT.js → TLEXYZCC.js} +1 -1
- package/dist/cdn/{H3ECWG3J.js → TY5MIKYJ.js} +1 -1
- package/dist/cdn/{L4MMR2XT.js → U2KOICYL.js} +1 -1
- package/dist/cdn/{MSWRPRUT.js → UC7JK3SP.js} +1 -1
- package/dist/cdn/{JN2NK7KX.js → UCQURMKB.js} +1 -1
- package/dist/cdn/{6WQPKBUS.js → UMGWTRUX.js} +1 -1
- package/dist/cdn/{7NMAZBAY.js → UOSED5PI.js} +1 -1
- package/dist/cdn/{RUGQ4ASD.js → V2SVG5PF.js} +1 -1
- package/dist/cdn/{VNMREX6N.js → VJGEI6KG.js} +1 -1
- package/dist/cdn/{D6UE4P4S.js → VPHC5VND.js} +1 -1
- package/dist/cdn/{FQHNCIL4.js → VY5FM5CB.js} +1 -1
- package/dist/cdn/{EEIZ3FLH.js → W4PYW7Y6.js} +1 -1
- package/dist/cdn/{5KJW2GEC.js → WGICC4LE.js} +1 -1
- package/dist/cdn/{EROJQWP3.js → WMNHDFCF.js} +1 -1
- package/dist/cdn/{J6ZFHTIG.js → XMUDWWRW.js} +1 -1
- package/dist/cdn/{CO5SW3Y2.js → YBFJIUWE.js} +1 -1
- package/dist/cdn/YNHKO7NN.js +2 -0
- package/dist/cdn/{6ZAZUJGZ.js → ZRAUO75D.js} +1 -1
- package/dist/cdn/{CZCW777C.js → ZVKFWPTA.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/index.js +1389 -1389
- package/dist/components/arcgis-charts-info-modal/customElement.js +5 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/cdn/XQ26L3RE.js +0 -4
- package/dist/cdn/YLJEV4GF.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import t from"./ZX62VIVY.js";import{a as W}from"./3TPTF5I7.js";import{a as $,b as Y,e as Q}from"./RUUYSZO3.js";import{a as ee}from"./SBHIJW76.js";import{a as D}from"./VFP7AKUR.js";import{a as J}from"./HAJ2VWEU.js";import s from"./AIIJWOD7.js";import{a as f}from"./S5OM65RV.js";import r from"./WBWOSLU6.js";import{d as l}from"./FPDW4F45.js";import{a as P}from"./6WQPKBUS.js";import q from"./YE3RBM3L.js";import p from"./Y3F3ANQJ.js";import m from"./NPCQE65S.js";import k from"./GJMAANLX.js";import j from"./EEIZ3FLH.js";import i from"./VDN7HE7R.js";import g from"./H3ECWG3J.js";import e from"./VQT2MAAN.js";import d from"./2MWF6CXW.js";import c from"./L4MMR2XT.js";import"./KZ7WEJMS.js";import a from"./OR76R2TB.js";import{n as b}from"./DGTF5KBL.js";import"./SPAXIJWK.js";import{a as K}from"./D6UE4P4S.js";import{e as I,f as B,j as X,m as L,q as w}from"./2OGUU3CF.js";import"./EZM4ZDQI.js";import{a as o,k as z}from"./ETLJKITO.js";import{A as h,B as _,D as S,F as U,g as F,h as n,m as C,x as N,y as A,z as V}from"./XQ26L3RE.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,{substitute:ie},,,,,,,{Jb:x,Ra:H,Rd:O,Sb:v,Wd:T,_b:R},,,,,,{a:G},,,,,{r:Z},{a:j,d:y,e:q},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function te(m,e){let a=new Set,t=e;return m?.forEach((i,s)=>{let r=i.chartId;(a.has(r)||r===void 0||r==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===r&&(t=i.chartId)),a.add(r)}),t}function se(m,e,a){return m?.filter(t=>x(a,t.config)&&t.layer?.id===e)??[]}function re(m){let{modelList:e,layerList:a,activeLayerId:t,disableEditing:i}=m,s=new Map;return e?.forEach(r=>{let c=r.layer;c&&s.set(c.id,c)}),i||a.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!t||r.id===t)}function oe(m,e){m.forEach(a=>{e.forEach(t=>{a?.id===t.layer?.id&&ae(a,t)})})}function ae(m,e){let a=m;if(a){let t=[...a?.charts??[]],i=t?.findIndex(r=>r.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!b(t[i],e.config),t[i]=e.config):a&&!T(e.config)&&(s=!0,t.push(e.config)),s&&(a.charts=t)}}function ce(m,e){let a=m;if(a){let t=[...a.charts??[]],i=t.findIndex(s=>s.id===e);i>-1&&(t.splice(i,1),a.charts=t)}}function le(m,e){let a=m;if(a){let t=[...a.charts??[]];t=v({arrayA:t,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),a.charts=t}}var ne=F`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,E=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let a=e,{chartData:t,model:i}=a.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:this.chartData=t,i&&(i.dataStore.chartData=t);break;case o.PieSeries:{this.chartData=t,i&&(i.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:c,r2:u,aggregated:g}=r,p=u;Number.isFinite(u)||(p=void 0),this.r2=p,X(i)&&(i.dataStore.r2=p,i.dataStore.aggregated=g,g&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(c),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:c}=t;if((B(s)||I(s)&&s.binTemporalData)&&(c?.size!==void 0&&s.temporalBinningSize!==c?.size&&(s.temporalBinningSize=c?.size),c?.unit!==void 0&&s.temporalBinningUnit!==c?.unit&&c?.unit!==z.Quarter&&(s.temporalBinningUnit=c?.unit),c?.size!==void 0&&c?.unit!==void 0&&Q($,{size:c.size,unit:c.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),I(s)){let u=s.xAxisField,g=r.some(M=>M[u]===null),p=s.nullCategory;g&&p===void 0&&(s.nullCategory=H.nullCategory)}break}case o.HeatSeries:{this.chartData=t,i&&(i.dataStore.chartData=t);break}}},this.chartAxesMinMaxChange=e=>{let a=e,{bounds:t,model:i}=a.detail,s=this.getModel(this.selectedChartId),r=i?.isSameChartAs(s),c=s?.chartType;if(r)switch(c){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,i&&(i.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let a=e,{data:t,model:i}=a.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,i&&(i.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,i&&(i.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let a=e,{propName:t,value:i,model:s}=a.detail,r=this.modelList.find(c=>s?.isSameChartAs(c));if(r)switch(t){case"rotation":typeof i=="boolean"&&G(r)&&(r.rotatedState=i);break;case"legendPosition":typeof i=="string"&&w(r)&&(r.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&w(r)&&(r.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let a=e,{legendItemVisibility:t,model:i}=a.detail,s=this.modelList.find(r=>i?.isSameChartAs(r));s?.setSeriesVisibility(t),L(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),B(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:a,layerId:t}=e.target;a!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:a,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let a=e.target;ae(a?.layer,a)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.panelNumber=0,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,open:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,panelNumber:9,filterBySelection:5}}static{this.styles=ne}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:a}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:a,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=a.find(i=>i.layer?.id!==void 0)?.layer?.id;if(t){let i=this.layerList.find(s=>s.id.toString()===t);i&&le(i,a)}}}async layerListChange(){let e=[],a=this.layerList.map(i=>i.id.toString()),t=[...this.modelList.filter(i=>a.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let r=await i.createFeatureLayer();if(!r)continue;i=r}let s=i.charts;for(let r of s??[]){let c=await K({layer:i,config:r});c!==void 0&&e.push(c)}}te(e),e.forEach(i=>{t.find(s=>s.isSameChartAs(i))===void 0&&t.push(i)}),t=t.filter(i=>!R(i.config)),this.modelList=t}modelListChange(e,a){this.selectedChartId=te(e,this.selectedChartId),a?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&oe(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=l.Data;let a=this.getModel(e);this.setEventBasedPropsFromModelData(a),this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:a})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let a=this.getModel(this.selectedChartId)?.config,t=[];if(a!==void 0&&e!==void 0){let i=O({chartConfig:a,chartData:e}),{minY:s,maxY:r,minX:c,maxX:u}=i;t=[{isXAxis:!0,minimum:c,maximum:u},{isXAxis:!1,minimum:s,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(a=>{let{isXAxis:t,maximum:i,minimum:s}=a,r=this.getModel(this.selectedChartId);if(r!==void 0&&L(r)&&this.selectedChartId!==void 0){let c=new W(r,t),u=Y({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:c.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let p=g[this.selectedChartId]?.[u],M={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?i:p?.defaultMaxBound,currMaxBound:i};!b(p,M)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][u]=M)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(a=>x(j,a.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}onAddChartClick(e){let{referenceElement:a,layerId:t}=e.detail;this.setupSelectChartTypePopover(a,t)}setupSelectChartTypePopover(e,a){let t=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${a} .popoverPlacement=${t} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(a=>a.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=J(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!T(e.config))}onViewChartDelete(e){let{chartId:a}=e.detail;if(a!==void 0){let t=this.modelList.find(s=>s.chartId===a),i=this.layerList.find(s=>s.id===t?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==a)],i&&this.syncChartsToLayers&&this.allowChartSyncing&&ce(i,a)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.open=!1,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let a=e.target,t="";switch(a.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=S(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){Z(this.tooltip)}renderViewCharts(){let e=re({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ee(e,a=>a.id,a=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${se(this.modelList,a.id.toString(),this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${a} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.open!==!1?n`<calcite-flow>${D("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`:null}renderTabs(){let e=this.getModel(this.selectedChartId);return D("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??l.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?ie(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?n`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===l.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=l.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?n`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.LineSeries?n`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?n`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.PieSeries?n`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===l.Slices} @click=${()=>{this.selectedPanel=l.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===l.Axes} @click=${()=>{this.selectedPanel=l.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===l.Guides} @click=${()=>{this.selectedPanel=l.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===l.Format} @click=${()=>{this.selectedPanel=l.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===l.General} @click=${()=>{this.selectedPanel=l.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),a=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .chartData=${this.chartData} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .chartData=${this.chartData} .layer=${a} .page=${this.selectedPanel??l.Data}></arcgis-charts-config-heat-chart>`;break}return t}};U("arcgis-charts-config-create-flow",E);return E},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","core/promiseUtils",a,c,d,e,g,i,j,k,m,p,q,r,s,t)
|
|
2
|
+
import t from"./3KKAYOBZ.js";import{a as W}from"./3TPTF5I7.js";import{a as $,b as Y,e as Q}from"./RUUYSZO3.js";import{a as ee}from"./D4EA5XR2.js";import{a as D}from"./52HAFZ4K.js";import{a as J}from"./HAJ2VWEU.js";import s from"./4GAQELMP.js";import{a as f}from"./S5OM65RV.js";import r from"./SQFVHU7Z.js";import{d as l}from"./FPDW4F45.js";import{a as P}from"./UMGWTRUX.js";import q from"./R52CG7W7.js";import p from"./BAC67DJW.js";import m from"./HXOLGEVT.js";import k from"./JLVO3HY6.js";import j from"./W4PYW7Y6.js";import i from"./DCNU7UTN.js";import g from"./TY5MIKYJ.js";import e from"./JJWC72GX.js";import d from"./BQYCNOBE.js";import c from"./U2KOICYL.js";import"./KZ7WEJMS.js";import a from"./I6BJSMZD.js";import{n as b}from"./DGTF5KBL.js";import"./C4C2IRUU.js";import{a as K}from"./VPHC5VND.js";import{e as I,f as B,j as X,m as L,q as w}from"./2OGUU3CF.js";import"./EZM4ZDQI.js";import{a as o,k as z}from"./ETLJKITO.js";import{A as h,B as _,D as S,F as U,g as F,h as n,m as C,x as N,y as A,z as V}from"./S4BR3BWK.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,{substitute:ie},,,,,,,{Jb:x,Ra:H,Rd:O,Sb:v,Wd:T,_b:R},,,,,,{a:G},,,,,{r:Z},{a:j,d:y,e:q},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function te(m,e){let a=new Set,t=e;return m?.forEach((i,s)=>{let r=i.chartId;(a.has(r)||r===void 0||r==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===r&&(t=i.chartId)),a.add(r)}),t}function se(m,e,a){return m?.filter(t=>x(a,t.config)&&t.layer?.id===e)??[]}function re(m){let{modelList:e,layerList:a,activeLayerId:t,disableEditing:i}=m,s=new Map;return e?.forEach(r=>{let c=r.layer;c&&s.set(c.id,c)}),i||a.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!t||r.id===t)}function oe(m,e){m.forEach(a=>{e.forEach(t=>{a?.id===t.layer?.id&&ae(a,t)})})}function ae(m,e){let a=m;if(a){let t=[...a?.charts??[]],i=t?.findIndex(r=>r.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!b(t[i],e.config),t[i]=e.config):a&&!T(e.config)&&(s=!0,t.push(e.config)),s&&(a.charts=t)}}function ce(m,e){let a=m;if(a){let t=[...a.charts??[]],i=t.findIndex(s=>s.id===e);i>-1&&(t.splice(i,1),a.charts=t)}}function le(m,e){let a=m;if(a){let t=[...a.charts??[]];t=v({arrayA:t,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),a.charts=t}}var ne=F`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,E=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let a=e,{chartData:t,model:i}=a.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:this.chartData=t,i&&(i.dataStore.chartData=t);break;case o.PieSeries:{this.chartData=t,i&&(i.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:c,r2:u,aggregated:g}=r,p=u;Number.isFinite(u)||(p=void 0),this.r2=p,X(i)&&(i.dataStore.r2=p,i.dataStore.aggregated=g,g&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(c),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:c}=t;if((B(s)||I(s)&&s.binTemporalData)&&(c?.size!==void 0&&s.temporalBinningSize!==c?.size&&(s.temporalBinningSize=c?.size),c?.unit!==void 0&&s.temporalBinningUnit!==c?.unit&&c?.unit!==z.Quarter&&(s.temporalBinningUnit=c?.unit),c?.size!==void 0&&c?.unit!==void 0&&Q($,{size:c.size,unit:c.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),I(s)){let u=s.xAxisField,g=r.some(M=>M[u]===null),p=s.nullCategory;g&&p===void 0&&(s.nullCategory=H.nullCategory)}break}case o.HeatSeries:{this.chartData=t,i&&(i.dataStore.chartData=t);break}}},this.chartAxesMinMaxChange=e=>{let a=e,{bounds:t,model:i}=a.detail,s=this.getModel(this.selectedChartId),r=i?.isSameChartAs(s),c=s?.chartType;if(r)switch(c){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,i&&(i.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let a=e,{data:t,model:i}=a.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,i&&(i.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,i&&(i.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let a=e,{propName:t,value:i,model:s}=a.detail,r=this.modelList.find(c=>s?.isSameChartAs(c));if(r)switch(t){case"rotation":typeof i=="boolean"&&G(r)&&(r.rotatedState=i);break;case"legendPosition":typeof i=="string"&&w(r)&&(r.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&w(r)&&(r.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let a=e,{legendItemVisibility:t,model:i}=a.detail,s=this.modelList.find(r=>i?.isSameChartAs(r));s?.setSeriesVisibility(t),L(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),B(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:a,layerId:t}=e.target;a!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:a,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let a=e.target;ae(a?.layer,a)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.panelNumber=0,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,open:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,panelNumber:9,filterBySelection:5}}static{this.styles=ne}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:a}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:a,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=a.find(i=>i.layer?.id!==void 0)?.layer?.id;if(t){let i=this.layerList.find(s=>s.id.toString()===t);i&&le(i,a)}}}async layerListChange(){let e=[],a=this.layerList.map(i=>i.id.toString()),t=[...this.modelList.filter(i=>a.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let r=await i.createFeatureLayer();if(!r)continue;i=r}let s=i.charts;for(let r of s??[]){let c=await K({layer:i,config:r});c!==void 0&&e.push(c)}}te(e),e.forEach(i=>{t.find(s=>s.isSameChartAs(i))===void 0&&t.push(i)}),t=t.filter(i=>!R(i.config)),this.modelList=t}modelListChange(e,a){this.selectedChartId=te(e,this.selectedChartId),a?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&oe(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=l.Data;let a=this.getModel(e);this.setEventBasedPropsFromModelData(a),this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:a})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let a=this.getModel(this.selectedChartId)?.config,t=[];if(a!==void 0&&e!==void 0){let i=O({chartConfig:a,chartData:e}),{minY:s,maxY:r,minX:c,maxX:u}=i;t=[{isXAxis:!0,minimum:c,maximum:u},{isXAxis:!1,minimum:s,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(a=>{let{isXAxis:t,maximum:i,minimum:s}=a,r=this.getModel(this.selectedChartId);if(r!==void 0&&L(r)&&this.selectedChartId!==void 0){let c=new W(r,t),u=Y({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:c.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let p=g[this.selectedChartId]?.[u],M={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?i:p?.defaultMaxBound,currMaxBound:i};!b(p,M)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][u]=M)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(a=>x(j,a.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}onAddChartClick(e){let{referenceElement:a,layerId:t}=e.detail;this.setupSelectChartTypePopover(a,t)}setupSelectChartTypePopover(e,a){let t=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${a} .popoverPlacement=${t} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(a=>a.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=J(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!T(e.config))}onViewChartDelete(e){let{chartId:a}=e.detail;if(a!==void 0){let t=this.modelList.find(s=>s.chartId===a),i=this.layerList.find(s=>s.id===t?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==a)],i&&this.syncChartsToLayers&&this.allowChartSyncing&&ce(i,a)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.open=!1,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let a=e.target,t="";switch(a.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=S(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){Z(this.tooltip)}renderViewCharts(){let e=re({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ee(e,a=>a.id,a=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${se(this.modelList,a.id.toString(),this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${a} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.open!==!1?n`<calcite-flow>${D("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`:null}renderTabs(){let e=this.getModel(this.selectedChartId);return D("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??l.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?ie(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?n`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===l.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=l.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?n`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.LineSeries?n`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?n`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.PieSeries?n`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===l.Slices} @click=${()=>{this.selectedPanel=l.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===l.Axes} @click=${()=>{this.selectedPanel=l.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===l.Guides} @click=${()=>{this.selectedPanel=l.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===l.Format} @click=${()=>{this.selectedPanel=l.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===l.General} @click=${()=>{this.selectedPanel=l.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),a=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .chartData=${this.chartData} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .chartData=${this.chartData} .layer=${a} .page=${this.selectedPanel??l.Data}></arcgis-charts-config-heat-chart>`;break}return t}};U("arcgis-charts-config-create-flow",E);return E},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","core/promiseUtils",a,c,d,e,g,i,j,k,m,p,q,r,s,t)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./I6BJSMZD.js";export default $arcgis.t(([,,,,,,,,,,,,,,{fa:i}])=>{var q=o=>o.lineSymbol?.style,v=(o,m)=>{m.lineSymbol??=i(),m.lineSymbol.style=o},x=o=>o.lineSymbol?.width,u=(o,m)=>{m.lineSymbol??=i(),m.lineSymbol.width=o};return{a:q,b:v,c:x,d:u}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./JJWC72GX.js";import c from"./BQYCNOBE.js";import a from"./I6BJSMZD.js";import{g as b}from"./DGTF5KBL.js";export default $arcgis.t(([{T:m,V:p,W:g,w:c},{b:i,c:l},{g:v,h:S}])=>{var d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,L=(e,t,o,a)=>{for(var s=u(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&d(t,o,s),s};function Q(e){return e!==void 0&&"xAxisTitleSymbol"in e}var f=class extends i{get xAxisTitleSymbol(){return v(this._config,0)}set xAxisTitleSymbol(t){S({symbol:t,axisIndex:0,config:this._config})}};L([l],f.prototype,"xAxisTitleSymbol");var h=Object.defineProperty,O=Object.getOwnPropertyDescriptor,j=(e,t,o,a)=>{for(var s=O(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&h(t,o,s),s},A=e=>{for(let t of e.axes??[])if(t?.labels!==void 0)return t.labels.content},_=(e,t)=>{for(let o of t.axes??[])if(o!==void 0){let a=o.labels?.content.text;e===void 0?o.labels=p({text:"",visible:!0,font:m(c.AxisLabels),type:c.AxisLabels}):o.labels.content=b(e),o.labels.content.text=a}};function X(e){return e!==void 0&&"axisLabelsSymbol"in e}var x=class extends i{get axisLabelsSymbol(){return A(this._config)}set axisLabelsSymbol(t){_(t,this._config)}};j([l],x.prototype,"axisLabelsSymbol");var P=Object.defineProperty,D=Object.getOwnPropertyDescriptor,T=(e,t,o,a)=>{for(var s=D(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&P(t,o,s),s},I=e=>{for(let t of e.axes??[])if(t?.lineSymbol!==void 0)return t.lineSymbol},w=(e,t)=>{for(let o of t.axes??[])o!==void 0&&(o.lineSymbol=b(e)??g())};function k(e){return e!==void 0&&"axisLinesSymbol"in e}var y=class extends i{get axisLinesSymbol(){return I(this._config)}set axisLinesSymbol(t){w(t,this._config)}};T([l],y.prototype,"axisLinesSymbol");return{a:Q,b:f,c:X,d:x,e:k,f:y}},a,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./I6BJSMZD.js";import{B as x,h as C,k as M,l as S,t as B,w as F,y as R}from"./DGTF5KBL.js";export default $arcgis.t(([I,{Sd:k}])=>{function w(t,s,r){let n=Math.max(0,Math.min(1,r));return[Math.round(t[0]+(s[0]-t[0])*n),Math.round(t[1]+(s[1]-t[1])*n),Math.round(t[2]+(s[2]-t[2])*n),Math.round(t[3]+(s[3]-t[3])*n)]}function P(t){let{colorRamp:s,numberOfClassBreaks:r,isFlipped:n}=t,c=[],e=[],l=!1;if(s.colorsForClassBreaks&&s.colorsForClassBreaks.length>0){let o=s.colorsForClassBreaks.find(a=>a.numClasses===r);if(o?.colors?.length===r){let a=o.colors.map(i=>d(i));a.every(i=>i!==void 0)&&(e=n?a.reverse():a,l=!0)}}if(!l){let o=s.colors||[];if(o.length>0){for(let a=0;a<r;a++){let i=r>1?a/(r-1):0,m=Math.floor(i*(o.length-1)),u=Math.min(m+1,o.length-1),p=i*(o.length-1)-m,f=d(o[m]),g=d(o[u]);if(!f||!g){c=[];break}let b=w(f,g,p);c.push(b)}e=c}}return e}function v(t){let{numberOfClassBreaks:s,selectedColorRamp:r,colorRamp:n,isFlipped:c=!1}=t,e=[],l=[136,65,157,255],o=[237,248,251,255];if(n&&n.length>0&&n.length===s?e=n:r&&(e=P({colorRamp:r,numberOfClassBreaks:s,isFlipped:c})),e.length!==s){o=e[0]??n?.[0]??o,l=e.length>1&&e[e.length-1]!==void 0?e[e.length-1]:l;let a=[o];if(s>1){for(let i=1;i<s;i++){let m=i/(s-1),u=w(o,l,m);a.push(u)}a.push(l)}e=a}return e}function Y(t,s=2){return`\u2264 ${(r=>{let n="";return r%1===0?n=r.toString():n=r.toFixed(s),n})(t)}`}function T(t){let{classBreaksRendererResult:s,numberOfClassBreaks:r,selectedColorRamp:n,colorRamp:c,isFlipped:e}=t,l=[],o=s.classBreaksResult.classBreakInfos;if(o&&o.length>0){let a=v({numberOfClassBreaks:r,selectedColorRamp:n,colorRamp:c,isFlipped:e}),i=j(o.flatMap(m=>[m.maxValue]));o.forEach((m,u)=>{let{maxValue:p,minValue:f}=m,g=Y(p,i);l.push({classMinValue:f,classMaxValue:p,label:g,symbol:{type:x.SFS,style:R.Solid,color:a[u]||[0,0,0,255],outline:{style:F.Solid,width:.5,color:[50,50,50,.6]}}})})}return l}function U(t){let s="#000000";if(t&&Array.isArray(t)&&t.length>=3){let r=h(t[0]||0),n=h(t[1]||0),c=h(t[2]||0),e=r.toString(16).padStart(2,"0"),l=n.toString(16).padStart(2,"0"),o=c.toString(16).padStart(2,"0");s=`#${e}${l}${o}`}return s}var W={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},q={all:"all"},j=t=>{let s=0,r=e=>{let l=0;return e.forEach(o=>{let a=o.toString().split(".")[1];a&&(l=Math.max(l,a.length))}),l},n=[...t].sort((e,l)=>e-l),c=r(n);for(;s<=c&&n.some((e,l)=>l>0&&k(e,s)<=k(n[l-1],s));)s++;return Math.min(s,c)};function h(t){return Math.max(0,Math.min(255,Math.round(t)))}function d(t){let s;if(t instanceof I){let r=t.toRgba();s=[h(r[0]),h(r[1]),h(r[2]),h(r[3]*255)]}else if(Array.isArray(t)&&t.every(r=>typeof r=="number")&&(t.length===3||t.length===4)){let r=t.length>=4?t[3]??255:255,n=h(r<=1?r*255:r);return[h(t[0]??0),h(t[1]??0),h(t[2]??0),n]}return s}function z(t,s){let r={exactN:100,generated:10,anyOverlap:1},n=o=>o.join(","),c=o=>C(o.map(d)),e=(o,a)=>S([...o],[...a]).length,l;if(t?.length){let o=c(t.map(p=>p.symbol?.color)),a=new Set(o.map(n)),i=o.length,m=s.map(p=>{let f=new Set(c(v({numberOfClassBreaks:i,selectedColorRamp:p})).map(n)),g=e(a,f),b=p.colorsForClassBreaks?.find(y=>y.numClasses===i)?.colors??[],O=new Set(c(b).map(n)),A=e(a,O),V=[...p.colors??[],...M(p.colorsForClassBreaks??[],y=>y.colors??[])],$=new Set(c(V).map(n)),E=e(a,$),N=A*r.exactN+g*r.generated+E*r.anyOverlap;return{ramp:p,score:N}}),u=B(m,[p=>-p.score,p=>p.ramp.name]);u[0]?.score>0&&(l=u[0].ramp)}return l}function K(t,s){let r=!0;if(!t?.length||s.length<2)r=!1;else{let n=t.map(d),c=s.map(e=>e.symbol.color);if(n.length!==c.length)r=!1;else{let e=(a,i)=>!!a&&!!i&&a.length===i.length&&a.every((m,u)=>m===i[u]),l=0,o=c.length-1;for(;l<n.length&&o>=0;){if(!e(n[l],c[o])){r=!1;break}l++,o--}}}return r}return{a:v,b:T,c:U,d:W,e:q,f:z,g:K}},"Color",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{d as i}from"./FPDW4F45.js";import{g as f}from"./KZ7WEJMS.js";import a from"./
|
|
2
|
+
import{d as i}from"./FPDW4F45.js";import{g as f}from"./KZ7WEJMS.js";import a from"./I6BJSMZD.js";import{n as d}from"./DGTF5KBL.js";import"./C4C2IRUU.js";import"./ETLJKITO.js";import{F as h,g as n,h as e,m as l,z as c}from"./S4BR3BWK.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Ac:m,Kc:g,Mc:p}])=>{var u=n`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,s=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async a=>{let t=a?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(t)},this.popoverPlacement="leading",this.arcgisChartsConfigWebChartChange=l()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5}}static{this.styles=u}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(a){let t=!1;a.has("model")&&this.modelChange(this.model,a.get("model")),a.has("r2")&&this.r2Change(this.r2),a.has("layer")&&this.layer!==void 0&&!d(a.get("layer"),this.layer)&&(t=!0),a.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==a.get("usePopupTemplateFieldsInfo")&&(t=!0),this.layerFieldsInfo===void 0&&(t=!0),t&&this.updateFetchLayerFieldsInfo()}modelChange(a,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),a?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(a){Number.isFinite(a)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(a){let t=a??this.model.config,o=this.layer;if(!o){let r=f(t)?t.iLayer:void 0;r&&(o=await g(r))}o&&(this.layerFieldsInfo=await p(o,this.usePopupTemplateFieldsInfo))}render(){let a;switch(this.page){case i.Data:a=e`<arcgis-charts-config-scatter-plot-data .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${m(this.layer)?.isTable}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:a=e`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:a=e`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:a=e`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:a=e`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:a="";break}return a}};h("arcgis-charts-config-scatter-plot",s);return s},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import m from"./
|
|
2
|
+
import m from"./R6MQQR77.js";import l from"./SPJVLQCN.js";import k from"./6OOHQ4OW.js";import j from"./APVBYCD4.js";import i from"./355HB6CQ.js";import h from"./TY5MIKYJ.js";import g from"./JJWC72GX.js";import e from"./BQYCNOBE.js";import d from"./U2KOICYL.js";import"./KZ7WEJMS.js";import a from"./I6BJSMZD.js";import"./DGTF5KBL.js";import"./C4C2IRUU.js";import"./2OGUU3CF.js";import"./EZM4ZDQI.js";import{a as c,b as f,s as b}from"./ETLJKITO.js";import"./S4BR3BWK.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Ba:_,Nc:S,V:p,ca:v,la:g,ua:m},{b:I,q:C},{c:s},,,L,{b:w,d:D,f:R},{b:T,d:A,f:W},{a:F,b:E},V])=>{var M=t=>t.axes[0].needle?.visible??!0,$=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=g()),e.axes[0].needle.visible=t},G=t=>t.axes[0].needle?.symbol,j=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=g()),e.axes[0].needle.symbol=t},q=t=>t.axes[0].needle?.startWidth,O=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=g()),e.axes[0].needle.startWidth=t},N=t=>t.axes[0].needle?.endWidth,z=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=g()),e.axes[0].needle.endWidth=t},B=t=>t.axes[0].needle?.innerRadius,H=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=g()),e.axes[0].needle.innerRadius=t},J=t=>t.axes[0].needle?.displayPin??!1,K=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=g()),e.axes[0].needle.displayPin=t},Q=t=>t.axes[0].innerLabel?.visible??!0,U=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),e.axes[0].innerLabel.visible=t},X=t=>t.axes[0].innerLabel?.content,Y=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),t!==void 0&&(e.axes[0].innerLabel.content=t)},Z=t=>t.axes[0].ticks?.visible??!0,ee=(t,e)=>{e.axes[0].ticks===void 0&&(e.axes[0].ticks={type:c.GaugeAxisTick}),e.axes[0].ticks.visible=t},te=t=>t.axes[0].labelsIncrement,ie=(t,e)=>{e.axes[0].labelsIncrement=t},ne=t=>t.axes[0].onlyShowFirstAndLastLabels??!1,se=(t,e)=>{e.axes[0].onlyShowFirstAndLastLabels=t},oe=t=>t.series[0]?.valueConversion,re=(t,e)=>{e.series[0]!==void 0&&(e.series[0].valueConversion=t)},P=t=>t.series[0]?.featureIndex,k=t=>{let{featureIndex:e,config:i,layerInfo:a,commonStrings:o}=t,l=x(i),d=y(i);e===null?delete i.series[0].featureIndex:i.series[0]!==void 0&&(i.series[0].featureIndex=e),h({config:i,layerInfo:a,field:l,aggregationType:d,commonStrings:o})},ae=t=>t.subType??b.StatisticGauge,le=t=>{let{config:e,field:i,aggregationType:a}=t;if(a!==f.NoAggregation){let o=P(e),l=u(o)?{}:{outStatistics:[{statisticType:a,onStatisticField:i,outStatisticFieldName:`${a}_${i}`}]};e.series[0].query=l}},ge=t=>{let{config:e,layerInfo:i,commonStrings:a,field:o,aggregationType:l}=t;e.title&&(e.title.content.text=I({config:e,layerInfo:i,commonStrings:a,numericFields:[o],aggregationType:l}))},h=t=>{let{config:e,field:i,aggregationType:a}=t;e.series[0]===void 0&&(e.series=[m({})]);let o=u(e.series[0]?.featureIndex),l=o?i:`${a}_${i}`;o&&i.startsWith(`${a}_`)&&(l=i.replace(`${a}_`,"")),e.series[0].x=l,le({config:e,field:i,aggregationType:a}),ge(t)},y=t=>t.series[0]?.query?.outStatistics?.[0]?.statisticType??f.Count,de=t=>{let{config:e,layerInfo:i,commonStrings:a,aggregationType:o}=t,l=x(e);h({config:e,layerInfo:i,commonStrings:a,field:l,aggregationType:o})},u=t=>typeof t=="number"&&t>=0,x=t=>u(t.series[0]?.featureIndex)?t.series[0]?.x:t.series[0]?.query?.outStatistics?.[0]?.onStatisticField??"",ce=t=>{let{field:e,config:i,layerInfo:a,commonStrings:o}=t,l=y(i);h({config:i,layerInfo:a,commonStrings:o,field:e,aggregationType:l})},fe=t=>t.innerRadius??50,pe=(t,e)=>{e.innerRadius=t},me=t=>t.startAngle??-90,he=(t,e)=>{e.startAngle=t},ye=t=>t.endAngle??270,ue=(t,e)=>{e.endAngle=t};function xe(t){return v(t)}var be=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,r=(t,e,i,a)=>{for(var o=ve(e,i),l=t.length-1,d;l>=0;l--)(d=t[l])&&(o=d(e,i,o)||o);return o&&be(e,i,o),o},n=class extends L{constructor(){super(...arguments),this._chartType=c.GaugeSeries}generateChartTitle(){return xe(this.commonStrings)}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get field(){return x(this._config)}set field(e){ce({field:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get aggregationType(){return y(this._config)}set aggregationType(e){de({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get innerRadius(){return fe(this._config)}set innerRadius(e){pe(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get startAngle(){return me(this._config)}set startAngle(e){he(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get endAngle(){return ye(this._config)}set endAngle(e){ue(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get valueConversion(){return oe(this._config)}set valueConversion(e){re(e,this._config)}get featureIndex(){return P(this._config)}set featureIndex(e){k({featureIndex:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}removeFeatureIndex(){k({featureIndex:null,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get gaugeSubType(){return ae(this._config)}get needleVisibility(){return M(this._config)}set needleVisibility(e){$(e,this._config)}get needleSymbol(){return G(this._config)}set needleSymbol(e){j(e,this._config)}get needleStartWidth(){return q(this._config)}set needleStartWidth(e){O(e,this._config)}get needleEndWidth(){return N(this._config)}set needleEndWidth(e){z(e,this._config)}get needleInnerRadius(){return B(this._config)}set needleInnerRadius(e){H(e,this._config)}get needleDisplayPin(){return J(this._config)}set needleDisplayPin(e){K(e,this._config)}get innerLabelVisible(){return Q(this._config)}set innerLabelVisible(e){U(e,this._config)}get innerLabelContent(){return X(this._config)}set innerLabelContent(e){Y(e,this._config)}get axisTickVisibility(){return Z(this._config)}set axisTickVisibility(e){ee(e,this._config)}get labelsIncrement(){return te(this._config)}set labelsIncrement(e){ie(e,this._config)}get onlyShowFirstAndLastLabels(){return ne(this._config)}set onlyShowFirstAndLastLabels(e){se(e,this._config)}generateDefaultConfig(){let e=_(this.commonStrings);return e.series=[m({objectIDField:S(this.layerInfo.layer).idField})],e}};r([s],n.prototype,"field");r([s],n.prototype,"aggregationType");r([s],n.prototype,"innerRadius");r([s],n.prototype,"startAngle");r([s],n.prototype,"endAngle");r([s],n.prototype,"valueConversion");r([s],n.prototype,"featureIndex");r([s],n.prototype,"removeFeatureIndex");r([s],n.prototype,"needleVisibility");r([s],n.prototype,"needleSymbol");r([s],n.prototype,"needleStartWidth");r([s],n.prototype,"needleEndWidth");r([s],n.prototype,"needleInnerRadius");r([s],n.prototype,"needleDisplayPin");r([s],n.prototype,"innerLabelVisible");r([s],n.prototype,"innerLabelContent");r([s],n.prototype,"axisTickVisibility");r([s],n.prototype,"labelsIncrement");r([s],n.prototype,"onlyShowFirstAndLastLabels");var _e=[w,E,D,F,T,A,W,R,V];C(n,_e);return n},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,d,e,g,h,i,j,k,l,m)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./JJWC72GX.js";import b from"./BQYCNOBE.js";import a from"./I6BJSMZD.js";import{g as c,i as f,j as h,k as g,l as u}from"./2OGUU3CF.js";export default $arcgis.t(([,,,,,,,,,,,,,,{E:l,Gb:n},{b:a,c:p},{c:d,d:y,e:T,f:A}])=>{var P=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=(i,t,s,b)=>{for(var r=j(t,s),e=i.length-1,o;e>=0;e--)(o=i[e])&&(r=o(t,s,r)||r);return r&&P(t,s,r),r};function R(i){return i!==void 0&&"xAxisTitleText"in i}var m=class extends a{get xAxisTitleText(){return d(0,this._config)}set xAxisTitleText(t){y(t,0,this._config)}};O([p],m.prototype,"xAxisTitleText");var _=Object.defineProperty,C=Object.getOwnPropertyDescriptor,V=(i,t,s,b)=>{for(var r=C(t,s),e=i.length-1,o;e>=0;e--)(o=i[e])&&(r=o(t,s,r)||r);return r&&_(t,s,r),r};function Y(i){return i!==void 0&&"xAxisTitleVisibility"in i}var x=class extends a{get xAxisTitleVisibility(){return T(0,this._config)}set xAxisTitleVisibility(t){A(t,0,this._config)}};V([p],x.prototype,"xAxisTitleVisibility");function Z(i){return i!==void 0&&"generateXAxisTitle"in i}var v=class extends a{generateXAxisTitle(){let t=this.layerInfo?.layerFieldsInfo;if(t===void 0)return"";if(h(this)||c(this))return n(t,this.xAxisField);if(f(this))return this.category!==l?n(t,this.category):"";if(g(this))return n(t,this.numericField);if(u(this)){let s=this.xTemporalBinning?.unit;return s!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[s]:""}return""}};return{a:R,b:m,c:Y,d:x,e:Z,f:v}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as e,c as n,d as o}from"./S5OM65RV.js";import b from"./
|
|
2
|
+
import{b as e,c as n,d as o}from"./S5OM65RV.js";import b from"./W4PYW7Y6.js";import a from"./I6BJSMZD.js";import{d,q as y}from"./2OGUU3CF.js";import{a as l,y as S}from"./ETLJKITO.js";export default $arcgis.t(([,,,,,,,{Ib:p,Rb:x,Wd:C,gd:B,u:m,yb:g},{a:h}])=>{var v=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],D=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],w=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],L=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],T=[e.EditChart,e.Legend,e.FilterBySelection,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage],V=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],M=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.FilterByExtent,e.ExportAsImage,e.ExportAsCSV];function U(a){switch(a){case l.BarSeries:return v;case l.LineSeries:return D;case l.ComboLineAndBarSeries:return w;case l.PieSeries:return L;case l.HistogramSeries:return V;case l.ScatterSeries:return Z;case l.BoxPlotSeries:return M;case l.GaugeSeries:return P;case l.HeatSeries:return T;default:return[]}}var X=(a,i,t)=>{let r=a.target.assignedNodes().find(c=>"legendToggle"in c),s=S(t?.series);return r&&(r.chartType=s,R({actionBar:r,chartComponent:i,config:t})),r};function R(a){let{actionBar:i,chartComponent:t,config:r,isWarningDisplayed:s}=a,c=x(t.selectionData),f=r?.legend?r.legend.visible??!0:!1;if(i.chartType=S(r?.series),t.enableConfiguration){let F=i.hiddenActions??[];i.hiddenActions=F.filter(I=>I!==e.EditChart)}i.editChartState=t.enableConfiguration?o.Enabled:o.Disabled;let E=r&&p(r.series);i.legendState=E?o.Enabled:o.Disabled;let A=d(t?.model)&&y(t?.model)?t.model.legendVisibility:f;i.legendToggle=E&&A?n.Active:n.Inactive;let b=d(t?.model)&&h(t.model)?t.model.rotatedState:r?.rotated;i.rotateChartToggle=b?n.Active:n.Inactive;let u=B(r?.series??[])===g.PieFromFields;i.filterBySelectionState=!u&&(t.filterBySelection===!0||!c&&t.filterByExtent!==!0)?o.Enabled:o.Disabled,i.filterBySelectionToggle=t.filterBySelection===!0?n.Active:n.Inactive,i.filterByExtentState=t.filterByExtent===!0||t.filterBySelection!==!0?o.Enabled:o.Disabled,i.filterByExtentToggle=t.filterByExtent===!0?n.Active:n.Inactive,i.zoomState=t.filterBySelection?o.Disabled:o.Enabled,i.zoomToggle=t.actionMode===m.Zoom?n.Active:n.Inactive,i.selectionState=t.filterBySelection?o.Disabled:o.Enabled,i.selectionToggle=(t.actionMode??i.actionBarSelectionMode)===i.actionBarSelectionMode?n.Active:n.Inactive,i.clearSelectionState=c?o.Disabled:o.Enabled,i.fullExtentState=t.filterBySelection?o.Disabled:o.Enabled,i.switchSelectionState=t.filterBySelection?o.Disabled:o.Enabled,i.exportActionState=s||C(r)?o.Disabled:o.Enabled}return{a:U,b:X,c:R}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl",a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./TY5MIKYJ.js";import c from"./JJWC72GX.js";import b from"./U2KOICYL.js";import a from"./I6BJSMZD.js";import{c as p}from"./ETLJKITO.js";export default $arcgis.t(([{substitute:C},,,,,,,,,,,,,,{Ea:t,Ga:a,Gb:y,W:l,Wd:c,ba:r},{a:u,d:n},{c:x},{a:f}])=>{var v=s=>{n({config:s,value:null,axisIndex:0,isMax:!1}),n({config:s,value:null,axisIndex:0,isMax:!0}),n({config:s,value:null,axisIndex:1,isMax:!1}),n({config:s,value:null,axisIndex:1,isMax:!0})};function D(s,e,i){let{layerFieldsInfo:o}=e,m=y(o,g(s));return C(i.titleLabels.distributionOfField,{valueField:m})}var g=s=>s.series[0]?.x??"",Z=s=>{let{numericField:e,config:i,layerInfo:o,commonStrings:m}=s,{layerFieldsInfo:b}=o,I=D(i,o,m),S=f(i),F=x(0,i),M=y(b,g(i)),d=c(i);if(v(i),i?.series?.[0]&&(i.series[0].x=e),M===F||d){let T=y(b,e);u(i,0,T)}i.title&&(I===S||d)&&(i.title.content.text=D(i,o,m))},$=s=>s.series[0]?.dataTransformationType??p.None,ss=(s,e)=>{v(e),e?.series?.[0]&&(e.series[0].dataTransformationType=s)},es=s=>s.series[0]?.binCount??32,is=(s,e)=>{v(e),e?.series?.[0]&&(e.series[0].binCount=s)},rs=s=>s.series[0]?.fillSymbol??a().fillSymbol,as=(s,e)=>{e?.series?.[0]&&(e.series[0].fillSymbol={...e.series[0].fillSymbol,...s})},O=s=>s.series[0]?.overlays?.comparisonDistribution?.symbol??a().overlays.comparisonDistribution?.symbol??l(),os=(s,e)=>{e.series[0].overlays??=t(),e.series[0].overlays.comparisonDistribution??=r(4),e.series[0].overlays.comparisonDistribution.symbol={...e.series[0].overlays.comparisonDistribution.symbol,...s}},h=s=>s.series[0]?.overlays?.mean?.symbol??a().overlays.mean?.symbol??l(),ls=(s,e)=>{e.series[0].overlays??=t(),e.series[0].overlays.mean??=r(1),e.series[0].overlays.mean.symbol={...e.series[0].overlays.mean.symbol,...s}},A=s=>s.series[0]?.overlays?.median?.symbol??a().overlays.median?.symbol??l(),ts=(s,e)=>{e.series[0].overlays??=t(),e.series[0].overlays.median??=r(2),e.series[0].overlays.median.symbol={...e.series[0].overlays.median.symbol,...s}},N=s=>s.series[0]?.overlays?.standardDeviation?.symbol??a().overlays.standardDeviation?.symbol??l(),ns=(s,e)=>{e.series[0].overlays??=t(),e.series[0].overlays.standardDeviation??=r(3),e.series[0].overlays.standardDeviation.symbol={...e.series[0].overlays.standardDeviation.symbol,...s}},ms=s=>(s.series[0]?.overlays?.comparisonDistribution?.created??!1)&&(s.series[0]?.overlays?.comparisonDistribution?.visible??!1),ys=(s,e)=>{let i=r(0);i.created=s,i.visible=s,i.symbol=O(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.comparisonDistribution=i)},vs=s=>(s.series[0]?.overlays?.mean?.created??!1)&&(s.series[0]?.overlays?.mean?.visible??!1),bs=(s,e)=>{let i=r(1);i.created=s,i.visible=s,i.symbol=h(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.mean=i)},ds=s=>(s.series[0]?.overlays?.median?.created??!1)&&(s.series[0]?.overlays?.median?.visible??!1),ps=(s,e)=>{let i=r(2);i.created=s,i.visible=s,i.symbol=A(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.median=i)},cs=s=>(s.series[0]?.overlays?.standardDeviation?.created??!1)&&(s.series[0]?.overlays?.standardDeviation?.visible??!1),us=(s,e)=>{let i=r(3);i.created=s,i.visible=s,i.symbol=N(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.standardDeviation=i)},fs=s=>s?.series?.[0]?.overlays,xs=(s,e)=>{e?.series?.[0]!==void 0&&(e.series[0].overlays=s)};return{a:D,b:g,c:Z,d:$,e:ss,f:es,g:is,h:rs,i:as,j:O,k:os,l:h,m:ls,n:A,o:ts,p:N,q:ns,r:ms,s:ys,t:vs,u:bs,v:ds,w:ps,x:cs,y:us,z:fs,A:xs}},"intl","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,d)
|