@arcgis/charts-components 5.2.0-next.147 → 5.2.0-next.148

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 (90) hide show
  1. package/dist/cdn/{M7PFJOW7.js → 35WMHYT2.js} +1 -1
  2. package/dist/cdn/{7IJMKD5M.js → 3NJBY7D5.js} +1 -1
  3. package/dist/cdn/{JWGHSOOD.js → 3TS66XWA.js} +1 -1
  4. package/dist/cdn/{FM6AHBVU.js → 4TYM6UJJ.js} +1 -1
  5. package/dist/cdn/{3JVIX4TL.js → 5Y4JJWPN.js} +1 -1
  6. package/dist/cdn/{B3V4VZYM.js → 6CAD6LP6.js} +1 -1
  7. package/dist/cdn/{HMHWVIF2.js → 6XWQN42N.js} +1 -1
  8. package/dist/cdn/{S2PIPJCQ.js → 7LSI4QET.js} +1 -1
  9. package/dist/cdn/{CZVLHPR7.js → A4DM7LOB.js} +1 -1
  10. package/dist/cdn/{N3YF4TVT.js → A5JDSY3V.js} +1 -1
  11. package/dist/cdn/{YB4ZDSSI.js → ABJACEKY.js} +1 -1
  12. package/dist/cdn/{KVHAU3R7.js → AM4O5CBY.js} +1 -1
  13. package/dist/cdn/{WK4FA5IO.js → BQZ7X2RU.js} +1 -1
  14. package/dist/cdn/{AQOVEDUP.js → BZUAVD2H.js} +1 -1
  15. package/dist/cdn/{ZGGFAHQL.js → CGEPLEGC.js} +1 -1
  16. package/dist/cdn/{QGC2DLQ4.js → CKFW4CY5.js} +1 -1
  17. package/dist/cdn/{GZAROP4P.js → D5O7HIVJ.js} +1 -1
  18. package/dist/cdn/{N2DHNIDT.js → DLYWE3OX.js} +1 -1
  19. package/dist/cdn/{UUXIIGCK.js → DMHX7CSV.js} +1 -1
  20. package/dist/cdn/{4BM25G3S.js → DVQCKJK3.js} +1 -1
  21. package/dist/cdn/{SHQXINAI.js → EATST6SH.js} +1 -1
  22. package/dist/cdn/{7PW4JAXI.js → EORA4L3F.js} +1 -1
  23. package/dist/cdn/{MTAGYPDJ.js → FK2MTZ63.js} +1 -1
  24. package/dist/cdn/{P5RPGI3P.js → FUT5S2CP.js} +1 -1
  25. package/dist/cdn/{7DWJIEIJ.js → GF6F65KI.js} +1 -1
  26. package/dist/cdn/{7ZDSUAN6.js → H4U4Q4JS.js} +1 -1
  27. package/dist/cdn/{FIFXR6OH.js → H6F77GU7.js} +1 -1
  28. package/dist/cdn/{V32BIR37.js → HBDGQ2GB.js} +1 -1
  29. package/dist/cdn/{BDUTHXO4.js → HJDQEV6B.js} +1 -1
  30. package/dist/cdn/{FGNSVA6W.js → HYJTLRAJ.js} +1 -1
  31. package/dist/cdn/{K5H4XE7T.js → IQ43MGK7.js} +1 -1
  32. package/dist/cdn/{IPPQ6AYM.js → JGJ5XQ6Y.js} +1 -1
  33. package/dist/cdn/{6JSWJHZB.js → JGOIM3OP.js} +1 -1
  34. package/dist/cdn/{CEZ2VRFW.js → JL4AMZV6.js} +1 -1
  35. package/dist/cdn/{HDUMEWQL.js → JLWJLLY7.js} +1 -1
  36. package/dist/cdn/{HRZK3GLD.js → KFKVTC4L.js} +1 -1
  37. package/dist/cdn/{INYPNEFZ.js → KJBDJD4J.js} +1 -1
  38. package/dist/cdn/{PNVMXN36.js → KVDHFW4K.js} +1 -1
  39. package/dist/cdn/{7MBF4226.js → LKXOL2CB.js} +1 -1
  40. package/dist/cdn/{46LRKKNP.js → LLMWLM4W.js} +1 -1
  41. package/dist/cdn/{D3Z4NVKQ.js → LMCUWQTD.js} +1 -1
  42. package/dist/cdn/{BOGEJ7J7.js → LQBPMG3M.js} +1 -1
  43. package/dist/cdn/{KMMYG2QX.js → LUPSJ7TV.js} +1 -1
  44. package/dist/cdn/{IMSN4JMC.js → LVPWHLNP.js} +1 -1
  45. package/dist/cdn/{YIYP2ECR.js → LVQL474B.js} +1 -1
  46. package/dist/cdn/{BKABNAQM.js → MCJHBGZ6.js} +1 -1
  47. package/dist/cdn/{5PTMLDOB.js → MDF5XBMX.js} +1 -1
  48. package/dist/cdn/{65I7BUS4.js → MHIEGJCV.js} +1 -1
  49. package/dist/cdn/{VZ64E76N.js → MJFCB72A.js} +1 -1
  50. package/dist/cdn/{YOUVPC2K.js → MJHHTTJ4.js} +1 -1
  51. package/dist/cdn/{JMYVXU4O.js → NFHBIEJB.js} +1 -1
  52. package/dist/cdn/{YUOEB6DF.js → NJE5NWZ4.js} +1 -1
  53. package/dist/cdn/{2CZEJ5DR.js → NOJAWNLN.js} +1 -1
  54. package/dist/cdn/{MVVC6PKQ.js → NVEJVRCO.js} +1 -1
  55. package/dist/cdn/{MVXG6N2M.js → NYD3P7GP.js} +1 -1
  56. package/dist/cdn/{C3XMGCU5.js → OALE2XRP.js} +1 -1
  57. package/dist/cdn/{QFFPKVJF.js → OJQPF4K5.js} +1 -1
  58. package/dist/cdn/{KUGVL62E.js → PF2AFMBH.js} +1 -1
  59. package/dist/cdn/{E66QO3GL.js → PLF3BIUU.js} +1 -1
  60. package/dist/cdn/{EEN4U5XM.js → PRN7A6WN.js} +1 -1
  61. package/dist/cdn/{4VSBIIP2.js → Q2T7GR6G.js} +1 -1
  62. package/dist/cdn/{2GE65C6S.js → QVSANSKQ.js} +1 -1
  63. package/dist/cdn/{TQS3LLJX.js → SNSOLJLT.js} +1 -1
  64. package/dist/cdn/{YM5SNR26.js → SUV74KD4.js} +1 -1
  65. package/dist/cdn/{3RI6PWDI.js → T22GTUEX.js} +1 -1
  66. package/dist/cdn/{4752WHSR.js → TC2XSGBD.js} +8 -8
  67. package/dist/cdn/{C2GHXSU5.js → TKKTDSAY.js} +1 -1
  68. package/dist/cdn/{I2FZ2KUR.js → TV7WXMZ6.js} +1 -1
  69. package/dist/cdn/{4XK5YE6C.js → UHU7OS4M.js} +1 -1
  70. package/dist/cdn/{AKG64YBZ.js → V6RF4BJF.js} +1 -1
  71. package/dist/cdn/{EYEWINUB.js → VOIQ4WGO.js} +1 -1
  72. package/dist/cdn/{ZUYZHJTU.js → VR6WXH3R.js} +1 -1
  73. package/dist/cdn/{TRTVGVQR.js → WFPA2JR5.js} +1 -1
  74. package/dist/cdn/{Z73I4R5C.js → X6X7AGPV.js} +1 -1
  75. package/dist/cdn/{H4GILMDJ.js → XACO7HBN.js} +1 -1
  76. package/dist/cdn/{5JERAZSG.js → XGN2V6RQ.js} +1 -1
  77. package/dist/cdn/{GBL2FACR.js → YFQA2Y6D.js} +1 -1
  78. package/dist/cdn/{QN2JEZ5D.js → YJZZYJED.js} +1 -1
  79. package/dist/cdn/{VPADWNW7.js → YZC55QBU.js} +1 -1
  80. package/dist/cdn/{EU5EYFH2.js → Z4TLRJ5S.js} +1 -1
  81. package/dist/cdn/{OOFDTNBW.js → ZBVTU5KN.js} +1 -1
  82. package/dist/cdn/{3BRUUROM.js → ZOIQ5767.js} +1 -1
  83. package/dist/cdn/{PU63PVCT.js → ZWPNPYLR.js} +1 -1
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/cdn/model/shared/setup-utils.js +1 -1
  86. package/dist/chunks/index.js +14 -9
  87. package/dist/components/arcgis-chart/customElement.js +1194 -1193
  88. package/dist/docs/api.json +1 -1
  89. package/dist/docs/docs.json +1 -1
  90. package/package.json +4 -4
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import t from"./FIFXR6OH.js";import s from"./SHQXINAI.js";import q from"./PU63PVCT.js";import o from"./ZUYZHJTU.js";import n from"./QFFPKVJF.js";import m from"./E66QO3GL.js";import l from"./P5RPGI3P.js";import k from"./C2GHXSU5.js";import j from"./C3XMGCU5.js";import i from"./YIYP2ECR.js";import h from"./7ZDSUAN6.js";import g from"./2GE65C6S.js";import"./O4TPXFX4.js";import f from"./BOGEJ7J7.js";import e from"./IMSN4JMC.js";import d from"./YUOEB6DF.js";import c from"./HMHWVIF2.js";import b from"./K5H4XE7T.js";import a from"./EYEWINUB.js";import{ta as _}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./YVJE3Q7H.js";import"./UE4KTI5X.js";import"./64L7VJJK.js";import{c as r}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as u,b as p}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ac:l,jc:S},,{e:i},,,,,,,,,,,,{e:y},,{$:K,A:F,B:v,C:D,D:b,E:L,F:R,G:I,H:w,I:P,J:k,K:B,L:U,M:Y,N:N,O:W,P:h,Q:m,R:M,S:V,T:E,U:G,V:H,W:X,X:j,Y:Z,Z:z,_:J,aa:Q,ba:$,ca:q,da:tt,ea:et,fa:it,ga:st,ha:ot,ia:rt,ja:nt,ka:at,la:gt,ma:pt,qa:f,v:C,w:T,x:A,y:O,z:x},{a:ct,b:lt,e:yt}])=>{var ht=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,s=(c,t,o,a)=>{for(var n=mt(t,o),g=c.length-1,d;g>=0;g--)(d=c[g])&&(n=d(t,o,n)||n);return n&&ht(t,o,n),n},e=class extends yt{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?pt(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}get layer(){return super.layer}async setup(t){await this.loadConfigFromLayer(t),gt({commonStrings:this.commonStrings,config:this._config,layerInfo:this.layerInfo}),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return D(this._config)}set yAxisField(t){v({yField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get viewType(){return K(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{Q(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return L(this._config)}set xTemporalBinning(t){b({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return I(this._config)}set yTemporalBinning(t){R({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return $(this._config)}set breaksCount(t){this.guardSetterFromAsyncOverwrite(()=>{q(t,this._config),this.emitConfigUpdate("breaksCount")})}get classificationMethod(){return tt(this._config)}set classificationMethod(t){this.guardSetterFromAsyncOverwrite(()=>{t&&(et(t,this._config),this.emitConfigUpdate("classificationMethod"))})}get colorRampName(){return ot(this._config)}set colorRampName(t){rt(t,this._config)}get isColorRampFlipped(){return nt(this._config)}set isColorRampFlipped(t){at(t,this._config)}get hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){w(t,this._config)}get gridLineColor(){return B(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return ct(0,this._config)}set seriesName(t){typeof t=="string"&&lt(t,0,this._config)}get heatRulesType(){return O(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return F(this._config)}set gradientRules(t){x(this._config,t)}getGridLinesSymbol(){return this._config.series?.[0]?.gridLine}setGridLinesSymbol(t){this._config.series?.[0]&&(this._config.series[0].gridLine=t)}get numericFields(){let t=N(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:o}=l(this.layerInfo.layer),a=S(t[0]),n=a?o:t[0];this._numericFields=[n],W({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=h(this._config);a&&g!==p.Count&&(this._aggregationType=p.Count,m({aggregationType:p.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}))}get aggregationType(){return h(this._config)}set aggregationType(t){this._aggregationType=t,m({aggregationType:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return""}set splitByField(t){}get legendPosition(){return Y(this._config)}set legendPosition(t){U(t,this._config)}get nullPolicy(){return M(this._config)}set nullPolicy(t){V(t,this._config)}get emptyCell(){return E(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{G(t,this._config),this.emitConfigUpdate("emptyCell")})}getDataSortOrder(){return r.Asc}setDataSortOrder(t,o){}getSortOrder(){return r.Asc}setSortOrder(t,o){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,o){y(t,this._config,o)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,o){y(t,this._config,o,!0)}get emptyCellText(){return H(this._config)}set emptyCellText(t){X(t,this._config)}get includeLeapDay(){return j(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{Z(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return st(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return z(this._config)}set emptyCellSymbol(t){J(t,this._config)}get rotated(){return!1}set rotated(t){}setAssignToSecondValueAxis(t,o){}getAssignToSecondValueAxis(){return!1}setSeriesToSecondaryYAxis(t,o){}getSeriesToSecondaryYAxis(){return!1}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,l(this.layerInfo.layer).idField);return t.axes?.forEach((o,a)=>{o&&(o.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};s([i],e.prototype,"yAxisField");s([i],e.prototype,"xTemporalBinning");s([i],e.prototype,"yTemporalBinning");s([i],e.prototype,"colorRampName");s([i],e.prototype,"isColorRampFlipped");s([i],e.prototype,"hideEmptyRowsAndColumns");s([i],e.prototype,"gridLineWidth");s([i],e.prototype,"gridLineColor");s([i],e.prototype,"seriesName");s([i],e.prototype,"heatRulesType");s([i],e.prototype,"gradientRules");s([i],e.prototype,"setGridLinesSymbol");s([i],e.prototype,"numericFields");s([i],e.prototype,"aggregationType");s([i],e.prototype,"splitByField");s([i],e.prototype,"legendPosition");s([i],e.prototype,"nullPolicy");s([i],e.prototype,"setDataSortOrder");s([i],e.prototype,"setSortOrder");s([i],e.prototype,"setXAxisSortOrder");s([i],e.prototype,"setYAxisSortOrder");s([i],e.prototype,"emptyCellText");s([i],e.prototype,"firstDayOfWeek");s([i],e.prototype,"emptyCellSymbol");s([i],e.prototype,"rotated");s([i],e.prototype,"setAssignToSecondValueAxis");s([i],e.prototype,"setSeriesToSecondaryYAxis");s([i],e.prototype,"stackedType");s([i],e.prototype,"binTemporalData");s([i],e.prototype,"nullCategory");return e},a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q,s,t)
2
+ import t from"./H6F77GU7.js";import s from"./EATST6SH.js";import q from"./ZWPNPYLR.js";import o from"./VR6WXH3R.js";import n from"./OJQPF4K5.js";import m from"./PLF3BIUU.js";import l from"./FUT5S2CP.js";import k from"./TKKTDSAY.js";import j from"./OALE2XRP.js";import i from"./LVQL474B.js";import h from"./H4U4Q4JS.js";import g from"./QVSANSKQ.js";import"./O4TPXFX4.js";import f from"./LQBPMG3M.js";import e from"./LVPWHLNP.js";import d from"./NJE5NWZ4.js";import c from"./6XWQN42N.js";import b from"./IQ43MGK7.js";import a from"./VOIQ4WGO.js";import{ta as _}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./YVJE3Q7H.js";import"./UE4KTI5X.js";import"./64L7VJJK.js";import{c as r}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as u,b as p}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ac:l,jc:S},,{e:i},,,,,,,,,,,,{e:y},,{$:K,A:F,B:v,C:D,D:b,E:L,F:R,G:I,H:w,I:P,J:k,K:B,L:U,M:Y,N:N,O:W,P:h,Q:m,R:M,S:V,T:E,U:G,V:H,W:X,X:j,Y:Z,Z:z,_:J,aa:Q,ba:$,ca:q,da:tt,ea:et,fa:it,ga:st,ha:ot,ia:rt,ja:nt,ka:at,la:gt,ma:pt,qa:f,v:C,w:T,x:A,y:O,z:x},{a:ct,b:lt,e:yt}])=>{var ht=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,s=(c,t,o,a)=>{for(var n=mt(t,o),g=c.length-1,d;g>=0;g--)(d=c[g])&&(n=d(t,o,n)||n);return n&&ht(t,o,n),n},e=class extends yt{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?pt(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}get layer(){return super.layer}async setup(t){await this.loadConfigFromLayer(t),gt({commonStrings:this.commonStrings,config:this._config,layerInfo:this.layerInfo}),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return D(this._config)}set yAxisField(t){v({yField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get viewType(){return K(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{Q(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return L(this._config)}set xTemporalBinning(t){b({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return I(this._config)}set yTemporalBinning(t){R({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return $(this._config)}set breaksCount(t){this.guardSetterFromAsyncOverwrite(()=>{q(t,this._config),this.emitConfigUpdate("breaksCount")})}get classificationMethod(){return tt(this._config)}set classificationMethod(t){this.guardSetterFromAsyncOverwrite(()=>{t&&(et(t,this._config),this.emitConfigUpdate("classificationMethod"))})}get colorRampName(){return ot(this._config)}set colorRampName(t){rt(t,this._config)}get isColorRampFlipped(){return nt(this._config)}set isColorRampFlipped(t){at(t,this._config)}get hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){w(t,this._config)}get gridLineColor(){return B(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return ct(0,this._config)}set seriesName(t){typeof t=="string"&&lt(t,0,this._config)}get heatRulesType(){return O(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return F(this._config)}set gradientRules(t){x(this._config,t)}getGridLinesSymbol(){return this._config.series?.[0]?.gridLine}setGridLinesSymbol(t){this._config.series?.[0]&&(this._config.series[0].gridLine=t)}get numericFields(){let t=N(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:o}=l(this.layerInfo.layer),a=S(t[0]),n=a?o:t[0];this._numericFields=[n],W({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=h(this._config);a&&g!==p.Count&&(this._aggregationType=p.Count,m({aggregationType:p.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}))}get aggregationType(){return h(this._config)}set aggregationType(t){this._aggregationType=t,m({aggregationType:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return""}set splitByField(t){}get legendPosition(){return Y(this._config)}set legendPosition(t){U(t,this._config)}get nullPolicy(){return M(this._config)}set nullPolicy(t){V(t,this._config)}get emptyCell(){return E(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{G(t,this._config),this.emitConfigUpdate("emptyCell")})}getDataSortOrder(){return r.Asc}setDataSortOrder(t,o){}getSortOrder(){return r.Asc}setSortOrder(t,o){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,o){y(t,this._config,o)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,o){y(t,this._config,o,!0)}get emptyCellText(){return H(this._config)}set emptyCellText(t){X(t,this._config)}get includeLeapDay(){return j(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{Z(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return st(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return z(this._config)}set emptyCellSymbol(t){J(t,this._config)}get rotated(){return!1}set rotated(t){}setAssignToSecondValueAxis(t,o){}getAssignToSecondValueAxis(){return!1}setSeriesToSecondaryYAxis(t,o){}getSeriesToSecondaryYAxis(){return!1}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,l(this.layerInfo.layer).idField);return t.axes?.forEach((o,a)=>{o&&(o.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};s([i],e.prototype,"yAxisField");s([i],e.prototype,"xTemporalBinning");s([i],e.prototype,"yTemporalBinning");s([i],e.prototype,"colorRampName");s([i],e.prototype,"isColorRampFlipped");s([i],e.prototype,"hideEmptyRowsAndColumns");s([i],e.prototype,"gridLineWidth");s([i],e.prototype,"gridLineColor");s([i],e.prototype,"seriesName");s([i],e.prototype,"heatRulesType");s([i],e.prototype,"gradientRules");s([i],e.prototype,"setGridLinesSymbol");s([i],e.prototype,"numericFields");s([i],e.prototype,"aggregationType");s([i],e.prototype,"splitByField");s([i],e.prototype,"legendPosition");s([i],e.prototype,"nullPolicy");s([i],e.prototype,"setDataSortOrder");s([i],e.prototype,"setSortOrder");s([i],e.prototype,"setXAxisSortOrder");s([i],e.prototype,"setYAxisSortOrder");s([i],e.prototype,"emptyCellText");s([i],e.prototype,"firstDayOfWeek");s([i],e.prototype,"emptyCellSymbol");s([i],e.prototype,"rotated");s([i],e.prototype,"setAssignToSecondValueAxis");s([i],e.prototype,"setSeriesToSecondaryYAxis");s([i],e.prototype,"stackedType");s([i],e.prototype,"binTemporalData");s([i],e.prototype,"nullCategory");return e},a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q,s,t)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import v from"./HRZK3GLD.js";import{a as te}from"./L7CMLBHB.js";import{a as ae}from"./PABVNO3N.js";import{a as w}from"./YNHYJOH7.js";import{a as ie}from"./RP6LD7CU.js";import u from"./OOFDTNBW.js";import{a as $,b as J,e as W}from"./OBPAQN4H.js";import{a as f}from"./DRYZWCWX.js";import t from"./3BRUUROM.js";import{d as c}from"./POA2XTTK.js";import{a as I}from"./TJ5BGDYZ.js";import s from"./TQS3LLJX.js";import r from"./BKABNAQM.js";import p from"./AQOVEDUP.js";import{a as Q}from"./V32BIR37.js";import"./K4GPJ36N.js";import m from"./SHQXINAI.js";import l from"./PU63PVCT.js";import k from"./ZUYZHJTU.js";import i from"./C2GHXSU5.js";import{b as j,c as P,i as q,l as B,p as L,r as K}from"./O4TPXFX4.js";import g from"./IMSN4JMC.js";import e from"./YUOEB6DF.js";import d from"./HMHWVIF2.js";import b from"./K5H4XE7T.js";import a from"./EYEWINUB.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as M,d as U}from"./NGXRBJKL.js";import"./YVJE3Q7H.js";import{A,B as V,C as h,D as _,F as S,H as z,g as F,i as n,n as C,z as N}from"./UE4KTI5X.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as o,k as H}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:le},{Eb:X,ic:G,l:R,rc:v,s:O,t:b,xa:x},,,,,{d:T},,{a:Y},,,,,{r:ee},{e:y,f:Z},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function se(m,e){let t=new Set,a=e;return m?.forEach((i,s)=>{let r=i.chartId;(t.has(r)||r===void 0||r==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===r&&(a=i.chartId)),t.add(r)}),a}function oe(m){let{layerRasterInfo:e,layerId:t,layerType:a}=m,i=[];return O(a)&&t!==void 0?(i=[o.HistogramSeries,o.ScatterSeries],e?.attributeTable&&i.push(o.BarSeries)):a==="parquet"?i=[o.BarSeries,o.LineSeries,o.PieSeries,o.HistogramSeries]:i=[o.HistogramSeries,o.BarSeries,o.BoxPlotSeries,o.HeatSeries,o.LineSeries,o.PieSeries,o.ScatterSeries],i}function ce(m){let{modelList:e,layerList:t,activeLayerId:a,disableEditing:i}=m,s=new Map;return e?.forEach(r=>{let l=r.layer;l&&s.set(l.id,l)}),i||t.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!a||r.id===a)}function ne(m,e){m.forEach(t=>{e.forEach(a=>{t?.id===a.layer?.id&&re(t,a)})})}function re(m,e){let t=m;if(t){let a=[...t?.charts??[]],i=a?.findIndex(r=>r.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!M(a[i],e.config),a[i]=e.config):t&&!T(e.config)&&(s=!0,a.push(e.config)),s&&(t.charts=a)}}function he(m,e){let t=m;if(t){let a=[...t.charts??[]],i=a.findIndex(s=>s.id===e);i>-1&&(a.splice(i,1),t.charts=a)}}function de(m,e){let t=m;if(t){let a=[...t.charts??[]];a=v({arrayA:a,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),t.charts=a}}var me=F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,D=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this._messages=I(),this.commonStrings=I({name:"common",blocking:!0}),this.chartDataProcessComplete=async e=>{let t=e,{chartData:a,model:i}=t.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:if(this.chartData=a,i&&(i.dataStore.chartData=a,b(i.layer))){let r=i,l=a?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=a,i&&(i.dataStore.chartData=a);break}case o.ScatterSeries:{let r=a,{dataItems:l,r2:p,aggregated:g}=r,u=p;Number.isFinite(p)||(u=void 0),this.r2=u,q(i)&&(i.dataStore.r2=u,i.dataStore.aggregated=g,g&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=a;(P(s)||j(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&W($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}}},this.chartAxesMinMaxChange=e=>{let t=e,{bounds:a,model:i}=t.detail,s=this.getModel(this.selectedChartId),r=i?.isSameChartAs(s),l=s?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=a,i&&(i.dataStore.calculatedMinMaxBounds=a),this.updateAxesBoundsInAppState(a);break}},this.chartSeriesColorChange=e=>{let t=e,{colorMatchApplied:a,data:i,model:s}=t.detail,r=this.getModel(this.selectedChartId);if(s?.isSameChartAs(r))switch(r?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=i,s&&(s.dataStore.seriesColor=i),this.applyNullCategorySeriesColor({colorMatchApplied:a,data:i,model:r});break;case o.PieSeries:{let l=new Map([[0,i]]);this.seriesColor=l,s&&(s.dataStore.seriesColor=l);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let t=e,{propName:a,value:i,model:s}=t.detail,r=this.modelList.find(l=>s?.isSameChartAs(l));if(r)switch(a){case"rotation":typeof i=="boolean"&&Y(r)&&(r.rotated=i);break;case"legendPosition":typeof i=="string"&&L(r)&&(r.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&L(r)&&(r.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let t=e,{legendItemVisibility:a,model:i}=t.detail,s=this.modelList.find(r=>i?.isSameChartAs(r));s?.setSeriesVisibility(a),B(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),P(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:t,layerId:a}=e.target;t!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:t,layerId:a}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let t=e.target;re(t?.layer,t)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],view:0,r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:Z}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=me}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}applyNullCategorySeriesColor(e){let{colorMatchApplied:t,data:a,model:i}=e;K(i)&&i.nullCategory===void 0&&(i.nullCategory=this.getDefaultNullCategory(t?this.getSeriesColor(a):void 0))}getSeriesColor(e){let t=e.get(0),a;return t&&"color"in t?a=t.color:t&&"lineSymbol"in t&&(a=t.markerSymbol?.color??t.lineSymbol.color),a}getDefaultNullCategory(e){let t=U(R.nullCategory);return e!==void 0&&(t.fillSymbol&&(t.fillSymbol.color=e,t.fillSymbol.outline&&(t.fillSymbol.outline.color=e)),t.markerSymbol&&(t.markerSymbol.color=e,t.markerSymbol.outline&&(t.markerSymbol.outline.color=e))),t}modelListReorderChangeListener(e){let{modelList:t}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:t,getKey:a=>a.chartId??a.titleText??""}),this.syncChartsToLayers){let a=t.find(i=>i.layer?.id!==void 0)?.layer?.id;if(a){let i=this.layerList.find(s=>s.id.toString()===a);i&&de(i,t)}}}async layerListChange(){let e=[],t=this.layerList.map(i=>i.id.toString()),a=[...this.modelList.filter(i=>t.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let p=await i.createFeatureLayer();if(!p)continue;i=p}let s=i.charts,r=b(i)?await x(i):void 0,l=oe({layerRasterInfo:r,layerId:i.id,layerType:i.type});for(let p of s??[]){let g;G(l,p)&&(g=await Q({layer:i,config:p,commonStrings:this.commonStrings})),g&&e.push(g)}}se(e),e.forEach(i=>{a.find(s=>s.isSameChartAs(i))===void 0&&a.push(i)}),this.modelList=a}modelListChange(e,t){this.selectedChartId=se(e,this.selectedChartId),t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let a=this.getModel(this.selectedChartId);this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&ne(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=c.Data;let t=this.getModel(e);this.setEventBasedPropsFromModelData(t),this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:t})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let t=this.getModel(this.selectedChartId)?.config,a=[];if(t!==void 0&&e!==void 0){let i=X({chartConfig:t,chartData:e}),{minY:s,maxY:r,minX:l,maxX:p}=i;a=[{isXAxis:!0,minimum:l,maximum:p},{isXAxis:!1,minimum:s,maximum:r}]}return a}updateAxesBoundsInAppState(e){e?.forEach(t=>{let{isXAxis:a,maximum:i,minimum:s}=t,r=this.getModel(this.selectedChartId);if(r!==void 0&&B(r)&&this.selectedChartId!==void 0){let l=new te(r,a),p=J({chartId:this.selectedChartId,isXAxis:a,isLogarithmic:l.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let u=g[this.selectedChartId]?.[p],E={defaultMinBound:u?.defaultMinBound===u?.currMinBound?s:u?.defaultMinBound,currMinBound:s,defaultMaxBound:u?.defaultMaxBound===u?.currMaxBound?i:u?.defaultMaxBound,currMaxBound:i};!M(u,E)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][p]=E)}})}getPlacement(e){let t;return this.popoverPlacement!==void 0?t=this.popoverPlacement:t=e<=2?"bottom":"top",t}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:t,layer:a}=e.detail;this.removeSelectChartTypePopover();let i=oe({layerId:a?.id,layerType:a?.type,layerRasterInfo:b(a)?await x(a):void 0}),s=this.getPlacement(i.length);this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${t} open .layerId=${a?.id?.toString()} .layerType=${a?.type} .supportedChartTypes=${i} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(t=>t.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=ie(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!T(e.config))}onViewChartDelete(e){let{chartId:t}=e.detail;if(t!==void 0){let a=this.modelList.find(s=>s.chartId===t),i=this.layerList.find(s=>s.id===a?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==t)],i&&this.syncChartsToLayers&&this.allowChartSyncing&&he(i,t)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let t=e.target,a="";switch(t.icon){case"configure":a=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":a=this._messages.series??"";break;case"graph-pie-slice":a=this._messages.slices??"";break;case"graph-axis":a=this._messages.axes??"";break;case"graph-guides":a=this._messages.guides??"";break;case"palette":a=this._messages.format??"";break;case"text":a=this._messages.general??"";break;default:a="";break}this.tooltip=S(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ee(this.tooltip)}renderViewCharts(){let e=ce({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ae(e,t=>t.id,t=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${this.modelList.filter(a=>a.layer?.id===t.id)} .selectedChartId=${this.selectedChartId??""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:n`<calcite-flow>${w("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return w("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??c.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?le(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?n`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===c.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=c.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?n`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.LineSeries?n`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?n`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.PieSeries?n`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===c.Slices} @click=${()=>{this.selectedPanel=c.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices??""}></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===c.Axes} @click=${()=>{this.selectedPanel=c.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes??""}></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===c.Guides} @click=${()=>{this.selectedPanel=c.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides??""}></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===c.Format} @click=${()=>{this.selectedPanel=c.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format??""}></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===c.General} @click=${()=>{this.selectedPanel=c.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general??""}></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),t=e?.layer,a=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:a=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:a=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:a=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:a=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:a=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .view=${this.view} .page=${this.selectedPanel??c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:a=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:a=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data}></arcgis-charts-config-heat-chart>`;break}return a}};z("arcgis-charts-config-create-flow",D);return D},"intl",a,b,d,e,g,i,k,l,m,p,r,s,t,u,v)
2
+ import v from"./KFKVTC4L.js";import{a as te}from"./L7CMLBHB.js";import{a as ae}from"./PABVNO3N.js";import{a as w}from"./YNHYJOH7.js";import{a as ie}from"./RP6LD7CU.js";import u from"./ZBVTU5KN.js";import{a as $,b as J,e as W}from"./OBPAQN4H.js";import{a as f}from"./DRYZWCWX.js";import t from"./ZOIQ5767.js";import{d as c}from"./POA2XTTK.js";import{a as I}from"./TJ5BGDYZ.js";import s from"./SNSOLJLT.js";import r from"./MCJHBGZ6.js";import p from"./BZUAVD2H.js";import{a as Q}from"./HBDGQ2GB.js";import"./K4GPJ36N.js";import m from"./EATST6SH.js";import l from"./ZWPNPYLR.js";import k from"./VR6WXH3R.js";import i from"./TKKTDSAY.js";import{b as j,c as P,i as q,l as B,p as L,r as K}from"./O4TPXFX4.js";import g from"./LVPWHLNP.js";import e from"./NJE5NWZ4.js";import d from"./6XWQN42N.js";import b from"./IQ43MGK7.js";import a from"./VOIQ4WGO.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as M,d as U}from"./NGXRBJKL.js";import"./YVJE3Q7H.js";import{A,B as V,C as h,D as _,F as S,H as z,g as F,i as n,n as C,z as N}from"./UE4KTI5X.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as o,k as H}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:le},{Eb:X,ic:G,l:R,rc:v,s:O,t:b,xa:x},,,,,{d:T},,{a:Y},,,,,{r:ee},{e:y,f:Z},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function se(m,e){let t=new Set,a=e;return m?.forEach((i,s)=>{let r=i.chartId;(t.has(r)||r===void 0||r==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===r&&(a=i.chartId)),t.add(r)}),a}function oe(m){let{layerRasterInfo:e,layerId:t,layerType:a}=m,i=[];return O(a)&&t!==void 0?(i=[o.HistogramSeries,o.ScatterSeries],e?.attributeTable&&i.push(o.BarSeries)):a==="parquet"?i=[o.BarSeries,o.LineSeries,o.PieSeries,o.HistogramSeries]:i=[o.HistogramSeries,o.BarSeries,o.BoxPlotSeries,o.HeatSeries,o.LineSeries,o.PieSeries,o.ScatterSeries],i}function ce(m){let{modelList:e,layerList:t,activeLayerId:a,disableEditing:i}=m,s=new Map;return e?.forEach(r=>{let l=r.layer;l&&s.set(l.id,l)}),i||t.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!a||r.id===a)}function ne(m,e){m.forEach(t=>{e.forEach(a=>{t?.id===a.layer?.id&&re(t,a)})})}function re(m,e){let t=m;if(t){let a=[...t?.charts??[]],i=a?.findIndex(r=>r.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!M(a[i],e.config),a[i]=e.config):t&&!T(e.config)&&(s=!0,a.push(e.config)),s&&(t.charts=a)}}function he(m,e){let t=m;if(t){let a=[...t.charts??[]],i=a.findIndex(s=>s.id===e);i>-1&&(a.splice(i,1),t.charts=a)}}function de(m,e){let t=m;if(t){let a=[...t.charts??[]];a=v({arrayA:a,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),t.charts=a}}var me=F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,D=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this._messages=I(),this.commonStrings=I({name:"common",blocking:!0}),this.chartDataProcessComplete=async e=>{let t=e,{chartData:a,model:i}=t.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:if(this.chartData=a,i&&(i.dataStore.chartData=a,b(i.layer))){let r=i,l=a?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=a,i&&(i.dataStore.chartData=a);break}case o.ScatterSeries:{let r=a,{dataItems:l,r2:p,aggregated:g}=r,u=p;Number.isFinite(p)||(u=void 0),this.r2=u,q(i)&&(i.dataStore.r2=u,i.dataStore.aggregated=g,g&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=a;(P(s)||j(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&W($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}}},this.chartAxesMinMaxChange=e=>{let t=e,{bounds:a,model:i}=t.detail,s=this.getModel(this.selectedChartId),r=i?.isSameChartAs(s),l=s?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=a,i&&(i.dataStore.calculatedMinMaxBounds=a),this.updateAxesBoundsInAppState(a);break}},this.chartSeriesColorChange=e=>{let t=e,{colorMatchApplied:a,data:i,model:s}=t.detail,r=this.getModel(this.selectedChartId);if(s?.isSameChartAs(r))switch(r?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=i,s&&(s.dataStore.seriesColor=i),this.applyNullCategorySeriesColor({colorMatchApplied:a,data:i,model:r});break;case o.PieSeries:{let l=new Map([[0,i]]);this.seriesColor=l,s&&(s.dataStore.seriesColor=l);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let t=e,{propName:a,value:i,model:s}=t.detail,r=this.modelList.find(l=>s?.isSameChartAs(l));if(r)switch(a){case"rotation":typeof i=="boolean"&&Y(r)&&(r.rotated=i);break;case"legendPosition":typeof i=="string"&&L(r)&&(r.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&L(r)&&(r.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let t=e,{legendItemVisibility:a,model:i}=t.detail,s=this.modelList.find(r=>i?.isSameChartAs(r));s?.setSeriesVisibility(a),B(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),P(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:t,layerId:a}=e.target;t!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:t,layerId:a}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let t=e.target;re(t?.layer,t)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],view:0,r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:Z}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=me}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}applyNullCategorySeriesColor(e){let{colorMatchApplied:t,data:a,model:i}=e;K(i)&&i.nullCategory===void 0&&(i.nullCategory=this.getDefaultNullCategory(t?this.getSeriesColor(a):void 0))}getSeriesColor(e){let t=e.get(0),a;return t&&"color"in t?a=t.color:t&&"lineSymbol"in t&&(a=t.markerSymbol?.color??t.lineSymbol.color),a}getDefaultNullCategory(e){let t=U(R.nullCategory);return e!==void 0&&(t.fillSymbol&&(t.fillSymbol.color=e,t.fillSymbol.outline&&(t.fillSymbol.outline.color=e)),t.markerSymbol&&(t.markerSymbol.color=e,t.markerSymbol.outline&&(t.markerSymbol.outline.color=e))),t}modelListReorderChangeListener(e){let{modelList:t}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:t,getKey:a=>a.chartId??a.titleText??""}),this.syncChartsToLayers){let a=t.find(i=>i.layer?.id!==void 0)?.layer?.id;if(a){let i=this.layerList.find(s=>s.id.toString()===a);i&&de(i,t)}}}async layerListChange(){let e=[],t=this.layerList.map(i=>i.id.toString()),a=[...this.modelList.filter(i=>t.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let p=await i.createFeatureLayer();if(!p)continue;i=p}let s=i.charts,r=b(i)?await x(i):void 0,l=oe({layerRasterInfo:r,layerId:i.id,layerType:i.type});for(let p of s??[]){let g;G(l,p)&&(g=await Q({layer:i,config:p,commonStrings:this.commonStrings})),g&&e.push(g)}}se(e),e.forEach(i=>{a.find(s=>s.isSameChartAs(i))===void 0&&a.push(i)}),this.modelList=a}modelListChange(e,t){this.selectedChartId=se(e,this.selectedChartId),t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let a=this.getModel(this.selectedChartId);this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&ne(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=c.Data;let t=this.getModel(e);this.setEventBasedPropsFromModelData(t),this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:t})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let t=this.getModel(this.selectedChartId)?.config,a=[];if(t!==void 0&&e!==void 0){let i=X({chartConfig:t,chartData:e}),{minY:s,maxY:r,minX:l,maxX:p}=i;a=[{isXAxis:!0,minimum:l,maximum:p},{isXAxis:!1,minimum:s,maximum:r}]}return a}updateAxesBoundsInAppState(e){e?.forEach(t=>{let{isXAxis:a,maximum:i,minimum:s}=t,r=this.getModel(this.selectedChartId);if(r!==void 0&&B(r)&&this.selectedChartId!==void 0){let l=new te(r,a),p=J({chartId:this.selectedChartId,isXAxis:a,isLogarithmic:l.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let u=g[this.selectedChartId]?.[p],E={defaultMinBound:u?.defaultMinBound===u?.currMinBound?s:u?.defaultMinBound,currMinBound:s,defaultMaxBound:u?.defaultMaxBound===u?.currMaxBound?i:u?.defaultMaxBound,currMaxBound:i};!M(u,E)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][p]=E)}})}getPlacement(e){let t;return this.popoverPlacement!==void 0?t=this.popoverPlacement:t=e<=2?"bottom":"top",t}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:t,layer:a}=e.detail;this.removeSelectChartTypePopover();let i=oe({layerId:a?.id,layerType:a?.type,layerRasterInfo:b(a)?await x(a):void 0}),s=this.getPlacement(i.length);this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${t} open .layerId=${a?.id?.toString()} .layerType=${a?.type} .supportedChartTypes=${i} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(t=>t.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=ie(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!T(e.config))}onViewChartDelete(e){let{chartId:t}=e.detail;if(t!==void 0){let a=this.modelList.find(s=>s.chartId===t),i=this.layerList.find(s=>s.id===a?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==t)],i&&this.syncChartsToLayers&&this.allowChartSyncing&&he(i,t)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let t=e.target,a="";switch(t.icon){case"configure":a=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":a=this._messages.series??"";break;case"graph-pie-slice":a=this._messages.slices??"";break;case"graph-axis":a=this._messages.axes??"";break;case"graph-guides":a=this._messages.guides??"";break;case"palette":a=this._messages.format??"";break;case"text":a=this._messages.general??"";break;default:a="";break}this.tooltip=S(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ee(this.tooltip)}renderViewCharts(){let e=ce({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ae(e,t=>t.id,t=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${this.modelList.filter(a=>a.layer?.id===t.id)} .selectedChartId=${this.selectedChartId??""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:n`<calcite-flow>${w("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return w("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??c.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?le(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?n`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===c.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=c.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?n`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.LineSeries?n`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?n`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.PieSeries?n`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===c.Slices} @click=${()=>{this.selectedPanel=c.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices??""}></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===c.Axes} @click=${()=>{this.selectedPanel=c.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes??""}></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===c.Guides} @click=${()=>{this.selectedPanel=c.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides??""}></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===c.Format} @click=${()=>{this.selectedPanel=c.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format??""}></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===c.General} @click=${()=>{this.selectedPanel=c.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general??""}></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),t=e?.layer,a=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:a=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:a=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:a=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:a=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:a=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .view=${this.view} .page=${this.selectedPanel??c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:a=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:a=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??c.Data}></arcgis-charts-config-heat-chart>`;break}return a}};z("arcgis-charts-config-create-flow",D);return D},"intl",a,b,d,e,g,i,k,l,m,p,r,s,t,u,v)