@arcgis/charts-components 5.2.0-next.45 → 5.2.0-next.47

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 (122) hide show
  1. package/dist/cdn/{KRBNJLUR.js → 2RIV7YP7.js} +1 -1
  2. package/dist/cdn/{4WQF5DM3.js → 36GW74FC.js} +1 -1
  3. package/dist/cdn/{RPTZ52MF.js → 3PYGT3KV.js} +1 -1
  4. package/dist/cdn/3T2IDHNE.js +2 -0
  5. package/dist/cdn/{7KYTSBST.js → 44JRT6JL.js} +1 -1
  6. package/dist/cdn/{YGGPPIZ7.js → 4ZL7RZYY.js} +1 -1
  7. package/dist/cdn/{UG37REGM.js → 57T6CQMF.js} +1 -1
  8. package/dist/cdn/5BWFAIIH.js +2 -0
  9. package/dist/cdn/{OGRUONHM.js → 5CFFXTAD.js} +1 -1
  10. package/dist/cdn/{XY4HDZKZ.js → 5DQUV2BS.js} +1 -1
  11. package/dist/cdn/{B6GOLH4Q.js → 5HGLV4YJ.js} +1 -1
  12. package/dist/cdn/{WIPAO2FH.js → 5IZ7GQA3.js} +1 -1
  13. package/dist/cdn/{DE5QJPJV.js → 5VWMLMZC.js} +1 -1
  14. package/dist/cdn/{JATS27TM.js → 62SM3LKG.js} +1 -1
  15. package/dist/cdn/{PF7KNYUV.js → 653NB5BN.js} +1 -1
  16. package/dist/cdn/{LMIDBRIM.js → 6NIWXTIP.js} +2 -2
  17. package/dist/cdn/{WKRYWDKZ.js → 6OZDGXFC.js} +1 -1
  18. package/dist/cdn/77A4IT5I.js +2 -0
  19. package/dist/cdn/{GKXBWOFH.js → AIIZRKYB.js} +1 -1
  20. package/dist/cdn/{QZ5YUJ7Y.js → AWQD3H3L.js} +1 -1
  21. package/dist/cdn/{3WV4T637.js → AYCZ7QYH.js} +1 -1
  22. package/dist/cdn/{5XXP2NRJ.js → B3723WJJ.js} +1 -1
  23. package/dist/cdn/{PDYF2IZ2.js → BCV3U4I6.js} +1 -1
  24. package/dist/cdn/{DWOP2HE4.js → BFCWZUD5.js} +1 -1
  25. package/dist/cdn/{MNE46H4A.js → CGO3WESB.js} +1 -1
  26. package/dist/cdn/{YXG7RVTK.js → CGQSP57T.js} +1 -1
  27. package/dist/cdn/{22GC5BZP.js → CYVUWE2J.js} +1 -1
  28. package/dist/cdn/{D4WXMS4I.js → D272NRZP.js} +1 -1
  29. package/dist/cdn/DE2ZKH4C.js +2 -0
  30. package/dist/cdn/{7RFX7LUS.js → DEIEWNZ5.js} +2 -2
  31. package/dist/cdn/{IIQVRNZF.js → DHPNZ3EU.js} +1 -1
  32. package/dist/cdn/{4QGMMXRI.js → DZSZKZKR.js} +1 -1
  33. package/dist/cdn/{I2CZFSEB.js → EQCJAWHV.js} +1 -1
  34. package/dist/cdn/{PGO6DEJM.js → ERDMQ4DD.js} +1 -1
  35. package/dist/cdn/{SG3NAFAX.js → FDPEMHDL.js} +1 -1
  36. package/dist/cdn/{CXT62XXL.js → FWW34CP5.js} +1 -1
  37. package/dist/cdn/{HP47BFLZ.js → FYZANAJZ.js} +1 -1
  38. package/dist/cdn/{Z7NF4IGS.js → FZKGRO5W.js} +1 -1
  39. package/dist/cdn/GAOCEPQ4.js +2 -0
  40. package/dist/cdn/{HCYQEOJ6.js → GW2FFQSO.js} +1 -1
  41. package/dist/cdn/{SDHNDW2J.js → HAMYMGH7.js} +1 -1
  42. package/dist/cdn/{WVPMH6DW.js → HFSRQDTF.js} +1 -1
  43. package/dist/cdn/{QFDQH5CQ.js → HXETEKIP.js} +1 -1
  44. package/dist/cdn/{UNFEHNQQ.js → IIJVPJDY.js} +1 -1
  45. package/dist/cdn/{76ILRLUC.js → IMW6IZV2.js} +1 -1
  46. package/dist/cdn/J5GAGVHY.js +2 -0
  47. package/dist/cdn/{76HEBLTU.js → J6QR3W3U.js} +1 -1
  48. package/dist/cdn/{ELICLP7J.js → J7CXSB6I.js} +1 -1
  49. package/dist/cdn/{NFJXS4T6.js → K4GZRWKH.js} +1 -1
  50. package/dist/cdn/KRPNWB7M.js +3 -0
  51. package/dist/cdn/{WGYVJ5PD.js → LAZLV7CS.js} +1 -1
  52. package/dist/cdn/{LSMBD5CK.js → LIEXZQ4F.js} +1 -1
  53. package/dist/cdn/{ISYGPFXM.js → LLYZIGQ5.js} +1 -1
  54. package/dist/cdn/{JPPLQW3P.js → NZMYUW2H.js} +1 -1
  55. package/dist/cdn/{TAGN7GHJ.js → OJV25NTM.js} +1 -1
  56. package/dist/cdn/{UTJ2ODDK.js → OZWY2X4J.js} +1 -1
  57. package/dist/cdn/{YE6DMUZG.js → P2UP7IKV.js} +1 -1
  58. package/dist/cdn/{T3ZESENF.js → P3UDBIPN.js} +1 -1
  59. package/dist/cdn/{YABRVLVL.js → PZQ5KWM5.js} +1 -1
  60. package/dist/cdn/{USQYT55U.js → QI5LKIKB.js} +1 -1
  61. package/dist/cdn/{NG254LPM.js → QYLOKGLW.js} +1 -1
  62. package/dist/cdn/{R32CA4NB.js → RECQ5RQK.js} +1 -1
  63. package/dist/cdn/{CHFKSXBJ.js → RRTFXPN4.js} +1 -1
  64. package/dist/cdn/{MLBDUKS3.js → RU6NQOOO.js} +1 -1
  65. package/dist/cdn/SMG4WPTH.js +2 -0
  66. package/dist/cdn/{E47MLNJA.js → SZCMJ25W.js} +1 -1
  67. package/dist/cdn/{2WFIFBMW.js → TX6LSTKD.js} +1 -1
  68. package/dist/cdn/{2VWSSNE6.js → U3POGYXF.js} +1 -1
  69. package/dist/cdn/{ESAVCU5M.js → UFFXU3Y6.js} +11 -11
  70. package/dist/cdn/{HRMCHOLZ.js → V66PG4NP.js} +1 -1
  71. package/dist/cdn/{D7FL6CSK.js → VKHUZKK4.js} +1 -1
  72. package/dist/cdn/{6TA7HFV2.js → VV3BWL3P.js} +1 -1
  73. package/dist/cdn/{PCODH67Z.js → VWLHSMF2.js} +1 -1
  74. package/dist/cdn/{U5FPTPFH.js → W7EHW5TQ.js} +1 -1
  75. package/dist/cdn/{CMPHWKTI.js → WEMJBEUF.js} +1 -1
  76. package/dist/cdn/{3YJRZ7CT.js → XJM2JNPK.js} +1 -1
  77. package/dist/cdn/{GGN3I7J2.js → XL6DRPCS.js} +1 -1
  78. package/dist/cdn/{33NDNTD4.js → XZ3QQVHQ.js} +1 -1
  79. package/dist/cdn/{RE5QI7WA.js → Y32ROR3O.js} +1 -1
  80. package/dist/cdn/{4RGS5J3H.js → YKEAQMIM.js} +1 -1
  81. package/dist/cdn/{PLEZNRQC.js → YXLIRMQJ.js} +1 -1
  82. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
  83. package/dist/cdn/index.js +1 -1
  84. package/dist/cdn/model/shared/setup-utils.js +1 -1
  85. package/dist/chunks/data-labels-symbol.js +39 -24
  86. package/dist/chunks/index2.js +2003 -1996
  87. package/dist/chunks/serial-chart-data.js +203 -201
  88. package/dist/components/arcgis-chart/customElement.d.ts +37 -9
  89. package/dist/components/arcgis-chart/customElement.js +1342 -1367
  90. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
  91. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  92. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +7 -7
  93. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  94. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  95. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +6 -6
  96. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  97. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
  98. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  99. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +9 -9
  100. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  101. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +30 -30
  102. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  103. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +4 -4
  104. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  105. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  106. package/dist/docs/api.json +1 -1
  107. package/dist/docs/docs.json +1 -1
  108. package/dist/docs/vscode.html-custom-data.json +1 -1
  109. package/dist/docs/web-types.json +1 -1
  110. package/dist/loader.js +1 -1
  111. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  112. package/package.json +3 -3
  113. package/dist/cdn/6BXPCTBA.js +0 -2
  114. package/dist/cdn/EIXU5GSK.js +0 -2
  115. package/dist/cdn/EMMV3MPZ.js +0 -2
  116. package/dist/cdn/G3IEARQP.js +0 -2
  117. package/dist/cdn/I6REUMW3.js +0 -2
  118. package/dist/cdn/RS37HDC7.js +0 -2
  119. package/dist/cdn/VAUVQGBW.js +0 -3
  120. package/dist/cdn/ZSATO43B.js +0 -2
  121. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  122. /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import q from"./YE6DMUZG.js";import p from"./UNFEHNQQ.js";import o from"./I6REUMW3.js";import n from"./7RFX7LUS.js";import l from"./6TA7HFV2.js";import k from"./T3ZESENF.js";import j from"./IIQVRNZF.js";import i from"./HRMCHOLZ.js";import"./QYNNPEED.js";import h from"./U5FPTPFH.js";import g from"./22GC5BZP.js";import{c as I}from"./GP3V6A7V.js";import e from"./PCODH67Z.js";import d from"./UG37REGM.js";import c from"./2VWSSNE6.js";import"./JWD4Y2L6.js";import a from"./VAUVQGBW.js";import{n as f}from"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import{T as _,U as m,oa as A}from"./MCT4U7MC.js";import"./KX7KGXKQ.js";import{k as y,l as F}from"./SP2IPHWF.js";import"./HMBXRL4X.js";import"./5DUKB563.js";import"./NYFHPR6N.js";import"./QP5UAIC6.js";import"./QJMUS3VS.js";import{a as b}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:te},{wb:L},{a:v,d:p,g:C,q:M},,{c:d},{a:P},w,{b:G,d:H,f:J},{b:X,d:q,f:B},{d:W,e:Y},j,{b:g},{b:K},{a:z,b:E,c:O,d:k},{a:D,b:N}])=>{var R=s=>{p({config:s,value:null,axisIndex:0,isMax:!1}),p({config:s,value:null,axisIndex:0,isMax:!0}),p({config:s,value:null,axisIndex:1,isMax:!1}),p({config:s,value:null,axisIndex:1,isMax:!0})},U=s=>{let{name:e,axisIndex:i,config:t,layerInfo:r}=s,{layerFieldsInfo:o}=r,n=o.find(x=>x.name===e),l=n!==void 0&&L(n);C(t,i,l)};function V(s,e,i){let t=T(s,e,i),r=P(s),o=g(s);return t===r||o}function Z(s,e){let{layerFieldsInfo:i}=e,t=f(i,h(s)),r=I(1,s),o=g(s);return t===r||o}function $(s,e){let{layerFieldsInfo:i}=e,t=u(s),r=f(i,t),o=I(0,s),n=g(s);return r===o||n}function T(s,e,i){let t=u(s),r=h(s),{layerFieldsInfo:o}=e,n=f(o,t),l=f(o,r);return te(i.titleLabels.xAndY,{x:n,y:l})}var ee=s=>{let{x:e,y:i,config:t,layerInfo:r,updateChartTitle:o,updateXAxisTitle:n,updateYAxisTitle:l,commonStrings:x}=s,{layerFieldsInfo:S}=r,se=f(S,e),ie=f(S,i);!y(e)&&n&&v(t,0,se),!y(i)&&l&&v(t,1,ie),!y(e)&&!y(i)&&t.title&&o&&(t.title.content.text=T(t,r,x))},u=s=>s.series[0]?.x??"",h=s=>s.series[0]?.y??"",re=s=>{let{fieldName:e,config:i,layerInfo:t,commonStrings:r}=s,o=V(i,t,r),n=$(i,t),l=Z(i,t);R(i),i.series[0]&&(i.series[0].x=e),ee({x:e,y:h(i),config:i,layerInfo:t,updateChartTitle:o,commonStrings:r,updateXAxisTitle:n,updateYAxisTitle:l}),U({name:e,axisIndex:0,config:i,layerInfo:t})},oe=s=>{let{fieldName:e,config:i,layerInfo:t,commonStrings:r}=s,o=V(i,t,r),n=$(i,t),l=Z(i,t);R(i),i.series[0]&&(i.series[0].y=e),ee({x:u(i),y:e,config:i,layerInfo:t,commonStrings:r,updateChartTitle:o,updateXAxisTitle:n,updateYAxisTitle:l}),U({name:e,axisIndex:1,config:i,layerInfo:t})},ne=s=>{let e={};return s.series[0]?.markerSymbol??e},ae=(s,e)=>{e.series[0]&&(e.series[0].markerSymbol=s)},le=s=>(s.series[0]?.overlays?.trendLine?.visible??!0)&&(s.series[0]?.overlays?.trendLine?.created??!1),de=s=>{let e={};return s.series[0]?.overlays?.trendLine?.symbol??e},fe=(s,e)=>{e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.symbol=s},ce=(s,e)=>{e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.visible=s},me=(s,e)=>{!(e.series[0]?.overlays?.trendLine?.created??!1)&&s&&(e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.created=s),ce(s,e)},Q=s=>s.series[0]?.sizePolicy??_(),ye=(s,e)=>{e.series[0]&&(s!==void 0&&s.field?.trim()!==""?e.series[0].sizePolicy={...e.series[0].sizePolicy,...s}:e.series[0].sizePolicy=void 0)},pe=s=>s?.series?.[0]?.overlays,ge=(s,e)=>{e?.series[0]!==void 0&&(e.series[0].overlays=s)},ue=s=>s.series.find(e=>e.additionalTooltipFields!==void 0)?.additionalTooltipFields??[],he=(s,e)=>{e.series.forEach(i=>{Array.isArray(s)?i.additionalTooltipFields=s:typeof s=="string"?i.additionalTooltipFields=s.trim()===""?[]:[s]:i.additionalTooltipFields=[]})},xe=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,c=(s,e,i,t)=>{for(var r=ve(e,i),o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=n(e,i,r)||r);return r&&xe(e,i,r),r},a=class extends w{constructor(){super(...arguments),this._chartType=b.ScatterSeries}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get xAxisField(){return u(this._config)}set xAxisField(e){re({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get yAxisField(){return h(this._config)}set yAxisField(e){oe({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get showLinearTrend(){return le(this._config)}set showLinearTrend(e){me(e,this._config)}get linearTrendSymbol(){return de(this._config)}set linearTrendSymbol(e){fe(e,this._config)}get fixedMarkerSymbol(){return ne(this._config)}set fixedMarkerSymbol(e){ae(e,this._config)}get sizePolicy(){return Q(this._config)}set sizePolicy(e){let i=Q(this._config);F(i,e)||ye(e,this._config)}get seriesOverlays(){return pe(this._config)}set seriesOverlays(e){e!==void 0&&ge(e,this._config)}get additionalTooltipField(){return ue(this._config)}set additionalTooltipField(e){he(e,this._config)}generateChartTitle(){return T(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){let e=this.yAxisField;return f(this.layerInfo.layerFieldsInfo,e)}generateDefaultConfig(){return A(this.commonStrings)}};c([d],a.prototype,"xAxisField");c([d],a.prototype,"yAxisField");c([d],a.prototype,"showLinearTrend");c([d],a.prototype,"linearTrendSymbol");c([d],a.prototype,"fixedMarkerSymbol");c([d],a.prototype,"sizePolicy");c([d],a.prototype,"seriesOverlays");c([d],a.prototype,"additionalTooltipField");var Ie=[D,z,E,O,k,K,j,N,G,W,H,Y,X,q,B,J];M(a,Ie);return a},"intl",a,c,d,e,g,h,i,j,k,l,n,o,p,q)
