@arcgis/charts-components 5.1.2 → 5.1.3

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 (104) hide show
  1. package/dist/cdn/{P3UNVQS7.js → 2I5SK53X.js} +1 -1
  2. package/dist/cdn/{PUGAJFQ4.js → 2VORKMJP.js} +1 -1
  3. package/dist/cdn/{ICMG5OSW.js → 2Y22PMRJ.js} +1 -1
  4. package/dist/cdn/{5GH3OFHI.js → 37JRO33Y.js} +1 -1
  5. package/dist/cdn/{7VT3PWDF.js → 3EFZRLIC.js} +1 -1
  6. package/dist/cdn/{XNAEJAWM.js → 3G6DJQ4I.js} +1 -1
  7. package/dist/cdn/{SJLXVHEK.js → 3OI3AZ2X.js} +1 -1
  8. package/dist/cdn/{GLAETANO.js → 3WD3F7XJ.js} +1 -1
  9. package/dist/cdn/{OQASNTFD.js → 4J7NXFBO.js} +1 -1
  10. package/dist/cdn/{TZEFJQQO.js → 4T7HXRHF.js} +1 -1
  11. package/dist/cdn/{NBPDOKLD.js → 55HY3O3G.js} +1 -1
  12. package/dist/cdn/{SR3RJNZQ.js → 5D5W37TE.js} +1 -1
  13. package/dist/cdn/{K7KTF7KO.js → 5PFSNEUO.js} +1 -1
  14. package/dist/cdn/{VNG5IORT.js → 62BJOWS5.js} +1 -1
  15. package/dist/cdn/{NUGTADWT.js → 6BXL3DWS.js} +1 -1
  16. package/dist/cdn/{IFCENHKZ.js → 6G5SQMIG.js} +1 -1
  17. package/dist/cdn/{3TA3RDV3.js → 6LWK26JA.js} +1 -1
  18. package/dist/cdn/{Q7ZUX7SL.js → 6PE747G2.js} +1 -1
  19. package/dist/cdn/{GTL767EA.js → 6SYRXDBU.js} +1 -1
  20. package/dist/cdn/{SO54SMRK.js → 7HGJIAXH.js} +1 -1
  21. package/dist/cdn/{5LE75OKD.js → 7IYKY4HO.js} +1 -1
  22. package/dist/cdn/{E67Z7RHG.js → 7MOCVCHZ.js} +1 -1
  23. package/dist/cdn/{QVQYL6M6.js → A5OI4GRG.js} +1 -1
  24. package/dist/cdn/{YB3MZLQ3.js → AA7A24A4.js} +1 -1
  25. package/dist/cdn/{NI6RCR5I.js → AGUX5S6D.js} +1 -1
  26. package/dist/cdn/{BWSQAF3V.js → AWFHVQ4C.js} +1 -1
  27. package/dist/cdn/{JNRPZSX2.js → BHMPG4IV.js} +1 -1
  28. package/dist/cdn/{S6SNO2EA.js → BKMDQJY6.js} +1 -1
  29. package/dist/cdn/{U46QANN7.js → BU67W3KJ.js} +1 -1
  30. package/dist/cdn/{OVKTWAJF.js → C3ELQOWG.js} +1 -1
  31. package/dist/cdn/{VJIYLBEB.js → CGFQNAHX.js} +1 -1
  32. package/dist/cdn/{ZNNQGFW5.js → COW63QH2.js} +1 -1
  33. package/dist/cdn/{CS62SWED.js → CQR77GPW.js} +1 -1
  34. package/dist/cdn/{JXMKI4IA.js → CXABUNU5.js} +1 -1
  35. package/dist/cdn/{3P23ZVN7.js → D2EH6ONT.js} +1 -1
  36. package/dist/cdn/{OIZPNP26.js → D7MKFOZN.js} +1 -1
  37. package/dist/cdn/{GIDFPLFF.js → DMONWSPY.js} +1 -1
  38. package/dist/cdn/{NMF2WTWI.js → EEUWGAPS.js} +1 -1
  39. package/dist/cdn/{3YYMPKGE.js → ENCDG6FM.js} +1 -1
  40. package/dist/cdn/{ZEUIFHHY.js → FDTTRHRP.js} +1 -1
  41. package/dist/cdn/{2B6N7FWF.js → FPUV2RAW.js} +1 -1
  42. package/dist/cdn/{M3TE4TO2.js → FWEWN4I2.js} +1 -1
  43. package/dist/cdn/{JD43H6XD.js → FY3AFT4C.js} +1 -1
  44. package/dist/cdn/{BYGJR44E.js → GAO6N5DQ.js} +1 -1
  45. package/dist/cdn/{ABXH2N5Z.js → GJAJ4U5M.js} +1 -1
  46. package/dist/cdn/{E4ZX35OO.js → GMPDEHNU.js} +1 -1
  47. package/dist/cdn/{YCJWLASD.js → GPBRXXVW.js} +1 -1
  48. package/dist/cdn/{BQTWGQLP.js → GVR7ARJY.js} +1 -1
  49. package/dist/cdn/{J7JQTU7Z.js → H34IOPWZ.js} +1 -1
  50. package/dist/cdn/{P3NOLN4B.js → HAEAPXPK.js} +1 -1
  51. package/dist/cdn/{23CRD7HX.js → HMYTEW5B.js} +1 -1
  52. package/dist/cdn/{KE2C7F2Y.js → HV2WZZ2R.js} +1 -1
  53. package/dist/cdn/{YO6A2YHO.js → HVFQPGMN.js} +1 -1
  54. package/dist/cdn/{LCZDAPJ2.js → INTVGG6M.js} +1 -1
  55. package/dist/cdn/{F4OFYIQV.js → IO53Q5WD.js} +1 -1
  56. package/dist/cdn/{5MUUCLRR.js → J2PKUF5F.js} +1 -1
  57. package/dist/cdn/{VVPCLQHH.js → JWEXM2O6.js} +1 -1
  58. package/dist/cdn/{75TR4O5O.js → K54AVNQV.js} +1 -1
  59. package/dist/cdn/{47ZF5XTV.js → KDNFHAVZ.js} +1 -1
  60. package/dist/cdn/{D5XEPB7Y.js → KFY6SEZU.js} +1 -1
  61. package/dist/cdn/{TOTYYAA5.js → L2WSLIMW.js} +1 -1
  62. package/dist/cdn/{A45L4YEF.js → MURHBYGC.js} +1 -1
  63. package/dist/cdn/{IIOX3RFV.js → MWFT5XT2.js} +1 -1
  64. package/dist/cdn/{PTXIYS2H.js → NXC7YT6Y.js} +1 -1
  65. package/dist/cdn/{4H6RZWUK.js → O5OI7ZFM.js} +1 -1
  66. package/dist/cdn/{YLW4B7PO.js → PAUMSI2Y.js} +1 -1
  67. package/dist/cdn/{LINGZCLS.js → PDD74AKL.js} +1 -1
  68. package/dist/cdn/{JMTMQC5D.js → PFFBGTMZ.js} +1 -1
  69. package/dist/cdn/{ZC64GSWH.js → PG6IHFMC.js} +1 -1
  70. package/dist/cdn/{QXO56EEX.js → POFKF33T.js} +1 -1
  71. package/dist/cdn/{72RT5P6B.js → QI6SNQEH.js} +1 -1
  72. package/dist/cdn/{AWK63DFR.js → QJ4OVDBD.js} +1 -1
  73. package/dist/cdn/{QFIFEZPG.js → QU5AAXED.js} +1 -1
  74. package/dist/cdn/{HDQGCIFU.js → QVDBUYN3.js} +1 -1
  75. package/dist/cdn/{CMP6PTJT.js → S7OB4ILP.js} +2 -2
  76. package/dist/cdn/{562GIY35.js → SSPQBR27.js} +1 -1
  77. package/dist/cdn/{7VOQAPKR.js → SWVQ5R5T.js} +1 -1
  78. package/dist/cdn/{XNRQCRPW.js → T5JVQAZD.js} +1 -1
  79. package/dist/cdn/{VKALNXU3.js → T7POIQNM.js} +1 -1
  80. package/dist/cdn/{J2HBTLZL.js → TSTVAPLA.js} +1 -1
  81. package/dist/cdn/{NSCYUNI2.js → UHM22GXZ.js} +1 -1
  82. package/dist/cdn/{ZIVZ5VM7.js → UZW64U7F.js} +1 -1
  83. package/dist/cdn/{NKVDX2XU.js → VVYGCHEV.js} +1 -1
  84. package/dist/cdn/{UCKHWA7Y.js → VXSKPIG5.js} +1 -1
  85. package/dist/cdn/{X6TCZC2V.js → WF5TH5FA.js} +1 -1
  86. package/dist/cdn/{B2US7GOK.js → X3FPNPJ3.js} +1 -1
  87. package/dist/cdn/{VRCBDAIM.js → XA4DLCWT.js} +1 -1
  88. package/dist/cdn/{XLZMYLCK.js → XFDEOFVM.js} +1 -1
  89. package/dist/cdn/{QVUK4O4M.js → XSCGCWY2.js} +1 -1
  90. package/dist/cdn/{MJQFSILF.js → YFJD7WZK.js} +1 -1
  91. package/dist/cdn/{SHMV2YW7.js → YONHYC4U.js} +1 -1
  92. package/dist/cdn/{44WYDFC2.js → YRCCTEPG.js} +1 -1
  93. package/dist/cdn/{FQO23L3F.js → YULNJRDC.js} +1 -1
  94. package/dist/cdn/{DWMT4K7G.js → YWG3JNZV.js} +1 -1
  95. package/dist/cdn/{5BS2HDMS.js → ZMCI6OFQ.js} +1 -1
  96. package/dist/cdn/{5TPBNWMN.js → ZSDTIVLB.js} +1 -1
  97. package/dist/cdn/index.js +1 -1
  98. package/dist/cdn/model/shared/setup-utils.js +1 -1
  99. package/dist/chunks/index2.js +71 -71
  100. package/dist/chunks/runtime.js +1 -1
  101. package/dist/docs/api.json +1 -1
  102. package/dist/docs/docs.json +1 -1
  103. package/dist/docs/web-types.json +1 -1
  104. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import d from"./LINGZCLS.js";import c from"./XNAEJAWM.js";import{a as L,b as V,c as S,d as T,e as B,f as O,g as M,h as z}from"./NQAPPISU.js";import b from"./ZNNQGFW5.js";import a from"./SJLXVHEK.js";import{A as l}from"./6JI4NDJ6.js";import{g as _}from"./FIMXZMTB.js";import{j as u}from"./EZM4ZDQI.js";import{p as h}from"./XOB365BI.js";export default $arcgis.t(([{c:d,d:p,h:t,i:b,j:m,k:I,l:A,m:v,q:C},{c:r},D,{a:G,b:k,c:y}])=>{var F=o=>{for(let i of o.axes??[])if(i?.grid!==void 0)return i.grid},H=(o,i,s)=>{let e=i.axes;s.forEach(c=>{e?.[c]!==void 0&&(e[c].grid=_(o))})},N=(o,i)=>i.axes?.[o]?.visible??!0,j=(o,i,s)=>{let e=s.axes?.[i];e!==void 0&&(e.visible=o)},Z=(o,i)=>o.axes?.[i]?.displayZeroLine??!1,w=(o,i,s)=>{o.axes?.[s]!==void 0&&(o.axes[s].displayZeroLine=i)},P=(o,i)=>o.axes?.[i]?.displayCursorTooltip??!1,U=o=>{let{config:i,displayCursorTooltip:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].displayCursorTooltip=s)},E=(o,i)=>o.axes?.[i]?.buffer??!1,R=o=>{let{config:i,buffer:s,axisIndex:e}=o,c=i.axes?.[e];c!==void 0&&(c.buffer=s)},W=(o,i)=>o.axes?.[i]?.tickSpacing,X=o=>{let{config:i,tickSpacing:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].tickSpacing=s)},q=(o,i)=>o.axes?.[i]?.integerOnlyValues??!1,J=o=>{let{config:i,integerOnlyValues:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].integerOnlyValues=s)},K=o=>o.horizontalAxisLabelsBehavior??h.Rotate,Q=(o,i)=>{i.horizontalAxisLabelsBehavior=o},$=o=>o.verticalAxisLabelsBehavior??h.Wrap,ii=(o,i)=>{i.verticalAxisLabelsBehavior=o},si=o=>o.cursorCrosshair?.horizontalLineVisible??!1,oi=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=o},ei=o=>o.cursorCrosshair?.verticalLineVisible??!1,ti=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=o},ri=o=>o.cursorCrosshair?.style,ni=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=o},ai=o=>o.cursorCrosshair,ci=(o,i)=>{i.cursorCrosshair=o},gi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,a=(o,i,s,e)=>{for(var c=fi(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&gi(i,s,c),c},n=class extends D{getAxisTitleText(i){return t({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??""}setAxisTitleText(i,s){t({config:this._config,axisIndex:s,func:e=>{T(i,e,this._config)}})}getAxisVisibility(i){return t({config:this._config,axisIndex:i,func:s=>N(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{t({config:this._config,axisIndex:s,func:e=>{j(i,e,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return t({config:this._config,axisIndex:i,func:s=>L(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{t({config:this._config,axisIndex:s,func:e=>{V(i,e,this._config),this.emitConfigUpdate("setAxisLabelsVisibility")}})})}getAxisTitleVisibility(i){return t({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??!1}setAxisTitleVisibility(i,s){t({config:this._config,axisIndex:s,func:e=>{O(i,e,this._config)}})}getMaxBound(i){return t({config:this._config,axisIndex:i,func:s=>d({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){t({config:this._config,axisIndex:s,func:e=>{p({config:this._config,value:i,axisIndex:e,isMax:!0})}})}getMinBound(i){return t({config:this._config,axisIndex:i,func:s=>d({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){t({config:this._config,axisIndex:s,func:e=>{p({config:this._config,value:i,axisIndex:e,isMax:!1})}})}getAxisValueFormat(i){return t({config:this._config,axisIndex:i,func:s=>b(s,this._config)})}setAxisValueFormat(i,s){t({config:this._config,axisIndex:i,func:e=>{m({config:this._config,valueFormat:s,axisIndex:e,commonStrings:this.commonStrings})}})}getLogarithmic(i){return t({config:this._config,axisIndex:i,func:s=>I(this._config,s)})??!1}setLogarithmic(i,s){t({config:this._config,axisIndex:s,func:e=>{A({config:this._config,isLogarithmic:i,axisIndex:e})}})}getAxisScrollbar(i){return t({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){t({config:this._config,axisIndex:s,func:e=>{v({config:this._config,scrollbar:i,axisIndex:e})}})}getAxisTitleSymbol(i){return t({config:this._config,axisIndex:i,func:s=>M(this._config,s)})}setAxisTitleSymbol(i,s){t({config:this._config,axisIndex:s,func:e=>{z({symbol:i,config:this._config,axisIndex:e})}})}getHorizontalAxisLabelsBehavior(){return K(this._config)}setHorizontalAxisLabelsBehavior(i){Q(i,this._config)}getVerticalAxisLabelsBehavior(){return $(this._config)}setVerticalAxisLabelsBehavior(i){ii(i,this._config)}getGridLinesSymbol(){return F(this._config)}setGridLinesSymbol(i,s){Array.isArray(s)&&H(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return t({config:this._config,axisIndex:i,func:s=>Z(this._config,s)})??!1}setDisplayZeroLine(i,s){t({config:this._config,axisIndex:s,func:e=>{w(this._config,i,e)}})}getDisplayCursorTooltip(i){return t({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayCursorTooltip(i,s){t({config:this._config,axisIndex:s,func:e=>{U({config:this._config,displayCursorTooltip:i,axisIndex:e})}})}getBuffer(i){return t({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){t({config:this._config,axisIndex:s,func:e=>{R({config:this._config,buffer:i,axisIndex:e})}})}getTickSpacing(i){return W(this._config,i)}setTickSpacing(i,s){t({config:this._config,axisIndex:s,func:e=>{X({config:this._config,tickSpacing:i,axisIndex:e})}})}getIntegerOnlyValues(i){return t({config:this._config,axisIndex:i,func:s=>q(this._config,s)})??!1}setIntegerOnlyValues(i,s){t({config:this._config,axisIndex:s,func:e=>{J({config:this._config,integerOnlyValues:i,axisIndex:e})}})}get cursorCrosshairHorizontalLineVisibility(){return si(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ei(this._config)}set cursorCrosshairVerticalLineVisibility(i){ti(i,this._config)}get cursorCrosshairStyle(){return ri(this._config)}set cursorCrosshairStyle(i){i&&ni(i,this._config)}get cursorCrosshair(){return ai(this._config)}set cursorCrosshair(i){i&&ci(i,this._config)}};a([r],n.prototype,"setAxisTitleText");a([r],n.prototype,"setAxisTitleVisibility");a([r],n.prototype,"setMaxBound");a([r],n.prototype,"setMinBound");a([r],n.prototype,"setAxisValueFormat");a([r],n.prototype,"setLogarithmic");a([r],n.prototype,"setAxisScrollbar");a([r],n.prototype,"setAxisTitleSymbol");a([r],n.prototype,"setHorizontalAxisLabelsBehavior");a([r],n.prototype,"setVerticalAxisLabelsBehavior");a([r],n.prototype,"setGridLinesSymbol");a([r],n.prototype,"setDisplayZeroLine");a([r],n.prototype,"setDisplayCursorTooltip");a([r],n.prototype,"setBuffer");a([r],n.prototype,"setTickSpacing");a([r],n.prototype,"setIntegerOnlyValues");a([r],n.prototype,"cursorCrosshairHorizontalLineVisibility");a([r],n.prototype,"cursorCrosshairVerticalLineVisibility");a([r],n.prototype,"cursorCrosshairStyle");a([r],n.prototype,"cursorCrosshair");var xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Y=(o,i,s,e)=>{for(var c=li(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&xi(i,s,c),c},x=class extends y{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){G({config:this._config,name:i,index:s,orientation:u.Y})}deleteYAxisGuide(i){k({config:this._config,index:i,orientation:u.Y})}};Y([r],x.prototype,"addYAxisGuide");Y([r],x.prototype,"deleteYAxisGuide");var hi=[y];C(x,hi);return{a:n,b:x}},a,b,c,d)
2
+ import d from"./PDD74AKL.js";import c from"./3G6DJQ4I.js";import{a as L,b as V,c as S,d as T,e as B,f as O,g as M,h as z}from"./NQAPPISU.js";import b from"./COW63QH2.js";import a from"./3OI3AZ2X.js";import{A as l}from"./6JI4NDJ6.js";import{g as _}from"./FIMXZMTB.js";import{j as u}from"./EZM4ZDQI.js";import{p as h}from"./XOB365BI.js";export default $arcgis.t(([{c:d,d:p,h:t,i:b,j:m,k:I,l:A,m:v,q:C},{c:r},D,{a:G,b:k,c:y}])=>{var F=o=>{for(let i of o.axes??[])if(i?.grid!==void 0)return i.grid},H=(o,i,s)=>{let e=i.axes;s.forEach(c=>{e?.[c]!==void 0&&(e[c].grid=_(o))})},N=(o,i)=>i.axes?.[o]?.visible??!0,j=(o,i,s)=>{let e=s.axes?.[i];e!==void 0&&(e.visible=o)},Z=(o,i)=>o.axes?.[i]?.displayZeroLine??!1,w=(o,i,s)=>{o.axes?.[s]!==void 0&&(o.axes[s].displayZeroLine=i)},P=(o,i)=>o.axes?.[i]?.displayCursorTooltip??!1,U=o=>{let{config:i,displayCursorTooltip:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].displayCursorTooltip=s)},E=(o,i)=>o.axes?.[i]?.buffer??!1,R=o=>{let{config:i,buffer:s,axisIndex:e}=o,c=i.axes?.[e];c!==void 0&&(c.buffer=s)},W=(o,i)=>o.axes?.[i]?.tickSpacing,X=o=>{let{config:i,tickSpacing:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].tickSpacing=s)},q=(o,i)=>o.axes?.[i]?.integerOnlyValues??!1,J=o=>{let{config:i,integerOnlyValues:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].integerOnlyValues=s)},K=o=>o.horizontalAxisLabelsBehavior??h.Rotate,Q=(o,i)=>{i.horizontalAxisLabelsBehavior=o},$=o=>o.verticalAxisLabelsBehavior??h.Wrap,ii=(o,i)=>{i.verticalAxisLabelsBehavior=o},si=o=>o.cursorCrosshair?.horizontalLineVisible??!1,oi=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=o},ei=o=>o.cursorCrosshair?.verticalLineVisible??!1,ti=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=o},ri=o=>o.cursorCrosshair?.style,ni=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=o},ai=o=>o.cursorCrosshair,ci=(o,i)=>{i.cursorCrosshair=o},gi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,a=(o,i,s,e)=>{for(var c=fi(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&gi(i,s,c),c},n=class extends D{getAxisTitleText(i){return t({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??""}setAxisTitleText(i,s){t({config:this._config,axisIndex:s,func:e=>{T(i,e,this._config)}})}getAxisVisibility(i){return t({config:this._config,axisIndex:i,func:s=>N(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{t({config:this._config,axisIndex:s,func:e=>{j(i,e,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return t({config:this._config,axisIndex:i,func:s=>L(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{t({config:this._config,axisIndex:s,func:e=>{V(i,e,this._config),this.emitConfigUpdate("setAxisLabelsVisibility")}})})}getAxisTitleVisibility(i){return t({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??!1}setAxisTitleVisibility(i,s){t({config:this._config,axisIndex:s,func:e=>{O(i,e,this._config)}})}getMaxBound(i){return t({config:this._config,axisIndex:i,func:s=>d({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){t({config:this._config,axisIndex:s,func:e=>{p({config:this._config,value:i,axisIndex:e,isMax:!0})}})}getMinBound(i){return t({config:this._config,axisIndex:i,func:s=>d({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){t({config:this._config,axisIndex:s,func:e=>{p({config:this._config,value:i,axisIndex:e,isMax:!1})}})}getAxisValueFormat(i){return t({config:this._config,axisIndex:i,func:s=>b(s,this._config)})}setAxisValueFormat(i,s){t({config:this._config,axisIndex:i,func:e=>{m({config:this._config,valueFormat:s,axisIndex:e,commonStrings:this.commonStrings})}})}getLogarithmic(i){return t({config:this._config,axisIndex:i,func:s=>I(this._config,s)})??!1}setLogarithmic(i,s){t({config:this._config,axisIndex:s,func:e=>{A({config:this._config,isLogarithmic:i,axisIndex:e})}})}getAxisScrollbar(i){return t({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){t({config:this._config,axisIndex:s,func:e=>{v({config:this._config,scrollbar:i,axisIndex:e})}})}getAxisTitleSymbol(i){return t({config:this._config,axisIndex:i,func:s=>M(this._config,s)})}setAxisTitleSymbol(i,s){t({config:this._config,axisIndex:s,func:e=>{z({symbol:i,config:this._config,axisIndex:e})}})}getHorizontalAxisLabelsBehavior(){return K(this._config)}setHorizontalAxisLabelsBehavior(i){Q(i,this._config)}getVerticalAxisLabelsBehavior(){return $(this._config)}setVerticalAxisLabelsBehavior(i){ii(i,this._config)}getGridLinesSymbol(){return F(this._config)}setGridLinesSymbol(i,s){Array.isArray(s)&&H(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return t({config:this._config,axisIndex:i,func:s=>Z(this._config,s)})??!1}setDisplayZeroLine(i,s){t({config:this._config,axisIndex:s,func:e=>{w(this._config,i,e)}})}getDisplayCursorTooltip(i){return t({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayCursorTooltip(i,s){t({config:this._config,axisIndex:s,func:e=>{U({config:this._config,displayCursorTooltip:i,axisIndex:e})}})}getBuffer(i){return t({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){t({config:this._config,axisIndex:s,func:e=>{R({config:this._config,buffer:i,axisIndex:e})}})}getTickSpacing(i){return W(this._config,i)}setTickSpacing(i,s){t({config:this._config,axisIndex:s,func:e=>{X({config:this._config,tickSpacing:i,axisIndex:e})}})}getIntegerOnlyValues(i){return t({config:this._config,axisIndex:i,func:s=>q(this._config,s)})??!1}setIntegerOnlyValues(i,s){t({config:this._config,axisIndex:s,func:e=>{J({config:this._config,integerOnlyValues:i,axisIndex:e})}})}get cursorCrosshairHorizontalLineVisibility(){return si(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ei(this._config)}set cursorCrosshairVerticalLineVisibility(i){ti(i,this._config)}get cursorCrosshairStyle(){return ri(this._config)}set cursorCrosshairStyle(i){i&&ni(i,this._config)}get cursorCrosshair(){return ai(this._config)}set cursorCrosshair(i){i&&ci(i,this._config)}};a([r],n.prototype,"setAxisTitleText");a([r],n.prototype,"setAxisTitleVisibility");a([r],n.prototype,"setMaxBound");a([r],n.prototype,"setMinBound");a([r],n.prototype,"setAxisValueFormat");a([r],n.prototype,"setLogarithmic");a([r],n.prototype,"setAxisScrollbar");a([r],n.prototype,"setAxisTitleSymbol");a([r],n.prototype,"setHorizontalAxisLabelsBehavior");a([r],n.prototype,"setVerticalAxisLabelsBehavior");a([r],n.prototype,"setGridLinesSymbol");a([r],n.prototype,"setDisplayZeroLine");a([r],n.prototype,"setDisplayCursorTooltip");a([r],n.prototype,"setBuffer");a([r],n.prototype,"setTickSpacing");a([r],n.prototype,"setIntegerOnlyValues");a([r],n.prototype,"cursorCrosshairHorizontalLineVisibility");a([r],n.prototype,"cursorCrosshairVerticalLineVisibility");a([r],n.prototype,"cursorCrosshairStyle");a([r],n.prototype,"cursorCrosshair");var xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Y=(o,i,s,e)=>{for(var c=li(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&xi(i,s,c),c},x=class extends y{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){G({config:this._config,name:i,index:s,orientation:u.Y})}deleteYAxisGuide(i){k({config:this._config,index:i,orientation:u.Y})}};Y([r],x.prototype,"addYAxisGuide");Y([r],x.prototype,"deleteYAxisGuide");var hi=[y];C(x,hi);return{a:n,b:x}},a,b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as b}from"./3TPTF5I7.js";import{a as I,b as E}from"./7BDNLABD.js";import e from"./NKVDX2XU.js";import{a as c}from"./4H6RZWUK.js";import"./MZ2UZAFW.js";import d from"./SJLXVHEK.js";import"./KGNYAMFB.js";import a from"./CMP6PTJT.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import{h as m}from"./FIMXZMTB.js";import"./GIDFPLFF.js";import{A as f,B as o,E as v,G as C,g as N,i as n,y as h,z as r}from"./YB3MZLQ3.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as l}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{a:M,f:g,g:x,h:B,i:a}])=>{var u={linkContainer:"link-container",label:"label",mb2:"mb-2"},L=N`.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)}calcite-block{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));border:0px;-webkit-box-shadow:0 0 0 0;box-shadow:0 0}.label{display:flex;justify-content:space-between}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.link-container{display:flex;justify-content:flex-end;margin-top:-.75rem}`,p=class extends f{constructor(){super(...arguments),this._messages=c(),this.commonStrings=c({name:"common",blocking:!0}),this.axisModel=new b,this.minBoundInputElement=h(),this.maxBoundInputElement=h(),this.showLogScaleSwitch=h(),this.defaultMinBound=Number.NaN,this.defaultMaxBound=Number.NaN,this.onMaxBoundsChange=()=>{let e=this.maxBoundInputElement.value?.value,t=this.maxBoundInputElement.value?.status;if(e!==void 0&&e!==""){let s=this.maxBoundInputElement.value?.min===void 0?this.axisModel.getMinBound():Math.max(this.maxBoundInputElement.value.min,this.axisModel.getMinBound()),i=Number.parseFloat(e);if(i!==this.axisModel.getMinBound()&&g(i,s,this.maxBoundInputElement.value?.max)){if(i!==this.axisModel.getMaxBound()){this.axisModel.setMaxBound(i);let d=this.getAxisBoundsFromStateStore();d&&(d.currMaxBound=i)}t=a.IDLE}else t=a.INVALID}else t=a.IDLE;this.maxBoundInputElement.value&&B({inputElement:this.maxBoundInputElement.value,status:t}),t!==a.INVALID&&this.minBoundInputElement.value?.status===a.INVALID&&this.onMinBoundsChange(),this.requestUpdate()},this.onMaxBoundsChangeDebounced=m(this.onMaxBoundsChange,M.DebounceTimer),this.onMinBoundsChange=()=>{let e=this.minBoundInputElement.value?.value,t=this.minBoundInputElement.value?.status;if(e!==void 0&&e!==""){let s=this.minBoundInputElement.value?.max===void 0?this.axisModel.getMaxBound():Math.min(this.minBoundInputElement.value.max,this.axisModel.getMaxBound()),i=Number.parseFloat(e);if(i!==this.axisModel.getMaxBound()&&g(i,this.minBoundInputElement.value?.min,s)){if(i!==this.axisModel.getMinBound()){this.axisModel.setMinBound(i);let d=this.getAxisBoundsFromStateStore();d&&(d.currMinBound=i)}t=a.IDLE}else t=a.INVALID}else t=a.IDLE;this.minBoundInputElement.value&&B({inputElement:this.minBoundInputElement.value,status:t}),t!==a.INVALID&&this.maxBoundInputElement.value?.status===a.INVALID&&this.onMaxBoundsChange(),this.updateEnableLogarithmic(this.axisModel.getLogarithmic()&&(this.dataMinValue??Number.NaN)>0),this.requestUpdate()},this.onMinBoundsChangeDebounced=m(this.onMinBoundsChange,M.DebounceTimer),this.onModelConfigChange=()=>{this.requestUpdate()},this.disableMaxBoundResetBtn=!0,this.disableMinBoundResetBtn=!0,this.isXAxis=!1,this.axisTitle="",this.showMaxBoundOption=!1,this.showMinBoundOption=!1,this.showEnableLogOption=!1}static{this.properties={disableMaxBoundResetBtn:16,disableMinBoundResetBtn:16,messageOverrides:0,model:0,isXAxis:5,axisTitle:1,maxBoundMaxLimit:9,maxBoundMinLimit:9,minBoundMinLimit:9,minBoundMaxLimit:9,showMaxBoundOption:5,showMinBoundOption:5,showEnableLogOption:5,dataMaxValue:9,dataMinValue:9,initialMaxBound:9,initialMinBound:9}}static{this.styles=L}load(){this.modelChange(this.model),this.dataMinValue!==void 0&&this.dataMinValueChange(this.dataMinValue,Number.NaN),this.dataMaxValue!==void 0&&this.dataMaxValueChange(this.dataMaxValue,Number.NaN)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("dataMinValue")&&this.dataMinValueChange(this.dataMinValue??Number.NaN,e.get("dataMinValue")),e.has("dataMaxValue")&&this.dataMaxValueChange(this.dataMaxValue??Number.NaN,e.get("dataMaxValue")),e.has("initialMaxBound")&&this.initialMaxBoundChange(),e.has("initialMinBound")&&this.initialMinBoundChange()}updated(){this.disableResetButtons()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){this.axisModel=new b(this.model,this.isXAxis),t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}dataMinValueChange(e,t){Number.isNaN(t)&&!Number.isNaN(e)&&(this.defaultMinBound=e)}dataMaxValueChange(e,t){Number.isNaN(t)&&!Number.isNaN(e)&&(this.defaultMaxBound=e)}initialMaxBoundChange(){Number.isNaN(this.axisModel.getMaxBound())||this.axisModel.setMaxBound(this.axisModel.getMaxBound())}initialMinBoundChange(){Number.isNaN(this.axisModel.getMinBound())||this.axisModel.setMinBound(this.axisModel.getMinBound())}getAxisBoundsFromStateStore(){let e,t=I.chartAxesBoundDataMap,s=this.model.chartId;if(s){let i=E({chartId:s,isXAxis:this.isXAxis,isLogarithmic:this.axisModel.getLogarithmic()});e=t[s]?.[i]}return e}disableResetButtons(){let e=this.getAxisBoundsFromStateStore();e&&(this.disableMaxBoundResetBtn=e.defaultMaxBound===e.currMaxBound,this.disableMinBoundResetBtn=e.defaultMinBound===e.currMinBound)}onShowLogScaleMouseEnter(){this.showLogScaleTooltip?.remove(),this.showLogScaleSwitch.value?.disabled&&(this.showLogScaleTooltip=v(n`<calcite-tooltip .referenceElement=${this.showLogScaleSwitch.value??document.body} open>${this.commonStrings.utilsStrings.tooltips?.logDisabled??""}</calcite-tooltip>`),document.body.appendChild(this.showLogScaleTooltip))}onShowLogScaleMouseLeave(){this.showLogScaleTooltip?.remove()}onCategoryFormatChange(e){this.axisModel.setValueFormat(e.target.categoryFormat)}updateEnableLogarithmic(e){e!==this.axisModel.getLogarithmic()&&(this.axisModel.setLogarithmic(e),this.requestUpdate())}onNumberFormatChange(e){this.axisModel.setValueFormat({type:l.NumberAxisFormat,intlOptions:e.detail}),this.requestUpdate()}onRevertMaxBoundsToDefault(){if(this.maxBoundInputElement.value?.status===a.INVALID||this.axisModel.getMaxBound()!==this.defaultMaxBound){let e=this.getAxisBoundsFromStateStore();this.axisModel.getMinBound()>this.defaultMaxBound&&this.axisModel.setMinBound(e?.defaultMinBound??Number.NaN),this.axisModel.setMaxBound(e?.defaultMaxBound??Number.NaN),this.requestUpdate()}}onRevertMinBoundsToDefault(){(this.minBoundInputElement.value?.status===a.INVALID||this.axisModel.getMinBound()!==this.defaultMinBound)&&(this.axisModel.getMaxBound()<this.defaultMinBound&&this.axisModel.setMaxBound(Number.NaN),this.axisModel.setMinBound(Number.NaN),this.requestUpdate())}enableLogScale(e){let{checked:t}=e.target;this.axisModel.setLogarithmic(t&&(this.dataMinValue??Number.NaN)>0),this.requestUpdate()}render(){return n`<calcite-block .hidden=${this.axisModel.getValueFormat()?.type===l.DateAxisFormat} expanded .heading=${this.axisTitle}>${this.renderAxis()}</calcite-block>`}renderAxis(){let e=null,t={...this.axisModel.getValueFormat()};switch(this.axisModel.getValueFormat()?.type){case l.CategoryAxisFormat:e=n`<arcgis-charts-config-category-format .categoryFormat=${t} @arcgisChartsConfigCategoryFormatChange=${this.onCategoryFormatChange}></arcgis-charts-config-category-format>`;break;case l.NumberAxisFormat:e=n`<div>${this.renderShowLogScale()}${this.renderMinBound()}${this.renderMaxBound()}<arcgis-charts-config-number-format .numberFormat=${{...t.intlOptions}} @arcgisChartsConfigNumberFormatChange=${this.onNumberFormatChange}></arcgis-charts-config-number-format></div>`;break;case l.DateAxisFormat:e=null;break}return e}renderMaxBound(){let e;if(!this.showMaxBoundOption)e=null;else{let t=x(this.axisModel.getMaxBound(),this.initialMaxBound);e=n`<div><calcite-label class=${o(u.label)}>${this._messages.maxBounds}<calcite-input type=number number-button-type=none .min=${this.maxBoundMinLimit??Number.MIN_SAFE_INTEGER} .max=${this.maxBoundMaxLimit??Number.MAX_SAFE_INTEGER} step=any .value=${t} @calciteInputInput=${this.onMaxBoundsChangeDebounced} ${r(this.maxBoundInputElement)}></calcite-input></calcite-label><div class=${o(u.linkContainer)}><calcite-button .disabled=${this.disableMaxBoundResetBtn} @click=${this.onRevertMaxBoundsToDefault} appearance=transparent icon-end=reset>${this._messages.revertToDefault}</calcite-button></div></div>`}return e}renderMinBound(){let e;if(!this.showMinBoundOption)e=null;else{let t=x(this.axisModel.getMinBound(),this.initialMinBound??void 0);e=n`<div><calcite-label class=${o(u.label)}>${this._messages.minBounds}<calcite-input type=number number-button-type=none .min=${this.minBoundMinLimit??Number.MIN_SAFE_INTEGER} .max=${this.minBoundMaxLimit??Number.MAX_SAFE_INTEGER} step=any .value=${t} @calciteInputInput=${this.onMinBoundsChangeDebounced} ${r(this.minBoundInputElement)}></calcite-input></calcite-label><div class=${o(u.linkContainer)}><calcite-button .disabled=${this.disableMinBoundResetBtn} appearance=transparent icon-end=reset @click=${this.onRevertMinBoundsToDefault}>${this._messages.revertToDefault}</calcite-button></div></div>`}return e}renderShowLogScale(){let e;return this.showEnableLogOption&&(e=n`<calcite-label layout=inline-space-between class=${o({[u.label]:!0,[u.mb2]:!0})}>${this._messages.logScale}<div @mouseenter=${this.onShowLogScaleMouseEnter} @mouseleave=${this.onShowLogScaleMouseLeave}><calcite-switch .checked=${this.axisModel.getLogarithmic()&&(this.dataMinValue??Number.NaN)>0} .disabled=${(this.dataMinValue??Number.NaN)<=0} @calciteSwitchChange=${this.enableLogScale} ${r(this.showLogScaleSwitch)}></calcite-switch></div></calcite-label>`),e}};C("arcgis-charts-config-axis",p);return p},a,d,e)
2
+ import{a as b}from"./3TPTF5I7.js";import{a as I,b as E}from"./7BDNLABD.js";import e from"./VVYGCHEV.js";import{a as c}from"./O5OI7ZFM.js";import"./MZ2UZAFW.js";import d from"./3OI3AZ2X.js";import"./KGNYAMFB.js";import a from"./S7OB4ILP.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import{h as m}from"./FIMXZMTB.js";import"./DMONWSPY.js";import{A as f,B as o,E as v,G as C,g as N,i as n,y as h,z as r}from"./AA7A24A4.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as l}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{a:M,f:g,g:x,h:B,i:a}])=>{var u={linkContainer:"link-container",label:"label",mb2:"mb-2"},L=N`.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)}calcite-block{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));border:0px;-webkit-box-shadow:0 0 0 0;box-shadow:0 0}.label{display:flex;justify-content:space-between}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.link-container{display:flex;justify-content:flex-end;margin-top:-.75rem}`,p=class extends f{constructor(){super(...arguments),this._messages=c(),this.commonStrings=c({name:"common",blocking:!0}),this.axisModel=new b,this.minBoundInputElement=h(),this.maxBoundInputElement=h(),this.showLogScaleSwitch=h(),this.defaultMinBound=Number.NaN,this.defaultMaxBound=Number.NaN,this.onMaxBoundsChange=()=>{let e=this.maxBoundInputElement.value?.value,t=this.maxBoundInputElement.value?.status;if(e!==void 0&&e!==""){let s=this.maxBoundInputElement.value?.min===void 0?this.axisModel.getMinBound():Math.max(this.maxBoundInputElement.value.min,this.axisModel.getMinBound()),i=Number.parseFloat(e);if(i!==this.axisModel.getMinBound()&&g(i,s,this.maxBoundInputElement.value?.max)){if(i!==this.axisModel.getMaxBound()){this.axisModel.setMaxBound(i);let d=this.getAxisBoundsFromStateStore();d&&(d.currMaxBound=i)}t=a.IDLE}else t=a.INVALID}else t=a.IDLE;this.maxBoundInputElement.value&&B({inputElement:this.maxBoundInputElement.value,status:t}),t!==a.INVALID&&this.minBoundInputElement.value?.status===a.INVALID&&this.onMinBoundsChange(),this.requestUpdate()},this.onMaxBoundsChangeDebounced=m(this.onMaxBoundsChange,M.DebounceTimer),this.onMinBoundsChange=()=>{let e=this.minBoundInputElement.value?.value,t=this.minBoundInputElement.value?.status;if(e!==void 0&&e!==""){let s=this.minBoundInputElement.value?.max===void 0?this.axisModel.getMaxBound():Math.min(this.minBoundInputElement.value.max,this.axisModel.getMaxBound()),i=Number.parseFloat(e);if(i!==this.axisModel.getMaxBound()&&g(i,this.minBoundInputElement.value?.min,s)){if(i!==this.axisModel.getMinBound()){this.axisModel.setMinBound(i);let d=this.getAxisBoundsFromStateStore();d&&(d.currMinBound=i)}t=a.IDLE}else t=a.INVALID}else t=a.IDLE;this.minBoundInputElement.value&&B({inputElement:this.minBoundInputElement.value,status:t}),t!==a.INVALID&&this.maxBoundInputElement.value?.status===a.INVALID&&this.onMaxBoundsChange(),this.updateEnableLogarithmic(this.axisModel.getLogarithmic()&&(this.dataMinValue??Number.NaN)>0),this.requestUpdate()},this.onMinBoundsChangeDebounced=m(this.onMinBoundsChange,M.DebounceTimer),this.onModelConfigChange=()=>{this.requestUpdate()},this.disableMaxBoundResetBtn=!0,this.disableMinBoundResetBtn=!0,this.isXAxis=!1,this.axisTitle="",this.showMaxBoundOption=!1,this.showMinBoundOption=!1,this.showEnableLogOption=!1}static{this.properties={disableMaxBoundResetBtn:16,disableMinBoundResetBtn:16,messageOverrides:0,model:0,isXAxis:5,axisTitle:1,maxBoundMaxLimit:9,maxBoundMinLimit:9,minBoundMinLimit:9,minBoundMaxLimit:9,showMaxBoundOption:5,showMinBoundOption:5,showEnableLogOption:5,dataMaxValue:9,dataMinValue:9,initialMaxBound:9,initialMinBound:9}}static{this.styles=L}load(){this.modelChange(this.model),this.dataMinValue!==void 0&&this.dataMinValueChange(this.dataMinValue,Number.NaN),this.dataMaxValue!==void 0&&this.dataMaxValueChange(this.dataMaxValue,Number.NaN)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("dataMinValue")&&this.dataMinValueChange(this.dataMinValue??Number.NaN,e.get("dataMinValue")),e.has("dataMaxValue")&&this.dataMaxValueChange(this.dataMaxValue??Number.NaN,e.get("dataMaxValue")),e.has("initialMaxBound")&&this.initialMaxBoundChange(),e.has("initialMinBound")&&this.initialMinBoundChange()}updated(){this.disableResetButtons()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){this.axisModel=new b(this.model,this.isXAxis),t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}dataMinValueChange(e,t){Number.isNaN(t)&&!Number.isNaN(e)&&(this.defaultMinBound=e)}dataMaxValueChange(e,t){Number.isNaN(t)&&!Number.isNaN(e)&&(this.defaultMaxBound=e)}initialMaxBoundChange(){Number.isNaN(this.axisModel.getMaxBound())||this.axisModel.setMaxBound(this.axisModel.getMaxBound())}initialMinBoundChange(){Number.isNaN(this.axisModel.getMinBound())||this.axisModel.setMinBound(this.axisModel.getMinBound())}getAxisBoundsFromStateStore(){let e,t=I.chartAxesBoundDataMap,s=this.model.chartId;if(s){let i=E({chartId:s,isXAxis:this.isXAxis,isLogarithmic:this.axisModel.getLogarithmic()});e=t[s]?.[i]}return e}disableResetButtons(){let e=this.getAxisBoundsFromStateStore();e&&(this.disableMaxBoundResetBtn=e.defaultMaxBound===e.currMaxBound,this.disableMinBoundResetBtn=e.defaultMinBound===e.currMinBound)}onShowLogScaleMouseEnter(){this.showLogScaleTooltip?.remove(),this.showLogScaleSwitch.value?.disabled&&(this.showLogScaleTooltip=v(n`<calcite-tooltip .referenceElement=${this.showLogScaleSwitch.value??document.body} open>${this.commonStrings.utilsStrings.tooltips?.logDisabled??""}</calcite-tooltip>`),document.body.appendChild(this.showLogScaleTooltip))}onShowLogScaleMouseLeave(){this.showLogScaleTooltip?.remove()}onCategoryFormatChange(e){this.axisModel.setValueFormat(e.target.categoryFormat)}updateEnableLogarithmic(e){e!==this.axisModel.getLogarithmic()&&(this.axisModel.setLogarithmic(e),this.requestUpdate())}onNumberFormatChange(e){this.axisModel.setValueFormat({type:l.NumberAxisFormat,intlOptions:e.detail}),this.requestUpdate()}onRevertMaxBoundsToDefault(){if(this.maxBoundInputElement.value?.status===a.INVALID||this.axisModel.getMaxBound()!==this.defaultMaxBound){let e=this.getAxisBoundsFromStateStore();this.axisModel.getMinBound()>this.defaultMaxBound&&this.axisModel.setMinBound(e?.defaultMinBound??Number.NaN),this.axisModel.setMaxBound(e?.defaultMaxBound??Number.NaN),this.requestUpdate()}}onRevertMinBoundsToDefault(){(this.minBoundInputElement.value?.status===a.INVALID||this.axisModel.getMinBound()!==this.defaultMinBound)&&(this.axisModel.getMaxBound()<this.defaultMinBound&&this.axisModel.setMaxBound(Number.NaN),this.axisModel.setMinBound(Number.NaN),this.requestUpdate())}enableLogScale(e){let{checked:t}=e.target;this.axisModel.setLogarithmic(t&&(this.dataMinValue??Number.NaN)>0),this.requestUpdate()}render(){return n`<calcite-block .hidden=${this.axisModel.getValueFormat()?.type===l.DateAxisFormat} expanded .heading=${this.axisTitle}>${this.renderAxis()}</calcite-block>`}renderAxis(){let e=null,t={...this.axisModel.getValueFormat()};switch(this.axisModel.getValueFormat()?.type){case l.CategoryAxisFormat:e=n`<arcgis-charts-config-category-format .categoryFormat=${t} @arcgisChartsConfigCategoryFormatChange=${this.onCategoryFormatChange}></arcgis-charts-config-category-format>`;break;case l.NumberAxisFormat:e=n`<div>${this.renderShowLogScale()}${this.renderMinBound()}${this.renderMaxBound()}<arcgis-charts-config-number-format .numberFormat=${{...t.intlOptions}} @arcgisChartsConfigNumberFormatChange=${this.onNumberFormatChange}></arcgis-charts-config-number-format></div>`;break;case l.DateAxisFormat:e=null;break}return e}renderMaxBound(){let e;if(!this.showMaxBoundOption)e=null;else{let t=x(this.axisModel.getMaxBound(),this.initialMaxBound);e=n`<div><calcite-label class=${o(u.label)}>${this._messages.maxBounds}<calcite-input type=number number-button-type=none .min=${this.maxBoundMinLimit??Number.MIN_SAFE_INTEGER} .max=${this.maxBoundMaxLimit??Number.MAX_SAFE_INTEGER} step=any .value=${t} @calciteInputInput=${this.onMaxBoundsChangeDebounced} ${r(this.maxBoundInputElement)}></calcite-input></calcite-label><div class=${o(u.linkContainer)}><calcite-button .disabled=${this.disableMaxBoundResetBtn} @click=${this.onRevertMaxBoundsToDefault} appearance=transparent icon-end=reset>${this._messages.revertToDefault}</calcite-button></div></div>`}return e}renderMinBound(){let e;if(!this.showMinBoundOption)e=null;else{let t=x(this.axisModel.getMinBound(),this.initialMinBound??void 0);e=n`<div><calcite-label class=${o(u.label)}>${this._messages.minBounds}<calcite-input type=number number-button-type=none .min=${this.minBoundMinLimit??Number.MIN_SAFE_INTEGER} .max=${this.minBoundMaxLimit??Number.MAX_SAFE_INTEGER} step=any .value=${t} @calciteInputInput=${this.onMinBoundsChangeDebounced} ${r(this.minBoundInputElement)}></calcite-input></calcite-label><div class=${o(u.linkContainer)}><calcite-button .disabled=${this.disableMinBoundResetBtn} appearance=transparent icon-end=reset @click=${this.onRevertMinBoundsToDefault}>${this._messages.revertToDefault}</calcite-button></div></div>`}return e}renderShowLogScale(){let e;return this.showEnableLogOption&&(e=n`<calcite-label layout=inline-space-between class=${o({[u.label]:!0,[u.mb2]:!0})}>${this._messages.logScale}<div @mouseenter=${this.onShowLogScaleMouseEnter} @mouseleave=${this.onShowLogScaleMouseLeave}><calcite-switch .checked=${this.axisModel.getLogarithmic()&&(this.dataMinValue??Number.NaN)>0} .disabled=${(this.dataMinValue??Number.NaN)<=0} @calciteSwitchChange=${this.enableLogScale} ${r(this.showLogScaleSwitch)}></calcite-switch></div></calcite-label>`),e}};C("arcgis-charts-config-axis",p);return p},a,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import n from"./OQASNTFD.js";import{b as e,c as t,d as a}from"./PDWS67CW.js";import l from"./NKVDX2XU.js";import{a as A}from"./4H6RZWUK.js";import{a as u}from"./MZ2UZAFW.js";import k from"./NBPDOKLD.js";import{a as h,p as E}from"./7MKAC33Z.js";import j from"./F4OFYIQV.js";import i from"./ZNNQGFW5.js";import f from"./QVQYL6M6.js";import c from"./SJLXVHEK.js";import"./KGNYAMFB.js";import b from"./CMP6PTJT.js";import"./777EBGS5.js";import{a as x}from"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./GIDFPLFF.js";import{A as O,B as _,C as m,D as s,E as p,G as z,g as M,i as o,n as r,y as d,z as g}from"./YB3MZLQ3.js";import"./TOO3T62Y.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as v}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,{a:V},{r:n},{a:F,d:L}])=>{var R={actionBar:"action-bar"},Z=M`.action-bar{display:flex;flex-direction:column;height:100%;border-right:1px solid var(--calcite-color-border-2);width:fit-content}:host{z-index:1001}`,T=class extends O{constructor(){super(...arguments),this.calciteActionBar=d(),this.exportCalciteActionBar=d(),this.expandAction=null,this._messages=A(),this.commonStrings=A({name:"common",blocking:!0}),this.handleMouseOver=l=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let c=l.target;this.actionTooltip!==void 0&&(this.actionTooltip=n(this.actionTooltip));let i;c?.tagName==="CALCITE-ACTION"?i=c:(c?.tagName==="CALCITE-ACTION-MENU"||c?.tagName==="DIV")&&(i=c.firstChild),i!==void 0&&(this.actionTooltip=p(o`<calcite-tooltip style=${m({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=trailing-end>${i.text}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}else this.actionTooltip=n(this.actionTooltip)},this._csvExportExclusionList=[v.ScatterSeries,v.BoxPlotSeries],this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartState=a.Disabled,this.legendToggle=t.Inactive,this.legendState=a.Enabled,this.rotateChartToggle=t.Inactive,this.rotateChartState=a.Enabled,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionState=a.Enabled,this.filterByExtentToggle=t.Inactive,this.filterByExtentState=a.Enabled,this.actionBarSelectionMode=x.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionState=a.Enabled,this.zoomToggle=t.Inactive,this.zoomState=a.Enabled,this.fullExtentToggle=t.Inactive,this.fullExtentState=a.Enabled,this.clearSelectionToggle=t.Inactive,this.clearSelectionState=a.Enabled,this.switchSelectionToggle=t.Inactive,this.switchSelectionState=a.Enabled,this.exportAsImageState=a.Enabled,this.exportAsCSVState=a.Enabled,this.disableCSVExportForChartTypes=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=a.Enabled,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=r(),this.arcgisDefaultActionSelect=r()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartState:1,editChartTitle:1,legendToggle:1,legendState:1,legendTitle:1,rotateChartToggle:1,rotateChartState:1,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionState:1,filterBySelectionTitle:1,filterByExtentToggle:1,filterByExtentState:1,filterByExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionState:1,selectionTitle:1,zoomToggle:1,zoomState:1,zoomTitle:1,fullExtentToggle:1,fullExtentState:1,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionState:1,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionState:1,switchSelectionTitle:1,exportAsImageState:1,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,csvExportExclusionList:0,exportActionState:1,expanded:5,hiddenActions:0}}static{this.styles=Z}load(){this.chartElement=L(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(l){let c=l.currentTarget,i={actionId:c.id,actionActive:!1};switch(c.id){case e.EditChart:this.editChartToggle=this.editChartToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.editChartToggle===t.Active;break;case e.Legend:this.legendToggle=this.legendToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.legendToggle===t.Active,h(this.chartElement?.model)&&E(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(h(this.chartElement.model)?E(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break;case e.RotateChart:this.rotateChartToggle=this.rotateChartToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.rotateChartToggle===t.Active,this.chartElement?.model&&(h(this.chartElement.model)?V(this.chartElement.model)&&(this.chartElement.model.rotated=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break;case e.FilterBySelection:this.filterBySelectionToggle=this.filterBySelectionToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.filterBySelectionToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break;case e.FilterByExtent:this.filterByExtentToggle=this.filterByExtentToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.filterByExtentToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.filterByViewExtent=i.actionActive);break;case e.Selection:this.selectionToggle=t.Active,this.zoomToggle=t.Inactive,i.actionActive=this.selectionToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break;case e.Zoom:this.zoomToggle=t.Active,this.selectionToggle=t.Inactive,i.actionActive=this.zoomToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.actionMode=x.Zoom);break;case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active,this.chartElement?.switchSelection();break;case e.ExportAsImage:i.actionActive=!0,await this.chartElement?.exportAsImage();break;case e.ExportAsCSV:i.actionActive=!0,await this.chartElement?.exportAsCSV();break}this.arcgisDefaultActionSelect.emit(i)}handleCalciteActionBarToggle(){this.expanded=this.calciteActionBar.value?.expanded??!1,this.setCustomActionsExpanded(),this.arcgisActionBarToggle.emit(this.expanded)}handleMouseOut(){this.actionTooltip!==null&&(this.actionTooltip=n(this.actionTooltip))}handleSlotChange(l){let c=l.currentTarget.assignedElements();for(let i of c)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(l=>{let c=l;c.textEnabled=this.expanded})}handleExpandTooltip(){this.expandAction===null&&(this.expandAction=this.calciteActionBar.value?.shadowRoot?.querySelector("calcite-action")??null,this.expandAction!==null&&(this.listenOn(this.expandAction,"mouseenter",()=>{!this.calciteActionBar.value?.expanded&&this.expandAction!==null&&!document.body.contains(this.actionTooltip)&&(this.actionTooltip=p(o`<calcite-tooltip style=${m({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand??""}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}),this.listenOn(this.expandAction,"mouseleave",()=>{!this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=n(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=n(this.actionTooltip))})))}renderDefaultActions(){let l=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),c=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=l.includes(e.EditChart),S=l.includes(e.Legend),$=l.includes(e.RotateChart),b=l.includes(e.FilterBySelection),f=l.includes(e.FilterByExtent)&&!c,C=l.includes(e.Zoom),y=l.includes(e.Selection),B=l.includes(e.ClearSelection),D=l.includes(e.FullExtent),k=l.includes(e.SwitchSelection),I=l.includes(e.ExportAsImage),w=l.includes(e.ExportAsCSV);return[S||$?o`<calcite-action-group>${i?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??s} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active} .disabled=${this.editChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${S?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??s} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .active=${this.legendToggle===t.Active} .disabled=${this.legendState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${$?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??s} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active} .disabled=${this.rotateChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,b||f?o`<calcite-action-group>${b?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??s} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active} .disabled=${this.filterBySelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${f?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByExtent??s} icon=extent-filter .text=${this.filterByExtentTitle??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active} .disabled=${this.filterByExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||C||D||B||k?o`<calcite-action-group>${C?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??s} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active} .disabled=${this.zoomState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??s} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active} .disabled=${this.selectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??s} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active} .disabled=${this.clearSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${D?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??s} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active} .disabled=${this.fullExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??s} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active} .disabled=${this.switchSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||w?o`<calcite-action-menu .label=${this._messages?.export??""} ${g(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===a.Disabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?o`<div><calcite-action id=${e.ExportAsImage??s} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${w?o`<div><calcite-action id=${e.ExportAsCSV??s} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===a.Disabled||this.forceDisableActions||this.chartType&&(this.disableCSVExportForChartTypes.includes(this.chartType)||this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return o`<calcite-action-bar class=${_(R.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${g(this.calciteActionBar)}><slot name=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};z("arcgis-charts-action-bar",T);return T},b,c,f,i,j,k,l,n)
2
+ import n from"./4J7NXFBO.js";import{b as e,c as t,d as a}from"./PDWS67CW.js";import l from"./VVYGCHEV.js";import{a as A}from"./O5OI7ZFM.js";import{a as u}from"./MZ2UZAFW.js";import k from"./55HY3O3G.js";import{a as h,p as E}from"./7MKAC33Z.js";import j from"./IO53Q5WD.js";import i from"./COW63QH2.js";import f from"./A5OI4GRG.js";import c from"./3OI3AZ2X.js";import"./KGNYAMFB.js";import b from"./S7OB4ILP.js";import"./777EBGS5.js";import{a as x}from"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./DMONWSPY.js";import{A as O,B as _,C as m,D as s,E as p,G as z,g as M,i as o,n as r,y as d,z as g}from"./AA7A24A4.js";import"./TOO3T62Y.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as v}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,{a:V},{r:n},{a:F,d:L}])=>{var R={actionBar:"action-bar"},Z=M`.action-bar{display:flex;flex-direction:column;height:100%;border-right:1px solid var(--calcite-color-border-2);width:fit-content}:host{z-index:1001}`,T=class extends O{constructor(){super(...arguments),this.calciteActionBar=d(),this.exportCalciteActionBar=d(),this.expandAction=null,this._messages=A(),this.commonStrings=A({name:"common",blocking:!0}),this.handleMouseOver=l=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let c=l.target;this.actionTooltip!==void 0&&(this.actionTooltip=n(this.actionTooltip));let i;c?.tagName==="CALCITE-ACTION"?i=c:(c?.tagName==="CALCITE-ACTION-MENU"||c?.tagName==="DIV")&&(i=c.firstChild),i!==void 0&&(this.actionTooltip=p(o`<calcite-tooltip style=${m({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=trailing-end>${i.text}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}else this.actionTooltip=n(this.actionTooltip)},this._csvExportExclusionList=[v.ScatterSeries,v.BoxPlotSeries],this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartState=a.Disabled,this.legendToggle=t.Inactive,this.legendState=a.Enabled,this.rotateChartToggle=t.Inactive,this.rotateChartState=a.Enabled,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionState=a.Enabled,this.filterByExtentToggle=t.Inactive,this.filterByExtentState=a.Enabled,this.actionBarSelectionMode=x.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionState=a.Enabled,this.zoomToggle=t.Inactive,this.zoomState=a.Enabled,this.fullExtentToggle=t.Inactive,this.fullExtentState=a.Enabled,this.clearSelectionToggle=t.Inactive,this.clearSelectionState=a.Enabled,this.switchSelectionToggle=t.Inactive,this.switchSelectionState=a.Enabled,this.exportAsImageState=a.Enabled,this.exportAsCSVState=a.Enabled,this.disableCSVExportForChartTypes=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=a.Enabled,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=r(),this.arcgisDefaultActionSelect=r()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartState:1,editChartTitle:1,legendToggle:1,legendState:1,legendTitle:1,rotateChartToggle:1,rotateChartState:1,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionState:1,filterBySelectionTitle:1,filterByExtentToggle:1,filterByExtentState:1,filterByExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionState:1,selectionTitle:1,zoomToggle:1,zoomState:1,zoomTitle:1,fullExtentToggle:1,fullExtentState:1,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionState:1,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionState:1,switchSelectionTitle:1,exportAsImageState:1,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,csvExportExclusionList:0,exportActionState:1,expanded:5,hiddenActions:0}}static{this.styles=Z}load(){this.chartElement=L(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(l){let c=l.currentTarget,i={actionId:c.id,actionActive:!1};switch(c.id){case e.EditChart:this.editChartToggle=this.editChartToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.editChartToggle===t.Active;break;case e.Legend:this.legendToggle=this.legendToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.legendToggle===t.Active,h(this.chartElement?.model)&&E(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(h(this.chartElement.model)?E(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break;case e.RotateChart:this.rotateChartToggle=this.rotateChartToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.rotateChartToggle===t.Active,this.chartElement?.model&&(h(this.chartElement.model)?V(this.chartElement.model)&&(this.chartElement.model.rotated=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break;case e.FilterBySelection:this.filterBySelectionToggle=this.filterBySelectionToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.filterBySelectionToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break;case e.FilterByExtent:this.filterByExtentToggle=this.filterByExtentToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.filterByExtentToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.filterByViewExtent=i.actionActive);break;case e.Selection:this.selectionToggle=t.Active,this.zoomToggle=t.Inactive,i.actionActive=this.selectionToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break;case e.Zoom:this.zoomToggle=t.Active,this.selectionToggle=t.Inactive,i.actionActive=this.zoomToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.actionMode=x.Zoom);break;case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active,this.chartElement?.switchSelection();break;case e.ExportAsImage:i.actionActive=!0,await this.chartElement?.exportAsImage();break;case e.ExportAsCSV:i.actionActive=!0,await this.chartElement?.exportAsCSV();break}this.arcgisDefaultActionSelect.emit(i)}handleCalciteActionBarToggle(){this.expanded=this.calciteActionBar.value?.expanded??!1,this.setCustomActionsExpanded(),this.arcgisActionBarToggle.emit(this.expanded)}handleMouseOut(){this.actionTooltip!==null&&(this.actionTooltip=n(this.actionTooltip))}handleSlotChange(l){let c=l.currentTarget.assignedElements();for(let i of c)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(l=>{let c=l;c.textEnabled=this.expanded})}handleExpandTooltip(){this.expandAction===null&&(this.expandAction=this.calciteActionBar.value?.shadowRoot?.querySelector("calcite-action")??null,this.expandAction!==null&&(this.listenOn(this.expandAction,"mouseenter",()=>{!this.calciteActionBar.value?.expanded&&this.expandAction!==null&&!document.body.contains(this.actionTooltip)&&(this.actionTooltip=p(o`<calcite-tooltip style=${m({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand??""}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}),this.listenOn(this.expandAction,"mouseleave",()=>{!this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=n(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=n(this.actionTooltip))})))}renderDefaultActions(){let l=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),c=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=l.includes(e.EditChart),S=l.includes(e.Legend),$=l.includes(e.RotateChart),b=l.includes(e.FilterBySelection),f=l.includes(e.FilterByExtent)&&!c,C=l.includes(e.Zoom),y=l.includes(e.Selection),B=l.includes(e.ClearSelection),D=l.includes(e.FullExtent),k=l.includes(e.SwitchSelection),I=l.includes(e.ExportAsImage),w=l.includes(e.ExportAsCSV);return[S||$?o`<calcite-action-group>${i?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??s} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active} .disabled=${this.editChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${S?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??s} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .active=${this.legendToggle===t.Active} .disabled=${this.legendState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${$?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??s} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active} .disabled=${this.rotateChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,b||f?o`<calcite-action-group>${b?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??s} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active} .disabled=${this.filterBySelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${f?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByExtent??s} icon=extent-filter .text=${this.filterByExtentTitle??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active} .disabled=${this.filterByExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||C||D||B||k?o`<calcite-action-group>${C?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??s} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active} .disabled=${this.zoomState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??s} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active} .disabled=${this.selectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??s} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active} .disabled=${this.clearSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${D?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??s} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active} .disabled=${this.fullExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??s} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active} .disabled=${this.switchSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||w?o`<calcite-action-menu .label=${this._messages?.export??""} ${g(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===a.Disabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?o`<div><calcite-action id=${e.ExportAsImage??s} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${w?o`<div><calcite-action id=${e.ExportAsCSV??s} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===a.Disabled||this.forceDisableActions||this.chartType&&(this.disableCSVExportForChartTypes.includes(this.chartType)||this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return o`<calcite-action-bar class=${_(R.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${g(this.calciteActionBar)}><slot name=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};z("arcgis-charts-action-bar",T);return T},b,c,f,i,j,k,l,n)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import g from"./NSCYUNI2.js";import e from"./F4OFYIQV.js";import c from"./TOTYYAA5.js";import{c as T}from"./NQAPPISU.js";import b from"./SJLXVHEK.js";import{h as O,p as te}from"./KGNYAMFB.js";import a from"./CMP6PTJT.js";import{n as B}from"./P5XJTTU3.js";import{Da as K,F as J,G as oe,H as ie,P as D,Q as G,_ as re,ca as H,n as E,p as I}from"./6JI4NDJ6.js";import{a as ee}from"./75Y43JLP.js";import{d as $,g as j,k as U,l as W}from"./FIMXZMTB.js";import{b as d}from"./EZM4ZDQI.js";import{a as f,h,v as u}from"./XOB365BI.js";export default $arcgis.t(([{substitute:P},{O:M,S:se,ic:le,xb:ne,zb:R},{a:L,d:X,e:Y,f:ae,n:ce,r:ye},{a:me},{b:C},{i:N}])=>{var Ue=(o,e)=>e?.series?.[o]?.name,We=(o,e,i)=>{let r=i;r?.series?.[e]!==void 0&&(r.series[e].name=o)},eo=(o,e)=>{let i,r=e.series?.[o];return r?.type===f.BoxPlotSeries?i=r.fillSymbol?.color:r?.type===f.LineSeries&&(i=r.lineSymbol?.color),i},Fe=o=>{let e=o.series[0];return o.showMean===!0&&O(e)?e.fillSymbol?.color:void 0},Ie=(o,e)=>{let i=e.series[0];e.showMean===!0&&O(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...D(),color:o})},oo=(o,e,i)=>{let r=i?.series?.[e];r?.type===f.BoxPlotSeries&&r.fillSymbol!==void 0?r.fillSymbol.color=o:r?.type===f.LineSeries&&r.lineSymbol!==void 0&&(r.lineSymbol.color=o,r.markerSymbol!==void 0&&(r.markerSymbol.color=o))},ve=o=>o.series.map(e=>e.id),Be=(o,e)=>{e?.series?.sort((i,r)=>o.findIndex(s=>i.id===s)-o.findIndex(s=>r.id===s))},io=(o,e,i)=>{let r=ve(i),[s]=r.splice(o,1);r.splice(e,0,s),Be(r,i)},ro=o=>Z(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Ae(o,e,i){let r=be(o,e,i),s=me(o),n=C(o);return r===s||n}function de(o,e,i){let r=k(o,e,i),s=T(1,o),n=C(o);return r===s||n}function Me(o){let{config:e,layerInfo:i,newCategory:r}=o,{layerFieldsInfo:s}=i,n=A(e),t=r!==I?B(s,n):"",l=T(0,e),a=C(e);return t===l||a||l.trim()===""}var A=o=>M(o)?.x??I,Oe=$(o=>{let e=M(o),i=e?.query?.where?.split("=")[0].trim()??"";return se(e?.query?.where)?"":i},o=>M(o)?.query?.where),fe=$(o=>le(o?.series).filter(e=>e!==""),o=>o?.series),V=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...H(s,i),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)},Le=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...re({commonStrings:s,seriesIndex:i}),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)};function ge(o){let{x:e,y:i,seriesTemplate:r,commonStrings:s}=o,{id:n,fillSymbol:t}=r??{},l=H(s),a=n??`series_${Date.now()}`;return l.id=a,l.name=a,l.x=e,l.y=i,t?l.fillSymbol=t:l.fillSymbol&&(l.fillSymbol.color=K,l.fillSymbol?.outline&&(l.fillSymbol.outline.color=K)),l}function ue(o){let{numericFields:e,config:i,layerInfo:r,category:s,commonStrings:n}=o,{layerFieldsInfo:t}=r,l=[],a=s??A(i),y=!1,c=N({fieldName:a,numericFields:e,fieldList:t});if(e.length===0){let S=V({y:"",seriesIndex:0,category:a,commonStrings:n});l.push(S)}else if(c){let S=e.length>1?e:e[0],w=V({y:S,seriesIndex:0,category:a,commonStrings:n}),b=e.length>1?n.axisLabels.values:B(r.layerFieldsInfo,e[0]),p={...w,id:e[0],name:b,x:c?I:a},g=i.series.find(m=>W(S,m.y)&&m.query?.where===void 0);g!==void 0&&(!i.colorMatch&&"fillSymbol"in g&&(p.fillSymbol=g.fillSymbol,y=!0),p.id=g.id,p.name=g.name),l.push(p)}else for(let S=0;S<e.length;S+=1){let w=e[S],b=V({y:w,seriesIndex:S,category:a,commonStrings:n}),p=B(t,w),g={...b,id:w,name:p,x:a},m=i.series.find(v=>w===v.y);m!==void 0&&(!i.colorMatch&&"fillSymbol"in m&&(g.fillSymbol=m.fillSymbol,y=!0),g.id=m.id,g.name=m.name),l.push(g)}return i.series.length===1&&l.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(l[0].fillSymbol=i.series[0].fillSymbol,y=!0),i.colorMatch=!y,l}var Se=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",Ce=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function ke(o,e,i){let r=[];return o.forEach(s=>{if(s.type===f.BoxPlotSeries){let{type:n,fillSymbol:t,...l}=s;r.push({...l,type:f.LineSeries,lineSymbol:{...J({width:E}),...t!==void 0?{color:t.color}:{}},markerSymbol:{...G(),...t!==void 0?{color:t.color}:{}}})}}),r.unshift(ge({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),r}function qe(o){let e=o.slice(1),i=[];return e.forEach(r=>{if(r.type===f.LineSeries){let{type:s,lineSymbol:n,markerSymbol:t,...l}=r,a=D();i.push({...l,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function pe(o){let{formerSeries:e,newSeries:i,showMean:r}=o,s=i,n=a=>a.type===(r?f.LineSeries:f.BoxPlotSeries),t=e.filter(n).map(a=>a.id),l=i.filter(n).map(a=>a.id);return t.length===l.length&&JSON.stringify(t)!==JSON.stringify(l)&&(s=s.sort((a,y)=>t.findIndex(c=>c===a.id)-t.findIndex(c=>c===y.id))),s}async function De(o){let{config:e,layerInfo:i,commonStrings:r,splitByField:s,numericFields:n,category:t}=o,{layer:l,layerFieldsInfo:a}=i,{fetchNullValues:y}=M(e)?.query??{},c=t??A(e),{categoriesArray:S,splitByFieldType:w}=await ce({config:e,layer:l,layerFieldsInfo:a,xAxisField:_(c)?void 0:c,aggregationFields:n,splitByField:s,fetchNullValues:y,errorStrings:r.errorStrings}),b=[],p=!1,g=Ce(e);if(S.length===0){b=ue({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:r});for(let m of b)m.query&&(m.query.where=`${s}=''`)}else for(let m=0;m<S.length;m+=1){let v=S[m],q={y:n,seriesIndex:m,category:c,commonStrings:r},Q=g?Le(q):V(q),he=R({queryObject:i.layer,fieldName:s,fieldValue:v??""}),z=`${v}`,F={...Q,id:z,name:he??z,x:c===void 0||c===""?I:c,query:{...Q.query,where:`${s}=${w===ee.String&&v!==null?`'${v}'`:v}`}},x=e.series.find(we=>Se(we)===z);x!==void 0&&(e.colorMatch||(F.type===f.BoxPlotSeries?O(x)?F.fillSymbol=x.fillSymbol:F.fillSymbol={...D(),color:x.lineSymbol?.color}:O(x)?(F.lineSymbol={...J({width:E}),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}},F.markerSymbol={...G(),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}}):(F.lineSymbol=x.lineSymbol,F.markerSymbol=x.markerSymbol),p=!0),F.id=x.id,F.name=x.name),b.push(F)}if(b=pe({formerSeries:e.series,newSeries:b,showMean:Z(e)}),e.colorMatch=!p,Z(e)){let m=e.series.find(q=>q.type===f.BoxPlotSeries),v=ge({x:c,y:n,seriesTemplate:m,commonStrings:r});b.unshift(v)}return b}var so=async o=>{let{splitByField:e,numericFields:i,category:r,config:s,layerInfo:n,commonStrings:t}=o,{layerFieldsInfo:l}=n,a=Ve(r,i,e),y=ne(l),c=A(s),S=Ae(s,n,t),w=de(s,n,t),b=Me({config:s,layerInfo:n,newCategory:r}),p=Y(s);if(!y.includes(c)&&y.includes(r)?p=ie():y.includes(c)&&!y.includes(r)&&(p=oe()),p!==void 0&&ae(s,t,p),Ne(a?{newShowMeanLines:s.showMean,config:s,commonStrings:t}:{newShowMeanLines:!1,config:s,commonStrings:t}),s.series=a?await De({config:s,layerInfo:n,splitByField:e,numericFields:i,category:r,commonStrings:t}):ue({numericFields:i,config:s,layerInfo:n,category:r,commonStrings:t}),b){let g=N({fieldName:r,numericFields:i,fieldList:l})?"":B(l,r);L(s,0,g)}if(w){let g=k(s,n,t);L(s,1,g)}s?.title!==void 0&&S&&(s.title.content.text=be(s,n,t)),X({config:s,value:null,axisIndex:1,isMax:!1}),X({config:s,value:null,axisIndex:1,isMax:!0})},Te=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:r}=e,s=Te(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(t=>t.y).flat();return n=[...new Set(n)],n.length===1&&(s=B(r,n[0])),s}function be(o,e,i){let{layerFieldsInfo:r}=e,s=A(o),n=fe(o),t=Oe(o),l=n.map(c=>B(r??[],c)).join(", "),a=B(r??[],s),y="";return n.length>0&&(s!==I&&t!==""?y=P(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:l,category:a,splitByField:t}):s!==I?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:a}):t!==""?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:t}):y=P(i.titleLabels.distributionOfField,{valueField:l})),y}var no=o=>{let{series:e,splitByField:i,layerInfo:r,commonStrings:s}=o,n=typeof e.y=="string"?B(r.layerFieldsInfo,e.y):s.axisLabels.values;return U(i)||(n=Se(e)),n=R({queryObject:r.layer,fieldName:i,fieldValue:n??""})??n,n??e.id},lo=o=>o?.showOutliers??!1,to=o=>{let{newShowOutliers:e,config:i,layerInfo:r,commonStrings:s}=o;if(i.showOutliers=e,de(i,r,s)){let n=k(i,r,s);L(i,1,n)}},ao=o=>{let{newStandardizeValues:e,config:i,layerInfo:r,commonStrings:s}=o,n=T(1,i),t=k(i,r,s),l=C(i);if(i.standardizeValues=e,n===t||l){let a=k(i,r,s);L(i,1,a)}},xe=o=>{let e=d.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,r=o.orderOptions?.data&&"orderBy"in o.orderOptions.data?o.orderOptions.data.orderBy:h.Ascending;switch(i){case u.Category:e=Array.isArray(r)?d.customSort:r===h.Ascending?d.xAxisAsc:d.xAxisDesc;break;case u.Mean:e=r===h.Ascending?d.meanAsc:d.meanDesc;break;case u.Median:e=r===h.Ascending?d.medianAsc:d.medianDesc;break}return e},co=(o,e,i)=>{let r=u.Category,s=h.Ascending;if(e.orderOptions=e.orderOptions??{},o===d.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case d.xAxisAsc:{r=u.Category,s=h.Ascending;break}case d.xAxisDesc:{r=u.Category,s=h.Descending;break}case d.meanAsc:{r=u.Mean,s=h.Ascending;break}case d.meanDesc:{r=u.Mean,s=h.Descending;break}case d.medianAsc:{r=u.Median,s=h.Ascending;break}case d.medianDesc:{r=u.Median,s=h.Descending;break}}e.orderOptions.data={orderType:r,orderBy:s}}},Z=o=>o.showMean??!1,Ne=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:r,previousMeanLinesBoxColor:s}=o,n=e?s:Fe(i),t=(e??!1)!==(i.showMean??!1);if(i.showMean=e,t){let l;e?l=te(i.series)?ke(i.series,r):i.series:l=qe(i.series),l&&(l=pe({formerSeries:i.series,newSeries:l,showMean:e}),i.series=l)}return e&&s!==void 0&&Ie(s,i),{previousMeanLinesBoxColor:n}},yo=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===d.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},mo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===d.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},fo=async o=>{let{config:e,layerInfo:i,errorStrings:r}=o,s=A(e),n=Y(e)?.type,t=fe(e),l=[];return n===f.CategoryAxisFormat&&(N({fieldName:s,numericFields:t,fieldList:i.layerFieldsInfo})?l=t:_(s)||(l=await ye({layerInfo:i,config:e,category:s,errorStrings:r}))),l},_=o=>o.trim()===""||o===I,Pe=(o,e)=>e.length>1&&!_(o),Ve=(o,e,i)=>!Pe(o,e)&&i!=="";return{a:Ue,b:We,c:eo,d:Fe,e:Ie,f:oo,g:ve,h:Be,i:io,j:ro,k:A,l:Oe,m:fe,n:so,o:Te,p:k,q:be,r:no,s:lo,t:to,u:ao,v:xe,w:co,x:Z,y:Ne,z:yo,A:mo,B:fo,C:Pe,D:Ve}},"intl",a,b,c,e,g)
2
+ import g from"./UHM22GXZ.js";import e from"./IO53Q5WD.js";import c from"./L2WSLIMW.js";import{c as T}from"./NQAPPISU.js";import b from"./3OI3AZ2X.js";import{h as O,p as te}from"./KGNYAMFB.js";import a from"./S7OB4ILP.js";import{n as B}from"./P5XJTTU3.js";import{Da as K,F as J,G as oe,H as ie,P as D,Q as G,_ as re,ca as H,n as E,p as I}from"./6JI4NDJ6.js";import{a as ee}from"./75Y43JLP.js";import{d as $,g as j,k as U,l as W}from"./FIMXZMTB.js";import{b as d}from"./EZM4ZDQI.js";import{a as f,h,v as u}from"./XOB365BI.js";export default $arcgis.t(([{substitute:P},{O:M,S:se,ic:le,xb:ne,zb:R},{a:L,d:X,e:Y,f:ae,n:ce,r:ye},{a:me},{b:C},{i:N}])=>{var Ue=(o,e)=>e?.series?.[o]?.name,We=(o,e,i)=>{let r=i;r?.series?.[e]!==void 0&&(r.series[e].name=o)},eo=(o,e)=>{let i,r=e.series?.[o];return r?.type===f.BoxPlotSeries?i=r.fillSymbol?.color:r?.type===f.LineSeries&&(i=r.lineSymbol?.color),i},Fe=o=>{let e=o.series[0];return o.showMean===!0&&O(e)?e.fillSymbol?.color:void 0},Ie=(o,e)=>{let i=e.series[0];e.showMean===!0&&O(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...D(),color:o})},oo=(o,e,i)=>{let r=i?.series?.[e];r?.type===f.BoxPlotSeries&&r.fillSymbol!==void 0?r.fillSymbol.color=o:r?.type===f.LineSeries&&r.lineSymbol!==void 0&&(r.lineSymbol.color=o,r.markerSymbol!==void 0&&(r.markerSymbol.color=o))},ve=o=>o.series.map(e=>e.id),Be=(o,e)=>{e?.series?.sort((i,r)=>o.findIndex(s=>i.id===s)-o.findIndex(s=>r.id===s))},io=(o,e,i)=>{let r=ve(i),[s]=r.splice(o,1);r.splice(e,0,s),Be(r,i)},ro=o=>Z(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Ae(o,e,i){let r=be(o,e,i),s=me(o),n=C(o);return r===s||n}function de(o,e,i){let r=k(o,e,i),s=T(1,o),n=C(o);return r===s||n}function Me(o){let{config:e,layerInfo:i,newCategory:r}=o,{layerFieldsInfo:s}=i,n=A(e),t=r!==I?B(s,n):"",l=T(0,e),a=C(e);return t===l||a||l.trim()===""}var A=o=>M(o)?.x??I,Oe=$(o=>{let e=M(o),i=e?.query?.where?.split("=")[0].trim()??"";return se(e?.query?.where)?"":i},o=>M(o)?.query?.where),fe=$(o=>le(o?.series).filter(e=>e!==""),o=>o?.series),V=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...H(s,i),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)},Le=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...re({commonStrings:s,seriesIndex:i}),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)};function ge(o){let{x:e,y:i,seriesTemplate:r,commonStrings:s}=o,{id:n,fillSymbol:t}=r??{},l=H(s),a=n??`series_${Date.now()}`;return l.id=a,l.name=a,l.x=e,l.y=i,t?l.fillSymbol=t:l.fillSymbol&&(l.fillSymbol.color=K,l.fillSymbol?.outline&&(l.fillSymbol.outline.color=K)),l}function ue(o){let{numericFields:e,config:i,layerInfo:r,category:s,commonStrings:n}=o,{layerFieldsInfo:t}=r,l=[],a=s??A(i),y=!1,c=N({fieldName:a,numericFields:e,fieldList:t});if(e.length===0){let S=V({y:"",seriesIndex:0,category:a,commonStrings:n});l.push(S)}else if(c){let S=e.length>1?e:e[0],w=V({y:S,seriesIndex:0,category:a,commonStrings:n}),b=e.length>1?n.axisLabels.values:B(r.layerFieldsInfo,e[0]),p={...w,id:e[0],name:b,x:c?I:a},g=i.series.find(m=>W(S,m.y)&&m.query?.where===void 0);g!==void 0&&(!i.colorMatch&&"fillSymbol"in g&&(p.fillSymbol=g.fillSymbol,y=!0),p.id=g.id,p.name=g.name),l.push(p)}else for(let S=0;S<e.length;S+=1){let w=e[S],b=V({y:w,seriesIndex:S,category:a,commonStrings:n}),p=B(t,w),g={...b,id:w,name:p,x:a},m=i.series.find(v=>w===v.y);m!==void 0&&(!i.colorMatch&&"fillSymbol"in m&&(g.fillSymbol=m.fillSymbol,y=!0),g.id=m.id,g.name=m.name),l.push(g)}return i.series.length===1&&l.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(l[0].fillSymbol=i.series[0].fillSymbol,y=!0),i.colorMatch=!y,l}var Se=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",Ce=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function ke(o,e,i){let r=[];return o.forEach(s=>{if(s.type===f.BoxPlotSeries){let{type:n,fillSymbol:t,...l}=s;r.push({...l,type:f.LineSeries,lineSymbol:{...J({width:E}),...t!==void 0?{color:t.color}:{}},markerSymbol:{...G(),...t!==void 0?{color:t.color}:{}}})}}),r.unshift(ge({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),r}function qe(o){let e=o.slice(1),i=[];return e.forEach(r=>{if(r.type===f.LineSeries){let{type:s,lineSymbol:n,markerSymbol:t,...l}=r,a=D();i.push({...l,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function pe(o){let{formerSeries:e,newSeries:i,showMean:r}=o,s=i,n=a=>a.type===(r?f.LineSeries:f.BoxPlotSeries),t=e.filter(n).map(a=>a.id),l=i.filter(n).map(a=>a.id);return t.length===l.length&&JSON.stringify(t)!==JSON.stringify(l)&&(s=s.sort((a,y)=>t.findIndex(c=>c===a.id)-t.findIndex(c=>c===y.id))),s}async function De(o){let{config:e,layerInfo:i,commonStrings:r,splitByField:s,numericFields:n,category:t}=o,{layer:l,layerFieldsInfo:a}=i,{fetchNullValues:y}=M(e)?.query??{},c=t??A(e),{categoriesArray:S,splitByFieldType:w}=await ce({config:e,layer:l,layerFieldsInfo:a,xAxisField:_(c)?void 0:c,aggregationFields:n,splitByField:s,fetchNullValues:y,errorStrings:r.errorStrings}),b=[],p=!1,g=Ce(e);if(S.length===0){b=ue({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:r});for(let m of b)m.query&&(m.query.where=`${s}=''`)}else for(let m=0;m<S.length;m+=1){let v=S[m],q={y:n,seriesIndex:m,category:c,commonStrings:r},Q=g?Le(q):V(q),he=R({queryObject:i.layer,fieldName:s,fieldValue:v??""}),z=`${v}`,F={...Q,id:z,name:he??z,x:c===void 0||c===""?I:c,query:{...Q.query,where:`${s}=${w===ee.String&&v!==null?`'${v}'`:v}`}},x=e.series.find(we=>Se(we)===z);x!==void 0&&(e.colorMatch||(F.type===f.BoxPlotSeries?O(x)?F.fillSymbol=x.fillSymbol:F.fillSymbol={...D(),color:x.lineSymbol?.color}:O(x)?(F.lineSymbol={...J({width:E}),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}},F.markerSymbol={...G(),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}}):(F.lineSymbol=x.lineSymbol,F.markerSymbol=x.markerSymbol),p=!0),F.id=x.id,F.name=x.name),b.push(F)}if(b=pe({formerSeries:e.series,newSeries:b,showMean:Z(e)}),e.colorMatch=!p,Z(e)){let m=e.series.find(q=>q.type===f.BoxPlotSeries),v=ge({x:c,y:n,seriesTemplate:m,commonStrings:r});b.unshift(v)}return b}var so=async o=>{let{splitByField:e,numericFields:i,category:r,config:s,layerInfo:n,commonStrings:t}=o,{layerFieldsInfo:l}=n,a=Ve(r,i,e),y=ne(l),c=A(s),S=Ae(s,n,t),w=de(s,n,t),b=Me({config:s,layerInfo:n,newCategory:r}),p=Y(s);if(!y.includes(c)&&y.includes(r)?p=ie():y.includes(c)&&!y.includes(r)&&(p=oe()),p!==void 0&&ae(s,t,p),Ne(a?{newShowMeanLines:s.showMean,config:s,commonStrings:t}:{newShowMeanLines:!1,config:s,commonStrings:t}),s.series=a?await De({config:s,layerInfo:n,splitByField:e,numericFields:i,category:r,commonStrings:t}):ue({numericFields:i,config:s,layerInfo:n,category:r,commonStrings:t}),b){let g=N({fieldName:r,numericFields:i,fieldList:l})?"":B(l,r);L(s,0,g)}if(w){let g=k(s,n,t);L(s,1,g)}s?.title!==void 0&&S&&(s.title.content.text=be(s,n,t)),X({config:s,value:null,axisIndex:1,isMax:!1}),X({config:s,value:null,axisIndex:1,isMax:!0})},Te=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:r}=e,s=Te(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(t=>t.y).flat();return n=[...new Set(n)],n.length===1&&(s=B(r,n[0])),s}function be(o,e,i){let{layerFieldsInfo:r}=e,s=A(o),n=fe(o),t=Oe(o),l=n.map(c=>B(r??[],c)).join(", "),a=B(r??[],s),y="";return n.length>0&&(s!==I&&t!==""?y=P(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:l,category:a,splitByField:t}):s!==I?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:a}):t!==""?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:t}):y=P(i.titleLabels.distributionOfField,{valueField:l})),y}var no=o=>{let{series:e,splitByField:i,layerInfo:r,commonStrings:s}=o,n=typeof e.y=="string"?B(r.layerFieldsInfo,e.y):s.axisLabels.values;return U(i)||(n=Se(e)),n=R({queryObject:r.layer,fieldName:i,fieldValue:n??""})??n,n??e.id},lo=o=>o?.showOutliers??!1,to=o=>{let{newShowOutliers:e,config:i,layerInfo:r,commonStrings:s}=o;if(i.showOutliers=e,de(i,r,s)){let n=k(i,r,s);L(i,1,n)}},ao=o=>{let{newStandardizeValues:e,config:i,layerInfo:r,commonStrings:s}=o,n=T(1,i),t=k(i,r,s),l=C(i);if(i.standardizeValues=e,n===t||l){let a=k(i,r,s);L(i,1,a)}},xe=o=>{let e=d.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,r=o.orderOptions?.data&&"orderBy"in o.orderOptions.data?o.orderOptions.data.orderBy:h.Ascending;switch(i){case u.Category:e=Array.isArray(r)?d.customSort:r===h.Ascending?d.xAxisAsc:d.xAxisDesc;break;case u.Mean:e=r===h.Ascending?d.meanAsc:d.meanDesc;break;case u.Median:e=r===h.Ascending?d.medianAsc:d.medianDesc;break}return e},co=(o,e,i)=>{let r=u.Category,s=h.Ascending;if(e.orderOptions=e.orderOptions??{},o===d.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case d.xAxisAsc:{r=u.Category,s=h.Ascending;break}case d.xAxisDesc:{r=u.Category,s=h.Descending;break}case d.meanAsc:{r=u.Mean,s=h.Ascending;break}case d.meanDesc:{r=u.Mean,s=h.Descending;break}case d.medianAsc:{r=u.Median,s=h.Ascending;break}case d.medianDesc:{r=u.Median,s=h.Descending;break}}e.orderOptions.data={orderType:r,orderBy:s}}},Z=o=>o.showMean??!1,Ne=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:r,previousMeanLinesBoxColor:s}=o,n=e?s:Fe(i),t=(e??!1)!==(i.showMean??!1);if(i.showMean=e,t){let l;e?l=te(i.series)?ke(i.series,r):i.series:l=qe(i.series),l&&(l=pe({formerSeries:i.series,newSeries:l,showMean:e}),i.series=l)}return e&&s!==void 0&&Ie(s,i),{previousMeanLinesBoxColor:n}},yo=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===d.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},mo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===d.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},fo=async o=>{let{config:e,layerInfo:i,errorStrings:r}=o,s=A(e),n=Y(e)?.type,t=fe(e),l=[];return n===f.CategoryAxisFormat&&(N({fieldName:s,numericFields:t,fieldList:i.layerFieldsInfo})?l=t:_(s)||(l=await ye({layerInfo:i,config:e,category:s,errorStrings:r}))),l},_=o=>o.trim()===""||o===I,Pe=(o,e)=>e.length>1&&!_(o),Ve=(o,e,i)=>!Pe(o,e)&&i!=="";return{a:Ue,b:We,c:eo,d:Fe,e:Ie,f:oo,g:ve,h:Be,i:io,j:ro,k:A,l:Oe,m:fe,n:so,o:Te,p:k,q:be,r:no,s:lo,t:to,u:ao,v:xe,w:co,x:Z,y:Ne,z:yo,A:mo,B:fo,C:Pe,D:Ve}},"intl",a,b,c,e,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./SJLXVHEK.js";import{a as o}from"./43P4WOC4.js";import{a as e}from"./XOB365BI.js";export default $arcgis.t(([{s:n}])=>{function b(s){let c=o(s.series),a="graph-bar";switch(c){case e.LineSeries:{a="graph-time-series";break}case e.PieSeries:{a="pie-chart";break}case e.HistogramSeries:{a="graph-histogram";break}case e.ScatterSeries:{a="graph-scatter-plot";break}case e.BoxPlotSeries:{a="box-chart";break}case e.HeatSeries:{a="calendar-heat-chart";break}case e.BarSeries:}return a}function l(s){let{chartType:c,commonStrings:a,config:i}=s,r=a.utilsStrings,t="";switch(c){case e.HistogramSeries:{t=r.chartType.histogram;break}case e.ScatterSeries:{t=r.chartType.scatterplot;break}case e.BarSeries:{t=r.chartType.barChart;break}case e.LineSeries:{t=r.chartType.lineChart;break}case e.PieSeries:{t=r.chartType.pieChart;break}case e.BoxPlotSeries:{t=r.chartType.boxPlot;break}case e.HeatSeries:{i?t=n(i)?r.chartType.matrixHeatChart:r.chartType.calendarHeatChart:t=r.chartType.heatChart;break}}return t}return{a:b,b:l}},a)
2
+ import a from"./3OI3AZ2X.js";import{a as o}from"./43P4WOC4.js";import{a as e}from"./XOB365BI.js";export default $arcgis.t(([{s:n}])=>{function b(s){let c=o(s.series),a="graph-bar";switch(c){case e.LineSeries:{a="graph-time-series";break}case e.PieSeries:{a="pie-chart";break}case e.HistogramSeries:{a="graph-histogram";break}case e.ScatterSeries:{a="graph-scatter-plot";break}case e.BoxPlotSeries:{a="box-chart";break}case e.HeatSeries:{a="calendar-heat-chart";break}case e.BarSeries:}return a}function l(s){let{chartType:c,commonStrings:a,config:i}=s,r=a.utilsStrings,t="";switch(c){case e.HistogramSeries:{t=r.chartType.histogram;break}case e.ScatterSeries:{t=r.chartType.scatterplot;break}case e.BarSeries:{t=r.chartType.barChart;break}case e.LineSeries:{t=r.chartType.lineChart;break}case e.PieSeries:{t=r.chartType.pieChart;break}case e.BoxPlotSeries:{t=r.chartType.boxPlot;break}case e.HeatSeries:{i?t=n(i)?r.chartType.matrixHeatChart:r.chartType.calendarHeatChart:t=r.chartType.heatChart;break}}return t}return{a:b,b:l}},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as b,b as f,c as g,d as v}from"./E6ICXDNS.js";import c from"./ZNNQGFW5.js";import{i as a,j as o}from"./KGNYAMFB.js";import{Q as n}from"./6JI4NDJ6.js";export default $arcgis.t(([{b:d,c:k}])=>{var T=(s,e)=>{if(a(e.series[s])||o(e.series[s]))return b(e.series[s])},I=(s,e,i)=>{(a(i.series[e])||o(i.series[e]))&&f(s,i.series[e])},j=(s,e)=>{if(a(e.series[s])||o(e.series[s]))return g(e.series[s])},w=(s,e,i)=>{(a(i.series[e])||o(i.series[e]))&&v(s,i.series[e])},O=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].markerSymbol?.color:void 0,z=(s,e,i)=>{if(a(i.series[e])||o(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=n()),r.markerSymbol.color=s}},A=(s,e)=>a(e.series[s])||o(e.series[s])?e.series?.[s]?.markerSymbol?.style:void 0,L=(s,e,i)=>{if(a(i.series[e])||o(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=n()),r.markerSymbol.style=s}},P=(s,e)=>a(e.series[s])||o(e.series[s])?e.series?.[s]?.markerSymbol?.size:void 0,_=(s,e,i)=>{if(a(i.series[e])||o(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=n()),r.markerSymbol.size=s}},q=(s,e)=>a(e.series[s])||o(e.series[s])?e.series?.[s]?.lineSmoothed??!1:!1,D=s=>{let{smoothed:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].lineSmoothed=e)},W=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].showArea??!1:!1,X=s=>{let{visible:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].showArea=e)},C=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].markerVisible??!0:!1,E=s=>{let{visible:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].markerVisible=e)},F=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].areaColor:void 0,G=(s,e)=>a(e.series[s])||o(e.series[s])?e.series?.[s]?.connectLines:void 0,H=s=>{let{connect:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].connectLines=e)},y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,p=(s,e,i,r)=>{for(var t=S(e,i),m=s.length-1,l;m>=0;m--)(l=s[m])&&(t=l(e,i,t)||t);return t&&y(e,i,t),t},u=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].stackNegativeValuesToBaseline??!0:!1,h=s=>{let{stackNegativeValuesToBaseline:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].stackNegativeValuesToBaseline=e)},c=class extends d{isNegativeValuesStackedToBaseline(e){return u(e,this._config)}setNegativeValuesStackedToBaseline(e,i){h({stackNegativeValuesToBaseline:e,seriesIndex:i,config:this._config})}};p([k],c.prototype,"setNegativeValuesStackedToBaseline");return{a:T,b:I,c:j,d:w,e:O,f:z,g:A,h:L,i:P,j:_,k:q,l:D,m:W,n:X,o:C,p:E,q:F,r:G,s:H,t:c}},c)
2
+ import{a as b,b as f,c as g,d as v}from"./E6ICXDNS.js";import c from"./COW63QH2.js";import{i as a,j as o}from"./KGNYAMFB.js";import{Q as n}from"./6JI4NDJ6.js";export default $arcgis.t(([{b:d,c:k}])=>{var T=(s,e)=>{if(a(e.series[s])||o(e.series[s]))return b(e.series[s])},I=(s,e,i)=>{(a(i.series[e])||o(i.series[e]))&&f(s,i.series[e])},j=(s,e)=>{if(a(e.series[s])||o(e.series[s]))return g(e.series[s])},w=(s,e,i)=>{(a(i.series[e])||o(i.series[e]))&&v(s,i.series[e])},O=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].markerSymbol?.color:void 0,z=(s,e,i)=>{if(a(i.series[e])||o(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=n()),r.markerSymbol.color=s}},A=(s,e)=>a(e.series[s])||o(e.series[s])?e.series?.[s]?.markerSymbol?.style:void 0,L=(s,e,i)=>{if(a(i.series[e])||o(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=n()),r.markerSymbol.style=s}},P=(s,e)=>a(e.series[s])||o(e.series[s])?e.series?.[s]?.markerSymbol?.size:void 0,_=(s,e,i)=>{if(a(i.series[e])||o(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=n()),r.markerSymbol.size=s}},q=(s,e)=>a(e.series[s])||o(e.series[s])?e.series?.[s]?.lineSmoothed??!1:!1,D=s=>{let{smoothed:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].lineSmoothed=e)},W=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].showArea??!1:!1,X=s=>{let{visible:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].showArea=e)},C=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].markerVisible??!0:!1,E=s=>{let{visible:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].markerVisible=e)},F=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].areaColor:void 0,G=(s,e)=>a(e.series[s])||o(e.series[s])?e.series?.[s]?.connectLines:void 0,H=s=>{let{connect:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].connectLines=e)},y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,p=(s,e,i,r)=>{for(var t=S(e,i),m=s.length-1,l;m>=0;m--)(l=s[m])&&(t=l(e,i,t)||t);return t&&y(e,i,t),t},u=(s,e)=>a(e.series[s])||o(e.series[s])?e.series[s].stackNegativeValuesToBaseline??!0:!1,h=s=>{let{stackNegativeValuesToBaseline:e,seriesIndex:i,config:r}=s;(a(r.series[i])||o(r.series[i]))&&(r.series[i].stackNegativeValuesToBaseline=e)},c=class extends d{isNegativeValuesStackedToBaseline(e){return u(e,this._config)}setNegativeValuesStackedToBaseline(e,i){h({stackNegativeValuesToBaseline:e,seriesIndex:i,config:this._config})}};p([k],c.prototype,"setNegativeValuesStackedToBaseline");return{a:T,b:I,c:j,d:w,e:O,f:z,g:A,h:L,i:P,j:_,k:q,l:D,m:W,n:X,o:C,p:E,q:F,r:G,s:H,t:c}},c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import o from"./BYGJR44E.js";import n from"./LINGZCLS.js";import m from"./VVPCLQHH.js";import k from"./SO54SMRK.js";import"./7MKAC33Z.js";import j from"./XNAEJAWM.js";import i from"./TOTYYAA5.js";import"./NQAPPISU.js";import g from"./ZNNQGFW5.js";import e from"./QVQYL6M6.js";import d from"./SJLXVHEK.js";import"./KGNYAMFB.js";import a from"./CMP6PTJT.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import{E as p,O as v,X as l,ga as h,na as _}from"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./GIDFPLFF.js";import"./YB3MZLQ3.js";import"./TOO3T62Y.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as c,b as f,s as b}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{rb:S},{b:I,q:C},,{c:i},,L,{b:B,d:E,f:W},{b:w,d:V,f:D},{d:T,e:A},F])=>{var M=t=>t.axes[0].needle?.visible??!0,P=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.visible=t},$=t=>t.axes[0].needle?.symbol,G=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.symbol=t},j=t=>t.axes[0].needle?.startWidth,q=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.startWidth=t},O=t=>t.axes[0].needle?.endWidth,N=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.endWidth=t},J=t=>t.axes[0].needle?.innerRadius,K=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.innerRadius=t},z=t=>t.axes[0].needle?.displayPin??!1,H=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.displayPin=t},Q=t=>t.axes[0].innerLabel?.visible??!0,U=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),e.axes[0].innerLabel.visible=t},X=t=>t.axes[0].innerLabel?.content,Y=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),t!==void 0&&(e.axes[0].innerLabel.content=t)},Z=t=>t.axes[0].progressBands?.visible??!0,ee=(t,e)=>{e.axes[0].progressBands===void 0&&(e.axes[0].progressBands={type:c.FixedProgressBands}),e.axes[0].progressBands.visible=t},te=t=>t.axes[0].progressBands,ne=(t,e)=>{t===void 0?delete e.axes[0].progressBands:e.axes[0].progressBands=t},se=t=>t.axes[0].ticks?.visible??!0,ie=(t,e)=>{e.axes[0].ticks===void 0&&(e.axes[0].ticks={type:c.GaugeAxisTick}),e.axes[0].ticks.visible=t},oe=t=>t.axes[0].labelsIncrement,re=(t,e)=>{e.axes[0].labelsIncrement=t},ae=t=>t.axes[0].onlyShowFirstAndLastLabels??!1,ge=(t,e)=>{e.axes[0].onlyShowFirstAndLastLabels=t},le=t=>t.series[0]?.valueConversion,de=(t,e)=>{e.series[0]!==void 0&&(e.series[0].valueConversion=t)},k=t=>t.series[0]?.featureIndex,R=t=>{let{featureIndex:e,config:n,layerInfo:a,commonStrings:r}=t,g=x(n),d=u(n);e===null?delete n.series[0].featureIndex:n.series[0]!==void 0&&(n.series[0].featureIndex=e),y({config:n,layerInfo:a,field:g,aggregationType:d,commonStrings:r})},ce=t=>t.subType??b.StatisticGauge,fe=t=>{let{config:e,field:n,aggregationType:a}=t;if(a!==f.NoAggregation){let r=k(e),g=m(r)?{}:{outStatistics:[{statisticType:a,onStatisticField:n,outStatisticFieldName:`${a}_${n}`}]};e.series[0].query=g}},pe=t=>{let{config:e,layerInfo:n,commonStrings:a,field:r,aggregationType:g}=t;e.title&&(e.title.content.text=I({config:e,layerInfo:n,commonStrings:a,numericFields:[r],aggregationType:g}))},y=t=>{let{config:e,field:n,aggregationType:a}=t;e.series[0]===void 0&&(e.series=[h({})]);let r=m(e.series[0]?.featureIndex),g=r?n:`${a}_${n}`;r&&n.startsWith(`${a}_`)&&(g=n.replace(`${a}_`,"")),e.series[0].x=g,fe({config:e,field:n,aggregationType:a}),pe(t)},u=t=>t.series[0]?.query?.outStatistics?.[0]?.statisticType??f.Count,he=t=>{let{config:e,layerInfo:n,commonStrings:a,aggregationType:r}=t,g=x(e);y({config:e,layerInfo:n,commonStrings:a,field:g,aggregationType:r})},m=t=>typeof t=="number"&&t>=0,x=t=>m(t.series[0]?.featureIndex)?t.series[0]?.x:t.series[0]?.query?.outStatistics?.[0]?.onStatisticField??"",ye=t=>{let{field:e,config:n,layerInfo:a,commonStrings:r}=t,g=u(n);y({config:n,layerInfo:a,commonStrings:r,field:e,aggregationType:g})},ue=t=>t.innerRadius??50,me=(t,e)=>{e.innerRadius=t},xe=t=>t.startAngle??-90,be=(t,e)=>{e.startAngle=t},ve=t=>t.endAngle??270,_e=(t,e)=>{e.endAngle=t};function Se(t){return v(t)}var Ie=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,o=(t,e,n,a)=>{for(var r=Ce(e,n),g=t.length-1,d;g>=0;g--)(d=t[g])&&(r=d(e,n,r)||r);return r&&Ie(e,n,r),r},s=class extends L{constructor(){super(...arguments),this._chartType=c.GaugeSeries}generateChartTitle(){return Se(this.commonStrings)}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get field(){return x(this._config)}set field(e){ye({field:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get aggregationType(){return u(this._config)}set aggregationType(e){he({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get innerRadius(){return ue(this._config)}set innerRadius(e){me(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get startAngle(){return xe(this._config)}set startAngle(e){be(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get endAngle(){return ve(this._config)}set endAngle(e){_e(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get valueConversion(){return le(this._config)}set valueConversion(e){de(e,this._config)}get featureIndex(){return k(this._config)}set featureIndex(e){R({featureIndex:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}removeFeatureIndex(){R({featureIndex:null,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get gaugeSubType(){return ce(this._config)}get needleVisibility(){return M(this._config)}set needleVisibility(e){P(e,this._config)}get needleSymbol(){return $(this._config)}set needleSymbol(e){G(e,this._config)}get needleStartWidth(){return j(this._config)}set needleStartWidth(e){q(e,this._config)}get needleEndWidth(){return O(this._config)}set needleEndWidth(e){N(e,this._config)}get needleInnerRadius(){return J(this._config)}set needleInnerRadius(e){K(e,this._config)}get needleDisplayPin(){return z(this._config)}set needleDisplayPin(e){H(e,this._config)}get innerLabelVisible(){return Q(this._config)}set innerLabelVisible(e){U(e,this._config)}get innerLabelContent(){return X(this._config)}set innerLabelContent(e){Y(e,this._config)}get progressBandsVisibility(){return Z(this._config)}set progressBandsVisibility(e){ee(e,this._config)}get progressBands(){return te(this._config)}set progressBands(e){ne(e,this._config)}get axisTickVisibility(){return se(this._config)}set axisTickVisibility(e){ie(e,this._config)}get labelsIncrement(){return oe(this._config)}set labelsIncrement(e){re(e,this._config)}get onlyShowFirstAndLastLabels(){return ae(this._config)}set onlyShowFirstAndLastLabels(e){ge(e,this._config)}generateDefaultConfig(){let e=_(this.commonStrings);return e.series=[h({objectIDField:S(this.layerInfo.layer).idField})],e}};o([i],s.prototype,"field");o([i],s.prototype,"aggregationType");o([i],s.prototype,"innerRadius");o([i],s.prototype,"startAngle");o([i],s.prototype,"endAngle");o([i],s.prototype,"valueConversion");o([i],s.prototype,"featureIndex");o([i],s.prototype,"removeFeatureIndex");o([i],s.prototype,"needleVisibility");o([i],s.prototype,"needleSymbol");o([i],s.prototype,"needleStartWidth");o([i],s.prototype,"needleEndWidth");o([i],s.prototype,"needleInnerRadius");o([i],s.prototype,"needleDisplayPin");o([i],s.prototype,"innerLabelVisible");o([i],s.prototype,"innerLabelContent");o([i],s.prototype,"progressBandsVisibility");o([i],s.prototype,"progressBands");o([i],s.prototype,"axisTickVisibility");o([i],s.prototype,"labelsIncrement");o([i],s.prototype,"onlyShowFirstAndLastLabels");var Le=[w,T,V,A,B,E,W,D,F];C(s,Le);return s},a,d,e,g,i,j,k,m,n,o)
2
+ import o from"./GAO6N5DQ.js";import n from"./PDD74AKL.js";import m from"./JWEXM2O6.js";import k from"./7HGJIAXH.js";import"./7MKAC33Z.js";import j from"./3G6DJQ4I.js";import i from"./L2WSLIMW.js";import"./NQAPPISU.js";import g from"./COW63QH2.js";import e from"./A5OI4GRG.js";import d from"./3OI3AZ2X.js";import"./KGNYAMFB.js";import a from"./S7OB4ILP.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import{E as p,O as v,X as l,ga as h,na as _}from"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./DMONWSPY.js";import"./AA7A24A4.js";import"./TOO3T62Y.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as c,b as f,s as b}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{rb:S},{b:I,q:C},,{c:i},,L,{b:B,d:E,f:W},{b:w,d:V,f:D},{d:T,e:A},F])=>{var M=t=>t.axes[0].needle?.visible??!0,P=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.visible=t},$=t=>t.axes[0].needle?.symbol,G=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.symbol=t},j=t=>t.axes[0].needle?.startWidth,q=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.startWidth=t},O=t=>t.axes[0].needle?.endWidth,N=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.endWidth=t},J=t=>t.axes[0].needle?.innerRadius,K=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.innerRadius=t},z=t=>t.axes[0].needle?.displayPin??!1,H=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.displayPin=t},Q=t=>t.axes[0].innerLabel?.visible??!0,U=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),e.axes[0].innerLabel.visible=t},X=t=>t.axes[0].innerLabel?.content,Y=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),t!==void 0&&(e.axes[0].innerLabel.content=t)},Z=t=>t.axes[0].progressBands?.visible??!0,ee=(t,e)=>{e.axes[0].progressBands===void 0&&(e.axes[0].progressBands={type:c.FixedProgressBands}),e.axes[0].progressBands.visible=t},te=t=>t.axes[0].progressBands,ne=(t,e)=>{t===void 0?delete e.axes[0].progressBands:e.axes[0].progressBands=t},se=t=>t.axes[0].ticks?.visible??!0,ie=(t,e)=>{e.axes[0].ticks===void 0&&(e.axes[0].ticks={type:c.GaugeAxisTick}),e.axes[0].ticks.visible=t},oe=t=>t.axes[0].labelsIncrement,re=(t,e)=>{e.axes[0].labelsIncrement=t},ae=t=>t.axes[0].onlyShowFirstAndLastLabels??!1,ge=(t,e)=>{e.axes[0].onlyShowFirstAndLastLabels=t},le=t=>t.series[0]?.valueConversion,de=(t,e)=>{e.series[0]!==void 0&&(e.series[0].valueConversion=t)},k=t=>t.series[0]?.featureIndex,R=t=>{let{featureIndex:e,config:n,layerInfo:a,commonStrings:r}=t,g=x(n),d=u(n);e===null?delete n.series[0].featureIndex:n.series[0]!==void 0&&(n.series[0].featureIndex=e),y({config:n,layerInfo:a,field:g,aggregationType:d,commonStrings:r})},ce=t=>t.subType??b.StatisticGauge,fe=t=>{let{config:e,field:n,aggregationType:a}=t;if(a!==f.NoAggregation){let r=k(e),g=m(r)?{}:{outStatistics:[{statisticType:a,onStatisticField:n,outStatisticFieldName:`${a}_${n}`}]};e.series[0].query=g}},pe=t=>{let{config:e,layerInfo:n,commonStrings:a,field:r,aggregationType:g}=t;e.title&&(e.title.content.text=I({config:e,layerInfo:n,commonStrings:a,numericFields:[r],aggregationType:g}))},y=t=>{let{config:e,field:n,aggregationType:a}=t;e.series[0]===void 0&&(e.series=[h({})]);let r=m(e.series[0]?.featureIndex),g=r?n:`${a}_${n}`;r&&n.startsWith(`${a}_`)&&(g=n.replace(`${a}_`,"")),e.series[0].x=g,fe({config:e,field:n,aggregationType:a}),pe(t)},u=t=>t.series[0]?.query?.outStatistics?.[0]?.statisticType??f.Count,he=t=>{let{config:e,layerInfo:n,commonStrings:a,aggregationType:r}=t,g=x(e);y({config:e,layerInfo:n,commonStrings:a,field:g,aggregationType:r})},m=t=>typeof t=="number"&&t>=0,x=t=>m(t.series[0]?.featureIndex)?t.series[0]?.x:t.series[0]?.query?.outStatistics?.[0]?.onStatisticField??"",ye=t=>{let{field:e,config:n,layerInfo:a,commonStrings:r}=t,g=u(n);y({config:n,layerInfo:a,commonStrings:r,field:e,aggregationType:g})},ue=t=>t.innerRadius??50,me=(t,e)=>{e.innerRadius=t},xe=t=>t.startAngle??-90,be=(t,e)=>{e.startAngle=t},ve=t=>t.endAngle??270,_e=(t,e)=>{e.endAngle=t};function Se(t){return v(t)}var Ie=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,o=(t,e,n,a)=>{for(var r=Ce(e,n),g=t.length-1,d;g>=0;g--)(d=t[g])&&(r=d(e,n,r)||r);return r&&Ie(e,n,r),r},s=class extends L{constructor(){super(...arguments),this._chartType=c.GaugeSeries}generateChartTitle(){return Se(this.commonStrings)}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get field(){return x(this._config)}set field(e){ye({field:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get aggregationType(){return u(this._config)}set aggregationType(e){he({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get innerRadius(){return ue(this._config)}set innerRadius(e){me(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get startAngle(){return xe(this._config)}set startAngle(e){be(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get endAngle(){return ve(this._config)}set endAngle(e){_e(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get valueConversion(){return le(this._config)}set valueConversion(e){de(e,this._config)}get featureIndex(){return k(this._config)}set featureIndex(e){R({featureIndex:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}removeFeatureIndex(){R({featureIndex:null,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get gaugeSubType(){return ce(this._config)}get needleVisibility(){return M(this._config)}set needleVisibility(e){P(e,this._config)}get needleSymbol(){return $(this._config)}set needleSymbol(e){G(e,this._config)}get needleStartWidth(){return j(this._config)}set needleStartWidth(e){q(e,this._config)}get needleEndWidth(){return O(this._config)}set needleEndWidth(e){N(e,this._config)}get needleInnerRadius(){return J(this._config)}set needleInnerRadius(e){K(e,this._config)}get needleDisplayPin(){return z(this._config)}set needleDisplayPin(e){H(e,this._config)}get innerLabelVisible(){return Q(this._config)}set innerLabelVisible(e){U(e,this._config)}get innerLabelContent(){return X(this._config)}set innerLabelContent(e){Y(e,this._config)}get progressBandsVisibility(){return Z(this._config)}set progressBandsVisibility(e){ee(e,this._config)}get progressBands(){return te(this._config)}set progressBands(e){ne(e,this._config)}get axisTickVisibility(){return se(this._config)}set axisTickVisibility(e){ie(e,this._config)}get labelsIncrement(){return oe(this._config)}set labelsIncrement(e){re(e,this._config)}get onlyShowFirstAndLastLabels(){return ae(this._config)}set onlyShowFirstAndLastLabels(e){ge(e,this._config)}generateDefaultConfig(){let e=_(this.commonStrings);return e.series=[h({objectIDField:S(this.layerInfo.layer).idField})],e}};o([i],s.prototype,"field");o([i],s.prototype,"aggregationType");o([i],s.prototype,"innerRadius");o([i],s.prototype,"startAngle");o([i],s.prototype,"endAngle");o([i],s.prototype,"valueConversion");o([i],s.prototype,"featureIndex");o([i],s.prototype,"removeFeatureIndex");o([i],s.prototype,"needleVisibility");o([i],s.prototype,"needleSymbol");o([i],s.prototype,"needleStartWidth");o([i],s.prototype,"needleEndWidth");o([i],s.prototype,"needleInnerRadius");o([i],s.prototype,"needleDisplayPin");o([i],s.prototype,"innerLabelVisible");o([i],s.prototype,"innerLabelContent");o([i],s.prototype,"progressBandsVisibility");o([i],s.prototype,"progressBands");o([i],s.prototype,"axisTickVisibility");o([i],s.prototype,"labelsIncrement");o([i],s.prototype,"onlyShowFirstAndLastLabels");var Le=[w,T,V,A,B,E,W,D,F];C(s,Le);return s},a,d,e,g,i,j,k,m,n,o)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import f from"./NKVDX2XU.js";import{a as b}from"./4H6RZWUK.js";import"./MZ2UZAFW.js";import e from"./SJLXVHEK.js";import"./KGNYAMFB.js";import c from"./CMP6PTJT.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./GIDFPLFF.js";import{A as p,B as a,G as d,g as l,i as o,n as u,y as h,z as g}from"./YB3MZLQ3.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{f:f,g:v,h:r,i:m}])=>{var s={container:"container",label:"label",numberInput:"number-input"},x=l`.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)}.container{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));margin-top:.5rem}.container>.number-input{margin-bottom:.5rem;display:flex}.container>.number-input>div{width:100%}.label{display:flex;margin-bottom:.5rem;justify-content:space-between}`,c=class extends p{constructor(){super(...arguments),this._messages=b(),this.decimalPlacesInputElement=h(),this.arcgisChartsConfigNumberFormatChange=u()}static{this.properties={messageOverrides:0,numberFormat:0}}static{this.styles=x}onDecimalPlacesChange(){let t=this.decimalPlacesInputElement.value?.value,i=Math.floor(Number(t)),n=i===Number(t)&&i>=0;if(t!==void 0&&n&&f(t,this.decimalPlacesInputElement.value?.min,this.decimalPlacesInputElement.value?.max)){let F=Number.parseInt(t),e={minimumFractionDigits:this.numberFormat?.minimumFractionDigits,maximumFractionDigits:F};e.maximumFractionDigits!==void 0&&e.minimumFractionDigits!==void 0&&e.minimumFractionDigits>e.maximumFractionDigits&&(e.minimumFractionDigits=e.maximumFractionDigits);let C=this.getUpdatedNumberFormat(e);this.arcgisChartsConfigNumberFormatChange.emit(C),this.decimalPlacesInputElement.value&&r({inputElement:this.decimalPlacesInputElement.value,status:m.IDLE})}else this.decimalPlacesInputElement.value&&r({inputElement:this.decimalPlacesInputElement.value,status:m.INVALID})}onShowThousandsSeparatorChange(t){let i=t.target.checked,n=this.getUpdatedNumberFormat({useGrouping:i});this.arcgisChartsConfigNumberFormatChange.emit(n)}getUpdatedNumberFormat(t){return{...this.numberFormat,...t}}render(){return o`<div class=${a(s.container)}><calcite-label class=${a(s.label)}>${this._messages.decimalPlaces}<calcite-input type=number class=${a(s.numberInput)} min=0 max=20 step=1 .value=${v(this.numberFormat?.maximumFractionDigits,2)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesInputElement)}></calcite-input></calcite-label><calcite-label layout=inline-space-between class=${a(s.label)}>${this._messages.showThousandSeparators}<calcite-switch name=useGrouping .checked=${!!(this.numberFormat?.useGrouping??!0)} @calciteSwitchChange=${this.onShowThousandsSeparatorChange}></calcite-switch></calcite-label></div>`}};d("arcgis-charts-config-number-format",c);return c},c,e,f)
2
+ import f from"./VVYGCHEV.js";import{a as b}from"./O5OI7ZFM.js";import"./MZ2UZAFW.js";import e from"./3OI3AZ2X.js";import"./KGNYAMFB.js";import c from"./S7OB4ILP.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./DMONWSPY.js";import{A as p,B as a,G as d,g as l,i as o,n as u,y as h,z as g}from"./AA7A24A4.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{f:f,g:v,h:r,i:m}])=>{var s={container:"container",label:"label",numberInput:"number-input"},x=l`.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)}.container{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));margin-top:.5rem}.container>.number-input{margin-bottom:.5rem;display:flex}.container>.number-input>div{width:100%}.label{display:flex;margin-bottom:.5rem;justify-content:space-between}`,c=class extends p{constructor(){super(...arguments),this._messages=b(),this.decimalPlacesInputElement=h(),this.arcgisChartsConfigNumberFormatChange=u()}static{this.properties={messageOverrides:0,numberFormat:0}}static{this.styles=x}onDecimalPlacesChange(){let t=this.decimalPlacesInputElement.value?.value,i=Math.floor(Number(t)),n=i===Number(t)&&i>=0;if(t!==void 0&&n&&f(t,this.decimalPlacesInputElement.value?.min,this.decimalPlacesInputElement.value?.max)){let F=Number.parseInt(t),e={minimumFractionDigits:this.numberFormat?.minimumFractionDigits,maximumFractionDigits:F};e.maximumFractionDigits!==void 0&&e.minimumFractionDigits!==void 0&&e.minimumFractionDigits>e.maximumFractionDigits&&(e.minimumFractionDigits=e.maximumFractionDigits);let C=this.getUpdatedNumberFormat(e);this.arcgisChartsConfigNumberFormatChange.emit(C),this.decimalPlacesInputElement.value&&r({inputElement:this.decimalPlacesInputElement.value,status:m.IDLE})}else this.decimalPlacesInputElement.value&&r({inputElement:this.decimalPlacesInputElement.value,status:m.INVALID})}onShowThousandsSeparatorChange(t){let i=t.target.checked,n=this.getUpdatedNumberFormat({useGrouping:i});this.arcgisChartsConfigNumberFormatChange.emit(n)}getUpdatedNumberFormat(t){return{...this.numberFormat,...t}}render(){return o`<div class=${a(s.container)}><calcite-label class=${a(s.label)}>${this._messages.decimalPlaces}<calcite-input type=number class=${a(s.numberInput)} min=0 max=20 step=1 .value=${v(this.numberFormat?.maximumFractionDigits,2)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesInputElement)}></calcite-input></calcite-label><calcite-label layout=inline-space-between class=${a(s.label)}>${this._messages.showThousandSeparators}<calcite-switch name=useGrouping .checked=${!!(this.numberFormat?.useGrouping??!0)} @calciteSwitchChange=${this.onShowThousandsSeparatorChange}></calcite-switch></calcite-label></div>`}};d("arcgis-charts-config-number-format",c);return c},c,e,f)