@arcgis/charts-components 5.2.0-next.102 → 5.2.0-next.104

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.
Files changed (127) hide show
  1. package/dist/cdn/{X2FMGJRP.js → 25IIAVUC.js} +1 -1
  2. package/dist/cdn/{GVJ5WCQD.js → 2D4RIU3R.js} +1 -1
  3. package/dist/cdn/{O4DFT4N4.js → 2DEL5TJ7.js} +1 -1
  4. package/dist/cdn/{BWLRC2U5.js → 2E6PIVZ3.js} +1 -1
  5. package/dist/cdn/{4DR6JUR7.js → 3LBX5I52.js} +1 -1
  6. package/dist/cdn/{YHC6WRNQ.js → 4AV26VPX.js} +1 -1
  7. package/dist/cdn/{SXT66JGI.js → 56YB7O3M.js} +1 -1
  8. package/dist/cdn/{ULQSD4KK.js → 5E4DFHD2.js} +1 -1
  9. package/dist/cdn/{42FKRE56.js → 5M4VSXF5.js} +1 -1
  10. package/dist/cdn/{42PLGMOG.js → 6HQZ5JJT.js} +1 -1
  11. package/dist/cdn/{OURE3TA5.js → 6I4QCKNB.js} +1 -1
  12. package/dist/cdn/{6VIPQGM6.js → 6IX32XNU.js} +1 -1
  13. package/dist/cdn/{B46RQ2MZ.js → 6P5RUNL4.js} +1 -1
  14. package/dist/cdn/{2INZEFXR.js → A32OUH5N.js} +1 -1
  15. package/dist/cdn/{JCCCT72R.js → ACIKRH3F.js} +1 -1
  16. package/dist/cdn/{IBMPLHXH.js → ADHDTBG4.js} +1 -1
  17. package/dist/cdn/{KODMEY56.js → AIAPONGU.js} +1 -1
  18. package/dist/cdn/{T75QDGXB.js → APB46III.js} +1 -1
  19. package/dist/cdn/{LZ7SW2R3.js → AR42YXOQ.js} +1 -1
  20. package/dist/cdn/{RGIL6ZEZ.js → ASI3OTVS.js} +1 -1
  21. package/dist/cdn/{H2R62NYZ.js → ASWFZXWR.js} +1 -1
  22. package/dist/cdn/{AA456L7Q.js → BLTNIKAX.js} +1 -1
  23. package/dist/cdn/{MMUAG4IX.js → BPHPASCX.js} +1 -1
  24. package/dist/cdn/{UCHQXTEC.js → BQIVBJC6.js} +1 -1
  25. package/dist/cdn/{SS7GYFUD.js → C6YOQVOB.js} +1 -1
  26. package/dist/cdn/{4U63XRSZ.js → CUFMJAOH.js} +1 -1
  27. package/dist/cdn/{X733UM32.js → D7HL5TOZ.js} +1 -1
  28. package/dist/cdn/{7GTZX5NP.js → DDPCQLH7.js} +1 -1
  29. package/dist/cdn/{NJF5UIYM.js → DIA75CKV.js} +1 -1
  30. package/dist/cdn/{7NGEMDYM.js → E4NCL4M4.js} +1 -1
  31. package/dist/cdn/{PT2OG4W2.js → FHSOGQIM.js} +1 -1
  32. package/dist/cdn/{EJW2UHAB.js → GJCCH4ZB.js} +1 -1
  33. package/dist/cdn/{OIWZXO7H.js → GNFP2CXI.js} +1 -1
  34. package/dist/cdn/{RD7TKIQS.js → GTBMCBRY.js} +1 -1
  35. package/dist/cdn/{Q366CY3F.js → GW3DBKAB.js} +10 -10
  36. package/dist/cdn/{ZDKUHFRX.js → HDQMSJNX.js} +1 -1
  37. package/dist/cdn/{AZYYQMCD.js → HFIBFLMU.js} +1 -1
  38. package/dist/cdn/{JZMYBU7B.js → HGQUPZ2D.js} +1 -1
  39. package/dist/cdn/{E6JK3JRJ.js → I2N7DZC6.js} +1 -1
  40. package/dist/cdn/{ZK72BJCQ.js → IEWOWYUS.js} +1 -1
  41. package/dist/cdn/{KYOCE6FA.js → JIFGUAST.js} +1 -1
  42. package/dist/cdn/{6DYDDJKB.js → K4DOT5PU.js} +1 -1
  43. package/dist/cdn/{YFMHKHFE.js → KJRFPLJU.js} +1 -1
  44. package/dist/cdn/{XGWHDERD.js → KLL3HPL2.js} +1 -1
  45. package/dist/cdn/{VQMG3F5Z.js → KZFSBW6I.js} +1 -1
  46. package/dist/cdn/{22V4YZLT.js → L4DH3UPO.js} +1 -1
  47. package/dist/cdn/{JVHMHWIM.js → LROOQ7ZG.js} +1 -1
  48. package/dist/cdn/{EWIMT2AS.js → MA2W3LRP.js} +1 -1
  49. package/dist/cdn/{VWUW3HFU.js → MIIK4YRO.js} +1 -1
  50. package/dist/cdn/{AMIDKZA2.js → MJPN22Y4.js} +1 -1
  51. package/dist/cdn/{KKE5EKYC.js → N66TGPHC.js} +1 -1
  52. package/dist/cdn/{E6E2KLJ2.js → NUPNG565.js} +1 -1
  53. package/dist/cdn/{4A4EW5Z5.js → NVWUW2QZ.js} +1 -1
  54. package/dist/cdn/{UVESG7TY.js → NZQDDEWX.js} +1 -1
  55. package/dist/cdn/{6H6SZO4Y.js → O4PD2PGE.js} +1 -1
  56. package/dist/cdn/{H2ECCBL7.js → P72U7INS.js} +1 -1
  57. package/dist/cdn/{EB4CM3YK.js → PKOUMDEH.js} +1 -1
  58. package/dist/cdn/{JSVAA6N4.js → PPBHFOTV.js} +1 -1
  59. package/dist/cdn/{SIHW3QVG.js → R6QBA2OM.js} +1 -1
  60. package/dist/cdn/{HUMEIOOQ.js → R7ZATTXB.js} +1 -1
  61. package/dist/cdn/{SZSTCHLY.js → RCRWMQ26.js} +1 -1
  62. package/dist/cdn/{G3KO465U.js → RODCWBRR.js} +1 -1
  63. package/dist/cdn/{QO2RH3XB.js → SBDG2R25.js} +1 -1
  64. package/dist/cdn/{WTOK3YQI.js → SHIGOWHL.js} +1 -1
  65. package/dist/cdn/{AIQU35U3.js → SWCX7ONX.js} +1 -1
  66. package/dist/cdn/{QPX4FNCB.js → T2PEASLR.js} +1 -1
  67. package/dist/cdn/{5GDVKAX5.js → TFISDVHR.js} +1 -1
  68. package/dist/cdn/{ZLARROJV.js → TLXWSOHC.js} +1 -1
  69. package/dist/cdn/{3XSL5VPN.js → UDQWJ62J.js} +1 -1
  70. package/dist/cdn/{WMYNPECY.js → UUVUD77I.js} +1 -1
  71. package/dist/cdn/{RNGQEQRO.js → VWTEPWOK.js} +1 -1
  72. package/dist/cdn/{DLMRATCW.js → W4G2U5DY.js} +1 -1
  73. package/dist/cdn/{W66Q5TB6.js → W5TZDZZJ.js} +1 -1
  74. package/dist/cdn/{7FPQDD3C.js → WP4MTZZ4.js} +1 -1
  75. package/dist/cdn/{2RSKVWTZ.js → WQ3R3KT4.js} +1 -1
  76. package/dist/cdn/{M4G6TGMS.js → XCGSICB5.js} +1 -1
  77. package/dist/cdn/{S6RBDFHP.js → XYMCBIW5.js} +1 -1
  78. package/dist/cdn/{455LSMAU.js → YNSSLWJT.js} +1 -1
  79. package/dist/cdn/{3NLKE6ZN.js → ZFDAOSJJ.js} +1 -1
  80. package/dist/cdn/{OGH6DSQR.js → ZM5TS7H5.js} +1 -1
  81. package/dist/cdn/{KYESCAI2.js → ZT55JUCT.js} +1 -1
  82. package/dist/cdn/index.js +1 -1
  83. package/dist/cdn/model/shared/setup-utils.js +1 -1
  84. package/dist/chunks/index.js +1 -8
  85. package/dist/docs/api.json +1 -1
  86. package/dist/docs/docs.json +1 -1
  87. package/dist/docs/web-types.json +1 -1
  88. package/package.json +5 -5
  89. /package/dist/cdn/{CTMOMBBM.js → 22DIZM2P.js} +0 -0
  90. /package/dist/cdn/{BK2QOEX2.js → 2O2ZA6UO.js} +0 -0
  91. /package/dist/cdn/{5BZCHVPD.js → 4MZSVX5W.js} +0 -0
  92. /package/dist/cdn/{MJVTTSEV.js → 5KJE3IGJ.js} +0 -0
  93. /package/dist/cdn/{6MALKAJY.js → 5N2TLPKQ.js} +0 -0
  94. /package/dist/cdn/{ATWR3DSK.js → 6JQTSYII.js} +0 -0
  95. /package/dist/cdn/{QZIF3GED.js → 6M2ZNCH6.js} +0 -0
  96. /package/dist/cdn/{5VHWJWWP.js → 6OBSUHMH.js} +0 -0
  97. /package/dist/cdn/{AAHQPRYK.js → 7QCDHUXE.js} +0 -0
  98. /package/dist/cdn/{3DGX6WFJ.js → A55ZLPZQ.js} +0 -0
  99. /package/dist/cdn/{HZUBDLNR.js → A6K5NPU6.js} +0 -0
  100. /package/dist/cdn/{U25H6VUE.js → AEJ4OWWK.js} +0 -0
  101. /package/dist/cdn/{FLUZSJXH.js → B3KKBK7R.js} +0 -0
  102. /package/dist/cdn/{V4NEFGS3.js → BK52OYAM.js} +0 -0
  103. /package/dist/cdn/{3W64DBHG.js → DWWJB3RS.js} +0 -0
  104. /package/dist/cdn/{65WMT7WD.js → EVKBZUDE.js} +0 -0
  105. /package/dist/cdn/{QHJSE3P3.js → F65OW2NU.js} +0 -0
  106. /package/dist/cdn/{OH3X6QIK.js → FCFAN63J.js} +0 -0
  107. /package/dist/cdn/{PAPE3NIS.js → GRRD6G34.js} +0 -0
  108. /package/dist/cdn/{XOB6RSOR.js → K6V7ODNF.js} +0 -0
  109. /package/dist/cdn/{QTAETIIH.js → K7OYAJNO.js} +0 -0
  110. /package/dist/cdn/{5V2YHARQ.js → KYEVNAYY.js} +0 -0
  111. /package/dist/cdn/{V54RTUAV.js → LAPLSGZY.js} +0 -0
  112. /package/dist/cdn/{2OAB6VMZ.js → LNR2Y4AV.js} +0 -0
  113. /package/dist/cdn/{IRIGTY65.js → LXTENPD7.js} +0 -0
  114. /package/dist/cdn/{DWO7GMVE.js → LYKD4O7U.js} +0 -0
  115. /package/dist/cdn/{2TNZTI5Q.js → NLFZ76DJ.js} +0 -0
  116. /package/dist/cdn/{H7Z3QWIW.js → OZPCANBC.js} +0 -0
  117. /package/dist/cdn/{4YKB2PME.js → PVRAR67F.js} +0 -0
  118. /package/dist/cdn/{FSEQQXRO.js → R3END4O2.js} +0 -0
  119. /package/dist/cdn/{WKRD4TIL.js → RBQG2UIF.js} +0 -0
  120. /package/dist/cdn/{NWYSPTLF.js → SIZ6M6MJ.js} +0 -0
  121. /package/dist/cdn/{PMFGLOZL.js → SWBYVQVE.js} +0 -0
  122. /package/dist/cdn/{TNUZFQGZ.js → UBGDVDOX.js} +0 -0
  123. /package/dist/cdn/{S6CNTZIE.js → VSBDAO7G.js} +0 -0
  124. /package/dist/cdn/{N7VRRNQD.js → WE5T6HME.js} +0 -0
  125. /package/dist/cdn/{HJSR7M2A.js → X4BQWX3B.js} +0 -0
  126. /package/dist/cdn/{JMR2NH33.js → XDBVOUI2.js} +0 -0
  127. /package/dist/cdn/{7TTQNVC5.js → ZOC5OCZL.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import w from"./VQMG3F5Z.js";import{a as R,b as z,c as U,d as j}from"./2YDNWOWT.js";import v from"./DLMRATCW.js";import u from"./RNGQEQRO.js";import t from"./KODMEY56.js";import s from"./B46RQ2MZ.js";import r from"./JZMYBU7B.js";import q from"./4DR6JUR7.js";import o from"./ZK72BJCQ.js";import n from"./W66Q5TB6.js";import l from"./RGIL6ZEZ.js";import"./RPUEIRTH.js";import k from"./AMIDKZA2.js";import i from"./AA456L7Q.js";import"./3ZKNY2GI.js";import h from"./X733UM32.js";import e from"./42PLGMOG.js";import c from"./SS7GYFUD.js";import a from"./QO2RH3XB.js";import"./VQU2TVX7.js";import"./WOGALV3T.js";import{B as b,Ga as m,fa as O,i as x,m as f,ma as D,n as p,p as d}from"./62GSQDTE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./5SYHQWPP.js";import{l as g}from"./225VUGML.js";import"./P3AYFJRV.js";import{b as W}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as M}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{jc:P,pa:l},{n:E,o:N,p:V,q:A},,{e:t},,ge,{b:we,d:Ie,f:Ce},{b:Fe,d:Be,f:Le},{d:ye,e:ue},,{b:ve},{a:fe,b:pe,c:de,d:me},{a:Se,b:_e},,{b:Me},{A:ae,B:w,C:I,D:C,E:he,F:le,G:ce,a:k,b:T,c:q,d:y,e:G,f:Y,g:u,h:S,i:H,j:J,k:K,l:Q,m:X,n:Z,o:$,p:_,q:ee,r:se,s:ie,t:F,u:te,v:oe,w:re,x:B,y:L,z:ne}])=>{var De=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,r=(c,e,s,a)=>{for(var o=Pe(e,s),n=c.length-1,h;n>=0;n--)(h=c[n])&&(o=h(e,s,o)||o);return o&&De(e,s,o),o},i=class extends ge{constructor(){super(...arguments),this._chartType=M.BoxPlotSeries,this._category=d,this._splitByField="",this._numericFields=[]}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(e){let s=e.trim()==="";this._category=s?d:e,this.processSeriesRebuild("category")}get numericFields(){return this._numericFields}set numericFields(e){let{layerFieldsInfo:s}=this.layerInfo;typeof e=="string"&&(e=[e]),V(s,e)?(this._numericFields=e,le(this._category,this._numericFields)&&(this._splitByField=""),this.processSeriesRebuild("numericFields")):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(e){N(this.layerInfo.layerFieldsInfo,e)?(this._splitByField=e,this.processSeriesRebuild("splitByField")):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return te(this._config)}set showOutliers(e){oe({newShowOutliers:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return ee(this._config)}set standardizeValues(e){re({newStandardizeValues:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return B(this._config)}setSortOrder(e,s){L(e,this._config,s)}async getCustomSortValues(){return await C({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let s=B(this._config);if(s===W.customSort){this.startAsyncUpdate();let a=await C({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});L(s,this._config,a),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return w(this._config)}set orderByList(e){I(e,this._config)}async updateSeriesFromLayerFilter(){await this.processSeriesRebuild("updateSeriesFromLayerFilter")}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get showMeanLines(){return ne(this._config)}set showMeanLines(e){let{previousMeanLinesBoxColor:s}=ae({newShowMeanLines:e,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=s}get meanLinesBoxColor(){return Y(this._config)}set meanLinesBoxColor(e){u(e,this._config)}setupLocalProps(){this._category=X(this._config),this._splitByField=Z(this._config),this._numericFields=$(this._config)}generateDefaultConfig(){let e=D(this.commonStrings);return e.series=[O(this.commonStrings)],e}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return ce(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):_(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){let{fetchNullValues:e}=P(this._config)?.query??{};return this.splitByFieldInfos=await E({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:he(this._category)?void 0:this._category,aggregationFields:this.numericFields,splitByField:this._splitByField,fetchNullValues:e,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}getSeriesName(e){return q(e,this._config)}setSeriesName(e,s){y(e,s,this._config)}getSeriesColor(e){return G(e,this._config)}setSeriesColor(e,s){S(e,s,this._config)}getSeriesLineStyle(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return R(s)}setSeriesLineStyle(e,s){this.showMeanLines===!0&&k({style:e,seriesIndex:s,config:this._config})}getSeriesLineWidth(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return U(s)}setSeriesLineWidth(e,s){this.showMeanLines===!0&&T({width:e,seriesIndex:s,config:this._config})}get orderOfSeries(){return H(this._config)}set orderOfSeries(e){J(e,this._config)}moveSeries(e,s){K(e,s,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return Q(this._config)}moveCustomSortValuesInOrderByList(e,s){let a=w(this._config),[o]=a.splice(e,1);a.splice(s,0,o),I(a,this._config)}generateChartTitle(){return ie(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return se(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let e=this.showMeanLines===!0?1:0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),a=b({colorIndex:e,opacity:x}),o=this._config.series[e];S(a,e,this._config);let n=F({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});y(n??s,e,this._config),this.showMeanLines===!0&&l(o)&&(z(f,o),j(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,a=!1,o=!1;if(!e)for(let n=this.showMeanLines===!0?1:0;n<this.seriesLength;n+=1){let h=this._config.series[n],v=F({series:h,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),xe=this.getSeriesName(n);if(v!==void 0&&v!==xe){a=!0;break}if(this.showMeanLines===!0&&l(h)){let be=this.getSeriesLineStyle(n),Oe=this.getSeriesLineWidth(n);if(be!==f||Oe!==p){o=!0;break}}}return e||s||a||o}};r([t],i.prototype,"showOutliers");r([t],i.prototype,"standardizeValues");r([t],i.prototype,"setSortOrder");r([t],i.prototype,"setDataFilters");r([t],i.prototype,"orderByList");r([t],i.prototype,"showMeanLines");r([t],i.prototype,"meanLinesBoxColor");r([t],i.prototype,"resetConfig");r([t],i.prototype,"setSeriesName");r([t],i.prototype,"setSeriesColor");r([t],i.prototype,"setSeriesLineStyle");r([t],i.prototype,"setSeriesLineWidth");r([t],i.prototype,"orderOfSeries");r([t],i.prototype,"moveSeries");r([t],i.prototype,"moveCustomSortValuesInOrderByList");r([t],i.prototype,"resetSeriesStyling");var We=[Se,fe,pe,de,Me,me,ve,_e,we,ye,Ie,ue,Fe,Be,Le,Ce];A(i,We);return i},a,c,e,h,i,k,l,n,o,q,r,s,t,u,v,w)
2
+ import w from"./KZFSBW6I.js";import{a as R,b as z,c as U,d as j}from"./2YDNWOWT.js";import v from"./W4G2U5DY.js";import u from"./VWTEPWOK.js";import t from"./AIAPONGU.js";import s from"./6P5RUNL4.js";import r from"./HGQUPZ2D.js";import q from"./3LBX5I52.js";import o from"./IEWOWYUS.js";import n from"./W5TZDZZJ.js";import l from"./ASI3OTVS.js";import"./RPUEIRTH.js";import k from"./MJPN22Y4.js";import i from"./BLTNIKAX.js";import"./3ZKNY2GI.js";import h from"./D7HL5TOZ.js";import e from"./6HQZ5JJT.js";import c from"./C6YOQVOB.js";import a from"./SBDG2R25.js";import"./VQU2TVX7.js";import"./WOGALV3T.js";import{B as b,Ga as m,fa as O,i as x,m as f,ma as D,n as p,p as d}from"./62GSQDTE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./5SYHQWPP.js";import{l as g}from"./225VUGML.js";import"./P3AYFJRV.js";import{b as W}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as M}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{jc:P,pa:l},{n:E,o:N,p:V,q:A},,{e:t},,ge,{b:we,d:Ie,f:Ce},{b:Fe,d:Be,f:Le},{d:ye,e:ue},,{b:ve},{a:fe,b:pe,c:de,d:me},{a:Se,b:_e},,{b:Me},{A:ae,B:w,C:I,D:C,E:he,F:le,G:ce,a:k,b:T,c:q,d:y,e:G,f:Y,g:u,h:S,i:H,j:J,k:K,l:Q,m:X,n:Z,o:$,p:_,q:ee,r:se,s:ie,t:F,u:te,v:oe,w:re,x:B,y:L,z:ne}])=>{var De=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,r=(c,e,s,a)=>{for(var o=Pe(e,s),n=c.length-1,h;n>=0;n--)(h=c[n])&&(o=h(e,s,o)||o);return o&&De(e,s,o),o},i=class extends ge{constructor(){super(...arguments),this._chartType=M.BoxPlotSeries,this._category=d,this._splitByField="",this._numericFields=[]}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(e){let s=e.trim()==="";this._category=s?d:e,this.processSeriesRebuild("category")}get numericFields(){return this._numericFields}set numericFields(e){let{layerFieldsInfo:s}=this.layerInfo;typeof e=="string"&&(e=[e]),V(s,e)?(this._numericFields=e,le(this._category,this._numericFields)&&(this._splitByField=""),this.processSeriesRebuild("numericFields")):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(e){N(this.layerInfo.layerFieldsInfo,e)?(this._splitByField=e,this.processSeriesRebuild("splitByField")):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return te(this._config)}set showOutliers(e){oe({newShowOutliers:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return ee(this._config)}set standardizeValues(e){re({newStandardizeValues:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return B(this._config)}setSortOrder(e,s){L(e,this._config,s)}async getCustomSortValues(){return await C({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let s=B(this._config);if(s===W.customSort){this.startAsyncUpdate();let a=await C({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});L(s,this._config,a),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return w(this._config)}set orderByList(e){I(e,this._config)}async updateSeriesFromLayerFilter(){await this.processSeriesRebuild("updateSeriesFromLayerFilter")}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get showMeanLines(){return ne(this._config)}set showMeanLines(e){let{previousMeanLinesBoxColor:s}=ae({newShowMeanLines:e,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=s}get meanLinesBoxColor(){return Y(this._config)}set meanLinesBoxColor(e){u(e,this._config)}setupLocalProps(){this._category=X(this._config),this._splitByField=Z(this._config),this._numericFields=$(this._config)}generateDefaultConfig(){let e=D(this.commonStrings);return e.series=[O(this.commonStrings)],e}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return ce(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):_(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){let{fetchNullValues:e}=P(this._config)?.query??{};return this.splitByFieldInfos=await E({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:he(this._category)?void 0:this._category,aggregationFields:this.numericFields,splitByField:this._splitByField,fetchNullValues:e,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}getSeriesName(e){return q(e,this._config)}setSeriesName(e,s){y(e,s,this._config)}getSeriesColor(e){return G(e,this._config)}setSeriesColor(e,s){S(e,s,this._config)}getSeriesLineStyle(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return R(s)}setSeriesLineStyle(e,s){this.showMeanLines===!0&&k({style:e,seriesIndex:s,config:this._config})}getSeriesLineWidth(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return U(s)}setSeriesLineWidth(e,s){this.showMeanLines===!0&&T({width:e,seriesIndex:s,config:this._config})}get orderOfSeries(){return H(this._config)}set orderOfSeries(e){J(e,this._config)}moveSeries(e,s){K(e,s,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return Q(this._config)}moveCustomSortValuesInOrderByList(e,s){let a=w(this._config),[o]=a.splice(e,1);a.splice(s,0,o),I(a,this._config)}generateChartTitle(){return ie(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return se(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let e=this.showMeanLines===!0?1:0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),a=b({colorIndex:e,opacity:x}),o=this._config.series[e];S(a,e,this._config);let n=F({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});y(n??s,e,this._config),this.showMeanLines===!0&&l(o)&&(z(f,o),j(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,a=!1,o=!1;if(!e)for(let n=this.showMeanLines===!0?1:0;n<this.seriesLength;n+=1){let h=this._config.series[n],v=F({series:h,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),xe=this.getSeriesName(n);if(v!==void 0&&v!==xe){a=!0;break}if(this.showMeanLines===!0&&l(h)){let be=this.getSeriesLineStyle(n),Oe=this.getSeriesLineWidth(n);if(be!==f||Oe!==p){o=!0;break}}}return e||s||a||o}};r([t],i.prototype,"showOutliers");r([t],i.prototype,"standardizeValues");r([t],i.prototype,"setSortOrder");r([t],i.prototype,"setDataFilters");r([t],i.prototype,"orderByList");r([t],i.prototype,"showMeanLines");r([t],i.prototype,"meanLinesBoxColor");r([t],i.prototype,"resetConfig");r([t],i.prototype,"setSeriesName");r([t],i.prototype,"setSeriesColor");r([t],i.prototype,"setSeriesLineStyle");r([t],i.prototype,"setSeriesLineWidth");r([t],i.prototype,"orderOfSeries");r([t],i.prototype,"moveSeries");r([t],i.prototype,"moveCustomSortValuesInOrderByList");r([t],i.prototype,"resetSeriesStyling");var We=[Se,fe,pe,de,Me,me,ve,_e,we,ye,Ie,ue,Fe,Be,Le,Ce];A(i,We);return i},a,c,e,h,i,k,l,n,o,q,r,s,t,u,v,w)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import d from"./XGWHDERD.js";import c from"./KKE5EKYC.js";import b from"./AMIDKZA2.js";import a from"./X733UM32.js";export default $arcgis.t(([{e:r},f,{c:h},{a:p,b:l,c:S,d:_,e:d,f:y,g:k,h:M,i:b,j:m,k:L,l:u,m:x,n:c,o:C,p:I,q:V,r:A,s:v}])=>{var z=Object.defineProperty,j=Object.getOwnPropertyDescriptor,t=(n,e,s,O)=>{for(var o=j(e,s),a=n.length-1,g;a>=0;a--)(g=n[a])&&(o=g(e,s,o)||o);return o&&z(e,s,o),o},i=class extends f{getSeriesLineStyle(e){return p(e,this._config)}setSeriesLineStyle(e,s){l({style:e,seriesIndex:s,config:this._config})}getSeriesLineWidth(e){return S(e,this._config)}setSeriesLineWidth(e,s){_({width:e,seriesIndex:s,config:this._config})}getSeriesMarkerColor(e){return d(e,this._config)}setSeriesMarkerColor(e,s){y(e,s,this._config)}getSeriesMarkerStyle(e){return k(e,this._config)}setSeriesMarkerStyle(e,s){M({style:e,seriesIndex:s,config:this._config})}getSeriesMarkerSize(e){return b(e,this._config)}setSeriesMarkerSize(e,s){m({size:e,seriesIndex:s,config:this._config})}isLineSmoothed(e){return L(e,this._config)}setLineSmoothed(e,s){u({smoothed:e,seriesIndex:s,config:this._config})}getConnectLines(e){return A(e,this._config)}setConnectLines(e,s){v({connect:e,seriesIndex:s,config:this._config})}isAreaVisible(e){return x(e,this._config)}setAreaVisible(e,s){c({visible:e,seriesIndex:s,config:this._config})}isMarkerVisible(e){return C(e,this._config)}setMarkersVisible(e,s){I({visible:e,seriesIndex:s,config:this._config})}setMarkerVisible(e,s){this.setMarkersVisible(e,s)}getAreaColor(e){return V(e,this._config)}setAreaColor(e,s){c({visible:!0,seriesIndex:s,config:this._config}),h(e,s,this._config)}};t([r],i.prototype,"setSeriesLineStyle");t([r],i.prototype,"setSeriesLineWidth");t([r],i.prototype,"setSeriesMarkerColor");t([r],i.prototype,"setSeriesMarkerStyle");t([r],i.prototype,"setSeriesMarkerSize");t([r],i.prototype,"setLineSmoothed");t([r],i.prototype,"setConnectLines");t([r],i.prototype,"setAreaVisible");t([r],i.prototype,"setMarkersVisible");t([r],i.prototype,"setAreaColor");return i},a,b,c,d)
2
+ import d from"./KLL3HPL2.js";import c from"./N66TGPHC.js";import b from"./MJPN22Y4.js";import a from"./D7HL5TOZ.js";export default $arcgis.t(([{e:r},f,{c:h},{a:p,b:l,c:S,d:_,e:d,f:y,g:k,h:M,i:b,j:m,k:L,l:u,m:x,n:c,o:C,p:I,q:V,r:A,s:v}])=>{var z=Object.defineProperty,j=Object.getOwnPropertyDescriptor,t=(n,e,s,O)=>{for(var o=j(e,s),a=n.length-1,g;a>=0;a--)(g=n[a])&&(o=g(e,s,o)||o);return o&&z(e,s,o),o},i=class extends f{getSeriesLineStyle(e){return p(e,this._config)}setSeriesLineStyle(e,s){l({style:e,seriesIndex:s,config:this._config})}getSeriesLineWidth(e){return S(e,this._config)}setSeriesLineWidth(e,s){_({width:e,seriesIndex:s,config:this._config})}getSeriesMarkerColor(e){return d(e,this._config)}setSeriesMarkerColor(e,s){y(e,s,this._config)}getSeriesMarkerStyle(e){return k(e,this._config)}setSeriesMarkerStyle(e,s){M({style:e,seriesIndex:s,config:this._config})}getSeriesMarkerSize(e){return b(e,this._config)}setSeriesMarkerSize(e,s){m({size:e,seriesIndex:s,config:this._config})}isLineSmoothed(e){return L(e,this._config)}setLineSmoothed(e,s){u({smoothed:e,seriesIndex:s,config:this._config})}getConnectLines(e){return A(e,this._config)}setConnectLines(e,s){v({connect:e,seriesIndex:s,config:this._config})}isAreaVisible(e){return x(e,this._config)}setAreaVisible(e,s){c({visible:e,seriesIndex:s,config:this._config})}isMarkerVisible(e){return C(e,this._config)}setMarkersVisible(e,s){I({visible:e,seriesIndex:s,config:this._config})}setMarkerVisible(e,s){this.setMarkersVisible(e,s)}getAreaColor(e){return V(e,this._config)}setAreaColor(e,s){c({visible:!0,seriesIndex:s,config:this._config}),h(e,s,this._config)}};t([r],i.prototype,"setSeriesLineStyle");t([r],i.prototype,"setSeriesLineWidth");t([r],i.prototype,"setSeriesMarkerColor");t([r],i.prototype,"setSeriesMarkerStyle");t([r],i.prototype,"setSeriesMarkerSize");t([r],i.prototype,"setLineSmoothed");t([r],i.prototype,"setConnectLines");t([r],i.prototype,"setAreaVisible");t([r],i.prototype,"setMarkersVisible");t([r],i.prototype,"setAreaColor");return i},a,b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as c}from"./MQI4ZLAS.js";import{b as k}from"./IHO3OLL3.js";import e from"./ZLARROJV.js";import{i as s}from"./TENIFMA5.js";import{a as $}from"./SZYIWW3C.js";import d from"./SS7GYFUD.js";import a from"./QO2RH3XB.js";import{n as b}from"./VQU2TVX7.js";import"./WOGALV3T.js";import{i as C}from"./62GSQDTE.js";import{f as y}from"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./5SYHQWPP.js";import{A as h,B as f,C as i,H as v,g,i as t,n as p,z as m}from"./225VUGML.js";import"./QP5UAIC6.js";import"./QYRHZJH3.js";import{c as o}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Nb:u},,{a:P,l:S}])=>{var l={symbolPropertyPopover:"symbol-property-popover",colorPicker:"color-picker",header:"header",popoverPickList:"popover-pick-list",fieldSelectPanel:"field-select-panel",transformationPanel:"transformation-panel"},T=g`.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)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .inline{padding:0 1rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`,d=class extends f{constructor(){super(...arguments),this._messages=$(),this.picklist=m(),this.popoverElement=m(),this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigHistogramPopoverChange=p(),this.arcgisChartsConfigHistogramPopoverSymbolChange=p(),this.arcgisChartsConfigPopoverClose=p()}static{this.properties={messageOverrides:0,layerFieldsInfo:0,headingTitle:1,selectedNumericField:1,selectedTransformationType:1,selectedOverlaySymbol:0,selectedBinColor:0,referenceElement:0,contentKind:1,placement:1,open:5,selectedOverlaySymbolType:1}}static{this.styles=T}async reposition(){await this.popoverElement.value?.reposition()}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},P.PopoverTimer),k(this.popoverElement.value,this.open)}buildPickListItems(e){let n=[];if(e===s.numericFields)for(let r=0;r<this.layerFieldsInfo?.length;r+=1){let a=this.layerFieldsInfo[r];u(a)&&n.push(c(a.name,t`<calcite-list-item .label=${b(this.layerFieldsInfo,a.name)} .value=${a.name} .selected=${this.selectedNumericField===a.name}></calcite-list-item>`))}else{let r=[c(o.None,t`<calcite-list-item .label=${this._messages.none} .value=${o.None} .selected=${this.selectedTransformationType===o.None}></calcite-list-item>`),c(o.Log,t`<calcite-list-item .label=${this._messages.log} .value=${o.Log} .selected=${this.selectedTransformationType===o.Log}></calcite-list-item>`),c(o.Sqrt,t`<calcite-list-item .label=${this._messages.sqRt} .value=${o.Sqrt} .selected=${this.selectedTransformationType===o.Sqrt}></calcite-list-item>`)];n.push(...r)}return n}getPopoverClass(){return this.contentKind===s.fillSymbol||this.contentKind===s.lineSymbol?l.symbolPropertyPopover:""}closePopover(){(this.open||this.popoverElement.value?.open===!1)&&(this.open=!1,this.arcgisChartsConfigPopoverClose.emit())}overlaySymbolChange(e){this.arcgisChartsConfigHistogramPopoverSymbolChange.emit(e.detail)}fillColorChange(e){let n=e.detail,[r,a,w]=n,x=C*255;this.arcgisChartsConfigHistogramPopoverSymbolChange.emit({type:y.SFS,color:[r,a,w,x]})}onPickListChange(e){e.target!==null&&(this.arcgisChartsConfigHistogramPopoverChange.emit({contentKind:this.contentKind,value:e.target.selectedItems[0].value}),this.open=!1)}renderFillColor(){return t`<arcgis-charts-config-color-style class=${i(l.colorPicker)} .header=${this.headingTitle??this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`}renderOverlayStyle(){return t`<arcgis-charts-config-line-style class=${i(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle??this._messages.lineStyle} use-panel .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`}renderFieldSelect(){let e=this.buildPickListItems(s.numericFields);return t`<calcite-panel class=${i(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${i(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${i(l.popoverPickList)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`}renderTransformationSelect(){let e=this.buildPickListItems(s.transformation);return t`<calcite-panel class=${i(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${i(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${i(l.popoverPickList)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`}render(){return t`<div><calcite-popover class=${i(this.getPopoverClass())} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${S(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`}renderContentType(){switch(this.contentKind){case s.fillSymbol:return this.renderFillColor();case s.lineSymbol:return this.renderOverlayStyle();case s.numericFields:return this.renderFieldSelect();case s.transformation:return this.renderTransformationSelect();default:return}}};v("arcgis-charts-config-histogram-popover",d);return d},a,d,e)
2
+ import{a as c}from"./MQI4ZLAS.js";import{b as k}from"./IHO3OLL3.js";import e from"./TLXWSOHC.js";import{i as s}from"./TENIFMA5.js";import{a as $}from"./SZYIWW3C.js";import d from"./C6YOQVOB.js";import a from"./SBDG2R25.js";import{n as b}from"./VQU2TVX7.js";import"./WOGALV3T.js";import{i as C}from"./62GSQDTE.js";import{f as y}from"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./5SYHQWPP.js";import{A as h,B as f,C as i,H as v,g,i as t,n as p,z as m}from"./225VUGML.js";import"./QP5UAIC6.js";import"./QYRHZJH3.js";import{c as o}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Nb:u},,{a:P,l:S}])=>{var l={symbolPropertyPopover:"symbol-property-popover",colorPicker:"color-picker",header:"header",popoverPickList:"popover-pick-list",fieldSelectPanel:"field-select-panel",transformationPanel:"transformation-panel"},T=g`.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)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .inline{padding:0 1rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`,d=class extends f{constructor(){super(...arguments),this._messages=$(),this.picklist=m(),this.popoverElement=m(),this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigHistogramPopoverChange=p(),this.arcgisChartsConfigHistogramPopoverSymbolChange=p(),this.arcgisChartsConfigPopoverClose=p()}static{this.properties={messageOverrides:0,layerFieldsInfo:0,headingTitle:1,selectedNumericField:1,selectedTransformationType:1,selectedOverlaySymbol:0,selectedBinColor:0,referenceElement:0,contentKind:1,placement:1,open:5,selectedOverlaySymbolType:1}}static{this.styles=T}async reposition(){await this.popoverElement.value?.reposition()}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},P.PopoverTimer),k(this.popoverElement.value,this.open)}buildPickListItems(e){let n=[];if(e===s.numericFields)for(let r=0;r<this.layerFieldsInfo?.length;r+=1){let a=this.layerFieldsInfo[r];u(a)&&n.push(c(a.name,t`<calcite-list-item .label=${b(this.layerFieldsInfo,a.name)} .value=${a.name} .selected=${this.selectedNumericField===a.name}></calcite-list-item>`))}else{let r=[c(o.None,t`<calcite-list-item .label=${this._messages.none} .value=${o.None} .selected=${this.selectedTransformationType===o.None}></calcite-list-item>`),c(o.Log,t`<calcite-list-item .label=${this._messages.log} .value=${o.Log} .selected=${this.selectedTransformationType===o.Log}></calcite-list-item>`),c(o.Sqrt,t`<calcite-list-item .label=${this._messages.sqRt} .value=${o.Sqrt} .selected=${this.selectedTransformationType===o.Sqrt}></calcite-list-item>`)];n.push(...r)}return n}getPopoverClass(){return this.contentKind===s.fillSymbol||this.contentKind===s.lineSymbol?l.symbolPropertyPopover:""}closePopover(){(this.open||this.popoverElement.value?.open===!1)&&(this.open=!1,this.arcgisChartsConfigPopoverClose.emit())}overlaySymbolChange(e){this.arcgisChartsConfigHistogramPopoverSymbolChange.emit(e.detail)}fillColorChange(e){let n=e.detail,[r,a,w]=n,x=C*255;this.arcgisChartsConfigHistogramPopoverSymbolChange.emit({type:y.SFS,color:[r,a,w,x]})}onPickListChange(e){e.target!==null&&(this.arcgisChartsConfigHistogramPopoverChange.emit({contentKind:this.contentKind,value:e.target.selectedItems[0].value}),this.open=!1)}renderFillColor(){return t`<arcgis-charts-config-color-style class=${i(l.colorPicker)} .header=${this.headingTitle??this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`}renderOverlayStyle(){return t`<arcgis-charts-config-line-style class=${i(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle??this._messages.lineStyle} use-panel .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`}renderFieldSelect(){let e=this.buildPickListItems(s.numericFields);return t`<calcite-panel class=${i(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${i(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${i(l.popoverPickList)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`}renderTransformationSelect(){let e=this.buildPickListItems(s.transformation);return t`<calcite-panel class=${i(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${i(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${i(l.popoverPickList)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`}render(){return t`<div><calcite-popover class=${i(this.getPopoverClass())} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${S(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`}renderContentType(){switch(this.contentKind){case s.fillSymbol:return this.renderFillColor();case s.lineSymbol:return this.renderOverlayStyle();case s.numericFields:return this.renderFieldSelect();case s.transformation:return this.renderTransformationSelect();default:return}}};v("arcgis-charts-config-histogram-popover",d);return d},a,d,e)