@arcgis/charts-components 6.0.0-next.6 → 6.0.0-next.7

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 (266) hide show
  1. package/dist/cdn/{4YPBPYT2.js → 22TQSTSU.js} +1 -1
  2. package/dist/cdn/2IZ27E73.js +2 -0
  3. package/dist/cdn/36YS6SWU.js +2 -0
  4. package/dist/cdn/3JXXDTM7.js +2 -0
  5. package/dist/cdn/3RUCVEOG.js +2 -0
  6. package/dist/cdn/3UNCSMIH.js +4 -0
  7. package/dist/cdn/3XWKTCG2.js +2 -0
  8. package/dist/cdn/{SP2OUJAE.js → 4DQDAM44.js} +2 -2
  9. package/dist/cdn/4F5HIOT7.js +2 -0
  10. package/dist/cdn/4W5FC5UJ.js +2 -0
  11. package/dist/cdn/6Y63J2D4.js +2 -0
  12. package/dist/cdn/7A6ZC3BY.js +2 -0
  13. package/dist/cdn/7B26LXAO.js +2 -0
  14. package/dist/cdn/7BMO4QQG.js +2 -0
  15. package/dist/cdn/7SKWCJOI.js +2 -0
  16. package/dist/cdn/ABHDKVCT.js +2 -0
  17. package/dist/cdn/AHDEGHQC.js +2 -0
  18. package/dist/cdn/{QQFMQAJ3.js → AS2IRRXE.js} +1 -1
  19. package/dist/cdn/B73SVOUA.js +2 -0
  20. package/dist/cdn/{WWMDDOKW.js → BILTOAXM.js} +1 -1
  21. package/dist/cdn/CX5HMAVB.js +2 -0
  22. package/dist/cdn/{EKPT25EF.js → DIOXIMBZ.js} +1 -1
  23. package/dist/cdn/DIVS65HK.js +2 -0
  24. package/dist/cdn/EJE4D6K4.js +2 -0
  25. package/dist/cdn/EMJV6FFC.js +2 -0
  26. package/dist/cdn/EOAW5SJZ.js +2 -0
  27. package/dist/cdn/EU5JSGVI.js +2 -0
  28. package/dist/cdn/EVKJUQYC.js +2 -0
  29. package/dist/cdn/GIUYJ4MX.js +2 -0
  30. package/dist/cdn/{J6KIUQWW.js → H7EH6MJN.js} +1 -1
  31. package/dist/cdn/HKD2DTMQ.js +2 -0
  32. package/dist/cdn/HWJULHS4.js +2 -0
  33. package/dist/cdn/{6T5V66TB.js → I3VAEJNQ.js} +24 -24
  34. package/dist/cdn/IMHL6OT4.js +2 -0
  35. package/dist/cdn/IMJ4ZP54.js +2 -0
  36. package/dist/cdn/IPRY6SMT.js +2 -0
  37. package/dist/cdn/IUWQ2XAM.js +2 -0
  38. package/dist/cdn/IZ6QMJ5N.js +2 -0
  39. package/dist/cdn/JGKOHDSF.js +2 -0
  40. package/dist/cdn/JQH63THU.js +2 -0
  41. package/dist/cdn/{563H5HEV.js → JYLCRNMW.js} +1 -1
  42. package/dist/cdn/K43QNXLK.js +2 -0
  43. package/dist/cdn/KE6MY5WL.js +2 -0
  44. package/dist/cdn/KHC45XNZ.js +2 -0
  45. package/dist/cdn/KXW4QAYP.js +2 -0
  46. package/dist/cdn/{OFJLWSKN.js → LNJSZCPC.js} +1 -1
  47. package/dist/cdn/{PIGINE4M.js → M7MSRLEE.js} +1 -1
  48. package/dist/cdn/{U7PBBWGS.js → MGKEPCZT.js} +1 -1
  49. package/dist/cdn/MGX5TD4I.js +2 -0
  50. package/dist/cdn/MIRDAGB6.js +2 -0
  51. package/dist/cdn/N337OTT2.js +2 -0
  52. package/dist/cdn/NCFIBVSV.js +2 -0
  53. package/dist/cdn/NNKLFRZL.js +2 -0
  54. package/dist/cdn/NSF637D3.js +2 -0
  55. package/dist/cdn/{VSKK65CP.js → NUTUTE7W.js} +1 -1
  56. package/dist/cdn/O3FVBAXP.js +2 -0
  57. package/dist/cdn/O53REUWO.js +2 -0
  58. package/dist/cdn/OPSWLJ6M.js +2 -0
  59. package/dist/cdn/OTIAHPXY.js +2 -0
  60. package/dist/cdn/PYK3S2WM.js +2 -0
  61. package/dist/cdn/PYMEPWV2.js +2 -0
  62. package/dist/cdn/QE4HAH4J.js +2 -0
  63. package/dist/cdn/SFX2QCRS.js +2 -0
  64. package/dist/cdn/SI7W275P.js +2 -0
  65. package/dist/cdn/SVF2UENW.js +4 -0
  66. package/dist/cdn/SY4PA5GZ.js +2 -0
  67. package/dist/cdn/TCUFKLTS.js +2 -0
  68. package/dist/cdn/TMVELVZ4.js +2 -0
  69. package/dist/cdn/TVAJJTLH.js +2 -0
  70. package/dist/cdn/TVBULK7L.js +2 -0
  71. package/dist/cdn/TYVYXA4I.js +2 -0
  72. package/dist/cdn/TZJX3ZDX.js +2 -0
  73. package/dist/cdn/{CIZUS2EL.js → U6AJIZZU.js} +1 -1
  74. package/dist/cdn/U75UR6WF.js +2 -0
  75. package/dist/cdn/{5BMOVHD7.js → VJBVJ2GM.js} +1 -1
  76. package/dist/cdn/VKLX5GBO.js +2 -0
  77. package/dist/cdn/{INYMF2BQ.js → VKMVMHTT.js} +1 -1
  78. package/dist/cdn/VL3NDPH3.js +2 -0
  79. package/dist/cdn/VUNCUXZR.js +2 -0
  80. package/dist/cdn/VVB5JOCB.js +2 -0
  81. package/dist/cdn/WAW5LS5U.js +2 -0
  82. package/dist/cdn/XWGJFR6Q.js +2 -0
  83. package/dist/cdn/YBFPKUEE.js +2 -0
  84. package/dist/cdn/YBPCOPML.js +2 -0
  85. package/dist/cdn/YGYZNUDM.js +2 -0
  86. package/dist/cdn/YLJUSUEV.js +2 -0
  87. package/dist/cdn/Z3UCAFDO.js +2 -0
  88. package/dist/cdn/ZHKGWF55.js +2 -0
  89. package/dist/cdn/{5S3M57QS.js → ZXPGBKDC.js} +1 -1
  90. package/dist/cdn/index.js +1 -1
  91. package/dist/cdn/model/shared/setup-utils.js +1 -1
  92. package/dist/chunks/action-bar-utils.js +18 -20
  93. package/dist/chunks/axis-lines-symbol.js +6 -6
  94. package/dist/chunks/bar-chart-model.js +5 -7
  95. package/dist/chunks/box-plot-data.js +74 -76
  96. package/dist/chunks/box-plot-model.js +40 -41
  97. package/dist/chunks/chart-model.js +31 -33
  98. package/dist/chunks/chart-ui-utils.js +45 -47
  99. package/dist/chunks/chart-ui-utils2.js +1 -1
  100. package/dist/chunks/class-breaks.js +14 -14
  101. package/dist/chunks/combo-bar-line-chart-model.js +15 -16
  102. package/dist/chunks/data-labels-symbol.js +1 -1
  103. package/dist/chunks/data-labels-visibility.js +1 -1
  104. package/dist/chunks/data.js +52 -54
  105. package/dist/chunks/gauge-model.js +65 -65
  106. package/dist/chunks/generate-x-axis-title.js +19 -19
  107. package/dist/chunks/heat-chart-model.js +13 -14
  108. package/dist/chunks/histogram-data.js +47 -48
  109. package/dist/chunks/histogram-model.js +6 -6
  110. package/dist/chunks/index.js +4943 -3839
  111. package/dist/chunks/index2.js +1165 -871
  112. package/dist/chunks/index3.js +11040 -1173
  113. package/dist/chunks/index4.js +65 -11086
  114. package/dist/chunks/line-chart-model.js +18 -19
  115. package/dist/chunks/model-setter.js +6 -6
  116. package/dist/chunks/model-with-x-guides.js +1 -1
  117. package/dist/chunks/model-with-y-guides.js +25 -25
  118. package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
  119. package/dist/chunks/pie-chart-data.js +25 -27
  120. package/dist/chunks/pie-chart-model.js +21 -23
  121. package/dist/chunks/radar-chart-model.js +6 -7
  122. package/dist/chunks/resource.js +1 -1
  123. package/dist/chunks/rotated-state.js +1 -1
  124. package/dist/chunks/rounded-corners.js +2 -2
  125. package/dist/chunks/scatterplot-model.js +13 -15
  126. package/dist/chunks/serial-chart-data.js +226 -229
  127. package/dist/chunks/serial-chart-model.js +66 -66
  128. package/dist/chunks/series-length.js +4 -4
  129. package/dist/chunks/series.js +1 -1
  130. package/dist/chunks/type-guards.js +109 -55
  131. package/dist/chunks/utils.js +146 -212
  132. package/dist/chunks/web-component-utils.js +55 -56
  133. package/dist/chunks/x-bounds.js +24 -25
  134. package/dist/components/arcgis-chart/customElement.d.ts +11 -4
  135. package/dist/components/arcgis-chart/customElement.js +5937 -5770
  136. package/dist/components/arcgis-charts-action-bar/customElement.js +3 -3
  137. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +7 -7
  138. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +12 -13
  139. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +10 -11
  140. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +5 -6
  141. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
  142. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  143. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +2 -2
  144. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +11 -12
  145. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  146. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  147. package/dist/components/arcgis-charts-config-create-flow/customElement.js +189 -184
  148. package/dist/components/arcgis-charts-config-font-style/customElement.js +7 -7
  149. package/dist/components/arcgis-charts-config-format/customElement.js +37 -38
  150. package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
  151. package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
  152. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  153. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  154. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +14 -15
  155. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +32 -33
  156. package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -3
  157. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -3
  158. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +3 -4
  159. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  160. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +4 -5
  161. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -6
  162. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +5 -5
  163. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  164. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  165. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +5 -6
  166. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +9 -10
  167. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  168. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  169. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +8 -9
  170. package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
  171. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +8 -10
  172. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +3 -4
  173. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +21 -25
  174. package/dist/components/arcgis-charts-config-view-charts/customElement.js +15 -16
  175. package/dist/components/arcgis-charts-info-modal/customElement.js +4 -4
  176. package/dist/docs/api.json +1 -1
  177. package/dist/docs/docs.json +1 -1
  178. package/dist/docs/vscode.html-custom-data.json +1 -1
  179. package/dist/docs/web-types.json +1 -1
  180. package/dist/index.js +396 -398
  181. package/dist/loader.js +1 -1
  182. package/dist/utils/chart-config/converter/index.js +73 -75
  183. package/dist/utils/misc/index.d.ts +4 -4
  184. package/package.json +4 -4
  185. package/dist/cdn/2CUBWUT6.js +0 -2
  186. package/dist/cdn/2E3WHSEW.js +0 -2
  187. package/dist/cdn/2NTEIXDC.js +0 -2
  188. package/dist/cdn/3BLCT5B3.js +0 -2
  189. package/dist/cdn/3KVXZ4Q7.js +0 -2
  190. package/dist/cdn/3R5OPVW7.js +0 -2
  191. package/dist/cdn/3TPIZXLQ.js +0 -2
  192. package/dist/cdn/5BFSYCQN.js +0 -2
  193. package/dist/cdn/5ORGE6FR.js +0 -2
  194. package/dist/cdn/6IODKSGJ.js +0 -2
  195. package/dist/cdn/6KYES23V.js +0 -2
  196. package/dist/cdn/6MQWBIAC.js +0 -2
  197. package/dist/cdn/6UY62IZQ.js +0 -2
  198. package/dist/cdn/7IGL5XAY.js +0 -2
  199. package/dist/cdn/7ZM3ISL6.js +0 -2
  200. package/dist/cdn/A5YDIX7U.js +0 -2
  201. package/dist/cdn/AGKAJN2K.js +0 -2
  202. package/dist/cdn/ASCE4YBS.js +0 -2
  203. package/dist/cdn/B6APNE72.js +0 -3
  204. package/dist/cdn/BAYPYA6T.js +0 -2
  205. package/dist/cdn/BENXDFDK.js +0 -2
  206. package/dist/cdn/BG2GEL6V.js +0 -2
  207. package/dist/cdn/BZ4HWKAF.js +0 -2
  208. package/dist/cdn/DLMKQ6I2.js +0 -2
  209. package/dist/cdn/DOC3MQJC.js +0 -2
  210. package/dist/cdn/ECONXQCG.js +0 -2
  211. package/dist/cdn/EJ2FAXEX.js +0 -2
  212. package/dist/cdn/EOAQOIWV.js +0 -2
  213. package/dist/cdn/FHTWTEA4.js +0 -2
  214. package/dist/cdn/FN5XFRQS.js +0 -2
  215. package/dist/cdn/G2DJJIGO.js +0 -2
  216. package/dist/cdn/HBFEI43W.js +0 -2
  217. package/dist/cdn/HFQGFEEC.js +0 -2
  218. package/dist/cdn/HNVWY4XA.js +0 -2
  219. package/dist/cdn/HRGA4VCV.js +0 -2
  220. package/dist/cdn/HSSNNVVK.js +0 -2
  221. package/dist/cdn/I64VVDLI.js +0 -2
  222. package/dist/cdn/IEOIKLLK.js +0 -2
  223. package/dist/cdn/IUM6GDBZ.js +0 -2
  224. package/dist/cdn/JDN6OXCC.js +0 -2
  225. package/dist/cdn/KHHQ3O5Q.js +0 -2
  226. package/dist/cdn/LIHIBT2F.js +0 -3
  227. package/dist/cdn/LLGBFUAJ.js +0 -2
  228. package/dist/cdn/LRAKZMK6.js +0 -2
  229. package/dist/cdn/LV6XVOC5.js +0 -2
  230. package/dist/cdn/M5M3RE6W.js +0 -2
  231. package/dist/cdn/NEHAS4YX.js +0 -2
  232. package/dist/cdn/OMR65IIM.js +0 -2
  233. package/dist/cdn/OP3AF4WI.js +0 -2
  234. package/dist/cdn/PR3CHNEH.js +0 -2
  235. package/dist/cdn/PTBNT4NV.js +0 -2
  236. package/dist/cdn/PWDBJLTW.js +0 -2
  237. package/dist/cdn/Q2QELGQX.js +0 -2
  238. package/dist/cdn/Q4I6HPPG.js +0 -2
  239. package/dist/cdn/QJL6FNQQ.js +0 -2
  240. package/dist/cdn/QMKBTPPL.js +0 -2
  241. package/dist/cdn/SEK42UT2.js +0 -2
  242. package/dist/cdn/SJPUWCSQ.js +0 -2
  243. package/dist/cdn/SKI5Z6UH.js +0 -2
  244. package/dist/cdn/SPRQ2OBE.js +0 -2
  245. package/dist/cdn/TT6IHBTH.js +0 -2
  246. package/dist/cdn/ULRG7JME.js +0 -2
  247. package/dist/cdn/UMOEONXM.js +0 -2
  248. package/dist/cdn/UYCPYSQI.js +0 -2
  249. package/dist/cdn/WBZEARYO.js +0 -2
  250. package/dist/cdn/WFAHWPGT.js +0 -2
  251. package/dist/cdn/WID7G6E7.js +0 -2
  252. package/dist/cdn/XFFDNZIQ.js +0 -2
  253. package/dist/cdn/YF7BOK2T.js +0 -2
  254. package/dist/cdn/ZCC7V2A2.js +0 -2
  255. package/dist/cdn/ZI7QPEAF.js +0 -2
  256. package/dist/cdn/ZM5C3KIP.js +0 -2
  257. package/dist/cdn/ZMBD4NTY.js +0 -4
  258. package/dist/cdn/ZN7A4NI2.js +0 -2
  259. package/dist/cdn/ZQAM5BZI.js +0 -2
  260. package/dist/cdn/ZYYBMTVE.js +0 -2
  261. package/dist/chunks/index5.js +0 -69
  262. package/dist/chunks/type-guards2.js +0 -113
  263. package/dist/chunks/utils2.js +0 -63
  264. /package/dist/cdn/{OTV3YYDU.js → 7JMZPDM5.js} +0 -0
  265. /package/dist/cdn/{O6GVF76X.js → KRRYFLG4.js} +0 -0
  266. /package/dist/cdn/{27C6PCQ2.js → XXO5K6N4.js} +0 -0
