@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.
Files changed (174) hide show
  1. package/dist/cdn/{232BH3SJ.js → 2XA6O2MP.js} +1 -1
  2. package/dist/cdn/3P53QRGS.js +2 -0
  3. package/dist/cdn/4W7JZPB6.js +2 -0
  4. package/dist/cdn/{YG4PY2H3.js → 5KS7T5BY.js} +1 -1
  5. package/dist/cdn/{OOBX2C2L.js → AFBKMYU6.js} +1 -1
  6. package/dist/cdn/EDYH6JAL.js +2 -0
  7. package/dist/cdn/FNF3USON.js +2 -0
  8. package/dist/cdn/GVOQ2CB7.js +2 -0
  9. package/dist/cdn/{F45Q3BRT.js → IUJ4ILLQ.js} +1 -1
  10. package/dist/cdn/{WJ3TYWP2.js → JLPZ3OR2.js} +1 -1
  11. package/dist/cdn/L2JNUMXB.js +2 -0
  12. package/dist/cdn/L5RMOAO3.js +2 -0
  13. package/dist/cdn/LBD3GPSD.js +2 -0
  14. package/dist/cdn/LKUOAV7B.js +2 -0
  15. package/dist/cdn/{YVCGEEMG.js → MCZBUYS5.js} +1 -1
  16. package/dist/cdn/N7C4DINF.js +2 -0
  17. package/dist/cdn/OBIWQRXY.js +2 -0
  18. package/dist/cdn/Q6B36HJB.js +2 -0
  19. package/dist/cdn/{BDF4ZLUF.js → TXYPZ6MB.js} +1 -1
  20. package/dist/cdn/{6XE5JNJ7.js → V5SIP2PW.js} +2 -2
  21. package/dist/cdn/{MINFRX4Y.js → VQLI4IE7.js} +1 -1
  22. package/dist/cdn/WEKRF34E.js +2 -0
  23. package/dist/cdn/WLYFLEI6.js +2 -0
  24. package/dist/cdn/XRARFMJ7.js +2 -0
  25. package/dist/cdn/YGG3CY7R.js +2 -0
  26. package/dist/cdn/Z5QBBHLD.js +2 -0
  27. package/dist/cdn/ZDMNUSIJ.js +2 -0
  28. package/dist/cdn/ZFQOATQO.js +2 -0
  29. package/dist/cdn/ZPPRHEY3.js +2 -0
  30. package/dist/cdn/assets/value-picker/t9n/messages.ar.json +1 -0
  31. package/dist/cdn/assets/value-picker/t9n/messages.bg.json +1 -0
  32. package/dist/cdn/assets/value-picker/t9n/messages.bs.json +1 -0
  33. package/dist/cdn/assets/value-picker/t9n/messages.ca.json +1 -0
  34. package/dist/cdn/assets/value-picker/t9n/messages.cs.json +1 -0
  35. package/dist/cdn/assets/value-picker/t9n/messages.da.json +1 -0
  36. package/dist/cdn/assets/value-picker/t9n/messages.de.json +1 -0
  37. package/dist/cdn/assets/value-picker/t9n/messages.el.json +1 -0
  38. package/dist/cdn/assets/value-picker/t9n/messages.en.json +1 -0
  39. package/dist/cdn/assets/value-picker/t9n/messages.es.json +1 -0
  40. package/dist/cdn/assets/value-picker/t9n/messages.et.json +1 -0
  41. package/dist/cdn/assets/value-picker/t9n/messages.fi.json +1 -0
  42. package/dist/cdn/assets/value-picker/t9n/messages.fr.json +1 -0
  43. package/dist/cdn/assets/value-picker/t9n/messages.he.json +1 -0
  44. package/dist/cdn/assets/value-picker/t9n/messages.hr.json +1 -0
  45. package/dist/cdn/assets/value-picker/t9n/messages.hu.json +1 -0
  46. package/dist/cdn/assets/value-picker/t9n/messages.id.json +1 -0
  47. package/dist/cdn/assets/value-picker/t9n/messages.it.json +1 -0
  48. package/dist/cdn/assets/value-picker/t9n/messages.ja.json +1 -0
  49. package/dist/cdn/assets/value-picker/t9n/messages.ko.json +1 -0
  50. package/dist/cdn/assets/value-picker/t9n/messages.lt.json +1 -0
  51. package/dist/cdn/assets/value-picker/t9n/messages.lv.json +1 -0
  52. package/dist/cdn/assets/value-picker/t9n/messages.nl.json +1 -0
  53. package/dist/cdn/assets/value-picker/t9n/messages.no.json +1 -0
  54. package/dist/cdn/assets/value-picker/t9n/messages.pl.json +1 -0
  55. package/dist/cdn/assets/value-picker/t9n/messages.pt-BR.json +1 -0
  56. package/dist/cdn/assets/value-picker/t9n/messages.pt-PT.json +1 -0
  57. package/dist/cdn/assets/value-picker/t9n/messages.ro.json +1 -0
  58. package/dist/cdn/assets/value-picker/t9n/messages.ru.json +1 -0
  59. package/dist/cdn/assets/value-picker/t9n/messages.sk.json +1 -0
  60. package/dist/cdn/assets/value-picker/t9n/messages.sl.json +1 -0
  61. package/dist/cdn/assets/value-picker/t9n/messages.sr.json +1 -0
  62. package/dist/cdn/assets/value-picker/t9n/messages.sv.json +1 -0
  63. package/dist/cdn/assets/value-picker/t9n/messages.th.json +1 -0
  64. package/dist/cdn/assets/value-picker/t9n/messages.tr.json +1 -0
  65. package/dist/cdn/assets/value-picker/t9n/messages.uk.json +1 -0
  66. package/dist/cdn/assets/value-picker/t9n/messages.vi.json +1 -0
  67. package/dist/cdn/assets/value-picker/t9n/messages.zh-CN.json +1 -0
  68. package/dist/cdn/assets/value-picker/t9n/messages.zh-HK.json +1 -0
  69. package/dist/cdn/assets/value-picker/t9n/messages.zh-TW.json +1 -0
  70. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ar.json +1 -0
  71. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bg.json +1 -0
  72. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bs.json +1 -0
  73. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ca.json +1 -0
  74. package/dist/cdn/assets/value-picker-combobox/t9n/messages.cs.json +1 -0
  75. package/dist/cdn/assets/value-picker-combobox/t9n/messages.da.json +1 -0
  76. package/dist/cdn/assets/value-picker-combobox/t9n/messages.de.json +1 -0
  77. package/dist/cdn/assets/value-picker-combobox/t9n/messages.el.json +1 -0
  78. package/dist/cdn/assets/value-picker-combobox/t9n/messages.en.json +1 -0
  79. package/dist/cdn/assets/value-picker-combobox/t9n/messages.es.json +1 -0
  80. package/dist/cdn/assets/value-picker-combobox/t9n/messages.et.json +1 -0
  81. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fi.json +1 -0
  82. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fr.json +1 -0
  83. package/dist/cdn/assets/value-picker-combobox/t9n/messages.he.json +1 -0
  84. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hr.json +1 -0
  85. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hu.json +1 -0
  86. package/dist/cdn/assets/value-picker-combobox/t9n/messages.id.json +1 -0
  87. package/dist/cdn/assets/value-picker-combobox/t9n/messages.it.json +1 -0
  88. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ja.json +1 -0
  89. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ko.json +1 -0
  90. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lt.json +1 -0
  91. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lv.json +1 -0
  92. package/dist/cdn/assets/value-picker-combobox/t9n/messages.nl.json +1 -0
  93. package/dist/cdn/assets/value-picker-combobox/t9n/messages.no.json +1 -0
  94. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pl.json +1 -0
  95. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-BR.json +1 -0
  96. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-PT.json +1 -0
  97. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ro.json +1 -0
  98. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ru.json +1 -0
  99. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sk.json +1 -0
  100. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sl.json +1 -0
  101. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sr.json +1 -0
  102. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sv.json +1 -0
  103. package/dist/cdn/assets/value-picker-combobox/t9n/messages.th.json +1 -0
  104. package/dist/cdn/assets/value-picker-combobox/t9n/messages.tr.json +1 -0
  105. package/dist/cdn/assets/value-picker-combobox/t9n/messages.uk.json +1 -0
  106. package/dist/cdn/assets/value-picker-combobox/t9n/messages.vi.json +1 -0
  107. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-CN.json +1 -0
  108. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-HK.json +1 -0
  109. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-TW.json +1 -0
  110. package/dist/cdn/index.js +1 -1
  111. package/dist/cdn/main.css +1 -1
  112. package/dist/chunks/layer-utils.js +52 -40
  113. package/dist/components/arcgis-ckeditor5/customElement.d.ts +6 -1
  114. package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
  115. package/dist/components/arcgis-color-input/customElement.js +6 -6
  116. package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +6 -1
  117. package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
  118. package/dist/components/arcgis-field-info/customElement.js +166 -162
  119. package/dist/components/arcgis-field-info/utils/basic.d.ts +3 -1
  120. package/dist/components/arcgis-field-pick-list/customElement.js +43 -51
  121. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +3 -1
  122. package/dist/components/arcgis-histogram/customElement.js +13 -9
  123. package/dist/components/arcgis-picker-input/customElement.d.ts +6 -2
  124. package/dist/components/arcgis-picker-input/customElement.js +7 -7
  125. package/dist/components/arcgis-slider/customElement.d.ts +4 -3
  126. package/dist/components/arcgis-slider/customElement.js +303 -284
  127. package/dist/components/arcgis-unique-values-list/customElement.js +26 -26
  128. package/dist/components/arcgis-value-picker/customElement.d.ts +377 -0
  129. package/dist/components/arcgis-value-picker/customElement.js +87 -0
  130. package/dist/components/arcgis-value-picker/index.d.ts +1 -0
  131. package/dist/components/arcgis-value-picker/index.js +3 -0
  132. package/dist/components/arcgis-value-picker/types.d.ts +69 -0
  133. package/dist/components/arcgis-value-picker-collection/customElement.d.ts +113 -0
  134. package/dist/components/arcgis-value-picker-collection/customElement.js +43 -0
  135. package/dist/components/arcgis-value-picker-collection/index.d.ts +1 -0
  136. package/dist/components/arcgis-value-picker-collection/index.js +1 -0
  137. package/dist/components/arcgis-value-picker-combobox/customElement.d.ts +90 -0
  138. package/dist/components/arcgis-value-picker-combobox/customElement.js +55 -0
  139. package/dist/components/arcgis-value-picker-combobox/index.d.ts +1 -0
  140. package/dist/components/arcgis-value-picker-combobox/index.js +3 -0
  141. package/dist/components/arcgis-value-picker-label/customElement.d.ts +81 -0
  142. package/dist/components/arcgis-value-picker-label/customElement.js +51 -0
  143. package/dist/components/arcgis-value-picker-label/index.d.ts +1 -0
  144. package/dist/components/arcgis-value-picker-label/index.js +1 -0
  145. package/dist/components/arcgis-value-picker-slider/customElement.d.ts +173 -0
  146. package/dist/components/arcgis-value-picker-slider/customElement.js +60 -0
  147. package/dist/components/arcgis-value-picker-slider/index.d.ts +1 -0
  148. package/dist/components/arcgis-value-picker-slider/index.js +3 -0
  149. package/dist/docs/api.json +1 -1
  150. package/dist/docs/docs.json +1 -1
  151. package/dist/docs/vscode.css-custom-data.json +1 -1
  152. package/dist/docs/vscode.html-custom-data.json +1 -1
  153. package/dist/docs/web-types.json +1 -1
  154. package/dist/index.d.ts +50 -0
  155. package/dist/loader.js +8 -3
  156. package/dist/types/lumina.d.ts +36 -0
  157. package/dist/types/preact.d.ts +41 -0
  158. package/dist/types/react.d.ts +46 -0
  159. package/dist/types/stencil.d.ts +36 -0
  160. package/package.json +5 -5
  161. package/dist/cdn/2MN6S2HH.js +0 -2
  162. package/dist/cdn/4BJYJUMR.js +0 -2
  163. package/dist/cdn/5I5ODGDD.js +0 -2
  164. package/dist/cdn/AGGCAE6P.js +0 -2
  165. package/dist/cdn/GEWXC2ZR.js +0 -2
  166. package/dist/cdn/HWEOBUAY.js +0 -2
  167. package/dist/cdn/IRIB5DXG.js +0 -2
  168. package/dist/cdn/KPJCYYYQ.js +0 -2
  169. package/dist/cdn/ORSF6IOL.js +0 -2
  170. package/dist/cdn/QEW7H22O.js +0 -2
  171. package/dist/cdn/UMIMGOKS.js +0 -2
  172. package/dist/cdn/VUQJROFR.js +0 -2
  173. package/dist/cdn/YSXFXVP6.js +0 -2
  174. 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 G } from "../../chunks/runtime.js";
