@arcgis/portal-components 5.0.0-next.38 → 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.
- package/dist/cdn/{QZW3VYBI.js → 54MOCYKO.js} +2 -2
- package/dist/cdn/{JZJUNQFH.js → 6D257Q6B.js} +2 -2
- package/dist/cdn/{VF2Z5V7P.js → C57E6IMT.js} +1 -1
- package/dist/cdn/{57SIL2OV.js → D2AEDXIA.js} +2 -2
- package/dist/cdn/{ZOZTVVVD.js → GNRCZJW4.js} +2 -2
- package/dist/cdn/{Q5UXT5PQ.js → JTPSHSYA.js} +2 -2
- package/dist/cdn/{HF3M4HPD.js → NCD37YPW.js} +1 -1
- package/dist/cdn/{XCI7OVBF.js → P4CQWI23.js} +1 -1
- package/dist/cdn/{WPEFUKKL.js → Q3CCDLWE.js} +2 -2
- package/dist/cdn/{LPX7LUKK.js → R22AYHI4.js} +2 -2
- package/dist/cdn/{XUDTVYC5.js → TPXVESM5.js} +2 -2
- package/dist/cdn/W4SJJKYU.js +4 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/fieldAddDelete.js +152 -143
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/requests.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-portal-classification-banner/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +3 -3
- package/dist/cdn/NKO6GUJU.js +0 -4
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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.
|
|
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
|
|
12
|
-
function
|
|
13
|
-
return "fieldConfigurations" in e &&
|
|
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
|
|
19
|
-
const i =
|
|
18
|
+
function be(e, r, t) {
|
|
19
|
+
const i = r.fieldName;
|
|
20
20
|
if (i.includes(b.expression)) {
|
|
21
|
-
const s =
|
|
21
|
+
const s = t.get(i);
|
|
22
22
|
return s?.title ? s.title : i;
|
|
23
|
-
} else return
|
|
23
|
+
} else return z(e) && e.getFieldConfiguration(i) ? e.getFieldAlias(i) || i : r.label || i;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
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 (
|
|
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
|
|
39
|
+
async function xe(e) {
|
|
40
40
|
return new Map(
|
|
41
|
-
(await
|
|
41
|
+
(await X(e)).filter((r) => r.visible).map((r) => [r.name, r])
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
return e?.expressionInfos && e.expressionInfos.forEach((
|
|
47
|
-
const i = `${b.expression}${
|
|
48
|
-
|
|
49
|
-
}),
|
|
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
|
|
52
|
-
return await new Promise((
|
|
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
|
-
|
|
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((
|
|
65
|
-
),
|
|
66
|
-
|
|
67
|
-
a.has(
|
|
68
|
-
}),
|
|
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
|
-
|
|
70
|
+
r(i.fields);
|
|
71
71
|
}).catch((n) => {
|
|
72
|
-
|
|
73
|
-
}) :
|
|
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
|
-
|
|
79
|
+
r(e.rasterFields);
|
|
80
80
|
break;
|
|
81
81
|
default:
|
|
82
|
-
|
|
82
|
+
r("fields" in e ? e.fields ?? [] : []);
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const Y = (e) => e && !e.endsWith("/") ? `${e}/` : e;
|
|
87
87
|
function O(e) {
|
|
88
|
-
return
|
|
88
|
+
return Y(e.restUrl);
|
|
89
89
|
}
|
|
90
|
-
function P(e,
|
|
91
|
-
return
|
|
90
|
+
function P(e, r) {
|
|
91
|
+
return G(e, r) || Z(e, r);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
return e.owner ===
|
|
93
|
+
function G(e, r) {
|
|
94
|
+
return e.owner === r.username;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const
|
|
98
|
-
return e.portal?.isPortal && !
|
|
99
|
-
!s.includes(
|
|
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
|
|
101
|
+
function ee(e) {
|
|
102
102
|
return e.typeKeywords?.includes("Spatiotemporal");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function J(e) {
|
|
105
105
|
return e.typeKeywords?.includes("View Service");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function N(e) {
|
|
108
108
|
return e.typeKeywords?.includes("Hosted Service");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function E(e) {
|
|
111
111
|
return e.typeKeywords?.includes("Multi Services View");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function V(e) {
|
|
114
114
|
return e?.hasViews && !e.sourceSchemaChangesAllowed;
|
|
115
115
|
}
|
|
116
|
-
async function
|
|
117
|
-
const
|
|
118
|
-
if (!
|
|
116
|
+
async function D(e) {
|
|
117
|
+
const r = e?.portalItem;
|
|
118
|
+
if (!r)
|
|
119
119
|
return await Promise.resolve(null);
|
|
120
|
-
const
|
|
121
|
-
if (
|
|
122
|
-
const i = `${O(
|
|
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:
|
|
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
|
|
141
|
-
if (!
|
|
140
|
+
const r = e?.portalItem;
|
|
141
|
+
if (!r)
|
|
142
142
|
return await Promise.resolve(null);
|
|
143
|
-
const
|
|
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:
|
|
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 ?? [],
|
|
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,
|
|
159
|
-
const s = `${O(
|
|
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:
|
|
161
|
+
query: { f: "json", relationshipType: t, direction: i },
|
|
162
162
|
responseType: "json"
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function j(e, r) {
|
|
166
166
|
return e?.some(
|
|
167
|
-
(
|
|
168
|
-
(i) =>
|
|
167
|
+
(t) => r?.some(
|
|
168
|
+
(i) => t.id === i.id && t.capabilities.includes("updateitemcontrol")
|
|
169
169
|
)
|
|
170
170
|
);
|
|
171
171
|
}
|
|
172
|
-
function o(e,
|
|
173
|
-
return !e || !
|
|
172
|
+
function o(e, r) {
|
|
173
|
+
return !e || !r ? !1 : e.toLocaleLowerCase() === r.toLocaleLowerCase();
|
|
174
174
|
}
|
|
175
|
-
async function
|
|
176
|
-
const
|
|
177
|
-
if (!
|
|
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 =
|
|
180
|
-
if (!s?.user ||
|
|
179
|
+
const s = t.portal;
|
|
180
|
+
if (!s?.user || J(t) || !N(t) || E(t) || V(i))
|
|
181
181
|
return !1;
|
|
182
|
-
const
|
|
183
|
-
if (!
|
|
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
|
|
185
|
+
const h = await C(t.id, s, {
|
|
186
186
|
relationshipType: "Service2Service"
|
|
187
187
|
});
|
|
188
|
-
return !(
|
|
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
|
|
193
|
-
if (!
|
|
192
|
+
async function Ge(e, r, t, i) {
|
|
193
|
+
if (!t)
|
|
194
194
|
return !1;
|
|
195
|
-
const s = ["feature", "oriented-imagery"].includes(
|
|
196
|
-
if (!s || !n || !n.portal.user || !
|
|
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
|
|
199
|
-
if (o(
|
|
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 =
|
|
202
|
-
if (g && (o(g.creationDateField,
|
|
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 &&
|
|
205
|
-
const
|
|
206
|
-
if (await
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
), Array.from(
|
|
211
|
-
(
|
|
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
|
|
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
|
|
219
|
-
(
|
|
218
|
+
const u = r.labelingInfo?.map(
|
|
219
|
+
(m) => m.labelExpressionInfo?.expression
|
|
220
220
|
);
|
|
221
|
-
if (
|
|
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 &&
|
|
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
|
|
226
|
+
if (await ne(r, t))
|
|
227
227
|
return await Promise.resolve(!1);
|
|
228
|
-
if (await
|
|
228
|
+
if (await ae(r, t))
|
|
229
229
|
return await Promise.resolve(!1);
|
|
230
|
-
if (
|
|
230
|
+
if (te(e, r, t) || r.relationships?.map((u) => u.keyField)?.some((u) => o(u, t.name)))
|
|
231
231
|
return !1;
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
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
|
-
(
|
|
239
|
+
(m) => ["WMTS", "Map Service", "Vector Tile Service"].includes(m.type)
|
|
240
240
|
));
|
|
241
241
|
}
|
|
242
|
-
function
|
|
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 ===
|
|
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,
|
|
260
|
+
return o(n, t.name);
|
|
252
261
|
}
|
|
253
262
|
}
|
|
254
263
|
return !1;
|
|
255
264
|
}
|
|
256
|
-
async function
|
|
257
|
-
const i =
|
|
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
|
|
270
|
-
if (!n &&
|
|
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
|
|
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 = (
|
|
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),
|
|
289
|
-
if (!
|
|
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 (!
|
|
292
|
-
const f = T.fromJSON(
|
|
293
|
-
if ((await
|
|
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 (!
|
|
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
|
|
302
|
-
const
|
|
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
|
|
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
|
-
|
|
321
|
+
r,
|
|
313
322
|
s
|
|
314
323
|
));
|
|
315
324
|
}
|
|
316
|
-
async function
|
|
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
|
|
333
|
+
if ((await p.getExpressionFields(e, s)).some((c) => o(c, r.name)))
|
|
325
334
|
return await Promise.resolve(!0);
|
|
326
|
-
if (await
|
|
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
|
|
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,
|
|
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,
|
|
336
|
-
const i =
|
|
337
|
-
return await
|
|
338
|
-
(a) => o(a,
|
|
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
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
351
|
+
Ge as a,
|
|
352
|
+
Te as b,
|
|
353
|
+
Pe as c,
|
|
354
|
+
be as d,
|
|
346
355
|
O as e,
|
|
347
|
-
|
|
348
|
-
|
|
356
|
+
Re as f,
|
|
357
|
+
xe as g,
|
|
349
358
|
x as i,
|
|
350
|
-
|
|
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.
|
|
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);
|
package/dist/chunks/requests.js
CHANGED
|
@@ -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.
|
|
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 {
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -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.
|
|
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;
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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");
|
package/dist/docs/api.json
CHANGED
package/dist/docs/docs.json
CHANGED
package/dist/docs/web-types.json
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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"],
|