@arcgis/charts-components 5.0.0-next.114 → 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/{RQT2MN42.js → 2FBA5PUG.js} +2 -2
- package/dist/cdn/{GMQUAAO2.js → 2GMN5SDI.js} +2 -2
- package/dist/cdn/{6W4YRK74.js → 2QS5TJQ5.js} +2 -2
- package/dist/cdn/{3QGTKNQ6.js → 2UFPDUIM.js} +2 -2
- package/dist/cdn/{53VJWULL.js → 2VJZAFQ5.js} +2 -2
- package/dist/cdn/{3MUVNXGI.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/{TGB5KU2R.js → 3G326OQZ.js} +2 -2
- package/dist/cdn/{5DJXTCA4.js → 3KMT633V.js} +2 -2
- package/dist/cdn/{WQYWISKC.js → 3QIAN4NS.js} +2 -2
- package/dist/cdn/{AM5VHYYJ.js → 3QQW7LHD.js} +2 -2
- package/dist/cdn/3RFGO2LD.js +4 -0
- package/dist/cdn/{CDBECKFD.js → 3RLZ3DW3.js} +2 -2
- package/dist/cdn/{GXJBV5UC.js → 45QWWJD3.js} +2 -2
- package/dist/cdn/{I4ZMBVX7.js → 4J4KBZY3.js} +2 -2
- package/dist/cdn/{7HCPPTUF.js → 4LBJNKKZ.js} +2 -2
- package/dist/cdn/{CU6T4VVL.js → 4OGHM3VZ.js} +2 -2
- package/dist/cdn/{N3QUHG2D.js → 4QFEW5TW.js} +2 -2
- package/dist/cdn/{7TK3JICU.js → 4RMNH5HJ.js} +2 -2
- package/dist/cdn/{Q5YT7SCP.js → 55MXXTNW.js} +2 -2
- package/dist/cdn/{YBWCF4IP.js → 57E24OM4.js} +2 -2
- package/dist/cdn/{R36SCSY2.js → 5DW2ZJAO.js} +2 -2
- package/dist/cdn/{WMPSIJNV.js → 5EWHPJJ5.js} +2 -2
- package/dist/cdn/{NVUJTAXL.js → 5I5JN5D4.js} +2 -2
- package/dist/cdn/65N2W4PE.js +34 -0
- package/dist/cdn/{HGCY5B3V.js → 6EJUU3SQ.js} +2 -2
- package/dist/cdn/6TJC4ARR.js +4 -0
- package/dist/cdn/{QYN5OFQK.js → 6VN7W4Z2.js} +1 -1
- package/dist/cdn/6YNW5VCL.js +4 -0
- package/dist/cdn/7AUAR63V.js +4 -0
- package/dist/cdn/{4SMSSHLX.js → 7GUP5FX5.js} +2 -2
- package/dist/cdn/{3MM3XJPI.js → 7KNKL7YD.js} +2 -2
- package/dist/cdn/{2GULATCF.js → 7LIDKM3N.js} +2 -2
- package/dist/cdn/{P3EOBFDT.js → A4QJGZYT.js} +2 -2
- package/dist/cdn/A4ZWPSMP.js +4 -0
- package/dist/cdn/{55RWZ5NT.js → AHMMJX3X.js} +2 -2
- package/dist/cdn/APSLVZEW.js +4 -0
- package/dist/cdn/{DEFPCI6M.js → AQQXXPQZ.js} +2 -2
- package/dist/cdn/AUWJJX2Y.js +4 -0
- package/dist/cdn/{CW423CUZ.js → AXHOHEHC.js} +1 -1
- package/dist/cdn/{LT2ATX5N.js → BP5JW4TO.js} +2 -2
- package/dist/cdn/{R5Y7ZMDF.js → BQF3ODZK.js} +2 -2
- package/dist/cdn/{U7XLUM43.js → BWHBVBRT.js} +2 -2
- package/dist/cdn/C47CFB4O.js +4 -0
- package/dist/cdn/{T467NUGF.js → CBVYZRGJ.js} +2 -2
- package/dist/cdn/{DH7D2MGT.js → CCFDRTZG.js} +29 -29
- package/dist/cdn/CGR4BWQJ.js +4 -0
- package/dist/cdn/CGXE3LSR.js +4 -0
- package/dist/cdn/{52233W4X.js → CVA2R34Y.js} +2 -2
- package/dist/cdn/CXA7LQDC.js +6 -0
- package/dist/cdn/{YYEUYKQA.js → CZSHY7VL.js} +2 -2
- package/dist/cdn/{JC4ID4OZ.js → D2TJTRO3.js} +2 -2
- package/dist/cdn/{LFAVERZK.js → D6FUQNYT.js} +2 -2
- package/dist/cdn/DEBFITLZ.js +4 -0
- package/dist/cdn/{EHONVPL7.js → DPP5JBQ6.js} +1 -1
- package/dist/cdn/DSBEXXSM.js +4 -0
- package/dist/cdn/{NXA7ZUX6.js → E3YRBMHV.js} +2 -2
- package/dist/cdn/{C46PS4TX.js → EAS3QCTO.js} +2 -2
- package/dist/cdn/{TSFTZUSI.js → F23KF5EO.js} +2 -2
- package/dist/cdn/{3BF4AQED.js → F5R34OKI.js} +2 -2
- package/dist/cdn/{IIIH67B3.js → F6MBWAXU.js} +2 -2
- package/dist/cdn/{3PO4B2K3.js → FV6A53GU.js} +2 -2
- package/dist/cdn/FVRR32JS.js +4 -0
- package/dist/cdn/{2HA2PZQ6.js → G365JBMZ.js} +1 -1
- package/dist/cdn/{WCY2L442.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/{EF7JCBMS.js → GZLY6HQP.js} +1 -1
- package/dist/cdn/{WYBZLFF7.js → H2AO665N.js} +2 -2
- package/dist/cdn/{3LQWIMRQ.js → HD2ZXNGB.js} +2 -2
- package/dist/cdn/{H7GIIEPS.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/{2CX7YXG7.js → IAAJMNRU.js} +2 -2
- package/dist/cdn/{LDBJBLWQ.js → IBAAGUE6.js} +2 -2
- package/dist/cdn/{SNF5E6SM.js → ICDQXJJL.js} +2 -2
- package/dist/cdn/IGJEGPQG.js +4 -0
- package/dist/cdn/{IJJZGPAW.js → IGPDOFMJ.js} +2 -2
- package/dist/cdn/{QIZBGZEE.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/{6PDHQMNK.js → JCNLCLEG.js} +2 -2
- package/dist/cdn/{QQYH3KUL.js → JFH3QUYT.js} +2 -2
- package/dist/cdn/JHQ2UAPI.js +4 -0
- package/dist/cdn/JHYUP7LW.js +4 -0
- package/dist/cdn/{SDRKL7IH.js → JMTVC3GN.js} +2 -2
- package/dist/cdn/{47ZJXZXD.js → JQ7YFFRL.js} +2 -2
- package/dist/cdn/JQJIXGU3.js +4 -0
- package/dist/cdn/JV3PG2AD.js +4 -0
- package/dist/cdn/{JGMU7WBA.js → KCSYVBWF.js} +2 -2
- package/dist/cdn/KO5OGIH7.js +4 -0
- package/dist/cdn/KQJAG7ZS.js +4 -0
- package/dist/cdn/{E5FDRUDI.js → L2TWIH5Z.js} +2 -2
- package/dist/cdn/{B3WTAI62.js → L2ZJMBZB.js} +2 -2
- package/dist/cdn/{IW5MVKLI.js → L3VZ5IHX.js} +2 -2
- package/dist/cdn/{4REOTHYM.js → L4OFBY5Y.js} +2 -2
- package/dist/cdn/{BABUC4LE.js → L6QEAS33.js} +2 -2
- package/dist/cdn/{7RC54OTC.js → LATBVT72.js} +2 -2
- package/dist/cdn/{HU3C6O2V.js → LG6SJISO.js} +2 -2
- package/dist/cdn/LHMOTHQN.js +4 -0
- package/dist/cdn/{QY7X4QJI.js → LKT35O5Z.js} +2 -2
- package/dist/cdn/{GQ6Y7I3V.js → LNY7VO77.js} +2 -2
- package/dist/cdn/{NTOILAAX.js → LOMSWOGR.js} +2 -2
- package/dist/cdn/LQRES7J3.js +4 -0
- package/dist/cdn/LVVIF2B4.js +4 -0
- package/dist/cdn/{FT6UC3JB.js → M4V2KEMZ.js} +2 -2
- package/dist/cdn/M6S5OWHP.js +4 -0
- package/dist/cdn/MIIKHSMB.js +4 -0
- package/dist/cdn/{WNORUDAL.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/{IOOOPEEX.js → ODOWMT3R.js} +2 -2
- package/dist/cdn/OG6S5Q4T.js +4 -0
- package/dist/cdn/ON4QNUDJ.js +4 -0
- package/dist/cdn/{2DE4F35V.js → OOYEE27X.js} +2 -2
- package/dist/cdn/{ORQ5VVLY.js → OU76SIMR.js} +2 -2
- package/dist/cdn/OXI4STZW.js +4 -0
- package/dist/cdn/{SAQPXQUQ.js → P6RNC2LG.js} +2 -2
- package/dist/cdn/{KHFHQYLZ.js → PNWK6NJT.js} +2 -2
- package/dist/cdn/{GZNIWD74.js → PYSV3QLB.js} +2 -2
- package/dist/cdn/PYYXSBKR.js +4 -0
- package/dist/cdn/QBW7NI3U.js +4 -0
- package/dist/cdn/{DNCJUVXO.js → QC2RKL3B.js} +1 -1
- package/dist/cdn/{QGWKXEI4.js → QXQQWDEZ.js} +2 -2
- package/dist/cdn/{LSSXR6K3.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/{YNS4GIGO.js → SG2AXP3X.js} +2 -2
- package/dist/cdn/SJZHFPQY.js +4 -0
- package/dist/cdn/STFWYSRQ.js +4 -0
- package/dist/cdn/{72L2KGU3.js → SY2XGQFQ.js} +2 -2
- package/dist/cdn/TBMQYFV3.js +4 -0
- package/dist/cdn/{3CUNETBW.js → THYCR5MP.js} +2 -2
- package/dist/cdn/TOKTXF46.js +4 -0
- package/dist/cdn/TVO6I7Z4.js +4 -0
- package/dist/cdn/{M6XXJ7ZT.js → U5YU25AX.js} +2 -2
- package/dist/cdn/{XYMVLEUO.js → UEUW4SDT.js} +2 -2
- package/dist/cdn/UGPTGIHT.js +4 -0
- package/dist/cdn/{4ACBZIPL.js → UINIKLYT.js} +2 -2
- package/dist/cdn/{4IDW3R33.js → UQUSUIJZ.js} +2 -2
- package/dist/cdn/{A5GRUROJ.js → UWA76BGM.js} +2 -2
- package/dist/cdn/{OUIHKS23.js → UZLKNIS6.js} +2 -2
- package/dist/cdn/{LOURBPI7.js → VAQBU5UZ.js} +2 -2
- package/dist/cdn/{GFJJJNG4.js → VFKVM3NN.js} +2 -2
- package/dist/cdn/{PRUWOI4T.js → VIQWFB6N.js} +2 -2
- package/dist/cdn/{YMTOWVGR.js → VRNNMWD4.js} +2 -2
- package/dist/cdn/{ZIJI7X2J.js → VVU6BIVW.js} +2 -2
- package/dist/cdn/{JYK7MOKB.js → VZ7TPZSI.js} +2 -2
- package/dist/cdn/{AYJ2DAHD.js → VZJHCJ6S.js} +2 -2
- package/dist/cdn/{QVNIWF7Y.js → W24IPQ7R.js} +2 -2
- package/dist/cdn/{F252MJWW.js → W55AMOTU.js} +2 -2
- package/dist/cdn/{7ZCCKCDI.js → WHKYXSL2.js} +2 -2
- package/dist/cdn/WINJFIVF.js +4 -0
- package/dist/cdn/{LWN2GJKZ.js → WJIAB5OJ.js} +2 -2
- package/dist/cdn/{CXNYGDEG.js → WKDKHX46.js} +2 -2
- package/dist/cdn/{NLRPWCMA.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/{Y4EIVXNU.js → XGZ3RDUR.js} +2 -2
- package/dist/cdn/XTN72LYW.js +4 -0
- package/dist/cdn/{YW6BKERZ.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/{VP6SIJ6W.js → YOZZWZZ2.js} +2 -2
- package/dist/cdn/{AKAY7UUY.js → YTODIPYA.js} +2 -2
- package/dist/cdn/{JZXOZPKS.js → Z5TZMPWH.js} +2 -2
- package/dist/cdn/{KAWA7DCI.js → Z6MC3U6Z.js} +2 -2
- package/dist/cdn/{433XUGGB.js → ZIY3JLY2.js} +2 -2
- package/dist/cdn/{F6HH6GPD.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 +8 -9
- package/dist/chart-rendering/next/chart-library-elements/legend/index.d.ts +2 -2
- package/dist/chart-rendering/next/chart-library-elements/series/heat-chart/index.d.ts +2 -0
- package/dist/chart-rendering/next/defaults/index.d.ts +3 -0
- 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 +52 -47
- 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 +48 -49
- 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 +30 -28
- package/dist/chunks/heat-chart-model.js +174 -128
- package/dist/chunks/histogram-data.js +42 -41
- package/dist/chunks/histogram-model.js +43 -39
- package/dist/chunks/index.js +1711 -1649
- 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 +11 -8
- package/dist/chunks/model-setter.js +114 -0
- package/dist/chunks/model-with-multi-axes.js +636 -711
- 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 +128 -118
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +9 -6
- 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 +69 -64
- package/dist/chunks/serial-chart-data.js +705 -949
- package/dist/chunks/serial-chart-model.js +34 -28
- 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 +37 -37
- package/dist/components/arcgis-chart/customElement.d.ts +2 -0
- package/dist/components/arcgis-chart/customElement.js +5219 -4999
- 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 +8 -2
- package/dist/model/chart-model/chart-model.d.ts +4 -1
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +4 -2
- package/dist/model/gauge-model/gauge-model.d.ts +4 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +42 -13
- package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +55 -18
- package/dist/model/histogram-model/histogram-model.d.ts +7 -2
- package/dist/model/line-chart-model/line-chart-model.d.ts +4 -1
- package/dist/model/mixins/index.d.ts +0 -2
- package/dist/model/mixins/model-with-multi-axes.d.ts +5 -0
- package/dist/model/mixins/model-with-x-guides.d.ts +5 -0
- package/dist/model/mixins/model-with-y-guides.d.ts +5 -0
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +4 -1
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +7 -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/radar-chart-model/radar-chart-model.d.ts +4 -1
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +7 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +8 -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 +19 -3
- 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/2HK5DP4Z.js +0 -4
- package/dist/cdn/2J6B67VX.js +0 -4
- package/dist/cdn/2KGX6D5F.js +0 -4
- package/dist/cdn/2ZTCBM34.js +0 -4
- package/dist/cdn/3AC3WNOD.js +0 -4
- package/dist/cdn/3EFUHQNT.js +0 -4
- package/dist/cdn/3IBBMA2A.js +0 -4
- package/dist/cdn/3KTEORBN.js +0 -4
- package/dist/cdn/3OAQQDYR.js +0 -4
- package/dist/cdn/55XCO5XY.js +0 -4
- package/dist/cdn/5ZR4T5HT.js +0 -4
- package/dist/cdn/7A5FF3AI.js +0 -4
- package/dist/cdn/7BHIWXSS.js +0 -4
- package/dist/cdn/7DJBZYIA.js +0 -4
- package/dist/cdn/7IQ2I4LF.js +0 -4
- package/dist/cdn/7NXQKEG4.js +0 -6
- package/dist/cdn/AKL57XN5.js +0 -4
- package/dist/cdn/AW47UABM.js +0 -4
- package/dist/cdn/BBKG2HUU.js +0 -4
- package/dist/cdn/CR4PATFF.js +0 -4
- package/dist/cdn/E7NHJGIP.js +0 -4
- package/dist/cdn/EBYCFLZ7.js +0 -4
- package/dist/cdn/EGC3AWWB.js +0 -4
- package/dist/cdn/EHBSW7CZ.js +0 -4
- package/dist/cdn/FIOJ6UCT.js +0 -4
- package/dist/cdn/GBZWXF7H.js +0 -4
- package/dist/cdn/GEXUZYQM.js +0 -4
- package/dist/cdn/H5BAMOUO.js +0 -4
- package/dist/cdn/HEZL6MN5.js +0 -4
- package/dist/cdn/HJJ3F5RK.js +0 -4
- package/dist/cdn/IA5F2RAW.js +0 -4
- package/dist/cdn/ICJBM7FW.js +0 -4
- package/dist/cdn/IYMPXWG4.js +0 -4
- package/dist/cdn/J3SNSKNC.js +0 -4
- package/dist/cdn/JM6DKNYQ.js +0 -4
- package/dist/cdn/JXVQVJ5E.js +0 -4
- package/dist/cdn/K2XDV2FA.js +0 -4
- package/dist/cdn/K7RWT3Y5.js +0 -4
- package/dist/cdn/KD7WPGSJ.js +0 -4
- package/dist/cdn/LKHZVZT7.js +0 -4
- package/dist/cdn/LZSRP7IC.js +0 -4
- package/dist/cdn/MTCTTNXE.js +0 -4
- package/dist/cdn/N7EHANM3.js +0 -4
- package/dist/cdn/NSKCRQ46.js +0 -4
- package/dist/cdn/ONY47WL2.js +0 -4
- package/dist/cdn/PNXW5DDT.js +0 -4
- package/dist/cdn/Q5RT2IAQ.js +0 -4
- package/dist/cdn/QDHZGFHC.js +0 -4
- package/dist/cdn/QYI2QSH5.js +0 -4
- package/dist/cdn/SCGMS5AE.js +0 -32
- package/dist/cdn/TQTZG3W5.js +0 -4
- package/dist/cdn/U6QB64XJ.js +0 -4
- package/dist/cdn/USUNUI2C.js +0 -4
- package/dist/cdn/UZF3L4UK.js +0 -4
- package/dist/cdn/VMNCZHNP.js +0 -4
- package/dist/cdn/VSO43DDC.js +0 -4
- package/dist/cdn/VYH4PEFA.js +0 -4
- package/dist/cdn/W4X6BXLW.js +0 -4
- package/dist/cdn/Y6BHMVAI.js +0 -4
- package/dist/cdn/Y7FV66TU.js +0 -4
- package/dist/cdn/YOJ4K4LQ.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
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { m as Ie, C as J } from "./model-setter.js";
|
|
2
|
+
import "@arcgis/toolkit/intl";
|
|
3
|
+
import { cloneDeep as R, memoize as de, isEmpty as Ve } from "lodash-es";
|
|
4
|
+
import { w as qe, a as A, d as Ne, t as F, g as we, W as M, m as H, n as Oe, i as z } from "./series-types.js";
|
|
4
5
|
import "d3-array";
|
|
5
|
-
import {
|
|
6
|
+
import { aH as D, aF as k, bA as w, aI as De, k as ee, q as L, U as ke, cG as Me, o as j, de as q, j as Pe, cE as Re, bK as Ee, bW as $e, am as We, p as Xe, dm as je, cA as Ye, dn as ie, cb as Ke, c7 as Ue, aS as _e, Z as Y, cX as N, dl as He, dj as $, bJ as K, bP as ce, bQ as ue, dg as ye, l as ze, b as W, bN as Qe, bq as Ge, b2 as Ze, b3 as Je, aZ as et, b5 as tt, bM as ae, aK as st, aJ as re, aL as it } from "./index.js";
|
|
6
7
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
7
8
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
8
9
|
import "@arcgis/core/rest/support/Query.js";
|
|
@@ -10,12 +11,14 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
10
11
|
import "@arcgis/core/time/TimeExtent.js";
|
|
11
12
|
import "@arcgis/core/core/promiseUtils.js";
|
|
12
13
|
import "@arcgis/core/request.js";
|
|
13
|
-
import
|
|
14
|
+
import "./runtime.js";
|
|
14
15
|
import "@arcgis/toolkit/dom";
|
|
15
|
-
import { substitute as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { S as
|
|
16
|
+
import { substitute as O } from "@arcgis/core/intl.js";
|
|
17
|
+
import { R as ge, f as at } from "./rest-js-object-literals.js";
|
|
18
|
+
import { h as pe, l as v, o as rt, p as lt, j as C, k as B, m as le } from "./index4.js";
|
|
19
|
+
import { S as Q } from "./common.js";
|
|
20
|
+
import { s as b, u as G, d as me, e as nt, f as ot, g as fe, h as dt, j as ne } from "./utils.js";
|
|
21
|
+
import { b as E, d as xe, g as te, e as oe, f as ct } from "./data.js";
|
|
19
22
|
import "@arcgis/core/Graphic.js";
|
|
20
23
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
21
24
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -24,507 +27,255 @@ import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
|
24
27
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
25
28
|
import "simple-statistics";
|
|
26
29
|
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
27
|
-
import {
|
|
28
|
-
import { c as Fe } from "./index2.js";
|
|
30
|
+
import { c as ut } from "./index2.js";
|
|
29
31
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
30
32
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
31
|
-
v5.0.0-next.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
orderByFields: je(a) ? [] : [`${a} ${ue.Ascending}`],
|
|
37
|
-
// default sorting ascending for split-by field
|
|
38
|
-
geometry: e?.dataFilters?.geometry
|
|
39
|
-
}, f = i;
|
|
40
|
-
let u = "";
|
|
41
|
-
n.length === 0 ? u = D(f).idField : [u] = n;
|
|
42
|
-
let S = await fe({
|
|
43
|
-
queryObject: f,
|
|
44
|
-
category: e?.series[0].x ?? "",
|
|
45
|
-
splitByField: a,
|
|
46
|
-
queryConfig: m
|
|
47
|
-
});
|
|
48
|
-
if (e) {
|
|
49
|
-
const p = e?.series.map((g) => Y({ where: g.query?.where })?.toString() ?? "").filter((g) => g !== void 0 && g !== "");
|
|
50
|
-
S = We({
|
|
51
|
-
arrayA: S,
|
|
52
|
-
arrayB: p,
|
|
53
|
-
getKey: (g) => g === null ? null : g?.toString()
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return { categoriesArray: S, splitByFieldType: l, numericalField: u };
|
|
57
|
-
}
|
|
58
|
-
function Vi(t, e) {
|
|
59
|
-
let i = e === "";
|
|
60
|
-
for (const s of t)
|
|
61
|
-
if (e === s.name) {
|
|
62
|
-
i = !0;
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
return i;
|
|
66
|
-
}
|
|
67
|
-
function Oi(t, e) {
|
|
68
|
-
const i = ke(t);
|
|
69
|
-
let s = e.length === 0, a = 0;
|
|
70
|
-
for (const r of e) {
|
|
71
|
-
for (const n of i)
|
|
72
|
-
if (r === n && (a += 1), a === e.length) {
|
|
73
|
-
s = !0;
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
if (s)
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
return s;
|
|
80
|
-
}
|
|
81
|
-
function wi(t, e) {
|
|
82
|
-
e.forEach((i) => {
|
|
83
|
-
Object.getOwnPropertyNames(i.prototype).forEach((s) => {
|
|
84
|
-
Object.defineProperty(
|
|
85
|
-
t.prototype,
|
|
86
|
-
s,
|
|
87
|
-
Object.getOwnPropertyDescriptor(i.prototype, s) || /* @__PURE__ */ Object.create(null)
|
|
88
|
-
);
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
async function At(t) {
|
|
93
|
-
const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues: n } = i?.series?.[0]?.query ?? {}, o = n !== !0 ? `${s} IS NOT NULL` : "", c = {
|
|
94
|
-
where: ge([r, o]),
|
|
95
|
-
// excluding the null values from the list
|
|
96
|
-
orderByFields: [],
|
|
97
|
-
geometry: i?.dataFilters?.geometry
|
|
98
|
-
}, l = ee(a);
|
|
99
|
-
return (
|
|
100
|
-
// fetch unique category values asynchronously
|
|
101
|
-
(await fe({ queryObject: a, category: s, queryConfig: c })).map((d) => {
|
|
102
|
-
const x = String(d);
|
|
103
|
-
return te({
|
|
104
|
-
fieldName: s,
|
|
105
|
-
fieldValueToMatch: x,
|
|
106
|
-
subtypeInfo: l,
|
|
107
|
-
// use the retrieved subtype information
|
|
108
|
-
fieldList: e.layerFieldsInfo
|
|
109
|
-
// list of field information from the layer
|
|
110
|
-
}) ?? x;
|
|
111
|
-
})
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
function W(t, e, i) {
|
|
115
|
-
const s = t?.axes?.[e];
|
|
116
|
-
s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = M({
|
|
117
|
-
text: i,
|
|
118
|
-
visible: !0,
|
|
119
|
-
font: U(N.AxisTitle)
|
|
120
|
-
}));
|
|
121
|
-
}
|
|
122
|
-
function be(t) {
|
|
123
|
-
const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType: r } = t;
|
|
124
|
-
let n = "";
|
|
125
|
-
if (e)
|
|
126
|
-
if (_e(e) === Re.Stacked100)
|
|
127
|
-
n = s.utilsStrings.statistics.percent;
|
|
128
|
-
else {
|
|
129
|
-
const c = pe(r, s);
|
|
130
|
-
if (a.length === 1) {
|
|
131
|
-
const l = L(i.layerFieldsInfo, a[0]), y = D(i.layer).idField;
|
|
132
|
-
r === T.NoAggregation ? n = l : r === T.Count && y !== void 0 && a[0] === y ? n = s.utilsStrings.statistics.count : n = w(s.axisLabels.aggregationOfFieldName, {
|
|
133
|
-
aggregation: c,
|
|
134
|
-
fieldName: l
|
|
135
|
-
});
|
|
136
|
-
} else a.length > 1 && (r === T.NoAggregation ? n = s.axisLabels.values : n = w(s.axisLabels.aggregationOfValues, {
|
|
137
|
-
aggregation: c
|
|
138
|
-
}));
|
|
139
|
-
}
|
|
140
|
-
return n;
|
|
141
|
-
}
|
|
142
|
-
const Te = (t, e, i) => t.axes?.[e] ?? Ye(i, t.type)[e], Ae = (t) => {
|
|
143
|
-
const { config: e, axis: i, axisIndex: s } = t;
|
|
144
|
-
e.axes !== void 0 && (e.axes[s] = i);
|
|
145
|
-
}, qi = (t) => {
|
|
146
|
-
const { config: e, axisIndex: i, isMax: s } = t;
|
|
147
|
-
let a = Number.NaN;
|
|
148
|
-
return s ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
|
|
149
|
-
}, F = (t) => {
|
|
150
|
-
const { config: e, value: i, axisIndex: s, isMax: a } = t, r = e?.axes?.[s];
|
|
151
|
-
r !== void 0 && (a ? r.maximum = i : r.minimum = i);
|
|
152
|
-
}, Pi = (t, e) => {
|
|
153
|
-
F({ config: t, value: e, axisIndex: 0, isMax: !1 });
|
|
154
|
-
}, ve = (t) => t.axes?.[0]?.valueFormat ?? G(), vt = (t, e, i) => {
|
|
155
|
-
const s = Te(t, 0, e);
|
|
156
|
-
if (s !== void 0 && i !== void 0) {
|
|
157
|
-
const a = {
|
|
158
|
-
...s,
|
|
159
|
-
valueFormat: i
|
|
160
|
-
};
|
|
161
|
-
Ae({ config: t, axis: a, axisIndex: 0 });
|
|
162
|
-
}
|
|
163
|
-
}, ce = (t, e, i) => {
|
|
164
|
-
const s = t.axes?.[e];
|
|
165
|
-
s !== void 0 && (s.integerOnlyValues = i);
|
|
166
|
-
}, Bt = (t) => {
|
|
167
|
-
const e = ye(t.series);
|
|
168
|
-
return e === P.BarSeries || e === P.ComboLineAndBarSeries || e === P.LineSeries;
|
|
169
|
-
}, Ct = (t) => {
|
|
170
|
-
const { axisIndex: e, config: i, isMultiAxis: s } = t;
|
|
171
|
-
let a = !1;
|
|
172
|
-
return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = Bt(i)), a;
|
|
173
|
-
}, Di = (t) => {
|
|
174
|
-
const { axisIndex: e, func: i, config: s } = t;
|
|
175
|
-
return Ct({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
|
|
176
|
-
}, Mi = (t, e) => {
|
|
177
|
-
let i;
|
|
178
|
-
const s = e.axes?.[t]?.valueFormat;
|
|
179
|
-
return (t === 0 || t >= 1 && St(s)) && (i = s), i;
|
|
180
|
-
}, Ui = (t) => {
|
|
181
|
-
const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, r = Te(e, a, i);
|
|
182
|
-
if (r !== void 0 && s !== void 0) {
|
|
183
|
-
const n = {
|
|
184
|
-
...r,
|
|
185
|
-
valueFormat: s
|
|
186
|
-
};
|
|
187
|
-
Ae({
|
|
188
|
-
config: e,
|
|
189
|
-
axis: n,
|
|
190
|
-
axisIndex: a
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}, Ei = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, Ri = (t) => {
|
|
194
|
-
const { config: e, isLogarithmic: i, axisIndex: s } = t, a = e.axes?.[s];
|
|
195
|
-
a && (a.isLogarithmic = i, F({ config: e, value: null, axisIndex: s, isMax: !0 }), F({ config: e, value: null, axisIndex: s, isMax: !1 }));
|
|
196
|
-
}, $i = (t) => {
|
|
197
|
-
const { config: e, scrollbar: i, axisIndex: s } = t;
|
|
198
|
-
e.axes?.[s] !== void 0 && (e.axes[s].scrollbar = i);
|
|
33
|
+
v5.0.0-next.116 */
|
|
34
|
+
var yt = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, pt = (t, e, s, i) => {
|
|
35
|
+
for (var a = gt(e, s), r = t.length - 1, l; r >= 0; r--)
|
|
36
|
+
(l = t[r]) && (a = l(e, s, a) || a);
|
|
37
|
+
return a && yt(e, s, a), a;
|
|
199
38
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
super(...arguments), this.dirtyAsyncSetters = [], this.asyncConfigUpdateInProgress = !1, this.pendingUpdates = 0, this.dataStore = {}, this.asyncUpdatesPromise = new Promise((e) => {
|
|
203
|
-
this.resolveSetup = e;
|
|
204
|
-
}), this.emitConfigUpdate = (e) => {
|
|
205
|
-
this.dispatchEvent(
|
|
206
|
-
new CustomEvent("arcgisChartsModelConfigChange", {
|
|
207
|
-
detail: { config: this._config, setterName: e }
|
|
208
|
-
})
|
|
209
|
-
);
|
|
210
|
-
}, this.guardSetterFromAsyncOverwrite = async (e) => {
|
|
211
|
-
e(), this.asyncConfigUpdateInProgress && (await this.asyncUpdatesPromise, e());
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Checks if the current chart model is for the same chart as another chart model.
|
|
216
|
-
*
|
|
217
|
-
* @param otherModel - The other chart model to compare to.
|
|
218
|
-
*/
|
|
219
|
-
isSameChartAs(e) {
|
|
220
|
-
const i = e?.layer;
|
|
221
|
-
return i !== void 0 && this._config.id === e?.chartId && this.layerInfo?.layer.id === i.id;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Can be awaited to allow any pending async updates to complete.
|
|
225
|
-
* @public
|
|
226
|
-
*/
|
|
227
|
-
async update() {
|
|
228
|
-
await this.asyncUpdatesPromise;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* A function that loads the config based on the provided props.
|
|
232
|
-
*
|
|
233
|
-
* @param params.layer - The layer to be used as the data source for the chart.
|
|
234
|
-
* @param params.iLayer - The layer description to use if the layer is not provided.
|
|
235
|
-
* @param params.config - The config object to be loaded.
|
|
236
|
-
*/
|
|
237
|
-
async loadConfigFromLayer(e) {
|
|
238
|
-
const { layer: i, iLayer: s, config: a } = e;
|
|
239
|
-
this.commonStrings = await Me(
|
|
240
|
-
Ue(document.documentElement).t9nLocale,
|
|
241
|
-
mt("./assets/common/t9n"),
|
|
242
|
-
"messages."
|
|
243
|
-
);
|
|
244
|
-
let r = i;
|
|
245
|
-
if (!r && s ? r = await re(s) : !r && a?.iLayer && (r = await re(a.iLayer)), r) {
|
|
246
|
-
const n = await Ke(r, !0), o = D(r).idField;
|
|
247
|
-
this.layerInfo = {
|
|
248
|
-
layer: r,
|
|
249
|
-
layerFieldsInfo: n,
|
|
250
|
-
objectIdField: o
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
this._config = a ? await Fe(a) : this.generateDefaultConfig(), this._config.legend !== void 0 && this._config.legend?.title === void 0 && (this._config.legend.title = Qe().title), s && (this._config.iLayer = s);
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Manually block the async guard to queue up config updates until unblocked.
|
|
257
|
-
*/
|
|
258
|
-
startAsyncUpdate() {
|
|
259
|
-
this.pendingUpdates === 0 && (this.asyncConfigUpdateInProgress = !0, this.asyncUpdatesPromise = new Promise((e) => {
|
|
260
|
-
this.resolveSetup = e;
|
|
261
|
-
})), this.pendingUpdates += 1;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Manually unblock the async guard to allow queued config updates to proceed.
|
|
265
|
-
*/
|
|
266
|
-
finishAsyncUpdate() {
|
|
267
|
-
this.pendingUpdates -= 1, this.pendingUpdates === 0 && (this.asyncConfigUpdateInProgress = !1, this.resolveSetup?.());
|
|
268
|
-
}
|
|
269
|
-
// #endregion
|
|
270
|
-
}
|
|
271
|
-
function Lt(t, e, i) {
|
|
272
|
-
const s = i.set, a = i.value;
|
|
273
|
-
return s && (i.set = function(r) {
|
|
274
|
-
this.guardSetterFromAsyncOverwrite(() => {
|
|
275
|
-
s.call(this, r), this.emitConfigUpdate(e);
|
|
276
|
-
});
|
|
277
|
-
}), a && (i.value = function(...r) {
|
|
278
|
-
this.guardSetterFromAsyncOverwrite(() => {
|
|
279
|
-
a.apply(this, r), this.emitConfigUpdate(e);
|
|
280
|
-
});
|
|
281
|
-
}), i;
|
|
282
|
-
}
|
|
283
|
-
var It = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, Vt = (t, e, i, s) => {
|
|
284
|
-
for (var a = Nt(e, i), r = t.length - 1, n; r >= 0; r--)
|
|
285
|
-
(n = t[r]) && (a = n(e, i, a) || a);
|
|
286
|
-
return a && It(e, i, a), a;
|
|
287
|
-
};
|
|
288
|
-
const Be = (t) => t.title?.content.text ?? "", Ot = (t, e) => {
|
|
289
|
-
e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = M({
|
|
39
|
+
const Se = (t) => t.title?.content.text ?? "", mt = (t, e) => {
|
|
40
|
+
e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = D({
|
|
290
41
|
text: t,
|
|
291
42
|
visible: !0,
|
|
292
|
-
font:
|
|
43
|
+
font: k(w.ChartTitle)
|
|
293
44
|
}));
|
|
294
45
|
};
|
|
295
|
-
class
|
|
46
|
+
class ft extends J {
|
|
296
47
|
/**
|
|
297
48
|
* The chart title text.
|
|
298
49
|
*/
|
|
299
50
|
get titleText() {
|
|
300
|
-
return
|
|
51
|
+
return Se(this._config);
|
|
301
52
|
}
|
|
302
53
|
set titleText(e) {
|
|
303
|
-
|
|
54
|
+
mt(e, this._config);
|
|
304
55
|
}
|
|
305
56
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
],
|
|
309
|
-
const
|
|
310
|
-
const { config: e, axisIndex:
|
|
57
|
+
pt([
|
|
58
|
+
Ie
|
|
59
|
+
], ft.prototype, "titleText");
|
|
60
|
+
const fs = (t, e) => t.axes?.[e]?.title?.content, xs = (t) => {
|
|
61
|
+
const { config: e, axisIndex: s, symbol: i } = t, a = e.axes?.[s];
|
|
311
62
|
if (a !== void 0) {
|
|
312
63
|
const r = a.title?.content.text;
|
|
313
|
-
(a.title === void 0 ||
|
|
64
|
+
(a.title === void 0 || i === void 0) && (a.title = D({
|
|
314
65
|
text: "",
|
|
315
66
|
visible: !0,
|
|
316
|
-
font:
|
|
317
|
-
type:
|
|
318
|
-
})),
|
|
67
|
+
font: k(w.AxisTitle),
|
|
68
|
+
type: w.AxisTitle
|
|
69
|
+
})), i !== void 0 && (a.title.content = i), a.title.content.text = r;
|
|
319
70
|
}
|
|
320
|
-
},
|
|
71
|
+
}, Ss = (t) => {
|
|
321
72
|
for (const e of t.axes ?? [])
|
|
322
73
|
if (e?.labels !== void 0)
|
|
323
74
|
return e.labels.content;
|
|
324
|
-
},
|
|
325
|
-
for (const
|
|
326
|
-
if (
|
|
327
|
-
const
|
|
328
|
-
t === void 0 ?
|
|
75
|
+
}, Ts = (t, e) => {
|
|
76
|
+
for (const s of e.axes ?? [])
|
|
77
|
+
if (s !== void 0) {
|
|
78
|
+
const i = s.labels?.content.text;
|
|
79
|
+
t === void 0 ? s.labels = D({
|
|
329
80
|
text: "",
|
|
330
81
|
visible: !0,
|
|
331
|
-
font:
|
|
332
|
-
type:
|
|
333
|
-
}) :
|
|
82
|
+
font: k(w.AxisLabels),
|
|
83
|
+
type: w.AxisLabels
|
|
84
|
+
}) : s.labels.content = R(t), s.labels.content.text = i;
|
|
334
85
|
}
|
|
335
|
-
},
|
|
86
|
+
}, Fs = (t) => {
|
|
336
87
|
for (const e of t.axes ?? [])
|
|
337
88
|
if (e?.lineSymbol !== void 0)
|
|
338
89
|
return e.lineSymbol;
|
|
339
|
-
},
|
|
340
|
-
for (const
|
|
341
|
-
|
|
342
|
-
},
|
|
90
|
+
}, bs = (t, e) => {
|
|
91
|
+
for (const s of e.axes ?? [])
|
|
92
|
+
s !== void 0 && (s.lineSymbol = R(t) ?? De());
|
|
93
|
+
}, hs = (t) => {
|
|
343
94
|
for (const e of t.axes ?? [])
|
|
344
95
|
if (e?.grid !== void 0)
|
|
345
96
|
return e.grid;
|
|
346
|
-
},
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
|
|
97
|
+
}, Cs = (t, e, s) => {
|
|
98
|
+
const i = e.axes;
|
|
99
|
+
s.forEach((a) => {
|
|
100
|
+
i?.[a] !== void 0 && (i[a].grid = R(t));
|
|
350
101
|
});
|
|
351
|
-
},
|
|
352
|
-
const
|
|
353
|
-
|
|
102
|
+
}, U = (t, e) => e.axes?.[t]?.title?.content.text ?? "", Bs = (t, e, s) => {
|
|
103
|
+
const i = s.axes?.[e];
|
|
104
|
+
i?.title !== void 0 ? i.title.content.text = t : i !== void 0 && i?.title === void 0 && (i.title = D({
|
|
354
105
|
text: t,
|
|
355
106
|
visible: !0,
|
|
356
|
-
font:
|
|
107
|
+
font: k(w.AxisTitle)
|
|
357
108
|
}));
|
|
358
|
-
},
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
},
|
|
362
|
-
const
|
|
363
|
-
|
|
109
|
+
}, As = (t, e) => e.axes?.[t]?.visible ?? !0, vs = (t, e, s) => {
|
|
110
|
+
const i = s.axes?.[e];
|
|
111
|
+
i !== void 0 && (i.visible = t);
|
|
112
|
+
}, Ls = (t, e) => e.axes?.[t]?.labels?.visible ?? !0, Is = (t, e, s) => {
|
|
113
|
+
const i = s.axes?.[e];
|
|
114
|
+
i?.labels !== void 0 ? i.labels.visible = t : i !== void 0 && i?.labels === void 0 && (i.labels = D({
|
|
364
115
|
text: "",
|
|
365
116
|
visible: t,
|
|
366
|
-
font:
|
|
367
|
-
type:
|
|
117
|
+
font: k(w.AxisLabels),
|
|
118
|
+
type: w.AxisLabels
|
|
368
119
|
}));
|
|
369
|
-
},
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
text:
|
|
120
|
+
}, Vs = (t, e) => e.axes?.[t]?.title?.visible ?? !1, qs = (t, e, s) => {
|
|
121
|
+
const i = s.axes?.[e];
|
|
122
|
+
i?.title !== void 0 ? i.title.visible = t : i !== void 0 && i?.title === void 0 && (i.title = D({
|
|
123
|
+
text: U(e, s),
|
|
373
124
|
visible: t,
|
|
374
|
-
font:
|
|
125
|
+
font: k(w.AxisTitle)
|
|
375
126
|
}));
|
|
376
|
-
},
|
|
377
|
-
t.axes?.[
|
|
378
|
-
},
|
|
379
|
-
const { config: e, displayCursorTooltip:
|
|
380
|
-
e.axes?.[
|
|
381
|
-
},
|
|
382
|
-
const { config: e, buffer:
|
|
383
|
-
a !== void 0 && (a.buffer =
|
|
384
|
-
},
|
|
385
|
-
const { config: e, tickSpacing:
|
|
386
|
-
e.axes?.[
|
|
387
|
-
},
|
|
388
|
-
const { config: e, integerOnlyValues:
|
|
389
|
-
e.axes?.[
|
|
390
|
-
},
|
|
391
|
-
class
|
|
127
|
+
}, Ns = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, ws = (t, e, s) => {
|
|
128
|
+
t.axes?.[s] !== void 0 && (t.axes[s].displayZeroLine = e);
|
|
129
|
+
}, Os = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, Ds = (t) => {
|
|
130
|
+
const { config: e, displayCursorTooltip: s, axisIndex: i } = t;
|
|
131
|
+
e.axes?.[i] !== void 0 && (e.axes[i].displayCursorTooltip = s);
|
|
132
|
+
}, ks = (t, e) => t.axes?.[e]?.buffer ?? !1, Ms = (t) => {
|
|
133
|
+
const { config: e, buffer: s, axisIndex: i } = t, a = e.axes?.[i];
|
|
134
|
+
a !== void 0 && (a.buffer = s);
|
|
135
|
+
}, Ps = (t, e) => t.axes?.[e]?.tickSpacing, Rs = (t) => {
|
|
136
|
+
const { config: e, tickSpacing: s, axisIndex: i } = t;
|
|
137
|
+
e.axes?.[i] !== void 0 && (e.axes[i].tickSpacing = s);
|
|
138
|
+
}, Es = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, $s = (t) => {
|
|
139
|
+
const { config: e, integerOnlyValues: s, axisIndex: i } = t;
|
|
140
|
+
e.axes?.[i] !== void 0 && (e.axes[i].integerOnlyValues = s);
|
|
141
|
+
}, xt = (t) => t.series.map((e) => String(ee({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "");
|
|
142
|
+
class Ws extends J {
|
|
392
143
|
/**
|
|
393
144
|
* The split-by values for the chart.
|
|
394
145
|
*/
|
|
395
146
|
get splitByValues() {
|
|
396
|
-
return
|
|
147
|
+
return xt(this._config);
|
|
397
148
|
}
|
|
398
149
|
}
|
|
399
|
-
const
|
|
150
|
+
const St = (t) => {
|
|
400
151
|
let e;
|
|
401
|
-
const
|
|
402
|
-
return
|
|
403
|
-
},
|
|
152
|
+
const s = t.series[0];
|
|
153
|
+
return L(s) && (e = s.temporalBinning?.size), e;
|
|
154
|
+
}, Tt = (t) => {
|
|
404
155
|
let e;
|
|
405
|
-
const
|
|
406
|
-
return
|
|
407
|
-
},
|
|
156
|
+
const s = t.series[0];
|
|
157
|
+
return L(s) && (e = s.temporalBinning?.unit), e;
|
|
158
|
+
}, Ft = (t) => {
|
|
408
159
|
let e;
|
|
409
|
-
const
|
|
410
|
-
return
|
|
411
|
-
},
|
|
160
|
+
const s = t.series[0];
|
|
161
|
+
return L(s) && (e = s.temporalBinning?.timeAggregationType), e;
|
|
162
|
+
}, bt = (t) => {
|
|
412
163
|
let e;
|
|
413
|
-
const
|
|
414
|
-
return
|
|
415
|
-
},
|
|
164
|
+
const s = t.series[0];
|
|
165
|
+
return L(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
166
|
+
}, ht = (t) => {
|
|
416
167
|
let e;
|
|
417
|
-
const
|
|
418
|
-
return
|
|
419
|
-
},
|
|
420
|
-
e?.series?.forEach((
|
|
421
|
-
|
|
422
|
-
}),
|
|
423
|
-
},
|
|
424
|
-
e?.series?.forEach((
|
|
425
|
-
|
|
426
|
-
}),
|
|
427
|
-
},
|
|
428
|
-
e.series?.forEach((
|
|
429
|
-
|
|
430
|
-
}),
|
|
431
|
-
},
|
|
432
|
-
e.series?.forEach((
|
|
433
|
-
|
|
434
|
-
}),
|
|
435
|
-
},
|
|
436
|
-
e.series?.forEach((
|
|
437
|
-
|
|
438
|
-
}),
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
},
|
|
442
|
-
class
|
|
168
|
+
const s = t.series[0];
|
|
169
|
+
return L(s) && (e = s.temporalBinning?.nullPolicy), e;
|
|
170
|
+
}, Te = (t, e) => {
|
|
171
|
+
e?.series?.forEach((s) => {
|
|
172
|
+
L(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
|
|
173
|
+
}), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
174
|
+
}, Ct = (t, e) => {
|
|
175
|
+
e?.series?.forEach((s) => {
|
|
176
|
+
L(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
|
|
177
|
+
}), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
178
|
+
}, Xs = (t, e) => {
|
|
179
|
+
e.series?.forEach((s) => {
|
|
180
|
+
L(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
|
|
181
|
+
}), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
182
|
+
}, js = (t, e) => {
|
|
183
|
+
e.series?.forEach((s) => {
|
|
184
|
+
L(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
|
|
185
|
+
}), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
186
|
+
}, Ys = (t, e) => {
|
|
187
|
+
e.series?.forEach((s) => {
|
|
188
|
+
L(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
|
|
189
|
+
}), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
190
|
+
}, Ks = (t) => {
|
|
191
|
+
Te(0, t);
|
|
192
|
+
}, Fe = (t) => t.series.length ?? 0;
|
|
193
|
+
class Us extends J {
|
|
443
194
|
/**
|
|
444
195
|
* The length of the series array.
|
|
445
196
|
*/
|
|
446
197
|
get seriesLength() {
|
|
447
|
-
return
|
|
198
|
+
return Fe(this._config);
|
|
448
199
|
}
|
|
449
200
|
}
|
|
450
|
-
function
|
|
451
|
-
let
|
|
452
|
-
return e !== void 0 && (
|
|
201
|
+
function _s(t, e) {
|
|
202
|
+
let s;
|
|
203
|
+
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
|
|
453
204
|
}
|
|
454
|
-
function
|
|
455
|
-
let
|
|
456
|
-
return e !== void 0 && (
|
|
205
|
+
function Hs(t, e) {
|
|
206
|
+
let s;
|
|
207
|
+
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
|
|
457
208
|
}
|
|
458
|
-
function
|
|
459
|
-
let
|
|
460
|
-
return e !== void 0 && (
|
|
209
|
+
function zs(t, e) {
|
|
210
|
+
let s;
|
|
211
|
+
return e !== void 0 && (s = { ...e, rotated: t }), s;
|
|
461
212
|
}
|
|
462
|
-
function
|
|
213
|
+
function Bt(t) {
|
|
463
214
|
let e;
|
|
464
215
|
return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
465
216
|
}
|
|
466
|
-
function
|
|
467
|
-
return e != null ||
|
|
217
|
+
function Qs(t, e) {
|
|
218
|
+
return e != null || pe(t);
|
|
468
219
|
}
|
|
469
|
-
async function
|
|
470
|
-
const { queryObject: e, chartConfig:
|
|
471
|
-
let r = [],
|
|
472
|
-
const
|
|
220
|
+
async function At(t) {
|
|
221
|
+
const { queryObject: e, chartConfig: s, options: i, splitByField: a } = t;
|
|
222
|
+
let r = [], l;
|
|
223
|
+
const n = R(s), o = n.series[0], d = $e({
|
|
473
224
|
queryObject: e,
|
|
474
|
-
chartConfig:
|
|
475
|
-
runtimeDataFilters:
|
|
476
|
-
ignoreViewExtent:
|
|
225
|
+
chartConfig: n,
|
|
226
|
+
runtimeDataFilters: i?.runtimeDataFilters,
|
|
227
|
+
ignoreViewExtent: i?.ignoreViewExtent
|
|
477
228
|
});
|
|
478
|
-
if (
|
|
479
|
-
xAxisValueFormatType:
|
|
480
|
-
setTimeBinningInfoWhenNotProvided:
|
|
481
|
-
seriesConfig:
|
|
482
|
-
}) &&
|
|
483
|
-
const { temporalBinning:
|
|
484
|
-
chartConfig:
|
|
485
|
-
queryConfig:
|
|
229
|
+
if (d.outStatistics?.[0]?.outStatisticFieldName && (d.outStatistics[0].outStatisticFieldName = We.outStatistics.outStatisticFieldName), L(o) && Xe({
|
|
230
|
+
xAxisValueFormatType: je(n),
|
|
231
|
+
setTimeBinningInfoWhenNotProvided: i?.setTimeBinningInfoWhenNotProvided,
|
|
232
|
+
seriesConfig: o
|
|
233
|
+
}) && Ye(e)) {
|
|
234
|
+
const { temporalBinning: f, x: c } = o, { uniqueQuery: S } = await ie({
|
|
235
|
+
chartConfig: n,
|
|
236
|
+
queryConfig: d,
|
|
486
237
|
queryObject: e,
|
|
487
|
-
options:
|
|
238
|
+
options: i
|
|
488
239
|
});
|
|
489
|
-
|
|
240
|
+
l = await Ke({
|
|
490
241
|
queryObject: e,
|
|
491
|
-
dateField:
|
|
242
|
+
dateField: c,
|
|
492
243
|
splitByField: a,
|
|
493
|
-
queryConfig:
|
|
494
|
-
temporalBinning:
|
|
244
|
+
queryConfig: S,
|
|
245
|
+
temporalBinning: f
|
|
495
246
|
}), r = Array.from(
|
|
496
247
|
new Set(
|
|
497
|
-
|
|
498
|
-
const { stackedAttributes:
|
|
248
|
+
l.flatMap((x) => {
|
|
249
|
+
const { stackedAttributes: y } = x;
|
|
499
250
|
let u = [];
|
|
500
|
-
return
|
|
251
|
+
return y && (u = y.map((m) => m[a]).filter((m) => m !== void 0)), u;
|
|
501
252
|
})
|
|
502
253
|
).values()
|
|
503
254
|
);
|
|
504
255
|
} else {
|
|
505
|
-
const { uniqueQuery:
|
|
506
|
-
chartConfig:
|
|
256
|
+
const { uniqueQuery: f } = await ie({
|
|
257
|
+
chartConfig: n,
|
|
507
258
|
queryObject: e,
|
|
508
|
-
queryConfig:
|
|
509
|
-
options:
|
|
259
|
+
queryConfig: d,
|
|
260
|
+
options: i
|
|
510
261
|
});
|
|
511
|
-
|
|
262
|
+
l = await Ue({
|
|
512
263
|
queryObject: e,
|
|
513
|
-
queryConfig:
|
|
264
|
+
queryConfig: f,
|
|
514
265
|
featureCount: 1
|
|
515
266
|
}), r = Array.from(
|
|
516
267
|
new Set(
|
|
517
|
-
|
|
268
|
+
l.map((c) => c.attributes[a]).filter((c) => c !== void 0)
|
|
518
269
|
).values()
|
|
519
270
|
);
|
|
520
271
|
}
|
|
521
|
-
return { allValues: r, preFetchedQueryResponse:
|
|
272
|
+
return { allValues: r, preFetchedQueryResponse: l };
|
|
522
273
|
}
|
|
523
|
-
function
|
|
524
|
-
const
|
|
525
|
-
return t.series.forEach((
|
|
526
|
-
let a =
|
|
527
|
-
where:
|
|
274
|
+
function vt(t, e) {
|
|
275
|
+
const s = /* @__PURE__ */ new Map();
|
|
276
|
+
return t.series.forEach((i) => {
|
|
277
|
+
let a = ee({
|
|
278
|
+
where: i.query?.where,
|
|
528
279
|
// normalize the value so it matches what we get from getAllValues()
|
|
529
280
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
530
281
|
normalize: !0,
|
|
@@ -533,736 +284,741 @@ function Xt(t, e) {
|
|
|
533
284
|
escape: !1
|
|
534
285
|
});
|
|
535
286
|
e && a !== null && (a = Number(a));
|
|
536
|
-
const r =
|
|
537
|
-
r !== void 0 &&
|
|
538
|
-
...
|
|
287
|
+
const r = qe([i]);
|
|
288
|
+
r !== void 0 && s.set(r, [
|
|
289
|
+
...s.get(r) ?? [],
|
|
539
290
|
a
|
|
540
291
|
]);
|
|
541
|
-
}),
|
|
292
|
+
}), s;
|
|
542
293
|
}
|
|
543
|
-
function
|
|
544
|
-
const { allValues: e, configUniqueValuesPerSeriesType:
|
|
545
|
-
return Array.from(
|
|
546
|
-
const
|
|
547
|
-
let
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}), a.set(r,
|
|
294
|
+
function Lt(t) {
|
|
295
|
+
const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: i } = t, a = /* @__PURE__ */ new Map();
|
|
296
|
+
return Array.from(s.keys()).forEach((r) => {
|
|
297
|
+
const l = s.get(r) ?? [];
|
|
298
|
+
let n = [];
|
|
299
|
+
i ? n = e : e.forEach((o) => {
|
|
300
|
+
l.includes(o) || n.push(o);
|
|
301
|
+
}), a.set(r, n);
|
|
551
302
|
}), a;
|
|
552
303
|
}
|
|
553
|
-
function
|
|
554
|
-
const { chartConfig: e, missingValue:
|
|
304
|
+
function It(t) {
|
|
305
|
+
const { chartConfig: e, missingValue: s, splitByField: i, seriesTemplate: a } = t, r = JSON.parse(
|
|
555
306
|
JSON.stringify({
|
|
556
307
|
...e.series[0],
|
|
557
308
|
...a
|
|
558
309
|
})
|
|
559
310
|
);
|
|
560
311
|
if (r.query) {
|
|
561
|
-
if (r.id = `${
|
|
562
|
-
const
|
|
563
|
-
r.query.outStatistics[0].outStatisticFieldName =
|
|
312
|
+
if (r.id = `${s}-${e.series.length}-${Date.now()}`, r.name = `${s}`, r.query.outStatistics?.[0] !== void 0) {
|
|
313
|
+
const n = r.id;
|
|
314
|
+
r.query.outStatistics[0].outStatisticFieldName = n, "y" in r && (r.y = n);
|
|
564
315
|
}
|
|
565
|
-
const
|
|
566
|
-
r.query.where = `${
|
|
316
|
+
const l = typeof s == "number" || s === null ? s : `'${s}'`;
|
|
317
|
+
r.query.where = `${i}=${l}`;
|
|
567
318
|
}
|
|
568
319
|
return r;
|
|
569
320
|
}
|
|
570
|
-
async function
|
|
571
|
-
const { updateSplitBySeries: e, config:
|
|
572
|
-
let
|
|
573
|
-
if (e !== void 0 &&
|
|
574
|
-
const
|
|
575
|
-
|
|
576
|
-
const
|
|
577
|
-
if ((
|
|
578
|
-
const
|
|
579
|
-
await
|
|
580
|
-
const
|
|
321
|
+
async function Vt(t) {
|
|
322
|
+
const { updateSplitBySeries: e, config: s, options: i, queryObject: a } = t, { seriesTemplate: r } = e ?? {};
|
|
323
|
+
let l;
|
|
324
|
+
if (e !== void 0 && s !== void 0 && (s.series.length > 0 || r !== void 0) && e.addMissingSeries) {
|
|
325
|
+
const n = s.series.length === 0;
|
|
326
|
+
s.series.length === 0 && r !== void 0 && s.series.push(r);
|
|
327
|
+
const o = j(s.series);
|
|
328
|
+
if ((o === q.BoxPlotMonoFieldAndSplitBy || o === q.BoxPlotMultiFieldsAndSplitBy || o === q.BoxPlotMonoFieldAndCategoryAndSplitBy || o === q.BarAndLineSplitBy || o === q.BarAndLineSplitByNoAggregation) && a !== void 0) {
|
|
329
|
+
const d = Pe(s.series[0]?.query?.where), f = Re(a);
|
|
330
|
+
await f.load();
|
|
331
|
+
const c = f.getField(d)?.toJSON(), S = Ee(c), x = await At({
|
|
581
332
|
queryObject: a,
|
|
582
|
-
chartConfig:
|
|
583
|
-
splitByField:
|
|
584
|
-
options:
|
|
585
|
-
}), { allValues:
|
|
586
|
-
if ({ preFetchedQueryResponse:
|
|
587
|
-
const u =
|
|
588
|
-
allValues:
|
|
333
|
+
chartConfig: s,
|
|
334
|
+
splitByField: d,
|
|
335
|
+
options: i
|
|
336
|
+
}), { allValues: y } = x;
|
|
337
|
+
if ({ preFetchedQueryResponse: l } = x, y.length > 0) {
|
|
338
|
+
const u = vt(s, S), m = Lt({
|
|
339
|
+
allValues: y,
|
|
589
340
|
configUniqueValuesPerSeriesType: u,
|
|
590
|
-
initialConfigWasEmpty:
|
|
341
|
+
initialConfigWasEmpty: n
|
|
591
342
|
});
|
|
592
|
-
Array.from(
|
|
593
|
-
(
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
chartConfig:
|
|
343
|
+
Array.from(m.keys()).forEach((p) => {
|
|
344
|
+
(m.get(p) ?? []).forEach((T) => {
|
|
345
|
+
s.series.push(
|
|
346
|
+
It({
|
|
347
|
+
chartConfig: s,
|
|
597
348
|
seriesTemplate: r,
|
|
598
|
-
missingValue:
|
|
599
|
-
splitByField:
|
|
349
|
+
missingValue: T,
|
|
350
|
+
splitByField: d
|
|
600
351
|
})
|
|
601
352
|
);
|
|
602
|
-
}),
|
|
353
|
+
}), n && s.series.shift();
|
|
603
354
|
});
|
|
604
355
|
}
|
|
605
356
|
}
|
|
606
357
|
}
|
|
607
|
-
return
|
|
358
|
+
return l;
|
|
608
359
|
}
|
|
609
|
-
function
|
|
610
|
-
e && !
|
|
360
|
+
function qt(t, e) {
|
|
361
|
+
e && !pe(e) && (e = Me({ chartConfig: e, queryObject: t }));
|
|
611
362
|
}
|
|
612
|
-
async function
|
|
613
|
-
const {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
addMissingSeries: s,
|
|
363
|
+
async function Gs(t) {
|
|
364
|
+
const { configToAlter: e, layer: s, addMissingSeries: i, updateSplitBySeries: a, chartContainer: r, queryObject: l, options: n } = t;
|
|
365
|
+
let o = e, d;
|
|
366
|
+
return o && (qt(s, o), o = await ut(o, s), i && (d = await Vt({
|
|
617
367
|
updateSplitBySeries: a,
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
queryObject:
|
|
621
|
-
|
|
622
|
-
previousConfig: l
|
|
623
|
-
} = t;
|
|
624
|
-
let y = e, d;
|
|
625
|
-
return y && (_t(i, y), y = await Fe(y, i), s && (d = await Wt({
|
|
626
|
-
updateSplitBySeries: a,
|
|
627
|
-
config: y,
|
|
628
|
-
options: c,
|
|
629
|
-
queryObject: o
|
|
630
|
-
})), (n || l && He(l, y)) && (y = Ge(y, r))), { alteredConfig: y, preFetchedQueryResponse: d };
|
|
368
|
+
config: o,
|
|
369
|
+
options: n,
|
|
370
|
+
queryObject: l
|
|
371
|
+
})), o = ke(o, r)), { alteredConfig: o, preFetchedQueryResponse: d };
|
|
631
372
|
}
|
|
632
|
-
const
|
|
633
|
-
const { xField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = k(0, i), n = Yt(i), o = $(i), c = i.series[0];
|
|
634
|
-
if (typeof e == "string" && n !== e && c && (c.x = e, Ie(i), n === r || o)) {
|
|
635
|
-
const l = L(a, e);
|
|
636
|
-
W(i, 0, l);
|
|
637
|
-
}
|
|
638
|
-
}, Yt = (t) => t.series[0].x ?? "", vs = (t) => t.hideEmptyRowsAndColumns, Bs = (t, e) => {
|
|
373
|
+
const Zs = (t) => t.hideEmptyRowsAndColumns, Js = (t, e) => {
|
|
639
374
|
t.hideEmptyRowsAndColumns = e;
|
|
640
|
-
},
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
},
|
|
644
|
-
const
|
|
645
|
-
|
|
646
|
-
},
|
|
647
|
-
const { yField: e, config:
|
|
648
|
-
if (typeof e == "string" &&
|
|
649
|
-
const
|
|
650
|
-
|
|
375
|
+
}, ei = (t, e) => {
|
|
376
|
+
const s = t.series[0];
|
|
377
|
+
s.heatRulesType = e;
|
|
378
|
+
}, ti = (t) => t.series[0].heatRulesType, si = (t, e) => {
|
|
379
|
+
const s = t.series[0];
|
|
380
|
+
s.gradientRules = e;
|
|
381
|
+
}, ii = (t) => t.series[0].gradientRules, ai = (t) => {
|
|
382
|
+
const { yField: e, config: s, layerInfo: i } = t, { layerFieldsInfo: a } = i, r = U(1, s), l = Nt(s), n = Y(s), o = s.series[0];
|
|
383
|
+
if (typeof e == "string" && l !== e && o && (o.y = e, Bt(s), l === r || n)) {
|
|
384
|
+
const d = N(a, e);
|
|
385
|
+
G(s, 1, d);
|
|
651
386
|
}
|
|
652
|
-
},
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
},
|
|
656
|
-
const
|
|
657
|
-
|
|
658
|
-
},
|
|
387
|
+
}, Nt = (t) => t.series[0].y ?? "", ri = (t, e) => {
|
|
388
|
+
const s = e.series[0];
|
|
389
|
+
s.xTemporalBinning = t;
|
|
390
|
+
}, li = (t) => t.series[0].xTemporalBinning, ni = (t, e) => {
|
|
391
|
+
const s = e.series[0];
|
|
392
|
+
s.yTemporalBinning = t;
|
|
393
|
+
}, oi = (t) => t.series[0].yTemporalBinning, wt = (t, e) => {
|
|
659
394
|
e.orderOptions ??= {};
|
|
660
|
-
const
|
|
395
|
+
const s = e.axes?.[0]?.valueFormat?.type === "category" ? F.Category : F.YValue, i = Z(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? F.Category : F.YValue, r = Z(e)[1], l = {
|
|
661
396
|
...e.orderOptions.data ?? {},
|
|
662
|
-
orderType:
|
|
397
|
+
orderType: F.MultiAxes
|
|
398
|
+
};
|
|
399
|
+
i === Q.customSort && s === F.Category && (l.orderByX = [...t]), r === Q.customSort && a === F.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
|
|
400
|
+
}, di = (t, e) => {
|
|
401
|
+
const s = e.series[0];
|
|
402
|
+
s.gridLine && (s.gridLine.width = t);
|
|
403
|
+
}, ci = (t) => t.series[0].gridLine?.width, ui = (t, e) => {
|
|
404
|
+
const s = e.series[0], i = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
405
|
+
s.gridLine && i && (s.gridLine.color = t);
|
|
406
|
+
}, yi = (t) => t.series[0].gridLine?.color, gi = (t, e) => {
|
|
407
|
+
const s = e.legend;
|
|
408
|
+
s && (s.position = t);
|
|
409
|
+
}, pi = (t) => t.legend?.position ?? Ne.Bottom, mi = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, fi = (t, e) => {
|
|
410
|
+
const s = e.series[0].query?.outStatistics?.[0];
|
|
411
|
+
s ? (s.onStatisticField = t, s.outStatisticFieldName = `${s.statisticType}_${t}`) : e.series[0].query = {
|
|
412
|
+
outStatistics: [
|
|
413
|
+
{
|
|
414
|
+
onStatisticField: t,
|
|
415
|
+
outStatisticFieldName: `${A.Count}_${t}`,
|
|
416
|
+
statisticType: A.Count
|
|
417
|
+
}
|
|
418
|
+
]
|
|
663
419
|
};
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}, Ms = (t) => t.series[0].gridLine?.width, Us = (t, e) => {
|
|
669
|
-
const i = e.series[0], s = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
670
|
-
i.gridLine && s && (i.gridLine.color = t);
|
|
671
|
-
}, Es = (t) => t.series[0].gridLine?.color, Rs = (t, e) => {
|
|
672
|
-
const i = e.legend;
|
|
673
|
-
i && (i.position = t);
|
|
674
|
-
}, $s = (t) => t.legend?.position ?? $e.Bottom, Xs = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ks = (t, e) => {
|
|
675
|
-
const i = e.series[0].query?.outStatistics?.[0];
|
|
676
|
-
i && (i.onStatisticField = t, i.outStatisticFieldName = `${i.statisticType}_${t}`);
|
|
677
|
-
}, js = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? T.Count, Ws = (t, e) => {
|
|
678
|
-
const i = e.series[0]?.query?.outStatistics?.[0];
|
|
679
|
-
i && t !== T.NoAggregation && (i.statisticType = t, i.outStatisticFieldName = `${t}_${i.onStatisticField}`);
|
|
680
|
-
}, _s = (t) => t.nullPolicy, Ys = (t, e) => {
|
|
420
|
+
}, xi = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? A.Count, Si = (t, e) => {
|
|
421
|
+
const s = e.series[0]?.query?.outStatistics?.[0];
|
|
422
|
+
s && t !== A.NoAggregation && (s.statisticType = t, s.outStatisticFieldName = `${t}_${s.onStatisticField}`);
|
|
423
|
+
}, Ti = (t) => t.nullPolicy, Fi = (t, e) => {
|
|
681
424
|
e.nullPolicy = t;
|
|
682
|
-
},
|
|
425
|
+
}, bi = (t) => t.series[0].emptyCells, hi = (t, e) => {
|
|
426
|
+
e.series[0].emptyCells = t;
|
|
427
|
+
}, Ci = (t) => t.series[0].emptyCells?.text, Bi = (t, e) => {
|
|
683
428
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
684
|
-
},
|
|
429
|
+
}, Ai = (t) => t.includeLeapDay, vi = (t, e) => {
|
|
685
430
|
e.includeLeapDay = t;
|
|
686
|
-
},
|
|
431
|
+
}, Li = (t) => t.series[0].emptyCells?.symbol, Ii = (t, e) => {
|
|
687
432
|
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
688
433
|
};
|
|
689
|
-
function
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
434
|
+
function Vi(t) {
|
|
435
|
+
return _e(t);
|
|
436
|
+
}
|
|
437
|
+
function qi(t) {
|
|
438
|
+
return t.viewType;
|
|
439
|
+
}
|
|
440
|
+
function Ni(t, e) {
|
|
441
|
+
He(e) || (e.viewType = t);
|
|
442
|
+
}
|
|
443
|
+
function wi(t) {
|
|
444
|
+
return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
|
|
445
|
+
}
|
|
446
|
+
function Oi(t, e) {
|
|
447
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? $.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
448
|
+
breaksCount: t ?? $.classBreaks.breaksCount
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
function Di(t) {
|
|
452
|
+
return t.series[0].classBreaksRules?.classificationMethod;
|
|
453
|
+
}
|
|
454
|
+
function ki(t, e) {
|
|
455
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
|
|
456
|
+
classificationMethod: t
|
|
457
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
|
|
458
|
+
}
|
|
459
|
+
function P(t) {
|
|
460
|
+
const { seriesIndex: e, xAxisField: s, aggregationType: i, config: a, layerInfo: r, commonStrings: l } = t, n = K(r?.layer).idField;
|
|
461
|
+
let o;
|
|
462
|
+
const d = a.series[e ?? 0];
|
|
463
|
+
let f = !1, c = !1, S = !1;
|
|
464
|
+
if (d === void 0) {
|
|
465
|
+
const u = a.series;
|
|
466
|
+
f = u.slice(0, e).every((m) => C(m)), c = u.slice(0, e).every((m) => B(m)), S = u.slice(0, e).every((m) => le(m));
|
|
697
467
|
} else
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
commonStrings:
|
|
468
|
+
f = C(d), c = B(d), S = le(d);
|
|
469
|
+
f ? o = Ze({
|
|
470
|
+
commonStrings: l,
|
|
701
471
|
seriesIndex: e,
|
|
702
|
-
objectIDField:
|
|
703
|
-
}) :
|
|
704
|
-
commonStrings:
|
|
472
|
+
objectIDField: n
|
|
473
|
+
}) : c ? o = Je({
|
|
474
|
+
commonStrings: l,
|
|
705
475
|
seriesIndex: e,
|
|
706
|
-
objectIDField:
|
|
707
|
-
}) :
|
|
476
|
+
objectIDField: n
|
|
477
|
+
}) : S ? o = et(l, n) : o = tt({
|
|
708
478
|
seriesIndex: e,
|
|
709
|
-
objectIDField:
|
|
710
|
-
commonStrings:
|
|
479
|
+
objectIDField: n,
|
|
480
|
+
commonStrings: l
|
|
711
481
|
});
|
|
712
|
-
const x = a.series[0]?.dataLabels,
|
|
713
|
-
...
|
|
714
|
-
x:
|
|
482
|
+
const x = a.series[0]?.dataLabels, y = {
|
|
483
|
+
...o,
|
|
484
|
+
x: s,
|
|
715
485
|
y: "",
|
|
716
486
|
dataLabels: {
|
|
717
|
-
...
|
|
718
|
-
type:
|
|
719
|
-
content: { ...
|
|
487
|
+
...o.dataLabels,
|
|
488
|
+
type: o.dataLabels?.type ?? M.Text,
|
|
489
|
+
content: { ...o.dataLabels?.content, ...x?.content, type: at.TS },
|
|
720
490
|
visible: x?.visible ?? !1
|
|
721
491
|
}
|
|
722
492
|
};
|
|
723
|
-
if (
|
|
724
|
-
groupByFieldsForStatistics: [
|
|
725
|
-
},
|
|
726
|
-
const
|
|
727
|
-
|
|
493
|
+
if (y.query = {
|
|
494
|
+
groupByFieldsForStatistics: [s]
|
|
495
|
+
}, i !== A.NoAggregation && n !== void 0) {
|
|
496
|
+
const u = `${i}_${n}_0`.toUpperCase();
|
|
497
|
+
y.y = u, y.query.outStatistics = [
|
|
728
498
|
{
|
|
729
|
-
statisticType:
|
|
730
|
-
onStatisticField:
|
|
731
|
-
outStatisticFieldName:
|
|
499
|
+
statisticType: i,
|
|
500
|
+
onStatisticField: n,
|
|
501
|
+
outStatisticFieldName: u
|
|
732
502
|
}
|
|
733
503
|
];
|
|
734
504
|
}
|
|
735
|
-
if (
|
|
736
|
-
let
|
|
737
|
-
if (a?.series?.[0] !== void 0 && (
|
|
738
|
-
let
|
|
739
|
-
|
|
740
|
-
size:
|
|
741
|
-
unit:
|
|
742
|
-
timeAggregationType:
|
|
743
|
-
trimIncompleteTimeInterval:
|
|
744
|
-
nullPolicy:
|
|
505
|
+
if (C(y) || B(y) || v(y) && a.series[0]?.binTemporalData) {
|
|
506
|
+
let u;
|
|
507
|
+
if (a?.series?.[0] !== void 0 && (u = j(a.series)), u !== q.BarAndLineNoAggregation && u !== q.BarAndLineSplitByNoAggregation) {
|
|
508
|
+
let m = Tt(a);
|
|
509
|
+
m === z.Quarter && (m = z.Month), y.temporalBinning = {
|
|
510
|
+
size: St(a),
|
|
511
|
+
unit: m,
|
|
512
|
+
timeAggregationType: Ft(a),
|
|
513
|
+
trimIncompleteTimeInterval: bt(a),
|
|
514
|
+
nullPolicy: ht(a)
|
|
745
515
|
};
|
|
746
516
|
}
|
|
747
517
|
}
|
|
748
|
-
return R(
|
|
518
|
+
return R(y);
|
|
749
519
|
}
|
|
750
|
-
function
|
|
751
|
-
const { layerFieldsInfo:
|
|
520
|
+
function be(t, e, s) {
|
|
521
|
+
const { layerFieldsInfo: i } = e, { idField: a, isTraditionalTypeOID: r } = K(e.layer), l = E(t), n = se(t), o = Ce(t), d = X(t), f = r && (n.length === 0 || n.includes(a)), c = Ge(o, s), S = f ? "" : n.map((T) => N(i ?? [], T)).join(", "), x = N(i ?? [], l), y = N(i ?? [], d), u = t.series.some((T) => v(T)), m = u ? "category" : "xAxisField", p = x;
|
|
752
522
|
let g = "";
|
|
753
|
-
if (
|
|
754
|
-
fieldName:
|
|
755
|
-
numericFields:
|
|
756
|
-
fieldList:
|
|
523
|
+
if (xe({
|
|
524
|
+
fieldName: l,
|
|
525
|
+
numericFields: n,
|
|
526
|
+
fieldList: i
|
|
757
527
|
}))
|
|
758
|
-
g =
|
|
759
|
-
aggregationType:
|
|
760
|
-
aggregationFields:
|
|
528
|
+
g = O(s.titleLabels.aggrTypeOfAggrFields, {
|
|
529
|
+
aggregationType: c,
|
|
530
|
+
aggregationFields: S
|
|
761
531
|
});
|
|
762
|
-
else if (
|
|
763
|
-
const
|
|
764
|
-
if (
|
|
765
|
-
const
|
|
766
|
-
g =
|
|
767
|
-
aggregationType:
|
|
768
|
-
[
|
|
532
|
+
else if (o === A.NoAggregation) {
|
|
533
|
+
const T = f ? a : S;
|
|
534
|
+
if (d === "") {
|
|
535
|
+
const I = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
536
|
+
g = O(s.titleLabels[I], {
|
|
537
|
+
aggregationType: T,
|
|
538
|
+
[m]: p
|
|
769
539
|
});
|
|
770
540
|
} else {
|
|
771
|
-
const
|
|
772
|
-
g =
|
|
773
|
-
aggregationType:
|
|
774
|
-
[
|
|
775
|
-
splitByField:
|
|
541
|
+
const I = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
542
|
+
g = O(s.titleLabels[I], {
|
|
543
|
+
aggregationType: T,
|
|
544
|
+
[m]: p,
|
|
545
|
+
splitByField: y
|
|
776
546
|
});
|
|
777
547
|
}
|
|
778
|
-
} else if (
|
|
779
|
-
if (
|
|
780
|
-
const
|
|
781
|
-
g =
|
|
782
|
-
aggregationType:
|
|
783
|
-
[
|
|
548
|
+
} else if (o === A.Count)
|
|
549
|
+
if (d === "") {
|
|
550
|
+
const T = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
551
|
+
g = O(s.titleLabels[T], {
|
|
552
|
+
aggregationType: c,
|
|
553
|
+
[m]: p
|
|
784
554
|
});
|
|
785
555
|
} else {
|
|
786
|
-
const
|
|
787
|
-
g =
|
|
788
|
-
aggregationType:
|
|
789
|
-
[
|
|
790
|
-
splitByField:
|
|
556
|
+
const T = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
557
|
+
g = O(s.titleLabels[T], {
|
|
558
|
+
aggregationType: c,
|
|
559
|
+
[m]: p,
|
|
560
|
+
splitByField: y
|
|
791
561
|
});
|
|
792
562
|
}
|
|
793
|
-
else if (
|
|
794
|
-
const
|
|
795
|
-
g =
|
|
796
|
-
aggregationType:
|
|
797
|
-
aggregationField:
|
|
798
|
-
[
|
|
799
|
-
splitByField:
|
|
563
|
+
else if (d !== "") {
|
|
564
|
+
const T = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
565
|
+
g = O(s.titleLabels[T], {
|
|
566
|
+
aggregationType: c,
|
|
567
|
+
aggregationField: S,
|
|
568
|
+
[m]: p,
|
|
569
|
+
splitByField: y
|
|
800
570
|
});
|
|
801
|
-
} else if (
|
|
802
|
-
const
|
|
803
|
-
g =
|
|
804
|
-
aggregationType:
|
|
805
|
-
aggregationFields:
|
|
806
|
-
[
|
|
571
|
+
} else if (n.length > 0) {
|
|
572
|
+
const T = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
573
|
+
g = O(s.titleLabels[T], {
|
|
574
|
+
aggregationType: c,
|
|
575
|
+
aggregationFields: S,
|
|
576
|
+
[m]: p
|
|
807
577
|
});
|
|
808
578
|
}
|
|
809
579
|
return g;
|
|
810
580
|
}
|
|
811
|
-
const
|
|
581
|
+
const he = (t) => ee({
|
|
812
582
|
where: t.query?.where,
|
|
813
583
|
normalize: !1,
|
|
814
584
|
escape: !1
|
|
815
|
-
}) ?? "",
|
|
585
|
+
}) ?? "", Ce = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? A.NoAggregation, X = de(
|
|
816
586
|
(t) => {
|
|
817
587
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
818
|
-
return
|
|
588
|
+
return ze(t?.series?.[0]?.query?.where) ? "" : e;
|
|
819
589
|
},
|
|
820
590
|
(t) => t?.series?.[0]?.query?.where
|
|
821
|
-
),
|
|
591
|
+
), se = de(
|
|
822
592
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
823
593
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
824
594
|
(t) => {
|
|
825
595
|
let e = [];
|
|
826
|
-
if (
|
|
827
|
-
e = t?.series.map((
|
|
828
|
-
const
|
|
829
|
-
return
|
|
596
|
+
if (X(t) === "")
|
|
597
|
+
e = t?.series.map((s) => {
|
|
598
|
+
const i = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
|
|
599
|
+
return i?.length > 0 ? i : s.y;
|
|
830
600
|
}).flat() ?? [];
|
|
831
601
|
else {
|
|
832
|
-
const
|
|
833
|
-
e =
|
|
602
|
+
const s = t?.series?.[0], i = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
|
|
603
|
+
e = i !== void 0 ? [i] : [];
|
|
834
604
|
}
|
|
835
|
-
return [...new Set(e.filter((
|
|
605
|
+
return [...new Set(e.filter((s) => s !== ""))];
|
|
836
606
|
},
|
|
837
607
|
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
838
608
|
(t) => t?.series
|
|
839
609
|
);
|
|
840
|
-
function
|
|
841
|
-
const { numericFields: e, aggregationType:
|
|
610
|
+
function Ot(t) {
|
|
611
|
+
const { numericFields: e, aggregationType: s, config: i, layerInfo: a } = t;
|
|
842
612
|
let r = !1;
|
|
843
|
-
|
|
844
|
-
const
|
|
845
|
-
return
|
|
846
|
-
})),
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
849
|
-
const
|
|
850
|
-
|
|
613
|
+
s === A.Count ? r = !0 : s === A.NoAggregation && (r = e.every((o) => {
|
|
614
|
+
const d = a.layerFieldsInfo.find((f) => f.name === o);
|
|
615
|
+
return d !== void 0 ? ae(d) : !1;
|
|
616
|
+
})), ne(i, 1, r);
|
|
617
|
+
const l = i.series.some((o) => C(o)), n = i.series.some((o) => B(o));
|
|
618
|
+
if (l || n) {
|
|
619
|
+
const o = E(i), d = a.layerFieldsInfo.find((c) => c.name === o), f = d !== void 0 && ae(d);
|
|
620
|
+
ne(i, 0, f);
|
|
851
621
|
}
|
|
852
622
|
}
|
|
853
623
|
const Z = (t) => {
|
|
854
624
|
let e;
|
|
855
|
-
if (
|
|
856
|
-
const
|
|
857
|
-
e = [
|
|
625
|
+
if (ye(t)) {
|
|
626
|
+
const s = t.orderOptions?.data?.orderByX ?? [""], i = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? F.Category : F.YValue, r = t.axes?.[1]?.valueFormat?.type === "category" ? F.Category : F.YValue;
|
|
627
|
+
e = [oe(s, a), oe(i, r)];
|
|
858
628
|
} else {
|
|
859
|
-
const
|
|
860
|
-
e = [
|
|
629
|
+
const s = t.orderOptions?.data?.orderType ?? F.Category, i = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : we.Ascending;
|
|
630
|
+
e = [ct(i, s)];
|
|
861
631
|
}
|
|
862
632
|
return e;
|
|
863
633
|
};
|
|
864
|
-
function
|
|
865
|
-
const { xAxisField: e, numericFields:
|
|
866
|
-
let
|
|
867
|
-
const
|
|
634
|
+
function Dt(t) {
|
|
635
|
+
const { xAxisField: e, numericFields: s, aggregationType: i, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: n } = r;
|
|
636
|
+
let o = !1;
|
|
637
|
+
const d = P({
|
|
868
638
|
config: a,
|
|
869
639
|
xAxisField: e,
|
|
870
|
-
aggregationType:
|
|
640
|
+
aggregationType: i,
|
|
871
641
|
layerInfo: r,
|
|
872
642
|
seriesIndex: 0,
|
|
873
|
-
commonStrings:
|
|
874
|
-
}),
|
|
643
|
+
commonStrings: l
|
|
644
|
+
}), f = te({
|
|
875
645
|
config: a,
|
|
876
646
|
xAxisField: e,
|
|
877
|
-
numericFields:
|
|
878
|
-
aggregationType:
|
|
647
|
+
numericFields: s,
|
|
648
|
+
aggregationType: i,
|
|
879
649
|
layer: r.layer,
|
|
880
|
-
fieldList:
|
|
881
|
-
}).name,
|
|
882
|
-
...
|
|
650
|
+
fieldList: n
|
|
651
|
+
}).name, c = {
|
|
652
|
+
...d,
|
|
883
653
|
id: `series_${Date.now()}`,
|
|
884
|
-
name:
|
|
885
|
-
x:
|
|
886
|
-
y
|
|
887
|
-
},
|
|
888
|
-
for (const
|
|
889
|
-
|
|
890
|
-
onStatisticField:
|
|
891
|
-
outStatisticFieldName: `${
|
|
892
|
-
statisticType:
|
|
654
|
+
name: l.axisLabels.values,
|
|
655
|
+
x: W,
|
|
656
|
+
y: f
|
|
657
|
+
}, S = [];
|
|
658
|
+
for (const y of s)
|
|
659
|
+
S.push({
|
|
660
|
+
onStatisticField: y,
|
|
661
|
+
outStatisticFieldName: `${y}_0`.toUpperCase(),
|
|
662
|
+
statisticType: i
|
|
893
663
|
});
|
|
894
|
-
|
|
895
|
-
const
|
|
896
|
-
return
|
|
664
|
+
c.query = { outStatistics: S };
|
|
665
|
+
const x = a.series[0];
|
|
666
|
+
return x !== void 0 && (c.id = x.id, a.colorMatch || (v(x) && v(c) ? c.fillSymbol = x.fillSymbol : (C(c) && C(x) || B(c) && B(x)) && (c.lineSymbol = x.lineSymbol, c.markerSymbol = x.markerSymbol), o = !0), c.id = x.id, x.name !== d.name && (c.name = x.name)), a.series.length === 1 && !a.colorMatch && (v(c) ? c.fillSymbol = a.series[0].fillSymbol : (C(c) || B(c)) && (c.lineSymbol = a.series[0].lineSymbol, c.markerSymbol = a.series[0].markerSymbol), o = !0), a.colorMatch = !o, [c];
|
|
897
667
|
}
|
|
898
|
-
function
|
|
899
|
-
const { xAxisField: e, numericFields:
|
|
900
|
-
let
|
|
901
|
-
for (let
|
|
902
|
-
const
|
|
668
|
+
function Be(t) {
|
|
669
|
+
const { xAxisField: e, numericFields: s, aggregationType: i, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: n } = r, o = K(r.layer).idField, d = [];
|
|
670
|
+
let f = !1;
|
|
671
|
+
for (let c = 0; c < s.length; c += 1) {
|
|
672
|
+
const S = P({
|
|
903
673
|
config: a,
|
|
904
674
|
xAxisField: e,
|
|
905
|
-
aggregationType:
|
|
675
|
+
aggregationType: i,
|
|
906
676
|
layerInfo: r,
|
|
907
|
-
seriesIndex:
|
|
908
|
-
commonStrings:
|
|
909
|
-
}),
|
|
677
|
+
seriesIndex: c,
|
|
678
|
+
commonStrings: l
|
|
679
|
+
}), x = te({
|
|
910
680
|
config: a,
|
|
911
681
|
xAxisField: e,
|
|
912
|
-
numericFields:
|
|
913
|
-
aggregationType:
|
|
682
|
+
numericFields: s,
|
|
683
|
+
aggregationType: i,
|
|
914
684
|
layer: r.layer,
|
|
915
|
-
numericFieldIndex:
|
|
916
|
-
fieldList:
|
|
917
|
-
}).name,
|
|
685
|
+
numericFieldIndex: c,
|
|
686
|
+
fieldList: n
|
|
687
|
+
}).name, y = s[c];
|
|
918
688
|
let u = {
|
|
919
|
-
...
|
|
689
|
+
...S,
|
|
920
690
|
query: {
|
|
921
|
-
...
|
|
691
|
+
...S.query
|
|
922
692
|
}
|
|
923
693
|
};
|
|
924
|
-
|
|
694
|
+
s && y !== o && (u = {
|
|
925
695
|
...u,
|
|
926
|
-
id:
|
|
927
|
-
name:
|
|
696
|
+
id: y,
|
|
697
|
+
name: N(n, y)
|
|
928
698
|
});
|
|
929
|
-
let
|
|
930
|
-
u.query !== void 0 && (
|
|
699
|
+
let m = y;
|
|
700
|
+
u.query !== void 0 && (i !== A.NoAggregation ? (m = x, u.query.outStatistics = [
|
|
931
701
|
{
|
|
932
|
-
...
|
|
933
|
-
onStatisticField:
|
|
934
|
-
outStatisticFieldName:
|
|
935
|
-
statisticType:
|
|
702
|
+
...S.query?.outStatistics?.[0] ?? {},
|
|
703
|
+
onStatisticField: y,
|
|
704
|
+
outStatisticFieldName: x,
|
|
705
|
+
statisticType: i
|
|
936
706
|
}
|
|
937
|
-
]) : delete u.query.outStatistics), u.y =
|
|
707
|
+
]) : delete u.query.outStatistics), u.y = m;
|
|
938
708
|
const p = a.series.find(
|
|
939
|
-
(g) => g.query?.outStatistics?.[0]?.onStatisticField ===
|
|
709
|
+
(g) => g.query?.outStatistics?.[0]?.onStatisticField === y && g.query.where === void 0
|
|
940
710
|
);
|
|
941
711
|
if (p !== void 0 && typeof p.y == "string" && p.y.trim() !== "") {
|
|
942
|
-
a.colorMatch || (
|
|
943
|
-
const g =
|
|
712
|
+
a.colorMatch || (v(u) && v(p) ? u.fillSymbol = p.fillSymbol : (C(u) && C(p) || B(u) && B(p)) && (u.lineSymbol = p.lineSymbol, u.markerSymbol = p.markerSymbol), f = !0);
|
|
713
|
+
const g = P({
|
|
944
714
|
config: a,
|
|
945
715
|
xAxisField: e,
|
|
946
|
-
aggregationType:
|
|
716
|
+
aggregationType: i,
|
|
947
717
|
layerInfo: r,
|
|
948
|
-
seriesIndex:
|
|
949
|
-
commonStrings:
|
|
718
|
+
seriesIndex: c,
|
|
719
|
+
commonStrings: l
|
|
950
720
|
});
|
|
951
721
|
u.id = p.id, p.id !== g.id && p.name !== g.name && (u.id = p.id, u.name = p.name);
|
|
952
722
|
}
|
|
953
|
-
|
|
723
|
+
d.push(u);
|
|
954
724
|
}
|
|
955
|
-
return a.series.length === 1 &&
|
|
725
|
+
return a.series.length === 1 && d.length === 1 && !a.colorMatch && (v(a.series[0]) && v(d[0]) ? d[0].fillSymbol = a.series[0].fillSymbol : (C(a.series[0]) && C(d[0]) || B(a.series[0]) && B(d[0])) && (d[0].lineSymbol = a.series[0].lineSymbol, d[0].markerSymbol = a.series[0].markerSymbol), f = !0), a.colorMatch = !f, d;
|
|
956
726
|
}
|
|
957
|
-
async function
|
|
958
|
-
const { splitByField: e, xAxisField:
|
|
727
|
+
async function kt(t) {
|
|
728
|
+
const { splitByField: e, xAxisField: s, numericFields: i, aggregationType: a, config: r, layerInfo: l, commonStrings: n } = t, { layer: o, layerFieldsInfo: d } = l, { fetchNullValues: f } = r?.series?.[0]?.query ?? {}, c = s !== W ? s : void 0, { categoriesArray: S, splitByFieldType: x, numericalField: y } = await dt({
|
|
959
729
|
config: r,
|
|
960
|
-
layer:
|
|
961
|
-
layerFieldsInfo:
|
|
962
|
-
xAxisField:
|
|
963
|
-
aggregationFields:
|
|
730
|
+
layer: o,
|
|
731
|
+
layerFieldsInfo: d,
|
|
732
|
+
xAxisField: c,
|
|
733
|
+
aggregationFields: i,
|
|
964
734
|
splitByField: e,
|
|
965
|
-
fetchNullValues:
|
|
735
|
+
fetchNullValues: f
|
|
966
736
|
});
|
|
967
|
-
let u = [],
|
|
968
|
-
if (
|
|
969
|
-
u =
|
|
970
|
-
xAxisField:
|
|
971
|
-
numericFields:
|
|
737
|
+
let u = [], m = !1;
|
|
738
|
+
if (S.length === 0) {
|
|
739
|
+
u = Be({
|
|
740
|
+
xAxisField: s,
|
|
741
|
+
numericFields: i,
|
|
972
742
|
aggregationType: a,
|
|
973
743
|
config: r,
|
|
974
|
-
layerInfo:
|
|
975
|
-
commonStrings:
|
|
744
|
+
layerInfo: l,
|
|
745
|
+
commonStrings: n
|
|
976
746
|
});
|
|
977
747
|
for (const p of u)
|
|
978
748
|
p.query && (p.query.where = `${e}=''`);
|
|
979
749
|
} else
|
|
980
|
-
for (let p = 0; p <
|
|
981
|
-
const g =
|
|
750
|
+
for (let p = 0; p < S.length; p += 1) {
|
|
751
|
+
const g = S[p], T = te({
|
|
982
752
|
config: r,
|
|
983
|
-
xAxisField:
|
|
984
|
-
numericFields:
|
|
753
|
+
xAxisField: s,
|
|
754
|
+
numericFields: i,
|
|
985
755
|
aggregationType: a,
|
|
986
|
-
layer:
|
|
756
|
+
layer: l.layer,
|
|
987
757
|
seriesIndex: p,
|
|
988
758
|
splitByField: e,
|
|
989
|
-
fieldList:
|
|
990
|
-
}).name,
|
|
759
|
+
fieldList: d
|
|
760
|
+
}).name, I = P({
|
|
991
761
|
config: r,
|
|
992
|
-
xAxisField:
|
|
762
|
+
xAxisField: s,
|
|
993
763
|
aggregationType: a,
|
|
994
|
-
layerInfo:
|
|
764
|
+
layerInfo: l,
|
|
995
765
|
seriesIndex: p,
|
|
996
|
-
commonStrings:
|
|
997
|
-
}),
|
|
766
|
+
commonStrings: n
|
|
767
|
+
}), Ae = {
|
|
998
768
|
fieldName: e,
|
|
999
769
|
fieldValueToMatch: g ?? "",
|
|
1000
|
-
subtypeInfo:
|
|
1001
|
-
fieldList:
|
|
1002
|
-
},
|
|
1003
|
-
...
|
|
1004
|
-
id:
|
|
1005
|
-
name:
|
|
1006
|
-
y:
|
|
770
|
+
subtypeInfo: ce(l.layer),
|
|
771
|
+
fieldList: l.layerFieldsInfo
|
|
772
|
+
}, ve = ue(Ae), _ = `${g}`, h = {
|
|
773
|
+
...I,
|
|
774
|
+
id: _,
|
|
775
|
+
name: ve ?? _,
|
|
776
|
+
y: T,
|
|
1007
777
|
query: {
|
|
1008
|
-
...
|
|
1009
|
-
where: `${e}=${
|
|
1010
|
-
outStatistics: a !==
|
|
778
|
+
...I.query,
|
|
779
|
+
where: `${e}=${x === ge.String && g !== null ? `'${g}'` : g}`,
|
|
780
|
+
outStatistics: a !== A.NoAggregation ? [
|
|
1011
781
|
{
|
|
1012
|
-
...
|
|
1013
|
-
onStatisticField:
|
|
1014
|
-
outStatisticFieldName:
|
|
782
|
+
...I.query?.outStatistics?.[0] ?? {},
|
|
783
|
+
onStatisticField: y,
|
|
784
|
+
outStatisticFieldName: T,
|
|
1015
785
|
statisticType: a
|
|
1016
786
|
}
|
|
1017
787
|
] : void 0
|
|
1018
788
|
}
|
|
1019
789
|
};
|
|
1020
|
-
a ===
|
|
1021
|
-
const
|
|
1022
|
-
(
|
|
790
|
+
a === A.NoAggregation && (h.query !== void 0 && (delete h.query.outStatistics, delete h.query.groupByFieldsForStatistics), h.y = y);
|
|
791
|
+
const V = r.series.find(
|
|
792
|
+
(Le) => String(he(Le)).trim().replace(/'/gu, "") === _
|
|
1023
793
|
);
|
|
1024
|
-
|
|
794
|
+
V !== void 0 && (r.colorMatch || (v(h) && v(V) ? h.fillSymbol = V.fillSymbol : (C(h) && C(V) || B(h) && B(V)) && (h.lineSymbol = V.lineSymbol, h.markerSymbol = V.markerSymbol), m = !0), h.id = V.id, h.name = V.name), u.push(h);
|
|
1025
795
|
}
|
|
1026
|
-
return r.colorMatch = !
|
|
796
|
+
return r.colorMatch = !m, u;
|
|
1027
797
|
}
|
|
1028
|
-
const
|
|
1029
|
-
const { xAxisField: e, splitByField:
|
|
1030
|
-
let
|
|
1031
|
-
const u = r.series.some((g) =>
|
|
1032
|
-
if (
|
|
1033
|
-
const g =
|
|
1034
|
-
!g.includes(
|
|
798
|
+
const Mi = async (t) => {
|
|
799
|
+
const { xAxisField: e, splitByField: s, numericFields: i, aggregationType: a, config: r, layerInfo: l, commonStrings: n } = t, { layerFieldsInfo: o } = l ?? {}, d = Fe(r), f = E(r), c = Mt(r, l, n), S = Pt(r, l, n), x = Rt(r, l);
|
|
800
|
+
let y = me(r);
|
|
801
|
+
const u = r.series.some((g) => v(g)), m = rt(r.series), p = lt(r.series);
|
|
802
|
+
if (o !== void 0) {
|
|
803
|
+
const g = Qe(o);
|
|
804
|
+
!g.includes(f) && g.includes(e) ? y = st() : g.includes(f) && !g.includes(e) && (u ? y = re() : y = it()), o.find((I) => I.name === e)?.type === ge.String && (y = re()), y !== void 0 && ot(r, n, y);
|
|
1035
805
|
}
|
|
1036
|
-
if (
|
|
1037
|
-
|
|
806
|
+
if (d === 0 && (r.series = [
|
|
807
|
+
P({ config: r, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
|
|
1038
808
|
]), r.series.forEach((g) => {
|
|
1039
809
|
g.x = e, g.query !== void 0 && (g.query.groupByFieldsForStatistics = [e]);
|
|
1040
|
-
}),
|
|
810
|
+
}), s === "" || i.length > 1 ? xe({
|
|
1041
811
|
fieldName: e,
|
|
1042
|
-
numericFields:
|
|
1043
|
-
fieldList:
|
|
1044
|
-
}) ? r.series =
|
|
812
|
+
numericFields: i,
|
|
813
|
+
fieldList: o
|
|
814
|
+
}) ? r.series = Dt({
|
|
1045
815
|
config: r,
|
|
1046
|
-
layerInfo:
|
|
816
|
+
layerInfo: l,
|
|
1047
817
|
xAxisField: e,
|
|
1048
|
-
numericFields:
|
|
818
|
+
numericFields: i,
|
|
1049
819
|
aggregationType: a,
|
|
1050
|
-
commonStrings:
|
|
1051
|
-
}) : r.series =
|
|
820
|
+
commonStrings: n
|
|
821
|
+
}) : r.series = Be({
|
|
1052
822
|
config: r,
|
|
1053
|
-
layerInfo:
|
|
823
|
+
layerInfo: l,
|
|
1054
824
|
xAxisField: e,
|
|
1055
|
-
numericFields:
|
|
825
|
+
numericFields: i,
|
|
1056
826
|
aggregationType: a,
|
|
1057
|
-
commonStrings:
|
|
1058
|
-
}) : (await Promise.resolve(), r.series = await
|
|
827
|
+
commonStrings: n
|
|
828
|
+
}) : (await Promise.resolve(), r.series = await kt({
|
|
1059
829
|
config: r,
|
|
1060
|
-
layerInfo:
|
|
1061
|
-
splitByField:
|
|
830
|
+
layerInfo: l,
|
|
831
|
+
splitByField: s,
|
|
1062
832
|
xAxisField: e,
|
|
1063
|
-
numericFields:
|
|
833
|
+
numericFields: i,
|
|
1064
834
|
aggregationType: a,
|
|
1065
|
-
commonStrings:
|
|
1066
|
-
})),
|
|
1067
|
-
const g =
|
|
1068
|
-
|
|
835
|
+
commonStrings: n
|
|
836
|
+
})), x) {
|
|
837
|
+
const g = N(o, e);
|
|
838
|
+
G(r, 0, g);
|
|
1069
839
|
}
|
|
1070
|
-
if (
|
|
1071
|
-
const g =
|
|
840
|
+
if (S) {
|
|
841
|
+
const g = fe({
|
|
1072
842
|
config: r,
|
|
1073
|
-
layerInfo:
|
|
1074
|
-
commonStrings:
|
|
1075
|
-
numericFields:
|
|
843
|
+
layerInfo: l,
|
|
844
|
+
commonStrings: n,
|
|
845
|
+
numericFields: i,
|
|
1076
846
|
aggregationType: a
|
|
1077
847
|
});
|
|
1078
|
-
|
|
848
|
+
G(r, 1, g);
|
|
1079
849
|
}
|
|
1080
|
-
if (r.title &&
|
|
1081
|
-
|
|
1082
|
-
const g =
|
|
1083
|
-
|
|
850
|
+
if (r.title && c && (r.title.content.text = be(r, l, n)), b({ config: r, value: null, axisIndex: 1, isMax: !1 }), b({ config: r, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: i, aggregationType: a, config: r, layerInfo: l }), m || p) {
|
|
851
|
+
b({ config: r, value: null, axisIndex: 0, isMax: !1 }), b({ config: r, value: null, axisIndex: 0, isMax: !0 }), Te(0, r);
|
|
852
|
+
const g = y?.type === M.DateAxisFormat ? H.Null : H.Interpolate;
|
|
853
|
+
Ct(g, r);
|
|
1084
854
|
}
|
|
1085
|
-
},
|
|
1086
|
-
const { config: e, seriesIndex:
|
|
1087
|
-
let
|
|
1088
|
-
if (
|
|
1089
|
-
|
|
1090
|
-
else if (
|
|
1091
|
-
const
|
|
1092
|
-
|
|
855
|
+
}, Pi = (t) => {
|
|
856
|
+
const { config: e, seriesIndex: s, layerInfo: i, commonStrings: a } = t, r = e.series?.[s], l = X(e);
|
|
857
|
+
let n;
|
|
858
|
+
if (j(e.series) === q.BarAndLineFromFields)
|
|
859
|
+
n = a.axisLabels.values;
|
|
860
|
+
else if (Ve(l)) {
|
|
861
|
+
const d = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
862
|
+
d !== void 0 && d !== K(i.layer).idField && (n = N(i.layerFieldsInfo, d));
|
|
1093
863
|
} else {
|
|
1094
|
-
const
|
|
1095
|
-
fieldName:
|
|
1096
|
-
fieldValueToMatch:
|
|
1097
|
-
subtypeInfo:
|
|
1098
|
-
fieldList:
|
|
864
|
+
const d = String(he(r)).trim().replace(/'/gu, ""), f = {
|
|
865
|
+
fieldName: X(e),
|
|
866
|
+
fieldValueToMatch: d ?? "",
|
|
867
|
+
subtypeInfo: ce(i.layer),
|
|
868
|
+
fieldList: i.layerFieldsInfo
|
|
1099
869
|
};
|
|
1100
|
-
|
|
870
|
+
n = ue(f) ?? d;
|
|
1101
871
|
}
|
|
1102
|
-
return
|
|
1103
|
-
},
|
|
1104
|
-
if (
|
|
1105
|
-
|
|
872
|
+
return n ?? r.id;
|
|
873
|
+
}, Ri = (t, e) => {
|
|
874
|
+
if (ye(e))
|
|
875
|
+
wt(t, e);
|
|
1106
876
|
else {
|
|
1107
877
|
e.orderOptions ??= {};
|
|
1108
|
-
const
|
|
1109
|
-
Z(e)[0] ===
|
|
1110
|
-
orderType:
|
|
878
|
+
const s = e.orderOptions?.data?.orderType;
|
|
879
|
+
Z(e)[0] === Q.customSort && s === F.Category && (e.orderOptions.data = {
|
|
880
|
+
orderType: F.Category,
|
|
1111
881
|
orderBy: [...t]
|
|
1112
882
|
});
|
|
1113
883
|
}
|
|
1114
|
-
},
|
|
1115
|
-
const
|
|
1116
|
-
let
|
|
1117
|
-
return
|
|
884
|
+
}, Ei = async (t, e) => {
|
|
885
|
+
const s = E(t), i = me(t)?.type, a = se(t), r = j(t.series);
|
|
886
|
+
let l = [];
|
|
887
|
+
return i === M.CategoryAxisFormat && (r === q.BarAndLineFromFields || s === W ? l = a.map((n) => N(e?.layerFieldsInfo, n)) : s.trim() !== "" && s !== W && e !== void 0 && (l = await nt({
|
|
1118
888
|
layerInfo: e,
|
|
1119
889
|
config: t,
|
|
1120
|
-
category:
|
|
1121
|
-
}))),
|
|
890
|
+
category: s
|
|
891
|
+
}))), l;
|
|
1122
892
|
};
|
|
1123
|
-
function
|
|
1124
|
-
const
|
|
1125
|
-
return
|
|
893
|
+
function Mt(t, e, s) {
|
|
894
|
+
const i = be(t, e, s), a = Se(t), r = Y(t);
|
|
895
|
+
return i === a || r;
|
|
1126
896
|
}
|
|
1127
|
-
function
|
|
1128
|
-
const
|
|
897
|
+
function Pt(t, e, s) {
|
|
898
|
+
const i = fe({
|
|
1129
899
|
config: t,
|
|
1130
900
|
layerInfo: e,
|
|
1131
|
-
commonStrings:
|
|
1132
|
-
numericFields:
|
|
1133
|
-
aggregationType:
|
|
1134
|
-
}), a =
|
|
1135
|
-
return
|
|
901
|
+
commonStrings: s,
|
|
902
|
+
numericFields: se(t),
|
|
903
|
+
aggregationType: Ce(t)
|
|
904
|
+
}), a = U(1, t), r = Y(t);
|
|
905
|
+
return i === a || r;
|
|
1136
906
|
}
|
|
1137
|
-
function
|
|
1138
|
-
const
|
|
1139
|
-
return
|
|
907
|
+
function Rt(t, e) {
|
|
908
|
+
const s = N(e.layerFieldsInfo, E(t)), i = U(0, t), a = Y(t);
|
|
909
|
+
return s === i || a;
|
|
1140
910
|
}
|
|
1141
|
-
function
|
|
911
|
+
function $i(t) {
|
|
1142
912
|
return t.series[0]?.binTemporalData ?? !1;
|
|
1143
913
|
}
|
|
1144
|
-
function
|
|
1145
|
-
e?.series.forEach((
|
|
1146
|
-
(
|
|
1147
|
-
unit:
|
|
914
|
+
function Wi(t, e) {
|
|
915
|
+
e?.series.forEach((s) => {
|
|
916
|
+
(s?.type === M.BarSeries || s?.type === M.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
|
|
917
|
+
unit: z.Day,
|
|
1148
918
|
size: 0,
|
|
1149
|
-
timeAggregationType:
|
|
919
|
+
timeAggregationType: Oe.Start,
|
|
1150
920
|
trimIncompleteTimeInterval: !0,
|
|
1151
|
-
nullPolicy:
|
|
1152
|
-
} : delete
|
|
921
|
+
nullPolicy: H.Null
|
|
922
|
+
} : delete s.temporalBinning);
|
|
1153
923
|
});
|
|
1154
924
|
}
|
|
1155
925
|
export {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
Lt as m,
|
|
1255
|
-
Oe as n,
|
|
1256
|
-
_ as o,
|
|
1257
|
-
ae as p,
|
|
1258
|
-
Zs as q,
|
|
1259
|
-
Ne as r,
|
|
1260
|
-
F as s,
|
|
1261
|
-
Yt as t,
|
|
1262
|
-
W as u,
|
|
1263
|
-
As as v,
|
|
1264
|
-
Kt as w,
|
|
1265
|
-
Vs as x,
|
|
1266
|
-
ws as y,
|
|
1267
|
-
Os as z
|
|
926
|
+
ft as $,
|
|
927
|
+
Zs as A,
|
|
928
|
+
Js as B,
|
|
929
|
+
ci as C,
|
|
930
|
+
di as D,
|
|
931
|
+
yi as E,
|
|
932
|
+
ui as F,
|
|
933
|
+
ti as G,
|
|
934
|
+
ei as H,
|
|
935
|
+
ii as I,
|
|
936
|
+
si as J,
|
|
937
|
+
mi as K,
|
|
938
|
+
fi as L,
|
|
939
|
+
xi as M,
|
|
940
|
+
Si as N,
|
|
941
|
+
pi as O,
|
|
942
|
+
gi as P,
|
|
943
|
+
Ti as Q,
|
|
944
|
+
Fi as R,
|
|
945
|
+
bi as S,
|
|
946
|
+
hi as T,
|
|
947
|
+
Ci as U,
|
|
948
|
+
Bi as V,
|
|
949
|
+
Ai as W,
|
|
950
|
+
vi as X,
|
|
951
|
+
Li as Y,
|
|
952
|
+
Ii as Z,
|
|
953
|
+
xt as _,
|
|
954
|
+
U as a,
|
|
955
|
+
Us as a0,
|
|
956
|
+
Ws as a1,
|
|
957
|
+
Bs as a2,
|
|
958
|
+
Ls as a3,
|
|
959
|
+
Is as a4,
|
|
960
|
+
Vs as a5,
|
|
961
|
+
qs as a6,
|
|
962
|
+
fs as a7,
|
|
963
|
+
xs as a8,
|
|
964
|
+
Ss as a9,
|
|
965
|
+
Es as aA,
|
|
966
|
+
$s as aB,
|
|
967
|
+
Gs as aC,
|
|
968
|
+
Qs as aD,
|
|
969
|
+
zs as aE,
|
|
970
|
+
_s as aF,
|
|
971
|
+
Hs as aG,
|
|
972
|
+
Bt as aH,
|
|
973
|
+
Ts as aa,
|
|
974
|
+
Fs as ab,
|
|
975
|
+
bs as ac,
|
|
976
|
+
St as ad,
|
|
977
|
+
Te as ae,
|
|
978
|
+
Tt as af,
|
|
979
|
+
Xs as ag,
|
|
980
|
+
Ft as ah,
|
|
981
|
+
js as ai,
|
|
982
|
+
bt as aj,
|
|
983
|
+
Ys as ak,
|
|
984
|
+
ht as al,
|
|
985
|
+
Ct as am,
|
|
986
|
+
Ks as an,
|
|
987
|
+
hs as ao,
|
|
988
|
+
Cs as ap,
|
|
989
|
+
Ps as aq,
|
|
990
|
+
As as ar,
|
|
991
|
+
vs as as,
|
|
992
|
+
Ns as at,
|
|
993
|
+
ws as au,
|
|
994
|
+
Os as av,
|
|
995
|
+
Ds as aw,
|
|
996
|
+
ks as ax,
|
|
997
|
+
Ms as ay,
|
|
998
|
+
Rs as az,
|
|
999
|
+
Pi as b,
|
|
1000
|
+
Z as c,
|
|
1001
|
+
Ei as d,
|
|
1002
|
+
$i as e,
|
|
1003
|
+
Wi as f,
|
|
1004
|
+
Se as g,
|
|
1005
|
+
Ce as h,
|
|
1006
|
+
X as i,
|
|
1007
|
+
se as j,
|
|
1008
|
+
Mi as k,
|
|
1009
|
+
be as l,
|
|
1010
|
+
Vi as m,
|
|
1011
|
+
Nt as n,
|
|
1012
|
+
ai as o,
|
|
1013
|
+
qi as p,
|
|
1014
|
+
Ni as q,
|
|
1015
|
+
li as r,
|
|
1016
|
+
Ri as s,
|
|
1017
|
+
ri as t,
|
|
1018
|
+
oi as u,
|
|
1019
|
+
ni as v,
|
|
1020
|
+
wi as w,
|
|
1021
|
+
Oi as x,
|
|
1022
|
+
Di as y,
|
|
1023
|
+
ki as z
|
|
1268
1024
|
};
|