@arcgis/charts-components 5.2.0-next.53 → 5.2.0-next.55
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/{7RRVJPTW.js → 2IKZFZUE.js} +1 -1
- package/dist/cdn/{FZUKEGI7.js → 2X3OAYNV.js} +1 -1
- package/dist/cdn/{KNN4G3JB.js → 35POTOZQ.js} +1 -1
- package/dist/cdn/{AV73HH5X.js → 3DIYOKPZ.js} +1 -1
- package/dist/cdn/{EXCIMJOH.js → 3GSTHSH7.js} +1 -1
- package/dist/cdn/{ZZOKDSTD.js → 3GU4G523.js} +1 -1
- package/dist/cdn/{2BGSZGPZ.js → 3LMD4KUV.js} +1 -1
- package/dist/cdn/43ZZWFUB.js +2 -0
- package/dist/cdn/47ZP4C6W.js +2 -0
- package/dist/cdn/{OYWI5PAE.js → 4JIJUMOJ.js} +1 -1
- package/dist/cdn/{EKBZUXYB.js → 5IVUWORQ.js} +1 -1
- package/dist/cdn/{JT5VM5N6.js → 6EEZMNAM.js} +1 -1
- package/dist/cdn/{HFPPW74G.js → 6L6HZOZD.js} +1 -1
- package/dist/cdn/{W6FPVGPJ.js → 7FUBB222.js} +1 -1
- package/dist/cdn/{4WTYDOTA.js → AB6TCMRN.js} +1 -1
- package/dist/cdn/{KNP746RO.js → AMXNDR4I.js} +1 -1
- package/dist/cdn/{IL4TO3HW.js → B45AW3O4.js} +1 -1
- package/dist/cdn/{OQ56CBAK.js → B7UPRHNP.js} +1 -1
- package/dist/cdn/{LDMINI6S.js → BJJJ62EE.js} +1 -1
- package/dist/cdn/{HQ4XATLY.js → BPBAOPSD.js} +1 -1
- package/dist/cdn/{JI3UI5FQ.js → BSZZXXQG.js} +1 -1
- package/dist/cdn/{WLMD3CUK.js → DMRE2GYB.js} +1 -1
- package/dist/cdn/{IIRJV7HP.js → DY5EFYIC.js} +1 -1
- package/dist/cdn/{YUZVGY4R.js → F2LCVAD2.js} +1 -1
- package/dist/cdn/{4S3UBB4K.js → FIL44WXR.js} +1 -1
- package/dist/cdn/{HZDQYG6D.js → FZNNCU2C.js} +1 -1
- package/dist/cdn/{W65LLW5X.js → GGJZNR3O.js} +1 -1
- package/dist/cdn/{KMJ2IQP7.js → GGKKUTRH.js} +1 -1
- package/dist/cdn/{32LKPPGL.js → GGPWJTK3.js} +1 -1
- package/dist/cdn/{BUOEEUYK.js → INVFC7O3.js} +1 -1
- package/dist/cdn/{3UBK3J76.js → JR4SQQU4.js} +1 -1
- package/dist/cdn/{J7XMDEFX.js → KFHPKJAT.js} +1 -1
- package/dist/cdn/{LYGQJLFB.js → KLS66MBI.js} +1 -1
- package/dist/cdn/{LX7TCW6T.js → L3TXFMLX.js} +1 -1
- package/dist/cdn/{O3N5YFJC.js → LCDVDWAP.js} +1 -1
- package/dist/cdn/{OZ5I3KXC.js → LLIEB6MK.js} +1 -1
- package/dist/cdn/{UVHDF33O.js → LS6GKMWR.js} +1 -1
- package/dist/cdn/{MOSRUFVJ.js → LVOIKCIC.js} +23 -23
- package/dist/cdn/{EZNGHLSR.js → MQCPDAMM.js} +1 -1
- package/dist/cdn/{SX4X3IVG.js → MQYXT4ZE.js} +1 -1
- package/dist/cdn/{4UJL6VJ3.js → N5DFUGTU.js} +1 -1
- package/dist/cdn/{UFB3GU6S.js → N7NVDG4G.js} +1 -1
- package/dist/cdn/{ZO4IZDFT.js → NENBP3B4.js} +1 -1
- package/dist/cdn/{U274OJKG.js → OL47BPWN.js} +1 -1
- package/dist/cdn/PAN7QMBU.js +3 -0
- package/dist/cdn/{QM25LJL6.js → PBSYMRFA.js} +1 -1
- package/dist/cdn/{JKHGXCTI.js → PD73QWUT.js} +1 -1
- package/dist/cdn/{23WDH4FI.js → PLSATV5N.js} +1 -1
- package/dist/cdn/{STE7V4ZZ.js → PNV7XBIH.js} +1 -1
- package/dist/cdn/{H6B2SK7Y.js → Q4CX7PBA.js} +1 -1
- package/dist/cdn/{D3UCTZGE.js → QCVMEX4J.js} +1 -1
- package/dist/cdn/{JMV4L7WL.js → QUNHRC77.js} +1 -1
- package/dist/cdn/{VPREA6CX.js → R5FNLYC5.js} +1 -1
- package/dist/cdn/{CQRB56BW.js → REPRW5PP.js} +1 -1
- package/dist/cdn/{JOXPPBNA.js → RQTGZRZH.js} +1 -1
- package/dist/cdn/{KB5UMMBY.js → RSSVWJA5.js} +1 -1
- package/dist/cdn/{D22JQ6IQ.js → RY5RNGN5.js} +1 -1
- package/dist/cdn/{54B66D3D.js → SEORO35X.js} +1 -1
- package/dist/cdn/{43DN7ID6.js → SOQRI6W2.js} +1 -1
- package/dist/cdn/{OK4I2WDK.js → SPQDPL7T.js} +1 -1
- package/dist/cdn/{4N76NKSQ.js → SY4SHDWL.js} +1 -1
- package/dist/cdn/{3WDEAWZX.js → TRSLIVPM.js} +1 -1
- package/dist/cdn/{4NKFXLHB.js → TUBHNDX5.js} +1 -1
- package/dist/cdn/{D6WL3G34.js → UUG5P5AP.js} +1 -1
- package/dist/cdn/{6EGZEBLQ.js → VQOWMMEN.js} +1 -1
- package/dist/cdn/{WV7XTPHK.js → VW22WSUU.js} +1 -1
- package/dist/cdn/{2Y5PUPWR.js → WBEI523H.js} +1 -1
- package/dist/cdn/{RZRAOK3W.js → WCPUB3NR.js} +1 -1
- package/dist/cdn/{PHA5DJUL.js → WFYCP7JZ.js} +1 -1
- package/dist/cdn/{IZMUEFG7.js → WXQ6S6Z3.js} +2 -2
- package/dist/cdn/{LMN4NECB.js → XXTJGAQH.js} +1 -1
- package/dist/cdn/{HAWXFGUX.js → Y3JE7LSY.js} +1 -1
- package/dist/cdn/{5IJ4LXXV.js → YQS2EQHT.js} +1 -1
- package/dist/cdn/{ZRVB73KX.js → YST2TFPV.js} +1 -1
- package/dist/cdn/{BSQZDV2P.js → Z726E2GN.js} +1 -1
- package/dist/cdn/{CI7R2F5C.js → ZB7AKPZU.js} +1 -1
- package/dist/cdn/{WSHLYTT6.js → ZFN2VAFO.js} +1 -1
- package/dist/cdn/{LF3I5SMX.js → ZLUIQN7F.js} +1 -1
- package/dist/cdn/{PZZLUH6L.js → ZREU3AFM.js} +1 -1
- package/dist/cdn/{ORKE6J33.js → ZX2RKC3N.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/data.js +5 -5
- package/dist/chunks/index2.js +1739 -1734
- package/dist/chunks/index4.js +10 -1
- package/dist/chunks/serial-chart-data.js +521 -528
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +3882 -3877
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +113 -113
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/json-schema/index.d.ts +13 -4
- package/dist/spec/data-source.d.ts +1 -1
- package/dist/utils/chart-config/converter/index.js +1 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cdn/35R7YJXM.js +0 -3
- package/dist/cdn/NKPBSSL7.js +0 -2
- package/dist/cdn/VIO5ZC5I.js +0 -2
package/dist/cdn/NKPBSSL7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./ORKE6J33.js";import e from"./IZMUEFG7.js";import d from"./4N76NKSQ.js";import{c as J}from"./4HW6IYHV.js";import c from"./3WDEAWZX.js";import b from"./O3N5YFJC.js";import{g as he,i as v,j as C,k as w,l as be,m as di,n as fi}from"./ZALJA7E5.js";import a from"./35R7YJXM.js";import{c as $,d as E,n as R}from"./223CX3CX.js";import{e as ae,f as We}from"./BGOWDCTO.js";import{$ as Pe,H as re,I as H,J as Me,W as Ve,aa as $e,ca as je,f as Ee,xa as Ze}from"./FDXN5BIJ.js";import{a as fe,f as De}from"./KX7KGXKQ.js";import{d as Oe,g as Y,k as Ne}from"./SP2IPHWF.js";import{a as ce}from"./QP5UAIC6.js";import{a as pe}from"./QJMUS3VS.js";import{a as T,b as q,e as we,h as Le,k as ne,l as L,n as P,o as Re,v as O}from"./K4APZJ2O.js";export default $arcgis.t(([{substitute:_},{$:Xe,Aa:ii,Ba:Z,Ca:X,Da:Q,Ea:Se,Gb:ai,Ha:xe,Ka:Fe,M:Ye,Ma:si,Ob:oi,P:He,Qa:Be,Qb:li,ab:ti,bb:le,ca:Qe,cb:ni,cc:ci,d:_e,db:z,ec:gi,gb:ri,gc:ui,hb:k,hc:yi,ja:ze,kc:mi,ma:Je,n:j,o:Ue,pa:Ge,t:oe,xa:Ke,ya:ei,za:U},{a:M,b:ge,d:N,e:Te,f:pi,g:Ie,j:ve,r:Si},{a:xi,b:Fi,c:Bi},{a:hi,e:bi},{b:K},{a:Ti,b:Ce,f:W,g:G,i:Ae}])=>{var Ns=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.size),e},Pi=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.unit),e},ws=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.timeAggregationType),e},Ls=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.trimIncompleteTimeInterval),e},Rs=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.nullPolicy),e},$i=(i,e)=>{e?.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.size=i)}),N({config:e,value:null,axisIndex:1,isMax:!1}),N({config:e,value:null,axisIndex:1,isMax:!0})},ji=(i,e)=>{e?.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.nullPolicy=i)}),N({config:e,value:null,axisIndex:1,isMax:!1}),N({config:e,value:null,axisIndex:1,isMax:!0})},Ds=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.unit=i)}),N({config:e,value:null,axisIndex:1,isMax:!1}),N({config:e,value:null,axisIndex:1,isMax:!0})},Es=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.timeAggregationType=i)}),N({config:e,value:null,axisIndex:1,isMax:!1}),N({config:e,value:null,axisIndex:1,isMax:!0})},Ms=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.trimIncompleteTimeInterval=i)}),N({config:e,value:null,axisIndex:1,isMax:!1}),N({config:e,value:null,axisIndex:1,isMax:!0})},Zi=i=>{$i(0,i)},Wi=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,Ui=(i,e,s,n)=>{for(var r=_i(e,s),t=i.length-1,a;t>=0;t--)(a=i[t])&&(r=a(e,s,r)||r);return r&&Wi(e,s,r),r},Yi=i=>{let e;return j(i)?e=i.outTimeZone:i?.series.forEach(s=>{(s.type===T.BarSeries||s.type===T.RadarSeries||s.type===T.LineSeries)&&s.temporalBinning&&(e=s.temporalBinning.outTimeZone)}),e||(e=i?.axes?.[0]?.valueFormat.type===T.DateAxisFormat?i.axes[0].valueFormat.intlOptions.timeZone:void 0),e},Oi=(i,e)=>{let s=li(i);j(e)?i?e.outTimeZone=s:delete e.outTimeZone:e?.series.forEach(n=>{(n.type===T.BarSeries||n.type===T.RadarSeries||n.type===T.LineSeries)&&(i?(n.temporalBinning??={},n.temporalBinning.outTimeZone=s):n.temporalBinning&&delete n.temporalBinning.outTimeZone)}),e?.axes?.[0]?.valueFormat.type===T.DateAxisFormat&&(i?e.axes[0].valueFormat.intlOptions.timeZone=s:delete e.axes[0].valueFormat.intlOptions.timeZone)},qe=class extends Fi{get timeZone(){return Yi(this._config)}set timeZone(e){Oi(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};Ui([Bi],qe.prototype,"timeZone");function Vs(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.position=i)),s}function Ps(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.visible=i)),s}function $s(i,e){let s;return e!==void 0&&(s={...e,rotated:i}),s}function Hi(i){let e;return i!==void 0&&(e={...i},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function js(i,e){return e!=null||he(i)}async function Zs(i){let{config:e,layer:s,abortSignal:n}=i,r=!1;return ae(s)||We(e)?e&&ae(s)&&(r=await Ge({config:e,layer:s,abortSignal:n})):r=!0,r}async function Xi(i){let{queryObject:e,chartConfig:s,splitByField:n,errorStrings:r,abortSignal:t,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:f,chartLimits:m}=i,g=[],u,y=Y(s),d=y.series[0],c=si({queryObject:e,chartConfig:y,runtimeDataFilters:a,ignoreViewExtent:o});if(c.outStatistics?.[0]?.outStatisticFieldName&&(c.outStatistics[0].outStatisticFieldName=Ee.outStatistics.outStatisticFieldName),k(d)&&ri({xAxisValueFormatType:_e(y),setTimeBinningInfoWhenNotProvided:l,seriesConfig:d,queryObject:e})&&Ye(n,e)){let{temporalBinning:S,x:b}=d,{uniqueQuery:I}=Be({chartConfig:y,queryConfig:c,queryObject:e,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:f,chartLimits:m}),F=s.axes?.[0].valueFormat.type===T.DateAxisFormat?s.axes[0].valueFormat.intlOptions.timeZone:void 0;u=await Je({queryObject:e,dateField:b,splitByField:n,queryConfig:I,axisTimeZone:F,temporalBinning:S,errorStrings:r,abortSignal:t}),g=Array.from(new Set(u.flatMap(x=>{let{stackedAttributes:A}=x,p=[];return A&&(p=A.map(B=>B[n]).filter(B=>B!==void 0)),p})).values())}else{let{uniqueQuery:S}=Be({chartConfig:y,queryObject:e,queryConfig:c,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:f,chartLimits:m}),{elementCount:b}=await ci({chartConfig:y,queryObject:e,queryConfig:c,behaviorAfterLimit:m?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:S.num,abortSignal:t});u=await ze({queryObject:e,queryConfig:S,featureCount:b,returnStatisticsAggregatedIds:!0,errorStrings:r,abortSignal:t}),g=Array.from(new Set(u.map(I=>I.attributes[n]).filter(I=>I!==void 0)).values())}return{allValues:g,preFetchedQueryResponse:u}}function Qi(i,e){let s=new Map;return i.series.forEach(n=>{let r=le({where:n.query?.where,normalize:!0,escape:!1});e&&r!==null&&(r=Number(r));let t=pe([n]);t!==void 0&&s.set(t,[...s.get(t)??[],r])}),s}function zi(i){let{allValues:e,configUniqueValuesPerSeriesType:s,initialConfigWasEmpty:n}=i,r=new Map;return Array.from(s.keys()).forEach(t=>{let a=s.get(t)??[],o=[];n?o=e:e.forEach(l=>{a.includes(l)||o.push(l)}),r.set(t,o)}),r}function Ji(i){let{chartConfig:e,missingValue:s,splitByField:n,seriesTemplate:r}=i,t=JSON.parse(JSON.stringify({...e.series[0],...r}));if(t.query){if(s===null?t.id=$.nullValue:s===""?t.id=$.emptyStringValue:t.id=`${s}`,t.name=`${s}`,t.query.outStatistics?.[0]!==void 0){let o=t.id;t.query.outStatistics[0].outStatisticFieldName=o,"y"in t&&(t.y=o)}let a=typeof s=="number"||s===null?s:`'${s}'`;t.query.where=`${n}=${a}`}return t}async function Gi(i){let{updateSplitBySeries:e,config:s,queryObject:n,errorStrings:r,abortSignal:t,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:f,chartLimits:m}=i,{seriesTemplate:g}=e??{},u;if(n&&!ae(n)&&e!==void 0&&s!==void 0&&(s.series.length>0||g!==void 0)&&e.addMissingSeries){let y=s.series.length===0;s.series.length===0&&g!==void 0&&s.series.push(g);let d=z(s.series);if(d===E.BoxPlotMonoFieldAndSplitBy||d===E.BoxPlotMultiFieldsAndSplitBy||d===E.BoxPlotMonoFieldAndCategoryAndSplitBy||d===E.BarAndLineSplitBy||d===E.BarAndLineSplitByNoAggregation){let c=ti(s.series[0]?.query?.where),S=Ke(n),b=ei(c,S),I=b?ii(b):!1,F=await Xi({queryObject:n,chartConfig:s,splitByField:c,abortSignal:t,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:f,chartLimits:m,errorStrings:r}),{allValues:x}=F;if({preFetchedQueryResponse:u}=F,x.length>0){let A=Qi(s,I),p=zi({allValues:x,configUniqueValuesPerSeriesType:A,initialConfigWasEmpty:y});Array.from(p.keys()).forEach(B=>{(p.get(B)??[]).forEach(V=>{s.series.push(Ji({chartConfig:s,seriesTemplate:g,missingValue:V,splitByField:c}))}),y&&s.series.shift()})}}}return u}function Ki(i,e){e&&!he(e)&&(e=He({chartConfig:e,queryObject:i}))}async function Ws(i){let{configToAlter:e,layer:s,addMissingSeries:n,updateSplitBySeries:r,chartContainer:t,queryObject:a,abortSignal:o,runtimeDataFilters:l,ignoreViewExtent:f,setTimeBinningInfoWhenNotProvided:m,returnFeaturesExtent:g,chartLimits:u,timeZone:y,errorStrings:d}=i,c=e,S;return c&&(Ki(s,c),c=await xi(c,s,void 0,o),n&&a&&(S=await Gi({updateSplitBySeries:r,config:c,queryObject:a,errorStrings:d,abortSignal:o,runtimeDataFilters:l,ignoreViewExtent:f,setTimeBinningInfoWhenNotProvided:m,returnFeaturesExtent:g,chartLimits:u})),c=ai(c,t),Oi(y,c)),{alteredConfig:c,preFetchedQueryResponse:S}}function es(i,e){let s=!1;if(e!==void 0){let n=ui({key:Qe.Average,splitBy:e});s=Number.isFinite(i[n])}return s}function _s(i){let{data:e,config:s,showEmptySeries:n}=i,r=s.series.length,t=Y(s),a=!1;if(!n&&r>1&&e){let o=gi(e),l=pe(s?.series),f=z(s?.series),m=new Set;switch(l){case T.ComboLineAndBarSeries:case T.BarSeries:case T.RadarSeries:case T.LineSeries:{t.series.forEach(u=>{if(Array.isArray(o)){let y="";"y"in u&&(y=Array.isArray(u.y)?u.y[0]:u.y,f===E.BarAndLineSplitByNoAggregation&&(y=`${y}_${le({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),o.some(d=>mi({dataItem:d,x:u.x,y,aggregationType:s.series[0].query?.outStatistics?.[0]?.statisticType}))&&m.add(u))}});break}case T.BoxPlotSeries:{if(Ue(s)){let u=Xe(s);s.series.forEach(y=>{let d,c;y.type===T.BoxPlotSeries?(d=e.dataItems,c=d?.some(S=>yi({dataItem:S,splitBy:y.query?.where,showOutliers:u}))):y.type===T.LineSeries&&(d=e.meanLines,c=d?.some(S=>es(S,y.query?.where))),c&&m.add(y)})}break}}let g=Array.from(m.values());a=g.length>0&&g.length<r,a&&(t.series=g)}return{seriesFilteredOut:a,filteredConfig:t}}var Us=i=>i.hideEmptyRowsAndColumns,Ys=(i,e)=>{i.hideEmptyRowsAndColumns=e},Hs=(i,e)=>{let s=i.series[0];s.heatRulesType=e},Xs=i=>i.series[0].heatRulesType,Qs=(i,e)=>{let s=i.series[0];s.gradientRules=e},zs=i=>i.series[0].gradientRules,Js=i=>{let{yField:e,config:s,layerInfo:n,commonStrings:r}=i,{layerFieldsInfo:t}=n,a=J(1,s),o=is(s),l=K(s),f=s.series[0];if(typeof e=="string"&&o!==e&&f){if(f.y=e,Hi(s),o===a||l){let m=R(t,e);M(s,1,m)}Ni({commonStrings:r,config:s,layerInfo:n})}},is=i=>i.series[0].y??"",Gs=i=>{let{binning:e,config:s,commonStrings:n}=i,r=s.series[0];if(r.xTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let t=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];M(s,0,t)}ue({axisIndex:0,commonStrings:n,config:s})},ss=i=>i.series[0].xTemporalBinning,Ks=i=>{let{binning:e,config:s,commonStrings:n}=i,r=s.series[0];if(r.yTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let t=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];M(s,1,t)}ue({axisIndex:1,commonStrings:n,config:s})},ts=i=>i.series[0].yTemporalBinning,ns=(i,e)=>{e.orderOptions??={};let s=e.axes?.[0]?.valueFormat?.type==="category"?O.Category:O.YValue,n=ke(e)[0],r=e.axes?.[1]?.valueFormat?.type==="category"?O.Category:O.YValue,t=ke(e)[1],a={...e.orderOptions.data??{},orderType:O.MultiAxes};n===ce.customSort&&s===O.Category&&(a.orderByX=[...i]),t===ce.customSort&&r===O.Category&&(a.orderByY=[...i]),Object.keys(a).length>1&&(e.orderOptions.data=a)},et=(i,e)=>{let s=e.series[0];s.gridLine&&(s.gridLine.width=i)},it=i=>i.series[0].gridLine?.width,st=(i,e)=>{let s=e.series[0],n=i?.length===4&&i.every(r=>typeof r=="number");s.gridLine&&n&&(s.gridLine.color=i)},tt=i=>i.series[0].gridLine?.color,nt=(i,e)=>{let s=e.legend;s&&(s.position=i)},rt=i=>i.legend?.position??we.Bottom,at=i=>i.series[0].query?.outStatistics?.[0]?.onStatisticField,ot=i=>{let{field:e,config:s,layerInfo:n,commonStrings:r}=i,t=s.series[0].query?.outStatistics?.[0],a=de(s,n,r);t?(t.onStatisticField=e,t.outStatisticFieldName=`${t.statisticType}_${e}`):s.series[0].query={outStatistics:[{onStatisticField:e,outStatisticFieldName:`${q.Count}_${e}`,statisticType:q.Count}]},a&&s.title&&(s.title.content.text=se(s,n,r))},lt=i=>i.series[0].query?.outStatistics?.[0].statisticType??q.Count,ct=i=>{let{aggregationType:e,config:s,layerInfo:n,commonStrings:r}=i,t=s.series[0]?.query?.outStatistics?.[0],a=de(s,n,r);t&&e!==q.NoAggregation&&(t.statisticType=e,t.outStatisticFieldName=`${e}_${t.onStatisticField}`),(e===q.Count||e===q.Sum)&&rs(P.Zero,s),a&&s.title&&(s.title.content.text=se(s,n,r))},gt=i=>i.nullPolicy,rs=(i,e)=>{e.nullPolicy=i},ut=i=>i.series[0].emptyCells,yt=(i,e)=>{e.series[0].emptyCells=i},mt=i=>i.series[0].emptyCells?.text,dt=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=i:e.series[0].emptyCells={text:i}},ft=i=>i.includeLeapDay,pt=(i,e)=>{e.includeLeapDay=i},St=i=>i.series[0].emptyCells?.symbol,xt=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=i:e.series[0].emptyCells={symbol:i}};function Ft(i){return i.viewType}function Bt(i,e){oi(e)||(e.viewType=i)}function ht(i){return i.series[0].classBreaksRules?.breaksCount??$.classBreaks.breaksCount}function bt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=i??$.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:i??$.classBreaks.breaksCount}}function Tt(i){return i.series[0].classBreaksRules?.classificationMethod}function It(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=i:e.series[0].classBreaksRules={classificationMethod:i},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??$.classBreaks.breaksCount}function vt(i,e){e.firstDayOfWeek=i}function Ct(i){return i.firstDayOfWeek}function At(i){return i.series[0].classBreaksRules?.colorRampInfo?.name}function qt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,name:i}:e.series[0].classBreaksRules={colorRampInfo:{name:i,flipped:!1}}}function kt(i){return i.series[0].classBreaksRules?.colorRampInfo?.flipped??!1}function Ot(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,flipped:i}:e.series[0].classBreaksRules={colorRampInfo:{flipped:i}}}var as=[L.DayOfMonth,L.MonthOfYear],Ii=i=>{let e;return X(i)?e=re():(Z(i)||Q(i))&&(e=H()),e},vi=i=>Z(i)||Q(i),Ci=i=>{let{axisIndex:e,commonStrings:s,config:n,valueFormat:r}=i,t=n.axes?.[e]?.valueFormat;r!==void 0&&t?.type!==r.type&&ve({config:n,commonStrings:s,valueFormat:r,axisIndex:e})},os=(i,e)=>{let s;return e===0?s=i.series[0]?.xTemporalBinning:e===1&&(s=i.series[0]?.yTemporalBinning),s},Ai=(i,e)=>i.utilsStrings.heatChartCalendarDatePartsUnits[e]??"",qi=(i,e)=>{let s=as[i];return i===0&&e?.unit===L.DayOfWeek?s=L.HourOfDay:i===1&&e?.unit===L.HourOfDay&&(s=L.DayOfWeek),{type:T.CalendarDateParts,unit:s}},ls=i=>{let e={};switch(i.unit){case L.DayOfMonth:e={day:"2-digit"};break;case L.DayOfWeek:e={weekday:"short"};break;case L.HourOfDay:e={hour:"numeric",hour12:!1};break;case L.MonthOfYear:e={month:"short"};break;default:e=H().intlOptions;break}return{type:T.DateAxisFormat,intlOptions:e}},ki=i=>{let{axisIndex:e,binning:s,commonStrings:n,config:r,fieldName:t,layerInfo:a}=i,o=r.series[0],l=J(e,r),f=R(a.layerFieldsInfo,t);e===0?o.xTemporalBinning=s:e===1&&(o.yTemporalBinning=s),s!==void 0&&(l===""||l===f||l===Ai(n,s.unit)||l===n.xAxis)&&M(r,e,Ai(n,s.unit))},ue=i=>{let{axisIndex:e,commonStrings:s,config:n}=i,r=os(n,e),t=r?ls(r):void 0;ve({config:n,commonStrings:s,valueFormat:t,axisIndex:e})},Ni=i=>{let{commonStrings:e,config:s,layerInfo:n}=i,r=s.series[0]?.x??"",t=s.series[0]?.y??"",a=Fe(n.layerFieldsInfo,r),o=Fe(n.layerFieldsInfo,t),l=Ii(a),f=Ii(o),m=vi(a)&&vi(o),g=X(a)&&X(o);if(Ci({axisIndex:0,commonStrings:e,config:s,valueFormat:l}),Ci({axisIndex:1,commonStrings:e,config:s,valueFormat:f}),m){let u=ss(s)===void 0,y=ts(s)===void 0;u&&(ki({axisIndex:0,binning:qi(0,s.series[0].yTemporalBinning),commonStrings:e,config:s,fieldName:r,layerInfo:n}),ue({axisIndex:0,commonStrings:e,config:s})),y&&(ki({axisIndex:1,binning:qi(1,s.series[0].xTemporalBinning),commonStrings:e,config:s,fieldName:t,layerInfo:n}),ue({axisIndex:1,commonStrings:e,config:s}))}g&&(s.series[0].xTemporalBinning=void 0,s.series[0].yTemporalBinning=void 0)};function ee(i){let{seriesIndex:e,xAxisField:s,aggregationType:n,config:r,layerInfo:t,commonStrings:a}=i,o=U(t?.layer).idField,l,f=r.series[e??0],m=!1,g=!1,u=!1;if(f===void 0){let c=r.series;m=c.slice(0,e).every(S=>v(S)),g=c.slice(0,e).every(S=>C(S)),u=c.slice(0,e).every(S=>be(S))}else m=v(f),g=C(f),u=be(f);m?l=Pe({commonStrings:a,seriesIndex:e,objectIDField:o}):g?l=$e({commonStrings:a,seriesIndex:e,objectIDField:o}):u?l=Ve(a,o):l=je({seriesIndex:e,objectIDField:o,commonStrings:a});let y=r.series[0]?.dataLabels,d={...l,x:s,y:"",dataLabels:{...l.dataLabels,type:l.dataLabels?.type??T.Text,content:{...l.dataLabels?.content,...y?.content,type:De.TS},visible:y?.visible??!1}};if(d.query={groupByFieldsForStatistics:[s]},n!==q.NoAggregation&&o!==void 0){let c=`${n}_${o}_0`.toUpperCase();d.y=c,d.query.outStatistics=[{statisticType:n,onStatisticField:o,outStatisticFieldName:c}]}if(k(r.series[0])&&k(d)){let c=Pi(r);c===ne.Quarter&&(c=ne.Month),d.temporalBinning={...r.series[0]?.temporalBinning,unit:c}}return Y(d)}function se(i,e,s){let{layerFieldsInfo:n}=e,{idField:r,isTraditionalTypeOID:t}=U(e.layer),a=W(i),o=me(i),l=Li(i),f=ye(i),m=t&&(o.length===0||o.includes(r)),g=Ze(l,s),u=m?"":o.map(F=>R(n??[],F)).join(", "),y=R(n??[],a),d=R(n??[],f),c=i.series.some(F=>w(F)),S=c?"category":"xAxisField",b=y,I="";if(Ae({fieldName:a,numericFields:o,fieldList:n}))I=_(s.titleLabels.aggrTypeOfAggrFields,{aggregationType:g,aggregationFields:u});else if(l===q.NoAggregation){let F=m?r:u;if(f===""){let x=c?"aggrTypeCategory":"aggrTypeXAxisField";I=_(s.titleLabels[x],{aggregationType:F,[S]:b})}else{let x=c?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";I=_(s.titleLabels[x],{aggregationType:F,[S]:b,splitByField:d})}}else if(l===q.Count)if(f===""){let F=c?"aggrTypeCategory":"aggrTypeXAxisField";I=_(s.titleLabels[F],{aggregationType:g,[S]:b})}else{let F=c?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";I=_(s.titleLabels[F],{aggregationType:g,[S]:b,splitByField:d})}else if(f!==""){let F=c?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";I=_(s.titleLabels[F],{aggregationType:g,aggregationField:u,[S]:b,splitByField:d})}else if(o.length>0){let F=c?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";I=_(s.titleLabels[F],{aggregationType:g,aggregationFields:u,[S]:b})}return I}var wi=i=>le({where:i.query?.where,normalize:!1,escape:!1})??"",Li=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??q.NoAggregation,ye=Oe(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return ni(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),me=i=>{let e=[];if(ye(i)==="")e=i?.series.map(s=>{let n=s.query?.outStatistics?.map(r=>r.onStatisticField)??[];return n?.length>0?n:s.y}).flat()??[];else{let s=i?.series?.[0],n=s?.query?.outStatistics?.[0]?.onStatisticField??[s?.y].flat()[0];e=n!==void 0?[n]:[]}return e.filter(s=>s!=="")};function Ri(i){let{splitByField:e,numericFields:s,layer:n,seriesIndex:r}=i,t=U(n).idField??"";return e===""?s[r]??t:s[0]??t}function cs(i){let{numericFields:e,aggregationType:s,config:n,layerInfo:r}=i,t=!1;s===q.Count?t=!0:s===q.NoAggregation&&(t=e.every(l=>{let f=r.layerFieldsInfo.find(m=>m.name===l);return f!==void 0?Se(f):!1})),Ie(n,1,t);let a=n.series.some(l=>v(l)),o=n.series.some(l=>C(l));if(a||o){let l=W(n),f=r.layerFieldsInfo.find(g=>g.name===l),m=f!==void 0&&Se(f);Ie(n,0,m)}}var ke=i=>{let e;if(j(i)){let s=i.orderOptions?.data?.orderByX??[""],n=i.orderOptions?.data?.orderByY??[""],r=i.axes?.[0]?.valueFormat?.type==="category"?O.Category:O.YValue,t=i.axes?.[1]?.valueFormat?.type==="category"?O.Category:O.YValue;e=[Ce(s,r),Ce(n,t)]}else{let s=i.orderOptions?.data?.orderType??O.Category,n=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:Le.Ascending;e=[Ti(n,s)]}return e};function gs(i){let{xAxisField:e,numericFields:s,aggregationType:n,config:r,layerInfo:t,commonStrings:a}=i,{layerFieldsInfo:o}=t,l=!1,f=ee({config:r,xAxisField:e,aggregationType:n,layerInfo:t,seriesIndex:0,commonStrings:a}),m=G({config:r,xAxisField:e,numericFields:s,aggregationType:n,layer:t.layer,fieldList:o}).name,g={...f,id:`series_${Date.now()}`,name:a.axisLabels.values,x:oe,y:m},u=[];for(let d of s)u.push({onStatisticField:d,outStatisticFieldName:`${d}_0`.toUpperCase(),statisticType:n});g.query={outStatistics:u};let y=r.series[0];return y!==void 0&&(g.id=y.id,(v(g)&&v(y)||C(g)&&C(y))&&ie(g,y),r.colorMatch||(w(y)&&w(g)?g.fillSymbol=y.fillSymbol:(v(g)&&v(y)||C(g)&&C(y))&&(g.lineSymbol=y.lineSymbol,g.markerSymbol=y.markerSymbol),l=!0),g.id=y.id,y.name!==f.name&&(g.name=y.name)),r.series.length===1&&((v(g)||C(g))&&ie(g,r.series[0]),r.colorMatch||(w(g)?g.fillSymbol=r.series[0].fillSymbol:(v(g)||C(g))&&(g.lineSymbol=r.series[0].lineSymbol,g.markerSymbol=r.series[0].markerSymbol),l=!0)),r.colorMatch=!l,[g]}function Di(i){let{xAxisField:e,numericFields:s,aggregationType:n,config:r,layerInfo:t,commonStrings:a}=i,{layerFieldsInfo:o}=t,l=U(t.layer).idField,f=[],m=!1;for(let c=0;c<s.length;c+=1){let S=ee({config:r,xAxisField:e,aggregationType:n,layerInfo:t,seriesIndex:c,commonStrings:a}),b=r.series[c]?.y,I=typeof b=="string"&&b.trim()!==""&&!o.find(B=>B.name===b)?b:G({config:r,xAxisField:e,numericFields:s,aggregationType:n,layer:t.layer,numericFieldIndex:c,fieldList:o}).name,F=s[c],x={...S,query:{...S.query}};s&&F!==l&&(x={...x,id:F,name:R(o,F)});let A=F;x.query!==void 0&&(n!==q.NoAggregation?(A=I,x.query.outStatistics=[{...S.query?.outStatistics?.[0]??{},onStatisticField:F,outStatisticFieldName:I,statisticType:n}]):delete x.query.outStatistics),x.y=A;let p=r.series.find(B=>B.query?.outStatistics?.[0]?.onStatisticField===F&&B.query.where===void 0||B.query?.outStatistics===void 0&&(B.y===F||B.x===F));if(p!==void 0&&typeof p.y=="string"&&p.y.trim()!==""){(v(x)&&v(p)||C(x)&&C(p))&&ie(x,p),r.colorMatch||(w(x)&&w(p)?x.fillSymbol=p.fillSymbol:(v(x)&&v(p)||C(x)&&C(p))&&(x.lineSymbol=p.lineSymbol,x.markerSymbol=p.markerSymbol),m=!0);let B=ee({config:r,xAxisField:e,aggregationType:n,layerInfo:t,seriesIndex:c,commonStrings:a});x.id=p.id,p.id!==B.id&&p.name!==B.name&&(x.id=p.id,x.name=p.name),x.assignToSecondValueAxis=p.assignToSecondValueAxis,x.type===T.HeatSeries&&p.type===T.HeatSeries&&(x.y=p.y,x.heatRulesType=p.heatRulesType)}f.push(x)}let g=f.filter(c=>w(c)),u=f.filter(c=>v(c)||C(c)),y=r.series.filter(c=>w(c)),d=r.series.filter(c=>v(c)||C(c));return y.length===1&&g.length===1&&!r.colorMatch&&(w(y[0])&&w(g[0])&&(g[0].fillSymbol=y[0].fillSymbol),m=!0),d.length===1&&u.length===1&&((v(d[0])&&v(u[0])||C(d[0])&&C(u[0]))&&ie(u[0],d[0]),r.colorMatch||((v(d[0])&&v(u[0])||C(d[0])&&C(u[0]))&&(u[0].lineSymbol=d[0].lineSymbol,u[0].markerSymbol=d[0].markerSymbol),m=!0)),r.colorMatch=!m,f}function Nt(i){let{aggregationType:e,config:s,layerInfo:n,commonStrings:r}=i,{layerFieldsInfo:t,layer:a}=n,o=W(s),l=me(s),f=ye(s),m=de(s,n,r),g=Ei(s,n,r);if(s.series.forEach((u,y)=>{let d=G({config:s,xAxisField:o,numericFields:l,aggregationType:e,splitByField:f,layer:a,seriesIndex:y,numericFieldIndex:y,fieldList:t}).name;u.y=d;let c=Ri({splitByField:f,numericFields:l,layer:a,seriesIndex:y}),S=u.query?.outStatistics?.[0]?.onStatisticField??c;u.query={...u.query,outStatistics:e===q.NoAggregation?void 0:[{...u.query?.outStatistics?.[0],outStatisticFieldName:d,statisticType:e,onStatisticField:S}]},"temporalBinning"in u&&u.temporalBinning!==void 0&&(u.temporalBinning.nullPolicy=e===q.NoAggregation?P.Interpolate:P.Null),e===q.NoAggregation&&Zi(s)}),m&&s.title&&(s.title.content.text=se(s,n,r)),g&&s.series[0].type!==T.HeatSeries){let u=ge({config:s,layerInfo:n,commonStrings:r,numericFields:l,aggregationType:e});M(s,1,u)}}function us(i){let{splitByField:e,xAxisField:s,numericFields:n,aggregationType:r,config:t,layerInfo:a,commonStrings:o,splitByFieldInfos:l}=i,{layer:f,layerFieldsInfo:m}=a,{categoriesArray:g,splitByFieldType:u}=l,y=Ri({splitByField:e,numericFields:n,layer:f,seriesIndex:0}),d=[],c=!1;if(g.length===0){d=Di({xAxisField:s,numericFields:n,aggregationType:r,config:t,layerInfo:a,commonStrings:o});for(let S of d)S.query&&(S.query.where=`${e}=''`)}else for(let S=0;S<g.length;S+=1){let b=g[S],I=G({config:t,xAxisField:s,numericFields:n,aggregationType:r,layer:a.layer,seriesIndex:S,splitByField:e,fieldList:m}).name,F=ee({config:t,xAxisField:s,aggregationType:r,layerInfo:a,seriesIndex:S,commonStrings:o}),x=xe({queryObject:a.layer,fieldName:e,fieldValue:b??""}),A=`${b}`,p={...F,id:A,name:x??A,y:I,query:{...F.query,where:`${e}=${u===fe.String&&b!==null?`'${b}'`:b}`,outStatistics:r!==q.NoAggregation?[{...F.query?.outStatistics?.[0]??{},onStatisticField:y,outStatisticFieldName:I,statisticType:r}]:void 0}},B=t.series.find(V=>String(wi(V)).trim().replace(/'/gu,"")===A);B!==void 0&&((v(p)&&v(B)||C(p)&&C(B))&&ie(p,B),t.colorMatch||(w(p)&&w(B)?p.fillSymbol=B.fillSymbol:(v(p)&&v(B)||C(p)&&C(B))&&(p.lineSymbol=B.lineSymbol,p.markerSymbol=B.markerSymbol),c=!0),p.id=B.id,p.name=B.name,p.assignToSecondValueAxis=B.assignToSecondValueAxis),p.query&&(p.query.fetchNullValues=t.series.some(V=>V.query?.fetchNullValues)),d.push(p)}return t.colorMatch=!c,d}var wt=i=>{let{xAxisFieldName:e,splitByField:s,numericFields:n,aggregationType:r,config:t,layerInfo:a,commonStrings:o,splitByFieldInfos:l}=i,{layerFieldsInfo:f}=a??{},m=Y(t),g=bi(t),u=W(m),y=f.find(h=>h.name===u),d=m.series[0].query?.fetchNullValues,c="nullCategory"in m.series?.[0]?m.series[0].nullCategory:void 0,S=m.series[0]?.query===void 0,b=f.find(h=>h.name===e),I=de(m,a,o),F=Ei(m,a,o),x=ys(m,a),A=Te(t),p=m.series.some(h=>w(h)),B=di(m.series),V=fi(m.series),D={};j(m)&&(D.classBreaksRules=m.series[0]?.classBreaksRules,D.xTemporalBinning=m.series[0]?.xTemporalBinning,D.yTemporalBinning=m.series[0]?.yTemporalBinning,D.emptyCells=m.series[0]?.emptyCells,D.nullPolicy=m.nullPolicy);let te=!1;if(X(b)?A=re():!Q(y)&&Q(b)?(A=H(),te=!0):!Z(y)&&Z(b)?(A=H(),te=!0):Z(y)&&!Z(b)&&(p?A=re():A=Me(),te=!0),A!==void 0&&pi(t,o,A),g===0&&(t.series=[ee({config:t,xAxisField:e,aggregationType:r,layerInfo:a,commonStrings:o})]),t.series.forEach(h=>{h.x=e,h.query!==void 0&&(h.query.groupByFieldsForStatistics=[e])}),s===""||n.length>1?Ae({fieldName:e,numericFields:n,fieldList:f})?t.series=gs({config:t,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:r,commonStrings:o}):t.series=Di({config:t,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:r,commonStrings:o}):l&&(t.series=us({config:t,layerInfo:a,splitByField:s,xAxisField:e,numericFields:n,aggregationType:r,commonStrings:o,splitByFieldInfos:l})),x&&t.series[0].type!==T.HeatSeries){let h=R(f,e);M(t,0,h)}if(F&&t.series[0].type!==T.HeatSeries){let h=ge({config:t,layerInfo:a,commonStrings:o,numericFields:n,aggregationType:r});M(t,1,h)}if(I&&t.title&&(t.title.content.text=se(t,a,o)),N({config:t,value:null,axisIndex:1,isMax:!1}),N({config:t,value:null,axisIndex:1,isMax:!0}),cs({numericFields:n,aggregationType:r,config:t,layerInfo:a}),(B||V)&&(N({config:t,value:null,axisIndex:0,isMax:!1}),N({config:t,value:null,axisIndex:0,isMax:!0}),te&&r!==q.NoAggregation)){let h=A?.type===T.DateAxisFormat?P.Null:P.Interpolate;ji(h,t)}j(t)&&(t.series[0].classBreaksRules=D.classBreaksRules,t.series[0].xTemporalBinning=D.xTemporalBinning,t.series[0].yTemporalBinning=D.yTemporalBinning,t.series[0].emptyCells=D.emptyCells,t.nullPolicy=D.nullPolicy,Ni({commonStrings:o,config:t,layerInfo:a})),S?t.series.forEach(h=>{delete h.query}):d&&t.series.forEach(h=>{h.query&&(h.query.fetchNullValues=d)}),c&&t.series.forEach(h=>{(h.type===T.BarSeries||h.type===T.LineSeries||h.type===T.RadarSeries)&&(h.nullCategory=c)}),t.series.forEach(h=>{k(h)&&h.binTemporalData===void 0&&b?.type===fe.TimeOnly&&(h.binTemporalData=!1)}),t.series.forEach(h=>{let Mi=m.series.find(Vi=>Vi.id===h.id)?.visible;h.visible=Mi})},ie=(i,e)=>{i.markerVisible=e.markerVisible,i.lineSmoothed=e.lineSmoothed,i.showArea=e.showArea,i.areaColor=e.areaColor,i.stackNegativeValuesToBaseline=e.stackNegativeValuesToBaseline,e.lineSymbol&&(i.lineSymbol={...e.lineSymbol,color:i.lineSymbol?.color}),e.markerSymbol&&(i.markerSymbol={...e.markerSymbol,color:i.markerSymbol?.color})},Lt=i=>{let{config:e,seriesIndex:s,layerInfo:n,commonStrings:r}=i,t=e.series?.[s],a=ye(e),o;if(z(e.series)===E.BarAndLineFromFields)o=r.axisLabels.values;else if(Ne(a)){let l=t.query?.outStatistics?.[0]?.onStatisticField;l!==void 0&&l!==U(n.layer).idField&&(o=R(n.layerFieldsInfo,l))}else{let l=String(wi(t)).trim().replace(/'/gu,"");o=xe({queryObject:n.layer,fieldName:a,fieldValue:l??""})??l}return o??t.id},Rt=(i,e)=>{if(j(e))ns(i,e);else{e.orderOptions??={};let s=e.orderOptions?.data?.orderType;ke(e)[0]===ce.customSort&&s===O.Category&&(e.orderOptions.data={orderType:O.Category,orderBy:[...i]})}},Dt=async i=>{let{config:e,layerInfo:s,errorStrings:n}=i,r=W(e),t=Te(e)?.type,a=me(e),o=z(e.series),l=[];return t===T.CategoryAxisFormat&&(o===E.BarAndLineFromFields||r===oe?l=a.map(f=>R(s?.layerFieldsInfo,f)):r.trim()!==""&&r!==oe&&s!==void 0&&(l=await Si({layerInfo:s,config:e,category:r,errorStrings:n}))),l};function de(i,e,s){let n=se(i,e,s),r=hi(i),t=K(i);return n===r||t}function Ei(i,e,s){let n=ge({config:i,layerInfo:e,commonStrings:s,numericFields:me(i),aggregationType:Li(i)}),r=J(1,i),t=K(i);return n===r||t}function ys(i,e){let s=R(e.layerFieldsInfo,W(i)),n=J(0,i),r=K(i);return s===n||r}function Et(i){return k(i.series[0])?i.series[0].binTemporalData??!0:!1}function Mt(i,e){e?.series.forEach(s=>{k(s)&&(s.binTemporalData=i,i?s.temporalBinning={unit:ne.Day,size:0,timeAggregationType:Re.Start,trimIncompleteTimeInterval:!0,nullPolicy:P.Null}:delete s.temporalBinning)})}return{a:Ns,b:Pi,c:ws,d:Ls,e:Rs,f:$i,g:ji,h:Ds,i:Es,j:Ms,k:Zi,l:Oi,m:qe,n:Vs,o:Ps,p:$s,q:Hi,r:js,s:Zs,t:Ws,u:_s,v:Us,w:Ys,x:Hs,y:Xs,z:Qs,A:zs,B:Js,C:is,D:Gs,E:ss,F:Ks,G:ts,H:et,I:it,J:st,K:tt,L:nt,M:rt,N:at,O:ot,P:lt,Q:ct,R:gt,S:rs,T:ut,U:yt,V:mt,W:dt,X:ft,Y:pt,Z:St,_:xt,$:Ft,aa:Bt,ba:ht,ca:bt,da:Tt,ea:It,fa:vt,ga:Ct,ha:At,ia:qt,ja:kt,ka:Ot,la:Ni,ma:se,na:Li,oa:ye,pa:me,qa:ke,ra:Nt,sa:wt,ta:Lt,ua:Rt,va:Dt,wa:Et,xa:Mt}},"intl",a,b,c,d,e,f)
|
package/dist/cdn/VIO5ZC5I.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import u from"./LYGQJLFB.js";import{a as ae}from"./L7CMLBHB.js";import{a as ie}from"./AZHBGLOD.js";import{a as k}from"./CHZMNR2R.js";import{a as se}from"./IHO3OLL3.js";import t from"./5IJ4LXXV.js";import{a as $,b as W,e as ee}from"./OBPAQN4H.js";import{a as f}from"./IVLVCLDE.js";import s from"./WV7XTPHK.js";import{d as n}from"./JYC77MVD.js";import{a as P}from"./MBL6ZAKF.js";import r from"./QM25LJL6.js";import q from"./YUZVGY4R.js";import p from"./OQ56CBAK.js";import{a as J}from"./PHA5DJUL.js";import m from"./NKPBSSL7.js";import l from"./JT5VM5N6.js";import j from"./ORKE6J33.js";import i from"./IZMUEFG7.js";import{b as B,c as L,i as Y,l as w,p as D}from"./QYNNPEED.js";import g from"./4N76NKSQ.js";import"./4HW6IYHV.js";import e from"./3WDEAWZX.js";import d from"./H6B2SK7Y.js";import b from"./O3N5YFJC.js";import"./ZALJA7E5.js";import a from"./35R7YJXM.js";import{C as v,c as R,q as T}from"./223CX3CX.js";import{d as x,e as O}from"./BGOWDCTO.js";import"./FDXN5BIJ.js";import"./KX7KGXKQ.js";import{l as S}from"./SP2IPHWF.js";import"./HMBXRL4X.js";import{A as V,B as _,C as h,D as z,F as M,H as U,g as N,i as c,n as C,z as A}from"./5DUKB563.js";import"./NYFHPR6N.js";import"./QP5UAIC6.js";import"./QJMUS3VS.js";import{a as o,k as H}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:le},{F:X,Ob:K,nc:j,oa:G,sa:Z},,,,,{b:I},,{a:Q},,,,,{r:te},{e:y,f:q},{b:E}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function re(m,e){let i=new Set,t=e;return m?.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 ne(m,e,i){return m?.filter(t=>T(i,t.config)&&t.layer?.id===e)??[]}function ce(m){let{modelList:e,layerList:i,activeLayerId:t,disableEditing:a}=m,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(m,e){m.forEach(i=>{e.forEach(t=>{i?.id===t.layer?.id&&oe(i,t)})})}function oe(m,e){let i=m;if(i){let t=[...i?.charts??[]],a=t?.findIndex(r=>r.id===e.chartId),s=!1;a!==void 0&&a>-1?(s=!S(t[a],e.config),t[a]=e.config):i&&!I(e.config)&&(s=!0,t.push(e.config)),s&&(i.charts=t)}}function de(m,e){let i=m;if(i){let t=[...i.charts??[]],a=t.findIndex(s=>s.id===e);a>-1&&(t.splice(a,1),i.charts=t)}}function me(m,e){let i=m;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 pe=N`.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}`,F=class extends _{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,p=g;Number.isFinite(g)||(p=void 0),this.r2=p,Y(a)&&(a.dataStore.r2=p,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&&ee($,{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),p=s.nullCategory;u&&p===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"&&Q(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:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=pe}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&&me(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 J({layer:a,config:r,commonStrings:this.commonStrings});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=>!K(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=n.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=W({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:l.getLogarithmic()}),u=$.chartAxesBoundDataMap;u[this.selectedChartId]===void 0&&(u[this.selectedChartId]={});let p=u[this.selectedChartId]?.[g],b={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?a:p?.defaultMaxBound,currMaxBound:a};!S(p,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=>T(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(x(a)&&t){let r=this.layerList.find(l=>l.id===t);x(r?.type)&&(s=!!(await Z(r))?.attributeTable)}this.setupSelectChartTypePopover(i,t,a,s)}setupSelectChartTypePopover(e,i,t,a=!0){let s=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=M(c`<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=se(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=M(c`<calcite-tooltip style=${z({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){te(this.tooltip)}renderViewCharts(){let e=ce({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ie(e,i=>i.id,i=>c`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${ne(this.modelList,i.id.toString(),x(i.type)?G: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:c`<calcite-flow>${k("charts-list",c`<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",c`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??n.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?c`<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===n.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=n.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?c`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.LineSeries?c`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?c`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===n.Slices} @click=${()=>{this.selectedPanel=n.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===n.Axes} @click=${()=>{this.selectedPanel=n.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===n.Guides} @click=${()=>{this.selectedPanel=n.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===n.Format} @click=${()=>{this.selectedPanel=n.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===n.General} @click=${()=>{this.selectedPanel=n.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=c`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=c`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=c`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .chartData=${this.chartData} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=c`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=c`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=c`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=c`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data}></arcgis-charts-config-heat-chart>`;break}return t}};U("arcgis-charts-config-create-flow",F);return F},"intl",a,b,d,e,g,i,j,l,m,p,q,r,s,t,u)
|