@arcgis/charts-components 6.0.0-next.4 → 6.0.0-next.41
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/2CMGEGOB.js +2 -0
- package/dist/cdn/{WKF53DYD.js → 2JY4BULO.js} +1 -1
- package/dist/cdn/2NLUPVHC.js +2 -0
- package/dist/cdn/{OYUTQX4U.js → 2POSDCZH.js} +1 -1
- package/dist/cdn/2V6RDUQ4.js +2 -0
- package/dist/cdn/2XLWTT5J.js +2 -0
- package/dist/cdn/{FKES55PK.js → 35MV6UPM.js} +1 -1
- package/dist/cdn/{H5VCT3XP.js → 36MF6B63.js} +1 -1
- package/dist/cdn/3SON5ZPC.js +2 -0
- package/dist/cdn/3T4EFKYY.js +2 -0
- package/dist/cdn/5HGXAW7L.js +2 -0
- package/dist/cdn/632TROA6.js +2 -0
- package/dist/cdn/6FZRG4EO.js +2 -0
- package/dist/cdn/77J6TCGN.js +2 -0
- package/dist/cdn/{LPLMRI3E.js → 7BGIK4OA.js} +1 -1
- package/dist/cdn/7KZBWHVH.js +2 -0
- package/dist/cdn/ABAVANHR.js +2 -0
- package/dist/cdn/ACTB6ZBK.js +2 -0
- package/dist/cdn/AIJWEEVP.js +2 -0
- package/dist/cdn/AYTSMVNG.js +2 -0
- package/dist/cdn/B4M6AGX7.js +2 -0
- package/dist/cdn/BIBYAKIS.js +4 -0
- package/dist/cdn/BUQ5MOP3.js +2 -0
- package/dist/cdn/{PQ3XCNCP.js → CBVIPAP3.js} +1 -1
- package/dist/cdn/{CLCHZMZ5.js → CMQLHBQN.js} +1 -1
- package/dist/cdn/D3DZ7A7U.js +2 -0
- package/dist/cdn/{OTV3YYDU.js → DCUEO36P.js} +1 -1
- package/dist/cdn/{OZSHGMU6.js → DH3CD2VT.js} +1 -1
- package/dist/cdn/DPWHTNBE.js +2 -0
- package/dist/cdn/DRSKZGA5.js +2 -0
- package/dist/cdn/EMAAJMBF.js +2 -0
- package/dist/cdn/EOHEGVDJ.js +2 -0
- package/dist/cdn/EYPUS3OS.js +2 -0
- package/dist/cdn/{FM6F6ZYW.js → FKWL3PHQ.js} +1 -1
- package/dist/cdn/FQTWIBKD.js +2 -0
- package/dist/cdn/{732AMNPK.js → G7AMXOVC.js} +1 -1
- package/dist/cdn/GH6LRRWO.js +2 -0
- package/dist/cdn/GLCI3ZBA.js +2 -0
- package/dist/cdn/GSMBQFDI.js +2 -0
- package/dist/cdn/GVAS6PT3.js +2 -0
- package/dist/cdn/{CUMXC4O4.js → H6DQWWRK.js} +1 -1
- package/dist/cdn/HADWVYUW.js +2 -0
- package/dist/cdn/HTLGMV4S.js +2 -0
- package/dist/cdn/I7MZOOIY.js +2 -0
- package/dist/cdn/I7YQ3JCN.js +2 -0
- package/dist/cdn/{V5Z75IQI.js → IEFTCPY3.js} +5 -5
- package/dist/cdn/INDJVCWV.js +2 -0
- package/dist/cdn/{33LWKOPD.js → IWIBZTFJ.js} +1 -1
- package/dist/cdn/J423NIGD.js +4 -0
- package/dist/cdn/J6SK2Z5T.js +2 -0
- package/dist/cdn/{MXTS44AG.js → J6XOSXEE.js} +1 -1
- package/dist/cdn/{GE7CLC6K.js → JOVBNTEF.js} +2 -2
- package/dist/cdn/{FNXREQOE.js → KH3XGJ6Z.js} +1 -1
- package/dist/cdn/KIFYEOUU.js +2 -0
- package/dist/cdn/{27C6PCQ2.js → KISYJDGT.js} +1 -1
- package/dist/cdn/KPX7NHM3.js +2 -0
- package/dist/cdn/LSPD3MG7.js +2 -0
- package/dist/cdn/M3N747C7.js +2 -0
- package/dist/cdn/M5UN3MYY.js +2 -0
- package/dist/cdn/{PIGINE4M.js → M7MSRLEE.js} +1 -1
- package/dist/cdn/ME7EHCPR.js +2 -0
- package/dist/cdn/{QQFMQAJ3.js → MUDUWLYM.js} +1 -1
- package/dist/cdn/{2WQNU554.js → N3IQELQL.js} +1 -1
- package/dist/cdn/NKO2OO5N.js +2 -0
- package/dist/cdn/{6RGTAMGU.js → NWG4Q36V.js} +1 -1
- package/dist/cdn/O5MLVZLK.js +2 -0
- package/dist/cdn/OLCWI4XN.js +2 -0
- package/dist/cdn/{INYMF2BQ.js → PDBNCJTF.js} +1 -1
- package/dist/cdn/PER6C4U2.js +2 -0
- package/dist/cdn/PLEMHP2B.js +2 -0
- package/dist/cdn/PSOSE6LU.js +2 -0
- package/dist/cdn/{563H5HEV.js → Q63KS3AS.js} +1 -1
- package/dist/cdn/QBPDUGAU.js +2 -0
- package/dist/cdn/QD733XNJ.js +2 -0
- package/dist/cdn/QVOSII2D.js +2 -0
- package/dist/cdn/R3UAKAS4.js +2 -0
- package/dist/cdn/RGWPVW43.js +2 -0
- package/dist/cdn/{HMZRDWG2.js → RTKJNT6E.js} +27 -27
- package/dist/cdn/S22VFPC7.js +2 -0
- package/dist/cdn/S6G2OZSX.js +2 -0
- package/dist/cdn/SQHNAWY2.js +2 -0
- package/dist/cdn/SU7RJZNV.js +2 -0
- package/dist/cdn/T2GIGPPW.js +2 -0
- package/dist/cdn/TKKV7KPJ.js +2 -0
- package/dist/cdn/TMXVA27K.js +2 -0
- package/dist/cdn/{S2BGEXZV.js → UK2UPGTC.js} +1 -1
- package/dist/cdn/UNOJKM7H.js +2 -0
- package/dist/cdn/UNRUZFCG.js +2 -0
- package/dist/cdn/UO6RHQGP.js +2 -0
- package/dist/cdn/UQHIV37J.js +2 -0
- package/dist/cdn/VEVROTSG.js +2 -0
- package/dist/cdn/VIID7SQW.js +2 -0
- package/dist/cdn/VKHE2T45.js +2 -0
- package/dist/cdn/VM2DWR75.js +2 -0
- package/dist/cdn/VRB6ZKPF.js +2 -0
- package/dist/cdn/VWX73OUH.js +2 -0
- package/dist/cdn/{KK445MLC.js → W7TD4Z24.js} +1 -1
- package/dist/cdn/WBU6UBT7.js +2 -0
- package/dist/cdn/WBVI4QWE.js +2 -0
- package/dist/cdn/WIT3P7NV.js +2 -0
- package/dist/cdn/WKDTX36G.js +2 -0
- package/dist/cdn/WORMNHOD.js +2 -0
- package/dist/cdn/XE5JJDCZ.js +2 -0
- package/dist/cdn/XTWKVYX3.js +2 -0
- package/dist/cdn/YUUYX57N.js +2 -0
- package/dist/cdn/{VSKK65CP.js → ZYZASO4B.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +7 -16
- package/dist/chunks/action-bar-utils.js +53 -55
- package/dist/chunks/axis-lines-symbol.js +6 -6
- package/dist/chunks/bar-chart-model.js +7 -9
- package/dist/chunks/box-plot-data.js +172 -171
- package/dist/chunks/box-plot-model.js +41 -39
- package/dist/chunks/chart-model.js +18 -20
- package/dist/chunks/chart-ui-utils.js +61 -63
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +5 -5
- package/dist/chunks/combo-bar-line-chart-model.js +15 -16
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +1 -1
- package/dist/chunks/data.js +51 -53
- package/dist/chunks/gauge-model.js +66 -66
- package/dist/chunks/generate-x-axis-title.js +17 -17
- package/dist/chunks/heat-chart-model.js +20 -21
- package/dist/chunks/histogram-data.js +41 -42
- package/dist/chunks/histogram-model.js +5 -5
- package/dist/chunks/index.js +5432 -4273
- package/dist/chunks/index2.js +1165 -871
- package/dist/chunks/index3.js +10987 -1173
- package/dist/chunks/index4.js +54 -11086
- package/dist/chunks/line-chart-model.js +19 -20
- package/dist/chunks/model-setter.js +6 -6
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +25 -25
- package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
- package/dist/chunks/pie-chart-data.js +25 -27
- package/dist/chunks/pie-chart-model.js +166 -165
- package/dist/chunks/radar-chart-model.js +7 -8
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +5 -41
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +6 -6
- package/dist/chunks/scatterplot-model.js +75 -76
- package/dist/chunks/serial-chart-data.js +512 -517
- package/dist/chunks/serial-chart-model.js +64 -61
- package/dist/chunks/series-length.js +14 -14
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +109 -55
- package/dist/chunks/utils.js +146 -212
- package/dist/chunks/web-component-utils.js +70 -71
- package/dist/chunks/x-bounds.js +32 -33
- package/dist/components/arcgis-chart/customElement.d.ts +79 -72
- package/dist/components/arcgis-chart/customElement.js +8482 -8273
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +1 -176
- package/dist/components/arcgis-charts-action-bar/customElement.js +82 -79
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +63 -58
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +51 -45
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +115 -113
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +61 -54
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +186 -185
- package/dist/components/arcgis-charts-config-font-style/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-format/customElement.js +96 -95
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +51 -50
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +13 -14
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +32 -33
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -3
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +35 -32
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +8 -9
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +21 -22
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +7 -8
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +48 -43
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +38 -34
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +21 -22
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +9 -10
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +20 -24
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +81 -81
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +21 -25
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +20 -21
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -4
- 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 +1 -1
- package/dist/index.js +400 -411
- package/dist/interfaces.d.ts +1 -15
- package/dist/json-schema/index.d.ts +38 -68
- package/dist/loader.js +7 -7
- package/dist/model/box-plot-model/box-plot-model.d.ts +6 -2
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +1 -1
- package/dist/model/mixins/model-with-multi-axes.d.ts +53 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +6 -2
- package/dist/model/properties/layer.d.ts +2 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +6 -2
- package/dist/spec/rest-js-object-literals.d.ts +0 -66
- package/dist/spec/rest-js-types.d.ts +1 -5
- package/dist/spec/web-chart.d.ts +2 -2
- package/dist/types/lumina.d.ts +4 -2
- package/dist/types/preact.d.ts +4 -2
- package/dist/types/react.d.ts +4 -2
- package/dist/types/stencil.d.ts +4 -2
- package/dist/utils/chart-config/converter/index.js +97 -99
- package/dist/utils/chart-config/utils/index.d.ts +10 -3
- package/dist/utils/components/interfaces.d.ts +7 -0
- package/dist/utils/data/categorical-data/index.d.ts +1 -0
- package/dist/utils/layer/index.d.ts +6 -6
- package/dist/utils/layer/interfaces.d.ts +13 -3
- package/dist/utils/layer/query-parser/index.d.ts +2 -2
- package/dist/utils/layer/utils/index.d.ts +6 -18
- package/dist/utils/misc/index.d.ts +4 -4
- package/dist/utils/types/index.d.ts +0 -35
- package/package.json +8 -8
- package/dist/cdn/23NH4HLE.js +0 -2
- package/dist/cdn/2DRKIHTI.js +0 -2
- package/dist/cdn/2E3WHSEW.js +0 -2
- package/dist/cdn/2RG5JCBW.js +0 -3
- package/dist/cdn/2X2QOEKX.js +0 -2
- package/dist/cdn/37WXQO5B.js +0 -2
- package/dist/cdn/3INTJJ4X.js +0 -2
- package/dist/cdn/3RJNZA24.js +0 -2
- package/dist/cdn/4CU5D5WQ.js +0 -2
- package/dist/cdn/4WQUPC2P.js +0 -2
- package/dist/cdn/5DAVFUDX.js +0 -2
- package/dist/cdn/5VCTFSTZ.js +0 -2
- package/dist/cdn/5XGX5QH2.js +0 -2
- package/dist/cdn/6XH6ZRHO.js +0 -2
- package/dist/cdn/7WD2VKG4.js +0 -2
- package/dist/cdn/7YN565O4.js +0 -2
- package/dist/cdn/A2BFOCSN.js +0 -2
- package/dist/cdn/A5TI5TEO.js +0 -2
- package/dist/cdn/AHB4IS7P.js +0 -2
- package/dist/cdn/B6ADEFC7.js +0 -2
- package/dist/cdn/B6APNE72.js +0 -3
- package/dist/cdn/BDIRQUQE.js +0 -2
- package/dist/cdn/BWZA3447.js +0 -2
- package/dist/cdn/BZTSUXUT.js +0 -2
- package/dist/cdn/CFACTMRG.js +0 -2
- package/dist/cdn/D2LNPCIA.js +0 -2
- package/dist/cdn/D6WQTOUC.js +0 -2
- package/dist/cdn/DTSX7SEI.js +0 -2
- package/dist/cdn/EPFEFHM2.js +0 -2
- package/dist/cdn/EW2P4QSN.js +0 -2
- package/dist/cdn/GDJDA5MG.js +0 -2
- package/dist/cdn/GEPIPU4G.js +0 -2
- package/dist/cdn/GSCC3FON.js +0 -2
- package/dist/cdn/GXYGXB4U.js +0 -2
- package/dist/cdn/IEOIKLLK.js +0 -2
- package/dist/cdn/ISSUAEJS.js +0 -2
- package/dist/cdn/KJNBURYA.js +0 -2
- package/dist/cdn/L3AKSDIB.js +0 -2
- package/dist/cdn/L5MTHGFZ.js +0 -2
- package/dist/cdn/LHLPK6TU.js +0 -2
- package/dist/cdn/LXFY54NF.js +0 -2
- package/dist/cdn/MJUCIYQN.js +0 -2
- package/dist/cdn/NGBBNBA7.js +0 -2
- package/dist/cdn/NIZC75X3.js +0 -2
- package/dist/cdn/OBKDR3MU.js +0 -2
- package/dist/cdn/OQKL344Q.js +0 -2
- package/dist/cdn/OZSOICXE.js +0 -2
- package/dist/cdn/PBQRZBQM.js +0 -2
- package/dist/cdn/PT66VVXN.js +0 -2
- package/dist/cdn/QOENPUSD.js +0 -2
- package/dist/cdn/QPVBVDRP.js +0 -2
- package/dist/cdn/RGMPFNUN.js +0 -2
- package/dist/cdn/RGSJ3JFI.js +0 -2
- package/dist/cdn/RVHNFMTN.js +0 -2
- package/dist/cdn/RVQPEB4W.js +0 -2
- package/dist/cdn/RXTO6RE2.js +0 -2
- package/dist/cdn/SCEFJRON.js +0 -2
- package/dist/cdn/SEILP6QP.js +0 -2
- package/dist/cdn/SKI5Z6UH.js +0 -2
- package/dist/cdn/SSEWUPML.js +0 -2
- package/dist/cdn/TCE6PLHN.js +0 -2
- package/dist/cdn/TOCU6UKM.js +0 -2
- package/dist/cdn/TSASF4ZC.js +0 -2
- package/dist/cdn/UDAJILEU.js +0 -2
- package/dist/cdn/UZOYADSB.js +0 -2
- package/dist/cdn/W2PTHYOT.js +0 -2
- package/dist/cdn/W53DMMGZ.js +0 -2
- package/dist/cdn/WAQJ7V62.js +0 -2
- package/dist/cdn/WEPXOYBS.js +0 -2
- package/dist/cdn/WLPUBXN7.js +0 -2
- package/dist/cdn/XPCXTKEY.js +0 -2
- package/dist/cdn/Y2S7EWZR.js +0 -2
- package/dist/cdn/YF6ML4P6.js +0 -4
- package/dist/cdn/YGLBPPXP.js +0 -2
- package/dist/cdn/YWUNLBCQ.js +0 -2
- package/dist/cdn/YYTAWATK.js +0 -2
- package/dist/cdn/ZDQWMMOA.js +0 -2
- package/dist/cdn/ZFHMGE36.js +0 -2
- package/dist/cdn/ZGNJFT7B.js +0 -2
- package/dist/cdn/ZMVIOIBB.js +0 -2
- package/dist/cdn/ZTHSDPEH.js +0 -2
- package/dist/chunks/index5.js +0 -69
- package/dist/chunks/type-guards2.js +0 -113
- package/dist/chunks/utils2.js +0 -63
- /package/dist/cdn/{XFEWDUTX.js → 2PUVZIJ6.js} +0 -0
- /package/dist/cdn/{UHSL7Y3B.js → 33NEGHM6.js} +0 -0
- /package/dist/cdn/{6FW2SXLC.js → 55OFHBXV.js} +0 -0
- /package/dist/cdn/{SMHUUBEU.js → 5OSVKP4N.js} +0 -0
- /package/dist/cdn/{VITUV4HV.js → 5QLZ66AU.js} +0 -0
- /package/dist/cdn/{UQRD2CTK.js → 5SOADBYD.js} +0 -0
- /package/dist/cdn/{55DRYT5X.js → 5ZZZKI7V.js} +0 -0
- /package/dist/cdn/{5ANJA54O.js → 6IIBIZJH.js} +0 -0
- /package/dist/cdn/{QLBO3URO.js → 6QY2OFUO.js} +0 -0
- /package/dist/cdn/{UITA7CSN.js → 7AWJIBMG.js} +0 -0
- /package/dist/cdn/{373UZR4I.js → 7N2LSD5J.js} +0 -0
- /package/dist/cdn/{SCS4MWFN.js → A6DV5ILW.js} +0 -0
- /package/dist/cdn/{VT3NOR5A.js → BGHJMVNV.js} +0 -0
- /package/dist/cdn/{L4KDCWA7.js → BGVIOGAX.js} +0 -0
- /package/dist/cdn/{Z2IHEWWP.js → CYZPIC2B.js} +0 -0
- /package/dist/cdn/{AVRIN2FL.js → CZKZMSFJ.js} +0 -0
- /package/dist/cdn/{WMGJN3JL.js → D66GTKJ7.js} +0 -0
- /package/dist/cdn/{XR7RCGIT.js → DJGQM3EK.js} +0 -0
- /package/dist/cdn/{PQESGESY.js → FOHR4IFG.js} +0 -0
- /package/dist/cdn/{3DDSV3IF.js → GOVIUHKT.js} +0 -0
- /package/dist/cdn/{KE7XE22Z.js → H44RQIWN.js} +0 -0
- /package/dist/cdn/{W7VPVF72.js → HJUHYEJT.js} +0 -0
- /package/dist/cdn/{57RWTLRG.js → HL6ANDJH.js} +0 -0
- /package/dist/cdn/{HUU3QFFC.js → IDVYAUPY.js} +0 -0
- /package/dist/cdn/{XIE5EUIH.js → IQSNWDU6.js} +0 -0
- /package/dist/cdn/{K43DVQFC.js → JE32QM44.js} +0 -0
- /package/dist/cdn/{52PHJCYM.js → JETTF7E2.js} +0 -0
- /package/dist/cdn/{L26HYK34.js → JSOFN65T.js} +0 -0
- /package/dist/cdn/{LE3B3ATZ.js → KMZIRJIR.js} +0 -0
- /package/dist/cdn/{XUSFQDK4.js → KQ36C2RK.js} +0 -0
- /package/dist/cdn/{O6GVF76X.js → KRRYFLG4.js} +0 -0
- /package/dist/cdn/{4MSDOPVE.js → M4AD4UJU.js} +0 -0
- /package/dist/cdn/{2BPLDZAJ.js → NUH2GAPZ.js} +0 -0
- /package/dist/cdn/{Q4H5YVTW.js → OWEVDN6C.js} +0 -0
- /package/dist/cdn/{GCUOASRZ.js → QCFAV626.js} +0 -0
- /package/dist/cdn/{R4PFJLD2.js → QMBHZ5JE.js} +0 -0
- /package/dist/cdn/{J5VMBGYI.js → SWHSL245.js} +0 -0
- /package/dist/cdn/{C7VQM4TH.js → T7LKXFIZ.js} +0 -0
- /package/dist/cdn/{KCP6AJV7.js → XQTLPFTW.js} +0 -0
- /package/dist/cdn/{3VZK52LO.js → Z5DYKSTK.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as R } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
|
-
import { cloneDeep as
|
|
5
|
-
import { m as
|
|
6
|
-
import { d as
|
|
4
|
+
import { cloneDeep as w } from "es-toolkit/compat";
|
|
5
|
+
import { m as y, U as $, a as N, g as V, k as P } from "../../chunks/chart-ui-utils.js";
|
|
6
|
+
import { d as k } from "../../chunks/default.js";
|
|
7
7
|
import { g as Z } from "../../chunks/resource.js";
|
|
8
8
|
import { u as q } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as z, html as d } from "lit";
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as O, createEvent as U, renderElement as
|
|
12
|
-
import { l as W, q as Y, r as j } from "../../chunks/type-
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
11
|
+
import { LitElement as O, createEvent as U, renderElement as F, safeStyleMap as M, safeClassMap as n } from "@arcgis/lumina";
|
|
12
|
+
import { l as W, q as Y, r as j } from "../../chunks/type-guards.js";
|
|
13
|
+
import { cj as v, b as g, bK as H, ck as A, cl as L, i as K } from "../../chunks/index.js";
|
|
14
|
+
import { t as J } from "../../chunks/index2.js";
|
|
15
15
|
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
16
|
-
import { b as
|
|
17
|
-
import { a as
|
|
18
|
-
import { G as
|
|
16
|
+
import { b as p } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
+
import { a as ee } from "../../chunks/chart-object-literals.js";
|
|
18
|
+
import { G as S } from "../../chunks/common.js";
|
|
19
19
|
const o = {
|
|
20
20
|
row: "row",
|
|
21
21
|
column: "column",
|
|
22
22
|
colorPicker: "color-picker"
|
|
23
|
-
},
|
|
24
|
-
class
|
|
23
|
+
}, te = z`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`;
|
|
24
|
+
class ie extends O {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this._messages = q(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
|
|
27
27
|
const t = e.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
28
|
-
if (
|
|
29
|
-
const l =
|
|
28
|
+
if (v(i, a) === p.SLS) {
|
|
29
|
+
const l = w(k.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
30
30
|
...l,
|
|
31
|
-
...
|
|
31
|
+
...g(s) ? s : {},
|
|
32
32
|
color: t
|
|
33
33
|
};
|
|
34
34
|
this.lineStyleChange({ detail: r });
|
|
@@ -36,11 +36,11 @@ class se extends O {
|
|
|
36
36
|
this.setColor(t);
|
|
37
37
|
}, this.symbolChange = (e) => {
|
|
38
38
|
const t = e?.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
39
|
-
if (
|
|
40
|
-
const l =
|
|
39
|
+
if (v(i, a) === p.SLS) {
|
|
40
|
+
const l = w(k.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
41
41
|
...l,
|
|
42
|
-
...
|
|
43
|
-
...
|
|
42
|
+
...g(s) ? s : {},
|
|
43
|
+
...g(t) ? t : {}
|
|
44
44
|
};
|
|
45
45
|
this.lineStyleChange({ detail: r });
|
|
46
46
|
} else t?.color !== void 0 && this.setColor(t.color);
|
|
@@ -52,10 +52,10 @@ class se extends O {
|
|
|
52
52
|
this.properties = { guidePopover: 16, isGuideStartInvalid: 16, isGuideEndInvalid: 16, messageOverrides: 0, model: 0, timeZone: 1, calculatedMinMaxBounds: 0, index: 9, orientation: 1, latestGuidePosition: 9 };
|
|
53
53
|
}
|
|
54
54
|
static {
|
|
55
|
-
this.styles =
|
|
55
|
+
this.styles = te;
|
|
56
56
|
}
|
|
57
57
|
get isXAxisDateField() {
|
|
58
|
-
return this.orientation ===
|
|
58
|
+
return this.orientation === S.X && W(this.model) && this.model.getAxisValueFormat(0)?.type === ee.DateAxisFormat;
|
|
59
59
|
}
|
|
60
60
|
load() {
|
|
61
61
|
this.modelChange(this.model);
|
|
@@ -77,16 +77,16 @@ class se extends O {
|
|
|
77
77
|
}
|
|
78
78
|
setGuideStart(e) {
|
|
79
79
|
const { value: t } = e.target;
|
|
80
|
-
this.startCalciteInput.value !== void 0 && (t === "" ? (this.isGuideStartInvalid = !0,
|
|
80
|
+
this.startCalciteInput.value !== void 0 && (t === "" ? (this.isGuideStartInvalid = !0, y({
|
|
81
81
|
inputElement: this.startCalciteInput.value,
|
|
82
|
-
status:
|
|
82
|
+
status: $.INVALID
|
|
83
83
|
})) : (this.model.setGuideStart(t, this.index, this.orientation), this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
|
|
84
84
|
index: this.index,
|
|
85
85
|
orientation: this.orientation,
|
|
86
86
|
isDelete: !1
|
|
87
|
-
}), this.isGuideStartInvalid = !1,
|
|
87
|
+
}), this.isGuideStartInvalid = !1, y({
|
|
88
88
|
inputElement: this.startCalciteInput.value,
|
|
89
|
-
status:
|
|
89
|
+
status: $.IDLE
|
|
90
90
|
}))), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
91
91
|
}
|
|
92
92
|
setGuideEnd(e) {
|
|
@@ -95,23 +95,23 @@ class se extends O {
|
|
|
95
95
|
index: this.index,
|
|
96
96
|
orientation: this.orientation,
|
|
97
97
|
isDelete: !1
|
|
98
|
-
}), this.isGuideEndInvalid = !1,
|
|
98
|
+
}), this.isGuideEndInvalid = !1, y({
|
|
99
99
|
inputElement: this.endCalciteInput.value,
|
|
100
|
-
status:
|
|
100
|
+
status: $.IDLE
|
|
101
101
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
102
102
|
}
|
|
103
103
|
setGuideDateTimeRange() {
|
|
104
|
-
const e = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s),
|
|
105
|
-
let
|
|
106
|
-
if (!Array.isArray(
|
|
107
|
-
const c = `${
|
|
108
|
-
this.model.setGuideStart(c, this.index, this.orientation),
|
|
104
|
+
const e = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((c) => c.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), m = L(i, s), _ = A(a, s), B = L(a, s), b = this.startDateCalciteInput.value?.value ?? "", f = b === "" ? r : b, I = this.startTimeCalciteInput.value?.value ?? "", T = I === "" ? m : I, C = this.endDateCalciteInput.value?.value ?? "", x = C === "" ? _ : C, D = this.endTimeCalciteInput.value?.value ?? "", E = D === "" ? B : D;
|
|
105
|
+
let G = !1;
|
|
106
|
+
if (!Array.isArray(f) && f !== void 0 && T !== void 0) {
|
|
107
|
+
const c = `${f}T${T}`;
|
|
108
|
+
this.model.setGuideStart(c, this.index, this.orientation), G = !0;
|
|
109
109
|
}
|
|
110
|
-
if (!Array.isArray(
|
|
111
|
-
const c =
|
|
112
|
-
this.model.setGuideEnd(c, this.index, this.orientation),
|
|
110
|
+
if (!Array.isArray(x) && x !== void 0 && E !== void 0) {
|
|
111
|
+
const c = C === "" ? void 0 : `${x}T${E}`;
|
|
112
|
+
this.model.setGuideEnd(c, this.index, this.orientation), G = !0;
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
G && (this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
|
|
115
115
|
index: this.index,
|
|
116
116
|
orientation: this.orientation,
|
|
117
117
|
isDelete: !1
|
|
@@ -156,17 +156,17 @@ class se extends O {
|
|
|
156
156
|
e.stopImmediatePropagation();
|
|
157
157
|
const t = this.model.getGuideStyle(this.index, this.orientation), i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
158
158
|
let l;
|
|
159
|
-
|
|
159
|
+
v(i, a) === p.SLS ? l = g(t) ? t : void 0 : l = t?.color;
|
|
160
160
|
const s = this.colorElement.value;
|
|
161
|
-
Array.isArray(t?.color) ? (this.guidePopover =
|
|
161
|
+
Array.isArray(t?.color) ? (this.guidePopover = F(d`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`), this.guidePopover !== void 0 && !document.body.contains(this.guidePopover) && document.body.appendChild(this.guidePopover)) : this.removeGuidePopover();
|
|
162
162
|
}
|
|
163
163
|
removeGuidePopover() {
|
|
164
164
|
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = Q(this.guidePopover));
|
|
165
165
|
}
|
|
166
166
|
setColor(e) {
|
|
167
|
-
const t =
|
|
168
|
-
...
|
|
169
|
-
type:
|
|
167
|
+
const t = J({ opacity: 0 }), i = this.model.getGuideStyle(this.index, this.orientation), a = {
|
|
168
|
+
...K(i) ? i : {},
|
|
169
|
+
type: p.SFS,
|
|
170
170
|
color: e,
|
|
171
171
|
outline: t
|
|
172
172
|
};
|
|
@@ -196,35 +196,36 @@ class se extends O {
|
|
|
196
196
|
i = this._messages.deleteGuide ?? "";
|
|
197
197
|
break;
|
|
198
198
|
}
|
|
199
|
-
this.tooltip =
|
|
199
|
+
this.tooltip = F(d`<calcite-tooltip style=${M({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
200
200
|
}
|
|
201
201
|
toggleGuide() {
|
|
202
202
|
const e = this.model.getGuideVisibility(this.index, this.orientation);
|
|
203
203
|
this.model.setGuideVisibility(!e, this.index, this.orientation);
|
|
204
204
|
}
|
|
205
205
|
destroyTooltip() {
|
|
206
|
-
|
|
206
|
+
N(this.tooltip);
|
|
207
207
|
}
|
|
208
208
|
deleteGuide() {
|
|
209
|
-
this.destroyTooltip(), this.orientation ===
|
|
209
|
+
this.destroyTooltip(), this.orientation === S.X && Y(this.model) ? this.model.deleteXAxisGuide(this.index) : this.orientation === S.Y && j(this.model) && this.model.deleteYAxisGuide(this.index), this.arcgisChartsConfigGuideChange.emit({
|
|
210
210
|
index: this.index,
|
|
211
211
|
orientation: this.orientation,
|
|
212
212
|
isDelete: !0
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
renderColorElement() {
|
|
216
|
-
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation)
|
|
217
|
-
|
|
216
|
+
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation);
|
|
217
|
+
let m = g(e) ? V(e.style) : "line-solid";
|
|
218
|
+
return m = v(s, r) === p.SLS ? m : "square-f", d`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${n(o.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${m} style=${M({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
218
219
|
}
|
|
219
220
|
render() {
|
|
220
221
|
const e = this.model.getGuideStart(this.index, this.orientation), t = this.model.getGuideEnd(this.index, this.orientation), i = this.model.getGuideName(this.index, this.orientation), a = this.model.getGuideLabelText(this.index, this.orientation), l = this.model.getGuideAbove(this.index, this.orientation), s = this.model.getGuideVisibility(this.index, this.orientation), r = this.isXAxisDateField;
|
|
221
222
|
return d`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === Z(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
|
|
222
223
|
expand: this._messages.expand,
|
|
223
224
|
collapse: this._messages.collapse
|
|
224
|
-
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.start}${r ? d`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : d`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${
|
|
225
|
+
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.start}${r ? d`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : d`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${P} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideStartInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label class=${n(o.column)}>${this._messages.end}${r ? d`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : d`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${P} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidGuideValue} .isInvalid=${this.isGuideEndInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div>${r ? X("time-picker-row", d`<div class=${n(o.row)}>${e != null ? d`<calcite-label class=${n(o.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}${t != null ? d`<calcite-label class=${n(o.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}</div>`) : null}<div class=${n(o.row)}><div class=${n(o.column)}>${this.renderColorElement()}</div></div><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${n(o.row)}><calcite-label class=${n(o.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`;
|
|
225
226
|
}
|
|
226
227
|
}
|
|
227
|
-
|
|
228
|
+
R("arcgis-charts-config-guide", ie);
|
|
228
229
|
export {
|
|
229
|
-
|
|
230
|
+
ie as ArcgisChartsConfigGuide
|
|
230
231
|
};
|
|
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as A, html as a } from "lit";
|
|
8
8
|
import { createRef as x, ref as C } from "lit/directives/ref.js";
|
|
9
9
|
import { LitElement as b, renderElement as v, safeClassMap as c } from "@arcgis/lumina";
|
|
10
|
-
import { q as h, r as u } from "../../chunks/type-
|
|
10
|
+
import { q as h, r as u } from "../../chunks/type-guards.js";
|
|
11
11
|
import { G as s } from "../../chunks/common.js";
|
|
12
12
|
const P = A`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.add-guide{display:flex;justify-content:center;padding:.5rem}.add-guide-btn{width:100%}.no-guides{border-radius:2rem}.no-messages{text-align:center}.guide-icon{padding-left:.5rem;padding-top:.5rem;width:1.5rem;height:1.5rem}`;
|
|
13
13
|
class $ extends b {
|
|
@@ -4,7 +4,7 @@ import { LitElement as l } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as n, html as i } from "lit";
|
|
5
5
|
import { C as s } from "../../chunks/interfaces.js";
|
|
6
6
|
import { isEqual as d } from "es-toolkit/compat";
|
|
7
|
-
import {
|
|
7
|
+
import { cb as h, cc as c, v as f } from "../../chunks/index.js";
|
|
8
8
|
const p = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends l {
|
|
10
10
|
static {
|
|
@@ -7,8 +7,8 @@ import { css as N, html as i } from "lit";
|
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
8
|
import { parseInt as _, camelCase as H } from "es-toolkit/compat";
|
|
9
9
|
import { DateTime as L } from "luxon";
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
10
|
+
import { u as x, x as T, cm as O, C as U } from "../../chunks/index.js";
|
|
11
|
+
import { u as R } from "../../chunks/useT9n.js";
|
|
12
12
|
import { c as s, W as k } from "../../chunks/interfaces.js";
|
|
13
13
|
import { x as W } from "../../chunks/data.js";
|
|
14
14
|
import { l as v, s as q } from "../../chunks/chart-ui-utils.js";
|
|
@@ -16,10 +16,9 @@ import { c as $, g as K, a as V, b as z } from "../../chunks/class-breaks.js";
|
|
|
16
16
|
import { e as X, a as Z } from "../../chunks/store.js";
|
|
17
17
|
import { H as G } from "../../chunks/common.js";
|
|
18
18
|
import { b as j } from "../../chunks/rest-js-object-literals.js";
|
|
19
|
-
import { d
|
|
20
|
-
import { J, I as Q, i as ee, R as
|
|
21
|
-
import {
|
|
22
|
-
import { i as ae } from "../../chunks/index4.js";
|
|
19
|
+
import { d, h, l as p, a as C, n as u, q as F, r as Y } from "../../chunks/chart-object-literals.js";
|
|
20
|
+
import { J, I as Q, i as ee, R as m } from "../../chunks/index2.js";
|
|
21
|
+
import { i as ae } from "../../chunks/index3.js";
|
|
23
22
|
import { r as te } from "../../chunks/popover-ui-utils.js";
|
|
24
23
|
const se = N`.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{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}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`, r = {
|
|
25
24
|
label: "label",
|
|
@@ -30,19 +29,19 @@ const se = N`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.
|
|
|
30
29
|
};
|
|
31
30
|
class le extends E {
|
|
32
31
|
constructor() {
|
|
33
|
-
super(...arguments), this._messages =
|
|
32
|
+
super(...arguments), this._messages = R(), this.commonStrings = R({ name: "common", blocking: !0 }), this.heatChartPopover = null, this.xAxisFieldElement = n(), this.aggregationElement = n(), this.numericFieldsElement = n(), this.calendarTypeElement = n(), this.calendarViewTypeElement = n(), this.classBreakMethodElement = n(), this.nullElement = n(), this.breaksCountElement = n(), this.colorSchemeElement = n(), this.onHeatChartDataPopoverChange = async (e) => {
|
|
34
33
|
try {
|
|
35
34
|
if (e.detail?.value !== void 0) {
|
|
36
35
|
const { contentKind: a } = e.detail, t = e.detail.value;
|
|
37
36
|
switch (a) {
|
|
38
37
|
case s.aggregation:
|
|
39
|
-
this.model.aggregationType = t, t ===
|
|
38
|
+
this.model.aggregationType = t, t === d.Count || t === d.Sum ? this.model.nullPolicy = h.Zero : this.model.nullPolicy = h.Null;
|
|
40
39
|
break;
|
|
41
40
|
case s.xAxisField:
|
|
42
41
|
this.model.xAxisField = t, this.setDefaultPropertiesForCalendarHeatChart();
|
|
43
42
|
break;
|
|
44
43
|
case s.numericFields:
|
|
45
|
-
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType ===
|
|
44
|
+
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === d.Count && this.model.numericFields[0] !== x(this.model.layer).idField && (this.model.aggregationType = d.Sum);
|
|
46
45
|
break;
|
|
47
46
|
case s.calendarType: {
|
|
48
47
|
this.applyCalendarTypePreset(t);
|
|
@@ -205,7 +204,7 @@ class le extends E {
|
|
|
205
204
|
}
|
|
206
205
|
async onBreaksCountChange(e) {
|
|
207
206
|
let a = _(e.target.value);
|
|
208
|
-
a <
|
|
207
|
+
a < m.min ? a = m.min : a > m.max && (a = m.max), O(a) && (this.breaksCountElement.value && (this.breaksCountElement.value.value = a.toString()), this.requestedBreaksCount = a, this.model.breaksCount = a, await this.generateAndUpdateClassBreaks());
|
|
209
208
|
}
|
|
210
209
|
onAggregationSelect(e) {
|
|
211
210
|
this.contentKind = s.aggregation, this.setupPopover(e);
|
|
@@ -255,17 +254,17 @@ class le extends E {
|
|
|
255
254
|
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = te(this.heatChartPopover));
|
|
256
255
|
}
|
|
257
256
|
setDefaultPropertiesForCalendarHeatChart() {
|
|
258
|
-
this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(G.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = F.naturalBreaks), this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.viewType === void 0 && (this.model.viewType = Y.singleCalendarView), (this.model.aggregationType ===
|
|
257
|
+
this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(G.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = F.naturalBreaks), this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.viewType === void 0 && (this.model.viewType = Y.singleCalendarView), (this.model.aggregationType === d.Count || this.model.aggregationType === d.Sum) && this.model.nullPolicy !== h.Zero && (this.model.nullPolicy = h.Zero), this.model.colorRampName === void 0 && (this.model.colorRampName = $.defaultColorRampForCharts?.name);
|
|
259
258
|
}
|
|
260
259
|
renderXAxisFieldSelect() {
|
|
261
260
|
const e = this.getCorrectedXAxisFieldValue();
|
|
262
261
|
return i`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${c(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
263
262
|
}
|
|
264
263
|
renderAggregation() {
|
|
265
|
-
return i`<arcgis-charts-config-field-picker .label=${this.model.aggregationType ===
|
|
264
|
+
return i`<arcgis-charts-config-field-picker .label=${this.model.aggregationType === d.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${c(this.aggregationElement)}></arcgis-charts-config-field-picker>`;
|
|
266
265
|
}
|
|
267
266
|
renderNumericFieldsSelect() {
|
|
268
|
-
const e = this.model.numericFields?.[0] ===
|
|
267
|
+
const e = this.model.numericFields?.[0] === x(this.model.layer).idField ? "" : T(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
269
268
|
return i`<arcgis-charts-config-field-picker .label=${e} @click=${this.onNumericFieldSelect} ${c(this.numericFieldsElement)}></arcgis-charts-config-field-picker>`;
|
|
270
269
|
}
|
|
271
270
|
renderCalendarTypeSelect() {
|
|
@@ -304,7 +303,7 @@ class le extends E {
|
|
|
304
303
|
}
|
|
305
304
|
render() {
|
|
306
305
|
const e = this.renderXAxisFieldSelect(), a = this.renderAggregation(), t = this.renderNumericFieldsSelect(), l = this.renderCalendarTypeSelect(), g = this.renderClassBreakMethodSelect(), f = this.renderColorRampSelect(), y = this.renderClassBreaksTable(), b = this.renderNullUI(), S = this.renderEmptyBins();
|
|
307
|
-
return i`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${l}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${g}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${
|
|
306
|
+
return i`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${l}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${g}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${m.min} .max=${m.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === F.manual} step=1 .value=${q(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${c(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${f}</calcite-label>${b}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${y}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${S}</calcite-label>${v(this.model) === k.YearByMonthAndDayOfMonth ? i`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>` : null}`;
|
|
308
307
|
}
|
|
309
308
|
}
|
|
310
309
|
P("arcgis-charts-config-heat-chart-data", le);
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as T } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
4
|
-
import { css as F, html as
|
|
4
|
+
import { css as F, html as l } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
6
|
import P from "@arcgis/core/Color.js";
|
|
7
|
-
import { LitElement as I, createEvent as h, safeClassMap as
|
|
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 "es-toolkit/compat";
|
|
10
|
-
import {
|
|
10
|
+
import { x as D, b6 as A, b5 as E, C as v } from "../../chunks/index.js";
|
|
11
11
|
import { u as b } from "../../chunks/useT9n.js";
|
|
12
12
|
import { c, W as $ } from "../../chunks/interfaces.js";
|
|
13
|
-
import { c as y, b as
|
|
13
|
+
import { c as y, b as _, e as m } from "../../chunks/chart-ui-utils.js";
|
|
14
14
|
import { C as x, d as k } from "../../chunks/class-breaks.js";
|
|
15
|
-
import { d as
|
|
16
|
-
import { d as
|
|
17
|
-
import { e as
|
|
18
|
-
import { J as
|
|
19
|
-
import { aR as H, aQ as O } from "../../chunks/index.js";
|
|
15
|
+
import { d as N } from "../../chunks/rest-js-object-literals.js";
|
|
16
|
+
import { d as B, r as R, q as C } from "../../chunks/chart-object-literals.js";
|
|
17
|
+
import { e as M } from "../../chunks/popover-ui-utils.js";
|
|
18
|
+
import { J as H, r as O } from "../../chunks/index2.js";
|
|
20
19
|
const q = 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)}.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}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
21
20
|
name: "bar-chart-data-popover",
|
|
22
21
|
header: "header",
|
|
@@ -48,36 +47,36 @@ class W extends I {
|
|
|
48
47
|
await this.popoverElement.value?.reposition();
|
|
49
48
|
}
|
|
50
49
|
willUpdate() {
|
|
51
|
-
const e = y.map((t) =>
|
|
50
|
+
const e = y.map((t) => H(t, this.commonStrings));
|
|
52
51
|
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);
|
|
53
52
|
}
|
|
54
53
|
updated() {
|
|
55
54
|
setTimeout(() => {
|
|
56
55
|
this.picklist.value?.setFocus();
|
|
57
|
-
},
|
|
56
|
+
}, _.PopoverTimer), M(this.popoverElement.value, this.open);
|
|
58
57
|
}
|
|
59
58
|
buildAggregationListItems() {
|
|
60
|
-
return d(y.filter((e) => e !==
|
|
59
|
+
return d(y.filter((e) => e !== B.NoAggregation), (e) => e, (e, t) => l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
61
60
|
}
|
|
62
61
|
buildPickListItem(e) {
|
|
63
|
-
return f(e.name,
|
|
62
|
+
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>`);
|
|
64
63
|
}
|
|
65
64
|
buildPickListItems(e) {
|
|
66
65
|
const t = this.layerFieldsInfo?.length ?? 0, a = [];
|
|
67
66
|
switch (e) {
|
|
68
67
|
case c.numericFields: {
|
|
69
|
-
const i = f(" ",
|
|
68
|
+
const i = f(" ", l`<calcite-list-item label=" " value=" " .selected=${m("", this.selectedContent)}></calcite-list-item>`);
|
|
70
69
|
a.push(i);
|
|
71
70
|
for (let o = 0; o < t; o += 1) {
|
|
72
71
|
const n = this.layerFieldsInfo?.[o];
|
|
73
|
-
n &&
|
|
72
|
+
n && E(n) && a.push(this.buildPickListItem(n));
|
|
74
73
|
}
|
|
75
74
|
break;
|
|
76
75
|
}
|
|
77
76
|
case c.xAxisField: {
|
|
78
77
|
for (let i = 0; i < t; i += 1) {
|
|
79
78
|
const o = this.layerFieldsInfo?.[i];
|
|
80
|
-
o &&
|
|
79
|
+
o && A(o) && a.push(this.buildPickListItem(o));
|
|
81
80
|
}
|
|
82
81
|
break;
|
|
83
82
|
}
|
|
@@ -163,34 +162,34 @@ class W extends I {
|
|
|
163
162
|
this.model.emptyCellText !== t && (this.model.emptyCellText = t, this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
164
163
|
}
|
|
165
164
|
colorChange(e) {
|
|
166
|
-
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n =
|
|
165
|
+
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n = O * 255;
|
|
167
166
|
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i, o, n] });
|
|
168
167
|
}
|
|
169
168
|
renderAggregationType() {
|
|
170
169
|
const e = this.buildAggregationListItems();
|
|
171
|
-
return
|
|
170
|
+
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
172
171
|
}
|
|
173
172
|
renderXAxisFieldSelect() {
|
|
174
173
|
const e = this.buildPickListItems(c.xAxisField);
|
|
175
|
-
return
|
|
174
|
+
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>`;
|
|
176
175
|
}
|
|
177
176
|
renderNumericFields() {
|
|
178
177
|
const e = this.buildPickListItems(c.numericFields);
|
|
179
|
-
return
|
|
178
|
+
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>`;
|
|
180
179
|
}
|
|
181
180
|
renderCalendarType() {
|
|
182
|
-
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !==
|
|
181
|
+
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== N.DateOnly), a = d(t, (i) => i, (i) => {
|
|
183
182
|
const o = this._messages[i];
|
|
184
|
-
return
|
|
183
|
+
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i, this.selectedContent)}></calcite-list-item>`;
|
|
185
184
|
});
|
|
186
|
-
return
|
|
185
|
+
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>`;
|
|
187
186
|
}
|
|
188
187
|
renderCalendarViewType() {
|
|
189
188
|
const e = d(Object.values(R), (t) => t, (t) => {
|
|
190
189
|
const a = this._messages[t];
|
|
191
|
-
return
|
|
190
|
+
return l`<calcite-list-item .label=${a} .value=${t} .disabled=${t !== R.singleCalendarView} .selected=${m(t, this.selectedContent)}></calcite-list-item>`;
|
|
192
191
|
});
|
|
193
|
-
return
|
|
192
|
+
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>`;
|
|
194
193
|
}
|
|
195
194
|
renderClassBreakMethod() {
|
|
196
195
|
const e = [
|
|
@@ -211,9 +210,9 @@ class W extends I {
|
|
|
211
210
|
}
|
|
212
211
|
], t = d(Object.values(e), ({ value: a }) => a, (a) => {
|
|
213
212
|
const { title: i, msg: o, value: n } = a;
|
|
214
|
-
return
|
|
213
|
+
return l`<calcite-list-item .label=${i} .description=${o} .value=${n} .selected=${m(n, this.selectedContent)}></calcite-list-item>`;
|
|
215
214
|
});
|
|
216
|
-
return
|
|
215
|
+
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>`;
|
|
217
216
|
}
|
|
218
217
|
renderPopoverInfo() {
|
|
219
218
|
let e;
|
|
@@ -243,24 +242,24 @@ class W extends I {
|
|
|
243
242
|
e = this.renderEmptyCellUI();
|
|
244
243
|
break;
|
|
245
244
|
default:
|
|
246
|
-
e =
|
|
245
|
+
e = l`<div></div>`;
|
|
247
246
|
break;
|
|
248
247
|
}
|
|
249
248
|
return e;
|
|
250
249
|
}
|
|
251
250
|
renderColorRampSelect() {
|
|
252
251
|
const e = this.filterColorRamps(), t = this._messages?.colorRampCategories ? this._messages.colorRampCategories[this.selectedCategory] : this.selectedCategory;
|
|
253
|
-
return
|
|
252
|
+
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
253
|
const i = this.getRampColors(a), o = a.name === this.selectedColorRampName;
|
|
255
|
-
return
|
|
256
|
-
})}</div><div class=${
|
|
254
|
+
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>`;
|
|
255
|
+
})}</div><div class=${r(s.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`;
|
|
257
256
|
}
|
|
258
257
|
renderEmptyCellUI() {
|
|
259
258
|
const e = this.model.emptyCellSymbol?.color ?? v.grayColor, t = this.model.emptyCellText ?? v.nullCategory?.text ?? "";
|
|
260
|
-
return
|
|
259
|
+
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>`;
|
|
261
260
|
}
|
|
262
261
|
render() {
|
|
263
|
-
return
|
|
262
|
+
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>`;
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
T("arcgis-charts-config-heat-chart-popover", W);
|
|
@@ -4,8 +4,7 @@ import { isEqual as r } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as i } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as d,
|
|
8
|
-
import { i as u } from "../../chunks/type-guards.js";
|
|
7
|
+
import { i as d, cb as c, cc as m, bC as f, l as g, cK as p, v as u } from "../../chunks/index.js";
|
|
9
8
|
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%}`;
|
|
10
9
|
class y extends n {
|
|
11
10
|
constructor() {
|
|
@@ -48,7 +47,7 @@ class y extends n {
|
|
|
48
47
|
if (s) {
|
|
49
48
|
await f(s);
|
|
50
49
|
const t = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
|
|
51
|
-
this.layerFieldsInfo =
|
|
50
|
+
this.layerFieldsInfo = g(s) ? p({ layer: s, popupTemplateFieldInfosEnabled: t, chartType: a?.type }) : u(s, t);
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
render() {
|