@arcgis/charts-components 6.0.0-next.4 → 6.0.0-next.6
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/{ZDQWMMOA.js → 2CUBWUT6.js} +1 -1
- package/dist/cdn/{LXFY54NF.js → 2NTEIXDC.js} +1 -1
- package/dist/cdn/{OQKL344Q.js → 3BLCT5B3.js} +1 -1
- package/dist/cdn/{NIZC75X3.js → 3KVXZ4Q7.js} +1 -1
- package/dist/cdn/{EPFEFHM2.js → 3R5OPVW7.js} +1 -1
- package/dist/cdn/{3RJNZA24.js → 3TPIZXLQ.js} +1 -1
- package/dist/cdn/{LPLMRI3E.js → 4YPBPYT2.js} +1 -1
- package/dist/cdn/{GEPIPU4G.js → 5BFSYCQN.js} +1 -1
- package/dist/cdn/{CUMXC4O4.js → 5BMOVHD7.js} +1 -1
- package/dist/cdn/{2X2QOEKX.js → 5ORGE6FR.js} +1 -1
- package/dist/cdn/{CLCHZMZ5.js → 5S3M57QS.js} +1 -1
- package/dist/cdn/{L5MTHGFZ.js → 6IODKSGJ.js} +1 -1
- package/dist/cdn/{NGBBNBA7.js → 6KYES23V.js} +1 -1
- package/dist/cdn/{QPVBVDRP.js → 6MQWBIAC.js} +1 -1
- package/dist/cdn/{HMZRDWG2.js → 6T5V66TB.js} +8 -8
- package/dist/cdn/{5DAVFUDX.js → 6UY62IZQ.js} +1 -1
- package/dist/cdn/{DTSX7SEI.js → 7IGL5XAY.js} +1 -1
- package/dist/cdn/{KJNBURYA.js → 7ZM3ISL6.js} +1 -1
- package/dist/cdn/{AHB4IS7P.js → A5YDIX7U.js} +1 -1
- package/dist/cdn/{ZFHMGE36.js → AGKAJN2K.js} +1 -1
- package/dist/cdn/{TSASF4ZC.js → ASCE4YBS.js} +1 -1
- package/dist/cdn/{4CU5D5WQ.js → BAYPYA6T.js} +1 -1
- package/dist/cdn/{23NH4HLE.js → BENXDFDK.js} +1 -1
- package/dist/cdn/{QOENPUSD.js → BG2GEL6V.js} +1 -1
- package/dist/cdn/{5VCTFSTZ.js → BZ4HWKAF.js} +1 -1
- package/dist/cdn/{XPCXTKEY.js → CIZUS2EL.js} +1 -1
- package/dist/cdn/{TCE6PLHN.js → DLMKQ6I2.js} +1 -1
- package/dist/cdn/{YGLBPPXP.js → DOC3MQJC.js} +1 -1
- package/dist/cdn/{3INTJJ4X.js → ECONXQCG.js} +1 -1
- package/dist/cdn/{2DRKIHTI.js → EJ2FAXEX.js} +1 -1
- package/dist/cdn/{732AMNPK.js → EKPT25EF.js} +1 -1
- package/dist/cdn/{4WQUPC2P.js → EOAQOIWV.js} +1 -1
- package/dist/cdn/{ISSUAEJS.js → FHTWTEA4.js} +1 -1
- package/dist/cdn/{PT66VVXN.js → FN5XFRQS.js} +1 -1
- package/dist/cdn/{EW2P4QSN.js → G2DJJIGO.js} +1 -1
- package/dist/cdn/{UZOYADSB.js → HBFEI43W.js} +1 -1
- package/dist/cdn/{ZMVIOIBB.js → HFQGFEEC.js} +1 -1
- package/dist/cdn/{RGMPFNUN.js → HNVWY4XA.js} +1 -1
- package/dist/cdn/{B6ADEFC7.js → HRGA4VCV.js} +1 -1
- package/dist/cdn/{7WD2VKG4.js → HSSNNVVK.js} +1 -1
- package/dist/cdn/{RXTO6RE2.js → I64VVDLI.js} +1 -1
- package/dist/cdn/{D2LNPCIA.js → IUM6GDBZ.js} +1 -1
- package/dist/cdn/{6RGTAMGU.js → J6KIUQWW.js} +1 -1
- package/dist/cdn/{MJUCIYQN.js → JDN6OXCC.js} +1 -1
- package/dist/cdn/{A2BFOCSN.js → KHHQ3O5Q.js} +1 -1
- package/dist/cdn/{2RG5JCBW.js → LIHIBT2F.js} +1 -1
- package/dist/cdn/{WAQJ7V62.js → LLGBFUAJ.js} +1 -1
- package/dist/cdn/{5XGX5QH2.js → LRAKZMK6.js} +1 -1
- package/dist/cdn/{SCEFJRON.js → LV6XVOC5.js} +1 -1
- package/dist/cdn/{A5TI5TEO.js → M5M3RE6W.js} +1 -1
- package/dist/cdn/{D6WQTOUC.js → NEHAS4YX.js} +1 -1
- package/dist/cdn/{GDJDA5MG.js → OFJLWSKN.js} +1 -1
- package/dist/cdn/{L3AKSDIB.js → OMR65IIM.js} +1 -1
- package/dist/cdn/{OBKDR3MU.js → OP3AF4WI.js} +1 -1
- package/dist/cdn/{ZTHSDPEH.js → PR3CHNEH.js} +1 -1
- package/dist/cdn/{W53DMMGZ.js → PTBNT4NV.js} +1 -1
- package/dist/cdn/{CFACTMRG.js → PWDBJLTW.js} +1 -1
- package/dist/cdn/{YYTAWATK.js → Q2QELGQX.js} +1 -1
- package/dist/cdn/{7YN565O4.js → Q4I6HPPG.js} +1 -1
- package/dist/cdn/{ZGNJFT7B.js → QJL6FNQQ.js} +1 -1
- package/dist/cdn/QMKBTPPL.js +2 -0
- package/dist/cdn/{YWUNLBCQ.js → SEK42UT2.js} +1 -1
- package/dist/cdn/{BWZA3447.js → SJPUWCSQ.js} +1 -1
- package/dist/cdn/{V5Z75IQI.js → SP2OUJAE.js} +1 -1
- package/dist/cdn/{BDIRQUQE.js → SPRQ2OBE.js} +1 -1
- package/dist/cdn/{6XH6ZRHO.js → TT6IHBTH.js} +1 -1
- package/dist/cdn/{S2BGEXZV.js → U7PBBWGS.js} +1 -1
- package/dist/cdn/{RGSJ3JFI.js → ULRG7JME.js} +1 -1
- package/dist/cdn/{37WXQO5B.js → UMOEONXM.js} +1 -1
- package/dist/cdn/{RVHNFMTN.js → UYCPYSQI.js} +1 -1
- package/dist/cdn/{Y2S7EWZR.js → WBZEARYO.js} +1 -1
- package/dist/cdn/{GXYGXB4U.js → WFAHWPGT.js} +1 -1
- package/dist/cdn/{BZTSUXUT.js → WID7G6E7.js} +1 -1
- package/dist/cdn/{PQ3XCNCP.js → WWMDDOKW.js} +1 -1
- package/dist/cdn/{RVQPEB4W.js → XFFDNZIQ.js} +1 -1
- package/dist/cdn/{UDAJILEU.js → YF7BOK2T.js} +1 -1
- package/dist/cdn/{WEPXOYBS.js → ZCC7V2A2.js} +1 -1
- package/dist/cdn/{SEILP6QP.js → ZI7QPEAF.js} +1 -1
- package/dist/cdn/{LHLPK6TU.js → ZM5C3KIP.js} +1 -1
- package/dist/cdn/{GE7CLC6K.js → ZMBD4NTY.js} +1 -1
- package/dist/cdn/{W2PTHYOT.js → ZN7A4NI2.js} +1 -1
- package/dist/cdn/{TOCU6UKM.js → ZQAM5BZI.js} +1 -1
- package/dist/cdn/{SSEWUPML.js → ZYYBMTVE.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index.js +8 -8
- package/dist/components/arcgis-chart/customElement.js +1867 -1928
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +21 -17
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/cdn/WLPUBXN7.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./LIHIBT2F.js";import{e as b}from"./SKI5Z6UH.js";import{C as J,j as H,n as F,r as D}from"./B6APNE72.js";import{Aa as U,G as P,I as T,K as $,_ as E,c as M,ya as R}from"./27C6PCQ2.js";import{a as S}from"./AUKJ4CBR.js";import{a as n,b as p,f as k,h as V}from"./BNAX4Y53.js";export default $arcgis.t(([{substitute:z},{B:I,Kb:O,Wb:C,bc:K,cc:A,ha:N,wc:Y,za:L}])=>{var ge=t=>{let{config:e,axisIndex:i,callback:a}=t;[i!==void 0?e.axes?.[i]:e.axes].flat().forEach((s,r)=>{s!==void 0&&a(s,i!==void 0?i:r)})},fe=t=>{let{config:e,axisIndex:i,callback:a}=t;[i!==void 0?e.axes?.[i]:e.axes].flat().forEach(s=>{s!==void 0&&L(s.valueFormat)&&a(s)})};function xe(t,e,i){let a=t?.axes?.[e];a?.title!==void 0?a.title.content.text=i:a!==void 0&&(a.title=T({text:i,visible:!0,font:P(M.AxisTitle)}))}function de(t){let{config:e,layerInfo:i,commonStrings:a,numericFields:s,aggregationType:r}=t,o="";if(e)if(H(e)===k.Stacked100)o=a.utilsStrings.statistics.percent;else{let l=U(r,a);if(e.series[0]?.type===n.HeatSeries)o=F(i.layerFieldsInfo,e.series[0].y);else if(s.length===1){let f=F(i.layerFieldsInfo,s[0]),x=C(i.layer).idField;r===p.NoAggregation?o=f:r===p.Count&&x!==void 0&&s[0]===x?o=a.utilsStrings.statistics.count:o=z(a.axisLabels.aggregationOfFieldName,{aggregation:l,fieldName:f})}else s.length>1&&(r===p.NoAggregation?o=a.axisLabels.values:o=z(a.axisLabels.aggregationOfValues,{aggregation:l}))}return o}var W=(t,e,i)=>t.axes?.[e]??E(i,t.type)[e],X=t=>{let{config:e,axis:i,axisIndex:a}=t;e.axes!==void 0&&(e.axes[a]=i)},ue=t=>{let{config:e,axisIndex:i,isMax:a}=t,s=Number.NaN;return a?s=e.axes?.[i]?.maximum:s=e.axes?.[i]?.minimum,s??Number.NaN},G=t=>{let{config:e,value:i,axisIndex:a,isMax:s}=t,r=e?.axes?.[a];r!==void 0&&(s?r.maximum=i:r.minimum=i)},me=t=>t.axes?.[0]?.valueFormat??$(),ye=(t,e,i)=>{let a=W(t,0,e);if(a!==void 0&&i!==void 0){let s={...a,valueFormat:i};X({config:t,axis:s,axisIndex:0})}},pe=(t,e,i)=>{let a=t.axes?.[e];a!==void 0&&(a.integerOnlyValues=i)},ae=t=>{let e=S(t.series);return e===n.BarSeries||e===n.ComboLineAndBarSeries||e===n.LineSeries},ie=t=>{let{axisIndex:e,config:i,isMultiAxis:a}=t,s=!1;return e===0||e===1&&a?s=!0:e===2&&(s=ae(i)),s},ve=t=>{let{axisIndex:e,func:i,config:a}=t;return ie({axisIndex:e,config:a,isMultiAxis:!0})?i(e):void 0},Q=(t,e)=>{let i,a=e.axes?.[t]?.valueFormat;return(t===0||t>=1&&L(a))&&(i=a),i},he=t=>{let{config:e,commonStrings:i,valueFormat:a,axisIndex:s=0}=t,r=W(e,s,i);if(r!==void 0&&a!==void 0){let o={...r,valueFormat:a};X({config:e,axis:o,axisIndex:s})}},Se=(t,e)=>t.axes?.[e]?.isLogarithmic??!1,Fe=t=>{let{config:e,isLogarithmic:i,axisIndex:a}=t,s=e.axes?.[a];s&&(s.isLogarithmic=i,G({config:e,value:null,axisIndex:a,isMax:!0}),G({config:e,value:null,axisIndex:a,isMax:!1}))},be=t=>{let{config:e,scrollbar:i,axisIndex:a}=t;e.axes?.[a]!==void 0&&(e.axes[a].scrollbar=i)};async function Ie(t){let{config:e,layer:i,xAxisField:a,splitByField:s,layerFieldsInfo:r,aggregationFields:o,fetchNullValues:l,chartLimits:f,errorStrings:x}=t,u=r.filter(h=>h.name===s)[0]?.type,m=l!==!0?`${s} IS NOT NULL`:"",c=a&&l!==!0?`${a} IS NOT NULL`:"",B=S(e?.series),{where:Z}=e?.dataFilters??{},_={where:I([Z,m,c]),orderByFields:D(s)?[]:[`${s} ${V.Ascending}`],geometry:e?.dataFilters?.geometry},v="";o?.length===0?v=C(i).idField:o&&([v]=o);let d=i?b(i)?await O({layer:i,category:e?.series[0].x??"",splitByField:s}):await N({queryObject:i,category:e?.series[0].x??"",splitByField:s,queryConfig:_,errorStrings:x}):[],y=R(f),ee={[n.BarSeries]:y.maxBarChartSeriesCount,[n.BoxPlotSeries]:y.maxBoxPlotSeriesCount,[n.LineSeries]:y.maxLineChartSeriesCount,[n.RadarSeries]:y.maxRadarChartSeriesCount},w=(B?ee[B]:void 0)??y.serialChart.series,q=d.length,j=q>w;if(j&&(d=d.slice(0,w)),e){let h=e?.series.map(g=>Y({where:g.query?.where})?.toString()??"").filter(g=>g!==void 0&&g!=="");d=J({arrayA:d,arrayB:h,getKey:g=>g===null?null:g?.toString()})}return{categoriesArray:d,seriesLimitReached:j,totalSeriesCount:q,splitByFieldType:u,numericalField:v}}function Ne(t,e){let i=e==="";for(let a of t)if(e===a.name){i=!0;break}return i}function Le(t,e){let i=K(t),a=e.length===0,s=0;for(let r of e){for(let o of i)if(r===o&&(s+=1),s===e.length){a=!0;break}if(a)break}return a}function Oe(t,e){e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(a=>{Object.defineProperty(t.prototype,a,Object.getOwnPropertyDescriptor(i.prototype,a)||Object.create(null))})})}async function Ce(t){let{layerInfo:e,config:i,category:a,errorStrings:s}=t,{layer:r}=e,{where:o}=i?.dataFilters??{},{fetchNullValues:l}=i?.series?.[0]?.query??{},f=l!==!0?`${a} IS NOT NULL`:"",x={where:I([o,f]),orderByFields:[],geometry:i?.dataFilters?.geometry},u;return b(r)?u=(await O({layer:r,category:a,fetchNullValues:l})).map(m=>{let c=String(m);return A({queryObject:e.layer,fieldName:a,fieldValue:c})??c}):u=(await N({queryObject:r,category:a,queryConfig:x,errorStrings:s})).map(m=>{let c=String(m);return A({queryObject:e.layer,fieldName:a,fieldValue:c})??c}),u}function Ae(t){return t!==void 0&&Q(0,t)?.type===n.CategoryAxisFormat&&Q(1,t)?.type===n.CategoryAxisFormat}return{a:ge,b:fe,c:xe,d:de,e:ue,f:G,g:me,h:ye,i:pe,j:ve,k:Q,l:he,m:Se,n:Fe,o:be,p:Ie,q:Ne,r:Le,s:Oe,t:Ce,u:Ae}},"intl",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as t,b as n,c}from"./QGHI4FS2.js";import{k as o}from"./FHN6CIIO.js";async function m(a){let i="config"in a?n(a.config):a.chartType,r;if(!("layer"in a)&&!("iLayer"in a)&&"config"in a&&a.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(i){case o.LineChart:{let{LineChartModel:e}=await import("./
|
|
2
|
+
import{a as t,b as n,c}from"./QGHI4FS2.js";import{k as o}from"./FHN6CIIO.js";async function m(a){let i="config"in a?n(a.config):a.chartType,r;if(!("layer"in a)&&!("iLayer"in a)&&"config"in a&&a.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(i){case o.LineChart:{let{LineChartModel:e}=await import("./TT6IHBTH.js").then(m=>m.default.then(e=>({LineChartModel:e})));r=new e;break}case o.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./UMOEONXM.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));r=new e;break}case o.PieChart:{let{PieChartModel:e}=await import("./EJ2FAXEX.js").then(m=>m.default.then(e=>({PieChartModel:e})));r=new e;break}case o.Histogram:{let{HistogramModel:e}=await import("./FN5XFRQS.js").then(m=>m.default.then(e=>({HistogramModel:e})));r=new e;break}case o.Scatterplot:{let{ScatterplotModel:e}=await import("./6MQWBIAC.js").then(m=>m.default.then(e=>({ScatterplotModel:e})));r=new e;break}case o.BoxPlot:{let{BoxPlotModel:e}=await import("./ZN7A4NI2.js").then(m=>m.default.then(e=>({BoxPlotModel:e})));r=new e;break}case o.Gauge:{let{GaugeModel:e}=await import("./2CUBWUT6.js").then(m=>m.default.then(e=>({GaugeModel:e})));r=new e;break}case o.RadarChart:{let{RadarChartModel:e}=await import("./WFAHWPGT.js").then(m=>m.default.then(e=>({RadarChartModel:e})));r=new e;break}case o.HeatChart:{let{HeatChartModel:e}=await import("./DLMKQ6I2.js").then(m=>m.default.then(e=>({HeatChartModel:e})));r=new e;break}case o.BarChart:default:{let{BarChartModel:e}=await import("./HBFEI43W.js").then(m=>m.default.then(e=>({BarChartModel:e})));r=new e;break}}if(await r?.setup({layer:"layer"in a?a.layer:void 0,iLayer:"iLayer"in a?a.iLayer:void 0,config:"config"in a?a.config:void 0,commonStrings:"commonStrings"in a?a.commonStrings:void 0,chartLimits:"chartLimits"in a?a.chartLimits:void 0}),i!==void 0&&c(r,i))return r;{let e=t(r.chartType);throw new Error(`Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${i}\`).`)}}export{m as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./EOAQOIWV.js";import{h as d}from"./B6APNE72.js";export default $arcgis.t(([{d:c,e:n}])=>{var h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,f=(t,e,a,u)=>{for(var r=m(e,a),i=t.length-1,s;i>=0;i--)(s=t[i])&&(r=s(e,a,r)||r);return r&&h(e,a,r),r};function S(t){return t!==void 0&&"rotated"in t}var p=t=>d(t),g=(t,e)=>{e.rotated=t},o=class extends c{get rotatedState(){return p(this._config)}set rotatedState(e){g(e,this._config)}get rotated(){return p(this._config)}set rotated(e){g(e,this._config)}};f([n],o.prototype,"rotatedState");f([n],o.prototype,"rotated");return{a:S,b:o}},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as C}from"./OZSHGMU6.js";import{a as b}from"./H5VCT3XP.js";import{b as S,c as T}from"./GSCC3FON.js";import h from"./
|
|
2
|
+
import{a as C}from"./OZSHGMU6.js";import{a as b}from"./H5VCT3XP.js";import{b as S,c as T}from"./GSCC3FON.js";import h from"./AGKAJN2K.js";import{h as a}from"./5AKOPV7Z.js";import{a as f}from"./FNXREQOE.js";import e from"./IUM6GDBZ.js";import d from"./LIHIBT2F.js";import"./SKI5Z6UH.js";import{n as F}from"./B6APNE72.js";import{Aa as x}from"./27C6PCQ2.js";import{a as L}from"./WKF53DYD.js";import{b as y}from"./OZSOICXE.js";import"./PBQRZBQM.js";import{A as p,B as $,C as r,H as P,g as k,i as s,n as m,z as g}from"./YF6ML4P6.js";import{d as c}from"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{$b:D,Xb:I},,{a:w,d:u,k:h,o:E}])=>{var o={name:"pie-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",flipClass:"sort-counter-clockwise",sortOrderPickList:"sort-order-pick-list",panel:"panel"},O=k`.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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,v=class extends ${constructor(){super(...arguments),this._messages=f(),this.commonStrings=f({name:"common",blocking:!0}),this.picklist=g(),this.popoverElement=g(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.aggregationLabels=[],this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigPieChartDataPopoverChange=m(),this.arcgisChartsConfigPopoverClose=m()}static{this.properties={aggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=O}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=u.map(i=>x(i,this.commonStrings));y(this.aggregationLabels,t)||(this.aggregationLabels=t)}updated(){S(this.popoverElement.value,this.open),setTimeout(()=>{this.picklist.value?.setFocus()},w.PopoverTimer)}selectedContentChange(e,t){this.pickListHasChanged=T(e,t)}buildAggregationPickListItems(){return C(u,e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${h(e,this.selectedContent)}></calcite-list-item>`)}buildSortOrder(){let e=Object.keys(c);return e.splice(e.indexOf(c.customSort),1),C(e,t=>t,t=>{let i="string",l="rotate",n="";switch(t){case c.labelAsc:i="string";break;case c.labelDesc:i="string",n=o.flipClass;break;case c.valueAsc:i="number";break;case c.valueDesc:i="number",n=o.flipClass;break;case c.customSort:}return s`<calcite-list-item .selected=${this.selectedContent===t} .label=${this._messages[t]} .value=${c[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${r(n)} slot=content-end .icon=${l}></calcite-icon></calcite-list-item>`})}buildPickListItem(e){return b(e.name,s`<calcite-list-item .label=${F(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${h(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let l=0;l<t;l+=1){let n=this.layerFieldsInfo[l];I(n)&&i.push(this.buildPickListItem(n))}break}case a.category:{let l=b(" ",s`<calcite-list-item label=" " value=" " .selected=${h("",this.selectedContent)}></calcite-list-item>`);i.push(l);for(let n=0;n<t;n+=1){let d=this.layerFieldsInfo[n];(D(d)||d.type===L.String)&&i.push(this.buildPickListItem(d))}break}}return i}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigPieChartDataPopoverChange,contentKind:this.contentKind};E(e)}this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigPieChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderCategory(){let e=this.buildPickListItems(a.category);return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return s`<calcite-list label class=${`${o.popoverPickList} ${o.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.aggregation:e=this.renderAggregationType();break;case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=s`<div slot=footer><calcite-fab class=${r(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),s`<div><calcite-popover class=${r(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};P("arcgis-charts-config-pie-chart-popover",v);return v},d,e,h)
|