@arcgis/charts-components 5.1.13 → 5.1.14
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/{KPDRGTU3.js → 32WUHDFU.js} +1 -1
- package/dist/cdn/{Q4KS2PC7.js → 34CYICAL.js} +1 -1
- package/dist/cdn/{57YPAOXZ.js → 3EQC43CZ.js} +1 -1
- package/dist/cdn/{7HJB4SI2.js → 3FT3WV37.js} +1 -1
- package/dist/cdn/{QU3INUFM.js → 3FWTFXU7.js} +1 -1
- package/dist/cdn/{7CCXHGYD.js → 3HT3CCOV.js} +1 -1
- package/dist/cdn/{QY53MNPK.js → 3ND225UE.js} +1 -1
- package/dist/cdn/{77ZFLSUR.js → 3ODBAS3W.js} +1 -1
- package/dist/cdn/{7QQ5NS6Z.js → 3TFQRGXT.js} +1 -1
- package/dist/cdn/{QNPRVZIU.js → 47WVBVWY.js} +1 -1
- package/dist/cdn/{RLQJRXUT.js → 4AMPX5GE.js} +1 -1
- package/dist/cdn/{722MPRC2.js → 4UCMWBBT.js} +1 -1
- package/dist/cdn/{MPFUJBRT.js → 4XTLMDXW.js} +1 -1
- package/dist/cdn/{4QHJHXUJ.js → 5I7LPWVQ.js} +1 -1
- package/dist/cdn/{2Y2HUFGN.js → 5MPDSY6U.js} +1 -1
- package/dist/cdn/{EPLJTNS7.js → 657M7N2G.js} +1 -1
- package/dist/cdn/{PFVFVRZI.js → 6KU44HAM.js} +1 -1
- package/dist/cdn/{BHCHUWOR.js → 6LHJT5XV.js} +1 -1
- package/dist/cdn/{LIIIFRTS.js → 6YSYIJPF.js} +1 -1
- package/dist/cdn/{CRNAD7BG.js → A7FQJRS7.js} +1 -1
- package/dist/cdn/{AXQCTXPE.js → AENP3S4B.js} +1 -1
- package/dist/cdn/{3JL355YY.js → AKIIQ2OF.js} +1 -1
- package/dist/cdn/{NK6LNLAC.js → AKQXPPBW.js} +1 -1
- package/dist/cdn/{OX3NDAHH.js → APBNJBC7.js} +1 -1
- package/dist/cdn/{WNEA6NPB.js → AXCLCMI5.js} +1 -1
- package/dist/cdn/{4EXP7Z6F.js → BEXNQ35Z.js} +1 -1
- package/dist/cdn/{GZPKSGXO.js → BJN67WF3.js} +1 -1
- package/dist/cdn/{D5LSTM2B.js → BWLGW3OB.js} +1 -1
- package/dist/cdn/{5LVMNHMJ.js → CGXUIXWV.js} +1 -1
- package/dist/cdn/{KQRR3MRL.js → CKAJX463.js} +1 -1
- package/dist/cdn/{K247XYMA.js → COUNKDQU.js} +1 -1
- package/dist/cdn/{PVN5MMI4.js → DBCIEUPZ.js} +1 -1
- package/dist/cdn/{QBIRDXQK.js → DCT2ONUZ.js} +1 -1
- package/dist/cdn/{HPIGYIO3.js → E5L2K4LW.js} +1 -1
- package/dist/cdn/{UGLSCQYJ.js → EC2O4ZSR.js} +1 -1
- package/dist/cdn/{KGZRYE7N.js → EHUE3LRE.js} +1 -1
- package/dist/cdn/{KYRQMTBT.js → ELOGEI2U.js} +1 -1
- package/dist/cdn/{3WN4UJLG.js → EUQIQA6V.js} +1 -1
- package/dist/cdn/{RNQS53SS.js → F2UXH7GW.js} +1 -1
- package/dist/cdn/{5AV3RDAJ.js → F75I3L3E.js} +1 -1
- package/dist/cdn/{WLOH24BT.js → F7WWY2DB.js} +1 -1
- package/dist/cdn/{5CJ6AS2R.js → FDDIZXKN.js} +1 -1
- package/dist/cdn/{KKNTJKRV.js → FY2NVYKS.js} +1 -1
- package/dist/cdn/{GPIB5XFN.js → G2OVO7ZF.js} +1 -1
- package/dist/cdn/{DAOSCUBJ.js → G3LKEFGH.js} +1 -1
- package/dist/cdn/{35NEW2SV.js → G3SJZA6D.js} +1 -1
- package/dist/cdn/{JTJA3MJK.js → G6VW3YDS.js} +1 -1
- package/dist/cdn/{KEF2JUNX.js → GH53PX67.js} +1 -1
- package/dist/cdn/{2ZD245HE.js → HA52AJKM.js} +1 -1
- package/dist/cdn/{WCW2QQXA.js → HC4POMJ2.js} +1 -1
- package/dist/cdn/{KN2G6OHX.js → HD3RCGV2.js} +1 -1
- package/dist/cdn/{ELZKWU4H.js → HKPCO4HL.js} +1 -1
- package/dist/cdn/{KGPMYLWS.js → HMEEWWGI.js} +1 -1
- package/dist/cdn/{ANOEILQF.js → HYHEPSHK.js} +1 -1
- package/dist/cdn/{5YR2XYLL.js → HYQF6VVZ.js} +1 -1
- package/dist/cdn/{4SKA26DI.js → I4I3GR3I.js} +1 -1
- package/dist/cdn/{5AHQSZT3.js → ID6XRDET.js} +1 -1
- package/dist/cdn/{GOIX2QZV.js → IHKUCS6M.js} +1 -1
- package/dist/cdn/{LGULOFN4.js → JFM47HOQ.js} +1 -1
- package/dist/cdn/{EIH5J7ZW.js → JJNB5AC7.js} +1 -1
- package/dist/cdn/{V25QIG2L.js → KCJX3NXP.js} +1 -1
- package/dist/cdn/{6QKQZIYH.js → LFZLMDYD.js} +1 -1
- package/dist/cdn/{SKMK6PPJ.js → LUNREPHI.js} +1 -1
- package/dist/cdn/{GPYBLZSR.js → MIF6ADG2.js} +1 -1
- package/dist/cdn/{HQTOAYUF.js → MKJCUFHE.js} +1 -1
- package/dist/cdn/{FL3GSWYB.js → MN73KKNM.js} +1 -1
- package/dist/cdn/{LTCV3NTL.js → MTJ5SVX3.js} +1 -1
- package/dist/cdn/{G2QZEFJL.js → NMG2GNVR.js} +1 -1
- package/dist/cdn/{SYEQGCCV.js → NYFDS3RD.js} +1 -1
- package/dist/cdn/{63KPEHDF.js → OF2TGXKX.js} +1 -1
- package/dist/cdn/{G2VPQGYM.js → P3MPMWMF.js} +1 -1
- package/dist/cdn/{XVF4ROM7.js → P4TC6MLD.js} +1 -1
- package/dist/cdn/{3GZ4SR7T.js → PAMPITJY.js} +1 -1
- package/dist/cdn/{YEBNFH7A.js → PFYTCBGO.js} +1 -1
- package/dist/cdn/{2YSVQRMZ.js → POW2FH6Z.js} +1 -1
- package/dist/cdn/{MTIAR5R3.js → PT7JLUU5.js} +1 -1
- package/dist/cdn/{D2UNGJWY.js → PWFRRPVX.js} +1 -1
- package/dist/cdn/{2A2PEIKR.js → QHVKS2DQ.js} +1 -1
- package/dist/cdn/{I3HA7LXL.js → RFHFROHC.js} +1 -1
- package/dist/cdn/{CXNIATF6.js → RHGQZAJA.js} +1 -1
- package/dist/cdn/{EQUME3DG.js → RINZ5USJ.js} +1 -1
- package/dist/cdn/{2SS5PNXC.js → RX3PMDLY.js} +1 -1
- package/dist/cdn/{VI5N27A2.js → S4EPO2M4.js} +1 -1
- package/dist/cdn/{S4HW5TCY.js → SLJF3AOY.js} +1 -1
- package/dist/cdn/{ASZMVYJM.js → SOP6DF6B.js} +1 -1
- package/dist/cdn/{44BT4NNU.js → TAB7FFIJ.js} +1 -1
- package/dist/cdn/{OH2HGF6U.js → TNQZM7EP.js} +1 -1
- package/dist/cdn/{I5MQ7UYV.js → UARDDCN6.js} +1 -1
- package/dist/cdn/{UEJ4SPWO.js → UETQ4XEH.js} +1 -1
- package/dist/cdn/{CL3K37UD.js → URLY2NWB.js} +1 -1
- package/dist/cdn/{UHEOPSRY.js → WGVW2HML.js} +1 -1
- package/dist/cdn/{4OMVOVDV.js → XI7FOAZK.js} +1 -1
- package/dist/cdn/{E6N6SOBG.js → Z2OSMTMX.js} +1 -1
- package/dist/cdn/{GBGH6JDU.js → ZEYPXAJR.js} +1 -1
- package/dist/cdn/{UHYGKM62.js → ZOIZM3XM.js} +1 -1
- package/dist/cdn/{YVO6WJSM.js → ZVP3LPXT.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/runtime.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 +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import o from"./JTJA3MJK.js";import n from"./MPFUJBRT.js";import l from"./QNPRVZIU.js";import k from"./CXNIATF6.js";import j from"./LTCV3NTL.js";import i from"./4QHJHXUJ.js";import e from"./ASZMVYJM.js";import"./AUECIKS7.js";import d from"./5CJ6AS2R.js";import c from"./GPIB5XFN.js";import b from"./FL3GSWYB.js";import"./KGNYAMFB.js";import a from"./7CCXHGYD.js";import"./777EBGS5.js";import{d as u}from"./TA5LVOWS.js";import{I as _,L as f,da as S,fa as V,ma as F,o as y}from"./IQAKPU7N.js";import{f as h}from"./75Y43JLP.js";import{g as x}from"./FIMXZMTB.js";import"./V25QIG2L.js";import{l as I}from"./XVF4ROM7.js";import{e as m,f as g}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as p}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{T:b,rb:T},{p:N,q:O,r:M},,{c:t},,R,{b:w},{b:$},{a:D,b:U,c:K,d:Y},,{a:L,b:A,c:G,d:k,e:W,f:B,g:z,h:j,i:E,j:v,k:C}])=>{var Z=i=>i.legend?.displayNumericValue??!1,ee=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayNumericValue=i)},ie=i=>i.legend?.displayCategory??!1,se=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayCategory=i)},te=i=>i.legend?.displayPercentage??!1,re=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayPercentage=i)},oe=i=>i.legend?.labelMaxWidth??200,ae=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.labelMaxWidth=i)},ne=i=>i.legend?.valueLabelMaxWidth??200,le=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.valueLabelMaxWidth=i)},ge=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,P=(i,e,s,a)=>{for(var n=ce(e,s),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,s,n)||n);return n&&ge(e,s,n),n},d=class extends D{getDisplayNumericValue(){return Z(this._config)}setDisplayNumericValue(e){ee(e,this._config)}getDisplayPercentage(){return te(this._config)}setDisplayPercentage(e){re(e,this._config)}getLabelMaxWidth(){return oe(this._config)}setLabelMaxWidth(e){ae(e,this._config)}get valueLabelMaxWidth(){return ne(this._config)}set valueLabelMaxWidth(e){le(e,this._config),this.emitConfigUpdate("valueLabelMaxWidth")}get displayCategory(){return ie(this._config)}set displayCategory(e){se(e,this._config),this.emitConfigUpdate("displayCategory")}};P([t],d.prototype,"setDisplayNumericValue");P([t],d.prototype,"setDisplayPercentage");P([t],d.prototype,"setLabelMaxWidth");var pe=[D];O(d,pe);var de=i=>i.series?.[0]?.innerRadius,fe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},he=i=>i.series?.[0]?.dataLabelsCharacterLimit,ue=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},q=i=>i.series[0]?.startAngle,me=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},ye=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},_e=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,Se=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,be=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Oe=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,Le=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,ve=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Ce=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},De=i=>i.series?.[0]?.valuePrefix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Ie=i=>i.series?.[0]?.valueSuffix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ve=i=>i.series?.[0]?.percentagePrefix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Te=i=>i.series?.[0]?.percentageSuffix,Ne=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Me=i=>{let e,s=i.series?.[0];return s?.displayNumericValueOnDataLabel===!0&&s?.displayPercentageOnDataLabel===!0?e=g.Both:s?.displayNumericValueOnDataLabel===!0?e=g.Value:e=g.Percentage,e},we=(i,e)=>{let s=i===g.Value||i===g.Both,a=i===g.Percentage||i===g.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=s,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:s,displayPercentage:a})},Ae=i=>i.series?.[0]?.alignDataLabels??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},ke=i=>i.series?.[0]?.dataLabelsInside??!1,We=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},Be=i=>i.series?.[0]?.dataLabelsOffset??10,ze=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},je=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Ee=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=_(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=_(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Re=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ue=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},Ke=i=>i.series[0]?.ticks?.visible??!1,Ye=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=S(),e.series[0].ticks.visible=i)},$e=i=>i.series[0]?.ticks?.lineSymbol,qe=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=S(),e.series[0].ticks.lineSymbol=x(i))},He=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Je=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Qe=(i,e,s)=>{s.series?.[0]?.slices?.[e]&&(s.series[0].slices[e].label=i)},Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,Ze=(i,e,s)=>{let a=s.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:h.SLS,color:i}):s.series?.[0]?.slices?.[e]!==void 0&&(s.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},ei=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),H=(i,e)=>{e.series?.[0]?.slices?.sort((s,a)=>i.findIndex(n=>s.sliceId===n)-i.findIndex(n=>a.sliceId===n))},ii=i=>i.series?.[0]?.sliceGrouping,J=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},Q=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,si=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:y.defaultGroupOfSlicesId,percentageThreshold:i}},ti=i=>i.series?.[0]?.slices,X=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},ri=i=>{X(void 0,i),J({sliceId:y.defaultGroupOfSlicesId,percentageThreshold:Q(i)??0},i)},oi=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ai=(i,e)=>e.series[0]?.slices?.findIndex(s=>s.sliceId===i),ni=i=>i.series[0]?.slices?.length??0,li=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,o=(i,e,s,a)=>{for(var n=gi(e,s),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,s,n)||n);return n&&li(e,s,n),n},r=class extends R{constructor(){super(...arguments),this._chartType=p.PieSeries,this._mode=m.Category,this._groupedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:s}=e;if(s!==void 0){let a=b(s.series);this._mode=a!==u.PieFromFields?m.Category:m.Fields}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return L(this._config)}set category(e){(!w(this._config)||e.trim()!=="")&&(z({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return G(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||N(this.layerInfo.layerFieldsInfo,e)?(E({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):I("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return k(this._config,this._mode)}set aggregationType(e){j({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return A(this._config,this._mode)}setSortOrder(e,s){B({newSortOrderKind:e,config:this._config,orderByList:s})}get orderByList(){return v(this._config,this._mode)}set orderByList(e){C({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=L(this._config),s=b(this._config.series),a=[];return s===u.PieFromFields?a=this.numericFields:e.trim()!==""&&s===u.PieFromCategory&&(a=await M({category:e,config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})),a}moveCustomSortValuesInOrderByList(e,s){let a=v(this._config,this._mode),[n]=a.splice(e,1);a.splice(s,0,n),C({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return $e(this._config)}set ticksSymbol(e){qe(e,this._config)}get slices(){return ti(this._config)}set slices(e){X(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return ii(this._config)}set sliceGrouping(e){J(e,this._config)}get innerRadiusSize(){return de(this._config)??0}set innerRadiusSize(e){fe(e,this._config)}get groupingThreshold(){return Q(this._config)??0}set groupingThreshold(e){si(e,this._config)}get labelCharacterLimit(){return he(this._config)??null}set labelCharacterLimit(e){ue(e,this._config)}get decimalPlaces(){return je(this._config)??1}set decimalPlaces(e){Ee(e,this._config)}get displayType(){return Me(this._config)}set displayType(e){we(e,this._config)}generateDefaultConfig(){let e=F(this.commonStrings);return e.series=[V(this.commonStrings,T(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return He(e,this._config)}getSliceName(e){return Je(e,this._config)}setSliceName(e,s){Qe(e,s,this._config)}getSliceColor(e){return Xe(e,this._config)}setSliceColor(e,s){Ze(e,s,this._config)}get orderOfSlices(){return ei(this._config)}set orderOfSlices(e){e!==void 0&&H(e,this._config)}moveSeries(e,s){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(s,0,n),H(a,this._config)}}getSliceId(e){return oi(e,this._config)}getSliceIndex(e){return ai(e,this._config)}getSlicesLength(){return ni(this._config)}resetSlices(){ri(this._config)}resetAvailable(){let e=!this.colorMatch,s=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let l=this.getOriginalSliceName(n),c=this.getSliceName(n);if(l!==void 0&&l?.toString()!==c?.toString()){s=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(s=!0),e||s}get ticksVisibility(){return Ke(this._config)}set ticksVisibility(e){Ye(e,this._config)}get startAngle(){return q(this._config)}set startAngle(e){me(e,this._config)}get endAngle(){return q(this._config)}set endAngle(e){ye(e,this._config)}get displayCategoryOnDataLabel(){return Se(this._config)}set displayCategoryOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayCategoryOnDataLabel=e,this.emitConfigUpdate("displayCategoryOnDataLabel")})}get displayCategoryValueOnTooltip(){return _e(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return be(this._config)}set displayNumericValueOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayNumericValueOnDataLabel=e,this.emitConfigUpdate("displayNumericValueOnDataLabel")})}get displayPercentageOnDataLabel(){return Oe(this._config)}set displayPercentageOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayPercentageOnDataLabel=e,this.emitConfigUpdate("displayPercentageOnDataLabel")})}get displayNumericValueOnTooltip(){return Le(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return ve(this._config)}set displayPercentageOnTooltip(e){Ce(e,this._config)}get valuePrefix(){return De(this._config)}set valuePrefix(e){Pe(e,this._config)}get valueSuffix(){return Ie(this._config)}set valueSuffix(e){xe(e,this._config)}get percentagePrefix(){return Ve(this._config)}set percentagePrefix(e){Fe(e,this._config)}get percentageSuffix(){return Te(this._config)}set percentageSuffix(e){Ne(e,this._config)}get dataLabelsOffset(){return Be(this._config)}set dataLabelsOffset(e){ze(e,this._config)}get alignDataLabels(){return Ae(this._config)}set alignDataLabels(e){Ge(e,this._config)}get dataLabelsInside(){return ke(this._config)}set dataLabelsInside(e){We(e,this._config)}get optimizeDataLabelsOverlapping(){return Re(this._config)}set optimizeDataLabelsOverlapping(e){Ue(e,this._config)}generateChartTitle(){return W({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};o([t],r.prototype,"category");o([t],r.prototype,"numericFields");o([t],r.prototype,"aggregationType");o([t],r.prototype,"setSortOrder");o([t],r.prototype,"orderByList");o([t],r.prototype,"mode");o([t],r.prototype,"moveCustomSortValuesInOrderByList");o([t],r.prototype,"ticksSymbol");o([t],r.prototype,"slices");o([t],r.prototype,"groupedSliceIds");o([t],r.prototype,"sliceGrouping");o([t],r.prototype,"innerRadiusSize");o([t],r.prototype,"groupingThreshold");o([t],r.prototype,"labelCharacterLimit");o([t],r.prototype,"decimalPlaces");o([t],r.prototype,"displayType");o([t],r.prototype,"setSliceName");o([t],r.prototype,"setSliceColor");o([t],r.prototype,"orderOfSlices");o([t],r.prototype,"moveSeries");o([t],r.prototype,"resetSlices");o([t],r.prototype,"ticksVisibility");o([t],r.prototype,"startAngle");o([t],r.prototype,"endAngle");o([t],r.prototype,"displayCategoryValueOnTooltip");o([t],r.prototype,"displayNumericValueOnTooltip");o([t],r.prototype,"displayPercentageOnTooltip");o([t],r.prototype,"valuePrefix");o([t],r.prototype,"valueSuffix");o([t],r.prototype,"percentagePrefix");o([t],r.prototype,"percentageSuffix");o([t],r.prototype,"dataLabelsOffset");o([t],r.prototype,"alignDataLabels");o([t],r.prototype,"dataLabelsInside");o([t],r.prototype,"optimizeDataLabelsOverlapping");var ci=[d,U,K,Y,$];O(r,ci);return r},a,b,c,d,e,i,j,k,l,n,o)
|
|
2
|
+
import o from"./G6VW3YDS.js";import n from"./4XTLMDXW.js";import l from"./47WVBVWY.js";import k from"./RHGQZAJA.js";import j from"./MTJ5SVX3.js";import i from"./5I7LPWVQ.js";import e from"./SOP6DF6B.js";import"./AUECIKS7.js";import d from"./FDDIZXKN.js";import c from"./G2OVO7ZF.js";import b from"./MN73KKNM.js";import"./KGNYAMFB.js";import a from"./3HT3CCOV.js";import"./777EBGS5.js";import{d as u}from"./TA5LVOWS.js";import{I as _,L as f,da as S,fa as V,ma as F,o as y}from"./IQAKPU7N.js";import{f as h}from"./75Y43JLP.js";import{g as x}from"./FIMXZMTB.js";import"./KCJX3NXP.js";import{l as I}from"./P4TC6MLD.js";import{e as m,f as g}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as p}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{T:b,rb:T},{p:N,q:O,r:M},,{c:t},,R,{b:w},{b:$},{a:D,b:U,c:K,d:Y},,{a:L,b:A,c:G,d:k,e:W,f:B,g:z,h:j,i:E,j:v,k:C}])=>{var Z=i=>i.legend?.displayNumericValue??!1,ee=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayNumericValue=i)},ie=i=>i.legend?.displayCategory??!1,se=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayCategory=i)},te=i=>i.legend?.displayPercentage??!1,re=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayPercentage=i)},oe=i=>i.legend?.labelMaxWidth??200,ae=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.labelMaxWidth=i)},ne=i=>i.legend?.valueLabelMaxWidth??200,le=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.valueLabelMaxWidth=i)},ge=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,P=(i,e,s,a)=>{for(var n=ce(e,s),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,s,n)||n);return n&&ge(e,s,n),n},d=class extends D{getDisplayNumericValue(){return Z(this._config)}setDisplayNumericValue(e){ee(e,this._config)}getDisplayPercentage(){return te(this._config)}setDisplayPercentage(e){re(e,this._config)}getLabelMaxWidth(){return oe(this._config)}setLabelMaxWidth(e){ae(e,this._config)}get valueLabelMaxWidth(){return ne(this._config)}set valueLabelMaxWidth(e){le(e,this._config),this.emitConfigUpdate("valueLabelMaxWidth")}get displayCategory(){return ie(this._config)}set displayCategory(e){se(e,this._config),this.emitConfigUpdate("displayCategory")}};P([t],d.prototype,"setDisplayNumericValue");P([t],d.prototype,"setDisplayPercentage");P([t],d.prototype,"setLabelMaxWidth");var pe=[D];O(d,pe);var de=i=>i.series?.[0]?.innerRadius,fe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},he=i=>i.series?.[0]?.dataLabelsCharacterLimit,ue=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},q=i=>i.series[0]?.startAngle,me=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},ye=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},_e=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,Se=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,be=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Oe=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,Le=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,ve=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Ce=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},De=i=>i.series?.[0]?.valuePrefix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Ie=i=>i.series?.[0]?.valueSuffix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ve=i=>i.series?.[0]?.percentagePrefix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Te=i=>i.series?.[0]?.percentageSuffix,Ne=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Me=i=>{let e,s=i.series?.[0];return s?.displayNumericValueOnDataLabel===!0&&s?.displayPercentageOnDataLabel===!0?e=g.Both:s?.displayNumericValueOnDataLabel===!0?e=g.Value:e=g.Percentage,e},we=(i,e)=>{let s=i===g.Value||i===g.Both,a=i===g.Percentage||i===g.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=s,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:s,displayPercentage:a})},Ae=i=>i.series?.[0]?.alignDataLabels??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},ke=i=>i.series?.[0]?.dataLabelsInside??!1,We=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},Be=i=>i.series?.[0]?.dataLabelsOffset??10,ze=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},je=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Ee=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=_(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=_(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Re=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ue=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},Ke=i=>i.series[0]?.ticks?.visible??!1,Ye=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=S(),e.series[0].ticks.visible=i)},$e=i=>i.series[0]?.ticks?.lineSymbol,qe=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=S(),e.series[0].ticks.lineSymbol=x(i))},He=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Je=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Qe=(i,e,s)=>{s.series?.[0]?.slices?.[e]&&(s.series[0].slices[e].label=i)},Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,Ze=(i,e,s)=>{let a=s.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:h.SLS,color:i}):s.series?.[0]?.slices?.[e]!==void 0&&(s.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},ei=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),H=(i,e)=>{e.series?.[0]?.slices?.sort((s,a)=>i.findIndex(n=>s.sliceId===n)-i.findIndex(n=>a.sliceId===n))},ii=i=>i.series?.[0]?.sliceGrouping,J=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},Q=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,si=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:y.defaultGroupOfSlicesId,percentageThreshold:i}},ti=i=>i.series?.[0]?.slices,X=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},ri=i=>{X(void 0,i),J({sliceId:y.defaultGroupOfSlicesId,percentageThreshold:Q(i)??0},i)},oi=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ai=(i,e)=>e.series[0]?.slices?.findIndex(s=>s.sliceId===i),ni=i=>i.series[0]?.slices?.length??0,li=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,o=(i,e,s,a)=>{for(var n=gi(e,s),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,s,n)||n);return n&&li(e,s,n),n},r=class extends R{constructor(){super(...arguments),this._chartType=p.PieSeries,this._mode=m.Category,this._groupedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:s}=e;if(s!==void 0){let a=b(s.series);this._mode=a!==u.PieFromFields?m.Category:m.Fields}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return L(this._config)}set category(e){(!w(this._config)||e.trim()!=="")&&(z({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return G(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||N(this.layerInfo.layerFieldsInfo,e)?(E({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):I("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return k(this._config,this._mode)}set aggregationType(e){j({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return A(this._config,this._mode)}setSortOrder(e,s){B({newSortOrderKind:e,config:this._config,orderByList:s})}get orderByList(){return v(this._config,this._mode)}set orderByList(e){C({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=L(this._config),s=b(this._config.series),a=[];return s===u.PieFromFields?a=this.numericFields:e.trim()!==""&&s===u.PieFromCategory&&(a=await M({category:e,config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})),a}moveCustomSortValuesInOrderByList(e,s){let a=v(this._config,this._mode),[n]=a.splice(e,1);a.splice(s,0,n),C({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return $e(this._config)}set ticksSymbol(e){qe(e,this._config)}get slices(){return ti(this._config)}set slices(e){X(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return ii(this._config)}set sliceGrouping(e){J(e,this._config)}get innerRadiusSize(){return de(this._config)??0}set innerRadiusSize(e){fe(e,this._config)}get groupingThreshold(){return Q(this._config)??0}set groupingThreshold(e){si(e,this._config)}get labelCharacterLimit(){return he(this._config)??null}set labelCharacterLimit(e){ue(e,this._config)}get decimalPlaces(){return je(this._config)??1}set decimalPlaces(e){Ee(e,this._config)}get displayType(){return Me(this._config)}set displayType(e){we(e,this._config)}generateDefaultConfig(){let e=F(this.commonStrings);return e.series=[V(this.commonStrings,T(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return He(e,this._config)}getSliceName(e){return Je(e,this._config)}setSliceName(e,s){Qe(e,s,this._config)}getSliceColor(e){return Xe(e,this._config)}setSliceColor(e,s){Ze(e,s,this._config)}get orderOfSlices(){return ei(this._config)}set orderOfSlices(e){e!==void 0&&H(e,this._config)}moveSeries(e,s){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(s,0,n),H(a,this._config)}}getSliceId(e){return oi(e,this._config)}getSliceIndex(e){return ai(e,this._config)}getSlicesLength(){return ni(this._config)}resetSlices(){ri(this._config)}resetAvailable(){let e=!this.colorMatch,s=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let l=this.getOriginalSliceName(n),c=this.getSliceName(n);if(l!==void 0&&l?.toString()!==c?.toString()){s=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(s=!0),e||s}get ticksVisibility(){return Ke(this._config)}set ticksVisibility(e){Ye(e,this._config)}get startAngle(){return q(this._config)}set startAngle(e){me(e,this._config)}get endAngle(){return q(this._config)}set endAngle(e){ye(e,this._config)}get displayCategoryOnDataLabel(){return Se(this._config)}set displayCategoryOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayCategoryOnDataLabel=e,this.emitConfigUpdate("displayCategoryOnDataLabel")})}get displayCategoryValueOnTooltip(){return _e(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return be(this._config)}set displayNumericValueOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayNumericValueOnDataLabel=e,this.emitConfigUpdate("displayNumericValueOnDataLabel")})}get displayPercentageOnDataLabel(){return Oe(this._config)}set displayPercentageOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayPercentageOnDataLabel=e,this.emitConfigUpdate("displayPercentageOnDataLabel")})}get displayNumericValueOnTooltip(){return Le(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return ve(this._config)}set displayPercentageOnTooltip(e){Ce(e,this._config)}get valuePrefix(){return De(this._config)}set valuePrefix(e){Pe(e,this._config)}get valueSuffix(){return Ie(this._config)}set valueSuffix(e){xe(e,this._config)}get percentagePrefix(){return Ve(this._config)}set percentagePrefix(e){Fe(e,this._config)}get percentageSuffix(){return Te(this._config)}set percentageSuffix(e){Ne(e,this._config)}get dataLabelsOffset(){return Be(this._config)}set dataLabelsOffset(e){ze(e,this._config)}get alignDataLabels(){return Ae(this._config)}set alignDataLabels(e){Ge(e,this._config)}get dataLabelsInside(){return ke(this._config)}set dataLabelsInside(e){We(e,this._config)}get optimizeDataLabelsOverlapping(){return Re(this._config)}set optimizeDataLabelsOverlapping(e){Ue(e,this._config)}generateChartTitle(){return W({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};o([t],r.prototype,"category");o([t],r.prototype,"numericFields");o([t],r.prototype,"aggregationType");o([t],r.prototype,"setSortOrder");o([t],r.prototype,"orderByList");o([t],r.prototype,"mode");o([t],r.prototype,"moveCustomSortValuesInOrderByList");o([t],r.prototype,"ticksSymbol");o([t],r.prototype,"slices");o([t],r.prototype,"groupedSliceIds");o([t],r.prototype,"sliceGrouping");o([t],r.prototype,"innerRadiusSize");o([t],r.prototype,"groupingThreshold");o([t],r.prototype,"labelCharacterLimit");o([t],r.prototype,"decimalPlaces");o([t],r.prototype,"displayType");o([t],r.prototype,"setSliceName");o([t],r.prototype,"setSliceColor");o([t],r.prototype,"orderOfSlices");o([t],r.prototype,"moveSeries");o([t],r.prototype,"resetSlices");o([t],r.prototype,"ticksVisibility");o([t],r.prototype,"startAngle");o([t],r.prototype,"endAngle");o([t],r.prototype,"displayCategoryValueOnTooltip");o([t],r.prototype,"displayNumericValueOnTooltip");o([t],r.prototype,"displayPercentageOnTooltip");o([t],r.prototype,"valuePrefix");o([t],r.prototype,"valueSuffix");o([t],r.prototype,"percentagePrefix");o([t],r.prototype,"percentageSuffix");o([t],r.prototype,"dataLabelsOffset");o([t],r.prototype,"alignDataLabels");o([t],r.prototype,"dataLabelsInside");o([t],r.prototype,"optimizeDataLabelsOverlapping");var ci=[d,U,K,Y,$];O(r,ci);return r},a,b,c,d,e,i,j,k,l,n,o)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{l}from"./
|
|
2
|
+
import{l}from"./P4TC6MLD.js";var E=(t,n)=>{let e=t;for(;e;){if(e===n)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},g=(t,n,e)=>{let r=b(n).subscribe;return r(o=>{o.some(s=>E(t,s.target))&&e()})},u={},b=t=>{let n=t.join(","),e=u[n];if(e!==void 0)return e;let r=new Set,o=new MutationObserver(s=>r.forEach(a=>a(s)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let i={subscribe:s=>(r.add(s),()=>{r.delete(s),r.size===0&&(o.disconnect(),u[n]=void 0)})};return u[n]=i,i},h=(t,n)=>{let e=t;for(;e;){let r=e.closest?.(n);if(r)return r;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};function $(t){let n=h(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return n?.classList.contains("calcite-mode-dark")||n?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var A=t=>d(t,"dir","ltr"),d=(t,n,e)=>h(t,`[${n}]`)?.getAttribute(n)??e;var v="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),C=new Set(v),c="en",y={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},N=async(t,n,e="")=>{let r=`${n}/${e}`,o=`${r}${t}.json`;return f[o]??(f[o]=m(t,r)),await f[o]},f={},m=async(t,n)=>{let e=`${n}${t}.json`;try{let r=await fetch(e);if(r.ok)return await r.json()}catch(r){return l("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:r}}),{}}return t===c?{}:await m(c,n)},w=t=>{let n=d(t,"lang",globalThis.navigator?.language||c);return{lang:n,t9nLocale:p(n)}},p=t=>{let[n,e]=t.split("-"),r=n.toLowerCase(),o=r;return e&&(o=`${r}-${e.toUpperCase()}`),o=y[o]??o,C.has(o)?o:e?p(r):c},x=(t,n,e,r)=>{let o,i=()=>L(t,n(),r).then(s=>{(o?.lang!==s.lang||o.t9nLocale!==s.t9nLocale||o.t9nStrings!==s.t9nStrings)&&e(s),o=s}).catch(s=>{l("error","intl","Error updating component locale state",{detail:{error:s}})});return queueMicrotask(i),g(t,["lang"],i)},L=async(t,n,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:r,t9nLocale:o}=w(t),i=`${n}/${e}/t9n`,a=e===null?{}:await N(o,i,"messages.");return{lang:r,t9nLocale:o,t9nStrings:a}};export{g as a,$ as b,A as c,C as d,c as e,N as f,w as g,p as h,x as i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as u}from"./TJQGGNGV.js";import{a as f}from"./
|
|
2
|
+
import{b as u}from"./TJQGGNGV.js";import{a as f}from"./AKQXPPBW.js";import{i as v}from"./IQAKPU7N.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./KCJX3NXP.js";import{A as C,B as i,G as g,g as p,i as h,n as s,y as m,z as d}from"./P4TC6MLD.js";import"./XOB365BI.js";import"./QPIMTXPL.js";var o={jsAppFlyout:"js-app-flyout",panelChildrenContainer:"panel-children-container"},$=p`.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{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,a=class extends C{constructor(){super(...arguments),this._messages=f(),this.popoverElement=m(),this.selectedSliceId="",this.open=!1,this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSlicesPopoverColorChange=s(),this.arcgisChartsConfigSlicesPopoverNameChange=s()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedSliceId:1,placement:1,open:5}}static{this.styles=$}async reposition(){await this.popoverElement.value?.reposition()}updated(){u(this.popoverElement.value,this.open)}sliceNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSlicesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSliceId:this.selectedSliceId})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[l,r,c]=t,n=v*255;this.selectedColor=[l,r,c,n],this.arcgisChartsConfigSlicesPopoverColorChange.emit({color:[l,r,c,n]})}render(){let e=this.selectedColor!==void 0?[...this.selectedColor]:void 0;return h`<div class=${i({[o.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${d(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(o.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${i(o.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};g("arcgis-charts-config-pie-chart-slices-popover",a);export{a as ArcgisChartsConfigPieChartSlicesPopover};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import g from"./MPFUJBRT.js";import e from"./LTCV3NTL.js";import c from"./ASZMVYJM.js";import{c as T}from"./AUECIKS7.js";import b from"./FL3GSWYB.js";import{h as O,p as te}from"./KGNYAMFB.js";import a from"./7CCXHGYD.js";import{n as B}from"./TA5LVOWS.js";import{Da as K,F as J,G as oe,H as ie,P as D,Q as G,_ as re,ca as H,n as E,p as I}from"./IQAKPU7N.js";import{a as ee}from"./75Y43JLP.js";import{d as $,g as j,k as U,l as W}from"./FIMXZMTB.js";import{b as d}from"./EZM4ZDQI.js";import{a as f,h,v as u}from"./XOB365BI.js";export default $arcgis.t(([{substitute:P},{O:M,S:se,ic:le,xb:ne,zb:R},{a:L,d:X,e:Y,f:ae,n:ce,r:ye},{a:me},{b:C},{i:N}])=>{var Ue=(o,e)=>e?.series?.[o]?.name,We=(o,e,i)=>{let r=i;r?.series?.[e]!==void 0&&(r.series[e].name=o)},eo=(o,e)=>{let i,r=e.series?.[o];return r?.type===f.BoxPlotSeries?i=r.fillSymbol?.color:r?.type===f.LineSeries&&(i=r.lineSymbol?.color),i},Fe=o=>{let e=o.series[0];return o.showMean===!0&&O(e)?e.fillSymbol?.color:void 0},Ie=(o,e)=>{let i=e.series[0];e.showMean===!0&&O(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...D(),color:o})},oo=(o,e,i)=>{let r=i?.series?.[e];r?.type===f.BoxPlotSeries&&r.fillSymbol!==void 0?r.fillSymbol.color=o:r?.type===f.LineSeries&&r.lineSymbol!==void 0&&(r.lineSymbol.color=o,r.markerSymbol!==void 0&&(r.markerSymbol.color=o))},ve=o=>o.series.map(e=>e.id),Be=(o,e)=>{e?.series?.sort((i,r)=>o.findIndex(s=>i.id===s)-o.findIndex(s=>r.id===s))},io=(o,e,i)=>{let r=ve(i),[s]=r.splice(o,1);r.splice(e,0,s),Be(r,i)},ro=o=>Z(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Ae(o,e,i){let r=be(o,e,i),s=me(o),n=C(o);return r===s||n}function de(o,e,i){let r=k(o,e,i),s=T(1,o),n=C(o);return r===s||n}function Me(o){let{config:e,layerInfo:i,newCategory:r}=o,{layerFieldsInfo:s}=i,n=A(e),t=r!==I?B(s,n):"",l=T(0,e),a=C(e);return t===l||a||l.trim()===""}var A=o=>M(o)?.x??I,Oe=$(o=>{let e=M(o),i=e?.query?.where?.split("=")[0].trim()??"";return se(e?.query?.where)?"":i},o=>M(o)?.query?.where),fe=$(o=>le(o?.series).filter(e=>e!==""),o=>o?.series),V=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...H(s,i),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)},Le=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...re({commonStrings:s,seriesIndex:i}),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)};function ge(o){let{x:e,y:i,seriesTemplate:r,commonStrings:s}=o,{id:n,fillSymbol:t}=r??{},l=H(s),a=n??`series_${Date.now()}`;return l.id=a,l.name=a,l.x=e,l.y=i,t?l.fillSymbol=t:l.fillSymbol&&(l.fillSymbol.color=K,l.fillSymbol?.outline&&(l.fillSymbol.outline.color=K)),l}function ue(o){let{numericFields:e,config:i,layerInfo:r,category:s,commonStrings:n}=o,{layerFieldsInfo:t}=r,l=[],a=s??A(i),y=!1,c=N({fieldName:a,numericFields:e,fieldList:t});if(e.length===0){let S=V({y:"",seriesIndex:0,category:a,commonStrings:n});l.push(S)}else if(c){let S=e.length>1?e:e[0],w=V({y:S,seriesIndex:0,category:a,commonStrings:n}),b=e.length>1?n.axisLabels.values:B(r.layerFieldsInfo,e[0]),p={...w,id:e[0],name:b,x:c?I:a},g=i.series.find(m=>W(S,m.y)&&m.query?.where===void 0);g!==void 0&&(!i.colorMatch&&"fillSymbol"in g&&(p.fillSymbol=g.fillSymbol,y=!0),p.id=g.id,p.name=g.name),l.push(p)}else for(let S=0;S<e.length;S+=1){let w=e[S],b=V({y:w,seriesIndex:S,category:a,commonStrings:n}),p=B(t,w),g={...b,id:w,name:p,x:a},m=i.series.find(v=>w===v.y);m!==void 0&&(!i.colorMatch&&"fillSymbol"in m&&(g.fillSymbol=m.fillSymbol,y=!0),g.id=m.id,g.name=m.name),l.push(g)}return i.series.length===1&&l.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(l[0].fillSymbol=i.series[0].fillSymbol,y=!0),i.colorMatch=!y,l}var Se=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",Ce=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function ke(o,e,i){let r=[];return o.forEach(s=>{if(s.type===f.BoxPlotSeries){let{type:n,fillSymbol:t,...l}=s;r.push({...l,type:f.LineSeries,lineSymbol:{...J({width:E}),...t!==void 0?{color:t.color}:{}},markerSymbol:{...G(),...t!==void 0?{color:t.color}:{}}})}}),r.unshift(ge({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),r}function qe(o){let e=o.slice(1),i=[];return e.forEach(r=>{if(r.type===f.LineSeries){let{type:s,lineSymbol:n,markerSymbol:t,...l}=r,a=D();i.push({...l,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function pe(o){let{formerSeries:e,newSeries:i,showMean:r}=o,s=i,n=a=>a.type===(r?f.LineSeries:f.BoxPlotSeries),t=e.filter(n).map(a=>a.id),l=i.filter(n).map(a=>a.id);return t.length===l.length&&JSON.stringify(t)!==JSON.stringify(l)&&(s=s.sort((a,y)=>t.findIndex(c=>c===a.id)-t.findIndex(c=>c===y.id))),s}async function De(o){let{config:e,layerInfo:i,commonStrings:r,splitByField:s,numericFields:n,category:t}=o,{layer:l,layerFieldsInfo:a}=i,{fetchNullValues:y}=M(e)?.query??{},c=t??A(e),{categoriesArray:S,splitByFieldType:w}=await ce({config:e,layer:l,layerFieldsInfo:a,xAxisField:_(c)?void 0:c,aggregationFields:n,splitByField:s,fetchNullValues:y,errorStrings:r.errorStrings}),b=[],p=!1,g=Ce(e);if(S.length===0){b=ue({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:r});for(let m of b)m.query&&(m.query.where=`${s}=''`)}else for(let m=0;m<S.length;m+=1){let v=S[m],q={y:n,seriesIndex:m,category:c,commonStrings:r},Q=g?Le(q):V(q),he=R({queryObject:i.layer,fieldName:s,fieldValue:v??""}),z=`${v}`,F={...Q,id:z,name:he??z,x:c===void 0||c===""?I:c,query:{...Q.query,where:`${s}=${w===ee.String&&v!==null?`'${v}'`:v}`}},x=e.series.find(we=>Se(we)===z);x!==void 0&&(e.colorMatch||(F.type===f.BoxPlotSeries?O(x)?F.fillSymbol=x.fillSymbol:F.fillSymbol={...D(),color:x.lineSymbol?.color}:O(x)?(F.lineSymbol={...J({width:E}),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}},F.markerSymbol={...G(),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}}):(F.lineSymbol=x.lineSymbol,F.markerSymbol=x.markerSymbol),p=!0),F.id=x.id,F.name=x.name),b.push(F)}if(b=pe({formerSeries:e.series,newSeries:b,showMean:Z(e)}),e.colorMatch=!p,Z(e)){let m=e.series.find(q=>q.type===f.BoxPlotSeries),v=ge({x:c,y:n,seriesTemplate:m,commonStrings:r});b.unshift(v)}return b}var so=async o=>{let{splitByField:e,numericFields:i,category:r,config:s,layerInfo:n,commonStrings:t}=o,{layerFieldsInfo:l}=n,a=Ve(r,i,e),y=ne(l),c=A(s),S=Ae(s,n,t),w=de(s,n,t),b=Me({config:s,layerInfo:n,newCategory:r}),p=Y(s);if(!y.includes(c)&&y.includes(r)?p=ie():y.includes(c)&&!y.includes(r)&&(p=oe()),p!==void 0&&ae(s,t,p),Ne(a?{newShowMeanLines:s.showMean,config:s,commonStrings:t}:{newShowMeanLines:!1,config:s,commonStrings:t}),s.series=a?await De({config:s,layerInfo:n,splitByField:e,numericFields:i,category:r,commonStrings:t}):ue({numericFields:i,config:s,layerInfo:n,category:r,commonStrings:t}),b){let g=N({fieldName:r,numericFields:i,fieldList:l})?"":B(l,r);L(s,0,g)}if(w){let g=k(s,n,t);L(s,1,g)}s?.title!==void 0&&S&&(s.title.content.text=be(s,n,t)),X({config:s,value:null,axisIndex:1,isMax:!1}),X({config:s,value:null,axisIndex:1,isMax:!0})},Te=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:r}=e,s=Te(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(t=>t.y).flat();return n=[...new Set(n)],n.length===1&&(s=B(r,n[0])),s}function be(o,e,i){let{layerFieldsInfo:r}=e,s=A(o),n=fe(o),t=Oe(o),l=n.map(c=>B(r??[],c)).join(", "),a=B(r??[],s),y="";return n.length>0&&(s!==I&&t!==""?y=P(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:l,category:a,splitByField:t}):s!==I?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:a}):t!==""?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:t}):y=P(i.titleLabels.distributionOfField,{valueField:l})),y}var no=o=>{let{series:e,splitByField:i,layerInfo:r,commonStrings:s}=o,n=typeof e.y=="string"?B(r.layerFieldsInfo,e.y):s.axisLabels.values;return U(i)||(n=Se(e)),n=R({queryObject:r.layer,fieldName:i,fieldValue:n??""})??n,n??e.id},lo=o=>o?.showOutliers??!1,to=o=>{let{newShowOutliers:e,config:i,layerInfo:r,commonStrings:s}=o;if(i.showOutliers=e,de(i,r,s)){let n=k(i,r,s);L(i,1,n)}},ao=o=>{let{newStandardizeValues:e,config:i,layerInfo:r,commonStrings:s}=o,n=T(1,i),t=k(i,r,s),l=C(i);if(i.standardizeValues=e,n===t||l){let a=k(i,r,s);L(i,1,a)}},xe=o=>{let e=d.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,r=o.orderOptions?.data&&"orderBy"in o.orderOptions.data?o.orderOptions.data.orderBy:h.Ascending;switch(i){case u.Category:e=Array.isArray(r)?d.customSort:r===h.Ascending?d.xAxisAsc:d.xAxisDesc;break;case u.Mean:e=r===h.Ascending?d.meanAsc:d.meanDesc;break;case u.Median:e=r===h.Ascending?d.medianAsc:d.medianDesc;break}return e},co=(o,e,i)=>{let r=u.Category,s=h.Ascending;if(e.orderOptions=e.orderOptions??{},o===d.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case d.xAxisAsc:{r=u.Category,s=h.Ascending;break}case d.xAxisDesc:{r=u.Category,s=h.Descending;break}case d.meanAsc:{r=u.Mean,s=h.Ascending;break}case d.meanDesc:{r=u.Mean,s=h.Descending;break}case d.medianAsc:{r=u.Median,s=h.Ascending;break}case d.medianDesc:{r=u.Median,s=h.Descending;break}}e.orderOptions.data={orderType:r,orderBy:s}}},Z=o=>o.showMean??!1,Ne=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:r,previousMeanLinesBoxColor:s}=o,n=e?s:Fe(i),t=(e??!1)!==(i.showMean??!1);if(i.showMean=e,t){let l;e?l=te(i.series)?ke(i.series,r):i.series:l=qe(i.series),l&&(l=pe({formerSeries:i.series,newSeries:l,showMean:e}),i.series=l)}return e&&s!==void 0&&Ie(s,i),{previousMeanLinesBoxColor:n}},yo=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===d.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},mo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===d.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},fo=async o=>{let{config:e,layerInfo:i,errorStrings:r}=o,s=A(e),n=Y(e)?.type,t=fe(e),l=[];return n===f.CategoryAxisFormat&&(N({fieldName:s,numericFields:t,fieldList:i.layerFieldsInfo})?l=t:_(s)||(l=await ye({layerInfo:i,config:e,category:s,errorStrings:r}))),l},_=o=>o.trim()===""||o===I,Pe=(o,e)=>e.length>1&&!_(o),Ve=(o,e,i)=>!Pe(o,e)&&i!=="";return{a:Ue,b:We,c:eo,d:Fe,e:Ie,f:oo,g:ve,h:Be,i:io,j:ro,k:A,l:Oe,m:fe,n:so,o:Te,p:k,q:be,r:no,s:lo,t:to,u:ao,v:xe,w:co,x:Z,y:Ne,z:yo,A:mo,B:fo,C:Pe,D:Ve}},"intl",a,b,c,e,g)
|
|
2
|
+
import g from"./4XTLMDXW.js";import e from"./MTJ5SVX3.js";import c from"./SOP6DF6B.js";import{c as T}from"./AUECIKS7.js";import b from"./MN73KKNM.js";import{h as O,p as te}from"./KGNYAMFB.js";import a from"./3HT3CCOV.js";import{n as B}from"./TA5LVOWS.js";import{Da as K,F as J,G as oe,H as ie,P as D,Q as G,_ as re,ca as H,n as E,p as I}from"./IQAKPU7N.js";import{a as ee}from"./75Y43JLP.js";import{d as $,g as j,k as U,l as W}from"./FIMXZMTB.js";import{b as d}from"./EZM4ZDQI.js";import{a as f,h,v as u}from"./XOB365BI.js";export default $arcgis.t(([{substitute:P},{O:M,S:se,ic:le,xb:ne,zb:R},{a:L,d:X,e:Y,f:ae,n:ce,r:ye},{a:me},{b:C},{i:N}])=>{var Ue=(o,e)=>e?.series?.[o]?.name,We=(o,e,i)=>{let r=i;r?.series?.[e]!==void 0&&(r.series[e].name=o)},eo=(o,e)=>{let i,r=e.series?.[o];return r?.type===f.BoxPlotSeries?i=r.fillSymbol?.color:r?.type===f.LineSeries&&(i=r.lineSymbol?.color),i},Fe=o=>{let e=o.series[0];return o.showMean===!0&&O(e)?e.fillSymbol?.color:void 0},Ie=(o,e)=>{let i=e.series[0];e.showMean===!0&&O(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...D(),color:o})},oo=(o,e,i)=>{let r=i?.series?.[e];r?.type===f.BoxPlotSeries&&r.fillSymbol!==void 0?r.fillSymbol.color=o:r?.type===f.LineSeries&&r.lineSymbol!==void 0&&(r.lineSymbol.color=o,r.markerSymbol!==void 0&&(r.markerSymbol.color=o))},ve=o=>o.series.map(e=>e.id),Be=(o,e)=>{e?.series?.sort((i,r)=>o.findIndex(s=>i.id===s)-o.findIndex(s=>r.id===s))},io=(o,e,i)=>{let r=ve(i),[s]=r.splice(o,1);r.splice(e,0,s),Be(r,i)},ro=o=>Z(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Ae(o,e,i){let r=be(o,e,i),s=me(o),n=C(o);return r===s||n}function de(o,e,i){let r=k(o,e,i),s=T(1,o),n=C(o);return r===s||n}function Me(o){let{config:e,layerInfo:i,newCategory:r}=o,{layerFieldsInfo:s}=i,n=A(e),t=r!==I?B(s,n):"",l=T(0,e),a=C(e);return t===l||a||l.trim()===""}var A=o=>M(o)?.x??I,Oe=$(o=>{let e=M(o),i=e?.query?.where?.split("=")[0].trim()??"";return se(e?.query?.where)?"":i},o=>M(o)?.query?.where),fe=$(o=>le(o?.series).filter(e=>e!==""),o=>o?.series),V=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...H(s,i),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)},Le=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...re({commonStrings:s,seriesIndex:i}),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)};function ge(o){let{x:e,y:i,seriesTemplate:r,commonStrings:s}=o,{id:n,fillSymbol:t}=r??{},l=H(s),a=n??`series_${Date.now()}`;return l.id=a,l.name=a,l.x=e,l.y=i,t?l.fillSymbol=t:l.fillSymbol&&(l.fillSymbol.color=K,l.fillSymbol?.outline&&(l.fillSymbol.outline.color=K)),l}function ue(o){let{numericFields:e,config:i,layerInfo:r,category:s,commonStrings:n}=o,{layerFieldsInfo:t}=r,l=[],a=s??A(i),y=!1,c=N({fieldName:a,numericFields:e,fieldList:t});if(e.length===0){let S=V({y:"",seriesIndex:0,category:a,commonStrings:n});l.push(S)}else if(c){let S=e.length>1?e:e[0],w=V({y:S,seriesIndex:0,category:a,commonStrings:n}),b=e.length>1?n.axisLabels.values:B(r.layerFieldsInfo,e[0]),p={...w,id:e[0],name:b,x:c?I:a},g=i.series.find(m=>W(S,m.y)&&m.query?.where===void 0);g!==void 0&&(!i.colorMatch&&"fillSymbol"in g&&(p.fillSymbol=g.fillSymbol,y=!0),p.id=g.id,p.name=g.name),l.push(p)}else for(let S=0;S<e.length;S+=1){let w=e[S],b=V({y:w,seriesIndex:S,category:a,commonStrings:n}),p=B(t,w),g={...b,id:w,name:p,x:a},m=i.series.find(v=>w===v.y);m!==void 0&&(!i.colorMatch&&"fillSymbol"in m&&(g.fillSymbol=m.fillSymbol,y=!0),g.id=m.id,g.name=m.name),l.push(g)}return i.series.length===1&&l.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(l[0].fillSymbol=i.series[0].fillSymbol,y=!0),i.colorMatch=!y,l}var Se=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",Ce=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function ke(o,e,i){let r=[];return o.forEach(s=>{if(s.type===f.BoxPlotSeries){let{type:n,fillSymbol:t,...l}=s;r.push({...l,type:f.LineSeries,lineSymbol:{...J({width:E}),...t!==void 0?{color:t.color}:{}},markerSymbol:{...G(),...t!==void 0?{color:t.color}:{}}})}}),r.unshift(ge({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),r}function qe(o){let e=o.slice(1),i=[];return e.forEach(r=>{if(r.type===f.LineSeries){let{type:s,lineSymbol:n,markerSymbol:t,...l}=r,a=D();i.push({...l,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function pe(o){let{formerSeries:e,newSeries:i,showMean:r}=o,s=i,n=a=>a.type===(r?f.LineSeries:f.BoxPlotSeries),t=e.filter(n).map(a=>a.id),l=i.filter(n).map(a=>a.id);return t.length===l.length&&JSON.stringify(t)!==JSON.stringify(l)&&(s=s.sort((a,y)=>t.findIndex(c=>c===a.id)-t.findIndex(c=>c===y.id))),s}async function De(o){let{config:e,layerInfo:i,commonStrings:r,splitByField:s,numericFields:n,category:t}=o,{layer:l,layerFieldsInfo:a}=i,{fetchNullValues:y}=M(e)?.query??{},c=t??A(e),{categoriesArray:S,splitByFieldType:w}=await ce({config:e,layer:l,layerFieldsInfo:a,xAxisField:_(c)?void 0:c,aggregationFields:n,splitByField:s,fetchNullValues:y,errorStrings:r.errorStrings}),b=[],p=!1,g=Ce(e);if(S.length===0){b=ue({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:r});for(let m of b)m.query&&(m.query.where=`${s}=''`)}else for(let m=0;m<S.length;m+=1){let v=S[m],q={y:n,seriesIndex:m,category:c,commonStrings:r},Q=g?Le(q):V(q),he=R({queryObject:i.layer,fieldName:s,fieldValue:v??""}),z=`${v}`,F={...Q,id:z,name:he??z,x:c===void 0||c===""?I:c,query:{...Q.query,where:`${s}=${w===ee.String&&v!==null?`'${v}'`:v}`}},x=e.series.find(we=>Se(we)===z);x!==void 0&&(e.colorMatch||(F.type===f.BoxPlotSeries?O(x)?F.fillSymbol=x.fillSymbol:F.fillSymbol={...D(),color:x.lineSymbol?.color}:O(x)?(F.lineSymbol={...J({width:E}),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}},F.markerSymbol={...G(),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}}):(F.lineSymbol=x.lineSymbol,F.markerSymbol=x.markerSymbol),p=!0),F.id=x.id,F.name=x.name),b.push(F)}if(b=pe({formerSeries:e.series,newSeries:b,showMean:Z(e)}),e.colorMatch=!p,Z(e)){let m=e.series.find(q=>q.type===f.BoxPlotSeries),v=ge({x:c,y:n,seriesTemplate:m,commonStrings:r});b.unshift(v)}return b}var so=async o=>{let{splitByField:e,numericFields:i,category:r,config:s,layerInfo:n,commonStrings:t}=o,{layerFieldsInfo:l}=n,a=Ve(r,i,e),y=ne(l),c=A(s),S=Ae(s,n,t),w=de(s,n,t),b=Me({config:s,layerInfo:n,newCategory:r}),p=Y(s);if(!y.includes(c)&&y.includes(r)?p=ie():y.includes(c)&&!y.includes(r)&&(p=oe()),p!==void 0&&ae(s,t,p),Ne(a?{newShowMeanLines:s.showMean,config:s,commonStrings:t}:{newShowMeanLines:!1,config:s,commonStrings:t}),s.series=a?await De({config:s,layerInfo:n,splitByField:e,numericFields:i,category:r,commonStrings:t}):ue({numericFields:i,config:s,layerInfo:n,category:r,commonStrings:t}),b){let g=N({fieldName:r,numericFields:i,fieldList:l})?"":B(l,r);L(s,0,g)}if(w){let g=k(s,n,t);L(s,1,g)}s?.title!==void 0&&S&&(s.title.content.text=be(s,n,t)),X({config:s,value:null,axisIndex:1,isMax:!1}),X({config:s,value:null,axisIndex:1,isMax:!0})},Te=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:r}=e,s=Te(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(t=>t.y).flat();return n=[...new Set(n)],n.length===1&&(s=B(r,n[0])),s}function be(o,e,i){let{layerFieldsInfo:r}=e,s=A(o),n=fe(o),t=Oe(o),l=n.map(c=>B(r??[],c)).join(", "),a=B(r??[],s),y="";return n.length>0&&(s!==I&&t!==""?y=P(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:l,category:a,splitByField:t}):s!==I?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:a}):t!==""?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:t}):y=P(i.titleLabels.distributionOfField,{valueField:l})),y}var no=o=>{let{series:e,splitByField:i,layerInfo:r,commonStrings:s}=o,n=typeof e.y=="string"?B(r.layerFieldsInfo,e.y):s.axisLabels.values;return U(i)||(n=Se(e)),n=R({queryObject:r.layer,fieldName:i,fieldValue:n??""})??n,n??e.id},lo=o=>o?.showOutliers??!1,to=o=>{let{newShowOutliers:e,config:i,layerInfo:r,commonStrings:s}=o;if(i.showOutliers=e,de(i,r,s)){let n=k(i,r,s);L(i,1,n)}},ao=o=>{let{newStandardizeValues:e,config:i,layerInfo:r,commonStrings:s}=o,n=T(1,i),t=k(i,r,s),l=C(i);if(i.standardizeValues=e,n===t||l){let a=k(i,r,s);L(i,1,a)}},xe=o=>{let e=d.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,r=o.orderOptions?.data&&"orderBy"in o.orderOptions.data?o.orderOptions.data.orderBy:h.Ascending;switch(i){case u.Category:e=Array.isArray(r)?d.customSort:r===h.Ascending?d.xAxisAsc:d.xAxisDesc;break;case u.Mean:e=r===h.Ascending?d.meanAsc:d.meanDesc;break;case u.Median:e=r===h.Ascending?d.medianAsc:d.medianDesc;break}return e},co=(o,e,i)=>{let r=u.Category,s=h.Ascending;if(e.orderOptions=e.orderOptions??{},o===d.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case d.xAxisAsc:{r=u.Category,s=h.Ascending;break}case d.xAxisDesc:{r=u.Category,s=h.Descending;break}case d.meanAsc:{r=u.Mean,s=h.Ascending;break}case d.meanDesc:{r=u.Mean,s=h.Descending;break}case d.medianAsc:{r=u.Median,s=h.Ascending;break}case d.medianDesc:{r=u.Median,s=h.Descending;break}}e.orderOptions.data={orderType:r,orderBy:s}}},Z=o=>o.showMean??!1,Ne=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:r,previousMeanLinesBoxColor:s}=o,n=e?s:Fe(i),t=(e??!1)!==(i.showMean??!1);if(i.showMean=e,t){let l;e?l=te(i.series)?ke(i.series,r):i.series:l=qe(i.series),l&&(l=pe({formerSeries:i.series,newSeries:l,showMean:e}),i.series=l)}return e&&s!==void 0&&Ie(s,i),{previousMeanLinesBoxColor:n}},yo=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===d.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},mo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===d.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},fo=async o=>{let{config:e,layerInfo:i,errorStrings:r}=o,s=A(e),n=Y(e)?.type,t=fe(e),l=[];return n===f.CategoryAxisFormat&&(N({fieldName:s,numericFields:t,fieldList:i.layerFieldsInfo})?l=t:_(s)||(l=await ye({layerInfo:i,config:e,category:s,errorStrings:r}))),l},_=o=>o.trim()===""||o===I,Pe=(o,e)=>e.length>1&&!_(o),Ve=(o,e,i)=>!Pe(o,e)&&i!=="";return{a:Ue,b:We,c:eo,d:Fe,e:Ie,f:oo,g:ve,h:Be,i:io,j:ro,k:A,l:Oe,m:fe,n:so,o:Te,p:k,q:be,r:no,s:lo,t:to,u:ao,v:xe,w:co,x:Z,y:Ne,z:yo,A:mo,B:fo,C:Pe,D:Ve}},"intl",a,b,c,e,g)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import t from"./
|
|
2
|
+
import t from"./RFHFROHC.js";import s from"./BEXNQ35Z.js";import q from"./BJN67WF3.js";import p from"./G3SJZA6D.js";import o from"./4XTLMDXW.js";import n from"./PT7JLUU5.js";import m from"./ZVP3LPXT.js";import l from"./CGXUIXWV.js";import k from"./6YSYIJPF.js";import"./7MKAC33Z.js";import j from"./47WVBVWY.js";import i from"./RHGQZAJA.js";import h from"./MTJ5SVX3.js";import g from"./5I7LPWVQ.js";import f from"./SOP6DF6B.js";import"./AUECIKS7.js";import e from"./FDDIZXKN.js";import d from"./G2OVO7ZF.js";import b from"./MN73KKNM.js";import"./KGNYAMFB.js";import a from"./3HT3CCOV.js";import"./777EBGS5.js";import{r as S}from"./TA5LVOWS.js";import{pa as _}from"./IQAKPU7N.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./KCJX3NXP.js";import"./P4TC6MLD.js";import"./TOO3T62Y.js";import{c as r}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as u,b as c}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{rb:l},,,{c:i},,,,,,,,,,{e:y},,,{$:J,A:x,B:v,C:L,D:b,E:R,F:w,G:D,H:I,I:P,J:k,K:B,L:N,M:U,N:W,O:M,P:h,Q:m,R:Y,S:E,T:G,U:H,V:V,W:X,X:j,Y:Z,Z:q,_:z,aa:K,ba:Q,ca:$,da:tt,ea:et,fa:it,ga:st,ha:ot,ia:rt,ja:nt,ka:at,la:gt,pa:f,v:C,w:T,x:A,y:F,z:O},{a:pt,b:ct,d:lt}])=>{var yt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,s=(p,t,o,a)=>{for(var n=ht(t,o),g=p.length-1,d;g>=0;g--)(d=p[g])&&(n=d(t,o,n)||n);return n&&yt(t,o,n),n},e=class extends lt{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?gt(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}get layer(){return super.layer}async setup(t){await this.loadConfigFromLayer(t),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return L(this._config)}set yAxisField(t){v({yField:t,config:this._config,layerInfo:this.layerInfo})}get viewType(){return J(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{K(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return R(this._config)}set xTemporalBinning(t){b({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return D(this._config)}set yTemporalBinning(t){w({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return Q(this._config)}set breaksCount(t){this.guardSetterFromAsyncOverwrite(()=>{$(t,this._config),this.emitConfigUpdate("breaksCount")})}get classificationMethod(){return tt(this._config)}set classificationMethod(t){this.guardSetterFromAsyncOverwrite(()=>{t&&(et(t,this._config),this.emitConfigUpdate("classificationMethod"))})}get colorRampName(){return ot(this._config)}set colorRampName(t){rt(t,this._config)}get isColorRampFlipped(){return nt(this._config)}set isColorRampFlipped(t){at(t,this._config)}get hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){I(t,this._config)}get gridLineColor(){return B(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return pt(0,this._config)}set seriesName(t){typeof t=="string"&&ct(t,0,this._config)}get heatRulesType(){return F(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return x(this._config)}set gradientRules(t){O(this._config,t)}getGridLinesSymbol(){return this._config.series?.[0]?.gridLine}setGridLinesSymbol(t){this._config.series?.[0]&&(this._config.series[0].gridLine=t)}get numericFields(){let t=W(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:o}=l(this.layerInfo.layer),a=S(t[0]),n=a?o:t[0];M({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=h(this._config);a&&g!==c.Count&&m({aggregationType:c.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get aggregationType(){return h(this._config)}set aggregationType(t){m({aggregationType:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return""}set splitByField(t){}get legendPosition(){return U(this._config)}set legendPosition(t){N(t,this._config)}get nullPolicy(){return Y(this._config)}set nullPolicy(t){E(t,this._config)}get emptyCell(){return G(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{H(t,this._config),this.emitConfigUpdate("emptyCell")})}getSortOrder(){return r.Asc}setSortOrder(t,o){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,o){y(t,this._config,o)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,o){y(t,this._config,o,!0)}get emptyCellText(){return V(this._config)}set emptyCellText(t){X(t,this._config)}get includeLeapDay(){return j(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{Z(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return st(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return q(this._config)}set emptyCellSymbol(t){z(t,this._config)}get rotated(){return!1}set rotated(t){}setAssignToSecondValueAxis(t,o){}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,l(this.layerInfo.layer).idField);return t.axes?.forEach((o,a)=>{o&&(o.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};s([i],e.prototype,"yAxisField");s([i],e.prototype,"xTemporalBinning");s([i],e.prototype,"yTemporalBinning");s([i],e.prototype,"colorRampName");s([i],e.prototype,"isColorRampFlipped");s([i],e.prototype,"hideEmptyRowsAndColumns");s([i],e.prototype,"gridLineWidth");s([i],e.prototype,"gridLineColor");s([i],e.prototype,"seriesName");s([i],e.prototype,"heatRulesType");s([i],e.prototype,"gradientRules");s([i],e.prototype,"setGridLinesSymbol");s([i],e.prototype,"numericFields");s([i],e.prototype,"aggregationType");s([i],e.prototype,"splitByField");s([i],e.prototype,"legendPosition");s([i],e.prototype,"nullPolicy");s([i],e.prototype,"setSortOrder");s([i],e.prototype,"setXAxisSortOrder");s([i],e.prototype,"setYAxisSortOrder");s([i],e.prototype,"emptyCellText");s([i],e.prototype,"firstDayOfWeek");s([i],e.prototype,"emptyCellSymbol");s([i],e.prototype,"rotated");s([i],e.prototype,"setAssignToSecondValueAxis");s([i],e.prototype,"stackedType");s([i],e.prototype,"binTemporalData");s([i],e.prototype,"nullCategory");return e},a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{A as c,B as e,G as a,g as s,i as l}from"./
|
|
2
|
+
import{A as c,B as e,G as a,g as s,i as l}from"./P4TC6MLD.js";import"./QPIMTXPL.js";var t={fieldSelectButtonSection:"field-select-btn-section",fieldSelectButton:"field-select-btn",fieldSelectButtonText:"field-select-btn-text",fieldSelectButtonIcon:"field-select-btn-icon",fieldSelectButtonInvalid:"field-select-btn-invalid"},d=s`.field-select-btn-section{background-color:var(--arcgis-charts-input-background);min-width:100%}.field-select-btn{background:var(--arcgis-charts-background-clear);border:1px solid;border-radius:var(--arcgis-charts-border-radius);display:flex;align-items:center;justify-content:space-between;padding:var(--arcgis-charts-side-spacing-half) var(--arcgis-charts-side-spacing-quarter);cursor:pointer;width:100%;text-align:unset}.field-select-btn:not(.field-select-btn-invalid){border-color:var(--arcgis-charts-border)}.field-select-btn.field-select-btn-invalid{border-color:var(--arcgis-charts-border-invalid)}.field-select-btn-exp{width:calc(100% - 32px)}.field-select-btn-exp .field-select-btn{border:none;border-radius:0;border-right:1px solid var(--arcgis-charts-border)}.field-select-btn-text{flex:0 1 auto;overflow:hidden;padding:0 var(--arcgis-charts-side-spacing-eighth);text-overflow:ellipsis;white-space:nowrap}.field-select-btn-icon{flex:0 0 0%;padding:0 var(--arcgis-charts-side-spacing-half)}.field-select-btn:disabled{cursor:default}`,i=class extends c{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1}static{this.properties={label:1,disabled:5,invalid:5}}static{this.styles=d}render(){let r=`${t.fieldSelectButton} ${this.invalid?t.fieldSelectButtonInvalid:""}`;return l`<div class=${e(t.fieldSelectButtonSection)}><button class=${e(r)} .disabled=${this.disabled}><span class=${e(t.fieldSelectButtonText)}>${this.label}</span><slot name=fieldSelectSlot></slot><span class=${e(t.fieldSelectButtonIcon)}><calcite-icon scale=s icon=chevron-down></calcite-icon></span></button></div>`}};a("arcgis-charts-config-field-select",i);export{i as ArcgisChartsConfigFieldSelect};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{q as U}from"./KGNYAMFB.js";import a from"./
|
|
2
|
+
import{q as U}from"./KGNYAMFB.js";import a from"./3HT3CCOV.js";import{e as v}from"./777EBGS5.js";import{C as $,j as k,n as b,r as M}from"./TA5LVOWS.js";import{C as j,E as B,G as C,W as T,c as q,wa as V}from"./IQAKPU7N.js";import{a as w}from"./43P4WOC4.js";import{a as g,b as y,f as L,h as A}from"./XOB365BI.js";export default $arcgis.t(([{substitute:D},{Hb:S,R:E,ac:O,fb:I,rb:N,yb:P,zb:h}])=>{function ie(i,e,a){let t=i?.axes?.[e];t?.title!==void 0?t.title.content.text=a:t!==void 0&&(t.title=B({text:a,visible:!0,font:j(q.AxisTitle)}))}function re(i){let{config:e,layerInfo:a,commonStrings:t,numericFields:r,aggregationType:s}=i,o="";if(e)if(k(e)===L.Stacked100)o=t.utilsStrings.statistics.percent;else{let n=V(s,t);if(e.series[0]?.type===g.HeatSeries)o=b(a.layerFieldsInfo,e.series[0].y);else if(r.length===1){let u=b(a.layerFieldsInfo,r[0]),f=N(a.layer).idField;s===y.NoAggregation?o=u:s===y.Count&&f!==void 0&&r[0]===f?o=t.utilsStrings.statistics.count:o=D(t.axisLabels.aggregationOfFieldName,{aggregation:n,fieldName:u})}else r.length>1&&(s===y.NoAggregation?o=t.axisLabels.values:o=D(t.axisLabels.aggregationOfValues,{aggregation:n}))}return o}var G=(i,e,a)=>i.axes?.[e]??T(a,i.type)[e],Q=i=>{let{config:e,axis:a,axisIndex:t}=i;e.axes!==void 0&&(e.axes[t]=a)},se=i=>{let{config:e,axisIndex:a,isMax:t}=i,r=Number.NaN;return t?r=e.axes?.[a]?.maximum:r=e.axes?.[a]?.minimum,r??Number.NaN},H=i=>{let{config:e,value:a,axisIndex:t,isMax:r}=i,s=e?.axes?.[t];s!==void 0&&(r?s.maximum=a:s.minimum=a)},oe=i=>i.axes?.[0]?.valueFormat??C(),ne=(i,e,a)=>{let t=G(i,0,e);if(t!==void 0&&a!==void 0){let r={...t,valueFormat:a};Q({config:i,axis:r,axisIndex:0})}},le=(i,e,a)=>{let t=i.axes?.[e];t!==void 0&&(t.integerOnlyValues=a)},W=i=>{let e=w(i.series);return e===g.BarSeries||e===g.ComboLineAndBarSeries||e===g.LineSeries},X=i=>{let{axisIndex:e,config:a,isMultiAxis:t}=i,r=!1;return e===0||e===1&&t?r=!0:e===2&&(r=W(a)),r},ce=i=>{let{axisIndex:e,func:a,config:t}=i;return X({axisIndex:e,config:t,isMultiAxis:!0})?a(e):void 0},K=(i,e)=>{let a,t=e.axes?.[i]?.valueFormat;return(i===0||i>=1&&U(t))&&(a=t),a},ge=i=>{let{config:e,commonStrings:a,valueFormat:t,axisIndex:r=0}=i,s=G(e,r,a);if(s!==void 0&&t!==void 0){let o={...s,valueFormat:t};Q({config:e,axis:o,axisIndex:r})}},ue=(i,e)=>i.axes?.[e]?.isLogarithmic??!1,fe=i=>{let{config:e,isLogarithmic:a,axisIndex:t}=i,r=e.axes?.[t];r&&(r.isLogarithmic=a,H({config:e,value:null,axisIndex:t,isMax:!0}),H({config:e,value:null,axisIndex:t,isMax:!1}))},de=i=>{let{config:e,scrollbar:a,axisIndex:t}=i;e.axes?.[t]!==void 0&&(e.axes[t].scrollbar=a)};async function xe(i){let{config:e,layer:a,xAxisField:t,splitByField:r,layerFieldsInfo:s,aggregationFields:o,fetchNullValues:n,errorStrings:u}=i,f=s.filter(F=>F.name===r)[0]?.type,d=n!==!0?`${r} IS NOT NULL`:"",x=t&&n!==!0?`${t} IS NOT NULL`:"",{where:l}=e?.dataFilters??{},R={where:S([l,d,x]),orderByFields:M(r)?[]:[`${r} ${A.Ascending}`],geometry:e?.dataFilters?.geometry},p="";o?.length===0?p=N(a).idField:o&&([p]=o);let m=a?v(a)?await I({layer:a,category:e?.series[0].x??"",splitByField:r}):await O({queryObject:a,category:e?.series[0].x??"",splitByField:r,queryConfig:R,errorStrings:u}):[];if(m=m.slice(0,500),e){let F=e?.series.map(c=>E({where:c.query?.where})?.toString()??"").filter(c=>c!==void 0&&c!=="");m=$({arrayA:m,arrayB:F,getKey:c=>c===null?null:c?.toString()})}return{categoriesArray:m,splitByFieldType:f,numericalField:p}}function me(i,e){let a=e==="";for(let t of i)if(e===t.name){a=!0;break}return a}function ye(i,e){let a=P(i),t=e.length===0,r=0;for(let s of e){for(let o of a)if(s===o&&(r+=1),r===e.length){t=!0;break}if(t)break}return t}function pe(i,e){e.forEach(a=>{Object.getOwnPropertyNames(a.prototype).forEach(t=>{Object.defineProperty(i.prototype,t,Object.getOwnPropertyDescriptor(a.prototype,t)||Object.create(null))})})}async function Fe(i){let{layerInfo:e,config:a,category:t,errorStrings:r}=i,{layer:s}=e,{where:o}=a?.dataFilters??{},{fetchNullValues:n}=a?.series?.[0]?.query??{},u=n!==!0?`${t} IS NOT NULL`:"",f={where:S([o,u]),orderByFields:[],geometry:a?.dataFilters?.geometry},d;return v(s)?d=(await I({layer:s,category:t,fetchNullValues:n})).map(x=>{let l=String(x);return h({queryObject:e.layer,fieldName:t,fieldValue:l})??l}):d=(await O({queryObject:s,category:t,queryConfig:f,errorStrings:r})).map(x=>{let l=String(x);return h({queryObject:e.layer,fieldName:t,fieldValue:l})??l}),d}function be(i){return i!==void 0&&K(0,i)?.type===g.CategoryAxisFormat&&K(1,i)?.type===g.CategoryAxisFormat}return{a:ie,b:re,c:se,d:H,e:oe,f:ne,g:le,h:ce,i:K,j:ge,k:ue,l:fe,m:de,n:xe,o:me,p:ye,q:pe,r:Fe,s:be}},"intl",a)
|