@arcgis/charts-components 5.2.0-next.162 → 5.2.0-next.163
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/{AU5XPM24.js → 3EF66ZTP.js} +8 -8
- package/dist/cdn/QU4RD5RM.js +2 -0
- package/dist/cdn/{W2E7LFTT.js → UI252GPU.js} +1 -1
- package/dist/cdn/{KEKVMGV6.js → Y6FVIABL.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/scatterplot-model.js +66 -65
- package/dist/components/arcgis-chart/customElement.js +103 -100
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/spec/rest-js-types.d.ts +1 -5
- package/package.json +4 -4
- package/dist/cdn/YFDABY5Y.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import o from"./57IBZI2Q.js";import n from"./ENSGJAYI.js";import l from"./ZDM5IDLI.js";import k from"./5RI6YXV2.js";import j from"./L3P6D53Z.js";import i from"./VBZUDWPR.js";import h from"./TPWN3WU6.js";import g from"./YAH2CORT.js";import"./O4TPXFX4.js";import f from"./AZ2Z7W7G.js";import e from"./TWAPMNSX.js";import d from"./34EBYEM7.js";import c from"./LEUIZWRV.js";import b from"./3L5TASX6.js";import a from"./7DHOI5P2.js";import{X as A,Y as y,sa as L}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as F,q as m}from"./NGXRBJKL.js";import"./ZM64YDWU.js";import"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as _}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:oe},{Hc:C,Zb:M,hc:f,t:b},,{e:l},{c:v,f:g,i:O,r:I},{a:P},w,{b:H,d:J,f:K},{b:q,d:B,f:G},{d:Y,e:D},j,{d:p},{b:Q},{a:z,b:E,c:k,d:W},{a:N,b:X}])=>{var U=i=>{g({config:i,value:null,axisIndex:0,isMax:!1}),g({config:i,value:null,axisIndex:0,isMax:!0}),g({config:i,value:null,axisIndex:1,isMax:!1}),g({config:i,value:null,axisIndex:1,isMax:!0})},V=i=>{let{name:e,axisIndex:s,config:r,layerInfo:o}=i,{layerFieldsInfo:t}=o,n=t.find(x=>x.name===e),d=n!==void 0&&C(n);O(r,s,d)};function Z(i,e,s){let r=T(i,e,s),o=P(i),t=p(i);return r===o||t}function $(i,e){let{layerFieldsInfo:s}=e,r=f(s,h(i)),o=I(1,i),t=p(i);return r===o||t}function ee(i,e){let{layerFieldsInfo:s}=e,r=u(i),o=f(s,r),t=I(0,i),n=p(i);return o===t||n}function T(i,e,s){let r=u(i),o=h(i),{layerFieldsInfo:t}=e,n=f(t,r),d=f(t,o);return oe(s.titleLabels.xAndY,{x:n,y:d})}var ie=i=>{let{x:e,y:s,config:r,layerInfo:o,updateChartTitle:t,updateXAxisTitle:n,updateYAxisTitle:d,commonStrings:x}=i,{layerFieldsInfo:S}=o,se=f(S,e),re=f(S,s);!m(e)&&n&&v(r,0,se),!m(s)&&d&&v(r,1,re),!m(e)&&!m(s)&&r.title&&t&&(r.title.content.text=T(r,o,x))},u=i=>i.series[0]?.x??"",h=i=>i.series[0]?.y??"",te=i=>{let{fieldName:e,config:s,layerInfo:r,commonStrings:o}=i,t=Z(s,r,o),n=ee(s,r),d=$(s,r);U(s),s.series[0]&&(s.series[0].x=e),ie({x:e,y:h(s),config:s,layerInfo:r,updateChartTitle:t,commonStrings:o,updateXAxisTitle:n,updateYAxisTitle:d}),V({name:e,axisIndex:0,config:s,layerInfo:r})},ne=i=>{let{fieldName:e,config:s,layerInfo:r,commonStrings:o}=i,t=Z(s,r,o),n=ee(s,r),d=$(s,r);U(s),s.series[0]&&(s.series[0].y=e),ie({x:u(s),y:e,config:s,layerInfo:r,commonStrings:o,updateChartTitle:t,updateXAxisTitle:n,updateYAxisTitle:d}),V({name:e,axisIndex:1,config:s,layerInfo:r})},ae=i=>{let e={};return i.series[0]?.markerSymbol??e},le=(i,e)=>{e.series[0]&&(e.series[0].markerSymbol=i)},de=i=>i.series[0]?.locationsOfInterest,ce=(i,e)=>{e.series[0]&&(e.series[0].locationsOfInterest=i)},fe=i=>(i.series[0]?.overlays?.trendLine?.visible??!0)&&(i.series[0]?.overlays?.trendLine?.created??!1),ye=i=>{let e={};return i.series[0]?.overlays?.trendLine?.symbol??e},me=(i,e)=>{e.series[0].overlays??=y(),e.series[0].overlays.trendLine??=y().trendLine,e.series[0].overlays.trendLine.symbol=i},ge=(i,e)=>{e.series[0].overlays??=y(),e.series[0].overlays.trendLine??=y().trendLine,e.series[0].overlays.trendLine.visible=i},pe=(i,e)=>{!(e.series[0]?.overlays?.trendLine?.created??!1)&&i&&(e.series[0].overlays??=y(),e.series[0].overlays.trendLine??=y().trendLine,e.series[0].overlays.trendLine.created=i),ge(i,e)},R=i=>i.series[0]?.sizePolicy??A(),ue=(i,e)=>{e.series[0]&&(i!==void 0&&i.field?.trim()!==""?e.series[0].sizePolicy={...e.series[0].sizePolicy,...i}:e.series[0].sizePolicy=void 0)},he=i=>i?.series?.[0]?.overlays,xe=(i,e)=>{e?.series[0]!==void 0&&(e.series[0].overlays=i)},ve=i=>i.series.find(e=>e.additionalTooltipFields!==void 0)?.additionalTooltipFields??[],Ie=(i,e)=>{e.series.forEach(s=>{Array.isArray(i)?s.additionalTooltipFields=i:typeof i=="string"?s.additionalTooltipFields=i.trim()===""?[]:[i]:s.additionalTooltipFields=[]})},Te=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,c=(i,e,s,r)=>{for(var o=Se(e,s),t=i.length-1,n;t>=0;t--)(n=i[t])&&(o=n(e,s,o)||o);return o&&Te(e,s,o),o},a=class extends w{constructor(){super(...arguments),this._chartType=_.ScatterSeries}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get xAxisField(){return u(this._config)}set xAxisField(e){te({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get yAxisField(){return h(this._config)}set yAxisField(e){ne({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get showLinearTrend(){return fe(this._config)}set showLinearTrend(e){pe(e,this._config)}get linearTrendSymbol(){return ye(this._config)}set linearTrendSymbol(e){me(e,this._config)}get fixedMarkerSymbol(){return ae(this._config)}set fixedMarkerSymbol(e){le(e,this._config)}get locationsOfInterest(){return de(this._config)}set locationsOfInterest(e){ce(e,this._config)}get sizePolicy(){return R(this._config)}set sizePolicy(e){let s=R(this._config);F(s,e)||ue(e,this._config)}get seriesOverlays(){return he(this._config)}set seriesOverlays(e){e!==void 0&&xe(e,this._config)}get additionalTooltipField(){return ve(this._config)}set additionalTooltipField(e){Ie(e,this._config)}generateChartTitle(){return T(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){let e=this.yAxisField;return f(this.layerInfo.layerFieldsInfo,e)}generateDefaultConfig(){let e=L(this.commonStrings);return b(this.layerInfo?.layer)&&(e.colorMatch=!1),e}};c([l],a.prototype,"xAxisField");c([l],a.prototype,"yAxisField");c([l],a.prototype,"showLinearTrend");c([l],a.prototype,"linearTrendSymbol");c([l],a.prototype,"fixedMarkerSymbol");c([l],a.prototype,"locationsOfInterest");c([l],a.prototype,"sizePolicy");c([l],a.prototype,"seriesOverlays");c([l],a.prototype,"additionalTooltipField");var Fe=[N,z,E,k,W,Q,j,X,H,Y,J,D,q,B,G,K];M(a,Fe);return a},"intl",a,b,c,d,e,f,g,h,i,j,k,l,n,o)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import v from"./7IIIIZMH.js";import{a as te}from"./L7CMLBHB.js";import{a as ae}from"./Y5CHG4IT.js";import{a as w}from"./KSDJFASU.js";import{a as ie}from"./RP6LD7CU.js";import u from"./32HL4LJM.js";import{a as $,b as J,e as W}from"./OBPAQN4H.js";import{a as f}from"./DRYZWCWX.js";import t from"./BWLIKQZM.js";import{d as c}from"./POA2XTTK.js";import{a as I}from"./WZFDIC2M.js";import s from"./ZTMZ6GG4.js";import r from"./GBJ2EWWV.js";import p from"./6PN24NZH.js";import{a as Q}from"./KEKVMGV6.js";import"./K4GPJ36N.js";import m from"./IDULNX4O.js";import l from"./JR2RRIKO.js";import k from"./UQCVYMWO.js";import i from"./5RI6YXV2.js";import{b as j,c as P,i as q,l as B,p as L,r as K}from"./O4TPXFX4.js";import g from"./TWAPMNSX.js";import e from"./34EBYEM7.js";import d from"./LEUIZWRV.js";import b from"./3L5TASX6.js";import a from"./7DHOI5P2.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as M,d as U}from"./NGXRBJKL.js";import"./ZM64YDWU.js";import{A,B as V,C as h,D as _,F as S,H as z,g as F,i as n,n as C,z as N}from"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as o,k as H}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:le},{Fb:X,kc:G,l:R,s:O,t:b,tc:v,ya:x},,,,,{d:T},,{a:Y},,,,,{r:ee},{e:y,f:Z},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function se(m,e){let t=new Set,a=e;return m?.forEach((i,s)=>{let r=i.chartId;(t.has(r)||r===void 0||r==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===r&&(a=i.chartId)),t.add(r)}),a}function oe(m){let{layerRasterInfo:e,layerId:t,layerType:a}=m,i=[];return O(a)&&t!==void 0?(i=[o.HistogramSeries,o.ScatterSeries],e?.attributeTable&&i.push(o.BarSeries)):a==="parquet"?i=[o.BarSeries,o.LineSeries,o.PieSeries,o.HistogramSeries]:i=[o.HistogramSeries,o.BarSeries,o.BoxPlotSeries,o.HeatSeries,o.LineSeries,o.PieSeries,o.ScatterSeries],i}function ce(m){let{modelList:e,layerList:t,activeLayerId:a,disableEditing:i}=m,s=new Map;return e?.forEach(r=>{let l=r.layer;l&&s.set(l.id,l)}),i||t.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!a||r.id===a)}function ne(m,e){m.forEach(t=>{e.forEach(a=>{t?.id===a.layer?.id&&re(t,a)})})}function re(m,e){let t=m;if(t){let a=[...t?.charts??[]],i=a?.findIndex(r=>r.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!M(a[i],e.config),a[i]=e.config):t&&!T(e.config)&&(s=!0,a.push(e.config)),s&&(t.charts=a)}}function he(m,e){let t=m;if(t){let a=[...t.charts??[]],i=a.findIndex(s=>s.id===e);i>-1&&(a.splice(i,1),t.charts=a)}}function de(m,e){let t=m;if(t){let a=[...t.charts??[]];a=v({arrayA:a,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),t.charts=a}}var me=F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}: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}`,D=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this._messages=I(),this.commonStrings=I({name:"common",blocking:!0}),this.chartDataProcessComplete=async e=>{let t=e,{chartData:a,model:i}=t.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:if(this.chartData=a,i&&(i.dataStore.chartData=a,b(i.layer))){let r=i,l=a?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=a,i&&(i.dataStore.chartData=a);break}case o.ScatterSeries:{let r=a,{dataItems:l,r2:p,aggregated:g}=r,u=p;Number.isFinite(p)||(u=void 0),this.r2=u,q(i)&&(i.dataStore.r2=u,i.dataStore.aggregated=g,g&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=a;(P(s)||j(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&W($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}}},this.chartAxesMinMaxChange=e=>{let t=e,{bounds:a,model:i}=t.detail,s=this.getModel(this.selectedChartId),r=i?.isSameChartAs(s),l=s?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=a,i&&(i.dataStore.calculatedMinMaxBounds=a),this.updateAxesBoundsInAppState(a);break}},this.chartSeriesColorChange=e=>{let t=e,{colorMatchApplied:a,data:i,model:s}=t.detail,r=this.getModel(this.selectedChartId);if(s?.isSameChartAs(r))switch(r?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=i,s&&(s.dataStore.seriesColor=i),this.applyNullCategorySeriesColor({colorMatchApplied:a,data:i,model:r});break;case o.PieSeries:{let l=new Map([[0,i]]);this.seriesColor=l,s&&(s.dataStore.seriesColor=l);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let t=e,{propName:a,value:i,model:s}=t.detail,r=this.modelList.find(l=>s?.isSameChartAs(l));if(r)switch(a){case"rotation":typeof i=="boolean"&&Y(r)&&(r.rotated=i);break;case"legendPosition":typeof i=="string"&&L(r)&&(r.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&L(r)&&(r.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let t=e,{legendItemVisibility:a,model:i}=t.detail,s=this.modelList.find(r=>i?.isSameChartAs(r));s?.setSeriesVisibility(a),B(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),P(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:t,layerId:a}=e.target;t!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:t,layerId:a}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let t=e.target;re(t?.layer,t)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,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,close:5,chartData:[0,{hasChanged:y}],view:0,r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:Z}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=me}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()}applyNullCategorySeriesColor(e){let{colorMatchApplied:t,data:a,model:i}=e;K(i)&&i.nullCategory===void 0&&(i.nullCategory=this.getDefaultNullCategory(t?this.getSeriesColor(a):void 0))}getSeriesColor(e){let t=e.get(0),a;return t&&"color"in t?a=t.color:t&&"lineSymbol"in t&&(a=t.markerSymbol?.color??t.lineSymbol.color),a}getDefaultNullCategory(e){let t=U(R.nullCategory);return e!==void 0&&(t.fillSymbol&&(t.fillSymbol.color=e,t.fillSymbol.outline&&(t.fillSymbol.outline.color=e)),t.markerSymbol&&(t.markerSymbol.color=e,t.markerSymbol.outline&&(t.markerSymbol.outline.color=e))),t}modelListReorderChangeListener(e){let{modelList:t}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:t,getKey:a=>a.chartId??a.titleText??""}),this.syncChartsToLayers){let a=t.find(i=>i.layer?.id!==void 0)?.layer?.id;if(a){let i=this.layerList.find(s=>s.id.toString()===a);i&&de(i,t)}}}async layerListChange(){let e=[],t=this.layerList.map(i=>i.id.toString()),a=[...this.modelList.filter(i=>t.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let p=await i.createFeatureLayer();if(!p)continue;i=p}let s=i.charts,r=b(i)?await x(i):void 0,l=oe({layerRasterInfo:r,layerId:i.id,layerType:i.type});for(let p of s??[]){let g;G(l,p)&&(g=await Q({layer:i,config:p,commonStrings:this.commonStrings})),g&&e.push(g)}}se(e),e.forEach(i=>{a.find(s=>s.isSameChartAs(i))===void 0&&a.push(i)}),this.modelList=a}modelListChange(e,t){this.selectedChartId=se(e,this.selectedChartId),t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let a=this.getModel(this.selectedChartId);this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&ne(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=c.Data;let t=this.getModel(e);this.setEventBasedPropsFromModelData(t),this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:t})}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 t=this.getModel(this.selectedChartId)?.config,a=[];if(t!==void 0&&e!==void 0){let i=X({chartConfig:t,chartData:e}),{minY:s,maxY:r,minX:l,maxX:p}=i;a=[{isXAxis:!0,minimum:l,maximum:p},{isXAxis:!1,minimum:s,maximum:r}]}return a}updateAxesBoundsInAppState(e){e?.forEach(t=>{let{isXAxis:a,maximum:i,minimum:s}=t,r=this.getModel(this.selectedChartId);if(r!==void 0&&B(r)&&this.selectedChartId!==void 0){let l=new te(r,a),p=J({chartId:this.selectedChartId,isXAxis:a,isLogarithmic:l.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let u=g[this.selectedChartId]?.[p],E={defaultMinBound:u?.defaultMinBound===u?.currMinBound?s:u?.defaultMinBound,currMinBound:s,defaultMaxBound:u?.defaultMaxBound===u?.currMaxBound?i:u?.defaultMaxBound,currMaxBound:i};!M(u,E)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][p]=E)}})}getPlacement(e){let t;return this.popoverPlacement!==void 0?t=this.popoverPlacement:t=e<=2?"bottom":"top",t}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:t,layer:a}=e.detail;this.removeSelectChartTypePopover();let i=oe({layerId:a?.id,layerType:a?.type,layerRasterInfo:b(a)?await x(a):void 0}),s=this.getPlacement(i.length);this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${t} open .layerId=${a?.id?.toString()} .layerType=${a?.type} .supportedChartTypes=${i} .popoverPlacement=${s} @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(t=>t.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=ie(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!T(e.config))}onViewChartDelete(e){let{chartId:t}=e.detail;if(t!==void 0){let a=this.modelList.find(s=>s.chartId===t),i=this.layerList.find(s=>s.id===a?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==t)],i&&this.syncChartsToLayers&&he(i,t)}}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.close=!0,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 t=e.target,a="";switch(t.icon){case"configure":a=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":a=this._messages.series??"";break;case"graph-pie-slice":a=this._messages.slices??"";break;case"graph-axis":a=this._messages.axes??"";break;case"graph-guides":a=this._messages.guides??"";break;case"palette":a=this._messages.format??"";break;case"text":a=this._messages.general??"";break;default:a="";break}this.tooltip=S(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ee(this.tooltip)}renderViewCharts(){let e=ce({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ae(e,t=>t.id,t=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${this.modelList.filter(a=>a.layer?.id===t.id)} .selectedChartId=${this.selectedChartId??""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:n`<calcite-flow>${w("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>`}renderTabs(){let e=this.getModel(this.selectedChartId);return w("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??c.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?le(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===c.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=c.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===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></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===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></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===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></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===c.Slices} @click=${()=>{this.selectedPanel=c.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices??""}></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===c.Axes} @click=${()=>{this.selectedPanel=c.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes??""}></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===c.Guides} @click=${()=>{this.selectedPanel=c.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides??""}></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===c.Format} @click=${()=>{this.selectedPanel=c.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format??""}></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===c.General} @click=${()=>{this.selectedPanel=c.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general??""}></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),t=e?.layer,a=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:a=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:a=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:a=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:a=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:a=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .view=${this.view} .page=${this.selectedPanel??c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:a=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:a=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data}></arcgis-charts-config-heat-chart>`;break}return a}};z("arcgis-charts-config-create-flow",D);return D},"intl",a,b,d,e,g,i,k,l,m,p,r,s,t,u,v)
|
|
2
|
+
import v from"./7IIIIZMH.js";import{a as te}from"./L7CMLBHB.js";import{a as ae}from"./Y5CHG4IT.js";import{a as w}from"./KSDJFASU.js";import{a as ie}from"./RP6LD7CU.js";import u from"./32HL4LJM.js";import{a as $,b as J,e as W}from"./OBPAQN4H.js";import{a as f}from"./DRYZWCWX.js";import t from"./BWLIKQZM.js";import{d as c}from"./POA2XTTK.js";import{a as I}from"./WZFDIC2M.js";import s from"./ZTMZ6GG4.js";import r from"./GBJ2EWWV.js";import p from"./6PN24NZH.js";import{a as Q}from"./Y6FVIABL.js";import"./K4GPJ36N.js";import m from"./IDULNX4O.js";import l from"./JR2RRIKO.js";import k from"./UQCVYMWO.js";import i from"./5RI6YXV2.js";import{b as j,c as P,i as q,l as B,p as L,r as K}from"./O4TPXFX4.js";import g from"./TWAPMNSX.js";import e from"./34EBYEM7.js";import d from"./LEUIZWRV.js";import b from"./3L5TASX6.js";import a from"./7DHOI5P2.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as M,d as U}from"./NGXRBJKL.js";import"./ZM64YDWU.js";import{A,B as V,C as h,D as _,F as S,H as z,g as F,i as n,n as C,z as N}from"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as o,k as H}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:le},{Fb:X,kc:G,l:R,s:O,t:b,tc:v,ya:x},,,,,{d:T},,{a:Y},,,,,{r:ee},{e:y,f:Z},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function se(m,e){let t=new Set,a=e;return m?.forEach((i,s)=>{let r=i.chartId;(t.has(r)||r===void 0||r==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===r&&(a=i.chartId)),t.add(r)}),a}function oe(m){let{layerRasterInfo:e,layerId:t,layerType:a}=m,i=[];return O(a)&&t!==void 0?(i=[o.HistogramSeries,o.ScatterSeries],e?.attributeTable&&i.push(o.BarSeries)):a==="parquet"?i=[o.BarSeries,o.LineSeries,o.PieSeries,o.HistogramSeries]:i=[o.HistogramSeries,o.BarSeries,o.BoxPlotSeries,o.HeatSeries,o.LineSeries,o.PieSeries,o.ScatterSeries],i}function ce(m){let{modelList:e,layerList:t,activeLayerId:a,disableEditing:i}=m,s=new Map;return e?.forEach(r=>{let l=r.layer;l&&s.set(l.id,l)}),i||t.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!a||r.id===a)}function ne(m,e){m.forEach(t=>{e.forEach(a=>{t?.id===a.layer?.id&&re(t,a)})})}function re(m,e){let t=m;if(t){let a=[...t?.charts??[]],i=a?.findIndex(r=>r.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!M(a[i],e.config),a[i]=e.config):t&&!T(e.config)&&(s=!0,a.push(e.config)),s&&(t.charts=a)}}function he(m,e){let t=m;if(t){let a=[...t.charts??[]],i=a.findIndex(s=>s.id===e);i>-1&&(a.splice(i,1),t.charts=a)}}function de(m,e){let t=m;if(t){let a=[...t.charts??[]];a=v({arrayA:a,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),t.charts=a}}var me=F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}: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}`,D=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this._messages=I(),this.commonStrings=I({name:"common",blocking:!0}),this.chartDataProcessComplete=async e=>{let t=e,{chartData:a,model:i}=t.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:if(this.chartData=a,i&&(i.dataStore.chartData=a,b(i.layer))){let r=i,l=a?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=a,i&&(i.dataStore.chartData=a);break}case o.ScatterSeries:{let r=a,{dataItems:l,r2:p,aggregated:g}=r,u=p;Number.isFinite(p)||(u=void 0),this.r2=u,q(i)&&(i.dataStore.r2=u,i.dataStore.aggregated=g,g&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=a;(P(s)||j(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&W($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}}},this.chartAxesMinMaxChange=e=>{let t=e,{bounds:a,model:i}=t.detail,s=this.getModel(this.selectedChartId),r=i?.isSameChartAs(s),l=s?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=a,i&&(i.dataStore.calculatedMinMaxBounds=a),this.updateAxesBoundsInAppState(a);break}},this.chartSeriesColorChange=e=>{let t=e,{colorMatchApplied:a,data:i,model:s}=t.detail,r=this.getModel(this.selectedChartId);if(s?.isSameChartAs(r))switch(r?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=i,s&&(s.dataStore.seriesColor=i),this.applyNullCategorySeriesColor({colorMatchApplied:a,data:i,model:r});break;case o.PieSeries:{let l=new Map([[0,i]]);this.seriesColor=l,s&&(s.dataStore.seriesColor=l);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let t=e,{propName:a,value:i,model:s}=t.detail,r=this.modelList.find(l=>s?.isSameChartAs(l));if(r)switch(a){case"rotation":typeof i=="boolean"&&Y(r)&&(r.rotated=i);break;case"legendPosition":typeof i=="string"&&L(r)&&(r.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&L(r)&&(r.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let t=e,{legendItemVisibility:a,model:i}=t.detail,s=this.modelList.find(r=>i?.isSameChartAs(r));s?.setSeriesVisibility(a),B(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),P(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:t,layerId:a}=e.target;t!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:t,layerId:a}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let t=e.target;re(t?.layer,t)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,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,close:5,chartData:[0,{hasChanged:y}],view:0,r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:Z}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=me}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()}applyNullCategorySeriesColor(e){let{colorMatchApplied:t,data:a,model:i}=e;K(i)&&i.nullCategory===void 0&&(i.nullCategory=this.getDefaultNullCategory(t?this.getSeriesColor(a):void 0))}getSeriesColor(e){let t=e.get(0),a;return t&&"color"in t?a=t.color:t&&"lineSymbol"in t&&(a=t.markerSymbol?.color??t.lineSymbol.color),a}getDefaultNullCategory(e){let t=U(R.nullCategory);return e!==void 0&&(t.fillSymbol&&(t.fillSymbol.color=e,t.fillSymbol.outline&&(t.fillSymbol.outline.color=e)),t.markerSymbol&&(t.markerSymbol.color=e,t.markerSymbol.outline&&(t.markerSymbol.outline.color=e))),t}modelListReorderChangeListener(e){let{modelList:t}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:t,getKey:a=>a.chartId??a.titleText??""}),this.syncChartsToLayers){let a=t.find(i=>i.layer?.id!==void 0)?.layer?.id;if(a){let i=this.layerList.find(s=>s.id.toString()===a);i&&de(i,t)}}}async layerListChange(){let e=[],t=this.layerList.map(i=>i.id.toString()),a=[...this.modelList.filter(i=>t.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let p=await i.createFeatureLayer();if(!p)continue;i=p}let s=i.charts,r=b(i)?await x(i):void 0,l=oe({layerRasterInfo:r,layerId:i.id,layerType:i.type});for(let p of s??[]){let g;G(l,p)&&(g=await Q({layer:i,config:p,commonStrings:this.commonStrings})),g&&e.push(g)}}se(e),e.forEach(i=>{a.find(s=>s.isSameChartAs(i))===void 0&&a.push(i)}),this.modelList=a}modelListChange(e,t){this.selectedChartId=se(e,this.selectedChartId),t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let a=this.getModel(this.selectedChartId);this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&ne(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=c.Data;let t=this.getModel(e);this.setEventBasedPropsFromModelData(t),this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:t})}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 t=this.getModel(this.selectedChartId)?.config,a=[];if(t!==void 0&&e!==void 0){let i=X({chartConfig:t,chartData:e}),{minY:s,maxY:r,minX:l,maxX:p}=i;a=[{isXAxis:!0,minimum:l,maximum:p},{isXAxis:!1,minimum:s,maximum:r}]}return a}updateAxesBoundsInAppState(e){e?.forEach(t=>{let{isXAxis:a,maximum:i,minimum:s}=t,r=this.getModel(this.selectedChartId);if(r!==void 0&&B(r)&&this.selectedChartId!==void 0){let l=new te(r,a),p=J({chartId:this.selectedChartId,isXAxis:a,isLogarithmic:l.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let u=g[this.selectedChartId]?.[p],E={defaultMinBound:u?.defaultMinBound===u?.currMinBound?s:u?.defaultMinBound,currMinBound:s,defaultMaxBound:u?.defaultMaxBound===u?.currMaxBound?i:u?.defaultMaxBound,currMaxBound:i};!M(u,E)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][p]=E)}})}getPlacement(e){let t;return this.popoverPlacement!==void 0?t=this.popoverPlacement:t=e<=2?"bottom":"top",t}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:t,layer:a}=e.detail;this.removeSelectChartTypePopover();let i=oe({layerId:a?.id,layerType:a?.type,layerRasterInfo:b(a)?await x(a):void 0}),s=this.getPlacement(i.length);this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${t} open .layerId=${a?.id?.toString()} .layerType=${a?.type} .supportedChartTypes=${i} .popoverPlacement=${s} @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(t=>t.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=ie(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!T(e.config))}onViewChartDelete(e){let{chartId:t}=e.detail;if(t!==void 0){let a=this.modelList.find(s=>s.chartId===t),i=this.layerList.find(s=>s.id===a?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==t)],i&&this.syncChartsToLayers&&he(i,t)}}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.close=!0,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 t=e.target,a="";switch(t.icon){case"configure":a=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":a=this._messages.series??"";break;case"graph-pie-slice":a=this._messages.slices??"";break;case"graph-axis":a=this._messages.axes??"";break;case"graph-guides":a=this._messages.guides??"";break;case"palette":a=this._messages.format??"";break;case"text":a=this._messages.general??"";break;default:a="";break}this.tooltip=S(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ee(this.tooltip)}renderViewCharts(){let e=ce({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ae(e,t=>t.id,t=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${this.modelList.filter(a=>a.layer?.id===t.id)} .selectedChartId=${this.selectedChartId??""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:n`<calcite-flow>${w("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>`}renderTabs(){let e=this.getModel(this.selectedChartId);return w("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??c.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?le(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===c.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=c.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===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></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===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></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===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></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===c.Slices} @click=${()=>{this.selectedPanel=c.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices??""}></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===c.Axes} @click=${()=>{this.selectedPanel=c.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes??""}></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===c.Guides} @click=${()=>{this.selectedPanel=c.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides??""}></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===c.Format} @click=${()=>{this.selectedPanel=c.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format??""}></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===c.General} @click=${()=>{this.selectedPanel=c.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general??""}></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),t=e?.layer,a=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:a=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:a=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:a=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:a=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:a=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .view=${this.view} .page=${this.selectedPanel??c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:a=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:a=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data}></arcgis-charts-config-heat-chart>`;break}return a}};z("arcgis-charts-config-create-flow",D);return D},"intl",a,b,d,e,g,i,k,l,m,p,r,s,t,u,v)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as t,b as n,c}from"./64L7VJJK.js";import{k as o}from"./QP5UAIC6.js";async function m(a){let i="config"in a?n(a.config):a.chartType,r;if(!("layer"in a)&&!("iLayer"in a)&&"config"in a&&a.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(i){case o.LineChart:{let{LineChartModel:e}=await import("./O2WFSEOJ.js").then(m=>m.default.then(e=>({LineChartModel:e})));r=new e;break}case o.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./J2J3NXRC.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));r=new e;break}case o.PieChart:{let{PieChartModel:e}=await import("./E6TZMNXL.js").then(m=>m.default.then(e=>({PieChartModel:e})));r=new e;break}case o.Histogram:{let{HistogramModel:e}=await import("./MDZELM6Q.js").then(m=>m.default.then(e=>({HistogramModel:e})));r=new e;break}case o.Scatterplot:{let{ScatterplotModel:e}=await import("./
|
|
2
|
+
import{a as t,b as n,c}from"./64L7VJJK.js";import{k as o}from"./QP5UAIC6.js";async function m(a){let i="config"in a?n(a.config):a.chartType,r;if(!("layer"in a)&&!("iLayer"in a)&&"config"in a&&a.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(i){case o.LineChart:{let{LineChartModel:e}=await import("./O2WFSEOJ.js").then(m=>m.default.then(e=>({LineChartModel:e})));r=new e;break}case o.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./J2J3NXRC.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));r=new e;break}case o.PieChart:{let{PieChartModel:e}=await import("./E6TZMNXL.js").then(m=>m.default.then(e=>({PieChartModel:e})));r=new e;break}case o.Histogram:{let{HistogramModel:e}=await import("./MDZELM6Q.js").then(m=>m.default.then(e=>({HistogramModel:e})));r=new e;break}case o.Scatterplot:{let{ScatterplotModel:e}=await import("./QU4RD5RM.js").then(m=>m.default.then(e=>({ScatterplotModel:e})));r=new e;break}case o.BoxPlot:{let{BoxPlotModel:e}=await import("./4SKI2UZ4.js").then(m=>m.default.then(e=>({BoxPlotModel:e})));r=new e;break}case o.Gauge:{let{GaugeModel:e}=await import("./WEVL6WYI.js").then(m=>m.default.then(e=>({GaugeModel:e})));r=new e;break}case o.RadarChart:{let{RadarChartModel:e}=await import("./HYQNWCWA.js").then(m=>m.default.then(e=>({RadarChartModel:e})));r=new e;break}case o.HeatChart:{let{HeatChartModel:e}=await import("./HFXBJYPZ.js").then(m=>m.default.then(e=>({HeatChartModel:e})));r=new e;break}case o.BarChart:default:{let{BarChartModel:e}=await import("./FN2RSJVM.js").then(m=>m.default.then(e=>({BarChartModel:e})));r=new e;break}}if(await r?.setup({layer:"layer"in a?a.layer:void 0,iLayer:"iLayer"in a?a.iLayer:void 0,config:"config"in a?a.config:void 0,commonStrings:"commonStrings"in a?a.commonStrings:void 0,chartLimits:"chartLimits"in a?a.chartLimits:void 0}),i!==void 0&&c(r,i))return r;{let e=t(r.chartType);throw new Error(`Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${i}\`).`)}}export{m as a};
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as r}from"./KEKVMGV6.js";import{G as t,q as e}from"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";var a=e(t,{"arcgis-chart":[()=>import("./AU5XPM24.js"),"_commonStrings:,_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,animationsEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendInteractionsDisabled,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,mapLayerId,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,referenceElement,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,truncateLongTitles,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:,zeroCountAsValid;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],"arcgis-charts-action-bar":[()=>import("./UMPUQD5F.js"),"_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionActive,clearSelectionDisabled,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartActive,editChartEnabled,editChartState,editChartTitle,editChartToggle,expanded,exportActionDisabled,exportActionState,exportAsCSVDisabled,exportAsCSVState,exportAsCSVTitle,exportAsImageDisabled,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionActive,filterBySelectionDisabled,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,filterByViewExtentActive,filterByViewExtentDisabled,filterByViewExtentTitle,forceDisableActions,fullExtentActive,fullExtentDisabled,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendActive,legendDisabled,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartActive,rotateChartDisabled,rotateChartState,rotateChartTitle,rotateChartToggle,selectionActive,selectionDisabled,selectionState,selectionTitle,selectionToggle,switchSelectionActive,switchSelectionDisabled,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomActive,zoomDisabled,zoomState,zoomTitle,zoomToggle"],"arcgis-charts-config-axes":[()=>import("./FATD355N.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],"arcgis-charts-config-axis":[()=>import("./6B2Q4ZZ4.js"),"axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],"arcgis-charts-config-bar-chart":[()=>import("./RRUEVNJ6.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-bar-chart-data":[()=>import("./HTC5S4WI.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-bar-chart-popover":[()=>import("./W6V4XEM4.js"),"contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-bar-chart-series":[()=>import("./VL4T7FC5.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-bar-chart-series-popover":[()=>import("./RNKBI3X2.js"),"messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-box-plot":[()=>import("./7HDFMHYC.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-box-plot-data":[()=>import("./F4PYAQO2.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-box-plot-popover":[()=>import("./H3LCE55Z.js"),"contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-box-plot-series":[()=>import("./FW6RGCL5.js"),"activeColorMatch,configSeriesOpen,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-box-plot-series-popover":[()=>import("./IGHTJLIF.js"),"isLineSymbol,labelCanBeConfigured,messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-category-format":[()=>import("./OZMMTR6U.js"),"categoryFormat:,messageOverrides:"],"arcgis-charts-config-chart-rename-popover":[()=>import("./UDCAINIH.js"),"messageOverrides:,name,open,referenceElement:;reposition"],"arcgis-charts-config-color-style":[()=>import("./IJY7UQTV.js"),"enableClose,header,messageOverrides:,open,selectedColor:"],"arcgis-charts-config-colors":[()=>import("./6THDMW4S.js"),"heading,messageOverrides:,rgba:"],"arcgis-charts-config-create-flow":[()=>import("./W2E7LFTT.js"),"activeLayerId,calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,chartData:,close,disableEditing,filterBySelection,headerTitle,layerList:,messageOverrides:,modelList:,panelNumber,popoverPlacement,popupTemplateFieldInfosEnabled,r2,selectedChartId,seriesColor:,syncChartsToLayers,timeZone,usePopupTemplateFieldsInfo,view:;setFocus"],"arcgis-charts-config-field-picker":[()=>import("./2IETCKFR.js"),"disabled,invalid,label"],"arcgis-charts-config-font-style":[()=>import("./ZNNKZGV6.js"),"enableClose,fontStyle:,header,messageOverrides:,open"],"arcgis-charts-config-format":[()=>import("./ANON4Y5O.js"),"messageOverrides:,model:"],"arcgis-charts-config-format-popover":[()=>import("./AHBGX7M2.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-general":[()=>import("./UN4K7L7T.js"),"messageOverrides:,model:,open"],"arcgis-charts-config-guide":[()=>import("./NSVQKFEV.js"),"calculatedMinMaxBounds:,index,latestGuidePosition,messageOverrides:,model:,orientation,timeZone"],"arcgis-charts-config-guide-popover":[()=>import("./KX3NHKFW.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-guides":[()=>import("./CGL6HYSO.js"),"calculatedMinMaxBounds:,enableXAxisGuide,enableYAxisGuide,messageOverrides:,model:,open,timeZone"],"arcgis-charts-config-guides-type-popover":[()=>import("./VY53SMFW.js"),"enableXAxisGuide,enableYAxisGuide,messageOverrides:,open,placement,referenceElement:;reposition"],"arcgis-charts-config-heat-chart":[()=>import("./N2FNNEOT.js"),"layer:,model:,page,popupTemplateFieldInfosEnabled,usePopupTemplateFieldsInfo"],"arcgis-charts-config-heat-chart-data":[()=>import("./MMYG2RYL.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-heat-chart-popover":[()=>import("./VSD6BE2P.js"),"colorRamps:,contentKind,headingTitle,isFlipped,layerFieldsInfo:,messageOverrides:,model:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-histogram":[()=>import("./VAP4V5TC.js"),"calculatedMinMaxBounds:,chartData:,layer:,model:,page,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-histogram-data":[()=>import("./QPMXPJOU.js"),"countValue,layerFieldsInfo:,maxValue,meanValue,medianValue,messageOverrides:,minValue,model:,nullsValue,open,selectedOverlaySymbolType,standardDevValue,sumValue"],"arcgis-charts-config-histogram-popover":[()=>import("./SNQONC4I.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedBinColor:,selectedNumericField,selectedOverlaySymbol:,selectedOverlaySymbolType,selectedTransformationType;reposition"],"arcgis-charts-config-invalid-input-message":[()=>import("./AM34FK2L.js"),"invalidInputMessage,isInvalid"],"arcgis-charts-config-line-chart":[()=>import("./CZ2QBJIW.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-line-chart-data":[()=>import("./JXJGHXNJ.js"),"layerFieldsInfo:,messageOverrides:,model:,resetTimeInterval:"],"arcgis-charts-config-line-chart-popover":[()=>import("./BPJQFWYG.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-line-chart-series":[()=>import("./6KA3POYJ.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-line-chart-series-popover":[()=>import("./WFCQTLQZ.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-line-style":[()=>import("./C77CMKWU.js"),"enableClose,header,lineStyle:,messageOverrides:,open,usePanel"],"arcgis-charts-config-number-format":[()=>import("./OH42GU2Y.js"),"messageOverrides:,numberFormat:"],"arcgis-charts-config-pie-chart":[()=>import("./NW7U6HWL.js"),"calculatedMinMaxBounds:,chartData:,filterBySelection,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-pie-chart-data":[()=>import("./WJINSWQO.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-pie-chart-popover":[()=>import("./6F64K7IO.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-pie-chart-slices":[()=>import("./QT5HEM3R.js"),"chartData:,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-pie-chart-slices-popover":[()=>import("./OOJPYFJZ.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSliceId;reposition"],"arcgis-charts-config-scatter-plot":[()=>import("./Q27MURSA.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,r2,usePopupTemplateFieldsInfo,view:"],"arcgis-charts-config-scatter-plot-aoi":[()=>import("./NDU72CRG.js"),"messageOverrides:,tool,view:"],"arcgis-charts-config-scatter-plot-data":[()=>import("./UGHZZOEP.js"),"isTableLayer,layerFieldsInfo:,messageOverrides:,model:,r2,view:"],"arcgis-charts-config-scatter-plot-popover":[()=>import("./N5GCUS4N.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-select-chart-type-popover":[()=>import("./AETI74SR.js"),"headerTitle,layerId,layerType,messageOverrides:,open,popoverPlacement,referenceElement:,selectedModelType,supportedChartTypes:;reposition"],"arcgis-charts-config-view-charts":[()=>import("./P7EFHM46.js"),"disableEditing,layer:,messageOverrides:,modelList:,noGroup,selectedChartId"],"arcgis-charts-info-modal":[()=>import("./HK4Z5B22.js"),"calciteThemeColors:,heading,loaderColors:,message,showLoader"]});a({resourcesUrl:import.meta.url});var i=new CSSStyleSheet;i.replaceSync('@layer{:not([hydrated]):is(arcgis-chart,arcgis-charts-action-bar){visibility:hidden}:root,:host{--arcgis-charts-config-calcite-block-default-width: 100%;--arcgis-charts-config-calcite-block-default-height: auto;--arcgis-charts-config-default-max-width: 100%;--arcgis-charts-config-default-max-height: 100%;--arcgis-charts-background: rgb(223, 223, 223);--calcite-ui-foreground: rgb(223, 223, 223);--calcite-app-background-content: rgb(0, 0, 0, 0);--config-width: 40%;--config-height: 600px;--placement-direction: "row"}:root{--arcgis-charts-curtain-opacity: 1;--arcgis-charts-popup-ol-padding: 2em;--arcgis-charts-popup-body-padding-left: 0;--arcgis-charts-default-width: 100%;--arcgis-charts-default-height: 100%;--arcgis-charts-config-calcite-block-default-margin: 0;--arcgis-charts-config-margin-minor: .5rem;--arcgis-charts-config-margin-major: 1rem;--arcgis-charts-config-popover-pick-list-max-width: 314px;--arcgis-charts-inter-section-margin: .9rem;--arcgis-charts-intra-section-margin: .3rem;--arcgis-charts-top-section-margin: .6rem;--arcgis-charts-input-height: 2.4rem;--arcgis-charts-panel-padding: 0 1rem;--arcgis-charts-border-radius: .2rem;--arcgis-charts-input-background: #ffffff;--arcgis-charts-border: #eaeaea;--arcgis-charts-border-hover: #dfdfdf;--arcgis-charts-border-invalid: red;--arcgis-charts-background-clear: transparent;--arcgis-charts-dim-text: rgb(150, 150, 150);--arcgis-charts-side-spacing: 1rem;--arcgis-charts-side-spacing-three-quarters: calc(var(--arcgis-charts-side-spacing) * 3 / 4);--arcgis-charts-side-spacing-half: calc(var(--arcgis-charts-side-spacing) / 2);--arcgis-charts-side-spacing-third: calc(var(--arcgis-charts-side-spacing) / 3);--arcgis-charts-side-spacing-quarter: calc(var(--arcgis-charts-side-spacing) / 4);--arcgis-charts-side-spacing-eighth: calc(var(--arcgis-charts-side-spacing) / 8);--arcgis-charts-side-spacing-plus-half: calc(var(--arcgis-charts-side-spacing) * 1.5);--arcgis-charts-side-spacing-double: calc(var(--arcgis-charts-side-spacing) * 2)}}');document.adoptedStyleSheets=[...document.adoptedStyleSheets,i];export{r as createModel};window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"model/shared/setup-utils".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,t,"@arcgis/charts-components/",".js");(($arcgis.importMap??={}).imports??={})["@arcgis/charts-components"]=import.meta.url
|
|
2
|
+
import{a as r}from"./Y6FVIABL.js";import{G as t,q as e}from"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";var a=e(t,{"arcgis-chart":[()=>import("./3EF66ZTP.js"),"_commonStrings:,_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,animationsEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendInteractionsDisabled,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,mapLayerId,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,referenceElement,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,truncateLongTitles,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:,zeroCountAsValid;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],"arcgis-charts-action-bar":[()=>import("./UMPUQD5F.js"),"_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionActive,clearSelectionDisabled,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartActive,editChartEnabled,editChartState,editChartTitle,editChartToggle,expanded,exportActionDisabled,exportActionState,exportAsCSVDisabled,exportAsCSVState,exportAsCSVTitle,exportAsImageDisabled,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionActive,filterBySelectionDisabled,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,filterByViewExtentActive,filterByViewExtentDisabled,filterByViewExtentTitle,forceDisableActions,fullExtentActive,fullExtentDisabled,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendActive,legendDisabled,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartActive,rotateChartDisabled,rotateChartState,rotateChartTitle,rotateChartToggle,selectionActive,selectionDisabled,selectionState,selectionTitle,selectionToggle,switchSelectionActive,switchSelectionDisabled,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomActive,zoomDisabled,zoomState,zoomTitle,zoomToggle"],"arcgis-charts-config-axes":[()=>import("./FATD355N.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],"arcgis-charts-config-axis":[()=>import("./6B2Q4ZZ4.js"),"axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],"arcgis-charts-config-bar-chart":[()=>import("./RRUEVNJ6.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-bar-chart-data":[()=>import("./HTC5S4WI.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-bar-chart-popover":[()=>import("./W6V4XEM4.js"),"contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-bar-chart-series":[()=>import("./VL4T7FC5.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-bar-chart-series-popover":[()=>import("./RNKBI3X2.js"),"messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-box-plot":[()=>import("./7HDFMHYC.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-box-plot-data":[()=>import("./F4PYAQO2.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-box-plot-popover":[()=>import("./H3LCE55Z.js"),"contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-box-plot-series":[()=>import("./FW6RGCL5.js"),"activeColorMatch,configSeriesOpen,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-box-plot-series-popover":[()=>import("./IGHTJLIF.js"),"isLineSymbol,labelCanBeConfigured,messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-category-format":[()=>import("./OZMMTR6U.js"),"categoryFormat:,messageOverrides:"],"arcgis-charts-config-chart-rename-popover":[()=>import("./UDCAINIH.js"),"messageOverrides:,name,open,referenceElement:;reposition"],"arcgis-charts-config-color-style":[()=>import("./IJY7UQTV.js"),"enableClose,header,messageOverrides:,open,selectedColor:"],"arcgis-charts-config-colors":[()=>import("./6THDMW4S.js"),"heading,messageOverrides:,rgba:"],"arcgis-charts-config-create-flow":[()=>import("./UI252GPU.js"),"activeLayerId,calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,chartData:,close,disableEditing,filterBySelection,headerTitle,layerList:,messageOverrides:,modelList:,panelNumber,popoverPlacement,popupTemplateFieldInfosEnabled,r2,selectedChartId,seriesColor:,syncChartsToLayers,timeZone,usePopupTemplateFieldsInfo,view:;setFocus"],"arcgis-charts-config-field-picker":[()=>import("./2IETCKFR.js"),"disabled,invalid,label"],"arcgis-charts-config-font-style":[()=>import("./ZNNKZGV6.js"),"enableClose,fontStyle:,header,messageOverrides:,open"],"arcgis-charts-config-format":[()=>import("./ANON4Y5O.js"),"messageOverrides:,model:"],"arcgis-charts-config-format-popover":[()=>import("./AHBGX7M2.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-general":[()=>import("./UN4K7L7T.js"),"messageOverrides:,model:,open"],"arcgis-charts-config-guide":[()=>import("./NSVQKFEV.js"),"calculatedMinMaxBounds:,index,latestGuidePosition,messageOverrides:,model:,orientation,timeZone"],"arcgis-charts-config-guide-popover":[()=>import("./KX3NHKFW.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-guides":[()=>import("./CGL6HYSO.js"),"calculatedMinMaxBounds:,enableXAxisGuide,enableYAxisGuide,messageOverrides:,model:,open,timeZone"],"arcgis-charts-config-guides-type-popover":[()=>import("./VY53SMFW.js"),"enableXAxisGuide,enableYAxisGuide,messageOverrides:,open,placement,referenceElement:;reposition"],"arcgis-charts-config-heat-chart":[()=>import("./N2FNNEOT.js"),"layer:,model:,page,popupTemplateFieldInfosEnabled,usePopupTemplateFieldsInfo"],"arcgis-charts-config-heat-chart-data":[()=>import("./MMYG2RYL.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-heat-chart-popover":[()=>import("./VSD6BE2P.js"),"colorRamps:,contentKind,headingTitle,isFlipped,layerFieldsInfo:,messageOverrides:,model:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-histogram":[()=>import("./VAP4V5TC.js"),"calculatedMinMaxBounds:,chartData:,layer:,model:,page,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-histogram-data":[()=>import("./QPMXPJOU.js"),"countValue,layerFieldsInfo:,maxValue,meanValue,medianValue,messageOverrides:,minValue,model:,nullsValue,open,selectedOverlaySymbolType,standardDevValue,sumValue"],"arcgis-charts-config-histogram-popover":[()=>import("./SNQONC4I.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedBinColor:,selectedNumericField,selectedOverlaySymbol:,selectedOverlaySymbolType,selectedTransformationType;reposition"],"arcgis-charts-config-invalid-input-message":[()=>import("./AM34FK2L.js"),"invalidInputMessage,isInvalid"],"arcgis-charts-config-line-chart":[()=>import("./CZ2QBJIW.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-line-chart-data":[()=>import("./JXJGHXNJ.js"),"layerFieldsInfo:,messageOverrides:,model:,resetTimeInterval:"],"arcgis-charts-config-line-chart-popover":[()=>import("./BPJQFWYG.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-line-chart-series":[()=>import("./6KA3POYJ.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-line-chart-series-popover":[()=>import("./WFCQTLQZ.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-line-style":[()=>import("./C77CMKWU.js"),"enableClose,header,lineStyle:,messageOverrides:,open,usePanel"],"arcgis-charts-config-number-format":[()=>import("./OH42GU2Y.js"),"messageOverrides:,numberFormat:"],"arcgis-charts-config-pie-chart":[()=>import("./NW7U6HWL.js"),"calculatedMinMaxBounds:,chartData:,filterBySelection,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-pie-chart-data":[()=>import("./WJINSWQO.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-pie-chart-popover":[()=>import("./6F64K7IO.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-pie-chart-slices":[()=>import("./QT5HEM3R.js"),"chartData:,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-pie-chart-slices-popover":[()=>import("./OOJPYFJZ.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSliceId;reposition"],"arcgis-charts-config-scatter-plot":[()=>import("./Q27MURSA.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,r2,usePopupTemplateFieldsInfo,view:"],"arcgis-charts-config-scatter-plot-aoi":[()=>import("./NDU72CRG.js"),"messageOverrides:,tool,view:"],"arcgis-charts-config-scatter-plot-data":[()=>import("./UGHZZOEP.js"),"isTableLayer,layerFieldsInfo:,messageOverrides:,model:,r2,view:"],"arcgis-charts-config-scatter-plot-popover":[()=>import("./N5GCUS4N.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-select-chart-type-popover":[()=>import("./AETI74SR.js"),"headerTitle,layerId,layerType,messageOverrides:,open,popoverPlacement,referenceElement:,selectedModelType,supportedChartTypes:;reposition"],"arcgis-charts-config-view-charts":[()=>import("./P7EFHM46.js"),"disableEditing,layer:,messageOverrides:,modelList:,noGroup,selectedChartId"],"arcgis-charts-info-modal":[()=>import("./HK4Z5B22.js"),"calciteThemeColors:,heading,loaderColors:,message,showLoader"]});a({resourcesUrl:import.meta.url});var i=new CSSStyleSheet;i.replaceSync('@layer{:not([hydrated]):is(arcgis-chart,arcgis-charts-action-bar){visibility:hidden}:root,:host{--arcgis-charts-config-calcite-block-default-width: 100%;--arcgis-charts-config-calcite-block-default-height: auto;--arcgis-charts-config-default-max-width: 100%;--arcgis-charts-config-default-max-height: 100%;--arcgis-charts-background: rgb(223, 223, 223);--calcite-ui-foreground: rgb(223, 223, 223);--calcite-app-background-content: rgb(0, 0, 0, 0);--config-width: 40%;--config-height: 600px;--placement-direction: "row"}:root{--arcgis-charts-curtain-opacity: 1;--arcgis-charts-popup-ol-padding: 2em;--arcgis-charts-popup-body-padding-left: 0;--arcgis-charts-default-width: 100%;--arcgis-charts-default-height: 100%;--arcgis-charts-config-calcite-block-default-margin: 0;--arcgis-charts-config-margin-minor: .5rem;--arcgis-charts-config-margin-major: 1rem;--arcgis-charts-config-popover-pick-list-max-width: 314px;--arcgis-charts-inter-section-margin: .9rem;--arcgis-charts-intra-section-margin: .3rem;--arcgis-charts-top-section-margin: .6rem;--arcgis-charts-input-height: 2.4rem;--arcgis-charts-panel-padding: 0 1rem;--arcgis-charts-border-radius: .2rem;--arcgis-charts-input-background: #ffffff;--arcgis-charts-border: #eaeaea;--arcgis-charts-border-hover: #dfdfdf;--arcgis-charts-border-invalid: red;--arcgis-charts-background-clear: transparent;--arcgis-charts-dim-text: rgb(150, 150, 150);--arcgis-charts-side-spacing: 1rem;--arcgis-charts-side-spacing-three-quarters: calc(var(--arcgis-charts-side-spacing) * 3 / 4);--arcgis-charts-side-spacing-half: calc(var(--arcgis-charts-side-spacing) / 2);--arcgis-charts-side-spacing-third: calc(var(--arcgis-charts-side-spacing) / 3);--arcgis-charts-side-spacing-quarter: calc(var(--arcgis-charts-side-spacing) / 4);--arcgis-charts-side-spacing-eighth: calc(var(--arcgis-charts-side-spacing) / 8);--arcgis-charts-side-spacing-plus-half: calc(var(--arcgis-charts-side-spacing) * 1.5);--arcgis-charts-side-spacing-double: calc(var(--arcgis-charts-side-spacing) * 2)}}');document.adoptedStyleSheets=[...document.adoptedStyleSheets,i];export{r as createModel};window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"model/shared/setup-utils".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,t,"@arcgis/charts-components/",".js");(($arcgis.importMap??={}).imports??={})["@arcgis/charts-components"]=import.meta.url
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a}from"../../
|
|
2
|
+
import{a}from"../../Y6FVIABL.js";import"../../64L7VJJK.js";import"../../QP5UAIC6.js";import"../../Z5QPCSUQ.js";import"../../QVG3TOL4.js";import"../../BYSUABOV.js";export{a as createModel};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { B as y, c8 as P,
|
|
3
|
-
import { substitute as
|
|
4
|
-
import { isEmpty as
|
|
5
|
-
import { g as
|
|
6
|
-
import { g as
|
|
7
|
-
import { aC as
|
|
2
|
+
import { B as y, c8 as P, l as X, eM as Y } from "./index.js";
|
|
3
|
+
import { substitute as D } from "@arcgis/core/intl.js";
|
|
4
|
+
import { isEmpty as m, isEqual as w } from "es-toolkit/compat";
|
|
5
|
+
import { g as L, d as f, u as v, e as z } from "./utils.js";
|
|
6
|
+
import { g as k } from "./series-length.js";
|
|
7
|
+
import { aC as p, x as E, aA as V } from "./index2.js";
|
|
8
8
|
import { i as T } from "./index3.js";
|
|
9
|
-
import { C as
|
|
10
|
-
import { M as
|
|
11
|
-
import { W as
|
|
12
|
-
import { W as
|
|
9
|
+
import { C as B } from "./chart-model.js";
|
|
10
|
+
import { M as G, a as U, W as j, b as N } from "./data-labels-visibility.js";
|
|
11
|
+
import { W as q } from "./data-labels-symbol.js";
|
|
12
|
+
import { W as R, c as H, d as J } from "./axis-lines-symbol.js";
|
|
13
13
|
import { W as K, a as Q } from "./x-bounds.js";
|
|
14
|
-
import { W as
|
|
14
|
+
import { W as Z, c as $, d as ee } from "./generate-x-axis-title.js";
|
|
15
15
|
import { m as d } from "./model-setter.js";
|
|
16
|
-
import { a as
|
|
17
|
-
import { M as
|
|
18
|
-
import { M as
|
|
19
|
-
const
|
|
16
|
+
import { a as te } from "./chart-object-literals.js";
|
|
17
|
+
import { M as ie, a as se } from "./model-with-y-guides.js";
|
|
18
|
+
import { M as re } from "./model-with-x-guides.js";
|
|
19
|
+
const b = (t) => {
|
|
20
20
|
f({ config: t, value: null, axisIndex: 0, isMax: !1 }), f({ config: t, value: null, axisIndex: 0, isMax: !0 }), f({ config: t, value: null, axisIndex: 1, isMax: !1 }), f({ config: t, value: null, axisIndex: 1, isMax: !0 });
|
|
21
21
|
}, F = (t) => {
|
|
22
22
|
const { name: e, axisIndex: i, config: s, layerInfo: r } = t, { layerFieldsInfo: o } = r, n = o.find((h) => h.name === e), l = n !== void 0 && P(n);
|
|
23
|
-
|
|
23
|
+
z(s, i, l);
|
|
24
24
|
};
|
|
25
25
|
function I(t, e, i) {
|
|
26
|
-
const s = g(t, e, i), r =
|
|
26
|
+
const s = g(t, e, i), r = k(t), o = T(t);
|
|
27
27
|
return s === r || o;
|
|
28
28
|
}
|
|
29
29
|
function M(t, e) {
|
|
30
|
-
const { layerFieldsInfo: i } = e, s = y(i, u(t)), r =
|
|
30
|
+
const { layerFieldsInfo: i } = e, s = y(i, u(t)), r = L(1, t), o = T(t);
|
|
31
31
|
return s === r || o;
|
|
32
32
|
}
|
|
33
33
|
function _(t, e) {
|
|
34
|
-
const { layerFieldsInfo: i } = e, s = x(t), r = y(i, s), o =
|
|
34
|
+
const { layerFieldsInfo: i } = e, s = x(t), r = y(i, s), o = L(0, t), n = T(t);
|
|
35
35
|
return r === o || n;
|
|
36
36
|
}
|
|
37
37
|
function g(t, e, i) {
|
|
38
38
|
const s = x(t), r = u(t), { layerFieldsInfo: o } = e, n = y(o, s), l = y(o, r);
|
|
39
|
-
return
|
|
39
|
+
return D(i.titleLabels.xAndY, { x: n, y: l });
|
|
40
40
|
}
|
|
41
41
|
const C = (t) => {
|
|
42
42
|
const { x: e, y: i, config: s, layerInfo: r, updateChartTitle: o, updateXAxisTitle: n, updateYAxisTitle: l, commonStrings: h } = t, { layerFieldsInfo: A } = r, W = y(A, e), O = y(A, i);
|
|
43
|
-
!
|
|
44
|
-
}, x = (t) => t.series[0]?.x ?? "", u = (t) => t.series[0]?.y ?? "",
|
|
43
|
+
!m(e) && n && v(s, 0, W), !m(i) && l && v(s, 1, O), !m(e) && !m(i) && s.title && o && (s.title.content.text = g(s, r, h));
|
|
44
|
+
}, x = (t) => t.series[0]?.x ?? "", u = (t) => t.series[0]?.y ?? "", oe = (t) => {
|
|
45
45
|
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n = _(i, s), l = M(i, s);
|
|
46
|
-
|
|
46
|
+
b(i), i.series[0] && (i.series[0].x = e), C({
|
|
47
47
|
x: e,
|
|
48
48
|
y: u(i),
|
|
49
49
|
config: i,
|
|
@@ -58,9 +58,9 @@ const C = (t) => {
|
|
|
58
58
|
config: i,
|
|
59
59
|
layerInfo: s
|
|
60
60
|
});
|
|
61
|
-
},
|
|
61
|
+
}, ne = (t) => {
|
|
62
62
|
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n = _(i, s), l = M(i, s);
|
|
63
|
-
|
|
63
|
+
b(i), i.series[0] && (i.series[0].y = e), C({
|
|
64
64
|
x: x(i),
|
|
65
65
|
y: e,
|
|
66
66
|
config: i,
|
|
@@ -75,39 +75,39 @@ const C = (t) => {
|
|
|
75
75
|
config: i,
|
|
76
76
|
layerInfo: s
|
|
77
77
|
});
|
|
78
|
-
},
|
|
78
|
+
}, ae = (t) => {
|
|
79
79
|
const e = {};
|
|
80
80
|
return t.series[0]?.markerSymbol ?? e;
|
|
81
|
-
},
|
|
81
|
+
}, le = (t, e) => {
|
|
82
82
|
e.series[0] && (e.series[0].markerSymbol = t);
|
|
83
|
-
},
|
|
83
|
+
}, de = (t) => t.series[0]?.locationsOfInterest, ce = (t, e) => {
|
|
84
84
|
e.series[0] && (e.series[0].locationsOfInterest = t);
|
|
85
|
-
},
|
|
85
|
+
}, ye = (t) => (t.series[0]?.overlays?.trendLine?.visible ?? !0) && (t.series[0]?.overlays?.trendLine?.created ?? !1), pe = (t) => {
|
|
86
86
|
const e = {};
|
|
87
87
|
return t.series[0]?.overlays?.trendLine?.symbol ?? e;
|
|
88
88
|
}, me = (t, e) => {
|
|
89
|
-
e.series[0].overlays ??=
|
|
90
|
-
}, pe = (t, e) => {
|
|
91
|
-
e.series[0].overlays ??= m(), e.series[0].overlays.trendLine ??= m().trendLine, e.series[0].overlays.trendLine.visible = t;
|
|
89
|
+
e.series[0].overlays ??= p(), e.series[0].overlays.trendLine ??= p().trendLine, e.series[0].overlays.trendLine.symbol = t;
|
|
92
90
|
}, fe = (t, e) => {
|
|
93
|
-
|
|
94
|
-
},
|
|
91
|
+
e.series[0].overlays ??= p(), e.series[0].overlays.trendLine ??= p().trendLine, e.series[0].overlays.trendLine.visible = t;
|
|
92
|
+
}, xe = (t, e) => {
|
|
93
|
+
!(e.series[0]?.overlays?.trendLine?.created ?? !1) && t && (e.series[0].overlays ??= p(), e.series[0].overlays.trendLine ??= p().trendLine, e.series[0].overlays.trendLine.created = t), fe(t, e);
|
|
94
|
+
}, S = (t) => t.series[0]?.sizePolicy ?? E(), ue = (t, e) => {
|
|
95
95
|
e.series[0] && (t !== void 0 && t.field?.trim() !== "" ? e.series[0].sizePolicy = { ...e.series[0].sizePolicy, ...t } : e.series[0].sizePolicy = void 0);
|
|
96
|
-
},
|
|
96
|
+
}, he = (t) => t?.series?.[0]?.overlays, Te = (t, e) => {
|
|
97
97
|
e?.series[0] !== void 0 && (e.series[0].overlays = t);
|
|
98
|
-
},
|
|
98
|
+
}, ge = (t) => t.series.find((e) => e.additionalTooltipFields !== void 0)?.additionalTooltipFields ?? [], Ae = (t, e) => {
|
|
99
99
|
e.series.forEach((i) => {
|
|
100
100
|
Array.isArray(t) ? i.additionalTooltipFields = t : typeof t == "string" ? i.additionalTooltipFields = t.trim() === "" ? [] : [t] : i.additionalTooltipFields = [];
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
|
-
var
|
|
104
|
-
for (var r =
|
|
103
|
+
var ve = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, c = (t, e, i, s) => {
|
|
104
|
+
for (var r = Se(e, i), o = t.length - 1, n; o >= 0; o--)
|
|
105
105
|
(n = t[o]) && (r = n(e, i, r) || r);
|
|
106
|
-
return r &&
|
|
106
|
+
return r && ve(e, i, r), r;
|
|
107
107
|
};
|
|
108
|
-
class a extends
|
|
108
|
+
class a extends B {
|
|
109
109
|
constructor() {
|
|
110
|
-
super(...arguments), this._chartType =
|
|
110
|
+
super(...arguments), this._chartType = te.ScatterSeries;
|
|
111
111
|
}
|
|
112
112
|
async setup(e) {
|
|
113
113
|
await this.loadConfigFromLayer(e), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -122,7 +122,7 @@ class a extends V {
|
|
|
122
122
|
return x(this._config);
|
|
123
123
|
}
|
|
124
124
|
set xAxisField(e) {
|
|
125
|
-
|
|
125
|
+
oe({ fieldName: e, config: this._config, layerInfo: this.layerInfo, commonStrings: this.commonStrings }), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
128
|
* Y-axis field.
|
|
@@ -131,22 +131,22 @@ class a extends V {
|
|
|
131
131
|
return u(this._config);
|
|
132
132
|
}
|
|
133
133
|
set yAxisField(e) {
|
|
134
|
-
|
|
134
|
+
ne({ fieldName: e, config: this._config, layerInfo: this.layerInfo, commonStrings: this.commonStrings }), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* Whether the linear trend line is shown.
|
|
138
138
|
*/
|
|
139
139
|
get showLinearTrend() {
|
|
140
|
-
return
|
|
140
|
+
return ye(this._config);
|
|
141
141
|
}
|
|
142
142
|
set showLinearTrend(e) {
|
|
143
|
-
|
|
143
|
+
xe(e, this._config);
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* Line symbol for the linear trend line.
|
|
147
147
|
*/
|
|
148
148
|
get linearTrendSymbol() {
|
|
149
|
-
return
|
|
149
|
+
return pe(this._config);
|
|
150
150
|
}
|
|
151
151
|
set linearTrendSymbol(e) {
|
|
152
152
|
me(e, this._config);
|
|
@@ -155,19 +155,19 @@ class a extends V {
|
|
|
155
155
|
* Marker symbol used for the scatterplot points when using a fixed symbol (i.e. no size policy is set).
|
|
156
156
|
*/
|
|
157
157
|
get fixedMarkerSymbol() {
|
|
158
|
-
return
|
|
158
|
+
return ae(this._config);
|
|
159
159
|
}
|
|
160
160
|
set fixedMarkerSymbol(e) {
|
|
161
|
-
|
|
161
|
+
le(e, this._config);
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
164
|
* Locations of interest used for imagery scatterplot.
|
|
165
165
|
*/
|
|
166
166
|
get locationsOfInterest() {
|
|
167
|
-
return
|
|
167
|
+
return de(this._config);
|
|
168
168
|
}
|
|
169
169
|
set locationsOfInterest(e) {
|
|
170
|
-
|
|
170
|
+
ce(e, this._config);
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* Size policy for the scatterplot points. This is used to scale the size of the marker symbol based on a given field.
|
|
@@ -177,16 +177,16 @@ class a extends V {
|
|
|
177
177
|
}
|
|
178
178
|
set sizePolicy(e) {
|
|
179
179
|
const i = S(this._config);
|
|
180
|
-
|
|
180
|
+
w(i, e) || ue(e, this._config);
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Trendline overlay for the scatterplot.
|
|
184
184
|
*/
|
|
185
185
|
get seriesOverlays() {
|
|
186
|
-
return
|
|
186
|
+
return he(this._config);
|
|
187
187
|
}
|
|
188
188
|
set seriesOverlays(e) {
|
|
189
|
-
e !== void 0 &&
|
|
189
|
+
e !== void 0 && Te(e, this._config);
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
192
|
* Add an additional field to display for scatterplot tooltips.
|
|
@@ -194,10 +194,10 @@ class a extends V {
|
|
|
194
194
|
* **Note**: Only numeric fields are supported.
|
|
195
195
|
*/
|
|
196
196
|
get additionalTooltipField() {
|
|
197
|
-
return
|
|
197
|
+
return ge(this._config);
|
|
198
198
|
}
|
|
199
199
|
set additionalTooltipField(e) {
|
|
200
|
-
|
|
200
|
+
Ae(e, this._config);
|
|
201
201
|
}
|
|
202
202
|
// ---------------------------------------------------------------------------------------------
|
|
203
203
|
// #region General Methods
|
|
@@ -220,7 +220,8 @@ class a extends V {
|
|
|
220
220
|
// ---------------------------------------------------------------------------------------------
|
|
221
221
|
/** @private */
|
|
222
222
|
generateDefaultConfig() {
|
|
223
|
-
|
|
223
|
+
const e = V(this.commonStrings);
|
|
224
|
+
return X(this.layerInfo?.layer) && (e.colorMatch = !1), e;
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
227
|
c([
|
|
@@ -250,25 +251,25 @@ c([
|
|
|
250
251
|
c([
|
|
251
252
|
d
|
|
252
253
|
], a.prototype, "additionalTooltipField");
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
B,
|
|
254
|
+
const Le = [
|
|
255
|
+
ie,
|
|
256
256
|
G,
|
|
257
257
|
U,
|
|
258
258
|
j,
|
|
259
259
|
N,
|
|
260
|
+
q,
|
|
261
|
+
re,
|
|
260
262
|
se,
|
|
261
|
-
ie,
|
|
262
|
-
R,
|
|
263
|
-
K,
|
|
264
263
|
Z,
|
|
264
|
+
K,
|
|
265
|
+
$,
|
|
265
266
|
Q,
|
|
266
|
-
|
|
267
|
+
R,
|
|
267
268
|
H,
|
|
268
269
|
J,
|
|
269
|
-
|
|
270
|
+
ee
|
|
270
271
|
];
|
|
271
|
-
|
|
272
|
+
Y(a, Le);
|
|
272
273
|
export {
|
|
273
274
|
a as ScatterplotModel
|
|
274
275
|
};
|