@arcgis/charts-components 6.0.0-next.0 → 6.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/dist/cdn/{54DSGXZ4.js → 2JIOGP7R.js} +1 -1
  2. package/dist/cdn/{ZMWTAWSP.js → 32URMI5E.js} +1 -1
  3. package/dist/cdn/3C5377V2.js +2 -0
  4. package/dist/cdn/{JU7EYMOJ.js → 3EOTHJWP.js} +1 -1
  5. package/dist/cdn/{Q5RYOZ3L.js → 3U6UEUC3.js} +1 -1
  6. package/dist/cdn/{K63HGT6O.js → 3V7MD72Y.js} +1 -1
  7. package/dist/cdn/{BWOIRNCD.js → 4IZR4ZL4.js} +1 -1
  8. package/dist/cdn/{SXRIEUIN.js → 4R6YXEBJ.js} +1 -1
  9. package/dist/cdn/{FRFHLGO7.js → 53QW4BYR.js} +1 -1
  10. package/dist/cdn/{XAUKPCFO.js → 5CXU3NKH.js} +1 -1
  11. package/dist/cdn/{KK3WP5IA.js → 5DHZV7X2.js} +1 -1
  12. package/dist/cdn/{JCLUY2EI.js → 64VXZM5A.js} +1 -1
  13. package/dist/cdn/{O4NXWUXR.js → 6RB4RYGN.js} +1 -1
  14. package/dist/cdn/{PF5QGO7P.js → 7TK4GSLV.js} +1 -1
  15. package/dist/cdn/{THXGBWDW.js → A5EZTVKV.js} +1 -1
  16. package/dist/cdn/{AHFXCORG.js → AKW3NHSY.js} +1 -1
  17. package/dist/cdn/{AQQSX6MB.js → AL6ZEHZK.js} +1 -1
  18. package/dist/cdn/{Y5JSJPHW.js → AX6KSFYK.js} +1 -1
  19. package/dist/cdn/{WQAPQIKI.js → B5SRZGC2.js} +1 -1
  20. package/dist/cdn/{XOCPNNLY.js → BF2W5NTN.js} +1 -1
  21. package/dist/cdn/{ANVRAFUS.js → BRBAHSCB.js} +1 -1
  22. package/dist/cdn/{EE7HRPYS.js → BRW7VZ2C.js} +1 -1
  23. package/dist/cdn/{7YFEZ5NG.js → C7WUBEMI.js} +1 -1
  24. package/dist/cdn/{BZLDCR76.js → CB6RALFJ.js} +1 -1
  25. package/dist/cdn/{METVD2N2.js → CE2OEL6G.js} +1 -1
  26. package/dist/cdn/DA5DYK4X.js +2 -0
  27. package/dist/cdn/DP3ALDSI.js +2 -0
  28. package/dist/cdn/{4LJXFMPL.js → DPXBPL2Y.js} +1 -1
  29. package/dist/cdn/{SNUNNPBG.js → DUIC7PGW.js} +1 -1
  30. package/dist/cdn/{6UH6D4P7.js → EETR5IRC.js} +1 -1
  31. package/dist/cdn/{FAPVUQXJ.js → EHD6HNUK.js} +1 -1
  32. package/dist/cdn/{NG66OGBO.js → EJAZWHRG.js} +1 -1
  33. package/dist/cdn/{MNR7SALB.js → EWFT2JV5.js} +1 -1
  34. package/dist/cdn/{PLGLTSHE.js → EWS4XDX5.js} +1 -1
  35. package/dist/cdn/{P2WGODPL.js → FI67QJAR.js} +1 -1
  36. package/dist/cdn/{K6EMFLBK.js → FTR2IWDM.js} +1 -1
  37. package/dist/cdn/{WONOW5WD.js → G2T43FGA.js} +1 -1
  38. package/dist/cdn/{KMB4KGP7.js → GPFDXMZV.js} +1 -1
  39. package/dist/cdn/{CRYNT7GM.js → GUU5K7KZ.js} +1 -1
  40. package/dist/cdn/{GBC7DUU3.js → HGCITTOQ.js} +1 -1
  41. package/dist/cdn/{HXUOAXW6.js → HPZNKDNN.js} +1 -1
  42. package/dist/cdn/{VMMRXTAY.js → HRYM365L.js} +1 -1
  43. package/dist/cdn/{RL2LPFWQ.js → IJGJ7LW4.js} +1 -1
  44. package/dist/cdn/{PIXQELBO.js → J24X7IAD.js} +1 -1
  45. package/dist/cdn/{XHCJKB27.js → J7CDASEM.js} +1 -1
  46. package/dist/cdn/{65FYSCF2.js → JBGGX4GF.js} +1 -1
  47. package/dist/cdn/{N2EY7RDB.js → JC3KQC4M.js} +1 -1
  48. package/dist/cdn/{4KVE3AGY.js → JCSGUVJN.js} +1 -1
  49. package/dist/cdn/{RBXMEHR5.js → JZCSDGTO.js} +1 -1
  50. package/dist/cdn/{LALIPDHB.js → K7KTLLN3.js} +1 -1
  51. package/dist/cdn/{NKYFX3GN.js → KCJ3UIVJ.js} +1 -1
  52. package/dist/cdn/{KCBT3VDQ.js → KFS2IDLJ.js} +1 -1
  53. package/dist/cdn/{F2W66ULA.js → KOPGJ6GL.js} +1 -1
  54. package/dist/cdn/{TBOCYB3D.js → KWJG3BJA.js} +1 -1
  55. package/dist/cdn/{VZUSTDAS.js → L6ACX7PK.js} +2 -2
  56. package/dist/cdn/{ILJVVN6I.js → L6AHDF5D.js} +1 -1
  57. package/dist/cdn/{KTYMZ5LM.js → L7USVDCR.js} +1 -1
  58. package/dist/cdn/{PPBZHYSA.js → M4G56EOH.js} +1 -1
  59. package/dist/cdn/{DGD5IYSW.js → NNIAFAEK.js} +1 -1
  60. package/dist/cdn/{ARNTHMJA.js → O3VCA2HA.js} +1 -1
  61. package/dist/cdn/{E2KUCER2.js → O7QPA3NH.js} +1 -1
  62. package/dist/cdn/{LYKIQ7DH.js → ORTPYOO7.js} +1 -1
  63. package/dist/cdn/{BMH7K2GR.js → OWAETVFH.js} +1 -1
  64. package/dist/cdn/{WZBDHR5B.js → PXKD656W.js} +1 -1
  65. package/dist/cdn/{6TELFJWN.js → QKPEMJRH.js} +1 -1
  66. package/dist/cdn/{2VXXSM6V.js → QXIFJISA.js} +1 -1
  67. package/dist/cdn/{N7UJDGTB.js → R44U46BF.js} +1 -1
  68. package/dist/cdn/{HYOZOWIV.js → RB2DJJAF.js} +1 -1
  69. package/dist/cdn/{FJR2CXBV.js → RV2J4OPJ.js} +1 -1
  70. package/dist/cdn/{B7EFM4EC.js → TLPP547P.js} +1 -1
  71. package/dist/cdn/{2V5NOKVR.js → TOFHR6G7.js} +1 -1
  72. package/dist/cdn/{Y4D3RT7S.js → TPFFIATK.js} +1 -1
  73. package/dist/cdn/{QOCXO3SH.js → U64ICCSZ.js} +1 -1
  74. package/dist/cdn/{QHYCUUOS.js → UW35QKDS.js} +2 -2
  75. package/dist/cdn/{UTDG54SS.js → VB6XKC4W.js} +1 -1
  76. package/dist/cdn/{YPOUCQL3.js → VCER6DFQ.js} +1 -1
  77. package/dist/cdn/{LXJ5MUWA.js → W5Z2EI2D.js} +1 -1
  78. package/dist/cdn/{3THTYYIE.js → WAUIROBC.js} +1 -1
  79. package/dist/cdn/{53BLOO76.js → WYDO2IF4.js} +1 -1
  80. package/dist/cdn/{45W7WOG7.js → XE6MQ6IR.js} +1 -1
  81. package/dist/cdn/{IRONVMYK.js → XEUHT7JB.js} +14 -14
  82. package/dist/cdn/{GONLVB3N.js → ZLI33FIZ.js} +1 -1
  83. package/dist/cdn/{ET6ADBCU.js → ZQPCVZ2Z.js} +1 -1
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/cdn/model/shared/setup-utils.js +1 -1
  86. package/dist/chunks/action-bar-utils.js +58 -56
  87. package/dist/chunks/box-plot-data.js +1 -1
  88. package/dist/chunks/box-plot-model.js +1 -1
  89. package/dist/chunks/chart-ui-utils.js +1 -1
  90. package/dist/chunks/class-breaks.js +1 -1
  91. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  92. package/dist/chunks/data.js +23 -23
  93. package/dist/chunks/index.js +164 -157
  94. package/dist/chunks/index4.js +1 -1
  95. package/dist/chunks/model-setter.js +5 -5
  96. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  97. package/dist/chunks/radar-chart-model.js +35 -22
  98. package/dist/chunks/rounded-corners.js +1 -1
  99. package/dist/chunks/scatterplot-model.js +5 -5
  100. package/dist/chunks/serial-chart-data.js +29 -29
  101. package/dist/chunks/serial-chart-model.js +5 -5
  102. package/dist/chunks/type-guards.js +7 -7
  103. package/dist/chunks/utils.js +7 -7
  104. package/dist/chunks/web-component-utils.js +41 -41
  105. package/dist/chunks/x-bounds.js +5 -5
  106. package/dist/components/arcgis-chart/customElement.js +460 -460
  107. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  108. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +9 -9
  109. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  110. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  111. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +9 -9
  112. package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
  113. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  114. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  115. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  116. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  117. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  118. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +3 -3
  119. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +6 -6
  120. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
  121. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  122. package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +39 -27
  123. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +6 -6
  124. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  125. package/dist/docs/api.json +1 -1
  126. package/dist/docs/docs.json +1 -1
  127. package/dist/index.js +253 -252
  128. package/dist/model/radar-chart-model/radar-chart-model.d.ts +6 -0
  129. package/dist/utils/chart-config/converter/index.js +20 -20
  130. package/dist/utils/chart-config/utils/index.d.ts +10 -1
  131. package/package.json +4 -4
  132. package/dist/cdn/AEJUKKCS.js +0 -2
  133. package/dist/cdn/IKQYLTZL.js +0 -2
  134. package/dist/cdn/VB2SRFYU.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import o from"./VB2SRFYU.js";import{b as e,c as t,d as l}from"./Q45WYAOY.js";import k from"./PF5QGO7P.js";import{a as u}from"./POA2XTTK.js";import{a as E}from"./LVFZRGTZ.js";import j from"./N7UJDGTB.js";import i from"./LALIPDHB.js";import{a as r,p as b}from"./TOL6YNER.js";import h from"./QOCXO3SH.js";import f from"./Y5JSJPHW.js";import c from"./FRFHLGO7.js";import a from"./VZUSTDAS.js";import"./WOGALV3T.js";import{a as p}from"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.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"./UE4KTI5X.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as x}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,,,,,{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,o)
