@arcgis/portal-components 5.0.0-next.14 → 5.0.0-next.141
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/2QNNOF35.js +4 -0
- package/dist/cdn/3PW365TA.js +4 -0
- package/dist/cdn/3TWP2RZQ.js +4 -0
- package/dist/cdn/{YBZHLIFY.js → 445AZMC5.js} +1 -1
- package/dist/cdn/DA4DAZQZ.js +4 -0
- package/dist/cdn/FCSBMJLE.js +4 -0
- package/dist/cdn/{E2UQO7Z7.js → FECCDTEG.js} +2 -2
- package/dist/cdn/FHB4YXY5.js +6 -0
- package/dist/cdn/LDGKDN4B.js +4 -0
- package/dist/cdn/LJFF4SBX.js +4 -0
- package/dist/cdn/MUZZAYF2.js +4 -0
- package/dist/cdn/PO7P4R6V.js +4 -0
- package/dist/cdn/PUHQ4XQ5.js +4 -0
- package/dist/cdn/SXN747Q7.js +4 -0
- package/dist/cdn/THZEVQB5.js +4 -0
- package/dist/cdn/XINMYRZV.js +4 -0
- package/dist/cdn/{HJFZ3UZA.js → ZX56HBSP.js} +2 -2
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.nb.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/fieldAddDelete.js +153 -226
- package/dist/chunks/item.js +103 -0
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/requests.js +2 -2
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-portal-classification-banner/customElement.d.ts +39 -34
- package/dist/components/arcgis-portal-classification-banner/customElement.js +18 -17
- package/dist/components/arcgis-portal-classification-banner/index.d.ts +0 -1
- package/dist/components/arcgis-portal-classification-config/customElement.d.ts +67 -38
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-config/index.d.ts +0 -11
- package/dist/components/arcgis-portal-classification-favorite/customElement.d.ts +61 -16
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-favorite/index.d.ts +0 -11
- package/dist/components/arcgis-portal-classification-form-element/customElement.d.ts +27 -12
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +7 -7
- package/dist/components/arcgis-portal-classification-form-element/index.d.ts +0 -8
- package/dist/components/arcgis-portal-extent-picker/customElement.d.ts +124 -0
- package/dist/components/arcgis-portal-extent-picker/customElement.js +553 -0
- package/dist/components/arcgis-portal-extent-picker/index.d.ts +1 -0
- package/dist/components/arcgis-portal-extent-picker/index.js +8 -0
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +60 -0
- package/dist/components/arcgis-portal-extent-picker-coord-field/index.js +3 -0
- package/dist/components/arcgis-portal-field-delete/customElement.d.ts +88 -21
- package/dist/components/arcgis-portal-field-delete/customElement.js +81 -78
- package/dist/components/arcgis-portal-field-delete/index.d.ts +0 -9
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.d.ts +43 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +151 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/index.d.ts +1 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/index.js +6 -0
- package/dist/docs/api.json +1 -1174
- package/dist/docs/docs.json +1 -1076
- package/dist/docs/vscode.css-custom-data.json +1 -6
- package/dist/docs/vscode.html-custom-data.json +1 -98
- package/dist/docs/web-types.json +1 -313
- package/dist/index.d.ts +73 -61
- package/dist/index.js +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +11 -8
- package/dist/models/classificationModel.d.ts +1 -68
- package/dist/types/classification.d.ts +89 -165
- package/dist/types/components.d.ts +2 -1
- package/dist/types/lumina.d.ts +30 -15
- package/dist/types/preact.d.ts +32 -15
- package/dist/types/react.d.ts +34 -15
- package/dist/types/stencil.d.ts +30 -15
- package/dist/utils/fieldAddDelete.d.ts +12 -3
- package/dist/utils/types.d.ts +25 -24
- package/package.json +8 -7
- package/dist/cdn/GAVE7GOE.js +0 -4
- package/dist/cdn/GCTEBF5M.js +0 -4
- package/dist/cdn/IQGOBW2Z.js +0 -4
- package/dist/cdn/MCC56U5S.js +0 -4
- package/dist/cdn/NIHR6VOM.js +0 -4
- package/dist/cdn/NNI54DSU.js +0 -4
- package/dist/cdn/OB7YFCHE.js +0 -4
- package/dist/cdn/ORW2D6UX.js +0 -4
- package/dist/cdn/UYVWH4TJ.js +0 -6
- package/dist/components/arcgis-portal-field-delete/types.d.ts +0 -5
- package/dist/controllers/loadClassificationData.d.ts +0 -11
- package/dist/controllers/useClassificationModel.d.ts +0 -9
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/runtime.d.ts +0 -6
- package/dist/types/preact10.d.ts +0 -54
- package/dist/utils/arcade.d.ts +0 -27
- package/dist/utils/common.d.ts +0 -29
- package/dist/utils/commonEnums.d.ts +0 -5
- package/dist/utils/commonFunctions.d.ts +0 -11
- package/dist/utils/functionalComponents/FieldIcons.d.ts +0 -6
- package/dist/utils/item.d.ts +0 -21
- package/dist/utils/portal.d.ts +0 -2
- package/dist/utils/requests.d.ts +0 -15
- package/dist/utils/url.d.ts +0 -1
|
@@ -1,347 +1,274 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as p from "@arcgis/core/layers/support/fieldUtils.js";
|
|
2
2
|
import Q from "@arcgis/core/layers/support/FeatureReductionBinning.js";
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
3
|
+
import q from "@arcgis/core/layers/support/FeatureReductionCluster.js";
|
|
4
|
+
import * as R from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
5
|
+
import x from "@arcgis/core/request.js";
|
|
6
6
|
import * as L from "@arcgis/core/core/sql.js";
|
|
7
|
+
import { i as J, a as N, l as T, b as G, c as H, u as P, d as E, e as D, f as V, h as C, g as z } from "./item.js";
|
|
7
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
9
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
v5.0.0-next.141 */
|
|
11
|
+
var O = /* @__PURE__ */ ((r) => (r.expression = "expression/", r.raster = "Raster.", r.relationship = "relationships/", r))(O || {});
|
|
12
|
+
const K = ["feature"];
|
|
13
|
+
function X(r) {
|
|
14
|
+
return "fieldConfigurations" in r && K.includes(r.type);
|
|
13
15
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
function b(r) {
|
|
17
|
+
return r != null;
|
|
18
|
+
}
|
|
19
|
+
function Oe(r, e, i) {
|
|
20
|
+
const t = e.fieldName;
|
|
21
|
+
if (t.includes(O.expression)) {
|
|
22
|
+
const s = i.get(t);
|
|
23
|
+
return s?.title ? s.title : t;
|
|
24
|
+
} else return X(r) && r.getFieldConfiguration(t) ? r.getFieldAlias(t) || t : e.label || t;
|
|
21
25
|
}
|
|
22
|
-
function ve(
|
|
23
|
-
let
|
|
24
|
-
if (/^raster.(?:item|service)pixelvalue/iu.test(
|
|
25
|
-
|
|
26
|
-
else if (
|
|
27
|
-
const s =
|
|
28
|
-
|
|
29
|
-
} else if (
|
|
30
|
-
const s =
|
|
31
|
-
|
|
26
|
+
function ve(r, e, i) {
|
|
27
|
+
let t = "";
|
|
28
|
+
if (/^raster.(?:item|service)pixelvalue/iu.test(r))
|
|
29
|
+
t = "number";
|
|
30
|
+
else if (e.has(r)) {
|
|
31
|
+
const s = e.get(r);
|
|
32
|
+
t = s.type ? s.type.toLowerCase() : "";
|
|
33
|
+
} else if (i.has(r)) {
|
|
34
|
+
const s = i.get(r);
|
|
35
|
+
t = s.returnType ? s.returnType.toLowerCase() : "";
|
|
32
36
|
} else
|
|
33
|
-
|
|
34
|
-
return
|
|
37
|
+
t = "number";
|
|
38
|
+
return t;
|
|
35
39
|
}
|
|
36
|
-
async function
|
|
40
|
+
async function be(r) {
|
|
37
41
|
return new Map(
|
|
38
|
-
(await
|
|
42
|
+
(await Y(r)).filter((e) => e.visible).map((e) => [e.name, e])
|
|
39
43
|
);
|
|
40
44
|
}
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
}),
|
|
45
|
+
function Re(r) {
|
|
46
|
+
const e = /* @__PURE__ */ new Map();
|
|
47
|
+
return r?.expressionInfos && r.expressionInfos.forEach((i) => {
|
|
48
|
+
const t = `${O.expression}${i.name}`;
|
|
49
|
+
e.set(t, i);
|
|
50
|
+
}), e;
|
|
47
51
|
}
|
|
48
|
-
async function
|
|
49
|
-
return await new Promise((
|
|
50
|
-
switch (
|
|
52
|
+
async function Y(r) {
|
|
53
|
+
return await new Promise((e, i) => {
|
|
54
|
+
switch (r.type) {
|
|
51
55
|
case "feature":
|
|
52
56
|
case "ogc-feature":
|
|
53
57
|
case "stream":
|
|
54
|
-
|
|
58
|
+
e(r.fields);
|
|
55
59
|
break;
|
|
56
60
|
case "sublayer": {
|
|
57
|
-
const
|
|
61
|
+
const t = r, s = t?.layer;
|
|
58
62
|
s?.portalItem && s.url.includes("https://demographics") && s.url.includes(".arcgis.com") ? s.portalItem?.fetchData().then((n) => {
|
|
59
63
|
if (n?.thematicGroup) {
|
|
60
64
|
const a = new Map(
|
|
61
|
-
|
|
62
|
-
),
|
|
63
|
-
|
|
65
|
+
t.fields.map((l) => [l.name, l])
|
|
66
|
+
), f = n.thematicGroup.fieldNames, c = [];
|
|
67
|
+
f.forEach((l) => {
|
|
64
68
|
a.has(l) && c.push(a.get(l));
|
|
65
|
-
}),
|
|
69
|
+
}), e(c);
|
|
66
70
|
} else
|
|
67
|
-
t
|
|
71
|
+
e(t.fields);
|
|
68
72
|
}).catch((n) => {
|
|
69
|
-
|
|
70
|
-
}) : t
|
|
73
|
+
i(new Error(n));
|
|
74
|
+
}) : e(t.fields);
|
|
71
75
|
break;
|
|
72
76
|
}
|
|
73
77
|
case "imagery":
|
|
74
78
|
case "imagery-tile":
|
|
75
79
|
case "wcs":
|
|
76
|
-
|
|
80
|
+
e(r.rasterFields);
|
|
77
81
|
break;
|
|
78
82
|
default:
|
|
79
|
-
|
|
83
|
+
e("fields" in r ? r.fields ?? [] : []);
|
|
80
84
|
}
|
|
81
85
|
});
|
|
82
86
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return H(e.restUrl);
|
|
86
|
-
}
|
|
87
|
-
function P(e, t) {
|
|
88
|
-
return J(e, t) || z(e, t);
|
|
89
|
-
}
|
|
90
|
-
function J(e, t) {
|
|
91
|
-
return e.owner === t.username;
|
|
92
|
-
}
|
|
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
|
-
}
|
|
98
|
-
function X(e) {
|
|
99
|
-
return e.typeKeywords?.includes("Spatiotemporal");
|
|
100
|
-
}
|
|
101
|
-
function N(e) {
|
|
102
|
-
return e.typeKeywords?.includes("View Service");
|
|
103
|
-
}
|
|
104
|
-
function E(e) {
|
|
105
|
-
return e.typeKeywords?.includes("Hosted Service");
|
|
106
|
-
}
|
|
107
|
-
function V(e) {
|
|
108
|
-
return e.typeKeywords?.includes("Multi Services View");
|
|
109
|
-
}
|
|
110
|
-
function D(e) {
|
|
111
|
-
return e?.hasViews && !e.sourceSchemaChangesAllowed;
|
|
112
|
-
}
|
|
113
|
-
async function G(e) {
|
|
114
|
-
const t = e?.portalItem;
|
|
115
|
-
if (!t)
|
|
116
|
-
return await Promise.resolve(null);
|
|
117
|
-
const r = t.portal;
|
|
118
|
-
if (r?.user) {
|
|
119
|
-
const i = `${O(r)}community/users/${r.user.username}`;
|
|
120
|
-
return await v(i, {
|
|
121
|
-
query: {
|
|
122
|
-
f: "json",
|
|
123
|
-
token: t.portal.credential?.token
|
|
124
|
-
},
|
|
125
|
-
responseType: "json"
|
|
126
|
-
}).then(
|
|
127
|
-
async (s) => {
|
|
128
|
-
const n = s.data?.groups ?? [];
|
|
129
|
-
return await Promise.resolve(n);
|
|
130
|
-
},
|
|
131
|
-
async () => await Promise.reject(new Error("Failed to fetch user groups"))
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
return await Promise.resolve(null);
|
|
135
|
-
}
|
|
136
|
-
async function k(e) {
|
|
137
|
-
const t = e?.portalItem;
|
|
138
|
-
if (!t)
|
|
139
|
-
return await Promise.resolve(null);
|
|
140
|
-
const r = t.portal, i = `${O(r)}content/items/${t.id}/groups`;
|
|
141
|
-
return await v(i, {
|
|
142
|
-
query: {
|
|
143
|
-
f: "json",
|
|
144
|
-
token: t.portal.credential?.token
|
|
145
|
-
},
|
|
146
|
-
responseType: "json"
|
|
147
|
-
}).then(
|
|
148
|
-
async (s) => {
|
|
149
|
-
const n = s.data?.admin ?? [], a = s.data?.member ?? [], u = s.data?.other ?? [], c = [...n, ...a, ...u];
|
|
150
|
-
return await Promise.resolve(c);
|
|
151
|
-
},
|
|
152
|
-
async () => await Promise.reject(new Error("Failed to fetch item groups"))
|
|
153
|
-
);
|
|
87
|
+
function o(r, e) {
|
|
88
|
+
return !r || !e ? !1 : r.toLocaleLowerCase() === e.toLocaleLowerCase();
|
|
154
89
|
}
|
|
155
|
-
async function
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
query: { f: "json", relationshipType: r, direction: i },
|
|
159
|
-
responseType: "json"
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
function A(e, t) {
|
|
163
|
-
return e?.some(
|
|
164
|
-
(r) => t?.some(
|
|
165
|
-
(i) => r.id === i.id && r.capabilities.includes("updateitemcontrol")
|
|
166
|
-
)
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
function o(e, t) {
|
|
170
|
-
return !e || !t ? !1 : e.toLocaleLowerCase() === t.toLocaleLowerCase();
|
|
171
|
-
}
|
|
172
|
-
async function be(e) {
|
|
173
|
-
const t = ["feature", "oriented-imagery"].includes(e.type), r = e?.portalItem, i = e.sourceJSON;
|
|
174
|
-
if (!t || !r)
|
|
90
|
+
async function xe(r) {
|
|
91
|
+
const e = ["feature", "oriented-imagery"].includes(r.type), i = r?.portalItem, t = r.sourceJSON;
|
|
92
|
+
if (!e || !i)
|
|
175
93
|
return !1;
|
|
176
|
-
const s =
|
|
177
|
-
if (!s?.user || N(
|
|
94
|
+
const s = i.portal;
|
|
95
|
+
if (!s?.user || N(i) || !J(i) || T(i) || G(t))
|
|
178
96
|
return !1;
|
|
179
|
-
const l = P(
|
|
180
|
-
if (!l && !
|
|
97
|
+
const l = P(i, s.user), I = await E(r) ?? [], F = await D(r) ?? [], u = V(I, F);
|
|
98
|
+
if (!l && !u)
|
|
181
99
|
return !1;
|
|
182
|
-
const
|
|
100
|
+
const S = await C(i.id, s, {
|
|
183
101
|
relationshipType: "Service2Service"
|
|
184
102
|
});
|
|
185
|
-
return !(
|
|
186
|
-
(
|
|
103
|
+
return !(S?.data?.relatedItems && S.data.relatedItems.some(
|
|
104
|
+
(g) => ["WMTS", "Map Service", "Vector Tile Service"].includes(g.type)
|
|
187
105
|
));
|
|
188
106
|
}
|
|
189
|
-
async function
|
|
190
|
-
if (!
|
|
107
|
+
async function Je(r, e, i, t) {
|
|
108
|
+
if (!i)
|
|
191
109
|
return !1;
|
|
192
|
-
const s = ["feature", "oriented-imagery"].includes(
|
|
193
|
-
if (!s || !n || !n.portal.user || !
|
|
110
|
+
const s = ["feature", "oriented-imagery"].includes(e.type), n = t?.item ?? e.portalItem, a = e.sourceJSON;
|
|
111
|
+
if (!s || !n || !n.portal.user || !J(n) || N(n) || T(n) || G(a) || n.portal.isPortal && H(n) || ["oid", "global-id", "geometry"].includes(i.type) || await Z(e, i.name, t))
|
|
194
112
|
return !1;
|
|
195
|
-
const
|
|
196
|
-
if (o(
|
|
113
|
+
const w = e.sourceJSON.geometryProperties, g = w?.shapeLengthFieldName, M = w?.shapeAreaFieldName;
|
|
114
|
+
if (o(g, i.name) || o(M, i.name))
|
|
197
115
|
return !1;
|
|
198
|
-
const
|
|
199
|
-
if (
|
|
116
|
+
const y = e.editFieldsInfo;
|
|
117
|
+
if (y && (o(y.creationDateField, i.name) || o(y.creatorField, i.name) || o(y.editDateField, i.name) || o(y.editorField, i.name)) || o(e.objectIdField, i.name) || o(e.displayField, i.name) || o(e.typeIdField, i.name) || o(e.subtypeField, i.name) || e.timeInfo && (o(e.timeInfo.startField, i.name) || o(e.timeInfo.endField, i.name) || o(e.timeInfo.trackIdField, i.name)))
|
|
200
118
|
return !1;
|
|
201
|
-
if (!
|
|
119
|
+
if (!t?.ignoreLayerRenderer && e.featureReduction) {
|
|
202
120
|
const d = /* @__PURE__ */ new Set();
|
|
203
|
-
if (await
|
|
121
|
+
if (await p.collectFeatureReductionFields(
|
|
204
122
|
d,
|
|
205
|
-
|
|
206
|
-
|
|
123
|
+
e,
|
|
124
|
+
e.featureReduction
|
|
207
125
|
), Array.from(d).some(
|
|
208
|
-
(h) => o(h,
|
|
126
|
+
(h) => o(h, i.name)
|
|
209
127
|
))
|
|
210
128
|
return !1;
|
|
211
129
|
}
|
|
212
|
-
if (!
|
|
130
|
+
if (!t?.ignoreLayerRenderer && (await p.getRendererFields(e.renderer, e.fieldsIndex)).some((h) => o(h, i.name)))
|
|
213
131
|
return !1;
|
|
214
|
-
if (!
|
|
215
|
-
const d =
|
|
216
|
-
(
|
|
132
|
+
if (!t?.ignoreLayerLabelingInfo) {
|
|
133
|
+
const d = e.labelingInfo?.map(
|
|
134
|
+
(m) => m.labelExpressionInfo?.expression
|
|
217
135
|
);
|
|
218
|
-
if (d && ((await
|
|
136
|
+
if (d && ((await p.getExpressionFields(e, d)).some(($) => o($, i.name)) || await k(e, i, "layer")))
|
|
219
137
|
return !1;
|
|
220
138
|
}
|
|
221
|
-
if (!
|
|
139
|
+
if (!t?.ignoreLayerDefinitionExpression && e.definitionExpression && (await L.parseWhereClause(e.definitionExpression, e.fieldsIndex)).fieldNames.some((h) => o(h, i.name)) || await ee(e, i, t) || await re(e, i))
|
|
222
140
|
return !1;
|
|
223
|
-
if (await
|
|
141
|
+
if (await ie(e, i))
|
|
224
142
|
return await Promise.resolve(!1);
|
|
225
|
-
if (await
|
|
143
|
+
if (await te(e, i))
|
|
226
144
|
return await Promise.resolve(!1);
|
|
227
|
-
if (
|
|
145
|
+
if (_(r, e, i) || e.relationships?.map((d) => d.keyField)?.some((d) => o(d, i.name)))
|
|
228
146
|
return !1;
|
|
229
|
-
const
|
|
230
|
-
if (!
|
|
147
|
+
const U = P(n, n.portal.user), j = t?.userItemInfo?.userGroups ?? await E(e) ?? [], W = t?.userItemInfo?.itemGroups ?? await D(e) ?? [], B = V(j, W);
|
|
148
|
+
if (!U && !B)
|
|
231
149
|
return !1;
|
|
232
|
-
const
|
|
150
|
+
const v = t?.userItemInfo?.relatedItems ?? await C(n.id, n.portal, {
|
|
233
151
|
relationshipType: "Service2Service"
|
|
234
152
|
});
|
|
235
|
-
return !(
|
|
236
|
-
(
|
|
153
|
+
return !(v?.data?.relatedItems && v.data.relatedItems.some(
|
|
154
|
+
(m) => ["WMTS", "Map Service", "Vector Tile Service"].includes(m.type)
|
|
237
155
|
));
|
|
238
156
|
}
|
|
239
|
-
function
|
|
240
|
-
|
|
157
|
+
async function Z(r, e, i) {
|
|
158
|
+
const t = `${r.url}/${r.layerId}/fieldGroups`, s = i?.userItemInfo && "fieldGroups" in i.userItemInfo ? i.userItemInfo.fieldGroups : (await x(t, {
|
|
159
|
+
query: { f: "json" },
|
|
160
|
+
responseType: "json"
|
|
161
|
+
}))?.data?.fieldGroups;
|
|
162
|
+
return s ? s.some(
|
|
163
|
+
(a) => a.fields.some((f) => o(f, e))
|
|
164
|
+
) : !1;
|
|
165
|
+
}
|
|
166
|
+
function _(r, e, i) {
|
|
167
|
+
if (!r)
|
|
241
168
|
return !1;
|
|
242
|
-
const
|
|
243
|
-
if (
|
|
244
|
-
const s =
|
|
169
|
+
const t = r.map?.applicationProperties?.viewing?.search;
|
|
170
|
+
if (t) {
|
|
171
|
+
const s = t.layers?.find((n) => n.id === e.id);
|
|
245
172
|
if (s) {
|
|
246
173
|
const n = s?.field?.name;
|
|
247
174
|
if (n)
|
|
248
|
-
return o(n,
|
|
175
|
+
return o(n, i.name);
|
|
249
176
|
}
|
|
250
177
|
}
|
|
251
178
|
return !1;
|
|
252
179
|
}
|
|
253
|
-
async function
|
|
254
|
-
const
|
|
255
|
-
if (!
|
|
180
|
+
async function k(r, e, i) {
|
|
181
|
+
const t = i === "layer" ? r.labelingInfo?.filter((a) => b(a.where)) : r.sourceJSON?.drawingInfo?.labelingInfo?.filter((a) => b(a.where));
|
|
182
|
+
if (!t?.length)
|
|
256
183
|
return !1;
|
|
257
184
|
const s = [
|
|
258
185
|
...await Promise.all(
|
|
259
|
-
|
|
260
|
-
async (a) => await L.parseWhereClause(a.where,
|
|
186
|
+
t.map(
|
|
187
|
+
async (a) => await L.parseWhereClause(a.where, r.fieldsIndex)
|
|
261
188
|
)
|
|
262
189
|
)
|
|
263
190
|
];
|
|
264
191
|
let n = !1;
|
|
265
192
|
for (let a = 0; a < s.length; a++) {
|
|
266
|
-
const
|
|
267
|
-
if (!n &&
|
|
193
|
+
const f = s[a].fieldNames?.some((c) => o(c, e.name));
|
|
194
|
+
if (!n && f) {
|
|
268
195
|
n = !0;
|
|
269
196
|
break;
|
|
270
197
|
}
|
|
271
198
|
}
|
|
272
199
|
return await Promise.resolve(n);
|
|
273
200
|
}
|
|
274
|
-
async function
|
|
275
|
-
const
|
|
276
|
-
if (!
|
|
201
|
+
async function ee(r, e, i) {
|
|
202
|
+
const t = r.portalItem;
|
|
203
|
+
if (!t)
|
|
277
204
|
return !1;
|
|
278
|
-
const s = `${
|
|
205
|
+
const s = `${z(t.portal)}content/items/${t.id}/data`, a = (i?.userItemInfo?.itemData ?? await x(s, {
|
|
279
206
|
query: { f: "json" },
|
|
280
207
|
responseType: "json"
|
|
281
208
|
}))?.data;
|
|
282
209
|
if (!a)
|
|
283
210
|
return !1;
|
|
284
211
|
if (a?.layers) {
|
|
285
|
-
const c = a.layers.find((
|
|
286
|
-
if (!l && !
|
|
212
|
+
const c = a.layers.find((u) => u.id === r.layerId), l = c?.layerDefinition?.drawingInfo?.renderer, I = c?.layerDefinition?.featureReduction, F = c?.layerDefinition?.definitionExpression;
|
|
213
|
+
if (!l && !I && !F)
|
|
287
214
|
return !1;
|
|
288
|
-
if (!
|
|
289
|
-
const
|
|
290
|
-
if ((await
|
|
215
|
+
if (!i?.ignoreItemRenderer && l) {
|
|
216
|
+
const u = R.fromJSON(l);
|
|
217
|
+
if ((await p.getRendererFields(u, r.fieldsIndex)).some((g) => o(g, e.name)))
|
|
291
218
|
return !0;
|
|
292
219
|
}
|
|
293
|
-
if (!
|
|
220
|
+
if (!i?.ignoreItemFeatureReduction && I && await A(r, e, I) || F && (await L.parseWhereClause(F, r.fieldsIndex)).fieldNames.some((w) => o(w, e.name)))
|
|
294
221
|
return !0;
|
|
295
222
|
}
|
|
296
223
|
return !1;
|
|
297
224
|
}
|
|
298
|
-
async function
|
|
299
|
-
const
|
|
300
|
-
if (!
|
|
225
|
+
async function re(r, e) {
|
|
226
|
+
const i = r.sourceJSON, t = i?.drawingInfo?.renderer, s = i?.featureReduction;
|
|
227
|
+
if (!t && !s)
|
|
301
228
|
return !1;
|
|
302
|
-
if (
|
|
303
|
-
const n =
|
|
304
|
-
if ((await
|
|
229
|
+
if (t) {
|
|
230
|
+
const n = R.fromJSON(t);
|
|
231
|
+
if ((await p.getRendererFields(n, r.fieldsIndex)).some((c) => o(c, e.name)))
|
|
305
232
|
return !0;
|
|
306
233
|
}
|
|
307
|
-
return !!(s && await
|
|
234
|
+
return !!(s && await A(
|
|
235
|
+
r,
|
|
308
236
|
e,
|
|
309
|
-
t,
|
|
310
237
|
s
|
|
311
238
|
));
|
|
312
239
|
}
|
|
313
|
-
async function
|
|
314
|
-
const
|
|
315
|
-
if (!
|
|
240
|
+
async function ie(r, e) {
|
|
241
|
+
const t = r.sourceJSON?.drawingInfo?.labelingInfo;
|
|
242
|
+
if (!t)
|
|
316
243
|
return await Promise.resolve(!1);
|
|
317
|
-
const s =
|
|
244
|
+
const s = t?.map(
|
|
318
245
|
(n) => n.labelExpressionInfo?.expression
|
|
319
246
|
);
|
|
320
247
|
if (s) {
|
|
321
|
-
if ((await
|
|
248
|
+
if ((await p.getExpressionFields(r, s)).some((c) => o(c, e.name)))
|
|
322
249
|
return await Promise.resolve(!0);
|
|
323
|
-
if (await
|
|
250
|
+
if (await k(r, e, "service"))
|
|
324
251
|
return await Promise.resolve(!0);
|
|
325
252
|
}
|
|
326
253
|
return await Promise.resolve(!1);
|
|
327
254
|
}
|
|
328
|
-
async function
|
|
329
|
-
const
|
|
330
|
-
return
|
|
255
|
+
async function te(r, e) {
|
|
256
|
+
const t = r.sourceJSON?.definitionQuery;
|
|
257
|
+
return t ? (await L.parseWhereClause(t, r.fieldsIndex)).fieldNames.some((a) => o(a, e.name)) ? await Promise.resolve(!0) : await Promise.resolve(!1) : await Promise.resolve(!1);
|
|
331
258
|
}
|
|
332
|
-
async function
|
|
333
|
-
const
|
|
334
|
-
return await
|
|
335
|
-
(a) => o(a,
|
|
259
|
+
async function A(r, e, i) {
|
|
260
|
+
const t = i.type === "binning" ? Q.fromJSON(i) : q.fromJSON(i), s = /* @__PURE__ */ new Set();
|
|
261
|
+
return await p.collectFeatureReductionFields(s, r, t), !!Array.from(s).some(
|
|
262
|
+
(a) => o(a, e.name)
|
|
336
263
|
);
|
|
337
264
|
}
|
|
338
265
|
export {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
266
|
+
Je as a,
|
|
267
|
+
Re as b,
|
|
268
|
+
xe as c,
|
|
269
|
+
Oe as d,
|
|
270
|
+
ve as e,
|
|
271
|
+
be as g,
|
|
272
|
+
b as i,
|
|
273
|
+
X as s
|
|
347
274
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import i from "@arcgis/core/request.js";
|
|
2
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
|
+
v5.0.0-next.141 */
|
|
5
|
+
const m = (e) => e && !e.endsWith("/") ? `${e}/` : e;
|
|
6
|
+
function a(e) {
|
|
7
|
+
return m(e.restUrl);
|
|
8
|
+
}
|
|
9
|
+
function w(e, r) {
|
|
10
|
+
return u(e, r) || p(e, r);
|
|
11
|
+
}
|
|
12
|
+
function u(e, r) {
|
|
13
|
+
return e.owner === r.username;
|
|
14
|
+
}
|
|
15
|
+
function p(e, r) {
|
|
16
|
+
const t = e.owner, n = e.itemControl === "admin", s = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
|
|
17
|
+
return e.portal?.isPortal && !u(e, r) && n && t?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
|
|
18
|
+
!s.includes(t) ? !1 : n;
|
|
19
|
+
}
|
|
20
|
+
function y(e) {
|
|
21
|
+
return e.typeKeywords?.includes("Spatiotemporal");
|
|
22
|
+
}
|
|
23
|
+
function g(e) {
|
|
24
|
+
return e.typeKeywords?.includes("View Service");
|
|
25
|
+
}
|
|
26
|
+
function h(e) {
|
|
27
|
+
return e.typeKeywords?.includes("Hosted Service");
|
|
28
|
+
}
|
|
29
|
+
function v(e) {
|
|
30
|
+
return e.typeKeywords?.includes("Multi Services View");
|
|
31
|
+
}
|
|
32
|
+
function I(e) {
|
|
33
|
+
return e?.hasViews && !e.sourceSchemaChangesAllowed;
|
|
34
|
+
}
|
|
35
|
+
async function P(e) {
|
|
36
|
+
const r = e?.portalItem;
|
|
37
|
+
if (!r)
|
|
38
|
+
return await Promise.resolve(null);
|
|
39
|
+
const t = r.portal;
|
|
40
|
+
if (t?.user) {
|
|
41
|
+
const n = `${a(t)}community/users/${t.user.username}`;
|
|
42
|
+
return await i(n, {
|
|
43
|
+
query: {
|
|
44
|
+
f: "json",
|
|
45
|
+
token: r.portal.credential?.token
|
|
46
|
+
},
|
|
47
|
+
responseType: "json"
|
|
48
|
+
}).then(
|
|
49
|
+
async (s) => {
|
|
50
|
+
const o = s.data?.groups ?? [];
|
|
51
|
+
return await Promise.resolve(o);
|
|
52
|
+
},
|
|
53
|
+
async () => await Promise.reject(new Error("Failed to fetch user groups"))
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
return await Promise.resolve(null);
|
|
57
|
+
}
|
|
58
|
+
async function S(e) {
|
|
59
|
+
const r = e?.portalItem;
|
|
60
|
+
if (!r)
|
|
61
|
+
return await Promise.resolve(null);
|
|
62
|
+
const t = r.portal, n = `${a(t)}content/items/${r.id}/groups`;
|
|
63
|
+
return await i(n, {
|
|
64
|
+
query: {
|
|
65
|
+
f: "json",
|
|
66
|
+
token: r.portal.credential?.token
|
|
67
|
+
},
|
|
68
|
+
responseType: "json"
|
|
69
|
+
}).then(
|
|
70
|
+
async (s) => {
|
|
71
|
+
const o = s.data?.admin ?? [], c = s.data?.member ?? [], l = s.data?.other ?? [], d = [...o, ...c, ...l];
|
|
72
|
+
return await Promise.resolve(d);
|
|
73
|
+
},
|
|
74
|
+
async () => await Promise.reject(new Error("Failed to fetch item groups"))
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
async function j(e, r, { relationshipType: t, direction: n }) {
|
|
78
|
+
const s = `${a(r)}content/items/${e}/relatedItems`;
|
|
79
|
+
return await i(s, {
|
|
80
|
+
query: { f: "json", relationshipType: t, direction: n },
|
|
81
|
+
responseType: "json"
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function G(e, r) {
|
|
85
|
+
return e?.some(
|
|
86
|
+
(t) => r?.some(
|
|
87
|
+
(n) => t.id === n.id && t.capabilities.includes("updateitemcontrol")
|
|
88
|
+
)
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
g as a,
|
|
93
|
+
I as b,
|
|
94
|
+
y as c,
|
|
95
|
+
P as d,
|
|
96
|
+
S as e,
|
|
97
|
+
G as f,
|
|
98
|
+
a as g,
|
|
99
|
+
j as h,
|
|
100
|
+
h as i,
|
|
101
|
+
v as l,
|
|
102
|
+
w as u
|
|
103
|
+
};
|
|
@@ -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.141 */
|
|
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.141 */
|
|
6
6
|
async function f(s, t) {
|
|
7
7
|
const i = `${s}/portals/self/classification/classificationSchema`, e = {};
|
|
8
8
|
try {
|
|
@@ -59,7 +59,7 @@ async function v(s, t) {
|
|
|
59
59
|
const o = await n(e, { query: a, method: "post" });
|
|
60
60
|
r.result = o.data.success;
|
|
61
61
|
} catch (o) {
|
|
62
|
-
console.error(
|
|
62
|
+
console.error(o), r.error = o;
|
|
63
63
|
}
|
|
64
64
|
return r;
|
|
65
65
|
}
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -3,8 +3,8 @@ 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.
|
|
7
|
-
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/portal-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
6
|
+
v5.0.0-next.141 */
|
|
7
|
+
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/5.0.0-next/portal-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
8
8
|
t.t = s;
|
|
9
9
|
t.o = r;
|
|
10
10
|
t.c = a;
|
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.141 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|