@arcgis/charts-components 5.2.0-next.7 → 5.2.0-next.8

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 (38) hide show
  1. package/dist/cdn/{2N4MK6FQ.js → 4ACX3XOE.js} +1 -1
  2. package/dist/cdn/{VFREVEVA.js → 6C6AH4LL.js} +1 -1
  3. package/dist/cdn/{IWX5L226.js → AWKELFV6.js} +1 -1
  4. package/dist/cdn/{TW5DX7YP.js → CBNT3DO7.js} +1 -1
  5. package/dist/cdn/{ICFKKJWQ.js → DF5P34HK.js} +1 -1
  6. package/dist/cdn/{4LPXOEML.js → EXXLJVGS.js} +1 -1
  7. package/dist/cdn/{KO7HQLGV.js → FDFYTCDO.js} +1 -1
  8. package/dist/cdn/{LC6CY2HW.js → IXRBZPQL.js} +1 -1
  9. package/dist/cdn/{QFEZPP3R.js → JCH3RDLR.js} +1 -1
  10. package/dist/cdn/{OHF3AEWY.js → JPPGHHIA.js} +1 -1
  11. package/dist/cdn/{QY53LXP2.js → JWPAMNU4.js} +1 -1
  12. package/dist/cdn/{7EMCHGGV.js → KVUFR34S.js} +1 -1
  13. package/dist/cdn/{DAB5R2BN.js → LTQRSPSC.js} +1 -1
  14. package/dist/cdn/{QRLILSSI.js → NNEDF6G4.js} +1 -1
  15. package/dist/cdn/{BO62KSB5.js → OJIUI56Z.js} +1 -1
  16. package/dist/cdn/{WGYJBMRM.js → OSNA56IW.js} +1 -1
  17. package/dist/cdn/{43ZHPVBB.js → P3YHDWG2.js} +1 -1
  18. package/dist/cdn/{J6WQX4UD.js → PBWZYX5M.js} +20 -20
  19. package/dist/cdn/{L5AQ4I5T.js → PPGRM3VJ.js} +1 -1
  20. package/dist/cdn/{S32NLOJ5.js → PRMN6W5R.js} +1 -1
  21. package/dist/cdn/{SJGYHEMZ.js → SRPOC65M.js} +1 -1
  22. package/dist/cdn/{MGEW6X3Y.js → U2CYVAIC.js} +1 -1
  23. package/dist/cdn/{JNG6V7XC.js → VQU6N5HX.js} +1 -1
  24. package/dist/cdn/{DZ72EIRH.js → ZS6EP5BD.js} +1 -1
  25. package/dist/cdn/index.js +1 -1
  26. package/dist/cdn/model/shared/setup-utils.js +1 -1
  27. package/dist/chart-rendering/common/interfaces.d.ts +5 -5
  28. package/dist/chunks/index2.js +16 -16
  29. package/dist/chunks/index4.js +1 -1
  30. package/dist/chunks/rotated-state.js +1 -1
  31. package/dist/components/arcgis-chart/customElement.js +5197 -5327
  32. package/dist/docs/api.json +1 -1
  33. package/dist/docs/docs.json +1 -1
  34. package/dist/docs/web-types.json +1 -1
  35. package/dist/index.d.ts +1 -6
  36. package/dist/model/properties/rotated-state.d.ts +1 -1
  37. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  38. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import n from"./IWX5L226.js";import{b as e,c as t,d as a}from"./IVLVCLDE.js";import l from"./JRHMUFED.js";import{a as A}from"./MRTKZZTF.js";import{a as u}from"./AK7X7SGI.js";import k from"./MVHQR4FJ.js";import j from"./MGEW6X3Y.js";import{a as h,p as E}from"./THTYR6IL.js";import i from"./HWJGWDU3.js";import f from"./ML3A3MYV.js";import c from"./PRGFNLY7.js";import"./WNKDEOFZ.js";import b from"./TJMTF45U.js";import"./EZV7JSQJ.js";import{a as x}from"./ADGMA3ST.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.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"./CHQDKVVQ.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as v}from"./547RDEMV.js";import"./U67P6YAZ.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"./AWKELFV6.js";import{b as e,c as t,d as a}from"./IVLVCLDE.js";import l from"./JRHMUFED.js";import{a as A}from"./MRTKZZTF.js";import{a as u}from"./AK7X7SGI.js";import k from"./MVHQR4FJ.js";import j from"./U2CYVAIC.js";import{a as h,p as E}from"./THTYR6IL.js";import i from"./HWJGWDU3.js";import f from"./ML3A3MYV.js";import c from"./PRGFNLY7.js";import"./WNKDEOFZ.js";import b from"./TJMTF45U.js";import"./EZV7JSQJ.js";import{a as x}from"./ADGMA3ST.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.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"./CHQDKVVQ.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as v}from"./547RDEMV.js";import"./U67P6YAZ.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.2/LICENSE.txt */
