@arcgis/charts-components 5.0.0-next.115 → 5.0.0-next.116
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/dist/cdn/2AT47FOV.js +4 -0
- package/dist/cdn/{AZWSISRT.js → 2FBA5PUG.js} +2 -2
- package/dist/cdn/{EUEQKEB2.js → 2GMN5SDI.js} +2 -2
- package/dist/cdn/{CG55RSDC.js → 2QS5TJQ5.js} +2 -2
- package/dist/cdn/{HCO5YQ72.js → 2UFPDUIM.js} +2 -2
- package/dist/cdn/{26D4GMXF.js → 2VJZAFQ5.js} +2 -2
- package/dist/cdn/{ZEI5UJD6.js → 2VTJEBKD.js} +2 -2
- package/dist/cdn/32Z3ILDE.js +4 -0
- package/dist/cdn/332VMES2.js +4 -0
- package/dist/cdn/3EIELKWA.js +4 -0
- package/dist/cdn/{WSNXOLJA.js → 3G326OQZ.js} +2 -2
- package/dist/cdn/{KTSRSEO4.js → 3KMT633V.js} +2 -2
- package/dist/cdn/{GMZACYZ3.js → 3QIAN4NS.js} +2 -2
- package/dist/cdn/{5RMAR5AD.js → 3QQW7LHD.js} +2 -2
- package/dist/cdn/3RFGO2LD.js +4 -0
- package/dist/cdn/{IWPJBYSD.js → 3RLZ3DW3.js} +2 -2
- package/dist/cdn/{JQIBHF7Z.js → 45QWWJD3.js} +2 -2
- package/dist/cdn/{HHKZBYNN.js → 4J4KBZY3.js} +2 -2
- package/dist/cdn/{JULMKZRI.js → 4LBJNKKZ.js} +2 -2
- package/dist/cdn/{FVUCNSTU.js → 4OGHM3VZ.js} +2 -2
- package/dist/cdn/{CY5ISGPJ.js → 4QFEW5TW.js} +2 -2
- package/dist/cdn/{SDEUFAVU.js → 4RMNH5HJ.js} +2 -2
- package/dist/cdn/{RFYSLKSN.js → 55MXXTNW.js} +2 -2
- package/dist/cdn/{4GR7IULE.js → 57E24OM4.js} +2 -2
- package/dist/cdn/{4QP5AP63.js → 5DW2ZJAO.js} +2 -2
- package/dist/cdn/{DWGSG3SV.js → 5EWHPJJ5.js} +2 -2
- package/dist/cdn/{TFJPMWMV.js → 5I5JN5D4.js} +2 -2
- package/dist/cdn/65N2W4PE.js +34 -0
- package/dist/cdn/{EH4W4W4Q.js → 6EJUU3SQ.js} +2 -2
- package/dist/cdn/6TJC4ARR.js +4 -0
- package/dist/cdn/{YPEPDHAZ.js → 6VN7W4Z2.js} +1 -1
- package/dist/cdn/6YNW5VCL.js +4 -0
- package/dist/cdn/7AUAR63V.js +4 -0
- package/dist/cdn/{RRFPDIKY.js → 7GUP5FX5.js} +2 -2
- package/dist/cdn/{MFECARAG.js → 7KNKL7YD.js} +2 -2
- package/dist/cdn/{EWJOK3I4.js → 7LIDKM3N.js} +2 -2
- package/dist/cdn/{PSHSQ5B5.js → A4QJGZYT.js} +2 -2
- package/dist/cdn/A4ZWPSMP.js +4 -0
- package/dist/cdn/{EIYQBXGY.js → AHMMJX3X.js} +2 -2
- package/dist/cdn/APSLVZEW.js +4 -0
- package/dist/cdn/{I2R23ITV.js → AQQXXPQZ.js} +2 -2
- package/dist/cdn/AUWJJX2Y.js +4 -0
- package/dist/cdn/{K55E4LKR.js → AXHOHEHC.js} +1 -1
- package/dist/cdn/{JUEYB7XB.js → BP5JW4TO.js} +2 -2
- package/dist/cdn/{UJG3D6ZP.js → BQF3ODZK.js} +2 -2
- package/dist/cdn/{KTQORRVT.js → BWHBVBRT.js} +2 -2
- package/dist/cdn/C47CFB4O.js +4 -0
- package/dist/cdn/{DUD2ALU6.js → CBVYZRGJ.js} +2 -2
- package/dist/cdn/{3EJASBUU.js → CCFDRTZG.js} +14 -14
- package/dist/cdn/CGR4BWQJ.js +4 -0
- package/dist/cdn/CGXE3LSR.js +4 -0
- package/dist/cdn/{YN4SXIBL.js → CVA2R34Y.js} +2 -2
- package/dist/cdn/{W4DL3L3V.js → CXA7LQDC.js} +3 -3
- package/dist/cdn/{LRSMCF5H.js → CZSHY7VL.js} +2 -2
- package/dist/cdn/{W64CZPBS.js → D2TJTRO3.js} +2 -2
- package/dist/cdn/{TUXJNUAP.js → D6FUQNYT.js} +2 -2
- package/dist/cdn/DEBFITLZ.js +4 -0
- package/dist/cdn/{NQRONGZE.js → DPP5JBQ6.js} +1 -1
- package/dist/cdn/DSBEXXSM.js +4 -0
- package/dist/cdn/{J6ZOFAMO.js → E3YRBMHV.js} +2 -2
- package/dist/cdn/{RKNT6P3F.js → EAS3QCTO.js} +2 -2
- package/dist/cdn/{JXA2D3AK.js → F23KF5EO.js} +2 -2
- package/dist/cdn/{WKHN6LIH.js → F5R34OKI.js} +2 -2
- package/dist/cdn/{4MDU7LKE.js → F6MBWAXU.js} +2 -2
- package/dist/cdn/{LW2LDASO.js → FV6A53GU.js} +2 -2
- package/dist/cdn/FVRR32JS.js +4 -0
- package/dist/cdn/{5AENVGQN.js → G365JBMZ.js} +1 -1
- package/dist/cdn/{WAZA5GUO.js → GEUAPKKO.js} +2 -2
- package/dist/cdn/GFEH2RHW.js +4 -0
- package/dist/cdn/GFZKNEVQ.js +4 -0
- package/dist/cdn/GVJLDDWJ.js +4 -0
- package/dist/cdn/GWUK3GRV.js +4 -0
- package/dist/cdn/{ZJ7QTII4.js → GZLY6HQP.js} +1 -1
- package/dist/cdn/{CM4NN4HH.js → H2AO665N.js} +2 -2
- package/dist/cdn/{G6FGSXTA.js → HD2ZXNGB.js} +2 -2
- package/dist/cdn/{SDISSAJD.js → HMSCED6P.js} +2 -2
- package/dist/cdn/HOCGYEJY.js +4 -0
- package/dist/cdn/HT6LU5EY.js +4 -0
- package/dist/cdn/I7HHGT5I.js +4 -0
- package/dist/cdn/{MGPQZ4NU.js → IAAJMNRU.js} +2 -2
- package/dist/cdn/{53DHZIW3.js → IBAAGUE6.js} +2 -2
- package/dist/cdn/{3V2KQARO.js → ICDQXJJL.js} +2 -2
- package/dist/cdn/IGJEGPQG.js +4 -0
- package/dist/cdn/{EADV2G5P.js → IGPDOFMJ.js} +2 -2
- package/dist/cdn/{ZZYELA6W.js → IJL3YCYM.js} +2 -2
- package/dist/cdn/ILR2ZA54.js +4 -0
- package/dist/cdn/IWRMT56Y.js +4 -0
- package/dist/cdn/JBCIMXER.js +4 -0
- package/dist/cdn/{6HPC5G57.js → JCNLCLEG.js} +2 -2
- package/dist/cdn/{JHVORALO.js → JFH3QUYT.js} +2 -2
- package/dist/cdn/JHQ2UAPI.js +4 -0
- package/dist/cdn/JHYUP7LW.js +4 -0
- package/dist/cdn/{N75RORYL.js → JMTVC3GN.js} +2 -2
- package/dist/cdn/{L5ELCX2A.js → JQ7YFFRL.js} +2 -2
- package/dist/cdn/JQJIXGU3.js +4 -0
- package/dist/cdn/JV3PG2AD.js +4 -0
- package/dist/cdn/{DW5XTXTD.js → KCSYVBWF.js} +2 -2
- package/dist/cdn/KO5OGIH7.js +4 -0
- package/dist/cdn/KQJAG7ZS.js +4 -0
- package/dist/cdn/{CLX23KTF.js → L2TWIH5Z.js} +2 -2
- package/dist/cdn/{3F7M27PL.js → L2ZJMBZB.js} +2 -2
- package/dist/cdn/{2FE7MMIQ.js → L3VZ5IHX.js} +2 -2
- package/dist/cdn/{GWZCMBKY.js → L4OFBY5Y.js} +2 -2
- package/dist/cdn/{UXP3FKKX.js → L6QEAS33.js} +2 -2
- package/dist/cdn/{EGPNE6RS.js → LATBVT72.js} +2 -2
- package/dist/cdn/{BDJSGEDC.js → LG6SJISO.js} +2 -2
- package/dist/cdn/LHMOTHQN.js +4 -0
- package/dist/cdn/{RYEQGLIL.js → LKT35O5Z.js} +2 -2
- package/dist/cdn/{T2QHNLD4.js → LNY7VO77.js} +2 -2
- package/dist/cdn/{DSESL62Y.js → LOMSWOGR.js} +2 -2
- package/dist/cdn/LQRES7J3.js +4 -0
- package/dist/cdn/LVVIF2B4.js +4 -0
- package/dist/cdn/{IBEDYTZ2.js → M4V2KEMZ.js} +2 -2
- package/dist/cdn/M6S5OWHP.js +4 -0
- package/dist/cdn/MIIKHSMB.js +4 -0
- package/dist/cdn/{OLAQBQ74.js → MVYX2MFL.js} +2 -2
- package/dist/cdn/MZQWX4ZT.js +4 -0
- package/dist/cdn/NI33RNQT.js +4 -0
- package/dist/cdn/NMQALZXT.js +4 -0
- package/dist/cdn/NMT7YR35.js +4 -0
- package/dist/cdn/NSZAL7FV.js +4 -0
- package/dist/cdn/{OX6ZCQ4Y.js → ODOWMT3R.js} +2 -2
- package/dist/cdn/OG6S5Q4T.js +4 -0
- package/dist/cdn/ON4QNUDJ.js +4 -0
- package/dist/cdn/{QXTQW3QG.js → OOYEE27X.js} +2 -2
- package/dist/cdn/{5DS7BG4I.js → OU76SIMR.js} +2 -2
- package/dist/cdn/OXI4STZW.js +4 -0
- package/dist/cdn/{2SPHPFQN.js → P6RNC2LG.js} +2 -2
- package/dist/cdn/{ZMQU7VIU.js → PNWK6NJT.js} +2 -2
- package/dist/cdn/{VIBFJMMM.js → PYSV3QLB.js} +2 -2
- package/dist/cdn/PYYXSBKR.js +4 -0
- package/dist/cdn/QBW7NI3U.js +4 -0
- package/dist/cdn/{T6JTPLQE.js → QC2RKL3B.js} +1 -1
- package/dist/cdn/{GRWUK3TJ.js → QXQQWDEZ.js} +2 -2
- package/dist/cdn/{IMQO6QWN.js → R53DVOJE.js} +2 -2
- package/dist/cdn/ROIWM7BI.js +4 -0
- package/dist/cdn/RTAXTMOR.js +4 -0
- package/dist/cdn/S3KVJXFW.js +4 -0
- package/dist/cdn/SAANFMWQ.js +4 -0
- package/dist/cdn/{NUG2QK2F.js → SG2AXP3X.js} +2 -2
- package/dist/cdn/SJZHFPQY.js +4 -0
- package/dist/cdn/STFWYSRQ.js +4 -0
- package/dist/cdn/{2PDGRI76.js → SY2XGQFQ.js} +2 -2
- package/dist/cdn/TBMQYFV3.js +4 -0
- package/dist/cdn/{YIXVTD3B.js → THYCR5MP.js} +2 -2
- package/dist/cdn/TOKTXF46.js +4 -0
- package/dist/cdn/TVO6I7Z4.js +4 -0
- package/dist/cdn/{EATIKGOY.js → U5YU25AX.js} +2 -2
- package/dist/cdn/{VN2ONUCD.js → UEUW4SDT.js} +2 -2
- package/dist/cdn/UGPTGIHT.js +4 -0
- package/dist/cdn/{TQFMQYPU.js → UINIKLYT.js} +2 -2
- package/dist/cdn/{IL7QZR2E.js → UQUSUIJZ.js} +2 -2
- package/dist/cdn/{J2FOULAV.js → UWA76BGM.js} +2 -2
- package/dist/cdn/{SUTYM7H2.js → UZLKNIS6.js} +2 -2
- package/dist/cdn/{N5KL3XXT.js → VAQBU5UZ.js} +2 -2
- package/dist/cdn/{6OUWBJVV.js → VFKVM3NN.js} +2 -2
- package/dist/cdn/{3G7R4BAQ.js → VIQWFB6N.js} +2 -2
- package/dist/cdn/{TIBZYC7K.js → VRNNMWD4.js} +2 -2
- package/dist/cdn/{CIYCSOI2.js → VVU6BIVW.js} +2 -2
- package/dist/cdn/{J72X6ZSD.js → VZ7TPZSI.js} +2 -2
- package/dist/cdn/{EUZVWMRV.js → VZJHCJ6S.js} +2 -2
- package/dist/cdn/{6UL65RJB.js → W24IPQ7R.js} +2 -2
- package/dist/cdn/{IH3ZGUDN.js → W55AMOTU.js} +2 -2
- package/dist/cdn/{EEIQVSS3.js → WHKYXSL2.js} +2 -2
- package/dist/cdn/WINJFIVF.js +4 -0
- package/dist/cdn/{GRSRRM6R.js → WJIAB5OJ.js} +2 -2
- package/dist/cdn/{G4D3UMKX.js → WKDKHX46.js} +2 -2
- package/dist/cdn/{WQX45IIX.js → WQW55OS7.js} +2 -2
- package/dist/cdn/WY7Y5NGU.js +4 -0
- package/dist/cdn/XGH4RVKQ.js +4 -0
- package/dist/cdn/XGOB736F.js +4 -0
- package/dist/cdn/{5WOHRUAH.js → XGZ3RDUR.js} +2 -2
- package/dist/cdn/XTN72LYW.js +4 -0
- package/dist/cdn/{KN3RT5AI.js → XUGPAMZX.js} +2 -2
- package/dist/cdn/YBRYODCY.js +4 -0
- package/dist/cdn/YEW5KZW7.js +4 -0
- package/dist/cdn/YKWORUIJ.js +4 -0
- package/dist/cdn/{LT2L5JNG.js → YOZZWZZ2.js} +2 -2
- package/dist/cdn/{TQHTYVLC.js → YTODIPYA.js} +2 -2
- package/dist/cdn/{BRTTBL4Y.js → Z5TZMPWH.js} +2 -2
- package/dist/cdn/{XU25UXWG.js → Z6MC3U6Z.js} +2 -2
- package/dist/cdn/{2M5IFRUO.js → ZIY3JLY2.js} +2 -2
- package/dist/cdn/{TTX3OSYJ.js → ZURYTGOH.js} +2 -2
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chart-rendering/common/config-utils/index.d.ts +1 -1
- package/dist/chart-rendering/common/defaults/interfaces.d.ts +3 -0
- package/dist/chart-rendering/next/chart-library-elements/legend/heat-legend/index.d.ts +1 -1
- package/dist/chart-rendering/next/chart-library-elements/legend/index.d.ts +2 -2
- package/dist/chunks/action-bar-utils.js +20 -19
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +6 -5
- package/dist/chunks/bar-chart-series.js +2 -2
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +71 -70
- package/dist/chunks/box-plot-model.js +55 -51
- package/dist/chunks/chart-ui-utils.js +26 -22
- package/dist/chunks/chart-ui-utils2.js +84 -77
- package/dist/chunks/class-breaks.js +126 -0
- package/dist/chunks/combo-bar-line-chart-model.js +49 -48
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/data-labels-symbol.js +66 -0
- package/dist/chunks/data-labels-visibility.js +87 -0
- package/dist/chunks/data.js +41 -40
- package/dist/chunks/default.js +4 -4
- package/dist/chunks/gauge-model.js +24 -23
- package/dist/chunks/heat-chart-model.js +174 -124
- package/dist/chunks/histogram-data.js +42 -41
- package/dist/chunks/histogram-model.js +42 -39
- package/dist/chunks/index.js +1708 -1648
- package/dist/chunks/index2.js +180 -161
- package/dist/chunks/index3.js +184 -91
- package/dist/chunks/index4.js +96 -63
- package/dist/chunks/index5.js +67 -0
- package/dist/chunks/interfaces.js +26 -12
- package/dist/chunks/line-chart-model.js +7 -5
- package/dist/chunks/model-setter.js +114 -0
- package/dist/chunks/model-with-multi-axes.js +633 -712
- package/dist/chunks/negative-values-stacked-to-baseline.js +3 -3
- package/dist/chunks/pie-chart-data.js +39 -38
- package/dist/chunks/pie-chart-model.js +123 -115
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +7 -5
- package/dist/chunks/resource.js +2 -2
- package/dist/chunks/rest-js-object-literals.js +8 -8
- package/dist/chunks/rotated-state.js +56 -0
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +68 -64
- package/dist/chunks/serial-chart-data.js +705 -949
- package/dist/chunks/serial-chart-model.js +35 -30
- package/dist/chunks/series-types.js +56 -40
- package/dist/chunks/sk_SK.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +49 -56
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +222 -0
- package/dist/chunks/web-component-utils.js +32 -32
- package/dist/components/arcgis-chart/customElement.d.ts +2 -0
- package/dist/components/arcgis-chart/customElement.js +930 -936
- package/dist/components/arcgis-charts-action-bar/customElement.js +6 -5
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +33 -34
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +51 -51
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +183 -173
- package/dist/components/arcgis-charts-config-create-flow/index.d.ts +1 -0
- package/dist/components/arcgis-charts-config-create-flow/index.js +1 -0
- package/dist/components/arcgis-charts-config-field-select/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-font-style/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-format/customElement.js +22 -20
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-guide/customElement.js +24 -24
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guides/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.d.ts +41 -0
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +87 -0
- package/dist/components/arcgis-charts-config-heat-chart/index.d.ts +4 -0
- package/dist/components/arcgis-charts-config-heat-chart/index.js +4 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.d.ts +46 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +370 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/index.d.ts +15 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +15 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/resources.d.ts +7 -0
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.d.ts +103 -0
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +288 -0
- package/dist/components/arcgis-charts-config-heat-chart-popover/index.d.ts +12 -0
- package/dist/components/arcgis-charts-config-heat-chart-popover/index.js +12 -0
- package/dist/components/arcgis-charts-config-heat-chart-popover/resources.d.ts +18 -0
- package/dist/components/arcgis-charts-config-histogram/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +63 -64
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +33 -33
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.d.ts +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +407 -583
- package/dist/interfaces.d.ts +19 -0
- package/dist/json-schema/index.d.ts +60 -14
- package/dist/loader.js +4 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +5 -2
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +39 -9
- package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +55 -18
- package/dist/model/histogram-model/histogram-model.d.ts +4 -2
- package/dist/model/mixins/index.d.ts +0 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +4 -2
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +25 -0
- package/dist/model/properties/data-labels/data-labels-visibility.d.ts +25 -0
- package/dist/model/properties/rotated-state.d.ts +24 -0
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +4 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +5 -2
- package/dist/model/shared/axes.d.ts +0 -7
- package/dist/model/shared/type-guards.d.ts +18 -17
- package/dist/model/shared/utils.d.ts +10 -1
- package/dist/model.js +15 -17
- package/dist/spec/chart-object-literals.d.ts +27 -0
- package/dist/spec/web-chart.d.ts +50 -16
- package/dist/utils/chart-config/converter/index.d.ts +15 -0
- package/dist/utils/chart-config/converter/interfaces.d.ts +13 -1
- package/dist/utils/chart-config/utils/class-breaks/index.d.ts +16 -0
- package/dist/utils/chart-config/utils/index.d.ts +0 -18
- package/dist/utils/components/chart-ui-utils.d.ts +8 -1
- package/dist/utils/components/config-update.d.ts +6 -3
- package/dist/utils/data/stats/class-breaks.d.ts +91 -0
- package/dist/utils/defaults/index.d.ts +3 -3
- package/dist/utils/localization/interfaces.d.ts +2 -0
- package/dist/utils/type-guards/index.d.ts +12 -1
- package/dist/utils/types/index.d.ts +4 -0
- package/package.json +3 -3
- package/dist/cdn/2VH5SRZZ.js +0 -4
- package/dist/cdn/32BMOX2K.js +0 -4
- package/dist/cdn/3DFXOOBG.js +0 -4
- package/dist/cdn/3RSWZLAO.js +0 -4
- package/dist/cdn/4SPDBVN5.js +0 -4
- package/dist/cdn/4XEDNSK6.js +0 -4
- package/dist/cdn/5RCMW4JJ.js +0 -4
- package/dist/cdn/5WWEQB4U.js +0 -4
- package/dist/cdn/5YHINVJL.js +0 -4
- package/dist/cdn/5ZOUXG32.js +0 -4
- package/dist/cdn/73TEIYX4.js +0 -4
- package/dist/cdn/7NO4AIYM.js +0 -4
- package/dist/cdn/B4MCVN3C.js +0 -4
- package/dist/cdn/CXMRBJVV.js +0 -4
- package/dist/cdn/DNJ3PFW5.js +0 -4
- package/dist/cdn/DSKH4W7Z.js +0 -4
- package/dist/cdn/E6ZNVNSM.js +0 -4
- package/dist/cdn/E7HOUB3W.js +0 -4
- package/dist/cdn/FAAZU2DN.js +0 -4
- package/dist/cdn/GCMDD3DI.js +0 -4
- package/dist/cdn/GDLXQSTH.js +0 -4
- package/dist/cdn/GE4B62AP.js +0 -4
- package/dist/cdn/HBOGAAPY.js +0 -4
- package/dist/cdn/HJBFCMQQ.js +0 -4
- package/dist/cdn/HOWOXOJF.js +0 -4
- package/dist/cdn/I7GZZUST.js +0 -4
- package/dist/cdn/IBI443YG.js +0 -4
- package/dist/cdn/II5ZKHWO.js +0 -4
- package/dist/cdn/INFAG43O.js +0 -4
- package/dist/cdn/KPVBBDA4.js +0 -4
- package/dist/cdn/LJREPGP4.js +0 -4
- package/dist/cdn/LRVSRJXE.js +0 -4
- package/dist/cdn/M4YV2QY4.js +0 -4
- package/dist/cdn/NITVVSXE.js +0 -4
- package/dist/cdn/NKCR4CMV.js +0 -4
- package/dist/cdn/NMQJW4WX.js +0 -4
- package/dist/cdn/OMZQ6B6X.js +0 -4
- package/dist/cdn/OU3L46HV.js +0 -4
- package/dist/cdn/OVOVU7M6.js +0 -4
- package/dist/cdn/PCODF4JF.js +0 -4
- package/dist/cdn/PJOY5BUH.js +0 -4
- package/dist/cdn/PNNNUAVS.js +0 -4
- package/dist/cdn/PNV3TCR2.js +0 -4
- package/dist/cdn/QVRSCIHR.js +0 -32
- package/dist/cdn/ROT3IOMF.js +0 -4
- package/dist/cdn/RTW6M2WG.js +0 -4
- package/dist/cdn/SZ2A2V3P.js +0 -4
- package/dist/cdn/T2ITWSO3.js +0 -4
- package/dist/cdn/UFEHQXXO.js +0 -4
- package/dist/cdn/UJAO25N3.js +0 -4
- package/dist/cdn/VGGLRGZ5.js +0 -4
- package/dist/cdn/VVLNAMRO.js +0 -4
- package/dist/cdn/VX33W7WZ.js +0 -4
- package/dist/cdn/VY2LSHRE.js +0 -4
- package/dist/cdn/WHWAJRS5.js +0 -4
- package/dist/cdn/XM54FC2V.js +0 -4
- package/dist/cdn/YOEISZEX.js +0 -4
- package/dist/cdn/YPMIQKNZ.js +0 -4
- package/dist/cdn/ZBKBR2JJ.js +0 -4
- package/dist/cdn/ZYF5L2DR.js +0 -4
- package/dist/chunks/color-match.js +0 -33
- package/dist/model/mixins/model-with-data-labels.d.ts +0 -15
- package/dist/model/mixins/model-with-rotation.d.ts +0 -8
- package/dist/model/mixins/utils/data-labels.d.ts +0 -24
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { c as $ } from "../../chunks/runtime.js";
|
|
2
|
+
import { LitElement as R, createEvent as T, renderElement as S, safeClassMap as n, safeStyleMap as k } from "@arcgis/lumina";
|
|
3
|
+
import { u as v } from "../../chunks/useT9n.js";
|
|
4
|
+
import { css as A, html as o } from "lit";
|
|
5
|
+
import { l as u, j as p, W as r, v as f, a as y, u as E } from "../../chunks/series-types.js";
|
|
6
|
+
import { f as M, j as D } from "../../chunks/rest-js-object-literals.js";
|
|
7
|
+
import { x as w } from "../../chunks/data.js";
|
|
8
|
+
import "@arcgis/toolkit/intl";
|
|
9
|
+
import { cloneDeep as I, isEqual as P, parseInt as _, camelCase as O } from "lodash-es";
|
|
10
|
+
import "d3-array";
|
|
11
|
+
import { bq as H, dk as N, ax as b, cX as x, d6 as U, dj as V } from "../../chunks/index.js";
|
|
12
|
+
import "@arcgis/core/intl.js";
|
|
13
|
+
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
14
|
+
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
15
|
+
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
16
|
+
import "simple-statistics";
|
|
17
|
+
import "@arcgis/core/request.js";
|
|
18
|
+
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
19
|
+
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
20
|
+
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
21
|
+
import "@arcgis/core/rest/support/Query.js";
|
|
22
|
+
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
23
|
+
import "@arcgis/core/time/TimeExtent.js";
|
|
24
|
+
import "@arcgis/core/core/promiseUtils.js";
|
|
25
|
+
import { b as L } from "../../chunks/index3.js";
|
|
26
|
+
import "@arcgis/toolkit/dom";
|
|
27
|
+
import { r as W } from "../../chunks/popover-ui-utils.js";
|
|
28
|
+
import { createRef as h, ref as d } from "lit/directives/ref.js";
|
|
29
|
+
import { e as l, W as F } from "../../chunks/interfaces.js";
|
|
30
|
+
import { j as B, s as K } from "../../chunks/chart-ui-utils2.js";
|
|
31
|
+
import * as q from "@arcgis/core/smartMapping/symbology/support/colorRamps.js";
|
|
32
|
+
import { g as z, e as j, c as X } from "../../chunks/class-breaks.js";
|
|
33
|
+
import { createClassBreaksRenderer as Y } from "@arcgis/core/smartMapping/renderers/color.js";
|
|
34
|
+
import { getSchemes as G } from "@arcgis/core/smartMapping/symbology/color.js";
|
|
35
|
+
import { i as J } from "../../chunks/utils.js";
|
|
36
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
37
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
38
|
+
v5.0.0-next.116 */
|
|
39
|
+
const Q = A`.hide{display:none}.am5-modal{width:100%;height:100%;position:absolute;z-index:100000;top:0;left:0}.am5-html-container{z-index:101!important}.am5-modal-curtain{top:0;left:0;width:100%;height:100%;position:absolute;background:#fff!important;z-index:100}.am5-modal-wrapper{top:0;left:0;width:100%;height:100%;position:absolute;display:flex;align-items:center;justify-content:center;white-space:nowrap;background:#ffffff80;z-index:101}.am5-modal-content{display:inline-block;padding:1.2em;vertical-align:middle;text-align:start;white-space:normal;background:#fff;border-radius:4px;box-shadow:#00000073 0 0 36px;color:#000}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.arcgis-charts-modal{box-shadow:none!important}.arcgis-charts-modal-header{background-color:#0000000d;font-weight:700;padding:4px;align-content:center}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-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(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`, c = {
|
|
40
|
+
label: "label",
|
|
41
|
+
colorRamp: "color-ramp",
|
|
42
|
+
colorRampSegment: "color-ramp-segment",
|
|
43
|
+
list: "list"
|
|
44
|
+
};
|
|
45
|
+
class Z extends R {
|
|
46
|
+
constructor() {
|
|
47
|
+
super(...arguments), this._messages = v(), this.commonStrings = v({ name: "common", blocking: !0 }), this.heatChartPopover = null, this.xAxisFieldElement = h(), this.aggregationElement = h(), this.numericFieldsElement = h(), this.calendarTypeElement = h(), this.calendarViewTypeElement = h(), this.classBreakMethodElement = h(), this.nullElement = h(), this.breaksCountElement = h(), this.colorSchemeElement = h(), this.onHeatChartDataPopoverChange = async (e) => {
|
|
48
|
+
try {
|
|
49
|
+
if (e.detail?.value !== void 0) {
|
|
50
|
+
const { contentKind: t } = e.detail, a = e.detail.value;
|
|
51
|
+
switch (t) {
|
|
52
|
+
case l.aggregation:
|
|
53
|
+
this.model.aggregationType = a !== y.NoAggregation ? a : y.NoAggregation;
|
|
54
|
+
break;
|
|
55
|
+
case l.xAxisField:
|
|
56
|
+
this.model.xAxisField = a, this.setDefaultPropertiesForCalendarHeatChart(), this.model.classificationMethod = f.equalInterval, this.model.heatRulesType = u.Renderer;
|
|
57
|
+
break;
|
|
58
|
+
case l.numericFields:
|
|
59
|
+
this.model.numericFields = [a];
|
|
60
|
+
break;
|
|
61
|
+
case l.calendarType: {
|
|
62
|
+
switch (a) {
|
|
63
|
+
case F.YearByMonthAndDayOfMonth: {
|
|
64
|
+
const s = {
|
|
65
|
+
type: r.CalendarDateParts,
|
|
66
|
+
unit: p.DayOfMonth
|
|
67
|
+
}, i = {
|
|
68
|
+
type: r.CalendarDateParts,
|
|
69
|
+
unit: p.MonthOfYear
|
|
70
|
+
};
|
|
71
|
+
this.model.xTemporalBinning = s, this.model.setAxisValueFormat(0, {
|
|
72
|
+
type: r.DateAxisFormat,
|
|
73
|
+
intlOptions: { day: "2-digit" }
|
|
74
|
+
}), this.model.yTemporalBinning = i, this.model.setAxisValueFormat(1, {
|
|
75
|
+
type: r.DateAxisFormat,
|
|
76
|
+
intlOptions: { month: "long" }
|
|
77
|
+
});
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
case F.WeekByDayOfWeekAndHourOfDay: {
|
|
81
|
+
const s = {
|
|
82
|
+
type: r.CalendarDateParts,
|
|
83
|
+
unit: p.HourOfDay
|
|
84
|
+
}, i = {
|
|
85
|
+
type: r.CalendarDateParts,
|
|
86
|
+
unit: p.DayOfWeek
|
|
87
|
+
};
|
|
88
|
+
this.model.xTemporalBinning = s, this.model.setAxisValueFormat(0, {
|
|
89
|
+
type: r.DateAxisFormat,
|
|
90
|
+
intlOptions: { hour: "numeric", hour12: !0 }
|
|
91
|
+
}), this.model.yTemporalBinning = i, this.model.setAxisValueFormat(1, {
|
|
92
|
+
type: r.DateAxisFormat,
|
|
93
|
+
intlOptions: { weekday: "long" }
|
|
94
|
+
});
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
default:
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
case l.calendarViewType: {
|
|
103
|
+
this.model.viewType = a;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
case l.classBreakMethod: {
|
|
107
|
+
this.model.classificationMethod = a, this.model.heatRulesType = u.Renderer, this.updateChartRenderer = !0;
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
default:
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
} catch (t) {
|
|
115
|
+
throw this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
116
|
+
}
|
|
117
|
+
this.removeHeatChartDataPopover(), this.requestUpdate();
|
|
118
|
+
}, this.popoverClose = (e) => {
|
|
119
|
+
this.heatChartPopover === e?.target && this.removeHeatChartDataPopover();
|
|
120
|
+
}, this.onModelConfigChange = () => {
|
|
121
|
+
this.requestUpdate();
|
|
122
|
+
}, this.allColorRamps = [], this.onColorRampSelection = (e) => {
|
|
123
|
+
const { ramp: t } = e.detail;
|
|
124
|
+
this.selectedColorRamp = t, this.updateChartRenderer = !0, this.updateClassBreaksColor = !0, this.generateAndUpdateClassBreaks(), this.removeHeatChartDataPopover();
|
|
125
|
+
}, this.updateClassBreaksColor = !1, this.onEmptyCellNameChange = (e) => {
|
|
126
|
+
const { name: t } = e.detail;
|
|
127
|
+
if (t !== void 0) {
|
|
128
|
+
const s = {
|
|
129
|
+
...this.model.emptyCell,
|
|
130
|
+
name: t
|
|
131
|
+
};
|
|
132
|
+
this.model.emptyCell = s;
|
|
133
|
+
}
|
|
134
|
+
}, this.onEmptyCellColorChange = (e) => {
|
|
135
|
+
const { color: t } = e.detail;
|
|
136
|
+
if (t !== void 0) {
|
|
137
|
+
const a = this.model.emptyCell, s = {
|
|
138
|
+
...a,
|
|
139
|
+
symbol: {
|
|
140
|
+
...a?.symbol,
|
|
141
|
+
type: M.SFS,
|
|
142
|
+
color: t,
|
|
143
|
+
outline: a?.symbol?.outline && { ...a.symbol.outline, color: t }
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
this.model.emptyCell = s;
|
|
147
|
+
}
|
|
148
|
+
}, this.availableColorRamps = [], this.updateChartRenderer = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = T();
|
|
149
|
+
}
|
|
150
|
+
static {
|
|
151
|
+
this.properties = { availableColorRamps: 16, aggregationLabel: 16, selectedColorRamp: 16, updateChartRenderer: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0, open: 5, chartData: 0 };
|
|
152
|
+
}
|
|
153
|
+
static {
|
|
154
|
+
this.styles = Q;
|
|
155
|
+
}
|
|
156
|
+
connectedCallback() {
|
|
157
|
+
super.connectedCallback(), this.loadColorRampFromArcGIS();
|
|
158
|
+
}
|
|
159
|
+
load() {
|
|
160
|
+
this.modelChange(this.model), this.onModelConfigChange();
|
|
161
|
+
}
|
|
162
|
+
willUpdate(e) {
|
|
163
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = H(this.model.aggregationType, this.commonStrings), e.has("chartData") && (this.updateChartRenderer = this.model.chartRenderer === void 0 || N(this.model.chartRenderer) === D.ClassBreaks);
|
|
164
|
+
}
|
|
165
|
+
updated(e) {
|
|
166
|
+
e.has("updateChartRenderer") && this.updateChartRenderer && this.generateAndUpdateClassBreaks();
|
|
167
|
+
}
|
|
168
|
+
disconnectedCallback() {
|
|
169
|
+
super.disconnectedCallback(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
170
|
+
}
|
|
171
|
+
loadColorRampFromArcGIS() {
|
|
172
|
+
const e = q.all();
|
|
173
|
+
this.allColorRamps = e, this.availableColorRamps = this.allColorRamps, this.availableColorRamps.length > 0 && !this.selectedColorRamp && this.model.chartRenderer?.classBreakInfos === void 0 && (this.selectedColorRamp = this.availableColorRamps[0]);
|
|
174
|
+
}
|
|
175
|
+
generateColorsForExistingBreaks(e) {
|
|
176
|
+
const t = this.model.breaksCount;
|
|
177
|
+
return z({
|
|
178
|
+
numberOfClassBreaks: t,
|
|
179
|
+
selectedColorRamp: e,
|
|
180
|
+
colorRamp: this.model.chartRenderer?.classBreakInfos?.map((s) => s.symbol?.color)
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
normalizeClassBreakInfosForCompare(e, t) {
|
|
184
|
+
return (e ?? []).map(({ classMinValue: a, classMaxValue: s, label: i, symbol: m }) => ({
|
|
185
|
+
classMinValue: a,
|
|
186
|
+
classMaxValue: s,
|
|
187
|
+
label: i,
|
|
188
|
+
symbol: t ? void 0 : m
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
async generateAndUpdateClassBreaks() {
|
|
192
|
+
let e = [];
|
|
193
|
+
if (this.model.classificationMethod === f.manual && this.model.chartRenderer?.classBreakInfos.length > 0 && this.selectedColorRamp) {
|
|
194
|
+
e = I(this.model.chartRenderer?.classBreakInfos) ?? [];
|
|
195
|
+
const s = this.generateColorsForExistingBreaks(this.selectedColorRamp);
|
|
196
|
+
for (let i = 0; i < e.length && i < s.length; i++)
|
|
197
|
+
e[i].symbol && (e[i].symbol.color = s[i]);
|
|
198
|
+
} else if (this.model.classificationMethod !== f.manual && this.chartData) {
|
|
199
|
+
const s = await L({
|
|
200
|
+
categoryField: this.model?.xAxisField?.[0] ?? "",
|
|
201
|
+
categoryType: r.DateAxisFormat,
|
|
202
|
+
numericFields: [b.valueField],
|
|
203
|
+
inlineData: this.chartData
|
|
204
|
+
});
|
|
205
|
+
if (s.layer && this.model.layer) {
|
|
206
|
+
const m = G({
|
|
207
|
+
geometryType: "point",
|
|
208
|
+
theme: "high-to-low"
|
|
209
|
+
})?.primaryScheme, g = await Y({
|
|
210
|
+
layer: s.layer,
|
|
211
|
+
field: b.valueField,
|
|
212
|
+
classificationMethod: this.model.classificationMethod,
|
|
213
|
+
numClasses: this.model.breaksCount,
|
|
214
|
+
colorScheme: m
|
|
215
|
+
});
|
|
216
|
+
e = j({
|
|
217
|
+
classBreaksRendererResult: g,
|
|
218
|
+
numberOfClassBreaks: this.model.breaksCount,
|
|
219
|
+
selectedColorRamp: this.selectedColorRamp,
|
|
220
|
+
// use the color ramp only if the `selectedColorRamp` was not modified by the color ramp popover
|
|
221
|
+
colorRamp: this.updateClassBreaksColor ? void 0 : this.model.chartRenderer?.classBreakInfos?.map((C) => C.symbol?.color)
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const t = !this.updateClassBreaksColor, a = !P(this.normalizeClassBreakInfosForCompare(this.model.chartRenderer?.classBreakInfos, t), this.normalizeClassBreakInfosForCompare(e, t));
|
|
226
|
+
this.updateChartRenderer && a && (this.model.chartRenderer = {
|
|
227
|
+
type: "classBreaks",
|
|
228
|
+
// TODO (heat-chart) use the correct type
|
|
229
|
+
field: b.valueField,
|
|
230
|
+
classBreakInfos: e
|
|
231
|
+
}), this.updateChartRenderer = !1, this.updateClassBreaksColor = !1;
|
|
232
|
+
}
|
|
233
|
+
modelChange(e, t) {
|
|
234
|
+
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
235
|
+
}
|
|
236
|
+
getCorrectedXAxisFieldValue() {
|
|
237
|
+
return w({
|
|
238
|
+
fieldName: this.model.xAxisField,
|
|
239
|
+
fieldList: this.layerFieldsInfo
|
|
240
|
+
}) ? "" : x(this.layerFieldsInfo, this.model.xAxisField);
|
|
241
|
+
}
|
|
242
|
+
onXAxisFieldSelect(e) {
|
|
243
|
+
this.contentKind = l.xAxisField, this.setupPopover(e);
|
|
244
|
+
}
|
|
245
|
+
onNumericFieldSelect(e) {
|
|
246
|
+
this.contentKind = l.numericFields, this.setupPopover(e);
|
|
247
|
+
}
|
|
248
|
+
onCalendarTypeSelect(e) {
|
|
249
|
+
this.contentKind = l.calendarType, this.setupPopover(e);
|
|
250
|
+
}
|
|
251
|
+
onClassBreakMethodSelect(e) {
|
|
252
|
+
this.contentKind = l.classBreakMethod, this.setupPopover(e);
|
|
253
|
+
}
|
|
254
|
+
onColorSchemeSelect(e) {
|
|
255
|
+
this.contentKind = l.colorScheme, this.setupPopover(e);
|
|
256
|
+
}
|
|
257
|
+
onBreaksCountChange(e) {
|
|
258
|
+
const t = _(e.target.value);
|
|
259
|
+
U(t) && t > 0 && (this.model.breaksCount = t, this.updateChartRenderer = !0, this.model.heatRulesType = u.Renderer);
|
|
260
|
+
}
|
|
261
|
+
onAggregationSelect(e) {
|
|
262
|
+
this.contentKind = l.aggregation, this.setupPopover(e);
|
|
263
|
+
}
|
|
264
|
+
onNullSelect(e) {
|
|
265
|
+
this.contentKind = l.null, this.setupPopover(e);
|
|
266
|
+
}
|
|
267
|
+
setupPopover(e) {
|
|
268
|
+
e.stopImmediatePropagation(), this.removeHeatChartDataPopover();
|
|
269
|
+
let t, a, s;
|
|
270
|
+
switch (this.contentKind) {
|
|
271
|
+
case l.aggregation:
|
|
272
|
+
t = this.aggregationElement.value, a = this._messages.aggregation, s = this.model.aggregationType;
|
|
273
|
+
break;
|
|
274
|
+
case l.xAxisField:
|
|
275
|
+
t = this.xAxisFieldElement.value, a = this._messages.xAxisField, s = this.model.xAxisField;
|
|
276
|
+
break;
|
|
277
|
+
case l.numericFields:
|
|
278
|
+
t = this.numericFieldsElement.value, a = this._messages.numericFieldOptional, s = this.model.numericFields?.[0];
|
|
279
|
+
break;
|
|
280
|
+
case l.calendarType:
|
|
281
|
+
t = this.calendarTypeElement.value, a = this._messages.calendarType, s = B(this.model);
|
|
282
|
+
break;
|
|
283
|
+
case l.calendarViewType:
|
|
284
|
+
t = this.calendarViewTypeElement.value, a = this._messages.viewType, s = this.model.viewType;
|
|
285
|
+
break;
|
|
286
|
+
case l.classBreakMethod:
|
|
287
|
+
t = this.classBreakMethodElement.value, a = this._messages.method, s = this.model.classificationMethod;
|
|
288
|
+
break;
|
|
289
|
+
case l.colorScheme:
|
|
290
|
+
t = this.colorSchemeElement.value, a = this._messages.colorScheme, s = this.selectedColorRamp?.name;
|
|
291
|
+
break;
|
|
292
|
+
case l.null:
|
|
293
|
+
t = e.target, a = this._messages.null;
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
this.heatChartPopover = S(o`<arcgis-charts-config-heat-chart-popover .headingTitle=${a} .referenceElement=${t} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${s} @arcgisChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @arcgisChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @arcgisChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @arcgisChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @arcgisChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange}></arcgis-charts-config-heat-chart-popover>`), !document.body.contains(this.heatChartPopover) && this.heatChartPopover !== null && document.body.appendChild(this.heatChartPopover);
|
|
297
|
+
}
|
|
298
|
+
removeHeatChartDataPopover() {
|
|
299
|
+
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = W(this.heatChartPopover));
|
|
300
|
+
}
|
|
301
|
+
setDefaultPropertiesForCalendarHeatChart() {
|
|
302
|
+
if (!J(this.model?.config)) {
|
|
303
|
+
if (this.model.yAxisField = this.model.xAxisField, this.model.xTemporalBinning === void 0) {
|
|
304
|
+
const e = {
|
|
305
|
+
type: r.CalendarDateParts,
|
|
306
|
+
unit: p.DayOfMonth
|
|
307
|
+
};
|
|
308
|
+
this.model.xTemporalBinning = e;
|
|
309
|
+
}
|
|
310
|
+
if (this.model.yTemporalBinning === void 0) {
|
|
311
|
+
const e = {
|
|
312
|
+
type: r.CalendarDateParts,
|
|
313
|
+
unit: p.MonthOfYear
|
|
314
|
+
};
|
|
315
|
+
this.model.yTemporalBinning = e, this.model.setAxisValueFormat(1, { type: r.DateAxisFormat, intlOptions: { month: "long" } });
|
|
316
|
+
}
|
|
317
|
+
this.model.viewType = E.singleCalendarView;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
renderXAxisFieldSelect() {
|
|
321
|
+
const e = this.getCorrectedXAxisFieldValue();
|
|
322
|
+
return o`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${d(this.xAxisFieldElement)}></arcgis-charts-config-field-select>`;
|
|
323
|
+
}
|
|
324
|
+
renderAggregation() {
|
|
325
|
+
return o`<arcgis-charts-config-field-select .label=${this.model.aggregationType === y.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${d(this.aggregationElement)}></arcgis-charts-config-field-select>`;
|
|
326
|
+
}
|
|
327
|
+
renderNumericFieldsSelect() {
|
|
328
|
+
const e = this.model.numericFields?.[0] === this.model.layer?.objectIdField ? "" : x(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
329
|
+
return o`<arcgis-charts-config-field-select .label=${e} @click=${this.onNumericFieldSelect} ${d(this.numericFieldsElement)}></arcgis-charts-config-field-select>`;
|
|
330
|
+
}
|
|
331
|
+
renderCalendarTypeSelect() {
|
|
332
|
+
const e = B(this.model) ?? "", t = {
|
|
333
|
+
weekByDayOfWeekAndHourOfDay: this._messages.weekByDayOfWeekAndHourOfDay,
|
|
334
|
+
yearByMonthAndDayOfMonth: this._messages.yearByMonthAndDayOfMonth
|
|
335
|
+
}, a = e ? t[e] ?? "" : "";
|
|
336
|
+
return o`<arcgis-charts-config-field-select .label=${a} @click=${this.onCalendarTypeSelect} ${d(this.calendarTypeElement)}></arcgis-charts-config-field-select>`;
|
|
337
|
+
}
|
|
338
|
+
renderClassBreakMethodSelect() {
|
|
339
|
+
const e = {
|
|
340
|
+
equalInterval: this._messages.classBreaksMethod?.equalInterval,
|
|
341
|
+
manual: this._messages.classBreaksMethod?.manual,
|
|
342
|
+
naturalBreaks: this._messages.classBreaksMethod?.naturalBreaks,
|
|
343
|
+
quantile: this._messages.classBreaksMethod?.quantile
|
|
344
|
+
}, t = this.model.classificationMethod ? e[O(this.model.classificationMethod)] ?? "" : "";
|
|
345
|
+
return o`<arcgis-charts-config-field-select .label=${t} @click=${this.onClassBreakMethodSelect} ${d(this.classBreakMethodElement)}></arcgis-charts-config-field-select>`;
|
|
346
|
+
}
|
|
347
|
+
renderColorRampSelect() {
|
|
348
|
+
const e = this.model.chartRenderer?.classBreakInfos?.map((t) => {
|
|
349
|
+
const a = t !== void 0 ? X(t.symbol.color) : "#FFFFFF";
|
|
350
|
+
return o`<div class=${n(c.colorRampSegment)} style=${k({ backgroundColor: a, width: `${100 / this.model.breaksCount}%` })}></div>`;
|
|
351
|
+
});
|
|
352
|
+
return o`<arcgis-charts-config-field-select label @click=${this.onColorSchemeSelect} ${d(this.colorSchemeElement)}><div slot=fieldSelectSlot class=${n(c.colorRamp)}>${e}</div></arcgis-charts-config-field-select>`;
|
|
353
|
+
}
|
|
354
|
+
renderClassBreaksTable() {
|
|
355
|
+
const e = this.model.chartRenderer?.classBreakInfos ?? [];
|
|
356
|
+
return o`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map((t) => o`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${t.symbol.color?.[0]}, ${t.symbol.color?.[1]}, ${t.symbol.color?.[2]}, ${t.symbol.color?.[3] / 255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${t.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
|
|
357
|
+
}
|
|
358
|
+
renderNullUI() {
|
|
359
|
+
const e = this.model.emptyCell, t = this._messages.null, a = e?.symbol?.color ?? V.grayColor, [s, i, m, g] = [...a], C = `rgba(${s},${i},${m},${g / 255})`;
|
|
360
|
+
return o`<calcite-list label class=${n(c.list)} selection-mode=none ${d(this.nullElement)}><calcite-list-item .label=${t} .value=${t} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${k({ color: C })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
361
|
+
}
|
|
362
|
+
render() {
|
|
363
|
+
const e = this.renderXAxisFieldSelect(), t = this.renderAggregation(), a = this.renderNumericFieldsSelect(), s = this.renderCalendarTypeSelect(), i = this.renderClassBreakMethodSelect(), m = this.renderColorRampSelect(), g = this.renderClassBreaksTable(), C = this.renderNullUI();
|
|
364
|
+
return o`<calcite-label class=${n(c.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.calendarType}${s}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.aggregation}${t}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.numericFieldOptional}${a}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.method}${i}</calcite-label><calcite-label class=${n(c.label)}>${this._messages.numberOfClasses}<calcite-input type=number min=1 .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === f.manual} step=1 .value=${K(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${d(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${n(c.label)}>${this._messages.colorScheme}${m}</calcite-label>${C}<calcite-accordion appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${g}</calcite-accordion-item></calcite-accordion>`;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
$("arcgis-charts-config-heat-chart-data", Z);
|
|
368
|
+
export {
|
|
369
|
+
Z as ArcgisChartsConfigHeatChartData
|
|
370
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../arcgis-charts-config-heat-chart-popover/index.js";
|
|
2
|
+
import "../arcgis-charts-config-field-select/index.js";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-table";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-table-row";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-table-header";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-table-cell";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-swatch";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
9
|
+
import "@esri/calcite-components/components/calcite-list-item";
|
|
10
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-label";
|
|
12
|
+
import "@esri/calcite-components/components/calcite-input";
|
|
13
|
+
import "@esri/calcite-components/components/calcite-accordion";
|
|
14
|
+
import "@esri/calcite-components/components/calcite-accordion-item";
|
|
15
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../arcgis-charts-config-heat-chart-popover/index.js";
|
|
2
|
+
import "../arcgis-charts-config-field-select/index.js";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-table";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-table-row";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-table-header";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-table-cell";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-swatch";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
9
|
+
import "@esri/calcite-components/components/calcite-list-item";
|
|
10
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-label";
|
|
12
|
+
import "@esri/calcite-components/components/calcite-input";
|
|
13
|
+
import "@esri/calcite-components/components/calcite-accordion";
|
|
14
|
+
import "@esri/calcite-components/components/calcite-accordion-item";
|
|
15
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
import { Color, IField } from '../../spec';
|
|
4
|
+
import { HeatChartDataPopoverKinds } from '../../interfaces';
|
|
5
|
+
import { HeatChartModel } from '../../model/heat-chart-model/heat-chart-model';
|
|
6
|
+
import { ColorRamp } from '@arcgis/core/smartMapping/symbology/types.js';
|
|
7
|
+
|
|
8
|
+
/** @private */
|
|
9
|
+
export declare class ArcgisChartsConfigHeatChartPopover extends LitElement {
|
|
10
|
+
/**
|
|
11
|
+
* Bar Chart Model.
|
|
12
|
+
*
|
|
13
|
+
* @category Public
|
|
14
|
+
*/
|
|
15
|
+
model: HeatChartModel;
|
|
16
|
+
/** Overwrite localized strings for this component */
|
|
17
|
+
messageOverrides?: typeof this._messages._overrides;
|
|
18
|
+
/**
|
|
19
|
+
* Heading for the popover component
|
|
20
|
+
*
|
|
21
|
+
* @category Public
|
|
22
|
+
*/
|
|
23
|
+
headingTitle?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Reference element to show the popover.
|
|
26
|
+
*
|
|
27
|
+
* @category Public
|
|
28
|
+
*/
|
|
29
|
+
referenceElement?: HTMLElement;
|
|
30
|
+
/**
|
|
31
|
+
* boolean to open or close the popover.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
* @category Public
|
|
35
|
+
*/
|
|
36
|
+
open?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* boolean to open or close the popover.
|
|
39
|
+
*
|
|
40
|
+
* @category Public
|
|
41
|
+
*/
|
|
42
|
+
contentKind?: HeatChartDataPopoverKinds;
|
|
43
|
+
/**
|
|
44
|
+
* Fields Information of the Feature layer
|
|
45
|
+
*
|
|
46
|
+
* @category Public
|
|
47
|
+
*/
|
|
48
|
+
layerFieldsInfo: IField[];
|
|
49
|
+
/**
|
|
50
|
+
* Currently selected content (field names, for example)
|
|
51
|
+
* to pass on to the popover.
|
|
52
|
+
*
|
|
53
|
+
* @category Public
|
|
54
|
+
*/
|
|
55
|
+
selectedContent?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Optional external injection of color ramps (if parent already fetched them).
|
|
58
|
+
* If not provided, component expects parent to set `availableColorRamps` via attribute/property,
|
|
59
|
+
* or you can later add a lazy loader.
|
|
60
|
+
*/
|
|
61
|
+
colorRamps?: ColorRamp[];
|
|
62
|
+
/**
|
|
63
|
+
* Calls `reposition()` method on popover element.
|
|
64
|
+
*
|
|
65
|
+
* @category Public
|
|
66
|
+
*/
|
|
67
|
+
reposition(): Promise<void>;
|
|
68
|
+
/** Emitted when a color ramp is selected with flips applied */
|
|
69
|
+
readonly arcgisChartsConfigHeatChartColorRampChange: TargetedEvent<this, {
|
|
70
|
+
rampName: string;
|
|
71
|
+
ramp: ColorRamp;
|
|
72
|
+
isFlipped: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
readonly arcgisChartsConfigHeatChartDataPopoverChange: TargetedEvent<this, {
|
|
75
|
+
contentKind?: HeatChartDataPopoverKinds;
|
|
76
|
+
value: string;
|
|
77
|
+
}>;
|
|
78
|
+
readonly arcgisChartsConfigPopoverClose: TargetedEvent<this, void>;
|
|
79
|
+
/**
|
|
80
|
+
* Event when there is a change in empty cell color.
|
|
81
|
+
*
|
|
82
|
+
* @category Public
|
|
83
|
+
*/
|
|
84
|
+
readonly arcgisChartsConfigPopoverEmptyCellColorChange: TargetedEvent<this, {
|
|
85
|
+
color: Color;
|
|
86
|
+
}>;
|
|
87
|
+
/**
|
|
88
|
+
* Event when there is a change in empty cell name.
|
|
89
|
+
*
|
|
90
|
+
* @category Public
|
|
91
|
+
*/
|
|
92
|
+
readonly arcgisChartsConfigPopoverEmptyCellNameChange: TargetedEvent<this, {
|
|
93
|
+
name: string;
|
|
94
|
+
}>;
|
|
95
|
+
private _messages;
|
|
96
|
+
"@eventTypes": {
|
|
97
|
+
"arcgisChartsConfigHeatChartColorRampChange": ArcgisChartsConfigHeatChartPopover["arcgisChartsConfigHeatChartColorRampChange"]["detail"];
|
|
98
|
+
"arcgisChartsConfigHeatChartDataPopoverChange": ArcgisChartsConfigHeatChartPopover["arcgisChartsConfigHeatChartDataPopoverChange"]["detail"];
|
|
99
|
+
"arcgisChartsConfigPopoverClose": ArcgisChartsConfigHeatChartPopover["arcgisChartsConfigPopoverClose"]["detail"];
|
|
100
|
+
"arcgisChartsConfigPopoverEmptyCellColorChange": ArcgisChartsConfigHeatChartPopover["arcgisChartsConfigPopoverEmptyCellColorChange"]["detail"];
|
|
101
|
+
"arcgisChartsConfigPopoverEmptyCellNameChange": ArcgisChartsConfigHeatChartPopover["arcgisChartsConfigPopoverEmptyCellNameChange"]["detail"];
|
|
102
|
+
};
|
|
103
|
+
}
|