@@ -1,243 +1,177 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as $, a as n, d as A, g as U } from "./chart-object-literals.js";
3
- import { t as B, ak as T, cl as H, cm as D, cn as j, co as k, P as K, a2 as N } from "./index.js";
4
- import { J as X, a1 as Y, a2 as G, Y as J, a8 as Q, a3 as z, H as Z } from "./index3.js";
5
- import { i as q } from "./type-guards.js";
6
- import { f as _, b as I, i as ee, q as te } from "./index2.js";
7
- import { g as w } from "./series-types.js";
8
- import { substitute as C } from "@arcgis/core/intl.js";
9
- const de = (s) => {
10
- const { config: e, axisIndex: i, callback: t } = s;
11
- [i !== void 0 ? e.axes?.[i] : e.axes].flat().forEach((a, r) => {
12
- a !== void 0 && t(a, i !== void 0 ? i : r);
2
+ import { J as I, a4 as c, a5 as x, $ as F, ag as h, a6 as n } from "./index2.js";
3
+ import { substitute as b } from "@arcgis/core/intl.js";
4
+ import { g as S } from "./series-types.js";
5
+ import { a3 as L, B as v, u as V, az as y } from "./index.js";
6
+ import { c as k, a as r, d as f } from "./chart-object-literals.js";
7
+ const d = (i) => {
8
+ const { config: e, axisIndex: s, callback: t } = i;
9
+ [s !== void 0 ? e.axes?.[s] : e.axes].flat().forEach((a, o) => {
10
+ a !== void 0 && t(a, s !== void 0 ? s : o);
13
11
  });
14
- }, fe = (s) => {
15
- const { config: e, axisIndex: i, callback: t } = s;
16
- [i !== void 0 ? e.axes?.[i] : e.axes].flat().forEach((a) => {
17
- a !== void 0 && T(a.valueFormat) && t(a);
12
+ }, X = (i) => {
13
+ const { config: e, axisIndex: s, callback: t } = i;
14
+ [s !== void 0 ? e.axes?.[s] : e.axes].flat().forEach((a) => {
15
+ a !== void 0 && y(a.valueFormat) && t(a);
18
16
  });
19
17
  };
20
- function xe(s, e, i) {
21
- const t = s?.axes?.[e];
22
- t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title = Y({
23
- text: i,
18
+ function q(i, e, s) {
19
+ const t = i?.axes?.[e];
20
+ t?.title !== void 0 ? t.title.content.text = s : t !== void 0 && (t.title = c({
21
+ text: s,
24
22
  visible: !0,
25
- font: G(z.AxisTitle)
23
+ font: x(n.AxisTitle)
26
24
  }));
27
25
  }
28
- function ge(s) {
29
- const { config: e, layerInfo: i, commonStrings: t, numericFields: a, aggregationType: r } = s;
30
- let o = "";
26
+ function w(i) {
27
+ const { config: e, layerInfo: s, commonStrings: t, numericFields: a, aggregationType: o } = i;
28
+ let l = "";
31
29
  if (e)
32
- if (_(e) === $.Stacked100)
33
- o = t.utilsStrings.statistics.percent;
30
+ if (L(e) === k.Stacked100)
31
+ l = t.utilsStrings.statistics.percent;
34
32
  else {
35
- const f = X(r, t);
36
- if (e.series[0]?.type === n.HeatSeries)
37
- o = I(i.layerFieldsInfo, e.series[0].y);
33
+ const g = I(o, t);
34
+ if (e.series[0]?.type === r.HeatSeries)
35
+ l = v(s.layerFieldsInfo, e.series[0].y);
38
36
  else if (a.length === 1) {
39
- const x = I(i.layerFieldsInfo, a[0]), l = B(i.layer).idField;
40
- r === A.NoAggregation ? o = x : r === A.Count && l !== void 0 && a[0] === l ? o = t.utilsStrings.statistics.count : o = C(t.axisLabels.aggregationOfFieldName, {
41
- aggregation: f,
42
- fieldName: x
37
+ const u = v(s.layerFieldsInfo, a[0]), m = V(s.layer).idField;
38
+ o === f.NoAggregation ? l = u : o === f.Count && m !== void 0 && a[0] === m ? l = t.utilsStrings.statistics.count : l = b(t.axisLabels.aggregationOfFieldName, {
39
+ aggregation: g,
40
+ fieldName: u
43
41
  });
44
- } else a.length > 1 && (r === A.NoAggregation ? o = t.axisLabels.values : o = C(t.axisLabels.aggregationOfValues, {
45
- aggregation: f
42
+ } else a.length > 1 && (o === f.NoAggregation ? l = t.axisLabels.values : l = b(t.axisLabels.aggregationOfValues, {
43
+ aggregation: g
46
44
  }));
47
45
  }
48
- return o;
46
+ return l;
49
47
  }
50
- const E = (s, e, i) => s.axes?.[e] ?? Q(i, s.type)[e], M = (s) => {
51
- const { config: e, axis: i, axisIndex: t } = s;
52
- e.axes !== void 0 && (e.axes[t] = i);
53
- }, me = (s) => {
54
- const { config: e, axisIndex: i, isMax: t } = s;
48
+ const p = (i, e, s) => i.axes?.[e] ?? h(s, i.type)[e], T = (i) => {
49
+ const { config: e, axis: s, axisIndex: t } = i;
50
+ e.axes !== void 0 && (e.axes[t] = s);
51
+ }, z = (i) => {
52
+ const { config: e, axisIndex: s, isMax: t } = i;
55
53
  let a = Number.NaN;
56
- return t ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
57
- }, O = (s) => {
58
- const { config: e, value: i, axisIndex: t, isMax: a } = s, r = e?.axes?.[t];
59
- r !== void 0 && (a ? r.maximum = i : r.minimum = i);
60
- }, ye = (s) => s.axes?.[0]?.valueFormat ?? J(), pe = (s, e, i) => {
61
- const t = E(s, 0, e);
62
- if (t !== void 0 && i !== void 0) {
54
+ return t ? a = e.axes?.[s]?.maximum : a = e.axes?.[s]?.minimum, a ?? Number.NaN;
55
+ }, A = (i) => {
56
+ const { config: e, value: s, axisIndex: t, isMax: a } = i, o = e?.axes?.[t];
57
+ o !== void 0 && (a ? o.maximum = s : o.minimum = s);
58
+ }, G = (i) => i.axes?.[0]?.valueFormat ?? F(), H = (i, e, s) => {
59
+ const t = p(i, 0, e);
60
+ if (t !== void 0 && s !== void 0) {
63
61
  const a = {
64
62
  ...t,
65
- valueFormat: i
63
+ valueFormat: s
66
64
  };
67
- M({ config: s, axis: a, axisIndex: 0 });
65
+ T({ config: i, axis: a, axisIndex: 0 });
68
66
  }
69
- }, Fe = (s, e, i) => {
70
- const t = s.axes?.[e];
71
- t !== void 0 && (t.integerOnlyValues = i);
72
- }, ie = (s) => {
73
- const e = w(s.series);
74
- return e === n.BarSeries || e === n.ComboLineAndBarSeries || e === n.LineSeries;
75
- }, se = (s) => {
76
- const { axisIndex: e, config: i, isMultiAxis: t } = s;
67
+ }, J = (i, e, s) => {
68
+ const t = i.axes?.[e];
69
+ t !== void 0 && (t.integerOnlyValues = s);
70
+ }, N = (i) => {
71
+ const e = S(i.series);
72
+ return e === r.BarSeries || e === r.ComboLineAndBarSeries || e === r.LineSeries;
73
+ }, C = (i) => {
74
+ const { axisIndex: e, config: s, isMultiAxis: t } = i;
77
75
  let a = !1;
78
- return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = ie(i)), a;
79
- }, Se = (s) => {
80
- const { axisIndex: e, func: i, config: t } = s;
81
- return se({ axisIndex: e, config: t, isMultiAxis: !0 }) ? i(e) : void 0;
82
- }, V = (s, e) => {
83
- let i;
84
- const t = e.axes?.[s]?.valueFormat;
85
- return (s === 0 || s >= 1 && T(t)) && (i = t), i;
86
- }, Ae = (s) => {
87
- const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r = E(e, a, i);
88
- if (r !== void 0 && t !== void 0) {
89
- const o = {
90
- ...r,
76
+ return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = N(s)), a;
77
+ }, K = (i) => {
78
+ const { axisIndex: e, func: s, config: t } = i;
79
+ return C({ axisIndex: e, config: t, isMultiAxis: !0 }) ? s(e) : void 0;
80
+ }, Y = (i, e) => {
81
+ let s;
82
+ const t = e.axes?.[i]?.valueFormat;
83
+ return (i === 0 || i >= 1 && y(t)) && (s = t), s;
84
+ }, $ = (i) => {
85
+ const { config: e, commonStrings: s, valueFormat: t, axisIndex: a = 0 } = i, o = p(e, a, s);
86
+ if (o !== void 0 && t !== void 0) {
87
+ const l = {
88
+ ...o,
91
89
  valueFormat: t
92
90
  };
93
- M({
91
+ T({
94
92
  config: e,
95
- axis: o,
93
+ axis: l,
96
94
  axisIndex: a
97
95
  });
98
96
  }
99
- }, he = (s, e) => s.axes?.[e]?.isLogarithmic ?? !1, be = (s) => {
100
- const { config: e, isLogarithmic: i, axisIndex: t } = s, a = e.axes?.[t];
101
- a && (a.isLogarithmic = i, O({ config: e, value: null, axisIndex: t, isMax: !0 }), O({ config: e, value: null, axisIndex: t, isMax: !1 }));
102
- }, ve = (s) => {
103
- const { config: e, scrollbar: i, axisIndex: t } = s;
104
- e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = i);
105
- };
106
- async function Le(s) {
107
- const {
108
- config: e,
109
- layer: i,
110
- xAxisField: t,
111
- splitByField: a,
112
- layerFieldsInfo: r,
113
- aggregationFields: o,
114
- fetchNullValues: d,
115
- chartLimits: f,
116
- errorStrings: x
117
- } = s, m = r.filter((S) => S.name === a)[0]?.type, c = d !== !0 ? `${a} IS NOT NULL` : "", p = t && d !== !0 ? `${t} IS NOT NULL` : "", h = w(e?.series), { where: P } = e?.dataFilters ?? {}, R = {
118
- where: D([P, c, p]),
119
- // excluding the null values from the list
120
- orderByFields: ee(a) ? [] : [`${a} ${U.Ascending}`],
121
- // default sorting ascending for split-by field
122
- geometry: e?.dataFilters?.geometry
123
- };
124
- let F = "";
125
- o?.length === 0 ? F = B(i).idField : o && ([F] = o);
126
- let g = i ? q(i) ? await j({
127
- layer: i,
128
- category: e?.series[0].x ?? "",
129
- splitByField: a
130
- }) : await k({
131
- queryObject: i,
132
- category: e?.series[0].x ?? "",
133
- splitByField: a,
134
- queryConfig: R,
135
- errorStrings: x
136
- }) : [];
137
- const y = Z(f), W = {
138
- [n.BarSeries]: y.maxBarChartSeriesCount,
139
- [n.BoxPlotSeries]: y.maxBoxPlotSeriesCount,
140
- [n.LineSeries]: y.maxLineChartSeriesCount,
141
- [n.RadarSeries]: y.maxRadarChartSeriesCount
142
- }, b = (h ? W[h] : void 0) ?? y.serialChart.series, v = g.length, L = v > b;
143
- if (L && (g = g.slice(0, b)), e) {
144
- const S = e?.series.map((u) => K({ where: u.query?.where })?.toString() ?? "").filter((u) => u !== void 0 && u !== "");
145
- g = te({
146
- arrayA: g,
147
- arrayB: S,
148
- getKey: (u) => u === null ? null : u?.toString()
149
- });
150
- }
151
- return { categoriesArray: g, seriesLimitReached: L, totalSeriesCount: v, splitByFieldType: m, numericalField: F };
152
- }
153
- function Ne(s, e) {
154
- let i = e === "";
155
- for (const t of s)
156
- if (e === t.name) {
157
- i = !0;
158
- break;
97
+ }, P = (i, e) => i.axes?.[e]?.isLogarithmic ?? !1, Q = (i) => {
98
+ const { config: e, isLogarithmic: s, axisIndex: t } = i, a = e.axes?.[t];
99
+ a && (a.isLogarithmic = s, A({ config: e, value: null, axisIndex: t, isMax: !0 }), A({ config: e, value: null, axisIndex: t, isMax: !1 }));
100
+ }, R = (i) => {
101
+ const { config: e, scrollbar: s, axisIndex: t } = i;
102
+ e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = s);
103
+ }, U = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, Z = (i) => {
104
+ const { visibility: e, axisIndex: s, config: t } = i;
105
+ d({
106
+ config: t,
107
+ axisIndex: s,
108
+ callback: (a) => {
109
+ a.labels !== void 0 ? a.labels.visible = e : a.labels = c({
110
+ text: "",
111
+ visible: e,
112
+ font: x(n.AxisLabels),
113
+ type: n.AxisLabels
114
+ });
159
115
  }
160
- return i;
161
- }
162
- function Ie(s, e) {
163
- const i = H(s);
164
- let t = e.length === 0, a = 0;
165
- for (const r of e) {
166
- for (const o of i)
167
- if (r === o && (a += 1), a === e.length) {
168
- t = !0;
169
- break;
170
- }
171
- if (t)
172
- break;
173
- }
174
- return t;
175
- }
176
- function Ce(s, e) {
177
- e.forEach((i) => {
178
- Object.getOwnPropertyNames(i.prototype).forEach((t) => {
179
- Object.defineProperty(
180
- s.prototype,
181
- t,
182
- Object.getOwnPropertyDescriptor(i.prototype, t) || /* @__PURE__ */ Object.create(null)
183
- );
184
- });
185
116
  });
186
- }
187
- async function Oe(s) {
188
- const { layerInfo: e, config: i, category: t, errorStrings: a } = s, { layer: r } = e, { where: o } = i?.dataFilters ?? {}, { fetchNullValues: d } = i?.series?.[0]?.query ?? {}, f = d !== !0 ? `${t} IS NOT NULL` : "", x = {
189
- where: D([o, f]),
190
- // excluding the null values from the list
191
- orderByFields: [],
192
- geometry: i?.dataFilters?.geometry
193
- };
194
- let l;
195
- return q(r) ? l = (await j({
196
- layer: r,
197
- category: t,
198
- fetchNullValues: d
199
- })).map((m) => {
200
- const c = String(m);
201
- return N({
202
- queryObject: e.layer,
203
- fieldName: t,
204
- fieldValue: c
205
- }) ?? c;
206
- }) : l = // fetch unique category values asynchronously
207
- (await k({ queryObject: r, category: t, queryConfig: x, errorStrings: a })).map(
208
- (m) => {
209
- const c = String(m);
210
- return N({
211
- queryObject: e.layer,
212
- fieldName: t,
213
- fieldValue: c
214
- }) ?? c;
117
+ }, D = (i, e) => e.axes?.[i]?.title?.content.text ?? "", _ = (i, e, s) => {
118
+ const t = s.axes?.[e];
119
+ t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && t?.title === void 0 && (t.title = c({
120
+ text: i,
121
+ visible: !0,
122
+ font: x(n.AxisTitle)
123
+ }));
124
+ }, ee = (i, e) => e.axes?.[i]?.title?.visible ?? !1, te = (i) => {
125
+ const { visibility: e, axisIndex: s, config: t } = i;
126
+ d({
127
+ config: t,
128
+ axisIndex: s,
129
+ callback: (a, o) => {
130
+ a.title !== void 0 ? a.title.visible = e : a.title = c({
131
+ text: D(o, t),
132
+ visible: e,
133
+ font: x(n.AxisTitle)
134
+ });
215
135
  }
216
- ), l;
217
- }
218
- function Ve(s) {
219
- return s !== void 0 && V(0, s)?.type === n.CategoryAxisFormat && V(1, s)?.type === n.CategoryAxisFormat;
220
- }
136
+ });
137
+ }, ie = (i, e) => i.axes?.[e]?.title?.content, se = (i) => {
138
+ const { config: e, axisIndex: s, symbol: t } = i;
139
+ d({
140
+ config: e,
141
+ axisIndex: s,
142
+ callback: (a) => {
143
+ const o = a.title?.content.text;
144
+ (a.title === void 0 || t === void 0) && (a.title = c({
145
+ text: "",
146
+ visible: !0,
147
+ font: x(n.AxisTitle),
148
+ type: n.AxisTitle
149
+ })), t !== void 0 && (a.title.content = { ...t }), a.title.content.text = o;
150
+ }
151
+ });
152
+ };
221
153
  export {
222
- ye as a,
223
- Oe as b,
224
- pe as c,
225
- O as d,
226
- Fe as e,
227
- de as f,
228
- ge as g,
229
- Ce as h,
230
- Ve as i,
231
- Ne as j,
232
- Ie as k,
233
- Le as l,
234
- fe as m,
235
- me as n,
236
- V as o,
237
- he as p,
238
- be as q,
239
- Se as r,
240
- Ae as s,
241
- ve as t,
242
- xe as u
154
+ w as a,
155
+ G as b,
156
+ H as c,
157
+ A as d,
158
+ J as e,
159
+ ie as f,
160
+ D as g,
161
+ se as h,
162
+ _ as i,
163
+ ee as j,
164
+ te as k,
165
+ X as l,
166
+ d as m,
167
+ Z as n,
168
+ U as o,
169
+ z as p,
170
+ Y as q,
171
+ K as r,
172
+ $ as s,
173
+ P as t,
174
+ q as u,
175
+ Q as v,
176
+ R as w
243
177
  };