@arcgis/charts-components 5.0.0-next.89 → 5.0.0-next.90
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/{S5TMEBYP.js → 23765TIC.js} +2 -2
- package/dist/cdn/{JSOC3TXS.js → 257TCDZ6.js} +2 -2
- package/dist/cdn/{JHX7QEAJ.js → 2EPTKTTD.js} +2 -2
- package/dist/cdn/{RCLJDD6Q.js → 2JRE7VAX.js} +2 -2
- package/dist/cdn/2RFUINHU.js +4 -0
- package/dist/cdn/{ESNRZNVW.js → 362QSPV7.js} +2 -2
- package/dist/cdn/{OHZCCJJL.js → 3JPMYV6Q.js} +2 -2
- package/dist/cdn/{YU76SN7B.js → 3JV7CYG2.js} +2 -2
- package/dist/cdn/{HTGNBOLE.js → 3KOVYSRC.js} +2 -2
- package/dist/cdn/{HSSQ7BT6.js → 3WRAYY6S.js} +2 -2
- package/dist/cdn/{7NLZY2NB.js → 47QVWE7R.js} +2 -2
- package/dist/cdn/{JOXHQXSY.js → 4E756YIM.js} +2 -2
- package/dist/cdn/{3RVAM4I2.js → 4FSAXGDC.js} +2 -2
- package/dist/cdn/4JPDVGJW.js +4 -0
- package/dist/cdn/4LGHBCNI.js +4 -0
- package/dist/cdn/{D3CMD5FZ.js → 4TPYRUAT.js} +2 -2
- package/dist/cdn/{Y5NAVZXD.js → 4UXTR44P.js} +2 -2
- package/dist/cdn/{EHJ2UZ63.js → 4V5THG4A.js} +2 -2
- package/dist/cdn/{M3PT5WZ2.js → 562WZXUL.js} +2 -2
- package/dist/cdn/{UBJH35NR.js → 57OH7NFX.js} +2 -2
- package/dist/cdn/{3KREHQJZ.js → 5BZFS5ZE.js} +2 -2
- package/dist/cdn/5MIYEBXL.js +4 -0
- package/dist/cdn/{DYMUHXPX.js → 5QSEX72G.js} +2 -2
- package/dist/cdn/{5B73ODNL.js → 6ETMGS4C.js} +2 -2
- package/dist/cdn/{2LO3SPLJ.js → 6HR5THOC.js} +2 -2
- package/dist/cdn/{PZDMLIZH.js → 6IQP4YZ4.js} +7 -7
- package/dist/cdn/{3EIFLW5E.js → 6JOWPFI5.js} +2 -2
- package/dist/cdn/{VLXNSBH4.js → 6TRFXHB5.js} +2 -2
- package/dist/cdn/{S3CDMQEV.js → 7D4WUNGP.js} +2 -2
- package/dist/cdn/{QRCHWXWO.js → 7DNTKS35.js} +2 -2
- package/dist/cdn/{M2GXYB47.js → 7G62OKWM.js} +2 -2
- package/dist/cdn/{3RCQCCYR.js → A6NMN4CZ.js} +2 -2
- package/dist/cdn/{52YRLS2X.js → AM2KDKQS.js} +2 -2
- package/dist/cdn/{ITHHZQXT.js → ANE6SY3Y.js} +2 -2
- package/dist/cdn/{QCSGTHQR.js → AP2DUFEL.js} +2 -2
- package/dist/cdn/{JAMHYW6G.js → B2JYCH4X.js} +2 -2
- package/dist/cdn/BJTSHKJM.js +4 -0
- package/dist/cdn/{VTDOCN42.js → BLRYFQUU.js} +2 -2
- package/dist/cdn/{754FNOEV.js → BROG4MXL.js} +2 -2
- package/dist/cdn/BZMJVCNP.js +4 -0
- package/dist/cdn/{QZPWNOWZ.js → CD7ARQPS.js} +2 -2
- package/dist/cdn/{WTH4SVJ4.js → CO4J6YGP.js} +2 -2
- package/dist/cdn/{TBX2JXYI.js → CY7YWUJH.js} +2 -2
- package/dist/cdn/{LFWCDACG.js → DP2KBATF.js} +2 -2
- package/dist/cdn/DU3PAYQH.js +4 -0
- package/dist/cdn/{24CB5HJI.js → DXYEVOKV.js} +2 -2
- package/dist/cdn/{7ULBDN3D.js → E2GH3HH5.js} +2 -2
- package/dist/cdn/{BNSID2QB.js → EA4PHKM5.js} +2 -2
- package/dist/cdn/{3CG3PDD7.js → EE44YUBS.js} +2 -2
- package/dist/cdn/{3XP7DSY2.js → EIZ5OOQT.js} +2 -2
- package/dist/cdn/{L5AECO66.js → ELUYRJ2S.js} +2 -2
- package/dist/cdn/{3LTH4EH5.js → ERDUVXZS.js} +2 -2
- package/dist/cdn/{D6RZOSZZ.js → EW7EZU76.js} +2 -2
- package/dist/cdn/EYVK7DSP.js +6 -0
- package/dist/cdn/{QHMQJ4WY.js → EZAM645I.js} +2 -2
- package/dist/cdn/F5AUI7D6.js +4 -0
- package/dist/cdn/{PFZKK5AT.js → F6T7YJQ5.js} +2 -2
- package/dist/cdn/{G45BZ7CP.js → FCMOK7MS.js} +2 -2
- package/dist/cdn/{SXN2M735.js → FOM4PUXQ.js} +2 -2
- package/dist/cdn/{RZQSJ7UE.js → FQJZHLNT.js} +2 -2
- package/dist/cdn/{TPCM6JAV.js → GCWUWT7W.js} +2 -2
- package/dist/cdn/{W2R66CJX.js → GLC6RIAQ.js} +2 -2
- package/dist/cdn/{ZP5VIMD6.js → GN765KCZ.js} +2 -2
- package/dist/cdn/{WW5CGU7R.js → GZZQMAFJ.js} +2 -2
- package/dist/cdn/{7PAARU72.js → H5UXWSZD.js} +2 -2
- package/dist/cdn/{EUMXBJUK.js → HEH7FFYU.js} +2 -2
- package/dist/cdn/HMSXLO4U.js +4 -0
- package/dist/cdn/{AFYMGRYB.js → HYF4YDXV.js} +1 -1
- package/dist/cdn/{LWY4RY4Q.js → HZPMVUW3.js} +2 -2
- package/dist/cdn/{52OIVTUJ.js → IDJAOLEL.js} +2 -2
- package/dist/cdn/{3LN7WPHP.js → IFEBXN3L.js} +2 -2
- package/dist/cdn/{SCWKLBSP.js → IHMPF4N7.js} +2 -2
- package/dist/cdn/{VLCJRD56.js → IIOYOLV6.js} +2 -2
- package/dist/cdn/{QPOBNEUO.js → ILASY3QH.js} +2 -2
- package/dist/cdn/{AJ2VHTBF.js → IR75JEJ7.js} +2 -2
- package/dist/cdn/{JEFWXZAI.js → IVACYQIS.js} +2 -2
- package/dist/cdn/{SSZQEZOB.js → IXAEJNQA.js} +2 -2
- package/dist/cdn/{Q4DA6K4Z.js → JC36KDRB.js} +2 -2
- package/dist/cdn/{C2RP4HWG.js → JF5M6H6J.js} +2 -2
- package/dist/cdn/{OBRWPKW7.js → JGFWGNA3.js} +2 -2
- package/dist/cdn/{D72W3P23.js → JNAJTBVB.js} +2 -2
- package/dist/cdn/{DKRETPXT.js → JO55YZ2V.js} +2 -2
- package/dist/cdn/{26Y67K7N.js → JOHDMLMB.js} +2 -2
- package/dist/cdn/{CI4Q5WTV.js → K4SI5J3H.js} +1 -1
- package/dist/cdn/{6RKK7QJL.js → K6XGHJWF.js} +2 -2
- package/dist/cdn/{RFBV2Q6G.js → KPU4UIVH.js} +2 -2
- package/dist/cdn/{RHE4NYXD.js → KS2DEPBU.js} +2 -2
- package/dist/cdn/{5E7RK4WZ.js → KVKDNI6M.js} +2 -2
- package/dist/cdn/{FCOH5NVB.js → KWL7GU4O.js} +2 -2
- package/dist/cdn/KY7HZ5DK.js +4 -0
- package/dist/cdn/LFQB45AW.js +4 -0
- package/dist/cdn/{RNAVPXQV.js → LHLTXQQF.js} +1 -1
- package/dist/cdn/{6YDR4YHJ.js → LQL73OL7.js} +2 -2
- package/dist/cdn/{EXP64ASF.js → LUX45LEO.js} +2 -2
- package/dist/cdn/{JVNMVXGR.js → M3SECFDO.js} +2 -2
- package/dist/cdn/M4YTA2V3.js +4 -0
- package/dist/cdn/{ZMPZDC4W.js → MADPC4X6.js} +2 -2
- package/dist/cdn/{D62QZXU2.js → MGAYP4HG.js} +2 -2
- package/dist/cdn/{ATSLOOEO.js → MSMVXKXG.js} +2 -2
- package/dist/cdn/{EJG5VR6A.js → MTD3LRXG.js} +2 -2
- package/dist/cdn/{E5GRHDPV.js → MWGMB2AG.js} +2 -2
- package/dist/cdn/NQ644EGP.js +4 -0
- package/dist/cdn/{CXZUVPJ3.js → NQEBQY6B.js} +2 -2
- package/dist/cdn/{WT6UCBDJ.js → NZEGEBOS.js} +2 -2
- package/dist/cdn/{FZDVH2XF.js → ODAF3EL7.js} +1 -1
- package/dist/cdn/{TBGBWSA7.js → OLF65AJF.js} +2 -2
- package/dist/cdn/{G6DH6HDY.js → OTLEUN7R.js} +2 -2
- package/dist/cdn/{Z3C5I7MU.js → OVKVQG7B.js} +2 -2
- package/dist/cdn/{QLRIZYE6.js → P6OGWM6N.js} +2 -2
- package/dist/cdn/{NXTOYXIG.js → PB4TH7I7.js} +2 -2
- package/dist/cdn/{XKIPWSRD.js → PEGY3MOM.js} +2 -2
- package/dist/cdn/PJIOOAXF.js +4 -0
- package/dist/cdn/{MO4DCWPC.js → PL7UI2U2.js} +2 -2
- package/dist/cdn/{DIRVMRX5.js → PMLZTGGH.js} +2 -2
- package/dist/cdn/{TOCR2SLY.js → PNKL3ZRJ.js} +2 -2
- package/dist/cdn/{JLMDRYWA.js → Q23HJHXG.js} +2 -2
- package/dist/cdn/{4LURDMPG.js → QCOYQAJ4.js} +2 -2
- package/dist/cdn/{XGNUEXQ2.js → QHVXMPBV.js} +1 -1
- package/dist/cdn/{YKGPPPKC.js → QIRM2EFP.js} +2 -2
- package/dist/cdn/{TPWC66I3.js → QLUODWJ5.js} +2 -2
- package/dist/cdn/{RKOYT7SP.js → QTMNAG4U.js} +2 -2
- package/dist/cdn/{57TMPKZT.js → R3R27RSX.js} +2 -2
- package/dist/cdn/{KOAQMDIP.js → R7TBD6FD.js} +2 -2
- package/dist/cdn/{AOS6LXIH.js → RVLS4QSH.js} +2 -2
- package/dist/cdn/{CNSBS2XB.js → S3BLJFUS.js} +2 -2
- package/dist/cdn/{PEKLPIB4.js → SANS4RQ6.js} +2 -2
- package/dist/cdn/{OXIOXPML.js → SAZBAEXR.js} +2 -2
- package/dist/cdn/{NCBG6X62.js → SCGS54OI.js} +2 -2
- package/dist/cdn/{XCG2R5CJ.js → SS5FBHBV.js} +2 -2
- package/dist/cdn/{S5NW53R3.js → SWSYNAU4.js} +2 -2
- package/dist/cdn/{ETY4UW5B.js → SXYICABJ.js} +2 -2
- package/dist/cdn/{RQ7XHG3I.js → T577WQAR.js} +2 -2
- package/dist/cdn/{FCPZ66E3.js → TAFBXDTK.js} +2 -2
- package/dist/cdn/{J6MPR7B6.js → TAWAXKLI.js} +2 -2
- package/dist/cdn/{FRPTXIJJ.js → TEVFSQP3.js} +2 -2
- package/dist/cdn/{BMTM52MS.js → TFOL3L6W.js} +2 -2
- package/dist/cdn/{65DRX55E.js → TPQH2R2Y.js} +2 -2
- package/dist/cdn/{FVQJZVH7.js → TUR4BDNH.js} +2 -2
- package/dist/cdn/{Y45KZYDH.js → UGLX3RXV.js} +2 -2
- package/dist/cdn/{OMKHC26V.js → UGTB232K.js} +2 -2
- package/dist/cdn/{G62YCASO.js → UMO5SOVW.js} +2 -2
- package/dist/cdn/{UUO62QSX.js → UQGOJGFW.js} +2 -2
- package/dist/cdn/{N7V573Y4.js → UVFSLVZG.js} +2 -2
- package/dist/cdn/{6T7JJWGH.js → V3IOBOZR.js} +1 -1
- package/dist/cdn/{CUY3Y7MX.js → V4XWL5CS.js} +2 -2
- package/dist/cdn/{ALURV5DZ.js → V6F6EU3M.js} +2 -2
- package/dist/cdn/{DGIVZTKF.js → VHRHF6AW.js} +1 -1
- package/dist/cdn/{PECFPKUN.js → VUPINF37.js} +2 -2
- package/dist/cdn/{HTZEAE3M.js → VWV7MYWE.js} +2 -2
- package/dist/cdn/{ZNQCN6YP.js → W7CEAICR.js} +2 -2
- package/dist/cdn/{XFPIW4WB.js → W7WRCLWM.js} +2 -2
- package/dist/cdn/{V4SIQTSL.js → WL56JHWO.js} +2 -2
- package/dist/cdn/{42QB7JTL.js → WQGFCXD7.js} +2 -2
- package/dist/cdn/WUESNX5B.js +4 -0
- package/dist/cdn/{WQNN5VP6.js → WXMEAD7U.js} +2 -2
- package/dist/cdn/{ZOJGY4UO.js → XIIE5V2W.js} +2 -2
- package/dist/cdn/{HERC5JRL.js → XMMRPUMM.js} +2 -2
- package/dist/cdn/{6W7QLRM7.js → XNLYODQR.js} +2 -2
- package/dist/cdn/XPK2ZWCS.js +4 -0
- package/dist/cdn/{5KGHSUOR.js → XRSJR3RL.js} +2 -2
- package/dist/cdn/{SWZ626ED.js → XWEN7SKX.js} +2 -2
- package/dist/cdn/{INL6UXIX.js → Y6KSJ5H3.js} +2 -2
- package/dist/cdn/{XWLXWZ4C.js → YBCH7QZE.js} +2 -2
- package/dist/cdn/{HJPNWD6F.js → YGZHI6R2.js} +2 -2
- package/dist/cdn/{7RRXY3UK.js → YNA4L65F.js} +2 -2
- package/dist/cdn/{OZAKQJSB.js → YP24O2N7.js} +2 -2
- package/dist/cdn/{27DGP7FJ.js → YWF4GXHZ.js} +2 -2
- package/dist/cdn/{S76DSPGM.js → YZQMTYWN.js} +2 -2
- package/dist/cdn/Z23EZJR2.js +26 -0
- package/dist/cdn/{PZOZSM2Q.js → Z2BF3TPF.js} +2 -2
- package/dist/cdn/{L4ZU5IB7.js → ZJUXJANP.js} +2 -2
- package/dist/cdn/ZSNP5EUD.js +4 -0
- package/dist/cdn/{JVQ3YXWZ.js → ZSVPA2KK.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chart-rendering/common/config-utils/index.d.ts +12 -21
- package/dist/chart-rendering/common/data/utils/summarize-data/index.d.ts +35 -2
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +9 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +56 -52
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +49 -49
- package/dist/chunks/box-plot-model.js +166 -200
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +142 -207
- package/dist/chunks/common.js +23 -18
- package/dist/chunks/data.js +86 -59
- package/dist/chunks/default.js +1 -1
- package/dist/chunks/gauge-model.js +180 -159
- package/dist/chunks/heat-chart-model.js +169 -180
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/histogram-model.js +94 -77
- package/dist/chunks/index.js +2713 -2608
- package/dist/chunks/index2.js +60 -60
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/line-chart-model.js +45 -45
- package/dist/chunks/model-with-multi-axes.js +1473 -811
- package/dist/chunks/pie-chart-data.js +79 -79
- package/dist/chunks/pie-chart-model.js +306 -294
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +42 -41
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +105 -93
- package/dist/chunks/serial-chart-data.js +812 -527
- package/dist/chunks/serial-chart-model.js +144 -293
- package/dist/chunks/series-types.js +7 -6
- package/dist/chunks/sk_SK.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/web-component-utils.js +13 -13
- package/dist/components/arcgis-chart/customElement.js +9 -9
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/docs/api.json +3 -3
- package/dist/docs/docs.json +5 -5
- package/dist/docs/web-types.json +2 -2
- package/dist/index.js +43 -42
- package/dist/json-schema/index.d.ts +63 -15
- package/dist/loader.js +1 -1
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +1 -1
- package/dist/model/chart-model/chart-model.d.ts +30 -22
- package/dist/model/decorators/model-setter.d.ts +7 -0
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +39 -12
- package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +6 -0
- package/dist/model/interfaces/common.d.ts +6 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +5 -5
- package/dist/model/serial-chart-model/utils/serial-chart-data.d.ts +2 -2
- package/dist/model/shared/data.d.ts +19 -4
- package/dist/model.js +26 -25
- package/dist/spec/chart-object-literals.d.ts +29 -4
- package/dist/spec/web-chart.d.ts +15 -4
- package/dist/utils/chart-config/converter/index.d.ts +3 -3
- package/dist/utils/components/chart-ui-utils.d.ts +1 -1
- package/dist/utils/type-guards/chart-types.d.ts +7 -0
- package/dist/utils/ui/chart-ui-utils.d.ts +1 -1
- package/package.json +5 -5
- package/dist/cdn/2FPDE35U.js +0 -4
- package/dist/cdn/2MGDOOSL.js +0 -4
- package/dist/cdn/3GT7SI5M.js +0 -4
- package/dist/cdn/4IRJ3ZH5.js +0 -4
- package/dist/cdn/5A37OQGF.js +0 -4
- package/dist/cdn/5HOJCOJU.js +0 -4
- package/dist/cdn/C4U6ZLSK.js +0 -4
- package/dist/cdn/E3FQMXCV.js +0 -4
- package/dist/cdn/ETR3G32Z.js +0 -4
- package/dist/cdn/FK6WWS2O.js +0 -4
- package/dist/cdn/HO77HDLB.js +0 -6
- package/dist/cdn/HY4C6DEP.js +0 -4
- package/dist/cdn/IJUQRJFI.js +0 -4
- package/dist/cdn/JSD5IIH6.js +0 -4
- package/dist/cdn/JXGWYEJK.js +0 -4
- package/dist/cdn/KKNV3MPT.js +0 -4
- package/dist/cdn/LCSB3NQ5.js +0 -4
- package/dist/cdn/MISULAHN.js +0 -4
- package/dist/cdn/P2D5WICY.js +0 -4
- package/dist/cdn/PJQ27X42.js +0 -4
- package/dist/cdn/TDOUEZYL.js +0 -4
- package/dist/cdn/U2LF63KV.js +0 -22
- package/dist/cdn/WBEAP646.js +0 -4
- package/dist/cdn/XGB4TSSP.js +0 -4
- package/dist/cdn/XVUFERLV.js +0 -4
- package/dist/cdn/ZU4DL37U.js +0 -4
- package/dist/chunks/baseline-stacking.js +0 -92
- package/dist/chunks/config-update.js +0 -207
- package/dist/chunks/model-with-baseline-stacking.js +0 -246
- package/dist/chunks/model-with-data-labels.js +0 -325
- package/dist/chunks/model-with-rotation.js +0 -43
- package/dist/chunks/series.js +0 -37
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@arcgis/toolkit/intl";
|
|
2
|
-
import { cloneDeep as R, memoize as
|
|
3
|
-
import { g as
|
|
2
|
+
import { cloneDeep as R, memoize as ce, isEmpty as Ne } from "lodash-es";
|
|
3
|
+
import { g as de, e as Oe, a as T, u as K, W as O, d as Q, t as b, m as G, n as qe, i as _ } from "./series-types.js";
|
|
4
4
|
import "d3-array";
|
|
5
|
-
import { bL as
|
|
5
|
+
import { bL as we, cc as ue, bM as te, ah as ye, bN as ie, cY as De, l as W, d9 as Me, aI as J, cQ as Pe, bp as ge, cU as I, aG as L, aE as V, bz as B, a_ as Ee, aH as Re, r as N, U as $e, V as ke, cD as Xe, p as H, db as M, k as Ue, cB as je, bH as Ye, bT as Ke, an as We, q as He, df as ze, cx as Qe, dg as re, c8 as Ge, c4 as _e, _ as $, m as Je, b as U, bK as Ze, b1 as et, b2 as tt, b4 as it, bJ as oe, aJ as st, aK as at } from "./index.js";
|
|
6
6
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
7
7
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
8
8
|
import "@arcgis/core/rest/support/Query.js";
|
|
@@ -12,10 +12,10 @@ import "@arcgis/core/core/promiseUtils.js";
|
|
|
12
12
|
import "@arcgis/core/request.js";
|
|
13
13
|
import "./runtime.js";
|
|
14
14
|
import "@arcgis/toolkit/dom";
|
|
15
|
-
import { substitute as
|
|
16
|
-
import { a as
|
|
17
|
-
import { q as
|
|
18
|
-
import { S as
|
|
15
|
+
import { substitute as D } from "@arcgis/core/intl.js";
|
|
16
|
+
import { a as fe, R as rt } from "./rest-js-object-literals.js";
|
|
17
|
+
import { q as ot, h as pe, l as C, n as lt, o as nt, j as A, k as v } from "./index3.js";
|
|
18
|
+
import { S as Z } from "./common.js";
|
|
19
19
|
import "@arcgis/core/Graphic.js";
|
|
20
20
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
21
21
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -24,37 +24,38 @@ import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
|
24
24
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
25
25
|
import "simple-statistics";
|
|
26
26
|
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
27
|
-
import {
|
|
27
|
+
import { b as k, d as me, g as se, e as le, f as ct } from "./data.js";
|
|
28
|
+
import { c as dt } from "./index2.js";
|
|
28
29
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
29
30
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
30
|
-
v5.0.0-next.
|
|
31
|
-
async function
|
|
32
|
-
const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo:
|
|
33
|
-
where:
|
|
31
|
+
v5.0.0-next.90 */
|
|
32
|
+
async function ut(t) {
|
|
33
|
+
const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: l } = t, c = r.filter((p) => p.name === a)[0]?.type, f = l !== !0 ? `${a} IS NOT NULL` : "", d = s && l !== !0 ? `${s} IS NOT NULL` : "", { where: x } = e?.dataFilters ?? {}, m = {
|
|
34
|
+
where: ue([x, f, d]),
|
|
34
35
|
// excluding the null values from the list
|
|
35
|
-
orderByFields:
|
|
36
|
+
orderByFields: De(a) ? [] : [`${a} ${de.Ascending}`],
|
|
36
37
|
// default sorting ascending for split-by field
|
|
37
38
|
geometry: e?.dataFilters?.geometry
|
|
38
|
-
},
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
let S = await
|
|
42
|
-
queryObject:
|
|
39
|
+
}, y = i;
|
|
40
|
+
let g = "";
|
|
41
|
+
o.length === 0 ? g = y?.objectIdField ?? "" : [g] = o;
|
|
42
|
+
let S = await ye({
|
|
43
|
+
queryObject: y,
|
|
43
44
|
category: e?.series[0].x ?? "",
|
|
44
45
|
splitByField: a,
|
|
45
46
|
queryConfig: m
|
|
46
47
|
});
|
|
47
48
|
if (e) {
|
|
48
|
-
const
|
|
49
|
-
S =
|
|
49
|
+
const p = e?.series.map((u) => W({ where: u.query?.where })?.toString() ?? "").filter((u) => u !== void 0 && u !== "");
|
|
50
|
+
S = Me({
|
|
50
51
|
arrayA: S,
|
|
51
|
-
arrayB:
|
|
52
|
-
getKey: (
|
|
52
|
+
arrayB: p,
|
|
53
|
+
getKey: (u) => u === null ? null : u?.toString()
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
return { categoriesArray: S, splitByFieldType:
|
|
56
|
+
return { categoriesArray: S, splitByFieldType: c, numericalField: g };
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function mi(t, e) {
|
|
58
59
|
let i = e === "";
|
|
59
60
|
for (const s of t)
|
|
60
61
|
if (e === s.name) {
|
|
@@ -63,12 +64,12 @@ function Pt(t, e) {
|
|
|
63
64
|
}
|
|
64
65
|
return i;
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
const i =
|
|
67
|
+
function xi(t, e) {
|
|
68
|
+
const i = we(t);
|
|
68
69
|
let s = e.length === 0, a = 0;
|
|
69
|
-
for (const
|
|
70
|
-
for (const
|
|
71
|
-
if (
|
|
70
|
+
for (const r of e) {
|
|
71
|
+
for (const o of i)
|
|
72
|
+
if (r === o && (a += 1), a === e.length) {
|
|
72
73
|
s = !0;
|
|
73
74
|
break;
|
|
74
75
|
}
|
|
@@ -77,7 +78,7 @@ function Et(t, e) {
|
|
|
77
78
|
}
|
|
78
79
|
return s;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function Si(t, e) {
|
|
81
82
|
e.forEach((i) => {
|
|
82
83
|
Object.getOwnPropertyNames(i.prototype).forEach((s) => {
|
|
83
84
|
Object.defineProperty(
|
|
@@ -88,419 +89,659 @@ function Kt(t, e) {
|
|
|
88
89
|
});
|
|
89
90
|
});
|
|
90
91
|
}
|
|
91
|
-
async function
|
|
92
|
-
const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where:
|
|
93
|
-
where:
|
|
92
|
+
async function yt(t) {
|
|
93
|
+
const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues: o } = i?.series?.[0]?.query ?? {}, l = o !== !0 ? `${s} IS NOT NULL` : "", n = {
|
|
94
|
+
where: ue([r, l]),
|
|
94
95
|
// excluding the null values from the list
|
|
95
96
|
orderByFields: [],
|
|
96
97
|
geometry: i?.dataFilters?.geometry
|
|
97
|
-
},
|
|
98
|
+
}, c = te(a);
|
|
98
99
|
return (
|
|
99
100
|
// fetch unique category values asynchronously
|
|
100
|
-
(await
|
|
101
|
-
const
|
|
102
|
-
return
|
|
101
|
+
(await ye({ queryObject: a, category: s, queryConfig: n })).map((d) => {
|
|
102
|
+
const x = String(d);
|
|
103
|
+
return ie({
|
|
103
104
|
fieldName: s,
|
|
104
|
-
fieldValueToMatch:
|
|
105
|
-
subtypeInfo:
|
|
105
|
+
fieldValueToMatch: x,
|
|
106
|
+
subtypeInfo: c,
|
|
106
107
|
// use the retrieved subtype information
|
|
107
108
|
fieldList: e.layerFieldsInfo
|
|
108
109
|
// list of field information from the layer
|
|
109
|
-
}) ??
|
|
110
|
+
}) ?? x;
|
|
110
111
|
})
|
|
111
112
|
);
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
+
function j(t, e, i) {
|
|
114
115
|
const s = t?.axes?.[e];
|
|
115
|
-
s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title =
|
|
116
|
+
s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = L({
|
|
116
117
|
text: i,
|
|
117
118
|
visible: !0,
|
|
118
|
-
font:
|
|
119
|
+
font: V(B.AxisTitle)
|
|
119
120
|
}));
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
-
const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType:
|
|
123
|
-
let
|
|
122
|
+
function xe(t) {
|
|
123
|
+
const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType: r } = t;
|
|
124
|
+
let o = "";
|
|
124
125
|
if (e)
|
|
125
|
-
if (
|
|
126
|
-
|
|
126
|
+
if (Pe(e) === Oe.Stacked100)
|
|
127
|
+
o = s.utilsStrings.statistics.percent;
|
|
127
128
|
else {
|
|
128
|
-
const
|
|
129
|
+
const n = ge(r, s);
|
|
129
130
|
if (a.length === 1) {
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
aggregation:
|
|
133
|
-
fieldName:
|
|
131
|
+
const c = I(i.layerFieldsInfo, a[0]);
|
|
132
|
+
r === T.NoAggregation ? o = c : r === T.Count && a[0] === i.objectIdField ? o = s.utilsStrings.statistics.count : o = D(s.axisLabels.aggregationOfFieldName, {
|
|
133
|
+
aggregation: n,
|
|
134
|
+
fieldName: c
|
|
134
135
|
});
|
|
135
|
-
} else a.length > 1 && (
|
|
136
|
-
aggregation:
|
|
136
|
+
} else a.length > 1 && (r === T.NoAggregation ? o = s.axisLabels.values : o = D(s.axisLabels.aggregationOfValues, {
|
|
137
|
+
aggregation: n
|
|
137
138
|
}));
|
|
138
139
|
}
|
|
139
|
-
return
|
|
140
|
+
return o;
|
|
140
141
|
}
|
|
141
|
-
const
|
|
142
|
+
const Se = (t, e, i) => t.axes?.[e] ?? Ee(i, t.type)[e], Fe = (t) => {
|
|
142
143
|
const { config: e, axis: i, axisIndex: s } = t;
|
|
143
144
|
e.axes !== void 0 && (e.axes[s] = i);
|
|
144
|
-
},
|
|
145
|
+
}, Fi = (t) => {
|
|
145
146
|
const { config: e, axisIndex: i, isMax: s } = t;
|
|
146
147
|
let a = Number.NaN;
|
|
147
148
|
return s ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
|
|
148
|
-
},
|
|
149
|
-
const { config: e, value: i, axisIndex: s, isMax: a } = t,
|
|
150
|
-
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
const s =
|
|
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
|
+
}, bi = (t, e) => {
|
|
153
|
+
F({ config: t, value: e, axisIndex: 0, isMax: !1 });
|
|
154
|
+
}, be = (t) => t.axes?.[0]?.valueFormat ?? J(), gt = (t, e, i) => {
|
|
155
|
+
const s = Se(t, 0, e);
|
|
155
156
|
if (s !== void 0 && i !== void 0) {
|
|
156
157
|
const a = {
|
|
157
158
|
...s,
|
|
158
159
|
valueFormat: i
|
|
159
160
|
};
|
|
160
|
-
|
|
161
|
+
Fe({ config: t, axis: a, axisIndex: 0 });
|
|
161
162
|
}
|
|
162
|
-
},
|
|
163
|
+
}, ne = (t, e, i) => {
|
|
163
164
|
const s = t.axes?.[e];
|
|
164
165
|
s !== void 0 && (s.integerOnlyValues = i);
|
|
165
|
-
},
|
|
166
|
-
const e =
|
|
166
|
+
}, ft = (t) => {
|
|
167
|
+
const e = K(t.series);
|
|
167
168
|
return e === O.BarSeries || e === O.ComboLineAndBarSeries || e === O.LineSeries;
|
|
168
|
-
},
|
|
169
|
+
}, pt = (t) => {
|
|
169
170
|
const { axisIndex: e, config: i, isMultiAxis: s } = t;
|
|
170
171
|
let a = !1;
|
|
171
|
-
return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a =
|
|
172
|
-
},
|
|
172
|
+
return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = ft(i)), a;
|
|
173
|
+
}, Ti = (t) => {
|
|
173
174
|
const { axisIndex: e, func: i, config: s } = t;
|
|
174
|
-
return
|
|
175
|
-
},
|
|
175
|
+
return pt({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
|
|
176
|
+
}, hi = (t, e) => {
|
|
176
177
|
let i;
|
|
177
178
|
const s = e.axes?.[t]?.valueFormat;
|
|
178
|
-
return (t === 0 || t >= 1 &&
|
|
179
|
-
},
|
|
180
|
-
const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t,
|
|
181
|
-
if (
|
|
182
|
-
const
|
|
183
|
-
...
|
|
179
|
+
return (t === 0 || t >= 1 && ot(s)) && (i = s), i;
|
|
180
|
+
}, Ai = (t) => {
|
|
181
|
+
const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, r = Se(e, a, i);
|
|
182
|
+
if (r !== void 0 && s !== void 0) {
|
|
183
|
+
const o = {
|
|
184
|
+
...r,
|
|
184
185
|
valueFormat: s
|
|
185
186
|
};
|
|
186
|
-
|
|
187
|
+
Fe({
|
|
187
188
|
config: e,
|
|
188
|
-
axis:
|
|
189
|
+
axis: o,
|
|
189
190
|
axisIndex: a
|
|
190
191
|
});
|
|
191
192
|
}
|
|
192
|
-
},
|
|
193
|
+
}, vi = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, Bi = (t) => {
|
|
193
194
|
const { config: e, isLogarithmic: i, axisIndex: s } = t, a = e.axes?.[s];
|
|
194
|
-
a && (a.isLogarithmic = i,
|
|
195
|
-
},
|
|
195
|
+
a && (a.isLogarithmic = i, F({ config: e, value: null, axisIndex: s, isMax: !0 }), F({ config: e, value: null, axisIndex: s, isMax: !1 }));
|
|
196
|
+
}, Ci = (t) => {
|
|
196
197
|
const { config: e, scrollbar: i, axisIndex: s } = t;
|
|
197
198
|
e.axes?.[s] !== void 0 && (e.axes[s].scrollbar = i);
|
|
198
|
-
},
|
|
199
|
-
e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title =
|
|
199
|
+
}, Ii = (t) => t.version, mt = (t) => t.title?.content.text ?? "", Li = (t, e) => {
|
|
200
|
+
e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = L({
|
|
200
201
|
text: t,
|
|
201
202
|
visible: !0,
|
|
202
|
-
font:
|
|
203
|
+
font: V(B.ChartTitle)
|
|
203
204
|
}));
|
|
204
|
-
},
|
|
205
|
-
e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle =
|
|
205
|
+
}, Vi = (t) => t.subtitle?.content.text ?? "", Ni = (t, e) => {
|
|
206
|
+
e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle = L({
|
|
206
207
|
text: t,
|
|
207
208
|
visible: !0,
|
|
208
|
-
font:
|
|
209
|
+
font: V(B.ChartSubtitle)
|
|
209
210
|
}));
|
|
210
|
-
},
|
|
211
|
-
e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer =
|
|
211
|
+
}, Oi = (t) => t.footer?.content.text ?? "", qi = (t, e) => {
|
|
212
|
+
e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer = L({
|
|
212
213
|
text: t,
|
|
213
214
|
visible: !0,
|
|
214
|
-
font:
|
|
215
|
+
font: V(B.DescriptionText)
|
|
215
216
|
}));
|
|
216
|
-
},
|
|
217
|
-
e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title =
|
|
217
|
+
}, wi = (t) => t.title ? t.title.visible ?? !0 : !1, Di = (t, e) => {
|
|
218
|
+
e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title = L({
|
|
218
219
|
text: "",
|
|
219
220
|
visible: t,
|
|
220
|
-
font:
|
|
221
|
+
font: V(B.ChartTitle)
|
|
221
222
|
}));
|
|
222
|
-
},
|
|
223
|
-
e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle =
|
|
223
|
+
}, Mi = (t) => t.subtitle ? t.subtitle.visible ?? !0 : !1, Pi = (t, e) => {
|
|
224
|
+
e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle = L({
|
|
224
225
|
text: "",
|
|
225
226
|
visible: t,
|
|
226
|
-
font:
|
|
227
|
+
font: V(B.ChartSubtitle)
|
|
227
228
|
}));
|
|
228
|
-
},
|
|
229
|
-
e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !==
|
|
229
|
+
}, xt = (t) => t.footer?.visible ?? !1, Ei = (t, e) => {
|
|
230
|
+
e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !== xt(e) && (e.footer = L({
|
|
230
231
|
text: "",
|
|
231
232
|
visible: !0,
|
|
232
|
-
font:
|
|
233
|
+
font: V(B.DescriptionText)
|
|
233
234
|
}));
|
|
234
|
-
},
|
|
235
|
+
}, Ri = (t) => t.chartRenderer, $i = (t, e) => {
|
|
235
236
|
e.chartRenderer = t;
|
|
236
|
-
},
|
|
237
|
+
}, ki = (t, e) => t.axes?.[e]?.title?.content, Xi = (t) => {
|
|
237
238
|
const { config: e, axisIndex: i, symbol: s } = t, a = e.axes?.[i];
|
|
238
239
|
if (a !== void 0) {
|
|
239
|
-
const
|
|
240
|
-
(a.title === void 0 || s === void 0) && (a.title =
|
|
240
|
+
const r = a.title?.content.text;
|
|
241
|
+
(a.title === void 0 || s === void 0) && (a.title = L({
|
|
241
242
|
text: "",
|
|
242
243
|
visible: !0,
|
|
243
|
-
font:
|
|
244
|
-
type:
|
|
245
|
-
})), s !== void 0 && (a.title.content = s), a.title.content.text =
|
|
244
|
+
font: V(B.AxisTitle),
|
|
245
|
+
type: B.AxisTitle
|
|
246
|
+
})), s !== void 0 && (a.title.content = s), a.title.content.text = r;
|
|
246
247
|
}
|
|
247
|
-
},
|
|
248
|
+
}, Ui = (t) => {
|
|
248
249
|
for (const e of t.axes ?? [])
|
|
249
250
|
if (e?.labels !== void 0)
|
|
250
251
|
return e.labels.content;
|
|
251
|
-
},
|
|
252
|
+
}, ji = (t, e) => {
|
|
252
253
|
for (const i of e.axes ?? [])
|
|
253
254
|
if (i !== void 0) {
|
|
254
255
|
const s = i.labels?.content.text;
|
|
255
|
-
t === void 0 ? i.labels =
|
|
256
|
+
t === void 0 ? i.labels = L({
|
|
256
257
|
text: "",
|
|
257
258
|
visible: !0,
|
|
258
|
-
font:
|
|
259
|
-
type:
|
|
259
|
+
font: V(B.AxisLabels),
|
|
260
|
+
type: B.AxisLabels
|
|
260
261
|
}) : i.labels.content = R(t), i.labels.content.text = s;
|
|
261
262
|
}
|
|
262
|
-
},
|
|
263
|
+
}, Yi = (t) => {
|
|
263
264
|
for (const e of t.axes ?? [])
|
|
264
265
|
if (e?.lineSymbol !== void 0)
|
|
265
266
|
return e.lineSymbol;
|
|
266
|
-
},
|
|
267
|
+
}, Ki = (t, e) => {
|
|
267
268
|
for (const i of e.axes ?? [])
|
|
268
|
-
i !== void 0 && (i.lineSymbol = R(t) ??
|
|
269
|
-
},
|
|
269
|
+
i !== void 0 && (i.lineSymbol = R(t) ?? Re());
|
|
270
|
+
}, Wi = (t) => {
|
|
270
271
|
for (const e of t.axes ?? [])
|
|
271
272
|
if (e?.grid !== void 0)
|
|
272
273
|
return e.grid;
|
|
273
|
-
},
|
|
274
|
+
}, Hi = (t, e, i) => {
|
|
274
275
|
const s = e.axes;
|
|
275
276
|
i.forEach((a) => {
|
|
276
277
|
s?.[a] !== void 0 && (s[a].grid = R(t));
|
|
277
278
|
});
|
|
278
|
-
},
|
|
279
|
+
}, X = (t, e) => e.axes?.[t]?.title?.content.text ?? "", zi = (t, e, i) => {
|
|
279
280
|
const s = i.axes?.[e];
|
|
280
|
-
s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title =
|
|
281
|
+
s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = L({
|
|
281
282
|
text: t,
|
|
282
283
|
visible: !0,
|
|
283
|
-
font:
|
|
284
|
+
font: V(B.AxisTitle)
|
|
284
285
|
}));
|
|
285
|
-
},
|
|
286
|
+
}, Qi = (t, e) => e.axes?.[t]?.title?.visible ?? !1, Gi = (t, e, i) => {
|
|
286
287
|
const s = i.axes?.[e];
|
|
287
|
-
s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title =
|
|
288
|
-
text:
|
|
288
|
+
s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = L({
|
|
289
|
+
text: X(e, i),
|
|
289
290
|
visible: t,
|
|
290
|
-
font:
|
|
291
|
+
font: V(B.AxisTitle)
|
|
291
292
|
}));
|
|
292
|
-
},
|
|
293
|
+
}, _i = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, Ji = (t, e, i) => {
|
|
293
294
|
t.axes?.[i] !== void 0 && (t.axes[i].displayZeroLine = e);
|
|
294
|
-
},
|
|
295
|
+
}, Zi = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, es = (t) => {
|
|
295
296
|
const { config: e, displayCursorTooltip: i, axisIndex: s } = t;
|
|
296
297
|
e.axes?.[s] !== void 0 && (e.axes[s].displayCursorTooltip = i);
|
|
297
|
-
},
|
|
298
|
+
}, ts = (t, e) => t.axes?.[e]?.buffer ?? !1, is = (t) => {
|
|
298
299
|
const { config: e, buffer: i, axisIndex: s } = t, a = e.axes?.[s];
|
|
299
300
|
a !== void 0 && (a.buffer = i);
|
|
300
|
-
},
|
|
301
|
+
}, ss = (t, e) => t.axes?.[e]?.tickSpacing, as = (t) => {
|
|
301
302
|
const { config: e, tickSpacing: i, axisIndex: s } = t;
|
|
302
303
|
e.axes?.[s] !== void 0 && (e.axes[s].tickSpacing = i);
|
|
303
|
-
},
|
|
304
|
+
}, rs = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, os = (t) => {
|
|
304
305
|
const { config: e, integerOnlyValues: i, axisIndex: s } = t;
|
|
305
306
|
e.axes?.[s] !== void 0 && (e.axes[s].integerOnlyValues = i);
|
|
306
|
-
},
|
|
307
|
+
}, ls = (t, e) => {
|
|
307
308
|
e.series.forEach((i) => {
|
|
308
309
|
i.query && (i.query.fetchNullValues = t);
|
|
309
310
|
});
|
|
310
|
-
},
|
|
311
|
+
}, ns = (t) => t.series.some((e) => e.query?.fetchNullValues), cs = (t) => (
|
|
311
312
|
// TODO: Look into split-by values gotchas cases once done
|
|
312
|
-
t.series.map((e) => String(
|
|
313
|
-
),
|
|
313
|
+
t.series.map((e) => String(W({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "")
|
|
314
|
+
), ds = (t) => t.dataFilters, us = (t, e) => {
|
|
314
315
|
t !== void 0 ? e.dataFilters = t : delete e.dataFilters;
|
|
315
|
-
},
|
|
316
|
+
}, St = (t) => {
|
|
316
317
|
let e;
|
|
317
318
|
const i = t.series[0];
|
|
318
|
-
return
|
|
319
|
-
},
|
|
319
|
+
return N(i) && (e = i.temporalBinning?.size), e;
|
|
320
|
+
}, Ft = (t) => {
|
|
320
321
|
let e;
|
|
321
322
|
const i = t.series[0];
|
|
322
|
-
return
|
|
323
|
-
},
|
|
323
|
+
return N(i) && (e = i.temporalBinning?.unit), e;
|
|
324
|
+
}, bt = (t) => {
|
|
324
325
|
let e;
|
|
325
326
|
const i = t.series[0];
|
|
326
|
-
return
|
|
327
|
-
},
|
|
327
|
+
return N(i) && (e = i.temporalBinning?.timeAggregationType), e;
|
|
328
|
+
}, Tt = (t) => {
|
|
328
329
|
let e;
|
|
329
330
|
const i = t.series[0];
|
|
330
|
-
return
|
|
331
|
-
},
|
|
331
|
+
return N(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
332
|
+
}, ht = (t) => {
|
|
332
333
|
let e;
|
|
333
334
|
const i = t.series[0];
|
|
334
|
-
return
|
|
335
|
-
},
|
|
335
|
+
return N(i) && (e = i.temporalBinning?.nullPolicy), e;
|
|
336
|
+
}, Te = (t, e) => {
|
|
336
337
|
e?.series?.forEach((i) => {
|
|
337
|
-
|
|
338
|
-
}),
|
|
339
|
-
},
|
|
338
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
|
|
339
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
340
|
+
}, At = (t, e) => {
|
|
340
341
|
e?.series?.forEach((i) => {
|
|
341
|
-
|
|
342
|
-
}),
|
|
343
|
-
},
|
|
342
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
|
|
343
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
344
|
+
}, ys = (t, e) => {
|
|
344
345
|
e.series?.forEach((i) => {
|
|
345
|
-
|
|
346
|
-
}),
|
|
347
|
-
},
|
|
346
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
|
|
347
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
348
|
+
}, gs = (t, e) => {
|
|
348
349
|
e.series?.forEach((i) => {
|
|
349
|
-
|
|
350
|
-
}),
|
|
351
|
-
},
|
|
350
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
|
|
351
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
352
|
+
}, fs = (t, e) => {
|
|
352
353
|
e.series?.forEach((i) => {
|
|
353
|
-
|
|
354
|
-
}),
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
function
|
|
354
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
|
|
355
|
+
}), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
356
|
+
}, ps = (t) => {
|
|
357
|
+
Te(0, t);
|
|
358
|
+
}, vt = (t) => t.series.length ?? 0, ms = (t, e) => e.series[t].visible ?? !0;
|
|
359
|
+
function xs(t, e) {
|
|
359
360
|
let i;
|
|
360
361
|
return t.length !== 0 && e < t.length && (i = t[e].dataTooltipValueFormat), i;
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function Ss(t) {
|
|
363
364
|
const { series: e, seriesIndex: i, valueFormat: s } = t;
|
|
364
365
|
e.length !== 0 && i < e.length && (e[i].dataTooltipValueFormat = s);
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
367
|
+
function Fs(t, e) {
|
|
368
|
+
let i;
|
|
369
|
+
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
|
|
370
|
+
}
|
|
371
|
+
function bs(t, e) {
|
|
372
|
+
let i;
|
|
373
|
+
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
|
|
374
|
+
}
|
|
375
|
+
function Ts(t, e) {
|
|
376
|
+
let i;
|
|
377
|
+
return e !== void 0 && (i = { ...e, rotated: t }), i;
|
|
378
|
+
}
|
|
379
|
+
function he(t) {
|
|
380
|
+
let e;
|
|
381
|
+
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;
|
|
382
|
+
}
|
|
383
|
+
function hs(t, e) {
|
|
384
|
+
return e != null || pe(t);
|
|
385
|
+
}
|
|
386
|
+
async function Bt(t) {
|
|
387
|
+
const { queryObject: e, chartConfig: i, options: s, splitByField: a } = t;
|
|
388
|
+
let r = [], o;
|
|
389
|
+
const l = R(i), n = l.series[0], c = Ke({
|
|
390
|
+
queryObject: e,
|
|
391
|
+
chartConfig: l,
|
|
392
|
+
runtimeDataFilters: s?.runtimeDataFilters,
|
|
393
|
+
ignoreViewExtent: s?.ignoreViewExtent
|
|
394
|
+
});
|
|
395
|
+
if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = We.outStatistics.outStatisticFieldName), N(n) && He({
|
|
396
|
+
xAxisValueFormatType: ze(l),
|
|
397
|
+
setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided,
|
|
398
|
+
seriesConfig: n
|
|
399
|
+
}) && Qe(e)) {
|
|
400
|
+
const { temporalBinning: f, x: d } = n, { uniqueQuery: x } = await re({
|
|
401
|
+
chartConfig: l,
|
|
402
|
+
queryConfig: c,
|
|
403
|
+
queryObject: e,
|
|
404
|
+
options: s
|
|
405
|
+
});
|
|
406
|
+
o = await Ge({
|
|
407
|
+
queryObject: e,
|
|
408
|
+
dateField: d,
|
|
409
|
+
splitByField: a,
|
|
410
|
+
queryConfig: x,
|
|
411
|
+
temporalBinning: f
|
|
412
|
+
}), r = Array.from(
|
|
413
|
+
new Set(
|
|
414
|
+
o.flatMap((m) => {
|
|
415
|
+
const { stackedAttributes: y } = m;
|
|
416
|
+
let g = [];
|
|
417
|
+
return y && (g = y.map((S) => S[a]).filter((S) => S !== void 0)), g;
|
|
418
|
+
})
|
|
419
|
+
).values()
|
|
420
|
+
);
|
|
421
|
+
} else {
|
|
422
|
+
const { uniqueQuery: f } = await re({
|
|
423
|
+
chartConfig: l,
|
|
424
|
+
queryObject: e,
|
|
425
|
+
queryConfig: c,
|
|
426
|
+
options: s
|
|
427
|
+
});
|
|
428
|
+
o = await _e({
|
|
429
|
+
queryObject: e,
|
|
430
|
+
queryConfig: f,
|
|
431
|
+
featureCount: 1
|
|
432
|
+
}), r = Array.from(
|
|
433
|
+
new Set(
|
|
434
|
+
o.map((d) => d.attributes[a]).filter((d) => d !== void 0)
|
|
435
|
+
).values()
|
|
436
|
+
);
|
|
437
|
+
}
|
|
438
|
+
return { allValues: r, preFetchedQueryResponse: o };
|
|
439
|
+
}
|
|
440
|
+
function Ct(t, e) {
|
|
441
|
+
const i = /* @__PURE__ */ new Map();
|
|
442
|
+
return t.series.forEach((s) => {
|
|
443
|
+
let a = W({
|
|
444
|
+
where: s.query?.where,
|
|
445
|
+
// normalize the value so it matches what we get from getAllValues()
|
|
446
|
+
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
447
|
+
normalize: !0,
|
|
448
|
+
// we do not escape the characters so they match what we get from getAllValues()
|
|
449
|
+
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
|
|
450
|
+
escape: !1
|
|
451
|
+
});
|
|
452
|
+
e && a !== null && (a = Number(a));
|
|
453
|
+
const r = K([s]);
|
|
454
|
+
r !== void 0 && i.set(r, [
|
|
455
|
+
...i.get(r) ?? [],
|
|
456
|
+
a
|
|
457
|
+
]);
|
|
458
|
+
}), i;
|
|
459
|
+
}
|
|
460
|
+
function It(t) {
|
|
461
|
+
const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: s } = t, a = /* @__PURE__ */ new Map();
|
|
462
|
+
return Array.from(i.keys()).forEach((r) => {
|
|
463
|
+
const o = i.get(r) ?? [];
|
|
464
|
+
let l = [];
|
|
465
|
+
s ? l = e : e.forEach((n) => {
|
|
466
|
+
o.includes(n) || l.push(n);
|
|
467
|
+
}), a.set(r, l);
|
|
468
|
+
}), a;
|
|
469
|
+
}
|
|
470
|
+
function Lt(t) {
|
|
471
|
+
const { chartConfig: e, missingValue: i, splitByField: s, seriesTemplate: a } = t, r = JSON.parse(
|
|
472
|
+
JSON.stringify({
|
|
473
|
+
...e.series[0],
|
|
474
|
+
...a
|
|
475
|
+
})
|
|
476
|
+
);
|
|
477
|
+
if (r.query) {
|
|
478
|
+
if (r.id = `${i}-${e.series.length}-${Date.now()}`, r.name = `${i}`, r.query.outStatistics?.[0] !== void 0) {
|
|
479
|
+
const l = r.id;
|
|
480
|
+
r.query.outStatistics[0].outStatisticFieldName = l, "y" in r && (r.y = l);
|
|
481
|
+
}
|
|
482
|
+
const o = typeof i == "number" || i === null ? i : `'${i}'`;
|
|
483
|
+
r.query.where = `${s}=${o}`;
|
|
484
|
+
}
|
|
485
|
+
return r;
|
|
486
|
+
}
|
|
487
|
+
async function Vt(t) {
|
|
488
|
+
const { updateSplitBySeries: e, config: i, options: s, queryObject: a } = t, { seriesTemplate: r } = e ?? {};
|
|
489
|
+
let o;
|
|
490
|
+
if (e !== void 0 && i !== void 0 && (i.series.length > 0 || r !== void 0) && e.addMissingSeries) {
|
|
491
|
+
const l = i.series.length === 0;
|
|
492
|
+
i.series.length === 0 && r !== void 0 && i.series.push(r);
|
|
493
|
+
const n = H(i.series);
|
|
494
|
+
if ((n === M.BoxPlotMonoFieldAndSplitBy || n === M.BoxPlotMultiFieldsAndSplitBy || n === M.BoxPlotMonoFieldAndCategoryAndSplitBy || n === M.BarAndLineSplitBy || n === M.BarAndLineSplitByNoAggregation) && a !== void 0) {
|
|
495
|
+
const c = Ue(i.series[0]?.query?.where), f = je(a);
|
|
496
|
+
await f.load();
|
|
497
|
+
const d = f.getField(c)?.toJSON(), x = Ye(d), m = await Bt({
|
|
498
|
+
queryObject: a,
|
|
499
|
+
chartConfig: i,
|
|
500
|
+
splitByField: c,
|
|
501
|
+
options: s
|
|
502
|
+
}), { allValues: y } = m;
|
|
503
|
+
if ({ preFetchedQueryResponse: o } = m, y.length > 0) {
|
|
504
|
+
const g = Ct(i, x), S = It({
|
|
505
|
+
allValues: y,
|
|
506
|
+
configUniqueValuesPerSeriesType: g,
|
|
507
|
+
initialConfigWasEmpty: l
|
|
508
|
+
});
|
|
509
|
+
Array.from(S.keys()).forEach((p) => {
|
|
510
|
+
(S.get(p) ?? []).forEach((q) => {
|
|
511
|
+
i.series.push(
|
|
512
|
+
Lt({
|
|
513
|
+
chartConfig: i,
|
|
514
|
+
seriesTemplate: r,
|
|
515
|
+
missingValue: q,
|
|
516
|
+
splitByField: c
|
|
517
|
+
})
|
|
518
|
+
);
|
|
519
|
+
}), l && i.series.shift();
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
return o;
|
|
525
|
+
}
|
|
526
|
+
function Nt(t, e) {
|
|
527
|
+
e && !pe(e) && (e = Xe({ chartConfig: e, queryObject: t }));
|
|
528
|
+
}
|
|
529
|
+
async function As(t) {
|
|
530
|
+
const {
|
|
531
|
+
configToAlter: e,
|
|
532
|
+
layer: i,
|
|
533
|
+
addMissingSeries: s,
|
|
534
|
+
updateSplitBySeries: a,
|
|
535
|
+
chartContainer: r,
|
|
536
|
+
creation: o,
|
|
537
|
+
queryObject: l,
|
|
538
|
+
options: n,
|
|
539
|
+
previousConfig: c
|
|
540
|
+
} = t;
|
|
541
|
+
let f = e, d;
|
|
542
|
+
return Nt(i, f), f = await dt(f, i), s && (d = await Vt({
|
|
543
|
+
updateSplitBySeries: a,
|
|
544
|
+
config: f,
|
|
545
|
+
options: n,
|
|
546
|
+
queryObject: l
|
|
547
|
+
})), (o || c && $e(c, f)) && (f = ke(f, r)), { alteredConfig: f, preFetchedQueryResponse: d };
|
|
548
|
+
}
|
|
549
|
+
const vs = (t) => {
|
|
550
|
+
const { xField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = X(0, i), o = Ot(i), l = $(i), n = i.series[0];
|
|
551
|
+
if (typeof e == "string" && o !== e && n && (n.x = e, he(i), o === r || l)) {
|
|
552
|
+
const c = I(a, e);
|
|
553
|
+
j(i, 0, c);
|
|
554
|
+
}
|
|
555
|
+
}, Ot = (t) => t.series[0].x ?? "", Bs = (t) => t.hideEmptyRowsAndColumns, Cs = (t, e) => {
|
|
556
|
+
t.hideEmptyRowsAndColumns = e;
|
|
557
|
+
}, Is = (t, e) => {
|
|
558
|
+
const i = t.series[0];
|
|
559
|
+
i.heatRulesType = e;
|
|
560
|
+
}, Ls = (t) => t.series[0].heatRulesType, Vs = (t, e) => {
|
|
561
|
+
const i = t.series[0];
|
|
562
|
+
i.gradientRules = e;
|
|
563
|
+
}, Ns = (t) => t.series[0].gradientRules, Os = (t) => {
|
|
564
|
+
const { yField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = X(1, i), o = qt(i), l = $(i), n = i.series[0];
|
|
565
|
+
if (typeof e == "string" && o !== e && n && (n.y = e, he(i), o === r || l)) {
|
|
566
|
+
const c = I(a, e);
|
|
567
|
+
j(i, 1, c);
|
|
568
|
+
}
|
|
569
|
+
}, qt = (t) => t.series[0].y ?? "", qs = (t, e) => {
|
|
570
|
+
const i = e.series[0];
|
|
571
|
+
i.xTemporalBinning = t;
|
|
572
|
+
}, ws = (t) => t.series[0].xTemporalBinning, Ds = (t, e) => {
|
|
573
|
+
const i = e.series[0];
|
|
574
|
+
i.yTemporalBinning = t;
|
|
575
|
+
}, Ms = (t) => t.series[0].yTemporalBinning, wt = (t, e) => {
|
|
576
|
+
e.orderOptions ??= {};
|
|
577
|
+
const i = e.axes?.[0]?.valueFormat?.type === "category" ? b.Category : b.YValue, s = ee(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? b.Category : b.YValue, r = ee(e)[1], o = {
|
|
578
|
+
...e.orderOptions.data ?? {},
|
|
579
|
+
orderType: b.MultiAxes
|
|
580
|
+
};
|
|
581
|
+
s === Z.customSort && i === b.Category && (o.orderByX = [...t]), r === Z.customSort && a === b.Category && (o.orderByY = [...t]), Object.keys(o).length > 1 && (e.orderOptions.data = o);
|
|
582
|
+
}, Ps = (t, e) => {
|
|
583
|
+
const i = e.series[0];
|
|
584
|
+
i.gridLine && (i.gridLine.width = t);
|
|
585
|
+
}, Es = (t) => t.series[0].gridLine?.width, Rs = (t, e) => {
|
|
586
|
+
const i = e.series[0], s = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
587
|
+
i.gridLine && s && (i.gridLine.color = t);
|
|
588
|
+
}, $s = (t) => t.series[0].gridLine?.color, ks = (t, e) => {
|
|
589
|
+
const i = e.legend;
|
|
590
|
+
t === Q.Bottom && i && (i.position = Q.Bottom);
|
|
591
|
+
}, Xs = (t) => t.legend?.position ?? Q.Bottom, Us = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, js = (t, e) => {
|
|
592
|
+
const i = e.series[0].query?.outStatistics?.[0];
|
|
593
|
+
i && (i.onStatisticField = t, i.outStatisticFieldName = `${i.statisticType}_${t}`);
|
|
594
|
+
}, Ys = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? T.Count, Ks = (t, e) => {
|
|
595
|
+
const i = e.series[0]?.query?.outStatistics?.[0];
|
|
596
|
+
i && t !== T.NoAggregation && (i.statisticType = t, i.outStatisticFieldName = `${t}_${i.onStatisticField}`);
|
|
597
|
+
}, Ws = (t) => t.nullPolicy, Hs = (t, e) => {
|
|
598
|
+
e.nullPolicy = t;
|
|
599
|
+
}, zs = (t) => t.series[0].emptyCells?.text, Qs = (t, e) => {
|
|
600
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
601
|
+
}, Gs = (t) => t.series[0].emptyCells?.symbol, _s = (t, e) => {
|
|
602
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
603
|
+
};
|
|
604
|
+
function Dt(t) {
|
|
605
|
+
return K(t.series) === O.HeatSeries;
|
|
606
|
+
}
|
|
607
|
+
function E(t) {
|
|
608
|
+
const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: r, commonStrings: o } = t, { objectIdField: l } = r ?? {};
|
|
609
|
+
let n;
|
|
610
|
+
const c = a.series[e ?? 0];
|
|
611
|
+
let f = !1, d = !1;
|
|
612
|
+
if (c === void 0) {
|
|
613
|
+
const y = a.series;
|
|
614
|
+
f = y.slice(0, e).every((g) => A(g)), d = y.slice(0, e).every((g) => v(g));
|
|
374
615
|
} else
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
commonStrings:
|
|
616
|
+
f = A(c), d = v(c);
|
|
617
|
+
f ? n = et({
|
|
618
|
+
commonStrings: o,
|
|
378
619
|
seriesIndex: e,
|
|
379
|
-
objectIDField:
|
|
380
|
-
}) : d ?
|
|
381
|
-
commonStrings:
|
|
620
|
+
objectIDField: l
|
|
621
|
+
}) : d ? n = tt({
|
|
622
|
+
commonStrings: o,
|
|
382
623
|
seriesIndex: e,
|
|
383
|
-
objectIDField:
|
|
384
|
-
}) :
|
|
624
|
+
objectIDField: l
|
|
625
|
+
}) : n = it({
|
|
385
626
|
seriesIndex: e,
|
|
386
|
-
objectIDField:
|
|
387
|
-
commonStrings:
|
|
627
|
+
objectIDField: l,
|
|
628
|
+
commonStrings: o
|
|
388
629
|
});
|
|
389
|
-
const
|
|
390
|
-
...
|
|
630
|
+
const x = a.series[0]?.dataLabels, m = {
|
|
631
|
+
...n,
|
|
391
632
|
x: i,
|
|
392
633
|
y: "",
|
|
393
634
|
dataLabels: {
|
|
394
|
-
...
|
|
395
|
-
type:
|
|
396
|
-
content: { ...
|
|
397
|
-
visible:
|
|
635
|
+
...n.dataLabels,
|
|
636
|
+
type: n.dataLabels?.type ?? O.Text,
|
|
637
|
+
content: { ...n.dataLabels?.content, ...x?.content, type: rt.TS },
|
|
638
|
+
visible: x?.visible ?? !1
|
|
398
639
|
}
|
|
399
640
|
};
|
|
400
641
|
if (m.query = {
|
|
401
642
|
groupByFieldsForStatistics: [i]
|
|
402
|
-
}, s !==
|
|
403
|
-
const
|
|
404
|
-
m.y =
|
|
643
|
+
}, s !== T.NoAggregation && l !== void 0) {
|
|
644
|
+
const y = `${s}_${l}_0`.toUpperCase();
|
|
645
|
+
m.y = y, m.query.outStatistics = [
|
|
405
646
|
{
|
|
406
647
|
statisticType: s,
|
|
407
|
-
onStatisticField:
|
|
408
|
-
outStatisticFieldName:
|
|
648
|
+
onStatisticField: l,
|
|
649
|
+
outStatisticFieldName: y
|
|
409
650
|
}
|
|
410
651
|
];
|
|
411
652
|
}
|
|
412
|
-
if (
|
|
413
|
-
let
|
|
414
|
-
if (a?.series?.[0] !== void 0 && (
|
|
415
|
-
let
|
|
416
|
-
|
|
417
|
-
size:
|
|
418
|
-
unit:
|
|
419
|
-
timeAggregationType:
|
|
420
|
-
trimIncompleteTimeInterval:
|
|
421
|
-
nullPolicy:
|
|
653
|
+
if (A(m) || v(m) || C(m) && a.series[0]?.binTemporalData) {
|
|
654
|
+
let y;
|
|
655
|
+
if (a?.series?.[0] !== void 0 && (y = H(a.series)), y !== M.BarAndLineNoAggregation && y !== M.BarAndLineSplitByNoAggregation) {
|
|
656
|
+
let g = Ft(a);
|
|
657
|
+
g === _.Quarter && (g = _.Month), m.temporalBinning = {
|
|
658
|
+
size: St(a),
|
|
659
|
+
unit: g,
|
|
660
|
+
timeAggregationType: bt(a),
|
|
661
|
+
trimIncompleteTimeInterval: Tt(a),
|
|
662
|
+
nullPolicy: ht(a)
|
|
422
663
|
};
|
|
423
664
|
}
|
|
424
665
|
}
|
|
425
666
|
return R(m);
|
|
426
667
|
}
|
|
427
|
-
function
|
|
428
|
-
const { layerFieldsInfo: s, objectIdField: a } = e,
|
|
429
|
-
let
|
|
430
|
-
if (
|
|
431
|
-
fieldName:
|
|
432
|
-
numericFields:
|
|
668
|
+
function Ae(t, e, i) {
|
|
669
|
+
const { layerFieldsInfo: s, objectIdField: a } = e, r = k(t), o = ae(t), l = Be(t), n = Y(t), c = o.length === 0 || o.includes(a), f = ge(l, i), d = c ? "" : o.map((u) => I(s ?? [], u)).join(", "), x = I(s ?? [], r), m = I(s ?? [], n), y = t.series.some((u) => C(u)), g = y ? "category" : "xAxisField", S = x;
|
|
670
|
+
let p = "";
|
|
671
|
+
if (me({
|
|
672
|
+
fieldName: r,
|
|
673
|
+
numericFields: o,
|
|
433
674
|
fieldList: s
|
|
434
675
|
}))
|
|
435
|
-
|
|
436
|
-
aggregationType:
|
|
676
|
+
p = D(i.titleLabels.aggrTypeOfAggrFields, {
|
|
677
|
+
aggregationType: f,
|
|
437
678
|
aggregationFields: d
|
|
438
679
|
});
|
|
439
|
-
else if (
|
|
440
|
-
const
|
|
441
|
-
if (
|
|
442
|
-
const q =
|
|
443
|
-
|
|
444
|
-
aggregationType:
|
|
445
|
-
[
|
|
680
|
+
else if (l === T.NoAggregation) {
|
|
681
|
+
const u = c ? a : d;
|
|
682
|
+
if (n === "") {
|
|
683
|
+
const q = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
684
|
+
p = D(i.titleLabels[q], {
|
|
685
|
+
aggregationType: u,
|
|
686
|
+
[g]: S
|
|
446
687
|
});
|
|
447
688
|
} else {
|
|
448
|
-
const q =
|
|
449
|
-
|
|
450
|
-
aggregationType:
|
|
451
|
-
[
|
|
689
|
+
const q = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
690
|
+
p = D(i.titleLabels[q], {
|
|
691
|
+
aggregationType: u,
|
|
692
|
+
[g]: S,
|
|
452
693
|
splitByField: m
|
|
453
694
|
});
|
|
454
695
|
}
|
|
455
|
-
} else if (
|
|
456
|
-
if (
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
aggregationType:
|
|
460
|
-
[
|
|
696
|
+
} else if (l === T.Count)
|
|
697
|
+
if (n === "") {
|
|
698
|
+
const u = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
699
|
+
p = D(i.titleLabels[u], {
|
|
700
|
+
aggregationType: f,
|
|
701
|
+
[g]: S
|
|
461
702
|
});
|
|
462
703
|
} else {
|
|
463
|
-
const
|
|
464
|
-
|
|
465
|
-
aggregationType:
|
|
466
|
-
[
|
|
704
|
+
const u = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
705
|
+
p = D(i.titleLabels[u], {
|
|
706
|
+
aggregationType: f,
|
|
707
|
+
[g]: S,
|
|
467
708
|
splitByField: m
|
|
468
709
|
});
|
|
469
710
|
}
|
|
470
|
-
else if (
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
aggregationType:
|
|
711
|
+
else if (n !== "") {
|
|
712
|
+
const u = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
713
|
+
p = D(i.titleLabels[u], {
|
|
714
|
+
aggregationType: f,
|
|
474
715
|
aggregationField: d,
|
|
475
|
-
[
|
|
716
|
+
[g]: S,
|
|
476
717
|
splitByField: m
|
|
477
718
|
});
|
|
478
|
-
} else if (
|
|
479
|
-
const
|
|
480
|
-
|
|
481
|
-
aggregationType:
|
|
719
|
+
} else if (o.length > 0) {
|
|
720
|
+
const u = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
721
|
+
p = D(i.titleLabels[u], {
|
|
722
|
+
aggregationType: f,
|
|
482
723
|
aggregationFields: d,
|
|
483
|
-
[
|
|
724
|
+
[g]: S
|
|
484
725
|
});
|
|
485
726
|
}
|
|
486
|
-
return
|
|
727
|
+
return p;
|
|
487
728
|
}
|
|
488
|
-
const
|
|
729
|
+
const ve = (t) => W({
|
|
489
730
|
where: t.query?.where,
|
|
490
731
|
normalize: !1,
|
|
491
732
|
escape: !1
|
|
492
|
-
}) ?? "",
|
|
733
|
+
}) ?? "", Be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? T.NoAggregation, Y = ce(
|
|
493
734
|
(t) => {
|
|
494
735
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
495
|
-
return
|
|
736
|
+
return Je(t?.series?.[0]?.query?.where) ? "" : e;
|
|
496
737
|
},
|
|
497
738
|
(t) => t?.series?.[0]?.query?.where
|
|
498
|
-
),
|
|
739
|
+
), ae = ce(
|
|
499
740
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
500
741
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
501
742
|
(t) => {
|
|
502
743
|
let e = [];
|
|
503
|
-
if (
|
|
744
|
+
if (Y(t) === "")
|
|
504
745
|
e = t?.series.map((i) => {
|
|
505
746
|
const s = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
|
|
506
747
|
return s?.length > 0 ? s : i.y;
|
|
@@ -514,399 +755,443 @@ const pe = (t) => Z({
|
|
|
514
755
|
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
515
756
|
(t) => t?.series
|
|
516
757
|
);
|
|
517
|
-
function
|
|
758
|
+
function Mt(t) {
|
|
518
759
|
const { numericFields: e, aggregationType: i, config: s, layerInfo: a } = t;
|
|
519
|
-
let
|
|
520
|
-
i ===
|
|
521
|
-
const
|
|
522
|
-
return
|
|
523
|
-
})),
|
|
524
|
-
const
|
|
525
|
-
if (
|
|
526
|
-
const
|
|
527
|
-
|
|
760
|
+
let r = !1;
|
|
761
|
+
i === T.Count ? r = !0 : i === T.NoAggregation && (r = e.every((n) => {
|
|
762
|
+
const c = a.layerFieldsInfo.find((f) => f.name === n);
|
|
763
|
+
return c !== void 0 ? oe(c) : !1;
|
|
764
|
+
})), ne(s, 1, r);
|
|
765
|
+
const o = s.series.some((n) => A(n)), l = s.series.some((n) => v(n));
|
|
766
|
+
if (o || l) {
|
|
767
|
+
const n = k(s), c = a.layerFieldsInfo.find((d) => d.name === n), f = c !== void 0 && oe(c);
|
|
768
|
+
ne(s, 0, f);
|
|
528
769
|
}
|
|
529
770
|
}
|
|
530
|
-
const
|
|
531
|
-
let e
|
|
532
|
-
|
|
533
|
-
|
|
771
|
+
const ee = (t) => {
|
|
772
|
+
let e;
|
|
773
|
+
if (K(t.series) === O.HeatSeries) {
|
|
774
|
+
const s = t.orderOptions?.data && "orderByX" in t.orderOptions.data ? t.orderOptions.data.orderByX ?? [""] : [""], a = t.orderOptions?.data && "orderByY" in t.orderOptions.data ? t.orderOptions.data.orderByY ?? [""] : [""], r = t.axes?.[0]?.valueFormat?.type === "category" ? b.Category : b.YValue, o = t.axes?.[1]?.valueFormat?.type === "category" ? b.Category : b.YValue;
|
|
775
|
+
e = [le(s, r), le(a, o)];
|
|
776
|
+
} else {
|
|
777
|
+
const s = t.orderOptions?.data?.orderType ?? b.Category, a = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : de.Ascending;
|
|
778
|
+
e = [ct(a, s)];
|
|
779
|
+
}
|
|
780
|
+
return e;
|
|
534
781
|
};
|
|
535
|
-
function
|
|
536
|
-
const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo:
|
|
537
|
-
let
|
|
538
|
-
const
|
|
782
|
+
function Pt(t) {
|
|
783
|
+
const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: o } = t, { layerFieldsInfo: l } = r;
|
|
784
|
+
let n = !1;
|
|
785
|
+
const c = E({
|
|
539
786
|
config: a,
|
|
540
787
|
xAxisField: e,
|
|
541
788
|
aggregationType: s,
|
|
542
|
-
layerInfo:
|
|
789
|
+
layerInfo: r,
|
|
543
790
|
seriesIndex: 0,
|
|
544
|
-
commonStrings:
|
|
545
|
-
}),
|
|
791
|
+
commonStrings: o
|
|
792
|
+
}), f = se({
|
|
546
793
|
config: a,
|
|
547
794
|
xAxisField: e,
|
|
548
795
|
numericFields: i,
|
|
549
796
|
aggregationType: s,
|
|
550
|
-
layer:
|
|
551
|
-
fieldList:
|
|
797
|
+
layer: r.layer,
|
|
798
|
+
fieldList: l
|
|
552
799
|
}).name, d = {
|
|
553
|
-
...
|
|
800
|
+
...c,
|
|
554
801
|
id: `series_${Date.now()}`,
|
|
555
|
-
name:
|
|
556
|
-
x:
|
|
557
|
-
y:
|
|
558
|
-
},
|
|
559
|
-
for (const
|
|
560
|
-
|
|
561
|
-
onStatisticField:
|
|
562
|
-
outStatisticFieldName: `${
|
|
802
|
+
name: o.axisLabels.values,
|
|
803
|
+
x: U,
|
|
804
|
+
y: f
|
|
805
|
+
}, x = [];
|
|
806
|
+
for (const y of i)
|
|
807
|
+
x.push({
|
|
808
|
+
onStatisticField: y,
|
|
809
|
+
outStatisticFieldName: `${y}_0`.toUpperCase(),
|
|
563
810
|
statisticType: s
|
|
564
811
|
});
|
|
565
|
-
d.query = { outStatistics:
|
|
812
|
+
d.query = { outStatistics: x };
|
|
566
813
|
const m = a.series[0];
|
|
567
|
-
return m !== void 0 && (d.id = m.id, a.colorMatch || (
|
|
814
|
+
return m !== void 0 && (d.id = m.id, a.colorMatch || (C(m) && C(d) ? d.fillSymbol = m.fillSymbol : (A(d) && A(m) || v(d) && v(m)) && (d.lineSymbol = m.lineSymbol, d.markerSymbol = m.markerSymbol), n = !0), d.id = m.id, m.name !== c.name && (d.name = m.name)), a.series.length === 1 && !a.colorMatch && (C(d) ? d.fillSymbol = a.series[0].fillSymbol : (A(d) || v(d)) && (d.lineSymbol = a.series[0].lineSymbol, d.markerSymbol = a.series[0].markerSymbol), n = !0), a.colorMatch = !n, [d];
|
|
568
815
|
}
|
|
569
|
-
function
|
|
570
|
-
const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo:
|
|
571
|
-
let
|
|
816
|
+
function Ce(t) {
|
|
817
|
+
const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: o } = t, { layerFieldsInfo: l, objectIdField: n } = r, c = [];
|
|
818
|
+
let f = !1;
|
|
572
819
|
for (let d = 0; d < i.length; d += 1) {
|
|
573
|
-
const
|
|
820
|
+
const x = E({
|
|
574
821
|
config: a,
|
|
575
822
|
xAxisField: e,
|
|
576
823
|
aggregationType: s,
|
|
577
|
-
layerInfo:
|
|
824
|
+
layerInfo: r,
|
|
578
825
|
seriesIndex: d,
|
|
579
|
-
commonStrings:
|
|
580
|
-
}), m =
|
|
826
|
+
commonStrings: o
|
|
827
|
+
}), m = se({
|
|
581
828
|
config: a,
|
|
582
829
|
xAxisField: e,
|
|
583
830
|
numericFields: i,
|
|
584
831
|
aggregationType: s,
|
|
585
|
-
layer:
|
|
832
|
+
layer: r.layer,
|
|
586
833
|
numericFieldIndex: d,
|
|
587
|
-
fieldList:
|
|
588
|
-
}).name,
|
|
589
|
-
let
|
|
590
|
-
...
|
|
834
|
+
fieldList: l
|
|
835
|
+
}).name, y = i[d];
|
|
836
|
+
let g = {
|
|
837
|
+
...x,
|
|
591
838
|
query: {
|
|
592
|
-
...
|
|
839
|
+
...x.query
|
|
593
840
|
}
|
|
594
841
|
};
|
|
595
|
-
|
|
596
|
-
...
|
|
597
|
-
id:
|
|
598
|
-
name:
|
|
842
|
+
y !== n && (g = {
|
|
843
|
+
...g,
|
|
844
|
+
id: y,
|
|
845
|
+
name: I(l, y)
|
|
599
846
|
});
|
|
600
|
-
let S =
|
|
601
|
-
|
|
847
|
+
let S = y;
|
|
848
|
+
g.query !== void 0 && (s !== T.NoAggregation ? (S = m, g.query.outStatistics = [
|
|
602
849
|
{
|
|
603
|
-
...
|
|
604
|
-
onStatisticField:
|
|
850
|
+
...x.query?.outStatistics?.[0] ?? {},
|
|
851
|
+
onStatisticField: y,
|
|
605
852
|
outStatisticFieldName: m,
|
|
606
853
|
statisticType: s
|
|
607
854
|
}
|
|
608
|
-
]) : delete
|
|
609
|
-
const
|
|
610
|
-
(
|
|
855
|
+
]) : delete g.query.outStatistics), g.y = S;
|
|
856
|
+
const p = a.series.find(
|
|
857
|
+
(u) => u.query?.outStatistics?.[0]?.onStatisticField === y && u.query.where === void 0
|
|
611
858
|
);
|
|
612
|
-
if (
|
|
613
|
-
a.colorMatch || (
|
|
614
|
-
const
|
|
859
|
+
if (p !== void 0 && typeof p.y == "string" && p.y.trim() !== "") {
|
|
860
|
+
a.colorMatch || (C(g) && C(p) ? g.fillSymbol = p.fillSymbol : (A(g) && A(p) || v(g) && v(p)) && (g.lineSymbol = p.lineSymbol, g.markerSymbol = p.markerSymbol), f = !0);
|
|
861
|
+
const u = E({
|
|
615
862
|
config: a,
|
|
616
863
|
xAxisField: e,
|
|
617
864
|
aggregationType: s,
|
|
618
|
-
layerInfo:
|
|
865
|
+
layerInfo: r,
|
|
619
866
|
seriesIndex: d,
|
|
620
|
-
commonStrings:
|
|
867
|
+
commonStrings: o
|
|
621
868
|
});
|
|
622
|
-
|
|
869
|
+
g.id = p.id, p.id !== u.id && p.name !== u.name && (g.id = p.id, g.name = p.name);
|
|
623
870
|
}
|
|
624
|
-
|
|
871
|
+
c.push(g);
|
|
625
872
|
}
|
|
626
|
-
return a.series.length === 1 &&
|
|
873
|
+
return a.series.length === 1 && c.length === 1 && !a.colorMatch && (C(a.series[0]) && C(c[0]) ? c[0].fillSymbol = a.series[0].fillSymbol : (A(a.series[0]) && A(c[0]) || v(a.series[0]) && v(c[0])) && (c[0].lineSymbol = a.series[0].lineSymbol, c[0].markerSymbol = a.series[0].markerSymbol), f = !0), a.colorMatch = !f, c;
|
|
627
874
|
}
|
|
628
|
-
async function
|
|
629
|
-
const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config:
|
|
630
|
-
config:
|
|
631
|
-
layer:
|
|
632
|
-
layerFieldsInfo:
|
|
875
|
+
async function Et(t) {
|
|
876
|
+
const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: r, layerInfo: o, commonStrings: l } = t, { layer: n, layerFieldsInfo: c } = o, { fetchNullValues: f } = r?.series?.[0]?.query ?? {}, d = i !== U ? i : void 0, { categoriesArray: x, splitByFieldType: m, numericalField: y } = await ut({
|
|
877
|
+
config: r,
|
|
878
|
+
layer: n,
|
|
879
|
+
layerFieldsInfo: c,
|
|
633
880
|
xAxisField: d,
|
|
634
881
|
aggregationFields: s,
|
|
635
882
|
splitByField: e,
|
|
636
|
-
fetchNullValues:
|
|
883
|
+
fetchNullValues: f
|
|
637
884
|
});
|
|
638
|
-
let
|
|
639
|
-
if (
|
|
640
|
-
|
|
885
|
+
let g = [], S = !1;
|
|
886
|
+
if (x.length === 0) {
|
|
887
|
+
g = Ce({
|
|
641
888
|
xAxisField: i,
|
|
642
889
|
numericFields: s,
|
|
643
890
|
aggregationType: a,
|
|
644
|
-
config:
|
|
645
|
-
layerInfo:
|
|
646
|
-
commonStrings:
|
|
891
|
+
config: r,
|
|
892
|
+
layerInfo: o,
|
|
893
|
+
commonStrings: l
|
|
647
894
|
});
|
|
648
|
-
for (const
|
|
649
|
-
|
|
895
|
+
for (const p of g)
|
|
896
|
+
p.query && (p.query.where = `${e}=''`);
|
|
650
897
|
} else
|
|
651
|
-
for (let
|
|
652
|
-
const
|
|
653
|
-
config:
|
|
898
|
+
for (let p = 0; p < x.length; p += 1) {
|
|
899
|
+
const u = x[p], q = se({
|
|
900
|
+
config: r,
|
|
654
901
|
xAxisField: i,
|
|
655
902
|
numericFields: s,
|
|
656
903
|
aggregationType: a,
|
|
657
|
-
layer:
|
|
658
|
-
seriesIndex:
|
|
904
|
+
layer: o.layer,
|
|
905
|
+
seriesIndex: p,
|
|
659
906
|
splitByField: e,
|
|
660
|
-
fieldList:
|
|
661
|
-
}).name,
|
|
662
|
-
config:
|
|
907
|
+
fieldList: c
|
|
908
|
+
}).name, P = E({
|
|
909
|
+
config: r,
|
|
663
910
|
xAxisField: i,
|
|
664
911
|
aggregationType: a,
|
|
665
|
-
layerInfo:
|
|
666
|
-
seriesIndex:
|
|
667
|
-
commonStrings:
|
|
668
|
-
}),
|
|
912
|
+
layerInfo: o,
|
|
913
|
+
seriesIndex: p,
|
|
914
|
+
commonStrings: l
|
|
915
|
+
}), Ie = {
|
|
669
916
|
fieldName: e,
|
|
670
|
-
fieldValueToMatch:
|
|
671
|
-
subtypeInfo:
|
|
672
|
-
fieldList:
|
|
673
|
-
},
|
|
674
|
-
...
|
|
675
|
-
id:
|
|
676
|
-
name:
|
|
917
|
+
fieldValueToMatch: u ?? "",
|
|
918
|
+
subtypeInfo: te(o.layer),
|
|
919
|
+
fieldList: o.layerFieldsInfo
|
|
920
|
+
}, Le = ie(Ie), z = `${u}`, h = {
|
|
921
|
+
...P,
|
|
922
|
+
id: z,
|
|
923
|
+
name: Le ?? z,
|
|
677
924
|
y: q,
|
|
678
925
|
query: {
|
|
679
|
-
...
|
|
680
|
-
where: `${e}=${m ===
|
|
681
|
-
outStatistics: a !==
|
|
926
|
+
...P.query,
|
|
927
|
+
where: `${e}=${m === fe.String && u !== null ? `'${u}'` : u}`,
|
|
928
|
+
outStatistics: a !== T.NoAggregation ? [
|
|
682
929
|
{
|
|
683
|
-
...
|
|
684
|
-
onStatisticField:
|
|
930
|
+
...P.query?.outStatistics?.[0] ?? {},
|
|
931
|
+
onStatisticField: y,
|
|
685
932
|
outStatisticFieldName: q,
|
|
686
933
|
statisticType: a
|
|
687
934
|
}
|
|
688
935
|
] : void 0
|
|
689
936
|
}
|
|
690
937
|
};
|
|
691
|
-
a ===
|
|
692
|
-
const
|
|
693
|
-
(
|
|
938
|
+
a === T.NoAggregation && (h.query !== void 0 && (delete h.query.outStatistics, delete h.query.groupByFieldsForStatistics), h.y = y);
|
|
939
|
+
const w = r.series.find(
|
|
940
|
+
(Ve) => String(ve(Ve)).trim().replace(/'/gu, "") === z
|
|
694
941
|
);
|
|
695
|
-
|
|
942
|
+
w !== void 0 && (r.colorMatch || (C(h) && C(w) ? h.fillSymbol = w.fillSymbol : (A(h) && A(w) || v(h) && v(w)) && (h.lineSymbol = w.lineSymbol, h.markerSymbol = w.markerSymbol), S = !0), h.id = w.id, h.name = w.name), g.push(h);
|
|
696
943
|
}
|
|
697
|
-
return
|
|
698
|
-
}
|
|
699
|
-
const
|
|
700
|
-
const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config:
|
|
701
|
-
let
|
|
702
|
-
const
|
|
703
|
-
if (
|
|
704
|
-
const
|
|
705
|
-
!
|
|
944
|
+
return r.colorMatch = !S, g;
|
|
945
|
+
}
|
|
946
|
+
const Js = async (t) => {
|
|
947
|
+
const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: r, layerInfo: o, commonStrings: l } = t, { layerFieldsInfo: n } = o ?? {}, c = vt(r), f = k(r), d = Rt(r, o, l), x = $t(r, o, l), m = kt(r, o);
|
|
948
|
+
let y = be(r);
|
|
949
|
+
const g = r.series.some((u) => C(u)), S = lt(r.series), p = nt(r.series);
|
|
950
|
+
if (n !== void 0) {
|
|
951
|
+
const u = Ze(n);
|
|
952
|
+
!u.includes(f) && u.includes(e) ? y = st() : u.includes(f) && !u.includes(e) && (g ? y = J() : y = at()), n.find((P) => P.name === e)?.type === fe.String && (y = J()), y !== void 0 && gt(r, l, y);
|
|
706
953
|
}
|
|
707
|
-
if (
|
|
708
|
-
|
|
709
|
-
]),
|
|
710
|
-
|
|
711
|
-
}), i === "" || s.length > 1 ?
|
|
954
|
+
if (c === 0 && (r.series = [
|
|
955
|
+
E({ config: r, xAxisField: e, aggregationType: a, layerInfo: o, commonStrings: l })
|
|
956
|
+
]), r.series.forEach((u) => {
|
|
957
|
+
u.x = e, u.query !== void 0 && (u.query.groupByFieldsForStatistics = [e]);
|
|
958
|
+
}), i === "" || s.length > 1 ? me({
|
|
712
959
|
fieldName: e,
|
|
713
960
|
numericFields: s,
|
|
714
|
-
fieldList:
|
|
715
|
-
}) ?
|
|
716
|
-
config:
|
|
717
|
-
layerInfo:
|
|
961
|
+
fieldList: n
|
|
962
|
+
}) ? r.series = Pt({
|
|
963
|
+
config: r,
|
|
964
|
+
layerInfo: o,
|
|
718
965
|
xAxisField: e,
|
|
719
966
|
numericFields: s,
|
|
720
967
|
aggregationType: a,
|
|
721
|
-
commonStrings:
|
|
722
|
-
}) :
|
|
723
|
-
config:
|
|
724
|
-
layerInfo:
|
|
968
|
+
commonStrings: l
|
|
969
|
+
}) : r.series = Ce({
|
|
970
|
+
config: r,
|
|
971
|
+
layerInfo: o,
|
|
725
972
|
xAxisField: e,
|
|
726
973
|
numericFields: s,
|
|
727
974
|
aggregationType: a,
|
|
728
|
-
commonStrings:
|
|
729
|
-
}) : (await Promise.resolve(),
|
|
730
|
-
config:
|
|
731
|
-
layerInfo:
|
|
975
|
+
commonStrings: l
|
|
976
|
+
}) : (await Promise.resolve(), r.series = await Et({
|
|
977
|
+
config: r,
|
|
978
|
+
layerInfo: o,
|
|
732
979
|
splitByField: i,
|
|
733
980
|
xAxisField: e,
|
|
734
981
|
numericFields: s,
|
|
735
982
|
aggregationType: a,
|
|
736
|
-
commonStrings:
|
|
983
|
+
commonStrings: l
|
|
737
984
|
})), m) {
|
|
738
|
-
const
|
|
739
|
-
|
|
985
|
+
const u = I(n, e);
|
|
986
|
+
j(r, 0, u);
|
|
740
987
|
}
|
|
741
|
-
if (
|
|
742
|
-
const
|
|
743
|
-
config:
|
|
744
|
-
layerInfo:
|
|
745
|
-
commonStrings:
|
|
988
|
+
if (x) {
|
|
989
|
+
const u = xe({
|
|
990
|
+
config: r,
|
|
991
|
+
layerInfo: o,
|
|
992
|
+
commonStrings: l,
|
|
746
993
|
numericFields: s,
|
|
747
994
|
aggregationType: a
|
|
748
995
|
});
|
|
749
|
-
|
|
996
|
+
j(r, 1, u);
|
|
750
997
|
}
|
|
751
|
-
if (
|
|
752
|
-
|
|
753
|
-
const
|
|
754
|
-
|
|
998
|
+
if (r.title && d && (r.title.content.text = Ae(r, o, l)), F({ config: r, value: null, axisIndex: 1, isMax: !1 }), F({ config: r, value: null, axisIndex: 1, isMax: !0 }), Mt({ numericFields: s, aggregationType: a, config: r, layerInfo: o }), S || p) {
|
|
999
|
+
F({ config: r, value: null, axisIndex: 0, isMax: !1 }), F({ config: r, value: null, axisIndex: 0, isMax: !0 }), Te(0, r);
|
|
1000
|
+
const u = y?.type === O.DateAxisFormat ? G.Null : G.Interpolate;
|
|
1001
|
+
At(u, r);
|
|
755
1002
|
}
|
|
756
|
-
},
|
|
757
|
-
const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t,
|
|
758
|
-
let
|
|
759
|
-
if (
|
|
760
|
-
|
|
761
|
-
else if (
|
|
762
|
-
const
|
|
763
|
-
|
|
1003
|
+
}, Zs = (t) => {
|
|
1004
|
+
const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i], o = Y(e);
|
|
1005
|
+
let l;
|
|
1006
|
+
if (H(e.series) === M.BarAndLineFromFields)
|
|
1007
|
+
l = a.axisLabels.values;
|
|
1008
|
+
else if (Ne(o)) {
|
|
1009
|
+
const c = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
1010
|
+
c !== void 0 && c !== s.objectIdField && (l = I(s.layerFieldsInfo, c));
|
|
764
1011
|
} else {
|
|
765
|
-
const
|
|
766
|
-
fieldName:
|
|
767
|
-
fieldValueToMatch:
|
|
768
|
-
subtypeInfo:
|
|
1012
|
+
const c = String(ve(r)).trim().replace(/'/gu, ""), f = {
|
|
1013
|
+
fieldName: Y(e),
|
|
1014
|
+
fieldValueToMatch: c ?? "",
|
|
1015
|
+
subtypeInfo: te(s.layer),
|
|
769
1016
|
fieldList: s.layerFieldsInfo
|
|
770
1017
|
};
|
|
771
|
-
|
|
1018
|
+
l = ie(f) ?? c;
|
|
772
1019
|
}
|
|
773
|
-
return
|
|
774
|
-
},
|
|
775
|
-
e
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1020
|
+
return l ?? r.id;
|
|
1021
|
+
}, ea = (t, e) => {
|
|
1022
|
+
if (Dt(e))
|
|
1023
|
+
wt(t, e);
|
|
1024
|
+
else {
|
|
1025
|
+
e.orderOptions ??= {};
|
|
1026
|
+
const i = e.orderOptions?.data?.orderType;
|
|
1027
|
+
ee(e)[0] === Z.customSort && i === b.Category && (e.orderOptions.data = {
|
|
1028
|
+
orderType: b.Category,
|
|
1029
|
+
orderBy: [...t]
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
}, ta = async (t, e) => {
|
|
1033
|
+
const i = k(t), s = be(t)?.type, a = ae(t), r = H(t.series);
|
|
1034
|
+
let o = [];
|
|
1035
|
+
return s === O.CategoryAxisFormat && (r === M.BarAndLineFromFields || i === U ? o = a.map((l) => I(e?.layerFieldsInfo, l)) : i.trim() !== "" && i !== U && e !== void 0 && (o = await yt({
|
|
785
1036
|
layerInfo: e,
|
|
786
1037
|
config: t,
|
|
787
1038
|
category: i
|
|
788
|
-
}))),
|
|
1039
|
+
}))), o;
|
|
789
1040
|
};
|
|
790
|
-
function
|
|
791
|
-
const s =
|
|
792
|
-
return s === a ||
|
|
1041
|
+
function Rt(t, e, i) {
|
|
1042
|
+
const s = Ae(t, e, i), a = mt(t), r = $(t);
|
|
1043
|
+
return s === a || r;
|
|
793
1044
|
}
|
|
794
|
-
function
|
|
795
|
-
const s =
|
|
1045
|
+
function $t(t, e, i) {
|
|
1046
|
+
const s = xe({
|
|
796
1047
|
config: t,
|
|
797
1048
|
layerInfo: e,
|
|
798
1049
|
commonStrings: i,
|
|
799
|
-
numericFields:
|
|
800
|
-
aggregationType:
|
|
801
|
-
}), a =
|
|
802
|
-
return s === a ||
|
|
1050
|
+
numericFields: ae(t),
|
|
1051
|
+
aggregationType: Be(t)
|
|
1052
|
+
}), a = X(1, t), r = $(t);
|
|
1053
|
+
return s === a || r;
|
|
803
1054
|
}
|
|
804
|
-
function
|
|
805
|
-
const i =
|
|
1055
|
+
function kt(t, e) {
|
|
1056
|
+
const i = I(e.layerFieldsInfo, k(t)), s = X(0, t), a = $(t);
|
|
806
1057
|
return i === s || a;
|
|
807
1058
|
}
|
|
808
|
-
function
|
|
1059
|
+
function ia(t) {
|
|
809
1060
|
return t.series[0]?.binTemporalData ?? !1;
|
|
810
1061
|
}
|
|
811
|
-
function
|
|
1062
|
+
function sa(t, e) {
|
|
812
1063
|
e?.series.forEach((i) => {
|
|
813
1064
|
(i?.type === O.BarSeries || i?.type === O.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
|
|
814
|
-
unit:
|
|
1065
|
+
unit: _.Day,
|
|
815
1066
|
size: 0,
|
|
816
|
-
timeAggregationType:
|
|
1067
|
+
timeAggregationType: qe.Start,
|
|
817
1068
|
trimIncompleteTimeInterval: !0,
|
|
818
|
-
nullPolicy:
|
|
1069
|
+
nullPolicy: G.Null
|
|
819
1070
|
} : delete i.temporalBinning);
|
|
820
1071
|
});
|
|
821
1072
|
}
|
|
822
1073
|
export {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
1074
|
+
ut as $,
|
|
1075
|
+
Ds as A,
|
|
1076
|
+
Bs as B,
|
|
1077
|
+
Cs as C,
|
|
1078
|
+
Es as D,
|
|
1079
|
+
Ps as E,
|
|
1080
|
+
$s as F,
|
|
1081
|
+
Rs as G,
|
|
1082
|
+
Ls as H,
|
|
1083
|
+
Is as I,
|
|
1084
|
+
Ns as J,
|
|
1085
|
+
Vs as K,
|
|
1086
|
+
Us as L,
|
|
1087
|
+
js as M,
|
|
1088
|
+
Ys as N,
|
|
1089
|
+
Ks as O,
|
|
1090
|
+
Xs as P,
|
|
1091
|
+
ks as Q,
|
|
1092
|
+
Ws as R,
|
|
1093
|
+
Hs as S,
|
|
1094
|
+
zs as T,
|
|
1095
|
+
Qs as U,
|
|
1096
|
+
Gs as V,
|
|
1097
|
+
_s as W,
|
|
1098
|
+
cs as X,
|
|
1099
|
+
be as Y,
|
|
1100
|
+
yt as Z,
|
|
1101
|
+
gt as _,
|
|
1102
|
+
X as a,
|
|
1103
|
+
As as a$,
|
|
1104
|
+
ne as a0,
|
|
1105
|
+
Oi as a1,
|
|
1106
|
+
Ii as a2,
|
|
1107
|
+
Li as a3,
|
|
1108
|
+
Vi as a4,
|
|
1109
|
+
Ni as a5,
|
|
1110
|
+
qi as a6,
|
|
1111
|
+
wi as a7,
|
|
1112
|
+
Di as a8,
|
|
1113
|
+
Mi as a9,
|
|
1114
|
+
Ft as aA,
|
|
1115
|
+
ys as aB,
|
|
1116
|
+
bt as aC,
|
|
1117
|
+
gs as aD,
|
|
1118
|
+
Tt as aE,
|
|
1119
|
+
fs as aF,
|
|
1120
|
+
ht as aG,
|
|
1121
|
+
At as aH,
|
|
1122
|
+
ps as aI,
|
|
1123
|
+
Ti as aJ,
|
|
1124
|
+
Wi as aK,
|
|
1125
|
+
Hi as aL,
|
|
1126
|
+
ss as aM,
|
|
1127
|
+
hi as aN,
|
|
1128
|
+
Ai as aO,
|
|
1129
|
+
vi as aP,
|
|
1130
|
+
Bi as aQ,
|
|
1131
|
+
Ci as aR,
|
|
1132
|
+
_i as aS,
|
|
1133
|
+
Ji as aT,
|
|
1134
|
+
Zi as aU,
|
|
1135
|
+
es as aV,
|
|
1136
|
+
ts as aW,
|
|
1137
|
+
is as aX,
|
|
1138
|
+
as as aY,
|
|
1139
|
+
rs as aZ,
|
|
1140
|
+
os as a_,
|
|
1141
|
+
Pi as aa,
|
|
1142
|
+
xt as ab,
|
|
1143
|
+
Ei as ac,
|
|
1144
|
+
Ri as ad,
|
|
1145
|
+
$i as ae,
|
|
1146
|
+
ms as af,
|
|
1147
|
+
vt as ag,
|
|
1148
|
+
xs as ah,
|
|
1149
|
+
Ss as ai,
|
|
1150
|
+
ns as aj,
|
|
1151
|
+
ls as ak,
|
|
1152
|
+
ds as al,
|
|
1153
|
+
us as am,
|
|
1154
|
+
zi as an,
|
|
1155
|
+
Qi as ao,
|
|
1156
|
+
Gi as ap,
|
|
878
1157
|
Fi as aq,
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
1158
|
+
bi as ar,
|
|
1159
|
+
ki as as,
|
|
1160
|
+
Xi as at,
|
|
1161
|
+
Ui as au,
|
|
1162
|
+
ji as av,
|
|
1163
|
+
Yi as aw,
|
|
1164
|
+
Ki as ax,
|
|
1165
|
+
St as ay,
|
|
1166
|
+
Te as az,
|
|
1167
|
+
xe as b,
|
|
1168
|
+
hs as b0,
|
|
1169
|
+
Ts as b1,
|
|
1170
|
+
Fs as b2,
|
|
1171
|
+
bs as b3,
|
|
1172
|
+
he as b4,
|
|
1173
|
+
Zs as c,
|
|
1174
|
+
Si as d,
|
|
1175
|
+
xi as e,
|
|
1176
|
+
ee as f,
|
|
1177
|
+
mt as g,
|
|
1178
|
+
ta as h,
|
|
1179
|
+
mi as i,
|
|
1180
|
+
ea as j,
|
|
1181
|
+
ia as k,
|
|
1182
|
+
sa as l,
|
|
1183
|
+
Be as m,
|
|
1184
|
+
Y as n,
|
|
1185
|
+
ae as o,
|
|
1186
|
+
Js as p,
|
|
1187
|
+
Ae as q,
|
|
1188
|
+
Ot as r,
|
|
1189
|
+
F as s,
|
|
1190
|
+
vs as t,
|
|
1191
|
+
j as u,
|
|
1192
|
+
qt as v,
|
|
1193
|
+
Os as w,
|
|
1194
|
+
ws as x,
|
|
1195
|
+
qs as y,
|
|
1196
|
+
Ms as z
|
|
912
1197
|
};
|