@esri/solutions-components 5.1.0-next.124 → 5.1.0-next.127
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/{EWUZF57U.js → 232XXYVJ.js} +1 -1
- package/dist/cdn/{Y6ZWXE53.js → 23LRX7AS.js} +1 -1
- package/dist/cdn/{Z25OUDBP.js → 23SGJQLW.js} +1 -1
- package/dist/cdn/2KSXH2TC.js +2 -0
- package/dist/cdn/3JZVI5AM.js +7 -0
- package/dist/cdn/{C7SMCM7E.js → 3UJAJDSF.js} +1 -1
- package/dist/cdn/{A4RZESK7.js → 3UKDJZ2D.js} +2 -2
- package/dist/cdn/{JR5GBFT2.js → 4V4CR63B.js} +1 -1
- package/dist/cdn/{ZV6TCDGB.js → 4Z6UJJJR.js} +1 -1
- package/dist/cdn/4ZUE6R22.js +2 -0
- package/dist/cdn/5AAG5ERI.js +2 -0
- package/dist/cdn/{6GSCRFFW.js → 5GHZQ66V.js} +1 -1
- package/dist/cdn/5U2GHXOV.js +2 -0
- package/dist/cdn/5UIJ4Z3C.js +2 -0
- package/dist/cdn/{6RTR35JT.js → 5XDPNTYE.js} +1 -1
- package/dist/cdn/6ID6N5BF.js +2 -0
- package/dist/cdn/6IMLSV3Z.js +2 -0
- package/dist/cdn/{K5MMGZY2.js → 6Q52JBZW.js} +1 -1
- package/dist/cdn/{4MAZNAHZ.js → 6SSQ6MIC.js} +1 -1
- package/dist/cdn/{KZBWKZOC.js → 74XF7DBP.js} +1 -1
- package/dist/cdn/75WQ7UGJ.js +2 -0
- package/dist/cdn/7CGCLEYB.js +2 -0
- package/dist/cdn/{SH72A5PB.js → 7V57GR4X.js} +1 -1
- package/dist/cdn/{D66IBZZA.js → 7ZKKR7QO.js} +1 -1
- package/dist/cdn/AL7O7ZB2.js +3 -0
- package/dist/cdn/{MYPJ63EE.js → ANVT6ANQ.js} +1 -1
- package/dist/cdn/{GWSB6X4X.js → AOJP5RQ6.js} +1 -1
- package/dist/cdn/{XQQ52NKX.js → AYSQIO6L.js} +1 -1
- package/dist/cdn/{WGEHABGS.js → B33EUN4X.js} +1 -1
- package/dist/cdn/BLCW2CZO.js +2 -0
- package/dist/cdn/{3WKKIXVT.js → BOSEAFVW.js} +1 -1
- package/dist/cdn/{CGFMGQ3A.js → BROZWKD5.js} +1 -1
- package/dist/cdn/CB7QDBRG.js +2 -0
- package/dist/cdn/CEWRVOKP.js +2 -0
- package/dist/cdn/{MOK7GNOH.js → CWXZSWUA.js} +1 -1
- package/dist/cdn/D4FRUAT3.js +2 -0
- package/dist/cdn/DQ7NBBUU.js +2 -0
- package/dist/cdn/{D5Y4JMF7.js → E4ZB3BPD.js} +1 -1
- package/dist/cdn/E5X2RW5Y.js +109 -0
- package/dist/cdn/{KGECA3WE.js → EDZIFJZR.js} +1 -1
- package/dist/cdn/{NYWKJJKK.js → EIF4KZBD.js} +1 -1
- package/dist/cdn/{B6Y3RA4F.js → ENG5BCAV.js} +1 -1
- package/dist/cdn/EOSKMSMP.js +2 -0
- package/dist/cdn/{RH47YGDG.js → EVZXWT6K.js} +1 -1
- package/dist/cdn/EXC566PM.js +2 -0
- package/dist/cdn/FOTFZKKU.js +2 -0
- package/dist/cdn/FTY7YPLA.js +88 -0
- package/dist/cdn/FW2HWQC7.js +2 -0
- package/dist/cdn/{MGAKD4WY.js → GDDMG3Q4.js} +1 -1
- package/dist/cdn/{BRBOVJ3Q.js → GPL6FNKN.js} +1 -1
- package/dist/cdn/{DUDZ4BGI.js → GSD6O5J7.js} +1 -1
- package/dist/cdn/{SSF6ST7U.js → H4YPSJ5G.js} +1 -1
- package/dist/cdn/{TTOCCH2K.js → H7J2FXMS.js} +1 -1
- package/dist/cdn/{C5QZMZX7.js → HEI6GMZN.js} +1 -1
- package/dist/cdn/{AZ4JB3M3.js → HJW2JW4G.js} +1 -1
- package/dist/cdn/HO4GBQJG.js +2 -0
- package/dist/cdn/HT2HC33W.js +2 -0
- package/dist/cdn/{IHKF4AMV.js → HYLQNC4V.js} +3 -3
- package/dist/cdn/HZOBBQYW.js +431 -0
- package/dist/cdn/ICSHJV2N.js +2 -0
- package/dist/cdn/IFI66PVI.js +2 -0
- package/dist/cdn/{YFXSWGXE.js → IHG7KTNC.js} +1 -1
- package/dist/cdn/IP3VJ34C.js +4 -0
- package/dist/cdn/IV7RVOFY.js +56 -0
- package/dist/cdn/{3UIIZPJJ.js → IYQGIBWM.js} +1 -1
- package/dist/cdn/{JFJRHOAG.js → KCTWFRCW.js} +1 -1
- package/dist/cdn/{F64NVBUS.js → KEOBSFBN.js} +1 -1
- package/dist/cdn/{N2KSPEVT.js → LP2JYX4X.js} +1 -1
- package/dist/cdn/{C4IFGE7P.js → MDNGEZ2V.js} +1 -1
- package/dist/cdn/{XVMCFCUH.js → MEDCFXMB.js} +1 -1
- package/dist/cdn/{X6JL6SAH.js → MOH6GREK.js} +1 -1
- package/dist/cdn/MURYADCX.js +2 -0
- package/dist/cdn/{JBNWEBAG.js → N22MFQSQ.js} +1 -1
- package/dist/cdn/N5D5ABJ6.js +2 -0
- package/dist/cdn/{5HZMUGQD.js → N7BXCDA3.js} +1 -1
- package/dist/cdn/{SGJY2CP3.js → ODB4CELR.js} +1 -1
- package/dist/cdn/PZW6JMSM.js +2 -0
- package/dist/cdn/{5MVIKBSS.js → QF2IXVAT.js} +1 -1
- package/dist/cdn/{CQRK2NYK.js → QJICQ4W3.js} +1 -1
- package/dist/cdn/QNRKGTZT.js +121 -0
- package/dist/cdn/{GIANH6D4.js → R3C2X4CM.js} +1 -1
- package/dist/cdn/{DKB6JTUF.js → RKZXRHZK.js} +1 -1
- package/dist/cdn/RPEQD2MH.js +2 -0
- package/dist/cdn/{SMNWKCWR.js → RXM4BHPK.js} +1 -1
- package/dist/cdn/S5F6KJQM.js +18 -0
- package/dist/cdn/SFFLZSAY.js +2 -0
- package/dist/cdn/SSH4MSHE.js +2 -0
- package/dist/cdn/{BQVD2BBH.js → SSZBIVTK.js} +1 -1
- package/dist/cdn/{EZ4DX2MW.js → TFTW5B3R.js} +1 -1
- package/dist/cdn/{I74AIIHN.js → TIF36KTA.js} +1 -1
- package/dist/cdn/TV3ZHJ7B.js +2 -0
- package/dist/cdn/{U6JZYJ4D.js → UM3P3Q52.js} +1 -1
- package/dist/cdn/{WH2NFOMH.js → UUHDVB24.js} +5 -5
- package/dist/cdn/UY5JVVRO.js +2 -0
- package/dist/cdn/VEDAG7UO.js +2 -0
- package/dist/cdn/VFBFI3KQ.js +2 -0
- package/dist/cdn/{BXOH6SN4.js → VTI5LEQY.js} +1 -1
- package/dist/cdn/W5FWW67G.js +2 -0
- package/dist/cdn/{RB3YU5TX.js → WA3BLQHA.js} +1 -1
- package/dist/cdn/{JEEUSHAF.js → X73XP424.js} +1 -1
- package/dist/cdn/XC3IZAIH.js +2 -0
- package/dist/cdn/{3FOUGCWY.js → XDZPQACK.js} +1 -1
- package/dist/cdn/XGODSNWZ.js +2 -0
- package/dist/cdn/{UNKHKP5I.js → YJCH2NIS.js} +1 -1
- package/dist/cdn/{A4NILC27.js → YKM2YRZP.js} +1 -1
- package/dist/cdn/{FBRYBN7J.js → YMLQXXAS.js} +1 -1
- package/dist/cdn/{JUUVYK2H.js → YQHYMLC7.js} +1 -1
- package/dist/cdn/{Y3CYPNEY.js → YWXDNRE2.js} +1 -1
- package/dist/cdn/{E4GB5Z4R.js → ZNWZWFMH.js} +1 -1
- package/dist/cdn/{DGUS2OKW.js → ZS3UOY5Q.js} +1 -1
- package/dist/cdn/{5VDDAINK.js → ZX3UHK6P.js} +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/Auth.js +163 -71
- package/dist/chunks/CardsFetcher.js +3 -2
- package/dist/chunks/getRelatedInfos.js +1 -1
- package/dist/chunks/helpers.js +24 -20
- package/dist/chunks/interfaces.js +152 -141
- package/dist/chunks/solution-deploy-dialog.js +24 -18
- package/dist/chunks/solutions-deploy-app-nav.js +4 -5
- package/dist/components/arcgis-solutions-assistant/customElement.js +681 -57987
- package/dist/components/consent-manager/customElement.js +23 -3598
- package/dist/components/solution-builder-assistant/customElement.d.ts +8 -2
- package/dist/components/solution-builder-assistant/customElement.js +30 -23
- package/dist/components/solution-builder-assistant/index.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +63 -61
- package/dist/components/solution-delete-dialog/customElement.js +17 -14
- package/dist/components/solution-deployed-card/customElement.js +2 -3
- package/dist/components/solution-deployed-card-panel/customElement.d.ts +7 -0
- package/dist/components/solution-deployed-card-panel/customElement.js +34 -32
- package/dist/components/solution-deployed-card-panel/index.js +1 -0
- package/dist/components/solution-details-panel/customElement.d.ts +7 -4
- package/dist/components/solution-details-panel/customElement.js +115 -180
- package/dist/components/solution-snapshot-gallery/customElement.js +2 -1
- package/dist/components/solution-social-share/customElement.js +2 -2
- package/dist/components/solution-user-avatar/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.d.ts +4 -0
- package/dist/components/solutions-deploy-app/customElement.js +14 -11
- package/dist/components/solutions-deploy-app-nav/customElement.js +2 -3
- package/dist/components/solutions-deployed-list/customElement.js +7 -6
- 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/loader.js +3 -3
- package/dist/solutions-components_commit.txt +5 -8
- package/dist/types/lumina.d.ts +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/dist/utils/Auth.d.ts +11 -0
- package/package.json +11 -6
- package/dist/cdn/2V4C3U3A.js +0 -2
- package/dist/cdn/3RUVSQ7E.js +0 -2
- package/dist/cdn/4FZ44STD.js +0 -2
- package/dist/cdn/52KL2BJB.js +0 -2
- package/dist/cdn/5DS6TJ6G.js +0 -2
- package/dist/cdn/5ZIXJCIR.js +0 -18
- package/dist/cdn/62PVXXRD.js +0 -2
- package/dist/cdn/7JUP4GFU.js +0 -2
- package/dist/cdn/7UERL2R2.js +0 -2
- package/dist/cdn/7WKV6M26.js +0 -2
- package/dist/cdn/BKZZ625R.js +0 -2
- package/dist/cdn/BWYFMFIB.js +0 -423
- package/dist/cdn/CQKON2YR.js +0 -2
- package/dist/cdn/F2J3FYTD.js +0 -2
- package/dist/cdn/GVEIFIEZ.js +0 -2
- package/dist/cdn/H5WTVMPJ.js +0 -2
- package/dist/cdn/HNZAE56I.js +0 -2
- package/dist/cdn/HQJ25PBT.js +0 -2
- package/dist/cdn/IF52R2FM.js +0 -2
- package/dist/cdn/IOKTYFKK.js +0 -7
- package/dist/cdn/IRRMUFW7.js +0 -2
- package/dist/cdn/JFKCARWJ.js +0 -2
- package/dist/cdn/K7QUGRWR.js +0 -4
- package/dist/cdn/MN3KMBU6.js +0 -2
- package/dist/cdn/MNZJP3PW.js +0 -2
- package/dist/cdn/MPZE3IV4.js +0 -2
- package/dist/cdn/QKKYYRVF.js +0 -2
- package/dist/cdn/QTV6GN3W.js +0 -2
- package/dist/cdn/QVJAIVT4.js +0 -2
- package/dist/cdn/RPEBBYE4.js +0 -2
- package/dist/cdn/RXFNNWEJ.js +0 -2
- package/dist/cdn/SBLN3F4Y.js +0 -2
- package/dist/cdn/STWIOVJR.js +0 -2
- package/dist/cdn/TUQVCY7T.js +0 -2
- package/dist/cdn/UM4ITZ4R.js +0 -2
- package/dist/cdn/VFEROJ77.js +0 -2
- package/dist/cdn/VL4OP3CF.js +0 -2
- package/dist/cdn/YNOD3Q5G.js +0 -2
- package/dist/cdn/ZPT5ISDK.js +0 -2
- package/dist/chunks/common.js +0 -26
- package/dist/chunks/get.js +0 -387
|
@@ -1,100 +1,32 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { createRef as
|
|
5
|
-
import { LitElement as S, createEvent as y, safeClassMap as
|
|
6
|
-
import { useContextConsumer as
|
|
7
|
-
import { c as
|
|
8
|
-
import { css as
|
|
9
|
-
import * as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { _findExistingItem as
|
|
13
|
-
import {
|
|
14
|
-
import { g as C, a as q } from "../../chunks/common.js";
|
|
2
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
+
import { u as I } from "../../chunks/useT9n.js";
|
|
4
|
+
import { createRef as d, ref as h } from "lit-html/directives/ref.js";
|
|
5
|
+
import { LitElement as S, createEvent as y, safeClassMap as p, nothing as u, safeStyleMap as k } from "@arcgis/lumina";
|
|
6
|
+
import { useContextConsumer as b } from "@arcgis/lumina/context";
|
|
7
|
+
import { c as M, i as D } from "../../chunks/deployAppContexts.js";
|
|
8
|
+
import { css as T, html as o } from "lit";
|
|
9
|
+
import * as L from "@esri/solution-common";
|
|
10
|
+
import { sanitizeHTML as m, getItemDataAsJson as R, getItem as E, getPropWithDefault as x, getProp as _, setCreateProp as P } from "@esri/solution-common";
|
|
11
|
+
import { T as g, y as w, C as A, A as O, z as U } from "../../chunks/interfaces.js";
|
|
12
|
+
import { _findExistingItem as F } from "@esri/solution-deployer";
|
|
13
|
+
import { c as f, g as V, r as v, q as H } from "../../chunks/helpers.js";
|
|
15
14
|
import "../../chunks/solution-deploy-dialog.js";
|
|
16
15
|
import "../solution-snapshot-gallery/customElement.js";
|
|
17
16
|
import "../solution-deploying-dialog/customElement.js";
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
let i = t;
|
|
21
|
-
return c && (c?.IsEnterprisePortal && await X(
|
|
22
|
-
"",
|
|
23
|
-
// the portal url
|
|
24
|
-
e
|
|
25
|
-
) && i.push(u.NOTEBOOK), await z(e) ? t.push(u.VELOCITY) : c?.PortalUserPrivileges && [
|
|
26
|
-
x.VELOCITYFEEDS,
|
|
27
|
-
x.VELOCITYBIGDATA,
|
|
28
|
-
x.VELOCITYREALTIME
|
|
29
|
-
].forEach((a) => {
|
|
30
|
-
const r = t.indexOf(a) || -1;
|
|
31
|
-
r !== -1 && t.splice(r, 1);
|
|
32
|
-
}), i = i.concat(
|
|
33
|
-
j(
|
|
34
|
-
Z(c),
|
|
35
|
-
ee(c)
|
|
36
|
-
)
|
|
37
|
-
), i = i.concat(J(c)), i = i.concat(await Q(c))), Promise.resolve(i);
|
|
38
|
-
}
|
|
39
|
-
function j(c, e) {
|
|
40
|
-
let t = [];
|
|
41
|
-
return c && e ? t = [
|
|
42
|
-
u.TRACKINGADMINANDTRACKING,
|
|
43
|
-
u.TRACKINGADMIN,
|
|
44
|
-
u.TRACKING
|
|
45
|
-
] : c && !e ? t = [u.TRACKINGADMIN] : !c && e && (t = [u.TRACKING]), t;
|
|
46
|
-
}
|
|
47
|
-
function J(c) {
|
|
48
|
-
return te(
|
|
49
|
-
c
|
|
50
|
-
) ? [u.HUBPREMIUM] : [];
|
|
51
|
-
}
|
|
52
|
-
async function Q(c) {
|
|
53
|
-
const e = c?.RestUserSession;
|
|
54
|
-
if (!e?.username)
|
|
55
|
-
return [];
|
|
56
|
-
const t = await A(e);
|
|
57
|
-
return await O(t, e) ? [u.WORKFLOW] : [];
|
|
58
|
-
}
|
|
59
|
-
async function X(c, e) {
|
|
60
|
-
const t = c + "/sharing/rest", i = {
|
|
61
|
-
authentication: e,
|
|
62
|
-
portal: t,
|
|
63
|
-
params: {
|
|
64
|
-
f: "json"
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
return P(`${t}/portals/self/servers`, i).then((o) => o?.servers?.find((s) => s.serverFunction.indexOf("NotebookServer") > -1), (o) => (console.error(o), !1));
|
|
68
|
-
}
|
|
69
|
-
function Z(c) {
|
|
70
|
-
const e = c?.PortalUserSubset?.privileges, t = [
|
|
71
|
-
"portal:admin:create",
|
|
72
|
-
"portal:admin:delete",
|
|
73
|
-
"portal:admin:update",
|
|
74
|
-
"portal:admin:reassign"
|
|
75
|
-
];
|
|
76
|
-
return e ? t.every(
|
|
77
|
-
(i) => e.some((o) => o.startsWith(i))
|
|
78
|
-
) : !1;
|
|
79
|
-
}
|
|
80
|
-
function ee(c) {
|
|
81
|
-
return c?.PortalSubset?.locationTrackingEnabled || !1;
|
|
82
|
-
}
|
|
83
|
-
function te(c) {
|
|
84
|
-
return c?.PortalSubset?.hubPremiumEnabled || !1;
|
|
85
|
-
}
|
|
86
|
-
class ie extends S {
|
|
17
|
+
const N = T`.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.flex-1{flex:1}.cursor-default{cursor:default}solution-details-card[id*=you-may-also-like]{width:240px}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}ul ul{list-style-type:circle}li{margin:var(--calcite-spacing-sm) var(--calcite-spacing-none)}calcite-label{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.padding-1{padding:var(--calcite-spacing-lg)}.padding-1-5{padding:var(--calcite-spacing-xl)}.padding-2px{padding:var(--calcite-spacing-base)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-bottom-sm{padding-bottom:var(--calcite-spacing-sm)}.padding-top-md{padding-top:var(--calcite-spacing-md)}.padding-top-sm{padding-top:var(--calcite-spacing-sm)}.padding-top-xs{padding-top:.25rem}.padding-bottom-1-5{padding-bottom:var(--calcite-spacing-xxl)}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-top-1-5{padding-top:var(--calcite-spacing-xxl)}.padding-top-1-2{padding-top:var(--calcite-spacing-sm)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-1-75{padding-inline-end:1.75rem}.padding-end-2{padding-inline-end:var(--calcite-spacing-xxxl)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-bottom-1{margin-bottom:var(--calcite-spacing-lg)}.margin-bottom-1-5{margin-bottom:var(--calcite-spacing-xxl)}.margin-end-1{margin-inline-end:var(--calcite-spacing-lg)}.margin-top-0{margin-top:var(--calcite-spacing-none)}.margin-top-1{margin-top:var(--calcite-spacing-lg)}.margin-top-875{margin-top:.875rem}.margin-top-1-5{margin-top:var(--calcite-spacing-xxl)}.margin-sides-0-5{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm)}.margin-sides-1{margin-left:var(--calcite-spacing-lg);margin-right:var(--calcite-spacing-lg)}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}.width-full{width:100%}@container (max-width: 800px){.width-full{flex-direction:column}.width-full>.display-flex{flex-direction:column}.image-width{width:100%;max-width:100%;margin:0;padding-bottom:0}.image-width img{width:100%;max-width:100%}.title-font{padding-inline-end:var(--calcite-spacing-lg);padding-top:var(--calcite-spacing-lg)}.button-width{width:100%;margin-top:var(--calcite-spacing-lg)}}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-sm) var(--calcite-spacing-md)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}calcite-card{width:450px;--calcite-card-border-color: transparent}@container (max-width: 1496px){calcite-card{width:calc(100% / 3 - .5rem)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}}@container (max-width: 1100px){calcite-card{width:calc(50% - .5rem)}#screenshots-subsection calcite-card{width:calc(50% - .5rem)}}@container (max-width: 550px){calcite-card{width:100%}#screenshots-subsection calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}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{border:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding:var(--calcite-spacing-base)}calcite-card.is-mobile:hover img{cursor:default;-webkit-filter:brightness(100%);filter:brightness(100%);transition:all .1s ease}calcite-card{border:var(--calcite-spacing-base) solid transparent;box-sizing:border-box;padding:var(--calcite-spacing-base)}.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{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}#screenshots-subsection .card-image{background-color:var(--calcite-color-surface-2)}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip;display:block}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-surface-3)}.back-color-override-1{background-color:var(--calcite-color-surface-2)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.line-height-xxl{line-height:var(--calcite-spacing-xxl)}.line-height-1{line-height:1.1}.font-1{font-size:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}.font-color-2{color:var(--calcite-color-text-2)}h1{font-weight:unset;margin:var(--calcite-spacing-none);padding:var(--calcite-spacing-none)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-surface-2)}.table-cell{font-size:var(--calcite-spacing-lg);color:var(--calcite-color-text-2);margin:0}.table-cell p{margin:0}calcite-table-header{font-weight:var(--calcite-font-weight-medium);--calcite-internal-table-cell-font-size: var(--calcite-font-size-md)}.position-relative{position:relative}.background-color-2{background-color:var(--calcite-color-surface-3)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.border-none{border:none}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}calcite-shell{block-size:unset}.solution-detail-action{--calcite-color-focus: initial}a{color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:hover{background-size:100% 1px,100% 1px}a:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:active{color:var(--calcite-color-brand-press)}*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.chip-deployed-warn{--calcite-chip-icon-color: var(--calcite-color-status-warning)}`;
|
|
18
|
+
class z extends S {
|
|
87
19
|
constructor() {
|
|
88
|
-
super(), this._deployedTooltipContent = "", this._isDeployDisabled = !1, this._isLoaded = !1, this._itemFetched = !1, this._showScreenshotsShowMore = !1, this._showYouMayAlsoLikeShowMore = !1, this.isMobile = !1, this._isScreenshotsRowExpanded = !1, this._isYouMayAlsoLikeRowExpanded = !1, this._screenshotsRowBaseHeight = 340, this._showLoader = !1, this._templates = [], this._translations =
|
|
89
|
-
context:
|
|
20
|
+
super(), this.readOnlyNotice = "", this._deployedTooltipContent = "", this._isDeployDisabled = !1, this._isLoaded = !1, this._itemFetched = !1, this._showScreenshotsShowMore = !1, this._showYouMayAlsoLikeShowMore = !1, this.isMobile = !1, this._isScreenshotsRowExpanded = !1, this._isYouMayAlsoLikeRowExpanded = !1, this._screenshotsRowBaseHeight = 340, this._showLoader = !1, this._templates = [], this._translations = I({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer = b({
|
|
21
|
+
context: M,
|
|
90
22
|
subscribe: !0
|
|
91
|
-
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef =
|
|
92
|
-
context:
|
|
23
|
+
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = d(), this._deployingDialogRef = d(), this._isMobileContextConsumer = b({
|
|
24
|
+
context: D,
|
|
93
25
|
subscribe: !0,
|
|
94
26
|
callback: (e) => this.isMobile = e
|
|
95
|
-
}), this._overviewAccordionItemElement =
|
|
27
|
+
}), this._overviewAccordionItemElement = d(), this._privilegePopoverRef = d(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = d(), this._relatedResourcesAccordionItemElement = d(), this._screenshotsAccordionItemElement = d(), this._screenshotsDialogRef = d(), this._screenshotsElement = d(), this._termsOfUseAccordionItemElement = d(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = d(), this._youMayAlsoLikeElement = d(), this._signInParamValue = null, this._deploymentStartTime = null, this._pendingDeployedSolutionId = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched = y(), this.itemPropertiesFetched = y(), this.sortTypeChanged = y(), this.tokenRefreshed = y(), this._handleDeployCancelled = () => {
|
|
96
28
|
this._telemetry?.logEvent({
|
|
97
|
-
category:
|
|
29
|
+
category: g.SOLUTION_DETAILS,
|
|
98
30
|
action: "Deploy Dialog Canceled",
|
|
99
31
|
dimensions: [
|
|
100
32
|
this.card?.title || "",
|
|
@@ -102,54 +34,54 @@ class ie extends S {
|
|
|
102
34
|
this.card?.deployVersion || ""
|
|
103
35
|
]
|
|
104
36
|
});
|
|
105
|
-
}, this._handleDeploySuccess = () => {
|
|
106
|
-
const
|
|
107
|
-
this._deploymentStartTime = null, this._deployingDialogRef.value && (this._deployingDialogRef.value.isWaitingForCard = !0), this._telemetry?.logEvent({
|
|
108
|
-
category:
|
|
37
|
+
}, this._handleDeploySuccess = (e) => {
|
|
38
|
+
const t = f(this._deploymentStartTime);
|
|
39
|
+
this._deploymentStartTime = null, this._pendingDeployedSolutionId = e?.detail || null, this._deployingDialogRef.value && (this._deployingDialogRef.value.isWaitingForCard = !0), this._telemetry?.logEvent({
|
|
40
|
+
category: g.SOLUTION_DETAILS,
|
|
109
41
|
action: "Deploy Success",
|
|
110
42
|
dimensions: [
|
|
111
43
|
this.card?.title || "",
|
|
112
44
|
this.card?.deployCommonId || "",
|
|
113
45
|
this.card?.deployVersion || ""
|
|
114
46
|
],
|
|
115
|
-
metrics: [
|
|
47
|
+
metrics: [t]
|
|
116
48
|
});
|
|
117
49
|
}, this._handleDeployedCardReady = async (e) => {
|
|
118
|
-
this._closeDialogs(), await new Promise((
|
|
50
|
+
!this._pendingDeployedSolutionId || e.detail?.card?.id !== this._pendingDeployedSolutionId || (this._pendingDeployedSolutionId = null, this._closeDialogs(), await new Promise((i) => requestAnimationFrame(() => requestAnimationFrame(i))), window.dispatchEvent(new CustomEvent("displayDeployedCard", {
|
|
119
51
|
detail: e.detail
|
|
120
|
-
}));
|
|
121
|
-
}, this._handleDeploymentFallback = () => {
|
|
122
|
-
console.warn("Deployment completed but unable to navigate to deployed card - closing dialogs"), this._closeDialogs(), window.dispatchEvent(new CustomEvent("navTabSelected", {
|
|
52
|
+
})));
|
|
53
|
+
}, this._handleDeploymentFallback = (e) => {
|
|
54
|
+
!this._pendingDeployedSolutionId || e.detail?.solutionId !== this._pendingDeployedSolutionId || (this._pendingDeployedSolutionId = null, console.warn("Deployment completed but unable to navigate to deployed card - closing dialogs"), this._closeDialogs(), window.dispatchEvent(new CustomEvent("navTabSelected", {
|
|
123
55
|
detail: "deployments"
|
|
124
|
-
}));
|
|
56
|
+
})));
|
|
125
57
|
}, this._handleDeploymentProcessCancelled = () => {
|
|
126
|
-
this._cancellationStartTime = Date.now(), this._deployToCancelDuration =
|
|
58
|
+
this._cancellationStartTime = Date.now(), this._deployToCancelDuration = f(this._deploymentStartTime), this._deploymentStartTime = null;
|
|
127
59
|
}, this._handleDeployFailed = (e) => {
|
|
128
|
-
if (this._cancellationStartTime !== null) {
|
|
60
|
+
if (this._pendingDeployedSolutionId = null, this._cancellationStartTime !== null) {
|
|
129
61
|
this._closeDialogs();
|
|
130
62
|
return;
|
|
131
63
|
}
|
|
132
|
-
const t =
|
|
64
|
+
const t = f(this._deploymentStartTime);
|
|
133
65
|
this._deploymentStartTime = null;
|
|
134
|
-
const i =
|
|
66
|
+
const i = V(e.detail?.error), l = i.length > 200 ? i.slice(-200) : i;
|
|
135
67
|
console.error("Deployment failed:", e.detail?.error), this._telemetry?.logEvent({
|
|
136
|
-
category:
|
|
68
|
+
category: g.SOLUTION_DETAILS,
|
|
137
69
|
action: "Deploy Failure",
|
|
138
70
|
dimensions: [
|
|
139
71
|
this.card?.title || "",
|
|
140
72
|
this.card?.deployCommonId || "",
|
|
141
73
|
this.card?.deployVersion || "",
|
|
142
|
-
|
|
74
|
+
l
|
|
143
75
|
],
|
|
144
76
|
metrics: [t]
|
|
145
77
|
}), this._closeDialogs(!0);
|
|
146
78
|
}, this.listenOn(window, "detailsCardSelected", this._detailsCardSelected), this.listenOn(window, "allCardsFetched", this._allCardsFetched), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected), this.listenOn(window, "deployedCardReady", this._handleDeployedCardReady), this.listenOn(window, "deploymentCompletedWithoutNav", this._handleDeploymentFallback);
|
|
147
79
|
}
|
|
148
80
|
static {
|
|
149
|
-
this.properties = { card: 0, _deployedTooltipContent: 16, _isDeployDisabled: 16, _isLoaded: 16, _itemFetched: 16, _showScreenshotsShowMore: 16, _showYouMayAlsoLikeShowMore: 16, isMobile: 16, _isScreenshotsRowExpanded: 16, _isYouMayAlsoLikeRowExpanded: 16, _itemProperties: 16, _missingPrivilegeMessages: 16, _screenshotsRowBaseHeight: 16, _showLoader: 16, _templates: 16, _translations: 16, _youMayAlsoLikeBaseHeight: 16 };
|
|
81
|
+
this.properties = { card: 0, readOnlyNotice: 1, _deployedTooltipContent: 16, _isDeployDisabled: 16, _isLoaded: 16, _itemFetched: 16, _showScreenshotsShowMore: 16, _showYouMayAlsoLikeShowMore: 16, isMobile: 16, _isScreenshotsRowExpanded: 16, _isYouMayAlsoLikeRowExpanded: 16, _itemProperties: 16, _missingPrivilegeMessages: 16, _screenshotsRowBaseHeight: 16, _showLoader: 16, _templates: 16, _translations: 16, _youMayAlsoLikeBaseHeight: 16 };
|
|
150
82
|
}
|
|
151
83
|
static {
|
|
152
|
-
this.styles =
|
|
84
|
+
this.styles = N;
|
|
153
85
|
}
|
|
154
86
|
get _telemetry() {
|
|
155
87
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -173,14 +105,14 @@ class ie extends S {
|
|
|
173
105
|
}
|
|
174
106
|
render() {
|
|
175
107
|
const e = "padding-bottom-1-5", t = this._getRelatedResources(), i = this._getYouMayAlsoLikeCards();
|
|
176
|
-
return
|
|
108
|
+
return o`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="margin-top-875 padding-1-5 back-color-override-1 margin-bottom-1-5" id=solution-details-row>${this._getSolutionRow()}</div><div class=${p(e)}>${this._getScreenshotsRow()}</div><div class=${p(e)}>${this._getOverviewRow()}</div><div class=${p(e)}>${this._getReleaseNotesRow()}</div>${t.length > 0 ? o`<div class=${p(e)}>${this._getRelatedResourcesRow(t)}</div>` : ""}${i.length > 0 ? o`<div class=${p(e)}>${this._getYouMayAlsoLikeRow(i)}</div>` : ""}<div class=${p(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile ? "" : o`<solution-deploy-dialog .card=${this.card} @deployCancelled=${this._handleDeployCancelled} @deployFailed=${this._handleDeployFailed} @deployProgressEnd=${this._handleDeploySuccess} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${h(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${h(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${h(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`;
|
|
177
109
|
}
|
|
178
110
|
updated() {
|
|
179
111
|
setTimeout(() => {
|
|
180
112
|
const e = this._getYouMayAlsoLikeCards();
|
|
181
113
|
let t = 340;
|
|
182
114
|
for (let i = 0; i < e.length; i++) {
|
|
183
|
-
const
|
|
115
|
+
const l = this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`), s = l?.offsetHeight ? l.offsetHeight + 40 : 0;
|
|
184
116
|
s > t && (t = s);
|
|
185
117
|
}
|
|
186
118
|
this._youMayAlsoLikeBaseHeight = t, this._showYouMayAlsoLikeShowMore = (this._youMayAlsoLikeElement.value?.scrollHeight || 0) > this._youMayAlsoLikeBaseHeight, this._showScreenshotsShowMore = (this._screenshotsElement.value?.scrollHeight || 0) > this._screenshotsRowBaseHeight + 2;
|
|
@@ -189,70 +121,73 @@ class ie extends S {
|
|
|
189
121
|
_checkUrlParametersForAutoDeployment() {
|
|
190
122
|
if (this._signInParamValue === "deploy") {
|
|
191
123
|
const t = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
|
|
192
|
-
this._configContextConsumer.value?.authentication?.IsSignedIn && this.card && this._deployDialogRef.value && !t && (this._signInParamValue = null, this._openDeploy());
|
|
124
|
+
this._configContextConsumer.value?.authentication?.IsSignedIn && this.card && this._deployDialogRef.value && !t && !v(this._configContextConsumer.value) && (this._signInParamValue = null, this._openDeploy());
|
|
193
125
|
}
|
|
194
126
|
}
|
|
195
127
|
_getSolutionRow() {
|
|
196
|
-
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0,
|
|
197
|
-
return
|
|
128
|
+
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0, l = this._missingPrivilegeMessages?.bulletedMessages || [], s = l.length > 0, a = this._missingPrivilegeMessages?.trailingMessages || [], r = a.length > 0;
|
|
129
|
+
return o`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title ?? u} src=${e ?? u}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i, s, r, t, l, a)}${this._getButtons()}</div></div>`;
|
|
198
130
|
}
|
|
199
|
-
_getTextSection(e, t, i,
|
|
200
|
-
return
|
|
131
|
+
_getTextSection(e, t, i, l, s, a) {
|
|
132
|
+
return o`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1" tabindex=0>${this.card?.title}</h1>${this.card?.categories?.some((r) => r.includes("New Release")) && o`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>` || ""}${this._renderChips(this.card?.chips || [])}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile ? "" : v(this._configContextConsumer.value) ? o`<div class="display-flex flex-direction-row padding-top-1">${this._getReadOnlyNotice()}</div>` : e || t || i ? o`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(l, s, a)}</div>` : ""}</div>`;
|
|
201
133
|
}
|
|
202
134
|
_renderChips(e) {
|
|
203
|
-
const t = e.filter((s) => s === "deployed" || s === "deployedOlderVersion"), i = e.filter((s) => s !== "deployed" && s !== "deployedOlderVersion"),
|
|
135
|
+
const t = e.filter((s) => s === "deployed" || s === "deployedOlderVersion"), i = e.filter((s) => s !== "deployed" && s !== "deployedOlderVersion"), l = [];
|
|
204
136
|
if (i.forEach((s) => {
|
|
205
|
-
const a = "margin-bottom-1-5 margin-sides-1 chip-status", r = `solution-details-card-chip-${s}`,
|
|
206
|
-
|
|
137
|
+
const a = "margin-bottom-1-5 margin-sides-1 chip-status", r = `solution-details-card-chip-${s}`, c = s === "new" ? "star" : "mega-phone", n = s === "new" ? this._translations.newChip : this._translations.updatedChip;
|
|
138
|
+
l.push(o`<calcite-chip class=${p(a)} .icon=${c} id=${r ?? u} .label=${n} .value=${n} scale=s></calcite-chip><calcite-tooltip .referenceElement=${r}><span>${n}</span></calcite-tooltip>`);
|
|
207
139
|
}), t.length > 0) {
|
|
208
140
|
let s = "margin-bottom-1-5 margin-sides-1 chip-status";
|
|
209
|
-
i.length > 0 ? s = t[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed" : s += t[0] === "deployedOlderVersion" ? " chip-deployed-warn" : " chip-deployed",
|
|
141
|
+
i.length > 0 ? s = t[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed" : s += t[0] === "deployedOlderVersion" ? " chip-deployed-warn" : " chip-deployed", l.push(o`<calcite-chip class=${p(s)} .icon=${t[0] === "deployedOlderVersion" ? "recent" : "check-circle"} id=solution-details-card-chip-deployed .label=${this._translations.deployedChip} .value=${this._translations.deployedChip} scale=s></calcite-chip><calcite-tooltip placement=bottom reference-element=solution-details-card-chip-deployed @calciteTooltipBeforeOpen=${async () => {
|
|
210
142
|
const a = {
|
|
211
143
|
q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
|
|
212
144
|
authentication: this._configContextConsumer.value?.userSession,
|
|
213
145
|
pagingParam: { start: 1, num: 100 }
|
|
214
|
-
}, r = await
|
|
215
|
-
this._deployedTooltipContent =
|
|
146
|
+
}, r = await L.searchItems(a);
|
|
147
|
+
this._deployedTooltipContent = o`<solutions-deployed-list .results=${r} has-links .listTitle=${t[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
216
148
|
}} @calciteTooltipBeforeClose=${() => {
|
|
217
149
|
}}>${this._deployedTooltipContent}</calcite-tooltip>`);
|
|
218
150
|
}
|
|
219
|
-
return
|
|
151
|
+
return l;
|
|
220
152
|
}
|
|
221
153
|
_getButtons() {
|
|
222
|
-
const e = this._itemProperties?.demoURL || "";
|
|
223
|
-
return
|
|
154
|
+
const e = this._itemProperties?.demoURL || "", t = v(this._configContextConsumer.value);
|
|
155
|
+
return o`<div class="display-flex flex-direction-column button-width">${!this.isMobile && o`<calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this._isDeployDisabled || t} icon-flip-rtl=end @click=${() => this._checkPermissionsBeforeDeploy()} scale=m width=full>${this._showLoader ? o`<calcite-loader inline label></calcite-loader>` : this._translations.deployButton}</calcite-button>` || ""}${!this._configContextConsumer.value?.isEnterprise && e && o`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleWatchDemoClick(e)} scale=m width=full>${this._translations.watchDemo}</calcite-button>` || ""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleLearnMoreClick()} scale=m width=full>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise && o`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=m .solutionId=${this.card?.deployCommonId || ""} .solutionTitle=${this.card?.title || ""} .solutionVersion=${this.card?.deployVersion || ""}></solution-social-share>` || ""}</div>`;
|
|
156
|
+
}
|
|
157
|
+
_getReadOnlyNotice() {
|
|
158
|
+
return o`<calcite-notice class="margin-inline-unset" icon=exclamation-mark-triangle kind=warning open scale=s><div slot=message .innerHTML=${this.readOnlyNotice ?? ""}></div></calcite-notice>`;
|
|
224
159
|
}
|
|
225
160
|
_getMissingPrivilegesNotice(e, t, i) {
|
|
226
|
-
const
|
|
227
|
-
return
|
|
161
|
+
const l = "solutions-missing-privileges-notice", s = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges, a = t.length > 0 ? "" : "display-none", r = t.length > 0 ? "padding-top-sm" : "";
|
|
162
|
+
return o`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${s}`}</div><calcite-action icon=information id=${l} slot=actions-end .text=${s}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${h(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${// Leading messages
|
|
228
163
|
this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${a}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${// Bulleted messages
|
|
229
164
|
this._getBulletedMessages(t)}${// Trailing messages
|
|
230
165
|
this._getSpanMessages(i, r)}</div></calcite-popover></div>`;
|
|
231
166
|
}
|
|
232
167
|
_getSpanMessages(e, t) {
|
|
233
|
-
return e.length > 0 ? e.map((i) =>
|
|
168
|
+
return e.length > 0 ? e.map((i) => o`<span class=${p(t)}>${i}</span>`) : "";
|
|
234
169
|
}
|
|
235
170
|
_getBulletedMessages(e) {
|
|
236
|
-
return e.length > 0 ?
|
|
171
|
+
return e.length > 0 ? o`<ul>${e.map((t) => o`<li>${t}</li>`)}</ul>` : "";
|
|
237
172
|
}
|
|
238
173
|
_getScreenshotsRow() {
|
|
239
174
|
const e = this._isScreenshotsRowExpanded ? this._translations.showLess : this._translations.showMore, t = this._isScreenshotsRowExpanded ? "arrow-up" : "arrow-down", i = this._showScreenshotsShowMore ? "" : "display-none";
|
|
240
|
-
return
|
|
175
|
+
return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${h(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${() => {
|
|
241
176
|
this._screenshotsElement.value?.classList.toggle("expanded"), this._isScreenshotsRowExpanded = this._screenshotsElement.value.classList.contains("expanded");
|
|
242
177
|
}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`;
|
|
243
178
|
}
|
|
244
179
|
_getScreenshots() {
|
|
245
|
-
const e = this._itemProperties?.preview.filter((s) => s.format === "image") || [], t = this._configContextConsumer.value, i = this._itemFetched ? "" : "display-none",
|
|
246
|
-
return
|
|
247
|
-
const r =
|
|
248
|
-
let
|
|
249
|
-
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (
|
|
180
|
+
const e = this._itemProperties?.preview.filter((s) => s.format === "image") || [], t = this._configContextConsumer.value, i = this._itemFetched ? "" : "display-none", l = this._itemFetched ? "display-none" : "";
|
|
181
|
+
return o`<calcite-loader class=${p(l)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((s, a) => {
|
|
182
|
+
const r = w(this.card?.id || "", a.name, t.authentication);
|
|
183
|
+
let c;
|
|
184
|
+
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (c = w(this.card?.id || "", a.name, void 0, t.agolPortalUrl)), this.card?.id ? s.push(o`<calcite-card class=${`${this.isMobile ? "is-mobile" : "cursor-pointer not-mobile"}`} .label=${a.alt} @click=${() => this._openScreenshotGallery(a)} @keydown=${(n) => H(n, () => this._openScreenshotGallery(a))}><div class="card-image-wrap" slot=thumbnail><img alt=${a.alt ?? u} class="thumbnail card-image" slot=thumbnail src=${(c || r) ?? u}>${!this.isMobile && o`<div class="hover-text">${this._translations.openInGallery}</div>` || ""}</div></calcite-card>`) : s.push(""), s;
|
|
250
185
|
}, [])}</calcite-card-group>`;
|
|
251
186
|
}
|
|
252
187
|
_openScreenshotGallery(e) {
|
|
253
188
|
if (!this.isMobile) {
|
|
254
189
|
this._telemetry?.logEvent({
|
|
255
|
-
category:
|
|
190
|
+
category: g.SOLUTION_DETAILS,
|
|
256
191
|
action: "Screenshot Gallery",
|
|
257
192
|
dimensions: [
|
|
258
193
|
this.card?.title || "",
|
|
@@ -265,40 +200,40 @@ class ie extends S {
|
|
|
265
200
|
}
|
|
266
201
|
}
|
|
267
202
|
_getOverviewRow() {
|
|
268
|
-
return
|
|
203
|
+
return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`;
|
|
269
204
|
}
|
|
270
205
|
_getDescriptionRow() {
|
|
271
|
-
return
|
|
206
|
+
return o`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" tabindex=0>${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description ?? ""} tabindex=0></div></div>`;
|
|
272
207
|
}
|
|
273
208
|
_getInformationProductsRow() {
|
|
274
|
-
return
|
|
209
|
+
return o`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span tabindex=0>${this.card?.title ? this._translations.informationProductsSubText.replace("{{solutionTitle}}", this.card.title) : ""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p tabindex=0>${this._translations.informationProductsFooterText}</p></div>`;
|
|
275
210
|
}
|
|
276
211
|
_getInformationTableHeaderRow() {
|
|
277
|
-
return
|
|
212
|
+
return o`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`;
|
|
278
213
|
}
|
|
279
214
|
_getInformationTableRows() {
|
|
280
|
-
return (this._itemProperties?.infoProducts || []).map((t) =>
|
|
215
|
+
return (this._itemProperties?.infoProducts || []).map((t) => o`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${m(t.item) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${m(t.description) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${m(t.userType) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
281
216
|
}
|
|
282
217
|
_getReleaseNotesRow() {
|
|
283
|
-
return
|
|
218
|
+
return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`;
|
|
284
219
|
}
|
|
285
220
|
_getReleaseNotesTableHeaderRow() {
|
|
286
|
-
return
|
|
221
|
+
return o`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`;
|
|
287
222
|
}
|
|
288
223
|
_getReleaseNotesTableRows() {
|
|
289
|
-
return (this._itemProperties?.releaseNotes || [])?.map((t) =>
|
|
224
|
+
return (this._itemProperties?.releaseNotes || [])?.map((t) => o`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${m(t.version) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${m(t.description) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
290
225
|
}
|
|
291
226
|
_getRelatedResourcesRow(e) {
|
|
292
|
-
return
|
|
293
|
-
|
|
227
|
+
return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(() => {
|
|
228
|
+
o`<solution-resource-card></solution-resource-card>`;
|
|
294
229
|
})}</div></calcite-accordion-item></calcite-accordion>`;
|
|
295
230
|
}
|
|
296
231
|
_getRelatedResources() {
|
|
297
232
|
return [];
|
|
298
233
|
}
|
|
299
234
|
_getYouMayAlsoLikeRow(e) {
|
|
300
|
-
const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore,
|
|
301
|
-
return
|
|
235
|
+
const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore, l = this._isYouMayAlsoLikeRowExpanded ? "arrow-up" : "arrow-down", s = this._isYouMayAlsoLikeRowExpanded ? "" : { height: `${this._youMayAlsoLikeBaseHeight}px` };
|
|
236
|
+
return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${k(s)} ${h(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((a, r) => o`<solution-details-card .id=${`you-may-also-like-${r}`} .card=${a} class="padding-2px" source=you-may-also-like .referrerSolutionId=${this.card?.deployCommonId || ""} .referrerSolutionTitle=${this.card?.title || ""} .referrerSolutionVersion=${this.card?.deployVersion || ""}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${l} kind=inverse @click=${() => {
|
|
302
237
|
this._youMayAlsoLikeElement.value?.classList.toggle("expanded"), this._isYouMayAlsoLikeRowExpanded = this._youMayAlsoLikeElement.value.classList.contains("expanded");
|
|
303
238
|
}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`;
|
|
304
239
|
}
|
|
@@ -307,13 +242,13 @@ class ie extends S {
|
|
|
307
242
|
return this._allCards.filter((t) => e.indexOf(t.deployCommonId) > -1);
|
|
308
243
|
}
|
|
309
244
|
_getTermsOfUseRow() {
|
|
310
|
-
return
|
|
245
|
+
return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo || "") ?? ""} tabindex=0></div></calcite-accordion-item></calcite-accordion>`;
|
|
311
246
|
}
|
|
312
247
|
_openDeploy() {
|
|
313
248
|
if (this._configContextConsumer.value.authentication.IsSignedIn) {
|
|
314
249
|
const e = this._deployDialogRef.value;
|
|
315
250
|
e && (this._telemetry?.logEvent({
|
|
316
|
-
category:
|
|
251
|
+
category: g.SOLUTION_DETAILS,
|
|
317
252
|
action: "Deploy Dialog Opened",
|
|
318
253
|
dimensions: [
|
|
319
254
|
this.card?.title || "",
|
|
@@ -329,7 +264,7 @@ class ie extends S {
|
|
|
329
264
|
}
|
|
330
265
|
_handleWatchDemoClick(e) {
|
|
331
266
|
this._telemetry?.logEvent({
|
|
332
|
-
category:
|
|
267
|
+
category: g.SOLUTION_DETAILS,
|
|
333
268
|
action: "Watch Demo",
|
|
334
269
|
dimensions: [
|
|
335
270
|
this.card?.title || "",
|
|
@@ -340,7 +275,7 @@ class ie extends S {
|
|
|
340
275
|
}
|
|
341
276
|
_handleLearnMoreClick() {
|
|
342
277
|
this._telemetry?.logEvent({
|
|
343
|
-
category:
|
|
278
|
+
category: g.SOLUTION_DETAILS,
|
|
344
279
|
action: "Open Help",
|
|
345
280
|
dimensions: [
|
|
346
281
|
this.card?.title || "",
|
|
@@ -357,57 +292,57 @@ class ie extends S {
|
|
|
357
292
|
}
|
|
358
293
|
async _getItemData() {
|
|
359
294
|
this._itemFetched = !1;
|
|
360
|
-
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await
|
|
361
|
-
this._itemFetched = !0, this._itemProperties =
|
|
362
|
-
const s =
|
|
363
|
-
this._privileges = t.username ? s : [], this._userPrivileges = e?.authentication
|
|
364
|
-
const a = this._privileges.filter((
|
|
365
|
-
this._missingPrivilegeMessages =
|
|
295
|
+
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await R(this.card.id, t), l = await E(this.card.id, t);
|
|
296
|
+
this._itemFetched = !0, this._itemProperties = l.properties, this.itemPropertiesFetched.emit(this._itemProperties);
|
|
297
|
+
const s = A(i, this.card.typeKeywords, e?.authentication);
|
|
298
|
+
this._privileges = t.username ? s : [], this._userPrivileges = e?.authentication ? e.authentication.PortalUserEnrichedPrivileges : [];
|
|
299
|
+
const a = this._privileges.filter((c) => !this._userPrivileges.includes(c));
|
|
300
|
+
this._missingPrivilegeMessages = O(this._translations, a), this._isDeployDisabled = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
|
|
366
301
|
const r = i.params ? await this.formatParams(i.params) : [];
|
|
367
302
|
this._userOptions = r, this._templates = i.templates, this.templatesFetched.emit(i.templates), this._checkUrlParametersForAutoDeployment(), this._isLoaded = !0, this._showLoader && (this._showLoader = !1, this._isDeployDisabled || this._openDeploy());
|
|
368
303
|
}
|
|
369
304
|
formatParams(e) {
|
|
370
|
-
const t = this._configContextConsumer.value.userSession, i = [],
|
|
305
|
+
const t = this._configContextConsumer.value.userSession, i = [], l = e ? Object.keys(e) : [], s = {
|
|
371
306
|
id: "",
|
|
372
307
|
props: [],
|
|
373
308
|
accordionDisplay: !1
|
|
374
309
|
};
|
|
375
|
-
if (
|
|
310
|
+
if (l.length > 0) {
|
|
376
311
|
const a = [];
|
|
377
|
-
return
|
|
378
|
-
const
|
|
379
|
-
|
|
312
|
+
return l.forEach((r) => {
|
|
313
|
+
const c = e[r];
|
|
314
|
+
c.valueType && c.valueType.toLowerCase() === "itemid" && a.push(this._findExistingItem(r, "Feature Service", t.username || ""));
|
|
380
315
|
}), Promise.all(a).then((r) => {
|
|
381
|
-
const
|
|
316
|
+
const c = {};
|
|
382
317
|
return r.forEach((n) => {
|
|
383
318
|
if (n.query && n.results && n.results.length > 0) {
|
|
384
|
-
const
|
|
385
|
-
|
|
319
|
+
const $ = n.query.split(" ")[0].replace("typekeywords:source-", "");
|
|
320
|
+
c[$] = {
|
|
386
321
|
resultId: n.results[0].id,
|
|
387
322
|
response: n.results[0]
|
|
388
323
|
};
|
|
389
324
|
}
|
|
390
|
-
}),
|
|
325
|
+
}), l.forEach((n) => {
|
|
391
326
|
if (n === "serviceLearnMore") {
|
|
392
327
|
this._configureLearnMore = e[n], alert(this._configureLearnMore), delete e[n];
|
|
393
328
|
return;
|
|
394
329
|
}
|
|
395
|
-
e[n].enterpriseIDMapping && (this._customDeploymentMappings[n] = e[n].enterpriseIDMapping), s.id = n,
|
|
330
|
+
e[n].enterpriseIDMapping && (this._customDeploymentMappings[n] = e[n].enterpriseIDMapping), s.id = n, c[n] && (e[n].existingItemId = c[n].resultId, this.updateUserProp(e[n], c[n].response)), this.updateOption(e[n], s, n);
|
|
396
331
|
}), i.push(s), Promise.resolve(i);
|
|
397
332
|
}).catch(() => Promise.resolve([]));
|
|
398
333
|
} else
|
|
399
334
|
return Promise.resolve([]);
|
|
400
335
|
}
|
|
401
336
|
_findExistingItem(e, t, i) {
|
|
402
|
-
const
|
|
403
|
-
return
|
|
337
|
+
const l = this._configContextConsumer.value.userSession;
|
|
338
|
+
return F(`typekeywords:source-${e} type:${t} owner:${i}`, l);
|
|
404
339
|
}
|
|
405
340
|
updateUserProp(e, t) {
|
|
406
|
-
const i = e.itemType?.toLowerCase() === "feature service",
|
|
407
|
-
return e.responseValue = a ? s : "", e.name = a &&
|
|
341
|
+
const i = e.itemType?.toLowerCase() === "feature service", l = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), s = x(t, i ? "url" : "type", "") || "", a = s !== "" && l.test(s);
|
|
342
|
+
return e.responseValue = a ? s : "", e.name = a && _(t, "name") || "", e.title = a && _(t, "title") || "", e.itemType = a ? _(t, "type") : e.itemType, e.validId = a, e.itemUrl = U(t.id, this._configContextConsumer.value.authentication), a;
|
|
408
343
|
}
|
|
409
344
|
updateOption(e, t, i) {
|
|
410
|
-
const
|
|
345
|
+
const l = e.default || "", s = typeof l, a = l.toString();
|
|
411
346
|
this._setFeatureServiceProps(e);
|
|
412
347
|
const r = this.getValidation(e, a);
|
|
413
348
|
t.props.push({
|
|
@@ -434,15 +369,15 @@ class ie extends S {
|
|
|
434
369
|
});
|
|
435
370
|
}
|
|
436
371
|
_setFeatureServiceProps(e) {
|
|
437
|
-
e.valueType && e.valueType.toLowerCase() === "itemid" &&
|
|
372
|
+
e.valueType && e.valueType.toLowerCase() === "itemid" && P(e, "attributes.required", "true");
|
|
438
373
|
}
|
|
439
374
|
getValidation(e, t) {
|
|
440
|
-
let i = "",
|
|
441
|
-
return
|
|
375
|
+
let i = "", l = _(e, "validation.message") || "", s = !0;
|
|
376
|
+
return _(e, "attributes.required") === "true" && (i = x(e, "validation.expression", "\\S{1,}"), s = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, l = this._translations.configure.invalidID), {
|
|
442
377
|
valid: s,
|
|
443
378
|
validation: {
|
|
444
379
|
expression: i,
|
|
445
|
-
message:
|
|
380
|
+
message: l
|
|
446
381
|
}
|
|
447
382
|
};
|
|
448
383
|
}
|
|
@@ -457,7 +392,7 @@ class ie extends S {
|
|
|
457
392
|
}
|
|
458
393
|
_deployProgressStart(e) {
|
|
459
394
|
this._deploymentStartTime = Date.now(), this._telemetry?.logEvent({
|
|
460
|
-
category:
|
|
395
|
+
category: g.SOLUTION_DETAILS,
|
|
461
396
|
action: "Deploy Started",
|
|
462
397
|
dimensions: [
|
|
463
398
|
this.card?.title || "",
|
|
@@ -472,9 +407,9 @@ class ie extends S {
|
|
|
472
407
|
}
|
|
473
408
|
_closeDialogs(e = !1) {
|
|
474
409
|
if (this._cancellationStartTime !== null) {
|
|
475
|
-
const t =
|
|
410
|
+
const t = f(this._cancellationStartTime);
|
|
476
411
|
this._telemetry?.logEvent({
|
|
477
|
-
category:
|
|
412
|
+
category: g.SOLUTION_DETAILS,
|
|
478
413
|
action: "Deploy Canceled",
|
|
479
414
|
dimensions: [
|
|
480
415
|
this.card?.title || "",
|
|
@@ -490,10 +425,10 @@ class ie extends S {
|
|
|
490
425
|
e.detail === "details" && this.sortTypeChanged.emit("");
|
|
491
426
|
}
|
|
492
427
|
_checkPermissionsBeforeDeploy() {
|
|
493
|
-
this._isLoaded ? this._openDeploy() : this._configContextConsumer.value.authentication?.IsSignedIn ? this._showLoader = !0 : this._openDeploy();
|
|
428
|
+
v(this._configContextConsumer.value) || (this._isLoaded ? this._openDeploy() : this._configContextConsumer.value.authentication?.IsSignedIn ? this._showLoader = !0 : this._openDeploy());
|
|
494
429
|
}
|
|
495
430
|
}
|
|
496
|
-
|
|
431
|
+
C("solution-details-panel", z);
|
|
497
432
|
export {
|
|
498
|
-
|
|
433
|
+
z as SolutionDetailsPanel
|
|
499
434
|
};
|