@arcgis/charts-components 5.1.0 → 5.1.1

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 (105) hide show
  1. package/dist/cdn/{K6N5BBOM.js → 2O72YRTQ.js} +1 -1
  2. package/dist/cdn/{ZPNW6LWT.js → 2XFVXCGM.js} +1 -1
  3. package/dist/cdn/{MFOZISZU.js → 32SGYF75.js} +1 -1
  4. package/dist/cdn/{WEGNK77V.js → 367YKXWB.js} +1 -1
  5. package/dist/cdn/{U2LFGV2U.js → 3EL3F5BJ.js} +1 -1
  6. package/dist/cdn/{QY4I5GS2.js → 3IWAH4DT.js} +1 -1
  7. package/dist/cdn/{M23H264O.js → 3YR34J27.js} +1 -1
  8. package/dist/cdn/{6BJXOUW2.js → 4X746WEL.js} +1 -1
  9. package/dist/cdn/{YUO2G7OX.js → 4YNNLXOR.js} +1 -1
  10. package/dist/cdn/{HCEKAYF5.js → 5R7JSUMU.js} +1 -1
  11. package/dist/cdn/{PXEQJDTP.js → 5V7AXRZE.js} +1 -1
  12. package/dist/cdn/{QMOXGUU6.js → 5VWXFD4N.js} +1 -1
  13. package/dist/cdn/{H2F4EMEO.js → 6BIA4CCW.js} +1 -1
  14. package/dist/cdn/{WC4T47OL.js → 6SZUTGQR.js} +1 -1
  15. package/dist/cdn/{JBWK3DSH.js → 75FTDTLY.js} +1 -1
  16. package/dist/cdn/{RXOISEOG.js → A7CHVVKW.js} +1 -1
  17. package/dist/cdn/{CPYOPFIS.js → AIYLX4ZD.js} +1 -1
  18. package/dist/cdn/{2JFIUU3X.js → AQENV2OK.js} +1 -1
  19. package/dist/cdn/{HBEEYG5R.js → ASK7IPJI.js} +1 -1
  20. package/dist/cdn/{XI3H6GMK.js → BWGRRAY2.js} +1 -1
  21. package/dist/cdn/{3A5542IZ.js → BXBK2LMB.js} +1 -1
  22. package/dist/cdn/{7X2HKQS7.js → CBL7ODB4.js} +1 -1
  23. package/dist/cdn/{LSOS2REF.js → DIH43SPI.js} +1 -1
  24. package/dist/cdn/{KUEF5L2Y.js → DTVMYBN2.js} +1 -1
  25. package/dist/cdn/{UM6YK4R4.js → DXPYSVQO.js} +1 -1
  26. package/dist/cdn/{2WDUA6L4.js → E6J6XV56.js} +1 -1
  27. package/dist/cdn/{XVU4S23S.js → EGWX7725.js} +1 -1
  28. package/dist/cdn/{TWUQ2ILR.js → EMWAI65U.js} +1 -1
  29. package/dist/cdn/{VANTG2HX.js → F5RUYFCK.js} +1 -1
  30. package/dist/cdn/{C2TRAWJB.js → F6G2AX7F.js} +1 -1
  31. package/dist/cdn/{ZWFVKTLC.js → FKOSHYHP.js} +1 -1
  32. package/dist/cdn/{AHPLTCSH.js → GKTUYTL5.js} +1 -1
  33. package/dist/cdn/{D64RR3BQ.js → GLF6VQG2.js} +1 -1
  34. package/dist/cdn/{7HZFPSKD.js → HJHUFGMC.js} +1 -1
  35. package/dist/cdn/{OR5W4LAU.js → HKNCEFUZ.js} +1 -1
  36. package/dist/cdn/{3DYFAIW2.js → HQOVPUSV.js} +1 -1
  37. package/dist/cdn/{64HPM724.js → HXSR2GRV.js} +1 -1
  38. package/dist/cdn/{QLAAJ4TP.js → I4RQGTPI.js} +1 -1
  39. package/dist/cdn/{F7KMJXGD.js → I7P64URF.js} +1 -1
  40. package/dist/cdn/{LM3RWOCL.js → IXSN6MY7.js} +1 -1
  41. package/dist/cdn/{AVVOHZH7.js → J3GQDDD7.js} +1 -1
  42. package/dist/cdn/{HIVZ4CAD.js → JNQF4MND.js} +1 -1
  43. package/dist/cdn/{V6NWTBC4.js → JWWRWZOA.js} +2 -2
  44. package/dist/cdn/{AZIX3IFP.js → JXSYZU73.js} +1 -1
  45. package/dist/cdn/{GFLYSDHX.js → JYZEDT5L.js} +1 -1
  46. package/dist/cdn/{SPXLWSUF.js → K6WRNZNS.js} +1 -1
  47. package/dist/cdn/{QQY7FC2J.js → LICVCZV3.js} +1 -1
  48. package/dist/cdn/{FNHDDK6Y.js → LSK57NVU.js} +1 -1
  49. package/dist/cdn/{SPI2NEGA.js → M66MRAE3.js} +1 -1
  50. package/dist/cdn/{4P6NLXDP.js → ME5RGTHR.js} +1 -1
  51. package/dist/cdn/{LHHRGNPI.js → MHLSVWM2.js} +1 -1
  52. package/dist/cdn/{HXLQEUPH.js → MNWBD3OA.js} +1 -1
  53. package/dist/cdn/{YK5PPTDT.js → MNXW6UGP.js} +1 -1
  54. package/dist/cdn/{EBN6GWGZ.js → MZHNYLPX.js} +1 -1
  55. package/dist/cdn/{AZEQVTDQ.js → N5574IA3.js} +1 -1
  56. package/dist/cdn/{PUWB3ZW4.js → NWRZGL2V.js} +1 -1
  57. package/dist/cdn/{SU5G6JQD.js → NXH363BA.js} +1 -1
  58. package/dist/cdn/{SSLS3BOB.js → OAMDZWDZ.js} +1 -1
  59. package/dist/cdn/{4XSIB5AA.js → OGMBMPKZ.js} +1 -1
  60. package/dist/cdn/{CSV6Q3VU.js → OW4KQXUC.js} +1 -1
  61. package/dist/cdn/{MEQCCHAT.js → PAQZZE7A.js} +1 -1
  62. package/dist/cdn/{EX7VWKWX.js → PI2CILY3.js} +1 -1
  63. package/dist/cdn/{UFYGFN2M.js → PRYQKWMX.js} +1 -1
  64. package/dist/cdn/{R7NIN2IP.js → Q33L7LOR.js} +1 -1
  65. package/dist/cdn/{334U2KAR.js → Q4C23R24.js} +1 -1
  66. package/dist/cdn/{6TV5E5JT.js → QUKWJS5G.js} +1 -1
  67. package/dist/cdn/{PDBL2LVQ.js → R2UHUORO.js} +1 -1
  68. package/dist/cdn/{K7IQIF6X.js → RKVS4TH5.js} +1 -1
  69. package/dist/cdn/{6KA24PEA.js → SMRST37W.js} +1 -1
  70. package/dist/cdn/{4LA6DRGM.js → SO4T7SHP.js} +1 -1
  71. package/dist/cdn/{TTSQHXH3.js → SZOWWM4R.js} +1 -1
  72. package/dist/cdn/{OH3XEKCB.js → TBWDUGLB.js} +1 -1
  73. package/dist/cdn/{NNH6F2PX.js → TO57FEMK.js} +1 -1
  74. package/dist/cdn/{VESCHQRS.js → TPXTDU2N.js} +1 -1
  75. package/dist/cdn/{HCIVARDS.js → TY2WP3ZM.js} +1 -1
  76. package/dist/cdn/{F6NHEUXC.js → U2Q4BITT.js} +1 -1
  77. package/dist/cdn/{VKY6S62L.js → U642I5KG.js} +1 -1
  78. package/dist/cdn/{TLS7SEFF.js → UASSPAWK.js} +1 -1
  79. package/dist/cdn/{JW6KFBCT.js → UJH62UBV.js} +1 -1
  80. package/dist/cdn/{CWJZT5NA.js → UJYCLRQL.js} +1 -1
  81. package/dist/cdn/{CH3BYORW.js → UKVRQWWU.js} +1 -1
  82. package/dist/cdn/{VUZ4QNET.js → UQR667YS.js} +1 -1
  83. package/dist/cdn/{QV7ZOLEX.js → V3OCJ3YN.js} +1 -1
  84. package/dist/cdn/{UUNBOK5Y.js → V7L5DBPI.js} +1 -1
  85. package/dist/cdn/{BSFUPCQF.js → VCUISYN4.js} +1 -1
  86. package/dist/cdn/{BNTRLKLG.js → VD4GDNMU.js} +1 -1
  87. package/dist/cdn/{EXTC334W.js → VPRAC4EI.js} +1 -1
  88. package/dist/cdn/{YX7I5VFP.js → VVJNYF6S.js} +1 -1
  89. package/dist/cdn/{LY7A6MST.js → WBCPWDPR.js} +1 -1
  90. package/dist/cdn/{RV3ILDL6.js → XYJJDRRZ.js} +1 -1
  91. package/dist/cdn/{CPYPTGTK.js → XZ3ARUXR.js} +1 -1
  92. package/dist/cdn/{VPURXMI6.js → YAKN4VHT.js} +1 -1
  93. package/dist/cdn/{WND4PQ7O.js → YBXRGFB3.js} +1 -1
  94. package/dist/cdn/{FCBTMNYR.js → Z3QU4QXL.js} +1 -1
  95. package/dist/cdn/{6IL4JEXA.js → ZEDZGQSY.js} +1 -1
  96. package/dist/cdn/{SS5KCPTA.js → ZJ5I6C2W.js} +1 -1
  97. package/dist/cdn/{OTJX7BJS.js → ZOMWTN7W.js} +1 -1
  98. package/dist/cdn/index.js +1 -1
  99. package/dist/cdn/model/shared/setup-utils.js +1 -1
  100. package/dist/chunks/runtime.js +1 -1
  101. package/dist/components/arcgis-chart/customElement.js +1 -1
  102. package/dist/docs/api.json +1 -1
  103. package/dist/docs/docs.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as e,c as r,d as o}from"./PDWS67CW.js";import c from"./2JFIUU3X.js";import{a as d,p}from"./7MKAC33Z.js";import b from"./TWUQ2ILR.js";import a from"./YUO2G7OX.js";import{e as f}from"./777EBGS5.js";import{B as C,a as g,d as m,p as x}from"./P5XJTTU3.js";import{a as s}from"./43P4WOC4.js";import{a as l}from"./XOB365BI.js";export default $arcgis.t(([{U:B},{b:y},{a:h}])=>{var D=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],V=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],L=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],T=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],M=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],R=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],G=[e.EditChart,e.FilterByExtent,e.ExportAsImage,e.ExportAsCSV];function q(a){switch(a){case l.BarSeries:return D;case l.LineSeries:return V;case l.ComboLineAndBarSeries:return L;case l.PieSeries:return T;case l.HistogramSeries:return M;case l.ScatterSeries:return R;case l.BoxPlotSeries:return P;case l.GaugeSeries:return G;case l.HeatSeries:return Z;default:return[]}}var J=(a,i,t)=>{let n=a.target.assignedNodes().find(c=>"legendToggle"in c),S=s(t?.series);return n&&(n.chartType=S,H({actionBar:n,chartComponent:i,config:t})),n};function H(a){let{actionBar:i,chartComponent:t,config:n,isInfoModalDisplayed:S}=a,c=C(t.selectionData),u=n?.legend?n.legend.visible??!0:!1;if(i.chartType=s(n?.series),t.enableConfiguration||t.configurationEnabled){let v=i.hiddenActions??[];i.hiddenActions=v.filter(w=>w!==e.EditChart)}i.editChartState=t.enableConfiguration||t.configurationEnabled?o.Enabled:o.Disabled;let E=n&&x(n.series);i.legendState=E?o.Enabled:o.Disabled;let A=d(t?.model)&&p(t?.model)?t.model.legendVisibility:u;i.legendToggle=E&&A?r.Active:r.Inactive;let b=d(t?.model)&&h(t.model)?t.model.rotated:n?.rotated;i.rotateChartToggle=b?r.Active:r.Inactive;let F=B(n?.series??[])===m.PieFromFields,I=f(t.layer);i.filterBySelectionState=!I&&!F&&(t.filterBySelection||!c&&!t.filterByExtent)?o.Enabled:o.Disabled,i.filterBySelectionToggle=t.filterBySelection?r.Active:r.Inactive,i.filterByExtentState=t.filterByViewExtent||!t.filterBySelection?o.Enabled:o.Disabled,i.filterByExtentToggle=t.filterByViewExtent?r.Active:r.Inactive,i.zoomState=t.filterBySelection?o.Disabled:o.Enabled,i.zoomToggle=t.actionMode===g.Zoom?r.Active:r.Inactive,i.selectionState=t.filterBySelection?o.Disabled:o.Enabled,i.selectionToggle=(t.actionMode??i.actionBarSelectionMode)===i.actionBarSelectionMode?r.Active:r.Inactive,i.clearSelectionState=c?o.Disabled:o.Enabled,i.fullExtentState=t.filterBySelection?o.Disabled:o.Enabled,i.switchSelectionState=t.filterBySelection?o.Disabled:o.Enabled,i.exportActionState=S||y(n)?o.Disabled:o.Enabled}function O(a){return a?.tagName.toLowerCase()==="arcgis-chart"}function W(a){return a!==void 0&&s(a.series)===l.GaugeSeries}return{a:q,b:J,c:H,d:O,e:W}},a,b,c)
