@arcgis/charts-components 5.2.0-next.163 → 5.2.0-next.164

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 (83) hide show
  1. package/dist/cdn/{ZTMZ6GG4.js → 3BD4I5JQ.js} +1 -1
  2. package/dist/cdn/{TPWN3WU6.js → 3TO4L72A.js} +1 -1
  3. package/dist/cdn/{HYQNWCWA.js → 5OIYMIQP.js} +1 -1
  4. package/dist/cdn/5XXJOV3V.js +2 -0
  5. package/dist/cdn/{F4PYAQO2.js → 6ALZCZ36.js} +1 -1
  6. package/dist/cdn/{WJINSWQO.js → 6RZNHZEN.js} +1 -1
  7. package/dist/cdn/{QPMXPJOU.js → 6SKZWI33.js} +1 -1
  8. package/dist/cdn/{6PN24NZH.js → A7U4VQMX.js} +1 -1
  9. package/dist/cdn/{YAH2CORT.js → CDVLQX4S.js} +1 -1
  10. package/dist/cdn/{VBZUDWPR.js → DW44U5PH.js} +1 -1
  11. package/dist/cdn/{IDULNX4O.js → ETHXVKWT.js} +1 -1
  12. package/dist/cdn/{L3P6D53Z.js → G63YJSVM.js} +1 -1
  13. package/dist/cdn/{4SKI2UZ4.js → G7VDU373.js} +1 -1
  14. package/dist/cdn/{UQCVYMWO.js → H4XMNS3O.js} +1 -1
  15. package/dist/cdn/{JXJGHXNJ.js → HGJNYEUX.js} +1 -1
  16. package/dist/cdn/{MMYG2RYL.js → I56GEKJB.js} +1 -1
  17. package/dist/cdn/{57IBZI2Q.js → IL763V5P.js} +1 -1
  18. package/dist/cdn/{HTC5S4WI.js → KYL7MGSG.js} +1 -1
  19. package/dist/cdn/{DHXQHBHG.js → MGLAVOUI.js} +1 -1
  20. package/dist/cdn/{SNQONC4I.js → OQ4UEZRC.js} +1 -1
  21. package/dist/cdn/{FN2RSJVM.js → PAFLJ3WT.js} +1 -1
  22. package/dist/cdn/{HFXBJYPZ.js → PXU4TMFH.js} +1 -1
  23. package/dist/cdn/{GBJ2EWWV.js → QARQR7H5.js} +1 -1
  24. package/dist/cdn/{XWZLBTHL.js → RCG3QHMV.js} +1 -1
  25. package/dist/cdn/{Y6FVIABL.js → RGK27YR7.js} +1 -1
  26. package/dist/cdn/{UMPUQD5F.js → SATVPAKF.js} +1 -1
  27. package/dist/cdn/{KQ74SEOV.js → SNFP2PAX.js} +1 -1
  28. package/dist/cdn/SQHO6UMU.js +2 -0
  29. package/dist/cdn/{J2J3NXRC.js → U7COJZ2D.js} +1 -1
  30. package/dist/cdn/{3EF66ZTP.js → UIE52DE3.js} +19 -19
  31. package/dist/cdn/{O2WFSEOJ.js → WLK4WDAW.js} +1 -1
  32. package/dist/cdn/{MDZELM6Q.js → WNFNL4XM.js} +1 -1
  33. package/dist/cdn/{BPJQFWYG.js → WX5OSLU3.js} +1 -1
  34. package/dist/cdn/{UN4K7L7T.js → XCZG24EM.js} +1 -1
  35. package/dist/cdn/{UI252GPU.js → XJIL6CYH.js} +1 -1
  36. package/dist/cdn/{QU4RD5RM.js → XP4MBNF6.js} +1 -1
  37. package/dist/cdn/{ANON4Y5O.js → XTEZ6SCO.js} +1 -1
  38. package/dist/cdn/{34EBYEM7.js → XTQ4C5NA.js} +1 -1
  39. package/dist/cdn/{WEVL6WYI.js → XXEU3UNC.js} +1 -1
  40. package/dist/cdn/{32HL4LJM.js → ZCU3SS64.js} +1 -1
  41. package/dist/cdn/{VSD6BE2P.js → ZZXYM44J.js} +1 -1
  42. package/dist/cdn/index.js +1 -1
  43. package/dist/cdn/model/shared/setup-utils.js +1 -1
  44. package/dist/chunks/action-bar-utils.js +1 -1
  45. package/dist/chunks/box-plot-data.js +1 -1
  46. package/dist/chunks/data.js +16 -16
  47. package/dist/chunks/generate-x-axis-title.js +9 -9
  48. package/dist/chunks/histogram-data.js +10 -10
  49. package/dist/chunks/index.js +5 -5
  50. package/dist/chunks/index3.js +1 -1
  51. package/dist/chunks/pie-chart-data.js +1 -1
  52. package/dist/chunks/pie-chart-model.js +162 -162
  53. package/dist/chunks/scatterplot-model.js +1 -1
  54. package/dist/chunks/serial-chart-data.js +1 -1
  55. package/dist/chunks/utils.js +1 -1
  56. package/dist/chunks/web-component-utils.js +1 -1
  57. package/dist/components/arcgis-chart/customElement.js +2080 -2058
  58. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  59. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  60. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  61. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +5 -5
  62. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  63. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  64. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +4 -4
  65. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
  66. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +3 -3
  67. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +6 -6
  68. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +5 -5
  69. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -5
  70. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +5 -5
  71. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +38 -34
  72. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  73. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  74. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  75. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  76. package/dist/docs/api.json +1 -1
  77. package/dist/docs/docs.json +1 -1
  78. package/dist/docs/web-types.json +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/utils/chart-config/converter/index.js +18 -18
  81. package/package.json +4 -4
  82. package/dist/cdn/E6TZMNXL.js +0 -2
  83. package/dist/cdn/NW7U6HWL.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import k from"./KQ74SEOV.js";import{b as e,c as t,d as l}from"./DRYZWCWX.js";import j from"./BWLIKQZM.js";import{a as u}from"./POA2XTTK.js";import{a as E}from"./WZFDIC2M.js";import i from"./JR2RRIKO.js";import h from"./5RI6YXV2.js";import{a as r,p as b}from"./O4TPXFX4.js";import f from"./LEUIZWRV.js";import c from"./3L5TASX6.js";import a from"./7DHOI5P2.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./ZM64YDWU.js";import{A as v,B as M,C as O,D as A,E as n,F as m,H as _,g as z,i as s,n as d,z as g}from"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as x}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{j:p},,,,{a:L},{r:h},{a:F}])=>{function R(f){return f?.tagName.toLowerCase()==="arcgis-chart"}var Z={actionBar:"action-bar"},q=z`.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}`,S=class extends M{constructor(){super(...arguments),this.calciteActionBar=g(),this.exportCalciteActionBar=g(),this.expandAction=null,this._messages=E(),this.commonStrings=E({name:"common",blocking:!0}),this.handleMouseOver=a=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let o=a.target;this.actionTooltip!==void 0&&(this.actionTooltip=h(this.actionTooltip));let i;o?.tagName==="CALCITE-ACTION"?i=o:(o?.tagName==="CALCITE-ACTION-MENU"||o?.tagName==="DIV")&&(i=o.firstChild),i!==void 0&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({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=h(this.actionTooltip)},this._csvExportExclusionList=[x.ScatterSeries,x.BoxPlotSeries],this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartActive=!1,this.editChartState=l.Disabled,this.editChartEnabled=!1,this.legendToggle=t.Inactive,this.legendActive=!1,this.legendState=l.Enabled,this.legendDisabled=!1,this.rotateChartToggle=t.Inactive,this.rotateChartActive=!1,this.rotateChartState=l.Enabled,this.rotateChartDisabled=!1,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionActive=!1,this.filterBySelectionState=l.Enabled,this.filterBySelectionDisabled=!1,this.filterByExtentToggle=t.Inactive,this.filterByViewExtentActive=!1,this.filterByExtentState=l.Enabled,this.filterByViewExtentDisabled=!1,this.actionBarSelectionMode=p.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionActive=!1,this.selectionState=l.Enabled,this.selectionDisabled=!1,this.zoomToggle=t.Inactive,this.zoomActive=!1,this.zoomState=l.Enabled,this.zoomDisabled=!1,this.fullExtentToggle=t.Inactive,this.fullExtentActive=!1,this.fullExtentState=l.Enabled,this.fullExtentDisabled=!1,this.clearSelectionToggle=t.Inactive,this.clearSelectionActive=!1,this.clearSelectionState=l.Enabled,this.clearSelectionDisabled=!1,this.switchSelectionToggle=t.Inactive,this.switchSelectionActive=!1,this.switchSelectionState=l.Enabled,this.switchSelectionDisabled=!1,this.exportAsImageState=l.Enabled,this.exportAsImageDisabled=!1,this.exportAsCSVState=l.Enabled,this.exportAsCSVDisabled=!1,this.disableCSVExportForChartTypes=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=l.Enabled,this.exportActionDisabled=!1,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=d(),this.arcgisDefaultActionSelect=d()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartActive:5,editChartState:1,editChartEnabled:5,editChartTitle:1,legendToggle:1,legendActive:5,legendState:1,legendDisabled:5,legendTitle:1,rotateChartToggle:1,rotateChartActive:5,rotateChartState:1,rotateChartDisabled:5,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionActive:5,filterBySelectionState:1,filterBySelectionDisabled:5,filterBySelectionTitle:1,filterByExtentToggle:1,filterByViewExtentActive:5,filterByExtentState:1,filterByViewExtentDisabled:5,filterByExtentTitle:1,filterByViewExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionActive:5,selectionState:1,selectionDisabled:5,selectionTitle:1,zoomToggle:1,zoomActive:5,zoomState:1,zoomDisabled:5,zoomTitle:1,fullExtentToggle:1,fullExtentActive:5,fullExtentState:1,fullExtentDisabled:5,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionActive:5,clearSelectionState:1,clearSelectionDisabled:5,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionActive:5,switchSelectionState:1,switchSelectionDisabled:5,switchSelectionTitle:1,exportAsImageState:1,exportAsImageDisabled:5,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVDisabled:5,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,csvExportExclusionList:0,exportActionState:1,exportActionDisabled:5,expanded:5,hiddenActions:0}}static{this.styles=q}load(){this.chartElement=R(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(a){let o=a.currentTarget,i={actionId:o.id,actionActive:!1};switch(o.id){case e.EditChart:{let c=!(this.editChartToggle===t.Active||this.editChartActive);this.editChartToggle=c?t.Active:t.Inactive,this.editChartActive=c,i.actionActive=c;break}case e.Legend:{let c=!(this.legendToggle===t.Active||this.legendActive);this.legendToggle=c?t.Active:t.Inactive,this.legendActive=c,i.actionActive=c,r(this.chartElement?.model)&&b(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(r(this.chartElement.model)?b(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.RotateChart:{let c=!(this.rotateChartToggle===t.Active||this.rotateChartActive);this.rotateChartToggle=c?t.Active:t.Inactive,this.rotateChartActive=c,i.actionActive=c,this.chartElement?.model&&(r(this.chartElement.model)?L(this.chartElement.model)&&(this.chartElement.model.rotated=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.FilterBySelection:{let c=!(this.filterBySelectionToggle===t.Active||this.filterBySelectionActive);this.filterBySelectionToggle=c?t.Active:t.Inactive,this.filterBySelectionActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break}case e.FilterByViewExtent:{let c=!(this.filterByExtentToggle===t.Active||this.filterByViewExtentActive);this.filterByExtentToggle=c?t.Active:t.Inactive,this.filterByViewExtentActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterByViewExtent=i.actionActive);break}case e.Selection:{this.selectionToggle=t.Active,this.selectionActive=!0,this.zoomToggle=t.Inactive,this.zoomActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break}case e.Zoom:{this.zoomToggle=t.Active,this.zoomActive=!0,this.selectionToggle=t.Inactive,this.selectionActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=p.Zoom);break}case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active||this.clearSelectionActive,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active||this.fullExtentActive,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active||this.switchSelectionActive,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=h(this.actionTooltip))}handleSlotChange(a){let o=a.currentTarget.assignedElements();for(let i of o)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(a=>{let o=a;o.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=m(s`<calcite-tooltip style=${A({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=h(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))})))}renderDefaultActions(){let a=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),o=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=a.includes(e.EditChart),c=a.includes(e.Legend),T=a.includes(e.RotateChart),$=a.includes(e.FilterBySelection),C=a.includes(e.FilterByViewExtent)&&!o,D=a.includes(e.Zoom),y=a.includes(e.Selection),B=a.includes(e.ClearSelection),w=a.includes(e.FullExtent),k=a.includes(e.SwitchSelection),I=a.includes(e.ExportAsImage),V=a.includes(e.ExportAsCSV);return[c||T?s`<calcite-action-group>${i?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??n} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active||this.editChartActive} .disabled=${this.editChartState===l.Disabled||!this.editChartEnabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${c?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??n} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .active=${this.legendToggle===t.Active||this.legendActive} .disabled=${this.legendState===l.Disabled||this.legendDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${T?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??n} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active||this.rotateChartActive} .disabled=${this.rotateChartState===l.Disabled||this.rotateChartDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,$||C?s`<calcite-action-group>${$?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??n} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active||this.filterBySelectionActive} .disabled=${this.filterBySelectionState===l.Disabled||this.filterBySelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${C?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByViewExtent??n} icon=extent-filter .text=${(this.filterByExtentTitle||this.filterByViewExtentTitle)??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active||this.filterByViewExtentActive} .disabled=${this.filterByExtentState===l.Disabled||this.filterByViewExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||D||w||B||k?s`<calcite-action-group>${D?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??n} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active||this.zoomActive} .disabled=${this.zoomState===l.Disabled||this.zoomDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??n} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active||this.selectionActive} .disabled=${this.selectionState===l.Disabled||this.selectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??n} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active||this.clearSelectionActive} .disabled=${this.clearSelectionState===l.Disabled||this.clearSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${w?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??n} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active||this.fullExtentActive} .disabled=${this.fullExtentState===l.Disabled||this.fullExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??n} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active||this.switchSelectionActive} .disabled=${this.switchSelectionState===l.Disabled||this.switchSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||V?s`<calcite-action-menu .label=${this._messages?.export??""} ${v(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===l.Disabled||this.exportActionDisabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?s`<div><calcite-action id=${e.ExportAsImage??n} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===l.Disabled||this.exportAsImageDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${V?s`<div><calcite-action id=${e.ExportAsCSV??n} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===l.Disabled||this.exportAsCSVDisabled||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 s`<calcite-action-bar class=${O(Z.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${v(this.calciteActionBar)}><slot name=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};_("arcgis-charts-action-bar",S);return S},a,c,f,h,i,j,k)
