@arcgis/portal-components 5.0.0-next.1 → 5.0.0-next.10

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 (41) hide show
  1. package/dist/cdn/{M5TSWZEI.js → 3VP2B6OD.js} +2 -2
  2. package/dist/cdn/{YXRYHZH5.js → 4N33S4WC.js} +1 -1
  3. package/dist/cdn/{UYHDCO7W.js → 5XGFUGUT.js} +2 -2
  4. package/dist/cdn/A6OLJNDD.js +4 -0
  5. package/dist/cdn/{36SCONH7.js → FKYPILGF.js} +1 -1
  6. package/dist/cdn/{UAMIU7I6.js → FLGVYIE6.js} +2 -2
  7. package/dist/cdn/{YKLWML27.js → OEIPZP5I.js} +1 -1
  8. package/dist/cdn/{QXPXCLIB.js → OVKCN6QU.js} +2 -2
  9. package/dist/cdn/PFW623F3.js +4 -0
  10. package/dist/cdn/{OHA5XBKC.js → TSXPF6YV.js} +2 -2
  11. package/dist/cdn/{TBZVZ3NK.js → TZBG4COV.js} +2 -2
  12. package/dist/cdn/XP24YJ2U.js +4 -0
  13. package/dist/cdn/index.js +2 -2
  14. package/dist/chunks/common.js +1 -1
  15. package/dist/chunks/fieldAddDelete.js +139 -148
  16. package/dist/chunks/loadClassificationData.js +1 -1
  17. package/dist/chunks/requests.js +1 -1
  18. package/dist/chunks/runtime.js +1 -1
  19. package/dist/chunks/useT9n.js +1 -1
  20. package/dist/components/arcgis-portal-classification-banner/customElement.js +1 -1
  21. package/dist/components/arcgis-portal-classification-config/customElement.d.ts +1 -1
  22. package/dist/components/arcgis-portal-classification-config/customElement.js +111 -103
  23. package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
  24. package/dist/components/arcgis-portal-classification-form-element/customElement.d.ts +2 -1
  25. package/dist/components/arcgis-portal-classification-form-element/customElement.js +12 -12
  26. package/dist/components/arcgis-portal-field-delete/customElement.js +62 -57
  27. package/dist/controllers/useClassificationModel.d.ts +1 -1
  28. package/dist/docs/api.json +19 -3
  29. package/dist/docs/docs.json +27 -5
  30. package/dist/docs/web-types.json +7 -3
  31. package/dist/index.js +1 -1
  32. package/dist/loader.js +2 -2
  33. package/dist/types/lumina.d.ts +1 -1
  34. package/dist/types/preact.d.ts +1 -1
  35. package/dist/types/preact10.d.ts +1 -1
  36. package/dist/types/react.d.ts +1 -1
  37. package/dist/types/stencil.d.ts +1 -1
  38. package/package.json +5 -5
  39. package/dist/cdn/3C7EKA4P.js +0 -4
  40. package/dist/cdn/MMZ2SLQM.js +0 -4
  41. package/dist/cdn/VUHRSXSV.js +0 -4
@@ -1,126 +1,126 @@
1
- import * as p from "@arcgis/core/layers/support/fieldUtils.js";
2
- import K from "@arcgis/core/layers/support/FeatureReductionBinning.js";
3
- import _ from "@arcgis/core/layers/support/FeatureReductionCluster.js";
1
+ import * as I from "@arcgis/core/layers/support/fieldUtils.js";
2
+ import Q from "@arcgis/core/layers/support/FeatureReductionBinning.js";
3
+ import K from "@arcgis/core/layers/support/FeatureReductionCluster.js";
4
4
  import * as T from "@arcgis/core/renderers/support/jsonUtils.js";
5
5
  import v from "@arcgis/core/request.js";
6
6
  import * as L from "@arcgis/core/core/sql.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
9
- v5.0.0-next.1 */
9
+ v5.0.0-next.10 */
10
10
  var b = /* @__PURE__ */ ((e) => (e.expression = "expression/", e.raster = "Raster.", e.relationship = "relationships/", e))(b || {});
11
11
  function x(e) {
12
12
  return e != null;
13
13
  }
