@arcgis/charts-components 5.1.0-next.98 → 5.1.0-next.99
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/437PRHGP.js +2 -0
- package/dist/cdn/7RRIPRBW.js +2 -0
- package/dist/cdn/{PHSAVE6E.js → BVLDD7VH.js} +1 -1
- package/dist/cdn/{BDROQPZY.js → D4THJNNH.js} +1 -1
- package/dist/cdn/FRTL3JKO.js +2 -0
- package/dist/cdn/{4MGAAHBF.js → KJXMX3GJ.js} +1 -1
- package/dist/cdn/{4F4XNNGS.js → NTMKUPVQ.js} +22 -22
- package/dist/cdn/R2R6BF6O.js +2 -0
- package/dist/cdn/{RK3BAJOA.js → SN4BIMRO.js} +1 -1
- package/dist/cdn/SXLPETPI.js +2 -0
- package/dist/cdn/UOUARC5O.js +2 -0
- package/dist/cdn/{FXXKMSX7.js → V3TCGIPS.js} +1 -1
- package/dist/cdn/VOTMKVNY.js +2 -0
- package/dist/cdn/{IYAA5JNA.js → XOY4K5NH.js} +1 -1
- package/dist/cdn/ZIAGMMWU.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +6 -6
- package/dist/chunks/heat-chart-model.js +8 -8
- package/dist/chunks/line-chart-model.js +3 -3
- package/dist/chunks/radar-chart-model.js +3 -3
- package/dist/chunks/rotated-state.js +29 -16
- package/dist/chunks/time-zone.js +11 -11
- package/dist/chunks/type-guards2.js +9 -9
- package/dist/components/arcgis-chart/customElement.d.ts +17 -2
- package/dist/components/arcgis-chart/customElement.js +938 -944
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -2
- package/dist/model/properties/rotated-state.d.ts +6 -0
- package/dist/model/properties/time-zone.d.ts +1 -11
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/GOCPXSNF.js +0 -2
- package/dist/cdn/HAPHXGDG.js +0 -2
- package/dist/cdn/JUTIXOZ7.js +0 -2
- package/dist/cdn/OSLQS2GQ.js +0 -2
- package/dist/cdn/PMSMMLY4.js +0 -2
- package/dist/cdn/PZAAA62R.js +0 -2
- package/dist/cdn/URBTZGXF.js +0 -2
- package/dist/cdn/VFULMUE5.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import y from"./TCJ5YAK5.js";import x from"./BIBH7Z6B.js";import w from"./D4THJNNH.js";import v from"./UOUARC5O.js";import u from"./YEOSKZ4Q.js";import t from"./PECU6KQ5.js";import s from"./7RRIPRBW.js";import r from"./C6VFUQYR.js";import q from"./GN55TJMJ.js";import p from"./TNXVGUYE.js";import o from"./GCLBISUU.js";import n from"./JXUQXIWS.js";import m from"./ZAKAJKUI.js";import k from"./QQNMK2QL.js";import j from"./OXOPYUOS.js";import i from"./Y4DORYPQ.js";import h from"./ABRBND33.js";import g from"./N3QESBWD.js";import e from"./OG6XNLNH.js";import d from"./VFNQXIXU.js";import{i as l,k as f,m as b}from"./KYO65OVO.js";import a from"./GSIQ3AM5.js";import"./URX6VCYJ.js";import"./6ES4YKXX.js";import"./T5RPAQYI.js";import"./EZM4ZDQI.js";import{a as c}from"./ETLJKITO.js";import"./GDFOZNYR.js";import"./QPIMTXPL.js";export default $arcgis.t(([{Ec:S,ka:g,na:h,ua:p},{q:x},{c:n},,,,,,,,,,,,,,,,{c:T,d:W},{a:_,b:u,c:L,d:k,e:v,f:C,g:M,h:z,i:F,j:I,k:O,l:B,m:j,n:m,o:D,p:V,q:A,t:H},{a:P,b:w,c:q,d:K}])=>{var N=Object.defineProperty,E=Object.getOwnPropertyDescriptor,a=(d,e,s,i)=>{for(var t=E(e,s),r=d.length-1,y;r>=0;r--)(y=d[r])&&(t=y(e,s,t)||t);return t&&N(e,s,t),t},o=class extends W{constructor(){super(...arguments),this._chartType=c.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),this.updateSeriesFromLayerFilter()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})}setSeriesType(e,s){if(e<this._config.series.length&&e>=0){let i=this._config.series[e],t;if(s===c.BarSeries&&l(i)){let r={...i};delete r.lineSymbol,delete r.markerSymbol,delete r.lineSmoothed,delete r.markerVisible,delete r.areaColor,delete r.stackNegativeValuesToBaseline,t={...h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.BarSeries,y:[i.y].flat()[0]},t.fillSymbol&&(t.fillSymbol={...t.fillSymbol,color:i.lineSymbol?.color})}else if(s===c.LineSeries&&f(i)){let r={...i};delete r.fillSymbol,delete r.hideOversizedStackedLabels,delete r.hideOversizedSideBySideLabels,t={...g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.LineSeries},t.lineSymbol&&(t.lineSymbol={...t.lineSymbol,color:i.fillSymbol?.color})}t!==void 0&&(this._config.series[e]=t)}}getSeriesLineStyle(e){return _(e,this._config)}setSeriesLineStyle(e,s){let i=this._config.series?.[s];l(i)&&u(e,s,this._config)}getSeriesLineWidth(e){return L(e,this._config)}setSeriesLineWidth(e,s){let i=this._config.series?.[s];l(i)&&k(e,s,this._config)}getSeriesMarkerColor(e){return v(e,this._config)}setSeriesMarkerColor(e,s){let i=this._config.series?.[s];l(i)&&C(e,s,this._config)}getSeriesMarkerStyle(e){return M(e,this._config)}setSeriesMarkerStyle(e,s){let i=this._config.series?.[s];l(i)&&z(e,s,this._config)}getSeriesMarkerSize(e){return F(e,this._config)}setSeriesMarkerSize(e,s){let i=this._config.series?.[s];l(i)&&I(e,s,this._config)}isLineSmoothed(e){return O(e,this._config)}setLineSmoothed(e,s){let i=this._config.series?.[s];l(i)&&B({smoothed:e,seriesIndex:s,config:this._config})}isAreaVisible(e){return j(e,this._config)}setAreaVisible(e,s){let i=this._config.series?.[s];l(i)&&m({visible:e,seriesIndex:s,config:this._config})}isMarkerVisible(e){return D(e,this._config)}setMarkerVisible(e,s){let i=this._config.series?.[s];l(i)&&V({visible:e,seriesIndex:s,config:this._config})}getAreaColor(e){return A(e,this._config)}setAreaColor(e,s){let i=this._config.series?.[s];l(i)&&(m({visible:!0,seriesIndex:s,config:this._config}),T(e,s,this._config))}getSeriesHideOversizedSideBySideLabels(e){return P(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){let i=this._config.series?.[s];f(i)&&w(e,s,this._config)}getSeriesHideOversizedStackedLabels(e){return q(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){let i=this._config.series?.[s];f(i)&&K(e,s,this._config)}};a([n],o.prototype,"setSeriesType");a([n],o.prototype,"setSeriesLineStyle");a([n],o.prototype,"setSeriesLineWidth");a([n],o.prototype,"setSeriesMarkerColor");a([n],o.prototype,"setSeriesMarkerStyle");a([n],o.prototype,"setSeriesMarkerSize");a([n],o.prototype,"setLineSmoothed");a([n],o.prototype,"setAreaVisible");a([n],o.prototype,"setMarkerVisible");a([n],o.prototype,"setAreaColor");a([n],o.prototype,"setSeriesHideOversizedSideBySideLabels");a([n],o.prototype,"setSeriesHideOversizedStackedLabels");var G=[H];x(o,G);return o},a,d,e,g,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w,x,y)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import b from"./OG6XNLNH.js";import a from"./GSIQ3AM5.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{Hb:n},{b:s,c:e}])=>{var g=Object.defineProperty,h=Object.getOwnPropertyDescriptor,f=(t,r,p,u)=>{for(var o=h(r,p),m=t.length-1,a;m>=0;m--)(a=t[m])&&(o=a(r,p,o)||o);return o&&g(r,p,o),o};function J(t){return t!==void 0&&"rotated"in t}var c=t=>n(t),d=(t,r)=>{r.rotated=t},i=class extends s{get rotatedState(){return c(this._config)}set rotatedState(r){d(r,this._config)}get rotated(){return c(this._config)}set rotated(r){d(r,this._config)}};f([e],i.prototype,"rotatedState");f([e],i.prototype,"rotated");return{a:J,b:i}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","request","core/sql","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","applications/Components/imageryUtils","geometry/Extent","geometry/Point",a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as i,b as n,c}from"./T5RPAQYI.js";import{k as o}from"./EZM4ZDQI.js";async function d(r){let t="config"in r?n(r.config):r.chartType,a;if(!("layer"in r)&&!("iLayer"in r)&&"config"in r&&r.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(t){case o.LineChart:{let{LineChartModel:e}=await import("./
|
|
2
|
+
import{a as i,b as n,c}from"./T5RPAQYI.js";import{k as o}from"./EZM4ZDQI.js";async function d(r){let t="config"in r?n(r.config):r.chartType,a;if(!("layer"in r)&&!("iLayer"in r)&&"config"in r&&r.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(t){case o.LineChart:{let{LineChartModel:e}=await import("./SXLPETPI.js").then(m=>m.default.then(e=>({LineChartModel:e})));a=new e;break}case o.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./437PRHGP.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));a=new e;break}case o.PieChart:{let{PieChartModel:e}=await import("./WTPRSRPB.js").then(m=>m.default.then(e=>({PieChartModel:e})));a=new e;break}case o.Histogram:{let{HistogramModel:e}=await import("./HRWT2MVN.js").then(m=>m.default.then(e=>({HistogramModel:e})));a=new e;break}case o.Scatterplot:{let{ScatterplotModel:e}=await import("./JIJTDQNZ.js").then(m=>m.default.then(e=>({ScatterplotModel:e})));a=new e;break}case o.BoxPlot:{let{BoxPlotModel:e}=await import("./SN4BIMRO.js").then(m=>m.default.then(e=>({BoxPlotModel:e})));a=new e;break}case o.Gauge:{let{GaugeModel:e}=await import("./JP5QECNE.js").then(m=>m.default.then(e=>({GaugeModel:e})));a=new e;break}case o.RadarChart:{let{RadarChartModel:e}=await import("./VOTMKVNY.js").then(m=>m.default.then(e=>({RadarChartModel:e})));a=new e;break}case o.HeatChart:{let{HeatChartModel:e}=await import("./V3TCGIPS.js").then(m=>m.default.then(e=>({HeatChartModel:e})));a=new e;break}case o.BarChart:default:{let{BarChartModel:e}=await import("./R2R6BF6O.js").then(m=>m.default.then(e=>({BarChartModel:e})));a=new e;break}}if(await a?.setup({layer:"layer"in r?r.layer:void 0,iLayer:"iLayer"in r?r.iLayer:void 0,config:"config"in r?r.config:void 0}),t!==void 0&&c(a,t))return a;{let e=i(a.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 (\`${t}\`).`)}}export{d as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import r from"./
|
|
2
|
+
import r from"./UOUARC5O.js";import q from"./YEOSKZ4Q.js";import p from"./7RRIPRBW.js";import o from"./C6VFUQYR.js";import n from"./GN55TJMJ.js";import l from"./TNXVGUYE.js";import k from"./GCLBISUU.js";import j from"./JXUQXIWS.js";import i from"./ZAKAJKUI.js";import h from"./QQNMK2QL.js";import g from"./OXOPYUOS.js";import e from"./Y4DORYPQ.js";import d from"./OG6XNLNH.js";import b from"./VFNQXIXU.js";import{i as c,j as y,k as m}from"./KYO65OVO.js";import a from"./GSIQ3AM5.js";import{l as O}from"./URX6VCYJ.js";import{a as M}from"./EZM4ZDQI.js";import{a as w,b as f,f as F}from"./ETLJKITO.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{Ec:E,X:P,Z:V,da:D,e:d,he:U,ia:L,ma:N},{a:W,b:x,d:I,n:j,o:z,p:R,q:Y},{c:r},T,{b:Fe,d:xe,f:Ie},{b:ue,d:_e,f:Se},{d:G,e:H},ye,{b:Te},{a:q,b:X,c:K,d:$},{a:J,b:Q},{d:B,e:A,f:Z},{b:Be},{fa:ce,ga:u,ha:me,i:ee,ia:_,j:ie,ja:C,k:te,ka:he,l:se,la:S,m:oe,n:re,na:v,o:ne,oa:b,p:ae,pa:fe,q:le,qa:de,r:ge,s:pe},{b:k}])=>{var Ae=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var o=Ce(e,i),a=s.length-1,p;a>=0;a--)(p=s[a])&&(o=p(e,i,o)||o);return o&&Ae(e,i,o),o},g=class extends T{get temporalBinningSize(){return ee(this._config)}set temporalBinningSize(e){re(e,this._config)}get temporalBinningUnit(){return ie(this._config)}set temporalBinningUnit(e){ae(e,this._config)}get timeAggregationType(){return te(this._config)}set timeAggregationType(e){le(e,this._config)}get trimIncompleteTimeInterval(){return se(this._config)}set trimIncompleteTimeInterval(e){ge(e,this._config)}get nullPolicy(){return oe(this._config)}set nullPolicy(e){ne(e,this._config)}resetTimeInterval(){pe(this._config)}};h([r],g.prototype,"temporalBinningSize");h([r],g.prototype,"temporalBinningUnit");h([r],g.prototype,"timeAggregationType");h([r],g.prototype,"trimIncompleteTimeInterval");h([r],g.prototype,"nullPolicy");h([r],g.prototype,"resetTimeInterval");var ve=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,be=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:o}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=L(o,w.BarSeries)[1]),t.series&&t.series.forEach((a,p)=>{p===i?a.assignToSecondValueAxis=e:p!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},Oe=(s,e)=>e.series?.[s]?.name,we=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Pe=(s,e)=>{let i=e.series?.[s],t;return m(i)?t=i.fillSymbol?.color:c(i)&&(t=i.lineSymbol?.color),t},Ve=(s,e,i)=>{let t=i.series?.[e];t&&(m(t)?t.fillSymbol={...N(e),...t.fillSymbol,color:s}:c(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},De=s=>s.series.map(e=>e.id),Le=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(o=>i.id===o)-s.findIndex(o=>t.id===o))},Ne=s=>s.stackedType??F.Side,Ee=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:o}=s;if(i.stackedType=e,t!==void 0){let a=x({config:i,layerInfo:t,commonStrings:o,numericFields:_(i),aggregationType:u(i)});W(i,1,a)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=V():i.axes[1].valueFormat=P()),I({config:i,value:null,axisIndex:1,isMax:!1}),I({config:i,value:null,axisIndex:1,isMax:!0})},Ue=s=>{let e,i=s.series.find(t=>(m(t)||c(t)||y(t))&&t.nullCategory!==void 0);return(m(i)||c(i)||y(i))&&(e=i?.nullCategory),e},ke=(s,e)=>{s.series.forEach(i=>{(m(i)||c(i)||y(i))&&(i.nullCategory=e)})},Me=Object.defineProperty,We=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var o=We(e,i),a=s.length-1,p;a>=0;a--)(p=s[a])&&(o=p(e,i,o)||o);return o&&Me(e,i,o),o},n=class extends T{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=f.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===d){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,he({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&z(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=R(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===d)&&e.length===0;if(i&&!t){let o=E(this.layerInfo.layer).idField;e.length===0&&o!==void 0?(e.push(o),this._aggregationType=f.Count):this._aggregationType===f.Count&&e.length>=1&&o!==void 0&&!e.includes(o)&&(this._aggregationType=f.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return ve(e,this._config)}setAssignToSecondValueAxis(e,i){be({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return C(this._config)[0]}setSortOrder(e,i){A(e,this._config,i)}async getCustomSortValues(){return await b(this._config,this.layerInfo)}async setDataFilters(e){super.setDataFilters(e);let i=C(this._config)[0];if(i===M.customSort){this.startAsyncUpdate();let t=await b(this._config,this.layerInfo);A(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return B(this._config)}set orderByList(e){!U(this._config)&&v(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&S(this.getBuildNewSeriesProps())}get binTemporalData(){return fe(this._config)}set binTemporalData(e){de(e,this._config)}getSeriesName(e){return Oe(e,this._config)}setSeriesName(e,i){we(e,i,this._config)}getSeriesColor(e){return Pe(e,this._config)}setSeriesColor(e,i){Ve(e,i,this._config)}getOrderOfSeries(){return De(this._config)}setOrderOfSeries(e){Le(e,this._config)}get stackedType(){return Ne(this._config)}set stackedType(e){Ee({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[o]=t.splice(e,1);t.splice(i,0,o),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=B(this._config),[o]=t.splice(e,1);t.splice(i,0,o),v(t,this._config)}get nullCategory(){return Ue(this._config)}set nullCategory(e){let i=this.nullCategory;O(i,e)||ke(this._config,e)}setupLocalProps(){this._xAxisField=Z(this._config),this._aggregationType=u(this._config),this._splitByField=me(this._config),this._numericFields=_(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),S(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):S(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await j({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==d?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?ce(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?x({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:_(this._config),aggregationType:u(this._config)}):""}};l([r],n.prototype,"aggregationType");l([r],n.prototype,"setAssignToSecondValueAxis");l([r],n.prototype,"setSortOrder");l([r],n.prototype,"setDataFilters");l([r],n.prototype,"orderByList");l([r],n.prototype,"binTemporalData");l([r],n.prototype,"setSeriesName");l([r],n.prototype,"setSeriesColor");l([r],n.prototype,"setOrderOfSeries");l([r],n.prototype,"stackedType");l([r],n.prototype,"moveSeries");l([r],n.prototype,"moveCustomSortValuesInOrderByList");l([r],n.prototype,"nullCategory");l([r],n.prototype,"resetConfig");var je=[J,q,X,K,Be,$,Te,ye,Q,g,Fe,G,xe,H,ue,_e,Se,Ie,k];Y(n,je);return{a:Oe,b:we,c:Ve,d:n}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","request","core/sql","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","applications/Components/imageryUtils","geometry/Extent","geometry/Point",a,b,d,e,g,h,i,j,k,l,n,o,p,q,r)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import u from"./54JMGDNM.js";import{a as ae}from"./3TPTF5I7.js";import{a as se}from"./OEZ2XTZE.js";import{a as k}from"./7LOXDMX3.js";import{a as ie}from"./XSMRKVR2.js";import t from"./W553UCBH.js";import{a as f}from"./S5OM65RV.js";import{a as $,b as J,e as W}from"./7BDNLABD.js";import s from"./DQOPCAYH.js";import{d as c}from"./FPDW4F45.js";import{a as P}from"./4QCCCXMK.js";import r from"./AKNI6ZDM.js";import p from"./N72JHWOW.js";import m from"./FPOY54UW.js";import l from"./YEOSKZ4Q.js";import j from"./7RRIPRBW.js";import i from"./C6VFUQYR.js";import g from"./ABRBND33.js";import e from"./N3QESBWD.js";import d from"./OG6XNLNH.js";import b from"./VFNQXIXU.js";import"./KYO65OVO.js";import a from"./GSIQ3AM5.js";import{l as x}from"./URX6VCYJ.js";import"./6ES4YKXX.js";import{a as Q}from"./BVLDD7VH.js";import{e as B,f as L,l as q,o as w,s as D}from"./T5RPAQYI.js";import"./EZM4ZDQI.js";import{a as o,k as H}from"./ETLJKITO.js";import{A as U,B as h,C as _,E as T,G as z,g as N,i as n,n as C,y as A,z as V}from"./GDFOZNYR.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,{substitute:le},,,,,,,{$b:M,Ed:Y,Ob:S,Qa:R,Xb:v,Zd:j,ac:O,he:I,kb:X,uc:Z,xc:G},,,,,,{a:K},,,,,{s:ee},{a:y,b:te},{b:E}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function re(p,e){let i=new Set,t=e;return p?.forEach((a,s)=>{let r=a.chartId;(i.has(r)||r===void 0||r==="")&&(a.chartId=`Chart_${Date.now()}_${s}`,e===r&&(t=a.chartId)),i.add(r)}),t}function ce(p,e,i){return p?.filter(t=>S(i,t.config)&&t.layer?.id===e)??[]}function ne(p){let{modelList:e,layerList:i,activeLayerId:t,disableEditing:a}=p,s=new Map;return e?.forEach(r=>{let l=r.layer;l&&s.set(l.id,l)}),a||i.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!t||r.id===t)}function he(p,e){p.forEach(i=>{e.forEach(t=>{i?.id===t.layer?.id&&oe(i,t)})})}function oe(p,e){let i=p;if(i){let t=[...i?.charts??[]],a=t?.findIndex(r=>r.id===e.chartId),s=!1;a!==void 0&&a>-1?(s=!x(t[a],e.config),t[a]=e.config):i&&!I(e.config)&&(s=!0,t.push(e.config)),s&&(i.charts=t)}}function de(p,e){let i=p;if(i){let t=[...i.charts??[]],a=t.findIndex(s=>s.id===e);a>-1&&(t.splice(a,1),i.charts=t)}}function pe(p,e){let i=p;if(i){let t=[...i.charts??[]];t=v({arrayA:t,arrayB:e.map(a=>a.config),getKey:a=>a.id??a.title?.content.text??""}),i.charts=t}}var me=N`: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}`,F=class extends U{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=A(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let i=e,{chartData:t,model:a}=i.detail,s=this.getModel(this.selectedChartId);if(a?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:if(this.chartData=t,a&&(a.dataStore.chartData=t,O(a.layer))){let r=a,l=t?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=t,a&&(a.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:l,r2:g,aggregated:u}=r,m=g;Number.isFinite(g)||(m=void 0),this.r2=m,q(a)&&(a.dataStore.r2=m,a.dataStore.aggregated=u,u&&(a.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=t;if((L(s)||B(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),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),B(s)){let g=s.xAxisField,u=r.some(b=>b[g]===null),m=s.nullCategory;u&&m===void 0&&(s.nullCategory=R.nullCategory)}break}}},this.chartAxesMinMaxChange=e=>{let i=e,{bounds:t,model:a}=i.detail,s=this.getModel(this.selectedChartId),r=a?.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=t,a&&(a.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let i=e,{data:t,model:a}=i.detail,s=this.getModel(this.selectedChartId);if(a?.isSameChartAs(s))switch(s?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,a&&(a.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,a&&(a.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let i=e,{propName:t,value:a,model:s}=i.detail,r=this.modelList.find(l=>s?.isSameChartAs(l));if(r)switch(t){case"rotation":typeof a=="boolean"&&K(r)&&(r.rotated=a);break;case"legendPosition":typeof a=="string"&&D(r)&&(r.legendPosition=a);break;case"legendVisibility":typeof a=="boolean"&&D(r)&&(r.legendVisibility=a);break}},this.chartLegendItemVisibilityChange=e=>{let i=e,{legendItemVisibility:t,model:a}=i.detail,s=this.modelList.find(r=>a?.isSameChartAs(r));s?.setSeriesVisibility(t),w(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),L(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:i,layerId:t}=e.target;i!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:i,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let i=e.target;oe(i?.layer,i)}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}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:te}],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()}modelListReorderChangeListener(e){let{modelList:i}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:i,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=i.find(a=>a.layer?.id!==void 0)?.layer?.id;if(t){let a=this.layerList.find(s=>s.id.toString()===t);a&&pe(a,i)}}}async layerListChange(){let e=[],i=this.layerList.map(a=>a.id.toString()),t=[...this.modelList.filter(a=>i.includes(a.layer?.id??""))];for(let a of this.layerList??[]){if(a.type==="sublayer"){let r=await a.createFeatureLayer();if(!r)continue;a=r}let s=a.charts;for(let r of s??[]){let l=await Q({layer:a,config:r});l!==void 0&&e.push(l)}}re(e),e.forEach(a=>{t.find(s=>s.isSameChartAs(a))===void 0&&t.push(a)}),t=t.filter(a=>!Y(a.config)),this.modelList=t}modelListChange(e,i){this.selectedChartId=re(e,this.selectedChartId),i?.forEach(a=>{a.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(a=>{a.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?E({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&he(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=c.Data;let i=this.getModel(e);this.setEventBasedPropsFromModelData(i),this.currentChartTypeText=i?.chartType!==void 0?E({chartType:i.chartType,commonStrings:this.commonStrings,config:i.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:i})}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 i=this.getModel(this.selectedChartId)?.config,t=[];if(i!==void 0&&e!==void 0){let a=j({chartConfig:i,chartData:e}),{minY:s,maxY:r,minX:l,maxX:g}=a;t=[{isXAxis:!0,minimum:l,maximum:g},{isXAxis:!1,minimum:s,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(i=>{let{isXAxis:t,maximum:a,minimum:s}=i,r=this.getModel(this.selectedChartId);if(r!==void 0&&w(r)&&this.selectedChartId!==void 0){let l=new ae(r,t),g=J({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:l.getLogarithmic()}),u=$.chartAxesBoundDataMap;u[this.selectedChartId]===void 0&&(u[this.selectedChartId]={});let m=u[this.selectedChartId]?.[g],b={defaultMinBound:m?.defaultMinBound===m?.currMinBound?s:m?.defaultMinBound,currMinBound:s,defaultMaxBound:m?.defaultMaxBound===m?.currMaxBound?a:m?.defaultMaxBound,currMaxBound:a};!x(m,b)&&this.selectedChartId!==void 0&&u?.[this.selectedChartId]!==void 0&&(u[this.selectedChartId][g]=b)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(i=>S(X,i.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:i,layerId:t,layerType:a}=e.detail,s=!0;if(M(a)&&t){let r=this.layerList.find(l=>l.id===t);M(r?.type)&&(s=!!(await G(r))?.attributeTable)}this.setupSelectChartTypePopover(i,t,a,s)}setupSelectChartTypePopover(e,i,t,a=!0){let s=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=T(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${i} .layerType=${t} .isRasterBarChartSupported=${a} .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(i=>i.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=ie(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!I(e.config))}onViewChartDelete(e){let{chartId:i}=e.detail;if(i!==void 0){let t=this.modelList.find(s=>s.chartId===i),a=this.layerList.find(s=>s.id===t?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==i)],a&&this.syncChartsToLayers&&this.allowChartSyncing&&de(a,i)}}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 i=e.target,t="";switch(i.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=T(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ee(this.tooltip)}renderViewCharts(){let e=ne({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return se(e,i=>i.id,i=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${ce(this.modelList,i.id.toString(),M(i.type)?Z:this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${i} .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>${k("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${V(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 k("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></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></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></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></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></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></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></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></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),i=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .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:t=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data}></arcgis-charts-config-heat-chart>`;break}return t}};z("arcgis-charts-config-create-flow",F);return F},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic","layers/support/CodedValueDomain","core/sql",a,b,d,e,g,i,j,l,m,p,r,s,t,u)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as e,c as n,d as o}from"./S5OM65RV.js";import b from"./
|
|
2
|
+
import{b as e,c as n,d as o}from"./S5OM65RV.js";import b from"./7RRIPRBW.js";import a from"./GSIQ3AM5.js";import{d,s as f}from"./T5RPAQYI.js";import{a as l,y as s}from"./ETLJKITO.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{Eb:p,Nb:g,Wb:x,_c:C,ac:B,he:y,s:E},{a:h}])=>{var D=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],L=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],V=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],T=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage],M=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],R=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],G=[e.EditChart,e.FilterByExtent,e.ExportAsImage,e.ExportAsCSV];function me(a){switch(a){case l.BarSeries:return D;case l.LineSeries:return L;case l.ComboLineAndBarSeries:return V;case l.PieSeries:return T;case l.HistogramSeries:return M;case l.ScatterSeries:return R;case l.BoxPlotSeries:return P;case l.GaugeSeries:return G;case l.HeatSeries:return Z;default:return[]}}var Ee=(a,i,t)=>{let r=a.target.assignedNodes().find(c=>"legendToggle"in c),S=s(t?.series);return r&&(r.chartType=S,H({actionBar:r,chartComponent:i,config:t})),r};function H(a){let{actionBar:i,chartComponent:t,config:r,isInfoModalDisplayed:S}=a,c=x(t.selectionData),u=r?.legend?r.legend.visible??!0:!1;if(i.chartType=s(r?.series),t.enableConfiguration||t.configurationEnabled){let v=i.hiddenActions??[];i.hiddenActions=v.filter(w=>w!==e.EditChart)}i.editChartState=t.enableConfiguration||t.configurationEnabled?o.Enabled:o.Disabled;let m=r&&g(r.series);i.legendState=m?o.Enabled:o.Disabled;let A=d(t?.model)&&f(t?.model)?t.model.legendVisibility:u;i.legendToggle=m&&A?n.Active:n.Inactive;let b=d(t?.model)&&h(t.model)?t.model.rotated:r?.rotated;i.rotateChartToggle=b?n.Active:n.Inactive;let F=C(r?.series??[])===p.PieFromFields,I=B(t.layer);i.filterBySelectionState=!I&&!F&&(t.filterBySelection||!c&&!t.filterByExtent)?o.Enabled:o.Disabled,i.filterBySelectionToggle=t.filterBySelection?n.Active:n.Inactive,i.filterByExtentState=t.filterByViewExtent||!t.filterBySelection?o.Enabled:o.Disabled,i.filterByExtentToggle=t.filterByViewExtent?n.Active:n.Inactive,i.zoomState=t.filterBySelection?o.Disabled:o.Enabled,i.zoomToggle=t.actionMode===E.Zoom?n.Active:n.Inactive,i.selectionState=t.filterBySelection?o.Disabled:o.Enabled,i.selectionToggle=(t.actionMode??i.actionBarSelectionMode)===i.actionBarSelectionMode?n.Active:n.Inactive,i.clearSelectionState=c?o.Disabled:o.Enabled,i.fullExtentState=t.filterBySelection?o.Disabled:o.Enabled,i.switchSelectionState=t.filterBySelection?o.Disabled:o.Enabled,i.exportActionState=S||y(r)?o.Disabled:o.Enabled}function pe(a){return a?.tagName.toLowerCase()==="arcgis-chart"}function ge(a){return a!==void 0&&s(a.series)===l.GaugeSeries}return{a:me,b:Ee,c:H,d:pe,e:ge}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","request","core/sql","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","applications/Components/imageryUtils","geometry/Extent","geometry/Point",a,b)
|