@arcgis/common-components 5.2.0-next.3 → 5.2.0-next.30
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/{232BH3SJ.js → 2XA6O2MP.js} +1 -1
- package/dist/cdn/3P53QRGS.js +2 -0
- package/dist/cdn/4W7JZPB6.js +2 -0
- package/dist/cdn/{YG4PY2H3.js → 5KS7T5BY.js} +1 -1
- package/dist/cdn/{OOBX2C2L.js → AFBKMYU6.js} +1 -1
- package/dist/cdn/EDYH6JAL.js +2 -0
- package/dist/cdn/FNF3USON.js +2 -0
- package/dist/cdn/GVOQ2CB7.js +2 -0
- package/dist/cdn/{F45Q3BRT.js → IUJ4ILLQ.js} +1 -1
- package/dist/cdn/{WJ3TYWP2.js → JLPZ3OR2.js} +1 -1
- package/dist/cdn/L2JNUMXB.js +2 -0
- package/dist/cdn/L5RMOAO3.js +2 -0
- package/dist/cdn/LBD3GPSD.js +2 -0
- package/dist/cdn/LKUOAV7B.js +2 -0
- package/dist/cdn/{YVCGEEMG.js → MCZBUYS5.js} +1 -1
- package/dist/cdn/N7C4DINF.js +2 -0
- package/dist/cdn/OBIWQRXY.js +2 -0
- package/dist/cdn/Q6B36HJB.js +2 -0
- package/dist/cdn/{BDF4ZLUF.js → TXYPZ6MB.js} +1 -1
- package/dist/cdn/{6XE5JNJ7.js → V5SIP2PW.js} +2 -2
- package/dist/cdn/{MINFRX4Y.js → VQLI4IE7.js} +1 -1
- package/dist/cdn/WEKRF34E.js +2 -0
- package/dist/cdn/WLYFLEI6.js +2 -0
- package/dist/cdn/XRARFMJ7.js +2 -0
- package/dist/cdn/YGG3CY7R.js +2 -0
- package/dist/cdn/Z5QBBHLD.js +2 -0
- package/dist/cdn/ZDMNUSIJ.js +2 -0
- package/dist/cdn/ZFQOATQO.js +2 -0
- package/dist/cdn/ZPPRHEY3.js +2 -0
- package/dist/cdn/assets/value-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/layer-utils.js +52 -40
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +6 -1
- package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.js +6 -6
- package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +6 -1
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
- package/dist/components/arcgis-field-info/customElement.js +166 -162
- package/dist/components/arcgis-field-info/utils/basic.d.ts +3 -1
- package/dist/components/arcgis-field-pick-list/customElement.js +43 -51
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +3 -1
- package/dist/components/arcgis-histogram/customElement.js +13 -9
- package/dist/components/arcgis-picker-input/customElement.d.ts +6 -2
- package/dist/components/arcgis-picker-input/customElement.js +7 -7
- package/dist/components/arcgis-slider/customElement.d.ts +4 -3
- package/dist/components/arcgis-slider/customElement.js +303 -284
- package/dist/components/arcgis-unique-values-list/customElement.js +26 -26
- package/dist/components/arcgis-value-picker/customElement.d.ts +377 -0
- package/dist/components/arcgis-value-picker/customElement.js +87 -0
- package/dist/components/arcgis-value-picker/index.d.ts +1 -0
- package/dist/components/arcgis-value-picker/index.js +3 -0
- package/dist/components/arcgis-value-picker/types.d.ts +69 -0
- package/dist/components/arcgis-value-picker-collection/customElement.d.ts +113 -0
- package/dist/components/arcgis-value-picker-collection/customElement.js +43 -0
- package/dist/components/arcgis-value-picker-collection/index.d.ts +1 -0
- package/dist/components/arcgis-value-picker-collection/index.js +1 -0
- package/dist/components/arcgis-value-picker-combobox/customElement.d.ts +90 -0
- package/dist/components/arcgis-value-picker-combobox/customElement.js +55 -0
- package/dist/components/arcgis-value-picker-combobox/index.d.ts +1 -0
- package/dist/components/arcgis-value-picker-combobox/index.js +3 -0
- package/dist/components/arcgis-value-picker-label/customElement.d.ts +81 -0
- package/dist/components/arcgis-value-picker-label/customElement.js +51 -0
- package/dist/components/arcgis-value-picker-label/index.d.ts +1 -0
- package/dist/components/arcgis-value-picker-label/index.js +1 -0
- package/dist/components/arcgis-value-picker-slider/customElement.d.ts +173 -0
- package/dist/components/arcgis-value-picker-slider/customElement.js +60 -0
- package/dist/components/arcgis-value-picker-slider/index.d.ts +1 -0
- package/dist/components/arcgis-value-picker-slider/index.js +3 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.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 +50 -0
- package/dist/loader.js +8 -3
- package/dist/types/lumina.d.ts +36 -0
- package/dist/types/preact.d.ts +41 -0
- package/dist/types/react.d.ts +46 -0
- package/dist/types/stencil.d.ts +36 -0
- package/package.json +5 -5
- package/dist/cdn/2MN6S2HH.js +0 -2
- package/dist/cdn/4BJYJUMR.js +0 -2
- package/dist/cdn/5I5ODGDD.js +0 -2
- package/dist/cdn/AGGCAE6P.js +0 -2
- package/dist/cdn/GEWXC2ZR.js +0 -2
- package/dist/cdn/HWEOBUAY.js +0 -2
- package/dist/cdn/IRIB5DXG.js +0 -2
- package/dist/cdn/KPJCYYYQ.js +0 -2
- package/dist/cdn/ORSF6IOL.js +0 -2
- package/dist/cdn/QEW7H22O.js +0 -2
- package/dist/cdn/UMIMGOKS.js +0 -2
- package/dist/cdn/VUQJROFR.js +0 -2
- package/dist/cdn/YSXFXVP6.js +0 -2
- package/dist/cdn/YVWFGK4M.js +0 -2
|
@@ -1,71 +1,72 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as Q } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as H, html as c } from "lit";
|
|
4
4
|
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
5
|
import { ref as O } from "lit/directives/ref.js";
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { Task as
|
|
6
|
+
import { LitElement as J, createEvent as D, safeClassMap as V } from "@arcgis/lumina";
|
|
7
|
+
import { Task as j } from "@lit/task";
|
|
8
8
|
import { log as q, composeMissingPropertyMessage as L } from "@arcgis/toolkit/log";
|
|
9
|
-
import
|
|
9
|
+
import z from "@arcgis/core/config.js";
|
|
10
10
|
import * as x from "@arcgis/core/core/reactiveUtils.js";
|
|
11
11
|
import * as h from "@arcgis/core/intl.js";
|
|
12
|
-
import * as
|
|
12
|
+
import * as Z from "@arcgis/core/applications/PortalApp/layerUtils.js";
|
|
13
13
|
import * as I from "@arcgis/core/core/lang.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import B from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
15
|
+
import K from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
16
16
|
import { i as f } from "../../chunks/commonFunctions.js";
|
|
17
|
-
import
|
|
18
|
-
import ee from "
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
import k from "@arcgis/core/layers/support/CodedValue.js";
|
|
18
|
+
import { i as y, a as w, b as S, c as P, d as T, e as M, f as v, g as F, h as G, j as X, k as Y, l as ee, m as te, n as _, o as ie, p as U, q as se, r as E, s as R } from "../../chunks/layer-utils.js";
|
|
19
|
+
import ae from "@arcgis/core/rest/support/Query.js";
|
|
20
|
+
import { u as re } from "../../chunks/useT9n.js";
|
|
21
|
+
function ne(r) {
|
|
22
|
+
return r.associatedLayer?.url;
|
|
22
23
|
}
|
|
23
|
-
const
|
|
24
|
+
const oe = {
|
|
24
25
|
dateStyle: "short",
|
|
25
26
|
timeStyle: "short"
|
|
26
|
-
},
|
|
27
|
+
}, le = {
|
|
27
28
|
timeStyle: "medium"
|
|
28
29
|
};
|
|
29
|
-
function
|
|
30
|
-
const { layer: e, fieldName: t } =
|
|
30
|
+
function ue(r) {
|
|
31
|
+
const { layer: e, fieldName: t } = r;
|
|
31
32
|
let i;
|
|
32
|
-
const n =
|
|
33
|
+
const n = Z.supportsFieldConfiguration(e);
|
|
33
34
|
let s;
|
|
34
35
|
"popupTemplate" in e && (s = e.popupTemplate);
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
const o = !n &&
|
|
38
|
-
/^raster.(item|service)pixelvalue/iu.test(t) && (
|
|
39
|
-
const
|
|
40
|
-
layerField:
|
|
41
|
-
label: l ||
|
|
36
|
+
const a = s ? s.fieldInfos : [];
|
|
37
|
+
return W(r)?.filter((d) => d.name === t).forEach((d) => {
|
|
38
|
+
const o = !n && a ? a.filter((g) => g.fieldName === d.name) : void 0, l = n ? e.getFieldAlias(t) : o?.length ? o[0].label : d.alias;
|
|
39
|
+
/^raster.(item|service)pixelvalue/iu.test(t) && (d.type = "double");
|
|
40
|
+
const u = {
|
|
41
|
+
layerField: d,
|
|
42
|
+
label: l || d.name
|
|
42
43
|
};
|
|
43
|
-
|
|
44
|
+
u.codedValues = fe(t, r), me(u), u.simpleFieldType && (i = u);
|
|
44
45
|
}), i;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
const { layer: e } =
|
|
48
|
-
return y(e) ||
|
|
47
|
+
function W(r) {
|
|
48
|
+
const { layer: e } = r;
|
|
49
|
+
return y(e) || w(e) || T(e) && e.rasterFields.length ? e.rasterFields : e.fields;
|
|
49
50
|
}
|
|
50
|
-
async function
|
|
51
|
-
|
|
52
|
-
const { layer: e, view: t } =
|
|
53
|
-
if (y(e) ||
|
|
51
|
+
async function A(r) {
|
|
52
|
+
r.statisticsStatus = "in-progress";
|
|
53
|
+
const { layer: e, view: t } = r;
|
|
54
|
+
if (y(e) || w(e) || F(e) || S(e))
|
|
54
55
|
throw new Error("could not get feature count");
|
|
55
56
|
try {
|
|
56
|
-
return await
|
|
57
|
+
return await ge(e, t);
|
|
57
58
|
} catch {
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
async function
|
|
62
|
-
const { layer: e, view: t, fieldName: i, fieldInfo: n } =
|
|
63
|
-
if (y(e) ||
|
|
62
|
+
async function de(r) {
|
|
63
|
+
const { layer: e, view: t, fieldName: i, fieldInfo: n } = r;
|
|
64
|
+
if (y(e) || w(e) || S(e))
|
|
64
65
|
throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");
|
|
65
66
|
if (!n || n.layerField.type === "oid" || n.layerField.type === "guid" || n.layerField.type === "global-id")
|
|
66
|
-
return { totalCount: await
|
|
67
|
+
return { totalCount: await A(r), nullcount: 0 };
|
|
67
68
|
try {
|
|
68
|
-
const s = await
|
|
69
|
+
const s = await B({
|
|
69
70
|
layer: e,
|
|
70
71
|
view: t,
|
|
71
72
|
field: i,
|
|
@@ -73,24 +74,24 @@ async function ne(a) {
|
|
|
73
74
|
});
|
|
74
75
|
if (!f(s.count))
|
|
75
76
|
throw new Error("could not get statistics");
|
|
76
|
-
const
|
|
77
|
-
if (f(s.nullcount) && !
|
|
77
|
+
const a = "sourceJSON" in e && e.sourceJSON.maxRecordCount === s.count;
|
|
78
|
+
if (f(s.nullcount) && !a)
|
|
78
79
|
return { ...s, totalCount: s.count + s.nullcount };
|
|
79
80
|
{
|
|
80
|
-
const m = await
|
|
81
|
+
const m = await A(r);
|
|
81
82
|
return { ...s, totalCount: m };
|
|
82
83
|
}
|
|
83
84
|
} catch {
|
|
84
85
|
throw new Error("could not get statistics");
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
async function
|
|
88
|
-
const { layer: e, view: t, fieldName: i } =
|
|
89
|
-
if (y(e) ||
|
|
88
|
+
async function ce(r) {
|
|
89
|
+
const { layer: e, view: t, fieldName: i } = r;
|
|
90
|
+
if (y(e) || w(e) || S(e))
|
|
90
91
|
throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");
|
|
91
|
-
|
|
92
|
+
P(e) && (e.outFields = ["*"]);
|
|
92
93
|
try {
|
|
93
|
-
return await
|
|
94
|
+
return await K({
|
|
94
95
|
layer: e,
|
|
95
96
|
view: t,
|
|
96
97
|
field: i
|
|
@@ -99,29 +100,29 @@ async function oe(a) {
|
|
|
99
100
|
throw new Error("could not get unique values");
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
-
switch (
|
|
103
|
+
function me(r) {
|
|
104
|
+
switch (r.layerField.type) {
|
|
104
105
|
case "string":
|
|
105
|
-
|
|
106
|
+
r.simpleFieldType = "string";
|
|
106
107
|
break;
|
|
107
108
|
case "date":
|
|
108
|
-
|
|
109
|
+
r.simpleFieldType = "date";
|
|
109
110
|
break;
|
|
110
111
|
case "timestamp-offset":
|
|
111
|
-
|
|
112
|
+
r.simpleFieldType = "timestamp-offset";
|
|
112
113
|
break;
|
|
113
114
|
case "date-only":
|
|
114
|
-
|
|
115
|
+
r.simpleFieldType = "date-only";
|
|
115
116
|
break;
|
|
116
117
|
case "time-only":
|
|
117
|
-
|
|
118
|
+
r.simpleFieldType = "time-only";
|
|
118
119
|
break;
|
|
119
120
|
case "oid":
|
|
120
|
-
|
|
121
|
+
r.simpleFieldType = "oid";
|
|
121
122
|
break;
|
|
122
123
|
case "guid":
|
|
123
124
|
case "global-id":
|
|
124
|
-
|
|
125
|
+
r.simpleFieldType = "guid";
|
|
125
126
|
break;
|
|
126
127
|
case "small-integer":
|
|
127
128
|
case "big-integer":
|
|
@@ -129,52 +130,54 @@ function le(a) {
|
|
|
129
130
|
case "single":
|
|
130
131
|
case "double":
|
|
131
132
|
case "long":
|
|
132
|
-
|
|
133
|
+
r.simpleFieldType = "number";
|
|
133
134
|
break;
|
|
135
|
+
default:
|
|
136
|
+
r.simpleFieldType = "string";
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
|
-
function
|
|
139
|
+
function fe(r, e) {
|
|
137
140
|
const { layer: t } = e;
|
|
138
|
-
if (
|
|
141
|
+
if (M(t) && t.subtypeField === r) {
|
|
139
142
|
const o = t.parent?.subtypes?.find((l) => l.code === t.subtypeCode);
|
|
140
143
|
if (o)
|
|
141
|
-
return [{ code: o.code, name: o.name }];
|
|
144
|
+
return [new k({ code: o.code, name: o.name })];
|
|
142
145
|
}
|
|
143
146
|
if (!v(t) && !T(t))
|
|
144
147
|
return;
|
|
145
148
|
const i = v(t) ? t.typeIdField : void 0, n = v(t) ? t.types : void 0;
|
|
146
149
|
let s;
|
|
147
|
-
const m =
|
|
148
|
-
return v(t) && i && n ? (i ===
|
|
150
|
+
const m = W(e)?.find((o) => o.name === r), d = m?.domain;
|
|
151
|
+
return v(t) && i && n ? (i === r ? s = n.map(
|
|
149
152
|
(o) => (
|
|
150
153
|
// fake coded values
|
|
151
|
-
{
|
|
154
|
+
new k({
|
|
152
155
|
code: o.id,
|
|
153
156
|
name: o.name
|
|
154
|
-
}
|
|
157
|
+
})
|
|
155
158
|
)
|
|
156
159
|
) : (s = [], n.forEach((o) => {
|
|
157
|
-
if (!o.domains[
|
|
158
|
-
const l =
|
|
159
|
-
l?.codedValues && l.codedValues.forEach((
|
|
160
|
+
if (!o.domains[r] || o.domains[r].type === "inherited") {
|
|
161
|
+
const l = d;
|
|
162
|
+
l?.codedValues && l.codedValues.forEach((u) => {
|
|
160
163
|
let g = !1;
|
|
161
164
|
s.forEach((p) => {
|
|
162
|
-
p.code ===
|
|
163
|
-
}), g || s.push(I.clone(
|
|
165
|
+
p.code === u.code && (g = !0, `, ${p.name},`.includes(`, ${u.name},`) || (p.name += `, ${u.name}`));
|
|
166
|
+
}), g || s.push(I.clone(u));
|
|
164
167
|
});
|
|
165
|
-
} else o.domains[
|
|
166
|
-
let
|
|
168
|
+
} else o.domains[r].codedValues && o.domains[r].codedValues.forEach((l) => {
|
|
169
|
+
let u = !1;
|
|
167
170
|
s.forEach((g) => {
|
|
168
|
-
g.code === l.code && (
|
|
169
|
-
}),
|
|
171
|
+
g.code === l.code && (u = !0, `, ${g.name},`.includes(`, ${l.name},`) || (g.name += `, ${l.name}`));
|
|
172
|
+
}), u || s.push(I.clone(l));
|
|
170
173
|
});
|
|
171
|
-
})), !s.length &&
|
|
174
|
+
})), !s.length && d?.codedValues && (s = I.clone(d.codedValues))) : d?.codedValues && (s = m?.domain?.codedValues), s?.length ? s : void 0;
|
|
172
175
|
}
|
|
173
|
-
async function
|
|
174
|
-
const { view: e, layer: t } =
|
|
175
|
-
if (T(t) || y(t) ||
|
|
176
|
+
async function pe(r) {
|
|
177
|
+
const { view: e, layer: t } = r;
|
|
178
|
+
if (T(t) || y(t) || w(t))
|
|
176
179
|
throw new Error("could not get feature");
|
|
177
|
-
if (v(t) && !t.url ||
|
|
180
|
+
if (v(t) && !t.url || G(t)) {
|
|
178
181
|
const i = t.createQuery();
|
|
179
182
|
i.start = 0, i.num = 5, i.outFields = ["*"];
|
|
180
183
|
const n = await t.queryFeatures(i);
|
|
@@ -183,58 +186,59 @@ async function de(a) {
|
|
|
183
186
|
throw new Error("could not get feature");
|
|
184
187
|
} else {
|
|
185
188
|
if (!e)
|
|
186
|
-
return await C(
|
|
189
|
+
return await C(r);
|
|
187
190
|
let i;
|
|
188
|
-
if (
|
|
191
|
+
if (M(t) || X(t)) {
|
|
189
192
|
let s = t.parent;
|
|
190
|
-
for (;
|
|
193
|
+
for (; Y(s) || ee(s); )
|
|
191
194
|
s = s.parent;
|
|
192
|
-
i = await e.whenLayerView(s);
|
|
195
|
+
te(s) && (i = await e.whenLayerView(s));
|
|
193
196
|
} else
|
|
194
197
|
i = await e.whenLayerView(t);
|
|
195
|
-
|
|
198
|
+
const n = i.availableFields.length === t.fields.length;
|
|
199
|
+
if (i && (n || (F(t) || _(t)) && i.availableFields.length > 0)) {
|
|
196
200
|
const s = i.createQuery();
|
|
197
201
|
s.start = 0, s.num = 5, s.outFields = ["*"];
|
|
198
|
-
const
|
|
199
|
-
return
|
|
202
|
+
const a = await i.queryFeatures(s);
|
|
203
|
+
return a.features?.length ? a : await C(r);
|
|
200
204
|
} else
|
|
201
|
-
return await C(
|
|
205
|
+
return await C(r);
|
|
202
206
|
}
|
|
203
207
|
}
|
|
204
|
-
async function C(
|
|
205
|
-
const { layer: e } =
|
|
208
|
+
async function C(r) {
|
|
209
|
+
const { layer: e } = r;
|
|
206
210
|
if (T(e) || y(e) || F(e) || _(e))
|
|
207
211
|
throw new Error("cannot get feature from service");
|
|
208
|
-
const t = new
|
|
212
|
+
const t = new ae({
|
|
209
213
|
where: "1=1",
|
|
210
214
|
outFields: ["*"],
|
|
211
215
|
returnGeometry: !1
|
|
212
216
|
});
|
|
213
217
|
return "sourceJSON" in e && e.sourceJSON?.advancedQueryCapabilities?.supportsPagination && (t.num = 1), await e.queryFeatures(t);
|
|
214
218
|
}
|
|
215
|
-
async function
|
|
216
|
-
if (
|
|
217
|
-
return await
|
|
218
|
-
if (v(
|
|
219
|
-
return await
|
|
220
|
-
if (e && (F(
|
|
221
|
-
return await
|
|
219
|
+
async function ge(r, e) {
|
|
220
|
+
if (P(r))
|
|
221
|
+
return await he(r);
|
|
222
|
+
if (v(r) || ie(r) || U(r) || G(r) || se(r))
|
|
223
|
+
return await r.queryFeatureCount();
|
|
224
|
+
if (e && (F(r) || _(r)))
|
|
225
|
+
return await ve(r, e);
|
|
222
226
|
}
|
|
223
|
-
async function
|
|
224
|
-
const e =
|
|
227
|
+
async function he(r) {
|
|
228
|
+
const e = r.createQuery();
|
|
225
229
|
e.outFields = ["*"];
|
|
226
|
-
const t = await
|
|
230
|
+
const t = await r.queryFeatures(e);
|
|
227
231
|
if (t.features.length)
|
|
228
232
|
return t.features.length;
|
|
229
233
|
throw new Error("could not get feature count");
|
|
230
234
|
}
|
|
231
|
-
async function
|
|
232
|
-
return await (await e.whenLayerView(
|
|
235
|
+
async function ve(r, e) {
|
|
236
|
+
return await (await e.whenLayerView(r)).queryFeatureCount();
|
|
233
237
|
}
|
|
234
|
-
const
|
|
235
|
-
class
|
|
238
|
+
const ye = H`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-foreground-1)}.title{font-weight:700;padding:5px 0}.missing,.data{color:#a9a9a9}.count{white-space:nowrap}.section{padding:var(--calcite-space-xs) 0}.statistics-row{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:var(--calcite-space-xs) 0;display:flex;justify-content:space-between}.statistics-row-top-values{border-top:var(--calcite-border-width-sm) solid var(--calctie-color-border-2);padding:20px 0 var(--calcite-space-xs) 0;display:flex;justify-content:space-between}`;
|
|
239
|
+
class Fe extends J {
|
|
236
240
|
constructor() {
|
|
237
|
-
super(...arguments), this._messages =
|
|
241
|
+
super(...arguments), this._messages = re({ blocking: !0 }), this._propWatcherTask = new j(this, {
|
|
238
242
|
task: async ([e, t]) => {
|
|
239
243
|
const i = f(e) && f(t);
|
|
240
244
|
if (f(e) || q("error", this, L("layer")), f(t) || q("error", this, L("fieldName")), !i)
|
|
@@ -248,7 +252,7 @@ class ge extends W {
|
|
|
248
252
|
this.properties = { oneFeatureResponseStatus: 16, oneFeatureResponse: 16, statisticsStatus: 16, statistics: 16, uniqueValuesStatus: 16, uniqueValues: 16, view: 0, layer: 0, fieldName: 1, hideAlias: 5, hideNumericFormat: 5, hideStatistics: 5 };
|
|
249
253
|
}
|
|
250
254
|
static {
|
|
251
|
-
this.styles =
|
|
255
|
+
this.styles = ye;
|
|
252
256
|
}
|
|
253
257
|
async refresh() {
|
|
254
258
|
await this.processProps(), this.requestUpdate();
|
|
@@ -262,27 +266,27 @@ class ge extends W {
|
|
|
262
266
|
return;
|
|
263
267
|
let s;
|
|
264
268
|
if (t.declaredClass === "esri.layers.support.Sublayer") {
|
|
265
|
-
const
|
|
266
|
-
e && await x.whenOnce(() => !e.updating), s = await
|
|
269
|
+
const a = t;
|
|
270
|
+
e && await x.whenOnce(() => !e.updating), s = await a.createFeatureLayer(), await s?.load();
|
|
267
271
|
}
|
|
268
272
|
this.props = {
|
|
269
273
|
view: e,
|
|
270
274
|
layer: s ?? t,
|
|
271
275
|
fieldName: i,
|
|
272
276
|
hideStatistics: n
|
|
273
|
-
}, this.props.fieldInfo =
|
|
274
|
-
urls: `${
|
|
275
|
-
before(
|
|
276
|
-
|
|
277
|
+
}, this.props.fieldInfo = ue(this.props), U(t) && z.request.interceptors?.push({
|
|
278
|
+
urls: `${ne(t)}/${t.layerId}`,
|
|
279
|
+
before(a) {
|
|
280
|
+
a.requestOptions.authMode = "no-prompt";
|
|
277
281
|
}
|
|
278
282
|
}), this.oneFeatureResponseStatus = "in-progress";
|
|
279
283
|
try {
|
|
280
|
-
const
|
|
281
|
-
this.oneFeatureResponse =
|
|
284
|
+
const a = await pe(this.props);
|
|
285
|
+
this.oneFeatureResponse = a, this.oneFeatureResponseStatus = "success";
|
|
282
286
|
} catch {
|
|
283
287
|
this.oneFeatureResponseStatus = "failed";
|
|
284
288
|
}
|
|
285
|
-
if (F(t)) {
|
|
289
|
+
if (F(t) || E(t) || R(t)) {
|
|
286
290
|
this.uniqueValuesStatus = "failed", this.statisticsStatus = "failed";
|
|
287
291
|
return;
|
|
288
292
|
}
|
|
@@ -291,8 +295,8 @@ class ge extends W {
|
|
|
291
295
|
else {
|
|
292
296
|
this.uniqueValuesStatus = "in-progress";
|
|
293
297
|
try {
|
|
294
|
-
const
|
|
295
|
-
this.uniqueValues =
|
|
298
|
+
const a = await ce(this.props);
|
|
299
|
+
this.uniqueValues = a, a?.uniqueValueInfos?.length ? this.uniqueValuesStatus = "success" : this.uniqueValuesStatus = "failed";
|
|
296
300
|
} catch {
|
|
297
301
|
this.uniqueValuesStatus = "failed";
|
|
298
302
|
}
|
|
@@ -302,19 +306,19 @@ class ge extends W {
|
|
|
302
306
|
else {
|
|
303
307
|
this.statisticsStatus = "in-progress";
|
|
304
308
|
try {
|
|
305
|
-
const
|
|
306
|
-
if (!f(
|
|
309
|
+
const a = await de(this.props);
|
|
310
|
+
if (!f(a.totalCount) && f(a.count) && this.uniqueValuesStatus === "success") {
|
|
307
311
|
const m = this.uniqueValues?.uniqueValueInfos ?? [];
|
|
308
|
-
for (let
|
|
309
|
-
const o = m[
|
|
312
|
+
for (let d = 0; d < m.length; d++) {
|
|
313
|
+
const o = m[d];
|
|
310
314
|
if (o.value === null) {
|
|
311
|
-
|
|
315
|
+
a.totalCount = o.count + a.count;
|
|
312
316
|
break;
|
|
313
317
|
}
|
|
314
318
|
}
|
|
315
|
-
|
|
319
|
+
a.totalCount ??= a.count;
|
|
316
320
|
}
|
|
317
|
-
this.statistics =
|
|
321
|
+
this.statistics = a, this.statisticsStatus = "success";
|
|
318
322
|
} catch {
|
|
319
323
|
this.statisticsStatus = "failed";
|
|
320
324
|
}
|
|
@@ -518,7 +522,7 @@ class ge extends W {
|
|
|
518
522
|
getIntlDateTimeFormattingOptions(e, t) {
|
|
519
523
|
const i = this.getCurrentFieldFormat();
|
|
520
524
|
if (!t?.useFieldFormatting)
|
|
521
|
-
return i ? t?.isTimeOnly ?
|
|
525
|
+
return i ? t?.isTimeOnly ? le : oe : h.convertDateFormatToIntlOptions(e);
|
|
522
526
|
const n = i ? {
|
|
523
527
|
dateStyle: t?.isTimeOnly ? void 0 : i.dateStyle ?? void 0,
|
|
524
528
|
// year/month is overridden if dateStyle is set
|
|
@@ -534,7 +538,7 @@ class ge extends W {
|
|
|
534
538
|
}
|
|
535
539
|
originalLayerSupportsFieldConfigs() {
|
|
536
540
|
const { layer: e } = this;
|
|
537
|
-
return
|
|
541
|
+
return Z.supportsFieldConfiguration(e);
|
|
538
542
|
}
|
|
539
543
|
getPopupTemplateFieldInfo() {
|
|
540
544
|
const { props: e } = this, { layer: t, fieldName: i } = e;
|
|
@@ -574,41 +578,41 @@ class ge extends W {
|
|
|
574
578
|
return c`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${V(s ? "" : "missing")}>${s ? e.fieldValueTypes[s] : e.fieldValueTypeNotSet}</div></div>`;
|
|
575
579
|
}
|
|
576
580
|
renderFieldSampleValue() {
|
|
577
|
-
const { oneFeatureResponse: e, oneFeatureResponseStatus: t, statisticsStatus: i, statistics: n, uniqueValuesStatus: s, uniqueValues:
|
|
581
|
+
const { oneFeatureResponse: e, oneFeatureResponseStatus: t, statisticsStatus: i, statistics: n, uniqueValuesStatus: s, uniqueValues: a, _messages: m, props: d } = this, { layer: o, fieldName: l, fieldInfo: u } = d, { statistics: g } = m;
|
|
578
582
|
let p;
|
|
579
|
-
if (y(o) ||
|
|
583
|
+
if (y(o) || S(o) || !F(o) && ["string", "oid", "guid"].includes(this._getStatisticsType(u)) && s !== "failed")
|
|
580
584
|
return "";
|
|
581
|
-
t === "success" ? e.features.forEach((
|
|
582
|
-
(p === void 0 || p === null &&
|
|
583
|
-
}) : i === "success" ? p = n?.min ?? void 0 : s === "success" && (p =
|
|
584
|
-
const N =
|
|
585
|
-
return f(p) && (N ? p = N.find((
|
|
585
|
+
t === "success" ? e.features.forEach(($) => {
|
|
586
|
+
(p === void 0 || p === null && $.attributes[l] !== null) && (p = $.attributes[l]);
|
|
587
|
+
}) : i === "success" ? p = n?.min ?? void 0 : s === "success" && (p = a?.uniqueValueInfos?.[0]?.value ?? a?.uniqueValueInfos?.[1]?.value ?? void 0);
|
|
588
|
+
const N = u.codedValues;
|
|
589
|
+
return f(p) && (N ? p = N.find(($) => p === $.code)?.name || p : p = this._getDisplayString(p, { useFieldFormatting: !0 })), c`<div class="section"><div class="title">${m.fieldSampleValue}</div><div class=${V(t === "failed" && i === "failed" && s === "failed" || !f(p) ? "missing" : "")}>${t === "success" || i === "success" || s === "success" ? p?.toString() ?? g.allNulls : t === "failed" && i === "failed" && s === "failed" ? m.fieldSampleNotAvailable : m.fieldSampleRetrieving}</div></div>`;
|
|
586
590
|
}
|
|
587
591
|
renderFieldNumericFormat() {
|
|
588
|
-
const { _messages: e, props: t, hideNumericFormat: i } = this, { fieldName: n, fieldInfo: s, layer:
|
|
592
|
+
const { _messages: e, props: t, hideNumericFormat: i } = this, { fieldName: n, fieldInfo: s, layer: a } = t;
|
|
589
593
|
if (i || !["double", "long", "single"].includes(s.layerField.type))
|
|
590
594
|
return "";
|
|
591
|
-
const m = this.originalLayerSupportsFieldConfigs() ?
|
|
595
|
+
const m = this.originalLayerSupportsFieldConfigs() ? a.getFieldConfiguration(n) : void 0;
|
|
592
596
|
if (m?.fieldFormat) {
|
|
593
597
|
const { minimumFractionDigits: o, maximumFractionDigits: l } = m.fieldFormat;
|
|
594
598
|
return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldMinimumFractionDigits.replace("${number}", o.toString())}</div><div>${e.fieldMaximumFractionDigits.replace("${number}", l.toString())}</div></div>`;
|
|
595
599
|
}
|
|
596
|
-
const
|
|
597
|
-
if (
|
|
598
|
-
const o =
|
|
600
|
+
const d = "popupTemplate" in a ? a.popupTemplate : void 0;
|
|
601
|
+
if (d?.fieldInfos) {
|
|
602
|
+
const o = d.fieldInfos?.filter((l) => l.fieldName === n);
|
|
599
603
|
if (o?.length) {
|
|
600
604
|
const l = o[0];
|
|
601
605
|
if (f(l?.format?.places)) {
|
|
602
|
-
const
|
|
603
|
-
return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}",
|
|
606
|
+
const u = l.format.places;
|
|
607
|
+
return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}", u.toString())}</div></div>`;
|
|
604
608
|
}
|
|
605
609
|
}
|
|
606
610
|
}
|
|
607
611
|
return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div class="missing">${e.fieldDecimalPlacesNotAvailable}</div></div>`;
|
|
608
612
|
}
|
|
609
613
|
renderFieldStatistics() {
|
|
610
|
-
const { statisticsStatus: e, uniqueValuesStatus: t, hideStatistics: i, _messages: n, props: s } = this, { layer:
|
|
611
|
-
return i ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") :
|
|
614
|
+
const { statisticsStatus: e, uniqueValuesStatus: t, hideStatistics: i, _messages: n, props: s } = this, { layer: a, fieldInfo: m } = s;
|
|
615
|
+
return i ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : E(a) || R(a) || F(a) || y(a) || S(a) || ["long"].includes(m.layerField.type) ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : c`<div class="section"><div class="title">${n.fieldStatistics}</div>${!e || e === "missing" || e === "in-progress" ? b("field-info-statistics-content", c`<div class="missing">${n.fieldStatisticsRetrieving}</div>`) : e === "failed" && t !== "success" ? this.renderNoStatistics() : b("field-info-statistics-content", c`<div ${O(this._setCompleteRef)}>${this.renderStatistics()}</div>`)}</div>`;
|
|
612
616
|
}
|
|
613
617
|
renderNoStatistics() {
|
|
614
618
|
const { _messages: e } = this;
|
|
@@ -647,38 +651,38 @@ class ge extends W {
|
|
|
647
651
|
const { statistics: e, view: t, props: i, _messages: n } = this, { fieldInfo: s } = i;
|
|
648
652
|
if (!e || !f(e.max) || !f(e.min))
|
|
649
653
|
return this.renderNoStatistics();
|
|
650
|
-
const { statistics:
|
|
651
|
-
let o = Math.floor((m -
|
|
654
|
+
const { statistics: a } = n, m = e.max - e.min, d = Math.floor(m / 31536e6);
|
|
655
|
+
let o = Math.floor((m - d * 31536e6) / 2628e6), l = Math.ceil((m - o * 2628e6) / 864e5);
|
|
652
656
|
l >= 30 && (o += 1, l = 0);
|
|
653
|
-
let
|
|
654
|
-
|
|
657
|
+
let u = d === 1 ? a.timeSpanOptions.year : d > 1 ? a.timeSpanOptions.years.replace("${years}", d.toString()) : "";
|
|
658
|
+
u += d > 0 && (o > 0 || l > 0) ? ", " : "", u += o === 1 ? a.timeSpanOptions.month : o > 1 ? a.timeSpanOptions.months.replace("${months}", o.toString()) : "", u += o > 0 && l > 0 ? ", " : "", u += l === 1 ? a.timeSpanOptions.day : l > 1 ? a.timeSpanOptions.days.replace("${days}", l.toString()) : "";
|
|
655
659
|
const g = s.simpleFieldType !== "timestamp-offset" || !t || t.timeZone !== "unknown", p = s.simpleFieldType === "time-only";
|
|
656
|
-
return c`<div><div class="statistics-row"><div>${
|
|
660
|
+
return c`<div><div class="statistics-row"><div>${a.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${g && f(e.min) ? c`<div class="statistics-row"><div>${p ? a.minimumTime : a.minimumDate}</div><div class="data">${this._getDisplayString(e.min)}</div></div>` : null}${g && f(e.max) ? c`<div class="statistics-row"><div>${p ? a.maximumTime : a.maximumDate}</div><div class="data">${this._getDisplayString(e.max)}</div></div>` : null}${g && f(e.avg) ? c`<div class="statistics-row"><div>${p ? a.averageTime : a.averageDate}</div><div class="data">${this._getDisplayString(e.avg)}</div></div>` : null}${g && !p && f(e.min) && f(e.max) && m > 0 ? c`<div class="statistics-row"><div>${a.timespan}</div><div class="data">${u}</div></div>` : null}${this.renderNullValues()}</div>`;
|
|
657
661
|
}
|
|
658
662
|
renderTopValues() {
|
|
659
|
-
const { uniqueValues: e, uniqueValuesStatus: t, _messages: i, props: n } = this, { fieldInfo: s } = n, { statistics:
|
|
663
|
+
const { uniqueValues: e, uniqueValuesStatus: t, _messages: i, props: n } = this, { fieldInfo: s } = n, { statistics: a } = i;
|
|
660
664
|
if (e?.uniqueValueInfos?.length) {
|
|
661
665
|
const m = e.uniqueValueInfos;
|
|
662
|
-
m.sort((l,
|
|
663
|
-
const
|
|
664
|
-
let
|
|
665
|
-
return
|
|
666
|
-
|
|
667
|
-
}) :
|
|
666
|
+
m.sort((l, u) => l.count < u.count ? 1 : l.count > u.count ? -1 : 0);
|
|
667
|
+
const d = s.codedValues, o = m.filter((l) => l.value !== null).filter((l, u) => l && u < 10).map((l) => {
|
|
668
|
+
let u = l.value;
|
|
669
|
+
return d ? d.forEach((g) => {
|
|
670
|
+
u === g.code && (u = g.name);
|
|
671
|
+
}) : u = this._getDisplayString(u), c`<div class="statistics-row"><div class="data">${`${u}`}</div><div class="count">${this._printNumValue(l.count)}</div></div>`;
|
|
668
672
|
});
|
|
669
|
-
return o.length ? c`<div><div class="statistics-row-top-values"><div>${m.length > 10 ?
|
|
673
|
+
return o.length ? c`<div><div class="statistics-row-top-values"><div>${m.length > 10 ? a.topTenValues : a.topValues}</div><div>${a.count}</div></div>${o}</div>` : "";
|
|
670
674
|
} else
|
|
671
|
-
return c`<div><div class="statistics-row-top-values"><div>${
|
|
675
|
+
return c`<div><div class="statistics-row-top-values"><div>${a.topValues}</div><div>${a.count}</div></div><div class="statistics-row"><div class="missing">${t === "failed" ? i.fieldUniqueValuesNotAvailable : i.fieldSampleRetrieving}</div></div></div>`;
|
|
672
676
|
}
|
|
673
677
|
renderNullValues() {
|
|
674
678
|
const { statistics: e, uniqueValues: t, _messages: i } = this, { statistics: n } = i;
|
|
675
679
|
let s = e?.nullcount;
|
|
676
680
|
if (!f(s) && t) {
|
|
677
|
-
const
|
|
678
|
-
for (let m = 0; m <
|
|
679
|
-
const
|
|
680
|
-
if (
|
|
681
|
-
s =
|
|
681
|
+
const a = t.uniqueValueInfos;
|
|
682
|
+
for (let m = 0; m < a.length; m++) {
|
|
683
|
+
const d = a[m];
|
|
684
|
+
if (d.value === null) {
|
|
685
|
+
s = d.count;
|
|
682
686
|
break;
|
|
683
687
|
}
|
|
684
688
|
}
|
|
@@ -686,7 +690,7 @@ class ge extends W {
|
|
|
686
690
|
return c`<div class="statistics-row"><div>${n.numberOfNulls}</div>${f(s) ? c`<div class="data">${this._printNumValue(s)}</div>` : c`<div class="missing">--</div>`}</div>`;
|
|
687
691
|
}
|
|
688
692
|
}
|
|
689
|
-
|
|
693
|
+
Q("arcgis-field-info", Fe);
|
|
690
694
|
export {
|
|
691
|
-
|
|
695
|
+
Fe as ArcgisFieldInfo
|
|
692
696
|
};
|
|
@@ -17,10 +17,12 @@ import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
|
|
|
17
17
|
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
18
18
|
import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
|
|
19
19
|
import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
|
|
20
|
+
import type DimensionFeatureLayer from "@arcgis/core/layers/DimensionFeatureLayer.js";
|
|
21
|
+
import type AnnotationFeatureLayer from "@arcgis/core/layers/AnnotationFeatureLayer.js";
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* All supported layer types
|
|
23
25
|
*
|
|
24
26
|
* @internal
|
|
25
27
|
*/
|
|
26
|
-
export type FieldInfoLayer = CatalogFootprintLayer | CatalogLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|
|
28
|
+
export type FieldInfoLayer = AnnotationFeatureLayer | CatalogFootprintLayer | CatalogLayer | CSVLayer | DimensionFeatureLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|