@arcgis/charts-components 5.0.0-next.149 → 5.0.0-next.150
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/README.md +2 -4
- package/dist/cdn/2ATTYJG6.js +2 -0
- package/dist/cdn/2CTKBS47.js +2 -0
- package/dist/cdn/2TUSY77N.js +2 -0
- package/dist/cdn/3C4HBCTV.js +2 -0
- package/dist/cdn/3MXDGSBY.js +2 -0
- package/dist/cdn/3NIVTPH5.js +2 -0
- package/dist/cdn/3Q2BMY2L.js +2 -0
- package/dist/cdn/4DH3GZII.js +2 -0
- package/dist/cdn/{Z255YC4E.js → 4KZSOP76.js} +1 -1
- package/dist/cdn/4UDVEHW7.js +2 -0
- package/dist/cdn/4ZDZD6FW.js +2 -0
- package/dist/cdn/5L3VUKGY.js +2 -0
- package/dist/cdn/{NPTAS3PB.js → 6B7P3OWP.js} +1 -1
- package/dist/cdn/6G6VPJ6K.js +2 -0
- package/dist/cdn/6L2NFOQY.js +2 -0
- package/dist/cdn/6UGQKSVS.js +2 -0
- package/dist/cdn/6VS2BUNX.js +2 -0
- package/dist/cdn/72ILHP4O.js +2 -0
- package/dist/cdn/7AXTHOAU.js +2 -0
- package/dist/cdn/{FPVMDAVP.js → 7K4VZYMF.js} +1 -1
- package/dist/cdn/{E7NSRJS7.js → 7KL2S53W.js} +1 -1
- package/dist/cdn/7QTZ5O4B.js +2 -0
- package/dist/cdn/7YWK5AX4.js +2 -0
- package/dist/cdn/ASYHUBK5.js +2 -0
- package/dist/cdn/{CB2EYCDF.js → AUSXHSLY.js} +1 -1
- package/dist/cdn/AZYWNZ5K.js +2 -0
- package/dist/cdn/BQQLJHIU.js +2 -0
- package/dist/cdn/BRLZ2A7F.js +2 -0
- package/dist/cdn/BZYRPXHD.js +2 -0
- package/dist/cdn/C6RJHADU.js +2 -0
- package/dist/cdn/CEVAPOOF.js +2 -0
- package/dist/cdn/{OHBHUABJ.js → CHYRXR3K.js} +1 -1
- package/dist/cdn/CRNVPN6B.js +2 -0
- package/dist/cdn/CSV2VTSA.js +2 -0
- package/dist/cdn/{W66EH66K.js → CZ3Y6FRM.js} +1 -1
- package/dist/cdn/DJLJ5P4N.js +2 -0
- package/dist/cdn/DKJ7FFOL.js +2 -0
- package/dist/cdn/{BVAXFPTE.js → DPJE33GY.js} +1 -1
- package/dist/cdn/{Z4XTLHV3.js → EGHGISFS.js} +1 -1
- package/dist/cdn/F6PKNIKI.js +2 -0
- package/dist/cdn/FTZVIGVW.js +2 -0
- package/dist/cdn/GJWPFACV.js +2 -0
- package/dist/cdn/H2ABG252.js +2 -0
- package/dist/cdn/{IBPSHNO6.js → H4ULSC2D.js} +1 -1
- package/dist/cdn/HEN5PMZU.js +2 -0
- package/dist/cdn/HPG3LCZN.js +2 -0
- package/dist/cdn/HT5B7AY6.js +2 -0
- package/dist/cdn/IARNAL5N.js +9 -0
- package/dist/cdn/IBKDU34P.js +2 -0
- package/dist/cdn/{737LK3MK.js → IR2XD6P6.js} +3 -3
- package/dist/cdn/{UF2PXUST.js → IXYFMAZY.js} +1 -1
- package/dist/cdn/JO6AAGBV.js +2 -0
- package/dist/cdn/{5Z2N5G2K.js → JTDP2THJ.js} +1 -1
- package/dist/cdn/KA4BSBVA.js +2 -0
- package/dist/cdn/KBKA3QP3.js +2 -0
- package/dist/cdn/KDYJOJ2S.js +2 -0
- package/dist/cdn/KISYVPQA.js +2 -0
- package/dist/cdn/{2NWN5I6T.js → KTHE5IC6.js} +1 -1
- package/dist/cdn/{ZAIDOCYY.js → LHEOE5LN.js} +1 -1
- package/dist/cdn/MAUJ4HUQ.js +2 -0
- package/dist/cdn/MGJN25XS.js +2 -0
- package/dist/cdn/MQRY2EYZ.js +2 -0
- package/dist/cdn/MR5ORMVY.js +2 -0
- package/dist/cdn/MZSNIA3C.js +2 -0
- package/dist/cdn/NA4ZFNCV.js +2 -0
- package/dist/cdn/NMLR7I33.js +2 -0
- package/dist/cdn/{NDRUBDOF.js → NNS7M7OW.js} +1 -1
- package/dist/cdn/{QUWXB6XH.js → NOGZZTAP.js} +1 -1
- package/dist/cdn/NZZFA6F6.js +2 -0
- package/dist/cdn/{OF3VUOXY.js → O4D2KFXK.js} +1 -1
- package/dist/cdn/O4NETRGZ.js +2 -0
- package/dist/cdn/OQNPUVUK.js +2 -0
- package/dist/cdn/PPJ4YIYD.js +2 -0
- package/dist/cdn/PT44XBUL.js +2 -0
- package/dist/cdn/QFHFFY63.js +32 -0
- package/dist/cdn/QSS4DLDZ.js +2 -0
- package/dist/cdn/REHRP6LK.js +2 -0
- package/dist/cdn/SK3SXWIS.js +2 -0
- package/dist/cdn/SUK2EU7N.js +2 -0
- package/dist/cdn/SWNLXRQP.js +2 -0
- package/dist/cdn/TAHOH5D6.js +2 -0
- package/dist/cdn/TJFJHDEJ.js +2 -0
- package/dist/cdn/TKGRT45N.js +2 -0
- package/dist/cdn/{CLEHXDRG.js → TKUAPKCR.js} +1 -1
- package/dist/cdn/{YJ5B4PNE.js → TTLM6X2H.js} +1 -1
- package/dist/cdn/TVTAA4IC.js +2 -0
- package/dist/cdn/UIOMTO3X.js +2 -0
- package/dist/cdn/{3YZMWGH2.js → UNK6HRSC.js} +1 -1
- package/dist/cdn/VPR47IMP.js +2 -0
- package/dist/cdn/{MB3EVMIM.js → W26BDESX.js} +1 -1
- package/dist/cdn/{LBO2EK4A.js → WUYK6PKY.js} +1 -1
- package/dist/cdn/X2HDENND.js +2 -0
- package/dist/cdn/Y6GE3FLR.js +2 -0
- package/dist/cdn/ZALZRTR5.js +2 -0
- package/dist/cdn/{YGNXHR5T.js → ZJG2TJC6.js} +1 -1
- package/dist/cdn/{TXSCRECL.js → ZL3FVX4B.js} +2 -2
- package/dist/cdn/{IYCVQI4V.js → ZMA6K5G6.js} +1 -1
- package/dist/cdn/ZUI6QY5V.js +2 -0
- package/dist/cdn/ZYBAYHZU.js +2 -0
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +15 -16
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/box-plot-data.js +3 -3
- package/dist/chunks/box-plot-model.js +69 -67
- package/dist/chunks/chart-model.js +527 -0
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +13 -12
- package/dist/chunks/combo-bar-line-chart-model.js +40 -41
- package/dist/chunks/data.js +4 -4
- package/dist/chunks/default.js +5 -4
- package/dist/chunks/gauge-model.js +19 -18
- package/dist/chunks/generate-x-axis-title.js +1 -1
- package/dist/chunks/heat-chart-model.js +42 -43
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +43 -42
- package/dist/chunks/index.js +1128 -1195
- package/dist/chunks/interfaces.js +31 -30
- package/dist/chunks/line-chart-model.js +15 -15
- package/dist/chunks/model-setter.js +23 -18
- package/dist/chunks/model-with-guides.js +317 -0
- package/dist/chunks/model-with-line-marker-styling.js +177 -0
- package/dist/chunks/model-with-tooltips.js +315 -0
- package/dist/chunks/model-with-x-guides.js +49 -0
- package/dist/chunks/model-with-y-guides.js +629 -0
- package/dist/chunks/negative-values-stacked-to-baseline.js +77 -19
- package/dist/chunks/pie-chart-data.js +2 -2
- package/dist/chunks/pie-chart-model.js +18 -18
- package/dist/chunks/radar-chart-model.js +8 -8
- package/dist/chunks/resource.js +5 -4
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +54 -52
- package/dist/chunks/serial-chart-data.js +322 -371
- package/dist/chunks/serial-chart-model.js +295 -138
- package/dist/chunks/series-length.js +79 -0
- package/dist/chunks/series.js +37 -0
- package/dist/chunks/setup-utils.js +79 -0
- package/dist/chunks/type-guards.js +45 -44
- package/dist/chunks/utils.js +3 -3
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +63 -61
- package/dist/components/arcgis-chart/customElement.d.ts +9 -0
- package/dist/components/arcgis-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +6 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- 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 +1 -1
- 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-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/resource.d.ts +9 -0
- 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 +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/resource.d.ts +8 -0
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- 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-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 +1 -1
- 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 -0
- 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 +1 -1
- 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 +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces.d.ts +77 -0
- package/dist/json-schema/index.d.ts +8498 -0
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +9 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +14 -28
- package/dist/model/chart-model/chart-model-base.d.ts +1 -0
- package/dist/model/chart-model/chart-model.d.ts +2 -31
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +11 -9
- package/dist/model/gauge-model/gauge-model.d.ts +12 -18
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +17 -2
- package/dist/model/histogram-model/histogram-model.d.ts +15 -27
- package/dist/model/line-chart-model/line-chart-model.d.ts +12 -11
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +1 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +1 -0
- package/dist/model/mixins/model-with-x-guides.d.ts +2 -8
- package/dist/model/mixins/model-with-y-guides.d.ts +2 -8
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +2 -8
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +12 -14
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +12 -11
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +16 -29
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +9 -31
- package/dist/model.js +38 -112
- package/dist/spec/config-defaults.d.ts +4 -0
- package/dist/spec/rest-js-types.d.ts +89 -224
- package/dist/spec/web-chart.d.ts +1 -2
- package/dist/utils/chart-config/interfaces.d.ts +3 -0
- package/dist/utils/chart-config/utils/index.d.ts +39 -1
- package/dist/utils/chart-config/utils/interfaces.d.ts +2 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +19 -7
- package/dist/utils/components/event-payloads.d.ts +9 -0
- package/dist/utils/data/categorical-data/index.d.ts +1 -0
- package/dist/utils/data/index.d.ts +12 -0
- package/dist/utils/data/interfaces.d.ts +6 -0
- package/dist/utils/data/time-binning/interfaces.d.ts +6 -0
- package/dist/utils/defaults/index.d.ts +135 -15
- package/dist/utils/defaults/interfaces.d.ts +4 -0
- package/dist/utils/layer/index.d.ts +40 -0
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +2 -0
- package/dist/utils/layer/interfaces.d.ts +15 -2
- package/dist/utils/layer/query-features/index.d.ts +26 -1
- package/dist/utils/layer/query-features/interfaces.d.ts +3 -0
- package/dist/utils/layer/query-parser/index.d.ts +15 -1
- package/dist/utils/layer/utils/index.d.ts +16 -0
- package/dist/utils/localization/index.d.ts +10 -0
- package/dist/utils/localization/interfaces.d.ts +11 -0
- package/dist/utils/misc/index.d.ts +29 -0
- package/dist/utils/type-guards/index.d.ts +38 -3
- package/dist/utils/type-guards/series-types.d.ts +18 -0
- package/dist/utils/types/index.d.ts +31 -6
- package/dist/utils/ui/chart-ui-utils.d.ts +6 -1
- package/dist/utils/ui/popover-ui-utils.d.ts +3 -0
- package/package.json +3 -3
- package/dist/cdn/3IFN5UNC.js +0 -2
- package/dist/cdn/3NE6BHA7.js +0 -2
- package/dist/cdn/3T66I3AV.js +0 -2
- package/dist/cdn/4G3CMZYX.js +0 -2
- package/dist/cdn/5NFDDXIZ.js +0 -2
- package/dist/cdn/5ZDTPYVX.js +0 -2
- package/dist/cdn/73DP7O6V.js +0 -2
- package/dist/cdn/7BYBNK4D.js +0 -2
- package/dist/cdn/7J55VBBP.js +0 -2
- package/dist/cdn/7JHAQ55T.js +0 -2
- package/dist/cdn/7MK2A5CN.js +0 -2
- package/dist/cdn/7QAEPVLP.js +0 -2
- package/dist/cdn/AZXSIAD5.js +0 -2
- package/dist/cdn/B4ONKX76.js +0 -2
- package/dist/cdn/BGRFXQBF.js +0 -2
- package/dist/cdn/BRSFMI7W.js +0 -2
- package/dist/cdn/BZBPPMPO.js +0 -2
- package/dist/cdn/CCE73L6Y.js +0 -2
- package/dist/cdn/CN4JJBQD.js +0 -2
- package/dist/cdn/CSGEEI34.js +0 -2
- package/dist/cdn/E7HMRRLS.js +0 -2
- package/dist/cdn/EJUACEYV.js +0 -2
- package/dist/cdn/F2EEAM7D.js +0 -2
- package/dist/cdn/F32ALQAF.js +0 -2
- package/dist/cdn/FDMFAAYD.js +0 -32
- package/dist/cdn/GXU3KAZJ.js +0 -2
- package/dist/cdn/HBBVQMKS.js +0 -2
- package/dist/cdn/HKS7OKQ2.js +0 -2
- package/dist/cdn/IDUT4PPZ.js +0 -2
- package/dist/cdn/ITOFPGYG.js +0 -2
- package/dist/cdn/K35SAKH6.js +0 -2
- package/dist/cdn/K7PHN6CK.js +0 -2
- package/dist/cdn/KFJDBWIX.js +0 -2
- package/dist/cdn/KJZSK5YZ.js +0 -2
- package/dist/cdn/KTAVV3VX.js +0 -2
- package/dist/cdn/KTLKB6B4.js +0 -2
- package/dist/cdn/KVD56MDM.js +0 -2
- package/dist/cdn/L53UCZR6.js +0 -2
- package/dist/cdn/L7C7MUW3.js +0 -2
- package/dist/cdn/LWCWU4HZ.js +0 -2
- package/dist/cdn/MJMTX7G3.js +0 -2
- package/dist/cdn/MKUWP4YO.js +0 -2
- package/dist/cdn/OLWAY6BU.js +0 -2
- package/dist/cdn/P4IJGBEM.js +0 -2
- package/dist/cdn/PHOC6W4U.js +0 -2
- package/dist/cdn/PTHMEJ4M.js +0 -2
- package/dist/cdn/Q4XRMPTN.js +0 -2
- package/dist/cdn/Q65AFAC2.js +0 -2
- package/dist/cdn/QEUQO5PH.js +0 -2
- package/dist/cdn/QJ7AL2JA.js +0 -2
- package/dist/cdn/QR6LWJA6.js +0 -2
- package/dist/cdn/QRNC5B3Q.js +0 -2
- package/dist/cdn/QZQBEPBF.js +0 -2
- package/dist/cdn/R23O2O7W.js +0 -2
- package/dist/cdn/TTDJJ46R.js +0 -2
- package/dist/cdn/TZ6AFED4.js +0 -2
- package/dist/cdn/UMDCLTNE.js +0 -2
- package/dist/cdn/VPVSYP2L.js +0 -2
- package/dist/cdn/VZR5LOQW.js +0 -2
- package/dist/cdn/W7MNTZT7.js +0 -2
- package/dist/cdn/XRRVOQJ3.js +0 -2
- package/dist/cdn/XSDOT2VC.js +0 -2
- package/dist/cdn/YJC6B2JE.js +0 -2
- package/dist/cdn/YMO37QWY.js +0 -9
- package/dist/cdn/Z2RUBKU7.js +0 -2
- package/dist/cdn/ZEKY74JE.js +0 -2
- package/dist/cdn/ZWPLVA7G.js +0 -2
- package/dist/cdn/ZXRU5IEE.js +0 -2
- package/dist/chunks/data-labels-visibility.js +0 -87
- package/dist/chunks/model-with-multi-axes.js +0 -1995
- package/dist/chunks/x-axis-labels-visibility.js +0 -68
- package/dist/model/shared/utils.d.ts +0 -4
- /package/dist/cdn/{CF5YAZDQ.js → 2BRTKEX6.js} +0 -0
- /package/dist/cdn/{S24EVUYE.js → F4KKUFSS.js} +0 -0
- /package/dist/cdn/{OJHML5IU.js → Z5QOLHIZ.js} +0 -0
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { substitute as D } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as re, memoize as ne, isEmpty as Ce } from "lodash-es";
|
|
4
|
+
import "@arcgis/toolkit/type";
|
|
5
|
+
import { w as Be, a as L, d as be, t as A, g as Ae, W as M, m as j, n as ve, i as H } from "./series-types.js";
|
|
6
|
+
import { R as le, f as Ie } from "./rest-js-object-literals.js";
|
|
7
|
+
import { U as Le, cH as qe, o as X, df as w, j as Ne, cF as we, bL as Ve, bX as Oe, am as De, q as N, p as Me, dm as ke, cB as Pe, dn as Z, cc as Re, c8 as Ee, k as oe, Z as Y, cY as V, dk as $e, di as E, bK as K, bQ as de, bR as ue, br as Ue, dh as ce, l as Xe, b as $, bO as Ye, b3 as Ke, b4 as We, a_ as je, b6 as He, bN as ee, aL as Qe, aK as te, aM as ze } from "./index.js";
|
|
3
8
|
import "@arcgis/toolkit/intl";
|
|
4
|
-
import { cloneDeep as le, memoize as oe, isEmpty as ve } from "lodash-es";
|
|
5
9
|
import "luxon";
|
|
6
10
|
import "d3-array";
|
|
7
|
-
import { U as Ie, cH as Le, o as X, df as V, j as we, cF as qe, bL as Ve, bX as Ne, am as Oe, q, p as De, dm as Pe, cB as Me, dn as te, cc as ke, c8 as Re, k as G, aI as Ee, aG as $e, bB as Ue, Z as W, cY as N, dk as Xe, di as E, bK as Y, bQ as de, bR as ue, br as We, dh as ce, l as Ye, b as $, bO as je, b3 as Ke, b4 as _e, a_ as He, b6 as Qe, bN as ie, aL as ze, aK as se, aM as Ge } from "./index.js";
|
|
8
|
-
import "@esri/arcgis-html-sanitizer";
|
|
9
|
-
import { w as Je, a as L, d as Ze, t as A, g as et, W as P, m as K, n as tt, i as _ } from "./series-types.js";
|
|
10
11
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
11
12
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
12
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
13
13
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
14
14
|
import "@arcgis/core/time/TimeExtent.js";
|
|
15
15
|
import "@arcgis/core/core/promiseUtils.js";
|
|
16
16
|
import "@arcgis/core/request.js";
|
|
17
17
|
import "./runtime.js";
|
|
18
|
+
import { h as ye, l as v, o as _e, p as Ge, j as x, k as C, m as ie } from "./index4.js";
|
|
18
19
|
import "@arcgis/toolkit/dom";
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
20
|
+
import { S as Q } from "./common.js";
|
|
21
|
+
import "@esri/arcgis-html-sanitizer";
|
|
22
|
+
import { s as I, u as k, d as ge, e as Je, f as Ze, g as me, h as et, j as se } from "./utils.js";
|
|
23
|
+
import { b as R, c as pe, g as _, e as ae, f as tt } from "./data.js";
|
|
24
|
+
import { b as it, g as st } from "./series-length.js";
|
|
25
|
+
import { g as G } from "./utils2.js";
|
|
25
26
|
import "@arcgis/core/Graphic.js";
|
|
26
27
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
27
28
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -30,70 +31,69 @@ import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
|
30
31
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
31
32
|
import "simple-statistics";
|
|
32
33
|
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
33
|
-
import {
|
|
34
|
-
|
|
35
|
-
function Si(t, e) {
|
|
34
|
+
import { c as at } from "./index2.js";
|
|
35
|
+
function ni(t, e) {
|
|
36
36
|
let i;
|
|
37
37
|
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function li(t, e) {
|
|
40
40
|
let i;
|
|
41
41
|
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function oi(t, e) {
|
|
44
44
|
let i;
|
|
45
45
|
return e !== void 0 && (i = { ...e, rotated: t }), i;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function rt(t) {
|
|
48
48
|
let e;
|
|
49
49
|
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;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e != null ||
|
|
51
|
+
function di(t, e) {
|
|
52
|
+
return e != null || ye(t);
|
|
53
53
|
}
|
|
54
|
-
async function
|
|
54
|
+
async function nt(t) {
|
|
55
55
|
const { queryObject: e, chartConfig: i, options: r, splitByField: a } = t;
|
|
56
56
|
let s = [], n;
|
|
57
|
-
const l =
|
|
57
|
+
const l = re(i), o = l.series[0], d = Oe({
|
|
58
58
|
queryObject: e,
|
|
59
59
|
chartConfig: l,
|
|
60
60
|
runtimeDataFilters: r?.runtimeDataFilters,
|
|
61
61
|
ignoreViewExtent: r?.ignoreViewExtent
|
|
62
62
|
});
|
|
63
|
-
if (d.outStatistics?.[0]?.outStatisticFieldName && (d.outStatistics[0].outStatisticFieldName =
|
|
64
|
-
xAxisValueFormatType:
|
|
63
|
+
if (d.outStatistics?.[0]?.outStatisticFieldName && (d.outStatistics[0].outStatisticFieldName = De.outStatistics.outStatisticFieldName), N(o) && Me({
|
|
64
|
+
xAxisValueFormatType: ke(l),
|
|
65
65
|
setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
|
|
66
66
|
seriesConfig: o
|
|
67
|
-
}) &&
|
|
68
|
-
const { temporalBinning: f, x: c } = o, { uniqueQuery:
|
|
67
|
+
}) && Pe(e)) {
|
|
68
|
+
const { temporalBinning: f, x: c } = o, { uniqueQuery: F } = await Z({
|
|
69
69
|
chartConfig: l,
|
|
70
70
|
queryConfig: d,
|
|
71
71
|
queryObject: e,
|
|
72
72
|
options: r
|
|
73
73
|
});
|
|
74
|
-
n = await
|
|
74
|
+
n = await Re({
|
|
75
75
|
queryObject: e,
|
|
76
76
|
dateField: c,
|
|
77
77
|
splitByField: a,
|
|
78
|
-
queryConfig:
|
|
78
|
+
queryConfig: F,
|
|
79
79
|
temporalBinning: f
|
|
80
80
|
}), s = Array.from(
|
|
81
81
|
new Set(
|
|
82
82
|
n.flatMap((S) => {
|
|
83
83
|
const { stackedAttributes: g } = S;
|
|
84
84
|
let u = [];
|
|
85
|
-
return g && (u = g.map((
|
|
85
|
+
return g && (u = g.map((p) => p[a]).filter((p) => p !== void 0)), u;
|
|
86
86
|
})
|
|
87
87
|
).values()
|
|
88
88
|
);
|
|
89
89
|
} else {
|
|
90
|
-
const { uniqueQuery: f } = await
|
|
90
|
+
const { uniqueQuery: f } = await Z({
|
|
91
91
|
chartConfig: l,
|
|
92
92
|
queryObject: e,
|
|
93
93
|
queryConfig: d,
|
|
94
94
|
options: r
|
|
95
95
|
});
|
|
96
|
-
n = await
|
|
96
|
+
n = await Ee({
|
|
97
97
|
queryObject: e,
|
|
98
98
|
queryConfig: f,
|
|
99
99
|
featureCount: 1
|
|
@@ -105,10 +105,10 @@ async function ct(t) {
|
|
|
105
105
|
}
|
|
106
106
|
return { allValues: s, preFetchedQueryResponse: n };
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function lt(t, e) {
|
|
109
109
|
const i = /* @__PURE__ */ new Map();
|
|
110
110
|
return t.series.forEach((r) => {
|
|
111
|
-
let a =
|
|
111
|
+
let a = oe({
|
|
112
112
|
where: r.query?.where,
|
|
113
113
|
// normalize the value so it matches what we get from getAllValues()
|
|
114
114
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
@@ -118,14 +118,14 @@ function yt(t, e) {
|
|
|
118
118
|
escape: !1
|
|
119
119
|
});
|
|
120
120
|
e && a !== null && (a = Number(a));
|
|
121
|
-
const s =
|
|
121
|
+
const s = Be([r]);
|
|
122
122
|
s !== void 0 && i.set(s, [
|
|
123
123
|
...i.get(s) ?? [],
|
|
124
124
|
a
|
|
125
125
|
]);
|
|
126
126
|
}), i;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ot(t) {
|
|
129
129
|
const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
|
|
130
130
|
return Array.from(i.keys()).forEach((s) => {
|
|
131
131
|
const n = i.get(s) ?? [];
|
|
@@ -135,7 +135,7 @@ function gt(t) {
|
|
|
135
135
|
}), a.set(s, l);
|
|
136
136
|
}), a;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function dt(t) {
|
|
139
139
|
const { chartConfig: e, missingValue: i, splitByField: r, seriesTemplate: a } = t, s = JSON.parse(
|
|
140
140
|
JSON.stringify({
|
|
141
141
|
...e.series[0],
|
|
@@ -152,35 +152,35 @@ function pt(t) {
|
|
|
152
152
|
}
|
|
153
153
|
return s;
|
|
154
154
|
}
|
|
155
|
-
async function
|
|
155
|
+
async function ut(t) {
|
|
156
156
|
const { updateSplitBySeries: e, config: i, options: r, queryObject: a } = t, { seriesTemplate: s } = e ?? {};
|
|
157
157
|
let n;
|
|
158
158
|
if (e !== void 0 && i !== void 0 && (i.series.length > 0 || s !== void 0) && e.addMissingSeries) {
|
|
159
159
|
const l = i.series.length === 0;
|
|
160
160
|
i.series.length === 0 && s !== void 0 && i.series.push(s);
|
|
161
161
|
const o = X(i.series);
|
|
162
|
-
if ((o ===
|
|
163
|
-
const d =
|
|
162
|
+
if ((o === w.BoxPlotMonoFieldAndSplitBy || o === w.BoxPlotMultiFieldsAndSplitBy || o === w.BoxPlotMonoFieldAndCategoryAndSplitBy || o === w.BarAndLineSplitBy || o === w.BarAndLineSplitByNoAggregation) && a !== void 0) {
|
|
163
|
+
const d = Ne(i.series[0]?.query?.where), f = we(a);
|
|
164
164
|
await f.load();
|
|
165
|
-
const c = f.getField(d)?.toJSON(),
|
|
165
|
+
const c = f.getField(d)?.toJSON(), F = Ve(c), S = await nt({
|
|
166
166
|
queryObject: a,
|
|
167
167
|
chartConfig: i,
|
|
168
168
|
splitByField: d,
|
|
169
169
|
options: r
|
|
170
170
|
}), { allValues: g } = S;
|
|
171
171
|
if ({ preFetchedQueryResponse: n } = S, g.length > 0) {
|
|
172
|
-
const u =
|
|
172
|
+
const u = lt(i, F), p = ot({
|
|
173
173
|
allValues: g,
|
|
174
174
|
configUniqueValuesPerSeriesType: u,
|
|
175
175
|
initialConfigWasEmpty: l
|
|
176
176
|
});
|
|
177
|
-
Array.from(
|
|
178
|
-
(
|
|
177
|
+
Array.from(p.keys()).forEach((h) => {
|
|
178
|
+
(p.get(h) ?? []).forEach((m) => {
|
|
179
179
|
i.series.push(
|
|
180
|
-
|
|
180
|
+
dt({
|
|
181
181
|
chartConfig: i,
|
|
182
182
|
seriesTemplate: s,
|
|
183
|
-
missingValue:
|
|
183
|
+
missingValue: m,
|
|
184
184
|
splitByField: d
|
|
185
185
|
})
|
|
186
186
|
);
|
|
@@ -191,148 +191,104 @@ async function mt(t) {
|
|
|
191
191
|
}
|
|
192
192
|
return n;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
e && !
|
|
194
|
+
function ct(t, e) {
|
|
195
|
+
e && !ye(e) && (e = qe({ chartConfig: e, queryObject: t }));
|
|
196
196
|
}
|
|
197
|
-
async function
|
|
197
|
+
async function ui(t) {
|
|
198
198
|
const { configToAlter: e, layer: i, addMissingSeries: r, updateSplitBySeries: a, chartContainer: s, queryObject: n, options: l } = t;
|
|
199
199
|
let o = e, d;
|
|
200
|
-
return o && (
|
|
200
|
+
return o && (ct(i, o), o = await at(o, i), r && (d = await ut({
|
|
201
201
|
updateSplitBySeries: a,
|
|
202
202
|
config: o,
|
|
203
203
|
options: l,
|
|
204
204
|
queryObject: n
|
|
205
|
-
})), o =
|
|
205
|
+
})), o = Le(o, s)), { alteredConfig: o, preFetchedQueryResponse: d };
|
|
206
206
|
}
|
|
207
|
-
|
|
208
|
-
for (var a = ht(e, i), s = t.length - 1, n; s >= 0; s--)
|
|
209
|
-
(n = t[s]) && (a = n(e, i, a) || a);
|
|
210
|
-
return a && St(e, i, a), a;
|
|
211
|
-
};
|
|
212
|
-
const Se = (t) => t.title?.content.text ?? "", Tt = (t, e) => {
|
|
213
|
-
e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = Ee({
|
|
214
|
-
text: t,
|
|
215
|
-
visible: !0,
|
|
216
|
-
font: $e(Ue.ChartTitle)
|
|
217
|
-
}));
|
|
218
|
-
};
|
|
219
|
-
class xt extends z {
|
|
220
|
-
/**
|
|
221
|
-
* The chart title text.
|
|
222
|
-
*/
|
|
223
|
-
get titleText() {
|
|
224
|
-
return Se(this._config);
|
|
225
|
-
}
|
|
226
|
-
set titleText(e) {
|
|
227
|
-
Tt(e, this._config);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
Ft([
|
|
231
|
-
Ae
|
|
232
|
-
], xt.prototype, "titleText");
|
|
233
|
-
const Ct = (t) => t.series.map((e) => String(G({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "");
|
|
234
|
-
class Ci extends z {
|
|
235
|
-
/**
|
|
236
|
-
* The split-by values for the chart.
|
|
237
|
-
*/
|
|
238
|
-
get splitByValues() {
|
|
239
|
-
return Ct(this._config);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
const Bt = (t) => {
|
|
207
|
+
const yt = (t) => {
|
|
243
208
|
let e;
|
|
244
209
|
const i = t.series[0];
|
|
245
|
-
return
|
|
246
|
-
},
|
|
210
|
+
return N(i) && (e = i.temporalBinning?.size), e;
|
|
211
|
+
}, gt = (t) => {
|
|
247
212
|
let e;
|
|
248
213
|
const i = t.series[0];
|
|
249
|
-
return
|
|
250
|
-
},
|
|
214
|
+
return N(i) && (e = i.temporalBinning?.unit), e;
|
|
215
|
+
}, mt = (t) => {
|
|
251
216
|
let e;
|
|
252
217
|
const i = t.series[0];
|
|
253
|
-
return
|
|
254
|
-
},
|
|
218
|
+
return N(i) && (e = i.temporalBinning?.timeAggregationType), e;
|
|
219
|
+
}, pt = (t) => {
|
|
255
220
|
let e;
|
|
256
221
|
const i = t.series[0];
|
|
257
|
-
return
|
|
258
|
-
},
|
|
222
|
+
return N(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
223
|
+
}, ft = (t) => {
|
|
259
224
|
let e;
|
|
260
225
|
const i = t.series[0];
|
|
261
|
-
return
|
|
262
|
-
},
|
|
226
|
+
return N(i) && (e = i.temporalBinning?.nullPolicy), e;
|
|
227
|
+
}, fe = (t, e) => {
|
|
263
228
|
e?.series?.forEach((i) => {
|
|
264
|
-
|
|
229
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
|
|
265
230
|
}), I({ config: e, value: null, axisIndex: 1, isMax: !1 }), I({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
266
|
-
},
|
|
231
|
+
}, St = (t, e) => {
|
|
267
232
|
e?.series?.forEach((i) => {
|
|
268
|
-
|
|
233
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
|
|
269
234
|
}), I({ config: e, value: null, axisIndex: 1, isMax: !1 }), I({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
270
|
-
},
|
|
235
|
+
}, ci = (t, e) => {
|
|
271
236
|
e.series?.forEach((i) => {
|
|
272
|
-
|
|
237
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
|
|
273
238
|
}), I({ config: e, value: null, axisIndex: 1, isMax: !1 }), I({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
274
|
-
},
|
|
239
|
+
}, yi = (t, e) => {
|
|
275
240
|
e.series?.forEach((i) => {
|
|
276
|
-
|
|
241
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
|
|
277
242
|
}), I({ config: e, value: null, axisIndex: 1, isMax: !1 }), I({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
278
|
-
},
|
|
243
|
+
}, gi = (t, e) => {
|
|
279
244
|
e.series?.forEach((i) => {
|
|
280
|
-
|
|
245
|
+
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
|
|
281
246
|
}), I({ config: e, value: null, axisIndex: 1, isMax: !1 }), I({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
class Ii extends z {
|
|
286
|
-
/**
|
|
287
|
-
* The length of the series array.
|
|
288
|
-
*/
|
|
289
|
-
get seriesLength() {
|
|
290
|
-
return Fe(this._config);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
const Li = (t) => t.hideEmptyRowsAndColumns, wi = (t, e) => {
|
|
247
|
+
}, mi = (t) => {
|
|
248
|
+
fe(0, t);
|
|
249
|
+
}, pi = (t) => t.hideEmptyRowsAndColumns, fi = (t, e) => {
|
|
294
250
|
t.hideEmptyRowsAndColumns = e;
|
|
295
|
-
},
|
|
251
|
+
}, Si = (t, e) => {
|
|
296
252
|
const i = t.series[0];
|
|
297
253
|
i.heatRulesType = e;
|
|
298
|
-
},
|
|
254
|
+
}, Fi = (t) => t.series[0].heatRulesType, hi = (t, e) => {
|
|
299
255
|
const i = t.series[0];
|
|
300
256
|
i.gradientRules = e;
|
|
301
|
-
},
|
|
302
|
-
const { yField: e, config: i, layerInfo: r } = t, { layerFieldsInfo: a } = r, s =
|
|
303
|
-
if (typeof e == "string" && n !== e && o && (o.y = e,
|
|
304
|
-
const d =
|
|
305
|
-
|
|
257
|
+
}, Ti = (t) => t.series[0].gradientRules, xi = (t) => {
|
|
258
|
+
const { yField: e, config: i, layerInfo: r } = t, { layerFieldsInfo: a } = r, s = G(1, i), n = Ft(i), l = Y(i), o = i.series[0];
|
|
259
|
+
if (typeof e == "string" && n !== e && o && (o.y = e, rt(i), n === s || l)) {
|
|
260
|
+
const d = V(a, e);
|
|
261
|
+
k(i, 1, d);
|
|
306
262
|
}
|
|
307
|
-
},
|
|
263
|
+
}, Ft = (t) => t.series[0].y ?? "", Ci = (t) => {
|
|
308
264
|
const { binning: e, config: i, commonStrings: r } = t, a = i.series[0];
|
|
309
265
|
if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
310
266
|
const s = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
311
|
-
|
|
267
|
+
k(i, 0, s);
|
|
312
268
|
}
|
|
313
|
-
},
|
|
269
|
+
}, Bi = (t) => t.series[0].xTemporalBinning, bi = (t) => {
|
|
314
270
|
const { binning: e, config: i, commonStrings: r } = t, a = i.series[0];
|
|
315
271
|
if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
316
272
|
const s = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
317
|
-
|
|
273
|
+
k(i, 1, s);
|
|
318
274
|
}
|
|
319
|
-
},
|
|
275
|
+
}, Ai = (t) => t.series[0].yTemporalBinning, ht = (t, e) => {
|
|
320
276
|
e.orderOptions ??= {};
|
|
321
|
-
const i = e.axes?.[0]?.valueFormat?.type === "category" ? A.Category : A.YValue, r =
|
|
277
|
+
const i = e.axes?.[0]?.valueFormat?.type === "category" ? A.Category : A.YValue, r = z(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? A.Category : A.YValue, s = z(e)[1], n = {
|
|
322
278
|
...e.orderOptions.data ?? {},
|
|
323
279
|
orderType: A.MultiAxes
|
|
324
280
|
};
|
|
325
|
-
r ===
|
|
326
|
-
},
|
|
281
|
+
r === Q.customSort && i === A.Category && (n.orderByX = [...t]), s === Q.customSort && a === A.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
282
|
+
}, vi = (t, e) => {
|
|
327
283
|
const i = e.series[0];
|
|
328
284
|
i.gridLine && (i.gridLine.width = t);
|
|
329
|
-
},
|
|
285
|
+
}, Ii = (t) => t.series[0].gridLine?.width, Li = (t, e) => {
|
|
330
286
|
const i = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
331
287
|
i.gridLine && r && (i.gridLine.color = t);
|
|
332
|
-
},
|
|
288
|
+
}, qi = (t) => t.series[0].gridLine?.color, Ni = (t, e) => {
|
|
333
289
|
const i = e.legend;
|
|
334
290
|
i && (i.position = t);
|
|
335
|
-
},
|
|
291
|
+
}, wi = (t) => t.legend?.position ?? be.Bottom, Vi = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Oi = (t, e) => {
|
|
336
292
|
const i = e.series[0].query?.outStatistics?.[0];
|
|
337
293
|
i ? (i.onStatisticField = t, i.outStatisticFieldName = `${i.statisticType}_${t}`) : e.series[0].query = {
|
|
338
294
|
outStatistics: [
|
|
@@ -343,61 +299,61 @@ const Li = (t) => t.hideEmptyRowsAndColumns, wi = (t, e) => {
|
|
|
343
299
|
}
|
|
344
300
|
]
|
|
345
301
|
};
|
|
346
|
-
},
|
|
302
|
+
}, Di = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, Mi = (t, e) => {
|
|
347
303
|
const i = e.series[0]?.query?.outStatistics?.[0];
|
|
348
304
|
i && t !== L.NoAggregation && (i.statisticType = t, i.outStatisticFieldName = `${t}_${i.onStatisticField}`);
|
|
349
|
-
},
|
|
305
|
+
}, ki = (t) => t.nullPolicy, Pi = (t, e) => {
|
|
350
306
|
e.nullPolicy = t;
|
|
351
|
-
},
|
|
307
|
+
}, Ri = (t) => t.series[0].emptyCells, Ei = (t, e) => {
|
|
352
308
|
e.series[0].emptyCells = t;
|
|
353
|
-
},
|
|
309
|
+
}, $i = (t) => t.series[0].emptyCells?.text, Ui = (t, e) => {
|
|
354
310
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
355
|
-
},
|
|
311
|
+
}, Xi = (t) => t.includeLeapDay, Yi = (t, e) => {
|
|
356
312
|
e.includeLeapDay = t;
|
|
357
|
-
},
|
|
313
|
+
}, Ki = (t) => t.series[0].emptyCells?.symbol, Wi = (t, e) => {
|
|
358
314
|
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
359
315
|
};
|
|
360
|
-
function
|
|
316
|
+
function ji(t) {
|
|
361
317
|
return t.viewType;
|
|
362
318
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
319
|
+
function Hi(t, e) {
|
|
320
|
+
$e(e) || (e.viewType = t);
|
|
365
321
|
}
|
|
366
|
-
function
|
|
322
|
+
function Qi(t) {
|
|
367
323
|
return t.series[0].classBreaksRules?.breaksCount ?? E.classBreaks.breaksCount;
|
|
368
324
|
}
|
|
369
|
-
function
|
|
325
|
+
function zi(t, e) {
|
|
370
326
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? E.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
371
327
|
breaksCount: t ?? E.classBreaks.breaksCount
|
|
372
328
|
};
|
|
373
329
|
}
|
|
374
|
-
function
|
|
330
|
+
function _i(t) {
|
|
375
331
|
return t.series[0].classBreaksRules?.classificationMethod;
|
|
376
332
|
}
|
|
377
|
-
function
|
|
333
|
+
function Gi(t, e) {
|
|
378
334
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
|
|
379
335
|
classificationMethod: t
|
|
380
336
|
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? E.classBreaks.breaksCount;
|
|
381
337
|
}
|
|
382
|
-
function
|
|
383
|
-
const { seriesIndex: e, xAxisField: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, l =
|
|
338
|
+
function P(t) {
|
|
339
|
+
const { seriesIndex: e, xAxisField: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, l = K(s?.layer).idField;
|
|
384
340
|
let o;
|
|
385
341
|
const d = a.series[e ?? 0];
|
|
386
|
-
let f = !1, c = !1,
|
|
342
|
+
let f = !1, c = !1, F = !1;
|
|
387
343
|
if (d === void 0) {
|
|
388
344
|
const u = a.series;
|
|
389
|
-
f = u.slice(0, e).every((
|
|
345
|
+
f = u.slice(0, e).every((p) => x(p)), c = u.slice(0, e).every((p) => C(p)), F = u.slice(0, e).every((p) => ie(p));
|
|
390
346
|
} else
|
|
391
|
-
f = x(d), c = C(d),
|
|
347
|
+
f = x(d), c = C(d), F = ie(d);
|
|
392
348
|
f ? o = Ke({
|
|
393
349
|
commonStrings: n,
|
|
394
350
|
seriesIndex: e,
|
|
395
351
|
objectIDField: l
|
|
396
|
-
}) : c ? o =
|
|
352
|
+
}) : c ? o = We({
|
|
397
353
|
commonStrings: n,
|
|
398
354
|
seriesIndex: e,
|
|
399
355
|
objectIDField: l
|
|
400
|
-
}) :
|
|
356
|
+
}) : F ? o = je(n, l) : o = He({
|
|
401
357
|
seriesIndex: e,
|
|
402
358
|
objectIDField: l,
|
|
403
359
|
commonStrings: n
|
|
@@ -408,8 +364,8 @@ function k(t) {
|
|
|
408
364
|
y: "",
|
|
409
365
|
dataLabels: {
|
|
410
366
|
...o.dataLabels,
|
|
411
|
-
type: o.dataLabels?.type ??
|
|
412
|
-
content: { ...o.dataLabels?.content, ...S?.content, type:
|
|
367
|
+
type: o.dataLabels?.type ?? M.Text,
|
|
368
|
+
content: { ...o.dataLabels?.content, ...S?.content, type: Ie.TS },
|
|
413
369
|
visible: S?.visible ?? !1
|
|
414
370
|
}
|
|
415
371
|
};
|
|
@@ -427,91 +383,91 @@ function k(t) {
|
|
|
427
383
|
}
|
|
428
384
|
if (x(g) || C(g) || v(g) && a.series[0]?.binTemporalData) {
|
|
429
385
|
let u;
|
|
430
|
-
if (a?.series?.[0] !== void 0 && (u = X(a.series)), u !==
|
|
431
|
-
let
|
|
432
|
-
|
|
433
|
-
size:
|
|
434
|
-
unit:
|
|
435
|
-
timeAggregationType:
|
|
436
|
-
trimIncompleteTimeInterval:
|
|
437
|
-
nullPolicy:
|
|
386
|
+
if (a?.series?.[0] !== void 0 && (u = X(a.series)), u !== w.BarAndLineNoAggregation && u !== w.BarAndLineSplitByNoAggregation) {
|
|
387
|
+
let p = gt(a);
|
|
388
|
+
p === H.Quarter && (p = H.Month), g.temporalBinning = {
|
|
389
|
+
size: yt(a),
|
|
390
|
+
unit: p,
|
|
391
|
+
timeAggregationType: mt(a),
|
|
392
|
+
trimIncompleteTimeInterval: pt(a),
|
|
393
|
+
nullPolicy: ft(a)
|
|
438
394
|
};
|
|
439
395
|
}
|
|
440
396
|
}
|
|
441
|
-
return
|
|
397
|
+
return re(g);
|
|
442
398
|
}
|
|
443
|
-
function
|
|
444
|
-
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: s } =
|
|
399
|
+
function Se(t, e, i) {
|
|
400
|
+
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: s } = K(e.layer), n = R(t), l = J(t), o = he(t), d = U(t), f = s && (l.length === 0 || l.includes(a)), c = Ue(o, i), F = f ? "" : l.map((m) => V(r ?? [], m)).join(", "), S = V(r ?? [], n), g = V(r ?? [], d), u = t.series.some((m) => v(m)), p = u ? "category" : "xAxisField", h = S;
|
|
445
401
|
let y = "";
|
|
446
|
-
if (
|
|
402
|
+
if (pe({
|
|
447
403
|
fieldName: n,
|
|
448
404
|
numericFields: l,
|
|
449
405
|
fieldList: r
|
|
450
406
|
}))
|
|
451
407
|
y = D(i.titleLabels.aggrTypeOfAggrFields, {
|
|
452
408
|
aggregationType: c,
|
|
453
|
-
aggregationFields:
|
|
409
|
+
aggregationFields: F
|
|
454
410
|
});
|
|
455
411
|
else if (o === L.NoAggregation) {
|
|
456
|
-
const
|
|
412
|
+
const m = f ? a : F;
|
|
457
413
|
if (d === "") {
|
|
458
|
-
const
|
|
459
|
-
y = D(i.titleLabels[
|
|
460
|
-
aggregationType:
|
|
461
|
-
[
|
|
414
|
+
const q = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
415
|
+
y = D(i.titleLabels[q], {
|
|
416
|
+
aggregationType: m,
|
|
417
|
+
[p]: h
|
|
462
418
|
});
|
|
463
419
|
} else {
|
|
464
|
-
const
|
|
465
|
-
y = D(i.titleLabels[
|
|
466
|
-
aggregationType:
|
|
467
|
-
[
|
|
420
|
+
const q = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
421
|
+
y = D(i.titleLabels[q], {
|
|
422
|
+
aggregationType: m,
|
|
423
|
+
[p]: h,
|
|
468
424
|
splitByField: g
|
|
469
425
|
});
|
|
470
426
|
}
|
|
471
427
|
} else if (o === L.Count)
|
|
472
428
|
if (d === "") {
|
|
473
|
-
const
|
|
474
|
-
y = D(i.titleLabels[
|
|
429
|
+
const m = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
430
|
+
y = D(i.titleLabels[m], {
|
|
475
431
|
aggregationType: c,
|
|
476
|
-
[
|
|
432
|
+
[p]: h
|
|
477
433
|
});
|
|
478
434
|
} else {
|
|
479
|
-
const
|
|
480
|
-
y = D(i.titleLabels[
|
|
435
|
+
const m = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
436
|
+
y = D(i.titleLabels[m], {
|
|
481
437
|
aggregationType: c,
|
|
482
|
-
[
|
|
438
|
+
[p]: h,
|
|
483
439
|
splitByField: g
|
|
484
440
|
});
|
|
485
441
|
}
|
|
486
442
|
else if (d !== "") {
|
|
487
|
-
const
|
|
488
|
-
y = D(i.titleLabels[
|
|
443
|
+
const m = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
444
|
+
y = D(i.titleLabels[m], {
|
|
489
445
|
aggregationType: c,
|
|
490
|
-
aggregationField:
|
|
491
|
-
[
|
|
446
|
+
aggregationField: F,
|
|
447
|
+
[p]: h,
|
|
492
448
|
splitByField: g
|
|
493
449
|
});
|
|
494
450
|
} else if (l.length > 0) {
|
|
495
|
-
const
|
|
496
|
-
y = D(i.titleLabels[
|
|
451
|
+
const m = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
452
|
+
y = D(i.titleLabels[m], {
|
|
497
453
|
aggregationType: c,
|
|
498
|
-
aggregationFields:
|
|
499
|
-
[
|
|
454
|
+
aggregationFields: F,
|
|
455
|
+
[p]: h
|
|
500
456
|
});
|
|
501
457
|
}
|
|
502
458
|
return y;
|
|
503
459
|
}
|
|
504
|
-
const
|
|
460
|
+
const Fe = (t) => oe({
|
|
505
461
|
where: t.query?.where,
|
|
506
462
|
normalize: !1,
|
|
507
463
|
escape: !1
|
|
508
|
-
}) ?? "",
|
|
464
|
+
}) ?? "", he = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, U = ne(
|
|
509
465
|
(t) => {
|
|
510
466
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
511
|
-
return
|
|
467
|
+
return Xe(t?.series?.[0]?.query?.where) ? "" : e;
|
|
512
468
|
},
|
|
513
469
|
(t) => t?.series?.[0]?.query?.where
|
|
514
|
-
),
|
|
470
|
+
), J = ne(
|
|
515
471
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
516
472
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
517
473
|
(t) => {
|
|
@@ -530,41 +486,41 @@ const xe = (t) => G({
|
|
|
530
486
|
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
531
487
|
(t) => t?.series
|
|
532
488
|
);
|
|
533
|
-
function
|
|
489
|
+
function Tt(t) {
|
|
534
490
|
const { numericFields: e, aggregationType: i, config: r, layerInfo: a } = t;
|
|
535
491
|
let s = !1;
|
|
536
492
|
i === L.Count ? s = !0 : i === L.NoAggregation && (s = e.every((o) => {
|
|
537
493
|
const d = a.layerFieldsInfo.find((f) => f.name === o);
|
|
538
|
-
return d !== void 0 ?
|
|
539
|
-
})),
|
|
494
|
+
return d !== void 0 ? ee(d) : !1;
|
|
495
|
+
})), se(r, 1, s);
|
|
540
496
|
const n = r.series.some((o) => x(o)), l = r.series.some((o) => C(o));
|
|
541
497
|
if (n || l) {
|
|
542
|
-
const o = R(r), d = a.layerFieldsInfo.find((c) => c.name === o), f = d !== void 0 &&
|
|
543
|
-
|
|
498
|
+
const o = R(r), d = a.layerFieldsInfo.find((c) => c.name === o), f = d !== void 0 && ee(d);
|
|
499
|
+
se(r, 0, f);
|
|
544
500
|
}
|
|
545
501
|
}
|
|
546
|
-
const
|
|
502
|
+
const z = (t) => {
|
|
547
503
|
let e;
|
|
548
504
|
if (ce(t)) {
|
|
549
505
|
const i = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? A.Category : A.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? A.Category : A.YValue;
|
|
550
|
-
e = [
|
|
506
|
+
e = [ae(i, a), ae(r, s)];
|
|
551
507
|
} else {
|
|
552
|
-
const i = t.orderOptions?.data?.orderType ?? A.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy :
|
|
553
|
-
e = [
|
|
508
|
+
const i = t.orderOptions?.data?.orderType ?? A.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : Ae.Ascending;
|
|
509
|
+
e = [tt(r, i)];
|
|
554
510
|
}
|
|
555
511
|
return e;
|
|
556
512
|
};
|
|
557
|
-
function
|
|
513
|
+
function xt(t) {
|
|
558
514
|
const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
|
|
559
515
|
let o = !1;
|
|
560
|
-
const d =
|
|
516
|
+
const d = P({
|
|
561
517
|
config: a,
|
|
562
518
|
xAxisField: e,
|
|
563
519
|
aggregationType: r,
|
|
564
520
|
layerInfo: s,
|
|
565
521
|
seriesIndex: 0,
|
|
566
522
|
commonStrings: n
|
|
567
|
-
}), f =
|
|
523
|
+
}), f = _({
|
|
568
524
|
config: a,
|
|
569
525
|
xAxisField: e,
|
|
570
526
|
numericFields: i,
|
|
@@ -577,29 +533,29 @@ function Nt(t) {
|
|
|
577
533
|
name: n.axisLabels.values,
|
|
578
534
|
x: $,
|
|
579
535
|
y: f
|
|
580
|
-
},
|
|
536
|
+
}, F = [];
|
|
581
537
|
for (const g of i)
|
|
582
|
-
|
|
538
|
+
F.push({
|
|
583
539
|
onStatisticField: g,
|
|
584
540
|
outStatisticFieldName: `${g}_0`.toUpperCase(),
|
|
585
541
|
statisticType: r
|
|
586
542
|
});
|
|
587
|
-
c.query = { outStatistics:
|
|
543
|
+
c.query = { outStatistics: F };
|
|
588
544
|
const S = a.series[0];
|
|
589
545
|
return S !== void 0 && (c.id = S.id, a.colorMatch || (v(S) && v(c) ? c.fillSymbol = S.fillSymbol : (x(c) && x(S) || C(c) && C(S)) && (c.lineSymbol = S.lineSymbol, c.markerSymbol = S.markerSymbol), o = !0), c.id = S.id, S.name !== d.name && (c.name = S.name)), a.series.length === 1 && !a.colorMatch && (v(c) ? c.fillSymbol = a.series[0].fillSymbol : (x(c) || C(c)) && (c.lineSymbol = a.series[0].lineSymbol, c.markerSymbol = a.series[0].markerSymbol), o = !0), a.colorMatch = !o, [c];
|
|
590
546
|
}
|
|
591
|
-
function
|
|
592
|
-
const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, o =
|
|
547
|
+
function Te(t) {
|
|
548
|
+
const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, o = K(s.layer).idField, d = [];
|
|
593
549
|
let f = !1;
|
|
594
550
|
for (let u = 0; u < i.length; u += 1) {
|
|
595
|
-
const
|
|
551
|
+
const p = P({
|
|
596
552
|
config: a,
|
|
597
553
|
xAxisField: e,
|
|
598
554
|
aggregationType: r,
|
|
599
555
|
layerInfo: s,
|
|
600
556
|
seriesIndex: u,
|
|
601
557
|
commonStrings: n
|
|
602
|
-
}),
|
|
558
|
+
}), h = _({
|
|
603
559
|
config: a,
|
|
604
560
|
xAxisField: e,
|
|
605
561
|
numericFields: i,
|
|
@@ -608,32 +564,32 @@ function Be(t) {
|
|
|
608
564
|
numericFieldIndex: u,
|
|
609
565
|
fieldList: l
|
|
610
566
|
}).name, y = i[u];
|
|
611
|
-
let
|
|
612
|
-
...
|
|
567
|
+
let m = {
|
|
568
|
+
...p,
|
|
613
569
|
query: {
|
|
614
|
-
...
|
|
570
|
+
...p.query
|
|
615
571
|
}
|
|
616
572
|
};
|
|
617
|
-
i && y !== o && (
|
|
618
|
-
...
|
|
573
|
+
i && y !== o && (m = {
|
|
574
|
+
...m,
|
|
619
575
|
id: y,
|
|
620
|
-
name:
|
|
576
|
+
name: V(l, y)
|
|
621
577
|
});
|
|
622
|
-
let
|
|
623
|
-
|
|
578
|
+
let q = y;
|
|
579
|
+
m.query !== void 0 && (r !== L.NoAggregation ? (q = h, m.query.outStatistics = [
|
|
624
580
|
{
|
|
625
|
-
...
|
|
581
|
+
...p.query?.outStatistics?.[0] ?? {},
|
|
626
582
|
onStatisticField: y,
|
|
627
|
-
outStatisticFieldName:
|
|
583
|
+
outStatisticFieldName: h,
|
|
628
584
|
statisticType: r
|
|
629
585
|
}
|
|
630
|
-
]) : delete
|
|
586
|
+
]) : delete m.query.outStatistics), m.y = q;
|
|
631
587
|
const B = a.series.find(
|
|
632
588
|
(O) => O.query?.outStatistics?.[0]?.onStatisticField === y && O.query.where === void 0
|
|
633
589
|
);
|
|
634
590
|
if (B !== void 0 && typeof B.y == "string" && B.y.trim() !== "") {
|
|
635
|
-
a.colorMatch || (v(
|
|
636
|
-
const O =
|
|
591
|
+
a.colorMatch || (v(m) && v(B) ? m.fillSymbol = B.fillSymbol : (x(m) && x(B) || C(m) && C(B)) && (m.lineSymbol = B.lineSymbol, m.markerSymbol = B.markerSymbol), f = !0);
|
|
592
|
+
const O = P({
|
|
637
593
|
config: a,
|
|
638
594
|
xAxisField: e,
|
|
639
595
|
aggregationType: r,
|
|
@@ -641,19 +597,19 @@ function Be(t) {
|
|
|
641
597
|
seriesIndex: u,
|
|
642
598
|
commonStrings: n
|
|
643
599
|
});
|
|
644
|
-
|
|
600
|
+
m.id = B.id, B.id !== O.id && B.name !== O.name && (m.id = B.id, m.name = B.name);
|
|
645
601
|
}
|
|
646
|
-
d.push(
|
|
602
|
+
d.push(m);
|
|
647
603
|
}
|
|
648
|
-
const c = d.filter((u) => v(u)),
|
|
604
|
+
const c = d.filter((u) => v(u)), F = d.filter(
|
|
649
605
|
(u) => x(u) || C(u)
|
|
650
606
|
), S = a.series.filter((u) => v(u)), g = a.series.filter(
|
|
651
607
|
(u) => x(u) || C(u)
|
|
652
608
|
);
|
|
653
|
-
return S.length === 1 && c.length === 1 && !a.colorMatch && (v(S[0]) && v(c[0]) && (c[0].fillSymbol = S[0].fillSymbol), f = !0), g.length === 1 &&
|
|
609
|
+
return S.length === 1 && c.length === 1 && !a.colorMatch && (v(S[0]) && v(c[0]) && (c[0].fillSymbol = S[0].fillSymbol), f = !0), g.length === 1 && F.length === 1 && !a.colorMatch && ((x(g[0]) && x(F[0]) || C(g[0]) && C(F[0])) && (F[0].lineSymbol = g[0].lineSymbol, F[0].markerSymbol = g[0].markerSymbol), f = !0), a.colorMatch = !f, d;
|
|
654
610
|
}
|
|
655
|
-
async function
|
|
656
|
-
const { splitByField: e, xAxisField: i, numericFields: r, aggregationType: a, config: s, layerInfo: n, commonStrings: l } = t, { layer: o, layerFieldsInfo: d } = n, { fetchNullValues: f } = s?.series?.[0]?.query ?? {}, c = i !== $ ? i : void 0, { categoriesArray:
|
|
611
|
+
async function Ct(t) {
|
|
612
|
+
const { splitByField: e, xAxisField: i, numericFields: r, aggregationType: a, config: s, layerInfo: n, commonStrings: l } = t, { layer: o, layerFieldsInfo: d } = n, { fetchNullValues: f } = s?.series?.[0]?.query ?? {}, c = i !== $ ? i : void 0, { categoriesArray: F, splitByFieldType: S, numericalField: g } = await et({
|
|
657
613
|
config: s,
|
|
658
614
|
layer: o,
|
|
659
615
|
layerFieldsInfo: d,
|
|
@@ -662,9 +618,9 @@ async function Ot(t) {
|
|
|
662
618
|
splitByField: e,
|
|
663
619
|
fetchNullValues: f
|
|
664
620
|
});
|
|
665
|
-
let u = [],
|
|
666
|
-
if (
|
|
667
|
-
u =
|
|
621
|
+
let u = [], p = !1;
|
|
622
|
+
if (F.length === 0) {
|
|
623
|
+
u = Te({
|
|
668
624
|
xAxisField: i,
|
|
669
625
|
numericFields: r,
|
|
670
626
|
aggregationType: a,
|
|
@@ -672,44 +628,44 @@ async function Ot(t) {
|
|
|
672
628
|
layerInfo: n,
|
|
673
629
|
commonStrings: l
|
|
674
630
|
});
|
|
675
|
-
for (const
|
|
676
|
-
|
|
631
|
+
for (const h of u)
|
|
632
|
+
h.query && (h.query.where = `${e}=''`);
|
|
677
633
|
} else
|
|
678
|
-
for (let
|
|
679
|
-
const y = h
|
|
634
|
+
for (let h = 0; h < F.length; h += 1) {
|
|
635
|
+
const y = F[h], m = _({
|
|
680
636
|
config: s,
|
|
681
637
|
xAxisField: i,
|
|
682
638
|
numericFields: r,
|
|
683
639
|
aggregationType: a,
|
|
684
640
|
layer: n.layer,
|
|
685
|
-
seriesIndex:
|
|
641
|
+
seriesIndex: h,
|
|
686
642
|
splitByField: e,
|
|
687
643
|
fieldList: d
|
|
688
|
-
}).name,
|
|
644
|
+
}).name, q = P({
|
|
689
645
|
config: s,
|
|
690
646
|
xAxisField: i,
|
|
691
647
|
aggregationType: a,
|
|
692
648
|
layerInfo: n,
|
|
693
|
-
seriesIndex:
|
|
649
|
+
seriesIndex: h,
|
|
694
650
|
commonStrings: l
|
|
695
651
|
}), B = {
|
|
696
652
|
fieldName: e,
|
|
697
653
|
fieldValueToMatch: y ?? "",
|
|
698
654
|
subtypeInfo: de(n.layer),
|
|
699
655
|
fieldList: n.layerFieldsInfo
|
|
700
|
-
}, O = ue(B),
|
|
701
|
-
...
|
|
702
|
-
id:
|
|
703
|
-
name: O ??
|
|
704
|
-
y:
|
|
656
|
+
}, O = ue(B), W = `${y}`, T = {
|
|
657
|
+
...q,
|
|
658
|
+
id: W,
|
|
659
|
+
name: O ?? W,
|
|
660
|
+
y: m,
|
|
705
661
|
query: {
|
|
706
|
-
...
|
|
707
|
-
where: `${e}=${S ===
|
|
662
|
+
...q.query,
|
|
663
|
+
where: `${e}=${S === le.String && y !== null ? `'${y}'` : y}`,
|
|
708
664
|
outStatistics: a !== L.NoAggregation ? [
|
|
709
665
|
{
|
|
710
|
-
...
|
|
666
|
+
...q.query?.outStatistics?.[0] ?? {},
|
|
711
667
|
onStatisticField: g,
|
|
712
|
-
outStatisticFieldName:
|
|
668
|
+
outStatisticFieldName: m,
|
|
713
669
|
statisticType: a
|
|
714
670
|
}
|
|
715
671
|
] : void 0
|
|
@@ -717,43 +673,43 @@ async function Ot(t) {
|
|
|
717
673
|
};
|
|
718
674
|
a === L.NoAggregation && (T.query !== void 0 && (delete T.query.outStatistics, delete T.query.groupByFieldsForStatistics), T.y = g);
|
|
719
675
|
const b = s.series.find(
|
|
720
|
-
(
|
|
676
|
+
(xe) => String(Fe(xe)).trim().replace(/'/gu, "") === W
|
|
721
677
|
);
|
|
722
|
-
b !== void 0 && (s.colorMatch || (v(T) && v(b) ? T.fillSymbol = b.fillSymbol : (x(T) && x(b) || C(T) && C(b)) && (T.lineSymbol = b.lineSymbol, T.markerSymbol = b.markerSymbol),
|
|
678
|
+
b !== void 0 && (s.colorMatch || (v(T) && v(b) ? T.fillSymbol = b.fillSymbol : (x(T) && x(b) || C(T) && C(b)) && (T.lineSymbol = b.lineSymbol, T.markerSymbol = b.markerSymbol), p = !0), (x(T) && x(b) || C(T) && C(b)) && (T.lineSmoothed = b.lineSmoothed), (x(T) && x(b) || C(T) && C(b)) && (T.showArea = b.showArea), T.id = b.id, T.name = b.name), u.push(T);
|
|
723
679
|
}
|
|
724
|
-
return s.colorMatch = !
|
|
680
|
+
return s.colorMatch = !p, u;
|
|
725
681
|
}
|
|
726
|
-
const
|
|
727
|
-
const { xAxisField: e, splitByField: i, numericFields: r, aggregationType: a, config: s, layerInfo: n, commonStrings: l } = t, { layerFieldsInfo: o } = n ?? {}, d =
|
|
728
|
-
let g =
|
|
729
|
-
const u = s.series.some((y) => v(y)),
|
|
682
|
+
const Ji = async (t) => {
|
|
683
|
+
const { xAxisField: e, splitByField: i, numericFields: r, aggregationType: a, config: s, layerInfo: n, commonStrings: l } = t, { layerFieldsInfo: o } = n ?? {}, d = it(s), f = R(s), c = Bt(s, n, l), F = bt(s, n, l), S = At(s, n);
|
|
684
|
+
let g = ge(s);
|
|
685
|
+
const u = s.series.some((y) => v(y)), p = _e(s.series), h = Ge(s.series);
|
|
730
686
|
if (o !== void 0) {
|
|
731
|
-
const y =
|
|
732
|
-
!y.includes(f) && y.includes(e) ? g =
|
|
687
|
+
const y = Ye(o);
|
|
688
|
+
!y.includes(f) && y.includes(e) ? g = Qe() : y.includes(f) && !y.includes(e) && (u ? g = te() : g = ze()), o.find((q) => q.name === e)?.type === le.String && (g = te()), g !== void 0 && Ze(s, l, g);
|
|
733
689
|
}
|
|
734
690
|
if (d === 0 && (s.series = [
|
|
735
|
-
|
|
691
|
+
P({ config: s, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: l })
|
|
736
692
|
]), s.series.forEach((y) => {
|
|
737
693
|
y.x = e, y.query !== void 0 && (y.query.groupByFieldsForStatistics = [e]);
|
|
738
|
-
}), i === "" || r.length > 1 ?
|
|
694
|
+
}), i === "" || r.length > 1 ? pe({
|
|
739
695
|
fieldName: e,
|
|
740
696
|
numericFields: r,
|
|
741
697
|
fieldList: o
|
|
742
|
-
}) ? s.series =
|
|
698
|
+
}) ? s.series = xt({
|
|
743
699
|
config: s,
|
|
744
700
|
layerInfo: n,
|
|
745
701
|
xAxisField: e,
|
|
746
702
|
numericFields: r,
|
|
747
703
|
aggregationType: a,
|
|
748
704
|
commonStrings: l
|
|
749
|
-
}) : s.series =
|
|
705
|
+
}) : s.series = Te({
|
|
750
706
|
config: s,
|
|
751
707
|
layerInfo: n,
|
|
752
708
|
xAxisField: e,
|
|
753
709
|
numericFields: r,
|
|
754
710
|
aggregationType: a,
|
|
755
711
|
commonStrings: l
|
|
756
|
-
}) : (await Promise.resolve(), s.series = await
|
|
712
|
+
}) : (await Promise.resolve(), s.series = await Ct({
|
|
757
713
|
config: s,
|
|
758
714
|
layerInfo: n,
|
|
759
715
|
splitByField: i,
|
|
@@ -762,10 +718,10 @@ const cs = async (t) => {
|
|
|
762
718
|
aggregationType: a,
|
|
763
719
|
commonStrings: l
|
|
764
720
|
})), S) {
|
|
765
|
-
const y =
|
|
766
|
-
|
|
721
|
+
const y = V(o, e);
|
|
722
|
+
k(s, 0, y);
|
|
767
723
|
}
|
|
768
|
-
if (
|
|
724
|
+
if (F) {
|
|
769
725
|
const y = me({
|
|
770
726
|
config: s,
|
|
771
727
|
layerInfo: n,
|
|
@@ -773,23 +729,23 @@ const cs = async (t) => {
|
|
|
773
729
|
numericFields: r,
|
|
774
730
|
aggregationType: a
|
|
775
731
|
});
|
|
776
|
-
|
|
732
|
+
k(s, 1, y);
|
|
777
733
|
}
|
|
778
|
-
if (s.title && c && (s.title.content.text =
|
|
779
|
-
I({ config: s, value: null, axisIndex: 0, isMax: !1 }), I({ config: s, value: null, axisIndex: 0, isMax: !0 }),
|
|
780
|
-
const y = g?.type ===
|
|
781
|
-
|
|
734
|
+
if (s.title && c && (s.title.content.text = Se(s, n, l)), I({ config: s, value: null, axisIndex: 1, isMax: !1 }), I({ config: s, value: null, axisIndex: 1, isMax: !0 }), Tt({ numericFields: r, aggregationType: a, config: s, layerInfo: n }), p || h) {
|
|
735
|
+
I({ config: s, value: null, axisIndex: 0, isMax: !1 }), I({ config: s, value: null, axisIndex: 0, isMax: !0 }), fe(0, s);
|
|
736
|
+
const y = g?.type === M.DateAxisFormat ? j.Null : j.Interpolate;
|
|
737
|
+
St(y, s);
|
|
782
738
|
}
|
|
783
|
-
},
|
|
739
|
+
}, Zi = (t) => {
|
|
784
740
|
const { config: e, seriesIndex: i, layerInfo: r, commonStrings: a } = t, s = e.series?.[i], n = U(e);
|
|
785
741
|
let l;
|
|
786
|
-
if (X(e.series) ===
|
|
742
|
+
if (X(e.series) === w.BarAndLineFromFields)
|
|
787
743
|
l = a.axisLabels.values;
|
|
788
|
-
else if (
|
|
744
|
+
else if (Ce(n)) {
|
|
789
745
|
const d = s.query?.outStatistics?.[0]?.onStatisticField;
|
|
790
|
-
d !== void 0 && d !==
|
|
746
|
+
d !== void 0 && d !== K(r.layer).idField && (l = V(r.layerFieldsInfo, d));
|
|
791
747
|
} else {
|
|
792
|
-
const d = String(
|
|
748
|
+
const d = String(Fe(s)).trim().replace(/'/gu, ""), f = {
|
|
793
749
|
fieldName: U(e),
|
|
794
750
|
fieldValueToMatch: d ?? "",
|
|
795
751
|
subtypeInfo: de(r.layer),
|
|
@@ -798,128 +754,123 @@ const cs = async (t) => {
|
|
|
798
754
|
l = ue(f) ?? d;
|
|
799
755
|
}
|
|
800
756
|
return l ?? s.id;
|
|
801
|
-
},
|
|
757
|
+
}, es = (t, e) => {
|
|
802
758
|
if (ce(e))
|
|
803
|
-
|
|
759
|
+
ht(t, e);
|
|
804
760
|
else {
|
|
805
761
|
e.orderOptions ??= {};
|
|
806
762
|
const i = e.orderOptions?.data?.orderType;
|
|
807
|
-
|
|
763
|
+
z(e)[0] === Q.customSort && i === A.Category && (e.orderOptions.data = {
|
|
808
764
|
orderType: A.Category,
|
|
809
765
|
orderBy: [...t]
|
|
810
766
|
});
|
|
811
767
|
}
|
|
812
|
-
},
|
|
813
|
-
const i = R(t), r =
|
|
768
|
+
}, ts = async (t, e) => {
|
|
769
|
+
const i = R(t), r = ge(t)?.type, a = J(t), s = X(t.series);
|
|
814
770
|
let n = [];
|
|
815
|
-
return r ===
|
|
771
|
+
return r === M.CategoryAxisFormat && (s === w.BarAndLineFromFields || i === $ ? n = a.map((l) => V(e?.layerFieldsInfo, l)) : i.trim() !== "" && i !== $ && e !== void 0 && (n = await Je({
|
|
816
772
|
layerInfo: e,
|
|
817
773
|
config: t,
|
|
818
774
|
category: i
|
|
819
775
|
}))), n;
|
|
820
776
|
};
|
|
821
|
-
function
|
|
822
|
-
const r =
|
|
777
|
+
function Bt(t, e, i) {
|
|
778
|
+
const r = Se(t, e, i), a = st(t), s = Y(t);
|
|
823
779
|
return r === a || s;
|
|
824
780
|
}
|
|
825
|
-
function
|
|
781
|
+
function bt(t, e, i) {
|
|
826
782
|
const r = me({
|
|
827
783
|
config: t,
|
|
828
784
|
layerInfo: e,
|
|
829
785
|
commonStrings: i,
|
|
830
|
-
numericFields:
|
|
831
|
-
aggregationType:
|
|
832
|
-
}), a =
|
|
786
|
+
numericFields: J(t),
|
|
787
|
+
aggregationType: he(t)
|
|
788
|
+
}), a = G(1, t), s = Y(t);
|
|
833
789
|
return r === a || s;
|
|
834
790
|
}
|
|
835
|
-
function
|
|
836
|
-
const i =
|
|
791
|
+
function At(t, e) {
|
|
792
|
+
const i = V(e.layerFieldsInfo, R(t)), r = G(0, t), a = Y(t);
|
|
837
793
|
return i === r || a;
|
|
838
794
|
}
|
|
839
|
-
function
|
|
795
|
+
function is(t) {
|
|
840
796
|
return t.series[0]?.binTemporalData ?? !1;
|
|
841
797
|
}
|
|
842
|
-
function
|
|
798
|
+
function ss(t, e) {
|
|
843
799
|
e?.series.forEach((i) => {
|
|
844
|
-
(i?.type ===
|
|
845
|
-
unit:
|
|
800
|
+
(i?.type === M.BarSeries || i?.type === M.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
|
|
801
|
+
unit: H.Day,
|
|
846
802
|
size: 0,
|
|
847
|
-
timeAggregationType:
|
|
803
|
+
timeAggregationType: ve.Start,
|
|
848
804
|
trimIncompleteTimeInterval: !0,
|
|
849
|
-
nullPolicy:
|
|
805
|
+
nullPolicy: j.Null
|
|
850
806
|
} : delete i.temporalBinning);
|
|
851
807
|
});
|
|
852
808
|
}
|
|
853
809
|
export {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
810
|
+
St as $,
|
|
811
|
+
Di as A,
|
|
812
|
+
Mi as B,
|
|
813
|
+
wi as C,
|
|
814
|
+
Ni as D,
|
|
815
|
+
ki as E,
|
|
816
|
+
Pi as F,
|
|
817
|
+
Ri as G,
|
|
818
|
+
Ei as H,
|
|
819
|
+
z as I,
|
|
820
|
+
$i as J,
|
|
821
|
+
Ui as K,
|
|
822
|
+
Xi as L,
|
|
867
823
|
Yi as M,
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
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
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
os as v,
|
|
921
|
-
ds as w,
|
|
922
|
-
us as x,
|
|
923
|
-
Li as y,
|
|
924
|
-
wi as z
|
|
824
|
+
Ki as N,
|
|
825
|
+
Wi as O,
|
|
826
|
+
he as P,
|
|
827
|
+
J as Q,
|
|
828
|
+
U as R,
|
|
829
|
+
yt as S,
|
|
830
|
+
fe as T,
|
|
831
|
+
gt as U,
|
|
832
|
+
ci as V,
|
|
833
|
+
mt as W,
|
|
834
|
+
yi as X,
|
|
835
|
+
pt as Y,
|
|
836
|
+
gi as Z,
|
|
837
|
+
ft as _,
|
|
838
|
+
Se as a,
|
|
839
|
+
mi as a0,
|
|
840
|
+
ts as a1,
|
|
841
|
+
es as a2,
|
|
842
|
+
is as a3,
|
|
843
|
+
ss as a4,
|
|
844
|
+
Ji as a5,
|
|
845
|
+
ui as a6,
|
|
846
|
+
di as a7,
|
|
847
|
+
oi as a8,
|
|
848
|
+
ni as a9,
|
|
849
|
+
li as aa,
|
|
850
|
+
rt as ab,
|
|
851
|
+
Ft as b,
|
|
852
|
+
ji as c,
|
|
853
|
+
Hi as d,
|
|
854
|
+
Bi as e,
|
|
855
|
+
Ci as f,
|
|
856
|
+
Zi as g,
|
|
857
|
+
Ai as h,
|
|
858
|
+
bi as i,
|
|
859
|
+
Qi as j,
|
|
860
|
+
zi as k,
|
|
861
|
+
_i as l,
|
|
862
|
+
Gi as m,
|
|
863
|
+
pi as n,
|
|
864
|
+
fi as o,
|
|
865
|
+
Ii as p,
|
|
866
|
+
vi as q,
|
|
867
|
+
qi as r,
|
|
868
|
+
xi as s,
|
|
869
|
+
Li as t,
|
|
870
|
+
Fi as u,
|
|
871
|
+
Si as v,
|
|
872
|
+
Ti as w,
|
|
873
|
+
hi as x,
|
|
874
|
+
Vi as y,
|
|
875
|
+
Oi as z
|
|
925
876
|
};
|