2
+ import k from"./SNFP2PAX.js";import{b as e,c as t,d as l}from"./DRYZWCWX.js";import j from"./BWLIKQZM.js";import{a as u}from"./POA2XTTK.js";import{a as E}from"./WZFDIC2M.js";import i from"./JR2RRIKO.js";import h from"./5RI6YXV2.js";import{a as r,p as b}from"./O4TPXFX4.js";import f from"./LEUIZWRV.js";import c from"./3L5TASX6.js";import a from"./7DHOI5P2.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./ZM64YDWU.js";import{A as v,B as M,C as O,D as A,E as n,F as m,H as _,g as z,i as s,n as d,z as g}from"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as x}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{j:p},,,,{a:L},{r:h},{a:F}])=>{function R(f){return f?.tagName.toLowerCase()==="arcgis-chart"}var Z={actionBar:"action-bar"},q=z`.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}`,S=class extends M{constructor(){super(...arguments),this.calciteActionBar=g(),this.exportCalciteActionBar=g(),this.expandAction=null,this._messages=E(),this.commonStrings=E({name:"common",blocking:!0}),this.handleMouseOver=a=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let o=a.target;this.actionTooltip!==void 0&&(this.actionTooltip=h(this.actionTooltip));let i;o?.tagName==="CALCITE-ACTION"?i=o:(o?.tagName==="CALCITE-ACTION-MENU"||o?.tagName==="DIV")&&(i=o.firstChild),i!==void 0&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({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=h(this.actionTooltip)},this._csvExportExclusionList=[x.ScatterSeries,x.BoxPlotSeries],this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartActive=!1,this.editChartState=l.Disabled,this.editChartEnabled=!1,this.legendToggle=t.Inactive,this.legendActive=!1,this.legendState=l.Enabled,this.legendDisabled=!1,this.rotateChartToggle=t.Inactive,this.rotateChartActive=!1,this.rotateChartState=l.Enabled,this.rotateChartDisabled=!1,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionActive=!1,this.filterBySelectionState=l.Enabled,this.filterBySelectionDisabled=!1,this.filterByExtentToggle=t.Inactive,this.filterByViewExtentActive=!1,this.filterByExtentState=l.Enabled,this.filterByViewExtentDisabled=!1,this.actionBarSelectionMode=p.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionActive=!1,this.selectionState=l.Enabled,this.selectionDisabled=!1,this.zoomToggle=t.Inactive,this.zoomActive=!1,this.zoomState=l.Enabled,this.zoomDisabled=!1,this.fullExtentToggle=t.Inactive,this.fullExtentActive=!1,this.fullExtentState=l.Enabled,this.fullExtentDisabled=!1,this.clearSelectionToggle=t.Inactive,this.clearSelectionActive=!1,this.clearSelectionState=l.Enabled,this.clearSelectionDisabled=!1,this.switchSelectionToggle=t.Inactive,this.switchSelectionActive=!1,this.switchSelectionState=l.Enabled,this.switchSelectionDisabled=!1,this.exportAsImageState=l.Enabled,this.exportAsImageDisabled=!1,this.exportAsCSVState=l.Enabled,this.exportAsCSVDisabled=!1,this.disableCSVExportForChartTypes=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=l.Enabled,this.exportActionDisabled=!1,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=d(),this.arcgisDefaultActionSelect=d()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartActive:5,editChartState:1,editChartEnabled:5,editChartTitle:1,legendToggle:1,legendActive:5,legendState:1,legendDisabled:5,legendTitle:1,rotateChartToggle:1,rotateChartActive:5,rotateChartState:1,rotateChartDisabled:5,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionActive:5,filterBySelectionState:1,filterBySelectionDisabled:5,filterBySelectionTitle:1,filterByExtentToggle:1,filterByViewExtentActive:5,filterByExtentState:1,filterByViewExtentDisabled:5,filterByExtentTitle:1,filterByViewExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionActive:5,selectionState:1,selectionDisabled:5,selectionTitle:1,zoomToggle:1,zoomActive:5,zoomState:1,zoomDisabled:5,zoomTitle:1,fullExtentToggle:1,fullExtentActive:5,fullExtentState:1,fullExtentDisabled:5,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionActive:5,clearSelectionState:1,clearSelectionDisabled:5,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionActive:5,switchSelectionState:1,switchSelectionDisabled:5,switchSelectionTitle:1,exportAsImageState:1,exportAsImageDisabled:5,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVDisabled:5,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,csvExportExclusionList:0,exportActionState:1,exportActionDisabled:5,expanded:5,hiddenActions:0}}static{this.styles=q}load(){this.chartElement=R(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(a){let o=a.currentTarget,i={actionId:o.id,actionActive:!1};switch(o.id){case e.EditChart:{let c=!(this.editChartToggle===t.Active||this.editChartActive);this.editChartToggle=c?t.Active:t.Inactive,this.editChartActive=c,i.actionActive=c;break}case e.Legend:{let c=!(this.legendToggle===t.Active||this.legendActive);this.legendToggle=c?t.Active:t.Inactive,this.legendActive=c,i.actionActive=c,r(this.chartElement?.model)&&b(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(r(this.chartElement.model)?b(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.RotateChart:{let c=!(this.rotateChartToggle===t.Active||this.rotateChartActive);this.rotateChartToggle=c?t.Active:t.Inactive,this.rotateChartActive=c,i.actionActive=c,this.chartElement?.model&&(r(this.chartElement.model)?L(this.chartElement.model)&&(this.chartElement.model.rotated=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.FilterBySelection:{let c=!(this.filterBySelectionToggle===t.Active||this.filterBySelectionActive);this.filterBySelectionToggle=c?t.Active:t.Inactive,this.filterBySelectionActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break}case e.FilterByViewExtent:{let c=!(this.filterByExtentToggle===t.Active||this.filterByViewExtentActive);this.filterByExtentToggle=c?t.Active:t.Inactive,this.filterByViewExtentActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterByViewExtent=i.actionActive);break}case e.Selection:{this.selectionToggle=t.Active,this.selectionActive=!0,this.zoomToggle=t.Inactive,this.zoomActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break}case e.Zoom:{this.zoomToggle=t.Active,this.zoomActive=!0,this.selectionToggle=t.Inactive,this.selectionActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=p.Zoom);break}case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active||this.clearSelectionActive,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active||this.fullExtentActive,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active||this.switchSelectionActive,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=h(this.actionTooltip))}handleSlotChange(a){let o=a.currentTarget.assignedElements();for(let i of o)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(a=>{let o=a;o.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=m(s`<calcite-tooltip style=${A({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=h(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))})))}renderDefaultActions(){let a=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),o=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=a.includes(e.EditChart),c=a.includes(e.Legend),T=a.includes(e.RotateChart),$=a.includes(e.FilterBySelection),C=a.includes(e.FilterByViewExtent)&&!o,D=a.includes(e.Zoom),y=a.includes(e.Selection),B=a.includes(e.ClearSelection),w=a.includes(e.FullExtent),k=a.includes(e.SwitchSelection),I=a.includes(e.ExportAsImage),V=a.includes(e.ExportAsCSV);return[c||T?s`<calcite-action-group>${i?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??n} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active||this.editChartActive} .disabled=${this.editChartState===l.Disabled||!this.editChartEnabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${c?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??n} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .active=${this.legendToggle===t.Active||this.legendActive} .disabled=${this.legendState===l.Disabled||this.legendDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${T?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??n} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active||this.rotateChartActive} .disabled=${this.rotateChartState===l.Disabled||this.rotateChartDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,$||C?s`<calcite-action-group>${$?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??n} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active||this.filterBySelectionActive} .disabled=${this.filterBySelectionState===l.Disabled||this.filterBySelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${C?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByViewExtent??n} icon=extent-filter .text=${(this.filterByExtentTitle||this.filterByViewExtentTitle)??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active||this.filterByViewExtentActive} .disabled=${this.filterByExtentState===l.Disabled||this.filterByViewExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||D||w||B||k?s`<calcite-action-group>${D?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??n} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active||this.zoomActive} .disabled=${this.zoomState===l.Disabled||this.zoomDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??n} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active||this.selectionActive} .disabled=${this.selectionState===l.Disabled||this.selectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??n} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active||this.clearSelectionActive} .disabled=${this.clearSelectionState===l.Disabled||this.clearSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${w?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??n} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active||this.fullExtentActive} .disabled=${this.fullExtentState===l.Disabled||this.fullExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??n} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active||this.switchSelectionActive} .disabled=${this.switchSelectionState===l.Disabled||this.switchSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||V?s`<calcite-action-menu .label=${this._messages?.export??""} ${v(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===l.Disabled||this.exportActionDisabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?s`<div><calcite-action id=${e.ExportAsImage??n} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===l.Disabled||this.exportAsImageDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${V?s`<div><calcite-action id=${e.ExportAsCSV??n} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===l.Disabled||this.exportAsCSVDisabled||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 s`<calcite-action-bar class=${O(Z.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${v(this.calciteActionBar)}><slot name=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};_("arcgis-charts-action-bar",S);return S},a,c,f,h,i,j,k)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as e,c as n,d as o}from"./DRYZWCWX.js";import c from"./JR2RRIKO.js";import b from"./5RI6YXV2.js";import{a as d,p as V}from"./O4TPXFX4.js";import a from"./7DHOI5P2.js";import{a as B}from"./Z5QPCSUQ.js";import{a as r}from"./QVG3TOL4.js";export default $arcgis.t(([{Ld:w,dd:u,j:g,jc:h,q:C,sc:p,t:b,u:A},{d:f},{a:F}])=>{var T=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],M=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],R=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],H=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],j=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],G=[e.EditChart,e.FilterByViewExtent,e.ExportAsImage,e.ExportAsCSV];function O(c){switch(c){case r.BarSeries:return T;case r.LineSeries:return M;case r.ComboLineAndBarSeries:return Z;case r.PieSeries:return z;case r.HistogramSeries:return P;case r.ScatterSeries:return H;case r.BoxPlotSeries:return j;case r.GaugeSeries:return G;case r.HeatSeries:return R;default:return[]}}var Q=(c,t,i)=>{let l=c.target.assignedNodes().find(a=>"legendToggle"in a||"legendActive"in a),s=B(i?.series);return l&&(l.chartType=s,N({actionBar:l,chartComponent:t,config:i})),l};function N(c){let{actionBar:t,chartComponent:i,config:l,isInfoModalDisplayed:s}=c,a=p(i.selectionData),D=l?.legend?l.legend.visible??!0:!1;if(t.chartType=B(l?.series),i.enableConfiguration||i.configurationEnabled){let I=t.hiddenActions??[];t.hiddenActions=I.filter(L=>L!==e.EditChart)}t.editChartState=i.enableConfiguration||i.configurationEnabled?o.Enabled:o.Disabled,t.editChartEnabled=!!(i.enableConfiguration||i.configurationEnabled);let S=l&&h(l.series);t.legendState=S?o.Enabled:o.Disabled,t.legendDisabled=!S;let x=d(i?.model)&&V(i?.model)?i.model.legendVisibility:D;t.legendToggle=S&&x?n.Active:n.Inactive,t.legendActive=!!(S&&x);let y=d(i?.model)&&F(i.model)?i.model.rotated:l?.rotated;t.rotateChartToggle=y?n.Active:n.Inactive,t.rotateChartActive=!!y;let m=u(l?.series??[])===C.PieFromFields,E=d(i.model)?b(i.model.layer):A(i.model);t.filterBySelectionState=!E&&!m&&(i.filterBySelection||!a&&(!i.filterByExtent||!i.filterByViewExtent))?o.Enabled:o.Disabled,t.filterBySelectionDisabled=!(!E&&!m&&(i.filterBySelection||!a&&(!i.filterByExtent||!i.filterByViewExtent))),t.filterBySelectionToggle=i.filterBySelection?n.Active:n.Inactive,t.filterBySelectionActive=!!i.filterBySelection;let v=E&&t.chartType===r.ScatterSeries&&w(l);t.filterByExtentState=(i.filterByViewExtent||!i.filterBySelection)&&!v?o.Enabled:o.Disabled,t.filterByViewExtentDisabled=t.filterByExtentState===o.Disabled,t.filterByExtentToggle=i.filterByViewExtent?n.Active:n.Inactive,t.filterByViewExtentActive=!!i.filterByViewExtent,t.zoomState=i.filterBySelection?o.Disabled:o.Enabled,t.zoomDisabled=!!i.filterBySelection,t.zoomToggle=i.actionMode===g.Zoom?n.Active:n.Inactive,t.zoomActive=i.actionMode===g.Zoom,t.selectionState=i.filterBySelection?o.Disabled:o.Enabled,t.selectionDisabled=!!i.filterBySelection,t.selectionToggle=(i.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode?n.Active:n.Inactive,t.selectionActive=(i.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode,t.clearSelectionState=a?o.Disabled:o.Enabled,t.clearSelectionDisabled=!!a,t.fullExtentState=i.filterBySelection?o.Disabled:o.Enabled,t.fullExtentDisabled=!!i.filterBySelection,t.switchSelectionState=i.filterBySelection?o.Disabled:o.Enabled,t.switchSelectionDisabled=!!i.filterBySelection,t.exportActionState=s||f(l)?o.Disabled:o.Enabled,t.exportActionDisabled=!!(s||f(l))}return{a:O,b:Q,c:N}},a,b,c)
2
+ import{b as e,c as n,d as o}from"./DRYZWCWX.js";import c from"./JR2RRIKO.js";import b from"./5RI6YXV2.js";import{a as d,p as V}from"./O4TPXFX4.js";import a from"./7DHOI5P2.js";import{a as B}from"./Z5QPCSUQ.js";import{a as r}from"./QVG3TOL4.js";export default $arcgis.t(([{Ld:w,dd:u,j:g,jc:h,q:C,sc:p,t:b,u:A},{d:f},{a:F}])=>{var T=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],M=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],R=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],H=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],j=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],G=[e.EditChart,e.FilterByViewExtent,e.ExportAsImage,e.ExportAsCSV];function O(c){switch(c){case r.BarSeries:return T;case r.LineSeries:return M;case r.ComboLineAndBarSeries:return Z;case r.PieSeries:return z;case r.HistogramSeries:return P;case r.ScatterSeries:return H;case r.BoxPlotSeries:return j;case r.GaugeSeries:return G;case r.HeatSeries:return R;default:return[]}}var Q=(c,t,i)=>{let l=c.target.assignedNodes().find(a=>"legendToggle"in a||"legendActive"in a),s=B(i?.series);return l&&(l.chartType=s,N({actionBar:l,chartComponent:t,config:i})),l};function N(c){let{actionBar:t,chartComponent:i,config:l,isInfoModalDisplayed:s}=c,a=p(i.selectionData),D=l?.legend?l.legend.visible??!0:!1;if(t.chartType=B(l?.series),i.enableConfiguration||i.configurationEnabled){let I=t.hiddenActions??[];t.hiddenActions=I.filter(L=>L!==e.EditChart)}t.editChartState=i.enableConfiguration||i.configurationEnabled?o.Enabled:o.Disabled,t.editChartEnabled=!!(i.enableConfiguration||i.configurationEnabled);let S=l&&h(l.series);t.legendState=S?o.Enabled:o.Disabled,t.legendDisabled=!S;let y=d(i?.model)&&V(i?.model)?i.model.legendVisibility:D;t.legendToggle=S&&y?n.Active:n.Inactive,t.legendActive=!!(S&&y);let x=d(i?.model)&&F(i.model)?i.model.rotated:l?.rotated;t.rotateChartToggle=x?n.Active:n.Inactive,t.rotateChartActive=!!x;let m=u(l?.series??[])===C.PieFromFields,E=d(i.model)?b(i.model.layer):A(i.model);t.filterBySelectionState=!E&&!m&&(i.filterBySelection||!a&&(!i.filterByExtent||!i.filterByViewExtent))?o.Enabled:o.Disabled,t.filterBySelectionDisabled=!(!E&&!m&&(i.filterBySelection||!a&&(!i.filterByExtent||!i.filterByViewExtent))),t.filterBySelectionToggle=i.filterBySelection?n.Active:n.Inactive,t.filterBySelectionActive=!!i.filterBySelection;let v=E&&t.chartType===r.ScatterSeries&&w(l);t.filterByExtentState=(i.filterByViewExtent||!i.filterBySelection)&&!v?o.Enabled:o.Disabled,t.filterByViewExtentDisabled=t.filterByExtentState===o.Disabled,t.filterByExtentToggle=i.filterByViewExtent?n.Active:n.Inactive,t.filterByViewExtentActive=!!i.filterByViewExtent,t.zoomState=i.filterBySelection?o.Disabled:o.Enabled,t.zoomDisabled=!!i.filterBySelection,t.zoomToggle=i.actionMode===g.Zoom?n.Active:n.Inactive,t.zoomActive=i.actionMode===g.Zoom,t.selectionState=i.filterBySelection?o.Disabled:o.Enabled,t.selectionDisabled=!!i.filterBySelection,t.selectionToggle=(i.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode?n.Active:n.Inactive,t.selectionActive=(i.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode,t.clearSelectionState=a?o.Disabled:o.Enabled,t.clearSelectionDisabled=!!a,t.fullExtentState=i.filterBySelection?o.Disabled:o.Enabled,t.fullExtentDisabled=!!i.filterBySelection,t.switchSelectionState=i.filterBySelection?o.Disabled:o.Enabled,t.switchSelectionDisabled=!!i.filterBySelection,t.exportActionState=s||f(l)?o.Disabled:o.Enabled,t.exportActionDisabled=!!(s||f(l))}return{a:O,b:Q,c:N}},a,b,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{d}from"./POA2XTTK.js";import a from"./7DHOI5P2.js";import"./43DLRSYB.js";import{f as F}from"./KX7KGXKQ.js";import{b as n,d as p}from"./NGXRBJKL.js";import"./ZM64YDWU.js";import{B as I,H as y,g as u,i as h,n as m}from"./23EBTARY.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ac:L,Ha:b,yc:v}])=>{var E=u`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,f=class extends I{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let i=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(i)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.filterBySelection=!1,this.arcgisChartsConfigNoSeriesUpdate=m(),this.arcgisChartsConfigWebChartChange=m()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,filterBySelection:5,chartData:0}}static{this.styles=E}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let i=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!n(e.get("layer"),this.layer)&&(i=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(i=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(i=!0),i&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){let{slices:i,groupedSlices:s,groupOfSlices:l}=e?.get(0)??{},o=[];this.filterBySelection?o=this.model.slices?.map(a=>i?.find(t=>t.sliceId===a.sliceId)??s?.find(t=>t.sliceId===a.sliceId)??a)??[]:o=(i??[]).concat(s??[]),o.forEach((a,t)=>{let c=this.model.slices?.find(g=>g.sliceId===a.sliceId);if(c){o[t]={...a,...c};let g=c.label!==c.originalLabel;o[t].label=g?c.label:a.label,o[t].originalLabel=a.originalLabel}let r=o[t].fillSymbol;r!==void 0&&!n(r?.outline?.color,r?.color)&&(r.outline={...r.outline??{},type:F.SLS,color:r.color})});let C=(s??[]).map(a=>a.sliceId);s!==void 0&&!n(C,this.model.groupedSliceIds)&&(this.model.groupedSliceIds=p(C)),n(o,this.model.slices)||(this.model.slices=p(o)),l!==void 0&&!n(l,this.model.sliceGrouping)&&(this.model.sliceGrouping=p(l))}async updateFetchLayerFieldsInfo(e){let i=e??this.model.config,s=this.layer;if(!s){let l=b(i)?i.iLayer:void 0;l&&(s=await v(l))}s&&(await s.load(),this.layerFieldsInfo=L(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let e;switch(this.page){case d.Data:e=h`<arcgis-charts-config-pie-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-pie-chart-data>`;break;case d.Slices:e=h`<arcgis-charts-config-pie-chart-slices .model=${this.model} .chartData=${this.chartData} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-pie-chart-slices>`;break;case d.Format:e=h`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case d.General:e=h`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};y("arcgis-charts-config-pie-chart",f);return f},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import w from"./NTJMVBRM.js";import v from"./7P6O2RHA.js";import"./K4GPJ36N.js";import u from"./XWZLBTHL.js";import t from"./IDULNX4O.js";import s from"./JR2RRIKO.js";import r from"./UQCVYMWO.js";import q from"./57IBZI2Q.js";import p from"./ENSGJAYI.js";import o from"./ZDM5IDLI.js";import n from"./5RI6YXV2.js";import m from"./L3P6D53Z.js";import k from"./VBZUDWPR.js";import j from"./TPWN3WU6.js";import i from"./YAH2CORT.js";import"./O4TPXFX4.js";import h from"./AZ2Z7W7G.js";import e from"./TWAPMNSX.js";import d from"./34EBYEM7.js";import c from"./LEUIZWRV.js";import b from"./3L5TASX6.js";import a from"./7DHOI5P2.js";import{ca as f,fa as g,ma as y}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./ZM64YDWU.js";import"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as l}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:c,Ja:d,La:p,Na:b,Zb:_},,{e:o},,,,,,,,,,,,,,,{c:u,e:L},{a:k,b:v,c:I,d:M,e:z,f:C,g:x,h:O,i:B,j:V,k:D,l:F,m:j,n:h,o:A,p:H,q:W,t:w},{a:T,b:P,c:q,d:N,e:E}])=>{var G=Object.defineProperty,J=Object.getOwnPropertyDescriptor,a=(S,e,i,n)=>{for(var s=J(e,i),t=S.length-1,m;t>=0;t--)(m=S[t])&&(s=m(e,i,s)||s);return s&&G(e,i,s),s},r=class extends L{constructor(){super(...arguments),this._chartType=l.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),await this.rebuildSeries()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=y(this.commonStrings);return e.series=[g({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=f({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField})}setSeriesType(e,i){if(e<this._config.series.length&&e>=0){let n=this._config.series[e],s;if(i===l.BarSeries&&d(n)){let t={...n};delete t.lineSymbol,delete t.markerSymbol,delete t.lineSmoothed,delete t.markerVisible,delete t.areaColor,delete t.stackNegativeValuesToBaseline,s={...g({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField}),...t,type:l.BarSeries,y:[n.y].flat()[0]},s.fillSymbol&&(s.fillSymbol={...s.fillSymbol,color:n.lineSymbol?.color})}else if(i===l.LineSeries&&p(n)){let t={...n};delete t.fillSymbol,delete t.hideOversizedStackedLabels,delete t.hideOversizedSideBySideLabels,s={...f({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField}),...t,type:l.LineSeries},s.lineSymbol&&(s.lineSymbol={...s.lineSymbol,color:n.fillSymbol?.color})}s!==void 0&&(this._config.series[e]=s)}}getSeriesLineStyle(e){return k(e,this._config)}setSeriesLineStyle(e,i){v({style:e,seriesIndex:i,config:this._config})}getSeriesLineWidth(e){return I(e,this._config)}setSeriesLineWidth(e,i){M({width:e,seriesIndex:i,config:this._config})}getSeriesMarkerColor(e){return z(e,this._config)}setSeriesMarkerColor(e,i){let n=this._config.series?.[i];d(n)&&C(e,i,this._config)}getSeriesMarkerStyle(e){return x(e,this._config)}setSeriesMarkerStyle(e,i){O({style:e,seriesIndex:i,config:this._config})}getSeriesMarkerSize(e){return B(e,this._config)}setSeriesMarkerSize(e,i){V({size:e,seriesIndex:i,config:this._config})}isLineSmoothed(e){return D(e,this._config)}setLineSmoothed(e,i){F({smoothed:e,seriesIndex:i,config:this._config})}isAreaVisible(e){return j(e,this._config)}setAreaVisible(e,i){h({visible:e,seriesIndex:i,config:this._config})}isMarkerVisible(e){return A(e,this._config)}setMarkersVisible(e,i){H({visible:e,seriesIndex:i,config:this._config})}setMarkerVisible(e,i){this.setMarkersVisible(e,i)}getAreaColor(e){return W(e,this._config)}setAreaColor(e,i){let n=this._config.series?.[i];d(n)&&(h({visible:!0,seriesIndex:i,config:this._config}),u(e,i,this._config))}getSeriesHideOversizedSideBySideLabels(e){return T(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,i){P({hide:e,seriesIndex:i,config:this._config})}getSeriesHideOversizedStackedLabels(e){return q(e,this._config)}setSeriesHideOversizedStackedLabels(e,i){N({hide:e,seriesIndex:i,config:this._config})}};a([o],r.prototype,"setSeriesType");a([o],r.prototype,"setSeriesLineStyle");a([o],r.prototype,"setSeriesLineWidth");a([o],r.prototype,"setSeriesMarkerColor");a([o],r.prototype,"setSeriesMarkerStyle");a([o],r.prototype,"setSeriesMarkerSize");a([o],r.prototype,"setLineSmoothed");a([o],r.prototype,"setAreaVisible");a([o],r.prototype,"setMarkersVisible");a([o],r.prototype,"setAreaColor");a([o],r.prototype,"setSeriesHideOversizedSideBySideLabels");a([o],r.prototype,"setSeriesHideOversizedStackedLabels");var K=[w,E];_(r,K);return r},a,b,c,d,e,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w)
2
+ import w from"./NTJMVBRM.js";import v from"./7P6O2RHA.js";import"./K4GPJ36N.js";import u from"./RCG3QHMV.js";import t from"./ETHXVKWT.js";import s from"./JR2RRIKO.js";import r from"./H4XMNS3O.js";import q from"./IL763V5P.js";import p from"./ENSGJAYI.js";import o from"./ZDM5IDLI.js";import n from"./5RI6YXV2.js";import m from"./G63YJSVM.js";import k from"./DW44U5PH.js";import j from"./3TO4L72A.js";import i from"./CDVLQX4S.js";import"./O4TPXFX4.js";import h from"./AZ2Z7W7G.js";import e from"./TWAPMNSX.js";import d from"./XTQ4C5NA.js";import c from"./LEUIZWRV.js";import b from"./3L5TASX6.js";import a from"./7DHOI5P2.js";import{ca as f,fa as g,ma as y}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./ZM64YDWU.js";import"./23EBTARY.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as l}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:c,Ja:d,La:p,Na:b,Zb:_},,{e:o},,,,,,,,,,,,,,,{c:u,e:L},{a:k,b:v,c:I,d:M,e:z,f:C,g:x,h:O,i:B,j:V,k:D,l:F,m:j,n:h,o:A,p:H,q:W,t:w},{a:T,b:P,c:q,d:N,e:E}])=>{var G=Object.defineProperty,J=Object.getOwnPropertyDescriptor,a=(S,e,i,n)=>{for(var s=J(e,i),t=S.length-1,m;t>=0;t--)(m=S[t])&&(s=m(e,i,s)||s);return s&&G(e,i,s),s},r=class extends L{constructor(){super(...arguments),this._chartType=l.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),await this.rebuildSeries()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=y(this.commonStrings);return e.series=[g({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=f({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField})}setSeriesType(e,i){if(e<this._config.series.length&&e>=0){let n=this._config.series[e],s;if(i===l.BarSeries&&d(n)){let t={...n};delete t.lineSymbol,delete t.markerSymbol,delete t.lineSmoothed,delete t.markerVisible,delete t.areaColor,delete t.stackNegativeValuesToBaseline,s={...g({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField}),...t,type:l.BarSeries,y:[n.y].flat()[0]},s.fillSymbol&&(s.fillSymbol={...s.fillSymbol,color:n.lineSymbol?.color})}else if(i===l.LineSeries&&p(n)){let t={...n};delete t.fillSymbol,delete t.hideOversizedStackedLabels,delete t.hideOversizedSideBySideLabels,s={...f({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField}),...t,type:l.LineSeries},s.lineSymbol&&(s.lineSymbol={...s.lineSymbol,color:n.fillSymbol?.color})}s!==void 0&&(this._config.series[e]=s)}}getSeriesLineStyle(e){return k(e,this._config)}setSeriesLineStyle(e,i){v({style:e,seriesIndex:i,config:this._config})}getSeriesLineWidth(e){return I(e,this._config)}setSeriesLineWidth(e,i){M({width:e,seriesIndex:i,config:this._config})}getSeriesMarkerColor(e){return z(e,this._config)}setSeriesMarkerColor(e,i){let n=this._config.series?.[i];d(n)&&C(e,i,this._config)}getSeriesMarkerStyle(e){return x(e,this._config)}setSeriesMarkerStyle(e,i){O({style:e,seriesIndex:i,config:this._config})}getSeriesMarkerSize(e){return B(e,this._config)}setSeriesMarkerSize(e,i){V({size:e,seriesIndex:i,config:this._config})}isLineSmoothed(e){return D(e,this._config)}setLineSmoothed(e,i){F({smoothed:e,seriesIndex:i,config:this._config})}isAreaVisible(e){return j(e,this._config)}setAreaVisible(e,i){h({visible:e,seriesIndex:i,config:this._config})}isMarkerVisible(e){return A(e,this._config)}setMarkersVisible(e,i){H({visible:e,seriesIndex:i,config:this._config})}setMarkerVisible(e,i){this.setMarkersVisible(e,i)}getAreaColor(e){return W(e,this._config)}setAreaColor(e,i){let n=this._config.series?.[i];d(n)&&(h({visible:!0,seriesIndex:i,config:this._config}),u(e,i,this._config))}getSeriesHideOversizedSideBySideLabels(e){return T(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,i){P({hide:e,seriesIndex:i,config:this._config})}getSeriesHideOversizedStackedLabels(e){return q(e,this._config)}setSeriesHideOversizedStackedLabels(e,i){N({hide:e,seriesIndex:i,config:this._config})}};a([o],r.prototype,"setSeriesType");a([o],r.prototype,"setSeriesLineStyle");a([o],r.prototype,"setSeriesLineWidth");a([o],r.prototype,"setSeriesMarkerColor");a([o],r.prototype,"setSeriesMarkerStyle");a([o],r.prototype,"setSeriesMarkerSize");a([o],r.prototype,"setLineSmoothed");a([o],r.prototype,"setAreaVisible");a([o],r.prototype,"setMarkersVisible");a([o],r.prototype,"setAreaColor");a([o],r.prototype,"setSeriesHideOversizedSideBySideLabels");a([o],r.prototype,"setSeriesHideOversizedStackedLabels");var K=[w,E];_(r,K);return r},a,b,c,d,e,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w)