@arcgis/charts-components 5.2.0-next.3 → 5.2.0-next.30

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 (279) hide show
  1. package/dist/cdn/2ODYZG66.js +2 -0
  2. package/dist/cdn/{TAI4RIWT.js → 2SPGX6AF.js} +1 -1
  3. package/dist/cdn/35NSJ3NJ.js +2 -0
  4. package/dist/cdn/3MKY6UCO.js +2 -0
  5. package/dist/cdn/3NKDMMC2.js +2 -0
  6. package/dist/cdn/3QO6REDF.js +102 -0
  7. package/dist/cdn/3SBYV6BW.js +2 -0
  8. package/dist/cdn/{LRNADJJG.js → 3TBK72EK.js} +1 -1
  9. package/dist/cdn/{PC7IKOIB.js → 3UTF2CB3.js} +1 -1
  10. package/dist/cdn/3YN4EKSJ.js +2 -0
  11. package/dist/cdn/4BEGCEGA.js +4 -0
  12. package/dist/cdn/{TZB57XD4.js → 4P7URPRQ.js} +1 -1
  13. package/dist/cdn/4TRUG37X.js +2 -0
  14. package/dist/cdn/5UO6L27Q.js +2 -0
  15. package/dist/cdn/{PVJEBBA7.js → 5XCU5SR2.js} +1 -1
  16. package/dist/cdn/{YRBE7MBU.js → 6ANVHVX4.js} +1 -1
  17. package/dist/cdn/{VDG54AIC.js → 6CB5R4QQ.js} +1 -1
  18. package/dist/cdn/{U4XLNCOU.js → 6GV2QPKV.js} +1 -1
  19. package/dist/cdn/{JVHJMPFE.js → 6OCDFMFB.js} +1 -1
  20. package/dist/cdn/6VK54DG5.js +2 -0
  21. package/dist/cdn/{3YT44D4Z.js → 6XIDALQU.js} +1 -1
  22. package/dist/cdn/7VQXBQMZ.js +2 -0
  23. package/dist/cdn/{GL3IXVRN.js → 7Z7NOIH2.js} +1 -1
  24. package/dist/cdn/A636YSNA.js +2 -0
  25. package/dist/cdn/{5G7DSKI7.js → ADYDCO3M.js} +1 -1
  26. package/dist/cdn/{NQQW4GKA.js → AICTKGE3.js} +1 -1
  27. package/dist/cdn/AQIB3VEP.js +2 -0
  28. package/dist/cdn/AZR6HVRW.js +2 -0
  29. package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
  30. package/dist/cdn/BI54CNMR.js +2 -0
  31. package/dist/cdn/BJBNELDD.js +3 -0
  32. package/dist/cdn/BKU72IQC.js +2 -0
  33. package/dist/cdn/{N5ERJZPG.js → BQXXD2HU.js} +1 -1
  34. package/dist/cdn/BZFGE4LO.js +2 -0
  35. package/dist/cdn/C4TQOUPO.js +2 -0
  36. package/dist/cdn/{UKDTXHZT.js → CLN32L2L.js} +1 -1
  37. package/dist/cdn/CRCAJAFA.js +2 -0
  38. package/dist/cdn/DAF2U7TN.js +2 -0
  39. package/dist/cdn/DKENYDHS.js +233 -0
  40. package/dist/cdn/{5JML3JUR.js → DRFJC64L.js} +1 -1
  41. package/dist/cdn/{PK5XIIZY.js → G5EGTXMY.js} +1 -1
  42. package/dist/cdn/{KLC6NTPC.js → GCRQHIGQ.js} +1 -1
  43. package/dist/cdn/{HCMD362H.js → HBS6O3P3.js} +1 -1
  44. package/dist/cdn/{5QO32XSX.js → HIW5WRHR.js} +1 -1
  45. package/dist/cdn/IHHPUKGG.js +2 -0
  46. package/dist/cdn/IPALCXFF.js +2 -0
  47. package/dist/cdn/IWMWJN7M.js +2 -0
  48. package/dist/cdn/{A5GIBV5W.js → J2HYDDIW.js} +1 -1
  49. package/dist/cdn/JBR6IJMK.js +2 -0
  50. package/dist/cdn/{MRTKZZTF.js → JHANH4UG.js} +1 -1
  51. package/dist/cdn/JIV6BQKG.js +2 -0
  52. package/dist/cdn/{RFQBUWOW.js → K27GKXGP.js} +1 -1
  53. package/dist/cdn/{VVKV5KKN.js → KFPJI52X.js} +1 -1
  54. package/dist/cdn/KQLAAGKI.js +2 -0
  55. package/dist/cdn/{FDXE5JLT.js → LFXRCL7K.js} +1 -1
  56. package/dist/cdn/{UT4TYXFO.js → LU5S2VRK.js} +1 -1
  57. package/dist/cdn/{7ABIELGZ.js → M4ZJRIYM.js} +1 -1
  58. package/dist/cdn/M7QZTQSD.js +2 -0
  59. package/dist/cdn/{LZYN55O4.js → MBPFBE3E.js} +1 -1
  60. package/dist/cdn/MEA74C44.js +2 -0
  61. package/dist/cdn/{U2LJZ4ML.js → MVUIKY5Y.js} +1 -1
  62. package/dist/cdn/{3DK6M5E7.js → N673JFHK.js} +1 -1
  63. package/dist/cdn/NKVZYKL5.js +2 -0
  64. package/dist/cdn/O533LNDP.js +2 -0
  65. package/dist/cdn/O5NKLK7V.js +2 -0
  66. package/dist/cdn/PEYVSFSE.js +58 -0
  67. package/dist/cdn/{KOBNV5AQ.js → PKQOLKTW.js} +1 -1
  68. package/dist/cdn/{TNB3MBXR.js → Q2GW5LB7.js} +1 -1
  69. package/dist/cdn/QGEFY4ND.js +2 -0
  70. package/dist/cdn/{WASEMNYV.js → QNT6HTFC.js} +1 -1
  71. package/dist/cdn/{R45FWF7D.js → QV3NMKKZ.js} +1 -1
  72. package/dist/cdn/REZ2QR42.js +2 -0
  73. package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
  74. package/dist/cdn/{PZGIXDMC.js → RKG6CXUU.js} +1 -1
  75. package/dist/cdn/S7Z4HRW7.js +2 -0
  76. package/dist/cdn/SAYLTYWY.js +2 -0
  77. package/dist/cdn/SOGVYNPI.js +2 -0
  78. package/dist/cdn/SSKHF7PO.js +2 -0
  79. package/dist/cdn/{RAQZUMC6.js → T5TFLMQL.js} +1 -1
  80. package/dist/cdn/{23YH7MTF.js → TCS4HOSG.js} +1 -1
  81. package/dist/cdn/{LDPHZHSF.js → TOFVWGTG.js} +1 -1
  82. package/dist/cdn/TSA7UMSZ.js +2 -0
  83. package/dist/cdn/{KI4HS3AM.js → U3MRRFML.js} +1 -1
  84. package/dist/cdn/VWTJHXHI.js +2 -0
  85. package/dist/cdn/{PSO5AURI.js → WHVW3P3O.js} +1 -1
  86. package/dist/cdn/{WEQBZOH7.js → WJHIJTWS.js} +1 -1
  87. package/dist/cdn/{CJ4POAPM.js → WU62O2AU.js} +1 -1
  88. package/dist/cdn/X7YEBHBF.js +2 -0
  89. package/dist/cdn/X7Z4LEZH.js +2 -0
  90. package/dist/cdn/XRLVJJBT.js +2 -0
  91. package/dist/cdn/XRP6IFM4.js +2 -0
  92. package/dist/cdn/{TYMKFCF4.js → Y6CFEFZM.js} +1 -1
  93. package/dist/cdn/{LONASKGH.js → YFHB2EFH.js} +1 -1
  94. package/dist/cdn/YQIFZJTZ.js +2 -0
  95. package/dist/cdn/{2K4ODNJ4.js → YWCIV7ZZ.js} +1 -1
  96. package/dist/cdn/{VEA5ZR5D.js → YWKPGNHB.js} +1 -1
  97. package/dist/cdn/{ZRFHAQL6.js → Z43DVT6G.js} +1 -1
  98. package/dist/cdn/ZW4PF3UK.js +2 -0
  99. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  100. package/dist/cdn/index.js +1 -1
  101. package/dist/cdn/main.css +1 -1
  102. package/dist/cdn/model/shared/setup-utils.js +2 -0
  103. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  104. package/dist/chart-rendering/common/interfaces.d.ts +8 -8
  105. package/dist/chunks/chart-model.js +170 -138
  106. package/dist/chunks/class-breaks.js +18 -18
  107. package/dist/chunks/data.js +57 -57
  108. package/dist/chunks/heat-chart-model.js +46 -26
  109. package/dist/chunks/index2.js +2319 -2284
  110. package/dist/chunks/index3.js +32 -29
  111. package/dist/chunks/index4.js +107 -49
  112. package/dist/chunks/model-setter.js +1 -1
  113. package/dist/chunks/model-with-y-guides.js +6 -6
  114. package/dist/chunks/pie-chart-data.js +42 -36
  115. package/dist/chunks/pie-chart-model.js +175 -162
  116. package/dist/chunks/rotated-state.js +1 -1
  117. package/dist/chunks/scatterplot-model.js +1 -1
  118. package/dist/chunks/serial-chart-data.js +572 -526
  119. package/dist/chunks/serial-chart-model.js +107 -93
  120. package/dist/chunks/utils.js +67 -56
  121. package/dist/chunks/web-component-utils.js +632 -492
  122. package/dist/components/arcgis-chart/customElement.d.ts +145 -138
  123. package/dist/components/arcgis-chart/customElement.js +7178 -7164
  124. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
  125. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  126. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
  127. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
  128. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
  129. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
  130. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  131. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +23 -25
  132. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  133. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  134. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  135. package/dist/components/arcgis-charts-config-create-flow/customElement.js +15 -15
  136. package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
  137. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  138. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  139. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
  140. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +50 -51
  141. package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
  142. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
  143. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  144. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
  145. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +35 -37
  146. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
  147. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
  148. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
  149. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +54 -55
  150. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
  151. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
  152. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
  153. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
  154. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
  155. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
  156. package/dist/docs/api.json +1 -1
  157. package/dist/docs/docs.json +1 -1
  158. package/dist/docs/vscode.html-custom-data.json +1 -1
  159. package/dist/docs/web-types.json +1 -1
  160. package/dist/index.d.ts +66 -70
  161. package/dist/index.js +212 -210
  162. package/dist/json-schema/index.d.ts +59 -2
  163. package/dist/loader.js +1 -1
  164. package/dist/model/chart-model/chart-model.d.ts +2 -1
  165. package/dist/model/heat-chart-model/heat-chart-model.d.ts +22 -0
  166. package/dist/model/interfaces/common.d.ts +0 -2
  167. package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
  168. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
  169. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  170. package/dist/model/properties/rotated-state.d.ts +1 -1
  171. package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
  172. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  173. package/dist/spec/rest-js-types.d.ts +22 -8
  174. package/dist/spec/web-chart.d.ts +8 -2
  175. package/dist/utils/chart-config/converter/index.js +1 -1
  176. package/dist/utils/chart-config/utils/index.d.ts +35 -0
  177. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  178. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  179. package/dist/utils/data/index.d.ts +9 -12
  180. package/dist/utils/defaults/index.d.ts +1 -2
  181. package/dist/utils/errors/index.d.ts +1 -1
  182. package/dist/utils/layer/index.d.ts +5 -3
  183. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  184. package/dist/utils/layer/query-parser/index.d.ts +3 -3
  185. package/dist/utils/localization/interfaces.d.ts +4 -0
  186. package/dist/utils/misc/index.d.ts +2 -3
  187. package/dist/utils/types/index.d.ts +1 -5
  188. package/package.json +6 -6
  189. package/dist/cdn/24LTTBTF.js +0 -2
  190. package/dist/cdn/26FWESH3.js +0 -102
  191. package/dist/cdn/3XHZ677O.js +0 -2
  192. package/dist/cdn/5FMEOIBS.js +0 -3
  193. package/dist/cdn/74JAZF7U.js +0 -2
  194. package/dist/cdn/7HIZH35G.js +0 -2
  195. package/dist/cdn/CCR46UHB.js +0 -2
  196. package/dist/cdn/CRFJ2GGS.js +0 -2
  197. package/dist/cdn/CXQOEN77.js +0 -2
  198. package/dist/cdn/DYC3Q36R.js +0 -2
  199. package/dist/cdn/E2N2S7BH.js +0 -2
  200. package/dist/cdn/E43KEVHT.js +0 -2
  201. package/dist/cdn/EXTKNE2L.js +0 -2
  202. package/dist/cdn/F7Y6EWWB.js +0 -2
  203. package/dist/cdn/G5HVFOIO.js +0 -2
  204. package/dist/cdn/G7TRU7JI.js +0 -2
  205. package/dist/cdn/GES3HRXE.js +0 -2
  206. package/dist/cdn/HCV34H6X.js +0 -2
  207. package/dist/cdn/IHQ7R6L4.js +0 -4
  208. package/dist/cdn/IUFXFWXH.js +0 -2
  209. package/dist/cdn/JHYH555K.js +0 -2
  210. package/dist/cdn/JNNB2DIA.js +0 -2
  211. package/dist/cdn/JRRFLDWX.js +0 -58
  212. package/dist/cdn/KVGEY3IQ.js +0 -2
  213. package/dist/cdn/LWODMEOP.js +0 -2
  214. package/dist/cdn/LYZGRYQV.js +0 -2
  215. package/dist/cdn/MF3FGXHI.js +0 -2
  216. package/dist/cdn/MUPHTV55.js +0 -2
  217. package/dist/cdn/N524VXQ2.js +0 -2
  218. package/dist/cdn/NGPMU4T3.js +0 -2
  219. package/dist/cdn/NJCZ6UTM.js +0 -2
  220. package/dist/cdn/NMB6TWC2.js +0 -2
  221. package/dist/cdn/NNNTZU5J.js +0 -2
  222. package/dist/cdn/NS3THLCD.js +0 -2
  223. package/dist/cdn/NZR4L5AA.js +0 -2
  224. package/dist/cdn/OE3UFORR.js +0 -2
  225. package/dist/cdn/P2NPQAJ3.js +0 -2
  226. package/dist/cdn/PJUAU42S.js +0 -2
  227. package/dist/cdn/PY5Q3V6E.js +0 -2
  228. package/dist/cdn/RMYZGOBM.js +0 -2
  229. package/dist/cdn/RX3RNE7F.js +0 -2
  230. package/dist/cdn/TU3UF32Y.js +0 -2
  231. package/dist/cdn/TXSWWAOF.js +0 -2
  232. package/dist/cdn/UAJGYF4S.js +0 -2
  233. package/dist/cdn/UT6G7RV7.js +0 -2
  234. package/dist/cdn/VOTZAPI3.js +0 -2
  235. package/dist/cdn/WO6JBNMU.js +0 -2
  236. package/dist/cdn/YYK7SPXC.js +0 -2
  237. package/dist/cdn/ZRZEKOEF.js +0 -2
  238. package/dist/chunks/time-zone.js +0 -38
  239. /package/dist/cdn/{XE3FKQFA.js → 3HAB3JR6.js} +0 -0
  240. /package/dist/cdn/{DCZWZOPF.js → 3YOOX2CV.js} +0 -0
  241. /package/dist/cdn/{IPM2XKST.js → 4DSO7LUF.js} +0 -0
  242. /package/dist/cdn/{FF4DUQDZ.js → 5HRLHWQ5.js} +0 -0
  243. /package/dist/cdn/{ETKPMU7Z.js → 732EZ6WJ.js} +0 -0
  244. /package/dist/cdn/{AWF4R7WL.js → 7IS6QE6S.js} +0 -0
  245. /package/dist/cdn/{HVO4LIXR.js → 7XZZ5OZL.js} +0 -0
  246. /package/dist/cdn/{5MEQANMY.js → AN2NRYQV.js} +0 -0
  247. /package/dist/cdn/{L4G6FO7A.js → ASUGYCJ6.js} +0 -0
  248. /package/dist/cdn/{AM2TOTX6.js → BICQEJYZ.js} +0 -0
  249. /package/dist/cdn/{5XTQQOTT.js → C2I4WPWM.js} +0 -0
  250. /package/dist/cdn/{CLXVAIQX.js → C47AIJTI.js} +0 -0
  251. /package/dist/cdn/{N6AOFBBX.js → C5YJ7J3A.js} +0 -0
  252. /package/dist/cdn/{QOOBNATX.js → DPV2ZJLF.js} +0 -0
  253. /package/dist/cdn/{CJPEW4LJ.js → E4535ZTP.js} +0 -0
  254. /package/dist/cdn/{XW4PBQNW.js → FJNRPAMO.js} +0 -0
  255. /package/dist/cdn/{JBHGSSHS.js → GI54JT4O.js} +0 -0
  256. /package/dist/cdn/{5YJNENER.js → GYTYFBNU.js} +0 -0
  257. /package/dist/cdn/{AJWYIBGC.js → J5QUGI2J.js} +0 -0
  258. /package/dist/cdn/{TF7TE7K5.js → JPEN5TFK.js} +0 -0
  259. /package/dist/cdn/{SBYD2EKR.js → KBQM3DLQ.js} +0 -0
  260. /package/dist/cdn/{7FZC3RZK.js → LEMJA72W.js} +0 -0
  261. /package/dist/cdn/{6XTKJ7DO.js → MMO2QPOA.js} +0 -0
  262. /package/dist/cdn/{BJDRJUEJ.js → PS7IL5JZ.js} +0 -0
  263. /package/dist/cdn/{E7OAEGSE.js → R2RRMPOC.js} +0 -0
  264. /package/dist/cdn/{YOT6DVSU.js → RV6E7KKQ.js} +0 -0
  265. /package/dist/cdn/{GV3TT7L5.js → RYLXJPKL.js} +0 -0
  266. /package/dist/cdn/{LFQGH44F.js → S2R72ISR.js} +0 -0
  267. /package/dist/cdn/{2HUAW34Q.js → T4NEEFOY.js} +0 -0
  268. /package/dist/cdn/{K3GNHGEW.js → TEERYUCS.js} +0 -0
  269. /package/dist/cdn/{A4GEWIPY.js → V454JYTQ.js} +0 -0
  270. /package/dist/cdn/{ZFZ5AEUQ.js → V7JF5I5M.js} +0 -0
  271. /package/dist/cdn/{KFONSKQF.js → VIZWWEG5.js} +0 -0
  272. /package/dist/cdn/{KZ7LPNX3.js → W5SPX6WM.js} +0 -0
  273. /package/dist/cdn/{JJIGLOJA.js → X2IOJECM.js} +0 -0
  274. /package/dist/cdn/{QMSINFQX.js → X33RIIGI.js} +0 -0
  275. /package/dist/cdn/{ZXOO3X5P.js → YBTVIOHQ.js} +0 -0
  276. /package/dist/cdn/{KUZR6CGB.js → YFQHZWLO.js} +0 -0
  277. /package/dist/cdn/{DKAHZ7IX.js → YX4EVVJM.js} +0 -0
  278. /package/dist/cdn/{DEGBVJ76.js → YXH22GJ6.js} +0 -0
  279. /package/dist/cdn/{A5AECJXP.js → ZMQTYGGT.js} +0 -0
