@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
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as u } from "lit/directives/repeat.js";
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { LitElement as k, createEvent as
|
|
6
|
-
import { css as
|
|
7
|
-
import { createRef as
|
|
4
|
+
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
|
+
import { LitElement as k, createEvent as f, safeClassMap as o } from "@arcgis/lumina";
|
|
6
|
+
import { css as I, html as n } from "lit";
|
|
7
|
+
import { createRef as p, ref as m } from "lit/directives/ref.js";
|
|
8
8
|
import { isEqual as v } from "lodash-es";
|
|
9
9
|
import { u as C } from "../../chunks/useT9n.js";
|
|
10
10
|
import { L as a } from "../../chunks/interfaces.js";
|
|
11
|
-
import {
|
|
12
|
-
import { R as
|
|
13
|
-
import { t as g, s as
|
|
11
|
+
import { c as L, b as F, e as d, f as P, s as T } from "../../chunks/chart-ui-utils2.js";
|
|
12
|
+
import { R as A } from "../../chunks/rest-js-object-literals.js";
|
|
13
|
+
import { t as g, s as c } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { e as x, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
15
|
import { t as E, ag as S } from "../../chunks/index.js";
|
|
16
16
|
import { d as z, m as N } from "../../chunks/index3.js";
|
|
17
|
-
import {
|
|
18
|
-
const _ =
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
17
|
+
import { bh as w, bk as $, bb as K, bu as B } from "../../chunks/index2.js";
|
|
18
|
+
const _ = I`.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-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
20
19
|
name: "line-chart-data-popover",
|
|
21
|
-
numericFieldPickList: "line-chart-data-numeric-fields-pick-list",
|
|
22
20
|
header: "header",
|
|
23
21
|
fab: "fab",
|
|
24
22
|
pickListItemLabel: "pick-list-item-label",
|
|
@@ -27,7 +25,7 @@ const _ = F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
27
25
|
};
|
|
28
26
|
class H extends k {
|
|
29
27
|
constructor() {
|
|
30
|
-
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist =
|
|
28
|
+
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist = p(), this.intervalSizeElement = p(), this.intervalTypeElement = p(), this.popoverElement = p(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = f(), this.arcgisChartsConfigLineChartPopoverClose = f();
|
|
31
29
|
}
|
|
32
30
|
static {
|
|
33
31
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
@@ -48,7 +46,7 @@ class H extends k {
|
|
|
48
46
|
updated() {
|
|
49
47
|
setTimeout(() => {
|
|
50
48
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
51
|
-
},
|
|
49
|
+
}, F.PopoverTimer), x(this.popoverElement.value, this.open);
|
|
52
50
|
}
|
|
53
51
|
selectedContentChange(e, t) {
|
|
54
52
|
this.pickListHasChanged = D(e, t);
|
|
@@ -61,7 +59,7 @@ class H extends k {
|
|
|
61
59
|
return u(e, (t) => t, (t, s) => n`<calcite-list-item .label=${this.timeAggregationLabels?.[s]} .value=${t} .selected=${d(t, this.selectedContent)}></calcite-list-item>`);
|
|
62
60
|
}
|
|
63
61
|
buildPickListItem(e) {
|
|
64
|
-
return
|
|
62
|
+
return b(e.name, n`<calcite-list-item .label=${z(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${d(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
65
63
|
}
|
|
66
64
|
buildPickListItems(e) {
|
|
67
65
|
const t = this.layerFieldsInfo?.length ?? 0, s = [];
|
|
@@ -81,11 +79,11 @@ class H extends k {
|
|
|
81
79
|
break;
|
|
82
80
|
}
|
|
83
81
|
case a.splitByField: {
|
|
84
|
-
const l =
|
|
82
|
+
const l = b(" ", n`<calcite-list-item label=" " value=" " .selected=${d("", this.selectedContent)}></calcite-list-item>`);
|
|
85
83
|
s.push(l);
|
|
86
84
|
for (let i = 0; i < t; i += 1) {
|
|
87
|
-
const
|
|
88
|
-
|
|
85
|
+
const h = this.layerFieldsInfo?.[i];
|
|
86
|
+
h && (w(h) || h.type === A.String) && s.push(this.buildPickListItem(h));
|
|
89
87
|
}
|
|
90
88
|
break;
|
|
91
89
|
}
|
|
@@ -126,35 +124,35 @@ class H extends k {
|
|
|
126
124
|
}
|
|
127
125
|
renderAggregationType() {
|
|
128
126
|
const e = this.buildAggregationPickListItems();
|
|
129
|
-
return n`<calcite-list label class=${o(
|
|
127
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
130
128
|
}
|
|
131
129
|
renderXAxisField() {
|
|
132
130
|
const e = this.buildPickListItems(a.xAxisField);
|
|
133
|
-
return n`<calcite-list label class=${o(
|
|
131
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
134
132
|
}
|
|
135
133
|
renderNumericFields() {
|
|
136
134
|
const e = this.buildPickListItems(a.numericFields);
|
|
137
|
-
return n`<calcite-list label
|
|
135
|
+
return n`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
138
136
|
}
|
|
139
137
|
renderSplitByField() {
|
|
140
138
|
const e = this.buildPickListItems(a.splitByField);
|
|
141
|
-
return n`<calcite-list label class=${o(
|
|
139
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
142
140
|
}
|
|
143
141
|
renderIntervalAlignment() {
|
|
144
142
|
const e = this.buildIntervalAlignmentPickListItems();
|
|
145
|
-
return n`<calcite-list label class=${o(
|
|
143
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
146
144
|
}
|
|
147
145
|
renderInterval() {
|
|
148
146
|
const e = this.selectedContent, t = [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
c.Second,
|
|
148
|
+
c.Minute,
|
|
149
|
+
c.Hour,
|
|
150
|
+
c.Day,
|
|
151
|
+
c.Week,
|
|
152
|
+
c.Month,
|
|
153
|
+
c.Year
|
|
156
154
|
];
|
|
157
|
-
return n`<div><div class=${o(
|
|
155
|
+
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${T(e?.size, 1)} ${m(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${m(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${N(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
158
156
|
}
|
|
159
157
|
renderPopoverInfo() {
|
|
160
158
|
let e;
|
|
@@ -182,7 +180,7 @@ class H extends k {
|
|
|
182
180
|
}
|
|
183
181
|
render() {
|
|
184
182
|
let e;
|
|
185
|
-
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(
|
|
183
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(r.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><calcite-popover class=${o(r.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(r.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
186
184
|
}
|
|
187
185
|
}
|
|
188
186
|
y("arcgis-charts-config-line-chart-popover", H);
|
|
@@ -5,7 +5,7 @@ import { LitElement as I, renderElement as $, safeStyleMap as L } from "@arcgis/
|
|
|
5
5
|
import { css as x, html as o } from "lit";
|
|
6
6
|
import { repeat as P } from "lit/directives/repeat.js";
|
|
7
7
|
import { u as y } from "../../chunks/useT9n.js";
|
|
8
|
-
import {
|
|
8
|
+
import { j as b } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { C as M } from "../../chunks/index3.js";
|
|
10
10
|
import { r as d } from "../../chunks/popover-ui-utils.js";
|
|
11
11
|
const O = x`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
@@ -63,16 +63,16 @@ class k extends I {
|
|
|
63
63
|
this.seriesPopover !== void 0 && this.seriesPopover !== null && (this.seriesPopover.open = !1, this.seriesPopover = d(this.seriesPopover));
|
|
64
64
|
}
|
|
65
65
|
buildSeriesListItems() {
|
|
66
|
-
const e = this.model.seriesLength, s = Array.from({ length: e }, (i,
|
|
66
|
+
const e = this.model.seriesLength, s = Array.from({ length: e }, (i, r) => r);
|
|
67
67
|
return P(s, (i) => this.model.getSeriesId(i), (i) => {
|
|
68
|
-
const
|
|
68
|
+
const r = this.model.getSeriesId(i), l = this.model.getSeriesColor(i), h = this.model.getSeriesName(i), c = this.model.chartSubType === M.BarAndLineFromFields ? this._messages.series : r, m = this.model.getSeriesLineStyle(i), g = b(m);
|
|
69
69
|
let n = "#CCCCCC", a = "minus-circle";
|
|
70
70
|
if ((e > 1 || !this.activeColorMatch) && l !== void 0) {
|
|
71
71
|
a = `line-${g}`;
|
|
72
72
|
const [C, p, S, v] = [...l];
|
|
73
73
|
n = `rgba(${C},${p},${S},${v / 255})`;
|
|
74
74
|
}
|
|
75
|
-
return o`<calcite-list-item .label=${h ??
|
|
75
|
+
return o`<calcite-list-item .label=${h ?? r ?? ""} .description=${c} .value=${r} .selected=${this.selectedSeriesIndex === i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${a} style=${L({ color: n })}></calcite-icon></calcite-list-item>`;
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
buildSeriesList() {
|
|
@@ -83,13 +83,13 @@ class k extends I {
|
|
|
83
83
|
}
|
|
84
84
|
onCalciteListOrderChange(e) {
|
|
85
85
|
if (e.detail !== null && e.detail !== void 0) {
|
|
86
|
-
const { newIndex: s, oldIndex:
|
|
87
|
-
this.model.moveSeries(
|
|
86
|
+
const { newIndex: s, oldIndex: t } = e.detail;
|
|
87
|
+
this.model.moveSeries(t ?? 0, s ?? t ?? 0), this.seriesOrderResetCounter += 1;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
openSeriesPopOver(e) {
|
|
91
91
|
e.stopImmediatePropagation(), this.removeSeriesPopover();
|
|
92
|
-
const s = e.target,
|
|
92
|
+
const s = e.target, t = s.localName === "calcite-list-item" ? s : s.parentNode, i = this.model.getSeriesIndex(t.value);
|
|
93
93
|
this.open = this.selectedSeriesIndex !== i, this.selectedSeriesIndex = this.selectedSeriesIndex !== i ? i : void 0;
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as C, html as v } from "lit";
|
|
4
|
-
import { i as f, m, s as
|
|
5
|
-
import { u as
|
|
4
|
+
import { i as f, m, s as S, U as g } from "../../chunks/chart-ui-utils2.js";
|
|
5
|
+
import { u as y } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as a, ref as o } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as $, createEvent as s, safeClassMap as l, nothing as c } from "@arcgis/lumina";
|
|
8
8
|
import { e as b } from "../../chunks/popover-ui-utils.js";
|
|
9
9
|
import { aB as E } from "../../chunks/index.js";
|
|
10
10
|
import { g as i } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const n = {
|
|
12
|
-
jsAppFlyout: "js-app-flyout",
|
|
13
12
|
sizeSection: "size-section",
|
|
14
13
|
dropdownText: "dropdown-text",
|
|
15
14
|
panelChildrenContainer: "panel-children-container"
|
|
16
15
|
}, w = C`.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)}:host calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
17
16
|
class x extends $ {
|
|
18
17
|
constructor() {
|
|
19
|
-
super(...arguments), this._messages =
|
|
18
|
+
super(...arguments), this._messages = y(), this.popoverElement = a(), this.lineWidthInputElement = a(), this.lineStyleDropdownElement = a(), this.open = !1, this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSeriesPopoverColorChange = s(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = s(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = s(), this.arcgisChartsConfigSeriesPopoverNameChange = s();
|
|
20
19
|
}
|
|
21
20
|
static {
|
|
22
21
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedSeriesIndex: 9, selectedLineWidth: 9, placement: 1, open: 5 };
|
|
@@ -75,7 +74,7 @@ class x extends $ {
|
|
|
75
74
|
}
|
|
76
75
|
render() {
|
|
77
76
|
const e = this.selectedColor;
|
|
78
|
-
return v`<div
|
|
77
|
+
return v`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${l(n.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${l(n.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${o(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${l(n.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle === i.Solid} accesskey=${i.Solid ?? c}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle === i.Dot} accesskey=${i.Dot ?? c}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle === i.Dash} accesskey=${i.Dash ?? c}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${S(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${o(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${l(n.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
u("arcgis-charts-config-line-chart-series-popover", x);
|
|
@@ -5,7 +5,7 @@ import { LitElement as C, createEvent as m } from "@arcgis/lumina";
|
|
|
5
5
|
import { css as y, html as c } from "lit";
|
|
6
6
|
import { C as d } from "../../chunks/interfaces.js";
|
|
7
7
|
import { ac as I, I as F } from "../../chunks/index2.js";
|
|
8
|
-
import { h as v } from "../../chunks/
|
|
8
|
+
import { h as v } from "../../chunks/index5.js";
|
|
9
9
|
import { i as b } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
const S = y`: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%}`;
|
|
11
11
|
class L extends C {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as C } from "lit/directives/keyed.js";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as r } from "../../chunks/interfaces.js";
|
|
5
5
|
import { u } from "../../chunks/useT9n.js";
|
|
6
|
-
import { css as b, html as
|
|
7
|
-
import { createRef as
|
|
6
|
+
import { css as b, html as s } from "lit";
|
|
7
|
+
import { createRef as c, ref as d } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as v, createEvent as m, renderElement as y, safeClassMap as o } from "@arcgis/lumina";
|
|
9
9
|
import { x as F } from "../../chunks/data.js";
|
|
10
10
|
import { d as g } from "../../chunks/index3.js";
|
|
11
|
-
import { m as
|
|
11
|
+
import { m as n, an as P } from "../../chunks/index2.js";
|
|
12
12
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { r as E } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { P as f } from "../../chunks/common.js";
|
|
@@ -16,28 +16,28 @@ const l = {
|
|
|
16
16
|
label: "label",
|
|
17
17
|
fieldList: "field-list",
|
|
18
18
|
fab: "fab"
|
|
19
|
-
}, k = b
|
|
19
|
+
}, k = b`.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)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`;
|
|
20
20
|
class w extends v {
|
|
21
21
|
constructor() {
|
|
22
|
-
super(...arguments), this._messages = u(), this.pieChartPopover = null, this.sortOrderElement =
|
|
22
|
+
super(...arguments), this._messages = u(), this.pieChartPopover = null, this.sortOrderElement = c(), this.categoryElement = c(), this.numericFieldsElement = c(), this.onPieChartDataChange = (e) => {
|
|
23
23
|
try {
|
|
24
24
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
25
25
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
26
26
|
switch (t) {
|
|
27
|
-
case
|
|
27
|
+
case r.aggregation:
|
|
28
28
|
this.model.aggregationType = i[0] !== E.NoAggregation ? i[0] : "";
|
|
29
29
|
break;
|
|
30
|
-
case
|
|
31
|
-
const
|
|
32
|
-
this.updateMode(
|
|
30
|
+
case r.category: {
|
|
31
|
+
const a = i[0]?.trim() || "";
|
|
32
|
+
this.updateMode(a);
|
|
33
33
|
const h = this.model.numericFields;
|
|
34
|
-
h.length > 1 &&
|
|
34
|
+
h.length > 1 && a !== n && (this.model.numericFields = [h[0]]), this.model.category = a, this.model.colorMatch = !0;
|
|
35
35
|
break;
|
|
36
36
|
}
|
|
37
|
-
case
|
|
38
|
-
i.length > 1 && (this.updateMode(
|
|
37
|
+
case r.numericFields:
|
|
38
|
+
i.length > 1 && (this.updateMode(n), this.model.category = n), this.model.numericFields = i;
|
|
39
39
|
break;
|
|
40
|
-
case
|
|
40
|
+
case r.sortOrder:
|
|
41
41
|
this.model.setSortOrder(i[0]);
|
|
42
42
|
break;
|
|
43
43
|
default:
|
|
@@ -73,16 +73,16 @@ class w extends v {
|
|
|
73
73
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
74
74
|
}
|
|
75
75
|
buildNumericFieldItem(e) {
|
|
76
|
-
return C(e,
|
|
76
|
+
return C(e, s`<calcite-list-item .label=${g(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
77
77
|
}
|
|
78
78
|
onSortOrderSelect(e) {
|
|
79
|
-
this.contentKind =
|
|
79
|
+
this.contentKind = r.sortOrder, this.setupPopover(e);
|
|
80
80
|
}
|
|
81
81
|
onCategorySelect(e) {
|
|
82
|
-
this.contentKind =
|
|
82
|
+
this.contentKind = r.category, this.setupPopover(e);
|
|
83
83
|
}
|
|
84
84
|
onAddNumericFields(e) {
|
|
85
|
-
this.contentKind =
|
|
85
|
+
this.contentKind = r.numericFields, this.setupPopover(e);
|
|
86
86
|
}
|
|
87
87
|
onRemoveNumericField(e) {
|
|
88
88
|
const t = e.target.value;
|
|
@@ -92,24 +92,24 @@ class w extends v {
|
|
|
92
92
|
this.model.dataLabelsVisibility = e.target.checked;
|
|
93
93
|
}
|
|
94
94
|
updateMode(e) {
|
|
95
|
-
const t = e !==
|
|
95
|
+
const t = e !== n && e.trim() !== "";
|
|
96
96
|
this.model.mode = t ? f.Category : f.Fields;
|
|
97
97
|
}
|
|
98
98
|
setupPopover(e) {
|
|
99
99
|
e.stopImmediatePropagation(), this.removePieChartDataPopover();
|
|
100
|
-
let t, i,
|
|
100
|
+
let t, i, a;
|
|
101
101
|
switch (this.contentKind) {
|
|
102
|
-
case
|
|
103
|
-
t = this.categoryElement.value, i = this._messages.categoryHeader,
|
|
102
|
+
case r.category:
|
|
103
|
+
t = this.categoryElement.value, i = this._messages.categoryHeader, a = this.model.category;
|
|
104
104
|
break;
|
|
105
|
-
case
|
|
106
|
-
t = this.numericFieldsElement.value, i = this._messages.numericFieldsMultipleHeader,
|
|
105
|
+
case r.numericFields:
|
|
106
|
+
t = this.numericFieldsElement.value, i = this._messages.numericFieldsMultipleHeader, a = this.model.numericFields;
|
|
107
107
|
break;
|
|
108
|
-
case
|
|
109
|
-
t = this.sortOrderElement.value, i = this._messages.sortOrderHeader,
|
|
108
|
+
case r.sortOrder:
|
|
109
|
+
t = this.sortOrderElement.value, i = this._messages.sortOrderHeader, a = this.model.getSortOrder();
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
|
-
this.pieChartPopover = y(
|
|
112
|
+
this.pieChartPopover = y(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${a} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`), !document.body.contains(this.pieChartPopover) && this.pieChartPopover !== null && document.body.appendChild(this.pieChartPopover);
|
|
113
113
|
}
|
|
114
114
|
getCorrectedCategoryValue() {
|
|
115
115
|
return F({
|
|
@@ -121,23 +121,23 @@ class w extends v {
|
|
|
121
121
|
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover = $(this.pieChartPopover));
|
|
122
122
|
}
|
|
123
123
|
renderSorting() {
|
|
124
|
-
return
|
|
124
|
+
return s`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${d(this.sortOrderElement)}></arcgis-charts-config-field-select>`;
|
|
125
125
|
}
|
|
126
126
|
renderCategory() {
|
|
127
127
|
const e = this.getCorrectedCategoryValue();
|
|
128
|
-
return
|
|
128
|
+
return s`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${d(this.categoryElement)}></arcgis-charts-config-field-select>`;
|
|
129
129
|
}
|
|
130
130
|
renderNumericFields(e) {
|
|
131
131
|
const t = P(this.model.layer).idField, i = [];
|
|
132
|
-
for (const
|
|
133
|
-
|
|
134
|
-
return
|
|
132
|
+
for (const a of e)
|
|
133
|
+
a !== t && i.push(this.buildNumericFieldItem(a));
|
|
134
|
+
return s`<calcite-list label class=${o(l.fieldList)} ${d(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
const e = this.renderCategory(), t = this.renderSorting(), i = this.renderNumericFields([...this.model.numericFields]);
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[
|
|
139
|
+
s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,
|
|
140
|
+
s`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`
|
|
141
141
|
]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -1,100 +1,98 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as p } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
5
5
|
import { isEqual as k } from "lodash-es";
|
|
6
6
|
import { P as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import { p as
|
|
8
|
-
import { u
|
|
9
|
-
import { css as
|
|
10
|
-
import { createRef as
|
|
11
|
-
import { LitElement as P, createEvent as
|
|
12
|
-
import { e as
|
|
7
|
+
import { p as f, b as $, e as h, f as L } from "../../chunks/chart-ui-utils2.js";
|
|
8
|
+
import { u } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as y, html as n } from "lit";
|
|
10
|
+
import { createRef as b, ref as d } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as P, createEvent as C, safeClassMap as r } from "@arcgis/lumina";
|
|
12
|
+
import { e as I, p as F } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { t as D } from "../../chunks/index.js";
|
|
14
14
|
import { d as x } from "../../chunks/index3.js";
|
|
15
|
-
import {
|
|
15
|
+
import { bh as S, bk as T } from "../../chunks/index2.js";
|
|
16
16
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
-
import { a as
|
|
17
|
+
import { a as o } from "../../chunks/common.js";
|
|
18
18
|
const l = {
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
20
19
|
name: "pie-chart-data-popover",
|
|
21
|
-
numericFieldPickList: "pie-chart-data-numeric-fields-pick-list",
|
|
22
20
|
header: "header",
|
|
23
21
|
fab: "fab",
|
|
24
22
|
pickListItemLabel: "pick-list-item-label",
|
|
25
23
|
flipClass: "sort-counter-clockwise",
|
|
26
24
|
panel: "panel"
|
|
27
|
-
},
|
|
28
|
-
class
|
|
25
|
+
}, w = y`.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}`;
|
|
26
|
+
class A extends P {
|
|
29
27
|
constructor() {
|
|
30
|
-
super(...arguments), this._messages =
|
|
28
|
+
super(...arguments), this._messages = u(), this.commonStrings = u({ name: "common", blocking: !0 }), this.picklist = b(), this.popoverElement = b(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPieChartDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
|
|
31
29
|
}
|
|
32
30
|
static {
|
|
33
31
|
this.properties = { aggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
34
32
|
}
|
|
35
33
|
static {
|
|
36
|
-
this.styles =
|
|
34
|
+
this.styles = w;
|
|
37
35
|
}
|
|
38
36
|
async reposition() {
|
|
39
37
|
await this.popoverElement.value?.reposition();
|
|
40
38
|
}
|
|
41
39
|
willUpdate(e) {
|
|
42
40
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
43
|
-
const t =
|
|
41
|
+
const t = f.map((i) => D(i, this.commonStrings));
|
|
44
42
|
k(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
45
43
|
}
|
|
46
44
|
updated() {
|
|
47
|
-
|
|
45
|
+
I(this.popoverElement.value, this.open), setTimeout(() => {
|
|
48
46
|
this.picklist.value?.setFocus();
|
|
49
47
|
}, $.PopoverTimer);
|
|
50
48
|
}
|
|
51
49
|
selectedContentChange(e, t) {
|
|
52
|
-
this.pickListHasChanged =
|
|
50
|
+
this.pickListHasChanged = F(e, t);
|
|
53
51
|
}
|
|
54
52
|
buildAggregationPickListItems() {
|
|
55
|
-
return
|
|
53
|
+
return p(f, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${h(e, this.selectedContent)}></calcite-list-item>`);
|
|
56
54
|
}
|
|
57
55
|
buildSortOrder() {
|
|
58
|
-
const e = Object.keys(
|
|
59
|
-
return e.splice(e.indexOf(
|
|
56
|
+
const e = Object.keys(o);
|
|
57
|
+
return e.splice(e.indexOf(o.customSort), 1), p(e, (t) => t, (t) => {
|
|
60
58
|
let i = "string";
|
|
61
|
-
const
|
|
59
|
+
const c = "rotate";
|
|
62
60
|
let s = "";
|
|
63
61
|
switch (t) {
|
|
64
|
-
case
|
|
62
|
+
case o.labelAsc:
|
|
65
63
|
i = "string";
|
|
66
64
|
break;
|
|
67
|
-
case
|
|
65
|
+
case o.labelDesc:
|
|
68
66
|
i = "string", s = l.flipClass;
|
|
69
67
|
break;
|
|
70
|
-
case
|
|
68
|
+
case o.valueAsc:
|
|
71
69
|
i = "number";
|
|
72
70
|
break;
|
|
73
|
-
case
|
|
71
|
+
case o.valueDesc:
|
|
74
72
|
i = "number", s = l.flipClass;
|
|
75
73
|
break;
|
|
76
74
|
// Do nothing for customSort for now
|
|
77
|
-
case
|
|
75
|
+
case o.customSort:
|
|
78
76
|
}
|
|
79
|
-
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${
|
|
77
|
+
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${o[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${r(s)} slot=content-end .icon=${c}></calcite-icon></calcite-list-item>`;
|
|
80
78
|
});
|
|
81
79
|
}
|
|
82
80
|
buildPickListItem(e) {
|
|
83
|
-
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${
|
|
81
|
+
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
84
82
|
}
|
|
85
83
|
buildPickListItems(e) {
|
|
86
84
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
87
85
|
switch (e) {
|
|
88
86
|
case a.numericFields: {
|
|
89
|
-
for (let
|
|
90
|
-
const s = this.layerFieldsInfo[
|
|
87
|
+
for (let c = 0; c < t; c += 1) {
|
|
88
|
+
const s = this.layerFieldsInfo[c];
|
|
91
89
|
T(s) && i.push(this.buildPickListItem(s));
|
|
92
90
|
}
|
|
93
91
|
break;
|
|
94
92
|
}
|
|
95
93
|
case a.category: {
|
|
96
|
-
const
|
|
97
|
-
i.push(
|
|
94
|
+
const c = g(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
95
|
+
i.push(c);
|
|
98
96
|
for (let s = 0; s < t; s += 1) {
|
|
99
97
|
const m = this.layerFieldsInfo[s];
|
|
100
98
|
(S(m) || m.type === E.String) && i.push(this.buildPickListItem(m));
|
|
@@ -111,7 +109,7 @@ class w extends P {
|
|
|
111
109
|
eventEmitter: this.arcgisChartsConfigPieChartDataPopoverChange,
|
|
112
110
|
contentKind: this.contentKind
|
|
113
111
|
};
|
|
114
|
-
|
|
112
|
+
L(e);
|
|
115
113
|
}
|
|
116
114
|
this.arcgisChartsConfigPopoverClose.emit();
|
|
117
115
|
}
|
|
@@ -131,15 +129,15 @@ class w extends P {
|
|
|
131
129
|
}
|
|
132
130
|
renderAggregationType() {
|
|
133
131
|
const e = this.buildAggregationPickListItems();
|
|
134
|
-
return n`<calcite-list label class=${
|
|
132
|
+
return n`<calcite-list label class=${r(l.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
135
133
|
}
|
|
136
134
|
renderCategory() {
|
|
137
135
|
const e = this.buildPickListItems(a.category);
|
|
138
|
-
return n`<calcite-list label class=${
|
|
136
|
+
return n`<calcite-list label class=${r(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
139
137
|
}
|
|
140
138
|
renderNumericFields() {
|
|
141
139
|
const e = this.buildPickListItems(a.numericFields);
|
|
142
|
-
return n`<calcite-list label
|
|
140
|
+
return n`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
143
141
|
}
|
|
144
142
|
renderSortOrder() {
|
|
145
143
|
const e = this.buildSortOrder();
|
|
@@ -165,10 +163,10 @@ class w extends P {
|
|
|
165
163
|
}
|
|
166
164
|
render() {
|
|
167
165
|
let e;
|
|
168
|
-
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${
|
|
166
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${r(l.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><calcite-popover class=${r(l.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${d(this.popoverElement)}><calcite-panel class=${r(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(l.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
|
-
v("arcgis-charts-config-pie-chart-popover",
|
|
169
|
+
v("arcgis-charts-config-pie-chart-popover", A);
|
|
172
170
|
export {
|
|
173
|
-
|
|
171
|
+
A as ArcgisChartsConfigPieChartPopover
|
|
174
172
|
};
|