@arcgis/charts-components 5.2.0-next.5 → 5.2.0-next.7
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/{UT6G7RV7.js → 24RLLXS6.js} +1 -1
- package/dist/cdn/{5XTB2INB.js → 2N4MK6FQ.js} +1 -1
- package/dist/cdn/{NMB6TWC2.js → 32FR66QO.js} +1 -1
- package/dist/cdn/{CXQOEN77.js → 3EIVHDDK.js} +1 -1
- package/dist/cdn/{NJCZ6UTM.js → 3NUNWPAR.js} +1 -1
- package/dist/cdn/{KLC6NTPC.js → 43ZHPVBB.js} +1 -1
- package/dist/cdn/{64ZMYZ2S.js → 4LPXOEML.js} +1 -1
- package/dist/cdn/{3DK6M5E7.js → 6AF2OTL6.js} +1 -1
- package/dist/cdn/{G7TRU7JI.js → 6CFIKYKR.js} +1 -1
- package/dist/cdn/{PK5XIIZY.js → 6GLTSMOR.js} +1 -1
- package/dist/cdn/{7CN6J33C.js → 7EMCHGGV.js} +1 -1
- package/dist/cdn/{PVJEBBA7.js → 7HGVEE7A.js} +1 -1
- package/dist/cdn/{PC7IKOIB.js → 7OF2IANH.js} +1 -1
- package/dist/cdn/{PJUAU42S.js → 7VN3A7S2.js} +1 -1
- package/dist/cdn/{MF3FGXHI.js → 7YWZG3ZS.js} +1 -1
- package/dist/cdn/{LRNADJJG.js → ADGMA3ST.js} +1 -1
- package/dist/cdn/{NQQW4GKA.js → ADPDJISV.js} +1 -1
- package/dist/cdn/{F7Y6EWWB.js → B4KAJRUJ.js} +1 -1
- package/dist/cdn/{TZB57XD4.js → BBUPTHPL.js} +1 -1
- package/dist/cdn/{R45FWF7D.js → BO62KSB5.js} +1 -1
- package/dist/cdn/{TYMKFCF4.js → C2FOUUEM.js} +1 -1
- package/dist/cdn/{G5HVFOIO.js → CVU3UPPF.js} +1 -1
- package/dist/cdn/{TXSWWAOF.js → CZ5XRXCE.js} +1 -1
- package/dist/cdn/{IUFXFWXH.js → D73VV2AZ.js} +1 -1
- package/dist/cdn/{A5YDJIMZ.js → DAB5R2BN.js} +1 -1
- package/dist/cdn/{23YH7MTF.js → DJACBOFO.js} +1 -1
- package/dist/cdn/{NNNTZU5J.js → DPNTYHTH.js} +1 -1
- package/dist/cdn/{SVLEJ3HK.js → DZ72EIRH.js} +1 -1
- package/dist/cdn/{LONASKGH.js → EGISZTGB.js} +1 -1
- package/dist/cdn/{E43KEVHT.js → EP34TF4L.js} +1 -1
- package/dist/cdn/{DYC3Q36R.js → EZD3FBJU.js} +1 -1
- package/dist/cdn/{MUPHTV55.js → G72TNKCS.js} +1 -1
- package/dist/cdn/{U4XLNCOU.js → GDQBQQUP.js} +1 -1
- package/dist/cdn/{5QO32XSX.js → GQ5QBLRO.js} +1 -1
- package/dist/cdn/{N5ERJZPG.js → HWJGWDU3.js} +1 -1
- package/dist/cdn/{EXTKNE2L.js → HZR4NSZV.js} +1 -1
- package/dist/cdn/{NPXBPNXE.js → ICFKKJWQ.js} +1 -1
- package/dist/cdn/{GL3IXVRN.js → IWX5L226.js} +1 -1
- package/dist/cdn/{YF7MNTCU.js → J6WQX4UD.js} +19 -19
- package/dist/cdn/{7HIZH35G.js → JNG6V7XC.js} +1 -1
- package/dist/cdn/{VDG54AIC.js → JRHMUFED.js} +1 -1
- package/dist/cdn/{VVKV5KKN.js → JS2KOBA2.js} +1 -1
- package/dist/cdn/{CRFJ2GGS.js → JTTJ455Y.js} +1 -1
- package/dist/cdn/{JVHJMPFE.js → JWO5WVTZ.js} +1 -1
- package/dist/cdn/{PY5Q3V6E.js → K4WI2SGM.js} +1 -1
- package/dist/cdn/{7ABIELGZ.js → KCMZSNBL.js} +1 -1
- package/dist/cdn/{2K4ODNJ4.js → KLHZFPYK.js} +1 -1
- package/dist/cdn/{RMYZGOBM.js → KO7HQLGV.js} +1 -1
- package/dist/cdn/{GLJWUZHK.js → L5AQ4I5T.js} +1 -1
- package/dist/cdn/{TAI4RIWT.js → LC6CY2HW.js} +1 -1
- package/dist/cdn/{KVGEY3IQ.js → MBVTB42G.js} +1 -1
- package/dist/cdn/{26FWESH3.js → MGEW6X3Y.js} +1 -1
- package/dist/cdn/{CJ4POAPM.js → ML3A3MYV.js} +1 -1
- package/dist/cdn/{WEQBZOH7.js → MVHQR4FJ.js} +1 -1
- package/dist/cdn/{YRBE7MBU.js → NSOZIR5F.js} +1 -1
- package/dist/cdn/{LWODMEOP.js → NTSTL3FK.js} +1 -1
- package/dist/cdn/{VEA5ZR5D.js → O5A25X5K.js} +1 -1
- package/dist/cdn/{HCMD362H.js → OAAJ6CIN.js} +1 -1
- package/dist/cdn/{KOBNV5AQ.js → OGYY2Y22.js} +1 -1
- package/dist/cdn/{K5MXTTSL.js → OHF3AEWY.js} +1 -1
- package/dist/cdn/{JHYH555K.js → PRGFNLY7.js} +1 -1
- package/dist/cdn/{KI4HS3AM.js → PROSIXIF.js} +1 -1
- package/dist/cdn/{PZGIXDMC.js → Q5JDSPJA.js} +1 -1
- package/dist/cdn/{FDXE5JLT.js → QFEZPP3R.js} +1 -1
- package/dist/cdn/{74JAZF7U.js → QJC3FDWG.js} +1 -1
- package/dist/cdn/{Z2CVF7CH.js → QRLILSSI.js} +1 -1
- package/dist/cdn/{3YT44D4Z.js → QY53LXP2.js} +1 -1
- package/dist/cdn/{TNB3MBXR.js → R75MHIRF.js} +1 -1
- package/dist/cdn/{CCR46UHB.js → RDA5NV6M.js} +1 -1
- package/dist/cdn/{3XHZ677O.js → RG3DO2OE.js} +1 -1
- package/dist/cdn/{UAJGYF4S.js → RPNZL6AC.js} +1 -1
- package/dist/cdn/{P2NPQAJ3.js → S32NLOJ5.js} +1 -1
- package/dist/cdn/{5G7DSKI7.js → S5UDCCRH.js} +1 -1
- package/dist/cdn/{PSO5AURI.js → SCAZDS2G.js} +1 -1
- package/dist/cdn/{YRFZPSCC.js → SJGYHEMZ.js} +1 -1
- package/dist/cdn/{HCV34H6X.js → TCTQ4LMU.js} +1 -1
- package/dist/cdn/{NGPMU4T3.js → TDHHWIIC.js} +1 -1
- package/dist/cdn/{ZRZEKOEF.js → TJMPLGQI.js} +1 -1
- package/dist/cdn/TJMTF45U.js +3 -0
- package/dist/cdn/{U2LJZ4ML.js → TW5DX7YP.js} +1 -1
- package/dist/cdn/{5JML3JUR.js → UZEMSOA2.js} +1 -1
- package/dist/cdn/{LDPHZHSF.js → VBHQFV2H.js} +1 -1
- package/dist/cdn/{LZYN55O4.js → VFREVEVA.js} +1 -1
- package/dist/cdn/{LYZGRYQV.js → VZTLODMQ.js} +1 -1
- package/dist/cdn/WGYJBMRM.js +4 -0
- package/dist/cdn/{RFQBUWOW.js → XCUXUZXY.js} +1 -1
- package/dist/cdn/{RAQZUMC6.js → XG3WW5GG.js} +1 -1
- package/dist/cdn/{NS3THLCD.js → YEZL5KRS.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -0
- package/dist/chunks/index2.js +1398 -1394
- package/dist/chunks/index3.js +12 -11
- package/dist/chunks/web-component-utils.js +557 -468
- package/dist/components/arcgis-chart/customElement.js +432 -436
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +2 -2
- package/package.json +6 -6
- package/dist/cdn/5FMEOIBS.js +0 -3
- package/dist/cdn/OLV642SY.js +0 -4
package/dist/cdn/OLV642SY.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{i as ye}from"./IVLVCLDE.js";import{c as R}from"./AK7X7SGI.js";import g from"./RMYZGOBM.js";import f from"./FDXE5JLT.js";import e from"./TAI4RIWT.js";import d from"./5XTB2INB.js";import c from"./MF3FGXHI.js";import b from"./2K4ODNJ4.js";import a from"./5FMEOIBS.js";import{c as O,d as m,r as $}from"./LRNADJJG.js";import{Ba as re,Ca as j,Ea as h,Fa as ie,p as C,q as N}from"./PAIRUVLU.js";import{a as oe}from"./KX7KGXKQ.js";import{e as p,l as te,m as T,s as Z}from"./SP2IPHWF.js";import{e as z}from"./QP5UAIC6.js";import{a as ae}from"./XJFVSX2E.js";import{a as B,l as D}from"./547RDEMV.js";export default $arcgis.t(([{B:S,J:le,T:M,ec:V,ob:ne,qb:se},{c:G},{f:ue,g:U},{ka:K,la:be,ma:Q},{k:Y,l:E,m:J,x:fe},{b:ce},{a:me,c:de,d:ge}])=>{function Le(l){let{hour:e,minute:t=0,format:i,locale:r="en-US"}=l,o=i&&Object.keys(i).length>0?i:{hour:"numeric",minute:"2-digit",hour12:!1},a=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let u=new Date(2e3,0,1,e,t);a=new Intl.DateTimeFormat(r,o).format(u),a.includes(":")||a.startsWith("0")&&(a=a.slice(1))}return a}function ve(l){let{weekdayNumber:e,format:t,locale:i="en-US",firstDayOfWeek:r=7}=l,o=t&&Object.keys(t).length>0?t:{weekday:"long"},a=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(r)&&r>0&&r<=7){let u=(e+r-1)%7,f=new Date(2e3,0,2+u);a=new Intl.DateTimeFormat(i,o).format(f)}return a}function Ae(l){let{monthNumber:e,format:t,locale:i="en-US"}=l,r=t&&Object.keys(t).length>0?t:{month:"long"},o=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let a=new Date(2e3,e-1);o=new Intl.DateTimeFormat(i,r).format(a)}return o}function xe(l){let{value:e,formatLocale:t,unit:i,config:r,utilsStrings:o}=l,a={label:"",value:e.toString()};switch(i){case D.DayOfWeek:a={label:o.heatChartCalendarDatePartsUnits.dayOfWeek,value:ve({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in r?r.firstDayOfWeek:ie,locale:t})};break;case D.MonthOfYear:a={label:o.heatChartCalendarDatePartsUnits.monthOfYear,value:Ae({monthNumber:e,locale:t})};break;case D.HourOfDay:a={label:o.heatChartCalendarDatePartsUnits.hourOfDay,value:Le({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case D.DayOfMonth:a={label:o.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case D.DayOfYear:a={label:o.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.MinuteOfDay:a={label:o.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case D.WeekOfYear:a={label:o.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.QuarterOfYear:a={label:o.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return a}function Se(l,e){return!te(l,e)}function Qe(l,e){return Se(l,e)||l!==e}function Pe(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function De(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var pe=l=>{let{value:e,quoteAll:t=!1,locale:i,roundDecimals:r}=l,o=e==null?"":String(e);if(e===null)o="null";else if(e===void 0)o="";else if(typeof e=="number"&&Number.isFinite(e)&&i!==void 0){let a=De(i),u=r??o.split(a)[1]?.length??2;o=new Intl.NumberFormat(i,{maximumFractionDigits:u}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(o))&&(o=`"${o.replace(/"/gu,'""')}"`),o};function Xe(l,e={}){let{columns:t,delimiter:i,includeHeader:r=!0,quoteAll:o=!1,locale:a,roundDecimals:u}=e,f=l.length===0,n="";if(!f){let w=t??Object.keys(l[0]),F=[],x=i??Pe(a??"en");if(a!==void 0&&x!==","&&(n+=`sep=${x}\r
|
|
3
|
-
`),r){let g=w.map(s=>pe({value:s,quoteAll:o,locale:a,roundDecimals:u}));F.push(g.join(x))}l.forEach(g=>{let s=w.map(c=>pe({value:g[c],quoteAll:o,locale:a,roundDecimals:u}));F.push(s.join(x))}),n+=F.join(`\r
|
|
4
|
-
`)}return n}function et(l){let{rawData:e,config:t,layer:i,fieldList:r,formatters:o,formatLocale:a,utilsStrings:u}=l,f=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let n=ae(t?.series);n===B.HistogramSeries?f=Oe(t,e,o):n===B.HeatSeries?f=he({config:t,rows:e,layer:i,fieldList:r,formatLocale:a,utilsStrings:u}):n===B.BarSeries||n===B.LineSeries||n===B.ComboLineAndBarSeries?f=Ce({config:t,rows:e,layer:i,fieldList:r,formatters:o}):n===B.PieSeries?f=Me({config:t,rows:e,layer:i,fieldList:r,formatters:o}):n===B.BoxPlotSeries&&(f=Ie({config:t,rows:e,fieldList:r,formatters:o}))}return f}function v(l){let{value:e,originalValue:t,formatter:i}=l,r=e;return i!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(r=i(e,t)),r}function k(l){let{field:e,row:t,fieldList:i,formatter:r}=l,o=Object.keys(t).find(f=>f.toLocaleLowerCase()===e.toLocaleLowerCase()),a=t[o??e],u;return a==null||typeof a=="boolean"||Array.isArray(a)?u=a:typeof a=="string"||typeof a=="number"||a instanceof Date?u=we({field:e,value:a,fieldList:i}):u=a,v({value:u,originalValue:a,formatter:r})}function X(l){let{config:e,seriesIndex:t,formatters:i}=l;return e.series?.[t]?.assignToSecondValueAxis===!0?i?.secondaryYAxisLabelFormatter:i?.yAxisLabelFormatter}function Be(l){let{config:e,splitValueIndex:t,formatters:i}=l;return e?.series?.[t]?.assignToSecondValueAxis===!0?i?.secondaryYAxisLabelFormatter:i?.yAxisLabelFormatter}function he(l){let{config:e,rows:t,layer:i,fieldList:r,formatLocale:o,utilsStrings:a}=l,[u]=e.series,f=u.x,n=K(e),w=Q(e),F=U({config:e,xAxisField:f,numericFields:w,aggregationType:n,layer:i,fieldList:r});return t.map(x=>{let g=x[N.xField],s=x[N.yField],c=x[N.valueField],d=typeof c=="number"&&Number.isFinite(c)?c.toFixed(2):c,b={label:u.x,value:g},y={label:u.y,value:s};if(u.xTemporalBinning!==void 0){let{label:L,value:A}=xe({value:Number(g),config:e,formatLocale:o,unit:u.xTemporalBinning.unit,utilsStrings:a});!$(L)&&!$(A)&&(b={label:L,value:A})}if(u.yTemporalBinning!==void 0){let{label:L,value:A}=xe({value:Number(s),config:e,formatLocale:o,unit:u.yTemporalBinning.unit,utilsStrings:a});!$(L)&&!$(A)&&(y={label:L,value:A})}return{[b.label]:b.value,[y.label]:y.value,[F.description]:d}})}function Oe(l,e,t){let i=ce(l),r=`${p(R.Min)} of ${i}`,o=`${p(R.Max)} of ${i}`,a=`${p(R.Count)} of ${i}`;return e.map(u=>{let{minValue:f,maxValue:n,count:w}=u,F=T(f),x=T(n),g=T(w),s={};if(F&&(s[r]=v({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter})),x&&(s[o]=v({value:n,originalValue:n,formatter:t?.xAxisLabelFormatter})),F&&x){let c=v({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter}),d=v({value:n,originalValue:n,formatter:t?.xAxisLabelFormatter});s.Label=`${String(c??"")} - ${String(d??"")}`}return g&&(s[a]=v({value:w,originalValue:w,formatter:t?.yAxisLabelFormatter})),s})}function ke(l,e,t){let i=Object.keys(l),r=[];return t?r=t.map(o=>i.find(a=>a.toLowerCase().includes(o.toLowerCase()))||""):r=i.filter(o=>o.toLowerCase().includes(e.toLowerCase())),r.filter(o=>o.trim()!=="")}function Ce(l){let{config:e,rows:t,layer:i,fieldList:r,formatters:o}=l,a=ue(e),u=K(e),f=p(u),n=Q(e),w=M(e.series),F=G(e),x=be(e),{idField:g,isTraditionalTypeOID:s}=ne(le(i)),c=s&&n.length===1&&n[0]===g,d;switch(w){case m.BarAndLineNoAggregation:d=t.map(b=>{let y=k({field:a,row:b,fieldList:r,formatter:o?.xAxisLabelFormatter}),L={[a]:y};return Object.assign(L,...n.map((A,P)=>({[A]:v({value:b[A],originalValue:b[A],formatter:X({config:e,seriesIndex:P,formatters:o})})}))),L});break;case m.BarAndLineFromFields:d=Z(n,t).map(([b,y])=>{let L=V(e.series)[0],A={};return y!==void 0&&b!==void 0&&(A.Field=v({value:y[a],originalValue:y[a],formatter:o?.xAxisLabelFormatter}),A.Value=v({value:y[L],originalValue:y[L],formatter:X({config:e,seriesIndex:0,formatters:o})})),A});break;case m.BarAndLineMonoField:case m.BarAndLineMultiFields:d=t.map(b=>{let y=k({field:a,row:b,fieldList:r,formatter:o?.xAxisLabelFormatter}),L={[a]:y};return n.forEach((A,P)=>{let W=U({config:e,xAxisField:a,numericFields:n,aggregationType:u,layer:i,numericFieldIndex:P,fieldList:r}),q=V(e.series)[P],ee=q,H=q;q.toLowerCase()===W.name.toLowerCase()&&(ee=W.description,H=W.name),L[ee]=v({value:b[H],originalValue:b[H],formatter:X({config:e,seriesIndex:P,formatters:o})})}),L});break;case m.BarAndLineSplitBy:d=t.flatMap(b=>{let y=V(e.series),L=k({field:a,row:b,fieldList:r,formatter:o?.xAxisLabelFormatter});return F.map((A,P)=>({[a]:L,[x]:A,[c?f:`${f} of ${n[0]}`]:v({value:b[y[P]],originalValue:b[y[P]],formatter:Be({config:e,splitValueIndex:P,formatters:o})})}))});break;case m.BarAndLineSplitByNoAggregation:d=t.map(b=>{let y=k({field:a,row:b,fieldList:r,formatter:o?.xAxisLabelFormatter}),L=ke(b,n[0],F);return{[a]:y,[x]:b[x],[n[0]]:v({value:b[L[0]],originalValue:b[L[0]],formatter:o?.yAxisLabelFormatter})}});break;default:d=t}return d}function $e(l){if(l.length===0)return[];let e=l.reduce((t,i)=>{for(let[r,o]of Object.entries(i))typeof o=="number"&&Number.isFinite(o)&&(t[r]=(t[r]??0)+o);return t},{});return l.map(t=>{let i={...t};for(let[r,o]of Object.entries(t))if(typeof o=="number"&&e[r]>0){let a=o/e[r];i[`${r}${h}`]=a.toPrecision(2)}return i})}function Me(l){let{config:e,rows:t,layer:i,fieldList:r,formatters:o}=l,a=me(e),u=M(e.series),f=$e(t),n=de(e),w=u!==m.PieFromFields?z.Category:z.Fields,F=ge(e,w),x=U({config:e,xAxisField:a,numericFields:n,aggregationType:F,mode:w,layer:i,fieldList:r}),g=V(e.series)[0];return u===m.PieFromCategory||u===m.PieNoAggregation?f=f.map(s=>{let c=k({field:a,row:s,fieldList:r,formatter:o?.xAxisLabelFormatter}),d={[a]:c},b=g,y=g;return u===m.PieFromCategory&&g.toLowerCase()===x.name.toLowerCase()&&(b=x.description,y=x.name),d[b]=v({value:s[y],originalValue:s[y],formatter:o?.yAxisLabelFormatter}),d[p(h.trim())]=v({value:s[`${y}${h}`],originalValue:s[`${y}${h}`],formatter:o?.yAxisLabelFormatter}),d}):u===m.PieFromFields&&(f=Z(n,f).map(([s,c])=>{let d={};return c!==void 0&&s!==void 0&&(d.Field=v({value:c[a],originalValue:c[a],formatter:o?.xAxisLabelFormatter}),d.Value=v({value:c[g],originalValue:c[g],formatter:o?.yAxisLabelFormatter}),d[p(h.trim())]=v({value:c[`${g}${h}`],originalValue:c[`${g}${h}`],formatter:o?.yAxisLabelFormatter})),d})),f}function _(l){let{rawData:e,keyBase:t="",outRow:i}=l;for(let[r,o]of Object.entries(S)){let a=e[t+o];a!==void 0&&(i[r]=a);let u=e[t+o+re];u!==void 0&&(i[`${r} Outlier`]=u);let f=e[t+o+j];f!==void 0&&(i[`${r} Z-Score`]=f)}}function I(l){let{rawData:e,outRow:t,config:i,boxPlotSubType:r,fieldList:o}=l,a=Y(i),u=J(i),f=E(i),n=S.Outlier,w=C;switch(r){case m.BoxPlotMonoFieldAndCategory:{let g=we({field:a,value:e[a],fieldList:o});t[a]=g,t[p(S.Outlier)]=e[n];break}case m.BoxPlotMultiFieldsAndCategory:{t[p(a)]=e[a],n=`${u.find(g=>Object.keys(e).some(s=>s.toLowerCase().includes(g.toLowerCase())))??""}_${n}`,t[p(S.Outlier)]=e[n];break}case m.BoxPlotMonoFieldAndSplitBy:case m.BoxPlotMultiFieldsAndSplitBy:{let g=String(e[f]);n=`${g}_${n}`,t.Field=e[w],t[p(f)]=g,t[p(S.Outlier)]=e[n];break}case m.BoxPlotMonoFieldAndCategoryAndSplitBy:{let g=String(e[f]);n=`${g}_${n}`,t[p(a)]=e[a],t[p(f)]=g,t[p(S.Outlier)]=e[n];break}case m.BoxPlotMonoField:case m.BoxPlotMultiFields:default:{t.Field=e[w],t[p(S.Outlier)]=e[n];break}}let F=`${n}${j}`,x=e[F];x!==void 0&&(t[`${p(S.Outlier)} Z-Score`]=x)}function Ve(l){let{rawData:e,outRow:t,config:i,splitByValue:r}=l,o=M(i.series),a=e[`${r}_${S.Average}`],u=E(i),f=Y(i),n="";switch(o){case m.BoxPlotMonoFieldAndSplitBy:{n=`${r}_${u}`,t.Field=e[C],t[p(u)]=e[n];break}case m.BoxPlotMultiFieldsAndSplitBy:{n=`${r}_${S.Average}`,t.Field=e[C],t[p(u)]=e[n];break}case m.BoxPlotMonoFieldAndCategoryAndSplitBy:{n=`${r}_${S.Average}`,t[f]=e[f],t[p(u)]=r;break}}t[p(S.Average)]=a;let w=`${String(a)}${j}`,F=e[w];F!==void 0&&(t[`${p(S.Average)} Z-Score`]=F)}function Ie(l){let{config:e,rows:t,fieldList:i,formatters:r}=l,o=M(e.series),a=o,u=fe(e),f=Array.isArray(t)&&t.length>0&&t.every(s=>s[O.boxPlot.boxPlotMeanLineMarkerId]!==void 0);u&&!f&&(o===m.BoxPlotMonoFieldAndSplitBy?a=m.BoxPlotMonoField:o===m.BoxPlotMultiFieldsAndSplitBy?a=m.BoxPlotMultiFields:o===m.BoxPlotMonoFieldAndCategoryAndSplitBy&&(a=m.BoxPlotMonoFieldAndCategory));let n=Y(e),w=J(e),F=G(e),x=E(e),g;switch(a){case m.BoxPlotMonoField:case m.BoxPlotMonoFieldAndCategory:{g=t.map(s=>{let c={};if(s[O.boxPlot.boxPlotOutlierId])I({rawData:s,outRow:c,config:e,boxPlotSubType:a});else{if(a===m.BoxPlotMonoFieldAndCategory){let d=k({field:n,row:s,fieldList:i,formatter:r?.xAxisLabelFormatter});c[n]=d}else a===m.BoxPlotMonoField&&(c.Field=s[C]);_({rawData:s,outRow:c})}return c});break}case m.BoxPlotMultiFields:{g=t.flatMap(s=>{let c={};return s[O.boxPlot.boxPlotOutlierId]?I({rawData:s,outRow:c,config:e,boxPlotSubType:a}):(c.Field=s[C],_({rawData:s,outRow:c})),[c]});break}case m.BoxPlotMultiFieldsAndCategory:{g=t.flatMap(s=>w.map(c=>{let d={},b="";if(d.Field=c,s[O.boxPlot.boxPlotOutlierId])I({rawData:s,outRow:d,config:e,boxPlotSubType:a});else{if(a===m.BoxPlotMultiFieldsAndCategory){let y=k({field:n,row:s,fieldList:i,formatter:r?.xAxisLabelFormatter});d[n]=y,b=`${c}_`}_({rawData:s,outRow:d,keyBase:b})}return d}));break}case m.BoxPlotMonoFieldAndSplitBy:case m.BoxPlotMultiFieldsAndSplitBy:case m.BoxPlotMonoFieldAndCategoryAndSplitBy:{g=t.flatMap(s=>{if(s[O.boxPlot.boxPlotOutlierId]){let c={};return I({rawData:s,outRow:c,config:e,boxPlotSubType:a}),[c]}else return s[O.boxPlot.boxPlotMeanLineMarkerId]?F?.map(c=>{let d={};return Ve({rawData:s,outRow:d,splitByValue:c,config:e}),d}):F.map(c=>{let d={};if(a===m.BoxPlotMonoFieldAndCategoryAndSplitBy){let b=k({field:n,row:s,fieldList:i,formatter:r?.xAxisLabelFormatter});d[n]=b}return s[O.boxPlot.boxPlotOutlierId]?I({rawData:s,outRow:d,config:e,boxPlotSubType:a}):(d[x]=c,_({rawData:s,outRow:d,keyBase:`${c}_`})),d})});break}default:g=t}return g}var Fe=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},we=l=>{let{field:e,value:t,fieldList:i}=l,r=t,o=i?.find(a=>a.name===e);if(o){let a=o.type===oe.DateOnly;se(o)&&!a?r=Fe(t)?new Date(t).toISOString():t:a&&typeof t!="string"&&(r=Fe(t)?new Date(t).toISOString().split("T")[0]:t)}return r};function tt(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:i,syncViewTimeExtent:r}=l,o=e;return t&&(i===ye.Refresh||r)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(o={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),o}return{a:Le,b:ve,c:Ae,d:xe,e:Se,f:Qe,g:Xe,h:et,i:tt}},a,b,c,d,e,f,g)
|