@esri/solutions-components 5.1.0-next.145 → 5.1.0-next.147
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/{LL647FJR.js → 2IGILR4T.js} +1 -1
- package/dist/cdn/{BQE6IVEF.js → 3A2YSBVB.js} +1 -1
- package/dist/cdn/{ZHXREM2D.js → 3KYQE6O5.js} +1 -1
- package/dist/cdn/{MEZL3ZHS.js → 3MRR3HKE.js} +25 -25
- package/dist/cdn/{QKJJHBMB.js → 42GXADY4.js} +1 -1
- package/dist/cdn/{L3UI7EZZ.js → 4DAGSZIC.js} +1 -1
- package/dist/cdn/{7ADKNWWI.js → 4FRYNYQ6.js} +1 -1
- package/dist/cdn/{5OFQVDNK.js → 4MAZNAHZ.js} +1 -1
- package/dist/cdn/{7CLM77HQ.js → 4SBOBTOR.js} +1 -1
- package/dist/cdn/{3V2UWENT.js → 4YCLQ3RW.js} +1 -1
- package/dist/cdn/{CVRBLJ5O.js → 5MPDXVRM.js} +1 -1
- package/dist/cdn/{ULUJKWT5.js → 6AUKNSKW.js} +1 -1
- package/dist/cdn/{RIHOGDUV.js → 6IUKH3E3.js} +1 -1
- package/dist/cdn/6K3C5JX2.js +2 -0
- package/dist/cdn/6VCG2ITQ.js +2 -0
- package/dist/cdn/{NOXANMDF.js → 757HAEJS.js} +1 -1
- package/dist/cdn/{P4XNRWG7.js → 7Q5BT35O.js} +1 -1
- package/dist/cdn/{RSCBZIAN.js → 7WIFBTQF.js} +12 -1
- package/dist/cdn/{I7XBRB6B.js → 7WYPODAB.js} +1 -1
- package/dist/cdn/AH3PJQ6A.js +2 -0
- package/dist/cdn/{C5ZH23YO.js → B5MBF4JC.js} +13 -13
- package/dist/cdn/BG4LNU44.js +2 -0
- package/dist/cdn/{IEN3TA4W.js → BH42V5CR.js} +1 -1
- package/dist/cdn/DD2Y5NOB.js +2 -0
- package/dist/cdn/{J5K2SIY6.js → DMM5WA5Q.js} +3 -3
- package/dist/cdn/{UKQPYE7U.js → DQQTSOMQ.js} +1 -1
- package/dist/cdn/{Y4KGXRSD.js → FWLPMS4Q.js} +1 -1
- package/dist/cdn/{M4II4TSX.js → G3C6IL5Y.js} +1 -1
- package/dist/cdn/{3DCFUYKP.js → GG4IIHQE.js} +1 -1
- package/dist/cdn/{MHVLVLRA.js → HYQVSB6C.js} +1 -1
- package/dist/cdn/I46CXTVR.js +2 -0
- package/dist/cdn/{A27DLHRU.js → IFONVCBL.js} +1 -1
- package/dist/cdn/IZSM7ZJK.js +2 -0
- package/dist/cdn/{MIH5YMTN.js → JMBANG5V.js} +1 -1
- package/dist/cdn/{G3F52QRW.js → JOAEH3CI.js} +1 -1
- package/dist/cdn/KETYOYXQ.js +2 -0
- package/dist/cdn/{GJD7AOUI.js → KH5WPLZK.js} +1 -1
- package/dist/cdn/{IDEOFV22.js → LTLR4VF3.js} +1 -1
- package/dist/cdn/{NIHPHDXG.js → LWT3JEQ6.js} +21 -52
- package/dist/cdn/LZDMYPQ2.js +75 -0
- package/dist/cdn/{Y6QJCLML.js → M3NML7ZV.js} +1 -1
- package/dist/cdn/NQH7ZZWD.js +2 -0
- package/dist/cdn/{6MOTC6CE.js → NV2DLQDN.js} +1 -1
- package/dist/cdn/OANAQ6HY.js +2 -0
- package/dist/cdn/PQL3UL3P.js +2 -0
- package/dist/cdn/{L6P26BYB.js → Q2DJUFVO.js} +1 -1
- package/dist/cdn/{LCV5GKUD.js → Q35DDH7J.js} +123 -123
- package/dist/cdn/QDKHYQJB.js +2 -0
- package/dist/cdn/{HPWNNMVU.js → QU25YPPX.js} +1 -1
- package/dist/cdn/{5NQNJZTE.js → RMO244NW.js} +1 -1
- package/dist/cdn/{HLKEBN2O.js → RRD4QUQS.js} +1 -1
- package/dist/cdn/RY6KZ77P.js +2 -0
- package/dist/cdn/{PBGG3TGN.js → RYBSWXQQ.js} +1 -1
- package/dist/cdn/{2UMMLVCR.js → SYQ5E5TV.js} +1 -1
- package/dist/cdn/U56TK45K.js +113 -0
- package/dist/cdn/{UM3P3Q52.js → U6JZYJ4D.js} +1 -1
- package/dist/cdn/UBEU6ULP.js +2 -0
- package/dist/cdn/{MPCJZCL5.js → UTZUXO5F.js} +2 -2
- package/dist/cdn/UXKH44PB.js +2 -0
- package/dist/cdn/{34CZ4EWR.js → V3MSUKLX.js} +6 -4
- package/dist/cdn/{2PUK3PST.js → W7I22AW3.js} +1 -1
- package/dist/cdn/{72X4E4QW.js → WC37HMOI.js} +1 -1
- package/dist/cdn/{RUQ4RO4T.js → WUEJANIZ.js} +1 -1
- package/dist/cdn/{LJY6BB64.js → X6JL6SAH.js} +1 -1
- package/dist/cdn/{XGYNSCTA.js → Y37QLEAM.js} +1 -1
- package/dist/cdn/{XGWDWPRK.js → YFJZN5K5.js} +1 -1
- package/dist/cdn/{6T35OGRG.js → YTU2BYBP.js} +1 -1
- package/dist/cdn/{5LF6C3S5.js → YWALGZAG.js} +1 -1
- package/dist/cdn/{QFZK4TD4.js → Z23BVIGQ.js} +1 -1
- package/dist/cdn/{QQXQAU33.js → ZCPVOS4Q.js} +1 -1
- package/dist/cdn/{F26SXWZ5.js → ZNH7LRND.js} +1 -1
- package/dist/cdn/{BMMIXOTR.js → ZWQWBXHR.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/assessBuildRequest.js +116 -0
- package/dist/chunks/assessUpdateRequest.js +78 -0
- package/dist/chunks/assistantResponse.js +12 -1
- package/dist/chunks/classifyIntent.js +21 -52
- package/dist/chunks/deployFlowController.js +1 -1
- package/dist/chunks/designSolution.js +6 -4
- package/dist/chunks/helpers.js +47 -43
- package/dist/chunks/interfaces.js +105 -102
- package/dist/chunks/solution-builder-assistant.js +185 -121
- package/dist/chunks/solution-deploy-dialog.js +4 -4
- package/dist/chunks/solutions-deploy-app-nav.js +2 -2
- package/dist/chunks/templates.js +2 -2
- package/dist/chunks/updateDesign.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +340 -278
- package/dist/components/arcgis-solutions-assistant/index.js +1 -0
- package/dist/components/card-manager/customElement.js +8 -8
- package/dist/components/create-feature/customElement.js +107 -113
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/layer-table/customElement.d.ts +3 -0
- package/dist/components/layer-table/customElement.js +110 -100
- package/dist/components/solution-configure-titles/customElement.js +11 -10
- package/dist/components/solution-delete-dialog/customElement.js +9 -8
- package/dist/components/solution-deploy-dialog/customElement.d.ts +6 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +40 -37
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +78 -64
- package/dist/components/solution-item-diagram/customElement.js +321 -285
- package/dist/components/solution-resource-card/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +5 -5
- package/dist/components/solutions-deploy-app/customElement.js +13 -15
- package/dist/components/solutions-deployed-panel/customElement.js +7 -7
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- 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 +5 -8
- package/dist/types/lumina.d.ts +1 -0
- package/dist/types/preact.d.ts +1 -0
- package/dist/types/react.d.ts +1 -0
- package/dist/types/stencil.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cdn/25NZZKXC.js +0 -2
- package/dist/cdn/3JQ2RXVJ.js +0 -2
- package/dist/cdn/4JVDUPVW.js +0 -2
- package/dist/cdn/54AE7WD2.js +0 -2
- package/dist/cdn/56A5UMZG.js +0 -9
- package/dist/cdn/AZN2E5DL.js +0 -2
- package/dist/cdn/DFZZNKPK.js +0 -76
- package/dist/cdn/G3FTF6WH.js +0 -2
- package/dist/cdn/KDNGZ47C.js +0 -2
- package/dist/cdn/NIYB3TEW.js +0 -2
- package/dist/cdn/PBMTIFFX.js +0 -2
- package/dist/cdn/PECGJO2P.js +0 -2
- package/dist/cdn/Q5TICZRX.js +0 -15
- package/dist/cdn/QGCF64WY.js +0 -2
- package/dist/cdn/VO53567V.js +0 -2
- package/dist/cdn/WKS3TKDC.js +0 -2
- package/dist/cdn/YVIEKHQQ.js +0 -2
- package/dist/cdn/Z3B5KW2S.js +0 -2
- package/dist/chunks/initialAssessment.js +0 -79
- package/dist/chunks/responseOptionsBuilderExclusion.js +0 -12
- package/dist/chunks/responseOptionsDefault.js +0 -18
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import * as f from "@esri/solution-common";
|
|
3
|
-
import { c as
|
|
4
|
-
import { css as
|
|
5
|
-
import { u as
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { useContextConsumer as
|
|
8
|
-
import { c as
|
|
3
|
+
import { c as R } from "./runtime.js";
|
|
4
|
+
import { css as v, html as r, svg as C } from "lit";
|
|
5
|
+
import { u as k } from "./useT9n.js";
|
|
6
|
+
import { LitElement as L, createEvent as N, nothing as m, safeClassMap as M } from "@arcgis/lumina";
|
|
7
|
+
import { useContextConsumer as b } from "@arcgis/lumina/context";
|
|
8
|
+
import { c as $, i as P } 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,10 +15,10 @@ 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 {
|
|
19
|
-
import { createRef as
|
|
20
|
-
const
|
|
21
|
-
async function
|
|
18
|
+
import { v as x, l as u, i as U, j as T } from "./helpers.js";
|
|
19
|
+
import { createRef as y, ref as E } from "lit-html/directives/ref.js";
|
|
20
|
+
const G = v`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}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}.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
|
+
async function B(i, e) {
|
|
22
22
|
const t = await f.getItemDataAsJson(i, e);
|
|
23
23
|
if (!t)
|
|
24
24
|
throw new Error(`Solution ${i} was not found`);
|
|
@@ -52,32 +52,32 @@ async function G(i, e) {
|
|
|
52
52
|
}
|
|
53
53
|
return a;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Oe(i, e, t) {
|
|
56
56
|
const s = i.templates.map((h) => h.type), a = [];
|
|
57
|
-
a.push(
|
|
57
|
+
a.push(j), s.indexOf("Group") >= 0 && (a.push(w), a.push(O)), s.indexOf("Feature Service") >= 0 && a.push(A);
|
|
58
58
|
const n = s.indexOf("Feed") > -1;
|
|
59
|
-
n && a.push(
|
|
59
|
+
n && a.push(J);
|
|
60
60
|
const c = s.indexOf("Big Data Analytic") > -1;
|
|
61
|
-
c && a.push(
|
|
61
|
+
c && a.push(X);
|
|
62
62
|
const d = s.indexOf("Real Time Analytic") > -1;
|
|
63
|
-
d && a.push(
|
|
63
|
+
d && a.push(Z), (n || c || d) && a.push(oe), s.indexOf("Workflow") > -1 && (a.push(w), 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
|
(h, p) => h.concat(p.item.typeKeywords || []),
|
|
66
66
|
[]
|
|
67
67
|
);
|
|
68
|
-
return
|
|
68
|
+
return F(a, o, t), H(a, e), K(a, i), a;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
e.templates.some((t) => t.type === "Group" && t.item?.membershipAccess === "collaboration") && i.push(
|
|
70
|
+
function K(i, e) {
|
|
71
|
+
e.templates.some((t) => t.type === "Group" && t.item?.membershipAccess === "collaboration") && i.push(q);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
const s =
|
|
75
|
-
["Location Tracking View"].some((c) => e.indexOf(c) > -1) && (!s && !a ? i.push(
|
|
73
|
+
function F(i, e, t) {
|
|
74
|
+
const s = S(t), a = V(t);
|
|
75
|
+
["Location Tracking View"].some((c) => e.indexOf(c) > -1) && (!s && !a ? i.push(ie) : s && !a ? i.push(se) : !s && a && i.push(ae));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
["HubPremium"].some((s) => e.indexOf(s) > -1) && i.push(
|
|
77
|
+
function H(i, e) {
|
|
78
|
+
["HubPremium"].some((s) => e.indexOf(s) > -1) && i.push(ee);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function S(i) {
|
|
81
81
|
const e = i?.PortalUserSubset?.privileges, t = [
|
|
82
82
|
"portal:admin:create",
|
|
83
83
|
"portal:admin:delete",
|
|
@@ -88,10 +88,10 @@ function O(i) {
|
|
|
88
88
|
(s) => e.some((a) => a.startsWith(s))
|
|
89
89
|
) : !1;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function V(i) {
|
|
92
92
|
return i.PortalSubset?.locationTrackingEnabled || !1;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Se(i, e) {
|
|
95
95
|
let t = {
|
|
96
96
|
leadingMessages: [],
|
|
97
97
|
bulletedMessages: [],
|
|
@@ -129,7 +129,7 @@ function Oe(i, e) {
|
|
|
129
129
|
);
|
|
130
130
|
d && t.leadingMessages.push(d), e = e.filter((p) => s.indexOf(p) < 0), e.forEach((p) => {
|
|
131
131
|
t.bulletedMessages.push(
|
|
132
|
-
|
|
132
|
+
I(i, p)
|
|
133
133
|
);
|
|
134
134
|
});
|
|
135
135
|
let o = g(
|
|
@@ -142,9 +142,9 @@ function Oe(i, e) {
|
|
|
142
142
|
), t;
|
|
143
143
|
}
|
|
144
144
|
function g(i, e, t) {
|
|
145
|
-
return e.filter((a) => a.includes(t)).length > 0 ?
|
|
145
|
+
return e.filter((a) => a.includes(t)).length > 0 ? I(i, t) : "";
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function I(i, e) {
|
|
148
148
|
const t = i.missingPrivilegesPopup.requiredPrivilegesList;
|
|
149
149
|
let s = "";
|
|
150
150
|
switch (e) {
|
|
@@ -199,34 +199,34 @@ function S(i, e) {
|
|
|
199
199
|
}
|
|
200
200
|
return s;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
const t =
|
|
202
|
+
function Ie(i, e) {
|
|
203
|
+
const t = D(e), s = x([{ k: "id", v: i }]) || "";
|
|
204
204
|
return t ? `${t}/home/item.html${s}` : "";
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const a = s ||
|
|
206
|
+
function De(i, e, t, s) {
|
|
207
|
+
const a = s || D(t);
|
|
208
208
|
return a ? `${a}/sharing/rest/content/items/${i}/resources/${e}` : "";
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function D(i) {
|
|
211
211
|
return i?.PortalSubset?.orgUrl || i?.PortalUrl || "";
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function W(i, e) {
|
|
214
214
|
const t = new URL(i);
|
|
215
215
|
return t.searchParams.set("token", e), t.toString();
|
|
216
216
|
}
|
|
217
|
-
class
|
|
217
|
+
class z extends L {
|
|
218
218
|
constructor() {
|
|
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 =
|
|
220
|
-
context:
|
|
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 = k({ name: "solution-deployed-card", blocking: !0 }), this._configContextConsumer = b({
|
|
220
|
+
context: $,
|
|
221
221
|
subscribe: !0,
|
|
222
222
|
callback: async (e) => {
|
|
223
|
-
e && (this._isOrgAdmin =
|
|
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 = y(), this._diagramDialogRef = y(), this._isOrgAdmin = !1, this._isMobileContextConsumer = b({
|
|
226
|
+
context: P,
|
|
227
227
|
subscribe: !0,
|
|
228
228
|
callback: (e) => this.isMobile = e
|
|
229
|
-
}), this.deployedCardSelected =
|
|
229
|
+
}), this.deployedCardSelected = N(), this.listenOn(window, "sessionRefreshed", (e) => {
|
|
230
230
|
this._updateThumbnailToken(e.detail);
|
|
231
231
|
});
|
|
232
232
|
}
|
|
@@ -234,7 +234,7 @@ class W extends k {
|
|
|
234
234
|
this.properties = { card: 0, deployedDate: 1, description: 1, diagramKey: 1, heading: 1, itemId: 1, owner: 1, thumbnail: 1, updateAvailable: 5, templateInfos: 0, _isDeleteOpen: 16, _isDiagramOpen: 16, isMobile: 16, templateInfoGraph: 16, _configureTitlesOpen: 16, _thumbnailUrl: 16, _translations: 16 };
|
|
235
235
|
}
|
|
236
236
|
static {
|
|
237
|
-
this.styles =
|
|
237
|
+
this.styles = G;
|
|
238
238
|
}
|
|
239
239
|
get _telemetry() {
|
|
240
240
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -265,28 +265,28 @@ class W extends k {
|
|
|
265
265
|
return r`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile} @keydown=${(e) => u(e, () => this._openUserProfile(e))}>${this.owner}</calcite-link></calcite-label>`;
|
|
266
266
|
}
|
|
267
267
|
_getDeployedDate() {
|
|
268
|
-
return r`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg aria-hidden=true height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${
|
|
268
|
+
return r`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg aria-hidden=true height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${C`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}", this.deployedDate)}</calcite-label></div>`;
|
|
269
269
|
}
|
|
270
270
|
_getChips() {
|
|
271
271
|
return r`<calcite-chip class="chipClass" icon=effects .label=${this._translations.builtWithAI} scale=s>${this._translations.builtWithAI}</calcite-chip>`;
|
|
272
272
|
}
|
|
273
273
|
_getConfigureButton() {
|
|
274
|
-
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, s = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, a =
|
|
274
|
+
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, s = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = U(this._configContextConsumer.value), n = this.card?.owner === e || this._isOrgAdmin || t, c = this.card?.owner === e || this._isOrgAdmin || s, d = n ? "display-none" : "";
|
|
275
275
|
return r`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution ?? m} dropdown-label=${this._translations.moreActions ?? m} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${(o) => o.stopPropagation()} @keydown=${(o) => o.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution ?? m} width=full><calcite-dropdown-group selection-mode=none>${!this.isMobile && r`<calcite-dropdown-item icon-start=model @click=${this._viewDiagram} @keydown=${(o) => u(o, () => this._viewDiagram(o))}>${this._translations.viewDiagram}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation} @keydown=${(o) => u(o, () => this._viewDocumentation(o))}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails} @keydown=${(o) => u(o, () => this._viewItemDetails(o))}>${this._translations.viewItemDetails}</calcite-dropdown-item>${!this.isMobile && n && r`<calcite-dropdown-item .disabled=${a} icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async () => {
|
|
276
276
|
this.templateInfos = await this._processTemplates(this.card), this._configureTitlesOpen = !0;
|
|
277
277
|
}} @keydown=${(o) => u(o, async () => {
|
|
278
278
|
this.templateInfos = await this._processTemplates(this.card), this._configureTitlesOpen = !0;
|
|
279
|
-
})}>${this._translations.renameItems}</calcite-dropdown-item>` || ""}${!this.isMobile && c && r`<calcite-dropdown-item .disabled=${a} icon-start=trash @click=${this._deleteSolution} @keydown=${(o) => u(o, () => this._deleteSolution(o))}>${this._translations.deleteSolution}</calcite-dropdown-item>` || ""}</calcite-dropdown-group><calcite-tooltip class=${
|
|
279
|
+
})}>${this._translations.renameItems}</calcite-dropdown-item>` || ""}${!this.isMobile && c && r`<calcite-dropdown-item .disabled=${a} icon-start=trash @click=${this._deleteSolution} @keydown=${(o) => u(o, () => this._deleteSolution(o))}>${this._translations.deleteSolution}</calcite-dropdown-item>` || ""}</calcite-dropdown-group><calcite-tooltip class=${M(d)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`;
|
|
280
280
|
}
|
|
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" ${E(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 ?? "") ?? m} 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 ${E(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 () => {
|
|
@@ -307,37 +307,40 @@ class W extends k {
|
|
|
307
307
|
}
|
|
308
308
|
async _viewDiagram(e) {
|
|
309
309
|
e.stopPropagation(), this.card && (this._telemetry?.logEvent({
|
|
310
|
-
category:
|
|
310
|
+
category: _.DEPLOYMENTS,
|
|
311
311
|
action: "View Diagram",
|
|
312
312
|
dimensions: [
|
|
313
313
|
this.card.title || "",
|
|
314
314
|
this.card.deployCommonId || "",
|
|
315
315
|
this.card.deployVersion || "",
|
|
316
|
-
"
|
|
316
|
+
"Dropdown",
|
|
317
|
+
T(this.card?.typeKeywords)
|
|
317
318
|
]
|
|
318
319
|
}), this.templateInfoGraph = await this._processTemplates(this.card), this._isDiagramOpen = !0);
|
|
319
320
|
}
|
|
320
321
|
_viewDocumentation(e) {
|
|
321
322
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
322
|
-
category:
|
|
323
|
+
category: _.DEPLOYMENTS,
|
|
323
324
|
action: "Open Help",
|
|
324
325
|
dimensions: [
|
|
325
326
|
this.card?.title || "",
|
|
326
327
|
this.card?.deployCommonId || "",
|
|
327
328
|
this.card?.deployVersion || "",
|
|
328
|
-
"Card Dropdown"
|
|
329
|
+
"Card Dropdown",
|
|
330
|
+
T(this.card?.typeKeywords)
|
|
329
331
|
]
|
|
330
332
|
}), window.open(this.card.learnMoreUrl, "_blank");
|
|
331
333
|
}
|
|
332
334
|
_viewItemDetails(e) {
|
|
333
335
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
334
|
-
category:
|
|
336
|
+
category: _.DEPLOYMENTS,
|
|
335
337
|
action: "Open Item Details",
|
|
336
338
|
dimensions: [
|
|
337
339
|
this.card?.title || "",
|
|
338
340
|
this.card?.deployCommonId || "",
|
|
339
341
|
this.card?.deployVersion || "",
|
|
340
|
-
"Card Dropdown"
|
|
342
|
+
"Card Dropdown",
|
|
343
|
+
T(this.card?.typeKeywords)
|
|
341
344
|
]
|
|
342
345
|
}), window.open(this.card.itemUrl, "_blank");
|
|
343
346
|
}
|
|
@@ -350,14 +353,14 @@ class W extends k {
|
|
|
350
353
|
t && window.open(`${t}/home/user.html?user=${this.owner}`, "_blank");
|
|
351
354
|
}
|
|
352
355
|
async _processTemplates(e) {
|
|
353
|
-
return await
|
|
356
|
+
return await B(e.id, this._configContextConsumer.value.userSession);
|
|
354
357
|
}
|
|
355
358
|
_updateThumbnailToken(e) {
|
|
356
|
-
this._thumbnailUrl !== "" && (this._thumbnailUrl =
|
|
359
|
+
this._thumbnailUrl !== "" && (this._thumbnailUrl = W(this._thumbnailUrl, e));
|
|
357
360
|
}
|
|
358
361
|
}
|
|
359
|
-
|
|
360
|
-
const
|
|
362
|
+
R("solution-deployed-card", z);
|
|
363
|
+
const Re = 500, ve = {
|
|
361
364
|
AEC: "Architecture, Engineering, and Construction (AEC)",
|
|
362
365
|
AIRPORTPORTRAIL: "Airports, Ports, and Rails",
|
|
363
366
|
BUSINESS: "Business",
|
|
@@ -371,7 +374,7 @@ const De = 500, Re = {
|
|
|
371
374
|
STATEANDLOCALGOVERNMENT: "State and Local Government",
|
|
372
375
|
TELECOMMUNICATIONS: "Telecommunications",
|
|
373
376
|
UTILITIES: "Utilities"
|
|
374
|
-
},
|
|
377
|
+
}, Ce = {
|
|
375
378
|
AIRPORT: "Airports",
|
|
376
379
|
AGRICULTURE: "Agriculture",
|
|
377
380
|
ASSESSMENTANDTAXATION: "Assessment and Taxation",
|
|
@@ -396,8 +399,8 @@ const De = 500, Re = {
|
|
|
396
399
|
TRANSPORTATION: "Transportation",
|
|
397
400
|
WATER: "Water Distribution"
|
|
398
401
|
};
|
|
399
|
-
var l = /* @__PURE__ */ ((i) => (i.HUBPREMIUM = "solutions:hubPremium", i.NOTEBOOK = "solutions:notebook", i.TRACKINGBASE = "solutions:locationtracking", i.TRACKING = "solutions:locationtracking:tracking", i.TRACKINGADMIN = "solutions:locationtracking:admin", i.TRACKINGADMINANDTRACKING = "solutions:locationtracking:admin:tracking", i.VELOCITY = "solutions:velocity", i.WORKFLOW = "solutions:workflowManager", i))(l || {}),
|
|
400
|
-
const
|
|
402
|
+
var l = /* @__PURE__ */ ((i) => (i.HUBPREMIUM = "solutions:hubPremium", i.NOTEBOOK = "solutions:notebook", i.TRACKINGBASE = "solutions:locationtracking", i.TRACKING = "solutions:locationtracking:tracking", i.TRACKINGADMIN = "solutions:locationtracking:admin", i.TRACKINGADMINANDTRACKING = "solutions:locationtracking:admin:tracking", i.VELOCITY = "solutions:velocity", i.WORKFLOW = "solutions:workflowManager", i))(l || {}), Y = /* @__PURE__ */ ((i) => (i.VELOCITYBIGDATA = "portal:publisher:publishBigDataAnalytics", i.VELOCITYFEEDS = "portal:publisher:publishFeeds", i.VELOCITYREALTIME = "portal:publisher:publishRealTimeAnalytics", i))(Y || {});
|
|
403
|
+
const ke = '((typekeywords:Deployed,"ArcGIS Solution") OR (typekeywords:Deployed,AIAssistant) OR ((typekeywords:Deployed) AND (created:[1577862000000 TO 1622576880000])))', Le = "(typekeywords:Solution,Template)", q = "portal:user:addExternalMembersToGroup", j = "portal:user:createItem", w = "portal:user:createGroup", X = "portal:publisher:publishBigDataAnalytics", A = "portal:publisher:publishFeatures", J = "portal:publisher:publishFeeds", Q = "portal:publisher:publishServerGPServices", Z = "portal:publisher:publishRealTimeAnalytics", O = "portal:user:shareToGroup", ee = "solutions:hubPremium", te = "solutions:notebook", ie = "solutions:locationtracking:admin:tracking", se = "solutions:locationtracking:tracking", ae = "solutions:locationtracking:admin", oe = "solutions:velocity", ne = "solutions:workflowManager", Ne = 250, Me = 256, _ = {
|
|
401
404
|
SOLUTION_DETAILS: "Solution Details",
|
|
402
405
|
GLOBAL_NAVIGATION: "Global Nav",
|
|
403
406
|
ALL_SOLUTIONS: "Solutions",
|
|
@@ -405,14 +408,14 @@ const Ce = '((typekeywords:Deployed,"ArcGIS Solution") OR (typekeywords:Deployed
|
|
|
405
408
|
ASSISTANT: "Assistant",
|
|
406
409
|
RESOURCES: "Resources",
|
|
407
410
|
BUILDER: "Solution Builder"
|
|
408
|
-
},
|
|
411
|
+
}, $e = {
|
|
409
412
|
MINE: "My deployments",
|
|
410
413
|
ORG: "Organization"
|
|
411
|
-
},
|
|
414
|
+
}, Pe = {
|
|
412
415
|
BOTH: "New,Suggested",
|
|
413
416
|
NEW: "New",
|
|
414
417
|
SUGGESTED: "Suggested"
|
|
415
|
-
},
|
|
418
|
+
}, xe = {
|
|
416
419
|
NEW: "new",
|
|
417
420
|
NUMVIEWS: "views",
|
|
418
421
|
RELEVANCE: "relevance",
|
|
@@ -420,47 +423,47 @@ const Ce = '((typekeywords:Deployed,"ArcGIS Solution") OR (typekeywords:Deployed
|
|
|
420
423
|
TITLE: "title",
|
|
421
424
|
UPDATED: "updated",
|
|
422
425
|
CREATED: "created"
|
|
423
|
-
},
|
|
426
|
+
}, Ue = {
|
|
424
427
|
DEPLOY: "deploy",
|
|
425
428
|
AIOPEN: "aiOpen"
|
|
426
429
|
};
|
|
427
430
|
export {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
431
|
+
W as A,
|
|
432
|
+
ke as B,
|
|
433
|
+
De as C,
|
|
434
|
+
Me as D,
|
|
432
435
|
l as E,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
T,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
436
|
+
Oe as F,
|
|
437
|
+
Se as G,
|
|
438
|
+
z as H,
|
|
439
|
+
Ne as I,
|
|
440
|
+
q as P,
|
|
441
|
+
ee as S,
|
|
442
|
+
_ as T,
|
|
443
|
+
Le as a,
|
|
444
|
+
Re as b,
|
|
445
|
+
$e as c,
|
|
446
|
+
Ce as d,
|
|
447
|
+
ve as e,
|
|
448
|
+
Pe as f,
|
|
449
|
+
Y as g,
|
|
450
|
+
Ue as h,
|
|
451
|
+
xe as i,
|
|
452
|
+
w as j,
|
|
453
|
+
j as k,
|
|
454
|
+
X as l,
|
|
455
|
+
A as m,
|
|
456
|
+
J as n,
|
|
457
|
+
Q as o,
|
|
458
|
+
Z as p,
|
|
459
|
+
O as q,
|
|
460
|
+
te as r,
|
|
461
|
+
se as s,
|
|
462
|
+
ae as t,
|
|
463
|
+
ie as u,
|
|
464
|
+
oe as v,
|
|
465
|
+
ne as w,
|
|
466
|
+
B as x,
|
|
467
|
+
S as y,
|
|
468
|
+
Ie as z
|
|
466
469
|
};
|