@esri/solutions-components 5.1.0-next.165 → 5.1.0-next.167
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/{S37TPZAO.js → 2LCG2XWX.js} +1 -1
- package/dist/cdn/2MCOUOTQ.js +2 -0
- package/dist/cdn/{MOSQBUUZ.js → 4D46WTPB.js} +1 -1
- package/dist/cdn/4L7TJNAM.js +43 -0
- package/dist/cdn/{OBCXHY24.js → 6LN2ZRAZ.js} +1 -1
- package/dist/cdn/{EUI6UDCN.js → 6WPQPRJ5.js} +8 -2
- package/dist/cdn/{GVMTSUDH.js → 7P57UVVG.js} +1 -1
- package/dist/cdn/{5W7G3TSG.js → 7X2SPNNK.js} +21 -19
- package/dist/cdn/BYOO7TWU.js +2 -0
- package/dist/cdn/{MFFM74RG.js → CVHZAZLS.js} +1 -1
- package/dist/cdn/DFHULDJT.js +3 -0
- package/dist/cdn/{JFPR5QIQ.js → DGGIENYR.js} +1 -1
- package/dist/cdn/{HDMAFAEM.js → DSJRQHKW.js} +1 -1
- package/dist/cdn/{4HRGPGDM.js → EBAOA6CS.js} +1 -1
- package/dist/cdn/{P666D4WT.js → F5463ORT.js} +1 -1
- package/dist/cdn/{FMPY32BG.js → FK6Q2LYR.js} +1 -1
- package/dist/cdn/{C4F2OOUL.js → G2H3X6NS.js} +1 -1
- package/dist/cdn/{3UCDO65S.js → GDUCH242.js} +1 -1
- package/dist/cdn/{ENXQ33P7.js → HGOH5KSX.js} +1 -1
- package/dist/cdn/{VL2NVCIB.js → HLCHUP24.js} +3 -3
- package/dist/cdn/{OZ4IYASP.js → HOCCKT72.js} +1 -1
- package/dist/cdn/{WXDMML76.js → HUYLWWWJ.js} +1 -1
- package/dist/cdn/{CU2JLCTZ.js → I6EH3H6Z.js} +1 -1
- package/dist/cdn/{YW2WMW6B.js → IP7IUAM5.js} +1 -1
- package/dist/cdn/{OUMIC7G7.js → JCGZXASG.js} +1 -1
- package/dist/cdn/JJLYSRRX.js +2 -0
- package/dist/cdn/{7VY3RI7C.js → JS2MTHHP.js} +1 -1
- package/dist/cdn/{6PZSOVYB.js → K6O33P5T.js} +1 -1
- package/dist/cdn/{ITCC5G26.js → KWAQEZ3T.js} +2 -2
- package/dist/cdn/{AAUM57XI.js → LQ6PZESP.js} +1 -1
- package/dist/cdn/{2D6HFQD5.js → LUIN5XSX.js} +1 -1
- package/dist/cdn/LWQ4SBU2.js +2 -0
- package/dist/cdn/{I4PBOBUM.js → LXGPZJIZ.js} +1 -1
- package/dist/cdn/{QYCERRRZ.js → LXNQ32NZ.js} +1 -1
- package/dist/cdn/{SNZRQPXI.js → MFVXFKKM.js} +1 -1
- package/dist/cdn/{25HVM373.js → MVDJOENC.js} +1 -1
- package/dist/cdn/{354D2K6F.js → MXF4BYLT.js} +1 -1
- package/dist/cdn/{A2A3RFJ6.js → OTQLLNFG.js} +1 -1
- package/dist/cdn/{W5TNQMAJ.js → PM7QF66M.js} +1 -1
- package/dist/cdn/{3SMHMC4L.js → QKSC4XFL.js} +1 -1
- package/dist/cdn/{UDPMO6YN.js → ROGRXRFI.js} +1 -1
- package/dist/cdn/{3J5ZSELO.js → RWHR4UZT.js} +1 -1
- package/dist/cdn/{Y3GFBLXF.js → S5RB3GMN.js} +1 -1
- package/dist/cdn/SHQFXQEI.js +2 -0
- package/dist/cdn/{SHEDDVHQ.js → T5R4UF7Y.js} +1 -1
- package/dist/cdn/{JFMNVOWH.js → TFO2AK45.js} +1 -1
- package/dist/cdn/{22BT2PBE.js → TSDKMOES.js} +12 -10
- package/dist/cdn/U76GHEKJ.js +71 -0
- package/dist/cdn/UIZL3C3H.js +2 -0
- package/dist/cdn/{QH6PUU3Q.js → UOQSRV3X.js} +3 -8
- package/dist/cdn/{ATEW4U4A.js → V6N4G75E.js} +1 -1
- package/dist/cdn/{26LDC3OX.js → VJBL5ZUX.js} +1 -1
- package/dist/cdn/{6WVYNWVR.js → VLBNRURV.js} +1 -1
- package/dist/cdn/{VBJJQPZT.js → VLF76E2L.js} +1 -1
- package/dist/cdn/{CV4B2O7J.js → VY364MR6.js} +1 -1
- package/dist/cdn/{ON4EBR25.js → WKRSOM6J.js} +1 -1
- package/dist/cdn/{VN3AKGAY.js → X6TQNCB3.js} +1 -1
- package/dist/cdn/Y2MAVMNV.js +2 -0
- package/dist/cdn/{67CEWYTY.js → YPBSKBT2.js} +1 -1
- package/dist/cdn/YVWFYZTI.js +4 -0
- package/dist/cdn/{YLIWN2J2.js → YWX2U5OD.js} +1 -1
- package/dist/cdn/ZSTC2DJY.js +2 -0
- package/dist/cdn/{HRQVJBRJ.js → ZWL4JFKS.js} +1 -1
- package/dist/cdn/{DVPYGOBV.js → ZZOMKTFL.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/assessBuildRequest.js +3 -8
- package/dist/chunks/assessUpdateRequest.js +21 -19
- package/dist/chunks/assistantResponse.js +23 -29
- package/dist/chunks/converter.js +75 -44
- package/dist/chunks/interfaces.js +32 -29
- package/dist/chunks/solution-builder-assistant.js +12 -14
- package/dist/chunks/transformQuery.js +1 -1
- package/dist/chunks/updateDesign.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +251 -231
- package/dist/components/card-manager/customElement.d.ts +0 -3
- package/dist/components/card-manager/customElement.js +6 -6
- package/dist/components/create-feature/customElement.js +17 -6
- package/dist/components/crowdsource-manager/customElement.js +3 -3
- package/dist/components/layer-table/customElement.js +13 -13
- package/dist/components/solution-configure-titles/customElement.js +2 -1
- package/dist/components/solution-delete-dialog/customElement.js +2 -1
- package/dist/components/solution-deployed-card-panel/customElement.js +8 -4
- package/dist/components/solutions-deploy-app/customElement.js +15 -15
- package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/types/lumina.d.ts +0 -1
- package/dist/types/preact.d.ts +0 -1
- package/dist/types/react.d.ts +0 -1
- package/dist/types/stencil.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cdn/62GTPPV5.js +0 -2
- package/dist/cdn/632J5NXN.js +0 -49
- package/dist/cdn/AYHTQTVS.js +0 -2
- package/dist/cdn/HAMYUUYZ.js +0 -2
- package/dist/cdn/HQCHD3FH.js +0 -2
- package/dist/cdn/OAUHQK3Y.js +0 -54
- package/dist/cdn/PGTLLFW6.js +0 -3
- package/dist/cdn/SIODWUWX.js +0 -2
- package/dist/cdn/SYISCXZY.js +0 -4
- package/dist/cdn/U27263JW.js +0 -2
- package/dist/cdn/U2FC3BET.js +0 -2
- package/dist/cdn/YEDC2OLI.js +0 -2
package/dist/chunks/converter.js
CHANGED
|
@@ -7,15 +7,15 @@ const p = [
|
|
|
7
7
|
{ name: "green", fill: [90, 147, 89], outline: [51, 128, 51] },
|
|
8
8
|
{ name: "black", fill: [89, 89, 89], outline: [50, 50, 50] }
|
|
9
9
|
];
|
|
10
|
-
function f(
|
|
11
|
-
const e = (
|
|
10
|
+
function f(s = 0) {
|
|
11
|
+
const e = (s % p.length + p.length) % p.length, t = p[e];
|
|
12
12
|
return {
|
|
13
13
|
fill: [...t.fill],
|
|
14
14
|
outline: [...t.outline]
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
function g(
|
|
18
|
-
const { fill: e, outline: t } = f(
|
|
17
|
+
function g(s = 0) {
|
|
18
|
+
const { fill: e, outline: t } = f(s), i = [...e, 153], r = [...t, 255];
|
|
19
19
|
return {
|
|
20
20
|
renderer: {
|
|
21
21
|
type: "simple",
|
|
@@ -431,8 +431,8 @@ function g(n = 0) {
|
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
const { fill: e } = f(
|
|
434
|
+
function F(s = 0) {
|
|
435
|
+
const { fill: e } = f(s);
|
|
436
436
|
return {
|
|
437
437
|
renderer: {
|
|
438
438
|
type: "simple",
|
|
@@ -479,8 +479,8 @@ function L(n = 0) {
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
const { fill: e, outline: t } = f(
|
|
482
|
+
function L(s = 0) {
|
|
483
|
+
const { fill: e, outline: t } = f(s), i = [...e, 153];
|
|
484
484
|
return {
|
|
485
485
|
renderer: {
|
|
486
486
|
type: "simple",
|
|
@@ -571,7 +571,7 @@ class y {
|
|
|
571
571
|
description: e?.description,
|
|
572
572
|
tags: e?.tags,
|
|
573
573
|
strings: t
|
|
574
|
-
}, r = this.structure?.buildSolution?.items,
|
|
574
|
+
}, r = this.structure?.buildSolution?.items, n = Object.entries(r || {}).map(([o, l]) => ({
|
|
575
575
|
id: o,
|
|
576
576
|
title: l.title,
|
|
577
577
|
description: l.description,
|
|
@@ -615,7 +615,7 @@ class y {
|
|
|
615
615
|
}
|
|
616
616
|
return {
|
|
617
617
|
solution: i,
|
|
618
|
-
items:
|
|
618
|
+
items: n,
|
|
619
619
|
featureLayer: a ?? {
|
|
620
620
|
itemId: "",
|
|
621
621
|
addLayers: !1,
|
|
@@ -661,7 +661,7 @@ class y {
|
|
|
661
661
|
const i = t.strings;
|
|
662
662
|
for (const o of e.solution.strings)
|
|
663
663
|
i[o.key] && (i[o.key].value = o.value);
|
|
664
|
-
const r = {},
|
|
664
|
+
const r = {}, n = /* @__PURE__ */ new Set(), a = this.buildSolution.items;
|
|
665
665
|
for (const o of e.items) {
|
|
666
666
|
const l = a[o.id];
|
|
667
667
|
if (l)
|
|
@@ -671,9 +671,9 @@ class y {
|
|
|
671
671
|
this.applyFeatureService(l, o.id, !1);
|
|
672
672
|
const u = I(l);
|
|
673
673
|
l.data = u, r[o.id] = u;
|
|
674
|
-
} else l.type === "Feature Layer (hosted, view)" && (this.applyFeatureService(l, o.id, !0),
|
|
674
|
+
} else l.type === "Feature Layer (hosted, view)" && (this.applyFeatureService(l, o.id, !0), n.add(o.id));
|
|
675
675
|
}
|
|
676
|
-
for (const o of
|
|
676
|
+
for (const o of n) {
|
|
677
677
|
const l = a[o];
|
|
678
678
|
l.data = r[l.source];
|
|
679
679
|
}
|
|
@@ -683,16 +683,16 @@ class y {
|
|
|
683
683
|
if (!e.layerSources)
|
|
684
684
|
return;
|
|
685
685
|
for (const r of [...e.layers || [], ...e.tables || []]) {
|
|
686
|
-
const [
|
|
686
|
+
const [n, a] = this.extractIdAndLayerId(r.url), o = this.llmFsLookup[n]?.[a];
|
|
687
687
|
o && (r.title = o.name);
|
|
688
688
|
}
|
|
689
689
|
if (!(e.layers?.length === 0 && e.tables?.length === 0))
|
|
690
690
|
return;
|
|
691
691
|
const i = crypto.randomUUID().replace(/-/gu, "").substring(0, 10);
|
|
692
692
|
for (const r of e.layerSources) {
|
|
693
|
-
const
|
|
694
|
-
if (
|
|
695
|
-
for (const [a, o] of Object.entries(
|
|
693
|
+
const n = this.llmFsLookup[r];
|
|
694
|
+
if (n)
|
|
695
|
+
for (const [a, o] of Object.entries(n)) {
|
|
696
696
|
const l = Number(a), u = o.type.toLowerCase() === "table", d = {
|
|
697
697
|
id: `${i}-layer-${l}`,
|
|
698
698
|
title: o.name,
|
|
@@ -708,12 +708,12 @@ class y {
|
|
|
708
708
|
return [i, r];
|
|
709
709
|
}
|
|
710
710
|
applyFeatureService(e, t, i = !1) {
|
|
711
|
-
const r = e.source || t,
|
|
711
|
+
const r = e.source || t, n = this.llmFsLookup[r];
|
|
712
712
|
for (const o of [...e.service.layers, ...e.service.tables])
|
|
713
|
-
this.applyLayer(o,
|
|
714
|
-
e.addLayers && !i && this.addNewLayers(e,
|
|
713
|
+
this.applyLayer(o, n, i);
|
|
714
|
+
e.addLayers && !i && this.addNewLayers(e, n);
|
|
715
715
|
const a = e.service.layers?.length === 0 && e.service.tables?.length === 0;
|
|
716
|
-
i && a && this.addNewViewLayers(e, t,
|
|
716
|
+
i && a && this.addNewViewLayers(e, t, n);
|
|
717
717
|
}
|
|
718
718
|
addNewLayers(e, t) {
|
|
719
719
|
for (const [i, r] of Object.entries(t)) {
|
|
@@ -723,8 +723,8 @@ class y {
|
|
|
723
723
|
}
|
|
724
724
|
addNewViewLayers(e, t, i) {
|
|
725
725
|
const r = e.source;
|
|
726
|
-
for (const [
|
|
727
|
-
const o = Number(
|
|
726
|
+
for (const [n, a] of Object.entries(i)) {
|
|
727
|
+
const o = Number(n), l = a.type.toLowerCase() === "table", u = {
|
|
728
728
|
adminLayerInfo: {
|
|
729
729
|
geometryField: l ? null : { name: "Shape" },
|
|
730
730
|
viewLayerDefinition: {
|
|
@@ -745,14 +745,14 @@ class y {
|
|
|
745
745
|
const r = t[e.id];
|
|
746
746
|
if (!r || (e.name = r.name, e.description = r.description || "", i))
|
|
747
747
|
return;
|
|
748
|
-
const
|
|
749
|
-
|
|
748
|
+
const n = y.typeLookup[r.type.toLowerCase()] || r.type;
|
|
749
|
+
n.toLowerCase() === "table" ? e.type = n : e.geometryType = n, e.editFieldsInfo = this.editFieldsInfo(), e.globalIdField = "globalid", e.objectIdField = "objectid", e.uniqueIdField = { name: "objectid", isSystemMaintained: !0 }, e.hasAttachments = !0, this.updateRelationships(e, t), this.updateFields(e, r), this.updateTemplates(e), this.updateDrawingInfo(e);
|
|
750
750
|
}
|
|
751
751
|
updateRelationships(e, t) {
|
|
752
752
|
const i = e.relationships || [];
|
|
753
753
|
for (const r of i) {
|
|
754
|
-
const
|
|
755
|
-
|
|
754
|
+
const n = t[r.relatedTableId];
|
|
755
|
+
n && (r.name = n.name);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
updateFields(e, t) {
|
|
@@ -761,7 +761,7 @@ class y {
|
|
|
761
761
|
[!0, t.requiredFields],
|
|
762
762
|
[!0, t.systemFields]
|
|
763
763
|
];
|
|
764
|
-
for (const [
|
|
764
|
+
for (const [n, a] of r)
|
|
765
765
|
if (Array.isArray(a))
|
|
766
766
|
for (const o of a) {
|
|
767
767
|
const l = {
|
|
@@ -770,7 +770,7 @@ class y {
|
|
|
770
770
|
type: y.fieldTypeToEsri[o.type] || o.type,
|
|
771
771
|
description: JSON.stringify({ value: o.description, fieldValueType: "" }, null, 0),
|
|
772
772
|
domain: this.createDomain(o.choiceList, o.name),
|
|
773
|
-
required:
|
|
773
|
+
required: n
|
|
774
774
|
};
|
|
775
775
|
o.type?.toLowerCase() === "string" && (l.length = o.length ?? 256), (o.type === "oid" || o.type === "globalid") && (l.editable = !1, l.nullable = !1), i.push(l);
|
|
776
776
|
}
|
|
@@ -790,9 +790,9 @@ class y {
|
|
|
790
790
|
if (e.geometryType === "esriGeometryPoint")
|
|
791
791
|
e.drawingInfo = g(this.nextRendererColorIndex(e.geometryType));
|
|
792
792
|
else if (e.geometryType === "esriGeometryPolyline")
|
|
793
|
-
e.drawingInfo = L(this.nextRendererColorIndex(e.geometryType));
|
|
794
|
-
else if (e.geometryType === "esriGeometryPolygon")
|
|
795
793
|
e.drawingInfo = F(this.nextRendererColorIndex(e.geometryType));
|
|
794
|
+
else if (e.geometryType === "esriGeometryPolygon")
|
|
795
|
+
e.drawingInfo = L(this.nextRendererColorIndex(e.geometryType));
|
|
796
796
|
else
|
|
797
797
|
return;
|
|
798
798
|
}
|
|
@@ -823,8 +823,8 @@ class y {
|
|
|
823
823
|
};
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
function I(
|
|
827
|
-
const e =
|
|
826
|
+
function I(s) {
|
|
827
|
+
const e = s.service, t = {
|
|
828
828
|
layers: [],
|
|
829
829
|
tables: []
|
|
830
830
|
};
|
|
@@ -843,9 +843,40 @@ function I(n) {
|
|
|
843
843
|
});
|
|
844
844
|
return t;
|
|
845
845
|
}
|
|
846
|
-
function h(
|
|
846
|
+
function h(s) {
|
|
847
847
|
const e = [];
|
|
848
|
-
|
|
848
|
+
e.push({
|
|
849
|
+
label: "{{params.buildSolution.solution.strings.attachments.value||Attachments}}",
|
|
850
|
+
type: "attachment",
|
|
851
|
+
allowUserRename: !0,
|
|
852
|
+
attachmentKeyword: "general",
|
|
853
|
+
displayFilename: !1,
|
|
854
|
+
editableExpression: "expr/system/true",
|
|
855
|
+
filenameExpression: 'StandardizeFilename(`${$formElement.attachmentKeyword}_${Text(Now(), "YMMDDHHmmss")}`)',
|
|
856
|
+
inputType: {
|
|
857
|
+
type: "attachment",
|
|
858
|
+
attachmentAssociationType: "any",
|
|
859
|
+
inputTypes: [
|
|
860
|
+
{
|
|
861
|
+
type: "audio",
|
|
862
|
+
inputMethod: "any"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
type: "document"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
type: "image",
|
|
869
|
+
inputMethod: "any"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
type: "video",
|
|
873
|
+
inputMethod: "any"
|
|
874
|
+
}
|
|
875
|
+
]
|
|
876
|
+
},
|
|
877
|
+
useOriginalFilename: !0
|
|
878
|
+
});
|
|
879
|
+
for (const i of s.fields)
|
|
849
880
|
i.required || e.push({
|
|
850
881
|
label: i.alias,
|
|
851
882
|
type: "field",
|
|
@@ -853,7 +884,7 @@ function h(n) {
|
|
|
853
884
|
fieldName: i.name,
|
|
854
885
|
inputType: S(i.type, i.domain, i.length)
|
|
855
886
|
});
|
|
856
|
-
const t =
|
|
887
|
+
const t = s.relationships || [];
|
|
857
888
|
for (const i of t)
|
|
858
889
|
e.push({
|
|
859
890
|
description: "",
|
|
@@ -871,12 +902,12 @@ function h(n) {
|
|
|
871
902
|
{ expression: "false", name: "expr/system/false", returnType: "boolean", title: "False" },
|
|
872
903
|
{ expression: "true", name: "expr/system/true", returnType: "boolean", title: "True" }
|
|
873
904
|
],
|
|
874
|
-
title:
|
|
905
|
+
title: s.name
|
|
875
906
|
};
|
|
876
907
|
}
|
|
877
|
-
function b(
|
|
908
|
+
function b(s) {
|
|
878
909
|
const e = [], t = [];
|
|
879
|
-
for (const r of
|
|
910
|
+
for (const r of s.fields)
|
|
880
911
|
r.required || t.push({
|
|
881
912
|
fieldName: r.name,
|
|
882
913
|
isEditable: !0,
|
|
@@ -888,8 +919,8 @@ function b(n) {
|
|
|
888
919
|
description: "",
|
|
889
920
|
fieldInfos: t
|
|
890
921
|
});
|
|
891
|
-
const i =
|
|
892
|
-
if (i.length &&
|
|
922
|
+
const i = s.relationships || [];
|
|
923
|
+
if (i.length && s.type !== "Table")
|
|
893
924
|
for (const r of i)
|
|
894
925
|
e.push({
|
|
895
926
|
type: "relationship",
|
|
@@ -907,11 +938,11 @@ function b(n) {
|
|
|
907
938
|
}), {
|
|
908
939
|
popupElements: e,
|
|
909
940
|
showLastEditInfo: !1,
|
|
910
|
-
title:
|
|
941
|
+
title: s.name
|
|
911
942
|
};
|
|
912
943
|
}
|
|
913
|
-
function S(
|
|
914
|
-
return
|
|
944
|
+
function S(s, e, t) {
|
|
945
|
+
return s === "esriFieldTypeString" && !e && t && t > 256 ? { type: "text-area", maxLength: t } : s === "esriFieldTypeString" && !e ? { type: "text-box", maxLength: t || 256, minLength: 0 } : s === "esriFieldTypeString" && e ? { type: "combo-box", showNoValueOption: !1 } : ["esriFieldTypeInteger", "esriFieldTypeDouble"].includes(s) ? { type: "text-box", minLength: 0 } : s === "esriFieldTypeDate" ? { type: "datetime-picker", includeTime: !1 } : { type: "text-box", maxLength: t || 256, minLength: 0 };
|
|
915
946
|
}
|
|
916
947
|
export {
|
|
917
948
|
y as C
|
|
@@ -5,7 +5,7 @@ import { css as R, html as r, svg as k } from "lit";
|
|
|
5
5
|
import { u as C } from "./useT9n.js";
|
|
6
6
|
import { LitElement as L, createEvent as N, nothing as u, safeClassMap as M } from "@arcgis/lumina";
|
|
7
7
|
import { useContextConsumer as _ } from "@arcgis/lumina/context";
|
|
8
|
-
import { c as
|
|
8
|
+
import { c as x, i as $ } from "./deployAppContexts.js";
|
|
9
9
|
import "@arcgis/lumina/controllers";
|
|
10
10
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
11
11
|
import "@arcgis/core/identity/OAuthInfo.js";
|
|
@@ -15,9 +15,9 @@ import "@arcgis/core/geometry/Extent.js";
|
|
|
15
15
|
import "@arcgis/core/geometry/SpatialReference.js";
|
|
16
16
|
import "@arcgis/core/geometry/operators/projectOperator.js";
|
|
17
17
|
import "@arcgis/core/geometry/operators/support/geographicTransformationUtils.js";
|
|
18
|
-
import { v as
|
|
19
|
-
import { createRef as
|
|
20
|
-
const G = R`calcite-card{height:100%;padding-bottom:var(--calcite-spacing-base)}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:content-box;cursor:pointer}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block;background-color:var(--calcite-color-surface-2)}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.width-full{width:100%}.deployed-label-override{--calcite-label-text-color: var(--calcite-color-text-3);--calcite-label-margin-bottom: var(--calcite-spacing-none)}.svg-color{fill:var(--calcite-color-text-3)}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}.padding-bottom-1-2{padding-bottom:var(--calcite-spacing-sm)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.align-items-center{align-items:center}.font-weight-400,.font-weight-normal{font-weight:400}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.icon-brand-color{--calcite-icon-color: var(--calcite-color-brand)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:var(--calcite-spacing-sm);margin-bottom:.7rem}.header-content{width:100%;min-width:0}.description-wrap{white-space:normal;overflow-wrap:break-word;word-break:break-word;overflow:visible;padding-inline-end:var(--calcite-spacing-lg)}.header-title-label{display:block;flex:1 1 auto;min-width:0;max-width:100%}.header-title-ellipsis{display:
|
|
18
|
+
import { v as P, l as h, i as U, j as b } from "./helpers.js";
|
|
19
|
+
import { createRef as w, ref as y } from "lit-html/directives/ref.js";
|
|
20
|
+
const G = R`calcite-card{height:100%;padding-bottom:var(--calcite-spacing-base)}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:content-box;cursor:pointer}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block;background-color:var(--calcite-color-surface-2)}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.width-full{width:100%}.deployed-label-override{--calcite-label-text-color: var(--calcite-color-text-3);--calcite-label-margin-bottom: var(--calcite-spacing-none)}.svg-color{fill:var(--calcite-color-text-3)}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}.padding-bottom-1-2{padding-bottom:var(--calcite-spacing-sm)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.align-items-center{align-items:center}.font-weight-400,.font-weight-normal{font-weight:400}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.icon-brand-color{--calcite-icon-color: var(--calcite-color-brand)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:var(--calcite-spacing-sm);margin-bottom:.7rem}.header-content{width:100%;min-width:0}.description-wrap{white-space:normal;overflow-wrap:break-word;word-break:break-word;overflow:visible;padding-inline-end:var(--calcite-spacing-lg);width:100%;box-sizing:border-box}.header-title-label{display:block;flex:1 1 auto;min-width:0;max-width:100%}.header-title-ellipsis{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal;padding-inline-end:var(--calcite-spacing-lg)}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.justify-content-space-between{justify-content:space-between}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.cursor-default{cursor:default}.chipClass{padding-bottom:var(--calcite-spacing-sm)!important}`;
|
|
21
21
|
async function B(i, e) {
|
|
22
22
|
const t = await f.getItemDataAsJson(i, e);
|
|
23
23
|
if (!t)
|
|
@@ -36,14 +36,14 @@ async function B(i, e) {
|
|
|
36
36
|
}));
|
|
37
37
|
else {
|
|
38
38
|
const n = t.templates.map((o) => o.type === "Group" ? f.getGroupBase(o.itemId, e) : f.getItemBase(o.itemId, e));
|
|
39
|
-
a = (await Promise.allSettled(n)).filter((o) => o.status === "fulfilled").map((o) => o.value).map((o,
|
|
39
|
+
a = (await Promise.allSettled(n)).filter((o) => o.status === "fulfilled").map((o) => o.value).map((o, m) => {
|
|
40
40
|
const p = typeof o.type > "u" ? "group" : "item";
|
|
41
41
|
return {
|
|
42
42
|
id: o.id,
|
|
43
43
|
title: o.title,
|
|
44
44
|
type: o.type ?? "Group",
|
|
45
45
|
typeKeywords: o.typeKeywords,
|
|
46
|
-
dependencies: t.templates[
|
|
46
|
+
dependencies: t.templates[m].dependencies,
|
|
47
47
|
snippet: o.snippet,
|
|
48
48
|
url: `${s}/home/${p}.html?id=${o.id}`,
|
|
49
49
|
owner: o.owner
|
|
@@ -53,7 +53,7 @@ async function B(i, e) {
|
|
|
53
53
|
return a;
|
|
54
54
|
}
|
|
55
55
|
function Oe(i, e, t) {
|
|
56
|
-
const s = i.templates.map((
|
|
56
|
+
const s = i.templates.map((m) => m.type), a = [];
|
|
57
57
|
a.push(j), s.indexOf("Group") >= 0 && (a.push(E), a.push(O)), s.indexOf("Feature Service") >= 0 && a.push(A);
|
|
58
58
|
const n = s.indexOf("Feed") > -1;
|
|
59
59
|
n && a.push(J);
|
|
@@ -62,7 +62,7 @@ function Oe(i, e, t) {
|
|
|
62
62
|
const d = s.indexOf("Real Time Analytic") > -1;
|
|
63
63
|
d && a.push(Z), (n || c || d) && a.push(oe), s.indexOf("Workflow") > -1 && (a.push(E), a.push(A), a.push(O), a.push(ne)), s.indexOf("Geoprocessing Service") > -1 && (a.push(Q), t.IsEnterprisePortal && a.push(te));
|
|
64
64
|
const o = i.templates.reduce(
|
|
65
|
-
(
|
|
65
|
+
(m, p) => m.concat(p.item.typeKeywords || []),
|
|
66
66
|
[]
|
|
67
67
|
);
|
|
68
68
|
return F(a, o, t), H(a, e), K(a, i), a;
|
|
@@ -104,25 +104,25 @@ function Se(i, e) {
|
|
|
104
104
|
l.WORKFLOW,
|
|
105
105
|
l.TRACKINGBASE
|
|
106
106
|
];
|
|
107
|
-
let a =
|
|
107
|
+
let a = g(
|
|
108
108
|
i,
|
|
109
109
|
e,
|
|
110
110
|
l.VELOCITY
|
|
111
111
|
);
|
|
112
112
|
a && t.leadingMessages.push(a);
|
|
113
|
-
let n =
|
|
113
|
+
let n = g(
|
|
114
114
|
i,
|
|
115
115
|
e,
|
|
116
116
|
l.NOTEBOOK
|
|
117
117
|
);
|
|
118
118
|
n && t.leadingMessages.push(n);
|
|
119
|
-
let c =
|
|
119
|
+
let c = g(
|
|
120
120
|
i,
|
|
121
121
|
e,
|
|
122
122
|
l.HUBPREMIUM
|
|
123
123
|
);
|
|
124
124
|
c && t.leadingMessages.push(c);
|
|
125
|
-
let d =
|
|
125
|
+
let d = g(
|
|
126
126
|
i,
|
|
127
127
|
e,
|
|
128
128
|
l.WORKFLOW
|
|
@@ -132,7 +132,7 @@ function Se(i, e) {
|
|
|
132
132
|
I(i, p)
|
|
133
133
|
);
|
|
134
134
|
});
|
|
135
|
-
let o =
|
|
135
|
+
let o = g(
|
|
136
136
|
i,
|
|
137
137
|
e,
|
|
138
138
|
l.TRACKINGBASE
|
|
@@ -141,7 +141,7 @@ function Se(i, e) {
|
|
|
141
141
|
i.missingPrivilegesPopup.suggestedProblemRemedyMessage
|
|
142
142
|
), t;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function g(i, e, t) {
|
|
145
145
|
return e.filter((a) => a.includes(t)).length > 0 ? I(i, t) : "";
|
|
146
146
|
}
|
|
147
147
|
function I(i, e) {
|
|
@@ -200,7 +200,7 @@ function I(i, e) {
|
|
|
200
200
|
return s;
|
|
201
201
|
}
|
|
202
202
|
function Ie(i, e) {
|
|
203
|
-
const t = D(e), s =
|
|
203
|
+
const t = D(e), s = P([{ k: "id", v: i }]) || "";
|
|
204
204
|
return t ? `${t}/home/item.html${s}` : "";
|
|
205
205
|
}
|
|
206
206
|
function De(i, e, t, s) {
|
|
@@ -217,13 +217,13 @@ function W(i, e) {
|
|
|
217
217
|
class z extends L {
|
|
218
218
|
constructor() {
|
|
219
219
|
super(), this.deployedDate = "", this.description = "", this.diagramKey = "", this.heading = "", this.itemId = "", this.owner = "", this.thumbnail = "", this.updateAvailable = !1, this.templateInfos = [], this._isDeleteOpen = !1, this._isDiagramOpen = !1, this.isMobile = !1, this.templateInfoGraph = [], this._configureTitlesOpen = !1, this._thumbnailUrl = "", this._translations = C({ name: "solution-deployed-card", blocking: !0 }), this._configContextConsumer = _({
|
|
220
|
-
context:
|
|
220
|
+
context: x,
|
|
221
221
|
subscribe: !0,
|
|
222
222
|
callback: async (e) => {
|
|
223
223
|
e && (this._isOrgAdmin = S(e.authentication), this._thumbnailUrl = `${this.thumbnail}&token=${e.userSession?.token}`);
|
|
224
224
|
}
|
|
225
|
-
}), this._deleteDialogRef =
|
|
226
|
-
context:
|
|
225
|
+
}), this._deleteDialogRef = w(), this._diagramDialogRef = w(), this._isOrgAdmin = !1, this._isMobileContextConsumer = _({
|
|
226
|
+
context: $,
|
|
227
227
|
subscribe: !0,
|
|
228
228
|
callback: (e) => this.isMobile = e
|
|
229
229
|
}), this.deployedCardSelected = N(), this.listenOn(window, "sessionRefreshed", (e) => {
|
|
@@ -281,12 +281,12 @@ class z extends L {
|
|
|
281
281
|
_renderDeleteDialog() {
|
|
282
282
|
return this._isDeleteOpen ? r`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${(e) => {
|
|
283
283
|
this._isDeleteOpen = e.detail;
|
|
284
|
-
}} .open=${this._isDeleteOpen} source="Card Dropdown" ${
|
|
284
|
+
}} .open=${this._isDeleteOpen} source="Card Dropdown" ${y(this._deleteDialogRef)}></solution-delete-dialog>` : "";
|
|
285
285
|
}
|
|
286
286
|
_renderDiagramDialog() {
|
|
287
287
|
return this._isDiagramOpen ? r`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramTitle.replace("{{solution}}", this.card?.title ?? "") ?? u} modal .open=${this._isDiagramOpen} @calciteDialogClose=${() => {
|
|
288
288
|
this._isDiagramOpen = !1;
|
|
289
|
-
}} outside-close-disabled scale=m width=l ${
|
|
289
|
+
}} outside-close-disabled scale=m width=l ${y(this._diagramDialogRef)}><solution-item-diagram .diagramKey=${this.diagramKey} .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>` : "";
|
|
290
290
|
}
|
|
291
291
|
_renderConfigureTitlesDialog() {
|
|
292
292
|
return this._configureTitlesOpen ? r`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async () => {
|
|
@@ -310,7 +310,8 @@ class z extends L {
|
|
|
310
310
|
category: T.DEPLOYMENTS,
|
|
311
311
|
action: "View Diagram",
|
|
312
312
|
dimensions: [
|
|
313
|
-
|
|
313
|
+
"",
|
|
314
|
+
// Remove to prevent PII from being logged
|
|
314
315
|
this.card.deployCommonId || "",
|
|
315
316
|
this.card.deployVersion || "",
|
|
316
317
|
"Dropdown",
|
|
@@ -323,7 +324,8 @@ class z extends L {
|
|
|
323
324
|
category: T.DEPLOYMENTS,
|
|
324
325
|
action: "Open Help",
|
|
325
326
|
dimensions: [
|
|
326
|
-
|
|
327
|
+
"",
|
|
328
|
+
// Remove to prevent PII from being logged
|
|
327
329
|
this.card?.deployCommonId || "",
|
|
328
330
|
this.card?.deployVersion || "",
|
|
329
331
|
"Card Dropdown",
|
|
@@ -336,7 +338,8 @@ class z extends L {
|
|
|
336
338
|
category: T.DEPLOYMENTS,
|
|
337
339
|
action: "Open Item Details",
|
|
338
340
|
dimensions: [
|
|
339
|
-
|
|
341
|
+
"",
|
|
342
|
+
// Remove to prevent PII from being logged
|
|
340
343
|
this.card?.deployCommonId || "",
|
|
341
344
|
this.card?.deployVersion || "",
|
|
342
345
|
"Card Dropdown",
|
|
@@ -408,14 +411,14 @@ const Ce = '((typekeywords:Deployed,"ArcGIS Solution") OR (typekeywords:Deployed
|
|
|
408
411
|
ASSISTANT: "Assistant",
|
|
409
412
|
RESOURCES: "Resources",
|
|
410
413
|
BUILDER: "Solution Builder"
|
|
411
|
-
},
|
|
414
|
+
}, xe = {
|
|
412
415
|
MINE: "My deployments",
|
|
413
416
|
ORG: "Organization"
|
|
414
|
-
},
|
|
417
|
+
}, $e = {
|
|
415
418
|
BOTH: "New,Suggested",
|
|
416
419
|
NEW: "New",
|
|
417
420
|
SUGGESTED: "Suggested"
|
|
418
|
-
},
|
|
421
|
+
}, Pe = {
|
|
419
422
|
NEW: "new",
|
|
420
423
|
NUMVIEWS: "views",
|
|
421
424
|
RELEVANCE: "relevance",
|
|
@@ -442,13 +445,13 @@ export {
|
|
|
442
445
|
T,
|
|
443
446
|
Le as a,
|
|
444
447
|
ve as b,
|
|
445
|
-
|
|
448
|
+
xe as c,
|
|
446
449
|
ke as d,
|
|
447
450
|
Re as e,
|
|
448
|
-
|
|
451
|
+
$e as f,
|
|
449
452
|
Y as g,
|
|
450
453
|
Ue as h,
|
|
451
|
-
|
|
454
|
+
Pe as i,
|
|
452
455
|
E as j,
|
|
453
456
|
j as k,
|
|
454
457
|
X as l,
|