@arcgis/portal-components 5.0.0-next.1 → 5.0.0-next.3
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/{TBZVZ3NK.js → 3E2NFBND.js} +2 -2
- package/dist/cdn/{YKLWML27.js → 4QBFY5OP.js} +1 -1
- package/dist/cdn/{YXRYHZH5.js → CIYPYRHE.js} +1 -1
- package/dist/cdn/{M5TSWZEI.js → DEE3QN4F.js} +2 -2
- package/dist/cdn/{MMZ2SLQM.js → KKDTLB74.js} +2 -2
- package/dist/cdn/{36SCONH7.js → O6EO42RZ.js} +1 -1
- package/dist/cdn/{UYHDCO7W.js → ONNLMSTK.js} +2 -2
- package/dist/cdn/{UAMIU7I6.js → PM4HJ7VO.js} +2 -2
- package/dist/cdn/{QXPXCLIB.js → PSHOQPAF.js} +2 -2
- package/dist/cdn/UMPZ42LP.js +4 -0
- package/dist/cdn/{VUHRSXSV.js → UYBAWNXV.js} +2 -2
- package/dist/cdn/{OHA5XBKC.js → XMKXVPWL.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/fieldAddDelete.js +139 -148
- 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 +62 -57
- 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 +4 -4
- package/dist/cdn/3C7EKA4P.js +0 -4
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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.
|
|
9
|
+
v5.0.0-next.3 */
|
|
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
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
const i =
|
|
18
|
-
return i?.title ? i.title :
|
|
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 :
|
|
20
|
+
return e.label ? e.label : r;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
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 (
|
|
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
|
|
36
|
+
async function Le(e) {
|
|
37
37
|
return new Map(
|
|
38
|
-
(await
|
|
38
|
+
(await _(e)).filter((t) => t.visible).map((t) => [t.name, t])
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
return e?.expressionInfos && e.expressionInfos.forEach((
|
|
44
|
-
const i = `${b.expression}${
|
|
45
|
-
|
|
46
|
-
}),
|
|
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
|
|
49
|
-
return await new Promise((
|
|
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
|
-
|
|
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((
|
|
62
|
-
),
|
|
63
|
-
|
|
64
|
-
a.has(
|
|
65
|
-
}),
|
|
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
|
-
|
|
67
|
+
t(i.fields);
|
|
68
68
|
}).catch((n) => {
|
|
69
|
-
|
|
70
|
-
}) :
|
|
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
|
-
|
|
76
|
+
t(e.rasterFields);
|
|
77
77
|
break;
|
|
78
78
|
default:
|
|
79
|
-
|
|
79
|
+
t("fields" in e ? e.fields ?? [] : []);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const H = (e) => e && !e.endsWith("/") ? `${e}/` : e;
|
|
84
84
|
function O(e) {
|
|
85
|
-
return
|
|
85
|
+
return H(e.restUrl);
|
|
86
86
|
}
|
|
87
|
-
function P(e,
|
|
88
|
-
return J(e,
|
|
87
|
+
function P(e, t) {
|
|
88
|
+
return J(e, t) || z(e, t);
|
|
89
89
|
}
|
|
90
|
-
function J(e,
|
|
91
|
-
return e.owner ===
|
|
90
|
+
function J(e, t) {
|
|
91
|
+
return e.owner === t.username;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
const
|
|
95
|
-
return e.portal?.isPortal && !J(e,
|
|
96
|
-
!s.includes(
|
|
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
|
|
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
|
|
104
|
+
function E(e) {
|
|
105
105
|
return e.typeKeywords?.includes("Hosted Service");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function V(e) {
|
|
108
108
|
return e.typeKeywords?.includes("Multi Services View");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function D(e) {
|
|
111
111
|
return e?.hasViews && !e.sourceSchemaChangesAllowed;
|
|
112
112
|
}
|
|
113
|
-
async function
|
|
114
|
-
const
|
|
115
|
-
if (!
|
|
113
|
+
async function G(e) {
|
|
114
|
+
const t = e?.portalItem;
|
|
115
|
+
if (!t)
|
|
116
116
|
return await Promise.resolve(null);
|
|
117
|
-
const
|
|
118
|
-
if (
|
|
119
|
-
const i = `${O(
|
|
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:
|
|
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
|
|
138
|
-
if (!
|
|
137
|
+
const t = e?.portalItem;
|
|
138
|
+
if (!t)
|
|
139
139
|
return await Promise.resolve(null);
|
|
140
|
-
const
|
|
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:
|
|
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 ?? [],
|
|
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,
|
|
156
|
-
const s = `${O(
|
|
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:
|
|
158
|
+
query: { f: "json", relationshipType: r, direction: i },
|
|
159
159
|
responseType: "json"
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
function A(e,
|
|
162
|
+
function A(e, t) {
|
|
163
163
|
return e?.some(
|
|
164
|
-
(
|
|
165
|
-
(i) =>
|
|
164
|
+
(r) => t?.some(
|
|
165
|
+
(i) => r.id === i.id && r.capabilities.includes("updateitemcontrol")
|
|
166
166
|
)
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
|
-
function o(e,
|
|
170
|
-
return !e || !
|
|
169
|
+
function o(e, t) {
|
|
170
|
+
return !e || !t ? !1 : e.toLocaleLowerCase() === t.toLocaleLowerCase();
|
|
171
171
|
}
|
|
172
|
-
async function
|
|
173
|
-
const
|
|
174
|
-
if (!
|
|
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 =
|
|
177
|
-
if (!s?.user || N(
|
|
176
|
+
const s = r.portal;
|
|
177
|
+
if (!s?.user || N(r) || !E(r) || V(r) || D(i))
|
|
178
178
|
return !1;
|
|
179
|
-
const
|
|
180
|
-
if (!
|
|
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
|
|
182
|
+
const m = await j(r.id, s, {
|
|
183
183
|
relationshipType: "Service2Service"
|
|
184
184
|
});
|
|
185
|
-
return !(
|
|
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
|
|
190
|
-
if (!
|
|
189
|
+
async function Re(e, t, r, i) {
|
|
190
|
+
if (!r)
|
|
191
191
|
return !1;
|
|
192
|
-
const s = ["feature", "oriented-imagery"].includes(
|
|
193
|
-
if (!s || !n || !n.portal.user || !
|
|
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
|
|
196
|
-
if (o(
|
|
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 =
|
|
199
|
-
if (g && (o(g.creationDateField,
|
|
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 &&
|
|
202
|
-
const
|
|
203
|
-
if (await
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
), Array.from(
|
|
208
|
-
(
|
|
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
|
|
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
|
|
216
|
-
(
|
|
215
|
+
const d = t.labelingInfo?.map(
|
|
216
|
+
(p) => p.labelExpressionInfo?.expression
|
|
217
217
|
);
|
|
218
|
-
if (
|
|
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 &&
|
|
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
|
|
223
|
+
if (await te(t, r))
|
|
224
224
|
return await Promise.resolve(!1);
|
|
225
|
-
if (await
|
|
225
|
+
if (await re(t, r))
|
|
226
226
|
return await Promise.resolve(!1);
|
|
227
|
-
if (
|
|
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),
|
|
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
|
-
(
|
|
236
|
+
(p) => ["WMTS", "Map Service", "Vector Tile Service"].includes(p.type)
|
|
237
237
|
));
|
|
238
238
|
}
|
|
239
|
-
|
|
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 ===
|
|
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,
|
|
248
|
+
return o(n, r.name);
|
|
258
249
|
}
|
|
259
250
|
}
|
|
260
251
|
return !1;
|
|
261
252
|
}
|
|
262
|
-
async function U(e,
|
|
263
|
-
const i =
|
|
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
|
|
276
|
-
if (!n &&
|
|
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
|
|
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 = (
|
|
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),
|
|
295
|
-
if (!
|
|
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 (!
|
|
298
|
-
const f = T.fromJSON(
|
|
299
|
-
if ((await
|
|
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 (!
|
|
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
|
|
308
|
-
const
|
|
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
|
|
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
|
-
|
|
309
|
+
t,
|
|
319
310
|
s
|
|
320
311
|
));
|
|
321
312
|
}
|
|
322
|
-
async function
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
342
|
-
const i =
|
|
343
|
-
return await
|
|
344
|
-
(a) => o(a,
|
|
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
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
339
|
+
Re as a,
|
|
340
|
+
Oe as b,
|
|
341
|
+
be as c,
|
|
342
|
+
ge as d,
|
|
352
343
|
O as e,
|
|
353
|
-
|
|
354
|
-
|
|
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.
|
|
9
|
+
v5.0.0-next.3 */
|
|
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.3 */
|
|
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.3 */
|
|
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.3 */
|
|
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.3 */
|
|
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() {
|
|
@@ -13,7 +13,7 @@ import { watch as F } 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.3 */
|
|
17
17
|
async function T({
|
|
18
18
|
portalClassificationSchema: s,
|
|
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.3 */
|
|
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.3 */
|
|
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;
|