@arcgis/portal-components 5.0.0-next.37 → 5.0.0-next.39

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 (31) hide show
  1. package/dist/cdn/{DTNY3TLM.js → 54MOCYKO.js} +2 -2
  2. package/dist/cdn/{V2DHHZTR.js → 6D257Q6B.js} +2 -2
  3. package/dist/cdn/{6FJG7TKK.js → C57E6IMT.js} +1 -1
  4. package/dist/cdn/{XCMNS6L7.js → D2AEDXIA.js} +2 -2
  5. package/dist/cdn/{4M3DRZ7I.js → GNRCZJW4.js} +2 -2
  6. package/dist/cdn/{I6E7QYLW.js → JTPSHSYA.js} +2 -2
  7. package/dist/cdn/{JXAOJ5OU.js → NCD37YPW.js} +1 -1
  8. package/dist/cdn/{ZJRV2RYG.js → P4CQWI23.js} +1 -1
  9. package/dist/cdn/{YAHTY3MA.js → Q3CCDLWE.js} +2 -2
  10. package/dist/cdn/{FUUN7LMK.js → R22AYHI4.js} +2 -2
  11. package/dist/cdn/{2MPPPFYQ.js → TPXVESM5.js} +2 -2
  12. package/dist/cdn/W4SJJKYU.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 +152 -143
  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.js +1 -1
  22. package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
  23. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  24. package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
  25. package/dist/docs/api.json +2 -2
  26. package/dist/docs/docs.json +2 -2
  27. package/dist/docs/web-types.json +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/loader.js +1 -1
  30. package/package.json +3 -3
  31. package/dist/cdn/D2A7M6EV.js +0 -4
@@ -1,129 +1,129 @@
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";
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";
4
4
  import * as T from "@arcgis/core/renderers/support/jsonUtils.js";
5
5
  import L from "@arcgis/core/request.js";
6
6
  import * as v 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.37 */
9
+ v5.0.0-next.39 */
10
10
  var b = /* @__PURE__ */ ((e) => (e.expression = "expression/", e.raster = "Raster.", e.relationship = "relationships/", e))(b || {});