2
- import u from"./TCTQ4LMU.js";import t from"./2N4MK6FQ.js";import s from"./MVHQR4FJ.js";import r from"./7YWZG3ZS.js";import q from"./XG3WW5GG.js";import o from"./7HGVEE7A.js";import n from"./NSOZIR5F.js";import l from"./MGEW6X3Y.js";import j from"./GDQBQQUP.js";import i from"./Q5JDSPJA.js";import g from"./PROSIXIF.js";import f from"./S5UDCCRH.js";import e from"./TJMPLGQI.js";import d from"./HWJGWDU3.js";import c from"./PRGFNLY7.js";import{i as h,j as y,k as p}from"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import{I as P,K as V,R as D,W as k,aa as E}from"./PAIRUVLU.js";import{l as b}from"./SP2IPHWF.js";import{a as L}from"./QP5UAIC6.js";import{a as w,b as m,f as F}from"./547RDEMV.js";export default $arcgis.t(([{ob:N,s:d},{a:M,b:x,d:I,n:U,o:W,p:j,q:q},{c:o},O,{b:Fe,d:xe,f:Ie},{b:ue,d:Se,f:_e},{d:pe,e:fe},ye,{b:R},{b:Te},{a:le,b:ge,c:ce,d:he},{a:me,b:de},{d:T,e:B,f:z},{b:Be},{a:X,b:Y,c:$,d:G,e:H,f:J,g:K,h:Q,i:Z,j:ee,ja:se,k:ie,ka:u,la:te,ma:S,na:A,oa:re,pa:_,ra:C,sa:v,ta:oe,ua:ne},{b:ae}])=>{var Ae=(t,e)=>e.series?.[t].assignToSecondValueAxis??!1,Ce=t=>{let{assign:e,seriesIndex:i,config:s,commonStrings:r}=t;e&&s.axes!==void 0&&!s.axes?.[2]&&(s.axes[2]=k(r,w.BarSeries)[1]),s.series&&s.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),s.axes?.[2]&&!s.series.some(a=>a.assignToSecondValueAxis)&&s.axes.splice(2,1)},ve=(t,e)=>e.series?.[t]?.name,Oe=(t,e,i)=>{i.series?.[e]&&(i.series[e].name=t)},be=(t,e)=>{let i=e.series?.[t],s;return p(i)?s=i.fillSymbol?.color:h(i)&&(s=i.lineSymbol?.color),s},we=(t,e,i)=>{let s=i.series?.[e];s&&(p(s)?s.fillSymbol={...E(e),...s.fillSymbol,color:t}:h(s)&&(s.lineSymbol={...D(e),...s.lineSymbol,color:t}))},Pe=t=>t.series.map(e=>e.id),Ve=(t,e)=>{e.series?.sort((i,s)=>t.findIndex(r=>i.id===r)-t.findIndex(r=>s.id===r))},De=t=>t.stackedType??F.Side,ke=t=>{let{newStackedType:e,config:i,layerInfo:s,commonStrings:r}=t;if(i.stackedType=e,s!==void 0){let a=x({config:i,layerInfo:s,commonStrings:r,numericFields:S(i),aggregationType:u(i)});M(i,1,a)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=V():i.axes[1].valueFormat=P()),I({config:i,value:null,axisIndex:1,isMax:!1}),I({config:i,value:null,axisIndex:1,isMax:!0})},Ee=t=>{let e,i=t.series.find(s=>(p(s)||h(s)||y(s))&&s.nullCategory!==void 0);return(p(i)||h(i)||y(i))&&(e=i?.nullCategory),e},Ne=(t,e)=>{t.series.forEach(i=>{(p(i)||h(i)||y(i))&&(i.nullCategory=e)})},Le=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,f=(t,e,i,s)=>{for(var r=Me(e,i),a=t.length-1,c;a>=0;a--)(c=t[a])&&(r=c(e,i,r)||r);return r&&Le(e,i,r),r},g=class extends O{get temporalBinningSize(){return X(this._config)}set temporalBinningSize(e){J(e,this._config)}get temporalBinningUnit(){return Y(this._config)}set temporalBinningUnit(e){Q(e,this._config)}get timeAggregationType(){return $(this._config)}set timeAggregationType(e){Z(e,this._config)}get trimIncompleteTimeInterval(){return G(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return H(this._config)}set nullPolicy(e){K(e,this._config)}resetTimeInterval(){ie(this._config)}};f([o],g.prototype,"temporalBinningSize");f([o],g.prototype,"temporalBinningUnit");f([o],g.prototype,"timeAggregationType");f([o],g.prototype,"trimIncompleteTimeInterval");f([o],g.prototype,"nullPolicy");f([o],g.prototype,"resetTimeInterval");var Ue=Object.defineProperty,We=Object.getOwnPropertyDescriptor,l=(t,e,i,s)=>{for(var r=We(e,i),a=t.length-1,c;a>=0;a--)(c=t[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===d){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,re({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&W(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=j(this.layerInfo?.layerFieldsInfo??[],e),s=(this.xAxisField===""||this.xAxisField===d)&&e.length===0;if(i&&!s){let r=N(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e.push(r),this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else s&&this.resetConfig()}getAssignToSecondValueAxis(e){return Ae(e,this._config)}setAssignToSecondValueAxis(e,i){Ce({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return A(this._config)[0]}setSortOrder(e,i){B(e,this._config,i)}async getCustomSortValues(){return await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=A(this._config)[0];if(i===L.customSort){this.startAsyncUpdate();let s=await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});B(i,this._config,s),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return T(this._config)}set orderByList(e){!R(this._config)&&C(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}get binTemporalData(){return oe(this._config)}set binTemporalData(e){ne(e,this._config)}getSeriesName(e){return ve(e,this._config)}setSeriesName(e,i){Oe(e,i,this._config)}getSeriesColor(e){return be(e,this._config)}setSeriesColor(e,i){we(e,i,this._config)}getOrderOfSeries(){return Pe(this._config)}setOrderOfSeries(e){Ve(e,this._config)}get stackedType(){return De(this._config)}set stackedType(e){ke({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let s=this.getOrderOfSeries(),[r]=s.splice(e,1);s.splice(i,0,r),this.setOrderOfSeries(s)}moveCustomSortValuesInOrderByList(e,i){let s=T(this._config),[r]=s.splice(e,1);s.splice(i,0,r),C(s,this._config)}get nullCategory(){return Ee(this._config)}set nullCategory(e){let i=this.nullCategory;b(i,e)||Ne(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=u(this._config),this._splitByField=te(this._config),this._numericFields=S(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):_(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await U({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==d?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?x({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:S(this._config),aggregationType:u(this._config)}):""}};l([o],n.prototype,"aggregationType");l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var je=[me,le,ge,ce,Be,he,Te,ye,de,g,Fe,pe,xe,fe,ue,Se,_e,Ie,ae];q(n,je);return{a:ve,b:Oe,c:we,d:n}},a,c,d,e,f,g,i,j,l,n,o,q,r,s,t,u)
2
+ import u from"./TCTQ4LMU.js";import t from"./4ACX3XOE.js";import s from"./MVHQR4FJ.js";import r from"./7YWZG3ZS.js";import q from"./XG3WW5GG.js";import o from"./7HGVEE7A.js";import n from"./NSOZIR5F.js";import l from"./U2CYVAIC.js";import j from"./GDQBQQUP.js";import i from"./Q5JDSPJA.js";import g from"./PROSIXIF.js";import f from"./S5UDCCRH.js";import e from"./TJMPLGQI.js";import d from"./HWJGWDU3.js";import c from"./PRGFNLY7.js";import{i as h,j as y,k as p}from"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import{I as P,K as V,R as D,W as k,aa as E}from"./PAIRUVLU.js";import{l as b}from"./SP2IPHWF.js";import{a as L}from"./QP5UAIC6.js";import{a as w,b as m,f as F}from"./547RDEMV.js";export default $arcgis.t(([{ob:N,s:d},{a:M,b:x,d:I,n:U,o:W,p:j,q:q},{c:o},O,{b:Fe,d:xe,f:Ie},{b:ue,d:Se,f:_e},{d:pe,e:fe},ye,{b:R},{b:Te},{a:le,b:ge,c:ce,d:he},{a:me,b:de},{d:T,e:B,f:z},{b:Be},{a:X,b:Y,c:$,d:G,e:H,f:J,g:K,h:Q,i:Z,j:ee,ja:se,k:ie,ka:u,la:te,ma:S,na:A,oa:re,pa:_,ra:C,sa:v,ta:oe,ua:ne},{b:ae}])=>{var Ae=(t,e)=>e.series?.[t].assignToSecondValueAxis??!1,Ce=t=>{let{assign:e,seriesIndex:i,config:s,commonStrings:r}=t;e&&s.axes!==void 0&&!s.axes?.[2]&&(s.axes[2]=k(r,w.BarSeries)[1]),s.series&&s.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),s.axes?.[2]&&!s.series.some(a=>a.assignToSecondValueAxis)&&s.axes.splice(2,1)},ve=(t,e)=>e.series?.[t]?.name,Oe=(t,e,i)=>{i.series?.[e]&&(i.series[e].name=t)},be=(t,e)=>{let i=e.series?.[t],s;return p(i)?s=i.fillSymbol?.color:h(i)&&(s=i.lineSymbol?.color),s},we=(t,e,i)=>{let s=i.series?.[e];s&&(p(s)?s.fillSymbol={...E(e),...s.fillSymbol,color:t}:h(s)&&(s.lineSymbol={...D(e),...s.lineSymbol,color:t}))},Pe=t=>t.series.map(e=>e.id),Ve=(t,e)=>{e.series?.sort((i,s)=>t.findIndex(r=>i.id===r)-t.findIndex(r=>s.id===r))},De=t=>t.stackedType??F.Side,ke=t=>{let{newStackedType:e,config:i,layerInfo:s,commonStrings:r}=t;if(i.stackedType=e,s!==void 0){let a=x({config:i,layerInfo:s,commonStrings:r,numericFields:S(i),aggregationType:u(i)});M(i,1,a)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=V():i.axes[1].valueFormat=P()),I({config:i,value:null,axisIndex:1,isMax:!1}),I({config:i,value:null,axisIndex:1,isMax:!0})},Ee=t=>{let e,i=t.series.find(s=>(p(s)||h(s)||y(s))&&s.nullCategory!==void 0);return(p(i)||h(i)||y(i))&&(e=i?.nullCategory),e},Ne=(t,e)=>{t.series.forEach(i=>{(p(i)||h(i)||y(i))&&(i.nullCategory=e)})},Le=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,f=(t,e,i,s)=>{for(var r=Me(e,i),a=t.length-1,c;a>=0;a--)(c=t[a])&&(r=c(e,i,r)||r);return r&&Le(e,i,r),r},g=class extends O{get temporalBinningSize(){return X(this._config)}set temporalBinningSize(e){J(e,this._config)}get temporalBinningUnit(){return Y(this._config)}set temporalBinningUnit(e){Q(e,this._config)}get timeAggregationType(){return $(this._config)}set timeAggregationType(e){Z(e,this._config)}get trimIncompleteTimeInterval(){return G(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return H(this._config)}set nullPolicy(e){K(e,this._config)}resetTimeInterval(){ie(this._config)}};f([o],g.prototype,"temporalBinningSize");f([o],g.prototype,"temporalBinningUnit");f([o],g.prototype,"timeAggregationType");f([o],g.prototype,"trimIncompleteTimeInterval");f([o],g.prototype,"nullPolicy");f([o],g.prototype,"resetTimeInterval");var Ue=Object.defineProperty,We=Object.getOwnPropertyDescriptor,l=(t,e,i,s)=>{for(var r=We(e,i),a=t.length-1,c;a>=0;a--)(c=t[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===d){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,re({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&W(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=j(this.layerInfo?.layerFieldsInfo??[],e),s=(this.xAxisField===""||this.xAxisField===d)&&e.length===0;if(i&&!s){let r=N(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e.push(r),this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else s&&this.resetConfig()}getAssignToSecondValueAxis(e){return Ae(e,this._config)}setAssignToSecondValueAxis(e,i){Ce({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return A(this._config)[0]}setSortOrder(e,i){B(e,this._config,i)}async getCustomSortValues(){return await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=A(this._config)[0];if(i===L.customSort){this.startAsyncUpdate();let s=await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});B(i,this._config,s),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return T(this._config)}set orderByList(e){!R(this._config)&&C(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}get binTemporalData(){return oe(this._config)}set binTemporalData(e){ne(e,this._config)}getSeriesName(e){return ve(e,this._config)}setSeriesName(e,i){Oe(e,i,this._config)}getSeriesColor(e){return be(e,this._config)}setSeriesColor(e,i){we(e,i,this._config)}getOrderOfSeries(){return Pe(this._config)}setOrderOfSeries(e){Ve(e,this._config)}get stackedType(){return De(this._config)}set stackedType(e){ke({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let s=this.getOrderOfSeries(),[r]=s.splice(e,1);s.splice(i,0,r),this.setOrderOfSeries(s)}moveCustomSortValuesInOrderByList(e,i){let s=T(this._config),[r]=s.splice(e,1);s.splice(i,0,r),C(s,this._config)}get nullCategory(){return Ee(this._config)}set nullCategory(e){let i=this.nullCategory;b(i,e)||Ne(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=u(this._config),this._splitByField=te(this._config),this._numericFields=S(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):_(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await U({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==d?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?x({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:S(this._config),aggregationType:u(this._config)}):""}};l([o],n.prototype,"aggregationType");l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var je=[me,le,ge,ce,Be,he,Te,ye,de,g,Fe,pe,xe,fe,ue,Se,_e,Ie,ae];q(n,je);return{a:ve,b:Oe,c:we,d:n}},a,c,d,e,f,g,i,j,l,n,o,q,r,s,t,u)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import d from"./KCMZSNBL.js";import c from"./7EMCHGGV.js";import b from"./TJMPLGQI.js";import a from"./HWJGWDU3.js";export default $arcgis.t(([{c:r},f,{c:h},{a:p,b:S,c:l,d:_,e:y,f:d,g:m,h:k,i:M,j:b,k:L,l:u,m:C,n:c,o:x,p:A,q:V,r:v,s:I}])=>{var j=Object.defineProperty,z=Object.getOwnPropertyDescriptor,t=(n,e,i,O)=>{for(var o=z(e,i),a=n.length-1,g;a>=0;a--)(g=n[a])&&(o=g(e,i,o)||o);return o&&j(e,i,o),o},s=class extends f{getSeriesLineStyle(e){return p(e,this._config)}setSeriesLineStyle(e,i){S(e,i,this._config)}getSeriesLineWidth(e){return l(e,this._config)}setSeriesLineWidth(e,i){_(e,i,this._config)}getSeriesMarkerColor(e){return y(e,this._config)}setSeriesMarkerColor(e,i){d(e,i,this._config)}getSeriesMarkerStyle(e){return m(e,this._config)}setSeriesMarkerStyle(e,i){k(e,i,this._config)}getSeriesMarkerSize(e){return M(e,this._config)}setSeriesMarkerSize(e,i){b(e,i,this._config)}isLineSmoothed(e){return L(e,this._config)}setLineSmoothed(e,i){u({smoothed:e,seriesIndex:i,config:this._config})}getConnectLines(e){return v(e,this._config)}setConnectLines(e,i){I({connect:e,seriesIndex:i,config:this._config})}isAreaVisible(e){return C(e,this._config)}setAreaVisible(e,i){c({visible:e,seriesIndex:i,config:this._config})}isMarkerVisible(e){return x(e,this._config)}setMarkerVisible(e,i){A({visible:e,seriesIndex:i,config:this._config})}getAreaColor(e){return V(e,this._config)}setAreaColor(e,i){c({visible:!0,seriesIndex:i,config:this._config}),h(e,i,this._config)}};t([r],s.prototype,"setSeriesLineStyle");t([r],s.prototype,"setSeriesLineWidth");t([r],s.prototype,"setSeriesMarkerColor");t([r],s.prototype,"setSeriesMarkerStyle");t([r],s.prototype,"setSeriesMarkerSize");t([r],s.prototype,"setLineSmoothed");t([r],s.prototype,"setConnectLines");t([r],s.prototype,"setAreaVisible");t([r],s.prototype,"setMarkerVisible");t([r],s.prototype,"setAreaColor");return s},a,b,c,d)
2
+ import d from"./KCMZSNBL.js";import c from"./KVUFR34S.js";import b from"./TJMPLGQI.js";import a from"./HWJGWDU3.js";export default $arcgis.t(([{c:r},f,{c:h},{a:p,b:S,c:l,d:_,e:y,f:d,g:m,h:k,i:M,j:b,k:L,l:u,m:C,n:c,o:x,p:A,q:V,r:v,s:I}])=>{var j=Object.defineProperty,z=Object.getOwnPropertyDescriptor,t=(n,e,i,O)=>{for(var o=z(e,i),a=n.length-1,g;a>=0;a--)(g=n[a])&&(o=g(e,i,o)||o);return o&&j(e,i,o),o},s=class extends f{getSeriesLineStyle(e){return p(e,this._config)}setSeriesLineStyle(e,i){S(e,i,this._config)}getSeriesLineWidth(e){return l(e,this._config)}setSeriesLineWidth(e,i){_(e,i,this._config)}getSeriesMarkerColor(e){return y(e,this._config)}setSeriesMarkerColor(e,i){d(e,i,this._config)}getSeriesMarkerStyle(e){return m(e,this._config)}setSeriesMarkerStyle(e,i){k(e,i,this._config)}getSeriesMarkerSize(e){return M(e,this._config)}setSeriesMarkerSize(e,i){b(e,i,this._config)}isLineSmoothed(e){return L(e,this._config)}setLineSmoothed(e,i){u({smoothed:e,seriesIndex:i,config:this._config})}getConnectLines(e){return v(e,this._config)}setConnectLines(e,i){I({connect:e,seriesIndex:i,config:this._config})}isAreaVisible(e){return C(e,this._config)}setAreaVisible(e,i){c({visible:e,seriesIndex:i,config:this._config})}isMarkerVisible(e){return x(e,this._config)}setMarkerVisible(e,i){A({visible:e,seriesIndex:i,config:this._config})}getAreaColor(e){return V(e,this._config)}setAreaColor(e,i){c({visible:!0,seriesIndex:i,config:this._config}),h(e,i,this._config)}};t([r],s.prototype,"setSeriesLineStyle");t([r],s.prototype,"setSeriesLineWidth");t([r],s.prototype,"setSeriesMarkerColor");t([r],s.prototype,"setSeriesMarkerStyle");t([r],s.prototype,"setSeriesMarkerSize");t([r],s.prototype,"setLineSmoothed");t([r],s.prototype,"setConnectLines");t([r],s.prototype,"setAreaVisible");t([r],s.prototype,"setMarkerVisible");t([r],s.prototype,"setAreaColor");return s},a,b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import y from"./DAB5R2BN.js";import x from"./KCMZSNBL.js";import w from"./7EMCHGGV.js";import v from"./TCTQ4LMU.js";import u from"./2N4MK6FQ.js";import"./VY3KBD6N.js";import t from"./MVHQR4FJ.js";import s from"./7YWZG3ZS.js";import r from"./XG3WW5GG.js";import q from"./7HGVEE7A.js";import p from"./NSOZIR5F.js";import o from"./MGEW6X3Y.js";import n from"./GDQBQQUP.js";import k from"./Q5JDSPJA.js";import j from"./PROSIXIF.js";import i from"./S5UDCCRH.js";import"./THTYR6IL.js";import h from"./TJMPLGQI.js";import g from"./KLHZFPYK.js";import"./Y7HBWU3M.js";import f from"./HWJGWDU3.js";import e from"./ML3A3MYV.js";import b from"./PRGFNLY7.js";import"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import"./EZV7JSQJ.js";import"./ADGMA3ST.js";import{_ as l,i as S,ka as d,y as c}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import"./CHQDKVVQ.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as m}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{ob:o},{q:y},,{c:g},,,,,,,,,,,,,{qa:h},,{b:u,c:p,d:b},{b:I,d:v,f:_,h:k,j:F,t:L},D])=>{var M=Object.defineProperty,x=Object.getOwnPropertyDescriptor,j=(n,e,s,t)=>{for(var i=x(e,s),r=n.length-1,f;r>=0;r--)(f=n[r])&&(i=f(e,s,i)||i);return i&&M(e,s,i),i},a=class extends b{constructor(){super(...arguments),this._chartType=m.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=c({colorIndex:e,opacity:S});if(p(s,e,this._config),_(s,e,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(e),i=h({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}I(this.defaultSeries?.lineSymbol?.style,e,this._config),v(this.defaultSeries?.lineSymbol?.width,e,this._config),k(this.defaultSeries?.markerSymbol?.style,e,this._config),F(this.defaultSeries?.markerSymbol?.size,e,this._config)}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let i=h({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);i!==void 0&&i!==this.layerInfo.objectIdField&&i!==r&&(s=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){s=!0;break}}return e||s}};j([g],a.prototype,"resetSeriesStyling");var w=[L,D];y(a,w);return a},a,b,e,f,g,h,i,j,k,n,o,p,q,r,s,t,u,v,w,x,y)
2
+ import y from"./LTQRSPSC.js";import x from"./KCMZSNBL.js";import w from"./KVUFR34S.js";import v from"./TCTQ4LMU.js";import u from"./4ACX3XOE.js";import"./VY3KBD6N.js";import t from"./MVHQR4FJ.js";import s from"./7YWZG3ZS.js";import r from"./XG3WW5GG.js";import q from"./7HGVEE7A.js";import p from"./NSOZIR5F.js";import o from"./U2CYVAIC.js";import n from"./GDQBQQUP.js";import k from"./Q5JDSPJA.js";import j from"./PROSIXIF.js";import i from"./S5UDCCRH.js";import"./THTYR6IL.js";import h from"./TJMPLGQI.js";import g from"./KLHZFPYK.js";import"./Y7HBWU3M.js";import f from"./HWJGWDU3.js";import e from"./ML3A3MYV.js";import b from"./PRGFNLY7.js";import"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import"./EZV7JSQJ.js";import"./ADGMA3ST.js";import{_ as l,i as S,ka as d,y as c}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import"./CHQDKVVQ.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as m}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{ob:o},{q:y},,{c:g},,,,,,,,,,,,,{qa:h},,{b:u,c:p,d:b},{b:I,d:v,f:_,h:k,j:F,t:L},D])=>{var M=Object.defineProperty,x=Object.getOwnPropertyDescriptor,j=(n,e,s,t)=>{for(var i=x(e,s),r=n.length-1,f;r>=0;r--)(f=n[r])&&(i=f(e,s,i)||i);return i&&M(e,s,i),i},a=class extends b{constructor(){super(...arguments),this._chartType=m.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=c({colorIndex:e,opacity:S});if(p(s,e,this._config),_(s,e,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(e),i=h({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}I(this.defaultSeries?.lineSymbol?.style,e,this._config),v(this.defaultSeries?.lineSymbol?.width,e,this._config),k(this.defaultSeries?.markerSymbol?.style,e,this._config),F(this.defaultSeries?.markerSymbol?.size,e,this._config)}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let i=h({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);i!==void 0&&i!==this.layerInfo.objectIdField&&i!==r&&(s=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){s=!0;break}}return e||s}};j([g],a.prototype,"resetSeriesStyling");var w=[L,D];y(a,w);return a},a,b,e,f,g,h,i,j,k,n,o,p,q,r,s,t,u,v,w,x,y)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import p from"./QFEZPP3R.js";import o from"./XG3WW5GG.js";import n from"./7HGVEE7A.js";import m from"./NSOZIR5F.js";import l from"./MGEW6X3Y.js";import k from"./Q5JDSPJA.js";import j from"./PROSIXIF.js";import i from"./S5UDCCRH.js";import"./THTYR6IL.js";import f from"./TJMPLGQI.js";import e from"./KLHZFPYK.js";import"./Y7HBWU3M.js";import d from"./HWJGWDU3.js";import c from"./ML3A3MYV.js";import b from"./PRGFNLY7.js";import"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import"./EZV7JSQJ.js";import"./ADGMA3ST.js";import{ta as g}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import"./CHQDKVVQ.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as h}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,{q:y},,{c:e},,z,{b:Y,d:Z,f:$},{b:U,d:V,f:X},{d:J,e:K},,{b:tt},{a:A,b:L,c:B,d:G},{a:Q,b:R},{A:q,a:c,b:f,c:p,d:l,e:d,f:u,g:v,h:_,i:b,j:S,k:O,l:w,m:D,n:C,o:M,p:T,q:E,r:F,s:W,t:j,u:x,v:I,w:N,x:H,y:P,z:k}])=>{var st=Object.defineProperty,et=Object.getOwnPropertyDescriptor,o=(a,t,i,rt)=>{for(var r=et(t,i),n=a.length-1,m;n>=0;n--)(m=a[n])&&(r=m(t,i,r)||r);return r&&st(t,i,r),r},s=class extends z{constructor(){super(...arguments),this._chartType=h.HistogramSeries}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}get numericField(){return f(this._config)}set numericField(t){p({numericField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binCount(){return u(this._config)}set binCount(t){v(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binSymbol(){return _(this._config)}set binSymbol(t){b(t,this._config)}get dataTransformationType(){return l(this._config)}set dataTransformationType(t){d(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get meanSymbol(){return w(this._config)}set meanSymbol(t){D(t,this._config)}get medianSymbol(){return C(this._config)}set medianSymbol(t){M(t,this._config)}get normalDistSymbol(){return S(this._config)}set normalDistSymbol(t){O(t,this._config)}get standardDevSymbol(){return T(this._config)}set standardDevSymbol(t){E(t,this._config)}get showNormalDistOverlay(){return F(this._config)}set showNormalDistOverlay(t){W(t,this._config)}get showMeanOverlay(){return j(this._config)}set showMeanOverlay(t){x(t,this._config)}get showMedianOverlay(){return I(this._config)}set showMedianOverlay(t){N(t,this._config)}get showStandardDevOverlay(){return H(this._config)}set showStandardDevOverlay(t){P(t,this._config)}get seriesOverlays(){return k(this._config)}set seriesOverlays(t){q(t,this._config)}generateChartTitle(){return c(this._config,this.layerInfo,this.commonStrings)}generateDefaultConfig(){return g(this.commonStrings)}};o([e],s.prototype,"numericField");o([e],s.prototype,"binCount");o([e],s.prototype,"binSymbol");o([e],s.prototype,"dataTransformationType");o([e],s.prototype,"meanSymbol");o([e],s.prototype,"medianSymbol");o([e],s.prototype,"normalDistSymbol");o([e],s.prototype,"standardDevSymbol");o([e],s.prototype,"showNormalDistOverlay");o([e],s.prototype,"showMeanOverlay");o([e],s.prototype,"showMedianOverlay");o([e],s.prototype,"showStandardDevOverlay");o([e],s.prototype,"seriesOverlays");var ot=[Q,A,L,B,G,tt,R,Y,J,Z,K,U,V,X,$];y(s,ot);return s},a,b,c,d,e,f,i,j,k,l,m,n,o,p)
2
+ import p from"./JCH3RDLR.js";import o from"./XG3WW5GG.js";import n from"./7HGVEE7A.js";import m from"./NSOZIR5F.js";import l from"./U2CYVAIC.js";import k from"./Q5JDSPJA.js";import j from"./PROSIXIF.js";import i from"./S5UDCCRH.js";import"./THTYR6IL.js";import f from"./TJMPLGQI.js";import e from"./KLHZFPYK.js";import"./Y7HBWU3M.js";import d from"./HWJGWDU3.js";import c from"./ML3A3MYV.js";import b from"./PRGFNLY7.js";import"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import"./EZV7JSQJ.js";import"./ADGMA3ST.js";import{ta as g}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import"./CHQDKVVQ.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as h}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,{q:y},,{c:e},,z,{b:Y,d:Z,f:$},{b:U,d:V,f:X},{d:J,e:K},,{b:tt},{a:A,b:L,c:B,d:G},{a:Q,b:R},{A:q,a:c,b:f,c:p,d:l,e:d,f:u,g:v,h:_,i:b,j:S,k:O,l:w,m:D,n:C,o:M,p:T,q:E,r:F,s:W,t:j,u:x,v:I,w:N,x:H,y:P,z:k}])=>{var st=Object.defineProperty,et=Object.getOwnPropertyDescriptor,o=(a,t,i,rt)=>{for(var r=et(t,i),n=a.length-1,m;n>=0;n--)(m=a[n])&&(r=m(t,i,r)||r);return r&&st(t,i,r),r},s=class extends z{constructor(){super(...arguments),this._chartType=h.HistogramSeries}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}get numericField(){return f(this._config)}set numericField(t){p({numericField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binCount(){return u(this._config)}set binCount(t){v(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binSymbol(){return _(this._config)}set binSymbol(t){b(t,this._config)}get dataTransformationType(){return l(this._config)}set dataTransformationType(t){d(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get meanSymbol(){return w(this._config)}set meanSymbol(t){D(t,this._config)}get medianSymbol(){return C(this._config)}set medianSymbol(t){M(t,this._config)}get normalDistSymbol(){return S(this._config)}set normalDistSymbol(t){O(t,this._config)}get standardDevSymbol(){return T(this._config)}set standardDevSymbol(t){E(t,this._config)}get showNormalDistOverlay(){return F(this._config)}set showNormalDistOverlay(t){W(t,this._config)}get showMeanOverlay(){return j(this._config)}set showMeanOverlay(t){x(t,this._config)}get showMedianOverlay(){return I(this._config)}set showMedianOverlay(t){N(t,this._config)}get showStandardDevOverlay(){return H(this._config)}set showStandardDevOverlay(t){P(t,this._config)}get seriesOverlays(){return k(this._config)}set seriesOverlays(t){q(t,this._config)}generateChartTitle(){return c(this._config,this.layerInfo,this.commonStrings)}generateDefaultConfig(){return g(this.commonStrings)}};o([e],s.prototype,"numericField");o([e],s.prototype,"binCount");o([e],s.prototype,"binSymbol");o([e],s.prototype,"dataTransformationType");o([e],s.prototype,"meanSymbol");o([e],s.prototype,"medianSymbol");o([e],s.prototype,"normalDistSymbol");o([e],s.prototype,"standardDevSymbol");o([e],s.prototype,"showNormalDistOverlay");o([e],s.prototype,"showMeanOverlay");o([e],s.prototype,"showMedianOverlay");o([e],s.prototype,"showStandardDevOverlay");o([e],s.prototype,"seriesOverlays");var ot=[Q,A,L,B,G,tt,R,Y,J,Z,K,U,V,X,$];y(s,ot);return s},a,b,c,d,e,f,i,j,k,l,m,n,o,p)
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{i as Fe}from"./IVLVCLDE.js";import{c as Y}from"./AK7X7SGI.js";import i from"./2N4MK6FQ.js";import f from"./KO7HQLGV.js";import e from"./QFEZPP3R.js";import d from"./LC6CY2HW.js";import c from"./7YWZG3ZS.js";import b from"./KLHZFPYK.js";import a from"./TJMTF45U.js";import{c as O,d as g,r as V}from"./ADGMA3ST.js";import{Ba as le,Ca as U,Ea as k,Fa as ne,p as $,q as R}from"./PAIRUVLU.js";import{a as ie}from"./KX7KGXKQ.js";import{e as v,l as re,m as j,s as Z}from"./SP2IPHWF.js";import{e as K}from"./QP5UAIC6.js";import{a as oe}from"./XJFVSX2E.js";import{a as h,l as S}from"./547RDEMV.js";export default $arcgis.t(([{B:D,J:se,T:T,a:J,ec:I,ob:ue,qb:fe,wb:me},{c:Q},{f:ce,g:E},{k:_,l:q,m:G,x:de},{b:ge},{a:ye,c:be,d:xe},{ka:X,la:pe,ma:ee}])=>{function De(l){let{hour:e,minute:t=0,format:r,locale:i="en-US"}=l,a=r&&Object.keys(r).length>0?r:{hour:"numeric",minute:"2-digit",hour12:!1},o=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);o=new Intl.DateTimeFormat(i,a).format(n),o.includes(":")||o.startsWith("0")&&(o=o.slice(1))}return o}function Pe(l){let{weekdayNumber:e,format:t,locale:r="en-US",firstDayOfWeek:i=7}=l,a=t&&Object.keys(t).length>0?t:{weekday:"long"},o=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(i)&&i>0&&i<=7){let n=(e+i-1)%7,c=new Date(2e3,0,2+n);o=new Intl.DateTimeFormat(r,a).format(c)}return o}function Se(l){let{monthNumber:e,format:t,locale:r="en-US"}=l,i=t&&Object.keys(t).length>0?t:{month:"long"},a=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let o=new Date(2e3,e-1);a=new Intl.DateTimeFormat(r,i).format(o)}return a}function Le(l){let{value:e,formatLocale:t,unit:r,config:i,utilsStrings:a}=l,o={label:"",value:e.toString()};switch(r){case S.DayOfWeek:o={label:a.heatChartCalendarDatePartsUnits.dayOfWeek,value:Pe({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in i?i.firstDayOfWeek:ne,locale:t})};break;case S.MonthOfYear:o={label:a.heatChartCalendarDatePartsUnits.monthOfYear,value:Se({monthNumber:e,locale:t})};break;case S.HourOfDay:o={label:a.heatChartCalendarDatePartsUnits.hourOfDay,value:De({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case S.DayOfMonth:o={label:a.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case S.DayOfYear:o={label:a.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case S.MinuteOfDay:o={label:a.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case S.WeekOfYear:o={label:a.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case S.QuarterOfYear:o={label:a.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return o}function Be(l,e){return!re(l,e)}function ot(l,e){return Be(l,e)||l!==e}function he(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function ke(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var ve=l=>{let{value:e,quoteAll:t=!1,locale:r,roundDecimals:i}=l,a=e==null?"":String(e);if(e===null)a="null";else if(e===void 0)a="";else if(typeof e=="number"&&Number.isFinite(e)&&r!==void 0){let o=ke(r),n=i??a.split(o)[1]?.length??2;a=new Intl.NumberFormat(r,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(a))&&(a=`"${a.replace(/"/gu,'""')}"`),a};function it(l,e={}){let{columns:t,delimiter:r,includeHeader:i=!0,quoteAll:a=!1,locale:o,roundDecimals:n}=e,c=l.length===0,u="";if(!c){let y=t??Object.keys(l[0]),F=[],x=r??he(o??"en");if(o!==void 0&&x!==","&&(u+=`sep=${x}\r
2
+ import{i as Fe}from"./IVLVCLDE.js";import{c as Y}from"./AK7X7SGI.js";import i from"./4ACX3XOE.js";import f from"./FDFYTCDO.js";import e from"./JCH3RDLR.js";import d from"./IXRBZPQL.js";import c from"./7YWZG3ZS.js";import b from"./KLHZFPYK.js";import a from"./TJMTF45U.js";import{c as O,d as g,r as V}from"./ADGMA3ST.js";import{Ba as le,Ca as U,Ea as k,Fa as ne,p as $,q as R}from"./PAIRUVLU.js";import{a as ie}from"./KX7KGXKQ.js";import{e as v,l as re,m as j,s as Z}from"./SP2IPHWF.js";import{e as K}from"./QP5UAIC6.js";import{a as oe}from"./XJFVSX2E.js";import{a as h,l as S}from"./547RDEMV.js";export default $arcgis.t(([{B:D,J:se,T:T,a:J,ec:I,ob:ue,qb:fe,wb:me},{c:Q},{f:ce,g:E},{k:_,l:q,m:G,x:de},{b:ge},{a:ye,c:be,d:xe},{ka:X,la:pe,ma:ee}])=>{function De(l){let{hour:e,minute:t=0,format:r,locale:i="en-US"}=l,a=r&&Object.keys(r).length>0?r:{hour:"numeric",minute:"2-digit",hour12:!1},o=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);o=new Intl.DateTimeFormat(i,a).format(n),o.includes(":")||o.startsWith("0")&&(o=o.slice(1))}return o}function Pe(l){let{weekdayNumber:e,format:t,locale:r="en-US",firstDayOfWeek:i=7}=l,a=t&&Object.keys(t).length>0?t:{weekday:"long"},o=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(i)&&i>0&&i<=7){let n=(e+i-1)%7,c=new Date(2e3,0,2+n);o=new Intl.DateTimeFormat(r,a).format(c)}return o}function Se(l){let{monthNumber:e,format:t,locale:r="en-US"}=l,i=t&&Object.keys(t).length>0?t:{month:"long"},a=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let o=new Date(2e3,e-1);a=new Intl.DateTimeFormat(r,i).format(o)}return a}function Le(l){let{value:e,formatLocale:t,unit:r,config:i,utilsStrings:a}=l,o={label:"",value:e.toString()};switch(r){case S.DayOfWeek:o={label:a.heatChartCalendarDatePartsUnits.dayOfWeek,value:Pe({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in i?i.firstDayOfWeek:ne,locale:t})};break;case S.MonthOfYear:o={label:a.heatChartCalendarDatePartsUnits.monthOfYear,value:Se({monthNumber:e,locale:t})};break;case S.HourOfDay:o={label:a.heatChartCalendarDatePartsUnits.hourOfDay,value:De({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case S.DayOfMonth:o={label:a.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case S.DayOfYear:o={label:a.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case S.MinuteOfDay:o={label:a.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case S.WeekOfYear:o={label:a.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case S.QuarterOfYear:o={label:a.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return o}function Be(l,e){return!re(l,e)}function ot(l,e){return Be(l,e)||l!==e}function he(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function ke(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var ve=l=>{let{value:e,quoteAll:t=!1,locale:r,roundDecimals:i}=l,a=e==null?"":String(e);if(e===null)a="null";else if(e===void 0)a="";else if(typeof e=="number"&&Number.isFinite(e)&&r!==void 0){let o=ke(r),n=i??a.split(o)[1]?.length??2;a=new Intl.NumberFormat(r,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(a))&&(a=`"${a.replace(/"/gu,'""')}"`),a};function it(l,e={}){let{columns:t,delimiter:r,includeHeader:i=!0,quoteAll:a=!1,locale:o,roundDecimals:n}=e,c=l.length===0,u="";if(!c){let y=t??Object.keys(l[0]),F=[],x=r??he(o??"en");if(o!==void 0&&x!==","&&(u+=`sep=${x}\r
3
3
  `),i){let p=y.map(d=>ve({value:d,quoteAll:a,locale:o,roundDecimals:n}));F.push(p.join(x))}l.forEach(p=>{let d=y.map(s=>ve({value:p[s],quoteAll:a,locale:o,roundDecimals:n}));F.push(d.join(x))}),u+=F.join(`\r
4
4
  `)}return u}function lt(l){let{rawData:e,config:t,layer:r,fieldList:i,formatters:a,formatLocale:o,utilsStrings:n}=l,c=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=oe(t?.series);u===h.HistogramSeries?c=$e(t,e,a):u===h.HeatSeries?c=Ce({config:t,rows:e,layer:r,fieldList:i,formatLocale:o,utilsStrings:n}):u===h.BarSeries||u===h.LineSeries||u===h.ComboLineAndBarSeries?c=Ve({config:t,rows:e,layer:r,fieldList:i,formatters:a}):u===h.PieSeries?c=Ie({config:t,rows:e,layer:r,fieldList:i,formatters:a}):u===h.BoxPlotSeries&&(c=je({config:t,rows:e,layer:r,fieldList:i,formatters:a}))}return c}function A(l){let{value:e,originalValue:t,formatter:r}=l,i=e;return r!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(i=r(e,t)),i}function B(l){let{field:e,value:t,layer:r,fieldList:i,formatter:a}=l,o;if(t==null||typeof t=="boolean"||Array.isArray(t))o=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let n=r!==void 0&&(typeof t=="string"||typeof t=="number")?me({queryObject:r,fieldName:e,fieldValue:t}):void 0;o=Ae({field:e,value:n??t,fieldList:i})}else o=t;return A({value:o,originalValue:t,formatter:a})}function C(l){let{field:e,row:t,layer:r,fieldList:i,formatter:a}=l,o=Object.keys(t).find(c=>c.toLocaleLowerCase()===e.toLocaleLowerCase()),n=t[o??e];return B({field:e,value:n,layer:r,fieldList:i,formatter:a})}function te(l){let{config:e,seriesIndex:t,formatters:r}=l;return e.series?.[t]?.assignToSecondValueAxis===!0?r?.secondaryYAxisLabelFormatter:r?.yAxisLabelFormatter}function Oe(l){let{config:e,splitValueIndex:t,formatters:r}=l;return e?.series?.[t]?.assignToSecondValueAxis===!0?r?.secondaryYAxisLabelFormatter:r?.yAxisLabelFormatter}function Ce(l){let{config:e,rows:t,layer:r,fieldList:i,formatLocale:a,utilsStrings:o}=l,[n]=e.series,c=n.x,u=X(e),y=ee(e),F=E({config:e,xAxisField:c,numericFields:y,aggregationType:u,layer:r,fieldList:i});return t.map(x=>{let p=x[R.xField],d=x[R.yField],s=x[R.valueField],m=typeof s=="number"&&Number.isFinite(s)?s.toFixed(2):s,f={label:n.x,value:p},b={label:n.y,value:d};if(n.xTemporalBinning!==void 0){let{label:L,value:w}=Le({value:Number(p),config:e,formatLocale:a,unit:n.xTemporalBinning.unit,utilsStrings:o});!V(L)&&!V(w)&&(f={label:L,value:w})}if(n.yTemporalBinning!==void 0){let{label:L,value:w}=Le({value:Number(d),config:e,formatLocale:a,unit:n.yTemporalBinning.unit,utilsStrings:o});!V(L)&&!V(w)&&(b={label:L,value:w})}return{[f.label]:f.value,[b.label]:b.value,[F.description]:m}})}function $e(l,e,t){let r=ge(l),i=`${v(Y.Min)} of ${r}`,a=`${v(Y.Max)} of ${r}`,o=`${v(Y.Count)} of ${r}`;return e.map(n=>{let{minValue:c,maxValue:u,count:y}=n,F=j(c),x=j(u),p=j(y),d={};if(F&&(d[i]=A({value:c,originalValue:c,formatter:t?.xAxisLabelFormatter})),x&&(d[a]=A({value:u,originalValue:u,formatter:t?.xAxisLabelFormatter})),F&&x){let s=A({value:c,originalValue:c,formatter:t?.xAxisLabelFormatter}),m=A({value:u,originalValue:u,formatter:t?.xAxisLabelFormatter});d.Label=`${String(s??"")} - ${String(m??"")}`}return p&&(d[o]=A({value:y,originalValue:y,formatter:t?.yAxisLabelFormatter})),d})}function Me(l,e,t){let r=Object.keys(l),i=[];return t?i=t.map(a=>r.find(o=>o.toLowerCase().includes(a.toLowerCase()))||""):i=r.filter(a=>a.toLowerCase().includes(e.toLowerCase())),i.filter(a=>a.trim()!=="")}function Ve(l){let{config:e,rows:t,layer:r,fieldList:i,formatters:a}=l,o=ce(e),n=X(e),c=v(n),u=ee(e),y=T(e.series),F=Q(e),x=pe(e),{idField:p,isTraditionalTypeOID:d}=ue(se(r)),s=d&&u.length===1&&u[0]===p,m;switch(y){case g.BarAndLineNoAggregation:m=t.map(f=>{let b=C({field:o,row:f,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter}),L={[o]:b};return Object.assign(L,...u.map((w,P)=>({[w]:A({value:f[w],originalValue:f[w],formatter:te({config:e,seriesIndex:P,formatters:a})})}))),L});break;case g.BarAndLineFromFields:m=Z(u,t).map(([f,b])=>{let L=I(e.series)[0],w={};return b!==void 0&&f!==void 0&&(w.Field=A({value:b[o],originalValue:b[o],formatter:a?.xAxisLabelFormatter}),w.Value=A({value:b[L],originalValue:b[L],formatter:te({config:e,seriesIndex:0,formatters:a})})),w});break;case g.BarAndLineMonoField:case g.BarAndLineMultiFields:m=t.map(f=>{let b=C({field:o,row:f,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter}),L={[o]:b};return u.forEach((w,P)=>{let M=E({config:e,xAxisField:o,numericFields:u,aggregationType:n,layer:r,numericFieldIndex:P,fieldList:i}),H=I(e.series)[P],ae=H,z=H;H.toLowerCase()===M.name.toLowerCase()&&(ae=M.description,z=M.name),L[ae]=A({value:f[z],originalValue:f[z],formatter:te({config:e,seriesIndex:P,formatters:a})})}),L});break;case g.BarAndLineSplitBy:m=t.flatMap(f=>{let b=I(e.series),L=C({field:o,row:f,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter});return F.map((w,P)=>{let M=B({field:x,value:w,layer:r,fieldList:i});return{[o]:L,[x]:M,[s?c:`${c} of ${u[0]}`]:A({value:f[b[P]],originalValue:f[b[P]],formatter:Oe({config:e,splitValueIndex:P,formatters:a})})}})});break;case g.BarAndLineSplitByNoAggregation:m=t.map(f=>{let b=C({field:o,row:f,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter}),L=Me(f,u[0],F),w=B({field:x,value:f[x],layer:r,fieldList:i});return{[o]:b,[x]:w,[u[0]]:A({value:f[L[0]],originalValue:f[L[0]],formatter:a?.yAxisLabelFormatter})}});break;default:m=t}return m}function Te(l){if(l.length===0)return[];let e=l.reduce((t,r)=>{for(let[i,a]of Object.entries(r))typeof a=="number"&&Number.isFinite(a)&&(t[i]=(t[i]??0)+a);return t},{});return l.map(t=>{let r={...t};for(let[i,a]of Object.entries(t))if(typeof a=="number"&&e[i]>0){let o=a/e[i];r[`${i}${k}`]=o.toPrecision(2)}return r})}function Ie(l){let{config:e,rows:t,layer:r,fieldList:i,formatters:a}=l,o=ye(e),n=T(e.series),c=Te(t),u=be(e),y=n!==g.PieFromFields?K.Category:K.Fields,F=xe(e,y),x=E({config:e,xAxisField:o,numericFields:u,aggregationType:F,mode:y,layer:r,fieldList:i}),p=I(e.series)[0];return n===g.PieFromCategory||n===g.PieNoAggregation?c=c.map(d=>{let s=C({field:o,row:d,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter}),m={[o]:s},f=p,b=p;return n===g.PieFromCategory&&p.toLowerCase()===x.name.toLowerCase()&&(f=x.description,b=x.name),m[f]=A({value:d[b],originalValue:d[b],formatter:a?.yAxisLabelFormatter}),m[v(k.trim())]=A({value:d[`${b}${k}`],originalValue:d[`${b}${k}`],formatter:a?.yAxisLabelFormatter}),m}):n===g.PieFromFields&&(c=Z(u,c).map(([d,s])=>{let m={};return s!==void 0&&d!==void 0&&(m.Field=A({value:s[o],originalValue:s[o],formatter:a?.xAxisLabelFormatter}),m.Value=A({value:s[p],originalValue:s[p],formatter:a?.yAxisLabelFormatter}),m[v(k.trim())]=A({value:s[`${p}${k}`],originalValue:s[`${p}${k}`],formatter:a?.yAxisLabelFormatter})),m})),c}function W(l){let{rawData:e,keyBase:t="",outRow:r}=l;for(let[i,a]of Object.entries(D)){let o=e[t+a];o!==void 0&&(r[i]=o);let n=e[t+a+le];n!==void 0&&(r[`${i} Outlier`]=n);let c=e[t+a+U];c!==void 0&&(r[`${i} Z-Score`]=c)}}function N(l){let{rawData:e,outRow:t,config:r,boxPlotSubType:i,layer:a,fieldList:o}=l,n=_(r),c=G(r),u=q(r),y=D.Outlier,F=$;switch(i){case g.BoxPlotMonoFieldAndCategory:{let d=Ae({field:n,value:e[n],fieldList:o});t[n]=d,t[v(D.Outlier)]=e[y];break}case g.BoxPlotMultiFieldsAndCategory:{t[v(n)]=e[n],y=`${c.find(d=>Object.keys(e).some(s=>s.toLowerCase().includes(d.toLowerCase())))??""}_${y}`,t[v(D.Outlier)]=e[y];break}case g.BoxPlotMonoFieldAndSplitBy:case g.BoxPlotMultiFieldsAndSplitBy:{let d=String(e[u]),s=B({field:u,value:d,layer:a,fieldList:o});y=`${d}_${y}`,t.Field=e[F],t[v(u)]=s,t[v(D.Outlier)]=e[y];break}case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{let d=String(e[u]),s=B({field:u,value:d,layer:a,fieldList:o});y=`${d}_${y}`,t[v(n)]=e[n],t[v(u)]=s,t[v(D.Outlier)]=e[y];break}case g.BoxPlotMonoField:case g.BoxPlotMultiFields:default:{t.Field=e[F],t[v(D.Outlier)]=e[y];break}}let x=`${y}${U}`,p=e[x];p!==void 0&&(t[`${v(D.Outlier)} Z-Score`]=p)}function Ne(l){let{rawData:e,outRow:t,config:r,splitByValue:i,layer:a,fieldList:o}=l,n=T(r.series),c=e[`${i}_${D.Average}`],u=q(r),y=_(r),F="";switch(n){case g.BoxPlotMonoFieldAndSplitBy:{F=`${i}_${u}`,t.Field=e[$],t[v(u)]=B({field:u,value:e[F],layer:a,fieldList:o});break}case g.BoxPlotMultiFieldsAndSplitBy:{F=`${i}_${D.Average}`,t.Field=e[$],t[v(u)]=B({field:u,value:e[F],layer:a,fieldList:o});break}case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{F=`${i}_${D.Average}`,t[y]=e[y],t[v(u)]=B({field:u,value:i,layer:a,fieldList:o});break}}t[v(D.Average)]=c;let x=`${String(c)}${U}`,p=e[x];p!==void 0&&(t[`${v(D.Average)} Z-Score`]=p)}function je(l){let{config:e,rows:t,layer:r,fieldList:i,formatters:a}=l,o=T(e.series),n=o,c=de(e),u=Array.isArray(t)&&t.length>0&&t.every(s=>s[O.boxPlot.boxPlotMeanLineMarkerId]!==void 0);c&&!u&&(o===g.BoxPlotMonoFieldAndSplitBy?n=g.BoxPlotMonoField:o===g.BoxPlotMultiFieldsAndSplitBy?n=g.BoxPlotMultiFields:o===g.BoxPlotMonoFieldAndCategoryAndSplitBy&&(n=g.BoxPlotMonoFieldAndCategory));let y=_(e),F=G(e),x=Q(e),p=q(e),d;switch(n){case g.BoxPlotMonoField:case g.BoxPlotMonoFieldAndCategory:{d=t.map(s=>{let m={};if(s[O.boxPlot.boxPlotOutlierId])N({rawData:s,outRow:m,config:e,boxPlotSubType:n,layer:r,fieldList:i});else{if(n===g.BoxPlotMonoFieldAndCategory){let f=C({field:y,row:s,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter});m[y]=f}else n===g.BoxPlotMonoField&&(m.Field=s[$]);W({rawData:s,outRow:m})}return m});break}case g.BoxPlotMultiFields:{d=t.flatMap(s=>{let m={};return s[O.boxPlot.boxPlotOutlierId]?N({rawData:s,outRow:m,config:e,boxPlotSubType:n,layer:r,fieldList:i}):(m.Field=s[$],W({rawData:s,outRow:m})),[m]});break}case g.BoxPlotMultiFieldsAndCategory:{d=t.flatMap(s=>F.map(m=>{let f={},b="";if(f.Field=m,s[O.boxPlot.boxPlotOutlierId])N({rawData:s,outRow:f,config:e,boxPlotSubType:n,layer:r,fieldList:i});else{if(n===g.BoxPlotMultiFieldsAndCategory){let L=C({field:y,row:s,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter});f[y]=L,b=`${m}_`}W({rawData:s,outRow:f,keyBase:b})}return f}));break}case g.BoxPlotMonoFieldAndSplitBy:case g.BoxPlotMultiFieldsAndSplitBy:case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{d=t.flatMap(s=>{if(s[O.boxPlot.boxPlotOutlierId]){let m={};return N({rawData:s,outRow:m,config:e,boxPlotSubType:n,layer:r,fieldList:i}),[m]}else return s[O.boxPlot.boxPlotMeanLineMarkerId]?x?.map(m=>{let f={};return Ne({rawData:s,outRow:f,splitByValue:m,config:e,layer:r,fieldList:i}),f}):x.map(m=>{let f={},b=B({field:p,value:m,layer:r,fieldList:i});if(n===g.BoxPlotMonoFieldAndCategoryAndSplitBy){let L=C({field:y,row:s,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter});f[y]=L}return s[O.boxPlot.boxPlotOutlierId]?N({rawData:s,outRow:f,config:e,boxPlotSubType:n}):(f[p]=b,W({rawData:s,outRow:f,keyBase:`${m}_`})),f})});break}default:d=t}return d}var we=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},Re=l=>J.fromJSDate(l,{zone:"local"}).toFormat("yyyy-LL-dd"),Ue=l=>J.fromJSDate(l,{zone:"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),Ae=l=>{let{field:e,value:t,fieldList:r}=l,i=t,a=r?.find(o=>o.name===e);if(a){let o=a.type===ie.DateOnly;fe(a)&&!o?i=we(t)?Ue(new Date(t)):t:o&&typeof t!="string"&&(i=we(t)?Re(new Date(t)):t)}return i};function nt(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:r,syncViewTimeExtent:i}=l,a=e;return t&&(r===Fe.Refresh||i)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(a={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),a}return{a:De,b:Pe,c:Se,d:Le,e:Be,f:ot,g:it,h:lt,i:nt}},a,b,c,d,e,f,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import v from"./LC6CY2HW.js";import{a as Fs,b as M,c as Bs,d as I}from"./VY3KBD6N.js";import u from"./MVHQR4FJ.js";import t from"./7YWZG3ZS.js";import s from"./XG3WW5GG.js";import r from"./7HGVEE7A.js";import q from"./NSOZIR5F.js";import o from"./MGEW6X3Y.js";import n from"./Q5JDSPJA.js";import l from"./PROSIXIF.js";import k from"./S5UDCCRH.js";import"./THTYR6IL.js";import j from"./TJMPLGQI.js";import i from"./KLHZFPYK.js";import"./Y7HBWU3M.js";import e from"./HWJGWDU3.js";import d from"./ML3A3MYV.js";import c from"./PRGFNLY7.js";import{i as h}from"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import"./EZV7JSQJ.js";import"./ADGMA3ST.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"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import{l as g}from"./CHQDKVVQ.js";import"./KDJ5RVHA.js";import{b as W}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as b}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,{o:E,p:U,q:N},,{c:r},,rs,{b:ds,d:us,f:Ss},{b:ps,d:ys,f:ms},{d:cs,e:ls},,{b:_s},{a:os,b:ns,c:as,d:hs},{a:gs,b:fs},,{b:Ls},{A: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"./IXRBZPQL.js";import{a as Fs,b as M,c as Bs,d as I}from"./VY3KBD6N.js";import u from"./MVHQR4FJ.js";import t from"./7YWZG3ZS.js";import s from"./XG3WW5GG.js";import r from"./7HGVEE7A.js";import q from"./NSOZIR5F.js";import o from"./U2CYVAIC.js";import n from"./Q5JDSPJA.js";import l from"./PROSIXIF.js";import k from"./S5UDCCRH.js";import"./THTYR6IL.js";import j from"./TJMPLGQI.js";import i from"./KLHZFPYK.js";import"./Y7HBWU3M.js";import e from"./HWJGWDU3.js";import d from"./ML3A3MYV.js";import c from"./PRGFNLY7.js";import{i as h}from"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import"./EZV7JSQJ.js";import"./ADGMA3ST.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"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import{l as g}from"./CHQDKVVQ.js";import"./KDJ5RVHA.js";import{b as W}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as b}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,{o:E,p:U,q:N},,{c:r},,rs,{b:ds,d:us,f:Ss},{b:ps,d:ys,f:ms},{d:cs,e:ls},,{b:_s},{a:os,b:ns,c:as,d:hs},{a:gs,b:fs},,{b:Ls},{A: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)