@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{6PAONFHB.js → 24AOJE7B.js} +1 -1
- package/dist/cdn/{VOTZAPI3.js → 3KRPCKJZ.js} +1 -1
- package/dist/cdn/{Z7EBST4A.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/{P3RM2ACY.js → 425PZ2QJ.js} +1 -1
- package/dist/cdn/{KC6CFXB7.js → 4PHYDOBF.js} +1 -1
- package/dist/cdn/{5MVNVHYG.js → 567CLBG4.js} +1 -1
- package/dist/cdn/{RKN64EJQ.js → 5IIF22XN.js} +1 -1
- package/dist/cdn/{5HQ2CJEQ.js → 5IN5WK2R.js} +1 -1
- package/dist/cdn/5LXX2PUM.js +2 -0
- package/dist/cdn/5NTIKQP4.js +2 -0
- package/dist/cdn/{UNUPCA4W.js → 5YEADAVZ.js} +1 -1
- package/dist/cdn/{7IV6GMF7.js → 6R7VSDDU.js} +1 -1
- package/dist/cdn/{FCXI523J.js → 76MOP26H.js} +1 -1
- package/dist/cdn/77A4T4FJ.js +2 -0
- package/dist/cdn/{CUJHGXNK.js → 7JIHGRTB.js} +1 -1
- package/dist/cdn/{CHQDKVVQ.js → 7YXTWBT4.js} +1 -1
- package/dist/cdn/{TZ4GOE2Q.js → AHYYQWKY.js} +1 -1
- package/dist/cdn/{FAQDMSUC.js → ASI7RDYV.js} +1 -1
- package/dist/cdn/{X6WA2KXK.js → AXS3UMQJ.js} +1 -1
- package/dist/cdn/BHUFE4DA.js +2 -0
- package/dist/cdn/{DYC3Q36R.js → CEWH3LQO.js} +1 -1
- package/dist/cdn/{B7DM7VT6.js → CTBQ5Y4Z.js} +1 -1
- package/dist/cdn/CVK7KFEC.js +2 -0
- package/dist/cdn/{BZCVDNC4.js → DFKVPDMJ.js} +16 -16
- package/dist/cdn/DJGEQ42V.js +2 -0
- package/dist/cdn/DL43NPDO.js +2 -0
- package/dist/cdn/{4OZZXXZF.js → E2DO2HQ6.js} +1 -1
- package/dist/cdn/E4LJWBRC.js +2 -0
- package/dist/cdn/EDSF5KGV.js +233 -0
- package/dist/cdn/EE3KEIAT.js +2 -0
- package/dist/cdn/EJCGZPIV.js +2 -0
- package/dist/cdn/{XMQCH4QI.js → ETSB7KD3.js} +1 -1
- package/dist/cdn/{P6SC5DD2.js → F6QRLYSF.js} +1 -1
- package/dist/cdn/{PTFRQF65.js → FBMA7FW4.js} +1 -1
- package/dist/cdn/{EUOPRFMU.js → FEKSPYHM.js} +1 -1
- package/dist/cdn/FUAA6IFR.js +4 -0
- package/dist/cdn/FWRMJQXY.js +2 -0
- package/dist/cdn/{7SNOZDAD.js → G5FULTB5.js} +1 -1
- package/dist/cdn/{45JPWIBI.js → GISGGO3Z.js} +1 -1
- package/dist/cdn/{CPPT5HUK.js → GQPOEX7B.js} +26 -26
- package/dist/cdn/{PKMZ6N6M.js → GYXK3DV7.js} +1 -1
- package/dist/cdn/{AT2NWWBG.js → H45LPCQ2.js} +1 -1
- package/dist/cdn/HW6MJJSX.js +2 -0
- package/dist/cdn/{RG3I5ORH.js → HZFHTWL6.js} +1 -1
- package/dist/cdn/{GWQJXXP3.js → I2EERAZ3.js} +1 -1
- package/dist/cdn/{MRTKZZTF.js → I5T7JUDH.js} +1 -1
- package/dist/cdn/IE3GLZJZ.js +2 -0
- package/dist/cdn/{V7MBHG4F.js → IL2FG26D.js} +1 -1
- package/dist/cdn/{YVVQVAJZ.js → JBPYGZPJ.js} +1 -1
- package/dist/cdn/JEOBO5JM.js +2 -0
- package/dist/cdn/{FJPGZEGK.js → KPWHYSA5.js} +1 -1
- package/dist/cdn/{JILAM6NH.js → KXUQJ6GE.js} +1 -1
- package/dist/cdn/{V76PIVCF.js → KZQFX7LH.js} +1 -1
- package/dist/cdn/{G6OHBBUT.js → L5DROI2A.js} +1 -1
- package/dist/cdn/LL7NH3VV.js +2 -0
- package/dist/cdn/{I2M6YAUU.js → LUMOL7ZP.js} +1 -1
- package/dist/cdn/{H6NH46AS.js → LYJFZA2M.js} +1 -1
- package/dist/cdn/{3FTJIVFE.js → MBSMC77K.js} +1 -1
- package/dist/cdn/{A5GIBV5W.js → MVGAATR7.js} +1 -1
- package/dist/cdn/NNZCIR7W.js +2 -0
- package/dist/cdn/NZXQ5BWP.js +2 -0
- package/dist/cdn/{UT4TYXFO.js → O4HUYRYL.js} +1 -1
- package/dist/cdn/{V2XJSJH4.js → O4LKWTBY.js} +1 -1
- package/dist/cdn/{KKWXEF5W.js → OW2DLJGU.js} +1 -1
- package/dist/cdn/{WASEMNYV.js → P2F2O6MH.js} +1 -1
- package/dist/cdn/P4UJJCPG.js +2 -0
- package/dist/cdn/{BBURKBKE.js → P56ROGSK.js} +1 -1
- package/dist/cdn/{RWEUTQWS.js → PMIWXHTG.js} +1 -1
- package/dist/cdn/PXIAM4CZ.js +2 -0
- package/dist/cdn/QPSJ6XOX.js +2 -0
- package/dist/cdn/R7HW5WVG.js +2 -0
- package/dist/cdn/{S6PJHEJ7.js → RJCJ3F5C.js} +1 -1
- package/dist/cdn/RKB6QZNW.js +2 -0
- package/dist/cdn/{EQVQRZHJ.js → S6LH7YS6.js} +1 -1
- package/dist/cdn/S74GCXXK.js +3 -0
- package/dist/cdn/{JNNB2DIA.js → SA22QZNW.js} +1 -1
- package/dist/cdn/{ZQCUJ7VE.js → SJVVFOAX.js} +1 -1
- package/dist/cdn/{M75ENKIU.js → SOKKWGPA.js} +1 -1
- package/dist/cdn/SQYOFBS6.js +2 -0
- package/dist/cdn/{MKQAQDRM.js → SVGAVKBQ.js} +1 -1
- package/dist/cdn/SX6SDBU7.js +2 -0
- package/dist/cdn/TTBRUBXY.js +2 -0
- package/dist/cdn/{7BEC5WZB.js → U5IM4KAQ.js} +1 -1
- package/dist/cdn/{UQPFMDJB.js → UE5VX2RL.js} +1 -1
- package/dist/cdn/{GCSGY6GL.js → UIRKQREJ.js} +1 -1
- package/dist/cdn/{URYNG6OA.js → UIY2PSG4.js} +1 -1
- package/dist/cdn/UNTIPIBS.js +2 -0
- package/dist/cdn/{DNMVB3A2.js → VIY3BCJZ.js} +1 -1
- package/dist/cdn/{XFZX5ULX.js → WHJU66P4.js} +1 -1
- package/dist/cdn/{F5Q73CFW.js → WJ2VDT6B.js} +1 -1
- package/dist/cdn/{LKY2A3U6.js → WPPMMVD5.js} +1 -1
- package/dist/cdn/WU3C7BQU.js +2 -0
- package/dist/cdn/WWO326JE.js +2 -0
- package/dist/cdn/{6JGLHOFY.js → XNWSVHA3.js} +1 -1
- package/dist/cdn/{O4M33ZPK.js → XOM6LSIW.js} +1 -1
- package/dist/cdn/{YZQ54BRI.js → XP4S2M7F.js} +1 -1
- package/dist/cdn/YALB4GSA.js +2 -0
- package/dist/cdn/YUF4ZSA5.js +2 -0
- package/dist/cdn/ZJHV3UVG.js +2 -0
- package/dist/cdn/{TORIY3OE.js → ZQ2WG55W.js} +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -0
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +8 -8
- package/dist/chunks/axis-lines-symbol.js +4 -4
- package/dist/chunks/bar-chart-model.js +13 -13
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/box-plot-data.js +5 -5
- package/dist/chunks/box-plot-model.js +18 -18
- package/dist/chunks/chart-model.js +170 -138
- package/dist/chunks/chart-ui-utils2.js +13 -13
- package/dist/chunks/class-breaks.js +21 -21
- package/dist/chunks/combo-bar-line-chart-model.js +2 -2
- package/dist/chunks/data.js +63 -63
- package/dist/chunks/gauge-model.js +14 -14
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +19 -19
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +11 -11
- package/dist/chunks/index2.js +1663 -1654
- package/dist/chunks/index3.js +39 -36
- package/dist/chunks/index4.js +10812 -680
- package/dist/chunks/index5.js +87 -10782
- package/dist/chunks/index6.js +63 -100
- package/dist/chunks/interfaces.js +3 -3
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +11 -11
- package/dist/chunks/model-with-x-guides.js +6 -6
- package/dist/chunks/model-with-y-guides.js +2 -2
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/pie-chart-data.js +2 -2
- package/dist/chunks/pie-chart-model.js +2 -2
- package/dist/chunks/radar-chart-model.js +2 -2
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +19 -19
- package/dist/chunks/serial-chart-data.js +564 -548
- package/dist/chunks/serial-chart-model.js +44 -44
- package/dist/chunks/series-length.js +2 -2
- package/dist/chunks/series.js +2 -2
- package/dist/chunks/store.js +5 -5
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/type-guards3.js +4 -4
- package/dist/chunks/utils.js +14 -14
- package/dist/chunks/web-component-utils.js +601 -491
- package/dist/chunks/x-bounds.js +4 -4
- package/dist/components/arcgis-chart/customElement.d.ts +48 -41
- package/dist/components/arcgis-chart/customElement.js +5081 -5123
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +29 -29
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +35 -36
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +21 -21
- package/dist/components/arcgis-charts-config-format/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -16
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -27
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +29 -31
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +35 -35
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +38 -40
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +13 -14
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- 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.d.ts +70 -62
- package/dist/index.js +476 -471
- package/dist/json-schema/index.d.ts +59 -2
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/{model.js → model/shared/setup-utils.js} +12 -12
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +8 -2
- package/dist/utils/chart-config/converter/index.js +723 -0
- package/dist/utils/chart-config/utils/index.d.ts +31 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
- package/dist/utils/defaults/index.d.ts +1 -2
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +3 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/query-parser/index.d.ts +3 -3
- package/dist/utils/localization/interfaces.d.ts +4 -0
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +8 -6
- package/dist/cdn/45PJ5TQL.js +0 -2
- package/dist/cdn/47HHRDX4.js +0 -2
- package/dist/cdn/6LQYOBAL.js +0 -2
- package/dist/cdn/6SRISPQN.js +0 -3
- package/dist/cdn/74JAZF7U.js +0 -2
- package/dist/cdn/7YBKGD3V.js +0 -2
- package/dist/cdn/ATIARKAU.js +0 -2
- package/dist/cdn/CAJVNPHZ.js +0 -2
- package/dist/cdn/CXQOEN77.js +0 -2
- package/dist/cdn/D23GGWFM.js +0 -2
- package/dist/cdn/EXTKNE2L.js +0 -2
- package/dist/cdn/FT2K3J7O.js +0 -2
- package/dist/cdn/GUH6CQE6.js +0 -2
- package/dist/cdn/HJHMEVMB.js +0 -2
- package/dist/cdn/HUCSTT64.js +0 -2
- package/dist/cdn/HX4236ZL.js +0 -2
- package/dist/cdn/IWVS6SKP.js +0 -2
- package/dist/cdn/KV4ZPVWQ.js +0 -2
- package/dist/cdn/MOMKSNIZ.js +0 -2
- package/dist/cdn/NS3THLCD.js +0 -2
- package/dist/cdn/NS7OCROO.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/OVM5QF7Q.js +0 -2
- package/dist/cdn/OY6UOUYX.js +0 -2
- package/dist/cdn/P74SXC5B.js +0 -2
- package/dist/cdn/PEZCCXQ7.js +0 -2
- package/dist/cdn/PYKHO4QI.js +0 -2
- package/dist/cdn/RKKWMNWU.js +0 -2
- package/dist/cdn/S3BC57BJ.js +0 -4
- package/dist/cdn/TTDZKISK.js +0 -2
- package/dist/cdn/TXSWWAOF.js +0 -2
- package/dist/cdn/YKGZVYK2.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/chunks/index7.js +0 -66
- /package/dist/cdn/{ABIVSH72.js → 2OHFSVV5.js} +0 -0
- /package/dist/cdn/{TSI3C3OV.js → 2XXW3WF3.js} +0 -0
- /package/dist/cdn/{XWKBJDZT.js → 3JYZJUOM.js} +0 -0
- /package/dist/cdn/{NHDVOYQ2.js → 3TZEMBXR.js} +0 -0
- /package/dist/cdn/{UAZ34KDJ.js → 4OH4NSIW.js} +0 -0
- /package/dist/cdn/{XIJ5VLER.js → 5SIAOUPO.js} +0 -0
- /package/dist/cdn/{75P3QRL4.js → 7QXRWMUN.js} +0 -0
- /package/dist/cdn/{4QQVKRJ5.js → AASL4RKT.js} +0 -0
- /package/dist/cdn/{PH6UOHRS.js → ANN3O54W.js} +0 -0
- /package/dist/cdn/{N6OT5IBC.js → BDGHBTPU.js} +0 -0
- /package/dist/cdn/{ZFM5RGWD.js → FFS73X36.js} +0 -0
- /package/dist/cdn/{5AOYADA3.js → FOYOG3G7.js} +0 -0
- /package/dist/cdn/{53FG76LL.js → FWAXKDYV.js} +0 -0
- /package/dist/cdn/{B4KT2HUE.js → H3EXGCE7.js} +0 -0
- /package/dist/cdn/{FLO3N6JD.js → I6UPUSLQ.js} +0 -0
- /package/dist/cdn/{WVRBLV5L.js → IVLVCLDE.js} +0 -0
- /package/dist/cdn/{NG2IHVZ4.js → IYA7HQMS.js} +0 -0
- /package/dist/cdn/{I5VHQW7B.js → L47EGLUH.js} +0 -0
- /package/dist/cdn/{OYHKUGS6.js → LROW4Y6O.js} +0 -0
- /package/dist/cdn/{DIKQ7BPQ.js → MK5ZYSOD.js} +0 -0
- /package/dist/cdn/{RDTBZUT7.js → N4L5KE23.js} +0 -0
- /package/dist/cdn/{4JQ2RRLY.js → N5ZUO6F3.js} +0 -0
- /package/dist/cdn/{2HGBRW4I.js → OFWEHJDH.js} +0 -0
- /package/dist/cdn/{M4AQLWZU.js → OXYJKZEP.js} +0 -0
- /package/dist/cdn/{O6SNP6QE.js → QR2OOC4D.js} +0 -0
- /package/dist/cdn/{4E7C5QPS.js → RSNZMJ6I.js} +0 -0
- /package/dist/cdn/{CODAXMWM.js → S3ZSZXYG.js} +0 -0
- /package/dist/cdn/{I36OAVW3.js → SERX6V5M.js} +0 -0
- /package/dist/cdn/{AJBEE7WE.js → SSQ3VCZ2.js} +0 -0
- /package/dist/cdn/{3V4HRXIT.js → TFPQDMER.js} +0 -0
- /package/dist/cdn/{2X75KJPF.js → ULWJ57VT.js} +0 -0
- /package/dist/cdn/{LNF44ZGQ.js → UYXCGSXU.js} +0 -0
- /package/dist/cdn/{OA7FHTCA.js → VDKFC44J.js} +0 -0
- /package/dist/cdn/{YIIPYKTL.js → VRZ2SY6M.js} +0 -0
- /package/dist/cdn/{VFM2EV3M.js → WAINRCCJ.js} +0 -0
- /package/dist/cdn/{MHG42BA5.js → WNKDEOFZ.js} +0 -0
- /package/dist/cdn/{DD4QUBOF.js → X2LW7GTR.js} +0 -0
- /package/dist/cdn/{N3VOUI25.js → XDMGH7YU.js} +0 -0
- /package/dist/cdn/{7ILH7ZG2.js → XY4TRZCG.js} +0 -0
- /package/dist/cdn/{66KSEDOR.js → XYKXBWIT.js} +0 -0
- /package/dist/cdn/{O2ERVMSN.js → Y6ZCTPJW.js} +0 -0
- /package/dist/cdn/{NFDXH5B3.js → YKDW7ZW3.js} +0 -0
- /package/dist/cdn/{SGOYJFLO.js → ZBIVDGNH.js} +0 -0
|
@@ -4,10 +4,12 @@ import type { RESTSymbolType } from "../../../spec/rest-js-object-literals.js";
|
|
|
4
4
|
import type { IField } from "../../../spec/rest-js-types.js";
|
|
5
5
|
import type { WebBoxPlot, WebChart, WebChartLegend, WebChartSeriesType, WebHeatChart } from "../../../spec/web-chart.js";
|
|
6
6
|
import type { DataUpdateDetails } from "../../data/interfaces.js";
|
|
7
|
+
import type { ChartElementLimit } from "../../defaults/interfaces.js";
|
|
7
8
|
import type { QueryObjectOrRaster as QueryObject } from "../../layer/interfaces.js";
|
|
8
9
|
import type { ChartSubType, SelectionData } from "../../misc/interfaces.js";
|
|
9
10
|
import type { WebChartSeriesSupportingTemporalBinning } from "./interfaces.js";
|
|
10
11
|
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
12
|
+
import type { WebChartBin, WebChartDataItem } from "../../../spec/data-source.js";
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* Retrieve and construct chart version information based on the input version and the currently supported ArcGIS Chart versions
|
|
@@ -95,6 +97,7 @@ export function isAbsoluteTruthWhereClause(where?: string): boolean;
|
|
|
95
97
|
* - where = "field = 5" => returns "field = 5"
|
|
96
98
|
* - where = "field = 'value'" => returns "field = 'value'"
|
|
97
99
|
* - where = "field = 'va'lue'" => returns "field = 'va''lue'"
|
|
100
|
+
* - where = "field = null => returns "field IS NULL"
|
|
98
101
|
*
|
|
99
102
|
* @param props - the where clause to normalize
|
|
100
103
|
* @internal
|
|
@@ -128,6 +131,33 @@ export function getBoxPlotChartSubType(seriesConfig: WebChartSeriesType[]): Char
|
|
|
128
131
|
*/
|
|
129
132
|
export function getChartSubType(series?: WebChartSeriesType[]): ChartSubType;
|
|
130
133
|
|
|
134
|
+
/**
|
|
135
|
+
* A function to determine whether the scatterplot is aggregated.
|
|
136
|
+
* It can use a map of statistics containing the number of points (computed from the data side) or
|
|
137
|
+
* a data context object usually stored within each marker.
|
|
138
|
+
*
|
|
139
|
+
* @param props - an optional map of statistics
|
|
140
|
+
* @returns A boolean indicating whether the scatterplot is aggregated
|
|
141
|
+
*/
|
|
142
|
+
export function isScatterplotAggregated(props: {
|
|
143
|
+
statsMap?: Map<string, number>;
|
|
144
|
+
dataContext?: WebChartDataItem;
|
|
145
|
+
chartLimits?: ChartElementLimit;
|
|
146
|
+
}): boolean;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* A function to determine whether a chart is aggregated.
|
|
150
|
+
* Supports scatterplot, bar, line, combo, and pie chart. Defaults to true for the other types of chart.
|
|
151
|
+
*
|
|
152
|
+
* @param props - An optional data context object
|
|
153
|
+
* @returns A boolean indicating whether the chart is aggregated
|
|
154
|
+
*/
|
|
155
|
+
export function isChartAggregated(props: {
|
|
156
|
+
dataContext?: WebChartBin | WebChartDataItem;
|
|
157
|
+
chartConfig: WebChart;
|
|
158
|
+
chartLimits?: ChartElementLimit;
|
|
159
|
+
}): boolean;
|
|
160
|
+
|
|
131
161
|
/**
|
|
132
162
|
* Indicates whether the bar or line series is configured to use time binning.
|
|
133
163
|
*
|
|
@@ -451,6 +481,7 @@ export function getHeatChartAxisDataOrderInstruction(props: {
|
|
|
451
481
|
*
|
|
452
482
|
* @param chartConfig - The chart configuration
|
|
453
483
|
* @returns An array of objects with sortingField, optionally an orderBy and preferLabel, or undefined.
|
|
484
|
+
* @internal
|
|
454
485
|
*/
|
|
455
486
|
export function getDataOrderParameters(chartConfig: WebChart | undefined): DataOrderParameters[] | undefined;
|
|
456
487
|
|
|
@@ -9,6 +9,7 @@ import type { WebChart, WebGaugeChart } from "../../../spec/web-chart.js";
|
|
|
9
9
|
* - `Errors`: Violations in the config with regard to the JSON schema.
|
|
10
10
|
* - `Warnings`: Undesired combinations in the config which don't violate the JSON schema but should still be blocked.
|
|
11
11
|
*
|
|
12
|
+
* @deprecated since 5.1. Won't be replaced.
|
|
12
13
|
* @param props - The input config, the query object and whether to allow using the object id field as a statistic field.
|
|
13
14
|
* @returns The validation status.
|
|
14
15
|
*/
|
|
@@ -28,9 +28,9 @@ export interface CustomErrorObject {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Validation Status interface which described the validity of the input WebChart config
|
|
31
|
+
* Validation Status interface which described the validity of the input WebChart config.
|
|
32
32
|
*
|
|
33
|
-
* @
|
|
33
|
+
* @deprecated since 5.1. Won't be replaced.
|
|
34
34
|
*/
|
|
35
35
|
export interface ValidationStatus {
|
|
36
36
|
valid: boolean;
|
|
@@ -55,6 +55,7 @@ export const ConfigErrorKeywords: {
|
|
|
55
55
|
export const DataWarningKeywords: {
|
|
56
56
|
readonly BadData: "badData";
|
|
57
57
|
readonly EmptyDataSet: "emptyDataSet";
|
|
58
|
+
readonly NoValue: "noValue";
|
|
58
59
|
readonly InvalidConfig: "invalidConfig";
|
|
59
60
|
readonly HistogramEmptyField: "histogramEmptyField";
|
|
60
61
|
readonly BarElementExceedsLimit: "barElementExceedsLimit";
|
|
@@ -80,7 +81,6 @@ export interface ElementCountExceededParams {
|
|
|
80
81
|
seriesLimit?: number;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
/** @internal */
|
|
84
84
|
export interface DataWarningObject {
|
|
85
85
|
keyword: DataWarningKeywords;
|
|
86
86
|
header?: string;
|
|
@@ -7,7 +7,6 @@ import type { ChartElementLimit, ChartElementTechnicalLimit, ChartTextProps, Que
|
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const histogramBinCount: 32;
|
|
9
9
|
|
|
10
|
-
/** @internal */
|
|
11
10
|
export const featuresExtentField: "arcgis_charts_features_extent";
|
|
12
11
|
|
|
13
12
|
/** @internal */
|
|
@@ -450,7 +449,7 @@ export function getDefaultHistogramOverlays(): Required<HistogramOverlays>;
|
|
|
450
449
|
export function getDefaultHistogramSymbol(): ISimpleFillSymbol;
|
|
451
450
|
|
|
452
451
|
/** @internal */
|
|
453
|
-
export function getDefaultHistogramSeries(): Omit<Required<WebChartHistogramSeries>, "dataTooltipDateFormat" | "dataTooltipPercentFormat" | "dataTooltipValueFormat" | "query">;
|
|
452
|
+
export function getDefaultHistogramSeries(): Omit<Required<WebChartHistogramSeries>, "dataTooltipDateFormat" | "dataTooltipFontSize" | "dataTooltipPercentFormat" | "dataTooltipValueFormat" | "query">;
|
|
454
453
|
|
|
455
454
|
/**
|
|
456
455
|
* @param commonStrings
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Class that enhances the debugging and error handling process. Rather than returning a generic [JavaScript
|
|
3
|
-
* error](https://developer.mozilla.org/
|
|
3
|
+
* error](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error), this class returns a standardized error object with several properties.
|
|
4
4
|
*/
|
|
5
5
|
export class ArcgisChartsError<T = any> extends Error {
|
|
6
6
|
/** Creates a new `ArcgisChartsError` instance. */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type Extent from "@arcgis/core/geometry/Extent.js";
|
|
2
1
|
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
3
2
|
import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
|
|
4
3
|
import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
5
4
|
import type Layer from "@arcgis/core/layers/Layer.js";
|
|
6
|
-
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
7
5
|
import type CodedValueDomain from "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
6
|
+
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
8
7
|
import type Renderer from "@arcgis/core/renderers/Renderer.js";
|
|
9
8
|
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
10
9
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
11
10
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
11
|
+
import type { ChartOptions } from "../../chart-rendering/common/interfaces.js";
|
|
12
12
|
import type { SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
13
13
|
import type { IFeatureLayer, IField, IImageServiceLayer, ITiledImageServiceLayer, IWCSLayer } from "../../spec/rest-js-types.js";
|
|
14
14
|
import type { WebChart, WebChartDataFilters, WebChartQuery } from "../../spec/web-chart.js";
|
|
@@ -274,7 +274,7 @@ export function buildQueryConfig(props: {
|
|
|
274
274
|
chartConfig: WebChart;
|
|
275
275
|
runtimeDataFilters?: WebChartDataFilters;
|
|
276
276
|
ignoreViewExtent?: boolean;
|
|
277
|
-
|
|
277
|
+
view?: ChartOptions["view"];
|
|
278
278
|
}): WebChartQuery;
|
|
279
279
|
|
|
280
280
|
/**
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Former interface describing the property `configFields` from an inline data source.
|
|
3
3
|
* Is an object which dictate which data-item field should be used for defining a property of the rendered element (line, point, bars, etc). Used in inline data source mode only.
|
|
4
|
-
*
|
|
5
|
-
* @internal
|
|
6
4
|
*/
|
|
7
5
|
export interface WebChartConfigFields {
|
|
8
6
|
fillColor?: string;
|
|
@@ -8,7 +8,7 @@ import type { QueryProperties } from "@arcgis/core/rest/support/Query.js";
|
|
|
8
8
|
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
9
9
|
import type { RESTFieldType } from "../../../spec/rest-js-object-literals.js";
|
|
10
10
|
import type { WebChartHeatChartSeries, WebChartQuery, WebChartTemporalBinning } from "../../../spec/web-chart.js";
|
|
11
|
-
import type { QueryObject
|
|
11
|
+
import type { QueryObject } from "../interfaces.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Indicates whether a query can be cached. It is not when:
|
|
@@ -38,11 +38,11 @@ export function combineFilters(filterList: (string | null | undefined)[], operan
|
|
|
38
38
|
/**
|
|
39
39
|
* Computes the time extent to be used by the query.
|
|
40
40
|
*
|
|
41
|
-
* @param
|
|
41
|
+
* @param viewTimeExtent - The layer or feature layer view
|
|
42
42
|
* @param defaultTimeExtent - The time extent defined at the series config level or provided at runtime
|
|
43
43
|
* @internal
|
|
44
44
|
*/
|
|
45
|
-
export function getQueryTimeExtent(
|
|
45
|
+
export function getQueryTimeExtent(viewTimeExtent?: TimeExtent | null, defaultTimeExtent?: WebChartQuery["timeExtent"]): WebChartQuery["timeExtent"] | undefined;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Computes the extent to be used by the query. We prioritize the feature layer view extent
|
|
@@ -114,6 +114,8 @@ export const CommonStringsIdentity: (value: {
|
|
|
114
114
|
};
|
|
115
115
|
notifications: {
|
|
116
116
|
invalidConfig: string;
|
|
117
|
+
invalidConfigForRaster: string;
|
|
118
|
+
invalidConfigTitle: string;
|
|
117
119
|
invalidSeriesConfig: string;
|
|
118
120
|
invalidSeriesConfigTitle: string;
|
|
119
121
|
validateAggregationTypeMsg: string;
|
|
@@ -379,6 +381,8 @@ export const CommonStringsIdentity: (value: {
|
|
|
379
381
|
};
|
|
380
382
|
notifications: {
|
|
381
383
|
invalidConfig: string;
|
|
384
|
+
invalidConfigForRaster: string;
|
|
385
|
+
invalidConfigTitle: string;
|
|
382
386
|
invalidSeriesConfig: string;
|
|
383
387
|
invalidSeriesConfigTitle: string;
|
|
384
388
|
validateAggregationTypeMsg: string;
|
|
@@ -15,7 +15,6 @@ export type SerialChartType = typeof WebChartTypes.BarSeries | typeof WebChartTy
|
|
|
15
15
|
/** @internal */
|
|
16
16
|
export type SupportedChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.BoxPlotSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.HistogramSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.PieSeries | typeof WebChartTypes.RadarSeries | typeof WebChartTypes.ScatterSeries;
|
|
17
17
|
|
|
18
|
-
/** @internal */
|
|
19
18
|
export type ChartTypes = Extract<WebChartTypes, WebChartType>;
|
|
20
19
|
|
|
21
20
|
/** @internal */
|
|
@@ -251,8 +250,8 @@ export function sanitizeHTMLOutput(inputToSanitize: string): string;
|
|
|
251
250
|
* Indicates if a provided number value is valid.
|
|
252
251
|
* An invalid value is: undefined | NaN | Infinite | -Infinite | null
|
|
253
252
|
* See for more details:
|
|
254
|
-
* - https://developer.mozilla.org/
|
|
255
|
-
* - https://developer.mozilla.org/
|
|
253
|
+
* - https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite
|
|
254
|
+
* - https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
|
|
256
255
|
*
|
|
257
256
|
* @param value
|
|
258
257
|
* @internal
|
|
@@ -104,11 +104,7 @@ export type BoxPlotConfig = WebBoxPlot;
|
|
|
104
104
|
*/
|
|
105
105
|
export type HeatChartConfig = WebHeatChart;
|
|
106
106
|
|
|
107
|
-
/**
|
|
108
|
-
* Type alias for the supported chart series types.
|
|
109
|
-
*
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
107
|
+
/** Type alias for the supported chart series types. */
|
|
112
108
|
export type SupportedChartSeries = WebChartBarChartSeries | WebChartBoxPlotSeries | WebChartGaugeSeries | WebChartHistogramSeries | WebChartLineChartSeries | WebChartPieChartSeries | WebChartRadarChartSeries | WebChartScatterplotSeries;
|
|
113
109
|
|
|
114
110
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.11",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": "./dist/index.js",
|
|
11
|
+
"./utils/chart-config/converter/index": "./dist/utils/chart-config/converter/index.js",
|
|
12
|
+
"./model/shared/setup-utils": "./dist/model/shared/setup-utils.js",
|
|
11
13
|
"./loader": "./dist/loader.js",
|
|
12
14
|
"./package.json": "./package.json",
|
|
13
15
|
"./components/*/customElement": "./dist/components/*/customElement.js",
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
28
30
|
"dependencies": {
|
|
29
31
|
"@amcharts/amcharts4": "^4.10.31",
|
|
30
|
-
"@amcharts/amcharts5": "~5.
|
|
32
|
+
"@amcharts/amcharts5": "~5.18.0",
|
|
31
33
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
32
34
|
"@lit/task": "^1.0.3",
|
|
33
35
|
"ajv": "6.12.6",
|
|
@@ -40,12 +42,12 @@
|
|
|
40
42
|
"luxon": "~3.7.2",
|
|
41
43
|
"simple-statistics": "^7.8.8",
|
|
42
44
|
"tslib": "^2.8.1",
|
|
43
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
44
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
45
|
+
"@arcgis/lumina": "5.2.0-next.11",
|
|
46
|
+
"@arcgis/toolkit": "5.2.0-next.11"
|
|
45
47
|
},
|
|
46
48
|
"peerDependencies": {
|
|
47
|
-
"@arcgis/core": "^5.
|
|
48
|
-
"@esri/calcite-components": "^5.1.
|
|
49
|
+
"@arcgis/core": "^5.2.0-next",
|
|
50
|
+
"@esri/calcite-components": "^5.1.1-next.3"
|
|
49
51
|
},
|
|
50
52
|
"css.customData": [
|
|
51
53
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/45PJ5TQL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as E}from"./VOTZAPI3.js";import{a as h}from"./JNNB2DIA.js";import{b as T,c as B}from"./IHO3OLL3.js";import e from"./EUOPRFMU.js";import{k as a}from"./AK7X7SGI.js";import{a as D}from"./MRTKZZTF.js";import d from"./YVVQVAJZ.js";import"./MHG42BA5.js";import b from"./6SRISPQN.js";import"./EZV7JSQJ.js";import{n as F}from"./Z7EBST4A.js";import"./PAIRUVLU.js";import{a as g}from"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZR4L5AA.js";import{b as r}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import{A as v,B as c,C as y,E as P,G as L,g as $,i as n,n as u,y as f,z as m}from"./CHQDKVVQ.js";import"./U67P6YAZ.js";export default $arcgis.t(([{substitute:O},{Pb:I,pb:x,tb:b},,{a:C,k:p,o:S,r:w}])=>{var o={jsAppFlyout:"js-app-flyout",name:"bar-chart-data-popover",numericFieldPickList:"bar-chart-data-numeric-fields-pick-list",header:"header",fab:"fab",pickListItemLabel:"pick-list-item-label",sortMean:"sort-mean",sortMedian:"sort-median",sortOrderPickList:"sort-order-pick-list",panel:"panel"},z=$`.hide{visibility:hidden}.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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,k=class extends v{constructor(){super(...arguments),this._messages=D(),this.picklist=f(),this.placement="leading",this.popoverElement=f(),this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.isCustomSortDisabled=!1,this.arcgisChartsConfigBoxPlotDataPopoverChange=u(),this.arcgisChartsConfigPopoverClose=u()}static{this.properties={messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,isCustomSortDisabled:5,selectedContent:1}}static{this.styles=z}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"))}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},C.PopoverTimer),T(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigBoxPlotDataPopoverChange,contentKind:this.contentKind};S(e)}this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigBoxPlotDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}buildPickListItem(e){return h(e.name,n`<calcite-list-item .label=${F(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${p(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let s=0;s<t;s+=1){let l=this.layerFieldsInfo[s];x(l)&&i.push(this.buildPickListItem(l))}break}case a.category:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${p("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let l=0;l<t;l+=1){let d=this.layerFieldsInfo[l];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}case a.splitByField:{let s=h(" ",n`<calcite-list-item label=" " value=" " .selected=${p("",this.selectedContent)}></calcite-list-item>`);i.push(s);for(let l=0;l<t;l+=1){let d=this.layerFieldsInfo[l];(b(d)||d.type===g.String)&&i.push(this.buildPickListItem(d))}break}}return i}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}buildSortOrder(){let e=Object.keys(r),t;return E(e,i=>i,i=>{let s="";switch(i){case r.xAxisAsc:{t="a-z-down";break}case r.xAxisDesc:{t="a-z-up";break}case r.meanAsc:t="sort-descending",s=o.sortMean;break;case r.meanDesc:{t="sort-ascending",s=o.sortMean;break}case r.medianAsc:{t="sort-descending",s=o.sortMedian;break}case r.medianDesc:{t="sort-ascending",s=o.sortMedian;break}case r.customSort:{t="arrow-up-down";break}}return n`<calcite-list-item .disabled=${this.isCustomSortDisabled&&i===r.customSort} .label=${this._messages[i]} .selected=${this.selectedContent===i} .value=${r[i]} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}><calcite-icon class=${`sort-icon-color ${s}`} slot=content-start .icon=${t}></calcite-icon></calcite-list-item>`})}onNumericFieldSelectionDone(){this.closePopover()}createTooltip(e){if(e.target?.label===this._messages.customSort&&this.isCustomSortDisabled){let t=e.target,i=I(t),s=new Intl.NumberFormat(i).format(C.customSortLimit),l=O(this._messages.customSortLimit??"",{totalLimit:s});this.tooltip=P(n`<calcite-tooltip style=${y({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${l}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}}destroyTooltip(){w(this.tooltip)}renderCategory(){let e=this.buildPickListItems(a.category);return n`<calcite-list label class=${c(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return n`<calcite-list label class=${c(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(a.splitByField);return n`<calcite-list label class=${c(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return n`<calcite-list label class=${c(o.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.splitByField:e=this.renderSplitByField();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=n`<div slot=footer><calcite-fab class=${c(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),n`<div class=${c(o.jsAppFlyout)}><calcite-popover class=${c(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${c(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};L("arcgis-charts-config-box-plot-popover",k);return k},"intl",b,d,e)
|
package/dist/cdn/47HHRDX4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./URYNG6OA.js";import{a as ce,b as de,g as le}from"./MHG42BA5.js";import a from"./6SRISPQN.js";import{e as Q}from"./EZV7JSQJ.js";import{e as p,r as D,z as O}from"./Z7EBST4A.js";import{L as H,a as V,ha as $,o as W,p as z,ya as Y}from"./PAIRUVLU.js";import{g as n,k as h}from"./SP2IPHWF.js";import{f as j,g as A}from"./NZR4L5AA.js";import{a as S}from"./XJFVSX2E.js";import{a as u,b as x,d as N,h as v,k as B,p as w,q as M,v as y}from"./547RDEMV.js";import{H as R}from"./CHQDKVVQ.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{$b:ae,Cb:se,Db:ne,J:Z,L:q,M:J,N:X,Q:ee,R:te,T:F,V:re,a:K,b:L,kb:C,mb:ie,ob:oe,q:I,r:U,xb:T,zb:E},{a:ue,e:pe,f:ye,h:me}])=>{var _=(r=>(r.NONE="none",r.ROTATE="rotate",r.STAGGER="stagger",r.WRAP="wrap",r))(_||{});function Ne(r){let{configToUpdate:e,chartContainer:i,layer:t}=r,o=n(e);if(t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:s}=A(i??document.documentElement);try{o.firstDayOfWeek=K.local().setLocale(s.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function Ve(r){let e=n(r);if(I(e)){let i=e.series[0],t=e.chartRenderer?.classBreakInfos;if(t?.length&&i?.classBreaksRules){i.classBreaksRules.colorRampInfo=i.classBreaksRules.colorRampInfo??{};let{name:o,flipped:s}=i.classBreaksRules.colorRampInfo,a=pe(t,me.esriColorRamps);if(!o&&a?.name&&(i.classBreaksRules.colorRampInfo.name=a.name),s===void 0&&a){let d=ue({numberOfClassBreaks:t.length,selectedColorRamp:a});d.length===t.length&&(i.classBreaksRules.colorRampInfo.flipped=ye(d,t))}}}return e}function We(r){let e=n(r);return h(r.axes)||(e.axes=r.axes?.map(i=>{let t=i;return delete t.calculateAutomaticMaximum,delete t.calculateAutomaticMinimum,t.title?.content.font?.style!==void 0&&(t.title.content.font.style=t.title.content.font.style.toLowerCase()),t})),e}function ze(r){let e=n(r);return h(r.series)||(e.series=r.series.map((i,t)=>{let o=i;i.id===void 0&&(o.id=`Series ${Date.now()}-${t}`);let s=S(r.series,t);return(s===u.BarSeries||s===u.LineSeries||s===u.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=x.ContinuousPercentile),s===u.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),s===u.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=W.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}function fe(r,e){let i=[];return r.forEach(t=>{if(!D(t)){let o=O(t,!1);if(o.fieldToSort!==void 0){let s=T({queryObject:e,fieldToMatch:o.fieldToSort});s!==void 0&&i.push(o.orderBy===void 0?s:`${s} ${o.orderBy}`)}}}),i}async function He(r){let{configToUpdate:e,layer:i,abortSignal:t}=r,o={...e},s=i;if(!s){let a=le(e)?e.iLayer:e.dataSource?.layer;a&&(s=await C(a,t))}if(s){let a=F(o.series),d=S(o.series),b=o.series&&o.series.length>0&&o.series[0].x.trim()===""||d===u.GaugeSeries&&!ae(e)||a===p.PieFromFields||a===p.BarAndLineFromFields||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMultiFields||a===p.BoxPlotMultiFieldsAndSplitBy,je=d===u.ScatterSeries||d===u.HeatSeries||a===p.BarAndLineNoAggregation||a===p.BarAndLineSplitByNoAggregation||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMonoFieldAndCategory||a===p.BoxPlotMonoFieldAndCategoryAndSplitBy||a===p.PieNoAggregation;if(o.series=e.series.map(l=>{let c={...l};if(b||(c.x=T({queryObject:s,fieldToMatch:l.x})),"y"in c&&je){let m=c.y;if(Array.isArray(m)){let f=E({fieldsList:m,queryObject:s});f!==void 0&&"y"in c&&(c.y=f)}else"y"in c&&typeof m=="string"&&(c.y=T({queryObject:s,fieldToMatch:m}))}if(l.query!==void 0){let{where:m,groupByFieldsForStatistics:f,outStatistics:g}=l.query;if(f=E({fieldsList:f,queryObject:s}),g!==void 0&&(g=g.map(P=>{let k={...P};return k.onStatisticField=T({queryObject:s,fieldToMatch:P.onStatisticField}),k})),m!==void 0&&a===p.BarAndLineSplitBy){let P=ee(l.query?.where),k=te({where:l.query?.where,normalize:!1,escape:!1});m=`${T({queryObject:s,fieldToMatch:P})}=${k}`}c.query!==void 0&&(m!==void 0&&(c.query.where=m),f!==void 0&&(c.query.groupByFieldsForStatistics=f),g!==void 0&&(c.query.outStatistics=g))}return c}),o.series[0]?.query!==void 0){let l=o.series[0].query,{orderByFields:c}=l;c!==void 0&&c.length>0&&(c=fe(c,s),c.length>0&&l.orderByFields!==void 0&&(o.series[0].query.orderByFields=c))}if(o.orderOptions?.orderByFields!==void 0){let{orderByFields:l}=o.orderOptions;l!==void 0&&l.length>0&&(l=fe(l,s),l.length>0&&(o.orderOptions.orderByFields=l))}if(d===u.GaugeSeries&&e.axes?.[0]!==void 0){let{minimumFromField:l,maximumFromField:c}=e.axes[0];if(l!==void 0){let m=typeof l=="string"?l:l.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=l;typeof e.axes[0].minimumFromField=="string"?g=f:typeof l=="object"&&(g={...l,onStatisticField:f}),e.axes[0].minimumFromField=g}if(c!==void 0){let m=typeof c=="string"?c:c.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=c;typeof e.axes[0].maximumFromField=="string"?g=f:typeof c=="object"&&(g={...c,onStatisticField:f}),e.axes[0].maximumFromField=g}}}return o}function $e(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.BoxPlotSeries){let i=e.series[0];i&&(i.showOutliers!==void 0&&(r.showOutliers===void 0&&(e.showOutliers=i.showOutliers),delete i.showOutliers),i.standardizeValues!==void 0&&(r.standardizeValues===void 0&&(e.standardizeValues=i.standardizeValues),delete i.standardizeValues),i.showMean!==void 0&&(r.showMean===void 0&&(e.showMean=i.showMean),delete i.showMean))}return e}function Ye(r){let e={orderType:y.Category,orderBy:v.Ascending},i=r.query?.orderByFields?.[0];if(i!==void 0){let{outStatisticFieldName:t,statisticType:o}=r.query?.outStatistics?.[0]??{},s=O(i);t!==void 0&&s.fieldToSort===t&&o!==void 0&&(o===x.Average||o==="mean"?e.orderType=y.Mean:o===x.ContinuousPercentile&&(e.orderType=y.Median)),e.orderBy=s.orderBy??v.Ascending}return e}function Qe(r){let e=!1,i=Array.from(new Set(r.series.map(t=>t.type)));return i.length===2&&i.includes(u.BoxPlotSeries)&&i.includes(u.LineSeries)&&(e=r.series.find(t=>t.type===u.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function Ke(r){let e=n(r);if(!h(e.series)&&S(r.series)===u.BoxPlotSeries){if(e.orderOptions?.data===void 0){let i=Ye(r.series[0]);i.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:i.orderType,orderBy:i.orderBy})}if(e.series=r.series.map(i=>{let t=i;return h(t.x?.trim())&&(t.x=z),delete t.query?.orderByFields,t}),Qe(e)){e.showMean=!0;let i=e.series.find(t=>t.type===u.BoxPlotSeries);e.series.forEach(t=>{t.type===u.LineSeries&&(delete t.query?.groupByFieldsForStatistics,delete t.query?.outStatistics,delete t.query?.orderByFields,i&&(t.y=i.y))})}e.series=r.series.map(i=>{let t=i;return delete t.query?.outStatistics,t})}return e}function Ze(r){let e=n(r);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=void 0),e}function Je(r){let e=n(r);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function Xe(r){let e=n(r),i=new Set,t=e.id??"";return i.add(t),e.series.forEach(o=>{let s=o.id;i.has(s)&&(s=`${s}_${Date.now()}`,o.id=s),i.add(s)}),e}async function et(r){let{configToUpdate:e,layer:i,chartContainer:t,abortSignal:o}=r,s=n(e);if(s=We(s),s=ze(s),s=await He({configToUpdate:s,layer:i,abortSignal:o}),U(s)){let a=$e(s);s=Ke(a)}return s=Ze(s),s=Xe(s),I(s)&&!Q(i)&&(s=Ne({configToUpdate:s,chartContainer:t,layer:i})),s}function tt(r){let e=n(r);return e?.orderOptions?.orderByFields!==void 0&&F(r.series)===p.PieFromFields&&(e.orderOptions.orderByFields=r?.orderOptions?.orderByFields?.map(i=>{let t=n(i);return i!==void 0&&i.includes("arcgis_charts_pie_category_from_fields_name")&&(t=i.replace("arcgis_charts_pie_category_from_fields_name",L)),t})),e}function rt(r){let e=n(r);if(!h(r.series)&&e.axes?.[0]!==void 0&&S(r.series)===u.GaugeSeries&&r.axes?.[0]!==void 0){let i=r.axes[0];i.ticks!==void 0&&Object.hasOwn(i.ticks,"spacing")&&delete i.ticks.spacing,e.axes[0]=i}return e}function it(r){let e=n(r),{extent:i}=e.series[0]?.query??{};return i!==void 0&&(e.dataFilters={...e.dataFilters,geometry:i},e.series.forEach(t=>{"query"in t&&"extent"in t.query&&delete t.query.extent})),e}function Ee(r){let e=n(r);return h(r.series)||(ce(r)&&r.rotated===void 0&&(e.rotated=r.series[0].rotated??$()),e.series.forEach(i=>{i.rotated!==void 0&&delete i.rotated})),e}function ot(r){let e=n(r),i=r.dataSource;return"dataSource"in e&&!h(i)&&(i.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in i&&(e.dataSource.layer=i.featureLayer,delete e.dataSource.featureLayer)),e}function st(r){let e=n(r);if("dataSource"in r){let i=r.dataSource;if(i.filter!==void 0&&i.filter.trim()!==""){let t=ne([i.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:t},delete e.dataSource.filter}}return e}function nt(r){return r!=="originalValue"}function _e(r){let e;switch(r){case"mean":e=y.Mean;break;case"median":e=y.Median;break;case"category":e=y.Category;break}return e}function at(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.PieSeries){let i=e.series[0];if(i){if(i.sortLabelsBy==="originalValue")e.sortLabelsBy=i.sortLabelsBy;else if(i.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let t=G(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t)}i.sortLabelsBy&&delete i.sortLabelsBy}}return e}function ct(r){let e=n(r);return h(r.series)||(de(r)&&r.stackedType===void 0&&(e.stackedType=r.series[0].stackedType??Y()),e.series.forEach(i=>{"stackedType"in i&&delete i.stackedType})),e}function dt(r){let e=n(r),i=r.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof i=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:i==="DESC"?v.Descending:v.Ascending}),e}function lt(r){let e=n(r);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===N.Match),e.series.forEach(i=>{i.colorType!==void 0&&delete i.colorType}),e}function ut(r){let e=n(r);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let i=r.sortDataBy,t=_e(i?.sortType);t&&t!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:t,orderBy:i?.sortOrder??v.Ascending})}delete e.sortDataBy}return e}function pt(r){let e=n(r);return e.axes?.forEach(i=>{i!==void 0&&i.scrollbarVisible!==void 0&&i.scrollbar?.visible===void 0&&(i.scrollbar={...i.scrollbar,visible:i.scrollbarVisible},delete i.scrollbarVisible)}),e}function yt(r){let e=n(r),i=e.series[0]?.query?.orderByFields;if(i!==void 0&&i.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let t=!0;if(i.length===1){let{fieldToSort:o,orderBy:s}=O(i[0]),a;o===r.series[0].x||o===L?a=y.Category:"y"in r.series[0]&&o===r.series[0].y&&(a=y.YValue),a&&a!==y.MultiAxes&&(t=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:s?.toUpperCase()==="DESC"?v.Descending:v.Ascending}))}t&&(e.orderOptions.orderByFields=i)}return e.series.forEach(t=>{delete t.query?.orderByFields}),e}function G(r){let e,i=r.orderOptions?.orderByFields?.[0];if(r.series?.length>0){let t=S(r.series),o=F(r.series);if(t!==u.PieSeries&&o!==p.BarAndLineFromFields&&(i=i??r.series[0].x),i&&!D(i)){let{fieldToSort:s,orderBy:a}=O(i),d;s===r.series[0].x||s===L?d=y.Category:"y"in r.series[0]&&s===r.series[0].y&&(d=y.YValue),d&&d!==y.MultiAxes&&(e={orderType:d,orderBy:a?.toUpperCase()==="DESC"?v.Descending:v.Ascending})}}return e}function mt(r){let e=n(r),i=r,t=r,o=r,s=r,a=r;if(e){if(e.orderOptions?.series===void 0&&i.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:nt(t.sortLabelsBy??i.sortOptions.sortSeriesBy.sortType),orderBy:i.sortOptions.sortSeriesBy.sortOrder??v.Ascending}),t.sortLabelsBy==="originalValue"||s.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(S(e.series)===u.BoxPlotSeries){if(t.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let d=_e(o.sortOptions?.sortDataBy?.sortType);d&&d!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:d,orderBy:o.sortOptions?.sortDataBy?.sortOrder??v.Ascending})}}else{let d=G(e);d!==void 0&&(e.orderOptions??={},e.orderOptions.data=d)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function ft(r){let e=n(r);if(e){let i=F(e.series);if((i===p.BarAndLineFromFields||i===p.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let t=G(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t,delete e.orderOptions.orderByFields)}}return e}function gt(r){let e=n(r);return e.horizontalAxisLabelsBehavior===_.NONE&&(e.horizontalAxisLabelsBehavior=w.Hide),e.verticalAxisLabelsBehavior===_.NONE&&(e.verticalAxisLabelsBehavior=w.Hide),e}function vt(r){let e=n(r),i=e.series[0];if(i&&!i.temporalBinning&&re(e.series[0])&&("timeIntervalSize"in i||"timeIntervalUnits"in i||"timeAggregationType"in i||"trimIncompleteTimeInterval"in i||"nullPolicy"in i)){if(i.temporalBinning={},i.timeIntervalSize!==void 0&&(i.temporalBinning.size=i.timeIntervalSize,delete i.timeIntervalSize),i.timeIntervalUnits){let t;switch(i.timeIntervalUnits){case"esriTimeUnitsSeconds":t=B.Second;break;case"esriTimeUnitsMinutes":t=B.Minute;break;case"esriTimeUnitsHours":t=B.Hour;break;case"esriTimeUnitsDays":t=B.Day;break;case"esriTimeUnitsWeeks":t=B.Week;break;case"esriTimeUnitsMonths":t=B.Month;break;case"esriTimeUnitsYears":t=B.Year;break}t!==void 0&&(i.temporalBinning.unit=t),delete i.timeIntervalUnits}i.timeAggregationType&&(i.temporalBinning.timeAggregationType=i.timeAggregationType,delete i.timeAggregationType),i.trimIncompleteTimeInterval!==void 0&&(i.temporalBinning.trimIncompleteTimeInterval=i.trimIncompleteTimeInterval,delete i.trimIncompleteTimeInterval),i.nullPolicy&&(i.temporalBinning.nullPolicy=i.nullPolicy,delete i.nullPolicy)}return e}function ht(r){let e=n(r);return e.series.forEach(i=>{i.query?.outStatistics?.forEach(t=>{t.statisticType==="percentile_cont"?t.statisticType=x.ContinuousPercentile:t.statisticType==="percentile_disc"&&(t.statisticType=x.DiscretePercentile)})}),e}function St(r){let e=n(r);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Bt(r){let e=n(r),i=e.series[0];return i?.temporalBinning&&delete i.temporalBinning?.type,e}function Tt(r){let e=n(r),i=e.series[0],t=r;return t.series[0]?.xTemporalBinning&&(i.xTemporalBinning={...t.series[0]?.xTemporalBinning,type:u.CalendarDateParts}),t.series[0]?.yTemporalBinning&&(i.yTemporalBinning={...t.series[0]?.yTemporalBinning,type:u.CalendarDateParts}),e}function xt(r){let e=n(r);return e=tt(e),e}function ge(r){let e=n(r);return e=rt(e),e}function ve(r){let e=n(r);return e=it(e),e}function he(r){let e=n(r);return e=Ee(e),e}function Se(r){let e=n(r);return e=ot(e),e}function Be(r){let e=n(r);return e=st(e),e}function Te(r){let e=n(r);return e=at(e),e}function xe(r){let e=n(r);return e=dt(e),e}function be(r){let e=n(r);return e=lt(e),e}function Oe(r){return pt(r)}function Fe(r){let e=n(r);return U(e)&&(e=ut(e)),e}function Ce(r){return ct(r)}function Pe(r){return mt(r)}function ke(r){return Je(r)}function Ae(r){return ft(r)}function Le(r){return gt(r)}function we(r){return vt(r)}function Me(r){return ht(r)}function De(r){let e=n(r);return e=Ee(e),St(e)}function Ie(r){let e=n(r);return e=Bt(e),e}function Ue(r){let e=n(r);return e=Tt(e),e}function qe(r){let e=n(r);return e=Ve(e),e}function bt(r){let{versionsToConvert:e,configToUpdate:i}=r,t=n(i);return e.length>0&&t!==void 0&&(t=yt(t),e.includes(q)||e.includes(J)?(t=xt(t),t=ge(t),t=ve(t),t=he(t),t=Se(t),t=Be(t),t=Te(t),t=xe(t),t=be(t),t=Oe(t),t=Fe(t),t=Ce(t),t=Pe(t),t=ke(t),t=Ae(t),t=Le(t),t=we(t),t=Me(t),t=De(t),t=Ie(t),t=Ue(t),t=qe(t)):e.forEach(o=>{if(t!==void 0)switch(o){case"1.0.1":t=ge(t);break;case"3.4.0":t=ve(t);break;case"4.0.0":t=he(t);break;case"4.0.1":t=Se(t);break;case"6.4.0":t=Be(t);break;case"7.5.1":t=Te(t);break;case"8.0.0":t=xe(t);break;case"9.2.0":t=be(t);break;case"9.7.0":t=Oe(t);break;case"10.0.0":t=Fe(t);break;case"11.0.0":t=Ce(t);break;case"14.0.1":t=Pe(t);break;case"16.0.0":t=ke(t);break;case"16.1.0":t=Ae(t);break;case"18.1.3":t=Le(t);break;case"20.1.0":t=we(t);break;case"21.0.0":t=Me(t);break;case"23.2.0":t=De(t);break;case"24.7.0":t=Ie(t);break;case"24.8.0":t=Ue(t);break;case"25.0.0":t=qe(t);break}}),t.version=V),t}async function Ge(r,e,i,t){let o=r;if(r){let s=Z(e);await s?.load({signal:t}),o=await et({configToUpdate:r,layer:s,chartContainer:i,abortSignal:t});let a=r.version??q,{versionStatus:d,versions:b}=X(a);(d===M.Older||d===M.Unrecognized)&&(o=bt({versionsToConvert:b,configToUpdate:o}))}return o}var Re=class extends EventTarget{constructor(...e){super(),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this.dataStore={},this.asyncUpdatesPromise=new Promise(i=>{this.resolveSetup=i}),this.emitConfigUpdate=i=>{this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:i}}))},this.guardSetterFromAsyncOverwrite=async i=>{i(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,i())}}get chartType(){return this._chartType}isSameChartAs(e){let i=e?.layer;return i!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===i.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:i,iLayer:t,config:o,commonStrings:s}=e;this.commonStrings=s??await j(A(document.documentElement).t9nLocale,R("./assets/common/t9n"),"messages.");let a=i;if(!a&&t?a=await C(t):!a&&o?.iLayer&&(a=await C(o.iLayer)),a){await se(a);let d=ie(a,!0),b=oe(a).idField;this.layerInfo={layer:a,layerFieldsInfo:d,objectIdField:b}}this._config=o?await Ge(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=H().title),t&&(this._config.iLayer=t)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function pr(r,e,i){let t=i.set,o=i.value;return t&&(i.set=function(s){this.guardSetterFromAsyncOverwrite(()=>{t.call(this,s),this.emitConfigUpdate(e)})}),o&&(i.value=function(...s){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,s),this.emitConfigUpdate(e)})}),i}return{a:Ge,b:Re,c:pr}},"layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","core/promiseUtils","request","geometry/Point","applications/Components/imageryUtils","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","core/sql","geometry/Extent",a,b)
|
package/dist/cdn/6LQYOBAL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as C}from"./VOTZAPI3.js";import{a as b}from"./JNNB2DIA.js";import{b as T,c as A}from"./IHO3OLL3.js";import f from"./EUOPRFMU.js";import{h as a}from"./AK7X7SGI.js";import{a as u}from"./MRTKZZTF.js";import e from"./YVVQVAJZ.js";import"./MHG42BA5.js";import d from"./6SRISPQN.js";import"./EZV7JSQJ.js";import{n as I}from"./Z7EBST4A.js";import{wa as F}from"./PAIRUVLU.js";import{a as P}from"./KX7KGXKQ.js";import{l as L}from"./SP2IPHWF.js";import"./NZR4L5AA.js";import{d as c}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import{A as k,B as l,G as y,g as $,i as s,n as p,y as g,z as m}from"./CHQDKVVQ.js";import"./U67P6YAZ.js";export default $arcgis.t(([{pb:x,tb:D},,{a:E,d:f,k:h,o:S}])=>{var o={jsAppFlyout:"js-app-flyout",name:"pie-chart-data-popover",numericFieldPickList:"pie-chart-data-numeric-fields-pick-list",header:"header",fab:"fab",pickListItemLabel:"pick-list-item-label",flipClass:"sort-counter-clockwise",panel:"panel"},w=$`.hide{visibility:hidden}.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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.panel{max-height:60vh}`,v=class extends k{constructor(){super(...arguments),this._messages=u(),this.commonStrings=u({name:"common",blocking:!0}),this.picklist=g(),this.popoverElement=g(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.aggregationLabels=[],this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigPieChartDataPopoverChange=p(),this.arcgisChartsConfigPopoverClose=p()}static{this.properties={aggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=w}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=f.map(i=>F(i,this.commonStrings));L(this.aggregationLabels,t)||(this.aggregationLabels=t)}updated(){T(this.popoverElement.value,this.open),setTimeout(()=>{this.picklist.value?.setFocus()},E.PopoverTimer)}selectedContentChange(e,t){this.pickListHasChanged=A(e,t)}buildAggregationPickListItems(){return C(f,e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${h(e,this.selectedContent)}></calcite-list-item>`)}buildSortOrder(){let e=Object.keys(c);return e.splice(e.indexOf(c.customSort),1),C(e,t=>t,t=>{let i="string",r="rotate",n="";switch(t){case c.labelAsc:i="string";break;case c.labelDesc:i="string",n=o.flipClass;break;case c.valueAsc:i="number";break;case c.valueDesc:i="number",n=o.flipClass;break;case c.customSort:}return s`<calcite-list-item .selected=${this.selectedContent===t} .label=${this._messages[t]} .value=${c[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${l(n)} slot=content-end .icon=${r}></calcite-icon></calcite-list-item>`})}buildPickListItem(e){return b(e.name,s`<calcite-list-item .label=${I(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${h(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let r=0;r<t;r+=1){let n=this.layerFieldsInfo[r];x(n)&&i.push(this.buildPickListItem(n))}break}case a.category:{let r=b(" ",s`<calcite-list-item label=" " value=" " .selected=${h("",this.selectedContent)}></calcite-list-item>`);i.push(r);for(let n=0;n<t;n+=1){let d=this.layerFieldsInfo[n];(D(d)||d.type===P.String)&&i.push(this.buildPickListItem(d))}break}}return i}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigPieChartDataPopoverChange,contentKind:this.contentKind};S(e)}this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigPieChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return s`<calcite-list label class=${l(o.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderCategory(){let e=this.buildPickListItems(a.category);return s`<calcite-list label class=${l(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return s`<calcite-list label class=${l(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return s`<calcite-list label selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.aggregation:e=this.renderAggregationType();break;case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=s`<div slot=footer><calcite-fab class=${l(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),s`<div class=${l(o.jsAppFlyout)}><calcite-popover class=${l(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel class=${l(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};y("arcgis-charts-config-pie-chart-popover",v);return v},d,e,f)
|