@arcgis/charts-components 5.2.0-next.5 → 5.2.0-next.50
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/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/2EEGLP4N.js +2 -0
- package/dist/cdn/{2HUAW34Q.js → 2R5BXKVB.js} +1 -1
- package/dist/cdn/{5QO32XSX.js → 2UMW7TY6.js} +1 -1
- package/dist/cdn/356JWED3.js +2 -0
- package/dist/cdn/{Y7HBWU3M.js → 3GAUDUOD.js} +1 -1
- package/dist/cdn/{SBYD2EKR.js → 3UDKG6TV.js} +1 -1
- package/dist/cdn/{DCZWZOPF.js → 4ASVJDBN.js} +1 -1
- package/dist/cdn/4C3N36J3.js +2 -0
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/{Y3CXVO2M.js → 4MSUALRF.js} +1 -1
- package/dist/cdn/4PEJNBSG.js +2 -0
- package/dist/cdn/53HYBRJO.js +2 -0
- package/dist/cdn/{L4G6FO7A.js → 57VIC2YX.js} +1 -1
- package/dist/cdn/5CIY3LRQ.js +2 -0
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/{CHQDKVVQ.js → 5DUKB563.js} +1 -1
- package/dist/cdn/{23YH7MTF.js → 5E27ED2B.js} +1 -1
- package/dist/cdn/5IOIRPSB.js +2 -0
- package/dist/cdn/5JY7HY6L.js +2 -0
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/5XW2VK3A.js +2 -0
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/67P25QZA.js +2 -0
- package/dist/cdn/6HU62XEQ.js +2 -0
- package/dist/cdn/{BJDRJUEJ.js → 6RG6AF7N.js} +1 -1
- package/dist/cdn/{HCMD362H.js → 6RPBMFL2.js} +1 -1
- package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
- package/dist/cdn/77A4IT5I.js +2 -0
- package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
- package/dist/cdn/{JJIGLOJA.js → 7CGAXWPM.js} +1 -1
- package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
- package/dist/cdn/7FSMC2TG.js +2 -0
- package/dist/cdn/{N6AOFBBX.js → 7MEYUIY2.js} +1 -1
- package/dist/cdn/{TNB3MBXR.js → A67PKDYM.js} +1 -1
- package/dist/cdn/AALLRICA.js +2 -0
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/{5MEQANMY.js → AFE4UMQE.js} +1 -1
- package/dist/cdn/{CJ4POAPM.js → AJ4RZPOJ.js} +1 -1
- package/dist/cdn/AM27TYIA.js +102 -0
- package/dist/cdn/{VEA5ZR5D.js → APATJCOK.js} +1 -1
- package/dist/cdn/AZHBGLOD.js +2 -0
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{TYMKFCF4.js → B6BI3FPN.js} +1 -1
- package/dist/cdn/{HVO4LIXR.js → BAPR67OA.js} +1 -1
- package/dist/cdn/{5JML3JUR.js → BBMN3YU4.js} +1 -1
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/BGOWDCTO.js +2 -0
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BYPSLSFP.js +2 -0
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/BYU72SMZ.js +2 -0
- package/dist/cdn/{ZFZ5AEUQ.js → C4O77AVT.js} +1 -1
- package/dist/cdn/CHZMNR2R.js +2 -0
- package/dist/cdn/CK2HC7UZ.js +4 -0
- package/dist/cdn/{64ZMYZ2S.js → CO2YXCVJ.js} +1 -1
- package/dist/cdn/CRUHZMGY.js +2 -0
- package/dist/cdn/{KLC6NTPC.js → CUPAZHZI.js} +1 -1
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/{DEGBVJ76.js → DGJATKEL.js} +1 -1
- package/dist/cdn/DGU55EVX.js +2 -0
- package/dist/cdn/DT5VZTKL.js +2 -0
- package/dist/cdn/DWWFJ4K4.js +2 -0
- package/dist/cdn/{RAQZUMC6.js → E7YVOSTR.js} +1 -1
- package/dist/cdn/{A5GIBV5W.js → EDYALXKT.js} +1 -1
- package/dist/cdn/EKHD7EQL.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/{A4GEWIPY.js → F7IPTEHX.js} +1 -1
- package/dist/cdn/{WASEMNYV.js → FHKRXY7E.js} +1 -1
- package/dist/cdn/{R45FWF7D.js → G6XSNG2U.js} +1 -1
- package/dist/cdn/{LFQGH44F.js → GEHO65XE.js} +1 -1
- package/dist/cdn/{RFQBUWOW.js → GT6KWFXM.js} +1 -1
- package/dist/cdn/{TF7TE7K5.js → GZZJATH3.js} +1 -1
- package/dist/cdn/HGG2Y5XW.js +2 -0
- package/dist/cdn/HMBXRL4X.js +2 -0
- package/dist/cdn/HQHYGZW7.js +2 -0
- package/dist/cdn/{FF4DUQDZ.js → HRUQXEFI.js} +1 -1
- package/dist/cdn/{ZXOO3X5P.js → HWHKCIYW.js} +1 -1
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/{3DK6M5E7.js → IB6KNSJY.js} +1 -1
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/{PSO5AURI.js → INECCYD7.js} +1 -1
- package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
- package/dist/cdn/{PVJEBBA7.js → ISY2BKFT.js} +1 -1
- package/dist/cdn/J64IDIEG.js +2 -0
- package/dist/cdn/J6YHKP6I.js +2 -0
- package/dist/cdn/JDAJB45A.js +2 -0
- package/dist/cdn/{YOT6DVSU.js → JEW6MSOC.js} +1 -1
- package/dist/cdn/{KZ7LPNX3.js → JNFMKAES.js} +1 -1
- package/dist/cdn/JPGRB2JX.js +2 -0
- package/dist/cdn/JRJXFHCK.js +2 -0
- package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
- package/dist/cdn/{JBHGSSHS.js → K25GJKPH.js} +1 -1
- package/dist/cdn/K4APZJ2O.js +2 -0
- package/dist/cdn/K5FLBEYI.js +2 -0
- package/dist/cdn/KITNG4RO.js +2 -0
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/{7FZC3RZK.js → L5J4TYCU.js} +1 -1
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/LGTEA66L.js +2 -0
- package/dist/cdn/LQMU7V5C.js +2 -0
- package/dist/cdn/LSWWNXP3.js +2 -0
- package/dist/cdn/M22IUUVK.js +2 -0
- package/dist/cdn/{MRTKZZTF.js → MBL6ZAKF.js} +1 -1
- package/dist/cdn/{K3GNHGEW.js → MDPDU2BA.js} +1 -1
- package/dist/cdn/MIJTHCPZ.js +2 -0
- package/dist/cdn/NEOAI7Q7.js +3 -0
- package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
- package/dist/cdn/{VVKV5KKN.js → NMITBWC4.js} +1 -1
- package/dist/cdn/NPRV25FK.js +2 -0
- package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
- package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → NYFHPR6N.js} +1 -1
- package/dist/cdn/{AJWYIBGC.js → O25MQAZU.js} +1 -1
- package/dist/cdn/{LONASKGH.js → OAFJADKA.js} +1 -1
- package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
- package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
- package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
- package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/{LDPHZHSF.js → OWLVHHFH.js} +1 -1
- package/dist/cdn/{E7OAEGSE.js → OZSAA5YQ.js} +1 -1
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/{WEQBZOH7.js → PDPZBGTU.js} +1 -1
- package/dist/cdn/PFR6MB2U.js +2 -0
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/PO2S3EAI.js +2 -0
- package/dist/cdn/{VDG54AIC.js → PTS74ZAY.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → PV2PO4IS.js} +1 -1
- package/dist/cdn/{ETKPMU7Z.js → Q3ZQR5JF.js} +1 -1
- package/dist/cdn/{QMSINFQX.js → Q5E66RNY.js} +1 -1
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/{XJFVSX2E.js → QJMUS3VS.js} +1 -1
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/QLJQK4ET.js +2 -0
- package/dist/cdn/{THTYR6IL.js → QYNNPEED.js} +1 -1
- package/dist/cdn/R53ISOLY.js +2 -0
- package/dist/cdn/{GV3TT7L5.js → R6T7WJQJ.js} +1 -1
- package/dist/cdn/{KUZR6CGB.js → R6XIGSQS.js} +1 -1
- package/dist/cdn/{7ABIELGZ.js → RFXODD7V.js} +1 -1
- package/dist/cdn/{5XTQQOTT.js → RLCLIRL6.js} +1 -1
- package/dist/cdn/RREO2RVL.js +2 -0
- package/dist/cdn/{AM2TOTX6.js → RTVU7ANC.js} +1 -1
- package/dist/cdn/RXFVSKL4.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/{DKAHZ7IX.js → SWEIMWH2.js} +1 -1
- package/dist/cdn/T5QBJ7O3.js +2 -0
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/TGGLZGJB.js +2 -0
- package/dist/cdn/THYUOV7H.js +45 -0
- package/dist/cdn/TIRQ7FKE.js +2 -0
- package/dist/cdn/{KOBNV5AQ.js → TJZPVPM6.js} +1 -1
- package/dist/cdn/{A5YDJIMZ.js → TNNXIIY2.js} +1 -1
- package/dist/cdn/{KFONSKQF.js → TQLMPVI5.js} +1 -1
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → TW4RXJ35.js} +1 -1
- package/dist/cdn/{U2LJZ4ML.js → TWULSSGK.js} +1 -1
- package/dist/cdn/TXQMUOMN.js +2 -0
- package/dist/cdn/{PC7IKOIB.js → TZBDO2TG.js} +1 -1
- package/dist/cdn/{5G7DSKI7.js → UBG7XLVS.js} +1 -1
- package/dist/cdn/{NQQW4GKA.js → UBZEWFXF.js} +1 -1
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/{LZYN55O4.js → UDDRI2Q2.js} +1 -1
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/{A5AECJXP.js → VEXNULZX.js} +1 -1
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/VMJSBE4T.js +2 -0
- package/dist/cdn/{U4XLNCOU.js → VQJKVJS7.js} +1 -1
- package/dist/cdn/{3YT44D4Z.js → VX6SWJJ6.js} +1 -1
- package/dist/cdn/VZNG7PQX.js +2 -0
- package/dist/cdn/W2QTMTLL.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/{AWF4R7WL.js → WWIRRYDD.js} +1 -1
- package/dist/cdn/{XW4PBQNW.js → X6QMN2HV.js} +1 -1
- package/dist/cdn/XKOKJQQD.js +2 -0
- package/dist/cdn/{LRNADJJG.js → XMV5A2VE.js} +2 -2
- package/dist/cdn/XUL3AOTB.js +2 -0
- package/dist/cdn/{IPM2XKST.js → XVK4ONRA.js} +1 -1
- package/dist/cdn/{QOOBNATX.js → XWLP2CHH.js} +1 -1
- package/dist/cdn/Y6KFUUWA.js +2 -0
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/YEGRLOUM.js +2 -0
- package/dist/cdn/{PAIRUVLU.js → YEK7BIRE.js} +1 -1
- package/dist/cdn/{XE3FKQFA.js → YS73YUW5.js} +1 -1
- package/dist/cdn/{WNKDEOFZ.js → ZALJA7E5.js} +1 -1
- package/dist/cdn/{6XTKJ7DO.js → ZCAHK6VZ.js} +1 -1
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
- package/dist/cdn/{FDXE5JLT.js → ZUIZRQUG.js} +1 -1
- package/dist/cdn/{CLXVAIQX.js → ZYK5XBZK.js} +1 -1
- package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +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 +7 -7
- package/dist/chunks/bar-chart-model.js +39 -36
- package/dist/chunks/box-plot-data.js +37 -37
- package/dist/chunks/box-plot-model.js +10 -10
- package/dist/chunks/chart-model.js +173 -141
- package/dist/chunks/chart-object-literals.js +2 -1
- package/dist/chunks/chart-ui-utils.js +24 -23
- package/dist/chunks/class-breaks.js +12 -12
- package/dist/chunks/combo-bar-line-chart-model.js +27 -27
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/data-labels-visibility.js +22 -22
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/generate-x-axis-title.js +9 -9
- package/dist/chunks/heat-chart-model.js +76 -47
- package/dist/chunks/histogram-data.js +15 -15
- package/dist/chunks/histogram-model.js +5 -5
- package/dist/chunks/index.js +85 -84
- package/dist/chunks/index2.js +5926 -5735
- package/dist/chunks/index3.js +32 -29
- package/dist/chunks/index4.js +252 -75
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +15 -14
- package/dist/chunks/model-with-line-marker-styling.js +2 -3
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +20 -20
- package/dist/chunks/negative-values-stacked-to-baseline.js +3 -3
- package/dist/chunks/pie-chart-data.js +48 -42
- package/dist/chunks/pie-chart-model.js +171 -158
- package/dist/chunks/radar-chart-model.js +2 -2
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +73 -0
- package/dist/chunks/scatterplot-model.js +15 -15
- package/dist/chunks/serial-chart-data.js +891 -756
- package/dist/chunks/serial-chart-model.js +107 -93
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +17 -13
- package/dist/chunks/type-guards2.js +24 -20
- package/dist/chunks/type-guards3.js +1 -1
- package/dist/chunks/utils.js +79 -68
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +632 -492
- package/dist/chunks/x-bounds.js +17 -17
- package/dist/components/arcgis-chart/customElement.d.ts +178 -148
- package/dist/components/arcgis-chart/customElement.js +8259 -8184
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +6 -9
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +23 -25
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +63 -75
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +53 -54
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -12
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +36 -38
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +41 -48
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +55 -56
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +79 -79
- package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
- package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +66 -70
- package/dist/index.js +457 -450
- package/dist/json-schema/index.d.ts +162 -2
- package/dist/loader.js +2 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +8 -5
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +24 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +6 -5
- package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
- 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/properties/rounded-corners.d.ts +18 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
- package/dist/model/shared/type-guards.d.ts +7 -0
- package/dist/spec/chart-object-literals.d.ts +1 -0
- package/dist/spec/data-source.d.ts +6 -1
- 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 +16 -2
- package/dist/utils/chart-config/converter/index.js +17 -17
- package/dist/utils/chart-config/utils/index.d.ts +35 -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/data/index.d.ts +14 -10
- package/dist/utils/defaults/index.d.ts +5 -3
- package/dist/utils/defaults/interfaces.d.ts +1 -1
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +5 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/interfaces.d.ts +2 -1
- package/dist/utils/layer/query-features/index.d.ts +17 -1
- package/dist/utils/layer/query-parser/index.d.ts +4 -3
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +7 -8
- package/dist/cdn/26FWESH3.js +0 -102
- package/dist/cdn/2K4ODNJ4.js +0 -2
- package/dist/cdn/3XHZ677O.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/5FMEOIBS.js +0 -3
- package/dist/cdn/5XTB2INB.js +0 -2
- package/dist/cdn/5YJNENER.js +0 -2
- package/dist/cdn/74JAZF7U.js +0 -2
- package/dist/cdn/7CN6J33C.js +0 -2
- package/dist/cdn/7HIZH35G.js +0 -2
- package/dist/cdn/BBURKBKE.js +0 -2
- package/dist/cdn/CCR46UHB.js +0 -2
- package/dist/cdn/CJPEW4LJ.js +0 -142
- package/dist/cdn/CRFJ2GGS.js +0 -2
- package/dist/cdn/CXQOEN77.js +0 -2
- package/dist/cdn/DYC3Q36R.js +0 -2
- package/dist/cdn/E43KEVHT.js +0 -2
- package/dist/cdn/EXTKNE2L.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/F7Y6EWWB.js +0 -2
- package/dist/cdn/G5HVFOIO.js +0 -2
- package/dist/cdn/G7TRU7JI.js +0 -2
- package/dist/cdn/GL3IXVRN.js +0 -2
- package/dist/cdn/GLJWUZHK.js +0 -2
- package/dist/cdn/HCV34H6X.js +0 -2
- package/dist/cdn/IUFXFWXH.js +0 -2
- package/dist/cdn/JHYH555K.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JVHJMPFE.js +0 -2
- package/dist/cdn/K5MXTTSL.js +0 -2
- package/dist/cdn/KI4HS3AM.js +0 -2
- package/dist/cdn/KVGEY3IQ.js +0 -2
- package/dist/cdn/LWODMEOP.js +0 -2
- package/dist/cdn/LYZGRYQV.js +0 -2
- package/dist/cdn/MF3FGXHI.js +0 -2
- package/dist/cdn/MUPHTV55.js +0 -2
- package/dist/cdn/N5ERJZPG.js +0 -2
- package/dist/cdn/NGPMU4T3.js +0 -2
- package/dist/cdn/NJCZ6UTM.js +0 -2
- package/dist/cdn/NMB6TWC2.js +0 -2
- package/dist/cdn/NNNTZU5J.js +0 -2
- package/dist/cdn/NPXBPNXE.js +0 -2
- package/dist/cdn/NS3THLCD.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/OLV642SY.js +0 -4
- package/dist/cdn/P2NPQAJ3.js +0 -2
- package/dist/cdn/PJUAU42S.js +0 -2
- package/dist/cdn/PK5XIIZY.js +0 -2
- package/dist/cdn/PY5Q3V6E.js +0 -2
- package/dist/cdn/PZGIXDMC.js +0 -2
- package/dist/cdn/RMYZGOBM.js +0 -2
- package/dist/cdn/SVLEJ3HK.js +0 -2
- package/dist/cdn/TAI4RIWT.js +0 -2
- package/dist/cdn/TXSWWAOF.js +0 -2
- package/dist/cdn/TZB57XD4.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UAJGYF4S.js +0 -2
- package/dist/cdn/UT6G7RV7.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/YF7MNTCU.js +0 -58
- package/dist/cdn/YRBE7MBU.js +0 -2
- package/dist/cdn/YRFZPSCC.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/cdn/Z2CVF7CH.js +0 -2
- package/dist/cdn/ZRZEKOEF.js +0 -2
- package/dist/chunks/bar-chart-series.js +0 -15
- package/dist/chunks/time-zone.js +0 -38
- package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
- /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as F } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
4
|
-
import { css as
|
|
4
|
+
import { css as T, html as l } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
|
-
import
|
|
7
|
-
import { LitElement as
|
|
6
|
+
import P from "@arcgis/core/Color.js";
|
|
7
|
+
import { LitElement as I, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as L } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as S } from "lodash-es";
|
|
10
|
-
import { d as
|
|
11
|
-
import { u as
|
|
10
|
+
import { d as D, F as v } from "../../chunks/index3.js";
|
|
11
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
12
12
|
import { e as c, W as $ } from "../../chunks/interfaces.js";
|
|
13
|
-
import { c as y, b as
|
|
13
|
+
import { c as y, b as A, e as m } from "../../chunks/chart-ui-utils2.js";
|
|
14
14
|
import { C as x, k } from "../../chunks/class-breaks.js";
|
|
15
15
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { r as _, i as R, e as C } from "../../chunks/chart-object-literals.js";
|
|
17
|
-
import { e as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
const
|
|
21
|
-
jsAppFlyout: "js-app-flyout",
|
|
17
|
+
import { e as N } from "../../chunks/popover-ui-utils.js";
|
|
18
|
+
import { u as B, aC as M } from "../../chunks/index.js";
|
|
19
|
+
import { bb as H, bk as O } from "../../chunks/index2.js";
|
|
20
|
+
const q = T`.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}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
22
21
|
name: "bar-chart-data-popover",
|
|
23
22
|
header: "header",
|
|
24
|
-
|
|
23
|
+
popoverPickList: "popover-pick-list",
|
|
25
24
|
panel: "panel",
|
|
26
25
|
colorRampPopover: "color-ramp-popover",
|
|
27
26
|
colorRampToolbar: "color-ramp-toolbar",
|
|
@@ -35,50 +34,50 @@ const O = w`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
35
34
|
panelChildrenContainer: "panel-children-container",
|
|
36
35
|
colorRampPopoverFooter: "color-ramp-popover-footer"
|
|
37
36
|
};
|
|
38
|
-
class
|
|
37
|
+
class W extends I {
|
|
39
38
|
constructor() {
|
|
40
|
-
super(...arguments), this._messages =
|
|
39
|
+
super(...arguments), this._messages = b(), this.commonStrings = b({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory = x.all, this.aggregationLabels = [], this.isFlipped = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigHeatChartColorRampChange = h(), this.arcgisChartsConfigHeatChartDataPopoverChange = h(), this.arcgisChartsConfigPopoverClose = h(), this.arcgisChartsConfigPopoverEmptyCellColorChange = h(), this.arcgisChartsConfigPopoverEmptyCellNameChange = h();
|
|
41
40
|
}
|
|
42
41
|
static {
|
|
43
42
|
this.properties = { availableColorRamps: 16, selectedColorRampName: 16, selectedCategory: 16, aggregationLabels: 16, isFlipped: 5, model: 0, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, colorRamps: 0 };
|
|
44
43
|
}
|
|
45
44
|
static {
|
|
46
|
-
this.styles =
|
|
45
|
+
this.styles = q;
|
|
47
46
|
}
|
|
48
47
|
async reposition() {
|
|
49
48
|
await this.popoverElement.value?.reposition();
|
|
50
49
|
}
|
|
51
50
|
willUpdate() {
|
|
52
|
-
const e = y.map((t) =>
|
|
51
|
+
const e = y.map((t) => B(t, this.commonStrings));
|
|
53
52
|
S(this.aggregationLabels, e) || (this.aggregationLabels = e), this.colorRamps && this.colorRamps !== this.availableColorRamps && (this.availableColorRamps = this.colorRamps), this.contentKind === c.colorScheme && this.selectedContent && !this.selectedColorRampName && (this.selectedColorRampName = this.selectedContent);
|
|
54
53
|
}
|
|
55
54
|
updated() {
|
|
56
55
|
setTimeout(() => {
|
|
57
56
|
this.picklist.value?.setFocus();
|
|
58
|
-
},
|
|
57
|
+
}, A.PopoverTimer), N(this.popoverElement.value, this.open);
|
|
59
58
|
}
|
|
60
59
|
buildAggregationListItems() {
|
|
61
|
-
return d(y.filter((e) => e !== _.NoAggregation), (e) => e, (e, t) =>
|
|
60
|
+
return d(y.filter((e) => e !== _.NoAggregation), (e) => e, (e, t) => l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
62
61
|
}
|
|
63
62
|
buildPickListItem(e) {
|
|
64
|
-
return f(e.name,
|
|
63
|
+
return f(e.name, l`<calcite-list-item .label=${D(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${m(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
65
64
|
}
|
|
66
65
|
buildPickListItems(e) {
|
|
67
66
|
const t = this.layerFieldsInfo?.length ?? 0, a = [];
|
|
68
67
|
switch (e) {
|
|
69
68
|
case c.numericFields: {
|
|
70
|
-
const i = f(" ",
|
|
69
|
+
const i = f(" ", l`<calcite-list-item label=" " value=" " .selected=${m("", this.selectedContent)}></calcite-list-item>`);
|
|
71
70
|
a.push(i);
|
|
72
|
-
for (let
|
|
73
|
-
const n = this.layerFieldsInfo?.[
|
|
74
|
-
n &&
|
|
71
|
+
for (let o = 0; o < t; o += 1) {
|
|
72
|
+
const n = this.layerFieldsInfo?.[o];
|
|
73
|
+
n && O(n) && a.push(this.buildPickListItem(n));
|
|
75
74
|
}
|
|
76
75
|
break;
|
|
77
76
|
}
|
|
78
77
|
case c.xAxisField: {
|
|
79
78
|
for (let i = 0; i < t; i += 1) {
|
|
80
|
-
const
|
|
81
|
-
|
|
79
|
+
const o = this.layerFieldsInfo?.[i];
|
|
80
|
+
o && H(o) && a.push(this.buildPickListItem(o));
|
|
82
81
|
}
|
|
83
82
|
break;
|
|
84
83
|
}
|
|
@@ -114,16 +113,16 @@ class q extends T {
|
|
|
114
113
|
let t = "#000000";
|
|
115
114
|
try {
|
|
116
115
|
if (e) {
|
|
117
|
-
if (e instanceof
|
|
116
|
+
if (e instanceof P) {
|
|
118
117
|
const a = e.toHex();
|
|
119
118
|
typeof a == "string" && a.length && (t = a);
|
|
120
119
|
} else if (Array.isArray(e)) {
|
|
121
|
-
const [a, i,
|
|
122
|
-
[a, i,
|
|
120
|
+
const [a, i, o, n] = e;
|
|
121
|
+
[a, i, o].every((w) => typeof w == "number") && (t = `rgba(${a},${i},${o},${n ?? 1})`);
|
|
123
122
|
} else if (typeof e == "object" && e) {
|
|
124
|
-
const { r: a, g: i, b:
|
|
125
|
-
if (a != null && i != null &&
|
|
126
|
-
return `rgba(${a},${i},${
|
|
123
|
+
const { r: a, g: i, b: o, a: n } = e;
|
|
124
|
+
if (a != null && i != null && o != null)
|
|
125
|
+
return `rgba(${a},${i},${o},${n ?? 1})`;
|
|
127
126
|
}
|
|
128
127
|
}
|
|
129
128
|
} catch {
|
|
@@ -164,34 +163,34 @@ class q extends T {
|
|
|
164
163
|
this.model.emptyCellText !== t && (this.model.emptyCellText = t, this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
165
164
|
}
|
|
166
165
|
colorChange(e) {
|
|
167
|
-
const t = e instanceof CustomEvent ? e.detail : e, [a, i,
|
|
168
|
-
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i,
|
|
166
|
+
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n = M * 255;
|
|
167
|
+
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i, o, n] });
|
|
169
168
|
}
|
|
170
169
|
renderAggregationType() {
|
|
171
170
|
const e = this.buildAggregationListItems();
|
|
172
|
-
return
|
|
171
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
173
172
|
}
|
|
174
173
|
renderXAxisFieldSelect() {
|
|
175
174
|
const e = this.buildPickListItems(c.xAxisField);
|
|
176
|
-
return
|
|
175
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
177
176
|
}
|
|
178
177
|
renderNumericFields() {
|
|
179
178
|
const e = this.buildPickListItems(c.numericFields);
|
|
180
|
-
return
|
|
179
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
181
180
|
}
|
|
182
181
|
renderCalendarType() {
|
|
183
182
|
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== E.DateOnly), a = d(t, (i) => i, (i) => {
|
|
184
|
-
const
|
|
185
|
-
return
|
|
183
|
+
const o = this._messages[i];
|
|
184
|
+
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i, this.selectedContent)}></calcite-list-item>`;
|
|
186
185
|
});
|
|
187
|
-
return
|
|
186
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`;
|
|
188
187
|
}
|
|
189
188
|
renderCalendarViewType() {
|
|
190
189
|
const e = d(Object.values(R), (t) => t, (t) => {
|
|
191
190
|
const a = this._messages[t];
|
|
192
|
-
return
|
|
191
|
+
return l`<calcite-list-item .label=${a} .value=${t} .disabled=${t !== R.singleCalendarView} .selected=${m(t, this.selectedContent)}></calcite-list-item>`;
|
|
193
192
|
});
|
|
194
|
-
return
|
|
193
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
195
194
|
}
|
|
196
195
|
renderClassBreakMethod() {
|
|
197
196
|
const e = [
|
|
@@ -211,10 +210,10 @@ class q extends T {
|
|
|
211
210
|
msg: this._messages?.classBreaksMethod?.quantileMsg
|
|
212
211
|
}
|
|
213
212
|
], t = d(Object.values(e), ({ value: a }) => a, (a) => {
|
|
214
|
-
const { title: i, msg:
|
|
215
|
-
return
|
|
213
|
+
const { title: i, msg: o, value: n } = a;
|
|
214
|
+
return l`<calcite-list-item .label=${i} .description=${o} .value=${n} .selected=${m(n, this.selectedContent)}></calcite-list-item>`;
|
|
216
215
|
});
|
|
217
|
-
return
|
|
216
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`;
|
|
218
217
|
}
|
|
219
218
|
renderPopoverInfo() {
|
|
220
219
|
let e;
|
|
@@ -244,27 +243,27 @@ class q extends T {
|
|
|
244
243
|
e = this.renderEmptyCellUI();
|
|
245
244
|
break;
|
|
246
245
|
default:
|
|
247
|
-
e =
|
|
246
|
+
e = l`<div></div>`;
|
|
248
247
|
break;
|
|
249
248
|
}
|
|
250
249
|
return e;
|
|
251
250
|
}
|
|
252
251
|
renderColorRampSelect() {
|
|
253
252
|
const e = this.filterColorRamps(), t = this._messages?.colorRampCategories ? this._messages.colorRampCategories[this.selectedCategory] : this.selectedCategory;
|
|
254
|
-
return
|
|
255
|
-
const i = this.getRampColors(a),
|
|
256
|
-
return
|
|
253
|
+
return l`<div class=${r(s.colorRampPopover)}><div class=${r(s.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories ?? "All color ramps" ?? g}>${Object.keys(k).map((a) => l`<calcite-dropdown-item data-tag=${a ?? g} .selected=${this.selectedCategory === a}>${this._messages?.colorRampCategories ? this._messages.colorRampCategories[a] : a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${r(s.rampGrid)}>${e.length === 0 && l`<div class=${r(s.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory !== "all" ? `"${this.selectedCategory}"` : ""}</div>` || ""}${e.map((a) => {
|
|
254
|
+
const i = this.getRampColors(a), o = a.name === this.selectedColorRampName;
|
|
255
|
+
return l`<div class=${`${s.rampItem} ${o ? "selected" : ""}`} title=${a.name ?? g} @click=${() => this.onRampSelect(a)}><div class=${r(s.rampName)} aria-hidden=true>${a.name}</div><div class=${r(s.rampStrips)}>${d(i, (n) => n, (n) => l`<div class=${r(s.rampStrip)} style=${L({ backgroundColor: this.rampColorToCss(n) })}></div>`)}${i.length === 0 && l`<div class=${`${s.rampStrip} ${s.rampStripFallback}`}></div>` || ""}</div></div>`;
|
|
257
256
|
})}</div><div class=${r(s.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`;
|
|
258
257
|
}
|
|
259
258
|
renderEmptyCellUI() {
|
|
260
|
-
const e = this.model.emptyCellSymbol?.color ??
|
|
261
|
-
return
|
|
259
|
+
const e = this.model.emptyCellSymbol?.color ?? v.grayColor, t = this.model.emptyCellText ?? v.nullCategory?.text ?? "";
|
|
260
|
+
return l`<div><div class=${r(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${r(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`;
|
|
262
261
|
}
|
|
263
262
|
render() {
|
|
264
|
-
return
|
|
263
|
+
return l`<div><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`;
|
|
265
264
|
}
|
|
266
265
|
}
|
|
267
|
-
|
|
266
|
+
F("arcgis-charts-config-heat-chart-popover", W);
|
|
268
267
|
export {
|
|
269
|
-
|
|
268
|
+
W as ArcgisChartsConfigHeatChartPopover
|
|
270
269
|
};
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { isEqual as r } from "lodash-es";
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
|
-
import { css as h, html as
|
|
6
|
-
import { C as
|
|
7
|
-
import { ac as d,
|
|
8
|
-
import { p as
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { css as h, html as i } from "lit";
|
|
6
|
+
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
+
import { ac as d, bx as c, aw as m, I as f } from "../../chunks/index2.js";
|
|
8
|
+
import { p as g, h as p } from "../../chunks/index5.js";
|
|
9
|
+
import { d as u } from "../../chunks/type-guards.js";
|
|
10
|
+
const C = h`: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
|
+
class y extends n {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
13
14
|
const s = e?.detail.config ?? this.model.config;
|
|
@@ -18,7 +19,7 @@ class u extends n {
|
|
|
18
19
|
this.properties = { layerFieldsInfo: 16, model: 0, chartData: 0, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5 };
|
|
19
20
|
}
|
|
20
21
|
static {
|
|
21
|
-
this.styles =
|
|
22
|
+
this.styles = C;
|
|
22
23
|
}
|
|
23
24
|
async load() {
|
|
24
25
|
this.seriesColor !== void 0 && this.seriesColorChange(this.seriesColor), await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
|
|
@@ -35,35 +36,39 @@ class u extends n {
|
|
|
35
36
|
}
|
|
36
37
|
seriesColorChange(e) {
|
|
37
38
|
this.model.colorMatch && e?.forEach((a) => {
|
|
38
|
-
|
|
39
|
+
g(a) && e?.get(0) !== void 0 && !r(this.model.binSymbol, a) && (this.model.binSymbol = a);
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
async updateFetchLayerFieldsInfo(e) {
|
|
42
43
|
const a = e ?? this.model.config;
|
|
43
44
|
let s = this.layer;
|
|
44
45
|
if (!s) {
|
|
45
|
-
const
|
|
46
|
-
|
|
46
|
+
const t = p(a) ? a.iLayer : void 0;
|
|
47
|
+
t && (s = await d(t));
|
|
48
|
+
}
|
|
49
|
+
if (s) {
|
|
50
|
+
await c(s);
|
|
51
|
+
const t = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
52
|
+
this.layerFieldsInfo = u(s) ? m({ layer: s, popupTemplateFieldInfosEnabled: t, chartType: a?.type }) : f(s, t);
|
|
47
53
|
}
|
|
48
|
-
s && (await c(s), this.layerFieldsInfo = m(s, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
49
54
|
}
|
|
50
55
|
render() {
|
|
51
56
|
let e;
|
|
52
57
|
switch (this.page) {
|
|
53
|
-
case
|
|
54
|
-
e =
|
|
58
|
+
case o.Data:
|
|
59
|
+
e = i`<arcgis-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-histogram-data>`;
|
|
55
60
|
break;
|
|
56
|
-
case
|
|
57
|
-
e =
|
|
61
|
+
case o.Axes:
|
|
62
|
+
e = i`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;
|
|
58
63
|
break;
|
|
59
|
-
case
|
|
60
|
-
e =
|
|
64
|
+
case o.Guides:
|
|
65
|
+
e = i`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;
|
|
61
66
|
break;
|
|
62
|
-
case
|
|
63
|
-
e =
|
|
67
|
+
case o.Format:
|
|
68
|
+
e = i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
|
|
64
69
|
break;
|
|
65
|
-
case
|
|
66
|
-
e =
|
|
70
|
+
case o.General:
|
|
71
|
+
e = i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;
|
|
67
72
|
break;
|
|
68
73
|
default:
|
|
69
74
|
e = "";
|
|
@@ -72,7 +77,7 @@ class u extends n {
|
|
|
72
77
|
return e;
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
|
-
l("arcgis-charts-config-histogram",
|
|
80
|
+
l("arcgis-charts-config-histogram", y);
|
|
76
81
|
export {
|
|
77
|
-
|
|
82
|
+
y as ArcgisChartsConfigHistogram
|
|
78
83
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as M } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as y } from "lit/directives/keyed.js";
|
|
4
4
|
import { debounce as f } from "lodash-es";
|
|
5
5
|
import { H as d, f as a, d as s } from "../../chunks/interfaces.js";
|
|
6
|
-
import { i as
|
|
6
|
+
import { i as I, m as C, b as S, n as L, s as V, U as D, D as T } from "../../chunks/chart-ui-utils2.js";
|
|
7
7
|
import { d as P, a as x } from "../../chunks/store.js";
|
|
8
8
|
import { u as N } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as F, html as c } from "lit";
|
|
10
10
|
import { createRef as b, ref as v } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as B, createEvent as $, renderElement as _, safeStyleMap as O, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
-
import {
|
|
12
|
+
import { r as H, G as K } from "../../chunks/index.js";
|
|
13
13
|
import { d as A } from "../../chunks/index3.js";
|
|
14
|
-
import {
|
|
15
|
-
import { r as
|
|
16
|
-
import { i as
|
|
14
|
+
import { d as U } from "../../chunks/type-guards.js";
|
|
15
|
+
import { r as z } from "../../chunks/popover-ui-utils.js";
|
|
16
|
+
import { i as R } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { g as u } from "../../chunks/chart-object-literals.js";
|
|
18
18
|
const l = {
|
|
19
19
|
label: "label",
|
|
@@ -23,12 +23,12 @@ const l = {
|
|
|
23
23
|
sectionLabel: "section-label",
|
|
24
24
|
binTextPadding: "bin-text-padding",
|
|
25
25
|
histogramStatsList: "histogram-stats-list"
|
|
26
|
-
},
|
|
27
|
-
class
|
|
26
|
+
}, j = F`.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)}calcite-list-item{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor)}.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}.text{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);width:calc(100% - 1.5rem);height:2rem;margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.row{padding-top:1rem}.bin-count-container{display:flex;flex-wrap:wrap;padding:var(--arcgis-charts-config-margin-minor)}.bin-count-container>calcite-slider{flex-grow:10;min-width:50%}.bin-count-container>calcite-input{margin-bottom:.5rem;margin-top:var(--arcgis-charts-config-margin-minor);margin-left:var(--arcgis-charts-config-margin-minor);width:5rem}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.bin-text-padding{margin-left:var(--arcgis-charts-config-margin-minor)}.histogram-stats-list{pointer-events:none;margin-bottom:var(--arcgis-charts-config-margin-minor)}`;
|
|
27
|
+
class q extends B {
|
|
28
28
|
constructor() {
|
|
29
29
|
super(...arguments), this._messages = N(), this.numericalFieldSelectionElement = b(), this.transformationSelectionElement = b(), this.histogramPopover = null, this.binColorSectionElement = b(), this.binSliderElement = b(), this.binInputElement = b(), this.popoverHeading = "", this.onBinCountChange = f(() => {
|
|
30
30
|
const e = this.binInputElement.value?.value;
|
|
31
|
-
e !== void 0 &&
|
|
31
|
+
e !== void 0 && I(e, this.binInputElement.value?.min, this.binInputElement.value?.max) ? this.binCountChange(e) : this.binInputElement.value && C({
|
|
32
32
|
inputElement: this.binInputElement.value,
|
|
33
33
|
status: D.INVALID
|
|
34
34
|
});
|
|
@@ -89,7 +89,7 @@ class j extends B {
|
|
|
89
89
|
this.properties = { binColorSelected: 16, selectedBinColorSymbol: 16, selectedOverlaySymbol: 16, selectedNumericalField: 16, selectedTransformationType: 16, selectedOverlaySymbolType: 1, messageOverrides: 0, model: 0, meanValue: 9, medianValue: 9, standardDevValue: 9, minValue: 9, maxValue: 9, sumValue: 9, nullsValue: 9, countValue: 9, layerFieldsInfo: 0, open: 5 };
|
|
90
90
|
}
|
|
91
91
|
static {
|
|
92
|
-
this.styles =
|
|
92
|
+
this.styles = j;
|
|
93
93
|
}
|
|
94
94
|
get selectedBinColorSymbol() {
|
|
95
95
|
return this._selectedBinColorSymbol;
|
|
@@ -110,7 +110,7 @@ class j extends B {
|
|
|
110
110
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
111
111
|
}
|
|
112
112
|
removeHistogramDataPopover() {
|
|
113
|
-
this.histogramPopover !== null && (this.histogramPopover =
|
|
113
|
+
this.histogramPopover !== null && (this.histogramPopover = z(this.histogramPopover));
|
|
114
114
|
}
|
|
115
115
|
getDataTransformationLabel() {
|
|
116
116
|
let e;
|
|
@@ -164,7 +164,7 @@ class j extends B {
|
|
|
164
164
|
t = void 0;
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return L(t, T);
|
|
168
168
|
}
|
|
169
169
|
binCountChange(e) {
|
|
170
170
|
const t = Number.parseInt(e);
|
|
@@ -174,7 +174,7 @@ class j extends B {
|
|
|
174
174
|
}));
|
|
175
175
|
}
|
|
176
176
|
onColorElementSelect(e, t, i) {
|
|
177
|
-
this.binColorSelected = i === void 0, e.type ===
|
|
177
|
+
this.binColorSelected = i === void 0, e.type === R.SFS ? (this.selectedOverlaySymbol = void 0, this.selectedBinColorSymbol = e, this.contentKind = d.fillSymbol) : (this.selectedBinColorSymbol = void 0, this.selectedOverlaySymbol = e, this.overlaySectionElement = i, this.contentKind = d.lineSymbol), this.popoverHeading = t, this.setupPopover();
|
|
178
178
|
}
|
|
179
179
|
onNumericFieldSelect(e) {
|
|
180
180
|
e.stopImmediatePropagation(), this.selectedNumericalField = this.model.numericField, this.contentKind = d.numericFields, this.setupPopover();
|
|
@@ -228,14 +228,14 @@ class j extends B {
|
|
|
228
228
|
this.histogramPopover = _(c`<arcgis-charts-config-histogram-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${e} .placement=${m} .selectedNumericField=${r} .selectedTransformationType=${n} .selectedBinColor=${h} .selectedOverlaySymbol=${g} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigHistogramPopoverChange=${this.updateProps} @arcgisChartsConfigHistogramPopoverSymbolChange=${this.updateSymbolProps}></arcgis-charts-config-histogram-popover>`), !document.body.contains(this.histogramPopover) && this.histogramPopover !== null && document.body.appendChild(this.histogramPopover);
|
|
229
229
|
}
|
|
230
230
|
renderFieldSelect() {
|
|
231
|
-
return c`<arcgis-charts-config-field-
|
|
231
|
+
return c`<arcgis-charts-config-field-picker .label=${A(this.layerFieldsInfo, this.model.numericField)} @click=${this.onNumericFieldSelect} ${v(this.numericalFieldSelectionElement)}></arcgis-charts-config-field-picker>`;
|
|
232
232
|
}
|
|
233
233
|
renderDataTransformationType() {
|
|
234
|
-
return c`<arcgis-charts-config-field-
|
|
234
|
+
return c`<arcgis-charts-config-field-picker .label=${this.getDataTransformationLabel()} @click=${this.onTransformationSelect} ${v(this.transformationSelectionElement)}></arcgis-charts-config-field-picker>`;
|
|
235
235
|
}
|
|
236
236
|
renderColorListItem(e) {
|
|
237
|
-
const { textLabel: t, key: i, value: m, selected: n, ref: r, colorAction: h, color: g } = e, [p, E, w,
|
|
238
|
-
return y(i, c`<calcite-list-item .label=${t ?? ""} .value=${m} .selected=${n} ${v(r ?? void 0)}><calcite-action text=color slot=actions-end appearance=transparent @click=${h}><calcite-icon icon=line-solid style=${O(p !== void 0 ? { color: `rgba(${p},${E},${w},${(
|
|
237
|
+
const { textLabel: t, key: i, value: m, selected: n, ref: r, colorAction: h, color: g } = e, [p, E, w, k] = [...g ?? H()];
|
|
238
|
+
return y(i, c`<calcite-list-item .label=${t ?? ""} .value=${m} .selected=${n} ${v(r ?? void 0)}><calcite-action text=color slot=actions-end appearance=transparent @click=${h}><calcite-icon icon=line-solid style=${O(p !== void 0 ? { color: `rgba(${p},${E},${w},${(k ?? 0) / 255})` } : {})}></calcite-icon></calcite-action></calcite-list-item>`);
|
|
239
239
|
}
|
|
240
240
|
renderBinColorElement() {
|
|
241
241
|
const [e, t, i, m] = [...this.model.binSymbol?.color ?? K(0)];
|
|
@@ -317,7 +317,7 @@ class j extends B {
|
|
|
317
317
|
return c`<div class=${o(l.sectionLabel)}>${this._messages.variables}</div><calcite-label class=${o(l.label)}>${this._messages.number}${e}</calcite-label><calcite-label class=${o(l.label)}>${this._messages.withTransformation}${t}</calcite-label><div class=${o(l.sectionLabel)}>${this._messages.bins}</div><p class=${o(l.binTextPadding)}>${this._messages.numberOfBins}</p>${this.renderBinsSection()}${this.renderBinColorElement()}<div class=${o(l.sectionLabel)}>${this._messages.overlays}</div>${this.renderOverlayList()}${this.renderShowDataLabels()}<div class=${o(l.sectionLabel)}>${this._messages.statistics}</div>${this.renderStats()}`;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
M("arcgis-charts-config-histogram-data", q);
|
|
321
321
|
export {
|
|
322
|
-
|
|
322
|
+
q as ArcgisChartsConfigHistogramData
|
|
323
323
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../arcgis-charts-config-histogram-popover/index.js";
|
|
2
|
-
import "../arcgis-charts-config-field-
|
|
2
|
+
import "../arcgis-charts-config-field-picker/index.js";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-action";
|
|
5
5
|
import "@esri/calcite-components/components/calcite-icon";
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as v, html as t } from "lit";
|
|
4
4
|
import { keyed as c } from "lit/directives/keyed.js";
|
|
5
|
-
import { H as
|
|
6
|
-
import { b as
|
|
5
|
+
import { H as i } from "../../chunks/interfaces.js";
|
|
6
|
+
import { b as y, o as C } from "../../chunks/chart-ui-utils2.js";
|
|
7
7
|
import { u } from "../../chunks/useT9n.js";
|
|
8
8
|
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
9
|
-
import { LitElement as b, createEvent as p, safeClassMap as
|
|
9
|
+
import { LitElement as b, createEvent as p, safeClassMap as o } from "@arcgis/lumina";
|
|
10
10
|
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import { g as
|
|
11
|
+
import { g as s } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { d as S } from "../../chunks/index3.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
const
|
|
14
|
+
import { bk as k } from "../../chunks/index2.js";
|
|
15
|
+
import { aC as T } from "../../chunks/index.js";
|
|
16
|
+
const l = {
|
|
17
17
|
symbolPropertyPopover: "symbol-property-popover",
|
|
18
18
|
colorPicker: "color-picker",
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
20
19
|
header: "header",
|
|
21
|
-
|
|
20
|
+
popoverPickList: "popover-pick-list",
|
|
22
21
|
fieldSelectPanel: "field-select-panel",
|
|
23
22
|
transformationPanel: "transformation-panel"
|
|
24
|
-
},
|
|
25
|
-
class
|
|
23
|
+
}, w = v`.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)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem;padding:0 1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`;
|
|
24
|
+
class x extends b {
|
|
26
25
|
constructor() {
|
|
27
26
|
super(...arguments), this._messages = u(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
28
27
|
}
|
|
@@ -30,7 +29,7 @@ class F extends b {
|
|
|
30
29
|
this.properties = { messageOverrides: 0, layerFieldsInfo: 0, headingTitle: 1, selectedNumericField: 1, selectedTransformationType: 1, selectedOverlaySymbol: 0, selectedBinColor: 0, referenceElement: 0, contentKind: 1, placement: 1, open: 5, selectedOverlaySymbolType: 1 };
|
|
31
30
|
}
|
|
32
31
|
static {
|
|
33
|
-
this.styles =
|
|
32
|
+
this.styles = w;
|
|
34
33
|
}
|
|
35
34
|
async reposition() {
|
|
36
35
|
await this.popoverElement.value?.reposition();
|
|
@@ -38,27 +37,27 @@ class F extends b {
|
|
|
38
37
|
updated() {
|
|
39
38
|
setTimeout(() => {
|
|
40
39
|
this.picklist.value?.setFocus();
|
|
41
|
-
},
|
|
40
|
+
}, y.PopoverTimer), P(this.popoverElement.value, this.open);
|
|
42
41
|
}
|
|
43
42
|
buildPickListItems(e) {
|
|
44
43
|
const n = [];
|
|
45
|
-
if (e ===
|
|
44
|
+
if (e === i.numericFields)
|
|
46
45
|
for (let r = 0; r < this.layerFieldsInfo?.length; r += 1) {
|
|
47
46
|
const a = this.layerFieldsInfo[r];
|
|
48
|
-
k(a) && n.push(c(a.name,
|
|
47
|
+
k(a) && n.push(c(a.name, t`<calcite-list-item .label=${S(this.layerFieldsInfo, a.name)} .value=${a.name} .selected=${this.selectedNumericField === a.name}></calcite-list-item>`));
|
|
49
48
|
}
|
|
50
49
|
else {
|
|
51
50
|
const r = [
|
|
52
|
-
c(
|
|
53
|
-
c(
|
|
54
|
-
c(
|
|
51
|
+
c(s.None, t`<calcite-list-item .label=${this._messages.none} .value=${s.None} .selected=${this.selectedTransformationType === s.None}></calcite-list-item>`),
|
|
52
|
+
c(s.Log, t`<calcite-list-item .label=${this._messages.log} .value=${s.Log} .selected=${this.selectedTransformationType === s.Log}></calcite-list-item>`),
|
|
53
|
+
c(s.Sqrt, t`<calcite-list-item .label=${this._messages.sqRt} .value=${s.Sqrt} .selected=${this.selectedTransformationType === s.Sqrt}></calcite-list-item>`)
|
|
55
54
|
];
|
|
56
55
|
n.push(...r);
|
|
57
56
|
}
|
|
58
57
|
return n;
|
|
59
58
|
}
|
|
60
59
|
getPopoverClass() {
|
|
61
|
-
return this.contentKind ===
|
|
60
|
+
return this.contentKind === i.fillSymbol || this.contentKind === i.lineSymbol ? l.symbolPropertyPopover : "";
|
|
62
61
|
}
|
|
63
62
|
closePopover() {
|
|
64
63
|
(this.open || this.popoverElement.value?.open === !1) && (this.open = !1, this.arcgisChartsConfigPopoverClose.emit());
|
|
@@ -67,7 +66,7 @@ class F extends b {
|
|
|
67
66
|
this.arcgisChartsConfigHistogramPopoverSymbolChange.emit(e.detail);
|
|
68
67
|
}
|
|
69
68
|
fillColorChange(e) {
|
|
70
|
-
const n = e.detail, [r, a, d] = n, g =
|
|
69
|
+
const n = e.detail, [r, a, d] = n, g = T * 255;
|
|
71
70
|
this.arcgisChartsConfigHistogramPopoverSymbolChange.emit({
|
|
72
71
|
type: $.SFS,
|
|
73
72
|
color: [r, a, d, g]
|
|
@@ -80,38 +79,38 @@ class F extends b {
|
|
|
80
79
|
}), this.open = !1);
|
|
81
80
|
}
|
|
82
81
|
renderFillColor() {
|
|
83
|
-
return
|
|
82
|
+
return t`<arcgis-charts-config-color-style class=${o(l.colorPicker)} .header=${this.headingTitle ?? this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`;
|
|
84
83
|
}
|
|
85
84
|
renderOverlayStyle() {
|
|
86
|
-
return
|
|
85
|
+
return t`<arcgis-charts-config-line-style class=${o(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle ?? this._messages.lineStyle} .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`;
|
|
87
86
|
}
|
|
88
87
|
renderFieldSelect() {
|
|
89
|
-
const e = this.buildPickListItems(
|
|
90
|
-
return
|
|
88
|
+
const e = this.buildPickListItems(i.numericFields);
|
|
89
|
+
return t`<calcite-panel class=${o(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${o(l.popoverPickList)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`;
|
|
91
90
|
}
|
|
92
91
|
renderTransformationSelect() {
|
|
93
|
-
const e = this.buildPickListItems(
|
|
94
|
-
return
|
|
92
|
+
const e = this.buildPickListItems(i.transformation);
|
|
93
|
+
return t`<calcite-panel class=${o(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${o(l.popoverPickList)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`;
|
|
95
94
|
}
|
|
96
95
|
render() {
|
|
97
|
-
return
|
|
96
|
+
return t`<div><calcite-popover class=${o(this.getPopoverClass())} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${C(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`;
|
|
98
97
|
}
|
|
99
98
|
renderContentType() {
|
|
100
99
|
switch (this.contentKind) {
|
|
101
|
-
case
|
|
100
|
+
case i.fillSymbol:
|
|
102
101
|
return this.renderFillColor();
|
|
103
|
-
case
|
|
102
|
+
case i.lineSymbol:
|
|
104
103
|
return this.renderOverlayStyle();
|
|
105
|
-
case
|
|
104
|
+
case i.numericFields:
|
|
106
105
|
return this.renderFieldSelect();
|
|
107
|
-
case
|
|
106
|
+
case i.transformation:
|
|
108
107
|
return this.renderTransformationSelect();
|
|
109
108
|
default:
|
|
110
109
|
return;
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
|
-
f("arcgis-charts-config-histogram-popover",
|
|
113
|
+
f("arcgis-charts-config-histogram-popover", x);
|
|
115
114
|
export {
|
|
116
|
-
|
|
115
|
+
x as ArcgisChartsConfigHistogramPopover
|
|
117
116
|
};
|