@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,18 @@
|
|
|
1
|
+
import "../geoscene-charts-config-heat-chart-popover/index.js";
|
|
2
|
+
import "../geoscene-charts-config-field-select/index.js";
|
|
3
|
+
import "@geoscene/calcite-components/components/calcite-table";
|
|
4
|
+
import "@geoscene/calcite-components/components/calcite-table-row";
|
|
5
|
+
import "@geoscene/calcite-components/components/calcite-table-header";
|
|
6
|
+
import "@geoscene/calcite-components/components/calcite-table-cell";
|
|
7
|
+
import "@geoscene/calcite-components/components/calcite-swatch";
|
|
8
|
+
import "@geoscene/calcite-components/components/calcite-list";
|
|
9
|
+
import "@geoscene/calcite-components/components/calcite-list-item";
|
|
10
|
+
import "@geoscene/calcite-components/components/calcite-icon";
|
|
11
|
+
import "@geoscene/calcite-components/components/calcite-radio-button-group";
|
|
12
|
+
import "@geoscene/calcite-components/components/calcite-label";
|
|
13
|
+
import "@geoscene/calcite-components/components/calcite-radio-button";
|
|
14
|
+
import "@geoscene/calcite-components/components/calcite-input";
|
|
15
|
+
import "@geoscene/calcite-components/components/calcite-accordion";
|
|
16
|
+
import "@geoscene/calcite-components/components/calcite-accordion-item";
|
|
17
|
+
import "@geoscene/calcite-components/components/calcite-switch";
|
|
18
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { c as w } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as d } from "lit/directives/repeat.js";
|
|
4
|
+
import { css as F, html as l } from "lit";
|
|
5
|
+
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
|
+
import L from "@geoscene/core/Color.js";
|
|
7
|
+
import {
|
|
8
|
+
LitElement as P,
|
|
9
|
+
createEvent as h,
|
|
10
|
+
safeClassMap as r,
|
|
11
|
+
nothing as g,
|
|
12
|
+
safeStyleMap as S,
|
|
13
|
+
} from "@geoscene/lumina";
|
|
14
|
+
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
15
|
+
import { isEqual as A } from "lodash-es";
|
|
16
|
+
import {
|
|
17
|
+
by as D,
|
|
18
|
+
d3 as E,
|
|
19
|
+
bT as _,
|
|
20
|
+
bS as N,
|
|
21
|
+
ds as b,
|
|
22
|
+
ar as B,
|
|
23
|
+
} from "../../chunks/index.js";
|
|
24
|
+
import { u as v } from "../../chunks/useT9n.js";
|
|
25
|
+
import { d as c, W as $ } from "../../chunks/interfaces.js";
|
|
26
|
+
import "@geoscene/toolkit/type";
|
|
27
|
+
import { a as M, u as y, v as C } from "../../chunks/series-types.js";
|
|
28
|
+
import { R as H } from "../../chunks/rest-js-object-literals.js";
|
|
29
|
+
import "@geoscene/toolkit/intl";
|
|
30
|
+
import "luxon";
|
|
31
|
+
import "d3-array";
|
|
32
|
+
import "@geoscene/core/Graphic.js";
|
|
33
|
+
import "@geoscene/core/renderers/support/jsonUtils.js";
|
|
34
|
+
import "@geoscene/core/symbols/support/symbolUtils.js";
|
|
35
|
+
import "@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/geometry/support/jsonUtils.js";
|
|
44
|
+
import "@geoscene/core/rest/support/AttributeBinsQuery.js";
|
|
45
|
+
import "@geoscene/core/rest/support/StatisticDefinition.js";
|
|
46
|
+
import "@geoscene/core/time/TimeExtent.js";
|
|
47
|
+
import "@geoscene/core/core/promiseUtils.js";
|
|
48
|
+
import "@geoscene/toolkit/dom";
|
|
49
|
+
import { e as O } from "../../chunks/popover-ui-utils.js";
|
|
50
|
+
import { b as x, a as k, c as m } from "../../chunks/chart-ui-utils2.js";
|
|
51
|
+
import { C as R, e as T } from "../../chunks/class-breaks.js";
|
|
52
|
+
const j = F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--geoscene-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`,
|
|
53
|
+
s = {
|
|
54
|
+
jsAppFlyout: "js-app-flyout",
|
|
55
|
+
name: "bar-chart-data-popover",
|
|
56
|
+
header: "header",
|
|
57
|
+
pickListItemLabel: "pick-list-item-label",
|
|
58
|
+
panel: "panel",
|
|
59
|
+
colorRampPopover: "color-ramp-popover",
|
|
60
|
+
colorRampToolbar: "color-ramp-toolbar",
|
|
61
|
+
rampGrid: "ramp-grid",
|
|
62
|
+
rampItem: "ramp-item",
|
|
63
|
+
rampName: "ramp-name",
|
|
64
|
+
rampStrips: "ramp-strips",
|
|
65
|
+
rampStrip: "ramp-strip",
|
|
66
|
+
rampStripFallback: "ramp-strip-fallback",
|
|
67
|
+
rampEmpty: "ramp-empty",
|
|
68
|
+
panelChildrenContainer: "panel-children-container",
|
|
69
|
+
colorRampPopoverFooter: "color-ramp-popover-footer",
|
|
70
|
+
};
|
|
71
|
+
class q extends P {
|
|
72
|
+
constructor() {
|
|
73
|
+
super(...arguments),
|
|
74
|
+
(this._messages = v()),
|
|
75
|
+
(this.commonStrings = v({ name: "common", blocking: !0 })),
|
|
76
|
+
(this.picklist = u()),
|
|
77
|
+
(this.popoverElement = u()),
|
|
78
|
+
(this.placement = "leading"),
|
|
79
|
+
(this.offsetDistance = -200),
|
|
80
|
+
(this.availableColorRamps = []),
|
|
81
|
+
(this.selectedCategory = R.all),
|
|
82
|
+
(this.aggregationLabels = []),
|
|
83
|
+
(this.isFlipped = !1),
|
|
84
|
+
(this.layerFieldsInfo = []),
|
|
85
|
+
(this.geosceneChartsConfigHeatChartColorRampChange = h()),
|
|
86
|
+
(this.geosceneChartsConfigHeatChartDataPopoverChange = h()),
|
|
87
|
+
(this.geosceneChartsConfigPopoverClose = h()),
|
|
88
|
+
(this.geosceneChartsConfigPopoverEmptyCellColorChange = h()),
|
|
89
|
+
(this.geosceneChartsConfigPopoverEmptyCellNameChange = h());
|
|
90
|
+
}
|
|
91
|
+
static {
|
|
92
|
+
this.properties = {
|
|
93
|
+
availableColorRamps: 16,
|
|
94
|
+
selectedColorRampName: 16,
|
|
95
|
+
selectedCategory: 16,
|
|
96
|
+
aggregationLabels: 16,
|
|
97
|
+
isFlipped: 5,
|
|
98
|
+
model: 0,
|
|
99
|
+
messageOverrides: 0,
|
|
100
|
+
headingTitle: 1,
|
|
101
|
+
referenceElement: 0,
|
|
102
|
+
open: 5,
|
|
103
|
+
contentKind: 1,
|
|
104
|
+
layerFieldsInfo: 0,
|
|
105
|
+
selectedContent: 1,
|
|
106
|
+
colorRamps: 0,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
static {
|
|
110
|
+
this.styles = j;
|
|
111
|
+
}
|
|
112
|
+
async reposition() {
|
|
113
|
+
await this.popoverElement.value?.reposition();
|
|
114
|
+
}
|
|
115
|
+
willUpdate() {
|
|
116
|
+
const e = x.map((t) => D(t, this.commonStrings));
|
|
117
|
+
A(this.aggregationLabels, e) || (this.aggregationLabels = e),
|
|
118
|
+
this.colorRamps &&
|
|
119
|
+
this.colorRamps !== this.availableColorRamps &&
|
|
120
|
+
(this.availableColorRamps = this.colorRamps),
|
|
121
|
+
this.contentKind === c.colorScheme &&
|
|
122
|
+
this.selectedContent &&
|
|
123
|
+
!this.selectedColorRampName &&
|
|
124
|
+
(this.selectedColorRampName = this.selectedContent);
|
|
125
|
+
}
|
|
126
|
+
updated() {
|
|
127
|
+
setTimeout(() => {
|
|
128
|
+
this.picklist.value?.setFocus();
|
|
129
|
+
}, k.PopoverTimer),
|
|
130
|
+
O(this.popoverElement.value, this.open),
|
|
131
|
+
this.hasUpdated ||
|
|
132
|
+
setTimeout(() => {
|
|
133
|
+
this.popoverElement.value?.reposition();
|
|
134
|
+
}, k.PopoverTimer);
|
|
135
|
+
}
|
|
136
|
+
buildAggregationListItems() {
|
|
137
|
+
return d(
|
|
138
|
+
x.filter((e) => e !== M.NoAggregation),
|
|
139
|
+
(e) => e,
|
|
140
|
+
(e, t) =>
|
|
141
|
+
l`<calcite-list-item .label=${
|
|
142
|
+
this.aggregationLabels[t]
|
|
143
|
+
} .value=${e} .selected=${m(
|
|
144
|
+
e,
|
|
145
|
+
this.selectedContent
|
|
146
|
+
)}></calcite-list-item>`
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
buildPickListItem(e) {
|
|
150
|
+
return f(
|
|
151
|
+
e.name,
|
|
152
|
+
l`<calcite-list-item .label=${E(this.layerFieldsInfo, e.name)} .value=${
|
|
153
|
+
e.name
|
|
154
|
+
} .selected=${m(e.name, this.selectedContent)}></calcite-list-item>`
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
buildPickListItems(e) {
|
|
158
|
+
const t = this.layerFieldsInfo?.length ?? 0,
|
|
159
|
+
a = [];
|
|
160
|
+
switch (e) {
|
|
161
|
+
case c.numericFields: {
|
|
162
|
+
const i = f(
|
|
163
|
+
" ",
|
|
164
|
+
l`<calcite-list-item label=" " value=" " .selected=${m(
|
|
165
|
+
"",
|
|
166
|
+
this.selectedContent
|
|
167
|
+
)}></calcite-list-item>`
|
|
168
|
+
);
|
|
169
|
+
a.push(i);
|
|
170
|
+
for (let o = 0; o < t; o += 1) {
|
|
171
|
+
const n = this.layerFieldsInfo?.[o];
|
|
172
|
+
n && N(n) && a.push(this.buildPickListItem(n));
|
|
173
|
+
}
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
case c.xAxisField: {
|
|
177
|
+
for (let i = 0; i < t; i += 1) {
|
|
178
|
+
const o = this.layerFieldsInfo?.[i];
|
|
179
|
+
o && _(o) && a.push(this.buildPickListItem(o));
|
|
180
|
+
}
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return a;
|
|
185
|
+
}
|
|
186
|
+
closePopover() {
|
|
187
|
+
(this.open = !1), this.geosceneChartsConfigPopoverClose.emit();
|
|
188
|
+
}
|
|
189
|
+
onDataContentTypeChange(e) {
|
|
190
|
+
const t = e.target.selectedItems;
|
|
191
|
+
this.geosceneChartsConfigHeatChartDataPopoverChange.emit({
|
|
192
|
+
contentKind: this.contentKind,
|
|
193
|
+
// TODO: check this logic
|
|
194
|
+
value: t.map((a) => a.value)[0],
|
|
195
|
+
}),
|
|
196
|
+
(this.open = !1);
|
|
197
|
+
}
|
|
198
|
+
filterColorRamps() {
|
|
199
|
+
let e = [];
|
|
200
|
+
if (this.selectedCategory === R.all) e = this.availableColorRamps;
|
|
201
|
+
else {
|
|
202
|
+
const t = T[this.selectedCategory];
|
|
203
|
+
e = this.availableColorRamps?.filter((a) =>
|
|
204
|
+
t.some((i) => a.tags.includes(i))
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
return e;
|
|
208
|
+
}
|
|
209
|
+
getRampColors(e) {
|
|
210
|
+
const t = e.colors;
|
|
211
|
+
return this.isFlipped ? [...t].reverse() : t;
|
|
212
|
+
}
|
|
213
|
+
rampColorToCss(e) {
|
|
214
|
+
let t = "#000000";
|
|
215
|
+
try {
|
|
216
|
+
if (e) {
|
|
217
|
+
if (e instanceof L) {
|
|
218
|
+
const a = e.toHex();
|
|
219
|
+
typeof a == "string" && a.length && (t = a);
|
|
220
|
+
} else if (Array.isArray(e)) {
|
|
221
|
+
const [a, i, o, n] = e;
|
|
222
|
+
[a, i, o].every((I) => typeof I == "number") &&
|
|
223
|
+
(t = `rgba(${a},${i},${o},${n ?? 1})`);
|
|
224
|
+
} else if (typeof e == "object" && e) {
|
|
225
|
+
const { r: a, g: i, b: o, a: n } = e;
|
|
226
|
+
if (a != null && i != null && o != null)
|
|
227
|
+
return `rgba(${a},${i},${o},${n ?? 1})`;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
} catch {}
|
|
231
|
+
return t;
|
|
232
|
+
}
|
|
233
|
+
onCategoryDropdownSelect(e) {
|
|
234
|
+
const i = e.target.selectedItems[0]?.getAttribute("data-tag");
|
|
235
|
+
i && (this.selectedCategory = i);
|
|
236
|
+
}
|
|
237
|
+
onFlipAll() {
|
|
238
|
+
if (((this.isFlipped = !this.isFlipped), this.selectedColorRampName)) {
|
|
239
|
+
const e = this.availableColorRamps.find(
|
|
240
|
+
(t) => t.name === this.selectedColorRampName
|
|
241
|
+
);
|
|
242
|
+
if (e) {
|
|
243
|
+
const t = {
|
|
244
|
+
...e,
|
|
245
|
+
colors: this.getRampColors(e),
|
|
246
|
+
};
|
|
247
|
+
this.geosceneChartsConfigHeatChartColorRampChange.emit({
|
|
248
|
+
rampName: e.name,
|
|
249
|
+
ramp: t,
|
|
250
|
+
isFlipped: this.isFlipped,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
onRampSelect(e) {
|
|
256
|
+
this.selectedColorRampName = e.name;
|
|
257
|
+
const t = { ...e, colors: this.getRampColors(e) };
|
|
258
|
+
this.geosceneChartsConfigHeatChartColorRampChange.emit({
|
|
259
|
+
rampName: e.name,
|
|
260
|
+
ramp: t,
|
|
261
|
+
isFlipped: this.isFlipped,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
nameChange(e) {
|
|
265
|
+
const t = e.target.value;
|
|
266
|
+
this.model.emptyCellText !== t &&
|
|
267
|
+
((this.model.emptyCellText = t),
|
|
268
|
+
this.geosceneChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
269
|
+
}
|
|
270
|
+
colorChange(e) {
|
|
271
|
+
const t = e instanceof CustomEvent ? e.detail : e,
|
|
272
|
+
[a, i, o] = t,
|
|
273
|
+
n = B * 255;
|
|
274
|
+
this.geosceneChartsConfigPopoverEmptyCellColorChange.emit({
|
|
275
|
+
color: [a, i, o, n],
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
renderAggregationType() {
|
|
279
|
+
const e = this.buildAggregationListItems();
|
|
280
|
+
return l`<calcite-list label class=${r(
|
|
281
|
+
s.pickListItemLabel
|
|
282
|
+
)} selection-mode=single selection-appearance=border @calciteListChange=${
|
|
283
|
+
this.onDataContentTypeChange
|
|
284
|
+
}>${e}</calcite-list>`;
|
|
285
|
+
}
|
|
286
|
+
renderXAxisFieldSelect() {
|
|
287
|
+
const e = this.buildPickListItems(c.xAxisField);
|
|
288
|
+
return l`<calcite-list label class=${r(
|
|
289
|
+
s.pickListItemLabel
|
|
290
|
+
)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${
|
|
291
|
+
this.onDataContentTypeChange
|
|
292
|
+
} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
293
|
+
}
|
|
294
|
+
renderNumericFields() {
|
|
295
|
+
const e = this.buildPickListItems(c.numericFields);
|
|
296
|
+
return l`<calcite-list label class=${r(
|
|
297
|
+
s.pickListItemLabel
|
|
298
|
+
)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${
|
|
299
|
+
this.onDataContentTypeChange
|
|
300
|
+
} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
301
|
+
}
|
|
302
|
+
renderCalendarType() {
|
|
303
|
+
const e = this.layerFieldsInfo.find(
|
|
304
|
+
(i) => i.name === this.model.xAxisField
|
|
305
|
+
),
|
|
306
|
+
t = Object.values($).filter(
|
|
307
|
+
(i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== H.DateOnly
|
|
308
|
+
),
|
|
309
|
+
a = d(
|
|
310
|
+
t,
|
|
311
|
+
(i) => i,
|
|
312
|
+
(i) => {
|
|
313
|
+
const o = this._messages[i];
|
|
314
|
+
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(
|
|
315
|
+
i,
|
|
316
|
+
this.selectedContent
|
|
317
|
+
)}></calcite-list-item>`;
|
|
318
|
+
}
|
|
319
|
+
);
|
|
320
|
+
return l`<calcite-list label class=${r(
|
|
321
|
+
s.pickListItemLabel
|
|
322
|
+
)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${
|
|
323
|
+
this.onDataContentTypeChange
|
|
324
|
+
} ${p(this.picklist)}>${a}</calcite-list>`;
|
|
325
|
+
}
|
|
326
|
+
renderCalendarViewType() {
|
|
327
|
+
const e = d(
|
|
328
|
+
Object.values(y),
|
|
329
|
+
(t) => t,
|
|
330
|
+
(t) => {
|
|
331
|
+
const a = this._messages[t];
|
|
332
|
+
return l`<calcite-list-item .label=${a} .value=${t} .disabled=${
|
|
333
|
+
t !== y.singleCalendarView
|
|
334
|
+
} .selected=${m(t, this.selectedContent)}></calcite-list-item>`;
|
|
335
|
+
}
|
|
336
|
+
);
|
|
337
|
+
return l`<calcite-list label class=${r(
|
|
338
|
+
s.pickListItemLabel
|
|
339
|
+
)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${
|
|
340
|
+
this.onDataContentTypeChange
|
|
341
|
+
} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
342
|
+
}
|
|
343
|
+
renderClassBreakMethod() {
|
|
344
|
+
const e = [
|
|
345
|
+
{
|
|
346
|
+
value: C.naturalBreaks,
|
|
347
|
+
title: this._messages?.classBreaksMethod?.naturalBreaks,
|
|
348
|
+
msg: this._messages?.classBreaksMethod?.naturalBreaksMsg,
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
value: C.equalInterval,
|
|
352
|
+
title: this._messages?.classBreaksMethod?.equalInterval,
|
|
353
|
+
msg: this._messages?.classBreaksMethod?.equalIntervalMsg,
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
value: C.quantile,
|
|
357
|
+
title: this._messages?.classBreaksMethod?.quantile,
|
|
358
|
+
msg: this._messages?.classBreaksMethod?.quantileMsg,
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
t = d(
|
|
362
|
+
Object.values(e),
|
|
363
|
+
({ value: a }) => a,
|
|
364
|
+
(a) => {
|
|
365
|
+
const { title: i, msg: o, value: n } = a;
|
|
366
|
+
return l`<calcite-list-item .label=${i} .description=${o} .value=${n} .selected=${m(
|
|
367
|
+
n,
|
|
368
|
+
this.selectedContent
|
|
369
|
+
)}></calcite-list-item>`;
|
|
370
|
+
}
|
|
371
|
+
);
|
|
372
|
+
return l`<calcite-list label class=${r(
|
|
373
|
+
s.pickListItemLabel
|
|
374
|
+
)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${
|
|
375
|
+
this.onDataContentTypeChange
|
|
376
|
+
} ${p(this.picklist)}>${t}</calcite-list>`;
|
|
377
|
+
}
|
|
378
|
+
renderPopoverInfo() {
|
|
379
|
+
let e;
|
|
380
|
+
switch (this.contentKind) {
|
|
381
|
+
case c.aggregation:
|
|
382
|
+
e = this.renderAggregationType();
|
|
383
|
+
break;
|
|
384
|
+
case c.numericFields:
|
|
385
|
+
e = this.renderNumericFields();
|
|
386
|
+
break;
|
|
387
|
+
case c.xAxisField:
|
|
388
|
+
e = this.renderXAxisFieldSelect();
|
|
389
|
+
break;
|
|
390
|
+
case c.calendarType:
|
|
391
|
+
e = this.renderCalendarType();
|
|
392
|
+
break;
|
|
393
|
+
case c.calendarViewType:
|
|
394
|
+
e = this.renderCalendarViewType();
|
|
395
|
+
break;
|
|
396
|
+
case c.classBreakMethod:
|
|
397
|
+
e = this.renderClassBreakMethod();
|
|
398
|
+
break;
|
|
399
|
+
case c.colorScheme:
|
|
400
|
+
e = this.renderColorRampSelect();
|
|
401
|
+
break;
|
|
402
|
+
case c.null:
|
|
403
|
+
e = this.renderEmptyCellUI();
|
|
404
|
+
break;
|
|
405
|
+
default:
|
|
406
|
+
e = l`<div></div>`;
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
return e;
|
|
410
|
+
}
|
|
411
|
+
renderColorRampSelect() {
|
|
412
|
+
const e = this.filterColorRamps(),
|
|
413
|
+
t = this._messages?.colorRampCategories
|
|
414
|
+
? this._messages.colorRampCategories[this.selectedCategory]
|
|
415
|
+
: this.selectedCategory;
|
|
416
|
+
return l`<div class=${r(s.colorRampPopover)}><div class=${r(
|
|
417
|
+
s.colorRampToolbar
|
|
418
|
+
)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${
|
|
419
|
+
this.onCategoryDropdownSelect
|
|
420
|
+
}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${
|
|
421
|
+
this._messages?.colorRamp?.allCategories ?? "All color ramps" ?? g
|
|
422
|
+
}>${Object.keys(T).map(
|
|
423
|
+
(a) =>
|
|
424
|
+
l`<calcite-dropdown-item data-tag=${a ?? g} .selected=${
|
|
425
|
+
this.selectedCategory === a
|
|
426
|
+
}>${
|
|
427
|
+
this._messages?.colorRampCategories
|
|
428
|
+
? this._messages.colorRampCategories[a]
|
|
429
|
+
: a
|
|
430
|
+
}</calcite-dropdown-item>`
|
|
431
|
+
)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${
|
|
432
|
+
this.onFlipAll
|
|
433
|
+
}>${
|
|
434
|
+
this._messages?.colorRamp?.flipRampColors
|
|
435
|
+
}</calcite-button></div><div class=${r(s.rampGrid)}>${
|
|
436
|
+
(e.length === 0 &&
|
|
437
|
+
l`<div class=${r(s.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${
|
|
438
|
+
this.selectedCategory !== "all" ? `"${this.selectedCategory}"` : ""
|
|
439
|
+
}</div>`) ||
|
|
440
|
+
""
|
|
441
|
+
}${e.map((a) => {
|
|
442
|
+
const i = this.getRampColors(a),
|
|
443
|
+
o = a.name === this.selectedColorRampName;
|
|
444
|
+
return l`<div class=${`${s.rampItem} ${o ? "selected" : ""}`} title=${
|
|
445
|
+
a.name ?? g
|
|
446
|
+
} @click=${() => this.onRampSelect(a)}><div class=${r(
|
|
447
|
+
s.rampName
|
|
448
|
+
)} aria-hidden=true>${a.name}</div><div class=${r(s.rampStrips)}>${d(
|
|
449
|
+
i,
|
|
450
|
+
(n) => n,
|
|
451
|
+
(n) =>
|
|
452
|
+
l`<div class=${r(s.rampStrip)} style=${S({
|
|
453
|
+
backgroundColor: this.rampColorToCss(n),
|
|
454
|
+
})}></div>`
|
|
455
|
+
)}${
|
|
456
|
+
(i.length === 0 &&
|
|
457
|
+
l`<div class=${`${s.rampStrip} ${s.rampStripFallback}`}></div>`) ||
|
|
458
|
+
""
|
|
459
|
+
}</div></div>`;
|
|
460
|
+
})}</div><div class=${r(
|
|
461
|
+
s.colorRampPopoverFooter
|
|
462
|
+
)}><calcite-button appearance=solid kind=brand @click=${
|
|
463
|
+
this.closePopover
|
|
464
|
+
}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`;
|
|
465
|
+
}
|
|
466
|
+
renderEmptyCellUI() {
|
|
467
|
+
const e = this.model.emptyCellSymbol?.color ?? b.grayColor,
|
|
468
|
+
t = this.model.emptyCellText ?? b.nullCategory?.text ?? "";
|
|
469
|
+
return l`<div><div class=${r(s.panelChildrenContainer)}><calcite-label>${
|
|
470
|
+
this._messages.label
|
|
471
|
+
}<calcite-input type=text .value=${t} @calciteInputInput=${
|
|
472
|
+
this.nameChange
|
|
473
|
+
}></calcite-input></calcite-label></div><div class=${r(
|
|
474
|
+
s.panelChildrenContainer
|
|
475
|
+
)}><geoscene-charts-config-colors .heading=${
|
|
476
|
+
this._messages?.symbolColor
|
|
477
|
+
} .rgba=${e} @geosceneColorSelect=${
|
|
478
|
+
this.colorChange
|
|
479
|
+
}></geoscene-charts-config-colors></div></div>`;
|
|
480
|
+
}
|
|
481
|
+
render() {
|
|
482
|
+
return l`<div class=${r(s.jsAppFlyout)}><calcite-popover class=${r(
|
|
483
|
+
s.name
|
|
484
|
+
)} .referenceElement=${this.referenceElement ?? document.body} .placement=${
|
|
485
|
+
this.placement
|
|
486
|
+
} .offsetDistance=${this.offsetDistance} .open=${
|
|
487
|
+
this.open
|
|
488
|
+
} @calcitePopoverClose=${this.closePopover} label auto-close ${p(
|
|
489
|
+
this.popoverElement
|
|
490
|
+
)}><calcite-panel class=${r(s.panel)} closable .closed=${!this
|
|
491
|
+
.open} @calcitePanelClose=${
|
|
492
|
+
this.closePopover
|
|
493
|
+
}><div slot=header-content class=${r(s.header)}>${
|
|
494
|
+
this.headingTitle ?? ""
|
|
495
|
+
}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
w("geoscene-charts-config-heat-chart-popover", q);
|
|
499
|
+
export { q as GeosceneChartsConfigHeatChartPopover };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "@geoscene/calcite-components/components/calcite-list-item";
|
|
2
|
+
import "@geoscene/calcite-components/components/calcite-list";
|
|
3
|
+
import "@geoscene/calcite-components/components/calcite-dropdown";
|
|
4
|
+
import "@geoscene/calcite-components/components/calcite-button";
|
|
5
|
+
import "@geoscene/calcite-components/components/calcite-dropdown-group";
|
|
6
|
+
import "@geoscene/calcite-components/components/calcite-dropdown-item";
|
|
7
|
+
import "@geoscene/calcite-components/components/calcite-label";
|
|
8
|
+
import "@geoscene/calcite-components/components/calcite-input";
|
|
9
|
+
import "../geoscene-charts-config-colors/index.js";
|
|
10
|
+
import "@geoscene/calcite-components/components/calcite-popover";
|
|
11
|
+
import "@geoscene/calcite-components/components/calcite-panel";
|
|
12
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
3
|
+
import "@geoscene/toolkit/intl";
|
|
4
|
+
import { isEqual as r } from "lodash-es";
|
|
5
|
+
import "luxon";
|
|
6
|
+
import "d3-array";
|
|
7
|
+
import "@geoscene/toolkit/type";
|
|
8
|
+
import "../../chunks/series-types.js";
|
|
9
|
+
import { bM as n, bO as h } from "../../chunks/index.js";
|
|
10
|
+
import "@geoscene/core/Graphic.js";
|
|
11
|
+
import "@geoscene/core/renderers/support/jsonUtils.js";
|
|
12
|
+
import "@geoscene/core/symbols/support/symbolUtils.js";
|
|
13
|
+
import "@geoscene/geoscene-html-sanitizer";
|
|
14
|
+
import "@geoscene/core/intl.js";
|
|
15
|
+
import "@geoscene/core/layers/support/FeatureFilter.js";
|
|
16
|
+
import "@geoscene/core/smartMapping/statistics/histogram.js";
|
|
17
|
+
import "@geoscene/core/smartMapping/statistics/summaryStatistics.js";
|
|
18
|
+
import "simple-statistics";
|
|
19
|
+
import "@geoscene/core/request.js";
|
|
20
|
+
import "@geoscene/core/core/sql.js";
|
|
21
|
+
import "@geoscene/core/AttributeBinsGraphic.js";
|
|
22
|
+
import "@geoscene/core/geometry/support/jsonUtils.js";
|
|
23
|
+
import "@geoscene/core/rest/support/AttributeBinsQuery.js";
|
|
24
|
+
import "@geoscene/core/rest/support/StatisticDefinition.js";
|
|
25
|
+
import "@geoscene/core/time/TimeExtent.js";
|
|
26
|
+
import "@geoscene/core/core/promiseUtils.js";
|
|
27
|
+
import { b as m, h as c } from "../../chunks/index4.js";
|
|
28
|
+
import "@geoscene/toolkit/dom";
|
|
29
|
+
import { LitElement as d } from "@geoscene/lumina";
|
|
30
|
+
import { css as g, html as i } from "lit";
|
|
31
|
+
import { C as s } from "../../chunks/interfaces.js";
|
|
32
|
+
const f = g`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--geoscene-charts-intra-section-margin);margin-top:var(--geoscene-charts-intra-section-margin);height:100%}`;
|
|
33
|
+
class p extends d {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments),
|
|
36
|
+
(this.onModelConfigChange = async (e) => {
|
|
37
|
+
const a = e?.detail.config ?? this.model.config;
|
|
38
|
+
this.layer === void 0 && (await this.updateFetchLayerFieldsInfo(a));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
static {
|
|
42
|
+
this.properties = {
|
|
43
|
+
layerFieldsInfo: 16,
|
|
44
|
+
model: 0,
|
|
45
|
+
chartData: 0,
|
|
46
|
+
seriesColor: 0,
|
|
47
|
+
calculatedMinMaxBounds: 0,
|
|
48
|
+
page: 1,
|
|
49
|
+
layer: 0,
|
|
50
|
+
usePopupTemplateFieldsInfo: 5,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
static {
|
|
54
|
+
this.styles = f;
|
|
55
|
+
}
|
|
56
|
+
async load() {
|
|
57
|
+
this.seriesColor !== void 0 && this.seriesColorChange(this.seriesColor),
|
|
58
|
+
await this.updateFetchLayerFieldsInfo(this.model?.config),
|
|
59
|
+
this.modelChange(this.model);
|
|
60
|
+
}
|
|
61
|
+
willUpdate(e) {
|
|
62
|
+
let t = !1;
|
|
63
|
+
e.has("model") && this.modelChange(this.model, e.get("model")),
|
|
64
|
+
e.has("layer") &&
|
|
65
|
+
this.layer !== void 0 &&
|
|
66
|
+
!r(e.get("layer"), this.layer) &&
|
|
67
|
+
(t = !0),
|
|
68
|
+
e.has("usePopupTemplateFieldsInfo") &&
|
|
69
|
+
this.usePopupTemplateFieldsInfo !==
|
|
70
|
+
e.get("usePopupTemplateFieldsInfo") &&
|
|
71
|
+
(t = !0),
|
|
72
|
+
e.has("seriesColor") && this.seriesColorChange(this.seriesColor),
|
|
73
|
+
this.layerFieldsInfo === void 0 && (t = !0),
|
|
74
|
+
t && this.updateFetchLayerFieldsInfo();
|
|
75
|
+
}
|
|
76
|
+
disconnectedCallback() {
|
|
77
|
+
super.disconnectedCallback(),
|
|
78
|
+
this.model.removeEventListener(
|
|
79
|
+
"geosceneChartsModelConfigChange",
|
|
80
|
+
this.onModelConfigChange
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
modelChange(e, t) {
|
|
84
|
+
t?.removeEventListener(
|
|
85
|
+
"geosceneChartsModelConfigChange",
|
|
86
|
+
this.onModelConfigChange
|
|
87
|
+
),
|
|
88
|
+
e?.addEventListener(
|
|
89
|
+
"geosceneChartsModelConfigChange",
|
|
90
|
+
this.onModelConfigChange
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
seriesColorChange(e) {
|
|
94
|
+
this.model.colorMatch &&
|
|
95
|
+
e?.forEach((t) => {
|
|
96
|
+
m(t) &&
|
|
97
|
+
e?.get(0) !== void 0 &&
|
|
98
|
+
!r(this.model.binSymbol, t) &&
|
|
99
|
+
(this.model.binSymbol = t);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
async updateFetchLayerFieldsInfo(e) {
|
|
103
|
+
const t = e ?? this.model.config;
|
|
104
|
+
let a = this.layer;
|
|
105
|
+
if (!a) {
|
|
106
|
+
const o = c(t) ? t.iLayer : void 0;
|
|
107
|
+
o && (a = await n(o));
|
|
108
|
+
}
|
|
109
|
+
a && (this.layerFieldsInfo = await h(a, this.usePopupTemplateFieldsInfo));
|
|
110
|
+
}
|
|
111
|
+
render() {
|
|
112
|
+
let e;
|
|
113
|
+
switch (this.page) {
|
|
114
|
+
case s.Data:
|
|
115
|
+
e = i`<geoscene-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></geoscene-charts-config-histogram-data>`;
|
|
116
|
+
break;
|
|
117
|
+
case s.Axes:
|
|
118
|
+
e = i`<geoscene-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></geoscene-charts-config-axes>`;
|
|
119
|
+
break;
|
|
120
|
+
case s.Guides:
|
|
121
|
+
e = i`<geoscene-charts-config-guides .model=${this.model} enable-y-axis-guide></geoscene-charts-config-guides>`;
|
|
122
|
+
break;
|
|
123
|
+
case s.Format:
|
|
124
|
+
e = i`<geoscene-charts-config-format .model=${this.model}></geoscene-charts-config-format>`;
|
|
125
|
+
break;
|
|
126
|
+
case s.General:
|
|
127
|
+
e = i`<geoscene-charts-config-general .model=${this.model}></geoscene-charts-config-general>`;
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
e = "";
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
return e;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
l("geoscene-charts-config-histogram", p);
|
|
137
|
+
export { p as GeosceneChartsConfigHistogram };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../geoscene-charts-config-histogram-data/index.js";
|
|
2
|
+
import "../geoscene-charts-config-axes/index.js";
|
|
3
|
+
import "../geoscene-charts-config-guides/index.js";
|
|
4
|
+
import "../geoscene-charts-config-format/index.js";
|
|
5
|
+
import "../geoscene-charts-config-general/index.js";
|
|
6
|
+
export * from "./customElement.js";
|