2
+ import q from"./P2UP7IKV.js";import p from"./IIJVPJDY.js";import o from"./J5GAGVHY.js";import n from"./DEIEWNZ5.js";import l from"./VV3BWL3P.js";import k from"./P3UDBIPN.js";import j from"./DHPNZ3EU.js";import i from"./V66PG4NP.js";import"./QYNNPEED.js";import h from"./W7EHW5TQ.js";import g from"./CYVUWE2J.js";import{c as I}from"./GP3V6A7V.js";import e from"./VWLHSMF2.js";import d from"./57T6CQMF.js";import c from"./U3POGYXF.js";import"./JWD4Y2L6.js";import a from"./KRPNWB7M.js";import{n as f}from"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import{T as _,U as m,oa as A}from"./MCT4U7MC.js";import"./KX7KGXKQ.js";import{k as y,l as F}from"./SP2IPHWF.js";import"./HMBXRL4X.js";import"./5DUKB563.js";import"./NYFHPR6N.js";import"./QP5UAIC6.js";import"./QJMUS3VS.js";import{a as b}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:te},{wb:L},{a:v,d:p,g:C,q:M},,{c:d},{a:P},w,{b:G,d:H,f:J},{b:X,d:q,f:B},{d:W,e:Y},j,{b:g},{b:K},{a:z,b:E,c:O,d:k},{a:D,b:N}])=>{var R=s=>{p({config:s,value:null,axisIndex:0,isMax:!1}),p({config:s,value:null,axisIndex:0,isMax:!0}),p({config:s,value:null,axisIndex:1,isMax:!1}),p({config:s,value:null,axisIndex:1,isMax:!0})},U=s=>{let{name:e,axisIndex:i,config:t,layerInfo:r}=s,{layerFieldsInfo:o}=r,n=o.find(x=>x.name===e),l=n!==void 0&&L(n);C(t,i,l)};function V(s,e,i){let t=T(s,e,i),r=P(s),o=g(s);return t===r||o}function Z(s,e){let{layerFieldsInfo:i}=e,t=f(i,h(s)),r=I(1,s),o=g(s);return t===r||o}function $(s,e){let{layerFieldsInfo:i}=e,t=u(s),r=f(i,t),o=I(0,s),n=g(s);return r===o||n}function T(s,e,i){let t=u(s),r=h(s),{layerFieldsInfo:o}=e,n=f(o,t),l=f(o,r);return te(i.titleLabels.xAndY,{x:n,y:l})}var ee=s=>{let{x:e,y:i,config:t,layerInfo:r,updateChartTitle:o,updateXAxisTitle:n,updateYAxisTitle:l,commonStrings:x}=s,{layerFieldsInfo:S}=r,se=f(S,e),ie=f(S,i);!y(e)&&n&&v(t,0,se),!y(i)&&l&&v(t,1,ie),!y(e)&&!y(i)&&t.title&&o&&(t.title.content.text=T(t,r,x))},u=s=>s.series[0]?.x??"",h=s=>s.series[0]?.y??"",re=s=>{let{fieldName:e,config:i,layerInfo:t,commonStrings:r}=s,o=V(i,t,r),n=$(i,t),l=Z(i,t);R(i),i.series[0]&&(i.series[0].x=e),ee({x:e,y:h(i),config:i,layerInfo:t,updateChartTitle:o,commonStrings:r,updateXAxisTitle:n,updateYAxisTitle:l}),U({name:e,axisIndex:0,config:i,layerInfo:t})},oe=s=>{let{fieldName:e,config:i,layerInfo:t,commonStrings:r}=s,o=V(i,t,r),n=$(i,t),l=Z(i,t);R(i),i.series[0]&&(i.series[0].y=e),ee({x:u(i),y:e,config:i,layerInfo:t,commonStrings:r,updateChartTitle:o,updateXAxisTitle:n,updateYAxisTitle:l}),U({name:e,axisIndex:1,config:i,layerInfo:t})},ne=s=>{let e={};return s.series[0]?.markerSymbol??e},ae=(s,e)=>{e.series[0]&&(e.series[0].markerSymbol=s)},le=s=>(s.series[0]?.overlays?.trendLine?.visible??!0)&&(s.series[0]?.overlays?.trendLine?.created??!1),de=s=>{let e={};return s.series[0]?.overlays?.trendLine?.symbol??e},fe=(s,e)=>{e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.symbol=s},ce=(s,e)=>{e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.visible=s},me=(s,e)=>{!(e.series[0]?.overlays?.trendLine?.created??!1)&&s&&(e.series[0].overlays??=m(),e.series[0].overlays.trendLine??=m().trendLine,e.series[0].overlays.trendLine.created=s),ce(s,e)},Q=s=>s.series[0]?.sizePolicy??_(),ye=(s,e)=>{e.series[0]&&(s!==void 0&&s.field?.trim()!==""?e.series[0].sizePolicy={...e.series[0].sizePolicy,...s}:e.series[0].sizePolicy=void 0)},pe=s=>s?.series?.[0]?.overlays,ge=(s,e)=>{e?.series[0]!==void 0&&(e.series[0].overlays=s)},ue=s=>s.series.find(e=>e.additionalTooltipFields!==void 0)?.additionalTooltipFields??[],he=(s,e)=>{e.series.forEach(i=>{Array.isArray(s)?i.additionalTooltipFields=s:typeof s=="string"?i.additionalTooltipFields=s.trim()===""?[]:[s]:i.additionalTooltipFields=[]})},xe=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,c=(s,e,i,t)=>{for(var r=ve(e,i),o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=n(e,i,r)||r);return r&&xe(e,i,r),r},a=class extends w{constructor(){super(...arguments),this._chartType=b.ScatterSeries}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get xAxisField(){return u(this._config)}set xAxisField(e){re({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get yAxisField(){return h(this._config)}set yAxisField(e){oe({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get showLinearTrend(){return le(this._config)}set showLinearTrend(e){me(e,this._config)}get linearTrendSymbol(){return de(this._config)}set linearTrendSymbol(e){fe(e,this._config)}get fixedMarkerSymbol(){return ne(this._config)}set fixedMarkerSymbol(e){ae(e,this._config)}get sizePolicy(){return Q(this._config)}set sizePolicy(e){let i=Q(this._config);F(i,e)||ye(e,this._config)}get seriesOverlays(){return pe(this._config)}set seriesOverlays(e){e!==void 0&&ge(e,this._config)}get additionalTooltipField(){return ue(this._config)}set additionalTooltipField(e){he(e,this._config)}generateChartTitle(){return T(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){let e=this.yAxisField;return f(this.layerInfo.layerFieldsInfo,e)}generateDefaultConfig(){return A(this.commonStrings)}};c([d],a.prototype,"xAxisField");c([d],a.prototype,"yAxisField");c([d],a.prototype,"showLinearTrend");c([d],a.prototype,"linearTrendSymbol");c([d],a.prototype,"fixedMarkerSymbol");c([d],a.prototype,"sizePolicy");c([d],a.prototype,"seriesOverlays");c([d],a.prototype,"additionalTooltipField");var Ie=[D,z,E,O,k,K,j,N,G,W,H,Y,X,q,B,J];M(a,Ie);return a},"intl",a,c,d,e,g,h,i,j,k,l,n,o,p,q)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as C}from"./AZHBGLOD.js";import{a as b}from"./CHZMNR2R.js";import{b as S,c as T}from"./IHO3OLL3.js";import h from"./WVPMH6DW.js";import{h as a}from"./JYC77MVD.js";import{a as f}from"./MBL6ZAKF.js";import e from"./2VWSSNE6.js";import"./JWD4Y2L6.js";import d from"./VAUVQGBW.js";import{n as F}from"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import{wa as x}from"./MCT4U7MC.js";import{a as L}from"./KX7KGXKQ.js";import{l as y}from"./SP2IPHWF.js";import"./HMBXRL4X.js";import{A as p,B as $,C as r,H as P,g as k,i as s,n as m,z as g}from"./5DUKB563.js";import{d as c}from"./QP5UAIC6.js";import"./QJMUS3VS.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{sb:I,wb:D},,{a:w,d:u,k:h,o:E}])=>{var o={name:"pie-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",flipClass:"sort-counter-clockwise",sortOrderPickList:"sort-order-pick-list",panel:"panel"},O=k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,v=class extends ${constructor(){super(...arguments),this._messages=f(),this.commonStrings=f({name:"common",blocking:!0}),this.picklist=g(),this.popoverElement=g(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.aggregationLabels=[],this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigPieChartDataPopoverChange=m(),this.arcgisChartsConfigPopoverClose=m()}static{this.properties={aggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=O}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=u.map(i=>x(i,this.commonStrings));y(this.aggregationLabels,t)||(this.aggregationLabels=t)}updated(){S(this.popoverElement.value,this.open),setTimeout(()=>{this.picklist.value?.setFocus()},w.PopoverTimer)}selectedContentChange(e,t){this.pickListHasChanged=T(e,t)}buildAggregationPickListItems(){return C(u,e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${h(e,this.selectedContent)}></calcite-list-item>`)}buildSortOrder(){let e=Object.keys(c);return e.splice(e.indexOf(c.customSort),1),C(e,t=>t,t=>{let i="string",l="rotate",n="";switch(t){case c.labelAsc:i="string";break;case c.labelDesc:i="string",n=o.flipClass;break;case c.valueAsc:i="number";break;case c.valueDesc:i="number",n=o.flipClass;break;case c.customSort:}return s`<calcite-list-item .selected=${this.selectedContent===t} .label=${this._messages[t]} .value=${c[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${r(n)} slot=content-end .icon=${l}></calcite-icon></calcite-list-item>`})}buildPickListItem(e){return b(e.name,s`<calcite-list-item .label=${F(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${h(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let l=0;l<t;l+=1){let n=this.layerFieldsInfo[l];I(n)&&i.push(this.buildPickListItem(n))}break}case a.category:{let l=b(" ",s`<calcite-list-item label=" " value=" " .selected=${h("",this.selectedContent)}></calcite-list-item>`);i.push(l);for(let n=0;n<t;n+=1){let d=this.layerFieldsInfo[n];(D(d)||d.type===L.String)&&i.push(this.buildPickListItem(d))}break}}return i}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigPieChartDataPopoverChange,contentKind:this.contentKind};E(e)}this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigPieChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderCategory(){let e=this.buildPickListItems(a.category);return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return s`<calcite-list label class=${`${o.popoverPickList} ${o.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.aggregation:e=this.renderAggregationType();break;case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=s`<div slot=footer><calcite-fab class=${r(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),s`<div><calcite-popover class=${r(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};P("arcgis-charts-config-pie-chart-popover",v);return v},d,e,h)
2
+ import{a as C}from"./AZHBGLOD.js";import{a as b}from"./CHZMNR2R.js";import{b as S,c as T}from"./IHO3OLL3.js";import h from"./HFSRQDTF.js";import{h as a}from"./JYC77MVD.js";import{a as f}from"./MBL6ZAKF.js";import e from"./U3POGYXF.js";import"./JWD4Y2L6.js";import d from"./KRPNWB7M.js";import{n as F}from"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import{wa as x}from"./MCT4U7MC.js";import{a as L}from"./KX7KGXKQ.js";import{l as y}from"./SP2IPHWF.js";import"./HMBXRL4X.js";import{A as p,B as $,C as r,H as P,g as k,i as s,n as m,z as g}from"./5DUKB563.js";import{d as c}from"./QP5UAIC6.js";import"./QJMUS3VS.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{sb:I,wb:D},,{a:w,d:u,k:h,o:E}])=>{var o={name:"pie-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",flipClass:"sort-counter-clockwise",sortOrderPickList:"sort-order-pick-list",panel:"panel"},O=k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,v=class extends ${constructor(){super(...arguments),this._messages=f(),this.commonStrings=f({name:"common",blocking:!0}),this.picklist=g(),this.popoverElement=g(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.aggregationLabels=[],this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigPieChartDataPopoverChange=m(),this.arcgisChartsConfigPopoverClose=m()}static{this.properties={aggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=O}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=u.map(i=>x(i,this.commonStrings));y(this.aggregationLabels,t)||(this.aggregationLabels=t)}updated(){S(this.popoverElement.value,this.open),setTimeout(()=>{this.picklist.value?.setFocus()},w.PopoverTimer)}selectedContentChange(e,t){this.pickListHasChanged=T(e,t)}buildAggregationPickListItems(){return C(u,e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${h(e,this.selectedContent)}></calcite-list-item>`)}buildSortOrder(){let e=Object.keys(c);return e.splice(e.indexOf(c.customSort),1),C(e,t=>t,t=>{let i="string",l="rotate",n="";switch(t){case c.labelAsc:i="string";break;case c.labelDesc:i="string",n=o.flipClass;break;case c.valueAsc:i="number";break;case c.valueDesc:i="number",n=o.flipClass;break;case c.customSort:}return s`<calcite-list-item .selected=${this.selectedContent===t} .label=${this._messages[t]} .value=${c[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${r(n)} slot=content-end .icon=${l}></calcite-icon></calcite-list-item>`})}buildPickListItem(e){return b(e.name,s`<calcite-list-item .label=${F(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${h(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let l=0;l<t;l+=1){let n=this.layerFieldsInfo[l];I(n)&&i.push(this.buildPickListItem(n))}break}case a.category:{let l=b(" ",s`<calcite-list-item label=" " value=" " .selected=${h("",this.selectedContent)}></calcite-list-item>`);i.push(l);for(let n=0;n<t;n+=1){let d=this.layerFieldsInfo[n];(D(d)||d.type===L.String)&&i.push(this.buildPickListItem(d))}break}}return i}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigPieChartDataPopoverChange,contentKind:this.contentKind};E(e)}this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigPieChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderCategory(){let e=this.buildPickListItems(a.category);return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return s`<calcite-list label class=${`${o.popoverPickList} ${o.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.aggregation:e=this.renderAggregationType();break;case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=s`<div slot=footer><calcite-fab class=${r(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),s`<div><calcite-popover class=${r(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};P("arcgis-charts-config-pie-chart-popover",v);return v},d,e,h)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import d from"./WVPMH6DW.js";import"./JYC77MVD.js";import{a as m}from"./MBL6ZAKF.js";import b from"./2VWSSNE6.js";import"./JWD4Y2L6.js";import a from"./VAUVQGBW.js";import"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import"./MCT4U7MC.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./HMBXRL4X.js";import{B as h,H as l,g as o,i as g,n as c}from"./5DUKB563.js";import"./QP5UAIC6.js";import"./QJMUS3VS.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([,,{m:n}])=>{var u="arcgis-charts-config-storage-colors",_=o`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`,a=class extends h{constructor(){super(...arguments),this._messages=m(),this.arcgisColorSelect=c()}static{this.properties={messageOverrides:0,rgba:0,heading:1}}static{this.styles=_}onColorSelect(s){let{value:e}=s.target;if(e!==null){let{r,g:t,b:v}=e,i=[r,t,v,255];this.isNewColor(i)&&this.arcgisColorSelect.emit(i)}}isNewColor(s){let e=!1;return this.rgba===void 0?e=!0:s===void 0?e=!1:e=s[0]!==this.rgba[0]||s[1]!==this.rgba[1]||s[2]!==this.rgba[2],e}render(){let s;if(this.rgba!==void 0){let[e,r,t]=this.rgba;s={r:e,g:r,b:t}}return g`<calcite-label>${this.heading??this._messages.color}</calcite-label><calcite-color-picker .value=${n(s)} @calciteColorPickerInput=${this.onColorSelect} .messageOverrides=${{g:this._messages.g,green:this._messages.green,h:this._messages.h,hex:this._messages.hex,hsv:this._messages.hsv,hue:this._messages.hue,r:this._messages.r,red:this._messages.red,rgb:this._messages.rgb,s:this._messages.s,saturation:this._messages.saturation,saveColor:this._messages.saveColor,saved:this._messages.saved,v:this._messages.v,value:this._messages.value}} clearable .storageId=${u} format=rgb></calcite-color-picker>`}};l("arcgis-charts-config-colors",a);return a},a,b,d)
2
+ import d from"./HFSRQDTF.js";import"./JYC77MVD.js";import{a as m}from"./MBL6ZAKF.js";import b from"./U3POGYXF.js";import"./JWD4Y2L6.js";import a from"./KRPNWB7M.js";import"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import"./MCT4U7MC.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./HMBXRL4X.js";import{B as h,H as l,g as o,i as g,n as c}from"./5DUKB563.js";import"./QP5UAIC6.js";import"./QJMUS3VS.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([,,{m:n}])=>{var u="arcgis-charts-config-storage-colors",_=o`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`,a=class extends h{constructor(){super(...arguments),this._messages=m(),this.arcgisColorSelect=c()}static{this.properties={messageOverrides:0,rgba:0,heading:1}}static{this.styles=_}onColorSelect(s){let{value:e}=s.target;if(e!==null){let{r,g:t,b:v}=e,i=[r,t,v,255];this.isNewColor(i)&&this.arcgisColorSelect.emit(i)}}isNewColor(s){let e=!1;return this.rgba===void 0?e=!0:s===void 0?e=!1:e=s[0]!==this.rgba[0]||s[1]!==this.rgba[1]||s[2]!==this.rgba[2],e}render(){let s;if(this.rgba!==void 0){let[e,r,t]=this.rgba;s={r:e,g:r,b:t}}return g`<calcite-label>${this.heading??this._messages.color}</calcite-label><calcite-color-picker .value=${n(s)} @calciteColorPickerInput=${this.onColorSelect} .messageOverrides=${{g:this._messages.g,green:this._messages.green,h:this._messages.h,hex:this._messages.hex,hsv:this._messages.hsv,hue:this._messages.hue,r:this._messages.r,red:this._messages.red,rgb:this._messages.rgb,s:this._messages.s,saturation:this._messages.saturation,saveColor:this._messages.saveColor,saved:this._messages.saved,v:this._messages.v,value:this._messages.value}} clearable .storageId=${u} format=rgb></calcite-color-picker>`}};l("arcgis-charts-config-colors",a);return a},a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./PCODH67Z.js";import a from"./VAUVQGBW.js";import{C as c,E as g,c as l}from"./MCT4U7MC.js";export default $arcgis.t(([{R:f},{b:i,c:p}])=>{var d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,v=(t,e,r,b)=>{for(var s=m(e,r),o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,r,s)||s);return s&&d(e,r,s),s},u=t=>t.title?.content.text??"",y=(t,e)=>{e.title!==void 0?e.title.content.text=t:e.title===void 0&&t!==void 0&&(e.title=g({text:t,visible:!0,font:c(l.ChartTitle)}))},n=class extends i{get titleText(){return u(this._config)}set titleText(e){y(e,this._config)}};v([p],n.prototype,"titleText");var _=t=>t.series.map(e=>String(f({where:e.query?.where}))).filter(e=>e!==void 0),h=class extends i{get splitByValues(){return _(this._config)}},T=t=>t.series.length??0,x=class extends i{get seriesLength(){return T(this._config)}};return{a:u,b:n,c:_,d:h,e:T,f:x}},a,b)
2
+ import b from"./VWLHSMF2.js";import a from"./KRPNWB7M.js";import{C as c,E as g,c as l}from"./MCT4U7MC.js";export default $arcgis.t(([{I:f},{b:i,c:p}])=>{var d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,v=(t,e,r,b)=>{for(var s=m(e,r),o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,r,s)||s);return s&&d(e,r,s),s},u=t=>t.title?.content.text??"",y=(t,e)=>{e.title!==void 0?e.title.content.text=t:e.title===void 0&&t!==void 0&&(e.title=g({text:t,visible:!0,font:c(l.ChartTitle)}))},n=class extends i{get titleText(){return u(this._config)}set titleText(e){y(e,this._config)}};v([p],n.prototype,"titleText");var _=t=>t.series.map(e=>String(f({where:e.query?.where}))).filter(e=>e!==void 0),h=class extends i{get splitByValues(){return _(this._config)}},T=t=>t.series.length??0,x=class extends i{get seriesLength(){return T(this._config)}};return{a:u,b:n,c:_,d:h,e:T,f:x}},a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import v from"./USQYT55U.js";import{a as Cs,b as M,c as Fs,d as I}from"./LJLL37FG.js";import u from"./SDHNDW2J.js";import t from"./EMMV3MPZ.js";import s from"./YE6DMUZG.js";import r from"./UNFEHNQQ.js";import q from"./I6REUMW3.js";import o from"./7RFX7LUS.js";import n from"./T3ZESENF.js";import l from"./IIQVRNZF.js";import k from"./HRMCHOLZ.js";import"./QYNNPEED.js";import j from"./U5FPTPFH.js";import i from"./22GC5BZP.js";import"./GP3V6A7V.js";import e from"./PCODH67Z.js";import d from"./UG37REGM.js";import c from"./2VWSSNE6.js";import{i as h}from"./JWD4Y2L6.js";import a from"./VAUVQGBW.js";import"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import{Da as m,ca as P,i as A,ja as D,m as f,n as p,p as y,y as O}from"./MCT4U7MC.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./HMBXRL4X.js";import{l as g}from"./5DUKB563.js";import"./NYFHPR6N.js";import{b as W}from"./QP5UAIC6.js";import"./QJMUS3VS.js";import{a as b}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([,{o:E,p:U,q:N},,{c:r},,rs,{b:ds,d:us,f:Ss},{b:ps,d:ys,f:ms},{d:cs,e:ls},,{b:_s},{a:os,b:ns,c:as,d:hs},{a:gs,b:fs},,{b:Ls},{A:B,B:v,C:ts,D:is,a:R,b:d,c:V,d:z,e:u,f:S,g:j,h:k,i:T,j:q,k:Y,l:G,m:H,n:_,o:J,p:K,q:Q,r:L,s:X,t:Z,u:$,v:C,w:F,x:ss,y:es,z:w}])=>{var Ms=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,n=(l,s,e,i)=>{for(var o=Is(s,e),a=l.length-1,c;a>=0;a--)(c=l[a])&&(o=c(s,e,o)||o);return o&&Ms(s,e,o),o},t=class extends rs{constructor(){super(...arguments),this._chartType=b.BoxPlotSeries,this._category=y,this._splitByField="",this._numericFields=[]}async setup(s){await this.loadConfigFromLayer(s),this.setupLocalProps(),s.config!==void 0&&await this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(s){let e=s.trim()==="";this._category=e?y:s,this.dirtyAsyncSetters.push("category"),this.processSeriesRebuild()}get numericFields(){return this._numericFields}set numericFields(s){let{layerFieldsInfo:e}=this.layerInfo;typeof s=="string"&&(s=[s]),U(e,s)?(this._numericFields=s,this.dirtyAsyncSetters.push("numericFields"),ts(this._category,this._numericFields)&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(s){E(this.layerInfo.layerFieldsInfo,s)?(this._splitByField=s,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return X(this._config)}set showOutliers(s){Z({newShowOutliers:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return J(this._config)}set standardizeValues(s){$({newStandardizeValues:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return C(this._config)}setSortOrder(s,e){F(s,this._config,e)}async getCustomSortValues(){return await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(s){super.setDataFilters(s);let e=C(this._config);if(e===W.customSort){this.startAsyncUpdate();let i=await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});F(e,this._config,i),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return w(this._config)}set orderByList(s){B(s,this._config)}async updateSeriesFromLayerFilter(){this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild()}get showMeanLines(){return ss(this._config)}set showMeanLines(s){let{previousMeanLinesBoxColor:e}=es({newShowMeanLines:s,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=e}get meanLinesBoxColor(){return z(this._config)}set meanLinesBoxColor(s){u(s,this._config)}setupLocalProps(){this._category=Y(this._config),this._splitByField=G(this._config),this._numericFields=H(this._config)}generateDefaultConfig(){let s=D(this.commonStrings);return s.series=[P(this.commonStrings)],s}resetConfig(){let s=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=s,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return!is(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(){if(this.layerInfo!==void 0){let s=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],_(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await _(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(s)}}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}getSeriesName(s){return R(s,this._config)}setSeriesName(s,e){d(s,e,this._config)}getSeriesColor(s){return V(s,this._config)}setSeriesColor(s,e){S(s,e,this._config)}getSeriesLineStyle(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Cs(e)}setSeriesLineStyle(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&M(s,i)}getSeriesLineWidth(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Fs(e)}setSeriesLineWidth(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&I(s,i)}get orderOfSeries(){return j(this._config)}set orderOfSeries(s){k(s,this._config)}moveSeries(s,e){T(s,e,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return q(this._config)}moveCustomSortValuesInOrderByList(s,e){let i=w(this._config),[o]=i.splice(s,1);i.splice(e,0,o),B(i,this._config)}generateChartTitle(){return Q(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return K(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let s=this.showMeanLines===!0?1:0;s<this.seriesLength;s+=1){let e=this.getSeriesId(s),i=O({colorIndex:s,opacity:A}),o=this._config.series[s];S(i,s,this._config);let a=L({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});d(a??e,s,this._config),this.showMeanLines===!0&&h(o)&&(M(f,o),I(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let s=!this.colorMatch,e=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,i=!1,o=!1;if(!s)for(let a=this.showMeanLines===!0?1:0;a<this.seriesLength;a+=1){let c=this._config.series[a],x=L({series:c,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),ws=this.getSeriesName(a);if(x!==void 0&&x!==ws){i=!0;break}if(this.showMeanLines===!0&&h(c)){let Bs=this.getSeriesLineStyle(a),vs=this.getSeriesLineWidth(a);if(Bs!==f||vs!==p){o=!0;break}}}return s||e||i||o}};n([r],t.prototype,"showOutliers");n([r],t.prototype,"standardizeValues");n([r],t.prototype,"setSortOrder");n([r],t.prototype,"setDataFilters");n([r],t.prototype,"orderByList");n([r],t.prototype,"showMeanLines");n([r],t.prototype,"meanLinesBoxColor");n([r],t.prototype,"resetConfig");n([r],t.prototype,"setSeriesName");n([r],t.prototype,"setSeriesColor");n([r],t.prototype,"setSeriesLineStyle");n([r],t.prototype,"setSeriesLineWidth");n([r],t.prototype,"orderOfSeries");n([r],t.prototype,"moveSeries");n([r],t.prototype,"moveCustomSortValuesInOrderByList");n([r],t.prototype,"resetSeriesStyling");var xs=[gs,os,ns,as,Ls,hs,_s,fs,ds,cs,us,ls,ps,ys,ms,Ss];N(t,xs);return t},a,c,d,e,i,j,k,l,n,o,q,r,s,t,u,v)
2
+ import v from"./QI5LKIKB.js";import{a as Cs,b as M,c as Fs,d as I}from"./LJLL37FG.js";import u from"./HAMYMGH7.js";import t from"./SMG4WPTH.js";import s from"./P2UP7IKV.js";import r from"./IIJVPJDY.js";import q from"./J5GAGVHY.js";import o from"./DEIEWNZ5.js";import n from"./P3UDBIPN.js";import l from"./DHPNZ3EU.js";import k from"./V66PG4NP.js";import"./QYNNPEED.js";import j from"./W7EHW5TQ.js";import i from"./CYVUWE2J.js";import"./GP3V6A7V.js";import e from"./VWLHSMF2.js";import d from"./57T6CQMF.js";import c from"./U3POGYXF.js";import{i as h}from"./JWD4Y2L6.js";import a from"./KRPNWB7M.js";import"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import{Da as m,ca as P,i as A,ja as D,m as f,n as p,p as y,y as O}from"./MCT4U7MC.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./HMBXRL4X.js";import{l as g}from"./5DUKB563.js";import"./NYFHPR6N.js";import{b as W}from"./QP5UAIC6.js";import"./QJMUS3VS.js";import{a as b}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([,{o:E,p:U,q:N},,{c:r},,rs,{b:ds,d:us,f:Ss},{b:ps,d:ys,f:ms},{d:cs,e:ls},,{b:_s},{a:os,b:ns,c:as,d:hs},{a:gs,b:fs},,{b:Ls},{A:B,B:v,C:ts,D:is,a:R,b:d,c:V,d:z,e:u,f:S,g:j,h:k,i:T,j:q,k:Y,l:G,m:H,n:_,o:J,p:K,q:Q,r:L,s:X,t:Z,u:$,v:C,w:F,x:ss,y:es,z:w}])=>{var Ms=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,n=(l,s,e,i)=>{for(var o=Is(s,e),a=l.length-1,c;a>=0;a--)(c=l[a])&&(o=c(s,e,o)||o);return o&&Ms(s,e,o),o},t=class extends rs{constructor(){super(...arguments),this._chartType=b.BoxPlotSeries,this._category=y,this._splitByField="",this._numericFields=[]}async setup(s){await this.loadConfigFromLayer(s),this.setupLocalProps(),s.config!==void 0&&await this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(s){let e=s.trim()==="";this._category=e?y:s,this.dirtyAsyncSetters.push("category"),this.processSeriesRebuild()}get numericFields(){return this._numericFields}set numericFields(s){let{layerFieldsInfo:e}=this.layerInfo;typeof s=="string"&&(s=[s]),U(e,s)?(this._numericFields=s,this.dirtyAsyncSetters.push("numericFields"),ts(this._category,this._numericFields)&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(s){E(this.layerInfo.layerFieldsInfo,s)?(this._splitByField=s,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return X(this._config)}set showOutliers(s){Z({newShowOutliers:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return J(this._config)}set standardizeValues(s){$({newStandardizeValues:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return C(this._config)}setSortOrder(s,e){F(s,this._config,e)}async getCustomSortValues(){return await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(s){super.setDataFilters(s);let e=C(this._config);if(e===W.customSort){this.startAsyncUpdate();let i=await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});F(e,this._config,i),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return w(this._config)}set orderByList(s){B(s,this._config)}async updateSeriesFromLayerFilter(){this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild()}get showMeanLines(){return ss(this._config)}set showMeanLines(s){let{previousMeanLinesBoxColor:e}=es({newShowMeanLines:s,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=e}get meanLinesBoxColor(){return z(this._config)}set meanLinesBoxColor(s){u(s,this._config)}setupLocalProps(){this._category=Y(this._config),this._splitByField=G(this._config),this._numericFields=H(this._config)}generateDefaultConfig(){let s=D(this.commonStrings);return s.series=[P(this.commonStrings)],s}resetConfig(){let s=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=s,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return!is(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(){if(this.layerInfo!==void 0){let s=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],_(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await _(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(s)}}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}getSeriesName(s){return R(s,this._config)}setSeriesName(s,e){d(s,e,this._config)}getSeriesColor(s){return V(s,this._config)}setSeriesColor(s,e){S(s,e,this._config)}getSeriesLineStyle(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Cs(e)}setSeriesLineStyle(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&M(s,i)}getSeriesLineWidth(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Fs(e)}setSeriesLineWidth(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&I(s,i)}get orderOfSeries(){return j(this._config)}set orderOfSeries(s){k(s,this._config)}moveSeries(s,e){T(s,e,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return q(this._config)}moveCustomSortValuesInOrderByList(s,e){let i=w(this._config),[o]=i.splice(s,1);i.splice(e,0,o),B(i,this._config)}generateChartTitle(){return Q(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return K(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let s=this.showMeanLines===!0?1:0;s<this.seriesLength;s+=1){let e=this.getSeriesId(s),i=O({colorIndex:s,opacity:A}),o=this._config.series[s];S(i,s,this._config);let a=L({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});d(a??e,s,this._config),this.showMeanLines===!0&&h(o)&&(M(f,o),I(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let s=!this.colorMatch,e=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,i=!1,o=!1;if(!s)for(let a=this.showMeanLines===!0?1:0;a<this.seriesLength;a+=1){let c=this._config.series[a],x=L({series:c,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),ws=this.getSeriesName(a);if(x!==void 0&&x!==ws){i=!0;break}if(this.showMeanLines===!0&&h(c)){let Bs=this.getSeriesLineStyle(a),vs=this.getSeriesLineWidth(a);if(Bs!==f||vs!==p){o=!0;break}}}return s||e||i||o}};n([r],t.prototype,"showOutliers");n([r],t.prototype,"standardizeValues");n([r],t.prototype,"setSortOrder");n([r],t.prototype,"setDataFilters");n([r],t.prototype,"orderByList");n([r],t.prototype,"showMeanLines");n([r],t.prototype,"meanLinesBoxColor");n([r],t.prototype,"resetConfig");n([r],t.prototype,"setSeriesName");n([r],t.prototype,"setSeriesColor");n([r],t.prototype,"setSeriesLineStyle");n([r],t.prototype,"setSeriesLineWidth");n([r],t.prototype,"orderOfSeries");n([r],t.prototype,"moveSeries");n([r],t.prototype,"moveCustomSortValuesInOrderByList");n([r],t.prototype,"resetSeriesStyling");var xs=[gs,os,ns,as,Ls,hs,_s,fs,ds,cs,us,ls,ps,ys,ms,Ss];N(t,xs);return t},a,c,d,e,i,j,k,l,n,o,q,r,s,t,u,v)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import f from"./ERDMQ4DD.js";import{a as b}from"./AZHBGLOD.js";import{a as R}from"./CHZMNR2R.js";import{a as I}from"./IHO3OLL3.js";import{a as $}from"./MBL6ZAKF.js";import e from"./U3POGYXF.js";import"./JWD4Y2L6.js";import a from"./KRPNWB7M.js";import"./4ZJHIYGJ.js";import"./BGOWDCTO.js";import"./MCT4U7MC.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./HMBXRL4X.js";import{B as g,C as c,F as u,H as v,g as C,i as r,k as d,n as o}from"./5DUKB563.js";import{a as w}from"./NYFHPR6N.js";import{k as s}from"./QP5UAIC6.js";import"./QJMUS3VS.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{ta:f},,{a:P}])=>{var h={addChartContainer:"add-chart-container",viewChartComponent:"view-chart-component",header:"header",dropdownPopup:"dropdown-popup"},E=C`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`,m=class extends g{constructor(){super(...arguments),this._messages=$(),this.chartRenamePopover=null,this.popoverClose=()=>{let e=this.modelList?.find(t=>t.chartId===this.selectedChartId);this.chartTitle=e?.titleText??"",this.selectedActionChartId="",this.removeChartRenamePopover()},this.onChartRename=e=>{if(!this.disableEditing){this.chartTitle=e.detail.name;let t=this.modelList?.find(i=>i.chartId===this.selectedActionChartId);t!==void 0&&(t.titleText=this.chartTitle),this.selectedActionChartId="",this.removeChartRenamePopover()}},this.onModelConfigChange=()=>{this.requestUpdate()},this.onCalciteListOrderChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;if(this.modelList!==void 0&&this.modelList?.length>0){let a=[...this.modelList],n=a?.[i],l=a?.[t];n&&l&&(a.splice(i,1),a.splice(t,0,n)),this.chartsOrderReorderCounter+=1,this.arcgisChartsConfigModelListReorder.emit({modelList:a})}}},this.isChartRenamePopoverOpen=!1,this.chartTitle="",this.chartsOrderReorderCounter=0,this.noGroup=!1,this.disableEditing=!1,this.arcgisChartsConfigModelListReorder=o(),this.arcgisChartsConfigViewChartAddChart=o(),this.arcgisChartsConfigViewChartDelete=o(),this.arcgisChartsConfigViewChartEdit=o(),this.arcgisChartsConfigViewChartSelect=o()}static{this.properties={isChartRenamePopoverOpen:16,chartTitle:16,selectedActionChartId:16,chartsOrderReorderCounter:16,messageOverrides:0,selectedChartId:1,layer:0,modelList:0,noGroup:5,disableEditing:5}}static{this.styles=E}willUpdate(e){e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList"))}disconnectedCallback(){super.disconnectedCallback(),this.removeChartRenamePopover()}modelListChange(e,t){t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e?.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)})}onAddChartClick(e){e.stopImmediatePropagation(),this.selectedActionChartId=void 0,this.isChartRenamePopoverOpen&&this.removeChartRenamePopover(),this.arcgisChartsConfigViewChartAddChart.emit({referenceElement:e.target,layerId:this.layer?.id.toString(),layerType:this.layer?.type})}buildTooltipLine(e,t){let i=typeof document<"u"&&document.documentElement.dir.toLowerCase()==="rtl",a=`${f(i)} `;return`${e}${a}${t}`}getChartTypeLabel(e){switch(w(e.chartType)){case s.BarChart:return this._messages.barChart??"";case s.LineChart:return this._messages.lineChart??"";case s.PieChart:return this._messages.pieChart??"";case s.Histogram:return this._messages.histogram??"";case s.Scatterplot:return this._messages.scatterplot??"";case s.BoxPlot:return this._messages.boxPlot??"";case s.HeatChart:return this._messages.calendarHeatChart??"";default:return""}}buildChartTooltip(e){let t=this.getChartTypeLabel(e);return this.buildTooltipLine(this._messages.chartType??"",t??"")}buildChartList(){let e=this.modelList?b(this.modelList,t=>t.chartId,(t,i)=>{let a=t.chartId,n=t.titleText,l=P(t.config),p=this.buildChartTooltip(t);return r`<calcite-list-item .label=${n??a??this._messages.chartTitle} title=${p??d} .selected=${this.selectedChartId===(a?.toString()??i.toString())} .value=${a??i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${l} title=${p??d}></calcite-icon>${this.disableEditing?null:r`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId===a} @calciteDropdownClose=${()=>this.chartActionClosed(a??"")} @calciteDropdownOpen=${()=>this.chartActionOpened(a??"")} class=${c(h.dropdownPopup)}><calcite-action scale=l .text=${this._messages.chartActions??""} slot=trigger .active=${a===this.selectedActionChartId}><calcite-icon icon=ellipsis></calcite-icon></calcite-action><calcite-dropdown-group selection-mode=none><calcite-dropdown-item accesskey=edit @calciteDropdownItemSelect=${this.chartEditSelect}>${this._messages.edit}</calcite-dropdown-item><calcite-dropdown-item accesskey=rename @click=${L=>L.stopPropagation()} @calciteDropdownItemSelect=${this.chartRenameSelect}>${this._messages.rename}</calcite-dropdown-item><calcite-dropdown-item accesskey=delete @calciteDropdownItemSelect=${this.chartDeleteSelect}>${this._messages.delete}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}</calcite-list-item>`}):null;return this.layer?r`<div>${this.noGroup?null:r`<p class=${c(h.header)}>${this.layer.title??this.layer.id.toString()}</p>`}${R(this.chartsOrderReorderCounter,r`<calcite-list label .dragEnabled=${!this.disableEditing} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${e}${this.disableEditing?null:r`<div class=${c(h.addChartContainer)}><calcite-fab slot=fab appearance=outline-fill kind=neutral text-enabled .text=${this._messages.addChart} .label=${this._messages.addChart} @click=${this.onAddChartClick} scale=s></calcite-fab></div>`}</calcite-list>`)}</div>`:null}onChartSelect(e){let t=e.currentTarget,i;t?.localName==="calcite-list-item"?i=t.value:t?.localName==="calcite-icon"&&(i=t.parentNode.value),this.arcgisChartsConfigViewChartSelect.emit({chartId:i})}chartEditSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartEdit.emit({chartId:this.selectedActionChartId}),this.chartActionClosed(this.selectedActionChartId))}chartRenameSelect(e){if(!this.disableEditing){let t=e.target.closest("calcite-list-item"),i=this.modelList?.find(a=>a.chartId===this.selectedActionChartId);t!==null&&(this.renameReferenceElement=t),this.arcgisChartsConfigViewChartSelect.emit({chartId:this.selectedActionChartId}),this.chartTitle=i?.titleText??"",this.setupRenamePopover()}}chartDeleteSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartDelete.emit({chartId:this.selectedActionChartId}),this.selectedActionChartId="")}chartActionClosed(e){e===this.selectedActionChartId&&!this.isChartRenamePopoverOpen&&(this.selectedActionChartId=void 0)}chartActionOpened(e){this.selectedActionChartId=e}setupRenamePopover(){this.isChartRenamePopoverOpen=!0,this.chartRenamePopover!==null&&(this.chartRenamePopover.name=this.chartTitle,this.chartRenamePopover.referenceElement=this.renameReferenceElement),this.chartRenamePopover=u(r`<arcgis-charts-config-chart-rename-popover .name=${this.chartTitle} .referenceElement=${this.renameReferenceElement} .open=${this.isChartRenamePopoverOpen} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigChartRenamePopoverChange=${this.onChartRename}></arcgis-charts-config-chart-rename-popover>`),!document.body.contains(this.chartRenamePopover)&&this.chartRenamePopover!==null&&document.body.appendChild(this.chartRenamePopover)}removeChartRenamePopover(){this.chartRenamePopover!==null&&(this.isChartRenamePopoverOpen=!1,this.chartRenamePopover=I(this.chartRenamePopover))}render(){return r`<div class=${c(h.viewChartComponent)}>${this.buildChartList()}</div>`}};v("arcgis-charts-config-view-charts",m);return m},a,e,f)