@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.11

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 (294) hide show
  1. package/dist/cdn/{6PAONFHB.js → 24AOJE7B.js} +1 -1
  2. package/dist/cdn/{VOTZAPI3.js → 3KRPCKJZ.js} +1 -1
  3. package/dist/cdn/{Z7EBST4A.js → 3TBK72EK.js} +1 -1
  4. package/dist/cdn/{P3RM2ACY.js → 425PZ2QJ.js} +1 -1
  5. package/dist/cdn/{KC6CFXB7.js → 4PHYDOBF.js} +1 -1
  6. package/dist/cdn/{5MVNVHYG.js → 567CLBG4.js} +1 -1
  7. package/dist/cdn/{RKN64EJQ.js → 5IIF22XN.js} +1 -1
  8. package/dist/cdn/{5HQ2CJEQ.js → 5IN5WK2R.js} +1 -1
  9. package/dist/cdn/5LXX2PUM.js +2 -0
  10. package/dist/cdn/5NTIKQP4.js +2 -0
  11. package/dist/cdn/{UNUPCA4W.js → 5YEADAVZ.js} +1 -1
  12. package/dist/cdn/{7IV6GMF7.js → 6R7VSDDU.js} +1 -1
  13. package/dist/cdn/{FCXI523J.js → 76MOP26H.js} +1 -1
  14. package/dist/cdn/77A4T4FJ.js +2 -0
  15. package/dist/cdn/{CUJHGXNK.js → 7JIHGRTB.js} +1 -1
  16. package/dist/cdn/{CHQDKVVQ.js → 7YXTWBT4.js} +1 -1
  17. package/dist/cdn/{TZ4GOE2Q.js → AHYYQWKY.js} +1 -1
  18. package/dist/cdn/{FAQDMSUC.js → ASI7RDYV.js} +1 -1
  19. package/dist/cdn/{X6WA2KXK.js → AXS3UMQJ.js} +1 -1
  20. package/dist/cdn/BHUFE4DA.js +2 -0
  21. package/dist/cdn/{DYC3Q36R.js → CEWH3LQO.js} +1 -1
  22. package/dist/cdn/{B7DM7VT6.js → CTBQ5Y4Z.js} +1 -1
  23. package/dist/cdn/CVK7KFEC.js +2 -0
  24. package/dist/cdn/{BZCVDNC4.js → DFKVPDMJ.js} +16 -16
  25. package/dist/cdn/DJGEQ42V.js +2 -0
  26. package/dist/cdn/DL43NPDO.js +2 -0
  27. package/dist/cdn/{4OZZXXZF.js → E2DO2HQ6.js} +1 -1
  28. package/dist/cdn/E4LJWBRC.js +2 -0
  29. package/dist/cdn/EDSF5KGV.js +233 -0
  30. package/dist/cdn/EE3KEIAT.js +2 -0
  31. package/dist/cdn/EJCGZPIV.js +2 -0
  32. package/dist/cdn/{XMQCH4QI.js → ETSB7KD3.js} +1 -1
  33. package/dist/cdn/{P6SC5DD2.js → F6QRLYSF.js} +1 -1
  34. package/dist/cdn/{PTFRQF65.js → FBMA7FW4.js} +1 -1
  35. package/dist/cdn/{EUOPRFMU.js → FEKSPYHM.js} +1 -1
  36. package/dist/cdn/FUAA6IFR.js +4 -0
  37. package/dist/cdn/FWRMJQXY.js +2 -0
  38. package/dist/cdn/{7SNOZDAD.js → G5FULTB5.js} +1 -1
  39. package/dist/cdn/{45JPWIBI.js → GISGGO3Z.js} +1 -1
  40. package/dist/cdn/{CPPT5HUK.js → GQPOEX7B.js} +26 -26
  41. package/dist/cdn/{PKMZ6N6M.js → GYXK3DV7.js} +1 -1
  42. package/dist/cdn/{AT2NWWBG.js → H45LPCQ2.js} +1 -1
  43. package/dist/cdn/HW6MJJSX.js +2 -0
  44. package/dist/cdn/{RG3I5ORH.js → HZFHTWL6.js} +1 -1
  45. package/dist/cdn/{GWQJXXP3.js → I2EERAZ3.js} +1 -1
  46. package/dist/cdn/{MRTKZZTF.js → I5T7JUDH.js} +1 -1
  47. package/dist/cdn/IE3GLZJZ.js +2 -0
  48. package/dist/cdn/{V7MBHG4F.js → IL2FG26D.js} +1 -1
  49. package/dist/cdn/{YVVQVAJZ.js → JBPYGZPJ.js} +1 -1
  50. package/dist/cdn/JEOBO5JM.js +2 -0
  51. package/dist/cdn/{FJPGZEGK.js → KPWHYSA5.js} +1 -1
  52. package/dist/cdn/{JILAM6NH.js → KXUQJ6GE.js} +1 -1
  53. package/dist/cdn/{V76PIVCF.js → KZQFX7LH.js} +1 -1
  54. package/dist/cdn/{G6OHBBUT.js → L5DROI2A.js} +1 -1
  55. package/dist/cdn/LL7NH3VV.js +2 -0
  56. package/dist/cdn/{I2M6YAUU.js → LUMOL7ZP.js} +1 -1
  57. package/dist/cdn/{H6NH46AS.js → LYJFZA2M.js} +1 -1
  58. package/dist/cdn/{3FTJIVFE.js → MBSMC77K.js} +1 -1
  59. package/dist/cdn/{A5GIBV5W.js → MVGAATR7.js} +1 -1
  60. package/dist/cdn/NNZCIR7W.js +2 -0
  61. package/dist/cdn/NZXQ5BWP.js +2 -0
  62. package/dist/cdn/{UT4TYXFO.js → O4HUYRYL.js} +1 -1
  63. package/dist/cdn/{V2XJSJH4.js → O4LKWTBY.js} +1 -1
  64. package/dist/cdn/{KKWXEF5W.js → OW2DLJGU.js} +1 -1
  65. package/dist/cdn/{WASEMNYV.js → P2F2O6MH.js} +1 -1
  66. package/dist/cdn/P4UJJCPG.js +2 -0
  67. package/dist/cdn/{BBURKBKE.js → P56ROGSK.js} +1 -1
  68. package/dist/cdn/{RWEUTQWS.js → PMIWXHTG.js} +1 -1
  69. package/dist/cdn/PXIAM4CZ.js +2 -0
  70. package/dist/cdn/QPSJ6XOX.js +2 -0
  71. package/dist/cdn/R7HW5WVG.js +2 -0
  72. package/dist/cdn/{S6PJHEJ7.js → RJCJ3F5C.js} +1 -1
  73. package/dist/cdn/RKB6QZNW.js +2 -0
  74. package/dist/cdn/{EQVQRZHJ.js → S6LH7YS6.js} +1 -1
  75. package/dist/cdn/S74GCXXK.js +3 -0
  76. package/dist/cdn/{JNNB2DIA.js → SA22QZNW.js} +1 -1
  77. package/dist/cdn/{ZQCUJ7VE.js → SJVVFOAX.js} +1 -1
  78. package/dist/cdn/{M75ENKIU.js → SOKKWGPA.js} +1 -1
  79. package/dist/cdn/SQYOFBS6.js +2 -0
  80. package/dist/cdn/{MKQAQDRM.js → SVGAVKBQ.js} +1 -1
  81. package/dist/cdn/SX6SDBU7.js +2 -0
  82. package/dist/cdn/TTBRUBXY.js +2 -0
  83. package/dist/cdn/{7BEC5WZB.js → U5IM4KAQ.js} +1 -1
  84. package/dist/cdn/{UQPFMDJB.js → UE5VX2RL.js} +1 -1
  85. package/dist/cdn/{GCSGY6GL.js → UIRKQREJ.js} +1 -1
  86. package/dist/cdn/{URYNG6OA.js → UIY2PSG4.js} +1 -1
  87. package/dist/cdn/UNTIPIBS.js +2 -0
  88. package/dist/cdn/{DNMVB3A2.js → VIY3BCJZ.js} +1 -1
  89. package/dist/cdn/{XFZX5ULX.js → WHJU66P4.js} +1 -1
  90. package/dist/cdn/{F5Q73CFW.js → WJ2VDT6B.js} +1 -1
  91. package/dist/cdn/{LKY2A3U6.js → WPPMMVD5.js} +1 -1
  92. package/dist/cdn/WU3C7BQU.js +2 -0
  93. package/dist/cdn/WWO326JE.js +2 -0
  94. package/dist/cdn/{6JGLHOFY.js → XNWSVHA3.js} +1 -1
  95. package/dist/cdn/{O4M33ZPK.js → XOM6LSIW.js} +1 -1
  96. package/dist/cdn/{YZQ54BRI.js → XP4S2M7F.js} +1 -1
  97. package/dist/cdn/YALB4GSA.js +2 -0
  98. package/dist/cdn/YUF4ZSA5.js +2 -0
  99. package/dist/cdn/ZJHV3UVG.js +2 -0
  100. package/dist/cdn/{TORIY3OE.js → ZQ2WG55W.js} +1 -1
  101. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  102. package/dist/cdn/index.js +1 -1
  103. package/dist/cdn/model/shared/setup-utils.js +2 -0
  104. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  105. package/dist/chart-rendering/common/interfaces.d.ts +8 -8
  106. package/dist/chunks/axis-lines-symbol.js +4 -4
  107. package/dist/chunks/bar-chart-model.js +13 -13
  108. package/dist/chunks/bar-chart-series.js +1 -1
  109. package/dist/chunks/box-plot-data.js +5 -5
  110. package/dist/chunks/box-plot-model.js +18 -18
  111. package/dist/chunks/chart-model.js +170 -138
  112. package/dist/chunks/chart-ui-utils2.js +13 -13
  113. package/dist/chunks/class-breaks.js +21 -21
  114. package/dist/chunks/combo-bar-line-chart-model.js +2 -2
  115. package/dist/chunks/data.js +63 -63
  116. package/dist/chunks/gauge-model.js +14 -14
  117. package/dist/chunks/generate-x-axis-title.js +4 -4
  118. package/dist/chunks/heat-chart-model.js +19 -19
  119. package/dist/chunks/histogram-data.js +2 -2
  120. package/dist/chunks/histogram-model.js +11 -11
  121. package/dist/chunks/index2.js +1663 -1654
  122. package/dist/chunks/index3.js +39 -36
  123. package/dist/chunks/index4.js +10812 -680
  124. package/dist/chunks/index5.js +87 -10782
  125. package/dist/chunks/index6.js +63 -100
  126. package/dist/chunks/interfaces.js +3 -3
  127. package/dist/chunks/line-chart-model.js +2 -2
  128. package/dist/chunks/model-setter.js +11 -11
  129. package/dist/chunks/model-with-x-guides.js +6 -6
  130. package/dist/chunks/model-with-y-guides.js +2 -2
  131. package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
  132. package/dist/chunks/pie-chart-data.js +2 -2
  133. package/dist/chunks/pie-chart-model.js +2 -2
  134. package/dist/chunks/radar-chart-model.js +2 -2
  135. package/dist/chunks/rotated-state.js +1 -1
  136. package/dist/chunks/scatterplot-model.js +19 -19
  137. package/dist/chunks/serial-chart-data.js +564 -548
  138. package/dist/chunks/serial-chart-model.js +44 -44
  139. package/dist/chunks/series-length.js +2 -2
  140. package/dist/chunks/series.js +2 -2
  141. package/dist/chunks/store.js +5 -5
  142. package/dist/chunks/time-zone.js +1 -1
  143. package/dist/chunks/type-guards3.js +4 -4
  144. package/dist/chunks/utils.js +14 -14
  145. package/dist/chunks/web-component-utils.js +601 -491
  146. package/dist/chunks/x-bounds.js +4 -4
  147. package/dist/components/arcgis-chart/customElement.d.ts +48 -41
  148. package/dist/components/arcgis-chart/customElement.js +5081 -5123
  149. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
  150. package/dist/components/arcgis-charts-action-bar/customElement.js +19 -19
  151. package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
  152. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
  153. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +6 -6
  154. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  155. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +29 -29
  156. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
  157. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  158. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +4 -4
  159. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +35 -36
  160. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
  161. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  162. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  163. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  164. package/dist/components/arcgis-charts-config-create-flow/customElement.js +21 -21
  165. package/dist/components/arcgis-charts-config-format/customElement.js +28 -28
  166. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  167. package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
  168. package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
  169. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  170. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  171. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +5 -5
  172. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -16
  173. package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
  174. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +7 -7
  175. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -27
  176. package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
  177. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +3 -3
  178. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +29 -31
  179. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +7 -7
  180. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
  181. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  182. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +35 -35
  183. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +38 -40
  184. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +7 -7
  185. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
  186. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
  187. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
  188. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +13 -14
  189. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
  190. package/dist/docs/api.json +1 -1
  191. package/dist/docs/docs.json +1 -1
  192. package/dist/docs/vscode.html-custom-data.json +1 -1
  193. package/dist/docs/web-types.json +1 -1
  194. package/dist/index.d.ts +70 -62
  195. package/dist/index.js +476 -471
  196. package/dist/json-schema/index.d.ts +59 -2
  197. package/dist/model/chart-model/chart-model.d.ts +2 -1
  198. package/dist/model/interfaces/common.d.ts +0 -2
  199. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  200. package/dist/model/properties/rotated-state.d.ts +1 -1
  201. package/dist/{model.js → model/shared/setup-utils.js} +12 -12
  202. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  203. package/dist/spec/rest-js-types.d.ts +22 -8
  204. package/dist/spec/web-chart.d.ts +8 -2
  205. package/dist/utils/chart-config/converter/index.js +723 -0
  206. package/dist/utils/chart-config/utils/index.d.ts +31 -0
  207. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  208. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  209. package/dist/utils/defaults/index.d.ts +1 -2
  210. package/dist/utils/errors/index.d.ts +1 -1
  211. package/dist/utils/layer/index.d.ts +3 -3
  212. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  213. package/dist/utils/layer/query-parser/index.d.ts +3 -3
  214. package/dist/utils/localization/interfaces.d.ts +4 -0
  215. package/dist/utils/misc/index.d.ts +2 -3
  216. package/dist/utils/types/index.d.ts +1 -5
  217. package/package.json +8 -6
  218. package/dist/cdn/45PJ5TQL.js +0 -2
  219. package/dist/cdn/47HHRDX4.js +0 -2
  220. package/dist/cdn/6LQYOBAL.js +0 -2
  221. package/dist/cdn/6SRISPQN.js +0 -3
  222. package/dist/cdn/74JAZF7U.js +0 -2
  223. package/dist/cdn/7YBKGD3V.js +0 -2
  224. package/dist/cdn/ATIARKAU.js +0 -2
  225. package/dist/cdn/CAJVNPHZ.js +0 -2
  226. package/dist/cdn/CXQOEN77.js +0 -2
  227. package/dist/cdn/D23GGWFM.js +0 -2
  228. package/dist/cdn/EXTKNE2L.js +0 -2
  229. package/dist/cdn/FT2K3J7O.js +0 -2
  230. package/dist/cdn/GUH6CQE6.js +0 -2
  231. package/dist/cdn/HJHMEVMB.js +0 -2
  232. package/dist/cdn/HUCSTT64.js +0 -2
  233. package/dist/cdn/HX4236ZL.js +0 -2
  234. package/dist/cdn/IWVS6SKP.js +0 -2
  235. package/dist/cdn/KV4ZPVWQ.js +0 -2
  236. package/dist/cdn/MOMKSNIZ.js +0 -2
  237. package/dist/cdn/NS3THLCD.js +0 -2
  238. package/dist/cdn/NS7OCROO.js +0 -2
  239. package/dist/cdn/NZR4L5AA.js +0 -2
  240. package/dist/cdn/OVM5QF7Q.js +0 -2
  241. package/dist/cdn/OY6UOUYX.js +0 -2
  242. package/dist/cdn/P74SXC5B.js +0 -2
  243. package/dist/cdn/PEZCCXQ7.js +0 -2
  244. package/dist/cdn/PYKHO4QI.js +0 -2
  245. package/dist/cdn/RKKWMNWU.js +0 -2
  246. package/dist/cdn/S3BC57BJ.js +0 -4
  247. package/dist/cdn/TTDZKISK.js +0 -2
  248. package/dist/cdn/TXSWWAOF.js +0 -2
  249. package/dist/cdn/YKGZVYK2.js +0 -2
  250. package/dist/cdn/YYK7SPXC.js +0 -2
  251. package/dist/chunks/index7.js +0 -66
  252. /package/dist/cdn/{ABIVSH72.js → 2OHFSVV5.js} +0 -0
  253. /package/dist/cdn/{TSI3C3OV.js → 2XXW3WF3.js} +0 -0
  254. /package/dist/cdn/{XWKBJDZT.js → 3JYZJUOM.js} +0 -0
  255. /package/dist/cdn/{NHDVOYQ2.js → 3TZEMBXR.js} +0 -0
  256. /package/dist/cdn/{UAZ34KDJ.js → 4OH4NSIW.js} +0 -0
  257. /package/dist/cdn/{XIJ5VLER.js → 5SIAOUPO.js} +0 -0
  258. /package/dist/cdn/{75P3QRL4.js → 7QXRWMUN.js} +0 -0
  259. /package/dist/cdn/{4QQVKRJ5.js → AASL4RKT.js} +0 -0
  260. /package/dist/cdn/{PH6UOHRS.js → ANN3O54W.js} +0 -0
  261. /package/dist/cdn/{N6OT5IBC.js → BDGHBTPU.js} +0 -0
  262. /package/dist/cdn/{ZFM5RGWD.js → FFS73X36.js} +0 -0
  263. /package/dist/cdn/{5AOYADA3.js → FOYOG3G7.js} +0 -0
  264. /package/dist/cdn/{53FG76LL.js → FWAXKDYV.js} +0 -0
  265. /package/dist/cdn/{B4KT2HUE.js → H3EXGCE7.js} +0 -0
  266. /package/dist/cdn/{FLO3N6JD.js → I6UPUSLQ.js} +0 -0
  267. /package/dist/cdn/{WVRBLV5L.js → IVLVCLDE.js} +0 -0
  268. /package/dist/cdn/{NG2IHVZ4.js → IYA7HQMS.js} +0 -0
  269. /package/dist/cdn/{I5VHQW7B.js → L47EGLUH.js} +0 -0
  270. /package/dist/cdn/{OYHKUGS6.js → LROW4Y6O.js} +0 -0
  271. /package/dist/cdn/{DIKQ7BPQ.js → MK5ZYSOD.js} +0 -0
  272. /package/dist/cdn/{RDTBZUT7.js → N4L5KE23.js} +0 -0
  273. /package/dist/cdn/{4JQ2RRLY.js → N5ZUO6F3.js} +0 -0
  274. /package/dist/cdn/{2HGBRW4I.js → OFWEHJDH.js} +0 -0
  275. /package/dist/cdn/{M4AQLWZU.js → OXYJKZEP.js} +0 -0
  276. /package/dist/cdn/{O6SNP6QE.js → QR2OOC4D.js} +0 -0
  277. /package/dist/cdn/{4E7C5QPS.js → RSNZMJ6I.js} +0 -0
  278. /package/dist/cdn/{CODAXMWM.js → S3ZSZXYG.js} +0 -0
  279. /package/dist/cdn/{I36OAVW3.js → SERX6V5M.js} +0 -0
  280. /package/dist/cdn/{AJBEE7WE.js → SSQ3VCZ2.js} +0 -0
  281. /package/dist/cdn/{3V4HRXIT.js → TFPQDMER.js} +0 -0
  282. /package/dist/cdn/{2X75KJPF.js → ULWJ57VT.js} +0 -0
  283. /package/dist/cdn/{LNF44ZGQ.js → UYXCGSXU.js} +0 -0
  284. /package/dist/cdn/{OA7FHTCA.js → VDKFC44J.js} +0 -0
  285. /package/dist/cdn/{YIIPYKTL.js → VRZ2SY6M.js} +0 -0
  286. /package/dist/cdn/{VFM2EV3M.js → WAINRCCJ.js} +0 -0
  287. /package/dist/cdn/{MHG42BA5.js → WNKDEOFZ.js} +0 -0
  288. /package/dist/cdn/{DD4QUBOF.js → X2LW7GTR.js} +0 -0
  289. /package/dist/cdn/{N3VOUI25.js → XDMGH7YU.js} +0 -0
  290. /package/dist/cdn/{7ILH7ZG2.js → XY4TRZCG.js} +0 -0
  291. /package/dist/cdn/{66KSEDOR.js → XYKXBWIT.js} +0 -0
  292. /package/dist/cdn/{O2ERVMSN.js → Y6ZCTPJW.js} +0 -0
  293. /package/dist/cdn/{NFDXH5B3.js → YKDW7ZW3.js} +0 -0
  294. /package/dist/cdn/{SGOYJFLO.js → ZBIVDGNH.js} +0 -0
