@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
|
@@ -6,12 +6,16 @@ import type { IField } from "../../spec/rest-js-types.js";
|
|
|
6
6
|
import type { WebChartDataItem, WebChartDataItemValue } from "../../spec/data-source.js";
|
|
7
7
|
import type { OverlayTerms, LegendItemVisibility } from "../../spec/events.js";
|
|
8
8
|
|
|
9
|
+
/** @internal */
|
|
9
10
|
export type ChartTypes = Extract<WebChartTypes, WebChartType>;
|
|
10
11
|
|
|
12
|
+
/** @internal */
|
|
11
13
|
export type XYChartTypes = Extract<WebChartTypes, XYChartType>;
|
|
12
14
|
|
|
15
|
+
/** @internal */
|
|
13
16
|
export type SerialChartTypes = Extract<WebChartTypes, SerialChartType>;
|
|
14
17
|
|
|
18
|
+
/** @internal */
|
|
15
19
|
export type SupportedCharts = Extract<ChartTypes, SupportedChartType>;
|
|
16
20
|
|
|
17
21
|
/**
|
|
@@ -19,6 +23,7 @@ export type SupportedCharts = Extract<ChartTypes, SupportedChartType>;
|
|
|
19
23
|
*
|
|
20
24
|
* @param chartConfig - the chart config.
|
|
21
25
|
* @returns the color policy.
|
|
26
|
+
* @internal
|
|
22
27
|
*/
|
|
23
28
|
export function getColorMatch(chartConfig?: WebChart): boolean;
|
|
24
29
|
|
|
@@ -26,6 +31,7 @@ export function getColorMatch(chartConfig?: WebChart): boolean;
|
|
|
26
31
|
* Indicates whether or not the chart is rotated.
|
|
27
32
|
*
|
|
28
33
|
* @param chartConfig - the chart config.
|
|
34
|
+
* @internal
|
|
29
35
|
*/
|
|
30
36
|
export function isChartRotated(chartConfig?: WebChart): boolean;
|
|
31
37
|
|
|
@@ -33,6 +39,7 @@ export function isChartRotated(chartConfig?: WebChart): boolean;
|
|
|
33
39
|
* Getting the list of series types from a series config array.
|
|
34
40
|
*
|
|
35
41
|
* @param chartSeries - The array of chart's series
|
|
42
|
+
* @internal
|
|
36
43
|
*/
|
|
37
44
|
export function getSeriesTypes(chartSeries?: WebChartSeries[]): ChartTypes[];
|
|
38
45
|
|
|
@@ -41,6 +48,7 @@ export function getSeriesTypes(chartSeries?: WebChartSeries[]): ChartTypes[];
|
|
|
41
48
|
* For Line, Bar, Box-plot, and Radar chart, default option is 'sideBySide'
|
|
42
49
|
*
|
|
43
50
|
* @param config
|
|
51
|
+
* @internal
|
|
44
52
|
*/
|
|
45
53
|
export function getStackedType(config?: WebChart): WebChartStackedKinds | undefined;
|
|
46
54
|
|
|
@@ -49,6 +57,7 @@ export function getStackedType(config?: WebChart): WebChartStackedKinds | undefi
|
|
|
49
57
|
* For example: Cote d'Ivoire -> Cote d''Ivoire
|
|
50
58
|
*
|
|
51
59
|
* @param string - input string to replace for any special characters.
|
|
60
|
+
* @internal
|
|
52
61
|
*/
|
|
53
62
|
export function escapeSQLString(string: string): string;
|
|
54
63
|
|
|
@@ -66,6 +75,7 @@ export function escapeSQLString(string: string): string;
|
|
|
66
75
|
* "alp"\/ha" => "alp\"\\\/ha"
|
|
67
76
|
*
|
|
68
77
|
* @param props - The string to normalize
|
|
78
|
+
* @internal
|
|
69
79
|
*/
|
|
70
80
|
export function normalizeString(props: {
|
|
71
81
|
value: string;
|
|
@@ -81,6 +91,7 @@ export function normalizeString(props: {
|
|
|
81
91
|
* For pie chart, a limit on the number of slices is set.
|
|
82
92
|
*
|
|
83
93
|
* @param props - Number total of elements on the chart
|
|
94
|
+
* @internal
|
|
84
95
|
*/
|
|
85
96
|
export function isNumberOfElementsUnderLimit(props: {
|
|
86
97
|
count: number;
|
|
@@ -94,6 +105,7 @@ export function isNumberOfElementsUnderLimit(props: {
|
|
|
94
105
|
*
|
|
95
106
|
* @param fields - The field name to look for in the field array
|
|
96
107
|
* @param fieldName - The list of fields containing all the information regarding the fields, including the alias
|
|
108
|
+
* @internal
|
|
97
109
|
*/
|
|
98
110
|
export function getFieldAlias(fields: IField[] | undefined, fieldName: string): string;
|
|
99
111
|
|
|
@@ -120,6 +132,7 @@ export function getFieldAlias(fields: IField[] | undefined, fieldName: string |
|
|
|
120
132
|
*
|
|
121
133
|
* @param fields - The field alias to look for in the field array
|
|
122
134
|
* @param fieldAlias - The list of fields containing all the information regarding the fields, including the alias
|
|
135
|
+
* @internal
|
|
123
136
|
*/
|
|
124
137
|
export function getFieldNameFromFieldAlias(fields: IField[] | undefined, fieldAlias: string): string;
|
|
125
138
|
|
|
@@ -128,6 +141,7 @@ export function getFieldNameFromFieldAlias(fields: IField[] | undefined, fieldAl
|
|
|
128
141
|
* For Pie charts, hide the legend when there is only one slice.
|
|
129
142
|
*
|
|
130
143
|
* @param chartSeries
|
|
144
|
+
* @internal
|
|
131
145
|
*/
|
|
132
146
|
export function canShowLegend(chartSeries: WebChartSeries[]): boolean;
|
|
133
147
|
|
|
@@ -137,6 +151,7 @@ export function canShowLegend(chartSeries: WebChartSeries[]): boolean;
|
|
|
137
151
|
*
|
|
138
152
|
* @param supportedChartTypes - The list of supported chart types
|
|
139
153
|
* @param config - The chart's config
|
|
154
|
+
* @internal
|
|
140
155
|
*/
|
|
141
156
|
export function isSupportedChart(supportedChartTypes: WebChartTypes[], config?: WebChart): boolean;
|
|
142
157
|
|
|
@@ -146,6 +161,7 @@ export function isSupportedChart(supportedChartTypes: WebChartTypes[], config?:
|
|
|
146
161
|
*
|
|
147
162
|
* @param value - The value to test
|
|
148
163
|
* @returns `true` if empty, `false` otherwise
|
|
164
|
+
* @internal
|
|
149
165
|
*/
|
|
150
166
|
export function isEmptyStringField(value: string | null | undefined): boolean;
|
|
151
167
|
|
|
@@ -155,6 +171,7 @@ export function isEmptyStringField(value: string | null | undefined): boolean;
|
|
|
155
171
|
* @param data - the object to look into
|
|
156
172
|
* @param propertyList - the array of property keys to search the data if one of them is present.
|
|
157
173
|
* @returns An object containing a boolean indicating the propertyList presence, and the property key that matched
|
|
174
|
+
* @internal
|
|
158
175
|
*/
|
|
159
176
|
export function isPropertyKeyInData<T extends WebChartDataItem>(data: T, propertyList: string[]): {
|
|
160
177
|
isInItem: boolean;
|
|
@@ -167,6 +184,7 @@ export function isPropertyKeyInData<T extends WebChartDataItem>(data: T, propert
|
|
|
167
184
|
*
|
|
168
185
|
* @param dataItem - the object to look into
|
|
169
186
|
* @returns An object containing a boolean indicating the expression's presence, and the expression key that matched
|
|
187
|
+
* @internal
|
|
170
188
|
*/
|
|
171
189
|
export function isQueryCalculatedExprInItem(dataItem: WebChartDataItem): {
|
|
172
190
|
isInItem: boolean;
|
|
@@ -179,6 +197,7 @@ export function isQueryCalculatedExprInItem(dataItem: WebChartDataItem): {
|
|
|
179
197
|
* @param unit
|
|
180
198
|
* @param strings
|
|
181
199
|
* @returns Localized unit type label
|
|
200
|
+
* @internal
|
|
182
201
|
*/
|
|
183
202
|
export function getTimeIntervalUnitLabel(unit: WebChartTemporalBinningUnits, strings: {
|
|
184
203
|
seconds?: string;
|
|
@@ -194,6 +213,7 @@ export function getTimeIntervalUnitLabel(unit: WebChartTemporalBinningUnits, str
|
|
|
194
213
|
* Returns the appropriate `index` to fetch the default color from `overlayRamp[]` array for a histogram overlay
|
|
195
214
|
*
|
|
196
215
|
* @param overlayType
|
|
216
|
+
* @internal
|
|
197
217
|
*/
|
|
198
218
|
export function getOverlayColorIndex(overlayType: OverlayTerms | undefined): number;
|
|
199
219
|
|
|
@@ -202,6 +222,7 @@ export function getOverlayColorIndex(overlayType: OverlayTerms | undefined): num
|
|
|
202
222
|
*
|
|
203
223
|
* @param event - The config that gets updated for each series visibility
|
|
204
224
|
* @param config - The event that is currently being called
|
|
225
|
+
* @internal
|
|
205
226
|
*/
|
|
206
227
|
export function updateSeriesVisibility(event: Pick<CustomEvent<LegendItemVisibility>, "detail">, config?: WebBoxPlot | WebChart): void;
|
|
207
228
|
|
|
@@ -209,6 +230,7 @@ export function updateSeriesVisibility(event: Pick<CustomEvent<LegendItemVisibil
|
|
|
209
230
|
* Sanitize an HTML string to prevent XSS attacks (https://owasp.org/www-community/attacks/xss/)
|
|
210
231
|
*
|
|
211
232
|
* @param inputToSanitize - The HTML string to sanitize
|
|
233
|
+
* @internal
|
|
212
234
|
*/
|
|
213
235
|
export function sanitizeHTMLOutput(inputToSanitize: string): string;
|
|
214
236
|
|
|
@@ -221,6 +243,7 @@ export function sanitizeHTMLOutput(inputToSanitize: string): string;
|
|
|
221
243
|
* - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
|
|
222
244
|
*
|
|
223
245
|
* @param value
|
|
246
|
+
* @internal
|
|
224
247
|
*/
|
|
225
248
|
export function isValidNumber(value: WebChartDataItemValue): boolean;
|
|
226
249
|
|
|
@@ -229,6 +252,7 @@ export function isValidNumber(value: WebChartDataItemValue): boolean;
|
|
|
229
252
|
*
|
|
230
253
|
* @param stringToParse - The input string to parse, like `orderByField` of a query clause or `orderDataBy` property of a chart config.
|
|
231
254
|
* @param useDefault - If set to `false`, the default sort order will not be used.
|
|
255
|
+
* @internal
|
|
232
256
|
*/
|
|
233
257
|
export function getOrderByComponents(stringToParse: string, useDefault?: boolean): {
|
|
234
258
|
fieldToSort: string;
|
|
@@ -240,6 +264,7 @@ export function getOrderByComponents(stringToParse: string, useDefault?: boolean
|
|
|
240
264
|
*
|
|
241
265
|
* @param chartConfig - The chart config
|
|
242
266
|
* @returns The list of fields to sort by
|
|
267
|
+
* @internal
|
|
243
268
|
*/
|
|
244
269
|
export function getOrderByFields(chartConfig: WebChart): string[];
|
|
245
270
|
|
|
@@ -248,6 +273,7 @@ export function getOrderByFields(chartConfig: WebChart): string[];
|
|
|
248
273
|
*
|
|
249
274
|
* @param chartSubType - The chart subtype
|
|
250
275
|
* @returns `true` if the chart subtype is a split by chart, `false` otherwise
|
|
276
|
+
* @internal
|
|
251
277
|
*/
|
|
252
278
|
export function isSplitByChart(chartSubType: ChartSubType): boolean;
|
|
253
279
|
|
|
@@ -258,6 +284,7 @@ export function isSplitByChart(chartSubType: ChartSubType): boolean;
|
|
|
258
284
|
* @param selectionA - The first selection data
|
|
259
285
|
* @param selectionB - The second selection data
|
|
260
286
|
* @returns a boolean indicating whether the two selections are equal
|
|
287
|
+
* @internal
|
|
261
288
|
*/
|
|
262
289
|
export function hasSelectionChanged(selectionA?: SelectionData, selectionB?: SelectionData): boolean;
|
|
263
290
|
|
|
@@ -265,6 +292,7 @@ export function hasSelectionChanged(selectionA?: SelectionData, selectionB?: Sel
|
|
|
265
292
|
* Indicates whether the selection data is empty.
|
|
266
293
|
*
|
|
267
294
|
* @param selectionData - The selection data to check
|
|
295
|
+
* @internal
|
|
268
296
|
*/
|
|
269
297
|
export function isSelectionEmpty(selectionData: SelectionData | undefined): boolean;
|
|
270
298
|
|
|
@@ -272,6 +300,7 @@ export function isSelectionEmpty(selectionData: SelectionData | undefined): bool
|
|
|
272
300
|
* Sorts `arrayA` based on the indexes of the elements in `arrayB`.
|
|
273
301
|
*
|
|
274
302
|
* @param props - The array to be sorted
|
|
303
|
+
* @internal
|
|
275
304
|
*/
|
|
276
305
|
export function sortArrayAUsingArrayB<T, K>(props?: {
|
|
277
306
|
arrayA: T[];
|
|
@@ -6,10 +6,15 @@ import type { CategoryFormatOptions, DateTimeFormatOptions, NumberFormatOptions,
|
|
|
6
6
|
import type { ChartTypes } from "../misc/index.js";
|
|
7
7
|
import type { ChartConfig } from "../types/index.js";
|
|
8
8
|
|
|
9
|
+
/** @internal */
|
|
9
10
|
export type StringIndexable<T> = Record<string, unknown>
|
|
10
11
|
& T;
|
|
11
12
|
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Web chart series with rotated property
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
13
18
|
export type WebChartSeriesWithRotatedProp = WebChartSeries
|
|
14
19
|
& {
|
|
15
20
|
rotated?: boolean;
|
|
@@ -19,6 +24,7 @@ export type WebChartSeriesWithRotatedProp = WebChartSeries
|
|
|
19
24
|
* Check if the chart config supports rotation or not.
|
|
20
25
|
*
|
|
21
26
|
* @param config - the chart config
|
|
27
|
+
* @internal
|
|
22
28
|
*/
|
|
23
29
|
export function isRotationSupported(config: WebChart): config is WebChart & { series: WebChartSeriesWithRotatedProp[]; };
|
|
24
30
|
|
|
@@ -26,6 +32,7 @@ export function isRotationSupported(config: WebChart): config is WebChart & { se
|
|
|
26
32
|
* Check if the chart config supports rotation or not.
|
|
27
33
|
*
|
|
28
34
|
* @param config - the chart config
|
|
35
|
+
* @internal
|
|
29
36
|
*/
|
|
30
37
|
export function isStackedTypeSupported(config: WebChart): config is WebChart & { series: WebChartSeriesWithStackedTypeProp[]; };
|
|
31
38
|
|
|
@@ -33,6 +40,7 @@ export function isStackedTypeSupported(config: WebChart): config is WebChart & {
|
|
|
33
40
|
* Type guard for `ISimpleFillSymbol`
|
|
34
41
|
*
|
|
35
42
|
* @param symbol
|
|
43
|
+
* @internal
|
|
36
44
|
*/
|
|
37
45
|
export function isSFS(symbol: any): symbol is ISimpleFillSymbol;
|
|
38
46
|
|
|
@@ -40,6 +48,7 @@ export function isSFS(symbol: any): symbol is ISimpleFillSymbol;
|
|
|
40
48
|
* Type guard for `ISimpleLineSymbol`
|
|
41
49
|
*
|
|
42
50
|
* @param symbol
|
|
51
|
+
* @internal
|
|
43
52
|
*/
|
|
44
53
|
export function isSLS(symbol: any): symbol is ISimpleLineSymbol;
|
|
45
54
|
|
|
@@ -47,6 +56,7 @@ export function isSLS(symbol: any): symbol is ISimpleLineSymbol;
|
|
|
47
56
|
* Type guard for `ISimpleMarkerSymbol`
|
|
48
57
|
*
|
|
49
58
|
* @param symbol
|
|
59
|
+
* @internal
|
|
50
60
|
*/
|
|
51
61
|
export function isSMS(symbol: any): symbol is ISimpleMarkerSymbol;
|
|
52
62
|
|
|
@@ -54,6 +64,7 @@ export function isSMS(symbol: any): symbol is ISimpleMarkerSymbol;
|
|
|
54
64
|
* Type guard for `WebChartTextSymbol`
|
|
55
65
|
*
|
|
56
66
|
* @param symbol
|
|
67
|
+
* @internal
|
|
57
68
|
*/
|
|
58
69
|
export function isWebChartTextSymbol(symbol: any): symbol is WebChartTextSymbol;
|
|
59
70
|
|
|
@@ -61,13 +72,17 @@ export function isWebChartTextSymbol(symbol: any): symbol is WebChartTextSymbol;
|
|
|
61
72
|
* Determines if the provided `config` has a `iLayer` property.
|
|
62
73
|
*
|
|
63
74
|
* @param config
|
|
75
|
+
* @internal
|
|
64
76
|
*/
|
|
65
77
|
export function hasILayer<T extends ModelTypes>(config: ChartConfig<T> | undefined): config is ChartConfig<T, T extends "boxPlot" ? WebBoxPlot : T extends "gauge" ? WebGaugeChart : T extends "heatChart" ? WebHeatChart : WebChart>;
|
|
66
78
|
|
|
67
79
|
/** @param config */
|
|
68
80
|
export function hasILayer(config: WebChart | undefined): config is WebChart & { iLayer: IFeatureLayer; };
|
|
69
81
|
|
|
70
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* @param config
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
71
86
|
export function hasILayer<T extends ModelTypes>(config: ChartConfig<T> | undefined): unknown;
|
|
72
87
|
|
|
73
88
|
/**
|
|
@@ -75,6 +90,7 @@ export function hasILayer<T extends ModelTypes>(config: ChartConfig<T> | undefin
|
|
|
75
90
|
*
|
|
76
91
|
* @param config - The chart config to check.
|
|
77
92
|
* @param chartType - The chart type to check against.
|
|
93
|
+
* @internal
|
|
78
94
|
*/
|
|
79
95
|
export function isChartType<T extends ChartConfig>(config: WebChart | undefined, chartType: ChartTypes | undefined): config is T;
|
|
80
96
|
|
|
@@ -82,6 +98,7 @@ export function isChartType<T extends ChartConfig>(config: WebChart | undefined,
|
|
|
82
98
|
* Determines if the series is a box plot series.
|
|
83
99
|
*
|
|
84
100
|
* @param series - The series to check.
|
|
101
|
+
* @internal
|
|
85
102
|
*/
|
|
86
103
|
export function isBoxPlotSeries(series: WebChartSeries | undefined): series is WebChartBoxPlotSeries;
|
|
87
104
|
|
|
@@ -89,6 +106,7 @@ export function isBoxPlotSeries(series: WebChartSeries | undefined): series is W
|
|
|
89
106
|
* Determines if the series is a line chart series.
|
|
90
107
|
*
|
|
91
108
|
* @param series - The series to check.
|
|
109
|
+
* @internal
|
|
92
110
|
*/
|
|
93
111
|
export function isLineChartSeries(series: WebChartSeries | undefined): series is WebChartLineChartSeries;
|
|
94
112
|
|
|
@@ -96,6 +114,7 @@ export function isLineChartSeries(series: WebChartSeries | undefined): series is
|
|
|
96
114
|
* Determines if the series is a radar chart series.
|
|
97
115
|
*
|
|
98
116
|
* @param series - The series to check.
|
|
117
|
+
* @internal
|
|
99
118
|
*/
|
|
100
119
|
export function isRadarChartSeries(series: WebChartSeries | undefined): series is WebChartRadarChartSeries;
|
|
101
120
|
|
|
@@ -103,6 +122,7 @@ export function isRadarChartSeries(series: WebChartSeries | undefined): series i
|
|
|
103
122
|
* Determines if the series is a bar chart series.
|
|
104
123
|
*
|
|
105
124
|
* @param series - The series to check.
|
|
125
|
+
* @internal
|
|
106
126
|
*/
|
|
107
127
|
export function isBarChartSeries(series: WebChartSeries | undefined): series is WebChartBarChartSeries;
|
|
108
128
|
|
|
@@ -110,6 +130,7 @@ export function isBarChartSeries(series: WebChartSeries | undefined): series is
|
|
|
110
130
|
* Determines if the series is a heat chart series.
|
|
111
131
|
*
|
|
112
132
|
* @param series - | undefined} series The series to check.
|
|
133
|
+
* @internal
|
|
113
134
|
*/
|
|
114
135
|
export function isHeatChartSeries(series: WebChartSeries | undefined): series is WebChartHeatChartSeries;
|
|
115
136
|
|
|
@@ -117,6 +138,7 @@ export function isHeatChartSeries(series: WebChartSeries | undefined): series is
|
|
|
117
138
|
* Type guard to check if the series is a `BarChartSeries`.
|
|
118
139
|
*
|
|
119
140
|
* @param series - The series to check.
|
|
141
|
+
* @internal
|
|
120
142
|
*/
|
|
121
143
|
export function isBarChartSeriesArray(series: WebChartSeries[]): series is WebChartBarChartSeries[];
|
|
122
144
|
|
|
@@ -124,6 +146,7 @@ export function isBarChartSeriesArray(series: WebChartSeries[]): series is WebCh
|
|
|
124
146
|
* Type guard to check if the series is a `LineChartSeries`.
|
|
125
147
|
*
|
|
126
148
|
* @param series - The series to check.
|
|
149
|
+
* @internal
|
|
127
150
|
*/
|
|
128
151
|
export function isLineChartSeriesArray(series: WebChartSeries[]): series is WebChartLineChartSeries[];
|
|
129
152
|
|
|
@@ -131,6 +154,7 @@ export function isLineChartSeriesArray(series: WebChartSeries[]): series is WebC
|
|
|
131
154
|
* Type guard to check if the series is a `RadarChartSeries`.
|
|
132
155
|
*
|
|
133
156
|
* @param series - The series to check.
|
|
157
|
+
* @internal
|
|
134
158
|
*/
|
|
135
159
|
export function isRadarChartSeriesArray(series: WebChartSeries[]): series is WebChartRadarChartSeries[];
|
|
136
160
|
|
|
@@ -139,6 +163,7 @@ export function isRadarChartSeriesArray(series: WebChartSeries[]): series is Web
|
|
|
139
163
|
*
|
|
140
164
|
* @param series - series - The series to check.
|
|
141
165
|
* @returns {series is WebChartHeatChartSeries[]}
|
|
166
|
+
* @internal
|
|
142
167
|
*/
|
|
143
168
|
export function isHeatChartSeriesArray(series: WebChartSeries[]): series is WebChartHeatChartSeries[];
|
|
144
169
|
|
|
@@ -146,6 +171,7 @@ export function isHeatChartSeriesArray(series: WebChartSeries[]): series is WebC
|
|
|
146
171
|
* Determines if the series array is of type box plot series.
|
|
147
172
|
*
|
|
148
173
|
* @param series - The series to check.
|
|
174
|
+
* @internal
|
|
149
175
|
*/
|
|
150
176
|
export function isBoxPlotSeriesArray(series: WebChartSeries[]): series is WebChartBoxPlotSeries[];
|
|
151
177
|
|
|
@@ -153,6 +179,7 @@ export function isBoxPlotSeriesArray(series: WebChartSeries[]): series is WebCha
|
|
|
153
179
|
* Type guard for axis format being `NumberFormatOptions`
|
|
154
180
|
*
|
|
155
181
|
* @param valueFormat - valueFormat to check
|
|
182
|
+
* @internal
|
|
156
183
|
*/
|
|
157
184
|
export function isNumberFormatOptions(valueFormat: CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined): valueFormat is NumberFormatOptions;
|
|
158
185
|
|
|
@@ -160,6 +187,7 @@ export function isNumberFormatOptions(valueFormat: CategoryFormatOptions | DateT
|
|
|
160
187
|
* Type guard for `WebChartDataTypes` being `WebChartHistogramDataItem`.
|
|
161
188
|
*
|
|
162
189
|
* @param data - dataItem to check
|
|
190
|
+
* @internal
|
|
163
191
|
*/
|
|
164
192
|
export function isWebChartHistogramDataItemOrUndefined(data: WebChartDataTypes | undefined): data is WebChartHistogramDataItem | undefined;
|
|
165
193
|
|
|
@@ -167,6 +195,7 @@ export function isWebChartHistogramDataItemOrUndefined(data: WebChartDataTypes |
|
|
|
167
195
|
* Type guard for `WebChartDataTypes` being `WebChartGenericDataItem`.
|
|
168
196
|
*
|
|
169
197
|
* @param data - dataItem to check
|
|
198
|
+
* @internal
|
|
170
199
|
*/
|
|
171
200
|
export function isWebChartGenericDataItemOrUndefined(data: WebChartDataTypes | undefined): data is WebChartGenericDataItem | undefined;
|
|
172
201
|
|
|
@@ -174,10 +203,16 @@ export function isWebChartGenericDataItemOrUndefined(data: WebChartDataTypes | u
|
|
|
174
203
|
* Type guard for `WebChartDataTypes` being `WebChartScatterplotDataItem`.
|
|
175
204
|
*
|
|
176
205
|
* @param data - dataItem to check
|
|
206
|
+
* @internal
|
|
177
207
|
*/
|
|
178
208
|
export function isWebChartScatterplotDataItemOrUndefined(data: WebChartDataTypes | undefined): data is WebChartScatterplotDataItem | undefined;
|
|
179
209
|
|
|
180
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* TODO: Once charts-shared-utils is merged into charts-components, we can create a more official version of this type-guard using the AmCharts types.
|
|
212
|
+
*
|
|
213
|
+
* @param axisDataItem
|
|
214
|
+
* @internal
|
|
215
|
+
*/
|
|
181
216
|
export function isValueAxisDataItem<T extends object>(axisDataItem: T): axisDataItem is T & { value: number; };
|
|
182
217
|
|
|
183
218
|
/** Web chart series with stackedType property */
|
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import type { WebChartCalendarDatePartsBinning, WebChartHeatChartSeries, WebChartSeries, WebChartTemporalBinning } from "../../spec/web-chart.js";
|
|
2
2
|
import type { ChartTypes } from "../misc/index.js";
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Determines if a Set of series type matches a combo bar-line chart
|
|
6
|
+
*
|
|
7
|
+
* @param uniqueTypes - The set of unique series types
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export function isComboLineAndBarChart(uniqueTypes: Set<string>): boolean | undefined;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Determines if a Set of series type matches a box plot
|
|
14
|
+
*
|
|
15
|
+
* @param uniqueTypes - The set of unique series types
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export function isBoxPlotChart(uniqueTypes: Set<string>): boolean;
|
|
19
|
+
|
|
4
20
|
/**
|
|
5
21
|
* Getting the type of a chart or series. If the input parameters are incorrect (empty array of series, or a mix of unknown/unallowed series types) the function returns `undefined`.
|
|
6
22
|
* To get the series type, a valid seriesIndex is required. Otherwise, the type of a chart is determined and returned.
|
|
7
23
|
*
|
|
8
24
|
* @param chartSeries - The array of chart's series
|
|
9
25
|
* @param seriesIndex - An index to get a specific series' type. A valid index is required if the goal is to get the type of the series.
|
|
26
|
+
* @internal
|
|
10
27
|
*/
|
|
11
28
|
export function getChartOrSeriesType(chartSeries: WebChartSeries[] | undefined, seriesIndex?: number): ChartTypes | undefined;
|
|
12
29
|
|
|
@@ -16,5 +33,6 @@ export function getChartOrSeriesType(chartSeries: WebChartSeries[] | undefined,
|
|
|
16
33
|
* @param chartSeries - The heat chart series to check
|
|
17
34
|
* @param isXAxis - An indicator to find the associated binning type for the x-axis or y-axis
|
|
18
35
|
* @returns The binning type for the specified axis
|
|
36
|
+
* @internal
|
|
19
37
|
*/
|
|
20
38
|
export function getHeatChartBinningType(chartSeries: WebChartHeatChartSeries | undefined, isXAxis?: boolean): WebChartCalendarDatePartsBinning | WebChartTemporalBinning | undefined;
|
|
@@ -45,6 +45,7 @@ export const ChartComponentEvents: {
|
|
|
45
45
|
readonly RenderingComplete: "arcgisRenderingComplete";
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
/** @internal */
|
|
48
49
|
export const DefaultChartActions: {
|
|
49
50
|
readonly FilterBySelection: "filterBySelection";
|
|
50
51
|
readonly FilterByExtent: "filterByExtent";
|
|
@@ -62,28 +63,52 @@ export const DefaultChartActions: {
|
|
|
62
63
|
|
|
63
64
|
export type DefaultChartActions = (typeof DefaultChartActions)[keyof typeof DefaultChartActions];
|
|
64
65
|
|
|
65
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* Type alias for a Histogram config.
|
|
68
|
+
*
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
66
71
|
export type HistogramConfig = Omit<WebChart, "series">
|
|
67
72
|
& {
|
|
68
73
|
series: WebChartHistogramSeries[];
|
|
69
74
|
};
|
|
70
75
|
|
|
71
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* Type alias for a Scatterplot config.
|
|
78
|
+
*
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
72
81
|
export type ScatterplotConfig = Omit<WebChart, "series">
|
|
73
82
|
& {
|
|
74
83
|
series: WebChartScatterplotSeries[];
|
|
75
84
|
};
|
|
76
85
|
|
|
77
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Type alias for a Gauge Chart config.
|
|
88
|
+
*
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
78
91
|
export type GaugeChartConfig = WebGaugeChart;
|
|
79
92
|
|
|
80
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* Type alias for a Box Plot config.
|
|
95
|
+
*
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
81
98
|
export type BoxPlotConfig = WebBoxPlot;
|
|
82
99
|
|
|
83
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* Type alias for a Heat Chart config.
|
|
102
|
+
*
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
84
105
|
export type HeatChartConfig = WebHeatChart;
|
|
85
106
|
|
|
86
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* Type alias for the supported chart series types.
|
|
109
|
+
*
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
87
112
|
export type SupportedChartSeries = WebChartBarChartSeries | WebChartBoxPlotSeries | WebChartGaugeSeries | WebChartHistogramSeries | WebChartLineChartSeries | WebChartPieChartSeries | WebChartRadarChartSeries | WebChartScatterplotSeries;
|
|
88
113
|
|
|
89
114
|
/**
|
|
@@ -3,13 +3,17 @@ import type { WebChart } from "../../spec/web-chart.js";
|
|
|
3
3
|
import type { WebChartTypes } from "../../spec/chart-object-literals.js";
|
|
4
4
|
import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @param chart
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
7
10
|
export function getChartIcon(chart: WebChart): Icon["icon"];
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* Fetches the chart type text based on the provided chart type.
|
|
11
14
|
*
|
|
12
15
|
* @param chartType
|
|
16
|
+
* @internal
|
|
13
17
|
*/
|
|
14
18
|
export function fetchChartText(chartType: WebChartTypes): Promise<string>;
|
|
15
19
|
|
|
@@ -18,5 +22,6 @@ export function fetchChartText(chartType: WebChartTypes): Promise<string>;
|
|
|
18
22
|
*
|
|
19
23
|
* @param chartType
|
|
20
24
|
* @param commonStrings
|
|
25
|
+
* @internal
|
|
21
26
|
*/
|
|
22
27
|
export function getChartText(chartType: WebChartTypes, commonStrings: CommonStrings): string;
|
|
@@ -5,6 +5,7 @@ import type { Popover as Popover } from "@esri/calcite-components/components/cal
|
|
|
5
5
|
* Remove popover element
|
|
6
6
|
*
|
|
7
7
|
* @param popover - popover element to be removed
|
|
8
|
+
* @internal
|
|
8
9
|
*/
|
|
9
10
|
export function removePopover(popover: any): null;
|
|
10
11
|
|
|
@@ -13,6 +14,7 @@ export function removePopover(popover: any): null;
|
|
|
13
14
|
*
|
|
14
15
|
* @param popover - a popover element
|
|
15
16
|
* @param isOpen - determine whether to open popover or not
|
|
17
|
+
* @internal
|
|
16
18
|
*/
|
|
17
19
|
export function editPopover(popover: Popover | undefined, isOpen?: boolean): void;
|
|
18
20
|
|
|
@@ -22,5 +24,6 @@ export function editPopover(popover: Popover | undefined, isOpen?: boolean): voi
|
|
|
22
24
|
* @param newSelectedContent - new selected content
|
|
23
25
|
* @param oldSelectedContent - old selected content
|
|
24
26
|
* @returns true if the selected content has changed, false otherwise
|
|
27
|
+
* @internal
|
|
25
28
|
*/
|
|
26
29
|
export function popoverSelectedContentHasChanged(newSelectedContent: IntervalPopoverProps | string[] | string | undefined, oldSelectedContent: IntervalPopoverProps | string[] | string | undefined): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.150",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"simple-statistics": "^7.8.8",
|
|
42
42
|
"tslib": "^2.8.1",
|
|
43
43
|
"uuid": "^11.1.0",
|
|
44
|
-
"@arcgis/lumina": "5.0.0-next.
|
|
45
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
44
|
+
"@arcgis/lumina": "5.0.0-next.150",
|
|
45
|
+
"@arcgis/toolkit": "5.0.0-next.150"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@arcgis/core": "^5.0.0-next",
|
package/dist/cdn/3IFN5UNC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{d as a}from"./BVAXFPTE.js";import{g as f}from"./NTORA6PS.js";import b from"./FDMFAAYD.js";import{k as t}from"./XKVQ2IIF.js";import"./Z4XTLHV3.js";import"./NKG4FLLR.js";import{F as c,g as n,h as s,m,z as h}from"./CF5YAZDQ.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Cc:d,Ec:g,Gc:p,Hc:y}])=>{var C=n`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,l=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async i=>{let e=i?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(e)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.arcgisChartsConfigNoSeriesUpdate=m()}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,timeZone:1,popoverPlacement:1,seriesColor:0,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5}}static{this.styles=C}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(i){let e=!1;i.has("model")&&this.modelChange(this.model,i.get("model")),i.has("layer")&&this.layer!==void 0&&!t(i.get("layer"),this.layer)&&(e=!0),i.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==i.get("usePopupTemplateFieldsInfo")&&(e=!0),i.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(e=!0),e&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(i,e){e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),i?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(i){this.activeColorMatch=i?.get(0)?.markerSymbol===void 0,this.model.colorMatch&&i?.forEach((e,o)=>{e&&i?.get(0)!==void 0&&("lineSymbol"in e&&(e.lineSymbol?.color!==void 0&&!t(this.model.getSeriesColor(o),e.lineSymbol.color)&&this.model.setSeriesColor(e.lineSymbol.color,o),e.lineSymbol?.style!==void 0&&!t(this.model.getSeriesLineStyle(o),e.lineSymbol.style)&&this.model.setSeriesLineStyle(e.lineSymbol.style,o),e.lineSymbol?.width!==void 0&&!t(this.model.getSeriesLineWidth(o),e.lineSymbol.width)&&this.model.setSeriesLineWidth(e.lineSymbol.width,o)),"markerSymbol"in e&&(e.markerSymbol?.color!==void 0&&!t(this.model.getSeriesMarkerColor(o),e.markerSymbol?.color)&&this.model.setSeriesMarkerColor(e.markerSymbol?.color,o),e.markerSymbol?.style!==void 0&&!t(this.model.getSeriesMarkerStyle(o),e.markerSymbol?.style)&&this.model.setSeriesMarkerStyle(e.markerSymbol?.style,o),e.markerSymbol?.size!==void 0&&this.model.getSeriesMarkerSize(o)!==e.markerSymbol?.size&&this.model.setSeriesMarkerSize(e.markerSymbol?.size,o)))})}async updateFetchLayerFieldsInfo(i){let e=i??this.model.config,o=this.layer;if(!o){let r=f(e)?e.iLayer:void 0;r&&(o=await d(r))}o&&(this.layerFieldsInfo=await g(o,this.usePopupTemplateFieldsInfo))}render(){let i=this.layerFieldsInfo?.find(r=>r.name===this.model.xAxisField),e=i!==void 0&&(p(i)||y(i)),o;switch(this.page){case a.Data:o=s`<arcgis-charts-config-line-chart-data .model=${this.model} .resetTimeInterval=${this.model.resetTimeInterval} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-line-chart-data>`;break;case a.Series:o=s`<arcgis-charts-config-line-chart-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-line-chart-series>`;break;case a.Axes:o=s`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case a.Guides:o=s`<arcgis-charts-config-guides .model=${this.model} .timeZone=${this.timeZone} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .enableXAxisGuide=${e} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case a.Format:o=s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case a.General:o=s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:o="";break}return o}};c("arcgis-charts-config-line-chart",l);return l},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b)
|
package/dist/cdn/3NE6BHA7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{b as g}from"./KU3WZFI6.js";import d from"./P4IJGBEM.js";import"./BVAXFPTE.js";import{a as m}from"./QUWXB6XH.js";import c from"./PTHMEJ4M.js";import"./NTORA6PS.js";import b from"./FDMFAAYD.js";import"./XKVQ2IIF.js";import"./Z4XTLHV3.js";import{k as e}from"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as s,F as h,g as l,h as i,m as a,x as r,y as p,z as n}from"./CF5YAZDQ.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,{a:d}])=>{var o={selectChartComponent:"select-chart-component",jsAppFlyout:"js-app-flyout",panel:"panel"},C=l`.hide{display:none}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.select-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}calcite-block{width:var(--arcgis-charts-config-calcite-block-default-width);height:var(--arcgis-charts-config-calcite-block-default-height);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.header{margin:0}.panel{max-height:60vh}`,c=class extends n{constructor(){super(...arguments),this._messages=m(),this.selectChartTypePopover=r(),this.arcgisChartsConfigPopoverClose=a(),this.arcgisChartsConfigSelectChartTypeChange=a()}static{this.properties={messageOverrides:0,headerTitle:1,layerId:1,open:5,referenceElement:0,popoverPlacement:1,selectedModelType:1}}static{this.styles=C}async reposition(){await this.selectChartTypePopover.value?.reposition()}updated(){g(this.selectChartTypePopover.value,this.open),this.hasUpdated||setTimeout(()=>{this.selectChartTypePopover.value?.reposition()},d.PopoverTimer)}buildChartTypesList(){return i`<calcite-list label @click=${this.onChartTypeClick}><calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType===e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.lineChart} .value=${e.LineChart} .selected=${this.selectedModelType===e.LineChart}><calcite-icon slot=content-start icon=graph-time-series></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.pieChart} .value=${e.PieChart} .selected=${this.selectedModelType===e.PieChart}><calcite-icon slot=content-start icon=pie-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType===e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType===e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.boxPlot} .value=${e.BoxPlot} .selected=${this.selectedModelType===e.BoxPlot}><calcite-icon slot=content-start icon=box-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.calendarHeatChart} .value=${e.HeatChart} .selected=${this.selectedModelType===e.HeatChart}><calcite-icon slot=content-start icon=calendar-heat-chart></calcite-icon></calcite-list-item></calcite-list>`}onChartTypeClick(t){t.target?.localName==="calcite-list-item"?this.selectedModelType=t.target?.value:this.selectedModelType=t.target?.parentNode?.value,this.arcgisChartsConfigSelectChartTypeChange.emit()}popoverOpen(){setTimeout(()=>{this.selectChartTypePopover.value?.setFocus()},250)}popoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit(),setTimeout(()=>{this.referenceElement?.setFocus()},250)}render(){return i`<div class=${s({[o.selectChartComponent]:!0,[o.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top","bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${p(this.selectChartTypePopover)}><calcite-panel class=${s(o.panel)} .heading=${this.headerTitle??this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`}};h("arcgis-charts-config-select-chart-type-popover",c);return c},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b,c,d)
|
package/dist/cdn/3T66I3AV.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import m from"./QJ7AL2JA.js";import l from"./NDRUBDOF.js";import k from"./AZXSIAD5.js";import j from"./ZAIDOCYY.js";import i from"./QZQBEPBF.js";import h from"./CCE73L6Y.js";import g from"./5ZDTPYVX.js";import f from"./ZEKY74JE.js";import e from"./QEUQO5PH.js";import d from"./GXU3KAZJ.js";import c from"./PTHMEJ4M.js";import"./NTORA6PS.js";import a from"./FDMFAAYD.js";import{j as y,k as F}from"./XKVQ2IIF.js";import"./Z4XTLHV3.js";import"./S24EVUYE.js";import"./KUVOINJC.js";import{a as b}from"./NKG4FLLR.js";import"./CF5YAZDQ.js";import"./OR4HXHSY.js";export default $arcgis.t(([{substitute:re},,,,,,,,,,,,,,,{Bb:m,Ic:L,Md:g,ca:_,da:f,xa:A},{a:v,d:p,g:C,q:M},{c:d},,{c:I},{g:P},{O:W,a:w,b:z,c:E,d:Y,e:O},{b:G,d:H,f:J},{b:D,d:X,f:q},{a:Z,b:B},{b:j},{a:k,b:N}])=>{var Q=i=>{p({config:i,value:null,axisIndex:0,isMax:!1}),p({config:i,value:null,axisIndex:0,isMax:!0}),p({config:i,value:null,axisIndex:1,isMax:!1}),p({config:i,value:null,axisIndex:1,isMax:!0})},R=i=>{let{name:e,axisIndex:s,config:r,layerInfo:o}=i,{layerFieldsInfo:t}=o,n=t.find(x=>x.name===e),l=n!==void 0&&L(n);C(r,s,l)};function U(i,e,s){let r=T(i,e,s),o=P(i),t=g(i);return r===o||t}function V(i,e){let{layerFieldsInfo:s}=e,r=m(s,h(i)),o=I(1,i),t=g(i);return r===o||t}function $(i,e){let{layerFieldsInfo:s}=e,r=u(i),o=m(s,r),t=I(0,i),n=g(i);return o===t||n}function T(i,e,s){let r=u(i),o=h(i),{layerFieldsInfo:t}=e,n=m(t,r),l=m(t,o);return re(s.titleLabels.xAndY,{x:n,y:l})}var ee=i=>{let{x:e,y:s,config:r,layerInfo:o,updateChartTitle:t,updateXAxisTitle:n,updateYAxisTitle:l,commonStrings:x}=i,{layerFieldsInfo:S}=o,ie=m(S,e),se=m(S,s);!y(e)&&n&&v(r,0,ie),!y(s)&&l&&v(r,1,se),!y(e)&&!y(s)&&r.title&&t&&(r.title.content.text=T(r,o,x))},u=i=>i.series[0]?.x??"",h=i=>i.series[0]?.y??"",oe=i=>{let{fieldName:e,config:s,layerInfo:r,commonStrings:o}=i,t=U(s,r,o),n=$(s,r),l=V(s,r);Q(s),s.series[0]&&(s.series[0].x=e),ee({x:e,y:h(s),config:s,layerInfo:r,updateChartTitle:t,commonStrings:o,updateXAxisTitle:n,updateYAxisTitle:l}),R({name:e,axisIndex:0,config:s,layerInfo:r})},te=i=>{let{fieldName:e,config:s,layerInfo:r,commonStrings:o}=i,t=U(s,r,o),n=$(s,r),l=V(s,r);Q(s),s.series[0]&&(s.series[0].y=e),ee({x:u(s),y:e,config:s,layerInfo:r,commonStrings:o,updateChartTitle:t,updateXAxisTitle:n,updateYAxisTitle:l}),R({name:e,axisIndex:1,config:s,layerInfo:r})},ne=i=>{let e={};return i.series[0]?.markerSymbol??e},ae=(i,e)=>{e.series[0]&&(e.series[0].markerSymbol=i)},le=i=>(i.series[0]?.overlays?.trendLine?.visible??!0)&&(i.series[0]?.overlays?.trendLine?.created??!1),de=i=>{let e={};return i.series[0]?.overlays?.trendLine?.symbol??e},me=(i,e)=>{e.series[0].overlays??=f(),e.series[0].overlays.trendLine??=f().trendLine,e.series[0].overlays.trendLine.symbol=i},ce=(i,e)=>{e.series[0].overlays??=f(),e.series[0].overlays.trendLine??=f().trendLine,e.series[0].overlays.trendLine.visible=i},fe=(i,e)=>{!(e.series[0]?.overlays?.trendLine?.created??!1)&&i&&(e.series[0].overlays??=f(),e.series[0].overlays.trendLine??=f().trendLine,e.series[0].overlays.trendLine.created=i),ce(i,e)},K=i=>i.series[0]?.sizePolicy??_(),ye=(i,e)=>{e.series[0]&&(i!==void 0&&i.field?.trim()!==""?e.series[0].sizePolicy={...e.series[0].sizePolicy,...i}:e.series[0].sizePolicy=void 0)},pe=i=>i?.series?.[0]?.overlays,ge=(i,e)=>{e?.series[0]!==void 0&&(e.series[0].overlays=i)},ue=i=>i.series.find(e=>e.additionalTooltipFields!==void 0)?.additionalTooltipFields??[],he=(i,e)=>{e.series.forEach(s=>{Array.isArray(i)?s.additionalTooltipFields=i:typeof i=="string"?s.additionalTooltipFields=i.trim()===""?[]:[i]:s.additionalTooltipFields=[]})},xe=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,c=(i,e,s,r)=>{for(var o=ve(e,s),t=i.length-1,n;t>=0;t--)(n=i[t])&&(o=n(e,s,o)||o);return o&&xe(e,s,o),o},a=class extends w{constructor(){super(...arguments),this._chartType=b.ScatterSeries}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get xAxisField(){return u(this._config)}set xAxisField(e){oe({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get yAxisField(){return h(this._config)}set yAxisField(e){te({fieldName:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get showLinearTrend(){return le(this._config)}set showLinearTrend(e){fe(e,this._config)}get linearTrendSymbol(){return de(this._config)}set linearTrendSymbol(e){me(e,this._config)}get fixedMarkerSymbol(){return ne(this._config)}set fixedMarkerSymbol(e){ae(e,this._config)}get sizePolicy(){return K(this._config)}set sizePolicy(e){let s=K(this._config);F(s,e)||ye(e,this._config)}get seriesOverlays(){return pe(this._config)}set seriesOverlays(e){e!==void 0&&ge(e,this._config)}get additionalTooltipField(){return ue(this._config)}set additionalTooltipField(e){he(e,this._config)}generateChartTitle(){return T(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){let e=this.yAxisField;return m(this.layerInfo.layerFieldsInfo,e)}generateDefaultConfig(){return A(this.commonStrings)}};c([d],a.prototype,"xAxisField");c([d],a.prototype,"yAxisField");c([d],a.prototype,"showLinearTrend");c([d],a.prototype,"linearTrendSymbol");c([d],a.prototype,"fixedMarkerSymbol");c([d],a.prototype,"sizePolicy");c([d],a.prototype,"seriesOverlays");c([d],a.prototype,"additionalTooltipField");var Ie=[W,z,E,k,N,j,Y,O,G,B,H,Z,D,X,q,J];M(a,Ie);return a},"intl","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,c,d,e,f,g,h,i,j,k,l,m)
|
package/dist/cdn/4G3CMZYX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import g from"./5ZDTPYVX.js";import e from"./ZEKY74JE.js";import c from"./QEUQO5PH.js";import b from"./PTHMEJ4M.js";import{h as O,o as ae}from"./NTORA6PS.js";import a from"./FDMFAAYD.js";import{d as $,g as E,j as X,k as ee,s as oe}from"./XKVQ2IIF.js";import{b as d}from"./KUVOINJC.js";import{a as f,h as x,v as u}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,{substitute:V},,,,,,,,{$:R,Bb:B,C:J,E:I,Ed:le,Jc:ne,Ka:K,Lc:Q,Mc:U,Md:L,R:j,S:ie,T:re,Vc:A,Zc:te,_:T,ha:se,la:W},{a:C,d:Y,e:Z,f:ce,n:me,r:ye},{i:D},{c:P},{g:de}])=>{var uo=(o,e)=>e?.series?.[o]?.name,So=(o,e,i)=>{let r=i;r?.series?.[e]!==void 0&&(r.series[e].name=o)},po=(o,e)=>{let i,r=e.series?.[o];return r?.type===f.BoxPlotSeries?i=r.fillSymbol?.color:r?.type===f.LineSeries&&(i=r.lineSymbol?.color),i},ve=o=>{let e=o.series[0];return o.showMean===!0&&O(e)?e.fillSymbol?.color:void 0},Be=(o,e)=>{let i=e.series[0];e.showMean===!0&&O(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...T(),color:o})},bo=(o,e,i)=>{let r=i?.series?.[e];r?.type===f.BoxPlotSeries&&r.fillSymbol!==void 0?r.fillSymbol.color=o:r?.type===f.LineSeries&&r.lineSymbol!==void 0&&(r.lineSymbol.color=o,r.markerSymbol!==void 0&&(r.markerSymbol.color=o))},Me=o=>o.series.map(e=>e.id),Ae=(o,e)=>{e?.series?.sort((i,r)=>o.findIndex(s=>i.id===s)-o.findIndex(s=>r.id===s))},ho=(o,e,i)=>{let r=Me(i),[s]=r.splice(o,1);r.splice(e,0,s),Ae(r,i)},xo=o=>_(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Le(o,e,i){let r=he(o,e,i),s=de(o),n=L(o);return r===s||n}function fe(o,e,i){let r=k(o,e,i),s=P(1,o),n=L(o);return r===s||n}function Oe(o){let{config:e,layerInfo:i,newCategory:r}=o,{layerFieldsInfo:s}=i,n=M(e),l=r!==I?B(s,n):"",t=P(0,e),a=L(e);return l===t||a||t.trim()===""}var M=o=>A(o)?.x??I,Ce=$(o=>{let e=A(o),i=e?.query?.where?.split("=")[0].trim()??"";return te(e?.query?.where)?"":i},o=>A(o)?.query?.where),ge=$(o=>le(o?.series).filter(e=>e!==""),o=>o?.series),N=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...W(s,i),x:e===void 0||e===""?I:e,y:r,query:{}};return E(n)},ke=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...se({commonStrings:s,seriesIndex:i}),x:e===void 0||e===""?I:e,y:r,query:{}};return E(n)};function ue(o){let{x:e,y:i,seriesTemplate:r,commonStrings:s}=o,{id:n,fillSymbol:l}=r??{},t=W(s),a=n??`series_${Date.now()}`;return t.id=a,t.name=a,t.x=e,t.y=i,l?t.fillSymbol=l:t.fillSymbol&&(t.fillSymbol.color=K,t.fillSymbol?.outline&&(t.fillSymbol.outline.color=K)),t}function Se(o){let{numericFields:e,config:i,layerInfo:r,category:s,commonStrings:n}=o,{layerFieldsInfo:l}=r,t=[],a=s??M(i),m=!1,c=D({fieldName:a,numericFields:e,fieldList:l});if(e.length===0){let S=N({y:"",seriesIndex:0,category:a,commonStrings:n});t.push(S)}else if(c){let S=e.length>1?e:e[0],w=N({y:S,seriesIndex:0,category:a,commonStrings:n}),b=e.length>1?n.axisLabels.values:B(r.layerFieldsInfo,e[0]),p={...w,id:e[0],name:b,x:c?I:a},g=i.series.find(y=>ee(S,y.y)&&y.query?.where===void 0);g!==void 0&&(!i.colorMatch&&"fillSymbol"in g&&(p.fillSymbol=g.fillSymbol,m=!0),p.id=g.id,p.name=g.name),t.push(p)}else for(let S=0;S<e.length;S+=1){let w=e[S],b=N({y:w,seriesIndex:S,category:a,commonStrings:n}),p=B(l,w),g={...b,id:w,name:p,x:a},y=i.series.find(v=>w===v.y);y!==void 0&&(!i.colorMatch&&"fillSymbol"in y&&(g.fillSymbol=y.fillSymbol,m=!0),g.id=y.id,g.name=y.name),t.push(g)}return i.series.length===1&&t.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(t[0].fillSymbol=i.series[0].fillSymbol,m=!0),i.colorMatch=!m,t}var pe=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",qe=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function Te(o,e,i){let r=[];return o.forEach(s=>{if(s.type===f.BoxPlotSeries){let{type:n,fillSymbol:l,...t}=s;r.push({...t,type:f.LineSeries,lineSymbol:{...j({width:J}),...l!==void 0?{color:l.color}:{}},markerSymbol:{...R(),...l!==void 0?{color:l.color}:{}}})}}),r.unshift(ue({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),r}function De(o){let e=o.slice(1),i=[];return e.forEach(r=>{if(r.type===f.LineSeries){let{type:s,lineSymbol:n,markerSymbol:l,...t}=r,a=T();i.push({...t,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function be(o){let{formerSeries:e,newSeries:i,showMean:r}=o,s=i,n=a=>a.type===(r?f.LineSeries:f.BoxPlotSeries),l=e.filter(n).map(a=>a.id),t=i.filter(n).map(a=>a.id);return l.length===t.length&&JSON.stringify(l)!==JSON.stringify(t)&&(s=s.sort((a,m)=>l.findIndex(c=>c===a.id)-l.findIndex(c=>c===m.id))),s}async function Pe(o){let{config:e,layerInfo:i,commonStrings:r,splitByField:s,numericFields:n,category:l}=o,{layer:t,layerFieldsInfo:a}=i,{fetchNullValues:m}=A(e)?.query??{},c=l??M(e),{categoriesArray:S,splitByFieldType:w}=await me({config:e,layer:t,layerFieldsInfo:a,xAxisField:G(c)?void 0:c,aggregationFields:n,splitByField:s,fetchNullValues:m}),b=[],p=!1,g=qe(e);if(S.length===0){b=Se({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:r});for(let y of b)y.query&&(y.query.where=`${s}=''`)}else for(let y=0;y<S.length;y+=1){let v=S[y],q={y:n,seriesIndex:y,category:c,commonStrings:r},H=g?ke(q):N(q),we={fieldName:s,fieldValueToMatch:v??"",subtypeInfo:Q(i.layer),fieldList:i.layerFieldsInfo},Fe=U(we),z=`${v}`,F={...H,id:z,name:Fe??z,x:c===void 0||c===""?I:c,query:{...H.query,where:`${s}=${w===oe.String&&v!==null?`'${v}'`:v}`}},h=e.series.find(Ie=>pe(Ie)===z);h!==void 0&&(e.colorMatch||(F.type===f.BoxPlotSeries?O(h)?F.fillSymbol=h.fillSymbol:F.fillSymbol={...T(),color:h.lineSymbol?.color}:O(h)?(F.lineSymbol={...j({width:J}),...h.fillSymbol!==void 0?{color:h.fillSymbol.color}:{}},F.markerSymbol={...R(),...h.fillSymbol!==void 0?{color:h.fillSymbol.color}:{}}):(F.lineSymbol=h.lineSymbol,F.markerSymbol=h.markerSymbol),p=!0),F.id=h.id,F.name=h.name),b.push(F)}if(b=be({formerSeries:e.series,newSeries:b,showMean:_(e)}),e.colorMatch=!p,_(e)){let y=e.series.find(q=>q.type===f.BoxPlotSeries),v=ue({x:c,y:n,seriesTemplate:y,commonStrings:r});b.unshift(v)}return b}var wo=async o=>{let{splitByField:e,numericFields:i,category:r,config:s,layerInfo:n,commonStrings:l}=o,{layerFieldsInfo:t}=n,a=$e(r,i,e),m=ne(t),c=M(s),S=Le(s,n,l),w=fe(s,n,l),b=Oe({config:s,layerInfo:n,newCategory:r}),p=Z(s);if(!m.includes(c)&&m.includes(r)?p=re():m.includes(c)&&!m.includes(r)&&(p=ie()),p!==void 0&&ce(s,l,p),Ne(a?{newShowMeanLines:s.showMean,config:s,commonStrings:l}:{newShowMeanLines:!1,config:s,commonStrings:l}),s.series=a?await Pe({config:s,layerInfo:n,splitByField:e,numericFields:i,category:r,commonStrings:l}):Se({numericFields:i,config:s,layerInfo:n,category:r,commonStrings:l}),b){let g=D({fieldName:r,numericFields:i,fieldList:t})?"":B(t,r);C(s,0,g)}if(w){let g=k(s,n,l);C(s,1,g)}s?.title!==void 0&&S&&(s.title.content.text=he(s,n,l)),Y({config:s,value:null,axisIndex:1,isMax:!1}),Y({config:s,value:null,axisIndex:1,isMax:!0})},Ve=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:r}=e,s=Ve(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(l=>l.y).flat();return n=[...new Set(n)],n.length===1&&(s=B(r,n[0])),s}function he(o,e,i){let{layerFieldsInfo:r}=e,s=M(o),n=ge(o),l=Ce(o),t=n.map(c=>B(r??[],c)).join(", "),a=B(r??[],s),m="";return n.length>0&&(s!==I&&l!==""?m=V(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:t,category:a,splitByField:l}):s!==I?m=V(i.titleLabels.distributionOfFieldsByCategory,{valueFields:t,category:a}):l!==""?m=V(i.titleLabels.distributionOfFieldsByCategory,{valueFields:t,category:l}):m=V(i.titleLabels.distributionOfField,{valueField:t})),m}var Fo=o=>{let{series:e,splitByField:i,layerInfo:r,commonStrings:s}=o,n=typeof e.y=="string"?B(r.layerFieldsInfo,e.y):s.axisLabels.values;X(i)||(n=pe(e));let l={fieldName:i,fieldValueToMatch:n??"",subtypeInfo:Q(r.layer),fieldList:r.layerFieldsInfo};return n=U(l)??n,n??e.id},Io=o=>o?.showOutliers??!1,vo=o=>{let{newShowOutliers:e,config:i,layerInfo:r,commonStrings:s}=o;if(i.showOutliers=e,fe(i,r,s)){let n=k(i,r,s);C(i,1,n)}},Bo=o=>{let{newStandardizeValues:e,config:i,layerInfo:r,commonStrings:s}=o,n=P(1,i),l=k(i,r,s),t=L(i);if(i.standardizeValues=e,n===l||t){let a=k(i,r,s);C(i,1,a)}},xe=o=>{let e=d.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,r=o.orderOptions?.data&&"orderBy"in o.orderOptions.data?o.orderOptions.data.orderBy:x.Ascending;switch(i){case u.Category:e=Array.isArray(r)?d.customSort:r===x.Ascending?d.xAxisAsc:d.xAxisDesc;break;case u.Mean:e=r===x.Ascending?d.meanAsc:d.meanDesc;break;case u.Median:e=r===x.Ascending?d.medianAsc:d.medianDesc;break}return e},Mo=(o,e,i)=>{let r=u.Category,s=x.Ascending;if(e.orderOptions=e.orderOptions??{},o===d.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case d.xAxisAsc:{r=u.Category,s=x.Ascending;break}case d.xAxisDesc:{r=u.Category,s=x.Descending;break}case d.meanAsc:{r=u.Mean,s=x.Ascending;break}case d.meanDesc:{r=u.Mean,s=x.Descending;break}case d.medianAsc:{r=u.Median,s=x.Ascending;break}case d.medianDesc:{r=u.Median,s=x.Descending;break}}e.orderOptions.data={orderType:r,orderBy:s}}},_=o=>o.showMean??!1,Ne=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:r,previousMeanLinesBoxColor:s}=o,n=e?s:ve(i),l=(e??!1)!==(i.showMean??!1);if(i.showMean=e,l){let t;e?t=ae(i.series)?Te(i.series,r):i.series:t=De(i.series),t&&(t=be({formerSeries:i.series,newSeries:t,showMean:e}),i.series=t)}return e&&s!==void 0&&Be(s,i),{previousMeanLinesBoxColor:n}},Ao=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===d.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},Lo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===d.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},Oo=async(o,e)=>{let i=M(o),r=Z(o)?.type,s=ge(o),n=[];return r===f.CategoryAxisFormat&&(D({fieldName:i,numericFields:s,fieldList:e.layerFieldsInfo})?n=s:G(i)||(n=await ye({layerInfo:e,config:o,category:i}))),n},G=o=>o.trim()===""||o===I,ze=(o,e)=>e.length>1&&!G(o),$e=(o,e,i)=>!ze(o,e)&&i!=="";return{a:uo,b:So,c:po,d:ve,e:Be,f:bo,g:Me,h:Ae,i:ho,j:xo,k:M,l:Ce,m:ge,n:wo,o:Ve,p:k,q:he,r:Fo,s:Io,t:vo,u:Bo,v:xe,w:Mo,x:_,y:Ne,z:Ao,A:Lo,B:Oo,C:ze,D:$e}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic",a,b,c,e,g)
|