@geoscene/charts-components 5.0.19
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.
- package/LICENSE.md +18 -0
- package/README.md +15 -0
- package/dist/cdn/27RSUS44.js +499 -0
- package/dist/cdn/2ABIWUBP.js +168 -0
- package/dist/cdn/2FLUZ2DU.js +44 -0
- package/dist/cdn/2H7DJUUG.js +217 -0
- package/dist/cdn/2UIJDI4B.js +110 -0
- package/dist/cdn/2WSVTAF5.js +155 -0
- package/dist/cdn/2ZYMR3QH.js +469 -0
- package/dist/cdn/346SLSRB.js +117 -0
- package/dist/cdn/34GIQYIH.js +1000 -0
- package/dist/cdn/3DEMDCI6.js +176 -0
- package/dist/cdn/3PHU76K7.js +162 -0
- package/dist/cdn/3RSCQLEZ.js +376 -0
- package/dist/cdn/3SM7FV35.js +217 -0
- package/dist/cdn/3SYE47CU.js +157 -0
- package/dist/cdn/42A4L2UB.js +209 -0
- package/dist/cdn/43OZVJ43.js +10 -0
- package/dist/cdn/45AJBAFE.js +480 -0
- package/dist/cdn/4B3QBH5T.js +2440 -0
- package/dist/cdn/4HJDWMQ2.js +255 -0
- package/dist/cdn/4UCPYNHM.js +217 -0
- package/dist/cdn/4ZN5TLRY.js +206 -0
- package/dist/cdn/53MWUIM5.js +208 -0
- package/dist/cdn/5752NFTR.js +228 -0
- package/dist/cdn/5AWSZZXY.js +165 -0
- package/dist/cdn/5FBGXF7O.js +508 -0
- package/dist/cdn/5FW4PWIO.js +217 -0
- package/dist/cdn/5RNNVK4R.js +161 -0
- package/dist/cdn/6NZDPYGF.js +187 -0
- package/dist/cdn/6PBHDFIO.js +209 -0
- package/dist/cdn/7I5Y5NSS.js +82 -0
- package/dist/cdn/7IUSVOKT.js +119 -0
- package/dist/cdn/7XITED6J.js +216 -0
- package/dist/cdn/A6QBN7CC.js +45 -0
- package/dist/cdn/A7YNU2NS.js +34090 -0
- package/dist/cdn/AENRD2JF.js +174 -0
- package/dist/cdn/AHWBG4EN.js +170 -0
- package/dist/cdn/AQMOKQMS.js +97 -0
- package/dist/cdn/AULQDYOE.js +286 -0
- package/dist/cdn/BB25YSSU.js +273 -0
- package/dist/cdn/BBHUZEFF.js +217 -0
- package/dist/cdn/BY6OCNJ5.js +203 -0
- package/dist/cdn/BZA7GDEH.js +281 -0
- package/dist/cdn/CCRQK5DN.js +377 -0
- package/dist/cdn/CFQFRB3N.js +154 -0
- package/dist/cdn/CUT7ZZEN.js +211 -0
- package/dist/cdn/D24YASGK.js +241 -0
- package/dist/cdn/D4XT7ZCD.js +78 -0
- package/dist/cdn/D57WSEYW.js +65954 -0
- package/dist/cdn/D7VH5WCI.js +97 -0
- package/dist/cdn/DKENL7TV.js +72 -0
- package/dist/cdn/DP4BNWU2.js +442 -0
- package/dist/cdn/DPJE33GY.js +111 -0
- package/dist/cdn/DPXJFQDJ.js +34 -0
- package/dist/cdn/DVTRF3NE.js +498 -0
- package/dist/cdn/ED7V65WK.js +471 -0
- package/dist/cdn/EEARIV73.js +211 -0
- package/dist/cdn/EI4BBWXF.js +365 -0
- package/dist/cdn/EKW43NKP.js +211 -0
- package/dist/cdn/EKZC6UDI.js +219 -0
- package/dist/cdn/EQYSD2NX.js +217 -0
- package/dist/cdn/F335AJAZ.js +220 -0
- package/dist/cdn/FEJD2JHY.js +15 -0
- package/dist/cdn/FHOCRXYD.js +116 -0
- package/dist/cdn/FKGSMYFL.js +414 -0
- package/dist/cdn/FL37YOHH.js +217 -0
- package/dist/cdn/FPSTP5OC.js +392 -0
- package/dist/cdn/FVY5LUI2.js +157 -0
- package/dist/cdn/FWWJZ3MJ.js +209 -0
- package/dist/cdn/FZD6CNIZ.js +399 -0
- package/dist/cdn/G4MCRK6N.js +162 -0
- package/dist/cdn/GTW3ZY2Z.js +159 -0
- package/dist/cdn/GWOR7UVC.js +124624 -0
- package/dist/cdn/HAGP76HP.js +16 -0
- package/dist/cdn/HB4IRXAE.js +72 -0
- package/dist/cdn/HM3YITGN.js +217 -0
- package/dist/cdn/HOC24MW7.js +151 -0
- package/dist/cdn/HZC3QJTN.js +105 -0
- package/dist/cdn/IARNAL5N.js +14375 -0
- package/dist/cdn/IER7B77G.js +209 -0
- package/dist/cdn/IHRGRUHQ.js +130 -0
- package/dist/cdn/IJKPLGK6.js +141 -0
- package/dist/cdn/IJUDK7C2.js +209 -0
- package/dist/cdn/IMTYQFPL.js +36 -0
- package/dist/cdn/ISWZQ6CS.js +1163 -0
- package/dist/cdn/IUTE24ZY.js +13 -0
- package/dist/cdn/IYO5SQDL.js +99 -0
- package/dist/cdn/J436GCGB.js +217 -0
- package/dist/cdn/J7TZPMJS.js +55 -0
- package/dist/cdn/JADN2A6V.js +209 -0
- package/dist/cdn/JGALBLLO.js +30326 -0
- package/dist/cdn/JP64Q3GB.js +209 -0
- package/dist/cdn/JRIDQN35.js +215 -0
- package/dist/cdn/JRXMYWDW.js +135 -0
- package/dist/cdn/JS32MHPQ.js +217 -0
- package/dist/cdn/K3EUYISB.js +217 -0
- package/dist/cdn/K7DZU3S3.js +209 -0
- package/dist/cdn/KB7UF3HK.js +89 -0
- package/dist/cdn/KJHME2ZX.js +31 -0
- package/dist/cdn/KM2WGERQ.js +625 -0
- package/dist/cdn/KP4ZXQIA.js +104 -0
- package/dist/cdn/KPQTJ2HD.js +642 -0
- package/dist/cdn/KPZUTGHH.js +630 -0
- package/dist/cdn/KRZ433BT.js +2106 -0
- package/dist/cdn/KUVOINJC.js +81 -0
- package/dist/cdn/KYALHV7T.js +209 -0
- package/dist/cdn/KZCTMPJT.js +209 -0
- package/dist/cdn/L2JT5DRD.js +706 -0
- package/dist/cdn/LCDVPNSE.js +13 -0
- package/dist/cdn/LMCXUA7Q.js +10 -0
- package/dist/cdn/LN5565XO.js +52 -0
- package/dist/cdn/LZPEOYIX.js +98 -0
- package/dist/cdn/ML4GGRP6.js +570 -0
- package/dist/cdn/MMTB6DEH.js +209 -0
- package/dist/cdn/MSXA6BCJ.js +207 -0
- package/dist/cdn/NII7T2C6.js +179 -0
- package/dist/cdn/NKG4FLLR.js +165 -0
- package/dist/cdn/NSSG3EFV.js +48 -0
- package/dist/cdn/OBMBMKLH.js +327 -0
- package/dist/cdn/OIKTWYMH.js +157 -0
- package/dist/cdn/OR4HXHSY.js +41 -0
- package/dist/cdn/P4UNBBUE.js +82 -0
- package/dist/cdn/P5SSZWMH.js +309 -0
- package/dist/cdn/P6IDPIZS.js +211 -0
- package/dist/cdn/P7VOZE67.js +296 -0
- package/dist/cdn/PJRXBEGZ.js +178 -0
- package/dist/cdn/PNEIQAP5.js +217 -0
- package/dist/cdn/PWVXLHJ5.js +217 -0
- package/dist/cdn/QB7LODVK.js +684 -0
- package/dist/cdn/QEF5BUC3.js +10 -0
- package/dist/cdn/QFD6CUH6.js +30326 -0
- package/dist/cdn/QH6BI7FG.js +217 -0
- package/dist/cdn/QOI7NT7O.js +219 -0
- package/dist/cdn/QWWC6FN5.js +536 -0
- package/dist/cdn/QXU67LZR.js +155 -0
- package/dist/cdn/QYYAUYYC.js +112 -0
- package/dist/cdn/R6TDL23L.js +209 -0
- package/dist/cdn/RF5DZ4IV.js +191 -0
- package/dist/cdn/S4AW3T6V.js +224 -0
- package/dist/cdn/S565TLQY.js +196 -0
- package/dist/cdn/SMF5WZQN.js +209 -0
- package/dist/cdn/SON2ID5T.js +219 -0
- package/dist/cdn/SQV437VB.js +215 -0
- package/dist/cdn/T27VVYVB.js +157 -0
- package/dist/cdn/TAAITYOS.js +198 -0
- package/dist/cdn/TABYE4TB.js +217 -0
- package/dist/cdn/TB7WEW23.js +209 -0
- package/dist/cdn/TJ5UK25V.js +9 -0
- package/dist/cdn/TJ65PNGP.js +165 -0
- package/dist/cdn/TMANAKTG.js +591 -0
- package/dist/cdn/U4PUZ7GN.js +162 -0
- package/dist/cdn/U7SAWP3S.js +209 -0
- package/dist/cdn/UCCVQZDR.js +9 -0
- package/dist/cdn/UG7LOBJE.js +85 -0
- package/dist/cdn/UKOVO7VE.js +186 -0
- package/dist/cdn/ULFF36NB.js +178 -0
- package/dist/cdn/UNHONDOG.js +31 -0
- package/dist/cdn/UPIJ2RYA.js +219 -0
- package/dist/cdn/UTRIB3ZD.js +162 -0
- package/dist/cdn/V2OPADQU.js +696 -0
- package/dist/cdn/V3CSEWPF.js +487 -0
- package/dist/cdn/VAB3BCTX.js +133 -0
- package/dist/cdn/VE5YTXK3.js +226 -0
- package/dist/cdn/VGRQ5KGN.js +13 -0
- package/dist/cdn/VGRXIFGH.js +473 -0
- package/dist/cdn/VPNOON73.js +6242 -0
- package/dist/cdn/VQMZEOOE.js +711 -0
- package/dist/cdn/VTOYBMVV.js +230 -0
- package/dist/cdn/W2ZT3M5X.js +477 -0
- package/dist/cdn/WKARMQOX.js +416 -0
- package/dist/cdn/WSH74NNB.js +184 -0
- package/dist/cdn/X2UNNQPA.js +209 -0
- package/dist/cdn/X5VZ6AC5.js +209 -0
- package/dist/cdn/XFRW44O2.js +209 -0
- package/dist/cdn/XLDY6CTA.js +142 -0
- package/dist/cdn/XNEK46GJ.js +230 -0
- package/dist/cdn/XOBTD5MM.js +371 -0
- package/dist/cdn/XQXY7DRO.js +268 -0
- package/dist/cdn/XZG6TRNQ.js +163 -0
- package/dist/cdn/XZQIXM6A.js +157 -0
- package/dist/cdn/Y56PEINI.js +217 -0
- package/dist/cdn/Y5VXYUPT.js +217 -0
- package/dist/cdn/YEXVZE6D.js +173 -0
- package/dist/cdn/YIZBXVJZ.js +493 -0
- package/dist/cdn/YOQQ22ZG.js +209 -0
- package/dist/cdn/YYJQDF23.js +35 -0
- package/dist/cdn/Z7HL2BUP.js +283 -0
- package/dist/cdn/ZAGKTJNS.js +209 -0
- package/dist/cdn/ZBU6PQPJ.js +340 -0
- package/dist/cdn/ZEG4LDOE.js +198 -0
- package/dist/cdn/ZEPS5UGU.js +238 -0
- package/dist/cdn/ZLQXY2BV.js +35 -0
- package/dist/cdn/ZLRKGGOO.js +1414 -0
- package/dist/cdn/ZQY74JM4.js +135 -0
- package/dist/cdn/ZTNIHU2P.js +137 -0
- package/dist/cdn/assets/chart/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-action-bar/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-axes/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-axis/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-category-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-chart-rename-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-color-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-colors/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-create-flow/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-font-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-format-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-general/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guide/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guide-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guides/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guides-type-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-histogram-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-histogram-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-number-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-slices/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-slices-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-scatter-plot-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-scatter-plot-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/styles/_common.scss +257 -0
- package/dist/cdn/assets/styles/_layout.scss +10 -0
- package/dist/cdn/assets/styles/resources.ts +7 -0
- package/dist/cdn/assets/styles/variables.scss +41 -0
- package/dist/cdn/index.js +256 -0
- package/dist/cdn/main.css +1 -0
- package/dist/chart-rendering/common/interfaces.d.ts +367 -0
- package/dist/chunks/action-bar-utils.js +206 -0
- package/dist/chunks/axis-lines-symbol.js +98 -0
- package/dist/chunks/axis-model-wrapper.js +37 -0
- package/dist/chunks/bar-chart-model.js +150 -0
- package/dist/chunks/bar-chart-series.js +41 -0
- package/dist/chunks/bg_BG.js +8 -0
- package/dist/chunks/bg_BG2.js +8 -0
- package/dist/chunks/box-plot-data.js +757 -0
- package/dist/chunks/box-plot-model.js +473 -0
- package/dist/chunks/chart-model.js +595 -0
- package/dist/chunks/chart-ui-utils.js +93 -0
- package/dist/chunks/chart-ui-utils2.js +232 -0
- package/dist/chunks/class-breaks.js +370 -0
- package/dist/chunks/combo-bar-line-chart-model.js +299 -0
- package/dist/chunks/common.js +106 -0
- package/dist/chunks/data-labels-symbol.js +42 -0
- package/dist/chunks/data.js +195 -0
- package/dist/chunks/default.js +16 -0
- package/dist/chunks/gauge-model.js +489 -0
- package/dist/chunks/generate-x-axis-title.js +98 -0
- package/dist/chunks/heat-chart-model.js +483 -0
- package/dist/chunks/histogram-data.js +196 -0
- package/dist/chunks/histogram-model.js +228 -0
- package/dist/chunks/index.js +23574 -0
- package/dist/chunks/index2.js +1099 -0
- package/dist/chunks/index3.js +279 -0
- package/dist/chunks/index4.js +98 -0
- package/dist/chunks/index5.js +76 -0
- package/dist/chunks/interfaces.js +123 -0
- package/dist/chunks/line-chart-model.js +134 -0
- package/dist/chunks/model-setter.js +162 -0
- package/dist/chunks/model-with-guides.js +330 -0
- package/dist/chunks/model-with-line-marker-styling.js +178 -0
- package/dist/chunks/model-with-tooltips.js +318 -0
- package/dist/chunks/model-with-x-guides.js +45 -0
- package/dist/chunks/model-with-y-guides.js +656 -0
- package/dist/chunks/negative-values-stacked-to-baseline.js +157 -0
- package/dist/chunks/pie-chart-data.js +473 -0
- package/dist/chunks/pie-chart-model.js +884 -0
- package/dist/chunks/popover-ui-utils.js +15 -0
- package/dist/chunks/radar-chart-model.js +157 -0
- package/dist/chunks/resource.js +14 -0
- package/dist/chunks/resources.js +13 -0
- package/dist/chunks/rest-js-object-literals.js +112 -0
- package/dist/chunks/rotated-state.js +54 -0
- package/dist/chunks/runtime.js +19 -0
- package/dist/chunks/scatterplot-model.js +350 -0
- package/dist/chunks/serial-chart-data.js +1446 -0
- package/dist/chunks/serial-chart-model.js +587 -0
- package/dist/chunks/series-length.js +81 -0
- package/dist/chunks/series-types.js +249 -0
- package/dist/chunks/series.js +36 -0
- package/dist/chunks/setup-utils.js +87 -0
- package/dist/chunks/sk_SK.js +8 -0
- package/dist/chunks/store.js +35 -0
- package/dist/chunks/type-guards.js +156 -0
- package/dist/chunks/useT9n.js +5 -0
- package/dist/chunks/utils.js +308 -0
- package/dist/chunks/utils2.js +85 -0
- package/dist/chunks/web-component-utils.js +634 -0
- package/dist/components/geoscene-chart/customElement.d.ts +1551 -0
- package/dist/components/geoscene-chart/customElement.js +27412 -0
- package/dist/components/geoscene-chart/index.d.ts +1 -0
- package/dist/components/geoscene-chart/index.js +3 -0
- package/dist/components/geoscene-charts-action-bar/customElement.d.ts +813 -0
- package/dist/components/geoscene-charts-action-bar/customElement.js +500 -0
- package/dist/components/geoscene-charts-action-bar/index.d.ts +1 -0
- package/dist/components/geoscene-charts-action-bar/index.js +7 -0
- package/dist/components/geoscene-charts-config-axes/customElement.js +72 -0
- package/dist/components/geoscene-charts-config-axes/index.js +2 -0
- package/dist/components/geoscene-charts-config-axis/customElement.js +382 -0
- package/dist/components/geoscene-charts-config-axis/index.js +9 -0
- package/dist/components/geoscene-charts-config-bar-chart/customElement.js +165 -0
- package/dist/components/geoscene-charts-config-bar-chart/index.js +7 -0
- package/dist/components/geoscene-charts-config-bar-chart-data/customElement.js +644 -0
- package/dist/components/geoscene-charts-config-bar-chart-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-bar-chart-popover/customElement.js +454 -0
- package/dist/components/geoscene-charts-config-bar-chart-popover/index.js +13 -0
- package/dist/components/geoscene-charts-config-bar-chart-series/customElement.js +341 -0
- package/dist/components/geoscene-charts-config-bar-chart-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-bar-chart-series-popover/customElement.js +125 -0
- package/dist/components/geoscene-charts-config-bar-chart-series-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-box-plot/customElement.js +160 -0
- package/dist/components/geoscene-charts-config-box-plot/index.js +7 -0
- package/dist/components/geoscene-charts-config-box-plot-data/customElement.js +456 -0
- package/dist/components/geoscene-charts-config-box-plot-data/index.js +10 -0
- package/dist/components/geoscene-charts-config-box-plot-popover/customElement.js +343 -0
- package/dist/components/geoscene-charts-config-box-plot-popover/index.js +8 -0
- package/dist/components/geoscene-charts-config-box-plot-series/customElement.js +394 -0
- package/dist/components/geoscene-charts-config-box-plot-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-box-plot-series-popover/customElement.js +163 -0
- package/dist/components/geoscene-charts-config-box-plot-series-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-category-format/customElement.js +87 -0
- package/dist/components/geoscene-charts-config-category-format/index.js +3 -0
- package/dist/components/geoscene-charts-config-chart-rename-popover/customElement.js +143 -0
- package/dist/components/geoscene-charts-config-chart-rename-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-color-style/customElement.js +58 -0
- package/dist/components/geoscene-charts-config-color-style/index.js +3 -0
- package/dist/components/geoscene-charts-config-colors/customElement.js +73 -0
- package/dist/components/geoscene-charts-config-colors/index.js +3 -0
- package/dist/components/geoscene-charts-config-create-flow/customElement.js +929 -0
- package/dist/components/geoscene-charts-config-create-flow/index.js +15 -0
- package/dist/components/geoscene-charts-config-field-select/customElement.js +37 -0
- package/dist/components/geoscene-charts-config-field-select/index.js +2 -0
- package/dist/components/geoscene-charts-config-font-style/customElement.js +226 -0
- package/dist/components/geoscene-charts-config-font-style/index.js +9 -0
- package/dist/components/geoscene-charts-config-font-style/resource.d.ts +15 -0
- package/dist/components/geoscene-charts-config-format/customElement.js +485 -0
- package/dist/components/geoscene-charts-config-format/index.js +5 -0
- package/dist/components/geoscene-charts-config-format-popover/customElement.js +113 -0
- package/dist/components/geoscene-charts-config-format-popover/index.js +5 -0
- package/dist/components/geoscene-charts-config-general/customElement.js +328 -0
- package/dist/components/geoscene-charts-config-general/index.js +9 -0
- package/dist/components/geoscene-charts-config-guide/customElement.js +487 -0
- package/dist/components/geoscene-charts-config-guide/index.js +14 -0
- package/dist/components/geoscene-charts-config-guide/resource.d.ts +15 -0
- package/dist/components/geoscene-charts-config-guide-popover/customElement.js +111 -0
- package/dist/components/geoscene-charts-config-guide-popover/index.js +4 -0
- package/dist/components/geoscene-charts-config-guides/customElement.js +194 -0
- package/dist/components/geoscene-charts-config-guides/index.js +4 -0
- package/dist/components/geoscene-charts-config-guides-type-popover/customElement.js +100 -0
- package/dist/components/geoscene-charts-config-guides-type-popover/index.js +4 -0
- package/dist/components/geoscene-charts-config-heat-chart/customElement.js +114 -0
- package/dist/components/geoscene-charts-config-heat-chart/index.js +4 -0
- package/dist/components/geoscene-charts-config-heat-chart-data/customElement.js +701 -0
- package/dist/components/geoscene-charts-config-heat-chart-data/index.js +18 -0
- package/dist/components/geoscene-charts-config-heat-chart-popover/customElement.js +499 -0
- package/dist/components/geoscene-charts-config-heat-chart-popover/index.js +12 -0
- package/dist/components/geoscene-charts-config-histogram/customElement.js +137 -0
- package/dist/components/geoscene-charts-config-histogram/index.js +6 -0
- package/dist/components/geoscene-charts-config-histogram-data/customElement.js +612 -0
- package/dist/components/geoscene-charts-config-histogram-data/index.js +11 -0
- package/dist/components/geoscene-charts-config-histogram-popover/customElement.js +255 -0
- package/dist/components/geoscene-charts-config-histogram-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-invalid-input-message/customElement.js +31 -0
- package/dist/components/geoscene-charts-config-invalid-input-message/index.js +2 -0
- package/dist/components/geoscene-charts-config-line-chart/customElement.js +169 -0
- package/dist/components/geoscene-charts-config-line-chart/index.js +7 -0
- package/dist/components/geoscene-charts-config-line-chart-data/customElement.js +444 -0
- package/dist/components/geoscene-charts-config-line-chart-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-line-chart-popover/customElement.js +357 -0
- package/dist/components/geoscene-charts-config-line-chart-popover/index.js +11 -0
- package/dist/components/geoscene-charts-config-line-chart-series/customElement.js +245 -0
- package/dist/components/geoscene-charts-config-line-chart-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-line-chart-series-popover/customElement.js +216 -0
- package/dist/components/geoscene-charts-config-line-chart-series-popover/index.js +10 -0
- package/dist/components/geoscene-charts-config-line-style/customElement.js +159 -0
- package/dist/components/geoscene-charts-config-line-style/index.js +9 -0
- package/dist/components/geoscene-charts-config-number-format/customElement.js +102 -0
- package/dist/components/geoscene-charts-config-number-format/index.js +4 -0
- package/dist/components/geoscene-charts-config-pie-chart/customElement.js +164 -0
- package/dist/components/geoscene-charts-config-pie-chart/index.js +5 -0
- package/dist/components/geoscene-charts-config-pie-chart-data/customElement.js +258 -0
- package/dist/components/geoscene-charts-config-pie-chart-data/index.js +8 -0
- package/dist/components/geoscene-charts-config-pie-chart-popover/customElement.js +300 -0
- package/dist/components/geoscene-charts-config-pie-chart-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices/customElement.js +454 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices/index.js +12 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices-popover/customElement.js +126 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-scatter-plot/customElement.js +132 -0
- package/dist/components/geoscene-charts-config-scatter-plot/index.js +6 -0
- package/dist/components/geoscene-charts-config-scatter-plot-data/customElement.js +616 -0
- package/dist/components/geoscene-charts-config-scatter-plot-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-scatter-plot-popover/customElement.js +198 -0
- package/dist/components/geoscene-charts-config-scatter-plot-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-select-chart-type-popover/customElement.js +148 -0
- package/dist/components/geoscene-charts-config-select-chart-type-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-view-charts/customElement.js +289 -0
- package/dist/components/geoscene-charts-config-view-charts/index.js +10 -0
- package/dist/components/geoscene-charts-info-modal/customElement.js +101 -0
- package/dist/components/geoscene-charts-info-modal/index.js +2 -0
- package/dist/docs/api.json +87068 -0
- package/dist/docs/docs.json +3082 -0
- package/dist/docs/vscode.css-custom-data.json +1 -0
- package/dist/docs/vscode.html-custom-data.json +519 -0
- package/dist/docs/web-types.json +1282 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +812 -0
- package/dist/interfaces.d.ts +203 -0
- package/dist/json-schema/index.d.ts +8488 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +332 -0
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +51 -0
- package/dist/model/box-plot-model/box-plot-model.d.ts +177 -0
- package/dist/model/chart-model/chart-model-base.d.ts +34 -0
- package/dist/model/chart-model/chart-model.d.ts +28 -0
- package/dist/model/chart-model/utils/types.d.ts +10 -0
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +189 -0
- package/dist/model/gauge-model/gauge-model.d.ts +103 -0
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +224 -0
- package/dist/model/histogram-model/histogram-model.d.ts +75 -0
- package/dist/model/index.d.ts +18 -0
- package/dist/model/interfaces/chart-interfaces.d.ts +21 -0
- package/dist/model/interfaces/common.d.ts +172 -0
- package/dist/model/line-chart-model/line-chart-model.d.ts +20 -0
- package/dist/model/mixins/model-with-guides.d.ts +140 -0
- package/dist/model/mixins/model-with-legend.d.ts +22 -0
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +139 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +307 -0
- package/dist/model/mixins/model-with-temporal-binning.d.ts +25 -0
- package/dist/model/mixins/model-with-tooltips.d.ts +36 -0
- package/dist/model/mixins/model-with-x-guides.d.ts +24 -0
- package/dist/model/mixins/model-with-y-guides.d.ts +24 -0
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +56 -0
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +199 -0
- package/dist/model/properties/axes/axis-labels-symbol.d.ts +8 -0
- package/dist/model/properties/axes/axis-lines-symbol.d.ts +8 -0
- package/dist/model/properties/axes/x-axis/generate-x-axis-title.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/max-x-bound.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/min-x-bound.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/x-axis-labels-visibility.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-symbol.d.ts +8 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-text.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-visibility.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/x-bounds.d.ts +8 -0
- package/dist/model/properties/background-color.d.ts +8 -0
- package/dist/model/properties/chart-id.d.ts +7 -0
- package/dist/model/properties/chart-renderer.d.ts +52 -0
- package/dist/model/properties/chart-sub-type.d.ts +8 -0
- package/dist/model/properties/color-match.d.ts +12 -0
- package/dist/model/properties/config.d.ts +8 -0
- package/dist/model/properties/data-filters.d.ts +14 -0
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +8 -0
- package/dist/model/properties/data-labels/data-labels-visibility.d.ts +7 -0
- package/dist/model/properties/data-tooltip-value-format.d.ts +21 -0
- package/dist/model/properties/description/description-symbol.d.ts +8 -0
- package/dist/model/properties/description/description-text.d.ts +6 -0
- package/dist/model/properties/description/description-visibility.d.ts +11 -0
- package/dist/model/properties/fetch-null-values.d.ts +7 -0
- package/dist/model/properties/layer.d.ts +8 -0
- package/dist/model/properties/rotated-state.d.ts +7 -0
- package/dist/model/properties/series/negative-values-stacked-to-baseline.d.ts +22 -0
- package/dist/model/properties/series/series-id.d.ts +12 -0
- package/dist/model/properties/series/series-index.d.ts +12 -0
- package/dist/model/properties/series/series-length.d.ts +7 -0
- package/dist/model/properties/series/series-visibility.d.ts +18 -0
- package/dist/model/properties/split-by-values.d.ts +7 -0
- package/dist/model/properties/subtitle/subtitle-symbol.d.ts +8 -0
- package/dist/model/properties/subtitle/subtitle-text.d.ts +7 -0
- package/dist/model/properties/subtitle/subtitle-visibility.d.ts +11 -0
- package/dist/model/properties/title/title-symbol.d.ts +8 -0
- package/dist/model/properties/title/title-text.d.ts +7 -0
- package/dist/model/properties/title/title-visibility.d.ts +11 -0
- package/dist/model/properties/version.d.ts +7 -0
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +20 -0
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +57 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +145 -0
- package/dist/model/shared/setup-utils.d.ts +74 -0
- package/dist/model/shared/type-guards.d.ts +172 -0
- package/dist/model.js +77 -0
- package/dist/spec/chart-object-literals.d.ts +364 -0
- package/dist/spec/config-defaults.d.ts +11 -0
- package/dist/spec/data-source.d.ts +104 -0
- package/dist/spec/events.d.ts +34 -0
- package/dist/spec/index.d.ts +8 -0
- package/dist/spec/rest-js-object-literals.d.ts +132 -0
- package/dist/spec/rest-js-types.d.ts +1923 -0
- package/dist/spec/web-chart.d.ts +1539 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/lumina.d.ts +187 -0
- package/dist/types/preact.d.ts +194 -0
- package/dist/types/react.d.ts +204 -0
- package/dist/types/stencil.d.ts +194 -0
- package/dist/utils/chart-config/converter/index.d.ts +21 -0
- package/dist/utils/chart-config/interfaces.d.ts +8 -0
- package/dist/utils/chart-config/utils/index.d.ts +520 -0
- package/dist/utils/chart-config/utils/interfaces.d.ts +8 -0
- package/dist/utils/chart-config/validator/index.d.ts +27 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +105 -0
- package/dist/utils/components/event-payloads.d.ts +82 -0
- package/dist/utils/components/interfaces.d.ts +14 -0
- package/dist/utils/cursor/interfaces.d.ts +17 -0
- package/dist/utils/data/categorical-data/index.d.ts +27 -0
- package/dist/utils/data/index.d.ts +149 -0
- package/dist/utils/data/interfaces.d.ts +75 -0
- package/dist/utils/data/time-binning/interfaces.d.ts +38 -0
- package/dist/utils/defaults/index.d.ts +638 -0
- package/dist/utils/defaults/interfaces.d.ts +81 -0
- package/dist/utils/errors/index.d.ts +17 -0
- package/dist/utils/errors/interfaces.d.ts +9 -0
- package/dist/utils/index.d.ts +33 -0
- package/dist/utils/layer/index.d.ts +313 -0
- package/dist/utils/layer/inline-conversion/index.d.ts +46 -0
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +21 -0
- package/dist/utils/layer/interfaces.d.ts +73 -0
- package/dist/utils/layer/query-features/index.d.ts +192 -0
- package/dist/utils/layer/query-features/interfaces.d.ts +10 -0
- package/dist/utils/layer/query-parser/index.d.ts +183 -0
- package/dist/utils/layer/utils/index.d.ts +202 -0
- package/dist/utils/localization/index.d.ts +87 -0
- package/dist/utils/localization/interfaces.d.ts +617 -0
- package/dist/utils/misc/index.d.ts +347 -0
- package/dist/utils/misc/interfaces.d.ts +116 -0
- package/dist/utils/type-guards/index.d.ts +229 -0
- package/dist/utils/type-guards/series-types.d.ts +38 -0
- package/dist/utils/types/index.d.ts +227 -0
- package/dist/utils/ui/chart-ui-utils.d.ts +34 -0
- package/dist/utils/ui/popover-ui-utils.d.ts +35 -0
- package/package.json +59 -0
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { W as P, w as U } from "./series-types.js";
|
|
3
|
+
import {
|
|
4
|
+
isEqual as Y,
|
|
5
|
+
capitalize as F,
|
|
6
|
+
isNumber as A,
|
|
7
|
+
zip as H,
|
|
8
|
+
} from "lodash-es";
|
|
9
|
+
import {
|
|
10
|
+
o as T,
|
|
11
|
+
bR as W,
|
|
12
|
+
cM as X,
|
|
13
|
+
dp as c,
|
|
14
|
+
ab as O,
|
|
15
|
+
bG as h,
|
|
16
|
+
ds as C,
|
|
17
|
+
ay as w,
|
|
18
|
+
bT as J,
|
|
19
|
+
aj as B,
|
|
20
|
+
bD as ee,
|
|
21
|
+
bE as K,
|
|
22
|
+
} from "./index.js";
|
|
23
|
+
import { b as R } from "./interfaces.js";
|
|
24
|
+
import { a as z } from "./common.js";
|
|
25
|
+
import "@geoscene/toolkit/type";
|
|
26
|
+
import { R as te } from "./rest-js-object-literals.js";
|
|
27
|
+
import { j as oe, n as N, p as Z, o as I } from "./box-plot-data.js";
|
|
28
|
+
import { a as q } from "./series-length.js";
|
|
29
|
+
import { g as ie } from "./histogram-data.js";
|
|
30
|
+
import { g as ae, a as se, b as ne } from "./pie-chart-data.js";
|
|
31
|
+
import { R as re, S as le, T as ce } from "./serial-chart-data.js";
|
|
32
|
+
import { b as ue, g as Q } from "./data.js";
|
|
33
|
+
const Ve = [
|
|
34
|
+
P.BarSeries,
|
|
35
|
+
P.BoxPlotSeries,
|
|
36
|
+
P.LineSeries,
|
|
37
|
+
P.PieSeries,
|
|
38
|
+
P.HistogramSeries,
|
|
39
|
+
P.ScatterSeries,
|
|
40
|
+
],
|
|
41
|
+
ke = 1,
|
|
42
|
+
Re = { PNG: "png" };
|
|
43
|
+
function de(n, e) {
|
|
44
|
+
return !Y(n, e);
|
|
45
|
+
}
|
|
46
|
+
function Ke(n, e) {
|
|
47
|
+
return de(n, e) || n !== e;
|
|
48
|
+
}
|
|
49
|
+
function fe(n) {
|
|
50
|
+
return (new Intl.NumberFormat(n, {
|
|
51
|
+
minimumFractionDigits: 1,
|
|
52
|
+
maximumFractionDigits: 1,
|
|
53
|
+
})
|
|
54
|
+
.formatToParts(1.1)
|
|
55
|
+
.find((r) => r.type === "decimal")?.value ?? ".") === "."
|
|
56
|
+
? ","
|
|
57
|
+
: ";";
|
|
58
|
+
}
|
|
59
|
+
function me(n) {
|
|
60
|
+
return (
|
|
61
|
+
new Intl.NumberFormat(n, {
|
|
62
|
+
minimumFractionDigits: 1,
|
|
63
|
+
maximumFractionDigits: 1,
|
|
64
|
+
})
|
|
65
|
+
.formatToParts(1.1)
|
|
66
|
+
.find((t) => t.type === "decimal")?.value ?? "."
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
const E = (n) => {
|
|
70
|
+
const { value: e, quoteAll: t = !1, locale: r } = n;
|
|
71
|
+
let i = e == null ? "" : String(e);
|
|
72
|
+
if (e === null) i = "null";
|
|
73
|
+
else if (e === void 0) i = "";
|
|
74
|
+
else if (typeof e == "number" && Number.isFinite(e) && r !== void 0) {
|
|
75
|
+
const a = me(r),
|
|
76
|
+
f = i.split(a)[1]?.length ?? 3;
|
|
77
|
+
i = new Intl.NumberFormat(r, {
|
|
78
|
+
maximumFractionDigits: f,
|
|
79
|
+
})
|
|
80
|
+
.format(e)
|
|
81
|
+
.replace(/\u202F/gu, " ");
|
|
82
|
+
}
|
|
83
|
+
return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
|
|
84
|
+
};
|
|
85
|
+
function Ne(n, e = {}) {
|
|
86
|
+
const {
|
|
87
|
+
columns: t,
|
|
88
|
+
delimiter: r,
|
|
89
|
+
includeHeader: i = !0,
|
|
90
|
+
quoteAll: o = !1,
|
|
91
|
+
locale: a,
|
|
92
|
+
} = e,
|
|
93
|
+
f = n.length === 0;
|
|
94
|
+
let l = "";
|
|
95
|
+
if (!f) {
|
|
96
|
+
const m = t ?? Object.keys(n[0]),
|
|
97
|
+
x = [],
|
|
98
|
+
p = r ?? fe(a ?? "en");
|
|
99
|
+
if (
|
|
100
|
+
(a !== void 0 &&
|
|
101
|
+
p !== "," &&
|
|
102
|
+
(l += `sep=${p}\r
|
|
103
|
+
`),
|
|
104
|
+
i)
|
|
105
|
+
) {
|
|
106
|
+
const y = m.map((s) => E({ value: s, quoteAll: o, locale: a }));
|
|
107
|
+
x.push(y.join(p));
|
|
108
|
+
}
|
|
109
|
+
n.forEach((y) => {
|
|
110
|
+
const s = m.map((d) => E({ value: y[d], quoteAll: o, locale: a }));
|
|
111
|
+
x.push(s.join(p));
|
|
112
|
+
}),
|
|
113
|
+
(l += x.join(`\r
|
|
114
|
+
`));
|
|
115
|
+
}
|
|
116
|
+
return l;
|
|
117
|
+
}
|
|
118
|
+
function Ie(n) {
|
|
119
|
+
const { rawData: e, config: t, layer: r, fieldList: i } = n;
|
|
120
|
+
let o = e;
|
|
121
|
+
if (t !== void 0 && Array.isArray(e) && e.length > 0) {
|
|
122
|
+
const a = U(t?.series);
|
|
123
|
+
a === P.HistogramSeries
|
|
124
|
+
? (o = ye(t, e))
|
|
125
|
+
: a === P.BarSeries || a === P.LineSeries || a === P.ComboLineAndBarSeries
|
|
126
|
+
? (o = ge({
|
|
127
|
+
config: t,
|
|
128
|
+
rows: e,
|
|
129
|
+
layer: r,
|
|
130
|
+
fieldList: i,
|
|
131
|
+
}))
|
|
132
|
+
: a === P.PieSeries
|
|
133
|
+
? (o = xe({
|
|
134
|
+
config: t,
|
|
135
|
+
rows: e,
|
|
136
|
+
layer: r,
|
|
137
|
+
fieldList: i,
|
|
138
|
+
}))
|
|
139
|
+
: a === P.BoxPlotSeries &&
|
|
140
|
+
(o = Be({
|
|
141
|
+
config: t,
|
|
142
|
+
rows: e,
|
|
143
|
+
fieldList: i,
|
|
144
|
+
}));
|
|
145
|
+
}
|
|
146
|
+
return o;
|
|
147
|
+
}
|
|
148
|
+
function ye(n, e) {
|
|
149
|
+
const t = ie(n),
|
|
150
|
+
r = `${F(R.Min)} of ${t}`,
|
|
151
|
+
i = `${F(R.Max)} of ${t}`,
|
|
152
|
+
o = `${F(R.Count)} of ${t}`;
|
|
153
|
+
return e.map((a) => {
|
|
154
|
+
const { minValue: f, maxValue: l, count: m } = a,
|
|
155
|
+
x = A(f),
|
|
156
|
+
p = A(l),
|
|
157
|
+
y = A(m),
|
|
158
|
+
s = {};
|
|
159
|
+
return (
|
|
160
|
+
x && (s[r] = f.toFixed(2)),
|
|
161
|
+
p && (s[i] = l.toFixed(2)),
|
|
162
|
+
x && p && (s.Label = `${f.toFixed(2)} - ${l.toFixed(2)}`),
|
|
163
|
+
y && (s[o] = m),
|
|
164
|
+
s
|
|
165
|
+
);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function pe(n, e, t) {
|
|
169
|
+
const r = Object.keys(n);
|
|
170
|
+
let i = [];
|
|
171
|
+
return (
|
|
172
|
+
t
|
|
173
|
+
? (i = t.map(
|
|
174
|
+
(o) => r.find((a) => a.toLowerCase().includes(o.toLowerCase())) || ""
|
|
175
|
+
))
|
|
176
|
+
: (i = r.filter((a) => a.toLowerCase().includes(e.toLowerCase()))),
|
|
177
|
+
i.filter((o) => o.trim() !== "")
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
function ge(n) {
|
|
181
|
+
const { config: e, rows: t, layer: r, fieldList: i } = n,
|
|
182
|
+
o = ue(e),
|
|
183
|
+
a = re(e),
|
|
184
|
+
f = F(a),
|
|
185
|
+
l = le(e),
|
|
186
|
+
m = T(e.series),
|
|
187
|
+
x = q(e),
|
|
188
|
+
p = ce(e),
|
|
189
|
+
{ idField: y, isTraditionalTypeOID: s } = W(X(r)),
|
|
190
|
+
d = s && l.length === 1 && l[0] === y;
|
|
191
|
+
let u;
|
|
192
|
+
switch (m) {
|
|
193
|
+
case c.BarAndLineNoAggregation:
|
|
194
|
+
u = t.map((g) => {
|
|
195
|
+
const b = $({
|
|
196
|
+
field: o,
|
|
197
|
+
value: g[o],
|
|
198
|
+
fieldList: i,
|
|
199
|
+
}),
|
|
200
|
+
S = { [o]: b };
|
|
201
|
+
return Object.assign(S, ...l.map((D) => ({ [D]: g[D] }))), S;
|
|
202
|
+
});
|
|
203
|
+
break;
|
|
204
|
+
case c.BarAndLineFromFields:
|
|
205
|
+
u = H(l, t).map(([g, b]) => {
|
|
206
|
+
const S = O(e.series)[0],
|
|
207
|
+
D = {};
|
|
208
|
+
return (
|
|
209
|
+
b !== void 0 && g !== void 0 && ((D.Field = b[o]), (D.Value = b[S])),
|
|
210
|
+
D
|
|
211
|
+
);
|
|
212
|
+
});
|
|
213
|
+
break;
|
|
214
|
+
case c.BarAndLineMonoField:
|
|
215
|
+
case c.BarAndLineMultiFields:
|
|
216
|
+
u = t.map((g) => {
|
|
217
|
+
const b = $({
|
|
218
|
+
field: o,
|
|
219
|
+
value: g[o],
|
|
220
|
+
fieldList: i,
|
|
221
|
+
}),
|
|
222
|
+
S = { [o]: b };
|
|
223
|
+
return (
|
|
224
|
+
l.forEach((D, v) => {
|
|
225
|
+
const V = Q({
|
|
226
|
+
config: e,
|
|
227
|
+
xAxisField: o,
|
|
228
|
+
numericFields: l,
|
|
229
|
+
aggregationType: a,
|
|
230
|
+
layer: r,
|
|
231
|
+
numericFieldIndex: v,
|
|
232
|
+
fieldList: i,
|
|
233
|
+
}),
|
|
234
|
+
k = O(e.series)[v];
|
|
235
|
+
let j = k,
|
|
236
|
+
_ = k;
|
|
237
|
+
k.toLowerCase() === V.name.toLowerCase() &&
|
|
238
|
+
((j = V.description), (_ = V.name)),
|
|
239
|
+
(S[j] = g[_]);
|
|
240
|
+
}),
|
|
241
|
+
S
|
|
242
|
+
);
|
|
243
|
+
});
|
|
244
|
+
break;
|
|
245
|
+
case c.BarAndLineSplitBy:
|
|
246
|
+
u = t.flatMap((g) => {
|
|
247
|
+
const b = O(e.series),
|
|
248
|
+
S = $({
|
|
249
|
+
field: o,
|
|
250
|
+
value: g[o],
|
|
251
|
+
fieldList: i,
|
|
252
|
+
});
|
|
253
|
+
return x.map((D, v) => ({
|
|
254
|
+
[o]: S,
|
|
255
|
+
[p]: D,
|
|
256
|
+
[d ? f : `${f} of ${l[0]}`]: g[b[v]],
|
|
257
|
+
}));
|
|
258
|
+
});
|
|
259
|
+
break;
|
|
260
|
+
case c.BarAndLineSplitByNoAggregation:
|
|
261
|
+
u = t.map((g) => {
|
|
262
|
+
const b = $({
|
|
263
|
+
field: o,
|
|
264
|
+
value: g[o],
|
|
265
|
+
fieldList: i,
|
|
266
|
+
}),
|
|
267
|
+
S = pe(g, l[0], x);
|
|
268
|
+
return {
|
|
269
|
+
[o]: b,
|
|
270
|
+
[p]: g[p],
|
|
271
|
+
[l[0]]: g[S[0]],
|
|
272
|
+
};
|
|
273
|
+
});
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
u = t;
|
|
277
|
+
}
|
|
278
|
+
return u;
|
|
279
|
+
}
|
|
280
|
+
function Fe(n) {
|
|
281
|
+
if (n.length === 0) return [];
|
|
282
|
+
const e = n.reduce((t, r) => {
|
|
283
|
+
for (const [i, o] of Object.entries(r))
|
|
284
|
+
typeof o == "number" && Number.isFinite(o) && (t[i] = (t[i] ?? 0) + o);
|
|
285
|
+
return t;
|
|
286
|
+
}, {});
|
|
287
|
+
return n.map((t) => {
|
|
288
|
+
const r = { ...t };
|
|
289
|
+
for (const [i, o] of Object.entries(t))
|
|
290
|
+
if (typeof o == "number" && e[i] > 0) {
|
|
291
|
+
const a = o / e[i];
|
|
292
|
+
r[`${i}${h}`] = a.toPrecision(2);
|
|
293
|
+
}
|
|
294
|
+
return r;
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
function xe(n) {
|
|
298
|
+
const { config: e, rows: t, layer: r, fieldList: i } = n,
|
|
299
|
+
o = ae(e),
|
|
300
|
+
a = T(e.series);
|
|
301
|
+
let f = Fe(t);
|
|
302
|
+
const l = se(e),
|
|
303
|
+
m = a !== c.PieFromFields ? z.Category : z.Fields,
|
|
304
|
+
x = ne(e, m),
|
|
305
|
+
p = Q({
|
|
306
|
+
config: e,
|
|
307
|
+
xAxisField: o,
|
|
308
|
+
numericFields: l,
|
|
309
|
+
aggregationType: x,
|
|
310
|
+
mode: m,
|
|
311
|
+
layer: r,
|
|
312
|
+
fieldList: i,
|
|
313
|
+
}),
|
|
314
|
+
y = O(e.series)[0];
|
|
315
|
+
return (
|
|
316
|
+
a === c.PieFromCategory || a === c.PieNoAggregation
|
|
317
|
+
? (f = f.map((s) => {
|
|
318
|
+
const d = $({
|
|
319
|
+
field: o,
|
|
320
|
+
value: s[o],
|
|
321
|
+
fieldList: i,
|
|
322
|
+
}),
|
|
323
|
+
u = { [o]: d };
|
|
324
|
+
let g = y,
|
|
325
|
+
b = y;
|
|
326
|
+
return (
|
|
327
|
+
a === c.PieFromCategory &&
|
|
328
|
+
y.toLowerCase() === p.name.toLowerCase() &&
|
|
329
|
+
((g = p.description), (b = p.name)),
|
|
330
|
+
(u[g] = s[b]),
|
|
331
|
+
(u[F(h.trim())] = s[`${b}${h}`]),
|
|
332
|
+
u
|
|
333
|
+
);
|
|
334
|
+
}))
|
|
335
|
+
: a === c.PieFromFields &&
|
|
336
|
+
(f = H(l, f).map(([s, d]) => {
|
|
337
|
+
const u = {};
|
|
338
|
+
return (
|
|
339
|
+
d !== void 0 &&
|
|
340
|
+
s !== void 0 &&
|
|
341
|
+
((u.Field = d[o]),
|
|
342
|
+
(u.Value = d[y]),
|
|
343
|
+
(u[F(h.trim())] = d[`${y}${h}`])),
|
|
344
|
+
u
|
|
345
|
+
);
|
|
346
|
+
})),
|
|
347
|
+
f
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
function L(n) {
|
|
351
|
+
const { rawData: e, keyBase: t = "", outRow: r } = n;
|
|
352
|
+
for (const [i, o] of Object.entries(B)) {
|
|
353
|
+
const a = e[t + o];
|
|
354
|
+
a !== void 0 && (r[i] = A(a) ? a.toFixed(2) : a);
|
|
355
|
+
const f = e[t + o + ee];
|
|
356
|
+
f !== void 0 && (r[`${i} Outlier`] = A(f) ? f.toFixed(2) : f);
|
|
357
|
+
const l = e[t + o + K];
|
|
358
|
+
l !== void 0 && (r[`${i} Z-Score`] = A(l) ? l.toFixed(2) : l);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function M(n) {
|
|
362
|
+
const {
|
|
363
|
+
rawData: e,
|
|
364
|
+
outRow: t,
|
|
365
|
+
config: r,
|
|
366
|
+
boxPlotSubType: i,
|
|
367
|
+
fieldList: o,
|
|
368
|
+
} = n,
|
|
369
|
+
a = N(r),
|
|
370
|
+
f = Z(r),
|
|
371
|
+
l = I(r);
|
|
372
|
+
let m = B.Outlier;
|
|
373
|
+
const x = w;
|
|
374
|
+
switch (i) {
|
|
375
|
+
case c.BoxPlotMonoFieldAndCategory: {
|
|
376
|
+
const s = $({
|
|
377
|
+
field: a,
|
|
378
|
+
value: e[a],
|
|
379
|
+
fieldList: o,
|
|
380
|
+
});
|
|
381
|
+
(t[a] = s), (t[F(B.Outlier)] = e[m]);
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
case c.BoxPlotMultiFieldsAndCategory: {
|
|
385
|
+
(t[F(a)] = e[a]),
|
|
386
|
+
(m = `${
|
|
387
|
+
f.find((d) =>
|
|
388
|
+
Object.keys(e).some((u) =>
|
|
389
|
+
u.toLowerCase().includes(d.toLowerCase())
|
|
390
|
+
)
|
|
391
|
+
) ?? ""
|
|
392
|
+
}_${m}`),
|
|
393
|
+
(t[F(B.Outlier)] = e[m]);
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
case c.BoxPlotMonoFieldAndSplitBy:
|
|
397
|
+
case c.BoxPlotMultiFieldsAndSplitBy: {
|
|
398
|
+
const s = e[l];
|
|
399
|
+
(m = `${s}_${m}`),
|
|
400
|
+
(t.Field = e[x]),
|
|
401
|
+
(t[F(l)] = s),
|
|
402
|
+
(t[F(B.Outlier)] = e[m]);
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
406
|
+
const s = e[l];
|
|
407
|
+
(m = `${s}_${m}`),
|
|
408
|
+
(t[F(a)] = e[a]),
|
|
409
|
+
(t[F(l)] = s),
|
|
410
|
+
(t[F(B.Outlier)] = e[m]);
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
case c.BoxPlotMonoField:
|
|
414
|
+
case c.BoxPlotMultiFields:
|
|
415
|
+
default: {
|
|
416
|
+
(t.Field = e[x]), (t[F(B.Outlier)] = e[m]);
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
const p = `${m}${K}`,
|
|
421
|
+
y = e[p];
|
|
422
|
+
y !== void 0 && (t[`${F(B.Outlier)} Z-Score`] = A(y) ? y.toFixed(2) : y);
|
|
423
|
+
}
|
|
424
|
+
function be(n) {
|
|
425
|
+
const { rawData: e, outRow: t, config: r, splitByValue: i } = n,
|
|
426
|
+
o = T(r.series),
|
|
427
|
+
a = e[`${i}_${B.Average}`],
|
|
428
|
+
f = I(r),
|
|
429
|
+
l = N(r);
|
|
430
|
+
let m = "";
|
|
431
|
+
switch (o) {
|
|
432
|
+
case c.BoxPlotMonoFieldAndSplitBy: {
|
|
433
|
+
(m = `${i}_${f}`), (t.Field = e[w]), (t[F(f)] = e[m]);
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
case c.BoxPlotMultiFieldsAndSplitBy: {
|
|
437
|
+
(m = `${i}_${B.Average}`), (t.Field = e[w]), (t[F(f)] = e[m]);
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
441
|
+
(m = `${i}_${B.Average}`), (t[l] = e[l]), (t[F(f)] = i);
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
t[F(B.Average)] = A(a) ? a.toFixed(2) : a;
|
|
446
|
+
const x = `${a}${K}`,
|
|
447
|
+
p = e[x];
|
|
448
|
+
p !== void 0 && (t[`${F(B.Average)} Z-Score`] = A(p) ? p.toFixed(2) : p);
|
|
449
|
+
}
|
|
450
|
+
function Be(n) {
|
|
451
|
+
const { config: e, rows: t, fieldList: r } = n,
|
|
452
|
+
i = T(e.series);
|
|
453
|
+
let o = i;
|
|
454
|
+
const a = oe(e),
|
|
455
|
+
f =
|
|
456
|
+
Array.isArray(t) &&
|
|
457
|
+
t.length > 0 &&
|
|
458
|
+
t.every((s) => s[C.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
|
|
459
|
+
a &&
|
|
460
|
+
!f &&
|
|
461
|
+
(i === c.BoxPlotMonoFieldAndSplitBy
|
|
462
|
+
? (o = c.BoxPlotMonoField)
|
|
463
|
+
: i === c.BoxPlotMultiFieldsAndSplitBy
|
|
464
|
+
? (o = c.BoxPlotMultiFields)
|
|
465
|
+
: i === c.BoxPlotMonoFieldAndCategoryAndSplitBy &&
|
|
466
|
+
(o = c.BoxPlotMonoFieldAndCategory));
|
|
467
|
+
const l = N(e),
|
|
468
|
+
m = Z(e),
|
|
469
|
+
x = q(e),
|
|
470
|
+
p = I(e);
|
|
471
|
+
let y;
|
|
472
|
+
switch (o) {
|
|
473
|
+
case c.BoxPlotMonoField:
|
|
474
|
+
case c.BoxPlotMonoFieldAndCategory: {
|
|
475
|
+
y = t.map((s) => {
|
|
476
|
+
const d = {};
|
|
477
|
+
if (s[C.boxPlot.boxPlotOutlierId])
|
|
478
|
+
M({ rawData: s, outRow: d, config: e, boxPlotSubType: o });
|
|
479
|
+
else {
|
|
480
|
+
if (o === c.BoxPlotMonoFieldAndCategory) {
|
|
481
|
+
const u = $({
|
|
482
|
+
field: l,
|
|
483
|
+
value: s[l],
|
|
484
|
+
fieldList: r,
|
|
485
|
+
});
|
|
486
|
+
d[l] = u;
|
|
487
|
+
} else o === c.BoxPlotMonoField && (d.Field = s[w]);
|
|
488
|
+
L({ rawData: s, outRow: d });
|
|
489
|
+
}
|
|
490
|
+
return d;
|
|
491
|
+
});
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
case c.BoxPlotMultiFields: {
|
|
495
|
+
y = t.flatMap((s) => {
|
|
496
|
+
const d = {};
|
|
497
|
+
return (
|
|
498
|
+
s[C.boxPlot.boxPlotOutlierId]
|
|
499
|
+
? M({
|
|
500
|
+
rawData: s,
|
|
501
|
+
outRow: d,
|
|
502
|
+
config: e,
|
|
503
|
+
boxPlotSubType: o,
|
|
504
|
+
})
|
|
505
|
+
: ((d.Field = s[w]), L({ rawData: s, outRow: d })),
|
|
506
|
+
[d]
|
|
507
|
+
);
|
|
508
|
+
});
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
case c.BoxPlotMultiFieldsAndCategory: {
|
|
512
|
+
y = t.flatMap((s) =>
|
|
513
|
+
m.map((d) => {
|
|
514
|
+
const u = {};
|
|
515
|
+
let g = "";
|
|
516
|
+
if (((u.Field = d), s[C.boxPlot.boxPlotOutlierId]))
|
|
517
|
+
M({
|
|
518
|
+
rawData: s,
|
|
519
|
+
outRow: u,
|
|
520
|
+
config: e,
|
|
521
|
+
boxPlotSubType: o,
|
|
522
|
+
});
|
|
523
|
+
else {
|
|
524
|
+
if (o === c.BoxPlotMultiFieldsAndCategory) {
|
|
525
|
+
const b = $({
|
|
526
|
+
field: l,
|
|
527
|
+
value: s[l],
|
|
528
|
+
fieldList: r,
|
|
529
|
+
});
|
|
530
|
+
(u[l] = b), (g = `${d}_`);
|
|
531
|
+
}
|
|
532
|
+
L({ rawData: s, outRow: u, keyBase: g });
|
|
533
|
+
}
|
|
534
|
+
return u;
|
|
535
|
+
})
|
|
536
|
+
);
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
case c.BoxPlotMonoFieldAndSplitBy:
|
|
540
|
+
case c.BoxPlotMultiFieldsAndSplitBy:
|
|
541
|
+
case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
542
|
+
y = t.flatMap((s) => {
|
|
543
|
+
if (s[C.boxPlot.boxPlotOutlierId]) {
|
|
544
|
+
const d = {};
|
|
545
|
+
return (
|
|
546
|
+
M({
|
|
547
|
+
rawData: s,
|
|
548
|
+
outRow: d,
|
|
549
|
+
config: e,
|
|
550
|
+
boxPlotSubType: o,
|
|
551
|
+
}),
|
|
552
|
+
[d]
|
|
553
|
+
);
|
|
554
|
+
} else
|
|
555
|
+
return s[C.boxPlot.boxPlotMeanLineMarkerId]
|
|
556
|
+
? x?.map((d) => {
|
|
557
|
+
const u = {};
|
|
558
|
+
return (
|
|
559
|
+
be({
|
|
560
|
+
rawData: s,
|
|
561
|
+
outRow: u,
|
|
562
|
+
splitByValue: d,
|
|
563
|
+
config: e,
|
|
564
|
+
}),
|
|
565
|
+
u
|
|
566
|
+
);
|
|
567
|
+
})
|
|
568
|
+
: x.map((d) => {
|
|
569
|
+
const u = {};
|
|
570
|
+
if (o === c.BoxPlotMonoFieldAndCategoryAndSplitBy) {
|
|
571
|
+
const g = $({
|
|
572
|
+
field: l,
|
|
573
|
+
value: s[l],
|
|
574
|
+
fieldList: r,
|
|
575
|
+
});
|
|
576
|
+
u[l] = g;
|
|
577
|
+
}
|
|
578
|
+
return (
|
|
579
|
+
s[C.boxPlot.boxPlotOutlierId]
|
|
580
|
+
? M({
|
|
581
|
+
rawData: s,
|
|
582
|
+
outRow: u,
|
|
583
|
+
config: e,
|
|
584
|
+
boxPlotSubType: o,
|
|
585
|
+
})
|
|
586
|
+
: ((u[p] = d),
|
|
587
|
+
L({ rawData: s, outRow: u, keyBase: `${d}_` })),
|
|
588
|
+
u
|
|
589
|
+
);
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
default:
|
|
595
|
+
y = t;
|
|
596
|
+
}
|
|
597
|
+
return y;
|
|
598
|
+
}
|
|
599
|
+
const G = (n) => {
|
|
600
|
+
let e = !1;
|
|
601
|
+
return (
|
|
602
|
+
(typeof n == "string" || typeof n == "number") &&
|
|
603
|
+
(e = !Number.isNaN(new Date(n).getTime())),
|
|
604
|
+
e
|
|
605
|
+
);
|
|
606
|
+
},
|
|
607
|
+
$ = (n) => {
|
|
608
|
+
const { field: e, value: t, fieldList: r } = n;
|
|
609
|
+
let i = t;
|
|
610
|
+
const o = r?.find((a) => a.name === e);
|
|
611
|
+
if (o) {
|
|
612
|
+
const a = o.type === te.DateOnly;
|
|
613
|
+
J(o) && !a
|
|
614
|
+
? (i = G(t) ? new Date(t).toISOString() : t)
|
|
615
|
+
: a &&
|
|
616
|
+
typeof t != "string" &&
|
|
617
|
+
(i = G(t) ? new Date(t).toISOString().split("T")[0] : t);
|
|
618
|
+
}
|
|
619
|
+
return i;
|
|
620
|
+
};
|
|
621
|
+
function je() {
|
|
622
|
+
const n = () => (((1 + Math.random()) * 65536) | 0).toString(16).substring(1);
|
|
623
|
+
return `${n() + n()}-${n()}-${n()}-${n()}-${n()}${n()}${n()}`;
|
|
624
|
+
}
|
|
625
|
+
export {
|
|
626
|
+
Re as D,
|
|
627
|
+
de as a,
|
|
628
|
+
Ne as b,
|
|
629
|
+
je as g,
|
|
630
|
+
Ke as h,
|
|
631
|
+
ke as m,
|
|
632
|
+
Ve as s,
|
|
633
|
+
Ie as t,
|
|
634
|
+
};
|