@esri/solutions-components 5.1.0-next.98 → 5.1.0-next.99
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/{ZPWKF5SM.js → 2ASJ2RMU.js} +1 -1
- package/dist/cdn/{MWMNRIUD.js → 2HLILJFJ.js} +1 -1
- package/dist/cdn/{KLLT6LQO.js → 2MK34V3V.js} +1 -1
- package/dist/cdn/{VRM54VB2.js → 3RJKHADA.js} +1 -1
- package/dist/cdn/{AG22WAP3.js → 44R32SU3.js} +1 -1
- package/dist/cdn/{YDNNXKDK.js → 5AGYVY7S.js} +1 -1
- package/dist/cdn/{2BUUN32T.js → 6ENQ42XY.js} +1 -1
- package/dist/cdn/{63RUMXWC.js → 74OJ22BW.js} +1 -1
- package/dist/cdn/{DSLOJFRD.js → 7RFQ7MW2.js} +1 -1
- package/dist/cdn/{AMEUOI76.js → 7SJP3QTP.js} +1 -1
- package/dist/cdn/{EN6E35NY.js → AOM2RML2.js} +1 -1
- package/dist/cdn/AWQQ3CNF.js +2 -0
- package/dist/cdn/{RTA6KNSK.js → C47FRSF6.js} +1 -1
- package/dist/cdn/{BGXRCU7G.js → CRFLICFH.js} +1 -1
- package/dist/cdn/{NBX7J6DU.js → D5FLGJ5G.js} +1 -1
- package/dist/cdn/{XGZCGPHU.js → DHPZIFHE.js} +1 -1
- package/dist/cdn/{OZE4W3UQ.js → DJFXVUF7.js} +1 -1
- package/dist/cdn/{5K6B2WSQ.js → DOK6WZN3.js} +1 -1
- package/dist/cdn/{BIVYOKLF.js → E63XW5PH.js} +1 -1
- package/dist/cdn/{ZKGLAGUM.js → E6YARJM2.js} +1 -1
- package/dist/cdn/{SAI5O6SI.js → GSK7CUMC.js} +1 -1
- package/dist/cdn/{EVEXF6IH.js → HHVIWWK2.js} +1 -1
- package/dist/cdn/{6HZIF7DC.js → HM4YDFBC.js} +1 -1
- package/dist/cdn/{UYY6JODL.js → IVSYM7YY.js} +1 -1
- package/dist/cdn/{BSXTZCNH.js → J3MAWMYQ.js} +1 -1
- package/dist/cdn/{PVM4ETZ7.js → J6LCEXM3.js} +1 -1
- package/dist/cdn/{QKJ4PGBO.js → J6MVIDTT.js} +1 -1
- package/dist/cdn/JSJWGKKI.js +2 -0
- package/dist/cdn/{G7N3V3YJ.js → JU2VI6UQ.js} +1 -1
- package/dist/cdn/{RX3VLQGY.js → KH2WXNMT.js} +1 -1
- package/dist/cdn/{Y5N6ESUO.js → LEBQMVF6.js} +1 -1
- package/dist/cdn/{FZBIZBOO.js → LOINOBXI.js} +1 -1
- package/dist/cdn/{VFZ2J4EW.js → MZXEOLNG.js} +1 -1
- package/dist/cdn/{2NVL4Z5G.js → NM7MKM5L.js} +1 -1
- package/dist/cdn/{IC2D4LPZ.js → OG6IMWBH.js} +1 -1
- package/dist/cdn/{TTV5UYNT.js → Q6XLTRMA.js} +1 -1
- package/dist/cdn/{OF33IXBV.js → R3QHE3VT.js} +1 -1
- package/dist/cdn/{URVOLZIY.js → TFZ2AK22.js} +1 -1
- package/dist/cdn/{TRBSV6ZY.js → TSEG3YWM.js} +1 -1
- package/dist/cdn/{3JQP6RGM.js → U3YLNV47.js} +1 -1
- package/dist/cdn/{3EVMNCX6.js → UUPARGLA.js} +1 -1
- package/dist/cdn/{6ZRRFBIZ.js → VG6ML5VK.js} +1 -1
- package/dist/cdn/{U6CZXWSF.js → VLBW4YNM.js} +1 -1
- package/dist/cdn/{I2GXCEQM.js → XKFPWKMX.js} +1 -1
- package/dist/cdn/{NEM3F44J.js → Y3PCMVG7.js} +1 -1
- package/dist/cdn/{7RK7YWYV.js → ZS6XB5WK.js} +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-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/solution-item-accordion/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +25 -22
- package/dist/components/solution-details-panel/customElement.d.ts +8 -0
- package/dist/components/solution-details-panel/customElement.js +140 -124
- package/dist/components/solution-details-panel/index.js +2 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +8 -5
- package/package.json +1 -1
- package/dist/cdn/3CDDDNHX.js +0 -2
- package/dist/cdn/QADMFYXT.js +0 -2
|
@@ -1,99 +1,100 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
+
import { u as M } from "../../chunks/useT9n.js";
|
|
4
4
|
import { createRef as h, ref as p } from "lit-html/directives/ref.js";
|
|
5
|
-
import { LitElement as
|
|
5
|
+
import { LitElement as S, createEvent as y, safeClassMap as g, nothing as _, safeStyleMap as T } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as w } from "@arcgis/lumina/context";
|
|
7
|
-
import { c as
|
|
8
|
-
import { css as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { c as D, i as E } from "../../chunks/deployAppContexts.js";
|
|
8
|
+
import { css as L, html as l } from "lit";
|
|
9
|
+
import * as R from "@esri/solution-common";
|
|
10
|
+
import { request as P, getWorkflowBaseURL as A, getWorkflowManagerAuthorized as O, sanitizeHTML as f, getItemDataAsJson as U, getItem as N, getPropWithDefault as $, getProp as v, setCreateProp as F } from "@esri/solution-common";
|
|
11
|
+
import { E as u, g as x, T as m, z as V, A as H } from "../../chunks/interfaces.js";
|
|
12
|
+
import { _findExistingItem as B } from "@esri/solution-deployer";
|
|
13
|
+
import { m as z, n as b, o as Y, s as G, h as W } from "../../chunks/helpers.js";
|
|
14
|
+
import { a as C, g as q } from "../../chunks/common.js";
|
|
14
15
|
import "../../chunks/solution-deploy-dialog.js";
|
|
15
16
|
import "../solution-snapshot-gallery/customElement.js";
|
|
16
17
|
import "../solution-deploying-dialog/customElement.js";
|
|
17
|
-
const
|
|
18
|
-
async function
|
|
18
|
+
const K = L`.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)}`;
|
|
19
|
+
async function j(r, e, t) {
|
|
19
20
|
let i = t;
|
|
20
|
-
return
|
|
21
|
+
return r && (r?.IsEnterprisePortal && await Z(
|
|
21
22
|
"",
|
|
22
23
|
// the portal url
|
|
23
24
|
e
|
|
24
|
-
) && i.push(
|
|
25
|
+
) && i.push(u.NOTEBOOK), await z(e) ? t.push(u.VELOCITY) : r?.PortalUserPrivileges && [
|
|
25
26
|
x.VELOCITYFEEDS,
|
|
26
27
|
x.VELOCITYBIGDATA,
|
|
27
28
|
x.VELOCITYREALTIME
|
|
28
|
-
].forEach((
|
|
29
|
-
const c = t.indexOf(
|
|
29
|
+
].forEach((a) => {
|
|
30
|
+
const c = t.indexOf(a) || -1;
|
|
30
31
|
c !== -1 && t.splice(c, 1);
|
|
31
32
|
}), i = i.concat(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
J(
|
|
34
|
+
ee(r),
|
|
35
|
+
te(r)
|
|
35
36
|
)
|
|
36
|
-
), i = i.concat(
|
|
37
|
+
), i = i.concat(Q(r)), i = i.concat(await X(r))), Promise.resolve(i);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function J(r, e) {
|
|
39
40
|
let t = [];
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
] :
|
|
41
|
+
return r && e ? t = [
|
|
42
|
+
u.TRACKINGADMINANDTRACKING,
|
|
43
|
+
u.TRACKINGADMIN,
|
|
44
|
+
u.TRACKING
|
|
45
|
+
] : r && !e ? t = [u.TRACKINGADMIN] : !r && e && (t = [u.TRACKING]), t;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
) ? [
|
|
47
|
+
function Q(r) {
|
|
48
|
+
return ie(
|
|
49
|
+
r
|
|
50
|
+
) ? [u.HUBPREMIUM] : [];
|
|
50
51
|
}
|
|
51
|
-
async function
|
|
52
|
-
const e =
|
|
52
|
+
async function X(r) {
|
|
53
|
+
const e = r?.RestUserSession;
|
|
53
54
|
if (!e?.username)
|
|
54
55
|
return [];
|
|
55
|
-
const t = await
|
|
56
|
-
return await
|
|
56
|
+
const t = await A(e);
|
|
57
|
+
return await O(t, e) ? [u.WORKFLOW] : [];
|
|
57
58
|
}
|
|
58
|
-
async function
|
|
59
|
-
const t =
|
|
59
|
+
async function Z(r, e) {
|
|
60
|
+
const t = r + "/sharing/rest", i = {
|
|
60
61
|
authentication: e,
|
|
61
62
|
portal: t,
|
|
62
63
|
params: {
|
|
63
64
|
f: "json"
|
|
64
65
|
}
|
|
65
66
|
};
|
|
66
|
-
return
|
|
67
|
+
return P(`${t}/portals/self/servers`, i).then((o) => o?.servers?.find((s) => s.serverFunction.indexOf("NotebookServer") > -1), (o) => (console.error(o), !1));
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
-
const e =
|
|
69
|
+
function ee(r) {
|
|
70
|
+
const e = r?.PortalUserSubset?.privileges, t = [
|
|
70
71
|
"portal:admin:create",
|
|
71
72
|
"portal:admin:delete",
|
|
72
73
|
"portal:admin:update",
|
|
73
74
|
"portal:admin:reassign"
|
|
74
75
|
];
|
|
75
76
|
return e ? t.every(
|
|
76
|
-
(i) => e.some((
|
|
77
|
+
(i) => e.some((o) => o.startsWith(i))
|
|
77
78
|
) : !1;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
80
|
+
function te(r) {
|
|
81
|
+
return r?.PortalSubset?.locationTrackingEnabled || !1;
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
83
|
+
function ie(r) {
|
|
84
|
+
return r?.PortalSubset?.hubPremiumEnabled || !1;
|
|
84
85
|
}
|
|
85
|
-
class
|
|
86
|
+
class se extends S {
|
|
86
87
|
constructor() {
|
|
87
|
-
super(), 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 =
|
|
88
|
-
context:
|
|
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 = M({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer = w({
|
|
89
|
+
context: D,
|
|
89
90
|
subscribe: !0
|
|
90
91
|
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = h(), this._deployingDialogRef = h(), this._isMobileContextConsumer = w({
|
|
91
|
-
context:
|
|
92
|
+
context: E,
|
|
92
93
|
subscribe: !0,
|
|
93
94
|
callback: (e) => this.isMobile = e
|
|
94
|
-
}), this._overviewAccordionItemElement = h(), this._privilegePopoverRef = h(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = h(), this._relatedResourcesAccordionItemElement = h(), this._screenshotsAccordionItemElement = h(), this._screenshotsDialogRef = h(), this._screenshotsElement = h(), this._termsOfUseAccordionItemElement = h(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = h(), this._youMayAlsoLikeElement = h(), this._signInParamValue = null, this._deploymentStartTime = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched =
|
|
95
|
+
}), this._overviewAccordionItemElement = h(), this._privilegePopoverRef = h(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = h(), this._relatedResourcesAccordionItemElement = h(), this._screenshotsAccordionItemElement = h(), this._screenshotsDialogRef = h(), this._screenshotsElement = h(), this._termsOfUseAccordionItemElement = h(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = h(), this._youMayAlsoLikeElement = h(), this._signInParamValue = null, this._deploymentStartTime = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched = y(), this.itemPropertiesFetched = y(), this.sortTypeChanged = y(), this.tokenRefreshed = y(), this._handleDeployCancelled = () => {
|
|
95
96
|
this._telemetry?.logEvent({
|
|
96
|
-
category:
|
|
97
|
+
category: m.SOLUTION_DETAILS,
|
|
97
98
|
action: "Deploy Dialog Canceled",
|
|
98
99
|
dimensions: [
|
|
99
100
|
this.card?.title || "",
|
|
@@ -104,7 +105,7 @@ class te extends C {
|
|
|
104
105
|
}, this._handleDeploySuccess = () => {
|
|
105
106
|
const e = b(this._deploymentStartTime);
|
|
106
107
|
this._deploymentStartTime = null, this._deployingDialogRef.value && (this._deployingDialogRef.value.isWaitingForCard = !0), this._telemetry?.logEvent({
|
|
107
|
-
category:
|
|
108
|
+
category: m.SOLUTION_DETAILS,
|
|
108
109
|
action: "Deploy Success",
|
|
109
110
|
dimensions: [
|
|
110
111
|
this.card?.title || "",
|
|
@@ -130,25 +131,25 @@ class te extends C {
|
|
|
130
131
|
}
|
|
131
132
|
const t = b(this._deploymentStartTime);
|
|
132
133
|
this._deploymentStartTime = null;
|
|
133
|
-
const i =
|
|
134
|
+
const i = Y(e.detail?.error), o = i.length > 200 ? i.slice(-200) : i;
|
|
134
135
|
console.error("Deployment failed:", e.detail?.error), this._telemetry?.logEvent({
|
|
135
|
-
category:
|
|
136
|
+
category: m.SOLUTION_DETAILS,
|
|
136
137
|
action: "Deploy Failure",
|
|
137
138
|
dimensions: [
|
|
138
139
|
this.card?.title || "",
|
|
139
140
|
this.card?.deployCommonId || "",
|
|
140
141
|
this.card?.deployVersion || "",
|
|
141
|
-
|
|
142
|
+
o
|
|
142
143
|
],
|
|
143
144
|
metrics: [t]
|
|
144
145
|
}), this._closeDialogs(!0);
|
|
145
146
|
}, 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);
|
|
146
147
|
}
|
|
147
148
|
static {
|
|
148
|
-
this.properties = { card: 0, _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 };
|
|
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 };
|
|
149
150
|
}
|
|
150
151
|
static {
|
|
151
|
-
this.styles =
|
|
152
|
+
this.styles = K;
|
|
152
153
|
}
|
|
153
154
|
get _telemetry() {
|
|
154
155
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -160,7 +161,7 @@ class te extends C {
|
|
|
160
161
|
this._isMobileContextConsumer.value && (this.isMobile = this._isMobileContextConsumer.value);
|
|
161
162
|
}
|
|
162
163
|
willUpdate(e) {
|
|
163
|
-
e.has("card") && (this._isDeployDisabled = !1, this._isLoaded = !1, this._showLoader = !1, this._signInParamValue === "deploy" && (this._showLoader = !0, this._signInParamValue = null));
|
|
164
|
+
e.has("card") && (this._deployedTooltipContent = "", this._isDeployDisabled = !1, this._isLoaded = !1, this._showLoader = !1, this._signInParamValue === "deploy" && (this._showLoader = !0, this._signInParamValue = null));
|
|
164
165
|
}
|
|
165
166
|
loaded() {
|
|
166
167
|
this._signInParamValue === null && this._configContextConsumer.value?.authentication?.SignInParam && (this._signInParamValue = this._configContextConsumer.value.authentication.SignInParam), this._resizeObserver = new ResizeObserver(async () => {
|
|
@@ -172,15 +173,15 @@ class te extends C {
|
|
|
172
173
|
}
|
|
173
174
|
render() {
|
|
174
175
|
const e = "padding-bottom-1-5", t = this._getRelatedResources(), i = this._getYouMayAlsoLikeCards();
|
|
175
|
-
return l`<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=${
|
|
176
|
+
return l`<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=${g(e)}>${this._getScreenshotsRow()}</div><div class=${g(e)}>${this._getOverviewRow()}</div><div class=${g(e)}>${this._getReleaseNotesRow()}</div>${t.length > 0 ? l`<div class=${g(e)}>${this._getRelatedResourcesRow(t)}</div>` : ""}${i.length > 0 ? l`<div class=${g(e)}>${this._getYouMayAlsoLikeRow(i)}</div>` : ""}<div class=${g(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile ? "" : l`<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} ${p(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${p(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${p(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`;
|
|
176
177
|
}
|
|
177
178
|
updated() {
|
|
178
179
|
setTimeout(() => {
|
|
179
180
|
const e = this._getYouMayAlsoLikeCards();
|
|
180
181
|
let t = 340;
|
|
181
182
|
for (let i = 0; i < e.length; i++) {
|
|
182
|
-
const
|
|
183
|
-
|
|
183
|
+
const o = this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`), s = o?.offsetHeight ? o.offsetHeight + 40 : 0;
|
|
184
|
+
s > t && (t = s);
|
|
184
185
|
}
|
|
185
186
|
this._youMayAlsoLikeBaseHeight = t, this._showYouMayAlsoLikeShowMore = (this._youMayAlsoLikeElement.value?.scrollHeight || 0) > this._youMayAlsoLikeBaseHeight, this._showScreenshotsShowMore = (this._screenshotsElement.value?.scrollHeight || 0) > this._screenshotsRowBaseHeight + 2;
|
|
186
187
|
}, 100);
|
|
@@ -192,25 +193,40 @@ class te extends C {
|
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
_getSolutionRow() {
|
|
195
|
-
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0,
|
|
196
|
-
return l`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title ??
|
|
197
|
-
}
|
|
198
|
-
_getTextSection(e, t, i, s, a
|
|
199
|
-
return l`<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((c) => c.includes("New Release")) && l`<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>` || ""}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile ? "" : e || t || i ? l`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s, a
|
|
196
|
+
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0, o = this._missingPrivilegeMessages?.bulletedMessages || [], s = o.length > 0, a = this._missingPrivilegeMessages?.trailingMessages || [], c = a.length > 0;
|
|
197
|
+
return l`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title ?? _} src=${e ?? _}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i, s, c, t, o, a)}${this._getButtons()}</div></div>`;
|
|
198
|
+
}
|
|
199
|
+
_getTextSection(e, t, i, o, s, a) {
|
|
200
|
+
return l`<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((c) => c.includes("New Release")) && l`<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 ? "" : e || t || i ? l`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(o, s, a)}</div>` : ""}</div>`;
|
|
201
|
+
}
|
|
202
|
+
_renderChips(e) {
|
|
203
|
+
const t = e.filter((s) => s === "deployed" || s === "deployedOlderVersion"), i = e.filter((s) => s !== "deployed" && s !== "deployedOlderVersion"), o = [];
|
|
204
|
+
return i.forEach((s) => {
|
|
205
|
+
const a = "margin-bottom-1-5 margin-sides-1 chip-status", c = `solution-details-card-chip-${s}`, d = s === "new" ? "star" : "mega-phone", n = s === "new" ? this._translations.newChip : this._translations.updatedChip;
|
|
206
|
+
o.push(l`<calcite-chip class=${g(a)} .icon=${d} id=${c ?? _} .label=${n} .value=${n} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${n}</span></calcite-tooltip>`);
|
|
207
|
+
}), t.length > 0 && o.push(l`<calcite-chip class="chip-deployed" .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 () => {
|
|
208
|
+
const s = {
|
|
209
|
+
q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
|
|
210
|
+
authentication: this._configContextConsumer.value?.userSession,
|
|
211
|
+
pagingParam: { start: 1, num: 100 }
|
|
212
|
+
}, a = await R.searchItems(s);
|
|
213
|
+
this._deployedTooltipContent = l`<solutions-deployed-list .cards=${G(a.results)} has-links .listTitle=${t[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
214
|
+
}} @calciteTooltipBeforeClose=${() => {
|
|
215
|
+
}}>${this._deployedTooltipContent}</calcite-tooltip>`), o;
|
|
200
216
|
}
|
|
201
217
|
_getButtons() {
|
|
202
218
|
const e = this._itemProperties?.demoURL || "";
|
|
203
219
|
return l`<div class="display-flex flex-direction-column button-width">${!this.isMobile && l`<calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this._isDeployDisabled} icon-flip-rtl=end @click=${() => this._checkPermissionsBeforeDeploy()} scale=m>${this._showLoader ? l`<calcite-loader inline label></calcite-loader>` : this._translations.deployButton}</calcite-button>` || ""}${!this._configContextConsumer.value?.isEnterprise && e && l`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleWatchDemoClick(e)} scale=m>${this._translations.watchDemo}</calcite-button>` || ""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleLearnMoreClick()} scale=m>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise && l`<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>`;
|
|
204
220
|
}
|
|
205
221
|
_getMissingPrivilegesNotice(e, t, i) {
|
|
206
|
-
const
|
|
207
|
-
return l`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${
|
|
208
|
-
this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${
|
|
222
|
+
const o = "solutions-missing-privileges-notice", s = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges, a = t.length > 0 ? "" : "display-none", c = t.length > 0 ? "padding-top-sm" : "";
|
|
223
|
+
return l`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${s}`}</div><calcite-action icon=information id=${o} slot=actions-end .text=${s}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${p(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${// Leading messages
|
|
224
|
+
this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${a}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${// Bulleted messages
|
|
209
225
|
this._getBulletedMessages(t)}${// Trailing messages
|
|
210
226
|
this._getSpanMessages(i, c)}</div></calcite-popover></div>`;
|
|
211
227
|
}
|
|
212
228
|
_getSpanMessages(e, t) {
|
|
213
|
-
return e.length > 0 ? e.map((i) => l`<span class=${
|
|
229
|
+
return e.length > 0 ? e.map((i) => l`<span class=${g(t)}>${i}</span>`) : "";
|
|
214
230
|
}
|
|
215
231
|
_getBulletedMessages(e) {
|
|
216
232
|
return e.length > 0 ? l`<ul>${e.map((t) => l`<li>${t}</li>`)}</ul>` : "";
|
|
@@ -222,17 +238,17 @@ class te extends C {
|
|
|
222
238
|
}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`;
|
|
223
239
|
}
|
|
224
240
|
_getScreenshots() {
|
|
225
|
-
const e = this._itemProperties?.preview.filter((
|
|
226
|
-
return l`<calcite-loader class=${
|
|
227
|
-
const c =
|
|
241
|
+
const e = this._itemProperties?.preview.filter((s) => s.format === "image") || [], t = this._configContextConsumer.value, i = this._itemFetched ? "" : "display-none", o = this._itemFetched ? "display-none" : "";
|
|
242
|
+
return l`<calcite-loader class=${g(o)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((s, a) => {
|
|
243
|
+
const c = C(this.card?.id || "", a.name, t.authentication);
|
|
228
244
|
let d;
|
|
229
|
-
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (d =
|
|
245
|
+
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (d = C(this.card?.id || "", a.name, void 0, t.agolPortalUrl)), this.card?.id ? s.push(l`<calcite-card class=${`${this.isMobile ? "is-mobile" : "cursor-pointer not-mobile"}`} .label=${a.alt} @click=${() => this._openScreenshotGallery(a)} @keydown=${(n) => W(n, () => this._openScreenshotGallery(a))}><div class="card-image-wrap" slot=thumbnail><img alt=${a.alt ?? _} class="thumbnail card-image" slot=thumbnail src=${(d || c) ?? _}>${!this.isMobile && l`<div class="hover-text">${this._translations.openInGallery}</div>` || ""}</div></calcite-card>`) : s.push(""), s;
|
|
230
246
|
}, [])}</calcite-card-group>`;
|
|
231
247
|
}
|
|
232
248
|
_openScreenshotGallery(e) {
|
|
233
249
|
if (!this.isMobile) {
|
|
234
250
|
this._telemetry?.logEvent({
|
|
235
|
-
category:
|
|
251
|
+
category: m.SOLUTION_DETAILS,
|
|
236
252
|
action: "Screenshot Gallery",
|
|
237
253
|
dimensions: [
|
|
238
254
|
this.card?.title || "",
|
|
@@ -257,7 +273,7 @@ class te extends C {
|
|
|
257
273
|
return l`<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>`;
|
|
258
274
|
}
|
|
259
275
|
_getInformationTableRows() {
|
|
260
|
-
return (this._itemProperties?.infoProducts || []).map((t) => l`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${
|
|
276
|
+
return (this._itemProperties?.infoProducts || []).map((t) => l`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${f(t.item) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${f(t.description) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${f(t.userType) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
261
277
|
}
|
|
262
278
|
_getReleaseNotesRow() {
|
|
263
279
|
return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(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>`;
|
|
@@ -266,7 +282,7 @@ class te extends C {
|
|
|
266
282
|
return l`<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>`;
|
|
267
283
|
}
|
|
268
284
|
_getReleaseNotesTableRows() {
|
|
269
|
-
return (this._itemProperties?.releaseNotes || [])?.map((t) => l`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${
|
|
285
|
+
return (this._itemProperties?.releaseNotes || [])?.map((t) => l`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${f(t.version) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${f(t.description) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
270
286
|
}
|
|
271
287
|
_getRelatedResourcesRow(e) {
|
|
272
288
|
return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(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(() => {
|
|
@@ -277,8 +293,8 @@ class te extends C {
|
|
|
277
293
|
return [];
|
|
278
294
|
}
|
|
279
295
|
_getYouMayAlsoLikeRow(e) {
|
|
280
|
-
const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore,
|
|
281
|
-
return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(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=${
|
|
296
|
+
const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore, o = this._isYouMayAlsoLikeRowExpanded ? "arrow-up" : "arrow-down", s = this._isYouMayAlsoLikeRowExpanded ? "" : { height: `${this._youMayAlsoLikeBaseHeight}px` };
|
|
297
|
+
return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(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=${T(s)} ${p(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((a, c) => l`<solution-details-card .id=${`you-may-also-like-${c}`} .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=${o} kind=inverse @click=${() => {
|
|
282
298
|
this._youMayAlsoLikeElement.value?.classList.toggle("expanded"), this._isYouMayAlsoLikeRowExpanded = this._youMayAlsoLikeElement.value.classList.contains("expanded");
|
|
283
299
|
}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`;
|
|
284
300
|
}
|
|
@@ -293,7 +309,7 @@ class te extends C {
|
|
|
293
309
|
if (this._configContextConsumer.value.authentication.IsSignedIn) {
|
|
294
310
|
const e = this._deployDialogRef.value;
|
|
295
311
|
e && (this._telemetry?.logEvent({
|
|
296
|
-
category:
|
|
312
|
+
category: m.SOLUTION_DETAILS,
|
|
297
313
|
action: "Deploy Dialog Opened",
|
|
298
314
|
dimensions: [
|
|
299
315
|
this.card?.title || "",
|
|
@@ -309,7 +325,7 @@ class te extends C {
|
|
|
309
325
|
}
|
|
310
326
|
_handleWatchDemoClick(e) {
|
|
311
327
|
this._telemetry?.logEvent({
|
|
312
|
-
category:
|
|
328
|
+
category: m.SOLUTION_DETAILS,
|
|
313
329
|
action: "Watch Demo",
|
|
314
330
|
dimensions: [
|
|
315
331
|
this.card?.title || "",
|
|
@@ -320,7 +336,7 @@ class te extends C {
|
|
|
320
336
|
}
|
|
321
337
|
_handleLearnMoreClick() {
|
|
322
338
|
this._telemetry?.logEvent({
|
|
323
|
-
category:
|
|
339
|
+
category: m.SOLUTION_DETAILS,
|
|
324
340
|
action: "Open Help",
|
|
325
341
|
dimensions: [
|
|
326
342
|
this.card?.title || "",
|
|
@@ -337,62 +353,62 @@ class te extends C {
|
|
|
337
353
|
}
|
|
338
354
|
async _getItemData() {
|
|
339
355
|
this._itemFetched = !1;
|
|
340
|
-
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await
|
|
341
|
-
this._itemFetched = !0, this._itemProperties =
|
|
342
|
-
const
|
|
343
|
-
this._privileges = t.username ?
|
|
344
|
-
const
|
|
345
|
-
this._missingPrivilegeMessages = H(this._translations,
|
|
356
|
+
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await U(this.card.id, t), o = await N(this.card.id, t);
|
|
357
|
+
this._itemFetched = !0, this._itemProperties = o.properties, this.itemPropertiesFetched.emit(this._itemProperties);
|
|
358
|
+
const s = V(i, this.card.typeKeywords, e?.authentication);
|
|
359
|
+
this._privileges = t.username ? s : [], this._userPrivileges = e?.authentication && e?.userSession ? await j(e.authentication, e.userSession, e.authentication.PortalUserPrivileges) : [];
|
|
360
|
+
const a = this._privileges.filter((d) => !this._userPrivileges.includes(d));
|
|
361
|
+
this._missingPrivilegeMessages = H(this._translations, a), this._isDeployDisabled = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
|
|
346
362
|
const c = i.params ? await this.formatParams(i.params) : [];
|
|
347
363
|
this._userOptions = c, this._templates = i.templates, this.templatesFetched.emit(i.templates), this._checkUrlParametersForAutoDeployment(), this._isLoaded = !0, this._showLoader && (this._showLoader = !1, this._isDeployDisabled || this._openDeploy());
|
|
348
364
|
}
|
|
349
365
|
formatParams(e) {
|
|
350
|
-
const t = this._configContextConsumer.value.userSession, i = [],
|
|
366
|
+
const t = this._configContextConsumer.value.userSession, i = [], o = e ? Object.keys(e) : [], s = {
|
|
351
367
|
id: "",
|
|
352
368
|
props: [],
|
|
353
369
|
accordionDisplay: !1
|
|
354
370
|
};
|
|
355
|
-
if (
|
|
356
|
-
const
|
|
357
|
-
return
|
|
371
|
+
if (o.length > 0) {
|
|
372
|
+
const a = [];
|
|
373
|
+
return o.forEach((c) => {
|
|
358
374
|
const d = e[c];
|
|
359
|
-
d.valueType && d.valueType.toLowerCase() === "itemid" &&
|
|
360
|
-
}), Promise.all(
|
|
375
|
+
d.valueType && d.valueType.toLowerCase() === "itemid" && a.push(this._findExistingItem(c, "Feature Service", t.username || ""));
|
|
376
|
+
}), Promise.all(a).then((c) => {
|
|
361
377
|
const d = {};
|
|
362
|
-
return c.forEach((
|
|
363
|
-
if (
|
|
364
|
-
const
|
|
365
|
-
d[
|
|
366
|
-
resultId:
|
|
367
|
-
response:
|
|
378
|
+
return c.forEach((n) => {
|
|
379
|
+
if (n.query && n.results && n.results.length > 0) {
|
|
380
|
+
const I = n.query.split(" ")[0].replace("typekeywords:source-", "");
|
|
381
|
+
d[I] = {
|
|
382
|
+
resultId: n.results[0].id,
|
|
383
|
+
response: n.results[0]
|
|
368
384
|
};
|
|
369
385
|
}
|
|
370
|
-
}),
|
|
371
|
-
if (
|
|
372
|
-
this._configureLearnMore = e[
|
|
386
|
+
}), o.forEach((n) => {
|
|
387
|
+
if (n === "serviceLearnMore") {
|
|
388
|
+
this._configureLearnMore = e[n], alert(this._configureLearnMore), delete e[n];
|
|
373
389
|
return;
|
|
374
390
|
}
|
|
375
|
-
e[
|
|
376
|
-
}), i.push(
|
|
391
|
+
e[n].enterpriseIDMapping && (this._customDeploymentMappings[n] = e[n].enterpriseIDMapping), s.id = n, d[n] && (e[n].existingItemId = d[n].resultId, this.updateUserProp(e[n], d[n].response)), this.updateOption(e[n], s, n);
|
|
392
|
+
}), i.push(s), Promise.resolve(i);
|
|
377
393
|
}).catch(() => Promise.resolve([]));
|
|
378
394
|
} else
|
|
379
395
|
return Promise.resolve([]);
|
|
380
396
|
}
|
|
381
397
|
_findExistingItem(e, t, i) {
|
|
382
|
-
const
|
|
383
|
-
return
|
|
398
|
+
const o = this._configContextConsumer.value.userSession;
|
|
399
|
+
return B(`typekeywords:source-${e} type:${t} owner:${i}`, o);
|
|
384
400
|
}
|
|
385
401
|
updateUserProp(e, t) {
|
|
386
|
-
const i = e.itemType?.toLowerCase() === "feature service",
|
|
387
|
-
return e.responseValue =
|
|
402
|
+
const i = e.itemType?.toLowerCase() === "feature service", o = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), s = $(t, i ? "url" : "type", "") || "", a = s !== "" && o.test(s);
|
|
403
|
+
return e.responseValue = a ? s : "", e.name = a && v(t, "name") || "", e.title = a && v(t, "title") || "", e.itemType = a ? v(t, "type") : e.itemType, e.validId = a, e.itemUrl = q(t.id, this._configContextConsumer.value.authentication), a;
|
|
388
404
|
}
|
|
389
405
|
updateOption(e, t, i) {
|
|
390
|
-
const
|
|
406
|
+
const o = e.default || "", s = typeof o, a = o.toString();
|
|
391
407
|
this._setFeatureServiceProps(e);
|
|
392
|
-
const c = this.getValidation(e,
|
|
408
|
+
const c = this.getValidation(e, a);
|
|
393
409
|
t.props.push({
|
|
394
410
|
id: i,
|
|
395
|
-
outType:
|
|
411
|
+
outType: s,
|
|
396
412
|
prop: i,
|
|
397
413
|
itemType: e.itemType || "",
|
|
398
414
|
responseValue: e.responseValue || "",
|
|
@@ -400,10 +416,10 @@ class te extends C {
|
|
|
400
416
|
choices: e.choices || [],
|
|
401
417
|
valueType: e.valueType.toLowerCase(),
|
|
402
418
|
attributes: e.attributes || {},
|
|
403
|
-
value: e.existingItemId && e.valueType.toLowerCase() === "itemid" ? e.existingItemId :
|
|
404
|
-
default:
|
|
405
|
-
srSearchText:
|
|
406
|
-
autoSelect:
|
|
419
|
+
value: e.existingItemId && e.valueType.toLowerCase() === "itemid" ? e.existingItemId : a,
|
|
420
|
+
default: a,
|
|
421
|
+
srSearchText: a,
|
|
422
|
+
autoSelect: a !== "",
|
|
407
423
|
...c,
|
|
408
424
|
loading: !1,
|
|
409
425
|
validId: !0,
|
|
@@ -414,15 +430,15 @@ class te extends C {
|
|
|
414
430
|
});
|
|
415
431
|
}
|
|
416
432
|
_setFeatureServiceProps(e) {
|
|
417
|
-
e.valueType && e.valueType.toLowerCase() === "itemid" &&
|
|
433
|
+
e.valueType && e.valueType.toLowerCase() === "itemid" && F(e, "attributes.required", "true");
|
|
418
434
|
}
|
|
419
435
|
getValidation(e, t) {
|
|
420
|
-
let i = "",
|
|
421
|
-
return
|
|
422
|
-
valid:
|
|
436
|
+
let i = "", o = v(e, "validation.message") || "", s = !0;
|
|
437
|
+
return v(e, "attributes.required") === "true" && (i = $(e, "validation.expression", "\\S{1,}"), s = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, o = this._translations.configure.invalidID), {
|
|
438
|
+
valid: s,
|
|
423
439
|
validation: {
|
|
424
440
|
expression: i,
|
|
425
|
-
message:
|
|
441
|
+
message: o
|
|
426
442
|
}
|
|
427
443
|
};
|
|
428
444
|
}
|
|
@@ -437,7 +453,7 @@ class te extends C {
|
|
|
437
453
|
}
|
|
438
454
|
_deployProgressStart(e) {
|
|
439
455
|
this._deploymentStartTime = Date.now(), this._telemetry?.logEvent({
|
|
440
|
-
category:
|
|
456
|
+
category: m.SOLUTION_DETAILS,
|
|
441
457
|
action: "Deploy Started",
|
|
442
458
|
dimensions: [
|
|
443
459
|
this.card?.title || "",
|
|
@@ -454,7 +470,7 @@ class te extends C {
|
|
|
454
470
|
if (this._cancellationStartTime !== null) {
|
|
455
471
|
const t = b(this._cancellationStartTime);
|
|
456
472
|
this._telemetry?.logEvent({
|
|
457
|
-
category:
|
|
473
|
+
category: m.SOLUTION_DETAILS,
|
|
458
474
|
action: "Deploy Canceled",
|
|
459
475
|
dimensions: [
|
|
460
476
|
this.card?.title || "",
|
|
@@ -473,7 +489,7 @@ class te extends C {
|
|
|
473
489
|
this._isLoaded ? this._openDeploy() : this._configContextConsumer.value.authentication?.IsSignedIn ? this._showLoader = !0 : this._openDeploy();
|
|
474
490
|
}
|
|
475
491
|
}
|
|
476
|
-
|
|
492
|
+
k("solution-details-panel", se);
|
|
477
493
|
export {
|
|
478
|
-
|
|
494
|
+
se as SolutionDetailsPanel
|
|
479
495
|
};
|
|
@@ -4,6 +4,8 @@ import "../solution-deploy-dialog/index.js";
|
|
|
4
4
|
import "../solution-snapshot-gallery/index.js";
|
|
5
5
|
import "../solution-deploying-dialog/index.js";
|
|
6
6
|
import "@esri/calcite-components/components/calcite-chip";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-tooltip";
|
|
8
|
+
import "../solutions-deployed-list/index.js";
|
|
7
9
|
import "@esri/calcite-components/components/calcite-button";
|
|
8
10
|
import "@esri/calcite-components/components/calcite-loader";
|
|
9
11
|
import "../solution-social-share/index.js";
|