14
- function Le(e, r) {
15
- const t = e.fieldName;
16
- if (t.includes(b.expression)) {
17
- const i = r.get(t);
18
- return i?.title ? i.title : t;
14
+ function ge(e, t) {
15
+ const r = e.fieldName;
16
+ if (r.includes(b.expression)) {
17
+ const i = t.get(r);
18
+ return i?.title ? i.title : r;
19
19
  } else
20
- return e.label ? e.label : t;
20
+ return e.label ? e.label : r;
21
21
  }
22
- function Oe(e, r, t) {
22
+ function ve(e, t, r) {
23
23
  let i = "";
24
24
  if (/^raster.(?:item|service)pixelvalue/iu.test(e))
25
25
  i = "number";
26
- else if (r.has(e)) {
27
- const s = r.get(e);
28
- i = s.type ? s.type.toLowerCase() : "";
29
- } else if (t.has(e)) {
26
+ else if (t.has(e)) {
30
27
  const s = t.get(e);
28
+ i = s.type ? s.type.toLowerCase() : "";
29
+ } else if (r.has(e)) {
30
+ const s = r.get(e);
31
31
  i = s.returnType ? s.returnType.toLowerCase() : "";
32
32
  } else
33
33
  i = "number";
34
34
  return i;
35
35
  }
36
- async function be(e) {
36
+ async function Le(e) {
37
37
  return new Map(
38
- (await H(e)).filter((r) => r.visible).map((r) => [r.name, r])
38
+ (await _(e)).filter((t) => t.visible).map((t) => [t.name, t])
39
39
  );
40
40
  }
41
- function Re(e) {
42
- const r = /* @__PURE__ */ new Map();
43
- return e?.expressionInfos && e.expressionInfos.forEach((t) => {
44
- const i = `${b.expression}${t.name}`;
45
- r.set(i, t);
46
- }), r;
41
+ function Oe(e) {
42
+ const t = /* @__PURE__ */ new Map();
43
+ return e?.expressionInfos && e.expressionInfos.forEach((r) => {
44
+ const i = `${b.expression}${r.name}`;
45
+ t.set(i, r);
46
+ }), t;
47
47
  }
48
- async function H(e) {
49
- return await new Promise((r, t) => {
48
+ async function _(e) {
49
+ return await new Promise((t, r) => {
50
50
  switch (e.type) {
51
51
  case "feature":
52
52
  case "ogc-feature":
53
53
  case "stream":
54
- r(e.fields);
54
+ t(e.fields);
55
55
  break;
56
56
  case "sublayer": {
57
57
  const i = e, s = i?.layer;
58
58
  s?.portalItem && s.url.includes("https://demographics") && s.url.includes(".arcgis.com") ? s.portalItem?.fetchData().then((n) => {
59
59
  if (n?.thematicGroup) {
60
60
  const a = new Map(
61
- i.fields.map((d) => [d.name, d])
62
- ), l = n.thematicGroup.fieldNames, c = [];
63
- l.forEach((d) => {
64
- a.has(d) && c.push(a.get(d));
65
- }), r(c);
61
+ i.fields.map((l) => [l.name, l])
62
+ ), u = n.thematicGroup.fieldNames, c = [];
63
+ u.forEach((l) => {
64
+ a.has(l) && c.push(a.get(l));
65
+ }), t(c);
66
66
  } else
67
- r(i.fields);
67
+ t(i.fields);
68
68
  }).catch((n) => {
69
- t(new Error(n));
70
- }) : r(i.fields);
69
+ r(new Error(n));
70
+ }) : t(i.fields);
71
71
  break;
72
72
  }
73
73
  case "imagery":
74
74
  case "imagery-tile":
75
75
  case "wcs":
76
- r(e.rasterFields);
76
+ t(e.rasterFields);
77
77
  break;
78
78
  default:
79
- r("fields" in e ? e.fields ?? [] : []);
79
+ t("fields" in e ? e.fields ?? [] : []);
80
80
  }
81
81
  });
82
82
  }
83
- const z = (e) => e && !e.endsWith("/") ? `${e}/` : e;
83
+ const H = (e) => e && !e.endsWith("/") ? `${e}/` : e;
84
84
  function O(e) {
85
- return z(e.restUrl);
85
+ return H(e.restUrl);
86
86
  }
87
- function P(e, r) {
88
- return J(e, r) || X(e, r);
87
+ function P(e, t) {
88
+ return J(e, t) || z(e, t);
89
89
  }
90
- function J(e, r) {
91
- return e.owner === r.username;
90
+ function J(e, t) {
91
+ return e.owner === t.username;
92
92
  }
93
- function X(e, r) {
94
- const t = e.owner, i = e.itemControl === "admin", s = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
95
- return e.portal?.isPortal && !J(e, r) && i && t?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
96
- !s.includes(t) ? !1 : i;
93
+ function z(e, t) {
94
+ const r = e.owner, i = e.itemControl === "admin", s = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
95
+ return e.portal?.isPortal && !J(e, t) && i && r?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
96
+ !s.includes(r) ? !1 : i;
97
97
  }
98
- function Y(e) {
98
+ function X(e) {
99
99
  return e.typeKeywords?.includes("Spatiotemporal");
100
100
  }
101
101
  function N(e) {
102
102
  return e.typeKeywords?.includes("View Service");
103
103
  }
104
- function G(e) {
104
+ function E(e) {
105
105
  return e.typeKeywords?.includes("Hosted Service");
106
106
  }
107
- function E(e) {
107
+ function V(e) {
108
108
  return e.typeKeywords?.includes("Multi Services View");
109
109
  }
110
- function V(e) {
110
+ function D(e) {
111
111
  return e?.hasViews && !e.sourceSchemaChangesAllowed;
112
112
  }
113
- async function D(e) {
114
- const r = e?.portalItem;
115
- if (!r)
113
+ async function G(e) {
114
+ const t = e?.portalItem;
115
+ if (!t)
116
116
  return await Promise.resolve(null);
117
- const t = r.portal;
118
- if (t?.user) {
119
- const i = `${O(t)}community/users/${t.user.username}`;
117
+ const r = t.portal;
118
+ if (r?.user) {
119
+ const i = `${O(r)}community/users/${r.user.username}`;
120
120
  return await v(i, {
121
121
  query: {
122
122
  f: "json",
123
- token: r.portal.credential?.token
123
+ token: t.portal.credential?.token
124
124
  },
125
125
  responseType: "json"
126
126
  }).then(
@@ -134,133 +134,124 @@ async function D(e) {
134
134
  return await Promise.resolve(null);
135
135
  }
136
136
  async function k(e) {
137
- const r = e?.portalItem;
138
- if (!r)
137
+ const t = e?.portalItem;
138
+ if (!t)
139
139
  return await Promise.resolve(null);
140
- const t = r.portal, i = `${O(t)}content/items/${r.id}/groups`;
140
+ const r = t.portal, i = `${O(r)}content/items/${t.id}/groups`;
141
141
  return await v(i, {
142
142
  query: {
143
143
  f: "json",
144
- token: r.portal.credential?.token
144
+ token: t.portal.credential?.token
145
145
  },
146
146
  responseType: "json"
147
147
  }).then(
148
148
  async (s) => {
149
- const n = s.data?.admin ?? [], a = s.data?.member ?? [], l = s.data?.other ?? [], c = [...n, ...a, ...l];
149
+ const n = s.data?.admin ?? [], a = s.data?.member ?? [], u = s.data?.other ?? [], c = [...n, ...a, ...u];
150
150
  return await Promise.resolve(c);
151
151
  },
152
152
  async () => await Promise.reject(new Error("Failed to fetch item groups"))
153
153
  );
154
154
  }
155
- async function j(e, r, { relationshipType: t, direction: i }) {
156
- const s = `${O(r)}content/items/${e}/relatedItems`;
155
+ async function j(e, t, { relationshipType: r, direction: i }) {
156
+ const s = `${O(t)}content/items/${e}/relatedItems`;
157
157
  return await v(s, {
158
- query: { f: "json", relationshipType: t, direction: i },
158
+ query: { f: "json", relationshipType: r, direction: i },
159
159
  responseType: "json"
160
160
  });
161
161
  }
162
- function A(e, r) {
162
+ function A(e, t) {
163
163
  return e?.some(
164
- (t) => r?.some(
165
- (i) => t.id === i.id && t.capabilities.includes("updateitemcontrol")
164
+ (r) => t?.some(
165
+ (i) => r.id === i.id && r.capabilities.includes("updateitemcontrol")
166
166
  )
167
167
  );
168
168
  }
169
- function o(e, r) {
170
- return !e || !r ? !1 : e.toLocaleLowerCase() === r.toLocaleLowerCase();
169
+ function o(e, t) {
170
+ return !e || !t ? !1 : e.toLocaleLowerCase() === t.toLocaleLowerCase();
171
171
  }
172
- async function xe(e) {
173
- const r = ["feature", "oriented-imagery"].includes(e.type), t = e?.portalItem, i = e.sourceJSON;
174
- if (!r || !t)
172
+ async function be(e) {
173
+ const t = ["feature", "oriented-imagery"].includes(e.type), r = e?.portalItem, i = e.sourceJSON;
174
+ if (!t || !r)
175
175
  return !1;
176
- const s = t.portal;
177
- if (!s?.user || N(t) || !G(t) || E(t) || V(i))
176
+ const s = r.portal;
177
+ if (!s?.user || N(r) || !E(r) || V(r) || D(i))
178
178
  return !1;
179
- const d = P(t, s.user), I = await D(e) ?? [], F = await k(e) ?? [], f = A(I, F);
180
- if (!d && !f)
179
+ const l = P(r, s.user), w = await G(e) ?? [], F = await k(e) ?? [], f = A(w, F);
180
+ if (!l && !f)
181
181
  return !1;
182
- const h = await j(t.id, s, {
182
+ const m = await j(r.id, s, {
183
183
  relationshipType: "Service2Service"
184
184
  });
185
- return !(h?.data?.relatedItems && h.data.relatedItems.some(
185
+ return !(m?.data?.relatedItems && m.data.relatedItems.some(
186
186
  (S) => ["WMTS", "Map Service", "Vector Tile Service"].includes(S.type)
187
187
  ));
188
188
  }
189
- async function Te(e, r, t, i) {
190
- if (!t)
189
+ async function Re(e, t, r, i) {
190
+ if (!r)
191
191
  return !1;
192
- const s = ["feature", "oriented-imagery"].includes(r.type), n = i?.item ?? r.portalItem, a = r.sourceJSON;
193
- if (!s || !n || !n.portal.user || !G(n) || N(n) || E(n) || V(a) || n.portal.isPortal && Y(n) || ["oid", "global-id", "geometry"].includes(t.type) || await Z(r, t.name, i))
192
+ const s = ["feature", "oriented-imagery"].includes(t.type), n = i?.item ?? t.portalItem, a = t.sourceJSON;
193
+ if (!s || !n || !n.portal.user || !E(n) || N(n) || V(n) || D(a) || n.portal.isPortal && X(n) || ["oid", "global-id", "geometry"].includes(r.type))
194
194
  return !1;
195
- const w = r.sourceJSON.geometryProperties, S = w?.shapeLengthFieldName, $ = w?.shapeAreaFieldName;
196
- if (o(S, t.name) || o($, t.name))
195
+ const m = t.sourceJSON.geometryProperties, y = m?.shapeLengthFieldName, S = m?.shapeAreaFieldName;
196
+ if (o(y, r.name) || o(S, r.name))
197
197
  return !1;
198
- const g = r.editFieldsInfo;
199
- if (g && (o(g.creationDateField, t.name) || o(g.creatorField, t.name) || o(g.editDateField, t.name) || o(g.editorField, t.name)) || o(r.objectIdField, t.name) || o(r.displayField, t.name) || o(r.typeIdField, t.name) || o(r.subtypeField, t.name) || r.timeInfo && (o(r.timeInfo.startField, t.name) || o(r.timeInfo.endField, t.name) || o(r.timeInfo.trackIdField, t.name)))
198
+ const g = t.editFieldsInfo;
199
+ if (g && (o(g.creationDateField, r.name) || o(g.creatorField, r.name) || o(g.editDateField, r.name) || o(g.editorField, r.name)) || o(t.objectIdField, r.name) || o(t.displayField, r.name) || o(t.typeIdField, r.name) || o(t.subtypeField, r.name) || t.timeInfo && (o(t.timeInfo.startField, r.name) || o(t.timeInfo.endField, r.name) || o(t.timeInfo.trackIdField, r.name)))
200
200
  return !1;
201
- if (!i?.ignoreLayerRenderer && r.featureReduction) {
202
- const u = /* @__PURE__ */ new Set();
203
- if (await p.collectFeatureReductionFields(
204
- u,
205
- r,
206
- r.featureReduction
207
- ), Array.from(u).some(
208
- (y) => o(y, t.name)
201
+ if (!i?.ignoreLayerRenderer && t.featureReduction) {
202
+ const d = /* @__PURE__ */ new Set();
203
+ if (await I.collectFeatureReductionFields(
204
+ d,
205
+ t,
206
+ t.featureReduction
207
+ ), Array.from(d).some(
208
+ (h) => o(h, r.name)
209
209
  ))
210
210
  return !1;
211
211
  }
212
- if (!i?.ignoreLayerRenderer && (await p.getRendererFields(r.renderer, r.fieldsIndex)).some((y) => o(y, t.name)))
212
+ if (!i?.ignoreLayerRenderer && (await I.getRendererFields(t.renderer, t.fieldsIndex)).some((h) => o(h, r.name)))
213
213
  return !1;
214
214
  if (!i?.ignoreLayerLabelingInfo) {
215
- const u = r.labelingInfo?.map(
216
- (m) => m.labelExpressionInfo?.expression
215
+ const d = t.labelingInfo?.map(
216
+ (p) => p.labelExpressionInfo?.expression
217
217
  );
218
- if (u && ((await p.getExpressionFields(r, u)).some((Q) => o(Q, t.name)) || await U(r, t, "layer")))
218
+ if (d && ((await I.getExpressionFields(t, d)).some((q) => o(q, r.name)) || await U(t, r, "layer")))
219
219
  return !1;
220
220
  }
221
- if (!i?.ignoreLayerDefinitionExpression && r.definitionExpression && (await L.parseWhereClause(r.definitionExpression, r.fieldsIndex)).fieldNames.some((y) => o(y, t.name)) || await re(r, t, i) || await te(r, t))
221
+ if (!i?.ignoreLayerDefinitionExpression && t.definitionExpression && (await L.parseWhereClause(t.definitionExpression, t.fieldsIndex)).fieldNames.some((h) => o(h, r.name)) || await Z(t, r, i) || await ee(t, r))
222
222
  return !1;
223
- if (await ie(r, t))
223
+ if (await te(t, r))
224
224
  return await Promise.resolve(!1);
225
- if (await se(r, t))
225
+ if (await re(t, r))
226
226
  return await Promise.resolve(!1);
227
- if (ee(e, r, t) || r.relationships?.map((u) => u.keyField)?.some((u) => o(u, t.name)))
227
+ if (Y(e, t, r) || t.relationships?.map((d) => d.keyField)?.some((d) => o(d, r.name)))
228
228
  return !1;
229
- const C = P(n, n.portal.user), W = i?.userItemInfo?.userGroups ?? await D(r) ?? [], q = i?.userItemInfo?.itemGroups ?? await k(r) ?? [], B = A(W, q);
229
+ const C = P(n, n.portal.user), $ = i?.userItemInfo?.userGroups ?? await G(t) ?? [], W = i?.userItemInfo?.itemGroups ?? await k(t) ?? [], B = A($, W);
230
230
  if (!C && !B)
231
231
  return !1;
232
232
  const R = i?.userItemInfo?.relatedItems ?? await j(n.id, n.portal, {
233
233
  relationshipType: "Service2Service"
234
234
  });
235
235
  return !(R?.data?.relatedItems && R.data.relatedItems.some(
236
- (m) => ["WMTS", "Map Service", "Vector Tile Service"].includes(m.type)
236
+ (p) => ["WMTS", "Map Service", "Vector Tile Service"].includes(p.type)
237
237
  ));
238
238
  }
239
- async function Z(e, r, t) {
240
- const i = `${e.url}/${e.layerId}/fieldGroups`, s = t?.userItemInfo?.fieldGroups ?? (await v(i, {
241
- query: { f: "json" },
242
- responseType: "json"
243
- }))?.data?.fieldGroups;
244
- return s ? s.some(
245
- (a) => a.fields.some((l) => o(l, r))
246
- ) : !1;
247
- }
248
- function ee(e, r, t) {
239
+ function Y(e, t, r) {
249
240
  if (!e)
250
241
  return !1;
251
242
  const i = e.map?.applicationProperties?.viewing?.search;
252
243
  if (i) {
253
- const s = i.layers?.find((n) => n.id === r.id);
244
+ const s = i.layers?.find((n) => n.id === t.id);
254
245
  if (s) {
255
246
  const n = s?.field?.name;
256
247
  if (n)
257
- return o(n, t.name);
248
+ return o(n, r.name);
258
249
  }
259
250
  }
260
251
  return !1;
261
252
  }
262
- async function U(e, r, t) {
263
- const i = t === "layer" ? e.labelingInfo?.filter((a) => x(a.where)) : e.sourceJSON?.drawingInfo?.labelingInfo?.filter((a) => x(a.where));
253
+ async function U(e, t, r) {
254
+ const i = r === "layer" ? e.labelingInfo?.filter((a) => x(a.where)) : e.sourceJSON?.drawingInfo?.labelingInfo?.filter((a) => x(a.where));
264
255
  if (!i?.length)
265
256
  return !1;
266
257
  const s = [
@@ -272,54 +263,54 @@ async function U(e, r, t) {
272
263
  ];
273
264
  let n = !1;
274
265
  for (let a = 0; a < s.length; a++) {
275
- const l = s[a].fieldNames?.some((c) => o(c, r.name));
276
- if (!n && l) {
266
+ const u = s[a].fieldNames?.some((c) => o(c, t.name));
267
+ if (!n && u) {
277
268
  n = !0;
278
269
  break;
279
270
  }
280
271
  }
281
272
  return await Promise.resolve(n);
282
273
  }
283
- async function re(e, r, t) {
274
+ async function Z(e, t, r) {
284
275
  const i = e.portalItem;
285
276
  if (!i)
286
277
  return !1;
287
- const s = `${O(i.portal)}content/items/${i.id}/data`, a = (t?.userItemInfo?.itemData ?? await v(s, {
278
+ const s = `${O(i.portal)}content/items/${i.id}/data`, a = (r?.userItemInfo?.itemData ?? await v(s, {
288
279
  query: { f: "json" },
289
280
  responseType: "json"
290
281
  }))?.data;
291
282
  if (!a)
292
283
  return !1;
293
284
  if (a?.layers) {
294
- const c = a.layers.find((f) => f.id === e.layerId), d = c?.layerDefinition?.drawingInfo?.renderer, I = c?.layerDefinition?.featureReduction, F = c?.layerDefinition?.definitionExpression;
295
- if (!d && !I && !F)
285
+ const c = a.layers.find((f) => f.id === e.layerId), l = c?.layerDefinition?.drawingInfo?.renderer, w = c?.layerDefinition?.featureReduction, F = c?.layerDefinition?.definitionExpression;
286
+ if (!l && !w && !F)
296
287
  return !1;
297
- if (!t?.ignoreItemRenderer && d) {
298
- const f = T.fromJSON(d);
299
- if ((await p.getRendererFields(f, e.fieldsIndex)).some((S) => o(S, r.name)))
288
+ if (!r?.ignoreItemRenderer && l) {
289
+ const f = T.fromJSON(l);
290
+ if ((await I.getRendererFields(f, e.fieldsIndex)).some((S) => o(S, t.name)))
300
291
  return !0;
301
292
  }
302
- if (!t?.ignoreItemFeatureReduction && I && await M(e, r, I) || F && (await L.parseWhereClause(F, e.fieldsIndex)).fieldNames.some((w) => o(w, r.name)))
293
+ if (!r?.ignoreItemFeatureReduction && w && await M(e, t, w) || F && (await L.parseWhereClause(F, e.fieldsIndex)).fieldNames.some((y) => o(y, t.name)))
303
294
  return !0;
304
295
  }
305
296
  return !1;
306
297
  }
307
- async function te(e, r) {
308
- const t = e.sourceJSON, i = t?.drawingInfo?.renderer, s = t?.featureReduction;
298
+ async function ee(e, t) {
299
+ const r = e.sourceJSON, i = r?.drawingInfo?.renderer, s = r?.featureReduction;
309
300
  if (!i && !s)
310
301
  return !1;
311
302
  if (i) {
312
303
  const n = T.fromJSON(i);
313
- if ((await p.getRendererFields(n, e.fieldsIndex)).some((c) => o(c, r.name)))
304
+ if ((await I.getRendererFields(n, e.fieldsIndex)).some((c) => o(c, t.name)))
314
305
  return !0;
315
306
  }
316
307
  return !!(s && await M(
317
308
  e,
318
- r,
309
+ t,
319
310
  s
320
311
  ));
321
312
  }
322
- async function ie(e, r) {
313
+ async function te(e, t) {
323
314
  const i = e.sourceJSON?.drawingInfo?.labelingInfo;
324
315
  if (!i)
325
316
  return await Promise.resolve(!1);
@@ -327,30 +318,30 @@ async function ie(e, r) {
327
318
  (n) => n.labelExpressionInfo?.expression
328
319
  );
329
320
  if (s) {
330
- if ((await p.getExpressionFields(e, s)).some((c) => o(c, r.name)))
321
+ if ((await I.getExpressionFields(e, s)).some((c) => o(c, t.name)))
331
322
  return await Promise.resolve(!0);
332
- if (await U(e, r, "service"))
323
+ if (await U(e, t, "service"))
333
324
  return await Promise.resolve(!0);
334
325
  }
335
326
  return await Promise.resolve(!1);
336
327
  }
337
- async function se(e, r) {
328
+ async function re(e, t) {
338
329
  const i = e.sourceJSON?.definitionQuery;
339
- return i ? (await L.parseWhereClause(i, e.fieldsIndex)).fieldNames.some((a) => o(a, r.name)) ? await Promise.resolve(!0) : await Promise.resolve(!1) : await Promise.resolve(!1);
330
+ return i ? (await L.parseWhereClause(i, e.fieldsIndex)).fieldNames.some((a) => o(a, t.name)) ? await Promise.resolve(!0) : await Promise.resolve(!1) : await Promise.resolve(!1);
340
331
  }
341
- async function M(e, r, t) {
342
- const i = t.type === "binning" ? K.fromJSON(t) : _.fromJSON(t), s = /* @__PURE__ */ new Set();
343
- return await p.collectFeatureReductionFields(s, e, i), !!Array.from(s).some(
344
- (a) => o(a, r.name)
332
+ async function M(e, t, r) {
333
+ const i = r.type === "binning" ? Q.fromJSON(r) : K.fromJSON(r), s = /* @__PURE__ */ new Set();
334
+ return await I.collectFeatureReductionFields(s, e, i), !!Array.from(s).some(
335
+ (a) => o(a, t.name)
345
336
  );
346
337
  }
347
338
  export {
348
- Te as a,
349
- Re as b,
350
- xe as c,
351
- Le as d,
339
+ Re as a,
340
+ Oe as b,
341
+ be as c,
342
+ ge as d,
352
343
  O as e,
353
- Oe as f,
354
- be as g,
344
+ ve as f,
345
+ Le as g,
355
346
  x as i
356
347
  };
@@ -6,7 +6,7 @@ import { makeAccessorController as C } from "@arcgis/lumina/controllers/accessor
6
6
  import { Task as v } from "@lit/task";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
9
- v5.0.0-next.1 */
9
+ v5.0.0-next.10 */
10
10
  var w = Object.defineProperty, g = Object.getOwnPropertyDescriptor, e = (i, a, s, t) => {
11
11
  for (var r = t > 1 ? void 0 : t ? g(a, s) : a, l = i.length - 1, c; l >= 0; l--)
12
12
  (c = i[l]) && (r = (t ? c(a, s, r) : c(r)) || r);
@@ -2,7 +2,7 @@ import n from "@arcgis/core/request.js";
2
2
  import { once as c } from "@arcgis/core/core/reactiveUtils.js";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
5
- v5.0.0-next.1 */
5
+ v5.0.0-next.10 */
6
6
  async function f(s, t) {
7
7
  const i = `${s}/portals/self/classification/classificationSchema`, e = {};
8
8
  try {
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
3
3
  import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
4
4
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
6
- v5.0.0-next.1 */
6
+ v5.0.0-next.10 */
7
7
  const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/portal-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
8
8
  t.t = s;
9
9
  t.o = r;
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
2
2
  import { g as t } from "./runtime.js";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
5
- v5.0.0-next.1 */
5
+ v5.0.0-next.10 */
6
6
  const s = o(t);
7
7
  export {
8
8
  s as u
@@ -5,7 +5,7 @@ import { u as f } from "../../chunks/useT9n.js";
5
5
  import { css as d, html as t } from "lit";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.1 */
8
+ v5.0.0-next.10 */
9
9
  const m = d`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-ui-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`;
10
10
  class h extends r {
11
11
  constructor() {
@@ -40,6 +40,6 @@ export declare class ArcgisPortalClassificationConfig extends LitElement {
40
40
  validateForm(): Promise<void>;
41
41
  /** Event emitted when component property values status, values, or valid change. */
42
42
  readonly arcgisPropertyChange: TargetedEvent<this, {
43
- name: "values" | "valid" | "status";
43
+ name: "values" | "status" | "valid";
44
44
  }>;
45
45
  }