@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,929 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { c as N } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as V } from "lit/directives/repeat.js";
|
|
4
|
+
import { keyed as $ } from "lit/directives/keyed.js";
|
|
5
|
+
import { c as U } from "../../chunks/setup-utils.js";
|
|
6
|
+
import {
|
|
7
|
+
b as S,
|
|
8
|
+
a as b,
|
|
9
|
+
g as _,
|
|
10
|
+
r as v,
|
|
11
|
+
l as T,
|
|
12
|
+
} from "../../chunks/type-guards.js";
|
|
13
|
+
import { i as H } from "../../chunks/rotated-state.js";
|
|
14
|
+
import "@geoscene/toolkit/intl";
|
|
15
|
+
import { isEqual as w } from "lodash-es";
|
|
16
|
+
import "luxon";
|
|
17
|
+
import {
|
|
18
|
+
_ as D,
|
|
19
|
+
dk as k,
|
|
20
|
+
d6 as F,
|
|
21
|
+
ds as z,
|
|
22
|
+
du as O,
|
|
23
|
+
ag as R,
|
|
24
|
+
} from "../../chunks/index.js";
|
|
25
|
+
import "@geoscene/core/geometry/support/jsonUtils.js";
|
|
26
|
+
import "@geoscene/core/rest/support/AttributeBinsQuery.js";
|
|
27
|
+
import "@geoscene/core/rest/support/StatisticDefinition.js";
|
|
28
|
+
import "@geoscene/core/time/TimeExtent.js";
|
|
29
|
+
import "@geoscene/toolkit/type";
|
|
30
|
+
import { W as o, i as W } from "../../chunks/series-types.js";
|
|
31
|
+
import "@geoscene/core/Graphic.js";
|
|
32
|
+
import "@geoscene/core/renderers/support/jsonUtils.js";
|
|
33
|
+
import "@geoscene/core/symbols/support/symbolUtils.js";
|
|
34
|
+
import "d3-array";
|
|
35
|
+
import { substitute as G } from "@geoscene/core/intl.js";
|
|
36
|
+
import "@geoscene/core/layers/support/FeatureFilter.js";
|
|
37
|
+
import "@geoscene/core/smartMapping/statistics/histogram.js";
|
|
38
|
+
import "@geoscene/core/smartMapping/statistics/summaryStatistics.js";
|
|
39
|
+
import "simple-statistics";
|
|
40
|
+
import "@geoscene/core/request.js";
|
|
41
|
+
import "@geoscene/core/core/sql.js";
|
|
42
|
+
import "@geoscene/core/AttributeBinsGraphic.js";
|
|
43
|
+
import "@geoscene/core/core/promiseUtils.js";
|
|
44
|
+
import "@geoscene/toolkit/dom";
|
|
45
|
+
import { C as f } from "../../chunks/index5.js";
|
|
46
|
+
import { a as L } from "../../chunks/chart-ui-utils.js";
|
|
47
|
+
import { r as X } from "../../chunks/popover-ui-utils.js";
|
|
48
|
+
import { C as l } from "../../chunks/interfaces.js";
|
|
49
|
+
import {
|
|
50
|
+
LitElement as Z,
|
|
51
|
+
createEvent as y,
|
|
52
|
+
renderElement as I,
|
|
53
|
+
safeStyleMap as K,
|
|
54
|
+
safeClassMap as d,
|
|
55
|
+
} from "@geoscene/lumina";
|
|
56
|
+
import { css as j, html as h } from "lit";
|
|
57
|
+
import { createRef as q, ref as Y } from "lit/directives/ref.js";
|
|
58
|
+
import { u as P } from "../../chunks/useT9n.js";
|
|
59
|
+
import { b as Q, s as x, g as J } from "../../chunks/store.js";
|
|
60
|
+
import { h as ee, a as M, s as te } from "../../chunks/web-component-utils.js";
|
|
61
|
+
import { A as ae } from "../../chunks/axis-model-wrapper.js";
|
|
62
|
+
import { d as ie } from "../../chunks/chart-ui-utils2.js";
|
|
63
|
+
const m = {
|
|
64
|
+
chartUIComponent: "chart-ui-component",
|
|
65
|
+
tabBar: "tab-bar",
|
|
66
|
+
tab: "tab",
|
|
67
|
+
};
|
|
68
|
+
function B(p, e) {
|
|
69
|
+
const a = /* @__PURE__ */ new Set();
|
|
70
|
+
let t = e;
|
|
71
|
+
return (
|
|
72
|
+
p?.forEach((i, s) => {
|
|
73
|
+
const r = i.chartId;
|
|
74
|
+
(a.has(r) || r === void 0 || r === "") &&
|
|
75
|
+
((i.chartId = `Chart_${Date.now()}_${s}`), e === r && (t = i.chartId)),
|
|
76
|
+
a.add(r);
|
|
77
|
+
}),
|
|
78
|
+
t
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function se(p, e, a) {
|
|
82
|
+
return p?.filter((t) => F(a, t.config) && t.layer?.id === e) ?? [];
|
|
83
|
+
}
|
|
84
|
+
function re(p) {
|
|
85
|
+
const { modelList: e, layerList: a, activeLayerId: t, disableEditing: i } = p,
|
|
86
|
+
s = /* @__PURE__ */ new Map();
|
|
87
|
+
return (
|
|
88
|
+
e?.forEach((r) => {
|
|
89
|
+
const n = r.layer;
|
|
90
|
+
n && s.set(n.id, n);
|
|
91
|
+
}),
|
|
92
|
+
i || a.forEach((r) => s.set(r.id, r)),
|
|
93
|
+
Array.from(s.values()).filter((r) => !t || r.id === t)
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
function oe(p, e) {
|
|
97
|
+
p.forEach((a) => {
|
|
98
|
+
e.forEach((t) => {
|
|
99
|
+
a?.id === t.layer?.id && E(a, t);
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function E(p, e) {
|
|
104
|
+
const a = p;
|
|
105
|
+
if (a) {
|
|
106
|
+
const t = [...(a?.charts ?? [])],
|
|
107
|
+
i = t?.findIndex((r) => r.id === e.chartId);
|
|
108
|
+
let s = !1;
|
|
109
|
+
i !== void 0 && i > -1
|
|
110
|
+
? ((s = !w(t[i], e.config)), (t[i] = e.config))
|
|
111
|
+
: a && !D(e.config) && ((s = !0), t.push(e.config)),
|
|
112
|
+
s && (a.charts = t);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function le(p, e) {
|
|
116
|
+
const a = p;
|
|
117
|
+
if (a) {
|
|
118
|
+
const t = [...(a.charts ?? [])],
|
|
119
|
+
i = t.findIndex((s) => s.id === e);
|
|
120
|
+
i > -1 && (t.splice(i, 1), (a.charts = t));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function ne(p, e) {
|
|
124
|
+
const a = p;
|
|
125
|
+
if (a) {
|
|
126
|
+
let t = [...(a.charts ?? [])];
|
|
127
|
+
(t = k({
|
|
128
|
+
arrayA: t,
|
|
129
|
+
arrayB: e.map((i) => i.config),
|
|
130
|
+
getKey: (i) => i.id ?? i.title?.content.text ?? "",
|
|
131
|
+
})),
|
|
132
|
+
(a.charts = t);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const ce = j`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
136
|
+
class he extends Z {
|
|
137
|
+
constructor() {
|
|
138
|
+
super(),
|
|
139
|
+
(this.selectChartTypePopover = null),
|
|
140
|
+
(this.chartsListFlowItem = q()),
|
|
141
|
+
(this.supportedChartTypes = [
|
|
142
|
+
o.BarSeries,
|
|
143
|
+
o.BoxPlotSeries,
|
|
144
|
+
o.LineSeries,
|
|
145
|
+
o.PieSeries,
|
|
146
|
+
o.HistogramSeries,
|
|
147
|
+
o.ScatterSeries,
|
|
148
|
+
o.HeatSeries,
|
|
149
|
+
]),
|
|
150
|
+
(this._messages = P()),
|
|
151
|
+
(this.commonStrings = P({ name: "common", blocking: !0 })),
|
|
152
|
+
(this.chartDataProcessComplete = (e) => {
|
|
153
|
+
const a = e,
|
|
154
|
+
{ chartData: t, model: i } = a.detail,
|
|
155
|
+
s = this.getModel(this.selectedChartId);
|
|
156
|
+
if (i?.isSameChartAs(s))
|
|
157
|
+
switch (s?.chartType) {
|
|
158
|
+
case o.HistogramSeries:
|
|
159
|
+
(this.chartData = t), i && (i.dataStore.chartData = t);
|
|
160
|
+
break;
|
|
161
|
+
case o.PieSeries: {
|
|
162
|
+
(this.chartData = t), i && (i.dataStore.chartData = t);
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
case o.ScatterSeries: {
|
|
166
|
+
const n = t,
|
|
167
|
+
{ dataItems: c, r2: u, aggregated: g } = n;
|
|
168
|
+
let C = u;
|
|
169
|
+
Number.isFinite(u) || (C = void 0),
|
|
170
|
+
(this.r2 = C),
|
|
171
|
+
_(i) &&
|
|
172
|
+
((i.dataStore.r2 = C),
|
|
173
|
+
(i.dataStore.aggregated = g),
|
|
174
|
+
g && (i.additionalTooltipField = void 0)),
|
|
175
|
+
(this.calculatedDataMinMaxBounds = this.getDataExtent(c)),
|
|
176
|
+
i &&
|
|
177
|
+
(i.dataStore.calculatedDataMinMaxBounds =
|
|
178
|
+
this.calculatedDataMinMaxBounds);
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
case o.LineSeries:
|
|
182
|
+
case o.BarSeries: {
|
|
183
|
+
const { dataItems: n, timeIntervalInfo: c } = t;
|
|
184
|
+
if (
|
|
185
|
+
((S(s) || (b(s) && s.binTemporalData)) &&
|
|
186
|
+
(c?.size !== void 0 &&
|
|
187
|
+
s.temporalBinningSize !== c?.size &&
|
|
188
|
+
(s.temporalBinningSize = c?.size),
|
|
189
|
+
c?.unit !== void 0 &&
|
|
190
|
+
s.temporalBinningUnit !== c?.unit &&
|
|
191
|
+
c?.unit !== W.Quarter &&
|
|
192
|
+
(s.temporalBinningUnit = c?.unit),
|
|
193
|
+
c?.size !== void 0 &&
|
|
194
|
+
c?.unit !== void 0 &&
|
|
195
|
+
Q(x, { size: c.size, unit: c.unit })),
|
|
196
|
+
(this.calculatedDataMinMaxBounds = this.getDataExtent(n)),
|
|
197
|
+
i &&
|
|
198
|
+
(i.dataStore.calculatedDataMinMaxBounds =
|
|
199
|
+
this.calculatedDataMinMaxBounds),
|
|
200
|
+
b(s))
|
|
201
|
+
) {
|
|
202
|
+
const u = s.xAxisField,
|
|
203
|
+
g = n.some((A) => A[u] === null),
|
|
204
|
+
C = s.nullCategory;
|
|
205
|
+
g && C === void 0 && (s.nullCategory = z.nullCategory);
|
|
206
|
+
}
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}),
|
|
211
|
+
(this.chartAxesMinMaxChange = (e) => {
|
|
212
|
+
const a = e,
|
|
213
|
+
{ bounds: t, model: i } = a.detail,
|
|
214
|
+
s = this.getModel(this.selectedChartId),
|
|
215
|
+
r = i?.isSameChartAs(s),
|
|
216
|
+
n = s?.chartType;
|
|
217
|
+
if (r)
|
|
218
|
+
switch (n) {
|
|
219
|
+
case o.BarSeries:
|
|
220
|
+
case o.BoxPlotSeries:
|
|
221
|
+
case o.LineSeries:
|
|
222
|
+
case o.HistogramSeries:
|
|
223
|
+
case o.ScatterSeries:
|
|
224
|
+
(this.calculatedMinMaxBounds = t),
|
|
225
|
+
i && (i.dataStore.calculatedMinMaxBounds = t),
|
|
226
|
+
this.updateAxesBoundsInAppState(t);
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
}),
|
|
230
|
+
(this.chartSeriesColorChange = (e) => {
|
|
231
|
+
const a = e,
|
|
232
|
+
{ data: t, model: i } = a.detail,
|
|
233
|
+
s = this.getModel(this.selectedChartId);
|
|
234
|
+
if (i?.isSameChartAs(s))
|
|
235
|
+
switch (s?.chartType) {
|
|
236
|
+
case o.BarSeries:
|
|
237
|
+
case o.BoxPlotSeries:
|
|
238
|
+
case o.LineSeries:
|
|
239
|
+
case o.HistogramSeries:
|
|
240
|
+
(this.seriesColor = t), i && (i.dataStore.seriesColor = t);
|
|
241
|
+
break;
|
|
242
|
+
case o.PieSeries: {
|
|
243
|
+
const n = /* @__PURE__ */ new Map([[0, t]]);
|
|
244
|
+
(this.seriesColor = n), i && (i.dataStore.seriesColor = n);
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
case o.ScatterSeries:
|
|
248
|
+
}
|
|
249
|
+
}),
|
|
250
|
+
(this.chartNoRenderPropChange = (e) => {
|
|
251
|
+
const a = e,
|
|
252
|
+
{ propName: t, value: i, model: s } = a.detail,
|
|
253
|
+
r = this.modelList.find((n) => s?.isSameChartAs(n));
|
|
254
|
+
if (r)
|
|
255
|
+
switch (t) {
|
|
256
|
+
case "rotation":
|
|
257
|
+
typeof i == "boolean" && H(r) && (r.rotatedState = i);
|
|
258
|
+
break;
|
|
259
|
+
case "legendPosition":
|
|
260
|
+
typeof i == "string" && v(r) && (r.legendPosition = i);
|
|
261
|
+
break;
|
|
262
|
+
case "legendVisibility":
|
|
263
|
+
typeof i == "boolean" && v(r) && (r.legendVisibility = i);
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
}),
|
|
267
|
+
(this.chartLegendItemVisibilityChange = (e) => {
|
|
268
|
+
const a = e,
|
|
269
|
+
{ legendItemVisibility: t, model: i } = a.detail,
|
|
270
|
+
s = this.modelList.find((r) => i?.isSameChartAs(r));
|
|
271
|
+
s?.setSeriesVisibility(t),
|
|
272
|
+
T(s) &&
|
|
273
|
+
((s.getMinBound(1) === null || Number.isNaN(s.getMinBound(1))) &&
|
|
274
|
+
s.setMinBound(null, 1),
|
|
275
|
+
(s.getMaxBound(1) === null || Number.isNaN(s.getMaxBound(1))) &&
|
|
276
|
+
s.setMaxBound(null, 1),
|
|
277
|
+
S(s) &&
|
|
278
|
+
((s.getMinBound(0) === null || Number.isNaN(s.getMinBound(0))) &&
|
|
279
|
+
s.setMinBound(null, 0),
|
|
280
|
+
(s.getMaxBound(0) === null || Number.isNaN(s.getMaxBound(0))) &&
|
|
281
|
+
s.setMaxBound(null, 0)));
|
|
282
|
+
}),
|
|
283
|
+
(this.onSelectChartTypeChange = (e) => {
|
|
284
|
+
(this.currentChartTypeText = ""),
|
|
285
|
+
(this.calculatedDataMinMaxBounds = void 0),
|
|
286
|
+
(this.calculatedMinMaxBounds = void 0),
|
|
287
|
+
this.removeSelectChartTypePopover();
|
|
288
|
+
const { selectedModelType: a, layerId: t } = e.target;
|
|
289
|
+
a !== void 0 &&
|
|
290
|
+
((this.allowChartSyncing = !0),
|
|
291
|
+
this.geosceneChartsConfigNewChart.emit({
|
|
292
|
+
key: "key",
|
|
293
|
+
chartType: a,
|
|
294
|
+
layerId: t,
|
|
295
|
+
}));
|
|
296
|
+
}),
|
|
297
|
+
(this.onAddChartClose = () => {
|
|
298
|
+
this.removeSelectChartTypePopover();
|
|
299
|
+
}),
|
|
300
|
+
(this.onModelConfigChange = (e) => {
|
|
301
|
+
if (this.syncChartsToLayers && this.allowChartSyncing) {
|
|
302
|
+
const a = e.target;
|
|
303
|
+
E(a?.layer, a);
|
|
304
|
+
}
|
|
305
|
+
this.requestUpdate();
|
|
306
|
+
}),
|
|
307
|
+
(this.allowChartSyncing = !1),
|
|
308
|
+
(this.currentChartTypeText = ""),
|
|
309
|
+
(this.modelList = []),
|
|
310
|
+
(this.layerList = []),
|
|
311
|
+
(this.disableEditing = !1),
|
|
312
|
+
(this.syncChartsToLayers = !1),
|
|
313
|
+
(this.panelNumber = 0),
|
|
314
|
+
(this.geosceneChartsConfigChartViewChartClose = y()),
|
|
315
|
+
(this.geosceneChartsConfigModelListChange = y()),
|
|
316
|
+
(this.geosceneChartsConfigNewChart = y()),
|
|
317
|
+
(this.geosceneChartsConfigPanelNumberChange = y()),
|
|
318
|
+
(this.geosceneChartsConfigSelectedChartChange = y()),
|
|
319
|
+
this.addChartEventListeners(),
|
|
320
|
+
this.listen(
|
|
321
|
+
"geosceneChartsConfigModelListReorder",
|
|
322
|
+
this.modelListReorderChangeListener
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
static {
|
|
326
|
+
this.properties = {
|
|
327
|
+
selectedPanel: 16,
|
|
328
|
+
currentChartTypeText: 16,
|
|
329
|
+
messageOverrides: 0,
|
|
330
|
+
modelList: [0, { hasChanged: M }],
|
|
331
|
+
layerList: [0, { hasChanged: M }],
|
|
332
|
+
selectedChartId: 1,
|
|
333
|
+
activeLayerId: 1,
|
|
334
|
+
disableEditing: 5,
|
|
335
|
+
syncChartsToLayers: 5,
|
|
336
|
+
timeZone: 1,
|
|
337
|
+
headerTitle: 1,
|
|
338
|
+
open: 5,
|
|
339
|
+
chartData: [0, { hasChanged: M }],
|
|
340
|
+
r2: 9,
|
|
341
|
+
calculatedDataMinMaxBounds: [0, { hasChanged: M }],
|
|
342
|
+
calculatedMinMaxBounds: [0, { hasChanged: M }],
|
|
343
|
+
seriesColor: [0, { hasChanged: ee }],
|
|
344
|
+
popoverPlacement: 1,
|
|
345
|
+
usePopupTemplateFieldsInfo: 5,
|
|
346
|
+
panelNumber: 9,
|
|
347
|
+
filterBySelection: 5,
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
static {
|
|
351
|
+
this.styles = ce;
|
|
352
|
+
}
|
|
353
|
+
async setFocus() {
|
|
354
|
+
await this.chartsListFlowItem.value?.setFocus();
|
|
355
|
+
}
|
|
356
|
+
async load() {
|
|
357
|
+
await this.layerListChange();
|
|
358
|
+
const e = this.getModel(this.selectedChartId);
|
|
359
|
+
this.setEventBasedPropsFromModelData(e);
|
|
360
|
+
}
|
|
361
|
+
willUpdate(e) {
|
|
362
|
+
e.has("layerList") && this.layerListChange(),
|
|
363
|
+
e.has("panelNumber") && this.panelNumberChange(this.panelNumber),
|
|
364
|
+
e.has("modelList") &&
|
|
365
|
+
this.modelListChange(this.modelList, e.get("modelList")),
|
|
366
|
+
e.has("selectedChartId") &&
|
|
367
|
+
this.selectedChartIdChange(this.selectedChartId);
|
|
368
|
+
}
|
|
369
|
+
disconnectedCallback() {
|
|
370
|
+
super.disconnectedCallback(),
|
|
371
|
+
this.clearPartialModels(),
|
|
372
|
+
this.removeSelectChartTypePopover();
|
|
373
|
+
}
|
|
374
|
+
modelListReorderChangeListener(e) {
|
|
375
|
+
const { modelList: a } = e.detail;
|
|
376
|
+
if (
|
|
377
|
+
((this.modelList = k({
|
|
378
|
+
arrayA: this.modelList,
|
|
379
|
+
arrayB: a,
|
|
380
|
+
getKey: (t) => t.chartId ?? t.titleText ?? "",
|
|
381
|
+
})),
|
|
382
|
+
this.syncChartsToLayers)
|
|
383
|
+
) {
|
|
384
|
+
const t = a.find((i) => i.layer?.id !== void 0)?.layer?.id;
|
|
385
|
+
if (t) {
|
|
386
|
+
const i = this.layerList.find((s) => s.id.toString() === t);
|
|
387
|
+
i && ne(i, a);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
async layerListChange() {
|
|
392
|
+
const e = [],
|
|
393
|
+
a = this.layerList.map((i) => i.id.toString());
|
|
394
|
+
let t = [...this.modelList.filter((i) => a.includes(i.layer?.id ?? ""))];
|
|
395
|
+
for (let i of this.layerList ?? []) {
|
|
396
|
+
if (i.type === "sublayer") {
|
|
397
|
+
const n = await i.createFeatureLayer();
|
|
398
|
+
if (!n) continue;
|
|
399
|
+
i = n;
|
|
400
|
+
}
|
|
401
|
+
const r = i.charts;
|
|
402
|
+
for (const n of r ?? []) {
|
|
403
|
+
const c = await U({
|
|
404
|
+
layer: i,
|
|
405
|
+
config: n,
|
|
406
|
+
});
|
|
407
|
+
c !== void 0 && e.push(c);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
B(e),
|
|
411
|
+
e.forEach((i) => {
|
|
412
|
+
t.find((r) => r.isSameChartAs(i)) === void 0 && t.push(i);
|
|
413
|
+
}),
|
|
414
|
+
(t = t.filter((i) => !O(i.config))),
|
|
415
|
+
(this.modelList = t);
|
|
416
|
+
}
|
|
417
|
+
modelListChange(e, a) {
|
|
418
|
+
(this.selectedChartId = B(e, this.selectedChartId)),
|
|
419
|
+
a?.forEach((i) => {
|
|
420
|
+
i.removeEventListener(
|
|
421
|
+
"geosceneChartsModelConfigChange",
|
|
422
|
+
this.onModelConfigChange
|
|
423
|
+
);
|
|
424
|
+
}),
|
|
425
|
+
e.forEach((i) => {
|
|
426
|
+
i.addEventListener(
|
|
427
|
+
"geosceneChartsModelConfigChange",
|
|
428
|
+
this.onModelConfigChange
|
|
429
|
+
);
|
|
430
|
+
});
|
|
431
|
+
const t = this.getModel(this.selectedChartId);
|
|
432
|
+
(this.currentChartTypeText =
|
|
433
|
+
t?.chartType !== void 0
|
|
434
|
+
? L({
|
|
435
|
+
chartType: t.chartType,
|
|
436
|
+
commonStrings: this.commonStrings,
|
|
437
|
+
config: t.config,
|
|
438
|
+
})
|
|
439
|
+
: ""),
|
|
440
|
+
this.syncChartsToLayers &&
|
|
441
|
+
this.allowChartSyncing &&
|
|
442
|
+
oe(this.layerList, e),
|
|
443
|
+
this.geosceneChartsConfigModelListChange.emit({ modelList: e });
|
|
444
|
+
}
|
|
445
|
+
selectedChartIdChange(e) {
|
|
446
|
+
this.selectedChartId === void 0 && (this.panelNumber = 0),
|
|
447
|
+
(this.selectedPanel = l.Data);
|
|
448
|
+
const a = this.getModel(e);
|
|
449
|
+
this.setEventBasedPropsFromModelData(a),
|
|
450
|
+
(this.currentChartTypeText =
|
|
451
|
+
a?.chartType !== void 0
|
|
452
|
+
? L({
|
|
453
|
+
chartType: a.chartType,
|
|
454
|
+
commonStrings: this.commonStrings,
|
|
455
|
+
config: a.config,
|
|
456
|
+
})
|
|
457
|
+
: ""),
|
|
458
|
+
e !== void 0 && e !== x.selectedChartId && (x.selectedChartId = e),
|
|
459
|
+
(this.allowChartSyncing = !0),
|
|
460
|
+
this.geosceneChartsConfigSelectedChartChange.emit({
|
|
461
|
+
key: "key",
|
|
462
|
+
model: a,
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
panelNumberChange(e) {
|
|
466
|
+
e === 0
|
|
467
|
+
? this.clearPartialModels()
|
|
468
|
+
: e === 1 && this.removeSelectChartTypePopover(),
|
|
469
|
+
this.geosceneChartsConfigPanelNumberChange.emit({
|
|
470
|
+
panelNumber: e,
|
|
471
|
+
modelList: this.modelList,
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
addChartEventListeners() {
|
|
475
|
+
this.listenOn(
|
|
476
|
+
document,
|
|
477
|
+
f.DataProcessComplete,
|
|
478
|
+
this.chartDataProcessComplete
|
|
479
|
+
),
|
|
480
|
+
this.listenOn(document, f.AxesMinMaxChange, this.chartAxesMinMaxChange),
|
|
481
|
+
this.listenOn(document, f.SeriesColorChange, this.chartSeriesColorChange),
|
|
482
|
+
this.listenOn(
|
|
483
|
+
document,
|
|
484
|
+
f.NoRenderPropChange,
|
|
485
|
+
this.chartNoRenderPropChange
|
|
486
|
+
),
|
|
487
|
+
this.listenOn(
|
|
488
|
+
document,
|
|
489
|
+
f.LegendItemVisibilityChange,
|
|
490
|
+
this.chartLegendItemVisibilityChange
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
getDataExtent(e) {
|
|
494
|
+
const a = this.getModel(this.selectedChartId)?.config;
|
|
495
|
+
let t = [];
|
|
496
|
+
if (a !== void 0 && e !== void 0) {
|
|
497
|
+
const i = R({
|
|
498
|
+
chartConfig: a,
|
|
499
|
+
chartData: e,
|
|
500
|
+
}),
|
|
501
|
+
{ minY: s, maxY: r, minX: n, maxX: c } = i;
|
|
502
|
+
t = [
|
|
503
|
+
{ isXAxis: !0, minimum: n, maximum: c },
|
|
504
|
+
{ isXAxis: !1, minimum: s, maximum: r },
|
|
505
|
+
];
|
|
506
|
+
}
|
|
507
|
+
return t;
|
|
508
|
+
}
|
|
509
|
+
updateAxesBoundsInAppState(e) {
|
|
510
|
+
e?.forEach((a) => {
|
|
511
|
+
const { isXAxis: t, maximum: i, minimum: s } = a,
|
|
512
|
+
r = this.getModel(this.selectedChartId);
|
|
513
|
+
if (r !== void 0 && T(r) && this.selectedChartId !== void 0) {
|
|
514
|
+
const n = new ae(r, t),
|
|
515
|
+
c = J({
|
|
516
|
+
chartId: this.selectedChartId,
|
|
517
|
+
isXAxis: t,
|
|
518
|
+
isLogarithmic: n.getLogarithmic(),
|
|
519
|
+
}),
|
|
520
|
+
u = x.chartAxesBoundDataMap;
|
|
521
|
+
u[this.selectedChartId] === void 0 && (u[this.selectedChartId] = {});
|
|
522
|
+
const g = u[this.selectedChartId]?.[c],
|
|
523
|
+
C = {
|
|
524
|
+
defaultMinBound:
|
|
525
|
+
g?.defaultMinBound === g?.currMinBound ? s : g?.defaultMinBound,
|
|
526
|
+
currMinBound: s,
|
|
527
|
+
defaultMaxBound:
|
|
528
|
+
g?.defaultMaxBound === g?.currMaxBound ? i : g?.defaultMaxBound,
|
|
529
|
+
currMaxBound: i,
|
|
530
|
+
};
|
|
531
|
+
!w(g, C) &&
|
|
532
|
+
this.selectedChartId !== void 0 &&
|
|
533
|
+
u?.[this.selectedChartId] !== void 0 &&
|
|
534
|
+
(u[this.selectedChartId][c] = C);
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
getPlacement() {
|
|
539
|
+
let e;
|
|
540
|
+
return (
|
|
541
|
+
this.popoverPlacement !== void 0
|
|
542
|
+
? (e = this.popoverPlacement)
|
|
543
|
+
: (e =
|
|
544
|
+
this.modelList?.filter((i) => F(te, i.config)).length <= 2
|
|
545
|
+
? "bottom"
|
|
546
|
+
: "top"),
|
|
547
|
+
e
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
onBackFlow() {
|
|
551
|
+
this.panelNumber -= 1;
|
|
552
|
+
}
|
|
553
|
+
onAddChartClick(e) {
|
|
554
|
+
const { referenceElement: a, layerId: t } = e.detail;
|
|
555
|
+
this.setupSelectChartTypePopover(a, t);
|
|
556
|
+
}
|
|
557
|
+
setupSelectChartTypePopover(e, a) {
|
|
558
|
+
const t = this.getPlacement();
|
|
559
|
+
this.removeSelectChartTypePopover(),
|
|
560
|
+
(this.selectChartTypePopover = I(
|
|
561
|
+
h`<geoscene-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${a} .popoverPlacement=${t} @geosceneChartsConfigPopoverClose=${this.onAddChartClose} @geosceneChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></geoscene-charts-config-select-chart-type-popover>`
|
|
562
|
+
)),
|
|
563
|
+
!document.body.contains(this.selectChartTypePopover) &&
|
|
564
|
+
this.selectChartTypePopover !== null &&
|
|
565
|
+
document.body.appendChild(this.selectChartTypePopover);
|
|
566
|
+
}
|
|
567
|
+
getModel(e) {
|
|
568
|
+
return this.modelList?.find((a) => a.chartId === e);
|
|
569
|
+
}
|
|
570
|
+
removeSelectChartTypePopover() {
|
|
571
|
+
this.selectChartTypePopover !== void 0 &&
|
|
572
|
+
(this.selectChartTypePopover?.remove(),
|
|
573
|
+
(this.selectChartTypePopover = X(this.selectChartTypePopover)));
|
|
574
|
+
}
|
|
575
|
+
clearPartialModels() {
|
|
576
|
+
this.modelList = this.modelList.filter((e) => !D(e.config));
|
|
577
|
+
}
|
|
578
|
+
onViewChartDelete(e) {
|
|
579
|
+
const { chartId: a } = e.detail;
|
|
580
|
+
if (a !== void 0) {
|
|
581
|
+
const t = this.modelList.find((s) => s.chartId === a),
|
|
582
|
+
i = this.layerList.find((s) => s.id === t?.layer?.id);
|
|
583
|
+
(this.modelList = [...this.modelList.filter((s) => s.chartId !== a)]),
|
|
584
|
+
i && this.syncChartsToLayers && this.allowChartSyncing && le(i, a);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
onViewChartsSelect(e) {
|
|
588
|
+
this.selectedChartId === e.detail.chartId &&
|
|
589
|
+
((this.allowChartSyncing = !0),
|
|
590
|
+
this.geosceneChartsConfigSelectedChartChange.emit({
|
|
591
|
+
key: "key",
|
|
592
|
+
model: this.getModel(this.selectedChartId),
|
|
593
|
+
})),
|
|
594
|
+
(this.selectedChartId = e.detail.chartId);
|
|
595
|
+
}
|
|
596
|
+
onViewChartsEdit(e) {
|
|
597
|
+
this.onViewChartsSelect(e), (this.panelNumber = 1);
|
|
598
|
+
}
|
|
599
|
+
onViewChartClose() {
|
|
600
|
+
(this.open = !1),
|
|
601
|
+
this.removeSelectChartTypePopover(),
|
|
602
|
+
this.geosceneChartsConfigChartViewChartClose.emit();
|
|
603
|
+
}
|
|
604
|
+
setEventBasedPropsFromModelData(e) {
|
|
605
|
+
(this.chartData = e?.dataStore.chartData),
|
|
606
|
+
(this.r2 = e?.dataStore.r2),
|
|
607
|
+
(this.seriesColor = e?.dataStore.seriesColor),
|
|
608
|
+
(this.calculatedMinMaxBounds = e?.dataStore.calculatedMinMaxBounds),
|
|
609
|
+
(this.calculatedDataMinMaxBounds =
|
|
610
|
+
e?.dataStore.calculatedDataMinMaxBounds);
|
|
611
|
+
}
|
|
612
|
+
createTooltip(e) {
|
|
613
|
+
const a = e.target;
|
|
614
|
+
let t = "";
|
|
615
|
+
switch (a.icon) {
|
|
616
|
+
case "configure":
|
|
617
|
+
t = this._messages.data ?? "";
|
|
618
|
+
break;
|
|
619
|
+
case "graph-bar-stacked":
|
|
620
|
+
case "graph-line-series":
|
|
621
|
+
case "box-chart-series":
|
|
622
|
+
t = this._messages.series ?? "";
|
|
623
|
+
break;
|
|
624
|
+
case "graph-pie-slice":
|
|
625
|
+
t = this._messages.slices ?? "";
|
|
626
|
+
break;
|
|
627
|
+
case "graph-axis":
|
|
628
|
+
t = this._messages.axes ?? "";
|
|
629
|
+
break;
|
|
630
|
+
case "graph-guides":
|
|
631
|
+
t = this._messages.guides ?? "";
|
|
632
|
+
break;
|
|
633
|
+
case "palette":
|
|
634
|
+
t = this._messages.format ?? "";
|
|
635
|
+
break;
|
|
636
|
+
case "text":
|
|
637
|
+
t = this._messages.general ?? "";
|
|
638
|
+
break;
|
|
639
|
+
default:
|
|
640
|
+
t = "";
|
|
641
|
+
break;
|
|
642
|
+
}
|
|
643
|
+
(this.tooltip = I(
|
|
644
|
+
h`<calcite-tooltip style=${K({
|
|
645
|
+
opacity: 1,
|
|
646
|
+
zIndex: "var(--calcite-floating-ui-z-index)",
|
|
647
|
+
})} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`
|
|
648
|
+
)),
|
|
649
|
+
document.body.appendChild(this.tooltip);
|
|
650
|
+
}
|
|
651
|
+
destroyTooltip() {
|
|
652
|
+
ie(this.tooltip);
|
|
653
|
+
}
|
|
654
|
+
renderViewCharts() {
|
|
655
|
+
const e = re({
|
|
656
|
+
modelList: this.modelList,
|
|
657
|
+
layerList: this.layerList,
|
|
658
|
+
activeLayerId: this.activeLayerId,
|
|
659
|
+
disableEditing: this.disableEditing,
|
|
660
|
+
});
|
|
661
|
+
return V(
|
|
662
|
+
e,
|
|
663
|
+
(a) => a.id,
|
|
664
|
+
(a) =>
|
|
665
|
+
h`<geoscene-charts-config-view-charts .noGroup=${
|
|
666
|
+
this.activeLayerId !== void 0
|
|
667
|
+
} .modelList=${se(
|
|
668
|
+
this.modelList,
|
|
669
|
+
a.id.toString(),
|
|
670
|
+
this.supportedChartTypes
|
|
671
|
+
)} .selectedChartId=${
|
|
672
|
+
this.selectedChartId ?? ""
|
|
673
|
+
} .layer=${a} .disableEditing=${
|
|
674
|
+
this.disableEditing
|
|
675
|
+
} @geosceneChartsConfigViewChartSelect=${
|
|
676
|
+
this.onViewChartsSelect
|
|
677
|
+
} @geosceneChartsConfigViewChartEdit=${
|
|
678
|
+
this.onViewChartsEdit
|
|
679
|
+
} @geosceneChartsConfigViewChartDelete=${
|
|
680
|
+
this.onViewChartDelete
|
|
681
|
+
} @geosceneChartsConfigViewChartAddChart=${
|
|
682
|
+
this.onAddChartClick
|
|
683
|
+
}></geoscene-charts-config-view-charts>`
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
render() {
|
|
687
|
+
return this.open !== !1
|
|
688
|
+
? h`<calcite-flow>${$(
|
|
689
|
+
"charts-list",
|
|
690
|
+
h`<calcite-flow-item .selected=${
|
|
691
|
+
this.panelNumber === 0 || this.disableEditing
|
|
692
|
+
} .heading=${
|
|
693
|
+
this.headerTitle ?? this._messages.defaultHeaderTitle
|
|
694
|
+
} closable @calciteFlowItemClose=${this.onViewChartClose} ${Y(
|
|
695
|
+
this.chartsListFlowItem
|
|
696
|
+
)}>${this.renderViewCharts()}</calcite-flow-item>`
|
|
697
|
+
)}${
|
|
698
|
+
this.panelNumber >= 1 && !this.disableEditing
|
|
699
|
+
? this.renderTabs()
|
|
700
|
+
: null
|
|
701
|
+
}</calcite-flow>`
|
|
702
|
+
: null;
|
|
703
|
+
}
|
|
704
|
+
renderTabs() {
|
|
705
|
+
const e = this.getModel(this.selectedChartId);
|
|
706
|
+
return $(
|
|
707
|
+
"chart-edit",
|
|
708
|
+
h`<calcite-flow-item .selected=${
|
|
709
|
+
this.panelNumber >= 1 && !this.disableEditing
|
|
710
|
+
} @calciteFlowItemBack=${this.onBackFlow} .heading=${
|
|
711
|
+
this._messages[this.selectedPanel ?? l.Data]
|
|
712
|
+
} .description=${
|
|
713
|
+
this.currentChartTypeText !== "" &&
|
|
714
|
+
this._messages.pageFlowTitle !== void 0
|
|
715
|
+
? G(this._messages.pageFlowTitle, {
|
|
716
|
+
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
717
|
+
layerName: e?.layer?.title ?? "",
|
|
718
|
+
})
|
|
719
|
+
: ""
|
|
720
|
+
}>${
|
|
721
|
+
e?.chartType !== void 0
|
|
722
|
+
? h`<calcite-action-bar class=${d(
|
|
723
|
+
m.tabBar
|
|
724
|
+
)} layout=horizontal expand-disabled><calcite-action class=${d(
|
|
725
|
+
m.tab
|
|
726
|
+
)} icon=configure scale=s alignment=center .active=${
|
|
727
|
+
this.selectedPanel === l.Data || this.selectedPanel === void 0
|
|
728
|
+
} @click=${() => {
|
|
729
|
+
this.selectedPanel = l.Data;
|
|
730
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
731
|
+
this.destroyTooltip
|
|
732
|
+
} text></calcite-action>${
|
|
733
|
+
e?.chartType === o.BarSeries
|
|
734
|
+
? h`<calcite-action class=${d(
|
|
735
|
+
m.tab
|
|
736
|
+
)} icon=graph-bar-stacked scale=s alignment=center .active=${
|
|
737
|
+
this.selectedPanel === l.Series
|
|
738
|
+
} @click=${() => {
|
|
739
|
+
this.selectedPanel = l.Series;
|
|
740
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
741
|
+
this.destroyTooltip
|
|
742
|
+
} text></calcite-action>`
|
|
743
|
+
: null
|
|
744
|
+
}${
|
|
745
|
+
e?.chartType === o.LineSeries
|
|
746
|
+
? h`<calcite-action class=${d(
|
|
747
|
+
m.tab
|
|
748
|
+
)} icon=graph-line-series scale=s alignment=center .active=${
|
|
749
|
+
this.selectedPanel === l.Series
|
|
750
|
+
} @click=${() => {
|
|
751
|
+
this.selectedPanel = l.Series;
|
|
752
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
753
|
+
this.destroyTooltip
|
|
754
|
+
} text></calcite-action>`
|
|
755
|
+
: null
|
|
756
|
+
}${
|
|
757
|
+
e?.chartType === o.BoxPlotSeries
|
|
758
|
+
? h`<calcite-action class=${d(
|
|
759
|
+
m.tab
|
|
760
|
+
)} icon=box-chart-series scale=s alignment=center .active=${
|
|
761
|
+
this.selectedPanel === l.Series
|
|
762
|
+
} @click=${() => {
|
|
763
|
+
this.selectedPanel = l.Series;
|
|
764
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
765
|
+
this.destroyTooltip
|
|
766
|
+
} text></calcite-action>`
|
|
767
|
+
: null
|
|
768
|
+
}${
|
|
769
|
+
e?.chartType === o.PieSeries
|
|
770
|
+
? h`<calcite-action class=${d(
|
|
771
|
+
m.tab
|
|
772
|
+
)} icon=graph-pie-slice scale=s alignment=center .active=${
|
|
773
|
+
this.selectedPanel === l.Slices
|
|
774
|
+
} @click=${() => {
|
|
775
|
+
this.selectedPanel = l.Slices;
|
|
776
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
777
|
+
this.destroyTooltip
|
|
778
|
+
} text></calcite-action>`
|
|
779
|
+
: null
|
|
780
|
+
}${
|
|
781
|
+
e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries
|
|
782
|
+
? h`<calcite-action class=${d(
|
|
783
|
+
m.tab
|
|
784
|
+
)} icon=graph-axis scale=s alignment=center .active=${
|
|
785
|
+
this.selectedPanel === l.Axes
|
|
786
|
+
} @click=${() => {
|
|
787
|
+
this.selectedPanel = l.Axes;
|
|
788
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
789
|
+
this.destroyTooltip
|
|
790
|
+
} text></calcite-action>`
|
|
791
|
+
: null
|
|
792
|
+
}${
|
|
793
|
+
e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries
|
|
794
|
+
? h`<calcite-action class=${d(
|
|
795
|
+
m.tab
|
|
796
|
+
)} icon=graph-guides scale=s alignment=center .active=${
|
|
797
|
+
this.selectedPanel === l.Guides
|
|
798
|
+
} @click=${() => {
|
|
799
|
+
this.selectedPanel = l.Guides;
|
|
800
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
801
|
+
this.destroyTooltip
|
|
802
|
+
} text></calcite-action>`
|
|
803
|
+
: null
|
|
804
|
+
}<calcite-action class=${d(
|
|
805
|
+
m.tab
|
|
806
|
+
)} icon=palette scale=s alignment=center .active=${
|
|
807
|
+
this.selectedPanel === l.Format
|
|
808
|
+
} @click=${() => {
|
|
809
|
+
this.selectedPanel = l.Format;
|
|
810
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
811
|
+
this.destroyTooltip
|
|
812
|
+
} text></calcite-action><calcite-action class=${d(
|
|
813
|
+
m.tab
|
|
814
|
+
)} icon=text scale=s alignment=center .active=${
|
|
815
|
+
this.selectedPanel === l.General
|
|
816
|
+
} @click=${() => {
|
|
817
|
+
this.selectedPanel = l.General;
|
|
818
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
819
|
+
this.destroyTooltip
|
|
820
|
+
} text></calcite-action></calcite-action-bar>`
|
|
821
|
+
: null
|
|
822
|
+
}${this.renderChartUIComponent()}</calcite-flow-item>`
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
renderChartUIComponent() {
|
|
826
|
+
const e = this.getModel(this.selectedChartId),
|
|
827
|
+
a = e?.layer;
|
|
828
|
+
let t = null;
|
|
829
|
+
if (e !== void 0 && !this.disableEditing)
|
|
830
|
+
switch (e?.chartType) {
|
|
831
|
+
case o.BarSeries:
|
|
832
|
+
t = h`<geoscene-charts-config-bar-chart class=${d(
|
|
833
|
+
m.chartUIComponent
|
|
834
|
+
)} .model=${e} .timeZone=${
|
|
835
|
+
this.timeZone
|
|
836
|
+
} .usePopupTemplateFieldsInfo=${
|
|
837
|
+
this.usePopupTemplateFieldsInfo
|
|
838
|
+
} .layer=${a} .page=${
|
|
839
|
+
this.selectedPanel ?? l.Data
|
|
840
|
+
} .calculatedMinMaxBounds=${
|
|
841
|
+
this.calculatedMinMaxBounds
|
|
842
|
+
} .seriesColor=${
|
|
843
|
+
this.seriesColor
|
|
844
|
+
}></geoscene-charts-config-bar-chart>`;
|
|
845
|
+
break;
|
|
846
|
+
case o.LineSeries:
|
|
847
|
+
t = h`<geoscene-charts-config-line-chart class=${d(
|
|
848
|
+
m.chartUIComponent
|
|
849
|
+
)} .model=${e} .timeZone=${
|
|
850
|
+
this.timeZone
|
|
851
|
+
} .usePopupTemplateFieldsInfo=${
|
|
852
|
+
this.usePopupTemplateFieldsInfo
|
|
853
|
+
} .layer=${a} .page=${
|
|
854
|
+
this.selectedPanel ?? l.Data
|
|
855
|
+
} .calculatedDataMinMaxBounds=${
|
|
856
|
+
this.calculatedDataMinMaxBounds
|
|
857
|
+
} .calculatedMinMaxBounds=${
|
|
858
|
+
this.calculatedMinMaxBounds
|
|
859
|
+
} .seriesColor=${
|
|
860
|
+
this.seriesColor
|
|
861
|
+
}></geoscene-charts-config-line-chart>`;
|
|
862
|
+
break;
|
|
863
|
+
case o.PieSeries:
|
|
864
|
+
t = h`<geoscene-charts-config-pie-chart class=${d(
|
|
865
|
+
m.chartUIComponent
|
|
866
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
867
|
+
this.usePopupTemplateFieldsInfo
|
|
868
|
+
} .layer=${a} .chartData=${this.chartData} .page=${
|
|
869
|
+
this.selectedPanel ?? l.Data
|
|
870
|
+
} .calculatedMinMaxBounds=${
|
|
871
|
+
this.calculatedMinMaxBounds
|
|
872
|
+
} .seriesColor=${this.seriesColor} .filterBySelection=${
|
|
873
|
+
this.filterBySelection
|
|
874
|
+
}></geoscene-charts-config-pie-chart>`;
|
|
875
|
+
break;
|
|
876
|
+
case o.HistogramSeries:
|
|
877
|
+
t = h`<geoscene-charts-config-histogram class=${d(
|
|
878
|
+
m.chartUIComponent
|
|
879
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
880
|
+
this.usePopupTemplateFieldsInfo
|
|
881
|
+
} .layer=${a} .page=${this.selectedPanel ?? l.Data} .chartData=${
|
|
882
|
+
this.chartData
|
|
883
|
+
} .calculatedMinMaxBounds=${
|
|
884
|
+
this.calculatedMinMaxBounds
|
|
885
|
+
} .seriesColor=${
|
|
886
|
+
this.seriesColor
|
|
887
|
+
}></geoscene-charts-config-histogram>`;
|
|
888
|
+
break;
|
|
889
|
+
case o.ScatterSeries:
|
|
890
|
+
t = h`<geoscene-charts-config-scatter-plot class=${d(
|
|
891
|
+
m.chartUIComponent
|
|
892
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
893
|
+
this.usePopupTemplateFieldsInfo
|
|
894
|
+
} .layer=${a} .page=${this.selectedPanel ?? l.Data} .r2=${
|
|
895
|
+
this.r2
|
|
896
|
+
} .calculatedDataMinMaxBounds=${
|
|
897
|
+
this.calculatedDataMinMaxBounds
|
|
898
|
+
} .calculatedMinMaxBounds=${
|
|
899
|
+
this.calculatedMinMaxBounds
|
|
900
|
+
}></geoscene-charts-config-scatter-plot>`;
|
|
901
|
+
break;
|
|
902
|
+
case o.BoxPlotSeries:
|
|
903
|
+
t = h`<geoscene-charts-config-box-plot class=${d(
|
|
904
|
+
m.chartUIComponent
|
|
905
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
906
|
+
this.usePopupTemplateFieldsInfo
|
|
907
|
+
} .layer=${a} .page=${
|
|
908
|
+
this.selectedPanel ?? l.Data
|
|
909
|
+
} .calculatedMinMaxBounds=${
|
|
910
|
+
this.calculatedMinMaxBounds
|
|
911
|
+
} .seriesColor=${
|
|
912
|
+
this.seriesColor
|
|
913
|
+
}></geoscene-charts-config-box-plot>`;
|
|
914
|
+
break;
|
|
915
|
+
case o.HeatSeries:
|
|
916
|
+
t = h`<geoscene-charts-config-heat-chart class=${d(
|
|
917
|
+
m.chartUIComponent
|
|
918
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
919
|
+
this.usePopupTemplateFieldsInfo
|
|
920
|
+
} .layer=${a} .page=${
|
|
921
|
+
this.selectedPanel ?? l.Data
|
|
922
|
+
}></geoscene-charts-config-heat-chart>`;
|
|
923
|
+
break;
|
|
924
|
+
}
|
|
925
|
+
return t;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
N("geoscene-charts-config-create-flow", he);
|
|
929
|
+
export { he as GeosceneChartsConfigCreateFlow };
|