11
- const _ = ["feature"];
12
- function H(e) {
13
- return "fieldConfigurations" in e && _.includes(e.type);
11
+ const H = ["feature"];
12
+ function z(e) {
13
+ return "fieldConfigurations" in e && H.includes(e.type);
14
14
  }
15
15
  function x(e) {
16
16
  return e != null;
17
17
  }
18
- function ve(e, t, r) {
19
- const i = t.fieldName;
18
+ function be(e, r, t) {
19
+ const i = r.fieldName;
20
20
  if (i.includes(b.expression)) {
21
- const s = r.get(i);
21
+ const s = t.get(i);
22
22
  return s?.title ? s.title : i;
23
- } else return H(e) && e.getFieldConfiguration(i) ? e.getFieldAlias(i) || i : t.label || i;
23
+ } else return z(e) && e.getFieldConfiguration(i) ? e.getFieldAlias(i) || i : r.label || i;
24
24
  }
25
- function Oe(e, t, r) {
25
+ function Re(e, r, t) {
26
26
  let i = "";
27
27
  if (/^raster.(?:item|service)pixelvalue/iu.test(e))
28
28
  i = "number";
29
- else if (t.has(e)) {
30
- const s = t.get(e);
31
- i = s.type ? s.type.toLowerCase() : "";
32
- } else if (r.has(e)) {
29
+ else if (r.has(e)) {
33
30
  const s = r.get(e);
31
+ i = s.type ? s.type.toLowerCase() : "";
32
+ } else if (t.has(e)) {
33
+ const s = t.get(e);
34
34
  i = s.returnType ? s.returnType.toLowerCase() : "";
35
35
  } else
36
36
  i = "number";
37
37
  return i;
38
38
  }
39
- async function be(e) {
39
+ async function xe(e) {
40
40
  return new Map(
41
- (await z(e)).filter((t) => t.visible).map((t) => [t.name, t])
41
+ (await X(e)).filter((r) => r.visible).map((r) => [r.name, r])
42
42
  );
43
43
  }
44
- function Re(e) {
45
- const t = /* @__PURE__ */ new Map();
46
- return e?.expressionInfos && e.expressionInfos.forEach((r) => {
47
- const i = `${b.expression}${r.name}`;
48
- t.set(i, r);
49
- }), t;
44
+ function Te(e) {
45
+ const r = /* @__PURE__ */ new Map();
46
+ return e?.expressionInfos && e.expressionInfos.forEach((t) => {
47
+ const i = `${b.expression}${t.name}`;
48
+ r.set(i, t);
49
+ }), r;
50
50
  }
51
- async function z(e) {
52
- return await new Promise((t, r) => {
51
+ async function X(e) {
52
+ return await new Promise((r, t) => {
53
53
  switch (e.type) {
54
54
  case "feature":
55
55
  case "ogc-feature":
56
56
  case "stream":
57
- t(e.fields);
57
+ r(e.fields);
58
58
  break;
59
59
  case "sublayer": {
60
60
  const i = e, s = i?.layer;
61
61
  s?.portalItem && s.url.includes("https://demographics") && s.url.includes(".arcgis.com") ? s.portalItem?.fetchData().then((n) => {
62
62
  if (n?.thematicGroup) {
63
63
  const a = new Map(
64
- i.fields.map((l) => [l.name, l])
65
- ), u = n.thematicGroup.fieldNames, c = [];
66
- u.forEach((l) => {
67
- a.has(l) && c.push(a.get(l));
68
- }), t(c);
64
+ i.fields.map((d) => [d.name, d])
65
+ ), l = n.thematicGroup.fieldNames, c = [];
66
+ l.forEach((d) => {
67
+ a.has(d) && c.push(a.get(d));
68
+ }), r(c);
69
69
  } else
70
- t(i.fields);
70
+ r(i.fields);
71
71
  }).catch((n) => {
72
- r(new Error(n));
73
- }) : t(i.fields);
72
+ t(new Error(n));
73
+ }) : r(i.fields);
74
74
  break;
75
75
  }
76
76
  case "imagery":
77
77
  case "imagery-tile":
78
78
  case "wcs":
79
- t(e.rasterFields);
79
+ r(e.rasterFields);
80
80
  break;
81
81
  default:
82
- t("fields" in e ? e.fields ?? [] : []);
82
+ r("fields" in e ? e.fields ?? [] : []);
83
83
  }
84
84
  });
85
85
  }
86
- const X = (e) => e && !e.endsWith("/") ? `${e}/` : e;
86
+ const Y = (e) => e && !e.endsWith("/") ? `${e}/` : e;
87
87
  function O(e) {
88
- return X(e.restUrl);
88
+ return Y(e.restUrl);
89
89
  }
90
- function P(e, t) {
91
- return J(e, t) || Y(e, t);
90
+ function P(e, r) {
91
+ return G(e, r) || Z(e, r);
92
92
  }
93
- function J(e, t) {
94
- return e.owner === t.username;
93
+ function G(e, r) {
94
+ return e.owner === r.username;
95
95
  }
96
- function Y(e, t) {
97
- const r = e.owner, i = e.itemControl === "admin", s = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
98
- return e.portal?.isPortal && !J(e, t) && i && r?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
99
- !s.includes(r) ? !1 : i;
96
+ function Z(e, r) {
97
+ const t = e.owner, i = e.itemControl === "admin", s = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
98
+ return e.portal?.isPortal && !G(e, r) && i && t?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
99
+ !s.includes(t) ? !1 : i;
100
100
  }
101
- function Z(e) {
101
+ function ee(e) {
102
102
  return e.typeKeywords?.includes("Spatiotemporal");
103
103
  }
104
- function N(e) {
104
+ function J(e) {
105
105
  return e.typeKeywords?.includes("View Service");
106
106
  }
107
- function E(e) {
107
+ function N(e) {
108
108
  return e.typeKeywords?.includes("Hosted Service");
109
109
  }
110
- function V(e) {
110
+ function E(e) {
111
111
  return e.typeKeywords?.includes("Multi Services View");
112
112
  }
113
- function D(e) {
113
+ function V(e) {
114
114
  return e?.hasViews && !e.sourceSchemaChangesAllowed;
115
115
  }
116
- async function G(e) {
117
- const t = e?.portalItem;
118
- if (!t)
116
+ async function D(e) {
117
+ const r = e?.portalItem;
118
+ if (!r)
119
119
  return await Promise.resolve(null);
120
- const r = t.portal;
121
- if (r?.user) {
122
- const i = `${O(r)}community/users/${r.user.username}`;
120
+ const t = r.portal;
121
+ if (t?.user) {
122
+ const i = `${O(t)}community/users/${t.user.username}`;
123
123
  return await L(i, {
124
124
  query: {
125
125
  f: "json",
126
- token: t.portal.credential?.token
126
+ token: r.portal.credential?.token
127
127
  },
128
128
  responseType: "json"
129
129
  }).then(
@@ -137,124 +137,133 @@ async function G(e) {
137
137
  return await Promise.resolve(null);
138
138
  }
139
139
  async function k(e) {
140
- const t = e?.portalItem;
141
- if (!t)
140
+ const r = e?.portalItem;
141
+ if (!r)
142
142
  return await Promise.resolve(null);
143
- const r = t.portal, i = `${O(r)}content/items/${t.id}/groups`;
143
+ const t = r.portal, i = `${O(t)}content/items/${r.id}/groups`;
144
144
  return await L(i, {
145
145
  query: {
146
146
  f: "json",
147
- token: t.portal.credential?.token
147
+ token: r.portal.credential?.token
148
148
  },
149
149
  responseType: "json"
150
150
  }).then(
151
151
  async (s) => {
152
- const n = s.data?.admin ?? [], a = s.data?.member ?? [], u = s.data?.other ?? [], c = [...n, ...a, ...u];
152
+ const n = s.data?.admin ?? [], a = s.data?.member ?? [], l = s.data?.other ?? [], c = [...n, ...a, ...l];
153
153
  return await Promise.resolve(c);
154
154
  },
155
155
  async () => await Promise.reject(new Error("Failed to fetch item groups"))
156
156
  );
157
157
  }
158
- async function C(e, t, { relationshipType: r, direction: i }) {
159
- const s = `${O(t)}content/items/${e}/relatedItems`;
158
+ async function C(e, r, { relationshipType: t, direction: i }) {
159
+ const s = `${O(r)}content/items/${e}/relatedItems`;
160
160
  return await L(s, {
161
- query: { f: "json", relationshipType: r, direction: i },
161
+ query: { f: "json", relationshipType: t, direction: i },
162
162
  responseType: "json"
163
163
  });
164
164
  }
165
- function A(e, t) {
165
+ function j(e, r) {
166
166
  return e?.some(
167
- (r) => t?.some(
168
- (i) => r.id === i.id && r.capabilities.includes("updateitemcontrol")
167
+ (t) => r?.some(
168
+ (i) => t.id === i.id && t.capabilities.includes("updateitemcontrol")
169
169
  )
170
170
  );
171
171
  }
172
- function o(e, t) {
173
- return !e || !t ? !1 : e.toLocaleLowerCase() === t.toLocaleLowerCase();
172
+ function o(e, r) {
173
+ return !e || !r ? !1 : e.toLocaleLowerCase() === r.toLocaleLowerCase();
174
174
  }
175
- async function xe(e) {
176
- const t = ["feature", "oriented-imagery"].includes(e.type), r = e?.portalItem, i = e.sourceJSON;
177
- if (!t || !r)
175
+ async function Pe(e) {
176
+ const r = ["feature", "oriented-imagery"].includes(e.type), t = e?.portalItem, i = e.sourceJSON;
177
+ if (!r || !t)
178
178
  return !1;
179
- const s = r.portal;
180
- if (!s?.user || N(r) || !E(r) || V(r) || D(i))
179
+ const s = t.portal;
180
+ if (!s?.user || J(t) || !N(t) || E(t) || V(i))
181
181
  return !1;
182
- const l = P(r, s.user), w = await G(e) ?? [], F = await k(e) ?? [], f = A(w, F);
183
- if (!l && !f)
182
+ const d = P(t, s.user), I = await D(e) ?? [], F = await k(e) ?? [], f = j(I, F);
183
+ if (!d && !f)
184
184
  return !1;
185
- const m = await C(r.id, s, {
185
+ const h = await C(t.id, s, {
186
186
  relationshipType: "Service2Service"
187
187
  });
188
- return !(m?.data?.relatedItems && m.data.relatedItems.some(
188
+ return !(h?.data?.relatedItems && h.data.relatedItems.some(
189
189
  (S) => ["WMTS", "Map Service", "Vector Tile Service"].includes(S.type)
190
190
  ));
191
191
  }
192
- async function Te(e, t, r, i) {
193
- if (!r)
192
+ async function Ge(e, r, t, i) {
193
+ if (!t)
194
194
  return !1;
195
- const s = ["feature", "oriented-imagery"].includes(t.type), n = i?.item ?? t.portalItem, a = t.sourceJSON;
196
- if (!s || !n || !n.portal.user || !E(n) || N(n) || V(n) || D(a) || n.portal.isPortal && Z(n) || ["oid", "global-id", "geometry"].includes(r.type))
195
+ const s = ["feature", "oriented-imagery"].includes(r.type), n = i?.item ?? r.portalItem, a = r.sourceJSON;
196
+ if (!s || !n || !n.portal.user || !N(n) || J(n) || E(n) || V(a) || n.portal.isPortal && ee(n) || ["oid", "global-id", "geometry"].includes(t.type) || await re(r, t.name, i))
197
197
  return !1;
198
- const m = t.sourceJSON.geometryProperties, y = m?.shapeLengthFieldName, S = m?.shapeAreaFieldName;
199
- if (o(y, r.name) || o(S, r.name))
198
+ const w = r.sourceJSON.geometryProperties, S = w?.shapeLengthFieldName, M = w?.shapeAreaFieldName;
199
+ if (o(S, t.name) || o(M, t.name))
200
200
  return !1;
201
- const g = t.editFieldsInfo;
202
- 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)))
201
+ const g = r.editFieldsInfo;
202
+ 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)))
203
203
  return !1;
204
- if (!i?.ignoreLayerRenderer && t.featureReduction) {
205
- const d = /* @__PURE__ */ new Set();
206
- if (await I.collectFeatureReductionFields(
207
- d,
208
- t,
209
- t.featureReduction
210
- ), Array.from(d).some(
211
- (h) => o(h, r.name)
204
+ if (!i?.ignoreLayerRenderer && r.featureReduction) {
205
+ const u = /* @__PURE__ */ new Set();
206
+ if (await p.collectFeatureReductionFields(
207
+ u,
208
+ r,
209
+ r.featureReduction
210
+ ), Array.from(u).some(
211
+ (y) => o(y, t.name)
212
212
  ))
213
213
  return !1;
214
214
  }
215
- if (!i?.ignoreLayerRenderer && (await I.getRendererFields(t.renderer, t.fieldsIndex)).some((h) => o(h, r.name)))
215
+ if (!i?.ignoreLayerRenderer && (await p.getRendererFields(r.renderer, r.fieldsIndex)).some((y) => o(y, t.name)))
216
216
  return !1;
217
217
  if (!i?.ignoreLayerLabelingInfo) {
218
- const d = t.labelingInfo?.map(
219
- (p) => p.labelExpressionInfo?.expression
218
+ const u = r.labelingInfo?.map(
219
+ (m) => m.labelExpressionInfo?.expression
220
220
  );
221
- if (d && ((await I.getExpressionFields(t, d)).some((q) => o(q, r.name)) || await j(t, r, "layer")))
221
+ if (u && ((await p.getExpressionFields(r, u)).some((Q) => o(Q, t.name)) || await A(r, t, "layer")))
222
222
  return !1;
223
223
  }
224
- if (!i?.ignoreLayerDefinitionExpression && t.definitionExpression && (await v.parseWhereClause(t.definitionExpression, t.fieldsIndex)).fieldNames.some((h) => o(h, r.name)) || await te(t, r, i) || await re(t, r))
224
+ if (!i?.ignoreLayerDefinitionExpression && r.definitionExpression && (await v.parseWhereClause(r.definitionExpression, r.fieldsIndex)).fieldNames.some((y) => o(y, t.name)) || await ie(r, t, i) || await se(r, t))
225
225
  return !1;
226
- if (await ie(t, r))
226
+ if (await ne(r, t))
227
227
  return await Promise.resolve(!1);
228
- if (await se(t, r))
228
+ if (await ae(r, t))
229
229
  return await Promise.resolve(!1);
230
- if (ee(e, t, r) || t.relationships?.map((d) => d.keyField)?.some((d) => o(d, r.name)))
230
+ if (te(e, r, t) || r.relationships?.map((u) => u.keyField)?.some((u) => o(u, t.name)))
231
231
  return !1;
232
- const M = P(n, n.portal.user), $ = i?.userItemInfo?.userGroups ?? await G(t) ?? [], W = i?.userItemInfo?.itemGroups ?? await k(t) ?? [], B = A($, W);
233
- if (!M && !B)
232
+ const $ = P(n, n.portal.user), W = i?.userItemInfo?.userGroups ?? await D(r) ?? [], q = i?.userItemInfo?.itemGroups ?? await k(r) ?? [], B = j(W, q);
233
+ if (!$ && !B)
234
234
  return !1;
235
235
  const R = i?.userItemInfo?.relatedItems ?? await C(n.id, n.portal, {
236
236
  relationshipType: "Service2Service"
237
237
  });
238
238
  return !(R?.data?.relatedItems && R.data.relatedItems.some(
239
- (p) => ["WMTS", "Map Service", "Vector Tile Service"].includes(p.type)
239
+ (m) => ["WMTS", "Map Service", "Vector Tile Service"].includes(m.type)
240
240
  ));
241
241
  }
242
- function ee(e, t, r) {
242
+ async function re(e, r, t) {
243
+ const i = `${e.url}/${e.layerId}/fieldGroups`, s = t?.userItemInfo && "fieldGroups" in t.userItemInfo ? t.userItemInfo.fieldGroups : (await L(i, {
244
+ query: { f: "json" },
245
+ responseType: "json"
246
+ }))?.data?.fieldGroups;
247
+ return s ? s.some(
248
+ (a) => a.fields.some((l) => o(l, r))
249
+ ) : !1;
250
+ }
251
+ function te(e, r, t) {
243
252
  if (!e)
244
253
  return !1;
245
254
  const i = e.map?.applicationProperties?.viewing?.search;
246
255
  if (i) {
247
- const s = i.layers?.find((n) => n.id === t.id);
256
+ const s = i.layers?.find((n) => n.id === r.id);
248
257
  if (s) {
249
258
  const n = s?.field?.name;
250
259
  if (n)
251
- return o(n, r.name);
260
+ return o(n, t.name);
252
261
  }
253
262
  }
254
263
  return !1;
255
264
  }
256
- async function j(e, t, r) {
257
- const i = r === "layer" ? e.labelingInfo?.filter((a) => x(a.where)) : e.sourceJSON?.drawingInfo?.labelingInfo?.filter((a) => x(a.where));
265
+ async function A(e, r, t) {
266
+ const i = t === "layer" ? e.labelingInfo?.filter((a) => x(a.where)) : e.sourceJSON?.drawingInfo?.labelingInfo?.filter((a) => x(a.where));
258
267
  if (!i?.length)
259
268
  return !1;
260
269
  const s = [
@@ -266,54 +275,54 @@ async function j(e, t, r) {
266
275
  ];
267
276
  let n = !1;
268
277
  for (let a = 0; a < s.length; a++) {
269
- const u = s[a].fieldNames?.some((c) => o(c, t.name));
270
- if (!n && u) {
278
+ const l = s[a].fieldNames?.some((c) => o(c, r.name));
279
+ if (!n && l) {
271
280
  n = !0;
272
281
  break;
273
282
  }
274
283
  }
275
284
  return await Promise.resolve(n);
276
285
  }
277
- async function te(e, t, r) {
286
+ async function ie(e, r, t) {
278
287
  const i = e.portalItem;
279
288
  if (!i)
280
289
  return !1;
281
- const s = `${O(i.portal)}content/items/${i.id}/data`, a = (r?.userItemInfo?.itemData ?? await L(s, {
290
+ const s = `${O(i.portal)}content/items/${i.id}/data`, a = (t?.userItemInfo?.itemData ?? await L(s, {
282
291
  query: { f: "json" },
283
292
  responseType: "json"
284
293
  }))?.data;
285
294
  if (!a)
286
295
  return !1;
287
296
  if (a?.layers) {
288
- const c = a.layers.find((f) => f.id === e.layerId), l = c?.layerDefinition?.drawingInfo?.renderer, w = c?.layerDefinition?.featureReduction, F = c?.layerDefinition?.definitionExpression;
289
- if (!l && !w && !F)
297
+ const c = a.layers.find((f) => f.id === e.layerId), d = c?.layerDefinition?.drawingInfo?.renderer, I = c?.layerDefinition?.featureReduction, F = c?.layerDefinition?.definitionExpression;
298
+ if (!d && !I && !F)
290
299
  return !1;
291
- if (!r?.ignoreItemRenderer && l) {
292
- const f = T.fromJSON(l);
293
- if ((await I.getRendererFields(f, e.fieldsIndex)).some((S) => o(S, t.name)))
300
+ if (!t?.ignoreItemRenderer && d) {
301
+ const f = T.fromJSON(d);
302
+ if ((await p.getRendererFields(f, e.fieldsIndex)).some((S) => o(S, r.name)))
294
303
  return !0;
295
304
  }
296
- if (!r?.ignoreItemFeatureReduction && w && await U(e, t, w) || F && (await v.parseWhereClause(F, e.fieldsIndex)).fieldNames.some((y) => o(y, t.name)))
305
+ if (!t?.ignoreItemFeatureReduction && I && await U(e, r, I) || F && (await v.parseWhereClause(F, e.fieldsIndex)).fieldNames.some((w) => o(w, r.name)))
297
306
  return !0;
298
307
  }
299
308
  return !1;
300
309
  }
301
- async function re(e, t) {
302
- const r = e.sourceJSON, i = r?.drawingInfo?.renderer, s = r?.featureReduction;
310
+ async function se(e, r) {
311
+ const t = e.sourceJSON, i = t?.drawingInfo?.renderer, s = t?.featureReduction;
303
312
  if (!i && !s)
304
313
  return !1;
305
314
  if (i) {
306
315
  const n = T.fromJSON(i);
307
- if ((await I.getRendererFields(n, e.fieldsIndex)).some((c) => o(c, t.name)))
316
+ if ((await p.getRendererFields(n, e.fieldsIndex)).some((c) => o(c, r.name)))
308
317
  return !0;
309
318
  }
310
319
  return !!(s && await U(
311
320
  e,
312
- t,
321
+ r,
313
322
  s
314
323
  ));
315
324
  }
316
- async function ie(e, t) {
325
+ async function ne(e, r) {
317
326
  const i = e.sourceJSON?.drawingInfo?.labelingInfo;
318
327
  if (!i)
319
328
  return await Promise.resolve(!1);
@@ -321,31 +330,31 @@ async function ie(e, t) {
321
330
  (n) => n.labelExpressionInfo?.expression
322
331
  );
323
332
  if (s) {
324
- if ((await I.getExpressionFields(e, s)).some((c) => o(c, t.name)))
333
+ if ((await p.getExpressionFields(e, s)).some((c) => o(c, r.name)))
325
334
  return await Promise.resolve(!0);
326
- if (await j(e, t, "service"))
335
+ if (await A(e, r, "service"))
327
336
  return await Promise.resolve(!0);
328
337
  }
329
338
  return await Promise.resolve(!1);
330
339
  }
331
- async function se(e, t) {
340
+ async function ae(e, r) {
332
341
  const i = e.sourceJSON?.definitionQuery;
333
- return i ? (await v.parseWhereClause(i, e.fieldsIndex)).fieldNames.some((a) => o(a, t.name)) ? await Promise.resolve(!0) : await Promise.resolve(!1) : await Promise.resolve(!1);
342
+ return i ? (await v.parseWhereClause(i, e.fieldsIndex)).fieldNames.some((a) => o(a, r.name)) ? await Promise.resolve(!0) : await Promise.resolve(!1) : await Promise.resolve(!1);
334
343
  }
335
- async function U(e, t, r) {
336
- const i = r.type === "binning" ? Q.fromJSON(r) : K.fromJSON(r), s = /* @__PURE__ */ new Set();
337
- return await I.collectFeatureReductionFields(s, e, i), !!Array.from(s).some(
338
- (a) => o(a, t.name)
344
+ async function U(e, r, t) {
345
+ const i = t.type === "binning" ? K.fromJSON(t) : _.fromJSON(t), s = /* @__PURE__ */ new Set();
346
+ return await p.collectFeatureReductionFields(s, e, i), !!Array.from(s).some(
347
+ (a) => o(a, r.name)
339
348
  );
340
349
  }
341
350
  export {
342
- Te as a,
343
- Re as b,
344
- xe as c,
345
- ve as d,
351
+ Ge as a,
352
+ Te as b,
353
+ Pe as c,
354
+ be as d,
346
355
  O as e,
347
- Oe as f,
348
- be as g,
356
+ Re as f,
357
+ xe as g,
349
358
  x as i,
350
- H as s
359
+ z as s
351
360
  };
@@ -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.37 */
9
+ v5.0.0-next.39 */
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.37 */
5
+ v5.0.0-next.39 */
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.37 */
6
+ v5.0.0-next.39 */
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.37 */
5
+ v5.0.0-next.39 */
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.37 */
8
+ v5.0.0-next.39 */
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-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() {
@@ -13,7 +13,7 @@ import { watch as _ } from "@arcgis/core/core/reactiveUtils.js";
13
13
  import { r as D } from "../../chunks/requests.js";
14
14
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
15
15
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
16
- v5.0.0-next.37 */
16
+ v5.0.0-next.39 */
17
17
  async function T({
18
18
  portalClassificationSchema: a,
19
19
  itemClassification: t
@@ -7,7 +7,7 @@ import { u as d, r as v } from "../../chunks/requests.js";
7
7
  import { g as h } from "../../chunks/common.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
10
- v5.0.0-next.37 */
10
+ v5.0.0-next.39 */
11
11
  const m = r`.select-favorite-label{display:flex;justify-content:space-between;align-items:center}.favorite-actions{display:flex;justify-content:flex-end;gap:1.5rem;align-items:center}.classification-favorite-dialog{--calcite-dialog-content-space: 0;--calcite-dialog-background-color: "var(--calcite-color-foreground-2)"}.save-new-favorite-button{display:flex;justify-content:flex-end;margin-top:.25rem;margin-bottom:1rem}.classification-favorite-item{display:flex;justify-content:space-between;padding-top:.5rem;padding-bottom:.5rem;border-bottom:1px solid var(--calcite-color-border-1)}.classification-favorite-list,.classification-favorite-input-section{margin:1.75rem 1rem}`;
12
12
  class C extends n {
13
13
  constructor() {
@@ -5,7 +5,7 @@ import { css as d, html as i } from "lit";
5
5
  import { u as h } from "../../chunks/useT9n.js";
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.37 */
8
+ v5.0.0-next.39 */
9
9
  const m = d`.spacing-y{margin:var(--calcite-spacing-md) 0}.portal-classification-form-element-tooltip{display:flex;justify-content:space-between;align-items:center}`;
10
10
  function l(n, e) {
11
11
  return n.uiElement === e;
@@ -12,7 +12,7 @@ import { a as j, g as U, b as q, d as R, s as J, e as D, f as z, i as w } from "
12
12
  import { u as W } from "../../chunks/useT9n.js";
13
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
14
14
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
15
- v5.0.0-next.37 */
15
+ v5.0.0-next.39 */
16
16
  const n = /* @__PURE__ */ new Map();
17
17
  n.set("oid", "key");
18
18
  n.set("guid", "key");
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2025-10-29T04:42:47",
2
+ "timestamp": "2025-10-31T04:39:39",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "5.0.0-next.37",
5
+ "version": "5.0.0-next.39",
6
6
  "typescriptVersion": "5.8.3"
7
7
  },
8
8
  "schemaVersion": "1.0.0",
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2025-10-29T04:42:47",
2
+ "timestamp": "2025-10-31T04:39:39",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "5.0.0-next.37",
5
+ "version": "5.0.0-next.39",
6
6
  "typescriptVersion": "5.8.3"
7
7
  },
8
8
  "components": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@arcgis/portal-components",
4
- "version": "5.0.0-next.37",
4
+ "version": "5.0.0-next.39",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { g as a, s as t } from "./chunks/runtime.js";
2
2
  import { c as o, a as r } from "./chunks/fieldAddDelete.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.37 */
5
+ v5.0.0-next.39 */
6
6
  export {
7
7
  o as canAddField,
8
8
  r as canDeleteField,
package/dist/loader.js CHANGED
@@ -2,7 +2,7 @@ import { r as i } from "./chunks/runtime.js";
2
2
  import { makeDefineCustomElements as t } from "@arcgis/lumina";
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.37 */
5
+ v5.0.0-next.39 */
6
6
  const s = t(i, {
7
7
  "arcgis-portal-classification-banner": [() => import("./components/arcgis-portal-classification-banner/customElement.js"), "autoDestroyDisabled,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],
8
8
  "arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,portalItem:,status,valid,values;destroy,resetForm,validateForm"],