@arcgis/common-components 5.2.0-next.44 → 5.2.0-next.46

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.
@@ -1,25 +1,25 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as Q } from "../../chunks/runtime.js";
3
- import { css as H, html as d } from "lit";
4
- import { keyed as b } from "lit/directives/keyed.js";
5
- import { ref as O } from "lit/directives/ref.js";
6
- import { LitElement as J, createEvent as D, safeClassMap as V } from "@arcgis/lumina";
7
- import { Task as j } from "@lit/task";
8
- import { log as q, composeMissingPropertyMessage as L } from "@arcgis/toolkit/log";
2
+ import { c as H } from "../../chunks/runtime.js";
3
+ import { keyed as S } from "lit/directives/keyed.js";
4
+ import { ref as b } from "lit/directives/ref.js";
5
+ import { LitElement as Q, createEvent as D, safeClassMap as I } from "@arcgis/lumina";
6
+ import { Task as J } from "@lit/task";
7
+ import { log as C, composeMissingPropertyMessage as L } from "@arcgis/toolkit/log";
8
+ import { css as j, html as c } from "lit";
9
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 Z from "@arcgis/core/applications/PortalApp/layerUtils.js";
13
- import * as I from "@arcgis/core/core/lang.js";
12
+ import * as A from "@arcgis/core/applications/PortalApp/layerUtils.js";
13
+ import * as _ from "@arcgis/core/core/lang.js";
14
14
  import B from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
15
15
  import K from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
16
16
  import { i as f } from "../../chunks/general.js";
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";
17
+ import R from "@arcgis/core/layers/support/CodedValue.js";
18
+ import { i as y, a as $, b as w, c as Z, d as V, e as M, f as v, g as F, h as U, j as X, k as Y, l as ee, m as te, n as O, o as ie, p as W, q as se, r as k, s as E } from "../../chunks/layer-utils.js";
19
19
  import ae from "@arcgis/core/rest/support/Query.js";
20
20
  import { u as re } from "../../chunks/useT9n.js";
