@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,701 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
|
+
import {
|
|
4
|
+
LitElement as E,
|
|
5
|
+
createEvent as M,
|
|
6
|
+
renderElement as P,
|
|
7
|
+
safeClassMap as n,
|
|
8
|
+
safeStyleMap as F,
|
|
9
|
+
} from "@geoscene/lumina";
|
|
10
|
+
import {
|
|
11
|
+
getElementLocale as I,
|
|
12
|
+
normalizeLocale as w,
|
|
13
|
+
defaultLocale as _,
|
|
14
|
+
} from "@geoscene/toolkit/intl";
|
|
15
|
+
import { css as O, html as r } from "lit";
|
|
16
|
+
import { createRef as d, ref as p } from "lit/directives/ref.js";
|
|
17
|
+
import {
|
|
18
|
+
isEqual as B,
|
|
19
|
+
cloneDeep as H,
|
|
20
|
+
parseInt as L,
|
|
21
|
+
camelCase as N,
|
|
22
|
+
} from "lodash-es";
|
|
23
|
+
import { DateTime as U } from "luxon";
|
|
24
|
+
import {
|
|
25
|
+
bR as W,
|
|
26
|
+
_ as V,
|
|
27
|
+
by as K,
|
|
28
|
+
ds as x,
|
|
29
|
+
az as q,
|
|
30
|
+
d3 as R,
|
|
31
|
+
de as z,
|
|
32
|
+
aA as f,
|
|
33
|
+
} from "../../chunks/index.js";
|
|
34
|
+
import { u as T } from "../../chunks/useT9n.js";
|
|
35
|
+
import { d as l, W as v } from "../../chunks/interfaces.js";
|
|
36
|
+
import { H as j } from "../../chunks/common.js";
|
|
37
|
+
import "@geoscene/toolkit/type";
|
|
38
|
+
import {
|
|
39
|
+
j as y,
|
|
40
|
+
W as h,
|
|
41
|
+
a as u,
|
|
42
|
+
m as g,
|
|
43
|
+
v as b,
|
|
44
|
+
l as k,
|
|
45
|
+
u as X,
|
|
46
|
+
} from "../../chunks/series-types.js";
|
|
47
|
+
import { f as Z } from "../../chunks/rest-js-object-literals.js";
|
|
48
|
+
import { x as Y } from "../../chunks/data.js";
|
|
49
|
+
import { i as G } from "../../chunks/utils.js";
|
|
50
|
+
import "d3-array";
|
|
51
|
+
import "@geoscene/core/Graphic.js";
|
|
52
|
+
import "@geoscene/core/renderers/support/jsonUtils.js";
|
|
53
|
+
import "@geoscene/core/symbols/support/symbolUtils.js";
|
|
54
|
+
import "@geoscene/core/intl.js";
|
|
55
|
+
import "@geoscene/core/layers/support/FeatureFilter.js";
|
|
56
|
+
import "@geoscene/core/smartMapping/statistics/histogram.js";
|
|
57
|
+
import "@geoscene/core/smartMapping/statistics/summaryStatistics.js";
|
|
58
|
+
import "simple-statistics";
|
|
59
|
+
import "@geoscene/core/request.js";
|
|
60
|
+
import "@geoscene/core/core/sql.js";
|
|
61
|
+
import "@geoscene/core/AttributeBinsGraphic.js";
|
|
62
|
+
import "@geoscene/core/geometry/support/jsonUtils.js";
|
|
63
|
+
import "@geoscene/core/rest/support/AttributeBinsQuery.js";
|
|
64
|
+
import "@geoscene/core/rest/support/StatisticDefinition.js";
|
|
65
|
+
import "@geoscene/core/time/TimeExtent.js";
|
|
66
|
+
import "@geoscene/core/core/promiseUtils.js";
|
|
67
|
+
import "@geoscene/toolkit/dom";
|
|
68
|
+
import { r as J } from "../../chunks/popover-ui-utils.js";
|
|
69
|
+
import { j as $, s as Q } from "../../chunks/chart-ui-utils2.js";
|
|
70
|
+
import {
|
|
71
|
+
c as A,
|
|
72
|
+
g as ee,
|
|
73
|
+
a as te,
|
|
74
|
+
b as ae,
|
|
75
|
+
p as se,
|
|
76
|
+
d as le,
|
|
77
|
+
i as ie,
|
|
78
|
+
} from "../../chunks/class-breaks.js";
|
|
79
|
+
import { c as oe, s as re } from "../../chunks/store.js";
|
|
80
|
+
const ne = O`.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{display:flex;flex-direction:column;width:var(--geoscene-charts-config-calcite-block-default-width);margin:var(--geoscene-charts-config-calcite-block-default-margin);margin-top:var(--geoscene-charts-top-section-margin)}.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}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.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)}.accordion{margin-top:var(--geoscene-charts-config-margin-minor);margin-bottom:var(--geoscene-charts-config-margin-major)}`,
|
|
81
|
+
c = {
|
|
82
|
+
label: "label",
|
|
83
|
+
colorRamp: "color-ramp",
|
|
84
|
+
colorRampSegment: "color-ramp-segment",
|
|
85
|
+
list: "list",
|
|
86
|
+
accordion: "accordion",
|
|
87
|
+
};
|
|
88
|
+
class ce extends E {
|
|
89
|
+
constructor() {
|
|
90
|
+
super(...arguments),
|
|
91
|
+
(this._messages = T()),
|
|
92
|
+
(this.commonStrings = T({ name: "common", blocking: !0 })),
|
|
93
|
+
(this.heatChartPopover = null),
|
|
94
|
+
(this.xAxisFieldElement = d()),
|
|
95
|
+
(this.aggregationElement = d()),
|
|
96
|
+
(this.numericFieldsElement = d()),
|
|
97
|
+
(this.calendarTypeElement = d()),
|
|
98
|
+
(this.calendarViewTypeElement = d()),
|
|
99
|
+
(this.classBreakMethodElement = d()),
|
|
100
|
+
(this.nullElement = d()),
|
|
101
|
+
(this.breaksCountElement = d()),
|
|
102
|
+
(this.colorSchemeElement = d()),
|
|
103
|
+
(this.onHeatChartDataPopoverChange = async (e) => {
|
|
104
|
+
try {
|
|
105
|
+
if (e.detail?.value !== void 0) {
|
|
106
|
+
const { contentKind: t } = e.detail,
|
|
107
|
+
a = e.detail.value;
|
|
108
|
+
switch (t) {
|
|
109
|
+
case l.aggregation:
|
|
110
|
+
(this.model.aggregationType = a),
|
|
111
|
+
a === u.Count || a === u.Sum
|
|
112
|
+
? (this.model.nullPolicy = g.Zero)
|
|
113
|
+
: (this.model.nullPolicy = g.Null);
|
|
114
|
+
break;
|
|
115
|
+
case l.xAxisField:
|
|
116
|
+
(this.model.xAxisField = a),
|
|
117
|
+
this.setDefaultPropertiesForCalendarHeatChart();
|
|
118
|
+
break;
|
|
119
|
+
case l.numericFields:
|
|
120
|
+
(this.model.numericFields = [a.trim() || ""]),
|
|
121
|
+
(this.model.numericFields ?? []).length > 0 &&
|
|
122
|
+
this.model.aggregationType === u.Count &&
|
|
123
|
+
this.model.numericFields[0] !==
|
|
124
|
+
W(this.model.layer).idField &&
|
|
125
|
+
(this.model.aggregationType = u.Sum);
|
|
126
|
+
break;
|
|
127
|
+
case l.calendarType: {
|
|
128
|
+
switch (a) {
|
|
129
|
+
case v.YearByMonthAndDayOfMonth: {
|
|
130
|
+
const s = {
|
|
131
|
+
type: h.CalendarDateParts,
|
|
132
|
+
unit: y.DayOfMonth,
|
|
133
|
+
},
|
|
134
|
+
o = {
|
|
135
|
+
type: h.CalendarDateParts,
|
|
136
|
+
unit: y.MonthOfYear,
|
|
137
|
+
};
|
|
138
|
+
(this.model.xTemporalBinning = s),
|
|
139
|
+
this.model.setAxisValueFormat(0, {
|
|
140
|
+
type: h.DateAxisFormat,
|
|
141
|
+
intlOptions: { day: "2-digit" },
|
|
142
|
+
}),
|
|
143
|
+
(this.model.yTemporalBinning = o),
|
|
144
|
+
this.model.setAxisValueFormat(1, {
|
|
145
|
+
type: h.DateAxisFormat,
|
|
146
|
+
intlOptions: { month: "short" },
|
|
147
|
+
});
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
case v.WeekByDayOfWeekAndHourOfDay: {
|
|
151
|
+
const s = {
|
|
152
|
+
type: h.CalendarDateParts,
|
|
153
|
+
unit: y.HourOfDay,
|
|
154
|
+
},
|
|
155
|
+
o = {
|
|
156
|
+
type: h.CalendarDateParts,
|
|
157
|
+
unit: y.DayOfWeek,
|
|
158
|
+
},
|
|
159
|
+
{ lang: i } = I(this.el ?? document.documentElement),
|
|
160
|
+
m = w(i),
|
|
161
|
+
C = U.local()
|
|
162
|
+
.setLocale(i)
|
|
163
|
+
.startOf("week", { useLocaleWeeks: m !== _ }).weekday;
|
|
164
|
+
(this.model.firstDayOfWeek = C),
|
|
165
|
+
(this.model.xTemporalBinning = s),
|
|
166
|
+
this.model.setAxisValueFormat(0, {
|
|
167
|
+
type: h.DateAxisFormat,
|
|
168
|
+
intlOptions: { hour: "numeric", hour12: !1 },
|
|
169
|
+
}),
|
|
170
|
+
(this.model.yTemporalBinning = o),
|
|
171
|
+
this.model.setAxisValueFormat(1, {
|
|
172
|
+
type: h.DateAxisFormat,
|
|
173
|
+
intlOptions: { weekday: "short" },
|
|
174
|
+
});
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
default:
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
case l.calendarViewType: {
|
|
183
|
+
this.model.viewType = a;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
case l.classBreakMethod: {
|
|
187
|
+
(this.model.classificationMethod = a),
|
|
188
|
+
(this.updateChartRenderer = !0);
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
default:
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
} catch (t) {
|
|
196
|
+
throw (
|
|
197
|
+
(this.geosceneChartsConfigDataChangeError.emit({
|
|
198
|
+
error: t,
|
|
199
|
+
model: this.model,
|
|
200
|
+
}),
|
|
201
|
+
t)
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
this.removeHeatChartDataPopover(), this.requestUpdate();
|
|
205
|
+
}),
|
|
206
|
+
(this.popoverClose = (e) => {
|
|
207
|
+
this.heatChartPopover === e?.target &&
|
|
208
|
+
this.removeHeatChartDataPopover();
|
|
209
|
+
}),
|
|
210
|
+
(this.onModelConfigChange = () => {
|
|
211
|
+
V(this.model?.config) &&
|
|
212
|
+
(this.selectedColorRamp = A.defaultColorRampForCharts),
|
|
213
|
+
this.requestUpdate();
|
|
214
|
+
}),
|
|
215
|
+
(this.allColorRamps = []),
|
|
216
|
+
(this.onColorRampSelection = (e) => {
|
|
217
|
+
const { ramp: t, isFlipped: a } = e.detail;
|
|
218
|
+
(this.isFlipped = a),
|
|
219
|
+
B(this.selectedColorRamp, t) ||
|
|
220
|
+
((this.selectedColorRamp = t),
|
|
221
|
+
(this.updateChartRenderer = !0),
|
|
222
|
+
(this.updateClassBreaksColor = !0),
|
|
223
|
+
this.generateAndUpdateClassBreaks());
|
|
224
|
+
}),
|
|
225
|
+
(this.updateClassBreaksColor = !1),
|
|
226
|
+
(this.onEmptyCellNameChange = (e) => {
|
|
227
|
+
const { name: t } = e.detail;
|
|
228
|
+
if (t !== void 0) {
|
|
229
|
+
const s = {
|
|
230
|
+
...this.model.emptyCell,
|
|
231
|
+
name: t,
|
|
232
|
+
};
|
|
233
|
+
this.model.emptyCell = s;
|
|
234
|
+
}
|
|
235
|
+
}),
|
|
236
|
+
(this.onEmptyCellColorChange = (e) => {
|
|
237
|
+
const { color: t } = e.detail;
|
|
238
|
+
if (t !== void 0) {
|
|
239
|
+
const a = this.model.emptyCell,
|
|
240
|
+
s = {
|
|
241
|
+
...a,
|
|
242
|
+
symbol: {
|
|
243
|
+
...a?.symbol,
|
|
244
|
+
type: Z.SFS,
|
|
245
|
+
color: t,
|
|
246
|
+
outline: a?.symbol?.outline && {
|
|
247
|
+
...a.symbol.outline,
|
|
248
|
+
color: t,
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
this.model.emptyCell = s;
|
|
253
|
+
}
|
|
254
|
+
}),
|
|
255
|
+
(this.isFlipped = !1),
|
|
256
|
+
(this.availableColorRamps = []),
|
|
257
|
+
(this.updateChartRenderer = !1),
|
|
258
|
+
(this.layerFieldsInfo = []),
|
|
259
|
+
(this.geosceneChartsConfigDataChangeError = M());
|
|
260
|
+
}
|
|
261
|
+
static {
|
|
262
|
+
this.properties = {
|
|
263
|
+
availableColorRamps: 16,
|
|
264
|
+
aggregationLabel: 16,
|
|
265
|
+
selectedColorRamp: 16,
|
|
266
|
+
updateChartRenderer: 16,
|
|
267
|
+
messageOverrides: 0,
|
|
268
|
+
model: 0,
|
|
269
|
+
layerFieldsInfo: 0,
|
|
270
|
+
open: 5,
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
static {
|
|
274
|
+
this.styles = ne;
|
|
275
|
+
}
|
|
276
|
+
connectedCallback() {
|
|
277
|
+
super.connectedCallback(), this.loadColorRampFromGeoScene();
|
|
278
|
+
}
|
|
279
|
+
load() {
|
|
280
|
+
this.modelChange(this.model), this.onModelConfigChange();
|
|
281
|
+
}
|
|
282
|
+
willUpdate(e) {
|
|
283
|
+
e.has("model") && this.modelChange(this.model, e.get("model")),
|
|
284
|
+
(this.aggregationLabel = K(
|
|
285
|
+
this.model.aggregationType,
|
|
286
|
+
this.commonStrings
|
|
287
|
+
));
|
|
288
|
+
}
|
|
289
|
+
updated(e) {
|
|
290
|
+
e.has("updateChartRenderer") &&
|
|
291
|
+
this.updateChartRenderer &&
|
|
292
|
+
this.generateAndUpdateClassBreaks();
|
|
293
|
+
}
|
|
294
|
+
disconnectedCallback() {
|
|
295
|
+
super.disconnectedCallback(),
|
|
296
|
+
this.model.removeEventListener(
|
|
297
|
+
"geosceneChartsModelConfigChange",
|
|
298
|
+
this.onModelConfigChange
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
loadColorRampFromGeoScene() {
|
|
302
|
+
const e = A.esriColorRamps;
|
|
303
|
+
(this.allColorRamps = e), (this.availableColorRamps = this.allColorRamps);
|
|
304
|
+
}
|
|
305
|
+
normalizeClassBreakInfosForCompare(e, t) {
|
|
306
|
+
return (e ?? []).map(
|
|
307
|
+
({ classMinValue: a, classMaxValue: s, label: o, symbol: i }) => ({
|
|
308
|
+
classMinValue: a,
|
|
309
|
+
classMaxValue: s,
|
|
310
|
+
label: o,
|
|
311
|
+
symbol: t ? void 0 : i,
|
|
312
|
+
})
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
async generateAndUpdateClassBreaks() {
|
|
316
|
+
let e = [];
|
|
317
|
+
const t = this.model.chartRenderer?.classBreakInfos,
|
|
318
|
+
a =
|
|
319
|
+
this.requestedBreaksCount ??
|
|
320
|
+
this.model.breaksCount ??
|
|
321
|
+
x.classBreaks.breaksCount;
|
|
322
|
+
if (
|
|
323
|
+
this.model.classificationMethod === b.manual &&
|
|
324
|
+
t?.length &&
|
|
325
|
+
this.selectedColorRamp
|
|
326
|
+
) {
|
|
327
|
+
e = H(t) ?? [];
|
|
328
|
+
const i = ee({
|
|
329
|
+
numberOfClassBreaks: a,
|
|
330
|
+
selectedColorRamp: this.selectedColorRamp,
|
|
331
|
+
existingClassBreakInfos: t,
|
|
332
|
+
isFlipped: this.isFlipped,
|
|
333
|
+
});
|
|
334
|
+
e = te({
|
|
335
|
+
classBreakInfos: e,
|
|
336
|
+
colors: i,
|
|
337
|
+
});
|
|
338
|
+
} else if (this.model.classificationMethod !== b.manual) {
|
|
339
|
+
const i = oe(re);
|
|
340
|
+
i &&
|
|
341
|
+
(e = await ae({
|
|
342
|
+
data: i,
|
|
343
|
+
xAxisField: this.model.xAxisField,
|
|
344
|
+
classificationMethod: this.model.classificationMethod,
|
|
345
|
+
breaksCount: this.model.breaksCount,
|
|
346
|
+
layer: this.model.layer,
|
|
347
|
+
selectedColorRamp: this.selectedColorRamp,
|
|
348
|
+
availableColorRamps: this.availableColorRamps,
|
|
349
|
+
existingClassBreakInfos: t,
|
|
350
|
+
// use the color ramp only if the `selectedColorRamp` was not modified by the color ramp popover
|
|
351
|
+
useExistingColors: !this.updateClassBreaksColor,
|
|
352
|
+
// Note: selectedColorRamp already has flip applied if needed (handled by popover component)
|
|
353
|
+
isFlipped: this.isFlipped,
|
|
354
|
+
}));
|
|
355
|
+
}
|
|
356
|
+
const s = !this.updateClassBreaksColor,
|
|
357
|
+
o = !B(
|
|
358
|
+
this.normalizeClassBreakInfosForCompare(
|
|
359
|
+
this.model.chartRenderer?.classBreakInfos,
|
|
360
|
+
s
|
|
361
|
+
),
|
|
362
|
+
this.normalizeClassBreakInfosForCompare(e, s)
|
|
363
|
+
);
|
|
364
|
+
if (
|
|
365
|
+
this.updateChartRenderer &&
|
|
366
|
+
o &&
|
|
367
|
+
((this.model.chartRenderer = {
|
|
368
|
+
type: "classBreaks",
|
|
369
|
+
// TODO (heat-chart) use the correct type
|
|
370
|
+
field: q.valueField,
|
|
371
|
+
classBreakInfos: e,
|
|
372
|
+
}),
|
|
373
|
+
this.model.heatRulesType !== k.Renderer &&
|
|
374
|
+
(this.model.heatRulesType = k.Renderer),
|
|
375
|
+
this.model.classificationMethod !== b.manual)
|
|
376
|
+
) {
|
|
377
|
+
const i = e.length || a;
|
|
378
|
+
this.model.breaksCount !== i && (this.model.breaksCount = i);
|
|
379
|
+
}
|
|
380
|
+
(this.updateChartRenderer = !1), (this.updateClassBreaksColor = !1);
|
|
381
|
+
}
|
|
382
|
+
modelChange(e, t) {
|
|
383
|
+
t?.removeEventListener(
|
|
384
|
+
"geosceneChartsModelConfigChange",
|
|
385
|
+
this.onModelConfigChange
|
|
386
|
+
),
|
|
387
|
+
e?.addEventListener(
|
|
388
|
+
"geosceneChartsModelConfigChange",
|
|
389
|
+
this.onModelConfigChange
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
getCorrectedXAxisFieldValue() {
|
|
393
|
+
return Y({
|
|
394
|
+
fieldName: this.model.xAxisField,
|
|
395
|
+
fieldList: this.layerFieldsInfo,
|
|
396
|
+
})
|
|
397
|
+
? ""
|
|
398
|
+
: R(this.layerFieldsInfo, this.model.xAxisField);
|
|
399
|
+
}
|
|
400
|
+
onXAxisFieldSelect(e) {
|
|
401
|
+
(this.contentKind = l.xAxisField), this.setupPopover(e);
|
|
402
|
+
}
|
|
403
|
+
onNumericFieldSelect(e) {
|
|
404
|
+
(this.contentKind = l.numericFields), this.setupPopover(e);
|
|
405
|
+
}
|
|
406
|
+
onCalendarTypeSelect(e) {
|
|
407
|
+
(this.contentKind = l.calendarType), this.setupPopover(e);
|
|
408
|
+
}
|
|
409
|
+
onClassBreakMethodSelect(e) {
|
|
410
|
+
(this.contentKind = l.classBreakMethod), this.setupPopover(e);
|
|
411
|
+
}
|
|
412
|
+
onColorSchemeSelect(e) {
|
|
413
|
+
(this.contentKind = l.colorScheme), this.setupPopover(e);
|
|
414
|
+
}
|
|
415
|
+
onBreaksCountChange(e) {
|
|
416
|
+
let t = L(e.target.value);
|
|
417
|
+
t < f.min ? (t = f.min) : t > f.max && (t = f.max),
|
|
418
|
+
z(t) &&
|
|
419
|
+
(this.breaksCountElement.value &&
|
|
420
|
+
(this.breaksCountElement.value.value = t.toString()),
|
|
421
|
+
(this.requestedBreaksCount = t),
|
|
422
|
+
(this.model.breaksCount = t),
|
|
423
|
+
(this.updateChartRenderer = !0));
|
|
424
|
+
}
|
|
425
|
+
onAggregationSelect(e) {
|
|
426
|
+
(this.contentKind = l.aggregation), this.setupPopover(e);
|
|
427
|
+
}
|
|
428
|
+
onNullSelect(e) {
|
|
429
|
+
(this.contentKind = l.null), this.setupPopover(e);
|
|
430
|
+
}
|
|
431
|
+
onIncludeLeapDayChange(e) {
|
|
432
|
+
const t = e.target.checked;
|
|
433
|
+
this.model.includeLeapDay = t;
|
|
434
|
+
}
|
|
435
|
+
onNullPolicyChange(e) {
|
|
436
|
+
this.model.nullPolicy = e.target.selectedItem.value;
|
|
437
|
+
}
|
|
438
|
+
setupPopover(e) {
|
|
439
|
+
e.stopImmediatePropagation(), this.removeHeatChartDataPopover();
|
|
440
|
+
let t,
|
|
441
|
+
a,
|
|
442
|
+
s,
|
|
443
|
+
o = this.isFlipped;
|
|
444
|
+
switch (this.contentKind) {
|
|
445
|
+
case l.aggregation:
|
|
446
|
+
(t = this.aggregationElement.value),
|
|
447
|
+
(a = this._messages.aggregationHeader),
|
|
448
|
+
(s = this.model.aggregationType);
|
|
449
|
+
break;
|
|
450
|
+
case l.xAxisField:
|
|
451
|
+
(t = this.xAxisFieldElement.value),
|
|
452
|
+
(a = this._messages.xAxisField),
|
|
453
|
+
(s = this.model.xAxisField);
|
|
454
|
+
break;
|
|
455
|
+
case l.numericFields:
|
|
456
|
+
(t = this.numericFieldsElement.value),
|
|
457
|
+
(a = this._messages.numericField),
|
|
458
|
+
(s = this.model.numericFields?.[0]);
|
|
459
|
+
break;
|
|
460
|
+
case l.calendarType:
|
|
461
|
+
(t = this.calendarTypeElement.value),
|
|
462
|
+
(a = this._messages.calendarType),
|
|
463
|
+
(s = $(this.model));
|
|
464
|
+
break;
|
|
465
|
+
case l.calendarViewType:
|
|
466
|
+
(t = this.calendarViewTypeElement.value),
|
|
467
|
+
(a = this._messages.viewType),
|
|
468
|
+
(s = this.model.viewType);
|
|
469
|
+
break;
|
|
470
|
+
case l.classBreakMethod:
|
|
471
|
+
(t = this.classBreakMethodElement.value),
|
|
472
|
+
(a = this._messages.method),
|
|
473
|
+
(s = this.model.classificationMethod);
|
|
474
|
+
break;
|
|
475
|
+
case l.colorScheme:
|
|
476
|
+
(t = this.colorSchemeElement.value), (a = this._messages.colorScheme);
|
|
477
|
+
const i = se(
|
|
478
|
+
this.model.chartRenderer?.classBreakInfos,
|
|
479
|
+
this.availableColorRamps
|
|
480
|
+
);
|
|
481
|
+
s = this.selectedColorRamp?.name ?? i?.name;
|
|
482
|
+
const m = i
|
|
483
|
+
? i.colorsForClassBreaks.find(
|
|
484
|
+
(C) => C.numClasses === this.model.breaksCount
|
|
485
|
+
)?.colors
|
|
486
|
+
: void 0;
|
|
487
|
+
o = m ? ie(m, this.model.chartRenderer?.classBreakInfos) : o;
|
|
488
|
+
break;
|
|
489
|
+
case l.null:
|
|
490
|
+
(t = e.target), (a = this._messages.null);
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
(this.heatChartPopover = P(
|
|
494
|
+
r`<geoscene-charts-config-heat-chart-popover .headingTitle=${a} .referenceElement=${t} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${s} @geosceneChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @geosceneChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @geosceneChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @geosceneChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @geosceneChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange} .isFlipped=${o}></geoscene-charts-config-heat-chart-popover>`
|
|
495
|
+
)),
|
|
496
|
+
!document.body.contains(this.heatChartPopover) &&
|
|
497
|
+
this.heatChartPopover !== null &&
|
|
498
|
+
document.body.appendChild(this.heatChartPopover);
|
|
499
|
+
}
|
|
500
|
+
removeHeatChartDataPopover() {
|
|
501
|
+
this.heatChartPopover !== null &&
|
|
502
|
+
((this.heatChartPopover.open = !1),
|
|
503
|
+
(this.heatChartPopover = J(this.heatChartPopover)));
|
|
504
|
+
}
|
|
505
|
+
setDefaultPropertiesForCalendarHeatChart() {
|
|
506
|
+
if (!G(this.model?.config)) {
|
|
507
|
+
if (this.model.xTemporalBinning === void 0) {
|
|
508
|
+
const e = {
|
|
509
|
+
type: h.CalendarDateParts,
|
|
510
|
+
unit: y.DayOfMonth,
|
|
511
|
+
};
|
|
512
|
+
this.model.xTemporalBinning = e;
|
|
513
|
+
}
|
|
514
|
+
if (
|
|
515
|
+
((this.model.yAxisField = this.model.xAxisField),
|
|
516
|
+
this.model.setYAxisSortOrder(j.Desc),
|
|
517
|
+
this.model.yTemporalBinning === void 0)
|
|
518
|
+
) {
|
|
519
|
+
const e = {
|
|
520
|
+
type: h.CalendarDateParts,
|
|
521
|
+
unit: y.MonthOfYear,
|
|
522
|
+
};
|
|
523
|
+
(this.model.yTemporalBinning = e),
|
|
524
|
+
this.model.setAxisValueFormat(1, {
|
|
525
|
+
type: h.DateAxisFormat,
|
|
526
|
+
intlOptions: { month: "short" },
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
this.model.classificationMethod === void 0 &&
|
|
530
|
+
(this.model.classificationMethod = b.naturalBreaks),
|
|
531
|
+
this.model.heatRulesType !== k.Renderer &&
|
|
532
|
+
(this.model.heatRulesType = k.Renderer),
|
|
533
|
+
this.model.viewType === void 0 &&
|
|
534
|
+
(this.model.viewType = X.singleCalendarView),
|
|
535
|
+
(this.model.aggregationType === u.Count ||
|
|
536
|
+
this.model.aggregationType === u.Sum) &&
|
|
537
|
+
this.model.nullPolicy !== g.Zero &&
|
|
538
|
+
(this.model.nullPolicy = g.Zero);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
renderXAxisFieldSelect() {
|
|
542
|
+
const e = this.getCorrectedXAxisFieldValue();
|
|
543
|
+
return r`<geoscene-charts-config-field-select .label=${e} @click=${
|
|
544
|
+
this.onXAxisFieldSelect
|
|
545
|
+
} ${p(this.xAxisFieldElement)}></geoscene-charts-config-field-select>`;
|
|
546
|
+
}
|
|
547
|
+
renderAggregation() {
|
|
548
|
+
return r`<geoscene-charts-config-field-select .label=${
|
|
549
|
+
this.model.aggregationType === u.NoAggregation
|
|
550
|
+
? this._messages.noAggregation
|
|
551
|
+
: this.aggregationLabel
|
|
552
|
+
} @click=${this.onAggregationSelect} ${p(
|
|
553
|
+
this.aggregationElement
|
|
554
|
+
)}></geoscene-charts-config-field-select>`;
|
|
555
|
+
}
|
|
556
|
+
renderNumericFieldsSelect() {
|
|
557
|
+
const e =
|
|
558
|
+
this.model.numericFields?.[0] === this.model.layer?.objectIdField
|
|
559
|
+
? ""
|
|
560
|
+
: R(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
561
|
+
return r`<geoscene-charts-config-field-select .label=${e} @click=${
|
|
562
|
+
this.onNumericFieldSelect
|
|
563
|
+
} ${p(this.numericFieldsElement)}></geoscene-charts-config-field-select>`;
|
|
564
|
+
}
|
|
565
|
+
renderCalendarTypeSelect() {
|
|
566
|
+
const e = $(this.model) ?? "",
|
|
567
|
+
t = {
|
|
568
|
+
weekByDayOfWeekAndHourOfDay: this._messages.weekByDayOfWeekAndHourOfDay,
|
|
569
|
+
yearByMonthAndDayOfMonth: this._messages.yearByMonthAndDayOfMonth,
|
|
570
|
+
},
|
|
571
|
+
a = e ? t[e] ?? "" : "";
|
|
572
|
+
return r`<geoscene-charts-config-field-select .label=${a} @click=${
|
|
573
|
+
this.onCalendarTypeSelect
|
|
574
|
+
} ${p(this.calendarTypeElement)}></geoscene-charts-config-field-select>`;
|
|
575
|
+
}
|
|
576
|
+
renderClassBreakMethodSelect() {
|
|
577
|
+
const e = {
|
|
578
|
+
equalInterval: this._messages.classBreaksMethod?.equalInterval,
|
|
579
|
+
manual: this._messages.classBreaksMethod?.manual,
|
|
580
|
+
naturalBreaks: this._messages.classBreaksMethod?.naturalBreaks,
|
|
581
|
+
quantile: this._messages.classBreaksMethod?.quantile,
|
|
582
|
+
},
|
|
583
|
+
t = this.model.classificationMethod
|
|
584
|
+
? e[N(this.model.classificationMethod)] ?? ""
|
|
585
|
+
: "";
|
|
586
|
+
return r`<geoscene-charts-config-field-select .label=${t} @click=${
|
|
587
|
+
this.onClassBreakMethodSelect
|
|
588
|
+
} ${p(
|
|
589
|
+
this.classBreakMethodElement
|
|
590
|
+
)}></geoscene-charts-config-field-select>`;
|
|
591
|
+
}
|
|
592
|
+
renderColorRampSelect() {
|
|
593
|
+
const e = this.model.chartRenderer?.classBreakInfos?.map((t) => {
|
|
594
|
+
const a = t !== void 0 ? le(t.symbol.color) : "#FFFFFF";
|
|
595
|
+
return r`<div class=${n(c.colorRampSegment)} style=${F({
|
|
596
|
+
backgroundColor: a,
|
|
597
|
+
width: `${100 / this.model.breaksCount}%`,
|
|
598
|
+
})}></div>`;
|
|
599
|
+
});
|
|
600
|
+
return r`<geoscene-charts-config-field-select label @click=${
|
|
601
|
+
this.onColorSchemeSelect
|
|
602
|
+
} ${p(this.colorSchemeElement)}><div slot=fieldSelectSlot class=${n(
|
|
603
|
+
c.colorRamp
|
|
604
|
+
)}>${e}</div></geoscene-charts-config-field-select>`;
|
|
605
|
+
}
|
|
606
|
+
renderClassBreaksTable() {
|
|
607
|
+
const e = this.model.chartRenderer?.classBreakInfos ?? [];
|
|
608
|
+
return r`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${
|
|
609
|
+
this._messages.symbol
|
|
610
|
+
}></calcite-table-header><calcite-table-header .heading=${
|
|
611
|
+
this._messages.upperValue
|
|
612
|
+
}></calcite-table-header></calcite-table-row>${e.map(
|
|
613
|
+
(t) =>
|
|
614
|
+
r`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${
|
|
615
|
+
t.symbol.color?.[0]
|
|
616
|
+
}, ${t.symbol.color?.[1]}, ${t.symbol.color?.[2]}, ${
|
|
617
|
+
t.symbol.color?.[3] / 255
|
|
618
|
+
})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${
|
|
619
|
+
t.label
|
|
620
|
+
}</calcite-table-cell></calcite-table-row>`
|
|
621
|
+
)}</calcite-table>`;
|
|
622
|
+
}
|
|
623
|
+
renderNullUI() {
|
|
624
|
+
const e = this.model.emptyCell,
|
|
625
|
+
t = this._messages.null,
|
|
626
|
+
a = e?.symbol?.color ?? x.grayColor,
|
|
627
|
+
[s, o, i, m] = [...a],
|
|
628
|
+
C = `rgba(${s},${o},${i},${m / 255})`;
|
|
629
|
+
return r`<calcite-list label class=${n(c.list)} selection-mode=none ${p(
|
|
630
|
+
this.nullElement
|
|
631
|
+
)}><calcite-list-item .label=${t} .value=${t} @calciteListItemSelect=${
|
|
632
|
+
this.onNullSelect
|
|
633
|
+
}><calcite-icon icon=square-f style=${F({
|
|
634
|
+
color: C,
|
|
635
|
+
})} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
636
|
+
}
|
|
637
|
+
renderEmptyBins() {
|
|
638
|
+
return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${
|
|
639
|
+
this.onNullPolicyChange
|
|
640
|
+
}><calcite-label layout=inline><calcite-radio-button .value=${
|
|
641
|
+
g.Zero
|
|
642
|
+
} .checked=${this.model.nullPolicy === g.Zero}></calcite-radio-button>${
|
|
643
|
+
this._messages.treatAsZero
|
|
644
|
+
}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${
|
|
645
|
+
g.Null
|
|
646
|
+
} .checked=${this.model.nullPolicy === g.Null}></calcite-radio-button>${
|
|
647
|
+
this._messages.treatAsNull
|
|
648
|
+
}</calcite-label></calcite-radio-button-group>`;
|
|
649
|
+
}
|
|
650
|
+
render() {
|
|
651
|
+
const e = this.renderXAxisFieldSelect(),
|
|
652
|
+
t = this.renderAggregation(),
|
|
653
|
+
a = this.renderNumericFieldsSelect(),
|
|
654
|
+
s = this.renderCalendarTypeSelect(),
|
|
655
|
+
o = this.renderClassBreakMethodSelect(),
|
|
656
|
+
i = this.renderColorRampSelect(),
|
|
657
|
+
m = this.renderClassBreaksTable(),
|
|
658
|
+
C = this.renderNullUI(),
|
|
659
|
+
S = this.renderEmptyBins();
|
|
660
|
+
return r`<calcite-label class=${n(c.label)}>${
|
|
661
|
+
this._messages.dateRequired
|
|
662
|
+
}${e}</calcite-label><calcite-label class=${n(c.label)}>${
|
|
663
|
+
this._messages.calendarType
|
|
664
|
+
}${s}</calcite-label><calcite-label class=${n(c.label)}>${
|
|
665
|
+
this._messages.aggregation
|
|
666
|
+
}${t}</calcite-label><calcite-label class=${n(c.label)}>${
|
|
667
|
+
this._messages.numericField
|
|
668
|
+
}${a}</calcite-label><calcite-label class=${n(c.label)}>${
|
|
669
|
+
this._messages.method
|
|
670
|
+
}${o}</calcite-label><calcite-label class=${n(c.label)}>${
|
|
671
|
+
this._messages.numberOfClasses
|
|
672
|
+
}<calcite-input type=number .min=${f.min} .max=${f.max} .disabled=${
|
|
673
|
+
this.model.classificationMethod === void 0 ||
|
|
674
|
+
this.model.classificationMethod === b.manual
|
|
675
|
+
} step=1 .value=${Q(this.model.breaksCount, 5)} @calciteInputInput=${
|
|
676
|
+
this.onBreaksCountChange
|
|
677
|
+
} ${p(
|
|
678
|
+
this.breaksCountElement
|
|
679
|
+
)}></calcite-input></calcite-label><calcite-label class=${n(c.label)}>${
|
|
680
|
+
this._messages.colorScheme
|
|
681
|
+
}${i}</calcite-label>${C}<calcite-accordion class=${n(
|
|
682
|
+
c.accordion
|
|
683
|
+
)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${
|
|
684
|
+
this._messages.classBreaks
|
|
685
|
+
}>${m}</calcite-accordion-item></calcite-accordion><calcite-label class=${n(
|
|
686
|
+
c.label
|
|
687
|
+
)}>${this._messages.emptyBins}${S}</calcite-label>${
|
|
688
|
+
$(this.model) === v.YearByMonthAndDayOfMonth
|
|
689
|
+
? r`<calcite-label class=${n(c.label)} layout=inline-space-between>${
|
|
690
|
+
this._messages.includeLeapDay
|
|
691
|
+
}<calcite-switch .checked=${
|
|
692
|
+
this.model.includeLeapDay
|
|
693
|
+
} @calciteSwitchChange=${
|
|
694
|
+
this.onIncludeLeapDayChange
|
|
695
|
+
}></calcite-switch></calcite-label>`
|
|
696
|
+
: null
|
|
697
|
+
}`;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
D("geoscene-charts-config-heat-chart-data", ce);
|
|
701
|
+
export { ce as GeosceneChartsConfigHeatChartData };
|