@arcgis/charts-components 5.1.0-next.111 → 5.1.0-next.113
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/README.md +2 -2
- package/dist/cdn/24TOMTMP.js +2 -0
- package/dist/cdn/2EPXIQFD.js +2 -0
- package/dist/cdn/2JUO3GP2.js +2 -0
- package/dist/cdn/2SVBUT3V.js +2 -0
- package/dist/cdn/2XTQT6TW.js +2 -0
- package/dist/cdn/{ANMNNZTA.js → 2YI4HWFY.js} +39 -39
- package/dist/cdn/34WNZMJY.js +2 -0
- package/dist/cdn/43P4WOC4.js +2 -0
- package/dist/cdn/4G5JOLEP.js +2 -0
- package/dist/cdn/4MZJZQDO.js +2 -0
- package/dist/cdn/52QMEXI6.js +2 -0
- package/dist/cdn/5I75UYWD.js +2 -0
- package/dist/cdn/5M72DGYL.js +2 -0
- package/dist/cdn/5PG6PXDG.js +2 -0
- package/dist/cdn/6FGRLBTA.js +2 -0
- package/dist/cdn/6JNHTWDQ.js +2 -0
- package/dist/cdn/6YSH3ROL.js +2 -0
- package/dist/cdn/75Y43JLP.js +2 -0
- package/dist/cdn/777EBGS5.js +2 -0
- package/dist/cdn/7AVVBDQS.js +4 -0
- package/dist/cdn/7EDHTVVK.js +2 -0
- package/dist/cdn/7MHEEH5F.js +2 -0
- package/dist/cdn/7MKAC33Z.js +2 -0
- package/dist/cdn/7Y76VKGS.js +2 -0
- package/dist/cdn/AC2XSIOU.js +2 -0
- package/dist/cdn/AEESEH6N.js +2 -0
- package/dist/cdn/AYY2C4BW.js +2 -0
- package/dist/cdn/BH7WDRGU.js +2 -0
- package/dist/cdn/BZUQTY3A.js +2 -0
- package/dist/cdn/CMPHBGKB.js +2 -0
- package/dist/cdn/DDA7NVBX.js +2 -0
- package/dist/cdn/DMDXALHQ.js +2 -0
- package/dist/cdn/DX5LK7LS.js +2 -0
- package/dist/cdn/ERUYMQOC.js +2 -0
- package/dist/cdn/{CSNF7XRL.js → ESUMWLYT.js} +1 -1
- package/dist/cdn/EULFJ5JL.js +2 -0
- package/dist/cdn/EX27CNDS.js +2 -0
- package/dist/cdn/FIMXZMTB.js +2 -0
- package/dist/cdn/FYI7J2KF.js +2 -0
- package/dist/cdn/G42X3FFH.js +2 -0
- package/dist/cdn/GGZNH26O.js +2 -0
- package/dist/cdn/HIQSXKPT.js +3 -0
- package/dist/cdn/HS2WQJEO.js +2 -0
- package/dist/cdn/IBCUXQZ4.js +2 -0
- package/dist/cdn/IC4OZCXG.js +2 -0
- package/dist/cdn/JGD2M47O.js +2 -0
- package/dist/cdn/KGOERXN5.js +2 -0
- package/dist/cdn/{JEQDHNEJ.js → KPXH2MNB.js} +1 -1
- package/dist/cdn/KSBWHMXE.js +2 -0
- package/dist/cdn/{6KFD2LHE.js → L3ULFQN3.js} +1 -1
- package/dist/cdn/LKHNZDEC.js +2 -0
- package/dist/cdn/LXVLBS7T.js +2 -0
- package/dist/cdn/M5E3NFDP.js +2 -0
- package/dist/cdn/MKEUDI3M.js +2 -0
- package/dist/cdn/MKQPW6B4.js +2 -0
- package/dist/cdn/MVAMHZ3Q.js +2 -0
- package/dist/cdn/{VTJXTTAB.js → MZ2UZAFW.js} +1 -1
- package/dist/cdn/N265ZHHU.js +2 -0
- package/dist/cdn/N2S6YV3I.js +2 -0
- package/dist/cdn/N3EATDXE.js +2 -0
- package/dist/cdn/NLWP2JOG.js +2 -0
- package/dist/cdn/NR3BCOHU.js +3 -0
- package/dist/cdn/O2JEDVIA.js +2 -0
- package/dist/cdn/OB7IDW6S.js +2 -0
- package/dist/cdn/OBPCKG62.js +2 -0
- package/dist/cdn/OCERCT4I.js +2 -0
- package/dist/cdn/OFN7ED75.js +2 -0
- package/dist/cdn/OQSFVGUL.js +2 -0
- package/dist/cdn/PA3PSUQ3.js +2 -0
- package/dist/cdn/PYFMKPMO.js +2 -0
- package/dist/cdn/QRZ32JMG.js +2 -0
- package/dist/cdn/R3GNKVFS.js +2 -0
- package/dist/cdn/R3Y2F64T.js +2 -0
- package/dist/cdn/RBVV7JGY.js +102 -0
- package/dist/cdn/RSXO7AZM.js +2 -0
- package/dist/cdn/S32VCEG7.js +2 -0
- package/dist/cdn/S7ASARWB.js +2 -0
- package/dist/cdn/SBS4J65N.js +2 -0
- package/dist/cdn/SVMC3JP5.js +2 -0
- package/dist/cdn/SYXU6NZX.js +2 -0
- package/dist/cdn/T3CSQ5DU.js +2 -0
- package/dist/cdn/T3NJTAF3.js +2 -0
- package/dist/cdn/T53WJZQN.js +2 -0
- package/dist/cdn/TES5ZESK.js +2 -0
- package/dist/cdn/{XSMRKVR2.js → TJQGGNGV.js} +1 -1
- package/dist/cdn/TOO3T62Y.js +2 -0
- package/dist/cdn/U5ZB4YD6.js +2 -0
- package/dist/cdn/UK2A3DRS.js +2 -0
- package/dist/cdn/UNDCO72C.js +2 -0
- package/dist/cdn/UR537UXK.js +2 -0
- package/dist/cdn/VMAOMKFN.js +2 -0
- package/dist/cdn/VV7JMGHL.js +2 -0
- package/dist/cdn/W6CIWZSM.js +2 -0
- package/dist/cdn/WA5XK3HC.js +2 -0
- package/dist/cdn/WD4QY4YU.js +2 -0
- package/dist/cdn/WESXMGHU.js +2 -0
- package/dist/cdn/WFDVEHVL.js +2 -0
- package/dist/cdn/WI3CE5TT.js +2 -0
- package/dist/cdn/WNZ2PSFZ.js +2 -0
- package/dist/cdn/XLJSZ42M.js +2 -0
- package/dist/cdn/XM6GBBOL.js +2 -0
- package/dist/cdn/XOB365BI.js +2 -0
- package/dist/cdn/Y2AULE2F.js +2 -0
- package/dist/cdn/YE5ASSSN.js +2 -0
- package/dist/cdn/ZBLRD77K.js +2 -0
- package/dist/cdn/{5RMUCBSG.js → ZZRH7LXO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +12 -12
- package/dist/chunks/bar-chart-model.js +20 -47
- package/dist/chunks/bar-chart-series.js +10 -40
- package/dist/chunks/box-plot-data.js +132 -155
- package/dist/chunks/box-plot-model.js +18 -18
- package/dist/chunks/chart-model.js +76 -103
- package/dist/chunks/chart-object-literals.js +189 -0
- package/dist/chunks/chart-ui-utils.js +17 -16
- package/dist/chunks/chart-ui-utils2.js +91 -116
- package/dist/chunks/class-breaks.js +375 -196
- package/dist/chunks/combo-bar-line-chart-model.js +19 -18
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +56 -84
- package/dist/chunks/data.js +82 -105
- package/dist/chunks/default.js +6 -7
- package/dist/chunks/gauge-model.js +42 -69
- package/dist/chunks/generate-x-axis-title.js +39 -66
- package/dist/chunks/heat-chart-model.js +183 -183
- package/dist/chunks/histogram-data.js +56 -80
- package/dist/chunks/histogram-model.js +24 -24
- package/dist/chunks/index.js +560 -21042
- package/dist/chunks/index2.js +8706 -596
- package/dist/chunks/index3.js +873 -160
- package/dist/chunks/index4.js +701 -76
- package/dist/chunks/index5.js +10794 -62
- package/dist/chunks/index6.js +99 -0
- package/dist/chunks/index7.js +66 -0
- package/dist/chunks/interfaces.js +31 -32
- package/dist/chunks/line-chart-model.js +12 -11
- package/dist/chunks/model-setter.js +44 -41
- package/dist/chunks/model-types.js +43 -0
- package/dist/chunks/model-with-y-guides.js +89 -116
- package/dist/chunks/negative-values-stacked-to-baseline.js +50 -79
- package/dist/chunks/pie-chart-data.js +89 -111
- package/dist/chunks/pie-chart-model.js +46 -70
- package/dist/chunks/radar-chart-model.js +35 -62
- package/dist/chunks/resource.js +8 -10
- package/dist/chunks/rotated-state.js +24 -52
- package/dist/chunks/scatterplot-model.js +90 -112
- package/dist/chunks/serial-chart-data.js +540 -530
- package/dist/chunks/serial-chart-model.js +90 -115
- package/dist/chunks/series-length.js +25 -53
- package/dist/chunks/series-types.js +21 -206
- package/dist/chunks/series.js +9 -38
- package/dist/chunks/time-zone.js +14 -15
- package/dist/chunks/type-guards.js +23 -132
- package/dist/chunks/type-guards2.js +100 -192
- package/dist/chunks/type-guards3.js +173 -0
- package/dist/chunks/utils.js +75 -97
- package/dist/chunks/utils2.js +34 -63
- package/dist/chunks/web-component-utils.js +85 -83
- package/dist/chunks/x-bounds.js +69 -95
- package/dist/components/arcgis-chart/customElement.js +3670 -3637
- package/dist/components/arcgis-charts-action-bar/customElement.js +8 -9
- package/dist/components/arcgis-charts-config-axis/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +33 -60
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +47 -70
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +33 -54
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +37 -64
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +15 -43
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +12 -39
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +87 -111
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +41 -65
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +13 -40
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +18 -45
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +17 -45
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +47 -68
- package/dist/components/arcgis-charts-config-font-style/customElement.js +21 -48
- package/dist/components/arcgis-charts-config-format/customElement.js +55 -82
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +12 -41
- package/dist/components/arcgis-charts-config-general/customElement.js +29 -55
- package/dist/components/arcgis-charts-config-guide/customElement.js +44 -68
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +14 -43
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -3
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +10 -39
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +29 -56
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +153 -175
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +56 -79
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -55
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +39 -62
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -50
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +27 -54
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +23 -46
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +46 -69
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +33 -61
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +14 -42
- package/dist/components/arcgis-charts-config-line-style/customElement.js +9 -11
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +28 -55
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +24 -49
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +42 -66
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +38 -65
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +15 -43
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +31 -58
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +31 -55
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +16 -42
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +10 -38
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +21 -50
- package/dist/components/arcgis-charts-info-modal/customElement.js +17 -43
- 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 +57 -3
- package/dist/index.js +464 -459
- package/dist/json-schema/index.d.ts +4839 -4825
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
- package/dist/model.js +77 -39
- package/dist/spec/web-chart.d.ts +5 -1
- package/dist/utils/layer/index.d.ts +3 -1
- package/dist/utils/layer/utils/index.d.ts +16 -4
- package/package.json +3 -3
- package/dist/cdn/2NCZCQJQ.js +0 -2
- package/dist/cdn/2QWN4KMQ.js +0 -2
- package/dist/cdn/3HHF7GDV.js +0 -2
- package/dist/cdn/43EPRNLY.js +0 -2
- package/dist/cdn/53YROF54.js +0 -2
- package/dist/cdn/57M5BGHO.js +0 -2
- package/dist/cdn/5Y2AIQMX.js +0 -2
- package/dist/cdn/6CGECXEP.js +0 -2
- package/dist/cdn/6MDEAZCW.js +0 -2
- package/dist/cdn/6YLXJOBN.js +0 -2
- package/dist/cdn/7LE76H3V.js +0 -2
- package/dist/cdn/7OK6DOOJ.js +0 -2
- package/dist/cdn/7QJ77UCB.js +0 -2
- package/dist/cdn/7XCTW7TF.js +0 -2
- package/dist/cdn/ABPBMLW4.js +0 -4
- package/dist/cdn/ACBNPWST.js +0 -2
- package/dist/cdn/AU5NU5OU.js +0 -2
- package/dist/cdn/AUKWLONZ.js +0 -2
- package/dist/cdn/B3TAQSVG.js +0 -2
- package/dist/cdn/B7BDZS5Q.js +0 -2
- package/dist/cdn/B7OT7NHE.js +0 -2
- package/dist/cdn/BIW46U2E.js +0 -2
- package/dist/cdn/BNMVFWWL.js +0 -2
- package/dist/cdn/BUPTELGR.js +0 -2
- package/dist/cdn/C3EG6JVL.js +0 -2
- package/dist/cdn/CEML6AMG.js +0 -2
- package/dist/cdn/CSISDIV5.js +0 -2
- package/dist/cdn/CXSBPI44.js +0 -2
- package/dist/cdn/DEWZASZK.js +0 -2
- package/dist/cdn/FJFVBE6K.js +0 -2
- package/dist/cdn/FLBXUDIS.js +0 -2
- package/dist/cdn/FQKOG42T.js +0 -2
- package/dist/cdn/FTXNBE44.js +0 -2
- package/dist/cdn/FU6JT3UD.js +0 -2
- package/dist/cdn/H7SXQSDY.js +0 -2
- package/dist/cdn/HFHPPFTL.js +0 -2
- package/dist/cdn/IQ5ZYJIB.js +0 -2
- package/dist/cdn/IVSSNIVI.js +0 -2
- package/dist/cdn/J27JNN6U.js +0 -2
- package/dist/cdn/J5O4KJG3.js +0 -2
- package/dist/cdn/KJHX7M5S.js +0 -2
- package/dist/cdn/KKDZFW5O.js +0 -2
- package/dist/cdn/KRZLTTVV.js +0 -2
- package/dist/cdn/KUOSDD5D.js +0 -2
- package/dist/cdn/L767SIJD.js +0 -2
- package/dist/cdn/LSF52M7M.js +0 -2
- package/dist/cdn/LW3BORFM.js +0 -2
- package/dist/cdn/M3ATYECI.js +0 -2
- package/dist/cdn/M6BMA2X5.js +0 -2
- package/dist/cdn/MCSGNGSS.js +0 -2
- package/dist/cdn/MJEMDC6S.js +0 -2
- package/dist/cdn/MY2TTPFJ.js +0 -2
- package/dist/cdn/MZQHYO73.js +0 -2
- package/dist/cdn/N6ZYLQ35.js +0 -2
- package/dist/cdn/ODM6XDHJ.js +0 -2
- package/dist/cdn/PAPWPFW4.js +0 -2
- package/dist/cdn/PDDEFX6K.js +0 -2
- package/dist/cdn/PNQ6VVJK.js +0 -2
- package/dist/cdn/QCO44WFX.js +0 -2
- package/dist/cdn/QCZO6SPY.js +0 -2
- package/dist/cdn/QJQCXQZQ.js +0 -2
- package/dist/cdn/QLBJVTC3.js +0 -2
- package/dist/cdn/QLRYZVYC.js +0 -2
- package/dist/cdn/QRJS3CVV.js +0 -2
- package/dist/cdn/QWCMSPHD.js +0 -2
- package/dist/cdn/RCS3DD7Z.js +0 -104
- package/dist/cdn/S52W7JS7.js +0 -2
- package/dist/cdn/SDWC5FQU.js +0 -2
- package/dist/cdn/SLGQSOZB.js +0 -2
- package/dist/cdn/SNQFOXQP.js +0 -2
- package/dist/cdn/STPMMRCH.js +0 -2
- package/dist/cdn/SUYBENSN.js +0 -2
- package/dist/cdn/TAW7DR2R.js +0 -2
- package/dist/cdn/TUM7FWOK.js +0 -2
- package/dist/cdn/UFCW5HCY.js +0 -2
- package/dist/cdn/URPIV4FP.js +0 -2
- package/dist/cdn/URX6VCYJ.js +0 -2
- package/dist/cdn/V2LSSOBU.js +0 -2
- package/dist/cdn/V7JH3U65.js +0 -2
- package/dist/cdn/VFOLCHS4.js +0 -2
- package/dist/cdn/VFZ5WZJL.js +0 -2
- package/dist/cdn/WEAUUIMY.js +0 -2
- package/dist/cdn/WHL3PAOM.js +0 -2
- package/dist/cdn/WQRH2BWD.js +0 -2
- package/dist/cdn/WQRXJQDO.js +0 -2
- package/dist/cdn/WTIY4H4L.js +0 -2
- package/dist/cdn/WXEJ47F6.js +0 -2
- package/dist/cdn/XUAJWZRU.js +0 -2
- package/dist/cdn/XYTCID73.js +0 -2
- package/dist/cdn/Z7L63G6V.js +0 -2
- package/dist/cdn/ZJOBVONS.js +0 -2
- package/dist/cdn/ZZQFMONS.js +0 -2
- package/dist/chunks/setup-utils.js +0 -80
- package/dist/model/index.d.ts +0 -19
- package/dist/spec/index.d.ts +0 -8
- package/dist/utils/index.d.ts +0 -33
- /package/dist/cdn/{S5OM65RV.js → COYWSD6X.js} +0 -0
|
@@ -1,87 +1,65 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import "@arcgis/toolkit/intl";
|
|
3
|
-
import { memoize as $, isEmpty as E, isNull as M, cloneDeep as R } from "lodash-es";
|
|
4
|
-
import "luxon";
|
|
5
|
-
import "@arcgis/toolkit/type";
|
|
6
|
-
import { r as m, p as b, n as F, u as U } from "./series-types.js";
|
|
7
|
-
import { i as z } from "./rest-js-object-literals.js";
|
|
8
|
-
import { M as O, bM as A, aW as G, ay as _, bp as P, c$ as V, b5 as k, N as w } from "./index.js";
|
|
9
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
10
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
11
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
12
|
-
import "@arcgis/core/Graphic.js";
|
|
13
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
15
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
16
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
17
2
|
import { substitute as h } from "@arcgis/core/intl.js";
|
|
18
|
-
import "
|
|
19
|
-
import "simple-statistics";
|
|
20
|
-
import "@arcgis/core/core/sql.js";
|
|
21
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
22
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
23
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
24
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
25
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
26
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
27
|
-
import "./runtime.js";
|
|
28
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
29
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
30
|
-
import "@arcgis/core/geometry/Point.js";
|
|
31
|
-
import "@arcgis/toolkit/dom";
|
|
32
|
-
import { g as L, u as q } from "./utils.js";
|
|
3
|
+
import { memoize as W, isEmpty as $, isNull as R, cloneDeep as U } from "lodash-es";
|
|
33
4
|
import { P as y, a as g } from "./common.js";
|
|
34
|
-
import { g as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
|
|
38
|
-
|
|
5
|
+
import { g as A, u as q } from "./utils.js";
|
|
6
|
+
import { g as z } from "./data.js";
|
|
7
|
+
import { a as G } from "./series-length.js";
|
|
8
|
+
import { g as _ } from "./utils2.js";
|
|
9
|
+
import { S as M, t as k, a3 as H } from "./index.js";
|
|
10
|
+
import { d as P } from "./index3.js";
|
|
11
|
+
import { m as O, an as L, n as V } from "./index2.js";
|
|
12
|
+
import { i as w } from "./index5.js";
|
|
13
|
+
import { r as m, p as b, n as F, u as J } from "./chart-object-literals.js";
|
|
14
|
+
import { i as Q } from "./rest-js-object-literals.js";
|
|
15
|
+
function v(r) {
|
|
16
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: s, mode: i }) : "", l = G(t), d = w(t);
|
|
39
17
|
return a === l || d;
|
|
40
18
|
}
|
|
41
|
-
function B(
|
|
42
|
-
const { config: t, layerInfo: e, mode: i, commonStrings:
|
|
19
|
+
function B(r) {
|
|
20
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? A({
|
|
43
21
|
config: t,
|
|
44
22
|
layerInfo: e,
|
|
45
|
-
commonStrings:
|
|
23
|
+
commonStrings: s,
|
|
46
24
|
numericFields: f(t),
|
|
47
25
|
aggregationType: T(t, i)
|
|
48
|
-
}) : "", l =
|
|
26
|
+
}) : "", l = _(1, t), d = w(t);
|
|
49
27
|
return a === l || d;
|
|
50
28
|
}
|
|
51
|
-
const I = (
|
|
52
|
-
function X(
|
|
53
|
-
const e =
|
|
54
|
-
return [`${t === y.Category ? e.y :
|
|
29
|
+
const I = (r) => r.series?.[0]?.x ?? "";
|
|
30
|
+
function X(r, t) {
|
|
31
|
+
const e = r.series?.[0];
|
|
32
|
+
return [`${t === y.Category ? e.y : V} ${b.Descending}`];
|
|
55
33
|
}
|
|
56
|
-
const K = (
|
|
34
|
+
const K = (r, t) => {
|
|
57
35
|
let e = g.valueDesc;
|
|
58
|
-
const i =
|
|
59
|
-
return i === F.Category && Array.isArray(
|
|
60
|
-
}, f =
|
|
36
|
+
const i = r.orderOptions?.data?.orderType ?? X(r, t), s = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : b.Descending;
|
|
37
|
+
return i === F.Category && Array.isArray(s) ? e = g.customSort : i === F.Category ? s === b.Ascending ? e = g.labelAsc : e = g.labelDesc : s === b.Ascending ? e = g.valueAsc : e = g.valueDesc, e;
|
|
38
|
+
}, f = W(
|
|
61
39
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
62
40
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
63
|
-
(
|
|
41
|
+
(r) => {
|
|
64
42
|
let t = [];
|
|
65
|
-
return t =
|
|
43
|
+
return t = r.series?.[0]?.query?.outStatistics?.map(
|
|
66
44
|
(e) => e.onStatisticField
|
|
67
|
-
) ?? [
|
|
45
|
+
) ?? [r.series?.[0]?.y ?? ""], t.filter((e) => e !== "");
|
|
68
46
|
},
|
|
69
47
|
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
70
|
-
(
|
|
71
|
-
), T = (
|
|
72
|
-
const e = f(
|
|
48
|
+
(r) => r.series
|
|
49
|
+
), T = (r, t) => {
|
|
50
|
+
const e = f(r);
|
|
73
51
|
let i;
|
|
74
|
-
return t === y.Fields && e.length === 0 ? i = m.Sum : i =
|
|
52
|
+
return t === y.Fields && e.length === 0 ? i = m.Sum : i = r.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? m.NoAggregation, i;
|
|
75
53
|
};
|
|
76
|
-
function Y(
|
|
77
|
-
const { config: t, layerInfo: e, mode: i, commonStrings:
|
|
54
|
+
function Y(r) {
|
|
55
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = L(e?.layer).idField, l = H(s, a), d = I(t), c = t.series[0]?.dataLabels, o = {
|
|
78
56
|
...l,
|
|
79
57
|
x: i === y.Category ? d : O,
|
|
80
58
|
slices: t.series?.[0]?.slices,
|
|
81
59
|
dataLabels: {
|
|
82
60
|
...l.dataLabels,
|
|
83
|
-
type: l.dataLabels?.type ??
|
|
84
|
-
content: { ...l.dataLabels?.content, ...c?.content, type:
|
|
61
|
+
type: l.dataLabels?.type ?? J.Text,
|
|
62
|
+
content: { ...l.dataLabels?.content, ...c?.content, type: Q.TS },
|
|
85
63
|
visible: c?.visible ?? !1
|
|
86
64
|
},
|
|
87
65
|
innerRadiusSize: t.series?.[0]?.innerRadius,
|
|
@@ -95,7 +73,7 @@ function Y(s) {
|
|
|
95
73
|
}, n = T(t, i);
|
|
96
74
|
if (n !== m.NoAggregation && a !== void 0) {
|
|
97
75
|
const u = `${n}_${a}_0`.toUpperCase();
|
|
98
|
-
o.y = i === y.Category ? u :
|
|
76
|
+
o.y = i === y.Category ? u : V, o.query = {
|
|
99
77
|
outStatistics: i === y.Category ? [
|
|
100
78
|
{
|
|
101
79
|
statisticType: n,
|
|
@@ -105,28 +83,28 @@ function Y(s) {
|
|
|
105
83
|
] : []
|
|
106
84
|
};
|
|
107
85
|
}
|
|
108
|
-
return i === y.Category && o.query !== void 0 ? o.query.groupByFieldsForStatistics = [d] : delete o.query?.groupByFieldsForStatistics,
|
|
86
|
+
return i === y.Category && o.query !== void 0 ? o.query.groupByFieldsForStatistics = [d] : delete o.query?.groupByFieldsForStatistics, U(o);
|
|
109
87
|
}
|
|
110
|
-
function D(
|
|
111
|
-
const { config: t, layerInfo: e, mode: i, commonStrings:
|
|
88
|
+
function D(r) {
|
|
89
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, { layerFieldsInfo: a } = e, { idField: l, isTraditionalTypeOID: d } = L(e.layer), c = I(t), o = f(t), n = T(t, i), u = d && (o.length === 0 || o.includes(l)), p = k(n, s), x = u ? "" : o.map((E) => P(a ?? [], E)).join(", "), S = P(a ?? [], c);
|
|
112
90
|
let C = "", N;
|
|
113
|
-
return i === y.Fields ? N = o.length === 0 : N = c === "", N ? C =
|
|
91
|
+
return i === y.Fields ? N = o.length === 0 : N = c === "", N ? C = s.utilsStrings.chartType.pieChart : n === m.NoAggregation ? C = h(s.titleLabels.aggrFieldsByCategory, {
|
|
114
92
|
aggregationFields: u ? l : x,
|
|
115
93
|
category: S
|
|
116
|
-
}) : n === m.Count ? C = h(
|
|
94
|
+
}) : n === m.Count ? C = h(s.titleLabels.aggrTypeCategory, {
|
|
117
95
|
aggregationType: p,
|
|
118
96
|
category: S
|
|
119
|
-
}) : o.length > 0 && (S === O ||
|
|
97
|
+
}) : o.length > 0 && (S === O || $(S) || R(S) ? C = h(s.titleLabels.aggrTypeOfAggrFields, {
|
|
120
98
|
aggregationType: p,
|
|
121
99
|
aggregationFields: x
|
|
122
|
-
}) : C = h(
|
|
100
|
+
}) : C = h(s.titleLabels.aggrTypeOfAggrFieldsByCategory, {
|
|
123
101
|
aggregationType: p,
|
|
124
102
|
aggregationFields: x,
|
|
125
103
|
category: S
|
|
126
104
|
})), C;
|
|
127
105
|
}
|
|
128
|
-
const
|
|
129
|
-
const { newSortOrderKind: t, config: e, orderByList: i } =
|
|
106
|
+
const ue = (r) => {
|
|
107
|
+
const { newSortOrderKind: t, config: e, orderByList: i } = r;
|
|
130
108
|
e.orderOptions ??= {}, t === g.customSort && i !== void 0 ? e.orderOptions.data = {
|
|
131
109
|
orderType: F.Category,
|
|
132
110
|
orderBy: [...i]
|
|
@@ -134,34 +112,34 @@ const we = (s) => {
|
|
|
134
112
|
orderType: t === g.labelAsc || t === g.labelDesc ? F.Category : F.YValue,
|
|
135
113
|
orderBy: t === g.labelAsc || t === g.valueAsc ? b.Ascending : b.Descending
|
|
136
114
|
};
|
|
137
|
-
},
|
|
138
|
-
const { newCategory: t, config: e, layerInfo: i, mode:
|
|
115
|
+
}, pe = (r) => {
|
|
116
|
+
const { newCategory: t, config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = e.series?.length ?? 0, d = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), c = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
|
|
139
117
|
if (e.series.forEach((o) => {
|
|
140
|
-
o.x =
|
|
118
|
+
o.x = s === y.Category ? t : O, o.query !== void 0 && t !== O ? o.query.groupByFieldsForStatistics = [t] : delete o.query?.groupByFieldsForStatistics;
|
|
141
119
|
}), l === 0) {
|
|
142
|
-
const o = [Y({ config: e, layerInfo: i, mode:
|
|
120
|
+
const o = [Y({ config: e, layerInfo: i, mode: s, commonStrings: a })];
|
|
143
121
|
e.series = o;
|
|
144
122
|
}
|
|
145
123
|
if (i !== void 0) {
|
|
146
124
|
if (c) {
|
|
147
|
-
const n =
|
|
125
|
+
const n = A({
|
|
148
126
|
config: e,
|
|
149
127
|
layerInfo: i,
|
|
150
128
|
numericFields: f(e),
|
|
151
|
-
aggregationType: T(e,
|
|
129
|
+
aggregationType: T(e, s),
|
|
152
130
|
commonStrings: a
|
|
153
131
|
});
|
|
154
132
|
q(e, 1, n);
|
|
155
133
|
}
|
|
156
|
-
e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode:
|
|
157
|
-
const o =
|
|
158
|
-
Z({ newNumericFields: o, config: e, layerInfo: i, mode:
|
|
134
|
+
e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
|
|
135
|
+
const o = s === y.Fields ? f(e).filter((n) => n !== L(i.layer).idField) : f(e);
|
|
136
|
+
Z({ newNumericFields: o, config: e, layerInfo: i, mode: s, commonStrings: a });
|
|
159
137
|
}
|
|
160
138
|
};
|
|
161
|
-
function j(
|
|
162
|
-
const { numericFields: t, aggregationType: e, config: i, layerInfo:
|
|
139
|
+
function j(r) {
|
|
140
|
+
const { numericFields: t, aggregationType: e, config: i, layerInfo: s, mode: a, commonStrings: l } = r, { layerFieldsInfo: d } = s, c = [], o = Y({
|
|
163
141
|
config: i,
|
|
164
|
-
layerInfo:
|
|
142
|
+
layerInfo: s,
|
|
165
143
|
mode: a,
|
|
166
144
|
commonStrings: l
|
|
167
145
|
}), n = {
|
|
@@ -171,13 +149,13 @@ function j(s) {
|
|
|
171
149
|
}
|
|
172
150
|
};
|
|
173
151
|
t.length <= 1 ? n.query.where = o.query?.where : delete n.query.where;
|
|
174
|
-
const u =
|
|
152
|
+
const u = z({
|
|
175
153
|
config: i,
|
|
176
154
|
xAxisField: I(i),
|
|
177
155
|
numericFields: t,
|
|
178
156
|
aggregationType: e,
|
|
179
157
|
mode: a,
|
|
180
|
-
layer:
|
|
158
|
+
layer: s.layer,
|
|
181
159
|
fieldList: d
|
|
182
160
|
}).name;
|
|
183
161
|
if (e !== m.NoAggregation)
|
|
@@ -204,70 +182,70 @@ function j(s) {
|
|
|
204
182
|
n.query = {};
|
|
205
183
|
n.y = u, c.push(n), i.series = c;
|
|
206
184
|
}
|
|
207
|
-
const
|
|
208
|
-
const { newAggregationType: t, config: e, layerInfo: i, mode:
|
|
185
|
+
const me = (r) => {
|
|
186
|
+
const { newAggregationType: t, config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = f(e), d = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), c = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
|
|
209
187
|
if (j({
|
|
210
188
|
config: e,
|
|
211
189
|
layerInfo: i,
|
|
212
190
|
numericFields: l,
|
|
213
191
|
aggregationType: t,
|
|
214
192
|
commonStrings: a,
|
|
215
|
-
mode:
|
|
193
|
+
mode: s
|
|
216
194
|
}), c) {
|
|
217
|
-
const p =
|
|
195
|
+
const p = A({
|
|
218
196
|
config: e,
|
|
219
197
|
layerInfo: i,
|
|
220
198
|
commonStrings: a,
|
|
221
199
|
numericFields: f(e),
|
|
222
|
-
aggregationType: T(e,
|
|
200
|
+
aggregationType: T(e, s)
|
|
223
201
|
});
|
|
224
202
|
q(e, 1, p);
|
|
225
203
|
}
|
|
226
|
-
e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode:
|
|
204
|
+
e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
|
|
227
205
|
const o = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
|
|
228
206
|
e.legend = {
|
|
229
|
-
...e.legend ??
|
|
207
|
+
...e.legend ?? M(),
|
|
230
208
|
displayNumericValue: n,
|
|
231
209
|
displayPercentage: u,
|
|
232
210
|
displayCategory: o
|
|
233
211
|
};
|
|
234
|
-
}, Z = (
|
|
235
|
-
let { newNumericFields: t } =
|
|
236
|
-
const { config: e, layerInfo: i, mode:
|
|
237
|
-
let d = T(e,
|
|
238
|
-
const c = v({ config: e, layerInfo: i, commonStrings: a, mode:
|
|
239
|
-
if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, l !== void 0 && (t.length === 0 &&
|
|
212
|
+
}, Z = (r) => {
|
|
213
|
+
let { newNumericFields: t } = r;
|
|
214
|
+
const { config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = L(i?.layer).idField;
|
|
215
|
+
let d = T(e, s);
|
|
216
|
+
const c = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), o = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
|
|
217
|
+
if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, l !== void 0 && (t.length === 0 && s === y.Category ? (t.push(l), d = m.Count) : d === m.Count && t.length >= 1 && !t.includes(l) && (d = m.Sum)), i !== void 0) {
|
|
240
218
|
if (j({
|
|
241
219
|
config: e,
|
|
242
220
|
layerInfo: i,
|
|
243
221
|
commonStrings: a,
|
|
244
222
|
numericFields: t,
|
|
245
223
|
aggregationType: d,
|
|
246
|
-
mode:
|
|
224
|
+
mode: s
|
|
247
225
|
}), o) {
|
|
248
|
-
const n =
|
|
226
|
+
const n = A({
|
|
249
227
|
config: e,
|
|
250
228
|
layerInfo: i,
|
|
251
229
|
commonStrings: a,
|
|
252
230
|
numericFields: f(e),
|
|
253
|
-
aggregationType: T(e,
|
|
231
|
+
aggregationType: T(e, s)
|
|
254
232
|
});
|
|
255
233
|
q(e, 1, n);
|
|
256
234
|
}
|
|
257
|
-
e.title && c && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode:
|
|
235
|
+
e.title && c && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
|
|
258
236
|
} else
|
|
259
237
|
e.series.forEach((n) => {
|
|
260
238
|
delete n.query, n.y = t[0];
|
|
261
239
|
});
|
|
262
|
-
},
|
|
240
|
+
}, fe = (r, t) => {
|
|
263
241
|
let e = [];
|
|
264
|
-
const i =
|
|
265
|
-
return
|
|
266
|
-
},
|
|
267
|
-
const { values: t, config: e, mode: i } =
|
|
242
|
+
const i = r.orderOptions?.data?.orderType, s = K(r, t), a = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : void 0;
|
|
243
|
+
return s === g.customSort && i === F.Category && Array.isArray(a) && (e = a), e;
|
|
244
|
+
}, Fe = (r) => {
|
|
245
|
+
const { values: t, config: e, mode: i } = r;
|
|
268
246
|
e.orderOptions ??= {};
|
|
269
|
-
const
|
|
270
|
-
K(e, i) === g.customSort &&
|
|
247
|
+
const s = e.orderOptions?.data?.orderType;
|
|
248
|
+
K(e, i) === g.customSort && s === F.Category && (e.orderOptions.data = {
|
|
271
249
|
orderType: F.Category,
|
|
272
250
|
orderBy: [...t]
|
|
273
251
|
});
|
|
@@ -276,12 +254,12 @@ export {
|
|
|
276
254
|
f as a,
|
|
277
255
|
T as b,
|
|
278
256
|
Z as c,
|
|
279
|
-
|
|
257
|
+
me as d,
|
|
280
258
|
K as e,
|
|
281
|
-
|
|
259
|
+
ue as f,
|
|
282
260
|
I as g,
|
|
283
|
-
|
|
284
|
-
|
|
261
|
+
fe as h,
|
|
262
|
+
Fe as i,
|
|
285
263
|
D as j,
|
|
286
|
-
|
|
264
|
+
pe as s
|
|
287
265
|
};
|
|
@@ -1,43 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { log as F } from "@arcgis/toolkit/log";
|
|
3
|
-
import { u as p } from "./
|
|
4
|
-
import {
|
|
3
|
+
import { u as p } from "./chart-object-literals.js";
|
|
4
|
+
import { Y as S, an as M } from "./index2.js";
|
|
5
|
+
import { i as W } from "./index5.js";
|
|
6
|
+
import { S as d, a5 as v, $ as _, ax as P, a2 as A, a3 as w } from "./index.js";
|
|
7
|
+
import { C as f } from "./index3.js";
|
|
5
8
|
import { C as G } from "./chart-model.js";
|
|
6
9
|
import { m as s } from "./model-setter.js";
|
|
7
10
|
import { b as c, P as h } from "./common.js";
|
|
8
11
|
import { M as T, a as k, W as z, b as B } from "./data-labels-visibility.js";
|
|
9
12
|
import { W as E } from "./data-labels-symbol.js";
|
|
10
13
|
import { a as V, b as R, e as j } from "./utils.js";
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
13
|
-
import {
|
|
14
|
-
import "luxon";
|
|
15
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
16
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
17
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
18
|
-
import "@arcgis/core/Graphic.js";
|
|
19
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
20
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
21
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
22
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
23
|
-
import "@esri/arcgis-html-sanitizer";
|
|
24
|
-
import "@arcgis/core/intl.js";
|
|
25
|
-
import "@arcgis/core/request.js";
|
|
26
|
-
import "simple-statistics";
|
|
27
|
-
import "@arcgis/core/core/sql.js";
|
|
28
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
29
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
30
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
31
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
32
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
33
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
34
|
-
import "./runtime.js";
|
|
35
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
36
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
37
|
-
import "@arcgis/core/geometry/Point.js";
|
|
38
|
-
import "@arcgis/toolkit/dom";
|
|
39
|
-
import { g as _, s as $, a as K, c as q, b as H, d as J, e as Q, f as X, h as L, i as O, j as Y } from "./pie-chart-data.js";
|
|
40
|
-
import { i as m } from "./rest-js-object-literals.js";
|
|
14
|
+
import { g as b, s as U, a as $, c as K, b as Y, d as q, e as H, f as J, h as L, i as O, j as Q } from "./pie-chart-data.js";
|
|
15
|
+
import { cloneDeep as X } from "lodash-es";
|
|
16
|
+
import { i as y } from "./rest-js-object-literals.js";
|
|
41
17
|
const Z = (t) => t.legend?.displayNumericValue ?? !1, ee = (t, e) => {
|
|
42
18
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayNumericValue = t);
|
|
43
19
|
}, te = (t) => t.legend?.displayCategory ?? !1, ie = (t, e) => {
|
|
@@ -49,7 +25,7 @@ const Z = (t) => t.legend?.displayNumericValue ?? !1, ee = (t, e) => {
|
|
|
49
25
|
}, le = (t) => t.legend?.valueLabelMaxWidth ?? 200, ne = (t, e) => {
|
|
50
26
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.valueLabelMaxWidth = t);
|
|
51
27
|
};
|
|
52
|
-
var ge = Object.defineProperty, ce = Object.getOwnPropertyDescriptor,
|
|
28
|
+
var ge = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, m = (t, e, i, o) => {
|
|
53
29
|
for (var l = ce(e, i), n = t.length - 1, g; n >= 0; n--)
|
|
54
30
|
(g = t[n]) && (l = g(e, i, l) || l);
|
|
55
31
|
return l && ge(e, i, l), l;
|
|
@@ -108,13 +84,13 @@ class u extends T {
|
|
|
108
84
|
ie(e, this._config), this.emitConfigUpdate("displayCategory");
|
|
109
85
|
}
|
|
110
86
|
}
|
|
111
|
-
|
|
87
|
+
m([
|
|
112
88
|
s
|
|
113
89
|
], u.prototype, "setDisplayNumericValue");
|
|
114
|
-
|
|
90
|
+
m([
|
|
115
91
|
s
|
|
116
92
|
], u.prototype, "setDisplayPercentage");
|
|
117
|
-
|
|
93
|
+
m([
|
|
118
94
|
s
|
|
119
95
|
], u.prototype, "setLabelMaxWidth");
|
|
120
96
|
const pe = [T];
|
|
@@ -123,11 +99,11 @@ const de = (t) => t.series?.[0]?.innerRadius, ue = (t, e) => {
|
|
|
123
99
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
124
100
|
}, fe = (t) => t.series?.[0]?.dataLabelsCharacterLimit, he = (t, e) => {
|
|
125
101
|
e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
|
|
126
|
-
}, D = (t) => t.series[0]?.startAngle,
|
|
102
|
+
}, D = (t) => t.series[0]?.startAngle, ye = (t, e) => {
|
|
127
103
|
e.series?.[0] && (e.series[0].startAngle = t);
|
|
128
|
-
},
|
|
104
|
+
}, me = (t, e) => {
|
|
129
105
|
e.series?.[0] && (e.series[0].endAngle = t);
|
|
130
|
-
}, Se = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0,
|
|
106
|
+
}, Se = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0, _e = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0, be = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0, Le = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1, Oe = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0, De = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0, Ce = (t, e) => {
|
|
131
107
|
e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
|
|
132
108
|
}, ve = (t) => t.series?.[0]?.valuePrefix, Pe = (t, e) => {
|
|
133
109
|
e.series?.[0] && (e.series[0].valuePrefix = t);
|
|
@@ -155,21 +131,21 @@ const de = (t) => t.series?.[0]?.innerRadius, ue = (t, e) => {
|
|
|
155
131
|
}, ze = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, Be = (t, e) => {
|
|
156
132
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
157
133
|
}, Ee = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Re = (t, e) => {
|
|
158
|
-
e.series?.[0] && (e.series[0].numericValueFormat ??=
|
|
134
|
+
e.series?.[0] && (e.series[0].numericValueFormat ??= _(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= _(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
159
135
|
}, je = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Ue = (t, e) => {
|
|
160
136
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
161
137
|
}, $e = (t) => t.series[0]?.ticks?.visible ?? !1, Ke = (t, e) => {
|
|
162
138
|
e.series?.[0] && (e.series[0].ticks ??= v(), e.series[0].ticks.visible = t);
|
|
163
|
-
},
|
|
164
|
-
t && e.series?.[0] && (e.series[0].ticks ??= v(), e.series[0].ticks.lineSymbol =
|
|
165
|
-
},
|
|
139
|
+
}, Ye = (t) => t.series[0]?.ticks?.lineSymbol, qe = (t, e) => {
|
|
140
|
+
t && e.series?.[0] && (e.series[0].ticks ??= v(), e.series[0].ticks.lineSymbol = X(t));
|
|
141
|
+
}, He = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, Je = (t, e) => e.series?.[0]?.slices?.[t]?.label, Qe = (t, e, i) => {
|
|
166
142
|
i.series?.[0]?.slices?.[e] && (i.series[0].slices[e].label = t);
|
|
167
|
-
},
|
|
143
|
+
}, Xe = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, Ze = (t, e, i) => {
|
|
168
144
|
const o = i.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
169
|
-
o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type:
|
|
170
|
-
type:
|
|
145
|
+
o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type: y.SLS, color: t }) : i.series?.[0]?.slices?.[e] !== void 0 && (i.series[0].slices[e].fillSymbol = {
|
|
146
|
+
type: y.SFS,
|
|
171
147
|
color: t,
|
|
172
|
-
outline: { type:
|
|
148
|
+
outline: { type: y.SLS, color: t }
|
|
173
149
|
});
|
|
174
150
|
}, et = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId), C = (t, e) => {
|
|
175
151
|
e.series?.[0]?.slices?.sort(
|
|
@@ -206,7 +182,7 @@ class r extends G {
|
|
|
206
182
|
await this.loadConfigFromLayer(e);
|
|
207
183
|
const { config: i } = e;
|
|
208
184
|
if (i !== void 0) {
|
|
209
|
-
const o =
|
|
185
|
+
const o = S(i.series);
|
|
210
186
|
this._mode = o !== f.PieFromFields ? h.Category : h.Fields;
|
|
211
187
|
}
|
|
212
188
|
typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -218,10 +194,10 @@ class r extends G {
|
|
|
218
194
|
* Category field for the pie chart.
|
|
219
195
|
*/
|
|
220
196
|
get category() {
|
|
221
|
-
return
|
|
197
|
+
return b(this._config);
|
|
222
198
|
}
|
|
223
199
|
set category(e) {
|
|
224
|
-
(!
|
|
200
|
+
(!W(this._config) || e.trim() !== "") && (U({
|
|
225
201
|
newCategory: e,
|
|
226
202
|
config: this._config,
|
|
227
203
|
layerInfo: this.layerInfo,
|
|
@@ -233,10 +209,10 @@ class r extends G {
|
|
|
233
209
|
* Numeric fields for the pie chart.
|
|
234
210
|
*/
|
|
235
211
|
get numericFields() {
|
|
236
|
-
return
|
|
212
|
+
return $(this._config);
|
|
237
213
|
}
|
|
238
214
|
set numericFields(e) {
|
|
239
|
-
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? R(this.layerInfo.layerFieldsInfo, e) : !0) ? (
|
|
215
|
+
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? R(this.layerInfo.layerFieldsInfo, e) : !0) ? (K({
|
|
240
216
|
newNumericFields: e,
|
|
241
217
|
config: this._config,
|
|
242
218
|
layerInfo: this.layerInfo,
|
|
@@ -248,10 +224,10 @@ class r extends G {
|
|
|
248
224
|
* Aggregation type for the pie chart.
|
|
249
225
|
*/
|
|
250
226
|
get aggregationType() {
|
|
251
|
-
return
|
|
227
|
+
return Y(this._config, this._mode);
|
|
252
228
|
}
|
|
253
229
|
set aggregationType(e) {
|
|
254
|
-
|
|
230
|
+
q({
|
|
255
231
|
newAggregationType: e,
|
|
256
232
|
config: this._config,
|
|
257
233
|
layerInfo: this.layerInfo,
|
|
@@ -263,10 +239,10 @@ class r extends G {
|
|
|
263
239
|
* Gets the sort order for the pie chart.
|
|
264
240
|
*/
|
|
265
241
|
getSortOrder() {
|
|
266
|
-
return
|
|
242
|
+
return H(this._config, this._mode);
|
|
267
243
|
}
|
|
268
244
|
setSortOrder(e, i) {
|
|
269
|
-
|
|
245
|
+
J({
|
|
270
246
|
newSortOrderKind: e,
|
|
271
247
|
config: this._config,
|
|
272
248
|
orderByList: i
|
|
@@ -306,7 +282,7 @@ class r extends G {
|
|
|
306
282
|
* Gets the list of the category values for the chart.
|
|
307
283
|
*/
|
|
308
284
|
async getCustomSortValues() {
|
|
309
|
-
const e =
|
|
285
|
+
const e = b(this._config), i = S(this._config.series);
|
|
310
286
|
let o = [];
|
|
311
287
|
return i === f.PieFromFields ? o = this.numericFields : e.trim() !== "" && i === f.PieFromCategory && (o = await j({
|
|
312
288
|
category: e,
|
|
@@ -330,10 +306,10 @@ class r extends G {
|
|
|
330
306
|
* Ticks symbol connecting slices to labels.
|
|
331
307
|
*/
|
|
332
308
|
get ticksSymbol() {
|
|
333
|
-
return
|
|
309
|
+
return Ye(this._config);
|
|
334
310
|
}
|
|
335
311
|
set ticksSymbol(e) {
|
|
336
|
-
|
|
312
|
+
qe(e, this._config);
|
|
337
313
|
}
|
|
338
314
|
// ---------------------------------------------------------------------------------------------
|
|
339
315
|
// #region Slices Props
|
|
@@ -415,8 +391,8 @@ class r extends G {
|
|
|
415
391
|
// ---------------------------------------------------------------------------------------------
|
|
416
392
|
/** @private */
|
|
417
393
|
generateDefaultConfig() {
|
|
418
|
-
const e =
|
|
419
|
-
return e.series = [
|
|
394
|
+
const e = A(this.commonStrings);
|
|
395
|
+
return e.series = [w(this.commonStrings, M(this.layerInfo.layer).idField)], e;
|
|
420
396
|
}
|
|
421
397
|
// ---------------------------------------------------------------------------------------------
|
|
422
398
|
// #region Series Methods
|
|
@@ -427,7 +403,7 @@ class r extends G {
|
|
|
427
403
|
* @param sliceIndex - The index of the slice.
|
|
428
404
|
*/
|
|
429
405
|
getOriginalSliceName(e) {
|
|
430
|
-
return
|
|
406
|
+
return He(e, this._config);
|
|
431
407
|
}
|
|
432
408
|
/**
|
|
433
409
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -435,10 +411,10 @@ class r extends G {
|
|
|
435
411
|
* @param sliceIndex - The index of the slice.
|
|
436
412
|
*/
|
|
437
413
|
getSliceName(e) {
|
|
438
|
-
return
|
|
414
|
+
return Je(e, this._config);
|
|
439
415
|
}
|
|
440
416
|
setSliceName(e, i) {
|
|
441
|
-
|
|
417
|
+
Qe(e, i, this._config);
|
|
442
418
|
}
|
|
443
419
|
/**
|
|
444
420
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -446,7 +422,7 @@ class r extends G {
|
|
|
446
422
|
* @param sliceIndex - The index of the slice.
|
|
447
423
|
*/
|
|
448
424
|
getSliceColor(e) {
|
|
449
|
-
return
|
|
425
|
+
return Xe(e, this._config);
|
|
450
426
|
}
|
|
451
427
|
setSliceColor(e, i) {
|
|
452
428
|
Ze(e, i, this._config);
|
|
@@ -524,7 +500,7 @@ class r extends G {
|
|
|
524
500
|
return D(this._config);
|
|
525
501
|
}
|
|
526
502
|
set startAngle(e) {
|
|
527
|
-
|
|
503
|
+
ye(e, this._config);
|
|
528
504
|
}
|
|
529
505
|
/**
|
|
530
506
|
* End angle of the pie chart.
|
|
@@ -533,14 +509,14 @@ class r extends G {
|
|
|
533
509
|
return D(this._config);
|
|
534
510
|
}
|
|
535
511
|
set endAngle(e) {
|
|
536
|
-
|
|
512
|
+
me(e, this._config);
|
|
537
513
|
}
|
|
538
514
|
/**
|
|
539
515
|
* Whether to display the category on the data label.
|
|
540
516
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
541
517
|
*/
|
|
542
518
|
get displayCategoryOnDataLabel() {
|
|
543
|
-
return
|
|
519
|
+
return _e(this._config);
|
|
544
520
|
}
|
|
545
521
|
set displayCategoryOnDataLabel(e) {
|
|
546
522
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
@@ -563,7 +539,7 @@ class r extends G {
|
|
|
563
539
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
564
540
|
*/
|
|
565
541
|
get displayNumericValueOnDataLabel() {
|
|
566
|
-
return
|
|
542
|
+
return be(this._config);
|
|
567
543
|
}
|
|
568
544
|
set displayNumericValueOnDataLabel(e) {
|
|
569
545
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
@@ -684,7 +660,7 @@ class r extends G {
|
|
|
684
660
|
* Generate the proper chart title given the current config.
|
|
685
661
|
*/
|
|
686
662
|
generateChartTitle() {
|
|
687
|
-
return
|
|
663
|
+
return Q({
|
|
688
664
|
config: this._config,
|
|
689
665
|
layerInfo: this.layerInfo,
|
|
690
666
|
commonStrings: this.commonStrings,
|