3
- import { css as U, html as c } from "lit";
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 W, createEvent as D, safeClassMap as V } from "@arcgis/lumina";
7
- import { Task as Q } from "@lit/task";
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 H from "@arcgis/core/config.js";
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 E from "@arcgis/core/applications/PortalApp/layerUtils.js";
12
+ import * as Z from "@arcgis/core/applications/PortalApp/layerUtils.js";
13
13
  import * as I from "@arcgis/core/core/lang.js";
14
- import J from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
15
- import j from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
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 { i as y, a as S, b as $, c as R, d as T, e as A, f as v, g as F, h as Z, j as z, k as B, l as K, m as _, n as X, o as P, p as Y } from "../../chunks/layer-utils.js";
18
- import ee from "@arcgis/core/rest/support/Query.js";
19
- import { u as te } from "../../chunks/useT9n.js";
20
- function ie(a) {
21
- return a.associatedLayer?.url;
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 se = {
24
+ const oe = {
24
25
  dateStyle: "short",
25
26
  timeStyle: "short"
26
- }, ae = {
27
+ }, le = {
27
28
  timeStyle: "medium"
28
29
  };
29
- function re(a) {
30
- const { layer: e, fieldName: t } = a;
30
+ function ue(r) {
31
+ const { layer: e, fieldName: t } = r;
31
32
  let i;
32
- const n = E.supportsFieldConfiguration(e);
33
+ const n = Z.supportsFieldConfiguration(e);
33
34
  let s;
34
35
  "popupTemplate" in e && (s = e.popupTemplate);
35
- const r = s ? s.fieldInfos : [];
36
- return M(a)?.filter((u) => u.name === t).forEach((u) => {
37
- const o = !n && r ? r.filter((g) => g.fieldName === u.name) : void 0, l = n ? e.getFieldAlias(t) : o?.length ? o[0].label : u.alias;
38
- /^raster.(item|service)pixelvalue/iu.test(t) && (u.type = "double");
39
- const d = {
40
- layerField: u,
41
- label: l || u.name
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
- d.codedValues = ue(t, a), le(d), d.simpleFieldType && (i = d);
44
+ u.codedValues = fe(t, r), me(u), u.simpleFieldType && (i = u);
44
45
  }), i;
45
46
  }
46
- function M(a) {
47
- const { layer: e } = a;
48
- return y(e) || S(e) || T(e) && e.rasterFields.length ? e.rasterFields : e.fields;
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 k(a) {
51
- a.statisticsStatus = "in-progress";
52
- const { layer: e, view: t } = a;
53
- if (y(e) || S(e) || F(e) || $(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 ce(e, t);
57
+ return await ge(e, t);
57
58
  } catch {
58
59
  return;
59
60
  }
60
61
  }
61
- async function ne(a) {
62
- const { layer: e, view: t, fieldName: i, fieldInfo: n } = a;
63
- if (y(e) || S(e) || $(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 k(a), nullcount: 0 };
67
+ return { totalCount: await A(r), nullcount: 0 };
67
68
  try {
68
- const s = await J({
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 r = "sourceJSON" in e && e.sourceJSON.maxRecordCount === s.count;
77
- if (f(s.nullcount) && !r)
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 k(a);
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 oe(a) {
88
- const { layer: e, view: t, fieldName: i } = a;
89
- if (y(e) || S(e) || $(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
- R(e) && (e.outFields = ["*"]);
92
+ P(e) && (e.outFields = ["*"]);
92
93
  try {
93
- return await j({
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 le(a) {
103
- switch (a.layerField.type) {
103
+ function me(r) {
104
+ switch (r.layerField.type) {
104
105
  case "string":
105
- a.simpleFieldType = "string";
106
+ r.simpleFieldType = "string";
106
107
  break;
107
108
  case "date":
108
- a.simpleFieldType = "date";
109
+ r.simpleFieldType = "date";
109
110
  break;
110
111
  case "timestamp-offset":
111
- a.simpleFieldType = "timestamp-offset";
112
+ r.simpleFieldType = "timestamp-offset";
112
113
  break;
113
114
  case "date-only":
114
- a.simpleFieldType = "date-only";
115
+ r.simpleFieldType = "date-only";
115
116
  break;
116
117
  case "time-only":
117
- a.simpleFieldType = "time-only";
118
+ r.simpleFieldType = "time-only";
118
119
  break;
119
120
  case "oid":
120
- a.simpleFieldType = "oid";
121
+ r.simpleFieldType = "oid";
121
122
  break;
122
123
  case "guid":
123
124
  case "global-id":
124
- a.simpleFieldType = "guid";
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
- a.simpleFieldType = "number";
133
+ r.simpleFieldType = "number";
133
134
  break;
135
+ default:
136
+ r.simpleFieldType = "string";
134
137
  }
135
138
  }
136
- function ue(a, e) {
139
+ function fe(r, e) {
137
140
  const { layer: t } = e;
138
- if (A(t) && t.subtypeField === a) {
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 = M(e)?.find((o) => o.name === a), u = m?.domain;
148
- return v(t) && i && n ? (i === a ? s = n.map(
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[a] || o.domains[a].type === "inherited") {
158
- const l = u;
159
- l?.codedValues && l.codedValues.forEach((d) => {
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 === d.code && (g = !0, `, ${p.name},`.includes(`, ${d.name},`) || (p.name += `, ${d.name}`));
163
- }), g || s.push(I.clone(d));
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[a].codedValues && o.domains[a].codedValues.forEach((l) => {
166
- let d = !1;
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 && (d = !0, `, ${g.name},`.includes(`, ${l.name},`) || (g.name += `, ${l.name}`));
169
- }), d || s.push(I.clone(l));
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 && u?.codedValues && (s = I.clone(u.codedValues))) : u?.codedValues && (s = m.domain.codedValues), s?.length ? s : void 0;
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 de(a) {
174
- const { view: e, layer: t } = a;
175
- if (T(t) || y(t) || S(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 || Z(t)) {
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(a);
189
+ return await C(r);
187
190
  let i;
188
- if (A(t) || z(t)) {
191
+ if (M(t) || X(t)) {
189
192
  let s = t.parent;
190
- for (; B(s) || K(s); )
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
- if (i.availableFields.length === t.fields.length || (F(t) || _(t)) && i.availableFields.length > 0) {
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 r = await i.queryFeatures(s);
199
- return r.features?.length ? r : await C(a);
202
+ const a = await i.queryFeatures(s);
203
+ return a.features?.length ? a : await C(r);
200
204
  } else
201
- return await C(a);
205
+ return await C(r);
202
206
  }
203
207
  }
204
- async function C(a) {
205
- const { layer: e } = a;
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 ee({
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 ce(a, e) {
216
- if (R(a))
217
- return await me(a);
218
- if (v(a) || X(a) || P(a) || Z(a) || Y(a))
219
- return await a.queryFeatureCount();
220
- if (e && (F(a) || _(a)))
221
- return await fe(a, e);
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 me(a) {
224
- const e = a.createQuery();
227
+ async function he(r) {
228
+ const e = r.createQuery();
225
229
  e.outFields = ["*"];
226
- const t = await a.queryFeatures(e);
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 fe(a, e) {
232
- return await (await e.whenLayerView(a)).queryFeatureCount();
235
+ async function ve(r, e) {
236
+ return await (await e.whenLayerView(r)).queryFeatureCount();
233
237
  }
234
- const pe = U`: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}`;
235
- class ge extends W {
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 = te({ blocking: !0 }), this._propWatcherTask = new Q(this, {
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 = pe;
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 r = t;
266
- e && await x.whenOnce(() => !e.updating), s = await r.createFeatureLayer(), await s?.load();
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 = re(this.props), P(t) && H.request.interceptors?.push({
274
- urls: `${ie(t)}/${t.layerId}`,
275
- before(r) {
276
- r.requestOptions.authMode = "no-prompt";
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 r = await de(this.props);
281
- this.oneFeatureResponse = r, this.oneFeatureResponseStatus = "success";
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 r = await oe(this.props);
295
- this.uniqueValues = r, r?.uniqueValueInfos?.length ? this.uniqueValuesStatus = "success" : this.uniqueValuesStatus = "failed";
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 r = await ne(this.props);
306
- if (!f(r.totalCount) && f(r.count) && this.uniqueValuesStatus === "success") {
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 u = 0; u < m.length; u++) {
309
- const o = m[u];
312
+ for (let d = 0; d < m.length; d++) {
313
+ const o = m[d];
310
314
  if (o.value === null) {
311
- r.totalCount = o.count + r.count;
315
+ a.totalCount = o.count + a.count;
312
316
  break;
313
317
  }
314
318
  }
315
- r.totalCount ??= r.count;
319
+ a.totalCount ??= a.count;
316
320
  }
317
- this.statistics = r, this.statisticsStatus = "success";
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 ? ae : se : h.convertDateFormatToIntlOptions(e);
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 E.supportsFieldConfiguration(e);
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: r, _messages: m, props: u } = this, { layer: o, fieldName: l, fieldInfo: d } = u, { statistics: g } = m;
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) || $(o) || !F(o) && ["string", "oid", "guid"].includes(this._getStatisticsType(d)) && s !== "failed")
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((w) => {
582
- (p === void 0 || p === null && w.attributes[l] !== null) && (p = w.attributes[l]);
583
- }) : i === "success" ? p = n?.min ?? void 0 : s === "success" && (p = r?.uniqueValueInfos?.[0]?.value ?? r?.uniqueValueInfos?.[1]?.value ?? void 0);
584
- const N = d.codedValues;
585
- return f(p) && (N ? p = N.find((w) => p === w.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>`;
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: r } = t;
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() ? r.getFieldConfiguration(n) : void 0;
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 u = "popupTemplate" in r ? r.popupTemplate : void 0;
597
- if (u?.fieldInfos) {
598
- const o = u.fieldInfos?.filter((l) => l.fieldName === n);
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 d = l.format.places;
603
- return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}", d.toString())}</div></div>`;
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: r, fieldInfo: m } = s;
611
- return i ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : ["stream", "imagery-tile", "voxel"].includes(r.type) || ["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>`;
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: r } = n, m = e.max - e.min, u = Math.floor(m / 31536e6);
651
- let o = Math.floor((m - u * 31536e6) / 2628e6), l = Math.ceil((m - o * 2628e6) / 864e5);
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 d = u === 1 ? r.timeSpanOptions.year : u > 1 ? r.timeSpanOptions.years.replace("${years}", u.toString()) : "";
654
- d += u > 0 && (o > 0 || l > 0) ? ", " : "", d += o === 1 ? r.timeSpanOptions.month : o > 1 ? r.timeSpanOptions.months.replace("${months}", o.toString()) : "", d += o > 0 && l > 0 ? ", " : "", d += l === 1 ? r.timeSpanOptions.day : l > 1 ? r.timeSpanOptions.days.replace("${days}", l.toString()) : "";
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>${r.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${g && f(e.min) ? c`<div class="statistics-row"><div>${p ? r.minimumTime : r.minimumDate}</div><div class="data">${this._getDisplayString(e.min)}</div></div>` : null}${g && f(e.max) ? c`<div class="statistics-row"><div>${p ? r.maximumTime : r.maximumDate}</div><div class="data">${this._getDisplayString(e.max)}</div></div>` : null}${g && f(e.avg) ? c`<div class="statistics-row"><div>${p ? r.averageTime : r.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>${r.timespan}</div><div class="data">${d}</div></div>` : null}${this.renderNullValues()}</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: r } = i;
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, d) => l.count < d.count ? 1 : l.count > d.count ? -1 : 0);
663
- const u = s.codedValues, o = m.filter((l) => l.value !== null).filter((l, d) => l && d < 10).map((l) => {
664
- let d = l.value;
665
- return u ? u.forEach((g) => {
666
- d === g.code && (d = g.name);
667
- }) : d = this._getDisplayString(d), c`<div class="statistics-row"><div class="data">${`${d}`}</div><div class="count">${this._printNumValue(l.count)}</div></div>`;
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 ? r.topTenValues : r.topValues}</div><div>${r.count}</div></div>${o}</div>` : "";
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>${r.topValues}</div><div>${r.count}</div></div><div class="statistics-row"><div class="missing">${t === "failed" ? i.fieldUniqueValuesNotAvailable : i.fieldSampleRetrieving}</div></div></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 r = t.uniqueValueInfos;
678
- for (let m = 0; m < r.length; m++) {
679
- const u = r[m];
680
- if (u.value === null) {
681
- s = u.count;
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
- G("arcgis-field-info", ge);
693
+ Q("arcgis-field-info", Fe);
690
694
  export {
691
- ge as ArcgisFieldInfo
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;