21
- function ne(r) {
22
- return r.associatedLayer?.url;
21
+ function ne(a) {
22
+ return a.associatedLayer?.url;
23
23
  }
24
24
  const oe = {
25
25
  dateStyle: "short",
@@ -27,31 +27,31 @@ const oe = {
27
27
  }, le = {
28
28
  timeStyle: "medium"
29
29
  };
30
- function ue(r) {
31
- const { layer: e, fieldName: t } = r;
30
+ function ue(a) {
31
+ const { layer: e, fieldName: t } = a;
32
32
  let i;
33
- const n = Z.supportsFieldConfiguration(e);
33
+ const r = A.supportsFieldConfiguration(e);
34
34
  let s;
35
35
  "popupTemplate" in e && (s = e.popupTemplate);
36
- const a = s ? s.fieldInfos : [];
37
- return W(r)?.filter((c) => c.name === t).forEach((c) => {
38
- const o = !n && a ? a.filter((g) => g.fieldName === c.name) : void 0, l = n ? e.getFieldAlias(t) : o?.length ? o[0].label : c.alias;
39
- /^raster.(item|service)pixelvalue/iu.test(t) && (c.type = "double");
36
+ const n = s ? s.fieldInfos : [];
37
+ return G(a)?.filter((d) => d.name === t).forEach((d) => {
38
+ const l = !r && n ? n.filter((g) => g.fieldName === d.name) : void 0, o = r ? e.getFieldAlias(t) : l?.length ? l[0].label : d.alias;
39
+ /^raster.(item|service)pixelvalue/iu.test(t) && (d.type = "double");
40
40
  const u = {
41
- layerField: c,
42
- label: l || c.name
41
+ layerField: d,
42
+ label: o || d.name
43
43
  };
44
- u.codedValues = fe(t, r), me(u), u.simpleFieldType && (i = u);
44
+ u.codedValues = fe(t, a), me(u), u.simpleFieldType && (i = u);
45
45
  }), i;
46
46
  }
47
- function W(r) {
48
- const { layer: e } = r;
49
- return y(e) || w(e) || T(e) && e.rasterFields.length ? e.rasterFields : e.fields;
47
+ function G(a) {
48
+ const { layer: e } = a;
49
+ return y(e) || $(e) || V(e) && e.rasterFields.length ? e.rasterFields : e.fields;
50
50
  }
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))
51
+ async function P(a) {
52
+ a.statisticsStatus = "in-progress";
53
+ const { layer: e, view: t } = a;
54
+ if (y(e) || $(e) || F(e) || w(e))
55
55
  throw new Error("could not get feature count");
56
56
  try {
57
57
  return await ge(e, t);
@@ -59,12 +59,12 @@ async function A(r) {
59
59
  return;
60
60
  }
61
61
  }
62
- async function de(r) {
63
- const { layer: e, view: t, fieldName: i, fieldInfo: n } = r;
64
- if (y(e) || w(e) || S(e))
62
+ async function ce(a) {
63
+ const { layer: e, view: t, fieldName: i, fieldInfo: r } = a;
64
+ if (y(e) || $(e) || w(e))
65
65
  throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");
66
- if (!n || n.layerField.type === "oid" || n.layerField.type === "guid" || n.layerField.type === "global-id")
67
- return { totalCount: await A(r), nullcount: 0 };
66
+ if (!r || r.layerField.type === "oid" || r.layerField.type === "guid" || r.layerField.type === "global-id")
67
+ return { totalCount: await P(a), nullcount: 0 };
68
68
  try {
69
69
  const s = await B({
70
70
  layer: e,
@@ -74,22 +74,22 @@ async function de(r) {
74
74
  });
75
75
  if (!f(s.count))
76
76
  throw new Error("could not get statistics");
77
- const a = "sourceJSON" in e && e.sourceJSON.maxRecordCount === s.count;
78
- if (f(s.nullcount) && !a)
77
+ const n = "sourceJSON" in e && e.sourceJSON.maxRecordCount === s.count;
78
+ if (f(s.nullcount) && !n)
79
79
  return { ...s, totalCount: s.count + s.nullcount };
80
80
  {
81
- const m = await A(r);
81
+ const m = await P(a);
82
82
  return { ...s, totalCount: m };
83
83
  }
84
84
  } catch {
85
85
  throw new Error("could not get statistics");
86
86
  }
87
87
  }
88
- async function ce(r) {
89
- const { layer: e, view: t, fieldName: i } = r;
90
- if (y(e) || w(e) || S(e))
88
+ async function de(a) {
89
+ const { layer: e, view: t, fieldName: i } = a;
90
+ if (y(e) || $(e) || w(e))
91
91
  throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");
92
- P(e) && (e.outFields = ["*"]);
92
+ Z(e) && (e.outFields = ["*"]);
93
93
  try {
94
94
  return await K({
95
95
  layer: e,
@@ -100,29 +100,29 @@ async function ce(r) {
100
100
  throw new Error("could not get unique values");
101
101
  }
102
102
  }
103
- function me(r) {
104
- switch (r.layerField.type) {
103
+ function me(a) {
104
+ switch (a.layerField.type) {
105
105
  case "string":
106
- r.simpleFieldType = "string";
106
+ a.simpleFieldType = "string";
107
107
  break;
108
108
  case "date":
109
- r.simpleFieldType = "date";
109
+ a.simpleFieldType = "date";
110
110
  break;
111
111
  case "timestamp-offset":
112
- r.simpleFieldType = "timestamp-offset";
112
+ a.simpleFieldType = "timestamp-offset";
113
113
  break;
114
114
  case "date-only":
115
- r.simpleFieldType = "date-only";
115
+ a.simpleFieldType = "date-only";
116
116
  break;
117
117
  case "time-only":
118
- r.simpleFieldType = "time-only";
118
+ a.simpleFieldType = "time-only";
119
119
  break;
120
120
  case "oid":
121
- r.simpleFieldType = "oid";
121
+ a.simpleFieldType = "oid";
122
122
  break;
123
123
  case "guid":
124
124
  case "global-id":
125
- r.simpleFieldType = "guid";
125
+ a.simpleFieldType = "guid";
126
126
  break;
127
127
  case "small-integer":
128
128
  case "big-integer":
@@ -130,63 +130,63 @@ function me(r) {
130
130
  case "single":
131
131
  case "double":
132
132
  case "long":
133
- r.simpleFieldType = "number";
133
+ a.simpleFieldType = "number";
134
134
  break;
135
135
  default:
136
- r.simpleFieldType = "string";
136
+ a.simpleFieldType = "string";
137
137
  }
138
138
  }
139
- function fe(r, e) {
139
+ function fe(a, e) {
140
140
  const { layer: t } = e;
141
- if (M(t) && t.subtypeField === r) {
142
- const o = t.parent?.subtypes?.find((l) => l.code === t.subtypeCode);
143
- if (o)
144
- return [new k({ code: o.code, name: o.name })];
141
+ if (M(t) && t.subtypeField === a) {
142
+ const l = t.parent?.subtypes?.find((o) => o.code === t.subtypeCode);
143
+ if (l)
144
+ return [new R({ code: l.code, name: l.name })];
145
145
  }
146
- if (!v(t) && !T(t))
146
+ if (!v(t) && !V(t))
147
147
  return;
148
- const i = v(t) ? t.typeIdField : void 0, n = v(t) ? t.types : void 0;
148
+ const i = v(t) ? t.typeIdField : void 0, r = v(t) ? t.types : void 0;
149
149
  let s;
150
- const m = W(e)?.find((o) => o.name === r), c = m?.domain;
151
- return v(t) && i && n ? (i === r ? s = n.map(
152
- (o) => (
150
+ const m = G(e)?.find((l) => l.name === a), d = m?.domain;
151
+ return v(t) && i && r ? (i === a ? s = r.map(
152
+ (l) => (
153
153
  // fake coded values
154
- new k({
155
- code: o.id,
156
- name: o.name
154
+ new R({
155
+ code: l.id,
156
+ name: l.name
157
157
  })
158
158
  )
159
- ) : (s = [], n.forEach((o) => {
160
- if (!o.domains[r] || o.domains[r].type === "inherited") {
161
- const l = c;
162
- l?.codedValues && l.codedValues.forEach((u) => {
159
+ ) : (s = [], r.forEach((l) => {
160
+ if (!l.domains[a] || l.domains[a].type === "inherited") {
161
+ const o = d;
162
+ o?.codedValues && o.codedValues.forEach((u) => {
163
163
  let g = !1;
164
164
  s.forEach((p) => {
165
165
  p.code === u.code && (g = !0, `, ${p.name},`.includes(`, ${u.name},`) || (p.name += `, ${u.name}`));
166
- }), g || s.push(I.clone(u));
166
+ }), g || s.push(_.clone(u));
167
167
  });
168
- } else o.domains[r].codedValues && o.domains[r].codedValues.forEach((l) => {
168
+ } else l.domains[a].codedValues && l.domains[a].codedValues.forEach((o) => {
169
169
  let u = !1;
170
170
  s.forEach((g) => {
171
- g.code === l.code && (u = !0, `, ${g.name},`.includes(`, ${l.name},`) || (g.name += `, ${l.name}`));
172
- }), u || s.push(I.clone(l));
171
+ g.code === o.code && (u = !0, `, ${g.name},`.includes(`, ${o.name},`) || (g.name += `, ${o.name}`));
172
+ }), u || s.push(_.clone(o));
173
173
  });
174
- })), !s.length && c?.codedValues && (s = I.clone(c.codedValues))) : c?.codedValues && (s = m?.domain?.codedValues), s?.length ? s : void 0;
174
+ })), !s.length && d?.codedValues && (s = _.clone(d.codedValues))) : d?.codedValues && (s = m?.domain?.codedValues), s?.length ? s : void 0;
175
175
  }
176
- async function pe(r) {
177
- const { view: e, layer: t } = r;
178
- if (T(t) || y(t) || w(t))
176
+ async function pe(a) {
177
+ const { view: e, layer: t } = a;
178
+ if (V(t) || y(t) || $(t))
179
179
  throw new Error("could not get feature");
180
- if (v(t) && !t.url || G(t)) {
180
+ if (v(t) && !t.url || U(t)) {
181
181
  const i = t.createQuery();
182
182
  i.start = 0, i.num = 5, i.outFields = ["*"];
183
- const n = await t.queryFeatures(i);
184
- if (n.features.length)
185
- return n;
183
+ const r = await t.queryFeatures(i);
184
+ if (r.features.length)
185
+ return r;
186
186
  throw new Error("could not get feature");
187
187
  } else {
188
188
  if (!e)
189
- return await C(r);
189
+ return await q(a);
190
190
  let i;
191
191
  if (M(t) || X(t)) {
192
192
  let s = t.parent;
@@ -195,19 +195,19 @@ async function pe(r) {
195
195
  te(s) && (i = await e.whenLayerView(s));
196
196
  } else
197
197
  i = await e.whenLayerView(t);
198
- const n = i.availableFields.length === t.fields.length;
199
- if (i && (n || (F(t) || _(t)) && i.availableFields.length > 0)) {
198
+ const r = i.availableFields.length === t.fields.length;
199
+ if (i && (r || (F(t) || O(t)) && i.availableFields.length > 0)) {
200
200
  const s = i.createQuery();
201
201
  s.start = 0, s.num = 5, s.outFields = ["*"];
202
- const a = await i.queryFeatures(s);
203
- return a.features?.length ? a : await C(r);
202
+ const n = await i.queryFeatures(s);
203
+ return n.features?.length ? n : await q(a);
204
204
  } else
205
- return await C(r);
205
+ return await q(a);
206
206
  }
207
207
  }
208
- async function C(r) {
209
- const { layer: e } = r;
210
- if (T(e) || y(e) || F(e) || _(e))
208
+ async function q(a) {
209
+ const { layer: e } = a;
210
+ if (V(e) || y(e) || F(e) || O(e))
211
211
  throw new Error("cannot get feature from service");
212
212
  const t = new ae({
213
213
  where: "1=1",
@@ -216,32 +216,32 @@ async function C(r) {
216
216
  });
217
217
  return "sourceJSON" in e && e.sourceJSON?.advancedQueryCapabilities?.supportsPagination && (t.num = 1), await e.queryFeatures(t);
218
218
  }
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);
219
+ async function ge(a, e) {
220
+ if (Z(a))
221
+ return await he(a);
222
+ if (v(a) || ie(a) || W(a) || U(a) || se(a))
223
+ return await a.queryFeatureCount();
224
+ if (e && (F(a) || O(a)))
225
+ return await ve(a, e);
226
226
  }
227
- async function he(r) {
228
- const e = r.createQuery();
227
+ async function he(a) {
228
+ const e = a.createQuery();
229
229
  e.outFields = ["*"];
230
- const t = await r.queryFeatures(e);
230
+ const t = await a.queryFeatures(e);
231
231
  if (t.features.length)
232
232
  return t.features.length;
233
233
  throw new Error("could not get feature count");
234
234
  }
235
- async function ve(r, e) {
236
- return await (await e.whenLayerView(r)).queryFeatureCount();
235
+ async function ve(a, e) {
236
+ return await (await e.whenLayerView(a)).queryFeatureCount();
237
237
  }
238
- const ye = H`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-surface-2)}.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 {
238
+ const ye = j`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-surface-2)}.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 Q {
240
240
  constructor() {
241
- super(...arguments), this._messages = re({ blocking: !0 }), this._propWatcherTask = new j(this, {
241
+ super(...arguments), this._messages = re({ blocking: !0 }), this.initialized = !1, this._propWatcherTask = new J(this, {
242
242
  task: async ([e, t]) => {
243
243
  const i = f(e) && f(t);
244
- if (f(e) || q("error", this, L("layer")), f(t) || q("error", this, L("fieldName")), !i)
244
+ if (f(e) || C("error", this, L("layer")), f(t) || C("error", this, L("fieldName")), !i)
245
245
  throw new Error();
246
246
  await this.processProps(), this._propWatcherTask.autoRun = !1;
247
247
  },
@@ -257,73 +257,88 @@ class Fe extends J {
257
257
  async refresh() {
258
258
  await this.processProps(), this.requestUpdate();
259
259
  }
260
+ async willUpdate(e) {
261
+ this.initialized && (e.has("fieldName") || e.has("layer")) && await this.processProps();
262
+ }
260
263
  disconnectedCallback() {
261
264
  super.disconnectedCallback(), this.timeZoneHandle?.remove();
262
265
  }
263
266
  async processProps() {
264
- const { view: e, layer: t, fieldName: i, hideStatistics: n } = this;
267
+ const { view: e, layer: t, fieldName: i, hideStatistics: r } = this;
265
268
  if (!t || !i)
266
269
  return;
267
270
  let s;
268
271
  if (t.declaredClass === "esri.layers.support.Sublayer") {
269
- const a = t;
270
- e && await x.whenOnce(() => !e.updating), s = await a.createFeatureLayer(), await s?.load();
272
+ const n = t;
273
+ e && await x.whenOnce(() => !e.updating), s = await n.createFeatureLayer(), await s?.load();
271
274
  }
272
- this.props = {
275
+ if (this.oneFeatureResponseStatus = "missing", this.oneFeatureResponse = void 0, this.statisticsStatus = "missing", this.statistics = void 0, this.uniqueValuesStatus = "missing", this.uniqueValues = void 0, this.props = {
273
276
  view: e,
274
277
  layer: s ?? t,
275
278
  fieldName: i,
276
- hideStatistics: n
277
- }, this.props.fieldInfo = ue(this.props), U(t) && z.request.interceptors?.push({
279
+ hideStatistics: r
280
+ }, this.props.fieldInfo = ue(this.props), !this.props.fieldInfo) {
281
+ C("error", this, `Field ${i} does not exist in layer.`);
282
+ return;
283
+ }
284
+ W(t) && z.request.interceptors?.push({
278
285
  urls: `${ne(t)}/${t.layerId}`,
279
- before(a) {
280
- a.requestOptions.authMode = "no-prompt";
286
+ before(n) {
287
+ n.requestOptions.authMode = "no-prompt";
281
288
  }
282
- }), this.oneFeatureResponseStatus = "in-progress";
289
+ }), this.processPropsPart2();
290
+ }
291
+ async processPropsPart2() {
292
+ const { layer: e, hideStatistics: t } = this;
293
+ if (await this.requestOneFeature(), F(e) || k(e) || E(e)) {
294
+ this.uniqueValuesStatus = "failed", this.statisticsStatus = "failed";
295
+ return;
296
+ }
297
+ t ? this.uniqueValuesStatus = "failed" : await this.requestUniqueValues(), t ? this.statisticsStatus = "failed" : await this.requestStatistics(), this.setUpTimeZoneHandle(), this.initialized = !0;
298
+ }
299
+ async requestOneFeature() {
300
+ this.oneFeatureResponseStatus = "in-progress";
283
301
  try {
284
- const a = await pe(this.props);
285
- this.oneFeatureResponse = a, this.oneFeatureResponseStatus = "success";
302
+ const e = await pe(this.props);
303
+ this.oneFeatureResponse = e, this.oneFeatureResponseStatus = "success";
286
304
  } catch {
287
305
  this.oneFeatureResponseStatus = "failed";
288
306
  }
289
- if (F(t) || E(t) || R(t)) {
290
- this.uniqueValuesStatus = "failed", this.statisticsStatus = "failed";
291
- return;
292
- }
293
- if (n)
294
- this.uniqueValuesStatus = "failed";
295
- else {
296
- this.uniqueValuesStatus = "in-progress";
307
+ }
308
+ async requestUniqueValues() {
309
+ return this.uniqueValuesStatus = "in-progress", await new Promise(async (e) => {
297
310
  try {
298
- const a = await ce(this.props);
299
- this.uniqueValues = a, a?.uniqueValueInfos?.length ? this.uniqueValuesStatus = "success" : this.uniqueValuesStatus = "failed";
311
+ const t = await de(this.props);
312
+ this.uniqueValues = t, t?.uniqueValueInfos?.length ? this.uniqueValuesStatus = "success" : this.uniqueValuesStatus = "failed";
300
313
  } catch {
301
314
  this.uniqueValuesStatus = "failed";
315
+ } finally {
316
+ e();
302
317
  }
303
- }
304
- if (n)
305
- this.statisticsStatus = "failed";
306
- else {
307
- this.statisticsStatus = "in-progress";
318
+ });
319
+ }
320
+ async requestStatistics() {
321
+ return await new Promise(async (e) => {
308
322
  try {
309
- const a = await de(this.props);
310
- if (!f(a.totalCount) && f(a.count) && this.uniqueValuesStatus === "success") {
311
- const m = this.uniqueValues?.uniqueValueInfos ?? [];
312
- for (let c = 0; c < m.length; c++) {
313
- const o = m[c];
314
- if (o.value === null) {
315
- a.totalCount = o.count + a.count;
323
+ const t = await ce(this.props);
324
+ if (!f(t.totalCount) && f(t.count) && this.uniqueValuesStatus === "success") {
325
+ const i = this.uniqueValues?.uniqueValueInfos ?? [];
326
+ for (let r = 0; r < i.length; r++) {
327
+ const s = i[r];
328
+ if (s.value === null) {
329
+ t.totalCount = s.count + t.count;
316
330
  break;
317
331
  }
318
332
  }
319
- a.totalCount ??= a.count;
333
+ t.totalCount ??= t.count;
320
334
  }
321
- this.statistics = a, this.statisticsStatus = "success";
335
+ this.statistics = t, this.statisticsStatus = "success";
322
336
  } catch {
323
337
  this.statisticsStatus = "failed";
338
+ } finally {
339
+ e();
324
340
  }
325
- }
326
- this.setUpTimeZoneHandle();
341
+ });
327
342
  }
328
343
  setUpTimeZoneHandle() {
329
344
  this.timeZoneHandle?.remove();
@@ -431,8 +446,8 @@ class Fe extends J {
431
446
  }
432
447
  }
433
448
  _getDisplayString(e, t) {
434
- const { props: i } = this, { fieldInfo: n } = i;
435
- switch (n.simpleFieldType) {
449
+ const { props: i } = this, { fieldInfo: r } = i;
450
+ switch (r.simpleFieldType) {
436
451
  case "date":
437
452
  return this._getDateString(e, t);
438
453
  case "date-only":
@@ -491,8 +506,13 @@ class Fe extends J {
491
506
  _printNumValue(e, t) {
492
507
  return f(e) ? this._getNumberString(e, t) : "--";
493
508
  }
494
- _setCompleteRef() {
495
- this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit();
509
+ _setCompleteRef(e) {
510
+ if (this.completeRefHandler && clearInterval(this.completeRefHandler), e) {
511
+ let t = 0;
512
+ this.completeRefHandler = setInterval(() => {
513
+ (t > 130 || this.isFinished(this.uniqueValuesStatus) && this.isFinished(this.statisticsStatus)) && (clearInterval(this.completeRefHandler), this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit()), t++;
514
+ }, 1e3);
515
+ }
496
516
  }
497
517
  getCurrentFieldFormat() {
498
518
  const { props: e } = this, { layer: t, fieldName: i } = e;
@@ -513,17 +533,17 @@ class Fe extends J {
513
533
  } : void 0;
514
534
  if (i)
515
535
  return i;
516
- const n = this.getPopupTemplateFieldInfo();
536
+ const r = this.getPopupTemplateFieldInfo();
517
537
  return h.convertNumberFormatToIntlOptions({
518
- digitSeparator: n?.format?.digitSeparator ?? !0,
519
- places: n?.format?.places ?? 2
538
+ digitSeparator: r?.format?.digitSeparator ?? !0,
539
+ places: r?.format?.places ?? 2
520
540
  });
521
541
  }
522
542
  getIntlDateTimeFormattingOptions(e, t) {
523
543
  const i = this.getCurrentFieldFormat();
524
544
  if (!t?.useFieldFormatting)
525
545
  return i ? t?.isTimeOnly ? le : oe : h.convertDateFormatToIntlOptions(e);
526
- const n = i ? {
546
+ const r = i ? {
527
547
  dateStyle: t?.isTimeOnly ? void 0 : i.dateStyle ?? void 0,
528
548
  // year/month is overridden if dateStyle is set
529
549
  year: i.dateStyle ? void 0 : i.year ?? void 0,
@@ -531,43 +551,46 @@ class Fe extends J {
531
551
  timeStyle: i.timeStyle ?? void 0,
532
552
  hourCycle: i.hour12 === "never" ? "h23" : "h11"
533
553
  } : void 0;
534
- if (n)
535
- return n;
554
+ if (r)
555
+ return r;
536
556
  const s = this.getPopupTemplateFieldInfo();
537
557
  return h.convertDateFormatToIntlOptions(s?.format?.dateFormat ?? e);
538
558
  }
539
559
  originalLayerSupportsFieldConfigs() {
540
560
  const { layer: e } = this;
541
- return Z.supportsFieldConfiguration(e);
561
+ return A.supportsFieldConfiguration(e);
542
562
  }
543
563
  getPopupTemplateFieldInfo() {
544
564
  const { props: e } = this, { layer: t, fieldName: i } = e;
545
565
  return ("popupTemplate" in t ? t.popupTemplate : void 0)?.fieldInfos?.find((s) => s.fieldName === i);
546
566
  }
567
+ isFinished(e) {
568
+ return ["success", "failed"].includes(e);
569
+ }
547
570
  render() {
548
571
  return this._propWatcherTask.render({
549
- pending: () => d`<calcite-scrim loading></calcite-scrim>`,
572
+ pending: () => c`<calcite-scrim loading></calcite-scrim>`,
550
573
  complete: () => {
551
574
  const { props: e } = this, { fieldInfo: t } = e;
552
- return t ? d`<div class="container">${this.renderFieldType()}${this.renderFieldAlias()}${this.renderFieldDescription()}${this.renderFieldValueType()}${this.renderFieldSampleValue()}${this.renderFieldNumericFormat()}${this.renderFieldStatistics()}</div>` : "";
575
+ return t ? c`<div class="container">${this.renderFieldType()}${this.renderFieldAlias()}${this.renderFieldDescription()}${this.renderFieldValueType()}${this.renderFieldSampleValue()}${this.renderFieldNumericFormat()}${this.renderFieldStatistics()}</div>` : "";
553
576
  },
554
577
  error: () => ""
555
578
  });
556
579
  }
557
580
  renderFieldType() {
558
- const { _messages: e, props: t } = this, { fieldInfo: i } = t, n = this._getFieldTypeLabel(i.layerField.type);
559
- return d`<div class="section"><div class="title">${e.fieldType}</div><div>${n}</div></div>`;
581
+ const { _messages: e, props: t } = this, { fieldInfo: i } = t, r = this._getFieldTypeLabel(i.layerField.type);
582
+ return c`<div class="section"><div class="title">${e.fieldType}</div><div>${r}</div></div>`;
560
583
  }
561
584
  renderFieldAlias() {
562
- const { _messages: e, props: t, hideAlias: i } = this, { fieldInfo: n } = t;
563
- return i ? "" : d`<div class="section"><div class="title">${e.fieldAlias}</div><div>${n.label}</div></div>`;
585
+ const { _messages: e, props: t, hideAlias: i } = this, { fieldInfo: r } = t;
586
+ return i ? "" : c`<div class="section"><div class="title">${e.fieldAlias}</div><div>${r.label}</div></div>`;
564
587
  }
565
588
  renderFieldDescription() {
566
589
  const { _messages: e, props: t } = this, { layer: i } = t;
567
590
  if (!v(i))
568
591
  return "";
569
- const { fieldInfo: n } = t, s = n.layerField.description;
570
- return d`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${V({
592
+ const { fieldInfo: r } = t, s = r.layerField.description;
593
+ return c`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${I({
571
594
  missing: !s
572
595
  })}>${s || e.fieldDescriptionNotSet}</div></div>`;
573
596
  }
@@ -575,49 +598,53 @@ class Fe extends J {
575
598
  const { _messages: e, props: t } = this, { layer: i } = t;
576
599
  if (!v(i))
577
600
  return "";
578
- const { fieldInfo: n } = t, s = this._getFieldValueTypeCamelCase(n);
579
- return d`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${V(s ? "" : "missing")}>${s ? e.fieldValueTypes[s] : e.fieldValueTypeNotSet}</div></div>`;
601
+ const { fieldInfo: r } = t, s = this._getFieldValueTypeCamelCase(r);
602
+ return c`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${I(s ? "" : "missing")}>${s ? e.fieldValueTypes[s] : e.fieldValueTypeNotSet}</div></div>`;
580
603
  }
581
604
  renderFieldSampleValue() {
582
- const { oneFeatureResponse: e, oneFeatureResponseStatus: t, statisticsStatus: i, statistics: n, uniqueValuesStatus: s, uniqueValues: a, _messages: m, props: c } = this, { layer: o, fieldName: l, fieldInfo: u } = c, { statistics: g } = m;
605
+ const { oneFeatureResponse: e, oneFeatureResponseStatus: t, statisticsStatus: i, statistics: r, uniqueValuesStatus: s, uniqueValues: n, _messages: m, props: d } = this, { layer: l, fieldName: o, fieldInfo: u } = d, { statistics: g } = m;
583
606
  let p;
584
- if (y(o) || S(o) || !F(o) && ["string", "oid", "guid"].includes(this._getStatisticsType(u)) && s !== "failed")
607
+ if (y(l) || w(l) || !F(l) && ["string", "oid", "guid"].includes(this._getStatisticsType(u)) && s !== "failed")
585
608
  return "";
586
- t === "success" ? e.features.forEach(($) => {
587
- (p === void 0 || p === null && $.attributes[l] !== null) && (p = $.attributes[l]);
588
- }) : i === "success" ? p = n?.min ?? void 0 : s === "success" && (p = a?.uniqueValueInfos?.[0]?.value ?? a?.uniqueValueInfos?.[1]?.value ?? void 0);
609
+ t === "success" ? e.features.forEach((T) => {
610
+ (p === void 0 || p === null && T.attributes[o] !== null) && (p = T.attributes[o]);
611
+ }) : i === "success" ? p = r?.min ?? void 0 : s === "success" && (p = n?.uniqueValueInfos?.[0]?.value ?? n?.uniqueValueInfos?.[1]?.value ?? void 0);
589
612
  const N = u.codedValues;
590
- return f(p) && (N ? p = N.find(($) => p === $.code)?.name || p : p = this._getDisplayString(p, { useFieldFormatting: !0 })), d`<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>`;
613
+ return f(p) && (N ? p = N.find((T) => p === T.code)?.name || p : p = this._getDisplayString(p, { useFieldFormatting: !0 })), c`<div class="section"><div class="title">${m.fieldSampleValue}</div><div class=${I(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>`;
591
614
  }
592
615
  renderFieldNumericFormat() {
593
- const { _messages: e, props: t, hideNumericFormat: i } = this, { fieldName: n, fieldInfo: s, layer: a } = t;
616
+ const { _messages: e, props: t, hideNumericFormat: i } = this, { fieldName: r, fieldInfo: s, layer: n } = t;
594
617
  if (i || !["double", "long", "single"].includes(s.layerField.type))
595
618
  return "";
596
- const m = this.originalLayerSupportsFieldConfigs() ? a.getFieldConfiguration(n) : void 0;
619
+ const m = this.originalLayerSupportsFieldConfigs() ? n.getFieldConfiguration(r) : void 0;
597
620
  if (m?.fieldFormat) {
598
- const { minimumFractionDigits: o, maximumFractionDigits: l } = m.fieldFormat;
599
- return d`<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>`;
621
+ const { minimumFractionDigits: l, maximumFractionDigits: o } = m.fieldFormat;
622
+ return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldMinimumFractionDigits.replace("${number}", l.toString())}</div><div>${e.fieldMaximumFractionDigits.replace("${number}", o.toString())}</div></div>`;
600
623
  }
601
- const c = "popupTemplate" in a ? a.popupTemplate : void 0;
602
- if (c?.fieldInfos) {
603
- const o = c.fieldInfos?.filter((l) => l.fieldName === n);
604
- if (o?.length) {
605
- const l = o[0];
606
- if (f(l?.format?.places)) {
607
- const u = l.format.places;
608
- return d`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}", u.toString())}</div></div>`;
624
+ const d = "popupTemplate" in n ? n.popupTemplate : void 0;
625
+ if (d?.fieldInfos) {
626
+ const l = d.fieldInfos?.filter((o) => o.fieldName === r);
627
+ if (l?.length) {
628
+ const o = l[0];
629
+ if (f(o?.format?.places)) {
630
+ const u = o.format.places;
631
+ return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}", u.toString())}</div></div>`;
609
632
  }
610
633
  }
611
634
  }
612
- return d`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div class="missing">${e.fieldDecimalPlacesNotAvailable}</div></div>`;
635
+ return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div class="missing">${e.fieldDecimalPlacesNotAvailable}</div></div>`;
613
636
  }
614
637
  renderFieldStatistics() {
615
- const { statisticsStatus: e, uniqueValuesStatus: t, hideStatistics: i, _messages: n, props: s } = this, { layer: a, fieldInfo: m } = s;
616
- 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(), "") : d`<div class="section"><div class="title">${n.fieldStatistics}</div>${!e || e === "missing" || e === "in-progress" ? b("field-info-statistics-content", d`<div class="missing">${n.fieldStatisticsRetrieving}</div>`) : e === "failed" && t !== "success" ? this.renderNoStatistics() : b("field-info-statistics-content", d`<div ${O(this._setCompleteRef)}>${this.renderStatistics()}</div>`)}</div>`;
638
+ const { statisticsStatus: e, uniqueValuesStatus: t, hideStatistics: i, _messages: r, props: s } = this, { layer: n, fieldInfo: m } = s;
639
+ return i ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : k(n) || E(n) || F(n) || y(n) || w(n) || ["long"].includes(m.layerField.type) ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : c`<div class="section"><div class="title">${r.fieldStatistics}</div>${!this.isFinished(t) && !this.isFinished(e) ? this.renderWaitingForStatistics() : e === "failed" && t === "failed" ? this.renderNoStatistics() : this.renderStatistics()}</div>`;
640
+ }
641
+ renderWaitingForStatistics() {
642
+ const { _messages: e } = this;
643
+ return S("field-info-statistics-content", c`<div class="missing">${e.fieldStatisticsRetrieving}</div>`);
617
644
  }
618
645
  renderNoStatistics() {
619
646
  const { _messages: e } = this;
620
- return b("field-info-statistics-content", d`<div class="missing" ${O(this._setCompleteRef)}>${e.fieldStatisticsNotAvailable}</div>`);
647
+ return S("field-info-statistics-content", c`<div class="missing" ${b(this._setCompleteRef)}>${e.fieldStatisticsNotAvailable}</div>`);
621
648
  }
622
649
  renderStatistics() {
623
650
  const { props: e } = this, { fieldInfo: t } = e;
@@ -640,58 +667,58 @@ class Fe extends J {
640
667
  renderNumberStatistics() {
641
668
  const { statistics: e, _messages: t } = this;
642
669
  if (!e)
643
- return this.renderNoStatistics();
670
+ return this.renderWaitingForStatistics();
644
671
  const { statistics: i } = t;
645
- return d`<div><div class="statistics-row"><div>${i.numberOfValues}</div><div class="data">${this._printNumValue(e.totalCount)}</div></div>${f(e.sum) ? d`<div class="statistics-row"><div>${i.sumOfValues}</div><div class="data">${this._printNumValue(e.sum)}</div></div>` : null}${f(e.min) ? d`<div class="statistics-row"><div>${i.minimum}</div><div class="data">${this._printNumValue(e.min)}</div></div>` : null}${f(e.max) ? d`<div class="statistics-row"><div>${i.maximum}</div><div class="data">${this._printNumValue(e.max)}</div></div>` : null}${f(e.avg) ? d`<div class="statistics-row"><div>${i.average}</div><div class="data">${this._printNumValue(e.avg)}</div></div>` : null}${f(e.stddev) ? d`<div class="statistics-row"><div>${i.standardDeviation}</div><div class="data">${this._printNumValue(e.stddev)}</div></div>` : null}${this.renderNullValues()}</div>`;
672
+ return S("field-info-statistics-content", c`<div ${b(this._setCompleteRef)}><div class="statistics-row"><div>${i.numberOfValues}</div><div class="data">${this._printNumValue(e.totalCount)}</div></div>${f(e.sum) ? c`<div class="statistics-row"><div>${i.sumOfValues}</div><div class="data">${this._printNumValue(e.sum)}</div></div>` : null}${f(e.min) ? c`<div class="statistics-row"><div>${i.minimum}</div><div class="data">${this._printNumValue(e.min)}</div></div>` : null}${f(e.max) ? c`<div class="statistics-row"><div>${i.maximum}</div><div class="data">${this._printNumValue(e.max)}</div></div>` : null}${f(e.avg) ? c`<div class="statistics-row"><div>${i.average}</div><div class="data">${this._printNumValue(e.avg)}</div></div>` : null}${f(e.stddev) ? c`<div class="statistics-row"><div>${i.standardDeviation}</div><div class="data">${this._printNumValue(e.stddev)}</div></div>` : null}${this.renderNullValues()}</div>`);
646
673
  }
647
674
  renderStringStatistics() {
648
- const { statistics: e, uniqueValuesStatus: t, _messages: i } = this, { statistics: n } = i;
649
- return d`<div><div class="statistics-row"><div>${n.numberOfValues}</div>${t !== "success" ? d`<div class="missing">--</div>` : d`<div class="data">${this._printNumValue(e?.totalCount)}</div>`}</div>${this.renderNullValues()}${this.renderTopValues()}</div>`;
675
+ const { statistics: e, uniqueValuesStatus: t, _messages: i } = this, { statistics: r } = i;
676
+ return S("field-info-statistics-content", c`<div ${b(this._setCompleteRef)}><div class="statistics-row"><div>${r.numberOfValues}</div>${t !== "success" ? c`<div class="missing">--</div>` : c`<div class="data">${this._printNumValue(e?.totalCount)}</div>`}</div>${this.renderNullValues()}${this.renderTopValues()}</div>`);
650
677
  }
651
678
  renderDateStatistics() {
652
- const { statistics: e, view: t, props: i, _messages: n } = this, { fieldInfo: s } = i;
679
+ const { statistics: e, view: t, props: i, _messages: r } = this, { fieldInfo: s } = i;
653
680
  if (!e || !f(e.max) || !f(e.min))
654
- return this.renderNoStatistics();
655
- const { statistics: a } = n, m = e.max - e.min, c = Math.floor(m / 31536e6);
656
- let o = Math.floor((m - c * 31536e6) / 2628e6), l = Math.ceil((m - o * 2628e6) / 864e5);
657
- l >= 30 && (o += 1, l = 0);
658
- let u = c === 1 ? a.timeSpanOptions.year : c > 1 ? a.timeSpanOptions.years.replace("${years}", c.toString()) : "";
659
- u += c > 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()) : "";
681
+ return this.renderWaitingForStatistics();
682
+ const { statistics: n } = r, m = e.max - e.min, d = Math.floor(m / 31536e6);
683
+ let l = Math.floor((m - d * 31536e6) / 2628e6), o = Math.ceil((m - l * 2628e6) / 864e5);
684
+ o >= 30 && (l += 1, o = 0);
685
+ let u = d === 1 ? n.timeSpanOptions.year : d > 1 ? n.timeSpanOptions.years.replace("${years}", d.toString()) : "";
686
+ u += d > 0 && (l > 0 || o > 0) ? ", " : "", u += l === 1 ? n.timeSpanOptions.month : l > 1 ? n.timeSpanOptions.months.replace("${months}", l.toString()) : "", u += l > 0 && o > 0 ? ", " : "", u += o === 1 ? n.timeSpanOptions.day : o > 1 ? n.timeSpanOptions.days.replace("${days}", o.toString()) : "";
660
687
  const g = s.simpleFieldType !== "timestamp-offset" || !t || t.timeZone !== "unknown", p = s.simpleFieldType === "time-only";
661
- return d`<div><div class="statistics-row"><div>${a.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${g && f(e.min) ? d`<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) ? d`<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) ? d`<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 ? d`<div class="statistics-row"><div>${a.timespan}</div><div class="data">${u}</div></div>` : null}${this.renderNullValues()}</div>`;
688
+ return S("field-info-statistics-content", c`<div ${b(this._setCompleteRef)}><div class="statistics-row"><div>${n.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${g && f(e.min) ? c`<div class="statistics-row"><div>${p ? n.minimumTime : n.minimumDate}</div><div class="data">${this._getDisplayString(e.min)}</div></div>` : null}${g && f(e.max) ? c`<div class="statistics-row"><div>${p ? n.maximumTime : n.maximumDate}</div><div class="data">${this._getDisplayString(e.max)}</div></div>` : null}${g && f(e.avg) ? c`<div class="statistics-row"><div>${p ? n.averageTime : n.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>${n.timespan}</div><div class="data">${u}</div></div>` : null}${this.renderNullValues()}</div>`);
662
689
  }
663
690
  renderTopValues() {
664
- const { uniqueValues: e, uniqueValuesStatus: t, _messages: i, props: n } = this, { fieldInfo: s } = n, { statistics: a } = i;
691
+ const { uniqueValues: e, uniqueValuesStatus: t, _messages: i, props: r } = this, { fieldInfo: s } = r, { statistics: n } = i;
665
692
  if (e?.uniqueValueInfos?.length) {
666
693
  const m = e.uniqueValueInfos;
667
- m.sort((l, u) => l.count < u.count ? 1 : l.count > u.count ? -1 : 0);
668
- const c = s.codedValues, o = m.filter((l) => l.value !== null).filter((l, u) => l && u < 10).map((l) => {
669
- let u = l.value;
670
- return c ? c.forEach((g) => {
694
+ m.sort((o, u) => o.count < u.count ? 1 : o.count > u.count ? -1 : 0);
695
+ const d = s.codedValues, l = m.filter((o) => o.value !== null).filter((o, u) => o && u < 10).map((o) => {
696
+ let u = o.value;
697
+ return d ? d.forEach((g) => {
671
698
  u === g.code && (u = g.name);
672
- }) : u = this._getDisplayString(u), d`<div class="statistics-row"><div class="data">${`${u}`}</div><div class="count">${this._printNumValue(l.count)}</div></div>`;
699
+ }) : u = this._getDisplayString(u), c`<div class="statistics-row"><div class="data">${`${u}`}</div><div class="count">${this._printNumValue(o.count)}</div></div>`;
673
700
  });
674
- return o.length ? d`<div><div class="statistics-row-top-values"><div>${m.length > 10 ? a.topTenValues : a.topValues}</div><div>${a.count}</div></div>${o}</div>` : "";
701
+ return l.length ? c`<div><div class="statistics-row-top-values"><div>${m.length > 10 ? n.topTenValues : n.topValues}</div><div>${n.count}</div></div>${l}</div>` : "";
675
702
  } else
676
- return d`<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>`;
703
+ return c`<div><div class="statistics-row-top-values"><div>${n.topValues}</div><div>${n.count}</div></div><div class="statistics-row"><div class="missing">${t === "failed" ? i.fieldUniqueValuesNotAvailable : i.fieldSampleRetrieving}</div></div></div>`;
677
704
  }
678
705
  renderNullValues() {
679
- const { statistics: e, uniqueValues: t, _messages: i } = this, { statistics: n } = i;
706
+ const { statistics: e, uniqueValues: t, _messages: i } = this, { statistics: r } = i;
680
707
  let s = e?.nullcount;
681
708
  if (!f(s) && t) {
682
- const a = t.uniqueValueInfos;
683
- for (let m = 0; m < a.length; m++) {
684
- const c = a[m];
685
- if (c.value === null) {
686
- s = c.count;
709
+ const n = t.uniqueValueInfos;
710
+ for (let m = 0; m < n.length; m++) {
711
+ const d = n[m];
712
+ if (d.value === null) {
713
+ s = d.count;
687
714
  break;
688
715
  }
689
716
  }
690
717
  }
691
- return d`<div class="statistics-row"><div>${n.numberOfNulls}</div>${f(s) ? d`<div class="data">${this._printNumValue(s)}</div>` : d`<div class="missing">--</div>`}</div>`;
718
+ return c`<div class="statistics-row"><div>${r.numberOfNulls}</div>${f(s) ? c`<div class="data">${this._printNumValue(s)}</div>` : c`<div class="missing">--</div>`}</div>`;
692
719
  }
693
720
  }
694
- Q("arcgis-field-info", Fe);
721
+ H("arcgis-field-info", Fe);
695
722
  export {
696
723
  Fe as ArcgisFieldInfo
697
724
  };