@@ -1,407 +1,468 @@
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 { b 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, a as oe, b 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 "./index7.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 se, capitalize as v, isNumber as W, zip as te } from "lodash-es";
3
+ import { d as Y } from "./interfaces.js";
4
+ import { g as ue, a as q, b as ae, c as _ } from "./box-plot-data.js";
5
+ import { g as ce } from "./histogram-data.js";
6
+ import { g as fe, a as de, b as me } from "./pie-chart-data.js";
7
+ import { g as oe } from "./series-length.js";
8
+ import { g as ie, d as re, e as ye } from "./serial-chart-data.js";
9
+ import { g as z, a as ge } from "./data.js";
10
+ import { Y as E, an as pe, af as be, aK as j, cj as xe, B as P, a6 as Fe, bb as De, d4 as Se } from "./index2.js";
11
+ import { j as H, av as k, g as T, ap as ve, b as Be, a as Q } from "./index.js";
12
+ import { q as I, C as y, F as L } from "./index3.js";
13
+ import { g as he } from "./series-types.js";
14
+ import { V as Pe } from "./index6.js";
15
+ import { DateTime as le } from "luxon";
16
+ import { P as X } from "./common.js";
17
+ import { u as w, d as C } from "./chart-object-literals.js";
18
+ import { R as Ve } from "./rest-js-object-literals.js";
19
+ function Ce(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 Le(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 Ae(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 Z(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 C.DayOfWeek:
55
+ r = {
56
+ label: i.heatChartCalendarDatePartsUnits.dayOfWeek,
57
+ value: Le({
57
58
  weekdayNumber: e,
58
- firstDayOfWeek: "firstDayOfWeek" in r ? r.firstDayOfWeek : be,
59
+ firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : ve,
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 C.MonthOfYear:
65
+ r = {
66
+ label: i.heatChartCalendarDatePartsUnits.monthOfYear,
67
+ value: Ae({
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 C.HourOfDay:
74
+ r = {
75
+ label: i.heatChartCalendarDatePartsUnits.hourOfDay,
76
+ value: Ce({
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 C.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 C.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 C.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 C.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 C.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 Oe(l, e) {
117
+ return !se(l, e);
117
118
  }
118
- function Ge(n, e) {
119
- return ve(n, e) || n !== e;
119
+ function st(l, e) {
120
+ return Oe(l, e) || l !== e;
120
121
  }
121
- function Ae(n) {
122
- return (new Intl.NumberFormat(n, {
122
+ function Me(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 we(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 G = (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 = we(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 ut(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 u = "";
152
+ if (!s) {
153
+ const c = t ?? Object.keys(l[0]), b = [], D = a ?? Me(r ?? "en");
154
+ if (r !== void 0 && D !== "," && (u += `sep=${D}\r
155
+ `), o) {
156
+ const x = c.map((g) => G({ value: g, quoteAll: i, locale: r, roundDecimals: n }));
157
+ b.push(x.join(D));
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((x) => {
160
+ const g = c.map((p) => G({ value: x[p], quoteAll: i, locale: r, roundDecimals: n }));
161
+ b.push(g.join(D));
162
+ }), u += b.join(`\r
162
163
  `);
163
164
  }
164
- return l;
165
+ return u;
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 ct(l) {
168
+ const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r, formatLocale: n, utilsStrings: s } = l;
169
+ let u = [];
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 c = he(t?.series);
172
+ c === w.HistogramSeries ? u = Te(
172
173
  t,
173
174
  e,
174
- o
175
- ) : l === V.HeatSeries ? c = Le({
175
+ i
176
+ ) : c === w.HeatSeries ? u = Ne({
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: n,
182
+ utilsStrings: s
183
+ }) : c === w.BarSeries || c === w.LineSeries || c === w.ComboLineAndBarSeries ? u = Ie({
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
+ }) : c === w.PieSeries ? u = je({
189
191
  config: t,
190
192
  rows: e,
191
- layer: i,
192
- fieldList: r,
193
- formatters: o
194
- }) : l === V.BoxPlotSeries && (c = Te({
193
+ layer: a,
194
+ fieldList: o,
195
+ formatters: i,
196
+ useRendererLabel: r
197
+ }) : c === w.BoxPlotSeries && (u = Ue({
195
198
  config: t,
196
199
  rows: e,
197
- fieldList: r,
198
- formatters: o
200
+ layer: a,
201
+ fieldList: o,
202
+ formatters: i,
203
+ useRendererLabel: r
199
204
  }));
200
205
  }
201
- return c;
206
+ return u;
207
+ }
208
+ function h(l) {
209
+ const { value: e, originalValue: t, formatter: a } = l;
210
+ let o = e;
211
+ return a !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (o = a(e, t)), o;
202
212
  }
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;
213
+ function O(l) {
214
+ const { field: e, value: t, dataContext: a, layer: o, fieldList: i, formatter: r } = l;
215
+ let n;
216
+ if (t == null || typeof t == "boolean" || Array.isArray(t))
217
+ n = t;
218
+ else if (typeof t == "string" || typeof t == "number" || t instanceof Date) {
219
+ const u = $e({
220
+ fieldName: e,
221
+ dataContext: a
222
+ }) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ? Fe({
223
+ queryObject: o,
224
+ fieldName: e,
225
+ fieldValue: t
226
+ }) : void 0);
227
+ n = ne({
228
+ field: e,
229
+ value: u ?? t,
230
+ fieldList: i
231
+ });
232
+ } else
233
+ n = t;
234
+ return h({
235
+ value: n,
236
+ originalValue: t,
237
+ formatter: r
238
+ });
207
239
  }
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({
240
+ function A(l) {
241
+ const { field: e, row: t, layer: a, fieldList: o, formatter: i, useRendererLabel: r = !1 } = l, n = Object.keys(t).find((c) => c.toLocaleLowerCase() === e.toLocaleLowerCase()), s = t[n ?? e], u = xe({
242
+ value: s,
243
+ dataContext: t,
244
+ useRendererLabel: r
245
+ });
246
+ return O({
212
247
  field: e,
213
- value: a,
214
- fieldList: i
215
- }) : u = a, P({
216
248
  value: u,
217
- originalValue: a,
218
- formatter: r
249
+ dataContext: t,
250
+ layer: a,
251
+ fieldList: o,
252
+ formatter: i
219
253
  });
220
254
  }
221
- function Y(n) {
222
- const { config: e, seriesIndex: t, formatters: i } = n;
223
- return e.series?.[t]?.assignToSecondValueAxis === !0 ? i?.secondaryYAxisLabelFormatter : i?.yAxisLabelFormatter;
255
+ function ke(l, e) {
256
+ let t = !1;
257
+ if (l === e)
258
+ t = !0;
259
+ else if (l != null && e != null) {
260
+ const a = String(l), o = String(e);
261
+ t = a === o || !Number.isNaN(Number(a)) && !Number.isNaN(Number(o)) && Number(a) === Number(o);
262
+ }
263
+ return t;
224
264
  }
225
- function Ce(n) {
226
- const { config: e, splitValueIndex: t, formatters: i } = n;
227
- return e?.series?.[t]?.assignToSecondValueAxis === !0 ? i?.secondaryYAxisLabelFormatter : i?.yAxisLabelFormatter;
265
+ function $e(l) {
266
+ const { fieldName: e, dataContext: t } = l, a = L.rendererSymbolField;
267
+ return e === a && t !== void 0 ? Se(t) : void 0;
228
268
  }
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,
269
+ function J(l) {
270
+ const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r } = l;
271
+ let n;
272
+ const s = e.series[o ?? -1]?.name;
273
+ return s !== void 0 ? n = s : n = O({
274
+ field: t,
275
+ value: a,
235
276
  layer: i,
236
277
  fieldList: r
278
+ }), n;
279
+ }
280
+ function Ne(l) {
281
+ const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, u = ie(e), c = re(e), b = z({
282
+ config: e,
283
+ xAxisField: s,
284
+ numericFields: c,
285
+ aggregationType: u,
286
+ layer: a,
287
+ fieldList: o
237
288
  });
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),
289
+ return t.map((D) => {
290
+ const x = D[H.xField], g = D[H.yField], p = D[H.valueField], f = typeof p == "number" && Number.isFinite(p) ? p.toFixed(2) : p;
291
+ let d = { label: n.x, value: x }, m = { label: n.y, value: g };
292
+ if (n.xTemporalBinning !== void 0) {
293
+ const { label: S, value: B } = Z({
294
+ value: Number(x),
244
295
  config: e,
245
- formatLocale: o,
246
- unit: u.xTemporalBinning.unit,
247
- utilsStrings: a
296
+ formatLocale: i,
297
+ unit: n.xTemporalBinning.unit,
298
+ utilsStrings: r
248
299
  });
249
- !w(D) && !w(h) && (g = { label: D, value: h });
300
+ !I(S) && !I(B) && (d = { label: S, value: B });
250
301
  }
251
- if (u.yTemporalBinning !== void 0) {
252
- const { label: D, value: h } = Z({
253
- value: Number(s),
302
+ if (n.yTemporalBinning !== void 0) {
303
+ const { label: S, value: B } = Z({
304
+ value: Number(g),
254
305
  config: e,
255
- formatLocale: o,
256
- unit: u.yTemporalBinning.unit,
257
- utilsStrings: a
306
+ formatLocale: i,
307
+ unit: n.yTemporalBinning.unit,
308
+ utilsStrings: r
258
309
  });
259
- !w(D) && !w(h) && (b = { label: D, value: h });
310
+ !I(S) && !I(B) && (m = { label: S, value: B });
260
311
  }
261
312
  return {
262
- [g.label]: g.value,
263
- [b.label]: b.value,
264
- [p.description]: d
313
+ [d.label]: d.value,
314
+ [m.label]: m.value,
315
+ [b.description]: f
265
316
  };
266
317
  });
267
318
  }
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({
273
- value: c,
274
- originalValue: c,
319
+ function Te(l, e, t) {
320
+ const a = ce(l), o = `${v(Y.Min)} of ${a}`, i = `${v(Y.Max)} of ${a}`, r = `${v(Y.Count)} of ${a}`;
321
+ return e.map((n) => {
322
+ const { minValue: s, maxValue: u, count: c } = n, b = W(s), D = W(u), x = W(c), g = {};
323
+ if (b && (g[o] = h({
324
+ value: s,
325
+ originalValue: s,
275
326
  formatter: t?.xAxisLabelFormatter
276
- })), x && (s[o] = P({
277
- value: l,
278
- originalValue: l,
327
+ })), D && (g[i] = h({
328
+ value: u,
329
+ originalValue: u,
279
330
  formatter: t?.xAxisLabelFormatter
280
- })), p && x) {
281
- const f = P({
282
- value: c,
283
- originalValue: c,
331
+ })), b && D) {
332
+ const p = h({
333
+ value: s,
334
+ originalValue: s,
284
335
  formatter: t?.xAxisLabelFormatter
285
- }), d = P({
286
- value: l,
287
- originalValue: l,
336
+ }), f = h({
337
+ value: u,
338
+ originalValue: u,
288
339
  formatter: t?.xAxisLabelFormatter
289
340
  });
290
- s.Label = `${String(f ?? "")} - ${String(d ?? "")}`;
341
+ g.Label = `${String(p ?? "")} - ${String(f ?? "")}`;
291
342
  }
292
- return y && (s[a] = P({
293
- value: S,
294
- originalValue: S,
295
- formatter: t?.yAxisLabelFormatter
296
- })), s;
343
+ return x && (g[r] = c), g;
297
344
  });
298
345
  }
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() !== "");
346
+ function Re(l, e, t) {
347
+ const a = Object.keys(l);
348
+ let o = [];
349
+ 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
350
  }
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;
351
+ function Ie(l) {
352
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = ge(e), s = ie(e), u = v(s), c = re(e), b = E(e.series), D = oe(e), x = ye(e), { idField: g, isTraditionalTypeOID: p } = pe(be(a)), f = p && c.length === 1 && c[0] === g;
306
353
  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 };
354
+ switch (b) {
355
+ case y.BarAndLineNoAggregation:
356
+ d = t.map((m) => {
357
+ const F = A({
358
+ field: n,
359
+ row: m,
360
+ layer: a,
361
+ fieldList: o,
362
+ formatter: i?.xAxisLabelFormatter,
363
+ useRendererLabel: r
364
+ }), S = { [n]: F };
316
365
  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 })
366
+ S,
367
+ ...c.map((B) => ({
368
+ [B]: h({
369
+ value: m[B],
370
+ originalValue: m[B]
323
371
  })
324
372
  }))
325
- ), D;
373
+ ), S;
326
374
  });
327
375
  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;
376
+ case y.BarAndLineFromFields:
377
+ d = te(c, t).map(([m, F]) => {
378
+ const S = j(e.series)[0], B = {};
379
+ return F !== void 0 && m !== void 0 && (B.Field = h({
380
+ value: F[n],
381
+ originalValue: F[n],
382
+ formatter: i?.xAxisLabelFormatter
383
+ }), B.Value = h({
384
+ value: F[S],
385
+ originalValue: F[S]
386
+ })), B;
340
387
  });
341
388
  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({
389
+ case y.BarAndLineMonoField:
390
+ case y.BarAndLineMultiFields:
391
+ d = t.map((m) => {
392
+ const F = A({
393
+ field: n,
394
+ row: m,
395
+ layer: a,
396
+ fieldList: o,
397
+ formatter: i?.xAxisLabelFormatter,
398
+ useRendererLabel: r
399
+ }), S = { [n]: F };
400
+ return c.forEach((B, V) => {
401
+ const M = z({
353
402
  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 })
403
+ xAxisField: n,
404
+ numericFields: c,
405
+ aggregationType: s,
406
+ layer: a,
407
+ numericFieldIndex: V,
408
+ fieldList: o
409
+ }), $ = j(e.series)[V];
410
+ let R = $, U = $;
411
+ $.toLowerCase() === M.name.toLowerCase() && (R = M.description, U = M.name), S[R] = h({
412
+ value: m[U],
413
+ originalValue: m[U]
366
414
  });
367
- }), D;
415
+ }), S;
368
416
  });
369
417
  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
418
+ case y.BarAndLineSplitBy:
419
+ d = t.flatMap((m) => {
420
+ const F = j(e.series), S = A({
421
+ field: n,
422
+ row: m,
423
+ layer: a,
424
+ fieldList: o,
425
+ formatter: i?.xAxisLabelFormatter,
426
+ useRendererLabel: r
427
+ });
428
+ return D.map((B, V) => {
429
+ const M = J({
430
+ config: e,
431
+ splitByField: x,
432
+ splitByValue: B,
433
+ splitByValueIndex: V,
434
+ layer: a,
435
+ fieldList: o
436
+ });
437
+ return {
438
+ [n]: S,
439
+ [x]: M,
440
+ [f ? u : `${u} of ${c[0]}`]: m[F[V]]
441
+ };
377
442
  });
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
443
  });
388
444
  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);
445
+ case y.BarAndLineSplitByNoAggregation:
446
+ d = t.map((m) => {
447
+ const F = A({
448
+ field: n,
449
+ row: m,
450
+ layer: a,
451
+ fieldList: o,
452
+ formatter: i?.xAxisLabelFormatter,
453
+ useRendererLabel: r
454
+ }), S = Re(m, c[0], D), B = m[x], V = D.findIndex((R) => ke(R, B)), M = J({
455
+ config: e,
456
+ splitByField: x,
457
+ splitByValue: B,
458
+ splitByValueIndex: V >= 0 ? V : void 0,
459
+ layer: a,
460
+ fieldList: o
461
+ });
397
462
  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
- })
463
+ [n]: F,
464
+ [x]: M,
465
+ [c[0]]: m[S[0]]
405
466
  };
406
467
  });
407
468
  break;
@@ -410,289 +471,338 @@ function Me(n) {
410
471
  }
411
472
  return d;
412
473
  }
413
- function ke(n) {
414
- if (n.length === 0)
474
+ function Ke(l) {
475
+ if (l.length === 0)
415
476
  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);
477
+ const e = l.reduce((t, a) => {
478
+ for (const [o, i] of Object.entries(a))
479
+ typeof i == "number" && Number.isFinite(i) && (t[o] = (t[o] ?? 0) + i);
419
480
  return t;
420
481
  }, {});
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);
482
+ return l.map((t) => {
483
+ const a = { ...t };
484
+ for (const [o, i] of Object.entries(t))
485
+ if (typeof i == "number" && e[o] > 0) {
486
+ const r = i / e[o];
487
+ a[`${o}${k}`] = r.toPrecision(2);
427
488
  }
428
- return i;
489
+ return a;
429
490
  });
430
491
  }
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({
492
+ function je(l) {
493
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = fe(e), s = E(e.series);
494
+ let u = Ke(t);
495
+ const c = de(e), b = s !== y.PieFromFields ? X.Category : X.Fields, D = me(e, b), x = z({
435
496
  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
497
+ xAxisField: n,
498
+ numericFields: c,
499
+ aggregationType: D,
500
+ mode: b,
501
+ layer: a,
502
+ fieldList: o
503
+ }), g = j(e.series)[0];
504
+ return s === y.PieFromCategory || s === y.PieNoAggregation ? u = u.map((p) => {
505
+ const f = A({
506
+ field: n,
507
+ row: p,
508
+ layer: a,
509
+ fieldList: o,
510
+ formatter: i?.xAxisLabelFormatter,
511
+ useRendererLabel: r
512
+ }), d = { [n]: f };
513
+ let m = g, F = g;
514
+ return s === y.PieFromCategory && g.toLowerCase() === x.name.toLowerCase() && (m = x.description, F = x.name), d[m] = h({
515
+ value: p[F],
516
+ originalValue: p[F]
517
+ }), d[v(k.trim())] = h({
518
+ value: p[`${F}${k}`],
519
+ originalValue: p[`${F}${k}`]
459
520
  }), d;
460
- }) : u === m.PieFromFields && (c = J(l, c).map(([s, f]) => {
521
+ }) : s === y.PieFromFields && (u = te(c, u).map(([p, f]) => {
461
522
  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
523
+ return f !== void 0 && p !== void 0 && (d.Field = h({
524
+ value: f[n],
525
+ originalValue: f[n],
526
+ formatter: i?.xAxisLabelFormatter
527
+ }), d.Value = h({
528
+ value: f[g],
529
+ originalValue: f[g]
530
+ }), d[v(k.trim())] = h({
531
+ value: f[`${g}${k}`],
532
+ originalValue: f[`${g}${k}`]
474
533
  })), d;
475
- })), c;
534
+ })), u;
476
535
  }
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);
536
+ function K(l) {
537
+ const { rawData: e, keyBase: t = "", outRow: a } = l;
538
+ for (const [o, i] of Object.entries(P)) {
539
+ const r = e[t + i];
540
+ r !== void 0 && (a[o] = r);
541
+ const n = e[t + i + Be];
542
+ n !== void 0 && (a[`${o} Outlier`] = n);
543
+ const s = e[t + i + Q];
544
+ s !== void 0 && (a[`${o} Z-Score`] = s);
486
545
  }
487
546
  }
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
547
+ function N(l) {
548
+ const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r } = l, n = q(a), s = ae(a), u = _(a);
549
+ let c = P.Outlier;
550
+ const b = T;
551
+ switch (o) {
552
+ case y.BoxPlotMonoFieldAndCategory: {
553
+ const g = ne({
554
+ field: n,
555
+ value: e[n],
556
+ fieldList: r
498
557
  });
499
- t[a] = y, t[F(v.Outlier)] = e[l];
558
+ t[n] = g, t[v(P.Outlier)] = e[c];
500
559
  break;
501
560
  }
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];
561
+ case y.BoxPlotMultiFieldsAndCategory: {
562
+ t[v(n)] = e[n], c = `${s.find(
563
+ (p) => Object.keys(e).some((f) => f.toLowerCase().includes(p.toLowerCase()))
564
+ ) ?? ""}_${c}`, t[v(P.Outlier)] = e[c];
506
565
  break;
507
566
  }
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];
567
+ case y.BoxPlotMonoFieldAndSplitBy:
568
+ case y.BoxPlotMultiFieldsAndSplitBy: {
569
+ const g = String(e[u]), p = O({
570
+ field: u,
571
+ value: g,
572
+ layer: i,
573
+ fieldList: r
574
+ });
575
+ c = `${g}_${c}`, t.Field = e[b], t[v(u)] = p, t[v(P.Outlier)] = e[c];
512
576
  break;
513
577
  }
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];
578
+ case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
579
+ const g = String(e[u]), p = O({
580
+ field: u,
581
+ value: g,
582
+ layer: i,
583
+ fieldList: r
584
+ });
585
+ c = `${g}_${c}`, t[v(n)] = e[n], t[v(u)] = p, t[v(P.Outlier)] = e[c];
517
586
  break;
518
587
  }
519
- case m.BoxPlotMonoField:
520
- case m.BoxPlotMultiFields:
588
+ case y.BoxPlotMonoField:
589
+ case y.BoxPlotMultiFields:
521
590
  default: {
522
- t.Field = e[S], t[F(v.Outlier)] = e[l];
591
+ t.Field = e[b], t[v(P.Outlier)] = e[c];
523
592
  break;
524
593
  }
525
594
  }
526
- const p = `${l}${z}`, x = e[p];
527
- x !== void 0 && (t[`${F(v.Outlier)} Z-Score`] = x);
595
+ const D = `${c}${Q}`, x = e[D];
596
+ x !== void 0 && (t[`${v(P.Outlier)} Z-Score`] = x);
528
597
  }
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];
598
+ function Ee(l) {
599
+ const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r } = l, n = E(a.series), s = e[`${o}_${P.Average}`], u = _(a), c = q(a);
600
+ let b = "";
601
+ switch (n) {
602
+ case y.BoxPlotMonoFieldAndSplitBy: {
603
+ b = `${o}_${u}`, t.Field = e[T], t[v(u)] = O({
604
+ field: u,
605
+ value: e[b],
606
+ layer: i,
607
+ fieldList: r
608
+ });
535
609
  break;
536
610
  }
537
- case m.BoxPlotMultiFieldsAndSplitBy: {
538
- l = `${r}_${v.Average}`, t.Field = e[k], t[F(u)] = e[l];
611
+ case y.BoxPlotMultiFieldsAndSplitBy: {
612
+ b = `${o}_${P.Average}`, t.Field = e[T], t[v(u)] = O({
613
+ field: u,
614
+ value: e[b],
615
+ layer: i,
616
+ fieldList: r
617
+ });
539
618
  break;
540
619
  }
541
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
542
- l = `${r}_${v.Average}`, t[c] = e[c], t[F(u)] = r;
620
+ case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
621
+ b = `${o}_${P.Average}`, t[c] = e[c], t[v(u)] = O({
622
+ field: u,
623
+ value: o,
624
+ layer: i,
625
+ fieldList: r
626
+ });
543
627
  break;
544
628
  }
545
629
  }
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);
630
+ t[v(P.Average)] = s;
631
+ const D = `${String(s)}${Q}`, x = e[D];
632
+ x !== void 0 && (t[`${v(P.Average)} Z-Score`] = x);
549
633
  }
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 });
634
+ function Ue(l) {
635
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = E(e.series);
636
+ let s = n;
637
+ const u = ue(e), c = Array.isArray(t) && t.length > 0 && t.every((f) => f[L.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
638
+ u && !c && (n === y.BoxPlotMonoFieldAndSplitBy ? s = y.BoxPlotMonoField : n === y.BoxPlotMultiFieldsAndSplitBy ? s = y.BoxPlotMultiFields : n === y.BoxPlotMonoFieldAndCategoryAndSplitBy && (s = y.BoxPlotMonoFieldAndCategory));
639
+ const b = q(e), D = ae(e), x = oe(e), g = _(e);
640
+ let p;
641
+ switch (s) {
642
+ case y.BoxPlotMonoField:
643
+ case y.BoxPlotMonoFieldAndCategory: {
644
+ p = t.map((f) => {
645
+ const d = {};
646
+ if (f[L.boxPlot.boxPlotOutlierId])
647
+ N({
648
+ rawData: f,
649
+ outRow: d,
650
+ config: e,
651
+ boxPlotSubType: s,
652
+ layer: a,
653
+ fieldList: o
654
+ });
564
655
  else {
565
- if (a === m.BoxPlotMonoFieldAndCategory) {
566
- const d = C({
567
- field: l,
568
- row: s,
569
- fieldList: i,
570
- formatter: r?.xAxisLabelFormatter
656
+ if (s === y.BoxPlotMonoFieldAndCategory) {
657
+ const m = A({
658
+ field: b,
659
+ row: f,
660
+ layer: a,
661
+ fieldList: o,
662
+ formatter: i?.xAxisLabelFormatter,
663
+ useRendererLabel: r
571
664
  });
572
- f[l] = d;
573
- } else a === m.BoxPlotMonoField && (f.Field = s[k]);
574
- T({ rawData: s, outRow: f });
665
+ d[b] = m;
666
+ } else s === y.BoxPlotMonoField && (d.Field = f[T]);
667
+ K({ rawData: f, outRow: d });
575
668
  }
576
- return f;
669
+ return d;
577
670
  });
578
671
  break;
579
672
  }
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,
673
+ case y.BoxPlotMultiFields: {
674
+ p = t.flatMap((f) => {
675
+ const d = {};
676
+ return f[L.boxPlot.boxPlotOutlierId] ? N({
677
+ rawData: f,
678
+ outRow: d,
586
679
  config: e,
587
- boxPlotSubType: a
588
- }) : (f.Field = s[k], T({ rawData: s, outRow: f })), [f];
680
+ boxPlotSubType: s,
681
+ layer: a,
682
+ fieldList: o
683
+ }) : (d.Field = f[T], K({ rawData: f, outRow: d })), [d];
589
684
  });
590
685
  break;
591
686
  }
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,
687
+ case y.BoxPlotMultiFieldsAndCategory: {
688
+ p = t.flatMap(
689
+ (f) => D.map((d) => {
690
+ const m = {};
691
+ let F = "";
692
+ if (m.Field = d, f[L.boxPlot.boxPlotOutlierId])
693
+ N({
694
+ rawData: f,
695
+ outRow: m,
601
696
  config: e,
602
- boxPlotSubType: a
697
+ boxPlotSubType: s,
698
+ layer: a,
699
+ fieldList: o
603
700
  });
604
701
  else {
605
- if (a === m.BoxPlotMultiFieldsAndCategory) {
606
- const b = C({
607
- field: l,
608
- row: s,
609
- fieldList: i,
610
- formatter: r?.xAxisLabelFormatter
702
+ if (s === y.BoxPlotMultiFieldsAndCategory) {
703
+ const S = A({
704
+ field: b,
705
+ row: f,
706
+ layer: a,
707
+ fieldList: o,
708
+ formatter: i?.xAxisLabelFormatter,
709
+ useRendererLabel: r
611
710
  });
612
- d[l] = b, g = `${f}_`;
711
+ m[b] = S, F = `${d}_`;
613
712
  }
614
- T({ rawData: s, outRow: d, keyBase: g });
713
+ K({ rawData: f, outRow: m, keyBase: F });
615
714
  }
616
- return d;
715
+ return m;
617
716
  })
618
717
  );
619
718
  break;
620
719
  }
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) => {
720
+ case y.BoxPlotMonoFieldAndSplitBy:
721
+ case y.BoxPlotMultiFieldsAndSplitBy:
722
+ case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
723
+ p = t.flatMap((f) => {
724
+ if (f[L.boxPlot.boxPlotOutlierId]) {
634
725
  const d = {};
635
- return we({
636
- rawData: s,
726
+ return N({
727
+ rawData: f,
637
728
  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
729
+ config: e,
730
+ boxPlotSubType: s,
731
+ layer: a,
732
+ fieldList: o
733
+ }), [d];
734
+ } else return f[L.boxPlot.boxPlotMeanLineMarkerId] ? x?.map((d) => {
735
+ const m = {};
736
+ return Ee({
737
+ rawData: f,
738
+ outRow: m,
739
+ splitByValue: d,
740
+ config: e,
741
+ layer: a,
742
+ fieldList: o
743
+ }), m;
744
+ }) : x.map((d) => {
745
+ const m = {}, F = O({
746
+ field: g,
747
+ value: d,
748
+ layer: a,
749
+ fieldList: o
750
+ });
751
+ if (s === y.BoxPlotMonoFieldAndCategoryAndSplitBy) {
752
+ const S = A({
753
+ field: b,
754
+ row: f,
755
+ layer: a,
756
+ fieldList: o,
757
+ formatter: i?.xAxisLabelFormatter,
758
+ useRendererLabel: r
649
759
  });
650
- d[l] = g;
760
+ m[b] = S;
651
761
  }
652
- return s[L.boxPlot.boxPlotOutlierId] ? M({
653
- rawData: s,
654
- outRow: d,
762
+ return f[L.boxPlot.boxPlotOutlierId] ? N({
763
+ rawData: f,
764
+ outRow: m,
655
765
  config: e,
656
- boxPlotSubType: a
657
- }) : (d[x] = f, T({ rawData: s, outRow: d, keyBase: `${f}_` })), d;
766
+ boxPlotSubType: s
767
+ }) : (m[g] = F, K({ rawData: f, outRow: m, keyBase: `${d}_` })), m;
658
768
  });
659
769
  });
660
770
  break;
661
771
  }
662
772
  default:
663
- y = t;
773
+ p = t;
664
774
  }
665
- return y;
775
+ return p;
666
776
  }
667
- const G = (n) => {
777
+ const ee = (l) => {
668
778
  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);
779
+ return (typeof l == "string" || typeof l == "number") && (e = !Number.isNaN(new Date(l).getTime())), e;
780
+ }, We = (l) => le.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd"), Ye = (l) => le.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), ne = (l) => {
781
+ const { field: e, value: t, fieldList: a } = l;
782
+ let o = t;
783
+ const i = a?.find((r) => r.name === e);
784
+ if (i) {
785
+ const r = i.type === Ve.DateOnly;
786
+ De(i) && !r ? o = ee(t) ? Ye(new Date(t)) : t : r && typeof t != "string" && (o = ee(t) ? We(new Date(t)) : t);
677
787
  }
678
- return r;
788
+ return o;
679
789
  };
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 = {
790
+ function ft(l) {
791
+ const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: a, syncViewTimeExtent: o } = l;
792
+ let i = e;
793
+ return t && (a === Pe.Refresh || o) && t.timeExtent?.start != null && t.timeExtent?.end != null && (i = {
684
794
  ...e,
685
795
  timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
686
- }), o;
796
+ }), i;
687
797
  }
688
798
  export {
689
- ve as a,
690
- De as b,
691
- Pe as c,
692
- he as d,
693
- tt as e,
694
- Je as f,
799
+ Ce as a,
800
+ Ae as b,
801
+ Le as c,
802
+ ft as d,
803
+ ut as e,
804
+ Oe as f,
695
805
  Z as g,
696
- Ge as h,
697
- et as t
806
+ st as h,
807
+ ct as t
698
808
  };