@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
|
@@ -3,73 +3,79 @@ import { c as x } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed as P } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as T } from "lit/directives/repeat.js";
|
|
5
5
|
import { u as L } from "../../chunks/useT9n.js";
|
|
6
|
-
import { css as
|
|
7
|
-
import { LitElement as
|
|
6
|
+
import { css as N, html as a } from "lit";
|
|
7
|
+
import { LitElement as M, createEvent as O, renderElement as C, safeStyleMap as h, safeClassMap as r } from "@arcgis/lumina";
|
|
8
8
|
import { a as _ } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import {
|
|
10
|
-
import { r as
|
|
11
|
-
import { c as n, d as
|
|
12
|
-
import { ar as m } from "../../chunks/index.js";
|
|
9
|
+
import { aI as g, y as E, C as v } from "../../chunks/index.js";
|
|
10
|
+
import { r as S } from "../../chunks/popover-ui-utils.js";
|
|
11
|
+
import { c as n, d as f } from "../../chunks/chart-object-literals.js";
|
|
13
12
|
const w = {
|
|
14
13
|
stackedType: "stacked-type"
|
|
15
|
-
},
|
|
14
|
+
}, l = {
|
|
16
15
|
topSection: "top-section",
|
|
17
16
|
sectionLabel: "section-label",
|
|
18
17
|
list: "list",
|
|
19
18
|
disabledInfo: "disabled-info",
|
|
20
19
|
disabledStackingOption: "disabled-stacking-option"
|
|
21
|
-
}, D =
|
|
22
|
-
class z extends
|
|
20
|
+
}, D = 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)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right: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)}.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)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`;
|
|
21
|
+
class z extends M {
|
|
23
22
|
constructor() {
|
|
24
23
|
super(...arguments), this._messages = L(), this.open = !1, this.seriesNameChange = (e) => {
|
|
25
24
|
if (e.detail !== null && e.detail !== void 0) {
|
|
26
25
|
const t = e.detail.name;
|
|
27
26
|
if (this.isNullCategorySelected) {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
const
|
|
31
|
-
this.model.nullCategory =
|
|
27
|
+
const i = this.model.nullCategory;
|
|
28
|
+
if (i) {
|
|
29
|
+
const s = { ...i, text: t };
|
|
30
|
+
this.model.nullCategory = s;
|
|
32
31
|
}
|
|
33
|
-
} else
|
|
34
|
-
|
|
32
|
+
} else {
|
|
33
|
+
const i = this.selectedSeriesIndex;
|
|
34
|
+
i !== void 0 && i >= 0 && this.model.setSeriesName(t, i);
|
|
35
|
+
}
|
|
35
36
|
}
|
|
36
37
|
}, this.seriesColorChange = (e) => {
|
|
37
38
|
if (e.detail !== null && e.detail !== void 0) {
|
|
38
39
|
const { color: t } = e.detail;
|
|
39
40
|
if (t !== void 0) {
|
|
40
41
|
if (this.isNullCategorySelected) {
|
|
41
|
-
const
|
|
42
|
-
...
|
|
42
|
+
const i = this.model.nullCategory, s = g(i), o = i !== void 0 && s !== void 0 ? {
|
|
43
|
+
...i,
|
|
43
44
|
fillSymbol: {
|
|
44
|
-
...
|
|
45
|
+
...s,
|
|
45
46
|
color: t,
|
|
46
|
-
outline:
|
|
47
|
+
outline: s.outline && { ...s.outline, color: t }
|
|
47
48
|
}
|
|
48
49
|
} : void 0;
|
|
49
|
-
this.model.nullCategory =
|
|
50
|
-
} else
|
|
51
|
-
|
|
50
|
+
this.model.nullCategory = o;
|
|
51
|
+
} else {
|
|
52
|
+
const i = this.selectedSeriesIndex;
|
|
53
|
+
i !== void 0 && i >= 0 && this.model.setSeriesColor(t, i);
|
|
54
|
+
}
|
|
52
55
|
this.model.colorMatch = !1;
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
}, this.seriesPopoverClose = (e) => {
|
|
56
59
|
const { selectedSeriesIndex: t } = e.detail;
|
|
57
|
-
this.selectedSeriesIndex === t && (this.seriesPopover =
|
|
60
|
+
this.selectedSeriesIndex === t && (this.seriesPopover = S(this.seriesPopover), this.selectedSeriesId = void 0);
|
|
58
61
|
}, this.onModelConfigChange = () => {
|
|
59
|
-
this.requestUpdate();
|
|
62
|
+
this.selectedSeriesId !== void 0 && !this.isNullCategorySelected && this.selectedSeriesIndex === -1 ? (this.removeSeriesPopover(), this.selectedSeriesId = void 0) : this.seriesPopover && (this.seriesPopover.selectedSeriesIndex = this.selectedSeriesIndex), this.requestUpdate();
|
|
60
63
|
}, this.seriesOrderResetCounter = 0, this.activeColorMatch = !1, this.popoverPlacement = "leading", this.arcgisChartsConfigDataChangeError = O();
|
|
61
64
|
}
|
|
62
65
|
static {
|
|
63
|
-
this.properties = { seriesOrderResetCounter: 16,
|
|
66
|
+
this.properties = { seriesOrderResetCounter: 16, selectedSeriesId: 16, messageOverrides: 0, model: 0, activeColorMatch: 5, popoverPlacement: 1 };
|
|
64
67
|
}
|
|
65
68
|
static {
|
|
66
69
|
this.styles = D;
|
|
67
70
|
}
|
|
71
|
+
get selectedSeriesIndex() {
|
|
72
|
+
return this.selectedSeriesId === void 0 ? void 0 : this.model.getSeriesIndex(this.selectedSeriesId);
|
|
73
|
+
}
|
|
68
74
|
load() {
|
|
69
75
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
70
76
|
}
|
|
71
77
|
willUpdate(e) {
|
|
72
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("
|
|
78
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("selectedSeriesId") && this.selectedSeriesChange();
|
|
73
79
|
}
|
|
74
80
|
disconnectedCallback() {
|
|
75
81
|
super.disconnectedCallback(), this.removeSeriesPopover(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -78,37 +84,37 @@ class z extends N {
|
|
|
78
84
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
79
85
|
}
|
|
80
86
|
removeSeriesPopover() {
|
|
81
|
-
this.seriesPopover !== null && this.seriesPopover !== void 0 && (this.seriesPopover.open = !1, this.seriesPopover =
|
|
87
|
+
this.seriesPopover !== null && this.seriesPopover !== void 0 && (this.seriesPopover.open = !1, this.seriesPopover = S(this.seriesPopover));
|
|
82
88
|
}
|
|
83
|
-
|
|
89
|
+
selectedSeriesChange() {
|
|
84
90
|
this.selectedSeriesIndex !== void 0 && (this.seriesPopover = C(a`<arcgis-charts-config-bar-chart-series-popover .referenceElement=${this.el} .selectedName=${this.selectedSeriesIndex != null ? this.model.getSeriesName(this.selectedSeriesIndex) : void 0} .selectedColor=${this.selectedSeriesIndex != null ? this.model.getSeriesColor(this.selectedSeriesIndex) : void 0} .placement=${this.popoverPlacement} .selectedSeriesIndex=${this.selectedSeriesIndex != null ? this.selectedSeriesIndex : void 0} .nullCategory=${this.isNullCategorySelected ? this.model.nullCategory : void 0} .open=${this.open} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-bar-chart-series-popover>`), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover));
|
|
85
91
|
}
|
|
86
92
|
buildSeriesListItems() {
|
|
87
|
-
const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (
|
|
88
|
-
return T(t, (
|
|
89
|
-
const
|
|
93
|
+
const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (s, o) => o);
|
|
94
|
+
return T(t, (s) => this.model.getSeriesId(s), (s) => {
|
|
95
|
+
const o = this.model.getSeriesId(s), c = this.model.getSeriesColor(s), d = this.model.getSeriesName(s), b = this.model.chartSubType === E.BarAndLineFromFields ? this._messages.series : o;
|
|
90
96
|
let p = "#CCCCCC", u = "minus-square";
|
|
91
97
|
if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
|
|
92
98
|
u = "square-f";
|
|
93
99
|
const [y, $, I, k] = [...c];
|
|
94
100
|
p = `rgba(${y},${$},${I},${k / 255})`;
|
|
95
101
|
}
|
|
96
|
-
return a`<calcite-list-item .label=${d ??
|
|
102
|
+
return a`<calcite-list-item .label=${d ?? o ?? ""} .description=${b} .value=${o} .selected=${this.selectedSeriesId === o} @click=${this.openSeriesPopOver}><calcite-icon .icon=${u} style=${h({ color: p })} slot=content-end></calcite-icon></calcite-list-item>`;
|
|
97
103
|
});
|
|
98
104
|
}
|
|
99
105
|
buildSeriesList() {
|
|
100
|
-
return P(this.seriesOrderResetCounter, a`<calcite-list label class=${r(
|
|
106
|
+
return P(this.seriesOrderResetCounter, a`<calcite-list label class=${r(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
|
|
101
107
|
}
|
|
102
108
|
buildNullCategoryUI() {
|
|
103
|
-
const e = this.model.nullCategory, t = this._messages.nullCategory,
|
|
104
|
-
return a`<calcite-list label class=${r(
|
|
109
|
+
const e = this.model.nullCategory, t = this._messages.nullCategory, i = g(e)?.color ?? g(v.nullCategory)?.color ?? v.grayColor, [s, o, c, d] = [...i], m = `rgba(${s},${o},${c},${d / 255})`;
|
|
110
|
+
return a`<calcite-list label class=${r(l.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesId !== void 0 && this.isNullCategorySelected} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${h({ color: m })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
105
111
|
}
|
|
106
112
|
buildMultipleBarTypeList() {
|
|
107
113
|
const e = this.shouldDisableStacking();
|
|
108
|
-
return e && this.model.stackedType !== n.Side && (this.model.stackedType = n.Side), a`<calcite-list label id=${w.stackedType} class=${r(
|
|
114
|
+
return e && this.model.stackedType !== n.Side && (this.model.stackedType = n.Side), a`<calcite-list label id=${w.stackedType} class=${r(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleBarSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${n.Side} .selected=${this.model.stackedType === void 0 || this.model.stackedType === n.Side}><calcite-icon scale=l icon=graph-bar-side-by-side slot=content-start></calcite-icon></calcite-list-item><calcite-list-item class=${r(e ? l.disabledStackingOption : "")} .label=${this._messages.stacked} .value=${n.Stacked} .selected=${this.model.stackedType === n.Stacked}><calcite-icon scale=l icon=graph-bar-stacked slot=content-start></calcite-icon>${e && a`<calcite-icon class=${r(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>` || ""}</calcite-list-item><calcite-list-item class=${r(e ? l.disabledStackingOption : "")} .label=${this._messages.stacked100} .value=${n.Stacked100} .selected=${this.model.stackedType === n.Stacked100}><calcite-icon scale=l icon=graph-bar-100-stacked slot=content-start></calcite-icon>${e && a`<calcite-icon class=${r(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>` || ""}</calcite-list-item></calcite-list>`;
|
|
109
115
|
}
|
|
110
116
|
resetSeriesOriginal() {
|
|
111
|
-
this.
|
|
117
|
+
this.selectedSeriesId = void 0, this.model.resetSeriesStyling(), this.seriesOrderResetCounter += 1;
|
|
112
118
|
}
|
|
113
119
|
onMultipleBarSelect(e) {
|
|
114
120
|
if (!this.shouldDisableStacking()) {
|
|
@@ -118,27 +124,27 @@ class z extends N {
|
|
|
118
124
|
}
|
|
119
125
|
onCalciteListOrderChange(e) {
|
|
120
126
|
if (e.detail !== null && e.detail !== void 0) {
|
|
121
|
-
const { newIndex: t, oldIndex:
|
|
122
|
-
this.model.moveSeries(
|
|
127
|
+
const { newIndex: t, oldIndex: i } = e.detail;
|
|
128
|
+
this.model.moveSeries(i ?? 0, t ?? i ?? 0), this.seriesOrderResetCounter += 1;
|
|
123
129
|
}
|
|
124
130
|
}
|
|
125
131
|
openSeriesPopOver(e) {
|
|
126
132
|
e.stopImmediatePropagation(), this.removeSeriesPopover();
|
|
127
|
-
const t = e.target,
|
|
128
|
-
this.
|
|
133
|
+
const t = e.target, i = t.localName === "calcite-list-item" ? t : t.parentNode;
|
|
134
|
+
this.isNullCategorySelected = i.value === this._messages.nullCategory, this.open = this.selectedSeriesId !== i.value, this.selectedSeriesId = this.open ? i.value : void 0;
|
|
129
135
|
}
|
|
130
136
|
createTooltip(e) {
|
|
131
|
-
const t = e.target,
|
|
132
|
-
this.tooltip = C(a`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${
|
|
137
|
+
const t = e.target, i = (this.model.aggregationType === f.NoAggregation ? this._messages.noAggStackingDisabled : this._messages.singleStackingDisabled) ?? "";
|
|
138
|
+
this.tooltip = C(a`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
133
139
|
}
|
|
134
140
|
destroyTooltip() {
|
|
135
141
|
_(this.tooltip);
|
|
136
142
|
}
|
|
137
143
|
shouldDisableStacking() {
|
|
138
|
-
return (this.model.seriesLength ?? 0) <= 1 || this.model.aggregationType ===
|
|
144
|
+
return (this.model.seriesLength ?? 0) <= 1 || this.model.aggregationType === f.NoAggregation;
|
|
139
145
|
}
|
|
140
146
|
render() {
|
|
141
|
-
return a`<div class=${`${
|
|
147
|
+
return a`<div class=${`${l.sectionLabel} ${l.topSection}`}>${this._messages.displayMultiSeries}</div>${this.buildMultipleBarTypeList()}<div class=${r(l.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}${this.model.nullCategory !== void 0 && this.model.fetchNULLValues ? this.buildNullCategoryUI() : null}`;
|
|
142
148
|
}
|
|
143
149
|
}
|
|
144
150
|
x("arcgis-charts-config-bar-chart-series", z);
|
|
@@ -5,8 +5,8 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { createRef as d, ref as g } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement as C, createEvent as s, safeClassMap as l } from "@arcgis/lumina";
|
|
7
7
|
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
8
|
-
import { r as f } from "../../chunks/
|
|
9
|
-
import {
|
|
8
|
+
import { r as f } from "../../chunks/index2.js";
|
|
9
|
+
import { aI as u } from "../../chunks/index.js";
|
|
10
10
|
const n = {
|
|
11
11
|
panelChildrenContainer: "panel-children-container"
|
|
12
12
|
}, y = p`.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{overflow-y:auto;width:min-content}.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}`;
|
|
@@ -4,7 +4,7 @@ import { LitElement as n } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as c, html as t } from "lit";
|
|
5
5
|
import { isEqual as l } from "es-toolkit/compat";
|
|
6
6
|
import { C as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { cb as d, cc as h, v as f } from "../../chunks/index.js";
|
|
8
8
|
const g = c`: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%}`;
|
|
9
9
|
class m extends n {
|
|
10
10
|
constructor() {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as b } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
4
|
-
import { isEqual as
|
|
5
|
-
import { repeat as
|
|
6
|
-
import { b as
|
|
7
|
-
import { d as
|
|
8
|
-
import { b as
|
|
9
|
-
import { u as
|
|
10
|
-
import { css as
|
|
11
|
-
import { createRef as
|
|
12
|
-
import { LitElement as B, createEvent as
|
|
13
|
-
import { x as
|
|
14
|
-
import { B as
|
|
15
|
-
import { l as u } from "../../chunks/
|
|
16
|
-
import {
|
|
17
|
-
import { r as
|
|
4
|
+
import { isEqual as y } from "es-toolkit/compat";
|
|
5
|
+
import { repeat as S } from "lit/directives/repeat.js";
|
|
6
|
+
import { b as a, a as c } from "../../chunks/interfaces.js";
|
|
7
|
+
import { d as v, a as $ } from "../../chunks/store.js";
|
|
8
|
+
import { b as g } from "../../chunks/chart-ui-utils.js";
|
|
9
|
+
import { u as x } from "../../chunks/useT9n.js";
|
|
10
|
+
import { css as F, nothing as I, html as l } from "lit";
|
|
11
|
+
import { createRef as d, ref as m } from "lit/directives/ref.js";
|
|
12
|
+
import { LitElement as B, createEvent as w, safeClassMap as o, renderElement as L } from "@arcgis/lumina";
|
|
13
|
+
import { x as P } from "../../chunks/data.js";
|
|
14
|
+
import { B as h } from "../../chunks/common.js";
|
|
15
|
+
import { l as u } from "../../chunks/index2.js";
|
|
16
|
+
import { c8 as O, x as p } from "../../chunks/index.js";
|
|
17
|
+
import { r as C } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { a as k } from "../../chunks/chart-object-literals.js";
|
|
19
19
|
const r = {
|
|
20
20
|
label: "label",
|
|
@@ -23,44 +23,45 @@ const r = {
|
|
|
23
23
|
dimText: "dim-text",
|
|
24
24
|
list: "list",
|
|
25
25
|
customSortButtons: "custom-sort-buttons"
|
|
26
|
-
}, D =
|
|
26
|
+
}, D = 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);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.fab>calcite-button{--calcite-button-shadow: var(--calcite-shadow-md)}.fab span{white-space:normal;overflow-wrap:anywhere}.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);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`;
|
|
27
27
|
class E extends B {
|
|
28
28
|
constructor() {
|
|
29
|
-
super(...arguments), this._messages =
|
|
29
|
+
super(...arguments), this._messages = x(), this.boxPlotPopover = null, this.categoryElement = d(), this.numericFieldsElement = d(), this.splitByFieldElement = d(), this.sortOrderElement = d(), this.originalCustomSortLabels = [], this.isCustomSortDisabled = !1, this.onModelConfigChange = () => {
|
|
30
30
|
this.requestUpdate();
|
|
31
|
-
}, this.
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
}, this.onModelDataChange = async () => {
|
|
32
|
+
if (this.model.getDataSortOrder() === h.customSort) {
|
|
33
|
+
const e = await this.updateCustomSortProps();
|
|
34
|
+
this.model.orderByList = e, this.sortOrderResetCounter += 1;
|
|
35
|
+
} else
|
|
36
|
+
await this.updateCustomSortDisabled();
|
|
37
|
+
this.requestUpdate();
|
|
38
|
+
}, this.popoverClose = (e) => {
|
|
39
|
+
this.boxPlotPopover === e?.target && (this.boxPlotPopover = C(this.boxPlotPopover));
|
|
40
|
+
}, this.onBoxPlotDataChange = async (e) => {
|
|
34
41
|
try {
|
|
35
|
-
if (
|
|
36
|
-
const { contentKind:
|
|
37
|
-
switch (
|
|
38
|
-
case
|
|
42
|
+
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
43
|
+
const { contentKind: t } = e.detail, s = [...e.detail.value];
|
|
44
|
+
switch (v($), t) {
|
|
45
|
+
case a.category: {
|
|
39
46
|
const i = s[0]?.trim() || u;
|
|
40
|
-
|
|
41
|
-
const n = await this.updateCustomSortProps();
|
|
42
|
-
this.model.orderByList = n, this.sortOrderResetCounter += 1;
|
|
43
|
-
}
|
|
47
|
+
this.model.category = i;
|
|
44
48
|
break;
|
|
45
49
|
}
|
|
46
|
-
case
|
|
50
|
+
case a.numericFields: {
|
|
47
51
|
this.model.numericFields = s;
|
|
48
52
|
const i = s.length > 1;
|
|
49
|
-
|
|
50
|
-
const n = await this.updateCustomSortProps();
|
|
51
|
-
this.model.orderByList = n, this.sortOrderResetCounter += 1;
|
|
52
|
-
}
|
|
53
|
+
this.model.standardizeValues = i;
|
|
53
54
|
break;
|
|
54
55
|
}
|
|
55
|
-
case
|
|
56
|
+
case a.splitByField: {
|
|
56
57
|
const i = s[0]?.trim() || "";
|
|
57
58
|
this.model.splitByField = i;
|
|
58
59
|
break;
|
|
59
60
|
}
|
|
60
|
-
case
|
|
61
|
+
case a.sortOrder:
|
|
61
62
|
{
|
|
62
63
|
const i = s[0];
|
|
63
|
-
if (i ===
|
|
64
|
+
if (i === h.customSort) {
|
|
64
65
|
const n = await this.updateCustomSortProps();
|
|
65
66
|
this.model.setDataSortOrder(i, n);
|
|
66
67
|
} else
|
|
@@ -72,11 +73,11 @@ class E extends B {
|
|
|
72
73
|
break;
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
|
-
} catch (
|
|
76
|
-
throw
|
|
76
|
+
} catch (t) {
|
|
77
|
+
throw t instanceof Error && this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
77
78
|
}
|
|
78
79
|
this.requestUpdate();
|
|
79
|
-
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError =
|
|
80
|
+
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.arcgisChartsConfigDataChangeError = w();
|
|
80
81
|
}
|
|
81
82
|
static {
|
|
82
83
|
this.properties = { selectedCustomSortItemId: 16, sortOrderResetCounter: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0 };
|
|
@@ -85,134 +86,135 @@ class E extends B {
|
|
|
85
86
|
this.styles = D;
|
|
86
87
|
}
|
|
87
88
|
load() {
|
|
88
|
-
this.modelChange(this.model), this.onModelConfigChange(), this.
|
|
89
|
+
this.modelChange(this.model), this.onModelConfigChange(), this.updateCustomSortProps();
|
|
89
90
|
}
|
|
90
|
-
willUpdate(
|
|
91
|
-
|
|
91
|
+
willUpdate(e) {
|
|
92
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.disableSplitBy = this.model.numericFields.length === 0 || this.model.numericFields.length > 1 && this.model.category !== u;
|
|
92
93
|
}
|
|
93
94
|
disconnectedCallback() {
|
|
94
|
-
super.disconnectedCallback(), this.boxPlotPopover =
|
|
95
|
+
super.disconnectedCallback(), this.boxPlotPopover = C(this.boxPlotPopover), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), this.model.removeEventListener("arcgisChartsModelDataChange", this.onModelDataChange);
|
|
95
96
|
}
|
|
96
|
-
modelChange(
|
|
97
|
-
|
|
97
|
+
modelChange(e, t) {
|
|
98
|
+
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), t?.removeEventListener("arcgisChartsModelDataChange", this.onModelDataChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelDataChange", this.onModelDataChange);
|
|
98
99
|
}
|
|
99
|
-
onCalciteListOrderChange(
|
|
100
|
-
if (
|
|
101
|
-
const { newIndex:
|
|
102
|
-
this.model.moveCustomSortValuesInOrderByList(s ?? 0,
|
|
100
|
+
onCalciteListOrderChange(e) {
|
|
101
|
+
if (e.detail !== null && e.detail !== void 0) {
|
|
102
|
+
const { newIndex: t, oldIndex: s } = e.detail;
|
|
103
|
+
this.model.moveCustomSortValuesInOrderByList(s ?? 0, t ?? s ?? 0);
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
onCustomSortItemSelected(
|
|
106
|
-
const { id:
|
|
107
|
-
this.selectedCustomSortItemId = this.selectedCustomSortItemId ===
|
|
106
|
+
onCustomSortItemSelected(e) {
|
|
107
|
+
const { id: t } = e.target;
|
|
108
|
+
this.selectedCustomSortItemId = this.selectedCustomSortItemId === t ? "" : t;
|
|
108
109
|
}
|
|
109
|
-
onCustomSortListClick(
|
|
110
|
-
|
|
110
|
+
onCustomSortListClick(e) {
|
|
111
|
+
e.preventDefault();
|
|
111
112
|
}
|
|
112
|
-
onCustomSortItemMoved(
|
|
113
|
-
const { id:
|
|
113
|
+
onCustomSortItemMoved(e) {
|
|
114
|
+
const { id: t } = e.target;
|
|
114
115
|
let s = this.model.orderByList.length;
|
|
115
116
|
const i = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
116
|
-
|
|
117
|
+
t === c.Up ? s = i - 1 : t === c.Down && (s = i + 1), i >= 0 && s >= 0 && s < this.model.orderByList.length && this.model.moveCustomSortValuesInOrderByList(i, s);
|
|
117
118
|
}
|
|
118
119
|
buildCustomSortListItems() {
|
|
119
|
-
return
|
|
120
|
-
const s =
|
|
121
|
-
return
|
|
120
|
+
return S(this.model.orderByList, (t) => t, (t) => {
|
|
121
|
+
const s = O(this.layerFieldsInfo, t);
|
|
122
|
+
return l`<calcite-list-item id=${t ?? I} .label=${t ?? ""} .description=${s} .value=${t} .selected=${this.selectedCustomSortItemId === t} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`;
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
125
|
buildCustomSortList() {
|
|
125
|
-
return f(this.sortOrderResetCounter,
|
|
126
|
+
return f(this.sortOrderResetCounter, l`<calcite-list label class=${o(r.list)} drag-enabled selection-mode=single selection-appearance=border @click=${this.onCustomSortListClick} @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`);
|
|
126
127
|
}
|
|
127
|
-
buildNumericFieldItem(
|
|
128
|
-
return f(
|
|
128
|
+
buildNumericFieldItem(e) {
|
|
129
|
+
return f(e, l`<calcite-list-item .label=${p(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
129
130
|
}
|
|
130
|
-
onCategorySelect(
|
|
131
|
-
this.categoryElement.value && !this.categoryElement.value.disabled && (this.contentKind =
|
|
131
|
+
onCategorySelect(e) {
|
|
132
|
+
this.categoryElement.value && !this.categoryElement.value.disabled && (this.contentKind = a.category, this.setupPopover(e));
|
|
132
133
|
}
|
|
133
|
-
async onRemoveNumericField(
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
const s = await this.updateCustomSortProps();
|
|
137
|
-
this.model.orderByList = s, this.sortOrderResetCounter += 1;
|
|
138
|
-
}
|
|
134
|
+
async onRemoveNumericField(e) {
|
|
135
|
+
const t = e.target.value;
|
|
136
|
+
this.model.numericFields = this.model.numericFields.filter((s) => s !== t), this.model.numericFields.length === 0 && this.model.resetConfig();
|
|
139
137
|
}
|
|
140
138
|
async updateCustomSortProps() {
|
|
141
|
-
const
|
|
142
|
-
this.originalCustomSortLabels = [...
|
|
143
|
-
const
|
|
144
|
-
return
|
|
139
|
+
const e = await this.model.getCustomSortValues();
|
|
140
|
+
this.originalCustomSortLabels = [...e];
|
|
141
|
+
const t = e.length > g.customSortLimit;
|
|
142
|
+
return t && (this.sortOrderElement.value && (this.sortOrderElement.value.label = this._messages.xAxisAsc), this.model.setDataSortOrder(h.xAxisAsc)), this.isCustomSortDisabled = t, e;
|
|
143
|
+
}
|
|
144
|
+
async updateCustomSortDisabled() {
|
|
145
|
+
const e = await this.model.getCustomSortValues(g.customSortLimit + 1);
|
|
146
|
+
this.isCustomSortDisabled = e.length > g.customSortLimit;
|
|
145
147
|
}
|
|
146
|
-
onStandardizeValuesChange(
|
|
147
|
-
this.model.standardizeValues =
|
|
148
|
+
onStandardizeValuesChange(e) {
|
|
149
|
+
this.model.standardizeValues = e.target.checked;
|
|
148
150
|
}
|
|
149
|
-
onShowOutliersChange(
|
|
150
|
-
this.model.showOutliers =
|
|
151
|
+
onShowOutliersChange(e) {
|
|
152
|
+
this.model.showOutliers = e.target.checked;
|
|
151
153
|
}
|
|
152
|
-
onSplitBySelect(
|
|
153
|
-
this.splitByFieldElement.value && !this.splitByFieldElement.value.disabled && (this.contentKind =
|
|
154
|
+
onSplitBySelect(e) {
|
|
155
|
+
this.splitByFieldElement.value && !this.splitByFieldElement.value.disabled && (this.contentKind = a.splitByField, this.setupPopover(e));
|
|
154
156
|
}
|
|
155
|
-
onSortOrderSelect(
|
|
156
|
-
this.contentKind =
|
|
157
|
+
onSortOrderSelect(e) {
|
|
158
|
+
this.contentKind = a.sortOrder, this.setupPopover(e);
|
|
157
159
|
}
|
|
158
|
-
setupPopover(
|
|
159
|
-
|
|
160
|
-
let
|
|
160
|
+
setupPopover(e) {
|
|
161
|
+
e.stopImmediatePropagation(), this.boxPlotPopover = C(this.boxPlotPopover);
|
|
162
|
+
let t, s, i, n = !1;
|
|
161
163
|
switch (this.contentKind) {
|
|
162
|
-
case
|
|
163
|
-
|
|
164
|
+
case a.category:
|
|
165
|
+
t = this.categoryElement.value, s = this._messages.categoryHeader, i = this.model.category === u ? "" : this.model.category;
|
|
164
166
|
break;
|
|
165
|
-
case
|
|
166
|
-
|
|
167
|
+
case a.numericFields:
|
|
168
|
+
t = this.numericFieldsElement.value, s = this._messages.numericFieldsHeader, i = this.model.numericFields;
|
|
167
169
|
break;
|
|
168
|
-
case
|
|
169
|
-
|
|
170
|
+
case a.splitByField:
|
|
171
|
+
t = this.splitByFieldElement.value, s = this._messages.splitByFieldHeader, i = this.model.splitByField;
|
|
170
172
|
break;
|
|
171
|
-
case
|
|
172
|
-
|
|
173
|
+
case a.sortOrder:
|
|
174
|
+
t = this.sortOrderElement.value, s = this._messages.selectSortOrder, i = this.model.getDataSortOrder(), n = this.isCustomSortDisabled;
|
|
173
175
|
break;
|
|
174
176
|
}
|
|
175
|
-
this.boxPlotPopover =
|
|
177
|
+
this.boxPlotPopover = L(l`<arcgis-charts-config-box-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} .isCustomSortDisabled=${n} @arcgisChartsConfigBoxPlotDataPopoverChange=${this.onBoxPlotDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-box-plot-popover>`), !document.body.contains(this.boxPlotPopover) && this.boxPlotPopover !== null && document.body.appendChild(this.boxPlotPopover);
|
|
176
178
|
}
|
|
177
|
-
onAddNumericFields(
|
|
178
|
-
this.contentKind =
|
|
179
|
+
onAddNumericFields(e) {
|
|
180
|
+
this.contentKind = a.numericFields, this.setupPopover(e);
|
|
179
181
|
}
|
|
180
182
|
getCorrectedSplitByValue() {
|
|
181
|
-
return this.model.splitByField?.trim() === "" ? "" :
|
|
183
|
+
return this.model.splitByField?.trim() === "" ? "" : p(this.layerFieldsInfo, this.model.splitByField);
|
|
182
184
|
}
|
|
183
185
|
getCorrectedCategoryValue() {
|
|
184
|
-
return
|
|
186
|
+
return P({
|
|
185
187
|
fieldName: this.model.category,
|
|
186
188
|
fieldList: this.layerFieldsInfo
|
|
187
|
-
}) ? "" :
|
|
189
|
+
}) ? "" : p(this.layerFieldsInfo, this.model.category);
|
|
188
190
|
}
|
|
189
191
|
resetToOriginalCustomSortLabels() {
|
|
190
192
|
this.selectedCustomSortItemId = "", this.model.orderByList = [...this.originalCustomSortLabels], this.sortOrderResetCounter += 1;
|
|
191
193
|
}
|
|
192
194
|
renderCustomSortUI() {
|
|
193
|
-
const
|
|
194
|
-
return
|
|
195
|
+
const e = this.model.getDataSortOrder(), t = this.model.getAxisValueFormat(0)?.type, s = this.model.orderByList.indexOf(this.selectedCustomSortItemId);
|
|
196
|
+
return t === k.CategoryAxisFormat && e === h.customSort && !this.isCustomSortDisabled ? l`<calcite-label class=${o(r.label)}><div class=${o(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s === 0 || s === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${c.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s === -1 || s === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${c.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${y(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category === u ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
195
197
|
}
|
|
196
|
-
renderNumericFields(
|
|
197
|
-
const
|
|
198
|
-
for (const s of
|
|
199
|
-
|
|
200
|
-
return
|
|
198
|
+
renderNumericFields(e) {
|
|
199
|
+
const t = [];
|
|
200
|
+
for (const s of e)
|
|
201
|
+
t.push(this.buildNumericFieldItem(s));
|
|
202
|
+
return l`<calcite-list label class=${o(r.fieldList)} ${m(this.numericFieldsElement)}>${t}</calcite-list>`;
|
|
201
203
|
}
|
|
202
204
|
renderCategory() {
|
|
203
|
-
const
|
|
204
|
-
return
|
|
205
|
+
const e = this.getCorrectedCategoryValue(), t = this.model.numericFields.length === 0 || (this.model.numericFields ?? []).length > 1 && this.model.splitByField !== "";
|
|
206
|
+
return l`<arcgis-charts-config-field-picker .label=${e} .disabled=${t} @click=${this.onCategorySelect} ${m(this.categoryElement)}></arcgis-charts-config-field-picker>`;
|
|
205
207
|
}
|
|
206
208
|
renderSplitBy() {
|
|
207
|
-
const
|
|
208
|
-
return
|
|
209
|
+
const e = this.getCorrectedSplitByValue();
|
|
210
|
+
return l`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`;
|
|
209
211
|
}
|
|
210
212
|
renderSorting() {
|
|
211
|
-
return
|
|
213
|
+
return l`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${m(this.sortOrderElement)}></arcgis-charts-config-field-picker>`;
|
|
212
214
|
}
|
|
213
215
|
render() {
|
|
214
|
-
const
|
|
215
|
-
return
|
|
216
|
+
const e = this.renderCategory(), t = this.renderNumericFields([...this.model.numericFields ?? []]), s = this.renderSplitBy(), i = this.renderSorting(), n = this.renderCustomSortUI();
|
|
217
|
+
return l`<calcite-label class=${o(r.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(r.fab)}><calcite-button appearance=outline-fill kind=neutral scale=m width=auto round icon-start=plus @click=${this.onAddNumericFields}><span>${this._messages.selectNumericFields}</span></calcite-button></div><calcite-label class=${o(r.label)}><div>${this._messages.category} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(r.label)}><div class=${o(this.disableSplitBy ? r.dimText : "")}>${this._messages.splitBy} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields ?? []).length > 1 ? l`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>` : null}</div><calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(r.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`;
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
220
|
b("arcgis-charts-config-box-plot-data", E);
|
|
@@ -5,6 +5,5 @@ import "../arcgis-charts-config-box-plot-popover/index.js";
|
|
|
5
5
|
import "@esri/calcite-components/components/calcite-label";
|
|
6
6
|
import "@esri/calcite-components/components/calcite-button";
|
|
7
7
|
import "../arcgis-charts-config-field-picker/index.js";
|
|
8
|
-
import "@esri/calcite-components/components/calcite-fab";
|
|
9
8
|
import "@esri/calcite-components/components/calcite-switch";
|
|
10
9
|
export * from "./customElement.js";
|