2
+ import{b as e,c as r,d as o}from"./PDWS67CW.js";import c from"./AQENV2OK.js";import{a as d,p}from"./7MKAC33Z.js";import b from"./EMWAI65U.js";import a from"./4YNNLXOR.js";import{e as f}from"./777EBGS5.js";import{B as C,a as g,d as m,p as x}from"./P5XJTTU3.js";import{a as s}from"./43P4WOC4.js";import{a as l}from"./XOB365BI.js";export default $arcgis.t(([{U:B},{b:y},{a:h}])=>{var D=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],V=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],L=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],T=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],M=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],R=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],G=[e.EditChart,e.FilterByExtent,e.ExportAsImage,e.ExportAsCSV];function q(a){switch(a){case l.BarSeries:return D;case l.LineSeries:return V;case l.ComboLineAndBarSeries:return L;case l.PieSeries:return T;case l.HistogramSeries:return M;case l.ScatterSeries:return R;case l.BoxPlotSeries:return P;case l.GaugeSeries:return G;case l.HeatSeries:return Z;default:return[]}}var J=(a,i,t)=>{let n=a.target.assignedNodes().find(c=>"legendToggle"in c),S=s(t?.series);return n&&(n.chartType=S,H({actionBar:n,chartComponent:i,config:t})),n};function H(a){let{actionBar:i,chartComponent:t,config:n,isInfoModalDisplayed:S}=a,c=C(t.selectionData),u=n?.legend?n.legend.visible??!0:!1;if(i.chartType=s(n?.series),t.enableConfiguration||t.configurationEnabled){let v=i.hiddenActions??[];i.hiddenActions=v.filter(w=>w!==e.EditChart)}i.editChartState=t.enableConfiguration||t.configurationEnabled?o.Enabled:o.Disabled;let E=n&&x(n.series);i.legendState=E?o.Enabled:o.Disabled;let A=d(t?.model)&&p(t?.model)?t.model.legendVisibility:u;i.legendToggle=E&&A?r.Active:r.Inactive;let b=d(t?.model)&&h(t.model)?t.model.rotated:n?.rotated;i.rotateChartToggle=b?r.Active:r.Inactive;let F=B(n?.series??[])===m.PieFromFields,I=f(t.layer);i.filterBySelectionState=!I&&!F&&(t.filterBySelection||!c&&!t.filterByExtent)?o.Enabled:o.Disabled,i.filterBySelectionToggle=t.filterBySelection?r.Active:r.Inactive,i.filterByExtentState=t.filterByViewExtent||!t.filterBySelection?o.Enabled:o.Disabled,i.filterByExtentToggle=t.filterByViewExtent?r.Active:r.Inactive,i.zoomState=t.filterBySelection?o.Disabled:o.Enabled,i.zoomToggle=t.actionMode===g.Zoom?r.Active:r.Inactive,i.selectionState=t.filterBySelection?o.Disabled:o.Enabled,i.selectionToggle=(t.actionMode??i.actionBarSelectionMode)===i.actionBarSelectionMode?r.Active:r.Inactive,i.clearSelectionState=c?o.Disabled:o.Enabled,i.fullExtentState=t.filterBySelection?o.Disabled:o.Enabled,i.switchSelectionState=t.filterBySelection?o.Disabled:o.Enabled,i.exportActionState=S||y(n)?o.Disabled:o.Enabled}function O(a){return a?.tagName.toLowerCase()==="arcgis-chart"}function W(a){return a!==void 0&&s(a.series)===l.GaugeSeries}return{a:q,b:J,c:H,d:O,e:W}},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import n from"./K6N5BBOM.js";import{b as e,c as t,d as a}from"./PDWS67CW.js";import l from"./VKY6S62L.js";import{a as A}from"./KUEF5L2Y.js";import{a as u}from"./MZ2UZAFW.js";import k from"./2JFIUU3X.js";import{a as h,p as E}from"./7MKAC33Z.js";import j from"./TWUQ2ILR.js";import i from"./LM3RWOCL.js";import f from"./XVU4S23S.js";import c from"./LHHRGNPI.js";import"./KGNYAMFB.js";import b from"./YUO2G7OX.js";import"./777EBGS5.js";import{a as x}from"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./LY7A6MST.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"./2WDUA6L4.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"./2O72YRTQ.js";import{b as e,c as t,d as a}from"./PDWS67CW.js";import l from"./U642I5KG.js";import{a as A}from"./DTVMYBN2.js";import{a as u}from"./MZ2UZAFW.js";import k from"./AQENV2OK.js";import{a as h,p as E}from"./7MKAC33Z.js";import j from"./EMWAI65U.js";import i from"./IXSN6MY7.js";import f from"./EGWX7725.js";import c from"./MHLSVWM2.js";import"./KGNYAMFB.js";import b from"./4YNNLXOR.js";import"./777EBGS5.js";import{a as x}from"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./WBCPWDPR.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"./E6J6XV56.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 c from"./HIVZ4CAD.js";import{a as f}from"./64HPM724.js";import{a as v}from"./JBWK3DSH.js";import{a as u}from"./TJQGGNGV.js";import{a as g}from"./KUEF5L2Y.js";import b from"./LHHRGNPI.js";import"./KGNYAMFB.js";import a from"./YUO2G7OX.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./LY7A6MST.js";import{A as m,B as o,E as p,G as C,g as d,i as r,n as s}from"./2WDUA6L4.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{a:w}])=>{var n={addChartContainer:"add-chart-container",viewChartComponent:"view-chart-component",header:"header",dropdownPopup:"dropdown-popup"},$=d`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`,l=class extends m{constructor(){super(...arguments),this._messages=g(),this.chartRenamePopover=null,this.popoverClose=()=>{let e=this.modelList?.find(t=>t.chartId===this.selectedChartId);this.chartTitle=e?.titleText??"",this.selectedActionChartId="",this.removeChartRenamePopover()},this.onChartRename=e=>{if(!this.disableEditing){this.chartTitle=e.detail.name;let t=this.modelList?.find(i=>i.chartId===this.selectedActionChartId);t!==void 0&&(t.titleText=this.chartTitle),this.selectedActionChartId="",this.removeChartRenamePopover()}},this.onModelConfigChange=()=>{this.requestUpdate()},this.onCalciteListOrderChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;if(this.modelList!==void 0&&this.modelList?.length>0){let a=[...this.modelList],c=a?.[i],h=a?.[t];c&&h&&(a.splice(i,1),a.splice(t,0,c)),this.chartsOrderReorderCounter+=1,this.arcgisChartsConfigModelListReorder.emit({modelList:a})}}},this.isChartRenamePopoverOpen=!1,this.chartTitle="",this.chartsOrderReorderCounter=0,this.noGroup=!1,this.disableEditing=!1,this.arcgisChartsConfigModelListReorder=s(),this.arcgisChartsConfigViewChartAddChart=s(),this.arcgisChartsConfigViewChartDelete=s(),this.arcgisChartsConfigViewChartEdit=s(),this.arcgisChartsConfigViewChartSelect=s()}static{this.properties={isChartRenamePopoverOpen:16,chartTitle:16,selectedActionChartId:16,chartsOrderReorderCounter:16,messageOverrides:0,selectedChartId:1,layer:0,modelList:0,noGroup:5,disableEditing:5}}static{this.styles=$}willUpdate(e){e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList"))}disconnectedCallback(){super.disconnectedCallback(),this.removeChartRenamePopover()}modelListChange(e,t){t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e?.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)})}onAddChartClick(e){e.stopImmediatePropagation(),this.selectedActionChartId=void 0,this.isChartRenamePopoverOpen&&this.removeChartRenamePopover(),this.arcgisChartsConfigViewChartAddChart.emit({referenceElement:e.target,layerId:this.layer?.id.toString(),layerType:this.layer?.type})}buildChartList(){let e=this.modelList?f(this.modelList,t=>t.chartId,(t,i)=>{let a=t.chartId,c=t.titleText,h=w(t.config);return r`<calcite-list-item .label=${c??a??this._messages.chartTitle} .selected=${this.selectedChartId===(a?.toString()??i.toString())} .value=${a??i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${h}></calcite-icon>${this.disableEditing?null:r`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId===a} @calciteDropdownClose=${()=>this.chartActionClosed(a??"")} @calciteDropdownOpen=${()=>this.chartActionOpened(a??"")} class=${o(n.dropdownPopup)}><calcite-action scale=l .text=${this._messages.chartActions??""} slot=trigger .active=${a===this.selectedActionChartId}><calcite-icon icon=ellipsis></calcite-icon></calcite-action><calcite-dropdown-group selection-mode=none><calcite-dropdown-item accesskey=edit @calciteDropdownItemSelect=${this.chartEditSelect}>${this._messages.edit}</calcite-dropdown-item><calcite-dropdown-item accesskey=rename @click=${R=>R.stopPropagation()} @calciteDropdownItemSelect=${this.chartRenameSelect}>${this._messages.rename}</calcite-dropdown-item><calcite-dropdown-item accesskey=delete @calciteDropdownItemSelect=${this.chartDeleteSelect}>${this._messages.delete}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}</calcite-list-item>`}):null;return this.layer?r`<div>${this.noGroup?null:r`<p class=${o(n.header)}>${this.layer.title??this.layer.id.toString()}</p>`}${v(this.chartsOrderReorderCounter,r`<calcite-list label .dragEnabled=${!this.disableEditing} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${e}${this.disableEditing?null:r`<div class=${o(n.addChartContainer)}><calcite-fab slot=fab appearance=outline-fill kind=neutral text-enabled .text=${this._messages.addChart} .label=${this._messages.addChart} @click=${this.onAddChartClick} scale=s></calcite-fab></div>`}</calcite-list>`)}</div>`:null}onChartSelect(e){let t=e.currentTarget,i;t?.localName==="calcite-list-item"?i=t.value:t?.localName==="calcite-icon"&&(i=t.parentNode.value),this.arcgisChartsConfigViewChartSelect.emit({chartId:i})}chartEditSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartEdit.emit({chartId:this.selectedActionChartId}),this.chartActionClosed(this.selectedActionChartId))}chartRenameSelect(e){if(!this.disableEditing){let t=e.target.closest("calcite-list-item"),i=this.modelList?.find(a=>a.chartId===this.selectedActionChartId);t!==null&&(this.renameReferenceElement=t),this.arcgisChartsConfigViewChartSelect.emit({chartId:this.selectedActionChartId}),this.chartTitle=i?.titleText??"",this.setupRenamePopover()}}chartDeleteSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartDelete.emit({chartId:this.selectedActionChartId}),this.selectedActionChartId="")}chartActionClosed(e){e===this.selectedActionChartId&&!this.isChartRenamePopoverOpen&&(this.selectedActionChartId=void 0)}chartActionOpened(e){this.selectedActionChartId=e}setupRenamePopover(){this.isChartRenamePopoverOpen=!0,this.chartRenamePopover!==null&&(this.chartRenamePopover.name=this.chartTitle,this.chartRenamePopover.referenceElement=this.renameReferenceElement),this.chartRenamePopover=p(r`<arcgis-charts-config-chart-rename-popover .name=${this.chartTitle} .referenceElement=${this.renameReferenceElement} .open=${this.isChartRenamePopoverOpen} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigChartRenamePopoverChange=${this.onChartRename}></arcgis-charts-config-chart-rename-popover>`),!document.body.contains(this.chartRenamePopover)&&this.chartRenamePopover!==null&&document.body.appendChild(this.chartRenamePopover)}removeChartRenamePopover(){this.chartRenamePopover!==null&&(this.isChartRenamePopoverOpen=!1,this.chartRenamePopover=u(this.chartRenamePopover))}render(){return r`<div class=${o(n.viewChartComponent)}>${this.buildChartList()}</div>`}};C("arcgis-charts-config-view-charts",l);return l},a,b,c)
2
+ import c from"./JNQF4MND.js";import{a as f}from"./HXSR2GRV.js";import{a as v}from"./75FTDTLY.js";import{a as u}from"./TJQGGNGV.js";import{a as g}from"./DTVMYBN2.js";import b from"./MHLSVWM2.js";import"./KGNYAMFB.js";import a from"./4YNNLXOR.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./WBCPWDPR.js";import{A as m,B as o,E as p,G as C,g as d,i as r,n as s}from"./E6J6XV56.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{a:w}])=>{var n={addChartContainer:"add-chart-container",viewChartComponent:"view-chart-component",header:"header",dropdownPopup:"dropdown-popup"},$=d`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`,l=class extends m{constructor(){super(...arguments),this._messages=g(),this.chartRenamePopover=null,this.popoverClose=()=>{let e=this.modelList?.find(t=>t.chartId===this.selectedChartId);this.chartTitle=e?.titleText??"",this.selectedActionChartId="",this.removeChartRenamePopover()},this.onChartRename=e=>{if(!this.disableEditing){this.chartTitle=e.detail.name;let t=this.modelList?.find(i=>i.chartId===this.selectedActionChartId);t!==void 0&&(t.titleText=this.chartTitle),this.selectedActionChartId="",this.removeChartRenamePopover()}},this.onModelConfigChange=()=>{this.requestUpdate()},this.onCalciteListOrderChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;if(this.modelList!==void 0&&this.modelList?.length>0){let a=[...this.modelList],c=a?.[i],h=a?.[t];c&&h&&(a.splice(i,1),a.splice(t,0,c)),this.chartsOrderReorderCounter+=1,this.arcgisChartsConfigModelListReorder.emit({modelList:a})}}},this.isChartRenamePopoverOpen=!1,this.chartTitle="",this.chartsOrderReorderCounter=0,this.noGroup=!1,this.disableEditing=!1,this.arcgisChartsConfigModelListReorder=s(),this.arcgisChartsConfigViewChartAddChart=s(),this.arcgisChartsConfigViewChartDelete=s(),this.arcgisChartsConfigViewChartEdit=s(),this.arcgisChartsConfigViewChartSelect=s()}static{this.properties={isChartRenamePopoverOpen:16,chartTitle:16,selectedActionChartId:16,chartsOrderReorderCounter:16,messageOverrides:0,selectedChartId:1,layer:0,modelList:0,noGroup:5,disableEditing:5}}static{this.styles=$}willUpdate(e){e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList"))}disconnectedCallback(){super.disconnectedCallback(),this.removeChartRenamePopover()}modelListChange(e,t){t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e?.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)})}onAddChartClick(e){e.stopImmediatePropagation(),this.selectedActionChartId=void 0,this.isChartRenamePopoverOpen&&this.removeChartRenamePopover(),this.arcgisChartsConfigViewChartAddChart.emit({referenceElement:e.target,layerId:this.layer?.id.toString(),layerType:this.layer?.type})}buildChartList(){let e=this.modelList?f(this.modelList,t=>t.chartId,(t,i)=>{let a=t.chartId,c=t.titleText,h=w(t.config);return r`<calcite-list-item .label=${c??a??this._messages.chartTitle} .selected=${this.selectedChartId===(a?.toString()??i.toString())} .value=${a??i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${h}></calcite-icon>${this.disableEditing?null:r`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId===a} @calciteDropdownClose=${()=>this.chartActionClosed(a??"")} @calciteDropdownOpen=${()=>this.chartActionOpened(a??"")} class=${o(n.dropdownPopup)}><calcite-action scale=l .text=${this._messages.chartActions??""} slot=trigger .active=${a===this.selectedActionChartId}><calcite-icon icon=ellipsis></calcite-icon></calcite-action><calcite-dropdown-group selection-mode=none><calcite-dropdown-item accesskey=edit @calciteDropdownItemSelect=${this.chartEditSelect}>${this._messages.edit}</calcite-dropdown-item><calcite-dropdown-item accesskey=rename @click=${R=>R.stopPropagation()} @calciteDropdownItemSelect=${this.chartRenameSelect}>${this._messages.rename}</calcite-dropdown-item><calcite-dropdown-item accesskey=delete @calciteDropdownItemSelect=${this.chartDeleteSelect}>${this._messages.delete}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}</calcite-list-item>`}):null;return this.layer?r`<div>${this.noGroup?null:r`<p class=${o(n.header)}>${this.layer.title??this.layer.id.toString()}</p>`}${v(this.chartsOrderReorderCounter,r`<calcite-list label .dragEnabled=${!this.disableEditing} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${e}${this.disableEditing?null:r`<div class=${o(n.addChartContainer)}><calcite-fab slot=fab appearance=outline-fill kind=neutral text-enabled .text=${this._messages.addChart} .label=${this._messages.addChart} @click=${this.onAddChartClick} scale=s></calcite-fab></div>`}</calcite-list>`)}</div>`:null}onChartSelect(e){let t=e.currentTarget,i;t?.localName==="calcite-list-item"?i=t.value:t?.localName==="calcite-icon"&&(i=t.parentNode.value),this.arcgisChartsConfigViewChartSelect.emit({chartId:i})}chartEditSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartEdit.emit({chartId:this.selectedActionChartId}),this.chartActionClosed(this.selectedActionChartId))}chartRenameSelect(e){if(!this.disableEditing){let t=e.target.closest("calcite-list-item"),i=this.modelList?.find(a=>a.chartId===this.selectedActionChartId);t!==null&&(this.renameReferenceElement=t),this.arcgisChartsConfigViewChartSelect.emit({chartId:this.selectedActionChartId}),this.chartTitle=i?.titleText??"",this.setupRenamePopover()}}chartDeleteSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartDelete.emit({chartId:this.selectedActionChartId}),this.selectedActionChartId="")}chartActionClosed(e){e===this.selectedActionChartId&&!this.isChartRenamePopoverOpen&&(this.selectedActionChartId=void 0)}chartActionOpened(e){this.selectedActionChartId=e}setupRenamePopover(){this.isChartRenamePopoverOpen=!0,this.chartRenamePopover!==null&&(this.chartRenamePopover.name=this.chartTitle,this.chartRenamePopover.referenceElement=this.renameReferenceElement),this.chartRenamePopover=p(r`<arcgis-charts-config-chart-rename-popover .name=${this.chartTitle} .referenceElement=${this.renameReferenceElement} .open=${this.isChartRenamePopoverOpen} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigChartRenamePopoverChange=${this.onChartRename}></arcgis-charts-config-chart-rename-popover>`),!document.body.contains(this.chartRenamePopover)&&this.chartRenamePopover!==null&&document.body.appendChild(this.chartRenamePopover)}removeChartRenamePopover(){this.chartRenamePopover!==null&&(this.isChartRenamePopoverOpen=!1,this.chartRenamePopover=u(this.chartRenamePopover))}render(){return r`<div class=${o(n.viewChartComponent)}>${this.buildChartList()}</div>`}};C("arcgis-charts-config-view-charts",l);return l},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import v from"./LSOS2REF.js";import{a as Fs,b as M,c as Bs,d as I}from"./E6ICXDNS.js";import u from"./2JFIUU3X.js";import t from"./4XSIB5AA.js";import s from"./VUZ4QNET.js";import r from"./CPYOPFIS.js";import q from"./4P6NLXDP.js";import o from"./VESCHQRS.js";import"./7MKAC33Z.js";import n from"./3A5542IZ.js";import l from"./GFLYSDHX.js";import k from"./TWUQ2ILR.js";import j from"./PUWB3ZW4.js";import i from"./RXOISEOG.js";import"./NQAPPISU.js";import e from"./LM3RWOCL.js";import d from"./XVU4S23S.js";import c from"./LHHRGNPI.js";import{i as h}from"./KGNYAMFB.js";import a from"./YUO2G7OX.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import{Da as m,ca as P,i as A,ja as D,m as f,n as p,p as y,y as O}from"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./LY7A6MST.js";import{l as g}from"./2WDUA6L4.js";import"./TOO3T62Y.js";import{b as W}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as b}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,{o:E,p:U,q:N},,{c:r},,rs,,{b:_s},{a:os,b:ns,c:as,d:hs},{b:ps,d:ys,f:ms},{b:ds,d:us,f:Ss},{d:cs,e:ls},{a:gs,b:fs},,{b:Ls},{A:w,B:v,C:ts,D:is,a:R,b:d,c:V,d:z,e:u,f:S,g:j,h:k,i:T,j:q,k:Y,l:G,m:H,n:_,o:J,p:K,q:Q,r:L,s:X,t:Z,u:$,v:F,w:B,x:ss,y:es,z:C}])=>{var Ms=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,n=(l,s,e,i)=>{for(var o=Is(s,e),a=l.length-1,c;a>=0;a--)(c=l[a])&&(o=c(s,e,o)||o);return o&&Ms(s,e,o),o},t=class extends rs{constructor(){super(...arguments),this._chartType=b.BoxPlotSeries,this._category=y,this._splitByField="",this._numericFields=[]}async setup(s){await this.loadConfigFromLayer(s),this.setupLocalProps(),s.config!==void 0&&await this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(s){let e=s.trim()==="";this._category=e?y:s,this.dirtyAsyncSetters.push("category"),this.processSeriesRebuild()}get numericFields(){return this._numericFields}set numericFields(s){let{layerFieldsInfo:e}=this.layerInfo;typeof s=="string"&&(s=[s]),U(e,s)?(this._numericFields=s,this.dirtyAsyncSetters.push("numericFields"),ts(this._category,this._numericFields)&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(s){E(this.layerInfo.layerFieldsInfo,s)?(this._splitByField=s,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return X(this._config)}set showOutliers(s){Z({newShowOutliers:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return J(this._config)}set standardizeValues(s){$({newStandardizeValues:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return F(this._config)}setSortOrder(s,e){B(s,this._config,e)}async getCustomSortValues(){return await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(s){super.setDataFilters(s);let e=F(this._config);if(e===W.customSort){this.startAsyncUpdate();let i=await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});B(e,this._config,i),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return C(this._config)}set orderByList(s){w(s,this._config)}async updateSeriesFromLayerFilter(){this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild()}get showMeanLines(){return ss(this._config)}set showMeanLines(s){let{previousMeanLinesBoxColor:e}=es({newShowMeanLines:s,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=e}get meanLinesBoxColor(){return z(this._config)}set meanLinesBoxColor(s){u(s,this._config)}setupLocalProps(){this._category=Y(this._config),this._splitByField=G(this._config),this._numericFields=H(this._config)}generateDefaultConfig(){let s=D(this.commonStrings);return s.series=[P(this.commonStrings)],s}resetConfig(){let s=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=s,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return!is(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(){if(this.layerInfo!==void 0){let s=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],_(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await _(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(s)}}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}getSeriesName(s){return R(s,this._config)}setSeriesName(s,e){d(s,e,this._config)}getSeriesColor(s){return V(s,this._config)}setSeriesColor(s,e){S(s,e,this._config)}getSeriesLineStyle(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Fs(e)}setSeriesLineStyle(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&M(s,i)}getSeriesLineWidth(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Bs(e)}setSeriesLineWidth(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&I(s,i)}get orderOfSeries(){return j(this._config)}set orderOfSeries(s){k(s,this._config)}moveSeries(s,e){T(s,e,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return q(this._config)}moveCustomSortValuesInOrderByList(s,e){let i=C(this._config),[o]=i.splice(s,1);i.splice(e,0,o),w(i,this._config)}generateChartTitle(){return Q(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return K(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let s=this.showMeanLines===!0?1:0;s<this.seriesLength;s+=1){let e=this.getSeriesId(s),i=O({colorIndex:s,opacity:A}),o=this._config.series[s];S(i,s,this._config);let a=L({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});d(a??e,s,this._config),this.showMeanLines===!0&&h(o)&&(M(f,o),I(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let s=!this.colorMatch,e=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,i=!1,o=!1;if(!s)for(let a=this.showMeanLines===!0?1:0;a<this.seriesLength;a+=1){let c=this._config.series[a],x=L({series:c,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),Cs=this.getSeriesName(a);if(x!==void 0&&x!==Cs){i=!0;break}if(this.showMeanLines===!0&&h(c)){let ws=this.getSeriesLineStyle(a),vs=this.getSeriesLineWidth(a);if(ws!==f||vs!==p){o=!0;break}}}return s||e||i||o}};n([r],t.prototype,"showOutliers");n([r],t.prototype,"standardizeValues");n([r],t.prototype,"setSortOrder");n([r],t.prototype,"setDataFilters");n([r],t.prototype,"orderByList");n([r],t.prototype,"showMeanLines");n([r],t.prototype,"meanLinesBoxColor");n([r],t.prototype,"resetConfig");n([r],t.prototype,"setSeriesName");n([r],t.prototype,"setSeriesColor");n([r],t.prototype,"setSeriesLineStyle");n([r],t.prototype,"setSeriesLineWidth");n([r],t.prototype,"orderOfSeries");n([r],t.prototype,"moveSeries");n([r],t.prototype,"moveCustomSortValuesInOrderByList");n([r],t.prototype,"resetSeriesStyling");var xs=[gs,os,ns,as,Ls,hs,_s,fs,ds,cs,us,ls,ps,ys,ms,Ss];N(t,xs);return t},a,c,d,e,i,j,k,l,n,o,q,r,s,t,u,v)
2
+ import v from"./DIH43SPI.js";import{a as Fs,b as M,c as Bs,d as I}from"./E6ICXDNS.js";import u from"./AQENV2OK.js";import t from"./OGMBMPKZ.js";import s from"./UQR667YS.js";import r from"./AIYLX4ZD.js";import q from"./ME5RGTHR.js";import o from"./TPXTDU2N.js";import"./7MKAC33Z.js";import n from"./BXBK2LMB.js";import l from"./JYZEDT5L.js";import k from"./EMWAI65U.js";import j from"./NWRZGL2V.js";import i from"./A7CHVVKW.js";import"./NQAPPISU.js";import e from"./IXSN6MY7.js";import d from"./EGWX7725.js";import c from"./MHLSVWM2.js";import{i as h}from"./KGNYAMFB.js";import a from"./4YNNLXOR.js";import"./777EBGS5.js";import"./P5XJTTU3.js";import{Da as m,ca as P,i as A,ja as D,m as f,n as p,p as y,y as O}from"./6JI4NDJ6.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./WBCPWDPR.js";import{l as g}from"./E6J6XV56.js";import"./TOO3T62Y.js";import{b as W}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as b}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,{o:E,p:U,q:N},,{c:r},,rs,,{b:_s},{a:os,b:ns,c:as,d:hs},{b:ps,d:ys,f:ms},{b:ds,d:us,f:Ss},{d:cs,e:ls},{a:gs,b:fs},,{b:Ls},{A:w,B:v,C:ts,D:is,a:R,b:d,c:V,d:z,e:u,f:S,g:j,h:k,i:T,j:q,k:Y,l:G,m:H,n:_,o:J,p:K,q:Q,r:L,s:X,t:Z,u:$,v:F,w:B,x:ss,y:es,z:C}])=>{var Ms=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,n=(l,s,e,i)=>{for(var o=Is(s,e),a=l.length-1,c;a>=0;a--)(c=l[a])&&(o=c(s,e,o)||o);return o&&Ms(s,e,o),o},t=class extends rs{constructor(){super(...arguments),this._chartType=b.BoxPlotSeries,this._category=y,this._splitByField="",this._numericFields=[]}async setup(s){await this.loadConfigFromLayer(s),this.setupLocalProps(),s.config!==void 0&&await this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(s){let e=s.trim()==="";this._category=e?y:s,this.dirtyAsyncSetters.push("category"),this.processSeriesRebuild()}get numericFields(){return this._numericFields}set numericFields(s){let{layerFieldsInfo:e}=this.layerInfo;typeof s=="string"&&(s=[s]),U(e,s)?(this._numericFields=s,this.dirtyAsyncSetters.push("numericFields"),ts(this._category,this._numericFields)&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(s){E(this.layerInfo.layerFieldsInfo,s)?(this._splitByField=s,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return X(this._config)}set showOutliers(s){Z({newShowOutliers:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return J(this._config)}set standardizeValues(s){$({newStandardizeValues:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return F(this._config)}setSortOrder(s,e){B(s,this._config,e)}async getCustomSortValues(){return await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(s){super.setDataFilters(s);let e=F(this._config);if(e===W.customSort){this.startAsyncUpdate();let i=await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});B(e,this._config,i),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return C(this._config)}set orderByList(s){w(s,this._config)}async updateSeriesFromLayerFilter(){this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild()}get showMeanLines(){return ss(this._config)}set showMeanLines(s){let{previousMeanLinesBoxColor:e}=es({newShowMeanLines:s,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=e}get meanLinesBoxColor(){return z(this._config)}set meanLinesBoxColor(s){u(s,this._config)}setupLocalProps(){this._category=Y(this._config),this._splitByField=G(this._config),this._numericFields=H(this._config)}generateDefaultConfig(){let s=D(this.commonStrings);return s.series=[P(this.commonStrings)],s}resetConfig(){let s=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=s,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return!is(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(){if(this.layerInfo!==void 0){let s=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],_(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await _(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(s)}}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}getSeriesName(s){return R(s,this._config)}setSeriesName(s,e){d(s,e,this._config)}getSeriesColor(s){return V(s,this._config)}setSeriesColor(s,e){S(s,e,this._config)}getSeriesLineStyle(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Fs(e)}setSeriesLineStyle(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&M(s,i)}getSeriesLineWidth(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Bs(e)}setSeriesLineWidth(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&I(s,i)}get orderOfSeries(){return j(this._config)}set orderOfSeries(s){k(s,this._config)}moveSeries(s,e){T(s,e,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return q(this._config)}moveCustomSortValuesInOrderByList(s,e){let i=C(this._config),[o]=i.splice(s,1);i.splice(e,0,o),w(i,this._config)}generateChartTitle(){return Q(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return K(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let s=this.showMeanLines===!0?1:0;s<this.seriesLength;s+=1){let e=this.getSeriesId(s),i=O({colorIndex:s,opacity:A}),o=this._config.series[s];S(i,s,this._config);let a=L({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});d(a??e,s,this._config),this.showMeanLines===!0&&h(o)&&(M(f,o),I(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let s=!this.colorMatch,e=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,i=!1,o=!1;if(!s)for(let a=this.showMeanLines===!0?1:0;a<this.seriesLength;a+=1){let c=this._config.series[a],x=L({series:c,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),Cs=this.getSeriesName(a);if(x!==void 0&&x!==Cs){i=!0;break}if(this.showMeanLines===!0&&h(c)){let ws=this.getSeriesLineStyle(a),vs=this.getSeriesLineWidth(a);if(ws!==f||vs!==p){o=!0;break}}}return s||e||i||o}};n([r],t.prototype,"showOutliers");n([r],t.prototype,"standardizeValues");n([r],t.prototype,"setSortOrder");n([r],t.prototype,"setDataFilters");n([r],t.prototype,"orderByList");n([r],t.prototype,"showMeanLines");n([r],t.prototype,"meanLinesBoxColor");n([r],t.prototype,"resetConfig");n([r],t.prototype,"setSeriesName");n([r],t.prototype,"setSeriesColor");n([r],t.prototype,"setSeriesLineStyle");n([r],t.prototype,"setSeriesLineWidth");n([r],t.prototype,"orderOfSeries");n([r],t.prototype,"moveSeries");n([r],t.prototype,"moveCustomSortValuesInOrderByList");n([r],t.prototype,"resetSeriesStyling");var xs=[gs,os,ns,as,Ls,hs,_s,fs,ds,cs,us,ls,ps,ys,ms,Ss];N(t,xs);return t},a,c,d,e,i,j,k,l,n,o,q,r,s,t,u,v)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{d as i}from"./MZ2UZAFW.js";import{g as F}from"./KGNYAMFB.js";import a from"./YUO2G7OX.js";import{e as p}from"./777EBGS5.js";import"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import{l as h}from"./FIMXZMTB.js";import"./LY7A6MST.js";import{A as d,G as c,g as l,i as t,n as r}from"./2WDUA6L4.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{G:g,Hb:y,kb:m,ob:f,qb:u}])=>{var b=l`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,n=class extends d{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigWebChartChange=r()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=b}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("r2")&&this.r2Change(this.r2),e.has("layer")&&this.layer!==void 0&&!h(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(e){Number.isFinite(e)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=F(a)?a.iLayer:void 0;o&&(s=await f(o))}if(s){await y(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=p(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):u(s,o)}}render(){let e;switch(this.page){case i.Data:let a=g(this.layer),s=a&&"isTable"in a?a.isTable:!1;e=t`<arcgis-charts-config-scatter-plot-data .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${s}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};c("arcgis-charts-config-scatter-plot",n);return n},a)
2
+ import{d as i}from"./MZ2UZAFW.js";import{g as F}from"./KGNYAMFB.js";import a from"./4YNNLXOR.js";import{e as p}from"./777EBGS5.js";import"./P5XJTTU3.js";import"./6JI4NDJ6.js";import"./75Y43JLP.js";import{l as h}from"./FIMXZMTB.js";import"./WBCPWDPR.js";import{A as d,G as c,g as l,i as t,n as r}from"./E6J6XV56.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{G:g,Hb:y,kb:m,ob:f,qb:u}])=>{var b=l`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,n=class extends d{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigWebChartChange=r()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=b}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("r2")&&this.r2Change(this.r2),e.has("layer")&&this.layer!==void 0&&!h(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(e){Number.isFinite(e)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=F(a)?a.iLayer:void 0;o&&(s=await f(o))}if(s){await y(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=p(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):u(s,o)}}render(){let e;switch(this.page){case i.Data:let a=g(this.layer),s=a&&"isTable"in a?a.isTable:!1;e=t`<arcgis-charts-config-scatter-plot-data .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${s}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};c("arcgis-charts-config-scatter-plot",n);return n},a)
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{i as ve}from"./PDWS67CW.js";import{c as W}from"./MZ2UZAFW.js";import g from"./OR5W4LAU.js";import f from"./7HZFPSKD.js";import e from"./FCBTMNYR.js";import d from"./LSOS2REF.js";import c from"./4XSIB5AA.js";import b from"./RXOISEOG.js";import a from"./YUO2G7OX.js";import{c as D,d as y,r as V}from"./P5XJTTU3.js";import{Ba as le,Ca as Y,Ea as O,Fa as ne,p as N,q as E}from"./6JI4NDJ6.js";import{a as ie}from"./75Y43JLP.js";import{e as w,l as re,m as U,s as J}from"./FIMXZMTB.js";import{e as Q}from"./EZM4ZDQI.js";import{a as oe}from"./43P4WOC4.js";import{a as C,l as P}from"./XOB365BI.js";export default $arcgis.t(([{Ab:me,C:B,K:se,Ma:de,U:T,a:K,jc:I,sb:fe,ub:ce,xa:ue},{c:G},{f:ye,g:_},{k:q,l:H,m:X,x:be},{b:ge},{a:xe,c:pe,d:Le},{ka:ee,la:Fe,ma:te}])=>{function De(l){let{hour:e,minute:t=0,format:r,locale:a="en-US"}=l,o=r&&Object.keys(r).length>0?r:{hour:"numeric",minute:"2-digit",hour12:!1},i=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);i=new Intl.DateTimeFormat(a,o).format(n),i.includes(":")||i.startsWith("0")&&(i=i.slice(1))}return i}function he(l){let{weekdayNumber:e,format:t,locale:r="en-US",firstDayOfWeek:a=7}=l,o=t&&Object.keys(t).length>0?t:{weekday:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(a)&&a>0&&a<=7){let n=(e+a-1)%7,s=new Date(2e3,0,2+n);i=new Intl.DateTimeFormat(r,o).format(s)}return i}function Ce(l){let{monthNumber:e,format:t,locale:r="en-US"}=l,a=t&&Object.keys(t).length>0?t:{month:"long"},o=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let i=new Date(2e3,e-1);o=new Intl.DateTimeFormat(r,a).format(i)}return o}function we(l){let{value:e,formatLocale:t,unit:r,config:a,utilsStrings:o}=l,i={label:"",value:e.toString()};switch(r){case P.DayOfWeek:i={label:o.heatChartCalendarDatePartsUnits.dayOfWeek,value:he({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in a?a.firstDayOfWeek:ne,locale:t})};break;case P.MonthOfYear:i={label:o.heatChartCalendarDatePartsUnits.monthOfYear,value:Ce({monthNumber:e,locale:t})};break;case P.HourOfDay:i={label:o.heatChartCalendarDatePartsUnits.hourOfDay,value:De({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case P.DayOfMonth:i={label:o.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case P.DayOfYear:i={label:o.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case P.MinuteOfDay:i={label:o.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case P.WeekOfYear:i={label:o.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case P.QuarterOfYear:i={label:o.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return i}function Oe(l,e){return!re(l,e)}function st(l,e){return Oe(l,e)||l!==e}function ke(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function $e(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Be=l=>{let{value:e,quoteAll:t=!1,locale:r,roundDecimals:a}=l,o=e==null?"":String(e);if(e===null)o="null";else if(e===void 0)o="";else if(typeof e=="number"&&Number.isFinite(e)&&r!==void 0){let i=$e(r),n=a??o.split(i)[1]?.length??2;o=new Intl.NumberFormat(r,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(o))&&(o=`"${o.replace(/"/gu,'""')}"`),o};function ut(l,e={}){let{columns:t,delimiter:r,includeHeader:a=!0,quoteAll:o=!1,locale:i,roundDecimals:n}=e,s=l.length===0,d="";if(!s){let u=t??Object.keys(l[0]),p=[],F=r??ke(i??"en");if(i!==void 0&&F!==","&&(d+=`sep=${F}\r
2
+ import{i as ve}from"./PDWS67CW.js";import{c as W}from"./MZ2UZAFW.js";import g from"./HKNCEFUZ.js";import f from"./HJHUFGMC.js";import e from"./Z3QU4QXL.js";import d from"./DIH43SPI.js";import c from"./OGMBMPKZ.js";import b from"./A7CHVVKW.js";import a from"./4YNNLXOR.js";import{c as D,d as y,r as V}from"./P5XJTTU3.js";import{Ba as le,Ca as Y,Ea as O,Fa as ne,p as N,q as E}from"./6JI4NDJ6.js";import{a as ie}from"./75Y43JLP.js";import{e as w,l as re,m as U,s as J}from"./FIMXZMTB.js";import{e as Q}from"./EZM4ZDQI.js";import{a as oe}from"./43P4WOC4.js";import{a as C,l as P}from"./XOB365BI.js";export default $arcgis.t(([{Ab:me,C:B,K:se,Ma:de,U:T,a:K,jc:I,sb:fe,ub:ce,xa:ue},{c:G},{f:ye,g:_},{k:q,l:H,m:X,x:be},{b:ge},{a:xe,c:pe,d:Le},{ka:ee,la:Fe,ma:te}])=>{function De(l){let{hour:e,minute:t=0,format:r,locale:a="en-US"}=l,o=r&&Object.keys(r).length>0?r:{hour:"numeric",minute:"2-digit",hour12:!1},i=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);i=new Intl.DateTimeFormat(a,o).format(n),i.includes(":")||i.startsWith("0")&&(i=i.slice(1))}return i}function he(l){let{weekdayNumber:e,format:t,locale:r="en-US",firstDayOfWeek:a=7}=l,o=t&&Object.keys(t).length>0?t:{weekday:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(a)&&a>0&&a<=7){let n=(e+a-1)%7,s=new Date(2e3,0,2+n);i=new Intl.DateTimeFormat(r,o).format(s)}return i}function Ce(l){let{monthNumber:e,format:t,locale:r="en-US"}=l,a=t&&Object.keys(t).length>0?t:{month:"long"},o=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let i=new Date(2e3,e-1);o=new Intl.DateTimeFormat(r,a).format(i)}return o}function we(l){let{value:e,formatLocale:t,unit:r,config:a,utilsStrings:o}=l,i={label:"",value:e.toString()};switch(r){case P.DayOfWeek:i={label:o.heatChartCalendarDatePartsUnits.dayOfWeek,value:he({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in a?a.firstDayOfWeek:ne,locale:t})};break;case P.MonthOfYear:i={label:o.heatChartCalendarDatePartsUnits.monthOfYear,value:Ce({monthNumber:e,locale:t})};break;case P.HourOfDay:i={label:o.heatChartCalendarDatePartsUnits.hourOfDay,value:De({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case P.DayOfMonth:i={label:o.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case P.DayOfYear:i={label:o.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case P.MinuteOfDay:i={label:o.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case P.WeekOfYear:i={label:o.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case P.QuarterOfYear:i={label:o.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return i}function Oe(l,e){return!re(l,e)}function st(l,e){return Oe(l,e)||l!==e}function ke(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function $e(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Be=l=>{let{value:e,quoteAll:t=!1,locale:r,roundDecimals:a}=l,o=e==null?"":String(e);if(e===null)o="null";else if(e===void 0)o="";else if(typeof e=="number"&&Number.isFinite(e)&&r!==void 0){let i=$e(r),n=a??o.split(i)[1]?.length??2;o=new Intl.NumberFormat(r,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(o))&&(o=`"${o.replace(/"/gu,'""')}"`),o};function ut(l,e={}){let{columns:t,delimiter:r,includeHeader:a=!0,quoteAll:o=!1,locale:i,roundDecimals:n}=e,s=l.length===0,d="";if(!s){let u=t??Object.keys(l[0]),p=[],F=r??ke(i??"en");if(i!==void 0&&F!==","&&(d+=`sep=${F}\r
3
3
  `),a){let L=u.map(b=>Be({value:b,quoteAll:o,locale:i,roundDecimals:n}));p.push(L.join(F))}l.forEach(L=>{let b=u.map(g=>Be({value:L[g],quoteAll:o,locale:i,roundDecimals:n}));p.push(b.join(F))}),d+=p.join(`\r
4
4
  `)}return d}function dt(l){let{rawData:e,config:t,layer:r,fieldList:a,formatters:o,useRendererLabel:i,formatLocale:n,utilsStrings:s}=l,d=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=oe(t?.series);u===C.HistogramSeries?d=Ve(t,e,o):u===C.HeatSeries?d=Re({config:t,rows:e,layer:r,fieldList:a,formatLocale:n,utilsStrings:s}):u===C.BarSeries||u===C.LineSeries||u===C.ComboLineAndBarSeries?d=Ie({config:t,rows:e,layer:r,fieldList:a,formatters:o,useRendererLabel:i}):u===C.PieSeries?d=Ue({config:t,rows:e,layer:r,fieldList:a,formatters:o,useRendererLabel:i}):u===C.BoxPlotSeries&&(d=Ye({config:t,rows:e,layer:r,fieldList:a,formatters:o,useRendererLabel:i}))}return d}function S(l){let{value:e,originalValue:t,formatter:r}=l,a=e;return r!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(a=r(e,t)),a}function $(l){let{field:e,value:t,dataContext:r,layer:a,fieldList:o,formatter:i}=l,n;if(t==null||typeof t=="boolean"||Array.isArray(t))n=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let s=Ne({fieldName:e,dataContext:r})??(a!==void 0&&(typeof t=="string"||typeof t=="number")?me({queryObject:a,fieldName:e,fieldValue:t}):void 0);n=Pe({field:e,value:s??t,fieldList:o})}else n=t;return S({value:n,originalValue:t,formatter:i})}function k(l){let{field:e,row:t,layer:r,fieldList:a,formatter:o,useRendererLabel:i=!1}=l,n=Object.keys(t).find(u=>u.toLocaleLowerCase()===e.toLocaleLowerCase()),s=t[n??e],d=ue({value:s,dataContext:t,useRendererLabel:i});return $({field:e,value:d,dataContext:t,layer:r,fieldList:a,formatter:o})}function Me(l,e){let t=!1;if(l===e)t=!0;else if(l!=null&&e!=null){let r=String(l),a=String(e);t=r===a||!Number.isNaN(Number(r))&&!Number.isNaN(Number(a))&&Number(r)===Number(a)}return t}function Ne(l){let{fieldName:e,dataContext:t}=l,r=D.rendererSymbolField;return e===r&&t!==void 0?de(t):void 0}function Se(l){let{config:e,splitByField:t,splitByValue:r,splitByValueIndex:a,layer:o,fieldList:i}=l,n,s=e.series[a??-1]?.name;return s!==void 0?n=s:n=$({field:t,value:r,layer:o,fieldList:i}),n}function Re(l){let{config:e,rows:t,layer:r,fieldList:a,formatLocale:o,utilsStrings:i}=l,[n]=e.series,s=n.x,d=ee(e),u=te(e),p=_({config:e,xAxisField:s,numericFields:u,aggregationType:d,layer:r,fieldList:a});return t.map(F=>{let L=F[E.xField],b=F[E.yField],g=F[E.valueField],f=typeof g=="number"&&Number.isFinite(g)?g.toFixed(2):g,c={label:n.x,value:L},m={label:n.y,value:b};if(n.xTemporalBinning!==void 0){let{label:x,value:v}=we({value:Number(L),config:e,formatLocale:o,unit:n.xTemporalBinning.unit,utilsStrings:i});!V(x)&&!V(v)&&(c={label:x,value:v})}if(n.yTemporalBinning!==void 0){let{label:x,value:v}=we({value:Number(b),config:e,formatLocale:o,unit:n.yTemporalBinning.unit,utilsStrings:i});!V(x)&&!V(v)&&(m={label:x,value:v})}return{[c.label]:c.value,[m.label]:m.value,[p.description]:f}})}function Ve(l,e,t){let r=ge(l),a=`${w(W.Min)} of ${r}`,o=`${w(W.Max)} of ${r}`,i=`${w(W.Count)} of ${r}`;return e.map(n=>{let{minValue:s,maxValue:d,count:u}=n,p=U(s),F=U(d),L=U(u),b={};if(p&&(b[a]=S({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter})),F&&(b[o]=S({value:d,originalValue:d,formatter:t?.xAxisLabelFormatter})),p&&F){let g=S({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter}),f=S({value:d,originalValue:d,formatter:t?.xAxisLabelFormatter});b.Label=`${String(g??"")} - ${String(f??"")}`}return L&&(b[i]=u),b})}function Te(l,e,t){let r=Object.keys(l),a=[];return t?a=t.map(o=>r.find(i=>i.toLowerCase().includes(o.toLowerCase()))||""):a=r.filter(o=>o.toLowerCase().includes(e.toLowerCase())),a.filter(o=>o.trim()!=="")}function Ie(l){let{config:e,rows:t,layer:r,fieldList:a,formatters:o,useRendererLabel:i=!1}=l,n=ye(e),s=ee(e),d=w(s),u=te(e),p=T(e.series),F=G(e),L=Fe(e),{idField:b,isTraditionalTypeOID:g}=fe(se(r)),f=g&&u.length===1&&u[0]===b,c;switch(p){case y.BarAndLineNoAggregation:c=t.map(m=>{let x=k({field:n,row:m,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i}),v={[n]:x};return Object.assign(v,...u.map(A=>({[A]:S({value:m[A],originalValue:m[A]})}))),v});break;case y.BarAndLineFromFields:c=J(u,t).map(([m,x])=>{let v=I(e.series)[0],A={};return x!==void 0&&m!==void 0&&(A.Field=S({value:x[n],originalValue:x[n],formatter:o?.xAxisLabelFormatter}),A.Value=S({value:x[v],originalValue:x[v]})),A});break;case y.BarAndLineMonoField:case y.BarAndLineMultiFields:c=t.map(m=>{let x=k({field:n,row:m,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i}),v={[n]:x};return u.forEach((A,h)=>{let M=_({config:e,xAxisField:n,numericFields:u,aggregationType:s,layer:r,numericFieldIndex:h,fieldList:a}),R=I(e.series)[h],ae=R,Z=R;R.toLowerCase()===M.name.toLowerCase()&&(ae=M.description,Z=M.name),v[ae]=S({value:m[Z],originalValue:m[Z]})}),v});break;case y.BarAndLineSplitBy:c=t.flatMap(m=>{let x=I(e.series),v=k({field:n,row:m,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i});return F.map((A,h)=>{let M=Se({config:e,splitByField:L,splitByValue:A,splitByValueIndex:h,layer:r,fieldList:a});return{[n]:v,[L]:M,[f?d:`${d} of ${u[0]}`]:m[x[h]]}})});break;case y.BarAndLineSplitByNoAggregation:c=t.map(m=>{let x=k({field:n,row:m,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i}),v=Te(m,u[0],F),A=m[L],h=F.findIndex(R=>Me(R,A)),M=Se({config:e,splitByField:L,splitByValue:A,splitByValueIndex:h>=0?h:void 0,layer:r,fieldList:a});return{[n]:x,[L]:M,[u[0]]:m[v[0]]}});break;default:c=t}return c}function je(l){if(l.length===0)return[];let e=l.reduce((t,r)=>{for(let[a,o]of Object.entries(r))typeof o=="number"&&Number.isFinite(o)&&(t[a]=(t[a]??0)+o);return t},{});return l.map(t=>{let r={...t};for(let[a,o]of Object.entries(t))if(typeof o=="number"&&e[a]>0){let i=o/e[a];r[`${a}${O}`]=i.toPrecision(2)}return r})}function Ue(l){let{config:e,rows:t,layer:r,fieldList:a,formatters:o,useRendererLabel:i=!1}=l,n=xe(e),s=T(e.series),d=je(t),u=pe(e),p=s!==y.PieFromFields?Q.Category:Q.Fields,F=Le(e,p),L=_({config:e,xAxisField:n,numericFields:u,aggregationType:F,mode:p,layer:r,fieldList:a}),b=I(e.series)[0];return s===y.PieFromCategory||s===y.PieNoAggregation?d=d.map(g=>{let f=k({field:n,row:g,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i}),c={[n]:f},m=b,x=b;return s===y.PieFromCategory&&b.toLowerCase()===L.name.toLowerCase()&&(m=L.description,x=L.name),c[m]=S({value:g[x],originalValue:g[x]}),c[w(O.trim())]=S({value:g[`${x}${O}`],originalValue:g[`${x}${O}`]}),c}):s===y.PieFromFields&&(d=J(u,d).map(([g,f])=>{let c={};return f!==void 0&&g!==void 0&&(c.Field=S({value:f[n],originalValue:f[n],formatter:o?.xAxisLabelFormatter}),c.Value=S({value:f[b],originalValue:f[b]}),c[w(O.trim())]=S({value:f[`${b}${O}`],originalValue:f[`${b}${O}`]})),c})),d}function z(l){let{rawData:e,keyBase:t="",outRow:r}=l;for(let[a,o]of Object.entries(B)){let i=e[t+o];i!==void 0&&(r[a]=i);let n=e[t+o+le];n!==void 0&&(r[`${a} Outlier`]=n);let s=e[t+o+Y];s!==void 0&&(r[`${a} Z-Score`]=s)}}function j(l){let{rawData:e,outRow:t,config:r,boxPlotSubType:a,layer:o,fieldList:i}=l,n=q(r),s=X(r),d=H(r),u=B.Outlier,p=N;switch(a){case y.BoxPlotMonoFieldAndCategory:{let b=Pe({field:n,value:e[n],fieldList:i});t[n]=b,t[w(B.Outlier)]=e[u];break}case y.BoxPlotMultiFieldsAndCategory:{t[w(n)]=e[n],u=`${s.find(b=>Object.keys(e).some(g=>g.toLowerCase().includes(b.toLowerCase())))??""}_${u}`,t[w(B.Outlier)]=e[u];break}case y.BoxPlotMonoFieldAndSplitBy:case y.BoxPlotMultiFieldsAndSplitBy:{let b=String(e[d]),g=$({field:d,value:b,layer:o,fieldList:i});u=`${b}_${u}`,t.Field=e[p],t[w(d)]=g,t[w(B.Outlier)]=e[u];break}case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{let b=String(e[d]),g=$({field:d,value:b,layer:o,fieldList:i});u=`${b}_${u}`,t[w(n)]=e[n],t[w(d)]=g,t[w(B.Outlier)]=e[u];break}case y.BoxPlotMonoField:case y.BoxPlotMultiFields:default:{t.Field=e[p],t[w(B.Outlier)]=e[u];break}}let F=`${u}${Y}`,L=e[F];L!==void 0&&(t[`${w(B.Outlier)} Z-Score`]=L)}function Ee(l){let{rawData:e,outRow:t,config:r,splitByValue:a,layer:o,fieldList:i}=l,n=T(r.series),s=e[`${a}_${B.Average}`],d=H(r),u=q(r),p="";switch(n){case y.BoxPlotMonoFieldAndSplitBy:{p=`${a}_${d}`,t.Field=e[N],t[w(d)]=$({field:d,value:e[p],layer:o,fieldList:i});break}case y.BoxPlotMultiFieldsAndSplitBy:{p=`${a}_${B.Average}`,t.Field=e[N],t[w(d)]=$({field:d,value:e[p],layer:o,fieldList:i});break}case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{p=`${a}_${B.Average}`,t[u]=e[u],t[w(d)]=$({field:d,value:a,layer:o,fieldList:i});break}}t[w(B.Average)]=s;let F=`${String(s)}${Y}`,L=e[F];L!==void 0&&(t[`${w(B.Average)} Z-Score`]=L)}function Ye(l){let{config:e,rows:t,layer:r,fieldList:a,formatters:o,useRendererLabel:i=!1}=l,n=T(e.series),s=n,d=be(e),u=Array.isArray(t)&&t.length>0&&t.every(f=>f[D.boxPlot.boxPlotMeanLineMarkerId]!==void 0);d&&!u&&(n===y.BoxPlotMonoFieldAndSplitBy?s=y.BoxPlotMonoField:n===y.BoxPlotMultiFieldsAndSplitBy?s=y.BoxPlotMultiFields:n===y.BoxPlotMonoFieldAndCategoryAndSplitBy&&(s=y.BoxPlotMonoFieldAndCategory));let p=q(e),F=X(e),L=G(e),b=H(e),g;switch(s){case y.BoxPlotMonoField:case y.BoxPlotMonoFieldAndCategory:{g=t.map(f=>{let c={};if(f[D.boxPlot.boxPlotOutlierId])j({rawData:f,outRow:c,config:e,boxPlotSubType:s,layer:r,fieldList:a});else{if(s===y.BoxPlotMonoFieldAndCategory){let m=k({field:p,row:f,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i});c[p]=m}else s===y.BoxPlotMonoField&&(c.Field=f[N]);z({rawData:f,outRow:c})}return c});break}case y.BoxPlotMultiFields:{g=t.flatMap(f=>{let c={};return f[D.boxPlot.boxPlotOutlierId]?j({rawData:f,outRow:c,config:e,boxPlotSubType:s,layer:r,fieldList:a}):(c.Field=f[N],z({rawData:f,outRow:c})),[c]});break}case y.BoxPlotMultiFieldsAndCategory:{g=t.flatMap(f=>F.map(c=>{let m={},x="";if(m.Field=c,f[D.boxPlot.boxPlotOutlierId])j({rawData:f,outRow:m,config:e,boxPlotSubType:s,layer:r,fieldList:a});else{if(s===y.BoxPlotMultiFieldsAndCategory){let v=k({field:p,row:f,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i});m[p]=v,x=`${c}_`}z({rawData:f,outRow:m,keyBase:x})}return m}));break}case y.BoxPlotMonoFieldAndSplitBy:case y.BoxPlotMultiFieldsAndSplitBy:case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{g=t.flatMap(f=>{if(f[D.boxPlot.boxPlotOutlierId]){let c={};return j({rawData:f,outRow:c,config:e,boxPlotSubType:s,layer:r,fieldList:a}),[c]}else return f[D.boxPlot.boxPlotMeanLineMarkerId]?L?.map(c=>{let m={};return Ee({rawData:f,outRow:m,splitByValue:c,config:e,layer:r,fieldList:a}),m}):L.map(c=>{let m={},x=$({field:b,value:c,layer:r,fieldList:a});if(s===y.BoxPlotMonoFieldAndCategoryAndSplitBy){let v=k({field:p,row:f,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i});m[p]=v}return f[D.boxPlot.boxPlotOutlierId]?j({rawData:f,outRow:m,config:e,boxPlotSubType:s}):(m[b]=x,z({rawData:f,outRow:m,keyBase:`${c}_`})),m})});break}default:g=t}return g}var Ae=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},We=l=>K.fromJSDate(l,{zone:"local"}).toFormat("yyyy-LL-dd"),_e=l=>K.fromJSDate(l,{zone:"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),Pe=l=>{let{field:e,value:t,fieldList:r}=l,a=t,o=r?.find(i=>i.name===e);if(o){let i=o.type===ie.DateOnly;ce(o)&&!i?a=Ae(t)?_e(new Date(t)):t:i&&typeof t!="string"&&(a=Ae(t)?We(new Date(t)):t)}return a};function ft(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:r,syncViewTimeExtent:a}=l,o=e;return t&&(r===ve.Refresh||a)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(o={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),o}return{a:De,b:he,c:Ce,d:we,e:Oe,f:st,g:ut,h:dt,i:ft}},a,b,c,d,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as u}from"./KUEF5L2Y.js";import"./LY7A6MST.js";import{A as e,G as d,g as t,i as n}from"./2WDUA6L4.js";import"./QPIMTXPL.js";var h=t`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width)}`,o=class extends e{constructor(){super(...arguments),this._messages=u(),this.open=!1,this.showMinXBoundOption=!1,this.showMaxXBoundOption=!1,this.showMinYBoundOption=!1,this.showMaxYBoundOption=!1,this.showEnableXLogOption=!1,this.showEnableYLogOption=!1}static{this.properties={messageOverrides:0,model:0,calculatedDataMinMaxBounds:0,open:5,showMinXBoundOption:5,showMaxXBoundOption:5,showMinYBoundOption:5,showMaxYBoundOption:5,showEnableXLogOption:5,showEnableYLogOption:5,calculatedMinMaxBounds:0}}static{this.styles=h}getMinFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.minimum??Number.NaN}getMaxFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.maximum??Number.NaN}render(){let i=this.calculatedMinMaxBounds?.find(a=>a.isXAxis),s=this.calculatedMinMaxBounds?.find(a=>!a.isXAxis);return n`<arcgis-charts-config-axis .model=${this.model} is-x-axis .axisTitle=${this._messages.xAxis} .showMinBoundOption=${this.showMinXBoundOption} .showMaxBoundOption=${this.showMaxXBoundOption} .showEnableLogOption=${this.showEnableXLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!0)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!0)} .initialMaxBound=${i?.maximum} .initialMinBound=${i?.minimum}></arcgis-charts-config-axis><arcgis-charts-config-axis .model=${this.model} .axisTitle=${this._messages.yAxis} .showMinBoundOption=${this.showMinYBoundOption} .showMaxBoundOption=${this.showMaxYBoundOption} .showEnableLogOption=${this.showEnableYLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!1)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!1)} .initialMaxBound=${s?.maximum} .initialMinBound=${s?.minimum}></arcgis-charts-config-axis>`}};d("arcgis-charts-config-axes",o);export{o as ArcgisChartsConfigAxes};
2
+ import{a as u}from"./DTVMYBN2.js";import"./WBCPWDPR.js";import{A as e,G as d,g as t,i as n}from"./E6J6XV56.js";import"./QPIMTXPL.js";var h=t`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width)}`,o=class extends e{constructor(){super(...arguments),this._messages=u(),this.open=!1,this.showMinXBoundOption=!1,this.showMaxXBoundOption=!1,this.showMinYBoundOption=!1,this.showMaxYBoundOption=!1,this.showEnableXLogOption=!1,this.showEnableYLogOption=!1}static{this.properties={messageOverrides:0,model:0,calculatedDataMinMaxBounds:0,open:5,showMinXBoundOption:5,showMaxXBoundOption:5,showMinYBoundOption:5,showMaxYBoundOption:5,showEnableXLogOption:5,showEnableYLogOption:5,calculatedMinMaxBounds:0}}static{this.styles=h}getMinFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.minimum??Number.NaN}getMaxFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.maximum??Number.NaN}render(){let i=this.calculatedMinMaxBounds?.find(a=>a.isXAxis),s=this.calculatedMinMaxBounds?.find(a=>!a.isXAxis);return n`<arcgis-charts-config-axis .model=${this.model} is-x-axis .axisTitle=${this._messages.xAxis} .showMinBoundOption=${this.showMinXBoundOption} .showMaxBoundOption=${this.showMaxXBoundOption} .showEnableLogOption=${this.showEnableXLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!0)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!0)} .initialMaxBound=${i?.maximum} .initialMinBound=${i?.minimum}></arcgis-charts-config-axis><arcgis-charts-config-axis .model=${this.model} .axisTitle=${this._messages.yAxis} .showMinBoundOption=${this.showMinYBoundOption} .showMaxBoundOption=${this.showMaxYBoundOption} .showEnableLogOption=${this.showEnableYLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!1)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!1)} .initialMaxBound=${s?.maximum} .initialMinBound=${s?.minimum}></arcgis-charts-config-axis>`}};d("arcgis-charts-config-axes",o);export{o as ArcgisChartsConfigAxes};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as L}from"./TJQGGNGV.js";import{a as $}from"./KUEF5L2Y.js";import{i as c}from"./6JI4NDJ6.js";import{f as b}from"./75Y43JLP.js";import{l as u}from"./FIMXZMTB.js";import"./LY7A6MST.js";import{A as y,B as n,G as S,g,i as r,n as a,y as f,z as v}from"./2WDUA6L4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";var h={jsAppFlyout:"js-app-flyout",panelChildrenContainer:"panel-children-container"},P=g`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,p=class extends y{constructor(){super(...arguments),this._messages=$(),this.popoverElement=f(),this.isLineSymbol=!1,this.open=!1,this.labelCanBeConfigured=!1,this.arcgisChartsConfigPopoverClose=a(),this.arcgisChartsConfigSeriesPopoverColorChange=a(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=a(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=a(),this.arcgisChartsConfigSeriesPopoverNameChange=a()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedLineWidth:9,selectedSeriesIndex:9,isLineSymbol:5,placement:1,open:5,labelCanBeConfigured:5}}static{this.styles=P}async reposition(){await this.popoverElement.value?.reposition()}updated(){L(this.popoverElement.value,this.open)}seriesNameChange(e){let i=e.target.value;this.selectedName!==i&&(this.selectedName=i,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:i}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}colorChange(e){let i=e instanceof CustomEvent?e.detail:e,[o,t,s]=i,l=c*255;this.selectedColor=[o,t,s,l],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[o,t,s,l]})}lineSymbolChange(e){let{lineStyle:i}=e.target,{color:o,style:t,width:s}=i;if(o!==void 0&&!u(o,this.selectedColor)){let[l,m,d]=o,C=c*255;this.selectedColor=[l,m,d,C],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[l,m,d,C]})}t!==void 0&&t!==this.selectedLineStyle&&(this.selectedLineStyle=t,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({style:t})),s!==void 0&&s!==this.selectedLineWidth&&(this.selectedLineWidth=s,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({width:s}))}render(){let e=this.selectedColor;return r`<div class=${n({[h.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${v(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured?r`<div class=${n(h.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>`:null}<div class=${n(this.isLineSymbol?"":h.panelChildrenContainer)}>${this.isLineSymbol?r`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{type:b.SLS,style:this.selectedLineStyle,width:this.selectedLineWidth,color:e}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>`:r`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`}};S("arcgis-charts-config-box-plot-series-popover",p);export{p as ArcgisChartsConfigBoxPlotSeriesPopover};
2
+ import{b as L}from"./TJQGGNGV.js";import{a as $}from"./DTVMYBN2.js";import{i as c}from"./6JI4NDJ6.js";import{f as b}from"./75Y43JLP.js";import{l as u}from"./FIMXZMTB.js";import"./WBCPWDPR.js";import{A as y,B as n,G as S,g,i as r,n as a,y as f,z as v}from"./E6J6XV56.js";import"./XOB365BI.js";import"./QPIMTXPL.js";var h={jsAppFlyout:"js-app-flyout",panelChildrenContainer:"panel-children-container"},P=g`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,p=class extends y{constructor(){super(...arguments),this._messages=$(),this.popoverElement=f(),this.isLineSymbol=!1,this.open=!1,this.labelCanBeConfigured=!1,this.arcgisChartsConfigPopoverClose=a(),this.arcgisChartsConfigSeriesPopoverColorChange=a(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=a(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=a(),this.arcgisChartsConfigSeriesPopoverNameChange=a()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedLineWidth:9,selectedSeriesIndex:9,isLineSymbol:5,placement:1,open:5,labelCanBeConfigured:5}}static{this.styles=P}async reposition(){await this.popoverElement.value?.reposition()}updated(){L(this.popoverElement.value,this.open)}seriesNameChange(e){let i=e.target.value;this.selectedName!==i&&(this.selectedName=i,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:i}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}colorChange(e){let i=e instanceof CustomEvent?e.detail:e,[o,t,s]=i,l=c*255;this.selectedColor=[o,t,s,l],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[o,t,s,l]})}lineSymbolChange(e){let{lineStyle:i}=e.target,{color:o,style:t,width:s}=i;if(o!==void 0&&!u(o,this.selectedColor)){let[l,m,d]=o,C=c*255;this.selectedColor=[l,m,d,C],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[l,m,d,C]})}t!==void 0&&t!==this.selectedLineStyle&&(this.selectedLineStyle=t,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({style:t})),s!==void 0&&s!==this.selectedLineWidth&&(this.selectedLineWidth=s,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({width:s}))}render(){let e=this.selectedColor;return r`<div class=${n({[h.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${v(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured?r`<div class=${n(h.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>`:null}<div class=${n(this.isLineSymbol?"":h.panelChildrenContainer)}>${this.isLineSymbol?r`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{type:b.SLS,style:this.selectedLineStyle,width:this.selectedLineWidth,color:e}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>`:r`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`}};S("arcgis-charts-config-box-plot-series-popover",p);export{p as ArcgisChartsConfigBoxPlotSeriesPopover};