@@ -1,407 +1,480 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isEqual as re, capitalize as F, isNumber as j, zip as J } from "lodash-es";
3
- import { d as E } from "./interfaces.js";
4
- import { g as ne, a as W, b as ee, c as _ } from "./box-plot-data.js";
5
- import { g as le } from "./histogram-data.js";
6
- import { g as se, a as ue, b as ce } from "./pie-chart-data.js";
7
- import { g as te } from "./series-length.js";
8
- import { g as ae, d as oe, e as fe } from "./serial-chart-data.js";
9
- import { g as H, a as me } from "./data.js";
10
- import { Y as I, an as de, af as ye, aK as N, B as v, ba as ge } from "./index2.js";
11
- import { j as U, av as O, g as k, ap as be, b as xe, a as z } from "./index.js";
12
- import { q as w, C as m, F as L } from "./index3.js";
13
- import { g as pe } from "./series-types.js";
14
- import { V as Fe } from "./index6.js";
15
- import { P as Q } from "./common.js";
16
- import { R as Se } from "./rest-js-object-literals.js";
17
- import { u as V, d as B } from "./chart-object-literals.js";
18
- function De(n) {
19
- const { hour: e, minute: t = 0, format: i, locale: r = "en-US" } = n, o = i && Object.keys(i).length > 0 ? i : {
2
+ import { isEqual as ue, capitalize as v, isNumber as W, zip as ae } from "lodash-es";
3
+ import { d as Y } from "./interfaces.js";
4
+ import { g as ce, a as q, b as oe, c as _ } from "./box-plot-data.js";
5
+ import { g as fe } from "./histogram-data.js";
6
+ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
7
+ import { g as ie } from "./series-length.js";
8
+ import { g as re, d as le, e as ge } from "./serial-chart-data.js";
9
+ import { g as z, a as pe } from "./data.js";
10
+ import { Y as U, an as be, af as xe, aK as E, cj as Fe, B as V, a6 as De, bb as Se, d3 as ve } from "./index2.js";
11
+ import { j as H, av as $, g as R, ap as Be, b as he, a as Q } from "./index.js";
12
+ import { q as K, C as g, F as A } from "./index3.js";
13
+ import { g as Pe } from "./series-types.js";
14
+ import { V as Ve } from "./index6.js";
15
+ import { DateTime as ne } from "luxon";
16
+ import { P as X } from "./common.js";
17
+ import { u as k, d as L } from "./chart-object-literals.js";
18
+ import { R as Ce } from "./rest-js-object-literals.js";
19
+ function Le(l) {
20
+ const { hour: e, minute: t = 0, format: a, locale: o = "en-US" } = l, i = a && Object.keys(a).length > 0 ? a : {
20
21
  hour: "numeric",
21
22
  minute: "2-digit",
22
23
  hour12: !1
23
24
  };
24
- let a = e.toString();
25
+ let r = e.toString();
25
26
  if (Number.isInteger(e) && e >= 0 && e <= 23 && Number.isInteger(t) && t >= 0 && t <= 59) {
26
- const u = new Date(2e3, 0, 1, e, t);
27
- a = new Intl.DateTimeFormat(r, o).format(u), a.includes(":") || a.startsWith("0") && (a = a.slice(1));
27
+ const n = new Date(2e3, 0, 1, e, t);
28
+ r = new Intl.DateTimeFormat(o, i).format(n), r.includes(":") || r.startsWith("0") && (r = r.slice(1));
28
29
  }
29
- return a;
30
+ return r;
30
31
  }
31
- function he(n) {
32
- const { weekdayNumber: e, format: t, locale: i = "en-US", firstDayOfWeek: r = 7 } = n, o = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
33
- let a = e.toString();
34
- if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(r) && r > 0 && r <= 7) {
35
- const u = (e + r - 1) % 7, c = new Date(2e3, 0, 2 + u);
36
- a = new Intl.DateTimeFormat(i, o).format(c);
32
+ function Ae(l) {
33
+ const { weekdayNumber: e, format: t, locale: a = "en-US", firstDayOfWeek: o = 7 } = l, i = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
34
+ let r = e.toString();
35
+ if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(o) && o > 0 && o <= 7) {
36
+ const n = (e + o - 1) % 7, s = new Date(2e3, 0, 2 + n);
37
+ r = new Intl.DateTimeFormat(a, i).format(s);
37
38
  }
38
- return a;
39
+ return r;
39
40
  }
40
- function Pe(n) {
41
- const { monthNumber: e, format: t, locale: i = "en-US" } = n, r = t && Object.keys(t).length > 0 ? t : { month: "long" };
42
- let o = e.toString();
41
+ function Oe(l) {
42
+ const { monthNumber: e, format: t, locale: a = "en-US" } = l, o = t && Object.keys(t).length > 0 ? t : { month: "long" };
43
+ let i = e.toString();
43
44
  if (Number.isInteger(e) && e > 0 && e <= 12) {
44
- const a = new Date(2e3, e - 1);
45
- o = new Intl.DateTimeFormat(i, r).format(a);
45
+ const r = new Date(2e3, e - 1);
46
+ i = new Intl.DateTimeFormat(a, o).format(r);
46
47
  }
47
- return o;
48
+ return i;
48
49
  }
49
- function Z(n) {
50
- const { value: e, formatLocale: t, unit: i, config: r, utilsStrings: o } = n;
51
- let a = { label: "", value: e.toString() };
52
- switch (i) {
53
- case B.DayOfWeek:
54
- a = {
55
- label: o.heatChartCalendarDatePartsUnits.dayOfWeek,
56
- value: he({
50
+ function G(l) {
51
+ const { value: e, formatLocale: t, unit: a, config: o, utilsStrings: i } = l;
52
+ let r = { label: "", value: e.toString() };
53
+ switch (a) {
54
+ case L.DayOfWeek:
55
+ r = {
56
+ label: i.heatChartCalendarDatePartsUnits.dayOfWeek,
57
+ value: Ae({
57
58
  weekdayNumber: e,
58
- firstDayOfWeek: "firstDayOfWeek" in r ? r.firstDayOfWeek : be,
59
+ firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : Be,
59
60
  locale: t
60
61
  })
61
62
  };
62
63
  break;
63
- case B.MonthOfYear:
64
- a = {
65
- label: o.heatChartCalendarDatePartsUnits.monthOfYear,
66
- value: Pe({
64
+ case L.MonthOfYear:
65
+ r = {
66
+ label: i.heatChartCalendarDatePartsUnits.monthOfYear,
67
+ value: Oe({
67
68
  monthNumber: e,
68
69
  locale: t
69
70
  })
70
71
  };
71
72
  break;
72
- case B.HourOfDay:
73
- a = {
74
- label: o.heatChartCalendarDatePartsUnits.hourOfDay,
75
- value: De({
73
+ case L.HourOfDay:
74
+ r = {
75
+ label: i.heatChartCalendarDatePartsUnits.hourOfDay,
76
+ value: Le({
76
77
  hour: e,
77
78
  format: { hour: "numeric", hour12: !1 },
78
79
  locale: t
79
80
  })
80
81
  };
81
82
  break;
82
- case B.DayOfMonth:
83
- a = {
84
- label: o.heatChartCalendarDatePartsUnits.dayOfMonth,
83
+ case L.DayOfMonth:
84
+ r = {
85
+ label: i.heatChartCalendarDatePartsUnits.dayOfMonth,
85
86
  value: typeof e == "string" ? e : e?.toString() ?? ""
86
87
  };
87
88
  break;
88
- case B.DayOfYear:
89
- a = {
90
- label: o.heatChartCalendarDatePartsUnits.dayOfYear,
89
+ case L.DayOfYear:
90
+ r = {
91
+ label: i.heatChartCalendarDatePartsUnits.dayOfYear,
91
92
  value: typeof e == "string" ? e : e?.toString() ?? ""
92
93
  };
93
94
  break;
94
- case B.MinuteOfDay:
95
- a = {
96
- label: o.heatChartCalendarDatePartsUnits.minuteOfDay,
95
+ case L.MinuteOfDay:
96
+ r = {
97
+ label: i.heatChartCalendarDatePartsUnits.minuteOfDay,
97
98
  value: typeof e == "string" ? e : e?.toString() ?? ""
98
99
  };
99
100
  break;
100
- case B.WeekOfYear:
101
- a = {
102
- label: o.heatChartCalendarDatePartsUnits.weekOfYear,
101
+ case L.WeekOfYear:
102
+ r = {
103
+ label: i.heatChartCalendarDatePartsUnits.weekOfYear,
103
104
  value: typeof e == "string" ? e : e?.toString() ?? ""
104
105
  };
105
106
  break;
106
- case B.QuarterOfYear:
107
- a = {
108
- label: o.heatChartCalendarDatePartsUnits.quarterOfYear,
107
+ case L.QuarterOfYear:
108
+ r = {
109
+ label: i.heatChartCalendarDatePartsUnits.quarterOfYear,
109
110
  value: typeof e == "string" ? e : e?.toString() ?? ""
110
111
  };
111
112
  break;
112
113
  }
113
- return a;
114
+ return r;
114
115
  }
115
- function ve(n, e) {
116
- return !re(n, e);
116
+ function Me(l, e) {
117
+ return !ue(l, e);
117
118
  }
118
- function Ge(n, e) {
119
- return ve(n, e) || n !== e;
119
+ function ut(l, e) {
120
+ return Me(l, e) || l !== e;
120
121
  }
121
- function Ae(n) {
122
- return (new Intl.NumberFormat(n, {
122
+ function we(l) {
123
+ return (new Intl.NumberFormat(l, {
123
124
  minimumFractionDigits: 1,
124
125
  maximumFractionDigits: 1
125
- }).formatToParts(1.1).find((i) => i.type === "decimal")?.value ?? ".") === "." ? "," : ";";
126
+ }).formatToParts(1.1).find((a) => a.type === "decimal")?.value ?? ".") === "." ? "," : ";";
126
127
  }
127
- function Be(n) {
128
- return new Intl.NumberFormat(n, {
128
+ function ke(l) {
129
+ return new Intl.NumberFormat(l, {
129
130
  minimumFractionDigits: 1,
130
131
  maximumFractionDigits: 1
131
132
  }).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
132
133
  }
133
- const X = (n) => {
134
- const { value: e, quoteAll: t = !1, locale: i, roundDecimals: r } = n;
135
- let o = e == null ? "" : String(e);
134
+ const J = (l) => {
135
+ const { value: e, quoteAll: t = !1, locale: a, roundDecimals: o } = l;
136
+ let i = e == null ? "" : String(e);
136
137
  if (e === null)
137
- o = "null";
138
+ i = "null";
138
139
  else if (e === void 0)
139
- o = "";
140
- else if (typeof e == "number" && Number.isFinite(e) && i !== void 0) {
141
- const u = Be(i), c = r ?? o.split(u)[1]?.length ?? 2;
142
- o = new Intl.NumberFormat(i, {
143
- maximumFractionDigits: c
140
+ i = "";
141
+ else if (typeof e == "number" && Number.isFinite(e) && a !== void 0) {
142
+ const n = ke(a), s = o ?? i.split(n)[1]?.length ?? 2;
143
+ i = new Intl.NumberFormat(a, {
144
+ maximumFractionDigits: s
144
145
  }).format(e).replace(/\u202F/gu, " ");
145
146
  }
146
- return (t || /[",\r\n]/u.test(o)) && (o = `"${o.replace(/"/gu, '""')}"`), o;
147
+ return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
147
148
  };
148
- function Je(n, e = {}) {
149
- const { columns: t, delimiter: i, includeHeader: r = !0, quoteAll: o = !1, locale: a, roundDecimals: u } = e, c = n.length === 0;
150
- let l = "";
151
- if (!c) {
152
- const S = t ?? Object.keys(n[0]), p = [], x = i ?? Ae(a ?? "en");
153
- if (a !== void 0 && x !== "," && (l += `sep=${x}\r
154
- `), r) {
155
- const y = S.map((s) => X({ value: s, quoteAll: o, locale: a, roundDecimals: u }));
156
- p.push(y.join(x));
149
+ function ct(l, e = {}) {
150
+ const { columns: t, delimiter: a, includeHeader: o = !0, quoteAll: i = !1, locale: r, roundDecimals: n } = e, s = l.length === 0;
151
+ let c = "";
152
+ if (!s) {
153
+ const f = t ?? Object.keys(l[0]), u = [], p = a ?? we(r ?? "en");
154
+ if (r !== void 0 && p !== "," && (c += `sep=${p}\r
155
+ `), o) {
156
+ const B = f.map((b) => J({ value: b, quoteAll: i, locale: r, roundDecimals: n }));
157
+ u.push(B.join(p));
157
158
  }
158
- n.forEach((y) => {
159
- const s = S.map((f) => X({ value: y[f], quoteAll: o, locale: a, roundDecimals: u }));
160
- p.push(s.join(x));
161
- }), l += p.join(`\r
159
+ l.forEach((B) => {
160
+ const b = f.map((x) => J({ value: B[x], quoteAll: i, locale: r, roundDecimals: n }));
161
+ u.push(b.join(p));
162
+ }), c += u.join(`\r
162
163
  `);
163
164
  }
164
- return l;
165
+ return c;
165
166
  }
166
- function et(n) {
167
- const { rawData: e, config: t, layer: i, fieldList: r, formatters: o, formatLocale: a, utilsStrings: u } = n;
168
- let c = [];
167
+ function ft(l) {
168
+ const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r, timeZone: n, formatLocale: s, utilsStrings: c } = l;
169
+ let f = [];
169
170
  if (t !== void 0 && Array.isArray(e) && e.length > 0) {
170
- const l = pe(t?.series);
171
- l === V.HistogramSeries ? c = Ve(
171
+ const u = Pe(t?.series);
172
+ u === k.HistogramSeries ? f = Re(
172
173
  t,
173
174
  e,
174
- o
175
- ) : l === V.HeatSeries ? c = Le({
175
+ i
176
+ ) : u === k.HeatSeries ? f = Te({
176
177
  config: t,
177
178
  rows: e,
178
- layer: i,
179
- fieldList: r,
180
- formatLocale: a,
181
- utilsStrings: u
182
- }) : l === V.BarSeries || l === V.LineSeries || l === V.ComboLineAndBarSeries ? c = Me({
179
+ layer: a,
180
+ fieldList: o,
181
+ formatLocale: s,
182
+ utilsStrings: c
183
+ }) : u === k.BarSeries || u === k.LineSeries || u === k.ComboLineAndBarSeries ? f = Ke({
183
184
  config: t,
184
185
  rows: e,
185
- layer: i,
186
- fieldList: r,
187
- formatters: o
188
- }) : l === V.PieSeries ? c = $e({
186
+ layer: a,
187
+ fieldList: o,
188
+ formatters: i,
189
+ useRendererLabel: r,
190
+ timeZone: n
191
+ }) : u === k.PieSeries ? f = Ee({
189
192
  config: t,
190
193
  rows: e,
191
- layer: i,
192
- fieldList: r,
193
- formatters: o
194
- }) : l === V.BoxPlotSeries && (c = Te({
194
+ layer: a,
195
+ fieldList: o,
196
+ formatters: i,
197
+ useRendererLabel: r,
198
+ timeZone: n
199
+ }) : u === k.BoxPlotSeries && (f = Ze({
195
200
  config: t,
196
201
  rows: e,
197
- fieldList: r,
198
- formatters: o
202
+ layer: a,
203
+ fieldList: o,
204
+ formatters: i,
205
+ useRendererLabel: r,
206
+ timeZone: n
199
207
  }));
200
208
  }
201
- return c;
209
+ return f;
202
210
  }
203
- function P(n) {
204
- const { value: e, originalValue: t, formatter: i } = n;
205
- let r = e;
206
- return i !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (r = i(e, t)), r;
211
+ function h(l) {
212
+ const { value: e, originalValue: t, formatter: a } = l;
213
+ let o = e;
214
+ return a !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (o = a(e, t)), o;
207
215
  }
208
- function C(n) {
209
- const { field: e, row: t, fieldList: i, formatter: r } = n, o = Object.keys(t).find((c) => c.toLocaleLowerCase() === e.toLocaleLowerCase()), a = t[o ?? e];
210
- let u;
211
- return a == null || typeof a == "boolean" || Array.isArray(a) ? u = a : typeof a == "string" || typeof a == "number" || a instanceof Date ? u = ie({
212
- field: e,
213
- value: a,
214
- fieldList: i
215
- }) : u = a, P({
216
- value: u,
217
- originalValue: a,
216
+ function M(l) {
217
+ const { field: e, value: t, dataContext: a, layer: o, fieldList: i, formatter: r, timeZone: n } = l;
218
+ let s;
219
+ if (t == null || typeof t == "boolean" || Array.isArray(t))
220
+ s = t;
221
+ else if (typeof t == "string" || typeof t == "number" || t instanceof Date) {
222
+ const f = Ne({
223
+ fieldName: e,
224
+ dataContext: a
225
+ }) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ? De({
226
+ queryObject: o,
227
+ fieldName: e,
228
+ fieldValue: t
229
+ }) : void 0);
230
+ s = se({
231
+ field: e,
232
+ value: f ?? t,
233
+ fieldList: i,
234
+ timeZone: n
235
+ });
236
+ } else
237
+ s = t;
238
+ return h({
239
+ value: s,
240
+ originalValue: t,
218
241
  formatter: r
219
242
  });
220
243
  }
221
- function Y(n) {
222
- const { config: e, seriesIndex: t, formatters: i } = n;
223
- return e.series?.[t]?.assignToSecondValueAxis === !0 ? i?.secondaryYAxisLabelFormatter : i?.yAxisLabelFormatter;
244
+ function O(l) {
245
+ const { field: e, row: t, layer: a, fieldList: o, formatter: i, useRendererLabel: r = !1, timeZone: n } = l, s = Object.keys(t).find((u) => u.toLocaleLowerCase() === e.toLocaleLowerCase()), c = t[s ?? e], f = Fe({
246
+ value: c,
247
+ dataContext: t,
248
+ useRendererLabel: r
249
+ });
250
+ return M({
251
+ field: e,
252
+ value: f,
253
+ dataContext: t,
254
+ layer: a,
255
+ fieldList: o,
256
+ formatter: i,
257
+ timeZone: n
258
+ });
259
+ }
260
+ function $e(l, e) {
261
+ let t = !1;
262
+ if (l === e)
263
+ t = !0;
264
+ else if (l != null && e != null) {
265
+ const a = String(l), o = String(e);
266
+ t = a === o || !Number.isNaN(Number(a)) && !Number.isNaN(Number(o)) && Number(a) === Number(o);
267
+ }
268
+ return t;
224
269
  }
225
- function Ce(n) {
226
- const { config: e, splitValueIndex: t, formatters: i } = n;
227
- return e?.series?.[t]?.assignToSecondValueAxis === !0 ? i?.secondaryYAxisLabelFormatter : i?.yAxisLabelFormatter;
270
+ function Ne(l) {
271
+ const { fieldName: e, dataContext: t } = l, a = A.rendererSymbolField;
272
+ return e === a && t !== void 0 ? ve(t) : void 0;
228
273
  }
229
- function Le(n) {
230
- const { config: e, rows: t, layer: i, fieldList: r, formatLocale: o, utilsStrings: a } = n, [u] = e.series, c = u.x, l = ae(e), S = oe(e), p = H({
231
- config: e,
232
- xAxisField: c,
233
- numericFields: S,
234
- aggregationType: l,
274
+ function ee(l) {
275
+ const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r, timeZone: n } = l;
276
+ let s;
277
+ const c = e.series[o ?? -1]?.name;
278
+ return c !== void 0 ? s = c : s = M({
279
+ field: t,
280
+ value: a,
235
281
  layer: i,
236
- fieldList: r
282
+ fieldList: r,
283
+ timeZone: n
284
+ }), s;
285
+ }
286
+ function Te(l) {
287
+ const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, c = re(e), f = le(e), u = z({
288
+ config: e,
289
+ xAxisField: s,
290
+ numericFields: f,
291
+ aggregationType: c,
292
+ layer: a,
293
+ fieldList: o
237
294
  });
238
- return t.map((x) => {
239
- const y = x[U.xField], s = x[U.yField], f = x[U.valueField], d = typeof f == "number" && Number.isFinite(f) ? f.toFixed(2) : f;
240
- let g = { label: u.x, value: y }, b = { label: u.y, value: s };
241
- if (u.xTemporalBinning !== void 0) {
242
- const { label: D, value: h } = Z({
243
- value: Number(y),
295
+ return t.map((p) => {
296
+ const B = p[H.xField], b = p[H.yField], x = p[H.valueField], D = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
297
+ let m = { label: n.x, value: B }, d = { label: n.y, value: b };
298
+ if (n.xTemporalBinning !== void 0) {
299
+ const { label: F, value: S } = G({
300
+ value: Number(B),
244
301
  config: e,
245
- formatLocale: o,
246
- unit: u.xTemporalBinning.unit,
247
- utilsStrings: a
302
+ formatLocale: i,
303
+ unit: n.xTemporalBinning.unit,
304
+ utilsStrings: r
248
305
  });
249
- !w(D) && !w(h) && (g = { label: D, value: h });
306
+ !K(F) && !K(S) && (m = { label: F, value: S });
250
307
  }
251
- if (u.yTemporalBinning !== void 0) {
252
- const { label: D, value: h } = Z({
253
- value: Number(s),
308
+ if (n.yTemporalBinning !== void 0) {
309
+ const { label: F, value: S } = G({
310
+ value: Number(b),
254
311
  config: e,
255
- formatLocale: o,
256
- unit: u.yTemporalBinning.unit,
257
- utilsStrings: a
312
+ formatLocale: i,
313
+ unit: n.yTemporalBinning.unit,
314
+ utilsStrings: r
258
315
  });
259
- !w(D) && !w(h) && (b = { label: D, value: h });
316
+ !K(F) && !K(S) && (d = { label: F, value: S });
260
317
  }
261
318
  return {
262
- [g.label]: g.value,
263
- [b.label]: b.value,
264
- [p.description]: d
319
+ [m.label]: m.value,
320
+ [d.label]: d.value,
321
+ [u.description]: D
265
322
  };
266
323
  });
267
324
  }
268
- function Ve(n, e, t) {
269
- const i = le(n), r = `${F(E.Min)} of ${i}`, o = `${F(E.Max)} of ${i}`, a = `${F(E.Count)} of ${i}`;
270
- return e.map((u) => {
271
- const { minValue: c, maxValue: l, count: S } = u, p = j(c), x = j(l), y = j(S), s = {};
272
- if (p && (s[r] = P({
325
+ function Re(l, e, t) {
326
+ const a = fe(l), o = `${v(Y.Min)} of ${a}`, i = `${v(Y.Max)} of ${a}`, r = `${v(Y.Count)} of ${a}`;
327
+ return e.map((n) => {
328
+ const { minValue: s, maxValue: c, count: f } = n, u = W(s), p = W(c), B = W(f), b = {};
329
+ if (u && (b[o] = h({
330
+ value: s,
331
+ originalValue: s,
332
+ formatter: t?.xAxisLabelFormatter
333
+ })), p && (b[i] = h({
273
334
  value: c,
274
335
  originalValue: c,
275
336
  formatter: t?.xAxisLabelFormatter
276
- })), x && (s[o] = P({
277
- value: l,
278
- originalValue: l,
279
- formatter: t?.xAxisLabelFormatter
280
- })), p && x) {
281
- const f = P({
337
+ })), u && p) {
338
+ const x = h({
339
+ value: s,
340
+ originalValue: s,
341
+ formatter: t?.xAxisLabelFormatter
342
+ }), D = h({
282
343
  value: c,
283
344
  originalValue: c,
284
345
  formatter: t?.xAxisLabelFormatter
285
- }), d = P({
286
- value: l,
287
- originalValue: l,
288
- formatter: t?.xAxisLabelFormatter
289
346
  });
290
- s.Label = `${String(f ?? "")} - ${String(d ?? "")}`;
347
+ b.Label = `${String(x ?? "")} - ${String(D ?? "")}`;
291
348
  }
292
- return y && (s[a] = P({
293
- value: S,
294
- originalValue: S,
295
- formatter: t?.yAxisLabelFormatter
296
- })), s;
349
+ return B && (b[r] = f), b;
297
350
  });
298
351
  }
299
- function Oe(n, e, t) {
300
- const i = Object.keys(n);
301
- let r = [];
302
- return t ? r = t.map((o) => i.find((a) => a.toLowerCase().includes(o.toLowerCase())) || "") : r = i.filter((a) => a.toLowerCase().includes(e.toLowerCase())), r.filter((o) => o.trim() !== "");
352
+ function Ie(l, e, t) {
353
+ const a = Object.keys(l);
354
+ let o = [];
355
+ return t ? o = t.map((i) => a.find((r) => r.toLowerCase().includes(i.toLowerCase())) || "") : o = a.filter((r) => r.toLowerCase().includes(e.toLowerCase())), o.filter((i) => i.trim() !== "");
303
356
  }
304
- function Me(n) {
305
- const { config: e, rows: t, layer: i, fieldList: r, formatters: o } = n, a = me(e), u = ae(e), c = F(u), l = oe(e), S = I(e.series), p = te(e), x = fe(e), { idField: y, isTraditionalTypeOID: s } = de(ye(i)), f = s && l.length === 1 && l[0] === y;
357
+ function Ke(l) {
358
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f = v(c), u = le(e), p = U(e.series), B = ie(e), b = ge(e), { idField: x, isTraditionalTypeOID: D } = be(xe(a)), m = D && u.length === 1 && u[0] === x;
306
359
  let d;
307
- switch (S) {
308
- case m.BarAndLineNoAggregation:
309
- d = t.map((g) => {
310
- const b = C({
311
- field: a,
312
- row: g,
313
- fieldList: r,
314
- formatter: o?.xAxisLabelFormatter
315
- }), D = { [a]: b };
360
+ switch (p) {
361
+ case g.BarAndLineNoAggregation:
362
+ d = t.map((y) => {
363
+ const F = O({
364
+ field: s,
365
+ row: y,
366
+ layer: a,
367
+ fieldList: o,
368
+ formatter: i?.xAxisLabelFormatter,
369
+ useRendererLabel: r,
370
+ timeZone: n
371
+ }), S = { [s]: F };
316
372
  return Object.assign(
317
- D,
318
- ...l.map((h, A) => ({
319
- [h]: P({
320
- value: g[h],
321
- originalValue: g[h],
322
- formatter: Y({ config: e, seriesIndex: A, formatters: o })
373
+ S,
374
+ ...u.map((P) => ({
375
+ [P]: h({
376
+ value: y[P],
377
+ originalValue: y[P]
323
378
  })
324
379
  }))
325
- ), D;
380
+ ), S;
326
381
  });
327
382
  break;
328
- case m.BarAndLineFromFields:
329
- d = J(l, t).map(([g, b]) => {
330
- const D = N(e.series)[0], h = {};
331
- return b !== void 0 && g !== void 0 && (h.Field = P({
332
- value: b[a],
333
- originalValue: b[a],
334
- formatter: o?.xAxisLabelFormatter
335
- }), h.Value = P({
336
- value: b[D],
337
- originalValue: b[D],
338
- formatter: Y({ config: e, seriesIndex: 0, formatters: o })
339
- })), h;
383
+ case g.BarAndLineFromFields:
384
+ d = ae(u, t).map(([y, F]) => {
385
+ const S = E(e.series)[0], P = {};
386
+ return F !== void 0 && y !== void 0 && (P.Field = h({
387
+ value: F[s],
388
+ originalValue: F[s],
389
+ formatter: i?.xAxisLabelFormatter
390
+ }), P.Value = h({
391
+ value: F[S],
392
+ originalValue: F[S]
393
+ })), P;
340
394
  });
341
395
  break;
342
- case m.BarAndLineMonoField:
343
- case m.BarAndLineMultiFields:
344
- d = t.map((g) => {
345
- const b = C({
346
- field: a,
347
- row: g,
348
- fieldList: r,
349
- formatter: o?.xAxisLabelFormatter
350
- }), D = { [a]: b };
351
- return l.forEach((h, A) => {
352
- const $ = H({
396
+ case g.BarAndLineMonoField:
397
+ case g.BarAndLineMultiFields:
398
+ d = t.map((y) => {
399
+ const F = O({
400
+ field: s,
401
+ row: y,
402
+ layer: a,
403
+ fieldList: o,
404
+ formatter: i?.xAxisLabelFormatter,
405
+ useRendererLabel: r,
406
+ timeZone: n
407
+ }), S = { [s]: F };
408
+ return u.forEach((P, C) => {
409
+ const w = z({
353
410
  config: e,
354
- xAxisField: a,
355
- numericFields: l,
356
- aggregationType: u,
357
- layer: i,
358
- numericFieldIndex: A,
359
- fieldList: r
360
- }), R = N(e.series)[A];
361
- let q = R, K = R;
362
- R.toLowerCase() === $.name.toLowerCase() && (q = $.description, K = $.name), D[q] = P({
363
- value: g[K],
364
- originalValue: g[K],
365
- formatter: Y({ config: e, seriesIndex: A, formatters: o })
411
+ xAxisField: s,
412
+ numericFields: u,
413
+ aggregationType: c,
414
+ layer: a,
415
+ numericFieldIndex: C,
416
+ fieldList: o
417
+ }), N = E(e.series)[C];
418
+ let I = N, Z = N;
419
+ N.toLowerCase() === w.name.toLowerCase() && (I = w.description, Z = w.name), S[I] = h({
420
+ value: y[Z],
421
+ originalValue: y[Z]
366
422
  });
367
- }), D;
423
+ }), S;
368
424
  });
369
425
  break;
370
- case m.BarAndLineSplitBy:
371
- d = t.flatMap((g) => {
372
- const b = N(e.series), D = C({
373
- field: a,
374
- row: g,
375
- fieldList: r,
376
- formatter: o?.xAxisLabelFormatter
426
+ case g.BarAndLineSplitBy:
427
+ d = t.flatMap((y) => {
428
+ const F = E(e.series), S = O({
429
+ field: s,
430
+ row: y,
431
+ layer: a,
432
+ fieldList: o,
433
+ formatter: i?.xAxisLabelFormatter,
434
+ useRendererLabel: r,
435
+ timeZone: n
436
+ });
437
+ return B.map((P, C) => {
438
+ const w = ee({
439
+ config: e,
440
+ splitByField: b,
441
+ splitByValue: P,
442
+ splitByValueIndex: C,
443
+ layer: a,
444
+ fieldList: o,
445
+ timeZone: n
446
+ });
447
+ return {
448
+ [s]: S,
449
+ [b]: w,
450
+ [m ? f : `${f} of ${u[0]}`]: y[F[C]]
451
+ };
377
452
  });
378
- return p.map((h, A) => ({
379
- [a]: D,
380
- [x]: h,
381
- [f ? c : `${c} of ${l[0]}`]: P({
382
- value: g[b[A]],
383
- originalValue: g[b[A]],
384
- formatter: Ce({ config: e, splitValueIndex: A, formatters: o })
385
- })
386
- }));
387
453
  });
388
454
  break;
389
- case m.BarAndLineSplitByNoAggregation:
390
- d = t.map((g) => {
391
- const b = C({
392
- field: a,
393
- row: g,
394
- fieldList: r,
395
- formatter: o?.xAxisLabelFormatter
396
- }), D = Oe(g, l[0], p);
455
+ case g.BarAndLineSplitByNoAggregation:
456
+ d = t.map((y) => {
457
+ const F = O({
458
+ field: s,
459
+ row: y,
460
+ layer: a,
461
+ fieldList: o,
462
+ formatter: i?.xAxisLabelFormatter,
463
+ useRendererLabel: r,
464
+ timeZone: n
465
+ }), S = Ie(y, u[0], B), P = y[b], C = B.findIndex((I) => $e(I, P)), w = ee({
466
+ config: e,
467
+ splitByField: b,
468
+ splitByValue: P,
469
+ splitByValueIndex: C >= 0 ? C : void 0,
470
+ layer: a,
471
+ fieldList: o,
472
+ timeZone: n
473
+ });
397
474
  return {
398
- [a]: b,
399
- [x]: g[x],
400
- [l[0]]: P({
401
- value: g[D[0]],
402
- originalValue: g[D[0]],
403
- formatter: o?.yAxisLabelFormatter
404
- })
475
+ [s]: F,
476
+ [b]: w,
477
+ [u[0]]: y[S[0]]
405
478
  };
406
479
  });
407
480
  break;
@@ -410,289 +483,356 @@ function Me(n) {
410
483
  }
411
484
  return d;
412
485
  }
413
- function ke(n) {
414
- if (n.length === 0)
486
+ function je(l) {
487
+ if (l.length === 0)
415
488
  return [];
416
- const e = n.reduce((t, i) => {
417
- for (const [r, o] of Object.entries(i))
418
- typeof o == "number" && Number.isFinite(o) && (t[r] = (t[r] ?? 0) + o);
489
+ const e = l.reduce((t, a) => {
490
+ for (const [o, i] of Object.entries(a))
491
+ typeof i == "number" && Number.isFinite(i) && (t[o] = (t[o] ?? 0) + i);
419
492
  return t;
420
493
  }, {});
421
- return n.map((t) => {
422
- const i = { ...t };
423
- for (const [r, o] of Object.entries(t))
424
- if (typeof o == "number" && e[r] > 0) {
425
- const a = o / e[r];
426
- i[`${r}${O}`] = a.toPrecision(2);
494
+ return l.map((t) => {
495
+ const a = { ...t };
496
+ for (const [o, i] of Object.entries(t))
497
+ if (typeof i == "number" && e[o] > 0) {
498
+ const r = i / e[o];
499
+ a[`${o}${$}`] = r.toPrecision(2);
427
500
  }
428
- return i;
501
+ return a;
429
502
  });
430
503
  }
431
- function $e(n) {
432
- const { config: e, rows: t, layer: i, fieldList: r, formatters: o } = n, a = se(e), u = I(e.series);
433
- let c = ke(t);
434
- const l = ue(e), S = u !== m.PieFromFields ? Q.Category : Q.Fields, p = ce(e, S), x = H({
504
+ function Ee(l) {
505
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = me(e), c = U(e.series);
506
+ let f = je(t);
507
+ const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, B = ye(e, p), b = z({
435
508
  config: e,
436
- xAxisField: a,
437
- numericFields: l,
438
- aggregationType: p,
439
- mode: S,
440
- layer: i,
441
- fieldList: r
442
- }), y = N(e.series)[0];
443
- return u === m.PieFromCategory || u === m.PieNoAggregation ? c = c.map((s) => {
444
- const f = C({
445
- field: a,
446
- row: s,
447
- fieldList: r,
448
- formatter: o?.xAxisLabelFormatter
449
- }), d = { [a]: f };
450
- let g = y, b = y;
451
- return u === m.PieFromCategory && y.toLowerCase() === x.name.toLowerCase() && (g = x.description, b = x.name), d[g] = P({
452
- value: s[b],
453
- originalValue: s[b],
454
- formatter: o?.yAxisLabelFormatter
455
- }), d[F(O.trim())] = P({
456
- value: s[`${b}${O}`],
457
- originalValue: s[`${b}${O}`],
458
- formatter: o?.yAxisLabelFormatter
509
+ xAxisField: s,
510
+ numericFields: u,
511
+ aggregationType: B,
512
+ mode: p,
513
+ layer: a,
514
+ fieldList: o
515
+ }), x = E(e.series)[0];
516
+ return c === g.PieFromCategory || c === g.PieNoAggregation ? f = f.map((D) => {
517
+ const m = O({
518
+ field: s,
519
+ row: D,
520
+ layer: a,
521
+ fieldList: o,
522
+ formatter: i?.xAxisLabelFormatter,
523
+ useRendererLabel: r,
524
+ timeZone: n
525
+ }), d = { [s]: m };
526
+ let y = x, F = x;
527
+ return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = h({
528
+ value: D[F],
529
+ originalValue: D[F]
530
+ }), d[v($.trim())] = h({
531
+ value: D[`${F}${$}`],
532
+ originalValue: D[`${F}${$}`]
459
533
  }), d;
460
- }) : u === m.PieFromFields && (c = J(l, c).map(([s, f]) => {
534
+ }) : c === g.PieFromFields && (f = ae(u, f).map(([D, m]) => {
461
535
  const d = {};
462
- return f !== void 0 && s !== void 0 && (d.Field = P({
463
- value: f[a],
464
- originalValue: f[a],
465
- formatter: o?.xAxisLabelFormatter
466
- }), d.Value = P({
467
- value: f[y],
468
- originalValue: f[y],
469
- formatter: o?.yAxisLabelFormatter
470
- }), d[F(O.trim())] = P({
471
- value: f[`${y}${O}`],
472
- originalValue: f[`${y}${O}`],
473
- formatter: o?.yAxisLabelFormatter
536
+ return m !== void 0 && D !== void 0 && (d.Field = h({
537
+ value: m[s],
538
+ originalValue: m[s],
539
+ formatter: i?.xAxisLabelFormatter
540
+ }), d.Value = h({
541
+ value: m[x],
542
+ originalValue: m[x]
543
+ }), d[v($.trim())] = h({
544
+ value: m[`${x}${$}`],
545
+ originalValue: m[`${x}${$}`]
474
546
  })), d;
475
- })), c;
547
+ })), f;
476
548
  }
477
- function T(n) {
478
- const { rawData: e, keyBase: t = "", outRow: i } = n;
479
- for (const [r, o] of Object.entries(v)) {
480
- const a = e[t + o];
481
- a !== void 0 && (i[r] = a);
482
- const u = e[t + o + xe];
483
- u !== void 0 && (i[`${r} Outlier`] = u);
484
- const c = e[t + o + z];
485
- c !== void 0 && (i[`${r} Z-Score`] = c);
549
+ function j(l) {
550
+ const { rawData: e, keyBase: t = "", outRow: a } = l;
551
+ for (const [o, i] of Object.entries(V)) {
552
+ const r = e[t + i];
553
+ r !== void 0 && (a[o] = r);
554
+ const n = e[t + i + he];
555
+ n !== void 0 && (a[`${o} Outlier`] = n);
556
+ const s = e[t + i + Q];
557
+ s !== void 0 && (a[`${o} Z-Score`] = s);
486
558
  }
487
559
  }
488
- function M(n) {
489
- const { rawData: e, outRow: t, config: i, boxPlotSubType: r, fieldList: o } = n, a = W(i), u = ee(i), c = _(i);
490
- let l = v.Outlier;
491
- const S = k;
492
- switch (r) {
493
- case m.BoxPlotMonoFieldAndCategory: {
494
- const y = ie({
495
- field: a,
496
- value: e[a],
497
- fieldList: o
560
+ function T(l) {
561
+ const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r, timeZone: n } = l, s = q(a), c = oe(a), f = _(a);
562
+ let u = V.Outlier;
563
+ const p = R;
564
+ switch (o) {
565
+ case g.BoxPlotMonoFieldAndCategory: {
566
+ const x = se({
567
+ field: s,
568
+ value: e[s],
569
+ fieldList: r,
570
+ timeZone: n
498
571
  });
499
- t[a] = y, t[F(v.Outlier)] = e[l];
572
+ t[s] = x, t[v(V.Outlier)] = e[u];
500
573
  break;
501
574
  }
502
- case m.BoxPlotMultiFieldsAndCategory: {
503
- t[F(a)] = e[a], l = `${u.find(
504
- (s) => Object.keys(e).some((f) => f.toLowerCase().includes(s.toLowerCase()))
505
- ) ?? ""}_${l}`, t[F(v.Outlier)] = e[l];
575
+ case g.BoxPlotMultiFieldsAndCategory: {
576
+ t[v(s)] = e[s], u = `${c.find(
577
+ (D) => Object.keys(e).some((m) => m.toLowerCase().includes(D.toLowerCase()))
578
+ ) ?? ""}_${u}`, t[v(V.Outlier)] = e[u];
506
579
  break;
507
580
  }
508
- case m.BoxPlotMonoFieldAndSplitBy:
509
- case m.BoxPlotMultiFieldsAndSplitBy: {
510
- const y = String(e[c]);
511
- l = `${y}_${l}`, t.Field = e[S], t[F(c)] = y, t[F(v.Outlier)] = e[l];
581
+ case g.BoxPlotMonoFieldAndSplitBy:
582
+ case g.BoxPlotMultiFieldsAndSplitBy: {
583
+ const x = String(e[f]), D = M({
584
+ field: f,
585
+ value: x,
586
+ layer: i,
587
+ fieldList: r,
588
+ timeZone: n
589
+ });
590
+ u = `${x}_${u}`, t.Field = e[p], t[v(f)] = D, t[v(V.Outlier)] = e[u];
512
591
  break;
513
592
  }
514
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
515
- const y = String(e[c]);
516
- l = `${y}_${l}`, t[F(a)] = e[a], t[F(c)] = y, t[F(v.Outlier)] = e[l];
593
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
594
+ const x = String(e[f]), D = M({
595
+ field: f,
596
+ value: x,
597
+ layer: i,
598
+ fieldList: r,
599
+ timeZone: n
600
+ });
601
+ u = `${x}_${u}`, t[v(s)] = e[s], t[v(f)] = D, t[v(V.Outlier)] = e[u];
517
602
  break;
518
603
  }
519
- case m.BoxPlotMonoField:
520
- case m.BoxPlotMultiFields:
604
+ case g.BoxPlotMonoField:
605
+ case g.BoxPlotMultiFields:
521
606
  default: {
522
- t.Field = e[S], t[F(v.Outlier)] = e[l];
607
+ t.Field = e[p], t[v(V.Outlier)] = e[u];
523
608
  break;
524
609
  }
525
610
  }
526
- const p = `${l}${z}`, x = e[p];
527
- x !== void 0 && (t[`${F(v.Outlier)} Z-Score`] = x);
611
+ const B = `${u}${Q}`, b = e[B];
612
+ b !== void 0 && (t[`${v(V.Outlier)} Z-Score`] = b);
528
613
  }
529
- function we(n) {
530
- const { rawData: e, outRow: t, config: i, splitByValue: r } = n, o = I(i.series), a = e[`${r}_${v.Average}`], u = _(i), c = W(i);
531
- let l = "";
532
- switch (o) {
533
- case m.BoxPlotMonoFieldAndSplitBy: {
534
- l = `${r}_${u}`, t.Field = e[k], t[F(u)] = e[l];
614
+ function Ue(l) {
615
+ const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${V.Average}`], f = _(a), u = q(a);
616
+ let p = "";
617
+ switch (s) {
618
+ case g.BoxPlotMonoFieldAndSplitBy: {
619
+ p = `${o}_${f}`, t.Field = e[R], t[v(f)] = M({
620
+ field: f,
621
+ value: e[p],
622
+ layer: i,
623
+ fieldList: r,
624
+ timeZone: n
625
+ });
535
626
  break;
536
627
  }
537
- case m.BoxPlotMultiFieldsAndSplitBy: {
538
- l = `${r}_${v.Average}`, t.Field = e[k], t[F(u)] = e[l];
628
+ case g.BoxPlotMultiFieldsAndSplitBy: {
629
+ p = `${o}_${V.Average}`, t.Field = e[R], t[v(f)] = M({
630
+ field: f,
631
+ value: e[p],
632
+ layer: i,
633
+ fieldList: r,
634
+ timeZone: n
635
+ });
539
636
  break;
540
637
  }
541
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
542
- l = `${r}_${v.Average}`, t[c] = e[c], t[F(u)] = r;
638
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
639
+ p = `${o}_${V.Average}`, t[u] = e[u], t[v(f)] = M({
640
+ field: f,
641
+ value: o,
642
+ layer: i,
643
+ fieldList: r,
644
+ timeZone: n
645
+ });
543
646
  break;
544
647
  }
545
648
  }
546
- t[F(v.Average)] = a;
547
- const S = `${String(a)}${z}`, p = e[S];
548
- p !== void 0 && (t[`${F(v.Average)} Z-Score`] = p);
649
+ t[v(V.Average)] = c;
650
+ const B = `${String(c)}${Q}`, b = e[B];
651
+ b !== void 0 && (t[`${v(V.Average)} Z-Score`] = b);
549
652
  }
550
- function Te(n) {
551
- const { config: e, rows: t, fieldList: i, formatters: r } = n, o = I(e.series);
552
- let a = o;
553
- const u = ne(e), c = Array.isArray(t) && t.length > 0 && t.every((s) => s[L.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
554
- u && !c && (o === m.BoxPlotMonoFieldAndSplitBy ? a = m.BoxPlotMonoField : o === m.BoxPlotMultiFieldsAndSplitBy ? a = m.BoxPlotMultiFields : o === m.BoxPlotMonoFieldAndCategoryAndSplitBy && (a = m.BoxPlotMonoFieldAndCategory));
555
- const l = W(e), S = ee(e), p = te(e), x = _(e);
556
- let y;
557
- switch (a) {
558
- case m.BoxPlotMonoField:
559
- case m.BoxPlotMonoFieldAndCategory: {
560
- y = t.map((s) => {
561
- const f = {};
562
- if (s[L.boxPlot.boxPlotOutlierId])
563
- M({ rawData: s, outRow: f, config: e, boxPlotSubType: a });
653
+ function Ze(l) {
654
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = U(e.series);
655
+ let c = s;
656
+ const f = ce(e), u = Array.isArray(t) && t.length > 0 && t.every((m) => m[A.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
657
+ f && !u && (s === g.BoxPlotMonoFieldAndSplitBy ? c = g.BoxPlotMonoField : s === g.BoxPlotMultiFieldsAndSplitBy ? c = g.BoxPlotMultiFields : s === g.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = g.BoxPlotMonoFieldAndCategory));
658
+ const p = q(e), B = oe(e), b = ie(e), x = _(e);
659
+ let D;
660
+ switch (c) {
661
+ case g.BoxPlotMonoField:
662
+ case g.BoxPlotMonoFieldAndCategory: {
663
+ D = t.map((m) => {
664
+ const d = {};
665
+ if (m[A.boxPlot.boxPlotOutlierId])
666
+ T({
667
+ rawData: m,
668
+ outRow: d,
669
+ config: e,
670
+ boxPlotSubType: c,
671
+ layer: a,
672
+ fieldList: o,
673
+ timeZone: n
674
+ });
564
675
  else {
565
- if (a === m.BoxPlotMonoFieldAndCategory) {
566
- const d = C({
567
- field: l,
568
- row: s,
569
- fieldList: i,
570
- formatter: r?.xAxisLabelFormatter
676
+ if (c === g.BoxPlotMonoFieldAndCategory) {
677
+ const y = O({
678
+ field: p,
679
+ row: m,
680
+ layer: a,
681
+ fieldList: o,
682
+ formatter: i?.xAxisLabelFormatter,
683
+ useRendererLabel: r,
684
+ timeZone: n
571
685
  });
572
- f[l] = d;
573
- } else a === m.BoxPlotMonoField && (f.Field = s[k]);
574
- T({ rawData: s, outRow: f });
686
+ d[p] = y;
687
+ } else c === g.BoxPlotMonoField && (d.Field = m[R]);
688
+ j({ rawData: m, outRow: d });
575
689
  }
576
- return f;
690
+ return d;
577
691
  });
578
692
  break;
579
693
  }
580
- case m.BoxPlotMultiFields: {
581
- y = t.flatMap((s) => {
582
- const f = {};
583
- return s[L.boxPlot.boxPlotOutlierId] ? M({
584
- rawData: s,
585
- outRow: f,
694
+ case g.BoxPlotMultiFields: {
695
+ D = t.flatMap((m) => {
696
+ const d = {};
697
+ return m[A.boxPlot.boxPlotOutlierId] ? T({
698
+ rawData: m,
699
+ outRow: d,
586
700
  config: e,
587
- boxPlotSubType: a
588
- }) : (f.Field = s[k], T({ rawData: s, outRow: f })), [f];
701
+ boxPlotSubType: c,
702
+ layer: a,
703
+ fieldList: o,
704
+ timeZone: n
705
+ }) : (d.Field = m[R], j({ rawData: m, outRow: d })), [d];
589
706
  });
590
707
  break;
591
708
  }
592
- case m.BoxPlotMultiFieldsAndCategory: {
593
- y = t.flatMap(
594
- (s) => S.map((f) => {
595
- const d = {};
596
- let g = "";
597
- if (d.Field = f, s[L.boxPlot.boxPlotOutlierId])
598
- M({
599
- rawData: s,
600
- outRow: d,
709
+ case g.BoxPlotMultiFieldsAndCategory: {
710
+ D = t.flatMap(
711
+ (m) => B.map((d) => {
712
+ const y = {};
713
+ let F = "";
714
+ if (y.Field = d, m[A.boxPlot.boxPlotOutlierId])
715
+ T({
716
+ rawData: m,
717
+ outRow: y,
601
718
  config: e,
602
- boxPlotSubType: a
719
+ boxPlotSubType: c,
720
+ layer: a,
721
+ fieldList: o,
722
+ timeZone: n
603
723
  });
604
724
  else {
605
- if (a === m.BoxPlotMultiFieldsAndCategory) {
606
- const b = C({
607
- field: l,
608
- row: s,
609
- fieldList: i,
610
- formatter: r?.xAxisLabelFormatter
725
+ if (c === g.BoxPlotMultiFieldsAndCategory) {
726
+ const S = O({
727
+ field: p,
728
+ row: m,
729
+ layer: a,
730
+ fieldList: o,
731
+ formatter: i?.xAxisLabelFormatter,
732
+ useRendererLabel: r,
733
+ timeZone: n
611
734
  });
612
- d[l] = b, g = `${f}_`;
735
+ y[p] = S, F = `${d}_`;
613
736
  }
614
- T({ rawData: s, outRow: d, keyBase: g });
737
+ j({ rawData: m, outRow: y, keyBase: F });
615
738
  }
616
- return d;
739
+ return y;
617
740
  })
618
741
  );
619
742
  break;
620
743
  }
621
- case m.BoxPlotMonoFieldAndSplitBy:
622
- case m.BoxPlotMultiFieldsAndSplitBy:
623
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
624
- y = t.flatMap((s) => {
625
- if (s[L.boxPlot.boxPlotOutlierId]) {
626
- const f = {};
627
- return M({
628
- rawData: s,
629
- outRow: f,
630
- config: e,
631
- boxPlotSubType: a
632
- }), [f];
633
- } else return s[L.boxPlot.boxPlotMeanLineMarkerId] ? p?.map((f) => {
744
+ case g.BoxPlotMonoFieldAndSplitBy:
745
+ case g.BoxPlotMultiFieldsAndSplitBy:
746
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
747
+ D = t.flatMap((m) => {
748
+ if (m[A.boxPlot.boxPlotOutlierId]) {
634
749
  const d = {};
635
- return we({
636
- rawData: s,
750
+ return T({
751
+ rawData: m,
637
752
  outRow: d,
638
- splitByValue: f,
639
- config: e
640
- }), d;
641
- }) : p.map((f) => {
642
- const d = {};
643
- if (a === m.BoxPlotMonoFieldAndCategoryAndSplitBy) {
644
- const g = C({
645
- field: l,
646
- row: s,
647
- fieldList: i,
648
- formatter: r?.xAxisLabelFormatter
753
+ config: e,
754
+ boxPlotSubType: c,
755
+ layer: a,
756
+ fieldList: o,
757
+ timeZone: n
758
+ }), [d];
759
+ } else return m[A.boxPlot.boxPlotMeanLineMarkerId] ? b?.map((d) => {
760
+ const y = {};
761
+ return Ue({
762
+ rawData: m,
763
+ outRow: y,
764
+ splitByValue: d,
765
+ config: e,
766
+ layer: a,
767
+ fieldList: o,
768
+ timeZone: n
769
+ }), y;
770
+ }) : b.map((d) => {
771
+ const y = {}, F = M({
772
+ field: x,
773
+ value: d,
774
+ layer: a,
775
+ fieldList: o
776
+ });
777
+ if (c === g.BoxPlotMonoFieldAndCategoryAndSplitBy) {
778
+ const S = O({
779
+ field: p,
780
+ row: m,
781
+ layer: a,
782
+ fieldList: o,
783
+ formatter: i?.xAxisLabelFormatter,
784
+ useRendererLabel: r,
785
+ timeZone: n
649
786
  });
650
- d[l] = g;
787
+ y[p] = S;
651
788
  }
652
- return s[L.boxPlot.boxPlotOutlierId] ? M({
653
- rawData: s,
654
- outRow: d,
789
+ return m[A.boxPlot.boxPlotOutlierId] ? T({
790
+ rawData: m,
791
+ outRow: y,
655
792
  config: e,
656
- boxPlotSubType: a
657
- }) : (d[x] = f, T({ rawData: s, outRow: d, keyBase: `${f}_` })), d;
793
+ boxPlotSubType: c,
794
+ layer: a,
795
+ fieldList: o,
796
+ timeZone: n
797
+ }) : (y[x] = F, j({ rawData: m, outRow: y, keyBase: `${d}_` })), y;
658
798
  });
659
799
  });
660
800
  break;
661
801
  }
662
802
  default:
663
- y = t;
803
+ D = t;
664
804
  }
665
- return y;
805
+ return D;
666
806
  }
667
- const G = (n) => {
807
+ const te = (l) => {
668
808
  let e = !1;
669
- return (typeof n == "string" || typeof n == "number") && (e = !Number.isNaN(new Date(n).getTime())), e;
670
- }, ie = (n) => {
671
- const { field: e, value: t, fieldList: i } = n;
672
- let r = t;
673
- const o = i?.find((a) => a.name === e);
674
- if (o) {
675
- const a = o.type === Se.DateOnly;
676
- ge(o) && !a ? r = G(t) ? new Date(t).toISOString() : t : a && typeof t != "string" && (r = G(t) ? new Date(t).toISOString().split("T")[0] : t);
809
+ return (typeof l == "string" || typeof l == "number") && (e = !Number.isNaN(new Date(l).getTime())), e;
810
+ }, We = (l, e) => ne.fromJSDate(l, { zone: e ?? "local" }).toFormat("yyyy-LL-dd"), Ye = (l, e) => ne.fromJSDate(l, { zone: e ?? "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), se = (l) => {
811
+ const { field: e, value: t, fieldList: a, timeZone: o } = l;
812
+ let i = t;
813
+ const r = a?.find((n) => n.name === e);
814
+ if (r) {
815
+ const n = r.type === Ce.DateOnly;
816
+ Se(r) && !n ? i = te(t) ? Ye(new Date(t), o) : t : n && typeof t != "string" && (i = te(t) ? We(new Date(t), o) : t);
677
817
  }
678
- return r;
818
+ return i;
679
819
  };
680
- function tt(n) {
681
- const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: i, syncViewTimeExtent: r } = n;
682
- let o = e;
683
- return t && (i === Fe.Refresh || r) && t.timeExtent?.start != null && t.timeExtent?.end != null && (o = {
820
+ function mt(l) {
821
+ const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: a, syncViewTimeExtent: o } = l;
822
+ let i = e;
823
+ return t && (a === Ve.Refresh || o) && t.timeExtent?.start != null && t.timeExtent?.end != null && (i = {
684
824
  ...e,
685
825
  timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
686
- }), o;
826
+ }), i;
687
827
  }
688
828
  export {
689
- De as a,
690
- Pe as b,
691
- he as c,
692
- tt as d,
693
- Je as e,
694
- ve as f,
695
- Z as g,
696
- Ge as h,
697
- et as t
829
+ Le as a,
830
+ Oe as b,
831
+ Ae as c,
832
+ mt as d,
833
+ ct as e,
834
+ Me as f,
835
+ G as g,
836
+ ut as h,
837
+ ft as t
698
838
  };