@arcgis/charts-components 5.1.0-next.65 → 5.1.0-next.67
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/2333HQZZ.js +2 -0
- package/dist/cdn/25LAV2UI.js +2 -0
- package/dist/cdn/{SMGWUDX3.js → 2J5IWBKU.js} +1 -1
- package/dist/cdn/2NIOPMWE.js +2 -0
- package/dist/cdn/32WPXK4K.js +2 -0
- package/dist/cdn/35NR6IHU.js +2 -0
- package/dist/cdn/4BDLJPIB.js +2 -0
- package/dist/cdn/4HRFZU2C.js +2 -0
- package/dist/cdn/4NYTLY62.js +2 -0
- package/dist/cdn/{66CPF67N.js → 5KOFW5BO.js} +1 -1
- package/dist/cdn/5PSQ7OKJ.js +2 -0
- package/dist/cdn/6GURKNO2.js +2 -0
- package/dist/cdn/{GLST76GV.js → 6GVGNQYH.js} +1 -1
- package/dist/cdn/6RKNXP6N.js +2 -0
- package/dist/cdn/{X6QQ322N.js → 6TKG7ZF7.js} +1 -1
- package/dist/cdn/{6VW6XPBH.js → 75FO5HPY.js} +1 -1
- package/dist/cdn/7HGCX3PA.js +2 -0
- package/dist/cdn/7Y5FTMNT.js +2 -0
- package/dist/cdn/{4YWBOW4N.js → 7YDVVZJU.js} +1 -1
- package/dist/cdn/AALOFAWG.js +2 -0
- package/dist/cdn/AMLWVAHN.js +2 -0
- package/dist/cdn/BVK4ULHH.js +2 -0
- package/dist/cdn/BXDRHDLV.js +2 -0
- package/dist/cdn/BXNLQMSP.js +2 -0
- package/dist/cdn/{3WMOCDMO.js → CCNHG4LT.js} +1 -1
- package/dist/cdn/CUAIY5DK.js +37 -0
- package/dist/cdn/DHCFSWRJ.js +2 -0
- package/dist/cdn/ECRW3QJF.js +2 -0
- package/dist/cdn/{DHZT5P3N.js → EF4GVHB2.js} +1 -1
- package/dist/cdn/EGHVQUKF.js +2 -0
- package/dist/cdn/EP5VVTAX.js +2 -0
- package/dist/cdn/EWLMYFSA.js +2 -0
- package/dist/cdn/{QFC7M2Y2.js → FFXTYOTF.js} +1 -1
- package/dist/cdn/FOSGOEWY.js +2 -0
- package/dist/cdn/G56RB2UI.js +2 -0
- package/dist/cdn/{HR62GM42.js → GKYHQ5OF.js} +1 -1
- package/dist/cdn/GXQDCOI4.js +99 -0
- package/dist/cdn/HW42VNOU.js +2 -0
- package/dist/cdn/I54YDLFZ.js +2 -0
- package/dist/cdn/I6IYDKWG.js +2 -0
- package/dist/cdn/IN3H6ULU.js +2 -0
- package/dist/cdn/ISNJYFT7.js +2 -0
- package/dist/cdn/ITB7EYBT.js +2 -0
- package/dist/cdn/JDQ6BNXO.js +2 -0
- package/dist/cdn/JMMW4Z5P.js +2 -0
- package/dist/cdn/JTL73F75.js +2 -0
- package/dist/cdn/KOLQWSYX.js +2 -0
- package/dist/cdn/KYFOP4WA.js +2 -0
- package/dist/cdn/L2NQ6Z3Z.js +2 -0
- package/dist/cdn/LGAAHH35.js +2 -0
- package/dist/cdn/LIXBROPH.js +2 -0
- package/dist/cdn/LRQVALTM.js +2 -0
- package/dist/cdn/LT62HS4S.js +2 -0
- package/dist/cdn/MUCSVAGN.js +2 -0
- package/dist/cdn/N4IITAR7.js +2 -0
- package/dist/cdn/NEEKPRM4.js +2 -0
- package/dist/cdn/NEFPCTH3.js +2 -0
- package/dist/cdn/NVV2EBVI.js +2 -0
- package/dist/cdn/O7ZCEGVR.js +2 -0
- package/dist/cdn/{WIP3X44L.js → OPDQRTZL.js} +3 -3
- package/dist/cdn/PG36SBDU.js +2 -0
- package/dist/cdn/PGJD4Q7S.js +2 -0
- package/dist/cdn/PGVNBWSU.js +23 -0
- package/dist/cdn/PL24HKI7.js +2 -0
- package/dist/cdn/PLBPOYRN.js +2 -0
- package/dist/cdn/QEPCR5IP.js +2 -0
- package/dist/cdn/QT24FAYQ.js +2 -0
- package/dist/cdn/R6XIAIZH.js +2 -0
- package/dist/cdn/RDBNRYTF.js +2 -0
- package/dist/cdn/RQLVJM4J.js +2 -0
- package/dist/cdn/RX6QOYCR.js +2 -0
- package/dist/cdn/SNZF4LXV.js +2 -0
- package/dist/cdn/{QRNEQ6OE.js → TJA5FMLP.js} +1 -1
- package/dist/cdn/TZJGC4RS.js +2 -0
- package/dist/cdn/{IIJZ52BJ.js → VRXVXPKS.js} +1 -1
- package/dist/cdn/VWCFL5P6.js +2 -0
- package/dist/cdn/W5VC5OCC.js +2 -0
- package/dist/cdn/W6T7TNP5.js +2 -0
- package/dist/cdn/WNEW6UZS.js +2 -0
- package/dist/cdn/XFXE7IY2.js +2 -0
- package/dist/cdn/XV7GLCBP.js +2 -0
- package/dist/cdn/Y3DU5EIT.js +2 -0
- package/dist/cdn/Y3NWCVUF.js +2 -0
- package/dist/cdn/YHUBOYF5.js +2 -0
- package/dist/cdn/YNRVU2AU.js +2 -0
- package/dist/cdn/YPSEQYTV.js +2 -0
- package/dist/cdn/YQTJQ5J7.js +2 -0
- package/dist/cdn/Z4GL4EF6.js +2 -0
- package/dist/cdn/ZIXBICPN.js +2 -0
- package/dist/cdn/ZRDVJBTQ.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +8 -0
- package/dist/chart-rendering/common/interfaces.d.ts +7 -0
- package/dist/chunks/action-bar-utils.js +22 -28
- package/dist/chunks/axis-lines-symbol.js +8 -8
- package/dist/chunks/bar-chart-model.js +19 -25
- package/dist/chunks/bar-chart-series.js +12 -18
- package/dist/chunks/box-plot-data.js +75 -81
- package/dist/chunks/box-plot-model.js +19 -19
- package/dist/chunks/chart-model.js +40 -46
- package/dist/chunks/chart-ui-utils2.js +47 -53
- package/dist/chunks/class-breaks.js +16 -16
- package/dist/chunks/combo-bar-line-chart-model.js +20 -20
- package/dist/chunks/data-labels-symbol.js +5 -5
- package/dist/chunks/data.js +53 -59
- package/dist/chunks/gauge-model.js +22 -28
- package/dist/chunks/generate-x-axis-title.js +30 -36
- package/dist/chunks/heat-chart-model.js +10 -16
- package/dist/chunks/histogram-data.js +53 -59
- package/dist/chunks/histogram-model.js +31 -31
- package/dist/chunks/index.js +608 -20565
- package/dist/chunks/index2.js +171 -678
- package/dist/chunks/index3.js +46 -181
- package/dist/chunks/interfaces.js +16443 -103
- package/dist/chunks/interfaces2.js +109 -0
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +15 -21
- package/dist/chunks/model-with-guides.js +22 -28
- package/dist/chunks/model-with-tooltips.js +23 -29
- package/dist/chunks/model-with-x-guides.js +4 -4
- package/dist/chunks/model-with-y-guides.js +25 -31
- package/dist/chunks/negative-values-stacked-to-baseline.js +41 -47
- package/dist/chunks/pie-chart-data.js +33 -39
- package/dist/chunks/pie-chart-model.js +62 -68
- package/dist/chunks/radar-chart-model.js +8 -15
- package/dist/chunks/rotated-state.js +9 -15
- package/dist/chunks/scatterplot-model.js +84 -90
- package/dist/chunks/serial-chart-data.js +8178 -4195
- package/dist/chunks/serial-chart-model.js +32 -39
- package/dist/chunks/series-length.js +14 -20
- package/dist/chunks/series.js +10 -16
- package/dist/chunks/utils.js +337 -119
- package/dist/chunks/utils2.js +19 -25
- package/dist/chunks/web-component-utils.js +42 -42
- package/dist/components/arcgis-chart/customElement.js +5255 -5339
- package/dist/components/arcgis-charts-action-bar/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +22 -28
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +15 -20
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -16
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +33 -38
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +7 -13
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +14 -20
- package/dist/components/arcgis-charts-config-font-style/customElement.js +14 -20
- package/dist/components/arcgis-charts-config-format/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +10 -16
- package/dist/components/arcgis-charts-config-general/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -19
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +13 -19
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +20 -26
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +17 -24
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -21
- package/dist/components/arcgis-charts-config-histogram/customElement.js +26 -32
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +26 -32
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +18 -24
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -18
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -24
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +22 -28
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +12 -19
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +421 -412
- package/dist/utils/chart-config/utils/index.d.ts +22 -1
- package/dist/utils/chart-config/validator/index.d.ts +2 -2
- package/dist/utils/data/index.d.ts +48 -1
- package/dist/utils/data/pie-chart/index.d.ts +31 -0
- package/package.json +3 -3
- package/dist/cdn/2R7GVZ2K.js +0 -2
- package/dist/cdn/3LT2GKQ2.js +0 -2
- package/dist/cdn/4D7IL776.js +0 -23
- package/dist/cdn/4TUXERAH.js +0 -2
- package/dist/cdn/53BACKKK.js +0 -2
- package/dist/cdn/5TNV7JHC.js +0 -2
- package/dist/cdn/627BGNFG.js +0 -2
- package/dist/cdn/6LOKVOKI.js +0 -2
- package/dist/cdn/6NZ5UJML.js +0 -2
- package/dist/cdn/6WJVFMRO.js +0 -2
- package/dist/cdn/7GZN67ZQ.js +0 -2
- package/dist/cdn/7SSD7QVG.js +0 -2
- package/dist/cdn/7XRXZ5B3.js +0 -2
- package/dist/cdn/7Y57O4FJ.js +0 -2
- package/dist/cdn/7Y7YFJKK.js +0 -2
- package/dist/cdn/7YXQ6TZT.js +0 -2
- package/dist/cdn/A642VLJ3.js +0 -2
- package/dist/cdn/AVCKTWRB.js +0 -2
- package/dist/cdn/BCEUGCIB.js +0 -2
- package/dist/cdn/BP7HN7YH.js +0 -2
- package/dist/cdn/BPZNMCFA.js +0 -2
- package/dist/cdn/DRLAYMR6.js +0 -2
- package/dist/cdn/DXWMRZX7.js +0 -2
- package/dist/cdn/E7ZG5PMT.js +0 -2
- package/dist/cdn/EDBE2EVF.js +0 -2
- package/dist/cdn/EDCUOXXS.js +0 -2
- package/dist/cdn/EWCL54AQ.js +0 -2
- package/dist/cdn/FKR2N42T.js +0 -2
- package/dist/cdn/GT2GE37X.js +0 -2
- package/dist/cdn/HHMRHLFD.js +0 -2
- package/dist/cdn/HMYIPN7X.js +0 -2
- package/dist/cdn/HQZDYYW6.js +0 -2
- package/dist/cdn/HZDIYXNY.js +0 -2
- package/dist/cdn/I34GLJPW.js +0 -2
- package/dist/cdn/IGRLN5QE.js +0 -2
- package/dist/cdn/IJD3YDOE.js +0 -2
- package/dist/cdn/ITF5WJUH.js +0 -2
- package/dist/cdn/J73HEYK6.js +0 -2
- package/dist/cdn/JWTEQZTD.js +0 -2
- package/dist/cdn/KDLX6TGN.js +0 -2
- package/dist/cdn/LLNUWDC5.js +0 -2
- package/dist/cdn/LZ7LNUEI.js +0 -2
- package/dist/cdn/MAZJTJ64.js +0 -2
- package/dist/cdn/MB7BDR7H.js +0 -2
- package/dist/cdn/MTTVUHUH.js +0 -2
- package/dist/cdn/MVLJJ7VZ.js +0 -2
- package/dist/cdn/N373OIOT.js +0 -2
- package/dist/cdn/N4GBOPIU.js +0 -2
- package/dist/cdn/OG3JZ3LP.js +0 -37
- package/dist/cdn/PSYU6XTK.js +0 -2
- package/dist/cdn/PVTBEXFF.js +0 -2
- package/dist/cdn/PYLJO324.js +0 -2
- package/dist/cdn/QQ6DOFHZ.js +0 -99
- package/dist/cdn/RAJWBR34.js +0 -2
- package/dist/cdn/S7COU7MH.js +0 -2
- package/dist/cdn/SYY7UU2N.js +0 -2
- package/dist/cdn/TN45YUM2.js +0 -2
- package/dist/cdn/TODWZ6FZ.js +0 -2
- package/dist/cdn/TP7767ZV.js +0 -2
- package/dist/cdn/UFJOL4MK.js +0 -2
- package/dist/cdn/ULSVHCH4.js +0 -2
- package/dist/cdn/UVFPEIK2.js +0 -2
- package/dist/cdn/V3PU5TMU.js +0 -2
- package/dist/cdn/V3VVN7ST.js +0 -2
- package/dist/cdn/V5JXE6N4.js +0 -2
- package/dist/cdn/VPOAGMYE.js +0 -2
- package/dist/cdn/VXMMIOTJ.js +0 -2
- package/dist/cdn/WL2XRSAH.js +0 -2
- package/dist/cdn/WWARKOXR.js +0 -2
- package/dist/cdn/WWGW24FD.js +0 -2
- package/dist/cdn/XUHCS2SB.js +0 -2
- package/dist/cdn/YBAPI2UV.js +0 -2
- package/dist/cdn/YJDYXU2Q.js +0 -2
- package/dist/cdn/YUZ26Q2B.js +0 -2
- package/dist/cdn/ZRDKD2U3.js +0 -2
- package/dist/cdn/ZVOSWG36.js +0 -2
- /package/dist/cdn/{FPDW4F45.js → VCUC6CMW.js} +0 -0
package/dist/chunks/utils.js
CHANGED
|
@@ -1,151 +1,366 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import "@arcgis/toolkit/type";
|
|
3
|
-
import { q as
|
|
3
|
+
import { r as F, q as W, u as b, w as P, p as R } from "./series-types.js";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "luxon";
|
|
7
|
-
import {
|
|
8
|
-
import "@arcgis/core/geometry/Point.js";
|
|
9
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
10
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
11
|
-
import "simple-statistics";
|
|
12
|
-
import "@arcgis/core/request.js";
|
|
7
|
+
import { bw as q, bD as N, dn as Q, y as G, c$ as C, a as J, E as X, dU as h, dd as _, f as z, D as H, c0 as Y, au as Z, bi as V, aF as ee, aJ as te, T as ie, aD as se, av as ae, bx as re, q as k, bl as oe, cB as ne, b$ as le, dJ as ce } from "./interfaces.js";
|
|
13
8
|
import "@arcgis/core/Graphic.js";
|
|
14
9
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
10
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
16
|
-
import "@arcgis
|
|
17
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
18
|
-
import { substitute as b } from "@arcgis/core/intl.js";
|
|
19
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
20
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
21
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
22
|
-
import "@arcgis/core/core/sql.js";
|
|
23
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
24
|
-
import "./runtime.js";
|
|
25
|
-
import "@arcgis/toolkit/dom";
|
|
11
|
+
import "@esri/arcgis-html-sanitizer";
|
|
26
12
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
27
13
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
28
14
|
import "@arcgis/core/rest/support/Query.js";
|
|
29
15
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
30
16
|
import "@arcgis/core/time/TimeExtent.js";
|
|
31
|
-
import {
|
|
32
|
-
|
|
17
|
+
import { computeRasterAttributeTable as ue } from "@arcgis/core/applications/Components/imageryUtils.js";
|
|
18
|
+
import fe from "@arcgis/core/geometry/Extent.js";
|
|
19
|
+
import "@arcgis/core/geometry/Point.js";
|
|
20
|
+
import "simple-statistics";
|
|
21
|
+
import "@arcgis/core/request.js";
|
|
22
|
+
import "@arcgis/toolkit/dom";
|
|
23
|
+
import "./runtime.js";
|
|
24
|
+
import { substitute as I } from "@arcgis/core/intl.js";
|
|
25
|
+
import "@arcgis/core/core/promiseUtils.js";
|
|
26
|
+
import { k as de } from "./index4.js";
|
|
27
|
+
async function D(s) {
|
|
28
|
+
const { queryObject: e, queryConfig: i, category: t, splitByField: a, chartLimits: o, abortKey: r } = s, n = a !== void 0, l = t !== G ? [t] : [];
|
|
29
|
+
n && l.push(a);
|
|
30
|
+
const c = q(e), { idField: u, isTraditionalTypeOID: p } = N(c), f = p ? u : "*", y = {
|
|
31
|
+
...i,
|
|
32
|
+
groupByFieldsForStatistics: Array.from(new Set(l)),
|
|
33
|
+
outStatistics: [
|
|
34
|
+
{
|
|
35
|
+
statisticType: F.Count,
|
|
36
|
+
onStatisticField: f,
|
|
37
|
+
// Generating an out stat field name. Letting it to COUNT only can fail the query on arcObject layers
|
|
38
|
+
outStatisticFieldName: `${F.Count}_OBJECTID`
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
orderByFields: void 0,
|
|
42
|
+
// Adding num (resultRecordCount) to match the query fetching the results (build by `buildUniqueQuery()). We pick an arbitrary limit (maxBarThreePlusSeriesCountTotal)
|
|
43
|
+
// as we don't know in advance how many results we will get.
|
|
44
|
+
// TODO: once the servers are able to make a distinction between values with a different number of trailing spaces we'll be able to revert that function to its previous
|
|
45
|
+
// state, using the `returnDistinctValues` on a specific field.
|
|
46
|
+
// Refer to: https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8208
|
|
47
|
+
num: o?.maxBarThreePlusSeriesCountTotal
|
|
48
|
+
}, g = await Q({
|
|
49
|
+
queryObject: e,
|
|
50
|
+
featureCount: 1,
|
|
51
|
+
// skipping the count
|
|
52
|
+
queryConfig: y,
|
|
53
|
+
abortKey: r
|
|
54
|
+
});
|
|
55
|
+
return Array.from(
|
|
56
|
+
new Set(
|
|
57
|
+
g.map((x) => x.attributes[n ? a : t])
|
|
58
|
+
)
|
|
59
|
+
).sort((x, m) => typeof x == "string" && typeof m == "string" ? x.localeCompare(m) : Number(x) - Number(m));
|
|
60
|
+
}
|
|
61
|
+
function ye(s, e) {
|
|
62
|
+
let i = !0;
|
|
63
|
+
if (e?.trim()) {
|
|
64
|
+
const t = {};
|
|
65
|
+
Object.entries(s).forEach(([r, n]) => {
|
|
66
|
+
t[r.toUpperCase()] = n;
|
|
67
|
+
});
|
|
68
|
+
const a = e.trim(), o = a.match(/^(\w+)\s+IS\s+(NOT\s+)?NULL$/iu);
|
|
69
|
+
if (o) {
|
|
70
|
+
const [r, n, l] = o, c = t[n.toUpperCase()], u = c == null;
|
|
71
|
+
i = l ? !u : u;
|
|
72
|
+
} else {
|
|
73
|
+
const r = a.match(/^(\w+)\s*(=|!=|<>|>|<|>=|<=)\s*(.+)$/iu);
|
|
74
|
+
if (r) {
|
|
75
|
+
const [n, l, c, u] = r, p = l.toUpperCase();
|
|
76
|
+
if (!(p in t))
|
|
77
|
+
i = !1;
|
|
78
|
+
else {
|
|
79
|
+
const f = t[p];
|
|
80
|
+
let y = u.trim().replace(/^['"]|['"]$/gu, "");
|
|
81
|
+
switch (typeof f == "number" ? y = Number(y) : typeof f == "boolean" && (y = y.toLowerCase() === "true"), c) {
|
|
82
|
+
case "=":
|
|
83
|
+
i = f === y;
|
|
84
|
+
break;
|
|
85
|
+
case "!=":
|
|
86
|
+
case "<>":
|
|
87
|
+
i = f !== y;
|
|
88
|
+
break;
|
|
89
|
+
case ">":
|
|
90
|
+
i = f > y;
|
|
91
|
+
break;
|
|
92
|
+
case "<":
|
|
93
|
+
i = f < y;
|
|
94
|
+
break;
|
|
95
|
+
case ">=":
|
|
96
|
+
i = f >= y;
|
|
97
|
+
break;
|
|
98
|
+
case "<=":
|
|
99
|
+
i = f <= y;
|
|
100
|
+
break;
|
|
101
|
+
default:
|
|
102
|
+
i = !0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return i;
|
|
109
|
+
}
|
|
110
|
+
function ge(s) {
|
|
111
|
+
const { features: e, aggregationType: i, onField: t } = s;
|
|
112
|
+
let a;
|
|
113
|
+
if (!t)
|
|
114
|
+
i === "count" && (a = e.length);
|
|
115
|
+
else
|
|
116
|
+
switch (i) {
|
|
117
|
+
case "count": {
|
|
118
|
+
t === "*" ? a = e.length : a = e.filter((o) => o[t] !== null && o[t] !== void 0).length;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
case "sum": {
|
|
122
|
+
a = e.reduce((o, r) => {
|
|
123
|
+
const n = r[t];
|
|
124
|
+
return o + (typeof n == "number" ? n : 0);
|
|
125
|
+
}, 0);
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
case "avg": {
|
|
129
|
+
let o = 0, r = 0;
|
|
130
|
+
e.forEach((n) => {
|
|
131
|
+
const l = n[t];
|
|
132
|
+
typeof l == "number" && (o += l, r++);
|
|
133
|
+
}), a = r > 0 ? o / r : 0;
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
case "min": {
|
|
137
|
+
const o = e.map((r) => r[t]).filter((r) => typeof r == "number" && r !== null && r !== void 0);
|
|
138
|
+
a = o.length > 0 ? Math.min(...o) : void 0;
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
case "max": {
|
|
142
|
+
const o = e.map((r) => r[t]).filter((r) => typeof r == "number" && r !== null && r !== void 0);
|
|
143
|
+
a = o.length > 0 ? Math.max(...o) : void 0;
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
case "percentile-continuous": {
|
|
147
|
+
const r = [...e.map((l) => l[t]).filter((l) => typeof l == "number" && l !== null && l !== void 0)].sort((l, c) => l - c), n = Math.floor(r.length / 2);
|
|
148
|
+
a = r.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return a;
|
|
153
|
+
}
|
|
154
|
+
function B(s, e) {
|
|
155
|
+
let i;
|
|
156
|
+
return s == null && e ? i = {
|
|
157
|
+
groupKey: h.nullValue,
|
|
158
|
+
display: h.nullValue,
|
|
159
|
+
original: null
|
|
160
|
+
} : i = { groupKey: s, display: s, original: s }, i;
|
|
161
|
+
}
|
|
162
|
+
async function me(s) {
|
|
163
|
+
const { layer: e, geometry: i, abortKey: t } = s;
|
|
164
|
+
e.loaded || await e.load();
|
|
165
|
+
const a = await e.generateRasterInfo(e.rasterFunction), o = _(i) ?? e.fullExtent;
|
|
166
|
+
let r = a.attributeTable;
|
|
167
|
+
return o instanceof fe && o.equals(e.fullExtent) || (r = await ue(
|
|
168
|
+
e,
|
|
169
|
+
{
|
|
170
|
+
geometry: o
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
signal: t !== void 0 ? z.get(t)?.signal : void 0
|
|
174
|
+
}
|
|
175
|
+
)), r;
|
|
176
|
+
}
|
|
177
|
+
async function Re(s) {
|
|
178
|
+
const { chartConfig: e, queryConfig: i, queryObject: t, abortKey: a } = s;
|
|
179
|
+
let o;
|
|
180
|
+
if (t === void 0)
|
|
181
|
+
throw new Error("QueryObject is undefined!");
|
|
182
|
+
const r = q(t);
|
|
183
|
+
if (!C(r))
|
|
184
|
+
throw new J(X.LayerNotSupported);
|
|
185
|
+
const n = await me({
|
|
186
|
+
layer: r,
|
|
187
|
+
geometry: i.geometry,
|
|
188
|
+
abortKey: a
|
|
189
|
+
}), l = n?.features;
|
|
190
|
+
if (!n || !l)
|
|
191
|
+
o = {
|
|
192
|
+
valid: !1,
|
|
193
|
+
invalidType: H.BadData
|
|
194
|
+
};
|
|
195
|
+
else {
|
|
196
|
+
const c = e.series;
|
|
197
|
+
if (!c || c.length === 0 || l.length === 0)
|
|
198
|
+
o = {
|
|
199
|
+
valid: !0
|
|
200
|
+
};
|
|
201
|
+
else {
|
|
202
|
+
const u = i.groupByFieldsForStatistics?.[0] ?? "", p = c.some((g) => g.query?.fetchNullValues), f = /* @__PURE__ */ new Map();
|
|
203
|
+
for (const g of l) {
|
|
204
|
+
const { groupKey: d } = B(g.attributes[u], p);
|
|
205
|
+
d === h.nullValue && !p || (f.has(d) || f.set(d, []), f.get(d).push(g.attributes));
|
|
206
|
+
}
|
|
207
|
+
const y = [];
|
|
208
|
+
f.forEach((g) => {
|
|
209
|
+
const d = {}, x = g[0][u], { display: m, original: j } = B(x, p);
|
|
210
|
+
d[u] = m, d[h.xAxisField] = m, d[h.originalCategoryValue] = j, c.forEach((v) => {
|
|
211
|
+
const A = v.query?.outStatistics?.[0];
|
|
212
|
+
if (!A) {
|
|
213
|
+
const { name: S } = v;
|
|
214
|
+
d[S] = g[0][S];
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
let T = g;
|
|
218
|
+
const w = v.query?.where;
|
|
219
|
+
w && (T = g.filter((S) => ye(S, w)));
|
|
220
|
+
const K = A.statisticType, $ = A.onStatisticField, U = A.outStatisticFieldName;
|
|
221
|
+
d[U] = ge({
|
|
222
|
+
features: T,
|
|
223
|
+
aggregationType: K,
|
|
224
|
+
onField: $
|
|
225
|
+
});
|
|
226
|
+
}), y.push(d);
|
|
227
|
+
}), o = {
|
|
228
|
+
valid: !0,
|
|
229
|
+
data: {
|
|
230
|
+
dataItems: y
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return o;
|
|
236
|
+
}
|
|
237
|
+
async function pe(s) {
|
|
238
|
+
const { layer: e, category: i, splitByField: t } = s, r = (await e.generateRasterInfo(e.rasterFunction))?.attributeTable?.features, n = t !== void 0;
|
|
239
|
+
return Array.from(
|
|
240
|
+
new Set(
|
|
241
|
+
r?.map(
|
|
242
|
+
(c) => c.attributes[n ? t : i]
|
|
243
|
+
)
|
|
244
|
+
)
|
|
245
|
+
).sort((c, u) => typeof c == "string" && typeof u == "string" ? c.localeCompare(u) : Number(c) - Number(u));
|
|
246
|
+
}
|
|
247
|
+
function Qe(s, e, i) {
|
|
33
248
|
const t = s?.axes?.[e];
|
|
34
|
-
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title =
|
|
249
|
+
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title = ee({
|
|
35
250
|
text: i,
|
|
36
251
|
visible: !0,
|
|
37
|
-
font:
|
|
252
|
+
font: te(ie.AxisTitle)
|
|
38
253
|
}));
|
|
39
254
|
}
|
|
40
|
-
function
|
|
41
|
-
const { config: e, layerInfo: i, commonStrings: t, numericFields: a, aggregationType:
|
|
42
|
-
let
|
|
255
|
+
function Ge(s) {
|
|
256
|
+
const { config: e, layerInfo: i, commonStrings: t, numericFields: a, aggregationType: o } = s;
|
|
257
|
+
let r = "";
|
|
43
258
|
if (e)
|
|
44
|
-
if (
|
|
45
|
-
|
|
259
|
+
if (Y(e) === W.Stacked100)
|
|
260
|
+
r = t.utilsStrings.statistics.percent;
|
|
46
261
|
else {
|
|
47
|
-
const
|
|
48
|
-
if (e.series[0]?.type ===
|
|
49
|
-
|
|
262
|
+
const l = Z(o, t);
|
|
263
|
+
if (e.series[0]?.type === b.HeatSeries)
|
|
264
|
+
r = V(i.layerFieldsInfo, e.series[0].y);
|
|
50
265
|
else if (a.length === 1) {
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
aggregation:
|
|
54
|
-
fieldName:
|
|
266
|
+
const c = V(i.layerFieldsInfo, a[0]), u = N(i.layer).idField;
|
|
267
|
+
o === F.NoAggregation ? r = c : o === F.Count && u !== void 0 && a[0] === u ? r = t.utilsStrings.statistics.count : r = I(t.axisLabels.aggregationOfFieldName, {
|
|
268
|
+
aggregation: l,
|
|
269
|
+
fieldName: c
|
|
55
270
|
});
|
|
56
|
-
} else a.length > 1 && (
|
|
57
|
-
aggregation:
|
|
271
|
+
} else a.length > 1 && (o === F.NoAggregation ? r = t.axisLabels.values : r = I(t.axisLabels.aggregationOfValues, {
|
|
272
|
+
aggregation: l
|
|
58
273
|
}));
|
|
59
274
|
}
|
|
60
|
-
return
|
|
275
|
+
return r;
|
|
61
276
|
}
|
|
62
|
-
const
|
|
277
|
+
const E = (s, e, i) => s.axes?.[e] ?? ae(i, s.type)[e], M = (s) => {
|
|
63
278
|
const { config: e, axis: i, axisIndex: t } = s;
|
|
64
279
|
e.axes !== void 0 && (e.axes[t] = i);
|
|
65
|
-
},
|
|
280
|
+
}, Je = (s) => {
|
|
66
281
|
const { config: e, axisIndex: i, isMax: t } = s;
|
|
67
282
|
let a = Number.NaN;
|
|
68
283
|
return t ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
|
|
69
|
-
},
|
|
70
|
-
const { config: e, value: i, axisIndex: t, isMax: a } = s,
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
const t =
|
|
284
|
+
}, O = (s) => {
|
|
285
|
+
const { config: e, value: i, axisIndex: t, isMax: a } = s, o = e?.axes?.[t];
|
|
286
|
+
o !== void 0 && (a ? o.maximum = i : o.minimum = i);
|
|
287
|
+
}, Xe = (s) => s.axes?.[0]?.valueFormat ?? se(), _e = (s, e, i) => {
|
|
288
|
+
const t = E(s, 0, e);
|
|
74
289
|
if (t !== void 0 && i !== void 0) {
|
|
75
290
|
const a = {
|
|
76
291
|
...t,
|
|
77
292
|
valueFormat: i
|
|
78
293
|
};
|
|
79
|
-
|
|
294
|
+
M({ config: s, axis: a, axisIndex: 0 });
|
|
80
295
|
}
|
|
81
|
-
},
|
|
296
|
+
}, ze = (s, e, i) => {
|
|
82
297
|
const t = s.axes?.[e];
|
|
83
298
|
t !== void 0 && (t.integerOnlyValues = i);
|
|
84
|
-
},
|
|
85
|
-
const e =
|
|
86
|
-
return e ===
|
|
87
|
-
},
|
|
299
|
+
}, xe = (s) => {
|
|
300
|
+
const e = P(s.series);
|
|
301
|
+
return e === b.BarSeries || e === b.ComboLineAndBarSeries || e === b.LineSeries;
|
|
302
|
+
}, be = (s) => {
|
|
88
303
|
const { axisIndex: e, config: i, isMultiAxis: t } = s;
|
|
89
304
|
let a = !1;
|
|
90
|
-
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a =
|
|
91
|
-
},
|
|
305
|
+
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = xe(i)), a;
|
|
306
|
+
}, He = (s) => {
|
|
92
307
|
const { axisIndex: e, func: i, config: t } = s;
|
|
93
|
-
return
|
|
94
|
-
},
|
|
308
|
+
return be({ axisIndex: e, config: t, isMultiAxis: !0 }) ? i(e) : void 0;
|
|
309
|
+
}, L = (s, e) => {
|
|
95
310
|
let i;
|
|
96
311
|
const t = e.axes?.[s]?.valueFormat;
|
|
97
|
-
return (s === 0 || s >= 1 &&
|
|
98
|
-
},
|
|
99
|
-
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s,
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
...
|
|
312
|
+
return (s === 0 || s >= 1 && de(t)) && (i = t), i;
|
|
313
|
+
}, Ye = (s) => {
|
|
314
|
+
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, o = E(e, a, i);
|
|
315
|
+
if (o !== void 0 && t !== void 0) {
|
|
316
|
+
const r = {
|
|
317
|
+
...o,
|
|
103
318
|
valueFormat: t
|
|
104
319
|
};
|
|
105
|
-
|
|
320
|
+
M({
|
|
106
321
|
config: e,
|
|
107
|
-
axis:
|
|
322
|
+
axis: r,
|
|
108
323
|
axisIndex: a
|
|
109
324
|
});
|
|
110
325
|
}
|
|
111
|
-
},
|
|
326
|
+
}, Ze = (s, e) => s.axes?.[e]?.isLogarithmic ?? !1, et = (s) => {
|
|
112
327
|
const { config: e, isLogarithmic: i, axisIndex: t } = s, a = e.axes?.[t];
|
|
113
|
-
a && (a.isLogarithmic = i,
|
|
114
|
-
},
|
|
328
|
+
a && (a.isLogarithmic = i, O({ config: e, value: null, axisIndex: t, isMax: !0 }), O({ config: e, value: null, axisIndex: t, isMax: !1 }));
|
|
329
|
+
}, tt = (s) => {
|
|
115
330
|
const { config: e, scrollbar: i, axisIndex: t } = s;
|
|
116
331
|
e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = i);
|
|
117
332
|
};
|
|
118
|
-
async function
|
|
119
|
-
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo:
|
|
120
|
-
where:
|
|
333
|
+
async function it(s) {
|
|
334
|
+
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: o, aggregationFields: r, fetchNullValues: n } = s, c = o.filter((x) => x.name === a)[0]?.type, u = n !== !0 ? `${a} IS NOT NULL` : "", p = t && n !== !0 ? `${t} IS NOT NULL` : "", { where: f } = e?.dataFilters ?? {}, y = {
|
|
335
|
+
where: k([f, u, p]),
|
|
121
336
|
// excluding the null values from the list
|
|
122
|
-
orderByFields:
|
|
337
|
+
orderByFields: ne(a) ? [] : [`${a} ${R.Ascending}`],
|
|
123
338
|
// default sorting ascending for split-by field
|
|
124
339
|
geometry: e?.dataFilters?.geometry
|
|
125
340
|
};
|
|
126
|
-
let
|
|
127
|
-
|
|
128
|
-
let
|
|
341
|
+
let g = "";
|
|
342
|
+
r.length === 0 ? g = N(i).idField : [g] = r;
|
|
343
|
+
let d = i ? C(i) ? await pe({
|
|
129
344
|
layer: i,
|
|
130
345
|
category: e?.series[0].x ?? "",
|
|
131
346
|
splitByField: a
|
|
132
|
-
}) : await
|
|
347
|
+
}) : await D({
|
|
133
348
|
queryObject: i,
|
|
134
349
|
category: e?.series[0].x ?? "",
|
|
135
350
|
splitByField: a,
|
|
136
|
-
queryConfig:
|
|
351
|
+
queryConfig: y
|
|
137
352
|
}) : [];
|
|
138
|
-
if (
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
arrayA:
|
|
142
|
-
arrayB:
|
|
143
|
-
getKey: (
|
|
353
|
+
if (d = d.slice(0, 500), e) {
|
|
354
|
+
const x = e?.series.map((m) => le({ where: m.query?.where })?.toString() ?? "").filter((m) => m !== void 0 && m !== "");
|
|
355
|
+
d = ce({
|
|
356
|
+
arrayA: d,
|
|
357
|
+
arrayB: x,
|
|
358
|
+
getKey: (m) => m === null ? null : m?.toString()
|
|
144
359
|
});
|
|
145
360
|
}
|
|
146
|
-
return { categoriesArray:
|
|
361
|
+
return { categoriesArray: d, splitByFieldType: c, numericalField: g };
|
|
147
362
|
}
|
|
148
|
-
function
|
|
363
|
+
function st(s, e) {
|
|
149
364
|
let i = e === "";
|
|
150
365
|
for (const t of s)
|
|
151
366
|
if (e === t.name) {
|
|
@@ -154,12 +369,12 @@ function Me(s, e) {
|
|
|
154
369
|
}
|
|
155
370
|
return i;
|
|
156
371
|
}
|
|
157
|
-
function
|
|
158
|
-
const i =
|
|
372
|
+
function at(s, e) {
|
|
373
|
+
const i = re(s);
|
|
159
374
|
let t = e.length === 0, a = 0;
|
|
160
|
-
for (const
|
|
161
|
-
for (const
|
|
162
|
-
if (
|
|
375
|
+
for (const o of e) {
|
|
376
|
+
for (const r of i)
|
|
377
|
+
if (o === r && (a += 1), a === e.length) {
|
|
163
378
|
t = !0;
|
|
164
379
|
break;
|
|
165
380
|
}
|
|
@@ -168,7 +383,7 @@ function We(s, e) {
|
|
|
168
383
|
}
|
|
169
384
|
return t;
|
|
170
385
|
}
|
|
171
|
-
function
|
|
386
|
+
function rt(s, e) {
|
|
172
387
|
e.forEach((i) => {
|
|
173
388
|
Object.getOwnPropertyNames(i.prototype).forEach((t) => {
|
|
174
389
|
Object.defineProperty(
|
|
@@ -179,45 +394,48 @@ function $e(s, e) {
|
|
|
179
394
|
});
|
|
180
395
|
});
|
|
181
396
|
}
|
|
182
|
-
async function
|
|
183
|
-
const { layerInfo: e, config: i, category: t } = s, { layer: a } = e, { where:
|
|
184
|
-
where:
|
|
397
|
+
async function ot(s) {
|
|
398
|
+
const { layerInfo: e, config: i, category: t } = s, { layer: a } = e, { where: o } = i?.dataFilters ?? {}, { fetchNullValues: r } = i?.series?.[0]?.query ?? {}, n = r !== !0 ? `${t} IS NOT NULL` : "", l = {
|
|
399
|
+
where: k([o, n]),
|
|
185
400
|
// excluding the null values from the list
|
|
186
401
|
orderByFields: [],
|
|
187
402
|
geometry: i?.dataFilters?.geometry
|
|
188
403
|
};
|
|
189
|
-
let
|
|
190
|
-
return
|
|
191
|
-
(await
|
|
192
|
-
const
|
|
193
|
-
return
|
|
404
|
+
let c;
|
|
405
|
+
return C(a) ? c = [] : c = // fetch unique category values asynchronously
|
|
406
|
+
(await D({ queryObject: a, category: t, queryConfig: l })).map((u) => {
|
|
407
|
+
const p = String(u);
|
|
408
|
+
return oe({
|
|
194
409
|
queryObject: e.layer,
|
|
195
410
|
fieldName: t,
|
|
196
|
-
fieldValue:
|
|
197
|
-
}) ??
|
|
198
|
-
}),
|
|
411
|
+
fieldValue: p
|
|
412
|
+
}) ?? p;
|
|
413
|
+
}), c;
|
|
199
414
|
}
|
|
200
|
-
function
|
|
201
|
-
return s !== void 0 &&
|
|
415
|
+
function nt(s) {
|
|
416
|
+
return s !== void 0 && L(0, s)?.type === b.CategoryAxisFormat && L(1, s)?.type === b.CategoryAxisFormat;
|
|
202
417
|
}
|
|
203
418
|
export {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
419
|
+
D as a,
|
|
420
|
+
Qe as b,
|
|
421
|
+
rt as c,
|
|
422
|
+
at as d,
|
|
423
|
+
st as e,
|
|
424
|
+
Re as f,
|
|
425
|
+
Ge as g,
|
|
426
|
+
Xe as h,
|
|
427
|
+
nt as i,
|
|
428
|
+
ot as j,
|
|
429
|
+
_e as k,
|
|
430
|
+
it as l,
|
|
431
|
+
ze as m,
|
|
432
|
+
Je as n,
|
|
433
|
+
L as o,
|
|
434
|
+
Ye as p,
|
|
435
|
+
Ze as q,
|
|
436
|
+
He as r,
|
|
437
|
+
O as s,
|
|
438
|
+
et as t,
|
|
439
|
+
pe as u,
|
|
440
|
+
tt as v
|
|
223
441
|
};
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -4,32 +4,26 @@ import "lodash-es";
|
|
|
4
4
|
import "luxon";
|
|
5
5
|
import "./series-types.js";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
|
-
import {
|
|
7
|
+
import { aF as x, aJ as a, T as l } from "./interfaces.js";
|
|
8
8
|
import "@arcgis/core/Graphic.js";
|
|
9
9
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
10
10
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
11
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
12
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
13
11
|
import "@esri/arcgis-html-sanitizer";
|
|
14
|
-
import "@arcgis/core/intl.js";
|
|
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 "simple-statistics";
|
|
19
|
-
import "@arcgis/core/request.js";
|
|
20
|
-
import "@arcgis/core/core/sql.js";
|
|
21
12
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
22
13
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
23
14
|
import "@arcgis/core/rest/support/Query.js";
|
|
24
15
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
25
16
|
import "@arcgis/core/time/TimeExtent.js";
|
|
26
17
|
import "@arcgis/core/core/promiseUtils.js";
|
|
18
|
+
import "@arcgis/core/request.js";
|
|
27
19
|
import "./runtime.js";
|
|
28
20
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
29
21
|
import "@arcgis/core/geometry/Extent.js";
|
|
30
22
|
import "@arcgis/core/geometry/Point.js";
|
|
23
|
+
import "simple-statistics";
|
|
31
24
|
import "@arcgis/toolkit/dom";
|
|
32
|
-
|
|
25
|
+
import "@arcgis/core/intl.js";
|
|
26
|
+
const w = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, z = (i, e, s) => {
|
|
33
27
|
const t = s.axes?.[e];
|
|
34
28
|
t?.labels !== void 0 ? t.labels.visible = i : t !== void 0 && t?.labels === void 0 && (t.labels = x({
|
|
35
29
|
text: "",
|
|
@@ -37,39 +31,39 @@ const K = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, M = (i, e, s) => {
|
|
|
37
31
|
font: a(l.AxisLabels),
|
|
38
32
|
type: l.AxisLabels
|
|
39
33
|
}));
|
|
40
|
-
},
|
|
34
|
+
}, r = (i, e) => e.axes?.[i]?.title?.content.text ?? "", B = (i, e, s) => {
|
|
41
35
|
const t = s.axes?.[e];
|
|
42
36
|
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && t?.title === void 0 && (t.title = x({
|
|
43
37
|
text: i,
|
|
44
38
|
visible: !0,
|
|
45
39
|
font: a(l.AxisTitle)
|
|
46
40
|
}));
|
|
47
|
-
},
|
|
41
|
+
}, G = (i, e) => e.axes?.[i]?.title?.visible ?? !1, H = (i, e, s) => {
|
|
48
42
|
const t = s.axes?.[e];
|
|
49
43
|
t?.title !== void 0 ? t.title.visible = i : t !== void 0 && t?.title === void 0 && (t.title = x({
|
|
50
|
-
text:
|
|
44
|
+
text: r(e, s),
|
|
51
45
|
visible: i,
|
|
52
46
|
font: a(l.AxisTitle)
|
|
53
47
|
}));
|
|
54
|
-
},
|
|
48
|
+
}, I = (i, e) => i.axes?.[e]?.title?.content, K = (i) => {
|
|
55
49
|
const { config: e, axisIndex: s, symbol: t } = i, o = e.axes?.[s];
|
|
56
50
|
if (o !== void 0) {
|
|
57
|
-
const
|
|
51
|
+
const n = o.title?.content.text;
|
|
58
52
|
(o.title === void 0 || t === void 0) && (o.title = x({
|
|
59
53
|
text: "",
|
|
60
54
|
visible: !0,
|
|
61
55
|
font: a(l.AxisTitle),
|
|
62
56
|
type: l.AxisTitle
|
|
63
|
-
})), t !== void 0 && (o.title.content = t), o.title.content.text =
|
|
57
|
+
})), t !== void 0 && (o.title.content = t), o.title.content.text = n;
|
|
64
58
|
}
|
|
65
59
|
};
|
|
66
60
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
61
|
+
I as a,
|
|
62
|
+
B as b,
|
|
63
|
+
G as c,
|
|
64
|
+
H as d,
|
|
65
|
+
w as e,
|
|
66
|
+
z as f,
|
|
67
|
+
r as g,
|
|
68
|
+
K as s
|
|
75
69
|
};
|