@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,454 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as f } from "lit/directives/keyed.js";
|
|
4
|
+
import { b as h } from "../../chunks/common.js";
|
|
5
|
+
import "@geoscene/toolkit/type";
|
|
6
|
+
import "../../chunks/series-types.js";
|
|
7
|
+
import { f as E } from "../../chunks/rest-js-object-literals.js";
|
|
8
|
+
import "@geoscene/toolkit/intl";
|
|
9
|
+
import { debounce as C, isEmpty as x, toNumber as N } from "lodash-es";
|
|
10
|
+
import "luxon";
|
|
11
|
+
import "d3-array";
|
|
12
|
+
import { bC as $, ax as S } from "../../chunks/index.js";
|
|
13
|
+
import "@geoscene/core/Graphic.js";
|
|
14
|
+
import "@geoscene/core/renderers/support/jsonUtils.js";
|
|
15
|
+
import "@geoscene/core/symbols/support/symbolUtils.js";
|
|
16
|
+
import "@geoscene/geoscene-html-sanitizer";
|
|
17
|
+
import "@geoscene/core/intl.js";
|
|
18
|
+
import "@geoscene/core/layers/support/FeatureFilter.js";
|
|
19
|
+
import "@geoscene/core/smartMapping/statistics/histogram.js";
|
|
20
|
+
import "@geoscene/core/smartMapping/statistics/summaryStatistics.js";
|
|
21
|
+
import "simple-statistics";
|
|
22
|
+
import "@geoscene/core/request.js";
|
|
23
|
+
import "@geoscene/core/core/sql.js";
|
|
24
|
+
import "@geoscene/core/AttributeBinsGraphic.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/core/core/promiseUtils.js";
|
|
30
|
+
import "@geoscene/toolkit/dom";
|
|
31
|
+
import { r as I } from "../../chunks/popover-ui-utils.js";
|
|
32
|
+
import { a as y, d as G, s as g } from "../../chunks/chart-ui-utils2.js";
|
|
33
|
+
import { u as _ } from "../../chunks/useT9n.js";
|
|
34
|
+
import { css as w, html as d } from "lit";
|
|
35
|
+
import { createRef as m, ref as p } from "lit/directives/ref.js";
|
|
36
|
+
import {
|
|
37
|
+
LitElement as M,
|
|
38
|
+
renderElement as P,
|
|
39
|
+
safeStyleMap as u,
|
|
40
|
+
safeClassMap as s,
|
|
41
|
+
} from "@geoscene/lumina";
|
|
42
|
+
const o = {
|
|
43
|
+
sectionLabel: "section-label",
|
|
44
|
+
label: "label",
|
|
45
|
+
sliceList: "slice-list",
|
|
46
|
+
radioGroup: "radio-group",
|
|
47
|
+
pieDonutLabelsContainer: "pie-donut-labels-container",
|
|
48
|
+
sliderInputContainer: "slider-input-container",
|
|
49
|
+
groupingLabelContainer: "grouping-label-container",
|
|
50
|
+
numberInput: "number-input",
|
|
51
|
+
},
|
|
52
|
+
z = w`:host{display:flex;flex-direction:column;width:var(--geoscene-charts-config-calcite-block-default-width);margin:var(--geoscene-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--geoscene-charts-config-margin-major) var(--geoscene-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.label{display:flex;margin-left:var(--geoscene-charts-config-margin-minor);margin-right:var(--geoscene-charts-config-margin-minor);margin-bottom:var(--geoscene-charts-config-margin-minor);justify-content:space-between}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container{display:flex}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--geoscene-charts-intra-section-margin) !important;margin-right:var(--geoscene-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.slice-list{margin-left:var(--geoscene-charts-config-margin-minor);margin-right:var(--geoscene-charts-config-margin-minor);margin-bottom:var(--geoscene-charts-config-margin-major)}.radio-group{margin-top:var(--geoscene-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--geoscene-charts-config-margin-minor) * -3)}`;
|
|
53
|
+
class k extends M {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments),
|
|
56
|
+
(this._messages = _()),
|
|
57
|
+
(this.slicesPopover = null),
|
|
58
|
+
(this.donutSizeSliderElement = m()),
|
|
59
|
+
(this.groupingThresholdElement = m()),
|
|
60
|
+
(this.groupingThresholdSliderElement = m()),
|
|
61
|
+
(this.labelCharacterLimitElement = m()),
|
|
62
|
+
(this.decimalPlacesElement = m()),
|
|
63
|
+
(this.open = !1),
|
|
64
|
+
(this.onDonutSizeSliderChange = C(() => {
|
|
65
|
+
this.donutSizeSliderElement.value &&
|
|
66
|
+
Number.isInteger(this.donutSizeSliderElement.value?.value) &&
|
|
67
|
+
(this.model.innerRadiusSize =
|
|
68
|
+
this.donutSizeSliderElement.value.value ?? $);
|
|
69
|
+
}, y.SliderTimer)),
|
|
70
|
+
(this.onGroupingThresholdSliderChange = C(() => {
|
|
71
|
+
const e = this.groupingThresholdSliderElement.value?.value;
|
|
72
|
+
e !== void 0 && !Number.isNaN(e)
|
|
73
|
+
? (this.groupingThresholdElement?.value &&
|
|
74
|
+
(this.groupingThresholdElement.value.value = e.toString()),
|
|
75
|
+
this.groupingThresholdSliderElement.value &&
|
|
76
|
+
(this.groupingThresholdSliderElement.value.value = e),
|
|
77
|
+
(this.model.groupingThreshold = e))
|
|
78
|
+
: (this.model.groupingThreshold = 0);
|
|
79
|
+
}, y.SliderTimer)),
|
|
80
|
+
(this.sliceNameChange = (e) => {
|
|
81
|
+
if (e.detail !== null || e.detail !== void 0) {
|
|
82
|
+
const l = e.detail?.name,
|
|
83
|
+
i = this.model.slices?.findIndex(
|
|
84
|
+
(r) => r.sliceId === this.selectedSliceId
|
|
85
|
+
),
|
|
86
|
+
t = this.model.sliceGrouping;
|
|
87
|
+
i != null && i >= 0
|
|
88
|
+
? this.model.setSliceName(l, i)
|
|
89
|
+
: t?.sliceId === this.selectedSliceId &&
|
|
90
|
+
t !== void 0 &&
|
|
91
|
+
(this.model.sliceGrouping = {
|
|
92
|
+
...t,
|
|
93
|
+
label: l,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
97
|
+
(this.sliceColorChange = (e) => {
|
|
98
|
+
if (e.detail !== null && e.detail !== void 0) {
|
|
99
|
+
const { color: l } = e.detail,
|
|
100
|
+
i = this.model.slices?.findIndex(
|
|
101
|
+
(r) => r.sliceId === this.selectedSliceId
|
|
102
|
+
),
|
|
103
|
+
t = this.model.sliceGrouping;
|
|
104
|
+
i != null && i >= 0
|
|
105
|
+
? ((this.model.colorMatch = !1), this.model.setSliceColor(l, i))
|
|
106
|
+
: t?.sliceId === this.selectedSliceId &&
|
|
107
|
+
t !== void 0 &&
|
|
108
|
+
((this.model.colorMatch = !1),
|
|
109
|
+
(this.model.sliceGrouping = {
|
|
110
|
+
...t,
|
|
111
|
+
fillSymbol: {
|
|
112
|
+
...t.fillSymbol,
|
|
113
|
+
type: E.SFS,
|
|
114
|
+
color: l,
|
|
115
|
+
},
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
}),
|
|
119
|
+
(this.slicesPopoverClose = (e) => {
|
|
120
|
+
const { selectedSliceId: l } = e.detail;
|
|
121
|
+
l === this.selectedSliceId &&
|
|
122
|
+
((this.selectedSliceId = void 0),
|
|
123
|
+
(this.slicesPopover = I(this.slicesPopover)));
|
|
124
|
+
}),
|
|
125
|
+
(this.onModelConfigChange = () => {
|
|
126
|
+
this.requestUpdate();
|
|
127
|
+
}),
|
|
128
|
+
(this.popoverPlacement = "leading");
|
|
129
|
+
}
|
|
130
|
+
static {
|
|
131
|
+
this.properties = {
|
|
132
|
+
selectedSliceId: 16,
|
|
133
|
+
messageOverrides: 0,
|
|
134
|
+
model: 0,
|
|
135
|
+
popoverPlacement: 1,
|
|
136
|
+
chartData: 0,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
static {
|
|
140
|
+
this.styles = z;
|
|
141
|
+
}
|
|
142
|
+
load() {
|
|
143
|
+
this.modelChange(this.model), this.onModelConfigChange();
|
|
144
|
+
}
|
|
145
|
+
willUpdate(e) {
|
|
146
|
+
e.has("model") && this.modelChange(this.model, e.get("model")),
|
|
147
|
+
e.has("selectedSliceId") && this.selectedSliceIdChange();
|
|
148
|
+
}
|
|
149
|
+
disconnectedCallback() {
|
|
150
|
+
super.disconnectedCallback(),
|
|
151
|
+
this.removeSlicesPopover(),
|
|
152
|
+
this.model.removeEventListener(
|
|
153
|
+
"geosceneChartsModelConfigChange",
|
|
154
|
+
this.onModelConfigChange
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
modelChange(e, l) {
|
|
158
|
+
l?.removeEventListener(
|
|
159
|
+
"geosceneChartsModelConfigChange",
|
|
160
|
+
this.onModelConfigChange
|
|
161
|
+
),
|
|
162
|
+
e?.addEventListener(
|
|
163
|
+
"geosceneChartsModelConfigChange",
|
|
164
|
+
this.onModelConfigChange
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
selectedSliceIdChange() {
|
|
168
|
+
if (!x(this.selectedSliceId)) {
|
|
169
|
+
const e = this.model.slices,
|
|
170
|
+
l = this.model.sliceGrouping;
|
|
171
|
+
let i, t;
|
|
172
|
+
if (this.selectedSliceId === l?.sliceId)
|
|
173
|
+
(i = l?.label), (t = l?.fillSymbol?.color);
|
|
174
|
+
else if (e !== void 0) {
|
|
175
|
+
const r = e.findIndex((n) => n.sliceId === this.selectedSliceId);
|
|
176
|
+
(i = this.model.getSliceName(r)), (t = this.model.getSliceColor(r));
|
|
177
|
+
}
|
|
178
|
+
(this.slicesPopover = P(
|
|
179
|
+
d`<geoscene-charts-config-pie-chart-slices-popover .referenceElement=${this.el} .placement=${this.popoverPlacement} .open=${this.open} .selectedSliceId=${this.selectedSliceId} .selectedName=${i} .selectedColor=${t} @geosceneChartsConfigSlicesPopoverColorChange=${this.sliceColorChange} @geosceneChartsConfigSlicesPopoverNameChange=${this.sliceNameChange} @geosceneChartsConfigPopoverClose=${this.slicesPopoverClose}></geoscene-charts-config-pie-chart-slices-popover>`
|
|
180
|
+
)),
|
|
181
|
+
this.slicesPopover &&
|
|
182
|
+
!document.body.contains(this.slicesPopover) &&
|
|
183
|
+
document.body.appendChild(this.slicesPopover);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
removeSlicesPopover() {
|
|
187
|
+
this.slicesPopover !== void 0 &&
|
|
188
|
+
this.slicesPopover !== null &&
|
|
189
|
+
((this.slicesPopover.open = !1),
|
|
190
|
+
(this.slicesPopover.selectedName = void 0),
|
|
191
|
+
(this.slicesPopover.selectedColor = void 0),
|
|
192
|
+
(this.slicesPopover = I(this.slicesPopover)));
|
|
193
|
+
}
|
|
194
|
+
buildSliceListItem() {
|
|
195
|
+
let e = "#CCCCCC",
|
|
196
|
+
l = "minus-square";
|
|
197
|
+
const i = [];
|
|
198
|
+
let t = this.model.slices;
|
|
199
|
+
const r = this.chartData?.dataItems;
|
|
200
|
+
r &&
|
|
201
|
+
(t = t?.filter(
|
|
202
|
+
(a) =>
|
|
203
|
+
r?.findIndex((c) => c.geoscene_charts_slice_id === a.sliceId) !== -1
|
|
204
|
+
)),
|
|
205
|
+
t?.forEach((a) => {
|
|
206
|
+
if (a.fillSymbol?.color !== void 0) {
|
|
207
|
+
l = "square-f";
|
|
208
|
+
const [c, b, v, L] = [...a.fillSymbol.color];
|
|
209
|
+
e = `rgba(${c},${b},${v},${L / 255})`;
|
|
210
|
+
}
|
|
211
|
+
if (a !== void 0 && !this.model.groupedSliceIds.includes(a.sliceId)) {
|
|
212
|
+
let c = a.sliceId;
|
|
213
|
+
c === S.emptySliceId
|
|
214
|
+
? (c = this._messages.emptySlice ?? "")
|
|
215
|
+
: c === S.nullSliceId && (c = this._messages.nullSlice ?? ""),
|
|
216
|
+
i?.push(
|
|
217
|
+
f(
|
|
218
|
+
a.sliceId,
|
|
219
|
+
d`<calcite-list-item .label=${
|
|
220
|
+
a.label ?? a.sliceId
|
|
221
|
+
} .description=${c} .value=${a.sliceId} .selected=${
|
|
222
|
+
this.selectedSliceId === a.sliceId
|
|
223
|
+
} @click=${
|
|
224
|
+
this.openSlicesPopover
|
|
225
|
+
}><calcite-icon slot=content-end .icon=${l} style=${u({
|
|
226
|
+
color: e,
|
|
227
|
+
})}></calcite-icon></calcite-list-item>`
|
|
228
|
+
)
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
const n = this.model.sliceGrouping;
|
|
233
|
+
if (n?.fillSymbol?.color !== void 0) {
|
|
234
|
+
l = "square-f";
|
|
235
|
+
const [a, c, b, v] = [...n.fillSymbol.color];
|
|
236
|
+
e = `rgba(${a},${c},${b},${v / 255})`;
|
|
237
|
+
}
|
|
238
|
+
return (
|
|
239
|
+
this.model.groupedSliceIds.length > 0 &&
|
|
240
|
+
i?.push(
|
|
241
|
+
f(
|
|
242
|
+
n?.sliceId,
|
|
243
|
+
d`<calcite-list-item .label=${
|
|
244
|
+
n?.label ?? n?.sliceId ?? ""
|
|
245
|
+
} .description=${this._messages.groupedSlices} .value=${
|
|
246
|
+
n?.sliceId ?? ""
|
|
247
|
+
} .selected=${this.selectedSliceId === n?.sliceId} @click=${
|
|
248
|
+
this.openSlicesPopover
|
|
249
|
+
}><calcite-icon slot=content-end .icon=${l} style=${u({
|
|
250
|
+
color: e,
|
|
251
|
+
})}></calcite-icon></calcite-list-item>`
|
|
252
|
+
)
|
|
253
|
+
),
|
|
254
|
+
i
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
buildGroupedSlicesListItem() {
|
|
258
|
+
let e = "#CCCCCC",
|
|
259
|
+
l = "minus-square";
|
|
260
|
+
const i = [];
|
|
261
|
+
return (
|
|
262
|
+
this.model.slices?.forEach((t) => {
|
|
263
|
+
if (t.fillSymbol?.color !== void 0) {
|
|
264
|
+
l = "square-f";
|
|
265
|
+
const [r, n, a, c] = [...t.fillSymbol.color];
|
|
266
|
+
e = `rgba(${r},${n},${a},${c / 255})`;
|
|
267
|
+
}
|
|
268
|
+
t !== void 0 &&
|
|
269
|
+
this.model.groupedSliceIds.includes(t.sliceId) &&
|
|
270
|
+
i?.push(
|
|
271
|
+
f(
|
|
272
|
+
t.sliceId,
|
|
273
|
+
d`<calcite-list-item .label=${
|
|
274
|
+
t.label ?? t.sliceId
|
|
275
|
+
} .description=${t.sliceId} .value=${t.sliceId} .selected=${
|
|
276
|
+
this.selectedSliceId === t.sliceId
|
|
277
|
+
} @click=${
|
|
278
|
+
this.openSlicesPopover
|
|
279
|
+
}><calcite-icon slot=content-end .icon=${l} style=${u({
|
|
280
|
+
color: e,
|
|
281
|
+
})}></calcite-icon></calcite-list-item>`
|
|
282
|
+
)
|
|
283
|
+
);
|
|
284
|
+
}),
|
|
285
|
+
i
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
buildSliceList() {
|
|
289
|
+
return d`<calcite-list label class=${s(
|
|
290
|
+
o.sliceList
|
|
291
|
+
)} selection-mode=single selection-appearance=border @calciteListOrderChange=${
|
|
292
|
+
this.onCalciteListOrderChange
|
|
293
|
+
}>${this.buildSliceListItem()}</calcite-list>`;
|
|
294
|
+
}
|
|
295
|
+
buildGroupedSliceList() {
|
|
296
|
+
return d`<calcite-list label class=${s(
|
|
297
|
+
o.sliceList
|
|
298
|
+
)} selection-mode=single selection-appearance=border @calciteListOrderChange=${
|
|
299
|
+
this.onCalciteListOrderChange
|
|
300
|
+
}>${this.buildGroupedSlicesListItem()}</calcite-list>`;
|
|
301
|
+
}
|
|
302
|
+
onGroupingThresholdChange(e) {
|
|
303
|
+
const l = e.target.value;
|
|
304
|
+
let i = Number.parseInt(l);
|
|
305
|
+
i > 100 ? (i = 100) : i < 0 && (i = 0),
|
|
306
|
+
Number.isNaN(i)
|
|
307
|
+
? (this.model.groupingThreshold = 0)
|
|
308
|
+
: (this.groupingThresholdElement?.value &&
|
|
309
|
+
(this.groupingThresholdElement.value.value = i.toString()),
|
|
310
|
+
(this.model.groupingThreshold = i),
|
|
311
|
+
this.groupingThresholdSliderElement.value &&
|
|
312
|
+
(this.groupingThresholdSliderElement.value.value = i));
|
|
313
|
+
}
|
|
314
|
+
onLabelCharacterLimitChange(e) {
|
|
315
|
+
const l = e.target.value;
|
|
316
|
+
let i = Number.parseInt(l);
|
|
317
|
+
i < 1 && (i = 1),
|
|
318
|
+
Number.isNaN(i)
|
|
319
|
+
? (this.model.labelCharacterLimit = null)
|
|
320
|
+
: (this.labelCharacterLimitElement.value &&
|
|
321
|
+
(this.labelCharacterLimitElement.value.value = i.toString()),
|
|
322
|
+
(this.model.labelCharacterLimit = i));
|
|
323
|
+
}
|
|
324
|
+
onDecimalPlacesChange(e) {
|
|
325
|
+
const l = e.target.value;
|
|
326
|
+
let i = Number.parseInt(l);
|
|
327
|
+
i < 0 ? (i = 0) : i > 20 && (i = 20),
|
|
328
|
+
Number.isNaN(i)
|
|
329
|
+
? (this.model.decimalPlaces = 0)
|
|
330
|
+
: (this.decimalPlacesElement.value &&
|
|
331
|
+
(this.decimalPlacesElement.value.value = i.toString()),
|
|
332
|
+
(this.model.decimalPlaces = i));
|
|
333
|
+
}
|
|
334
|
+
onDisplayTypeChange(e) {
|
|
335
|
+
const l = e.target.selectedItem;
|
|
336
|
+
this.model.displayType = l.value;
|
|
337
|
+
}
|
|
338
|
+
resetSlicesOriginal() {
|
|
339
|
+
(this.selectedSliceId = void 0),
|
|
340
|
+
(this.model.colorMatch = !0),
|
|
341
|
+
this.model.resetSlices();
|
|
342
|
+
}
|
|
343
|
+
onCalciteListOrderChange(e) {
|
|
344
|
+
if (e.detail !== null && e.detail !== void 0) {
|
|
345
|
+
const { newIndex: l, oldIndex: i } = e.detail;
|
|
346
|
+
this.model.moveSeries(i, l);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
openSlicesPopover(e) {
|
|
350
|
+
e.stopImmediatePropagation(), this.removeSlicesPopover();
|
|
351
|
+
const l = e.target,
|
|
352
|
+
i = l.localName === "calcite-list-item" ? l : l.parentNode;
|
|
353
|
+
i.value === this.model.sliceGrouping?.sliceId
|
|
354
|
+
? (this.selectedSliceId = this.model.sliceGrouping?.sliceId)
|
|
355
|
+
: (this.selectedSliceId = i.value),
|
|
356
|
+
(this.open = !0);
|
|
357
|
+
}
|
|
358
|
+
createTooltip(e) {
|
|
359
|
+
const l = e.target;
|
|
360
|
+
(this.tooltip = P(
|
|
361
|
+
d`<calcite-tooltip style=${u({
|
|
362
|
+
opacity: 1,
|
|
363
|
+
zIndex: "var(--calcite-floating-ui-z-index)",
|
|
364
|
+
})} .referenceElement=${l} open placement=top .innerHTML=${
|
|
365
|
+
this._messages.groupingInfo ?? "" ?? ""
|
|
366
|
+
}></calcite-tooltip>`
|
|
367
|
+
)),
|
|
368
|
+
document.body.appendChild(this.tooltip);
|
|
369
|
+
}
|
|
370
|
+
destroyTooltip() {
|
|
371
|
+
G(this.tooltip);
|
|
372
|
+
}
|
|
373
|
+
render() {
|
|
374
|
+
return d`<div class=${s(o.sectionLabel)}>${
|
|
375
|
+
this._messages.settings
|
|
376
|
+
}</div><calcite-label class=${s(o.label)}>${
|
|
377
|
+
this._messages.shape
|
|
378
|
+
}<calcite-slider min=0 max=100 step=1 snap .value=${
|
|
379
|
+
this.model.innerRadiusSize ?? $
|
|
380
|
+
} @calciteSliderChange=${this.onDonutSizeSliderChange} ${p(
|
|
381
|
+
this.donutSizeSliderElement
|
|
382
|
+
)}></calcite-slider></calcite-label><div class=${s(
|
|
383
|
+
o.pieDonutLabelsContainer
|
|
384
|
+
)}><calcite-label class=${s(o.label)}>${
|
|
385
|
+
this._messages.pie
|
|
386
|
+
}</calcite-label><calcite-label class=${s(o.label)}>${
|
|
387
|
+
this._messages.donut
|
|
388
|
+
}</calcite-label></div><calcite-label class=${s(o.label)}><div class=${s(
|
|
389
|
+
o.groupingLabelContainer
|
|
390
|
+
)}><div>${
|
|
391
|
+
this._messages.groupingPercent
|
|
392
|
+
}</div><calcite-icon icon=information scale=s flip-rtl @mouseover=${
|
|
393
|
+
this.createTooltip
|
|
394
|
+
} @mouseout=${this.destroyTooltip}></calcite-icon></div><div class=${s(
|
|
395
|
+
o.sliderInputContainer
|
|
396
|
+
)}><calcite-slider min=0 max=50 step=1 snap .value=${N(
|
|
397
|
+
g(this.model.groupingThreshold ?? 0)
|
|
398
|
+
)} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${p(
|
|
399
|
+
this.groupingThresholdSliderElement
|
|
400
|
+
)}></calcite-slider><calcite-input class=${s(
|
|
401
|
+
o.numberInput
|
|
402
|
+
)} type=number min=0 max=100 step=1 suffix-text=% .value=${g(
|
|
403
|
+
this.model.groupingThreshold ?? 0
|
|
404
|
+
)} @calciteInputInput=${this.onGroupingThresholdChange} @click=${(e) => {
|
|
405
|
+
e.stopPropagation();
|
|
406
|
+
}} ${p(
|
|
407
|
+
this.groupingThresholdElement
|
|
408
|
+
)}></calcite-input></div></calcite-label><div class=${s(o.sectionLabel)}>${
|
|
409
|
+
this._messages.labels
|
|
410
|
+
}</div><calcite-label class=${s(o.label)}>${
|
|
411
|
+
this._messages.labelCharacterLimit
|
|
412
|
+
}<calcite-input type=number min=1 step=1 .value=${g(
|
|
413
|
+
this.model.labelCharacterLimit
|
|
414
|
+
)} @calciteInputInput=${this.onLabelCharacterLimitChange} ${p(
|
|
415
|
+
this.labelCharacterLimitElement
|
|
416
|
+
)}></calcite-input></calcite-label><calcite-label class=${s(o.label)}>${
|
|
417
|
+
this._messages.decimalPlaces
|
|
418
|
+
}<calcite-input type=number min=0 max=20 step=1 .value=${g(
|
|
419
|
+
this.model.decimalPlaces
|
|
420
|
+
)} @calciteInputInput=${this.onDecimalPlacesChange} ${p(
|
|
421
|
+
this.decimalPlacesElement
|
|
422
|
+
)}></calcite-input></calcite-label><calcite-label class=${s(o.label)}>${
|
|
423
|
+
this._messages.display
|
|
424
|
+
}<calcite-radio-button-group class=${s(
|
|
425
|
+
o.radioGroup
|
|
426
|
+
)} name=display layout=vertical @calciteRadioButtonGroupChange=${
|
|
427
|
+
this.onDisplayTypeChange
|
|
428
|
+
}><calcite-label layout=inline><calcite-radio-button .value=${
|
|
429
|
+
h.Value
|
|
430
|
+
} .checked=${this.model.displayType === h.Value}></calcite-radio-button>${
|
|
431
|
+
this._messages.value
|
|
432
|
+
}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${
|
|
433
|
+
h.Percentage
|
|
434
|
+
} .checked=${
|
|
435
|
+
this.model.displayType === h.Percentage
|
|
436
|
+
}></calcite-radio-button>${
|
|
437
|
+
this._messages.percentage
|
|
438
|
+
}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${
|
|
439
|
+
h.Both
|
|
440
|
+
} .checked=${this.model.displayType === h.Both}></calcite-radio-button>${
|
|
441
|
+
this._messages.both
|
|
442
|
+
}</calcite-label></calcite-radio-button-group></calcite-label><div class=${s(
|
|
443
|
+
o.sectionLabel
|
|
444
|
+
)}>${this._messages.slices}<calcite-button @click=${
|
|
445
|
+
this.resetSlicesOriginal
|
|
446
|
+
} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${
|
|
447
|
+
this._messages.reset
|
|
448
|
+
}</calcite-button></div>${this.buildSliceList()}<div class=${s(
|
|
449
|
+
o.sectionLabel
|
|
450
|
+
)}>${this._messages.groupedSlices}</div>${this.buildGroupedSliceList()}`;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
T("geoscene-charts-config-pie-chart-slices", k);
|
|
454
|
+
export { k as GeosceneChartsConfigPieChartSlices };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../geoscene-charts-config-pie-chart-slices-popover/index.js";
|
|
2
|
+
import "@geoscene/calcite-components/components/calcite-list-item";
|
|
3
|
+
import "@geoscene/calcite-components/components/calcite-icon";
|
|
4
|
+
import "@geoscene/calcite-components/components/calcite-list";
|
|
5
|
+
import "@geoscene/calcite-components/components/calcite-tooltip";
|
|
6
|
+
import "@geoscene/calcite-components/components/calcite-label";
|
|
7
|
+
import "@geoscene/calcite-components/components/calcite-slider";
|
|
8
|
+
import "@geoscene/calcite-components/components/calcite-input";
|
|
9
|
+
import "@geoscene/calcite-components/components/calcite-radio-button-group";
|
|
10
|
+
import "@geoscene/calcite-components/components/calcite-radio-button";
|
|
11
|
+
import "@geoscene/calcite-components/components/calcite-button";
|
|
12
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { c as n } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as p, html as m } from "lit";
|
|
4
|
+
import "@geoscene/toolkit/intl";
|
|
5
|
+
import "lodash-es";
|
|
6
|
+
import "luxon";
|
|
7
|
+
import "d3-array";
|
|
8
|
+
import "@geoscene/toolkit/type";
|
|
9
|
+
import "../../chunks/series-types.js";
|
|
10
|
+
import { ar as h } from "../../chunks/index.js";
|
|
11
|
+
import "@geoscene/core/Graphic.js";
|
|
12
|
+
import "@geoscene/core/renderers/support/jsonUtils.js";
|
|
13
|
+
import "@geoscene/core/symbols/support/symbolUtils.js";
|
|
14
|
+
import "@geoscene/geoscene-html-sanitizer";
|
|
15
|
+
import "@geoscene/core/intl.js";
|
|
16
|
+
import "@geoscene/core/layers/support/FeatureFilter.js";
|
|
17
|
+
import "@geoscene/core/smartMapping/statistics/histogram.js";
|
|
18
|
+
import "@geoscene/core/smartMapping/statistics/summaryStatistics.js";
|
|
19
|
+
import "simple-statistics";
|
|
20
|
+
import "@geoscene/core/request.js";
|
|
21
|
+
import "@geoscene/core/core/sql.js";
|
|
22
|
+
import "@geoscene/core/AttributeBinsGraphic.js";
|
|
23
|
+
import "@geoscene/core/geometry/support/jsonUtils.js";
|
|
24
|
+
import "@geoscene/core/rest/support/AttributeBinsQuery.js";
|
|
25
|
+
import "@geoscene/core/rest/support/StatisticDefinition.js";
|
|
26
|
+
import "@geoscene/core/time/TimeExtent.js";
|
|
27
|
+
import "@geoscene/core/core/promiseUtils.js";
|
|
28
|
+
import "@geoscene/toolkit/dom";
|
|
29
|
+
import { e as d } from "../../chunks/popover-ui-utils.js";
|
|
30
|
+
import { a as g } from "../../chunks/chart-ui-utils2.js";
|
|
31
|
+
import { u as C } from "../../chunks/useT9n.js";
|
|
32
|
+
import { createRef as v, ref as f } from "lit/directives/ref.js";
|
|
33
|
+
import {
|
|
34
|
+
LitElement as u,
|
|
35
|
+
createEvent as i,
|
|
36
|
+
safeClassMap as o,
|
|
37
|
+
} from "@geoscene/lumina";
|
|
38
|
+
const s = {
|
|
39
|
+
jsAppFlyout: "js-app-flyout",
|
|
40
|
+
panelChildrenContainer: "panel-children-container",
|
|
41
|
+
},
|
|
42
|
+
y = p`.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)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
43
|
+
class $ extends u {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments),
|
|
46
|
+
(this._messages = C()),
|
|
47
|
+
(this.popoverElement = v()),
|
|
48
|
+
(this.selectedSliceId = ""),
|
|
49
|
+
(this.geosceneChartsConfigPopoverClose = i()),
|
|
50
|
+
(this.geosceneChartsConfigSlicesPopoverColorChange = i()),
|
|
51
|
+
(this.geosceneChartsConfigSlicesPopoverNameChange = i());
|
|
52
|
+
}
|
|
53
|
+
static {
|
|
54
|
+
this.properties = {
|
|
55
|
+
messageOverrides: 0,
|
|
56
|
+
referenceElement: 0,
|
|
57
|
+
selectedName: 1,
|
|
58
|
+
selectedColor: 0,
|
|
59
|
+
selectedSliceId: 1,
|
|
60
|
+
placement: 1,
|
|
61
|
+
open: 5,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static {
|
|
65
|
+
this.styles = y;
|
|
66
|
+
}
|
|
67
|
+
async reposition() {
|
|
68
|
+
await this.popoverElement.value?.reposition();
|
|
69
|
+
}
|
|
70
|
+
updated() {
|
|
71
|
+
d(this.popoverElement.value, this.open),
|
|
72
|
+
this.hasUpdated ||
|
|
73
|
+
setTimeout(() => {
|
|
74
|
+
this.popoverElement.value?.reposition();
|
|
75
|
+
}, g.PopoverTimer);
|
|
76
|
+
}
|
|
77
|
+
sliceNameChange(e) {
|
|
78
|
+
const t = e.target.value;
|
|
79
|
+
this.selectedName !== t &&
|
|
80
|
+
((this.selectedName = t),
|
|
81
|
+
this.geosceneChartsConfigSlicesPopoverNameChange.emit({ name: t }));
|
|
82
|
+
}
|
|
83
|
+
closePopover() {
|
|
84
|
+
(this.open = !1),
|
|
85
|
+
this.geosceneChartsConfigPopoverClose.emit({
|
|
86
|
+
selectedSliceId: this.selectedSliceId,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
colorChange(e) {
|
|
90
|
+
const t = e instanceof CustomEvent ? e.detail : e,
|
|
91
|
+
[r, a, l] = t,
|
|
92
|
+
c = h * 255;
|
|
93
|
+
(this.selectedColor = [r, a, l, c]),
|
|
94
|
+
this.geosceneChartsConfigSlicesPopoverColorChange.emit({
|
|
95
|
+
color: [r, a, l, c],
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
const e = this.selectedColor !== void 0 ? [...this.selectedColor] : void 0;
|
|
100
|
+
return m`<div class=${o({
|
|
101
|
+
[s.jsAppFlyout]: !0,
|
|
102
|
+
})}><calcite-popover .referenceElement=${
|
|
103
|
+
this.referenceElement ?? document.body
|
|
104
|
+
} .placement=${this.placement} @calcitePopoverClose=${
|
|
105
|
+
this.closePopover
|
|
106
|
+
} .open=${this.open} label auto-close ${f(
|
|
107
|
+
this.popoverElement
|
|
108
|
+
)}><calcite-panel .heading=${
|
|
109
|
+
this._messages.sliceStyle
|
|
110
|
+
} closable .closed=${!this.open} @calcitePanelClose=${
|
|
111
|
+
this.closePopover
|
|
112
|
+
}><div class=${o(s.panelChildrenContainer)}><calcite-label>${
|
|
113
|
+
this._messages.label
|
|
114
|
+
}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${
|
|
115
|
+
this.sliceNameChange
|
|
116
|
+
}></calcite-input></calcite-label></div><div class=${o(
|
|
117
|
+
s.panelChildrenContainer
|
|
118
|
+
)}><geoscene-charts-config-colors .heading=${
|
|
119
|
+
this._messages.symbolColor
|
|
120
|
+
} .rgba=${e} @geosceneColorSelect=${
|
|
121
|
+
this.colorChange
|
|
122
|
+
}></geoscene-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
n("geoscene-charts-config-pie-chart-slices-popover", $);
|
|
126
|
+
export { $ as GeosceneChartsConfigPieChartSlicesPopover };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@geoscene/calcite-components/components/calcite-popover";
|
|
2
|
+
import "@geoscene/calcite-components/components/calcite-panel";
|
|
3
|
+
import "@geoscene/calcite-components/components/calcite-label";
|
|
4
|
+
import "@geoscene/calcite-components/components/calcite-input";
|
|
5
|
+
import "../geoscene-charts-config-colors/index.js";
|
|
6
|
+
export * from "./customElement.js";
|