2
+ import o from"./DA5DYK4X.js";import{b as e,c as t,d as l}from"./Q45WYAOY.js";import k from"./7TK4GSLV.js";import{a as u}from"./POA2XTTK.js";import{a as E}from"./LVFZRGTZ.js";import j from"./R44U46BF.js";import i from"./K7KTLLN3.js";import{a as r,p as b}from"./TOL6YNER.js";import h from"./U64ICCSZ.js";import f from"./AX6KSFYK.js";import c from"./53QW4BYR.js";import a from"./L6ACX7PK.js";import"./WOGALV3T.js";import{a as p}from"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.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"./UE4KTI5X.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as x}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,,,,,{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,o)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import f from"./PF5QGO7P.js";import"./POA2XTTK.js";import{a as b}from"./LVFZRGTZ.js";import e from"./FRFHLGO7.js";import c from"./VZUSTDAS.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import{A as g,B as d,C as a,H as p,g as l,i as o,n as u,z as h}from"./UE4KTI5X.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,,{f:v,g:f,h:c,i:m}])=>{var s={container:"container",label:"label",numberInput:"number-input"},D=l`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.container{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));margin-top:.5rem}.container>.number-input{margin-bottom:.5rem;display:flex}.container>.number-input>div{width:100%}.label{display:flex;margin-bottom:.5rem;justify-content:space-between}`,r=class extends d{constructor(){super(...arguments),this._messages=b(),this.decimalPlacesInputElement=h(),this.isDecimalPlacesInvalid=!1,this.arcgisChartsConfigNumberFormatChange=u()}static{this.properties={isDecimalPlacesInvalid:16,messageOverrides:0,numberFormat:0}}static{this.styles=D}onDecimalPlacesChange(){let i=this.decimalPlacesInputElement.value?.value,t=Math.floor(Number(i)),n=t===Number(i)&&t>=0;if(i!==void 0&&n&&v(i,this.decimalPlacesInputElement.value?.min,this.decimalPlacesInputElement.value?.max)){let I=Number.parseInt(i),e={minimumFractionDigits:this.numberFormat?.minimumFractionDigits,maximumFractionDigits:I};e.maximumFractionDigits!==void 0&&e.minimumFractionDigits!==void 0&&e.minimumFractionDigits>e.maximumFractionDigits&&(e.minimumFractionDigits=e.maximumFractionDigits);let F=this.getUpdatedNumberFormat(e);this.arcgisChartsConfigNumberFormatChange.emit(F),this.decimalPlacesInputElement.value&&(this.isDecimalPlacesInvalid=!1,c({inputElement:this.decimalPlacesInputElement.value,status:m.IDLE}))}else this.decimalPlacesInputElement.value&&(this.isDecimalPlacesInvalid=!0,c({inputElement:this.decimalPlacesInputElement.value,status:m.INVALID}))}onShowThousandsSeparatorChange(i){let t=i.target.checked,n=this.getUpdatedNumberFormat({useGrouping:t});this.arcgisChartsConfigNumberFormatChange.emit(n)}getUpdatedNumberFormat(i){return{...this.numberFormat,...i}}render(){return o`<div class=${a(s.container)}><calcite-label class=${a(s.label)}>${this._messages.decimalPlaces}<calcite-input type=number class=${a(s.numberInput)} min=0 max=20 step=1 .value=${f(this.numberFormat?.maximumFractionDigits,2)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidDecimalPlaces} .isInvalid=${this.isDecimalPlacesInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label layout=inline-space-between class=${a(s.label)}>${this._messages.showThousandSeparators}<calcite-switch name=useGrouping .checked=${!!(this.numberFormat?.useGrouping??!0)} @calciteSwitchChange=${this.onShowThousandsSeparatorChange}></calcite-switch></calcite-label></div>`}};p("arcgis-charts-config-number-format",r);return r},c,e,f)
2
+ import f from"./7TK4GSLV.js";import"./POA2XTTK.js";import{a as b}from"./LVFZRGTZ.js";import e from"./53QW4BYR.js";import c from"./L6ACX7PK.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import{A as g,B as d,C as a,H as p,g as l,i as o,n as u,z as h}from"./UE4KTI5X.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,,{f:v,g:f,h:c,i:m}])=>{var s={container:"container",label:"label",numberInput:"number-input"},D=l`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.container{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));margin-top:.5rem}.container>.number-input{margin-bottom:.5rem;display:flex}.container>.number-input>div{width:100%}.label{display:flex;margin-bottom:.5rem;justify-content:space-between}`,r=class extends d{constructor(){super(...arguments),this._messages=b(),this.decimalPlacesInputElement=h(),this.isDecimalPlacesInvalid=!1,this.arcgisChartsConfigNumberFormatChange=u()}static{this.properties={isDecimalPlacesInvalid:16,messageOverrides:0,numberFormat:0}}static{this.styles=D}onDecimalPlacesChange(){let i=this.decimalPlacesInputElement.value?.value,t=Math.floor(Number(i)),n=t===Number(i)&&t>=0;if(i!==void 0&&n&&v(i,this.decimalPlacesInputElement.value?.min,this.decimalPlacesInputElement.value?.max)){let I=Number.parseInt(i),e={minimumFractionDigits:this.numberFormat?.minimumFractionDigits,maximumFractionDigits:I};e.maximumFractionDigits!==void 0&&e.minimumFractionDigits!==void 0&&e.minimumFractionDigits>e.maximumFractionDigits&&(e.minimumFractionDigits=e.maximumFractionDigits);let F=this.getUpdatedNumberFormat(e);this.arcgisChartsConfigNumberFormatChange.emit(F),this.decimalPlacesInputElement.value&&(this.isDecimalPlacesInvalid=!1,c({inputElement:this.decimalPlacesInputElement.value,status:m.IDLE}))}else this.decimalPlacesInputElement.value&&(this.isDecimalPlacesInvalid=!0,c({inputElement:this.decimalPlacesInputElement.value,status:m.INVALID}))}onShowThousandsSeparatorChange(i){let t=i.target.checked,n=this.getUpdatedNumberFormat({useGrouping:t});this.arcgisChartsConfigNumberFormatChange.emit(n)}getUpdatedNumberFormat(i){return{...this.numberFormat,...i}}render(){return o`<div class=${a(s.container)}><calcite-label class=${a(s.label)}>${this._messages.decimalPlaces}<calcite-input type=number class=${a(s.numberInput)} min=0 max=20 step=1 .value=${f(this.numberFormat?.maximumFractionDigits,2)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidDecimalPlaces} .isInvalid=${this.isDecimalPlacesInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label layout=inline-space-between class=${a(s.label)}>${this._messages.showThousandSeparators}<calcite-switch name=useGrouping .checked=${!!(this.numberFormat?.useGrouping??!0)} @calciteSwitchChange=${this.onShowThousandsSeparatorChange}></calcite-switch></calcite-label></div>`}};p("arcgis-charts-config-number-format",r);return r},c,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import g from"./HXUOAXW6.js";import f from"./LALIPDHB.js";import e from"./E2KUCER2.js";import c from"./FJR2CXBV.js";import b from"./FRFHLGO7.js";import a from"./VZUSTDAS.js";import{n as x}from"./PNFPQKYB.js";import{Aa as z,P as k,ja as _}from"./5L7BAEX5.js";import{d as V,p as $,q as j}from"./NGXRBJKL.js";import{d as y,e as d}from"./QP5UAIC6.js";import{b as m,h as S,v as u}from"./QVG3TOL4.js";export default $arcgis.t(([{substitute:b},{F:T,G:L,Wb:O},{c:A,d:q},{c:K},{a:M},{d:w},{g:U}])=>{function E(i){let{config:o,layerInfo:e,mode:t,commonStrings:r}=i,n=e!==void 0?v({config:o,layerInfo:e,commonStrings:r,mode:t}):"",c=M(o),g=w(o);return n===c||g}function P(i){let{config:o,layerInfo:e,mode:t,commonStrings:r}=i,n=e!==void 0?q({config:o,layerInfo:e,commonStrings:r,numericFields:p(o),aggregationType:F(o,t)}):"",c=K(1,o),g=w(o);return n===c||g}var B=i=>i.series?.[0]?.x??"";function Q(i,o){let e=i.series?.[0];return[`${o===d.Category?e.y:L} ${S.Descending}`]}var Y=(i,o)=>{let e=y.valueDesc,t=i.orderOptions?.data?.orderType??Q(i,o),r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:S.Descending;return t===u.Category&&Array.isArray(r)?e=y.customSort:t===u.Category?r===S.Ascending?e=y.labelAsc:e=y.labelDesc:r===S.Ascending?e=y.valueAsc:e=y.valueDesc,e},p=i=>{let o=[];return o=i.series?.[0]?.query?.outStatistics?.map(e=>e.onStatisticField)??[i.series?.[0]?.y??""],o.filter(e=>e!=="")},F=(i,o)=>{let e=p(i),t;return o===d.Fields&&e.length===0?t=m.Sum:t=i.series?.[0]?.query?.outStatistics?.[0]?.statisticType??m.NoAggregation,t};function G(i){let{config:o,layerInfo:e,mode:t,commonStrings:r}=i,n=O(e?.layer).idField,c=o.series[0]??_(r,n),g=B(o),l={...c,x:t===d.Category?g:T},s=F(o,t);if(s!==m.NoAggregation&&n!==void 0){let a=`${s}_${n}_0`.toUpperCase();l.y=t===d.Category?a:L,l.query={outStatistics:t===d.Category?[{statisticType:s,onStatisticField:n,outStatisticFieldName:a}]:[]}}return t===d.Category&&l.query!==void 0?l.query.groupByFieldsForStatistics=[g]:delete l.query?.groupByFieldsForStatistics,V(l)}function v(i){let{config:o,layerInfo:e,mode:t,commonStrings:r}=i,{layerFieldsInfo:n}=e,{idField:c,isTraditionalTypeOID:g}=O(e.layer),l=B(o),s=p(o),a=F(o,t),f=g&&(s.length===0||s.includes(c)),h=z(a,r),D=f?"":s.map(J=>x(n??[],J)).join(", "),I=x(n??[],l),C="",N;return t===d.Fields?N=s.length===0:N=l==="",N?C=r.utilsStrings.chartType.pieChart:a===m.NoAggregation?C=b(r.titleLabels.aggrFieldsByCategory,{aggregationFields:f?c:D,category:I}):a===m.Count?C=b(r.titleLabels.aggrTypeCategory,{aggregationType:h,category:I}):s.length>0&&(I===T||j(I)||$(I)?C=b(r.titleLabels.aggrTypeOfAggrFields,{aggregationType:h,aggregationFields:D}):C=b(r.titleLabels.aggrTypeOfAggrFieldsByCategory,{aggregationType:h,aggregationFields:D,category:I})),C}var ce=i=>{let{newSortOrderKind:o,config:e,orderByList:t}=i;e.orderOptions??={},o===y.customSort&&t!==void 0?e.orderOptions.data={orderType:u.Category,orderBy:[...t]}:e.orderOptions.data={orderType:o===y.labelAsc||o===y.labelDesc?u.Category:u.YValue,orderBy:o===y.labelAsc||o===y.valueAsc?S.Ascending:S.Descending}},le=i=>{let{newCategory:o,config:e,layerInfo:t,mode:r,commonStrings:n}=i,c=e.series?.length??0,g=E({config:e,layerInfo:t,commonStrings:n,mode:r}),l=P({config:e,layerInfo:t,commonStrings:n,mode:r});if(e.series.forEach(s=>{s.x=r===d.Category?o:T,s.query!==void 0&&o!==T?s.query.groupByFieldsForStatistics=[o]:delete s.query?.groupByFieldsForStatistics}),c===0){let s=[G({config:e,layerInfo:t,mode:r,commonStrings:n})];e.series=s}if(t!==void 0){if(l){let a=q({config:e,layerInfo:t,numericFields:p(e),aggregationType:F(e,r),commonStrings:n});A(e,1,a)}e.title&&g&&(e.title.content.text=v({config:e,layerInfo:t,commonStrings:n,mode:r}));let s=r===d.Fields?p(e).filter(a=>a!==O(t.layer).idField):p(e);W({newNumericFields:s,config:e,layerInfo:t,mode:r,commonStrings:n})}};function H(i){let{numericFields:o,aggregationType:e,config:t,layerInfo:r,mode:n,commonStrings:c}=i,{layerFieldsInfo:g}=r,l=[],s=G({config:t,layerInfo:r,mode:n,commonStrings:c});s.query||(s.query={}),o.length>1&&delete s.query?.where;let a=U({config:t,xAxisField:B(t),numericFields:o,aggregationType:e,mode:n,layer:r.layer,fieldList:g}).name;if(e!==m.NoAggregation)if(n===d.Category){if(o.length>0){let f=o[0];s.query.outStatistics=[{...s.query?.outStatistics?.[0]??{},onStatisticField:f,outStatisticFieldName:a,statisticType:e}],s.query.groupByFieldsForStatistics=[B(t)]}}else{s.query.outStatistics=[];for(let f of o)s.query.outStatistics?.push({onStatisticField:f,outStatisticFieldName:f,statisticType:e});delete s.query.groupByFieldsForStatistics}else s.query={};s.y=a,l.push(s),t.series=l}var de=i=>{let{newAggregationType:o,config:e,layerInfo:t,mode:r,commonStrings:n}=i,c=p(e),g=E({config:e,layerInfo:t,commonStrings:n,mode:r}),l=P({config:e,layerInfo:t,commonStrings:n,mode:r});if(H({config:e,layerInfo:t,numericFields:c,aggregationType:o,commonStrings:n,mode:r}),l){let h=q({config:e,layerInfo:t,commonStrings:n,numericFields:p(e),aggregationType:F(e,r)});A(e,1,h)}e.title&&g&&(e.title.content.text=v({config:e,layerInfo:t,commonStrings:n,mode:r}));let s=e.series?.[0]?.displayCategoryOnDataLabel,a=e.series?.[0]?.displayNumericValueOnDataLabel,f=e.series?.[0]?.displayPercentageOnDataLabel;e.legend={...e.legend??k(),displayNumericValue:a,displayPercentage:f,displayCategory:s}},W=i=>{let{newNumericFields:o}=i,{config:e,layerInfo:t,mode:r,commonStrings:n}=i,c=O(t?.layer).idField,g=F(e,r),l=E({config:e,layerInfo:t,commonStrings:n,mode:r}),s=P({config:e,layerInfo:t,commonStrings:n,mode:r});if(o=o===""?[]:o,o=typeof o=="string"?[o]:o,c!==void 0&&(o.length===0&&r===d.Category?(o=[c],g=m.Count):g===m.Count&&o.length>=1&&!o.includes(c)&&(g=m.Sum)),t!==void 0){if(H({config:e,layerInfo:t,commonStrings:n,numericFields:o,aggregationType:g,mode:r}),s){let a=q({config:e,layerInfo:t,commonStrings:n,numericFields:p(e),aggregationType:F(e,r)});A(e,1,a)}e.title&&l&&(e.title.content.text=v({config:e,layerInfo:t,commonStrings:n,mode:r}))}else e.series.forEach(a=>{delete a.query,a.y=o[0]})},ye=(i,o)=>{let e=[],t=i.orderOptions?.data?.orderType,r=Y(i,o),n=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:void 0;return r===y.customSort&&t===u.Category&&Array.isArray(n)&&(e=n),e},me=i=>{let{values:o,config:e,mode:t}=i;e.orderOptions??={};let r=e.orderOptions?.data?.orderType;Y(e,t)===y.customSort&&r===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:[...o]})};function fe(i){let{category:o="",numericFields:e=[],fallbackMode:t=d.Category}=i,r=o.trim()!==""&&o!==T,n=t;return e.length>1||!r&&e.length>0?n=d.Fields:r&&e.length<=1&&(n=d.Category),n}return{a:B,b:Y,c:p,d:F,e:v,f:ce,g:le,h:de,i:W,j:ye,k:me,l:fe}},"intl",a,b,c,e,f,g)
2
+ import g from"./HPZNKDNN.js";import f from"./K7KTLLN3.js";import e from"./O7QPA3NH.js";import c from"./RV2J4OPJ.js";import b from"./53QW4BYR.js";import a from"./L6ACX7PK.js";import{n as x}from"./PNFPQKYB.js";import{Aa as z,P as k,ja as _}from"./5L7BAEX5.js";import{d as V,p as $,q as j}from"./NGXRBJKL.js";import{d as y,e as d}from"./QP5UAIC6.js";import{b as m,h as S,v as u}from"./QVG3TOL4.js";export default $arcgis.t(([{substitute:b},{F:T,G:L,Wb:O},{c:A,d:q},{c:K},{a:M},{d:w},{g:U}])=>{function E(i){let{config:o,layerInfo:e,mode:t,commonStrings:r}=i,n=e!==void 0?v({config:o,layerInfo:e,commonStrings:r,mode:t}):"",c=M(o),g=w(o);return n===c||g}function P(i){let{config:o,layerInfo:e,mode:t,commonStrings:r}=i,n=e!==void 0?q({config:o,layerInfo:e,commonStrings:r,numericFields:p(o),aggregationType:F(o,t)}):"",c=K(1,o),g=w(o);return n===c||g}var B=i=>i.series?.[0]?.x??"";function Q(i,o){let e=i.series?.[0];return[`${o===d.Category?e.y:L} ${S.Descending}`]}var Y=(i,o)=>{let e=y.valueDesc,t=i.orderOptions?.data?.orderType??Q(i,o),r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:S.Descending;return t===u.Category&&Array.isArray(r)?e=y.customSort:t===u.Category?r===S.Ascending?e=y.labelAsc:e=y.labelDesc:r===S.Ascending?e=y.valueAsc:e=y.valueDesc,e},p=i=>{let o=[];return o=i.series?.[0]?.query?.outStatistics?.map(e=>e.onStatisticField)??[i.series?.[0]?.y??""],o.filter(e=>e!=="")},F=(i,o)=>{let e=p(i),t;return o===d.Fields&&e.length===0?t=m.Sum:t=i.series?.[0]?.query?.outStatistics?.[0]?.statisticType??m.NoAggregation,t};function G(i){let{config:o,layerInfo:e,mode:t,commonStrings:r}=i,n=O(e?.layer).idField,c=o.series[0]??_(r,n),g=B(o),l={...c,x:t===d.Category?g:T},s=F(o,t);if(s!==m.NoAggregation&&n!==void 0){let a=`${s}_${n}_0`.toUpperCase();l.y=t===d.Category?a:L,l.query={outStatistics:t===d.Category?[{statisticType:s,onStatisticField:n,outStatisticFieldName:a}]:[]}}return t===d.Category&&l.query!==void 0?l.query.groupByFieldsForStatistics=[g]:delete l.query?.groupByFieldsForStatistics,V(l)}function v(i){let{config:o,layerInfo:e,mode:t,commonStrings:r}=i,{layerFieldsInfo:n}=e,{idField:c,isTraditionalTypeOID:g}=O(e.layer),l=B(o),s=p(o),a=F(o,t),f=g&&(s.length===0||s.includes(c)),h=z(a,r),D=f?"":s.map(J=>x(n??[],J)).join(", "),I=x(n??[],l),C="",N;return t===d.Fields?N=s.length===0:N=l==="",N?C=r.utilsStrings.chartType.pieChart:a===m.NoAggregation?C=b(r.titleLabels.aggrFieldsByCategory,{aggregationFields:f?c:D,category:I}):a===m.Count?C=b(r.titleLabels.aggrTypeCategory,{aggregationType:h,category:I}):s.length>0&&(I===T||j(I)||$(I)?C=b(r.titleLabels.aggrTypeOfAggrFields,{aggregationType:h,aggregationFields:D}):C=b(r.titleLabels.aggrTypeOfAggrFieldsByCategory,{aggregationType:h,aggregationFields:D,category:I})),C}var ce=i=>{let{newSortOrderKind:o,config:e,orderByList:t}=i;e.orderOptions??={},o===y.customSort&&t!==void 0?e.orderOptions.data={orderType:u.Category,orderBy:[...t]}:e.orderOptions.data={orderType:o===y.labelAsc||o===y.labelDesc?u.Category:u.YValue,orderBy:o===y.labelAsc||o===y.valueAsc?S.Ascending:S.Descending}},le=i=>{let{newCategory:o,config:e,layerInfo:t,mode:r,commonStrings:n}=i,c=e.series?.length??0,g=E({config:e,layerInfo:t,commonStrings:n,mode:r}),l=P({config:e,layerInfo:t,commonStrings:n,mode:r});if(e.series.forEach(s=>{s.x=r===d.Category?o:T,s.query!==void 0&&o!==T?s.query.groupByFieldsForStatistics=[o]:delete s.query?.groupByFieldsForStatistics}),c===0){let s=[G({config:e,layerInfo:t,mode:r,commonStrings:n})];e.series=s}if(t!==void 0){if(l){let a=q({config:e,layerInfo:t,numericFields:p(e),aggregationType:F(e,r),commonStrings:n});A(e,1,a)}e.title&&g&&(e.title.content.text=v({config:e,layerInfo:t,commonStrings:n,mode:r}));let s=r===d.Fields?p(e).filter(a=>a!==O(t.layer).idField):p(e);W({newNumericFields:s,config:e,layerInfo:t,mode:r,commonStrings:n})}};function H(i){let{numericFields:o,aggregationType:e,config:t,layerInfo:r,mode:n,commonStrings:c}=i,{layerFieldsInfo:g}=r,l=[],s=G({config:t,layerInfo:r,mode:n,commonStrings:c});s.query||(s.query={}),o.length>1&&delete s.query?.where;let a=U({config:t,xAxisField:B(t),numericFields:o,aggregationType:e,mode:n,layer:r.layer,fieldList:g}).name;if(e!==m.NoAggregation)if(n===d.Category){if(o.length>0){let f=o[0];s.query.outStatistics=[{...s.query?.outStatistics?.[0]??{},onStatisticField:f,outStatisticFieldName:a,statisticType:e}],s.query.groupByFieldsForStatistics=[B(t)]}}else{s.query.outStatistics=[];for(let f of o)s.query.outStatistics?.push({onStatisticField:f,outStatisticFieldName:f,statisticType:e});delete s.query.groupByFieldsForStatistics}else s.query={};s.y=a,l.push(s),t.series=l}var de=i=>{let{newAggregationType:o,config:e,layerInfo:t,mode:r,commonStrings:n}=i,c=p(e),g=E({config:e,layerInfo:t,commonStrings:n,mode:r}),l=P({config:e,layerInfo:t,commonStrings:n,mode:r});if(H({config:e,layerInfo:t,numericFields:c,aggregationType:o,commonStrings:n,mode:r}),l){let h=q({config:e,layerInfo:t,commonStrings:n,numericFields:p(e),aggregationType:F(e,r)});A(e,1,h)}e.title&&g&&(e.title.content.text=v({config:e,layerInfo:t,commonStrings:n,mode:r}));let s=e.series?.[0]?.displayCategoryOnDataLabel,a=e.series?.[0]?.displayNumericValueOnDataLabel,f=e.series?.[0]?.displayPercentageOnDataLabel;e.legend={...e.legend??k(),displayNumericValue:a,displayPercentage:f,displayCategory:s}},W=i=>{let{newNumericFields:o}=i,{config:e,layerInfo:t,mode:r,commonStrings:n}=i,c=O(t?.layer).idField,g=F(e,r),l=E({config:e,layerInfo:t,commonStrings:n,mode:r}),s=P({config:e,layerInfo:t,commonStrings:n,mode:r});if(o=o===""?[]:o,o=typeof o=="string"?[o]:o,c!==void 0&&(o.length===0&&r===d.Category?(o=[c],g=m.Count):g===m.Count&&o.length>=1&&!o.includes(c)&&(g=m.Sum)),t!==void 0){if(H({config:e,layerInfo:t,commonStrings:n,numericFields:o,aggregationType:g,mode:r}),s){let a=q({config:e,layerInfo:t,commonStrings:n,numericFields:p(e),aggregationType:F(e,r)});A(e,1,a)}e.title&&l&&(e.title.content.text=v({config:e,layerInfo:t,commonStrings:n,mode:r}))}else e.series.forEach(a=>{delete a.query,a.y=o[0]})},ye=(i,o)=>{let e=[],t=i.orderOptions?.data?.orderType,r=Y(i,o),n=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:void 0;return r===y.customSort&&t===u.Category&&Array.isArray(n)&&(e=n),e},me=i=>{let{values:o,config:e,mode:t}=i;e.orderOptions??={};let r=e.orderOptions?.data?.orderType;Y(e,t)===y.customSort&&r===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:[...o]})};function fe(i){let{category:o="",numericFields:e=[],fallbackMode:t=d.Category}=i,r=o.trim()!==""&&o!==T,n=t;return e.length>1||!r&&e.length>0?n=d.Fields:r&&e.length<=1&&(n=d.Category),n}return{a:B,b:Y,c:p,d:F,e:v,f:ce,g:le,h:de,i:W,j:ye,k:me,l:fe}},"intl",a,b,c,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as i}from"./POA2XTTK.js";import a from"./VZUSTDAS.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import{b as d}from"./NGXRBJKL.js";import"./WULMITJI.js";import{B as n,H as h,g as r,i as s}from"./UE4KTI5X.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Sb:g,Ub:p,pa:c}])=>{var m=r`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,o=class extends n{static{this.properties={layerFieldsInfo:16,model:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=m}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!d(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,t=this.layer;if(!t){let l=c(a)?a.iLayer:void 0;l&&(t=await g(l))}t&&(await t.load(),this.layerFieldsInfo=p(t,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}async onModelConfigChange(e){let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)}render(){let e;switch(this.page){case i.Data:e=s`<arcgis-charts-config-heat-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-heat-chart-data>`;break;case i.Format:e=s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};h("arcgis-charts-config-heat-chart",o);return o},a)
2
+ import{d as i}from"./POA2XTTK.js";import a from"./L6ACX7PK.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import{b as d}from"./NGXRBJKL.js";import"./WULMITJI.js";import{B as n,H as h,g as r,i as s}from"./UE4KTI5X.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Sb:g,Ub:p,pa:c}])=>{var m=r`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,o=class extends n{static{this.properties={layerFieldsInfo:16,model:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=m}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!d(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,t=this.layer;if(!t){let l=c(a)?a.iLayer:void 0;l&&(t=await g(l))}t&&(await t.load(),this.layerFieldsInfo=p(t,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}async onModelConfigChange(e){let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)}render(){let e;switch(this.page){case i.Data:e=s`<arcgis-charts-config-heat-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-heat-chart-data>`;break;case i.Format:e=s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};h("arcgis-charts-config-heat-chart",o);return o},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import y from"./N2EY7RDB.js";import x from"./BZLDCR76.js";import"./SO5USEBM.js";import w from"./K63HGT6O.js";import v from"./SXRIEUIN.js";import u from"./N7UJDGTB.js";import t from"./HXUOAXW6.js";import s from"./WONOW5WD.js";import r from"./RL2LPFWQ.js";import q from"./XHCJKB27.js";import p from"./LALIPDHB.js";import o from"./EE7HRPYS.js";import n from"./4KVE3AGY.js";import k from"./XAUKPCFO.js";import j from"./Q5RYOZ3L.js";import"./TOL6YNER.js";import i from"./7YFEZ5NG.js";import h from"./E2KUCER2.js";import g from"./FJR2CXBV.js";import f from"./QOCXO3SH.js";import e from"./Y5JSJPHW.js";import b from"./FRFHLGO7.js";import a from"./VZUSTDAS.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import{C as c,ca as l,i as S,oa as d}from"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import"./UE4KTI5X.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as m}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Wb:o},{s:y},,{e:g},,,,,,,,,,,,,,{ta:f},{b:u,c:p,e:I},{b:b,d:v,f:_,h:k,j:x,t:w},L])=>{var F=Object.defineProperty,D=Object.getOwnPropertyDescriptor,M=(a,e,s,t)=>{for(var i=D(e,s),r=a.length-1,h;r>=0;r--)(h=a[r])&&(i=h(e,s,i)||i);return i&&F(e,s,i),i},n=class extends I{constructor(){super(...arguments),this._chartType=m.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),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=f({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}b({style:this.defaultSeries?.lineSymbol?.style,seriesIndex:e,config:this._config}),v({width:this.defaultSeries?.lineSymbol?.width,seriesIndex:e,config:this._config}),k({style:this.defaultSeries?.markerSymbol?.style,seriesIndex:e,config:this._config}),x({size:this.defaultSeries?.markerSymbol?.size,seriesIndex:e,config: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=f({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}};M([g],n.prototype,"resetSeriesStyling");var j=[w,L];y(n,j);return n},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"./JC3KQC4M.js";import x from"./CB6RALFJ.js";import"./SO5USEBM.js";import w from"./3V7MD72Y.js";import v from"./4R6YXEBJ.js";import u from"./R44U46BF.js";import t from"./HPZNKDNN.js";import s from"./G2T43FGA.js";import r from"./IJGJ7LW4.js";import q from"./J7CDASEM.js";import p from"./K7KTLLN3.js";import o from"./BRW7VZ2C.js";import n from"./JCSGUVJN.js";import k from"./5CXU3NKH.js";import j from"./3U6UEUC3.js";import"./TOL6YNER.js";import i from"./C7WUBEMI.js";import h from"./O7QPA3NH.js";import g from"./RV2J4OPJ.js";import f from"./U64ICCSZ.js";import e from"./AX6KSFYK.js";import b from"./53QW4BYR.js";import a from"./L6ACX7PK.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import{C as c,ca as l,i as S,oa as d}from"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import"./UE4KTI5X.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as m}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Wb:o},{s:y},,{e:g},,,,,,,,,,,,,,{ta:f},{b:u,c:p,e:I},{b:b,d:v,f:_,h:k,j:x,t:w},L])=>{var F=Object.defineProperty,D=Object.getOwnPropertyDescriptor,M=(a,e,s,t)=>{for(var i=D(e,s),r=a.length-1,h;r>=0;r--)(h=a[r])&&(i=h(e,s,i)||i);return i&&F(e,s,i),i},n=class extends I{constructor(){super(...arguments),this._chartType=m.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),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=f({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}b({style:this.defaultSeries?.lineSymbol?.style,seriesIndex:e,config:this._config}),v({width:this.defaultSeries?.lineSymbol?.width,seriesIndex:e,config:this._config}),k({style:this.defaultSeries?.markerSymbol?.style,seriesIndex:e,config:this._config}),x({size:this.defaultSeries?.markerSymbol?.size,seriesIndex:e,config: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=f({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}};M([g],n.prototype,"resetSeriesStyling");var j=[w,L];y(n,j);return n},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{a as T}from"./PABVNO3N.js";import{a as L}from"./YNHYJOH7.js";import{a as C}from"./RP6LD7CU.js";import f from"./PF5QGO7P.js";import"./POA2XTTK.js";import{a as I}from"./LVFZRGTZ.js";import e from"./FRFHLGO7.js";import c from"./VZUSTDAS.js";import"./WOGALV3T.js";import{c as v,d as k}from"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import{B as y,C as a,D as d,F as p,H as x,g as $,i as o,n as b}from"./UE4KTI5X.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{b as u,f as r}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{dd:h},,{r:P}])=>{var E={stackedType:"stacked-type"},l={topSection:"top-section",sectionLabel:"section-label",list:"list",disabledInfo:"disabled-info",disabledStackingOption:"disabled-stacking-option"},w=$`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`,f=class extends y{constructor(){super(...arguments),this._messages=I(),this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null&&e.detail!==void 0){let t=e.detail.name;if(this.isNullCategorySelected){let i=this.model.nullCategory;if(i){let s={...i,text:t};this.model.nullCategory=s}}else this.model.setSeriesName(t,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:t}=e.detail;if(t!==void 0){if(this.isNullCategorySelected){let i=this.model.nullCategory,s=h(i),n=i!==void 0&&s!==void 0?{...i,fillSymbol:{...s,color:t,outline:s.outline&&{...s.outline,color:t}}}:void 0;this.model.nullCategory=n}else this.model.setSeriesColor(t,this.selectedSeriesIndex??-1);this.model.colorMatch=!1}}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:t}=e.detail;this.selectedSeriesIndex===t&&(this.seriesPopover=C(this.seriesPopover),this.selectedSeriesIndex=void 0)},this.onModelConfigChange=()=>{this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading",this.arcgisChartsConfigDataChangeError=b()}static{this.properties={seriesOrderResetCounter:16,selectedSeriesIndex:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=w}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=C(this.seriesPopover))}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=p(o`<arcgis-charts-config-bar-chart-series-popover .referenceElement=${this.el} .selectedName=${this.selectedSeriesIndex!=null?this.model.getSeriesName(this.selectedSeriesIndex):void 0} .selectedColor=${this.selectedSeriesIndex!=null?this.model.getSeriesColor(this.selectedSeriesIndex):void 0} .placement=${this.popoverPlacement} .selectedSeriesIndex=${this.selectedSeriesIndex!=null?this.selectedSeriesIndex:void 0} .nullCategory=${this.isNullCategorySelected?this.model.nullCategory:void 0} .open=${this.open} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-bar-chart-series-popover>`),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength??0,t=Array.from({length:e},(i,s)=>s);return T(t,i=>this.model.getSeriesId(i),i=>{let s=this.model.getSeriesId(i),n=this.model.getSeriesColor(i),g=this.model.getSeriesName(i),m=this.model.chartSubType===k.BarAndLineFromFields?this._messages.series:s,c="#CCCCCC",S="minus-square";if((e>1||!this.activeColorMatch)&&n!==void 0){S="square-f";let[M,N,O,_]=[...n];c=`rgba(${M},${N},${O},${_/255})`}return o`<calcite-list-item .label=${g??s??""} .description=${m} .value=${s} .selected=${this.selectedSeriesIndex===i} @click=${this.openSeriesPopOver}><calcite-icon .icon=${S} style=${d({color:c})} slot=content-end></calcite-icon></calcite-list-item>`})}buildSeriesList(){return L(this.seriesOrderResetCounter,o`<calcite-list label class=${a(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}buildNullCategoryUI(){let e=this.model.nullCategory,t=this._messages.nullCategory,i=h(e)?.color??h(v.nullCategory)?.color??v.grayColor,[s,n,g,m]=[...i],c=`rgba(${s},${n},${g},${m/255})`;return o`<calcite-list label class=${a(l.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesIndex===null} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${d({color:c})} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}buildMultipleBarTypeList(){let e=this.shouldDisableStacking();return e&&this.model.stackedType!==r.Side&&(this.model.stackedType=r.Side),o`<calcite-list label id=${E.stackedType} class=${a(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleBarSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${r.Side} .selected=${this.model.stackedType===void 0||this.model.stackedType===r.Side}><calcite-icon scale=l icon=graph-bar-side-by-side slot=content-start></calcite-icon></calcite-list-item><calcite-list-item class=${a(e?l.disabledStackingOption:"")} .label=${this._messages.stacked} .value=${r.Stacked} .selected=${this.model.stackedType===r.Stacked}><calcite-icon scale=l icon=graph-bar-stacked slot=content-start></calcite-icon>${e&&o`<calcite-icon class=${a(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>`||""}</calcite-list-item><calcite-list-item class=${a(e?l.disabledStackingOption:"")} .label=${this._messages.stacked100} .value=${r.Stacked100} .selected=${this.model.stackedType===r.Stacked100}><calcite-icon scale=l icon=graph-bar100-stacked slot=content-start></calcite-icon>${e&&o`<calcite-icon class=${a(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>`||""}</calcite-list-item></calcite-list>`}resetSeriesOriginal(){this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}onMultipleBarSelect(e){if(!this.shouldDisableStacking()){let t=e.target;this.model.stackedType=t.value??t.parentElement.value??""}}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;this.model.moveSeries(i??0,t??i??0),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let t=e.target,i=t.localName==="calcite-list-item"?t:t.parentNode,s=this.model.getSeriesIndex(i.value);this.open=this.selectedSeriesIndex!==s,this.selectedSeriesIndex=this.selectedSeriesIndex!==s?s:void 0,this.isNullCategorySelected=i.value===this._messages.nullCategory}createTooltip(e){let t=e.target,i=(this.model.aggregationType===u.NoAggregation?this._messages.noAggStackingDisabled:this._messages.singleStackingDisabled)??"";this.tooltip=p(o`<calcite-tooltip style=${d({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){P(this.tooltip)}shouldDisableStacking(){return(this.model.seriesLength??0)<=1||this.model.aggregationType===u.NoAggregation}render(){return o`<div class=${`${l.sectionLabel} ${l.topSection}`}>${this._messages.displayMultiSeries}</div>${this.buildMultipleBarTypeList()}<div class=${a(l.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}${this.model.nullCategory!==void 0&&this.model.fetchNULLValues?this.buildNullCategoryUI():null}`}};x("arcgis-charts-config-bar-chart-series",f);return f},c,e,f)
2
+ import{a as T}from"./PABVNO3N.js";import{a as L}from"./YNHYJOH7.js";import{a as C}from"./RP6LD7CU.js";import f from"./7TK4GSLV.js";import"./POA2XTTK.js";import{a as I}from"./LVFZRGTZ.js";import e from"./53QW4BYR.js";import c from"./L6ACX7PK.js";import"./WOGALV3T.js";import{c as v,d as k}from"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import{B as y,C as a,D as d,F as p,H as x,g as $,i as o,n as b}from"./UE4KTI5X.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{b as u,f as r}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{dd:h},,{r:P}])=>{var E={stackedType:"stacked-type"},l={topSection:"top-section",sectionLabel:"section-label",list:"list",disabledInfo:"disabled-info",disabledStackingOption:"disabled-stacking-option"},w=$`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`,f=class extends y{constructor(){super(...arguments),this._messages=I(),this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null&&e.detail!==void 0){let t=e.detail.name;if(this.isNullCategorySelected){let i=this.model.nullCategory;if(i){let s={...i,text:t};this.model.nullCategory=s}}else this.model.setSeriesName(t,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:t}=e.detail;if(t!==void 0){if(this.isNullCategorySelected){let i=this.model.nullCategory,s=h(i),n=i!==void 0&&s!==void 0?{...i,fillSymbol:{...s,color:t,outline:s.outline&&{...s.outline,color:t}}}:void 0;this.model.nullCategory=n}else this.model.setSeriesColor(t,this.selectedSeriesIndex??-1);this.model.colorMatch=!1}}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:t}=e.detail;this.selectedSeriesIndex===t&&(this.seriesPopover=C(this.seriesPopover),this.selectedSeriesIndex=void 0)},this.onModelConfigChange=()=>{this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading",this.arcgisChartsConfigDataChangeError=b()}static{this.properties={seriesOrderResetCounter:16,selectedSeriesIndex:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=w}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=C(this.seriesPopover))}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=p(o`<arcgis-charts-config-bar-chart-series-popover .referenceElement=${this.el} .selectedName=${this.selectedSeriesIndex!=null?this.model.getSeriesName(this.selectedSeriesIndex):void 0} .selectedColor=${this.selectedSeriesIndex!=null?this.model.getSeriesColor(this.selectedSeriesIndex):void 0} .placement=${this.popoverPlacement} .selectedSeriesIndex=${this.selectedSeriesIndex!=null?this.selectedSeriesIndex:void 0} .nullCategory=${this.isNullCategorySelected?this.model.nullCategory:void 0} .open=${this.open} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-bar-chart-series-popover>`),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength??0,t=Array.from({length:e},(i,s)=>s);return T(t,i=>this.model.getSeriesId(i),i=>{let s=this.model.getSeriesId(i),n=this.model.getSeriesColor(i),g=this.model.getSeriesName(i),m=this.model.chartSubType===k.BarAndLineFromFields?this._messages.series:s,c="#CCCCCC",S="minus-square";if((e>1||!this.activeColorMatch)&&n!==void 0){S="square-f";let[M,N,O,_]=[...n];c=`rgba(${M},${N},${O},${_/255})`}return o`<calcite-list-item .label=${g??s??""} .description=${m} .value=${s} .selected=${this.selectedSeriesIndex===i} @click=${this.openSeriesPopOver}><calcite-icon .icon=${S} style=${d({color:c})} slot=content-end></calcite-icon></calcite-list-item>`})}buildSeriesList(){return L(this.seriesOrderResetCounter,o`<calcite-list label class=${a(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}buildNullCategoryUI(){let e=this.model.nullCategory,t=this._messages.nullCategory,i=h(e)?.color??h(v.nullCategory)?.color??v.grayColor,[s,n,g,m]=[...i],c=`rgba(${s},${n},${g},${m/255})`;return o`<calcite-list label class=${a(l.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesIndex===null} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${d({color:c})} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}buildMultipleBarTypeList(){let e=this.shouldDisableStacking();return e&&this.model.stackedType!==r.Side&&(this.model.stackedType=r.Side),o`<calcite-list label id=${E.stackedType} class=${a(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleBarSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${r.Side} .selected=${this.model.stackedType===void 0||this.model.stackedType===r.Side}><calcite-icon scale=l icon=graph-bar-side-by-side slot=content-start></calcite-icon></calcite-list-item><calcite-list-item class=${a(e?l.disabledStackingOption:"")} .label=${this._messages.stacked} .value=${r.Stacked} .selected=${this.model.stackedType===r.Stacked}><calcite-icon scale=l icon=graph-bar-stacked slot=content-start></calcite-icon>${e&&o`<calcite-icon class=${a(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>`||""}</calcite-list-item><calcite-list-item class=${a(e?l.disabledStackingOption:"")} .label=${this._messages.stacked100} .value=${r.Stacked100} .selected=${this.model.stackedType===r.Stacked100}><calcite-icon scale=l icon=graph-bar100-stacked slot=content-start></calcite-icon>${e&&o`<calcite-icon class=${a(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>`||""}</calcite-list-item></calcite-list>`}resetSeriesOriginal(){this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}onMultipleBarSelect(e){if(!this.shouldDisableStacking()){let t=e.target;this.model.stackedType=t.value??t.parentElement.value??""}}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;this.model.moveSeries(i??0,t??i??0),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let t=e.target,i=t.localName==="calcite-list-item"?t:t.parentNode,s=this.model.getSeriesIndex(i.value);this.open=this.selectedSeriesIndex!==s,this.selectedSeriesIndex=this.selectedSeriesIndex!==s?s:void 0,this.isNullCategorySelected=i.value===this._messages.nullCategory}createTooltip(e){let t=e.target,i=(this.model.aggregationType===u.NoAggregation?this._messages.noAggStackingDisabled:this._messages.singleStackingDisabled)??"";this.tooltip=p(o`<calcite-tooltip style=${d({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){P(this.tooltip)}shouldDisableStacking(){return(this.model.seriesLength??0)<=1||this.model.aggregationType===u.NoAggregation}render(){return o`<div class=${`${l.sectionLabel} ${l.topSection}`}>${this._messages.displayMultiSeries}</div>${this.buildMultipleBarTypeList()}<div class=${a(l.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}${this.model.nullCategory!==void 0&&this.model.fetchNULLValues?this.buildNullCategoryUI():null}`}};x("arcgis-charts-config-bar-chart-series",f);return f},c,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as k}from"./PABVNO3N.js";import{a as $}from"./YNHYJOH7.js";import{b as _,c as B}from"./RP6LD7CU.js";import d from"./PF5QGO7P.js";import{f as s}from"./POA2XTTK.js";import{a as f}from"./LVFZRGTZ.js";import c from"./FRFHLGO7.js";import b from"./VZUSTDAS.js";import"./WOGALV3T.js";import{n as A,u as S}from"./PNFPQKYB.js";import{Aa as x,Ba as E}from"./5L7BAEX5.js";import{a as I}from"./KX7KGXKQ.js";import{b as v}from"./NGXRBJKL.js";import"./WULMITJI.js";import{A as p,B as P,C as o,H as F,g as L,i as a,n as u,z as h}from"./UE4KTI5X.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{k as r,o as m}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{$b:z,Xb:b,Yb:D,_b:T},,{a:w,c:C,g:K,k:d,o:N}])=>{var H=L`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`,c={name:"line-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",sizeSection:"size-section",applyButton:"apply-button"},y=class extends P{constructor(){super(...arguments),this._messages=f(),this.commonStrings=f({name:"common",blocking:!0}),this.picklist=h(),this.intervalSizeElement=h(),this.intervalTypeElement=h(),this.popoverElement=h(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigLineChartDataPopoverChange=u(),this.arcgisChartsConfigLineChartPopoverClose=u()}static{this.properties={aggregationLabels:16,timeAggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=H}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=C.map(n=>x(n,this.commonStrings));v(this.aggregationLabels,t)||(this.aggregationLabels=t);let i=[m.Start,m.End].map(n=>E(n,this.commonStrings));v(this.timeAggregationLabels,i)||(this.timeAggregationLabels=i)}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},w.PopoverTimer),_(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}buildAggregationPickListItems(){return k(C,e=>e,(e,t)=>a`<calcite-list-item .label=${this.aggregationLabels?.[t]} .value=${e} .selected=${d(e,this.selectedContent)}></calcite-list-item>`)}buildIntervalAlignmentPickListItems(){let e=[m.Start,m.End];return k(e,t=>t,(t,i)=>a`<calcite-list-item .label=${this.timeAggregationLabels?.[i]} .value=${t} .selected=${d(t,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return $(e.name,a`<calcite-list-item .label=${A(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${d(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case s.numericFields:{for(let n=0;n<t;n+=1){let l=this.layerFieldsInfo?.[n];l&&b(l)&&i.push(this.buildPickListItem(l))}break}case s.xAxisField:{for(let n=0;n<t;n+=1){let l=this.layerFieldsInfo?.[n];l&&(b(l)||D(l)||T(l))&&i.push(this.buildPickListItem(l))}break}case s.splitByField:{let n=$(" ",a`<calcite-list-item label=" " value=" " .selected=${d("",this.selectedContent)}></calcite-list-item>`);i.push(n);for(let l=0;l<t;l+=1){let g=this.layerFieldsInfo?.[l];g&&(z(g)||g.type===I.String)&&i.push(this.buildPickListItem(g))}break}}return i}closePopover(){if(this.contentKind===s.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigLineChartDataPopoverChange,contentKind:this.contentKind};N(e)}this.open=!1,this.arcgisChartsConfigLineChartPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigLineChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}intervalChange(){let e=Number.parseInt(this.intervalSizeElement.value?.value??""),t=this.intervalTypeElement.value?.selectedOption?.value;!Number.isNaN(e)&&e>0&&this.arcgisChartsConfigLineChartDataPopoverChange.emit({contentKind:this.contentKind,value:[{intervalSize:e,intervalUnits:t}]}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisField(){let e=this.buildPickListItems(s.xAxisField);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(s.numericFields);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(s.splitByField);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderIntervalAlignment(){let e=this.buildIntervalAlignmentPickListItems();return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderInterval(){let e=this.selectedContent,t=[r.Second,r.Minute,r.Hour,r.Day,r.Week,r.Month,r.Year];return a`<div><div class=${o(c.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${K(e?.size,1)} ${p(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType??""} ${p(this.intervalTypeElement)}>${t.map(i=>a`<calcite-option .value=${i} .label=${S(i,this._messages)} .selected=${e?.unit===i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(c.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`}renderPopoverInfo(){let e;switch(this.contentKind){case s.aggregation:e=this.renderAggregationType();break;case s.xAxisField:e=this.renderXAxisField();break;case s.numericFields:e=this.renderNumericFields();break;case s.splitByField:e=this.renderSplitByField();break;case s.intervalAlignment:e=this.renderIntervalAlignment();break;case s.interval:e=this.renderInterval();break}return e}render(){let e;return this.contentKind===s.numericFields&&(e=a`<div slot=footer><calcite-fab class=${o(c.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),a`<div><calcite-popover class=${o(c.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(c.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};F("arcgis-charts-config-line-chart-popover",y);return y},b,c,d)
2
+ import{a as k}from"./PABVNO3N.js";import{a as $}from"./YNHYJOH7.js";import{b as _,c as B}from"./RP6LD7CU.js";import d from"./7TK4GSLV.js";import{f as s}from"./POA2XTTK.js";import{a as f}from"./LVFZRGTZ.js";import c from"./53QW4BYR.js";import b from"./L6ACX7PK.js";import"./WOGALV3T.js";import{n as A,u as S}from"./PNFPQKYB.js";import{Aa as x,Ba as E}from"./5L7BAEX5.js";import{a as I}from"./KX7KGXKQ.js";import{b as v}from"./NGXRBJKL.js";import"./WULMITJI.js";import{A as p,B as P,C as o,H as F,g as L,i as a,n as u,z as h}from"./UE4KTI5X.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{k as r,o as m}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{$b:z,Xb:b,Yb:D,_b:T},,{a:w,c:C,g:K,k:d,o:N}])=>{var H=L`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`,c={name:"line-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",sizeSection:"size-section",applyButton:"apply-button"},y=class extends P{constructor(){super(...arguments),this._messages=f(),this.commonStrings=f({name:"common",blocking:!0}),this.picklist=h(),this.intervalSizeElement=h(),this.intervalTypeElement=h(),this.popoverElement=h(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigLineChartDataPopoverChange=u(),this.arcgisChartsConfigLineChartPopoverClose=u()}static{this.properties={aggregationLabels:16,timeAggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=H}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=C.map(n=>x(n,this.commonStrings));v(this.aggregationLabels,t)||(this.aggregationLabels=t);let i=[m.Start,m.End].map(n=>E(n,this.commonStrings));v(this.timeAggregationLabels,i)||(this.timeAggregationLabels=i)}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},w.PopoverTimer),_(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}buildAggregationPickListItems(){return k(C,e=>e,(e,t)=>a`<calcite-list-item .label=${this.aggregationLabels?.[t]} .value=${e} .selected=${d(e,this.selectedContent)}></calcite-list-item>`)}buildIntervalAlignmentPickListItems(){let e=[m.Start,m.End];return k(e,t=>t,(t,i)=>a`<calcite-list-item .label=${this.timeAggregationLabels?.[i]} .value=${t} .selected=${d(t,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return $(e.name,a`<calcite-list-item .label=${A(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${d(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case s.numericFields:{for(let n=0;n<t;n+=1){let l=this.layerFieldsInfo?.[n];l&&b(l)&&i.push(this.buildPickListItem(l))}break}case s.xAxisField:{for(let n=0;n<t;n+=1){let l=this.layerFieldsInfo?.[n];l&&(b(l)||D(l)||T(l))&&i.push(this.buildPickListItem(l))}break}case s.splitByField:{let n=$(" ",a`<calcite-list-item label=" " value=" " .selected=${d("",this.selectedContent)}></calcite-list-item>`);i.push(n);for(let l=0;l<t;l+=1){let g=this.layerFieldsInfo?.[l];g&&(z(g)||g.type===I.String)&&i.push(this.buildPickListItem(g))}break}}return i}closePopover(){if(this.contentKind===s.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigLineChartDataPopoverChange,contentKind:this.contentKind};N(e)}this.open=!1,this.arcgisChartsConfigLineChartPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigLineChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}intervalChange(){let e=Number.parseInt(this.intervalSizeElement.value?.value??""),t=this.intervalTypeElement.value?.selectedOption?.value;!Number.isNaN(e)&&e>0&&this.arcgisChartsConfigLineChartDataPopoverChange.emit({contentKind:this.contentKind,value:[{intervalSize:e,intervalUnits:t}]}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisField(){let e=this.buildPickListItems(s.xAxisField);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(s.numericFields);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(s.splitByField);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderIntervalAlignment(){let e=this.buildIntervalAlignmentPickListItems();return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderInterval(){let e=this.selectedContent,t=[r.Second,r.Minute,r.Hour,r.Day,r.Week,r.Month,r.Year];return a`<div><div class=${o(c.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${K(e?.size,1)} ${p(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType??""} ${p(this.intervalTypeElement)}>${t.map(i=>a`<calcite-option .value=${i} .label=${S(i,this._messages)} .selected=${e?.unit===i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(c.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`}renderPopoverInfo(){let e;switch(this.contentKind){case s.aggregation:e=this.renderAggregationType();break;case s.xAxisField:e=this.renderXAxisField();break;case s.numericFields:e=this.renderNumericFields();break;case s.splitByField:e=this.renderSplitByField();break;case s.intervalAlignment:e=this.renderIntervalAlignment();break;case s.interval:e=this.renderInterval();break}return e}render(){let e;return this.contentKind===s.numericFields&&(e=a`<div slot=footer><calcite-fab class=${o(c.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),a`<div><calcite-popover class=${o(c.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(c.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};F("arcgis-charts-config-line-chart-popover",y);return y},b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as E}from"./PABVNO3N.js";import{a as h}from"./YNHYJOH7.js";import{b as T,c as B}from"./RP6LD7CU.js";import d from"./PF5QGO7P.js";import{k as o}from"./POA2XTTK.js";import{a as I}from"./LVFZRGTZ.js";import b from"./FRFHLGO7.js";import a from"./VZUSTDAS.js";import"./WOGALV3T.js";import{n as L}from"./PNFPQKYB.js";import"./5L7BAEX5.js";import{a as g}from"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import{A as p,B as k,C as c,D as y,F as P,H as x,g as $,i as n,n as u,z as f}from"./UE4KTI5X.js";import{b as l}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:K},{$b:b,Pa:F,Xb:D},,{a:v,k:m,o:S,r:w}])=>{var a={name:"bar-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",sortMean:"sort-mean",sortMedian:"sort-median",sortOrderPickList:"sort-order-pick-list",panel:"panel"},O=$`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,C=class extends k{constructor(){super(...arguments),this._messages=I(),this.picklist=f(),this.placement="leading",this.popoverElement=f(),this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.isCustomSortDisabled=!1,this.arcgisChartsConfigBoxPlotDataPopoverChange=u(),this.arcgisChartsConfigPopoverClose=u()}static{this.properties={messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,isCustomSortDisabled:5,selectedContent:1}}static{this.styles=O}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"))}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},v.PopoverTimer),T(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}closePopover(){if(this.contentKind===o.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigBoxPlotDataPopoverChange,contentKind:this.contentKind};S(e)}this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigBoxPlotDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}buildPickListItem(e){return h(e.name,n`<calcite-list-item .label=${L(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${m(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case o.numericFields:{for(let s=0;s<t;s+=1){let r=this.layerFieldsInfo[s];D(r)&&i.push(this.buildPickListItem(r))}break}case o.category:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let r=0;r<t;r+=1){let d=this.layerFieldsInfo[r];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}case o.splitByField:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let r=0;r<t;r+=1){let d=this.layerFieldsInfo[r];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}}return i}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}buildSortOrder(){let e=Object.keys(l),t;return E(e,i=>i,i=>{let s="";switch(i){case l.xAxisAsc:{t="a-z-down";break}case l.xAxisDesc:{t="a-z-up";break}case l.meanAsc:t="sort-descending",s=a.sortMean;break;case l.meanDesc:{t="sort-ascending",s=a.sortMean;break}case l.medianAsc:{t="sort-descending",s=a.sortMedian;break}case l.medianDesc:{t="sort-ascending",s=a.sortMedian;break}case l.customSort:{t="arrow-up-down";break}}return n`<calcite-list-item .disabled=${this.isCustomSortDisabled&&i===l.customSort} .label=${this._messages[i]} .selected=${this.selectedContent===i} .value=${l[i]} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}><calcite-icon class=${`sort-icon-color ${s}`} slot=content-start .icon=${t}></calcite-icon></calcite-list-item>`})}onNumericFieldSelectionDone(){this.closePopover()}createTooltip(e){if(e.target?.label===this._messages.customSort&&this.isCustomSortDisabled){let t=e.target,i=F(t),s=new Intl.NumberFormat(i).format(v.customSortLimit),r=K(this._messages.customSortLimit??"",{totalLimit:s});this.tooltip=P(n`<calcite-tooltip style=${y({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${r}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}}destroyTooltip(){w(this.tooltip)}renderCategory(){let e=this.buildPickListItems(o.category);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(o.numericFields);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(o.splitByField);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return n`<calcite-list label class=${`${a.popoverPickList} ${a.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case o.category:e=this.renderCategory();break;case o.numericFields:e=this.renderNumericFields();break;case o.splitByField:e=this.renderSplitByField();break;case o.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===o.numericFields&&(e=n`<div slot=footer><calcite-fab class=${c(a.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),n`<div><calcite-popover class=${c(a.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${c(a.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(a.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};x("arcgis-charts-config-box-plot-popover",C);return C},"intl",a,b,d)
2
+ import{a as E}from"./PABVNO3N.js";import{a as h}from"./YNHYJOH7.js";import{b as T,c as B}from"./RP6LD7CU.js";import d from"./7TK4GSLV.js";import{k as o}from"./POA2XTTK.js";import{a as I}from"./LVFZRGTZ.js";import b from"./53QW4BYR.js";import a from"./L6ACX7PK.js";import"./WOGALV3T.js";import{n as x}from"./PNFPQKYB.js";import"./5L7BAEX5.js";import{a as g}from"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import{A as p,B as k,C as c,D as y,F as P,H as L,g as $,i as n,n as u,z as f}from"./UE4KTI5X.js";import{b as l}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:O},{$b:b,Pa:F,Xb:D},,{a:v,k:m,o:S,r:w}])=>{var a={name:"bar-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",sortMean:"sort-mean",sortMedian:"sort-median",sortOrderPickList:"sort-order-pick-list",panel:"panel"},z=$`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,C=class extends k{constructor(){super(...arguments),this._messages=I(),this.picklist=f(),this.placement="leading",this.popoverElement=f(),this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.isCustomSortDisabled=!1,this.arcgisChartsConfigBoxPlotDataPopoverChange=u(),this.arcgisChartsConfigPopoverClose=u()}static{this.properties={messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,isCustomSortDisabled:5,selectedContent:1}}static{this.styles=z}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"))}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},v.PopoverTimer),T(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}closePopover(){if(this.contentKind===o.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigBoxPlotDataPopoverChange,contentKind:this.contentKind};S(e)}this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigBoxPlotDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}buildPickListItem(e){return h(e.name,n`<calcite-list-item .label=${x(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${m(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case o.numericFields:{for(let s=0;s<t;s+=1){let r=this.layerFieldsInfo[s];D(r)&&i.push(this.buildPickListItem(r))}break}case o.category:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let r=0;r<t;r+=1){let d=this.layerFieldsInfo[r];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}case o.splitByField:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let r=0;r<t;r+=1){let d=this.layerFieldsInfo[r];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}}return i}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}buildSortOrder(){let e=Object.keys(l),t;return E(e,i=>i,i=>{let s="";switch(i){case l.xAxisAsc:{t="a-z-down";break}case l.xAxisDesc:{t="a-z-up";break}case l.meanAsc:t="sort-descending",s=a.sortMean;break;case l.meanDesc:{t="sort-ascending",s=a.sortMean;break}case l.medianAsc:{t="sort-descending",s=a.sortMedian;break}case l.medianDesc:{t="sort-ascending",s=a.sortMedian;break}case l.customSort:{t="arrow-up-down";break}}return n`<calcite-list-item .disabled=${this.isCustomSortDisabled&&i===l.customSort} .label=${this._messages[i]} .selected=${this.selectedContent===i} .value=${l[i]} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}><calcite-icon class=${`sort-icon-color ${s}`} slot=content-start .icon=${t}></calcite-icon></calcite-list-item>`})}onNumericFieldSelectionDone(){this.closePopover()}createTooltip(e){if(e.target?.label===this._messages.customSort&&this.isCustomSortDisabled){let t=e.target,i=F(t),s=new Intl.NumberFormat(i).format(v.customSortLimit),r=O(this._messages.customSortLimit??"",{totalLimit:s});this.tooltip=P(n`<calcite-tooltip style=${y({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${r}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}}destroyTooltip(){w(this.tooltip)}renderCategory(){let e=this.buildPickListItems(o.category);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(o.numericFields);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(o.splitByField);return n`<calcite-list label class=${c(a.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return n`<calcite-list label class=${`${a.popoverPickList} ${a.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case o.category:e=this.renderCategory();break;case o.numericFields:e=this.renderNumericFields();break;case o.splitByField:e=this.renderSplitByField();break;case o.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===o.numericFields&&(e=n`<div slot=footer><calcite-fab class=${c(a.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),n`<div><calcite-popover class=${c(a.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${c(a.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(a.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};L("arcgis-charts-config-box-plot-popover",C);return C},"intl",a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import g from"./4KVE3AGY.js";import f from"./7YFEZ5NG.js";import e from"./FJR2CXBV.js";import c from"./QOCXO3SH.js";import a from"./FRFHLGO7.js";import{E as l}from"./5L7BAEX5.js";import{d as b}from"./NGXRBJKL.js";import{j as d}from"./QP5UAIC6.js";import{p as u}from"./QVG3TOL4.js";export default $arcgis.t(([{a:m,b:h,e:p,f:y,j:r,k:I,l:A,m:L,n:C,o:V,s:v},{e:n},{a:S,b:T,c:B,d:O,e:M,f:k,g:z,h:D},G,{a:Y,b:Z,c:_}])=>{var H=e=>{for(let i of e.axes??[])if(i?.grid!==void 0)return i.grid},N=(e,i,s)=>{let t=i.axes;(s??t?.map((o,g)=>g)??[]).forEach(o=>{t?.[o]!==void 0&&(t[o].grid=b(e))})},j=(e,i)=>i.axes?.[e]?.visible??!0,w=(e,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=e)},P=(e,i)=>e.axes?.[i]?.displayZeroLine??!1,q=e=>{let{config:i,displayZeroLine:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.displayZeroLine=s}})},U=(e,i)=>e.axes?.[i]?.displayCursorTooltip??!1,W=e=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=e;m({config:i,axisIndex:t,callback:o=>{o.displayCursorTooltip=s}})},E=(e,i)=>e.axes?.[i]?.buffer??!1,R=e=>{let{config:i,buffer:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.buffer=s}})},X=(e,i)=>e.axes?.[i]?.tickSpacing,J=e=>{let{config:i,tickSpacing:s,axisIndex:t}=e;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},K=(e,i)=>e.axes?.[i]?.integerOnlyValues??!1,Q=e=>{let{config:i,integerOnlyValues:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.integerOnlyValues=s}})},$=e=>e.horizontalAxisLabelsBehavior??u.Rotate,ii=(e,i)=>{i.horizontalAxisLabelsBehavior=e},si=e=>e.verticalAxisLabelsBehavior??u.Wrap,ei=(e,i)=>{i.verticalAxisLabelsBehavior=e},ti=e=>e.cursorCrosshair?.horizontalLineVisible??!1,oi=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=e},ri=e=>e.cursorCrosshair?.verticalLineVisible??!1,ni=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=e},ai=e=>e.cursorCrosshair?.style,ci=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=e},gi=e=>e.cursorCrosshair,fi=(e,i)=>{i.cursorCrosshair=e},xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,c=(e,i,s,t)=>{for(var o=li(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&xi(i,s,o),o},a=class extends G{getAxisTitleText(i){return r({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??""}setAxisTitleText(i,s){r({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getAxisVisibility(i){return r({config:this._config,axisIndex:i,func:s=>j(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{r({config:this._config,axisIndex:s,func:t=>{w(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return r({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{T({visibility:i,axisIndex:s,config:this._config}),this.emitConfigUpdate("setAxisLabelsVisibility")})}getAxisTitleVisibility(i){return r({config:this._config,axisIndex:i,func:s=>M(s,this._config)})??!1}setAxisTitleVisibility(i,s){k({visibility:i,axisIndex:s,config:this._config})}getMaxBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return r({config:this._config,axisIndex:i,func:s=>I(s,this._config)})}setAxisValueFormat(i,s){r({config:this._config,axisIndex:i,func:t=>{A({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return r({config:this._config,axisIndex:i,func:s=>L(this._config,s)})??!1}setLogarithmic(i,s){r({config:this._config,axisIndex:s,func:t=>{C({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return r({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){r({config:this._config,axisIndex:s,func:t=>{V({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return r({config:this._config,axisIndex:i,func:s=>z(this._config,s)})}setAxisTitleSymbol(i,s){D({symbol:i,config:this._config,axisIndex:s})}getHorizontalAxisLabelsBehavior(){return $(this._config)}setHorizontalAxisLabelsBehavior(i){ii(i,this._config)}getVerticalAxisLabelsBehavior(){return si(this._config)}setVerticalAxisLabelsBehavior(i){ei(i,this._config)}getGridLinesSymbol(){return H(this._config)}setGridLinesSymbol(i,s){N(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return r({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayZeroLine(i,s){q({config:this._config,displayZeroLine:i,axisIndex:s})}getDisplayCursorTooltip(i){return r({config:this._config,axisIndex:i,func:s=>U(this._config,s)})??!1}setDisplayCursorTooltip(i,s){W({config:this._config,displayCursorTooltip:i,axisIndex:s})}getBuffer(i){return r({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){R({config:this._config,buffer:i,axisIndex:s})}getTickSpacing(i){return X(this._config,i)}setTickSpacing(i,s){r({config:this._config,axisIndex:s,func:t=>{J({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return r({config:this._config,axisIndex:i,func:s=>K(this._config,s)})??!1}setIntegerOnlyValues(i,s){Q({config:this._config,integerOnlyValues:i,axisIndex:s})}get cursorCrosshairHorizontalLineVisibility(){return ti(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ri(this._config)}set cursorCrosshairVerticalLineVisibility(i){ni(i,this._config)}get cursorCrosshairStyle(){return ai(this._config)}set cursorCrosshairStyle(i){i&&ci(i,this._config)}get cursorCrosshair(){return gi(this._config)}set cursorCrosshair(i){i&&fi(i,this._config)}};c([n],a.prototype,"setAxisTitleText");c([n],a.prototype,"setAxisTitleVisibility");c([n],a.prototype,"setMaxBound");c([n],a.prototype,"setMinBound");c([n],a.prototype,"setAxisValueFormat");c([n],a.prototype,"setLogarithmic");c([n],a.prototype,"setAxisScrollbar");c([n],a.prototype,"setAxisTitleSymbol");c([n],a.prototype,"setHorizontalAxisLabelsBehavior");c([n],a.prototype,"setVerticalAxisLabelsBehavior");c([n],a.prototype,"setGridLinesSymbol");c([n],a.prototype,"setDisplayZeroLine");c([n],a.prototype,"setDisplayCursorTooltip");c([n],a.prototype,"setBuffer");c([n],a.prototype,"setTickSpacing");c([n],a.prototype,"setIntegerOnlyValues");c([n],a.prototype,"cursorCrosshairHorizontalLineVisibility");c([n],a.prototype,"cursorCrosshairVerticalLineVisibility");c([n],a.prototype,"cursorCrosshairStyle");c([n],a.prototype,"cursorCrosshair");var hi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,F=(e,i,s,t)=>{for(var o=ui(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&hi(i,s,o),o},x=class extends _{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){Y({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){Z({config:this._config,index:i,orientation:d.Y})}};F([n],x.prototype,"addYAxisGuide");F([n],x.prototype,"deleteYAxisGuide");var di=[_];v(x,di);return{a:a,b:x}},a,c,e,f,g)
2
+ import g from"./JCSGUVJN.js";import f from"./C7WUBEMI.js";import e from"./RV2J4OPJ.js";import c from"./U64ICCSZ.js";import a from"./53QW4BYR.js";import{E as l}from"./5L7BAEX5.js";import{d as b}from"./NGXRBJKL.js";import{j as d}from"./QP5UAIC6.js";import{p as u}from"./QVG3TOL4.js";export default $arcgis.t(([{a:m,b:h,e:p,f:y,j:r,k:I,l:A,m:L,n:C,o:V,s:v},{e:n},{a:S,b:T,c:B,d:O,e:M,f:k,g:z,h:D},G,{a:Y,b:Z,c:_}])=>{var H=e=>{for(let i of e.axes??[])if(i?.grid!==void 0)return i.grid},N=(e,i,s)=>{let t=i.axes;(s??t?.map((o,g)=>g)??[]).forEach(o=>{t?.[o]!==void 0&&(t[o].grid=b(e))})},j=(e,i)=>i.axes?.[e]?.visible??!0,w=(e,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=e)},P=(e,i)=>e.axes?.[i]?.displayZeroLine??!1,q=e=>{let{config:i,displayZeroLine:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.displayZeroLine=s}})},U=(e,i)=>e.axes?.[i]?.displayCursorTooltip??!1,W=e=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=e;m({config:i,axisIndex:t,callback:o=>{o.displayCursorTooltip=s}})},E=(e,i)=>e.axes?.[i]?.buffer??!1,R=e=>{let{config:i,buffer:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.buffer=s}})},X=(e,i)=>e.axes?.[i]?.tickSpacing,J=e=>{let{config:i,tickSpacing:s,axisIndex:t}=e;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},K=(e,i)=>e.axes?.[i]?.integerOnlyValues??!1,Q=e=>{let{config:i,integerOnlyValues:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.integerOnlyValues=s}})},$=e=>e.horizontalAxisLabelsBehavior??u.Rotate,ii=(e,i)=>{i.horizontalAxisLabelsBehavior=e},si=e=>e.verticalAxisLabelsBehavior??u.Wrap,ei=(e,i)=>{i.verticalAxisLabelsBehavior=e},ti=e=>e.cursorCrosshair?.horizontalLineVisible??!1,oi=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=e},ri=e=>e.cursorCrosshair?.verticalLineVisible??!1,ni=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=e},ai=e=>e.cursorCrosshair?.style,ci=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=e},gi=e=>e.cursorCrosshair,fi=(e,i)=>{i.cursorCrosshair=e},xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,c=(e,i,s,t)=>{for(var o=li(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&xi(i,s,o),o},a=class extends G{getAxisTitleText(i){return r({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??""}setAxisTitleText(i,s){r({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getAxisVisibility(i){return r({config:this._config,axisIndex:i,func:s=>j(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{r({config:this._config,axisIndex:s,func:t=>{w(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return r({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{T({visibility:i,axisIndex:s,config:this._config}),this.emitConfigUpdate("setAxisLabelsVisibility")})}getAxisTitleVisibility(i){return r({config:this._config,axisIndex:i,func:s=>M(s,this._config)})??!1}setAxisTitleVisibility(i,s){k({visibility:i,axisIndex:s,config:this._config})}getMaxBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return r({config:this._config,axisIndex:i,func:s=>I(s,this._config)})}setAxisValueFormat(i,s){r({config:this._config,axisIndex:i,func:t=>{A({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return r({config:this._config,axisIndex:i,func:s=>L(this._config,s)})??!1}setLogarithmic(i,s){r({config:this._config,axisIndex:s,func:t=>{C({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return r({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){r({config:this._config,axisIndex:s,func:t=>{V({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return r({config:this._config,axisIndex:i,func:s=>z(this._config,s)})}setAxisTitleSymbol(i,s){D({symbol:i,config:this._config,axisIndex:s})}getHorizontalAxisLabelsBehavior(){return $(this._config)}setHorizontalAxisLabelsBehavior(i){ii(i,this._config)}getVerticalAxisLabelsBehavior(){return si(this._config)}setVerticalAxisLabelsBehavior(i){ei(i,this._config)}getGridLinesSymbol(){return H(this._config)}setGridLinesSymbol(i,s){N(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return r({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayZeroLine(i,s){q({config:this._config,displayZeroLine:i,axisIndex:s})}getDisplayCursorTooltip(i){return r({config:this._config,axisIndex:i,func:s=>U(this._config,s)})??!1}setDisplayCursorTooltip(i,s){W({config:this._config,displayCursorTooltip:i,axisIndex:s})}getBuffer(i){return r({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){R({config:this._config,buffer:i,axisIndex:s})}getTickSpacing(i){return X(this._config,i)}setTickSpacing(i,s){r({config:this._config,axisIndex:s,func:t=>{J({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return r({config:this._config,axisIndex:i,func:s=>K(this._config,s)})??!1}setIntegerOnlyValues(i,s){Q({config:this._config,integerOnlyValues:i,axisIndex:s})}get cursorCrosshairHorizontalLineVisibility(){return ti(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ri(this._config)}set cursorCrosshairVerticalLineVisibility(i){ni(i,this._config)}get cursorCrosshairStyle(){return ai(this._config)}set cursorCrosshairStyle(i){i&&ci(i,this._config)}get cursorCrosshair(){return gi(this._config)}set cursorCrosshair(i){i&&fi(i,this._config)}};c([n],a.prototype,"setAxisTitleText");c([n],a.prototype,"setAxisTitleVisibility");c([n],a.prototype,"setMaxBound");c([n],a.prototype,"setMinBound");c([n],a.prototype,"setAxisValueFormat");c([n],a.prototype,"setLogarithmic");c([n],a.prototype,"setAxisScrollbar");c([n],a.prototype,"setAxisTitleSymbol");c([n],a.prototype,"setHorizontalAxisLabelsBehavior");c([n],a.prototype,"setVerticalAxisLabelsBehavior");c([n],a.prototype,"setGridLinesSymbol");c([n],a.prototype,"setDisplayZeroLine");c([n],a.prototype,"setDisplayCursorTooltip");c([n],a.prototype,"setBuffer");c([n],a.prototype,"setTickSpacing");c([n],a.prototype,"setIntegerOnlyValues");c([n],a.prototype,"cursorCrosshairHorizontalLineVisibility");c([n],a.prototype,"cursorCrosshairVerticalLineVisibility");c([n],a.prototype,"cursorCrosshairStyle");c([n],a.prototype,"cursorCrosshair");var hi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,F=(e,i,s,t)=>{for(var o=ui(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&hi(i,s,o),o},x=class extends _{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){Y({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){Z({config:this._config,index:i,orientation:d.Y})}};F([n],x.prototype,"addYAxisGuide");F([n],x.prototype,"deleteYAxisGuide");var di=[_];v(x,di);return{a:a,b:x}},a,c,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as E}from"./RP6LD7CU.js";import d from"./PF5QGO7P.js";import"./POA2XTTK.js";import{a as $}from"./LVFZRGTZ.js";import c from"./FRFHLGO7.js";import b from"./VZUSTDAS.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import{i as y}from"./5L7BAEX5.js";import{b as i}from"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import{A as a,B as f,C as n,E as o,H as S,g as u,i as C,n as s,z as l}from"./UE4KTI5X.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,,{f:I,g:x,h:r,i:d}])=>{var c={sizeSection:"size-section",dropdownText:"dropdown-text",panelChildrenContainer:"panel-children-container"},b=u`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}`,h=class extends f{constructor(){super(...arguments),this._messages=$(),this.popoverElement=l(),this.lineWidthInputElement=l(),this.lineStyleDropdownElement=l(),this.isLineWidthInvalid=!1,this.open=!1,this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSeriesPopoverColorChange=s(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=s(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=s(),this.arcgisChartsConfigSeriesPopoverNameChange=s()}static{this.properties={isLineWidthInvalid:16,messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedSeriesIndex:9,selectedLineWidth:9,placement:1,open:5}}static{this.styles=b}async reposition(){await this.popoverElement.value?.reposition()}updated(){E(this.popoverElement.value,this.open)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[p,m,g]=t,v=y*255;this.selectedColor=[p,m,g,v],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[p,m,g,v]})}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.selectedLineStyle=e,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({lineStyle:e})}lineWidthChange(){let e=Number.parseInt(this.lineWidthInputElement.value?.value??"");this.lineWidthInputElement.value?.value!==void 0&&I(e,this.lineWidthInputElement.value.min,this.lineWidthInputElement.value.max)?(this.selectedLineWidth=e,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({lineWidth:e}),this.isLineWidthInvalid=!1,r({inputElement:this.lineWidthInputElement.value,status:d.IDLE})):this.lineWidthInputElement.value&&(this.isLineWidthInvalid=!0,r({inputElement:this.lineWidthInputElement.value,status:d.INVALID}))}getSelectedLineStyleInfo(){let e,t;switch(this.selectedLineStyle){case i.Dot:e="line-dotted",t=this._messages.dot??"";break;case i.Dash:e="line-dashed",t=this._messages.dash??"";break;case i.Solid:default:e="line-solid",t=this._messages.solid??"";break}return{icon:e,style:t}}render(){let e=this.selectedColor;return C`<div><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${a(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${n(c.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${a(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${n(c.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle===i.Solid} accesskey=${i.Solid??o}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle===i.Dot} accesskey=${i.Dot??o}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle===i.Dash} accesskey=${i.Dash??o}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${x(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${a(this.lineWidthInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidLineWidth} .isInvalid=${this.isLineWidthInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><div class=${n(c.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};S("arcgis-charts-config-line-chart-series-popover",h);return h},b,c,d)
2
+ import{b as E}from"./RP6LD7CU.js";import d from"./7TK4GSLV.js";import"./POA2XTTK.js";import{a as $}from"./LVFZRGTZ.js";import c from"./53QW4BYR.js";import b from"./L6ACX7PK.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import{i as y}from"./5L7BAEX5.js";import{b as i}from"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./WULMITJI.js";import{A as a,B as f,C as n,E as o,H as S,g as u,i as C,n as s,z as l}from"./UE4KTI5X.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,,{f:I,g:x,h:r,i:d}])=>{var c={sizeSection:"size-section",dropdownText:"dropdown-text",panelChildrenContainer:"panel-children-container"},b=u`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}`,h=class extends f{constructor(){super(...arguments),this._messages=$(),this.popoverElement=l(),this.lineWidthInputElement=l(),this.lineStyleDropdownElement=l(),this.isLineWidthInvalid=!1,this.open=!1,this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSeriesPopoverColorChange=s(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=s(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=s(),this.arcgisChartsConfigSeriesPopoverNameChange=s()}static{this.properties={isLineWidthInvalid:16,messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedSeriesIndex:9,selectedLineWidth:9,placement:1,open:5}}static{this.styles=b}async reposition(){await this.popoverElement.value?.reposition()}updated(){E(this.popoverElement.value,this.open)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[p,m,g]=t,v=y*255;this.selectedColor=[p,m,g,v],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[p,m,g,v]})}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.selectedLineStyle=e,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({lineStyle:e})}lineWidthChange(){let e=Number.parseInt(this.lineWidthInputElement.value?.value??"");this.lineWidthInputElement.value?.value!==void 0&&I(e,this.lineWidthInputElement.value.min,this.lineWidthInputElement.value.max)?(this.selectedLineWidth=e,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({lineWidth:e}),this.isLineWidthInvalid=!1,r({inputElement:this.lineWidthInputElement.value,status:d.IDLE})):this.lineWidthInputElement.value&&(this.isLineWidthInvalid=!0,r({inputElement:this.lineWidthInputElement.value,status:d.INVALID}))}getSelectedLineStyleInfo(){let e,t;switch(this.selectedLineStyle){case i.Dot:e="line-dotted",t=this._messages.dot??"";break;case i.Dash:e="line-dashed",t=this._messages.dash??"";break;case i.Solid:default:e="line-solid",t=this._messages.solid??"";break}return{icon:e,style:t}}render(){let e=this.selectedColor;return C`<div><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${a(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${n(c.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${a(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${n(c.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle===i.Solid} accesskey=${i.Solid??o}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle===i.Dot} accesskey=${i.Dot??o}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle===i.Dash} accesskey=${i.Dash??o}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${x(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${a(this.lineWidthInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidLineWidth} .isInvalid=${this.isLineWidthInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><div class=${n(c.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};S("arcgis-charts-config-line-chart-series-popover",h);return h},b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as t}from"./POA2XTTK.js";import a from"./VZUSTDAS.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import{b as l}from"./NGXRBJKL.js";import"./WULMITJI.js";import{B as c,H as h,g as n,i}from"./UE4KTI5X.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Sb:g,Ub:m,pa:d}])=>{var p=n`: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%}`,r=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let o=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(o)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,popoverPlacement:1,seriesColor:0,page:1,calculatedMinMaxBounds:0,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=p}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let o=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!l(e.get("layer"),this.layer)&&(o=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(o=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(o=!0),o&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,o){o?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){this.activeColorMatch=e?.get(0)===void 0,this.model.colorMatch&&e?.forEach((o,s)=>{let a;o&&("fillSymbol"in o?a=o.fillSymbol?.color:"lineSymbol"in o&&(a=o.lineSymbol.color)),e?.get(0)!==void 0&&a!==void 0&&!l(this.model.getSeriesColor(s),a)&&this.model.setSeriesColor(a,s)})}async updateFetchLayerFieldsInfo(e){let o=e??this.model.config,s=this.layer;if(!s){let a=d(o)?o.iLayer:void 0;a&&(s=await g(a))}s&&(await s.load(),this.layerFieldsInfo=m(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let e;switch(this.page){case t.Data:e=i`<arcgis-charts-config-box-plot-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-box-plot-data>`;break;case t.Series:e=i`<arcgis-charts-config-box-plot-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-box-plot-series>`;break;case t.Axes:e=i`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case t.Guides:e=i`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case t.Format:e=i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case t.General:e=i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};h("arcgis-charts-config-box-plot",r);return r},a)
2
+ import{d as t}from"./POA2XTTK.js";import a from"./L6ACX7PK.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import{b as l}from"./NGXRBJKL.js";import"./WULMITJI.js";import{B as c,H as h,g as n,i}from"./UE4KTI5X.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Sb:g,Ub:m,pa:d}])=>{var p=n`: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%}`,r=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let o=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(o)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,popoverPlacement:1,seriesColor:0,page:1,calculatedMinMaxBounds:0,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=p}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let o=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!l(e.get("layer"),this.layer)&&(o=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(o=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(o=!0),o&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,o){o?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){this.activeColorMatch=e?.get(0)===void 0,this.model.colorMatch&&e?.forEach((o,s)=>{let a;o&&("fillSymbol"in o?a=o.fillSymbol?.color:"lineSymbol"in o&&(a=o.lineSymbol.color)),e?.get(0)!==void 0&&a!==void 0&&!l(this.model.getSeriesColor(s),a)&&this.model.setSeriesColor(a,s)})}async updateFetchLayerFieldsInfo(e){let o=e??this.model.config,s=this.layer;if(!s){let a=d(o)?o.iLayer:void 0;a&&(s=await g(a))}s&&(await s.load(),this.layerFieldsInfo=m(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let e;switch(this.page){case t.Data:e=i`<arcgis-charts-config-box-plot-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-box-plot-data>`;break;case t.Series:e=i`<arcgis-charts-config-box-plot-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-box-plot-series>`;break;case t.Axes:e=i`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case t.Guides:e=i`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case t.Format:e=i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case t.General:e=i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};h("arcgis-charts-config-box-plot",r);return r},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as ie}from"./H36JC7RS.js";import{a as W}from"./YNHYJOH7.js";import{a as ee}from"./RP6LD7CU.js";import{b as T}from"./OAQCPPNF.js";import d from"./PF5QGO7P.js";import"./POA2XTTK.js";import{a as j}from"./LVFZRGTZ.js";import{l as Y,n as H,o as J}from"./TOL6YNER.js";import b from"./FRFHLGO7.js";import a from"./VZUSTDAS.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import{J as U}from"./5L7BAEX5.js";import{b as z,f as m}from"./KX7KGXKQ.js";import{d as D}from"./NGXRBJKL.js";import"./WULMITJI.js";import{A as h,B as X,C as o,D as S,F as w,H as N,g as R,i as r,n as V,z as c}from"./UE4KTI5X.js";import"./64L7VJJK.js";import{j as v}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as q}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{La:Z,Ma:P,Na:k,la:O,ma:g,uc:p},,{h:C,i:x,n:E,p:K,r:Q}])=>{var a={row:"row",column:"column",colorPicker:"color-picker"},se=R`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`,_=class extends X{constructor(){super(...arguments),this._messages=j(),this.startCalciteInput=c(),this.endCalciteInput=c(),this.startDateCalciteInput=c(),this.endDateCalciteInput=c(),this.startTimeCalciteInput=c(),this.endTimeCalciteInput=c(),this.colorElement=c(),this.colorChange=e=>{let i=e.detail,t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation);if(p(t,n)===m.SLS){let l=D(T.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},color:i};this.lineStyleChange({detail:d})}else this.setColor(i)},this.symbolChange=e=>{let i=e?.detail,t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation);if(p(t,n)===m.SLS){let l=D(T.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},...g(i)?i:{}};this.lineStyleChange({detail:d})}else i?.color!==void 0&&this.setColor(i.color)},this.onModelConfigChange=()=>{this.requestUpdate()},this.guidePopover=null,this.isGuideStartInvalid=!1,this.isGuideEndInvalid=!1,this.latestGuidePosition=0,this.arcgisChartsConfigGuideChange=V()}static{this.properties={guidePopover:16,isGuideStartInvalid:16,isGuideEndInvalid:16,messageOverrides:0,model:0,timeZone:1,calculatedMinMaxBounds:0,index:9,orientation:1,latestGuidePosition:9}}static{this.styles=se}get isXAxisDateField(){return this.orientation===v.X&&Y(this.model)&&this.model.getAxisValueFormat(0)?.type===q.DateAxisFormat}load(){this.modelChange(this.model)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}loaded(){this.isXAxisDateField&&this.setGuideDateTimeRange()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onColorElementSelect(e){this.guidePopover?.open===!0?this.removeGuidePopover():this.setupGuidePopover(e)}setGuideStart(e){let{value:i}=e.target;this.startCalciteInput.value!==void 0&&(i===""?(this.isGuideStartInvalid=!0,C({inputElement:this.startCalciteInput.value,status:x.INVALID})):(this.model.setGuideStart(i,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.isGuideStartInvalid=!1,C({inputElement:this.startCalciteInput.value,status:x.IDLE}))),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideEnd(e){let{value:i}=e.target;this.endCalciteInput.value!==void 0&&(this.model.setGuideEnd(i===""?null:i,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.isGuideEndInvalid=!1,C({inputElement:this.endCalciteInput.value,status:x.IDLE})),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideDateTimeRange(){let e=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.minimum,i=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.maximum,t=typeof e=="number"?new Date(e):new Date,n=typeof i=="number"?new Date(i):new Date,l=new window.Intl.DateTimeFormat().resolvedOptions().timeZone,s=Z(this.timeZone)??l,d=P(t,s),$=k(t,s),G=P(n,s),te=k(n,s),A=this.startDateCalciteInput.value?.value??"",f=A===""?d:A,M=this.startTimeCalciteInput.value?.value??"",F=M===""?$:M,b=this.endDateCalciteInput.value?.value??"",y=b===""?G:b,L=this.endTimeCalciteInput.value?.value??"",B=L===""?te:L,I=!1;if(!Array.isArray(f)&&f!==void 0&&F!==void 0){let u=`${f}T${F}`;this.model.setGuideStart(u,this.index,this.orientation),I=!0}if(!Array.isArray(y)&&y!==void 0&&B!==void 0){let u=b===""?void 0:`${y}T${B}`;this.model.setGuideEnd(u,this.index,this.orientation),I=!0}I&&(this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.guidePopover?.open===!0&&this.removeGuidePopover())}setGuideName(e){let i=e.target.value;this.model.setGuideName(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideLabel(e){let i=e.target.value;this.model.setGuideLabelText(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideRendered(e){let i=e.target?.selectedItem?.value;if(i!==void 0){let t=i===this._messages.inFront;this.model.setGuideAbove(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}}lineStyleChange(e){let i=e.detail;this.model.setGuideStyle(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setupGuidePopover(e){e.stopImmediatePropagation();let i=this.model.getGuideStyle(this.index,this.orientation),t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation),l;p(t,n)===m.SLS?l=g(i)?i:void 0:l=i?.color;let s=this.colorElement.value;Array.isArray(i?.color)?(this.guidePopover=w(r`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`),this.guidePopover!==void 0&&!document.body.contains(this.guidePopover)&&document.body.appendChild(this.guidePopover)):this.removeGuidePopover()}removeGuidePopover(){this.guidePopover!==null&&this.guidePopover!==void 0&&(this.guidePopover=ee(this.guidePopover))}setColor(e){let i=U({opacity:0}),t=this.model.getGuideStyle(this.index,this.orientation),n={...O(t)?t:{},type:m.SFS,color:e,outline:i};this.model.setGuideStyle(n,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}getDateStringFromBound(e){return typeof e=="string"?e.split("T")[0]:""}getTimeStringFromBound(e){return typeof e=="string"?e.split("T")[1]:""}createTooltip(e){let i=e.target,t="";switch(i.icon){case"view-visible":t=this._messages.hideGuide??"";break;case"view-hide":t=this._messages.showGuide??"";break;default:t=this._messages.deleteGuide??"";break}this.tooltip=w(r`<calcite-tooltip style=${S({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}toggleGuide(){let e=this.model.getGuideVisibility(this.index,this.orientation);this.model.setGuideVisibility(!e,this.index,this.orientation)}destroyTooltip(){Q(this.tooltip)}deleteGuide(){this.destroyTooltip(),this.orientation===v.X&&H(this.model)?this.model.deleteXAxisGuide(this.index):this.orientation===v.Y&&J(this.model)&&this.model.deleteYAxisGuide(this.index),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!0})}renderColorElement(){let e=this.model.getGuideStyle(this.index,this.orientation),[i,t,n,l]=[...e?.color??[1,1,1,255]],s=this.model.getGuideStart(this.index,this.orientation),d=this.model.getGuideEnd(this.index,this.orientation),$=g(e)?K(e.style):z.Solid,G=p(s,d)===m.SLS?`line-${$}`:"square-f";return r`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(a.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${h(this.colorElement)}><calcite-icon slot=content-end .icon=${G} style=${S({color:`rgba(${i},${t},${n},${l/255})`})}></calcite-icon></calcite-list-item></calcite-list>`}render(){let e=this.model.getGuideStart(this.index,this.orientation),i=this.model.getGuideEnd(this.index,this.orientation),t=this.model.getGuideName(this.index,this.orientation),n=this.model.getGuideLabelText(this.index,this.orientation),l=this.model.getGuideAbove(this.index,this.orientation),s=this.model.getGuideVisibility(this.index,this.orientation),d=this.isXAxisDateField;return r`<calcite-block .heading=${t??""} .expanded=${this.latestGuidePosition===ie(this.index,this.orientation,this.model)} collapsible .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}}><calcite-action slot=actions-end text .icon=${s?"view-visible":"view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.start}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.startDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${E} number-button-type=none .value=${e?.toString()} ${h(this.startCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideStartInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label class=${o(a.column)}>${this._messages.end}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(i)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.endDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${E} number-button-type=none .value=${i?.toString()} ${h(this.endCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideEndInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div>${d?W("time-picker-row",r`<div class=${o(a.row)}>${e!=null?r`<calcite-label class=${o(a.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}${i!=null?r`<calcite-label class=${o(a.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(i)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}</div>`):null}<div class=${o(a.row)}><div class=${o(a.column)}>${this.renderColorElement()}</div></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.guideName}<calcite-input type=text .value=${t} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${n} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`}};N("arcgis-charts-config-guide",_);return _},a,b,d)
2
+ import{b as ie}from"./H36JC7RS.js";import{a as Q}from"./YNHYJOH7.js";import{a as ee}from"./RP6LD7CU.js";import{b as T}from"./OAQCPPNF.js";import d from"./7TK4GSLV.js";import"./POA2XTTK.js";import{a as j}from"./LVFZRGTZ.js";import{l as Y,n as W,o as H}from"./TOL6YNER.js";import b from"./53QW4BYR.js";import a from"./L6ACX7PK.js";import"./WOGALV3T.js";import"./PNFPQKYB.js";import{J as U}from"./5L7BAEX5.js";import{b as z,f as m}from"./KX7KGXKQ.js";import{d as D}from"./NGXRBJKL.js";import"./WULMITJI.js";import{A as h,B as X,C as o,D as S,F as w,H as N,g as R,i as r,n as V,z as c}from"./UE4KTI5X.js";import"./64L7VJJK.js";import{j as v}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as q}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{La:Z,Ma:P,Na:k,la:O,ma:g,uc:p},,{h:C,i:x,n:E,p:J,r:K}])=>{var a={row:"row",column:"column",colorPicker:"color-picker"},se=R`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`,_=class extends X{constructor(){super(...arguments),this._messages=j(),this.startCalciteInput=c(),this.endCalciteInput=c(),this.startDateCalciteInput=c(),this.endDateCalciteInput=c(),this.startTimeCalciteInput=c(),this.endTimeCalciteInput=c(),this.colorElement=c(),this.colorChange=e=>{let i=e.detail,t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation);if(p(t,n)===m.SLS){let l=D(T.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},color:i};this.lineStyleChange({detail:d})}else this.setColor(i)},this.symbolChange=e=>{let i=e?.detail,t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation);if(p(t,n)===m.SLS){let l=D(T.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},...g(i)?i:{}};this.lineStyleChange({detail:d})}else i?.color!==void 0&&this.setColor(i.color)},this.onModelConfigChange=()=>{this.requestUpdate()},this.guidePopover=null,this.isGuideStartInvalid=!1,this.isGuideEndInvalid=!1,this.latestGuidePosition=0,this.arcgisChartsConfigGuideChange=V()}static{this.properties={guidePopover:16,isGuideStartInvalid:16,isGuideEndInvalid:16,messageOverrides:0,model:0,timeZone:1,calculatedMinMaxBounds:0,index:9,orientation:1,latestGuidePosition:9}}static{this.styles=se}get isXAxisDateField(){return this.orientation===v.X&&Y(this.model)&&this.model.getAxisValueFormat(0)?.type===q.DateAxisFormat}load(){this.modelChange(this.model)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}loaded(){this.isXAxisDateField&&this.setGuideDateTimeRange()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onColorElementSelect(e){this.guidePopover?.open===!0?this.removeGuidePopover():this.setupGuidePopover(e)}setGuideStart(e){let{value:i}=e.target;this.startCalciteInput.value!==void 0&&(i===""?(this.isGuideStartInvalid=!0,C({inputElement:this.startCalciteInput.value,status:x.INVALID})):(this.model.setGuideStart(i,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.isGuideStartInvalid=!1,C({inputElement:this.startCalciteInput.value,status:x.IDLE}))),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideEnd(e){let{value:i}=e.target;this.endCalciteInput.value!==void 0&&(this.model.setGuideEnd(i===""?null:i,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.isGuideEndInvalid=!1,C({inputElement:this.endCalciteInput.value,status:x.IDLE})),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideDateTimeRange(){let e=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.minimum,i=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.maximum,t=typeof e=="number"?new Date(e):new Date,n=typeof i=="number"?new Date(i):new Date,l=new window.Intl.DateTimeFormat().resolvedOptions().timeZone,s=Z(this.timeZone)??l,d=P(t,s),$=k(t,s),G=P(n,s),te=k(n,s),A=this.startDateCalciteInput.value?.value??"",f=A===""?d:A,M=this.startTimeCalciteInput.value?.value??"",F=M===""?$:M,b=this.endDateCalciteInput.value?.value??"",y=b===""?G:b,L=this.endTimeCalciteInput.value?.value??"",B=L===""?te:L,I=!1;if(!Array.isArray(f)&&f!==void 0&&F!==void 0){let u=`${f}T${F}`;this.model.setGuideStart(u,this.index,this.orientation),I=!0}if(!Array.isArray(y)&&y!==void 0&&B!==void 0){let u=b===""?void 0:`${y}T${B}`;this.model.setGuideEnd(u,this.index,this.orientation),I=!0}I&&(this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.guidePopover?.open===!0&&this.removeGuidePopover())}setGuideName(e){let i=e.target.value;this.model.setGuideName(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideLabel(e){let i=e.target.value;this.model.setGuideLabelText(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideRendered(e){let i=e.target?.selectedItem?.value;if(i!==void 0){let t=i===this._messages.inFront;this.model.setGuideAbove(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}}lineStyleChange(e){let i=e.detail;this.model.setGuideStyle(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setupGuidePopover(e){e.stopImmediatePropagation();let i=this.model.getGuideStyle(this.index,this.orientation),t=this.model.getGuideStart(this.index,this.orientation),n=this.model.getGuideEnd(this.index,this.orientation),l;p(t,n)===m.SLS?l=g(i)?i:void 0:l=i?.color;let s=this.colorElement.value;Array.isArray(i?.color)?(this.guidePopover=w(r`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`),this.guidePopover!==void 0&&!document.body.contains(this.guidePopover)&&document.body.appendChild(this.guidePopover)):this.removeGuidePopover()}removeGuidePopover(){this.guidePopover!==null&&this.guidePopover!==void 0&&(this.guidePopover=ee(this.guidePopover))}setColor(e){let i=U({opacity:0}),t=this.model.getGuideStyle(this.index,this.orientation),n={...O(t)?t:{},type:m.SFS,color:e,outline:i};this.model.setGuideStyle(n,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}getDateStringFromBound(e){return typeof e=="string"?e.split("T")[0]:""}getTimeStringFromBound(e){return typeof e=="string"?e.split("T")[1]:""}createTooltip(e){let i=e.target,t="";switch(i.icon){case"view-visible":t=this._messages.hideGuide??"";break;case"view-hide":t=this._messages.showGuide??"";break;default:t=this._messages.deleteGuide??"";break}this.tooltip=w(r`<calcite-tooltip style=${S({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}toggleGuide(){let e=this.model.getGuideVisibility(this.index,this.orientation);this.model.setGuideVisibility(!e,this.index,this.orientation)}destroyTooltip(){K(this.tooltip)}deleteGuide(){this.destroyTooltip(),this.orientation===v.X&&W(this.model)?this.model.deleteXAxisGuide(this.index):this.orientation===v.Y&&H(this.model)&&this.model.deleteYAxisGuide(this.index),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!0})}renderColorElement(){let e=this.model.getGuideStyle(this.index,this.orientation),[i,t,n,l]=[...e?.color??[1,1,1,255]],s=this.model.getGuideStart(this.index,this.orientation),d=this.model.getGuideEnd(this.index,this.orientation),$=g(e)?J(e.style):z.Solid,G=p(s,d)===m.SLS?`line-${$}`:"square-f";return r`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(a.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${h(this.colorElement)}><calcite-icon slot=content-end .icon=${G} style=${S({color:`rgba(${i},${t},${n},${l/255})`})}></calcite-icon></calcite-list-item></calcite-list>`}render(){let e=this.model.getGuideStart(this.index,this.orientation),i=this.model.getGuideEnd(this.index,this.orientation),t=this.model.getGuideName(this.index,this.orientation),n=this.model.getGuideLabelText(this.index,this.orientation),l=this.model.getGuideAbove(this.index,this.orientation),s=this.model.getGuideVisibility(this.index,this.orientation),d=this.isXAxisDateField;return r`<calcite-block .heading=${t??""} .expanded=${this.latestGuidePosition===ie(this.index,this.orientation,this.model)} collapsible .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}}><calcite-action slot=actions-end text .icon=${s?"view-visible":"view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.start}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.startDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${E} number-button-type=none .value=${e?.toString()} ${h(this.startCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideStartInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label class=${o(a.column)}>${this._messages.end}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(i)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.endDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${E} number-button-type=none .value=${i?.toString()} ${h(this.endCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideEndInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div>${d?Q("time-picker-row",r`<div class=${o(a.row)}>${e!=null?r`<calcite-label class=${o(a.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}${i!=null?r`<calcite-label class=${o(a.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(i)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}</div>`):null}<div class=${o(a.row)}><div class=${o(a.column)}>${this.renderColorElement()}</div></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.guideName}<calcite-input type=text .value=${t} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${n} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(a.row)}><calcite-label class=${o(a.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`}};N("arcgis-charts-config-guide",_);return _},a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./VZUSTDAS.js";import{e as B}from"./WOGALV3T.js";import{d as $}from"./PNFPQKYB.js";import{p as O}from"./5L7BAEX5.js";import{r as y}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as S}from"./Z5QPCSUQ.js";import{a as n,b as m,h as c,v as d}from"./QVG3TOL4.js";export default $arcgis.t(([{F:L,G:T,H:D,I:N,Nb:_,S:h,Wb:b,fc:C,v:F,yc:v}])=>{function w(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function Z(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var z=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return w(r,e.orderOptions?.data?.orderType??d.Category)},R=e=>{let r=S(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=z(e)===a.customSort),s},ee=e=>{let r=[],s=e.orderOptions?.data?.orderType;return R(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},re=(e,r,s,i)=>{let t=S(r.series),A=h(r);r.orderOptions??={};let o=A?[""]:c.Ascending;if(A)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:o})}},se=e=>e?.series?.[0]?.x??"",ie=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:A,layer:o,numericFieldIndex:l,seriesIndex:P,splitByField:U="",fieldList:H}=e,M=S(r.series),Y=v(r.series),u;if(B(o)){let g=_(o);u=i.length===1&&i[0]===g}else{let{idField:g,isTraditionalTypeOID:k}=b(F(o));u=k&&i.length===1&&i[0]===g}let p="y",x="y";switch(M){case n.PieSeries:{t!==m.NoAggregation?A===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?y(m.Count):y(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(U===""||i.length>1)j({fieldName:s,numericFields:i,fieldList:H??[]})||Y===$.BarAndLineFromFields?p=N:(p=t!==m.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?y(m.Count):y(`${t} of ${i[l??0]}`));else{let g=i[0];p=t!==m.NoAggregation?`${t}_${g}_${P??0}`.toUpperCase():g,x=u?y(m.Count):y(`${t} of ${g}`)}break}}return{name:p,description:x}};function V(e){let{fieldName:r,fieldList:s}=e,i=C(s??[],r);return r===D||r===L||r===O||r===void 0||r.trim()===""||i===void 0}function j(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(A=>C(s??[],A)?.type!=="esriFieldTypeOID");return V({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:w,b:Z,c:z,d:ee,e:re,f:se,g:ie,h:V,i:j}},b)
2
+ import b from"./L6ACX7PK.js";import{e as B}from"./WOGALV3T.js";import{d as $}from"./PNFPQKYB.js";import{p as O}from"./5L7BAEX5.js";import{r as g}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as S}from"./Z5QPCSUQ.js";import{a as n,b as m,h as c,v as d}from"./QVG3TOL4.js";export default $arcgis.t(([{F:L,G:T,H:D,I:N,Nb:b,S:_,Wb:h,fc:C,v:F,yc:v}])=>{function w(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function Z(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var z=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return w(r,e.orderOptions?.data?.orderType??d.Category)},K=e=>{let r=S(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=z(e)===a.customSort),s},ee=e=>{let r=[],s=e.orderOptions?.data?.orderType;return K(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},re=(e,r,s,i)=>{let t=S(r.series),A=_(r);r.orderOptions??={};let o=A?[""]:c.Ascending;if(A)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:o})}},se=e=>e?.series?.[0]?.x??"",ie=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:A,layer:o,numericFieldIndex:l,seriesIndex:P,splitByField:U="",fieldList:H}=e,M=S(r.series),Y=v(r.series),u;if(B(o)){let y=b(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:k}=h(F(o));u=k&&i.length===1&&i[0]===y}let p="y",x="y";switch(M){case n.PieSeries:{t!==m.NoAggregation?A===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(m.Count):g(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(U===""||i.length>1)V({fieldName:s,numericFields:i,fieldList:H??[]})||Y===$.BarAndLineFromFields?p=N:(p=t!==m.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?g(m.Count):g(`${t} of ${i[l??0]}`));else{let y=i[0];p=t!==m.NoAggregation?`${t}_${y}_${P??0}`.toUpperCase():y,x=u?g(m.Count):g(`${t} of ${y}`)}break}}return{name:p,description:x}};function R(e){let{fieldName:r,fieldList:s}=e,i=C(s??[],r);return r===D||r===L||r===O||r===void 0||r.trim()===""||i===void 0}function V(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(A=>C(s??[],A)?.type!=="esriFieldTypeOID");return R({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:w,b:Z,c:z,d:ee,e:re,f:se,g:ie,h:R,i:V}},b)