@esri/solutions-components 5.1.0-next.150 → 5.1.0-next.152
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/{KH5WPLZK.js → 2BM4W44V.js} +1 -1
- package/dist/cdn/{6K3C5JX2.js → 2HAYT46E.js} +1 -1
- package/dist/cdn/3RKQYXNE.js +2 -0
- package/dist/cdn/{7WYPODAB.js → 3S5PVZVU.js} +1 -1
- package/dist/cdn/3TIQRBWC.js +2 -0
- package/dist/cdn/4QOD7X43.js +2 -0
- package/dist/cdn/{YWALGZAG.js → 63ZMLOEP.js} +1 -1
- package/dist/cdn/{GRQLB7ZG.js → 7GVN2XEM.js} +1 -1
- package/dist/cdn/BAFYN4RD.js +2 -0
- package/dist/cdn/C4KWJ3PL.js +2 -0
- package/dist/cdn/{ZNH7LRND.js → EKUENEEW.js} +1 -1
- package/dist/cdn/{TKOGOWYQ.js → EVMBOT65.js} +27 -27
- package/dist/cdn/{W7I22AW3.js → FNTXI57U.js} +1 -1
- package/dist/cdn/{4SBOBTOR.js → FWRT4BPD.js} +1 -1
- package/dist/cdn/{Q2DJUFVO.js → FZKGL66L.js} +1 -1
- package/dist/cdn/{7Q5BT35O.js → G6EZOEPB.js} +1 -1
- package/dist/cdn/{LTLR4VF3.js → GMSG7ZRV.js} +1 -1
- package/dist/cdn/{KETYOYXQ.js → IC6KIGR4.js} +1 -1
- package/dist/cdn/{RMO244NW.js → KV76ATT5.js} +1 -1
- package/dist/cdn/LGZDNUGT.js +2 -0
- package/dist/cdn/{PP7EF7UU.js → LQ4BLDUU.js} +1 -1
- package/dist/cdn/{YTU2BYBP.js → M73VTGBI.js} +1 -1
- package/dist/cdn/{Q35DDH7J.js → MDXI36JJ.js} +7 -7
- package/dist/cdn/{BH42V5CR.js → N7VSZ2CS.js} +1 -1
- package/dist/cdn/{G3C6IL5Y.js → OAEWZFWV.js} +1 -1
- package/dist/cdn/{6VCG2ITQ.js → ON244IGD.js} +1 -1
- package/dist/cdn/{6AUKNSKW.js → QD22B6N2.js} +1 -1
- package/dist/cdn/{4FRYNYQ6.js → QGDR24DC.js} +1 -1
- package/dist/cdn/{WXL7GVUU.js → RBYAQRK6.js} +1 -1
- package/dist/cdn/{42GXADY4.js → RUVOSMTB.js} +1 -1
- package/dist/cdn/{Y37QLEAM.js → S4VDUHA7.js} +1 -1
- package/dist/cdn/TLM7N22U.js +2 -0
- package/dist/cdn/{3A2YSBVB.js → TOIBA2KF.js} +1 -1
- package/dist/cdn/{DQQTSOMQ.js → UIGRRD7P.js} +1 -1
- package/dist/cdn/{FWLPMS4Q.js → VY5TD3VS.js} +1 -1
- package/dist/cdn/X65HFYH4.js +2 -0
- package/dist/cdn/{4DAGSZIC.js → XK36P3C4.js} +1 -1
- package/dist/cdn/{757HAEJS.js → ZCLYSOQM.js} +1 -1
- package/dist/cdn/{QDKHYQJB.js → ZOF7AUSS.js} +1 -1
- package/dist/cdn/{YFJZN5K5.js → ZVXEOW2X.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/interfaces.js +9 -9
- package/dist/chunks/solution-builder-assistant.js +5 -3
- package/dist/components/arcgis-solutions-assistant/customElement.js +195 -170
- package/dist/components/solution-builder-assistant/index.js +2 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +19 -19
- package/dist/components/solution-details-panel/customElement.js +98 -72
- package/dist/components/solutions-deploy-app/customElement.js +22 -18
- package/dist/components/solutions-deploy-app/index.js +2 -0
- package/dist/components/solutions-resources-section/customElement.js +4 -4
- package/dist/components/solutions-resources-shell/customElement.d.ts +4 -3
- package/dist/components/solutions-resources-shell/customElement.js +95 -53
- 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 +1 -1
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/4RJURJQ5.js +0 -2
- package/dist/cdn/DO7NLLUV.js +0 -2
- package/dist/cdn/JMBANG5V.js +0 -2
- package/dist/cdn/OANAQ6HY.js +0 -2
- package/dist/cdn/RY6KZ77P.js +0 -2
- package/dist/cdn/UCQJWFUW.js +0 -2
- package/dist/cdn/XEF5G3BC.js +0 -2
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as M } from "../../chunks/useT9n.js";
|
|
4
4
|
import { createRef as d, ref as h } from "lit-html/directives/ref.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { useContextConsumer as
|
|
7
|
-
import { c as
|
|
8
|
-
import { css as
|
|
9
|
-
import * as
|
|
10
|
-
import { sanitizeHTML as
|
|
5
|
+
import { LitElement as I, createEvent as f, safeClassMap as p, nothing as u, safeStyleMap as D } from "@arcgis/lumina";
|
|
6
|
+
import { useContextConsumer as w } from "@arcgis/lumina/context";
|
|
7
|
+
import { c as T, i as L } from "../../chunks/deployAppContexts.js";
|
|
8
|
+
import { css as E, html as l } from "lit";
|
|
9
|
+
import * as x from "@esri/solution-common";
|
|
10
|
+
import { sanitizeHTML as y, getItemDataAsJson as R, getItem as P, getPropWithDefault as C, getProp as _, setCreateProp as A } from "@esri/solution-common";
|
|
11
11
|
import { T as g, C as $, F as O, G as F, z as U } from "../../chunks/interfaces.js";
|
|
12
12
|
import { _findExistingItem as V } from "@esri/solution-deployer";
|
|
13
|
-
import { m as v, j as m, n as H, i as b,
|
|
13
|
+
import { m as v, j as m, n as H, i as b, s as N, l as B } from "../../chunks/helpers.js";
|
|
14
14
|
import { D as z } from "../../chunks/deployFlowController.js";
|
|
15
15
|
import "../../chunks/solution-deploy-dialog.js";
|
|
16
16
|
import "../solution-snapshot-gallery/customElement.js";
|
|
17
17
|
import "../solution-deploying-dialog/customElement.js";
|
|
18
|
-
const
|
|
19
|
-
class
|
|
18
|
+
const Y = E`.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;align-self:flex-start}@container (max-width: 1050px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1050px){.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)}`;
|
|
19
|
+
class G extends I {
|
|
20
20
|
constructor() {
|
|
21
|
-
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 = M({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer =
|
|
22
|
-
context:
|
|
21
|
+
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 = M({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer = w({
|
|
22
|
+
context: T,
|
|
23
23
|
subscribe: !0
|
|
24
24
|
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = d(), this._deployingDialogRef = d(), this._deployFlow = new z({
|
|
25
25
|
deployDialogRef: this._deployDialogRef,
|
|
@@ -69,7 +69,7 @@ class Y extends S {
|
|
|
69
69
|
onDeployFailedReal: (e) => {
|
|
70
70
|
const t = v(this._deploymentStartTime);
|
|
71
71
|
this._deploymentStartTime = null;
|
|
72
|
-
const i = H(e),
|
|
72
|
+
const i = H(e), a = i.length > 200 ? i.slice(-200) : i;
|
|
73
73
|
console.error("Deployment failed:", e), this._telemetry?.logEvent({
|
|
74
74
|
category: g.SOLUTION_DETAILS,
|
|
75
75
|
action: "Deploy Failure",
|
|
@@ -77,7 +77,7 @@ class Y extends S {
|
|
|
77
77
|
this.card?.title || "",
|
|
78
78
|
this.card?.deployCommonId || "",
|
|
79
79
|
this.card?.deployVersion || "",
|
|
80
|
-
|
|
80
|
+
a,
|
|
81
81
|
m(this.card?.typeKeywords)
|
|
82
82
|
],
|
|
83
83
|
metrics: [t]
|
|
@@ -107,8 +107,8 @@ class Y extends S {
|
|
|
107
107
|
onDeploymentFallback: () => {
|
|
108
108
|
console.warn("Deployment completed but unable to navigate to deployed card - closing dialogs"), window.dispatchEvent(new CustomEvent("navTabSelected", { detail: "deployments" }));
|
|
109
109
|
}
|
|
110
|
-
}), this._isMobileContextConsumer =
|
|
111
|
-
context:
|
|
110
|
+
}), this._isMobileContextConsumer = w({
|
|
111
|
+
context: L,
|
|
112
112
|
subscribe: !0,
|
|
113
113
|
callback: (e) => this.isMobile = e
|
|
114
114
|
}), 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._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched = f(), this.itemPropertiesFetched = f(), this.sortTypeChanged = f(), this.tokenRefreshed = f(), this._handleDeployCancelled = () => {
|
|
@@ -128,10 +128,10 @@ class Y extends S {
|
|
|
128
128
|
}, 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);
|
|
129
129
|
}
|
|
130
130
|
static {
|
|
131
|
-
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 };
|
|
131
|
+
this.properties = { card: 0, readOnlyNotice: 1, _deployedTooltipContent: 16, _deployedChipType: 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 };
|
|
132
132
|
}
|
|
133
133
|
static {
|
|
134
|
-
this.styles =
|
|
134
|
+
this.styles = Y;
|
|
135
135
|
}
|
|
136
136
|
get _telemetry() {
|
|
137
137
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -143,7 +143,7 @@ class Y extends S {
|
|
|
143
143
|
this._isMobileContextConsumer.value && (this.isMobile = this._isMobileContextConsumer.value);
|
|
144
144
|
}
|
|
145
145
|
willUpdate(e) {
|
|
146
|
-
e.has("card") && (this._deployedTooltipContent = "", this._isDeployDisabled = !1, this._isLoaded = !1, this._showLoader = !1, this._signInParamValue === "deploy" && (this._showLoader = !0, this._signInParamValue = null));
|
|
146
|
+
e.has("card") && (this._deployedTooltipContent = "", this._isDeployDisabled = !1, this._isLoaded = !1, this._showLoader = !1, this._deployedChipType = void 0, this._resolveDeployedStatus(), this._signInParamValue === "deploy" && (this._showLoader = !0, this._signInParamValue = null));
|
|
147
147
|
}
|
|
148
148
|
loaded() {
|
|
149
149
|
this._signInParamValue === null && this._configContextConsumer.value?.authentication?.SignInParam && (this._signInParamValue = this._configContextConsumer.value.authentication.SignInParam), this._resizeObserver = new ResizeObserver(async () => {
|
|
@@ -155,14 +155,14 @@ class Y extends S {
|
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
157
|
const e = "padding-bottom-1-5", t = this._getRelatedResources(), i = this._getYouMayAlsoLikeCards();
|
|
158
|
-
return
|
|
158
|
+
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=${p(e)}>${this._getScreenshotsRow()}</div><div class=${p(e)}>${this._getOverviewRow()}</div><div class=${p(e)}>${this._getReleaseNotesRow()}</div>${t.length > 0 ? l`<div class=${p(e)}>${this._getRelatedResourcesRow(t)}</div>` : ""}${i.length > 0 ? l`<div class=${p(e)}>${this._getYouMayAlsoLikeRow(i)}</div>` : ""}<div class=${p(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} ${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>`;
|
|
159
159
|
}
|
|
160
160
|
updated() {
|
|
161
161
|
setTimeout(() => {
|
|
162
162
|
const e = this._getYouMayAlsoLikeCards();
|
|
163
163
|
let t = 340;
|
|
164
164
|
for (let i = 0; i < e.length; i++) {
|
|
165
|
-
const
|
|
165
|
+
const a = this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`), s = a?.offsetHeight ? a.offsetHeight + 40 : 0;
|
|
166
166
|
s > t && (t = s);
|
|
167
167
|
}
|
|
168
168
|
this._youMayAlsoLikeBaseHeight = t, this._showYouMayAlsoLikeShowMore = (this._youMayAlsoLikeElement.value?.scrollHeight || 0) > this._youMayAlsoLikeBaseHeight, this._showScreenshotsShowMore = (this._screenshotsElement.value?.scrollHeight || 0) > this._screenshotsRowBaseHeight + 2;
|
|
@@ -175,63 +175,89 @@ class Y extends S {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
_getSolutionRow() {
|
|
178
|
-
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0,
|
|
179
|
-
return
|
|
180
|
-
}
|
|
181
|
-
_getTextSection(e, t, i,
|
|
182
|
-
return
|
|
178
|
+
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0, a = this._missingPrivilegeMessages?.bulletedMessages || [], s = a.length > 0, o = this._missingPrivilegeMessages?.trailingMessages || [], r = o.length > 0;
|
|
179
|
+
return l`<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, a, o)}${this._getButtons()}</div></div>`;
|
|
180
|
+
}
|
|
181
|
+
_getTextSection(e, t, i, a, s, o) {
|
|
182
|
+
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._renderChips(this._getChips())}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile ? "" : b(this._configContextConsumer.value) ? l`<div class="display-flex flex-direction-row padding-top-1">${this._getReadOnlyNotice()}</div>` : e || t || i ? l`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(a, s, o)}</div>` : ""}</div>`;
|
|
183
|
+
}
|
|
184
|
+
_getChips() {
|
|
185
|
+
const e = [...this.card?.chips ?? []];
|
|
186
|
+
return !e.some((i) => i === "deployed" || i === "deployedOlderVersion") && this._deployedChipType && e.push(this._deployedChipType), e;
|
|
187
|
+
}
|
|
188
|
+
async _resolveDeployedStatus() {
|
|
189
|
+
const e = this.card;
|
|
190
|
+
if (!e?.deployCommonId || e.chips?.some((a) => a === "deployed" || a === "deployedOlderVersion"))
|
|
191
|
+
return;
|
|
192
|
+
const t = this._configContextConsumer.value?.userSession, i = t?.username;
|
|
193
|
+
if (!(!t || !i))
|
|
194
|
+
try {
|
|
195
|
+
const s = (await x.searchItems({
|
|
196
|
+
q: `${e.deployCommonId} and owner:${i}`,
|
|
197
|
+
authentication: t,
|
|
198
|
+
pagingParam: { start: 1, num: 100 }
|
|
199
|
+
}))?.results ?? [];
|
|
200
|
+
if (s.length === 0) {
|
|
201
|
+
this._deployedChipType = void 0;
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
const o = N(s)[0]?.typeKeywords?.find((c) => c.startsWith("solutionversion-"))?.split("-")[1], r = e.deployVersion;
|
|
205
|
+
this._deployedChipType = r && o && o !== r ? "deployedOlderVersion" : "deployed";
|
|
206
|
+
} catch {
|
|
207
|
+
this._deployedChipType = void 0;
|
|
208
|
+
}
|
|
183
209
|
}
|
|
184
210
|
_renderChips(e) {
|
|
185
|
-
const t = e.filter((s) => s === "deployed" || s === "deployedOlderVersion"), i = e.filter((s) => s !== "deployed" && s !== "deployedOlderVersion"),
|
|
211
|
+
const t = e.filter((s) => s === "deployed" || s === "deployedOlderVersion"), i = e.filter((s) => s !== "deployed" && s !== "deployedOlderVersion"), a = [];
|
|
186
212
|
if (i.forEach((s) => {
|
|
187
213
|
const o = "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;
|
|
188
|
-
|
|
214
|
+
a.push(l`<calcite-chip class=${p(o)} .icon=${c} id=${r ?? u} .label=${n} .value=${n} scale=s></calcite-chip><calcite-tooltip .referenceElement=${r}><span>${n}</span></calcite-tooltip>`);
|
|
189
215
|
}), t.length > 0) {
|
|
190
216
|
let s = "margin-bottom-1-5 margin-sides-1 chip-status";
|
|
191
|
-
i.length > 0 ? s = t[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed" : s += t[0] === "deployedOlderVersion" ? " chip-deployed-warn" : " chip-deployed",
|
|
217
|
+
i.length > 0 ? s = t[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed" : s += t[0] === "deployedOlderVersion" ? " chip-deployed-warn" : " chip-deployed", a.push(l`<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 () => {
|
|
192
218
|
const o = {
|
|
193
219
|
q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
|
|
194
220
|
authentication: this._configContextConsumer.value?.userSession,
|
|
195
221
|
pagingParam: { start: 1, num: 100 }
|
|
196
|
-
}, r = await
|
|
197
|
-
this._deployedTooltipContent =
|
|
222
|
+
}, r = await x.searchItems(o);
|
|
223
|
+
this._deployedTooltipContent = l`<solutions-deployed-list .results=${r} has-links .listTitle=${t[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
198
224
|
}} @calciteTooltipBeforeClose=${() => {
|
|
199
225
|
}}>${this._deployedTooltipContent}</calcite-tooltip>`);
|
|
200
226
|
}
|
|
201
|
-
return
|
|
227
|
+
return a;
|
|
202
228
|
}
|
|
203
229
|
_getButtons() {
|
|
204
230
|
const e = this._itemProperties?.demoURL || "", t = b(this._configContextConsumer.value);
|
|
205
|
-
return
|
|
231
|
+
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 || t} icon-flip-rtl=end @click=${() => this._checkPermissionsBeforeDeploy()} scale=m width=full>${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 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 && 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>`;
|
|
206
232
|
}
|
|
207
233
|
_getReadOnlyNotice() {
|
|
208
|
-
return
|
|
234
|
+
return l`<calcite-notice class="margin-inline-unset" icon=exclamation-mark-triangle kind=warning open scale=s><div slot=message .innerHTML=${this.readOnlyNotice ?? ""}></div></calcite-notice>`;
|
|
209
235
|
}
|
|
210
236
|
_getMissingPrivilegesNotice(e, t, i) {
|
|
211
|
-
const
|
|
212
|
-
return
|
|
237
|
+
const a = "solutions-missing-privileges-notice", s = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges, o = t.length > 0 ? "" : "display-none", r = t.length > 0 ? "padding-top-sm" : "";
|
|
238
|
+
return l`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${s}`}</div><calcite-action icon=information id=${a} 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
|
|
213
239
|
this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${o}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${// Bulleted messages
|
|
214
240
|
this._getBulletedMessages(t)}${// Trailing messages
|
|
215
241
|
this._getSpanMessages(i, r)}</div></calcite-popover></div>`;
|
|
216
242
|
}
|
|
217
243
|
_getSpanMessages(e, t) {
|
|
218
|
-
return e.length > 0 ? e.map((i) =>
|
|
244
|
+
return e.length > 0 ? e.map((i) => l`<span class=${p(t)}>${i}</span>`) : "";
|
|
219
245
|
}
|
|
220
246
|
_getBulletedMessages(e) {
|
|
221
|
-
return e.length > 0 ?
|
|
247
|
+
return e.length > 0 ? l`<ul>${e.map((t) => l`<li>${t}</li>`)}</ul>` : "";
|
|
222
248
|
}
|
|
223
249
|
_getScreenshotsRow() {
|
|
224
250
|
const e = this._isScreenshotsRowExpanded ? this._translations.showLess : this._translations.showMore, t = this._isScreenshotsRowExpanded ? "arrow-up" : "arrow-down", i = this._showScreenshotsShowMore ? "" : "display-none";
|
|
225
|
-
return
|
|
251
|
+
return l`<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=${() => {
|
|
226
252
|
this._screenshotsElement.value?.classList.toggle("expanded"), this._isScreenshotsRowExpanded = this._screenshotsElement.value.classList.contains("expanded");
|
|
227
253
|
}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`;
|
|
228
254
|
}
|
|
229
255
|
_getScreenshots() {
|
|
230
|
-
const e = this._itemProperties?.preview.filter((s) => s.format === "image") || [], t = this._configContextConsumer.value, i = this._itemFetched ? "" : "display-none",
|
|
231
|
-
return
|
|
256
|
+
const e = this._itemProperties?.preview.filter((s) => s.format === "image") || [], t = this._configContextConsumer.value, i = this._itemFetched ? "" : "display-none", a = this._itemFetched ? "display-none" : "";
|
|
257
|
+
return l`<calcite-loader class=${p(a)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((s, o) => {
|
|
232
258
|
const r = $(this.card?.id || "", o.name, t.authentication);
|
|
233
259
|
let c;
|
|
234
|
-
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (c = $(this.card?.id || "", o.name, void 0, t.agolPortalUrl)), this.card?.id ? s.push(
|
|
260
|
+
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (c = $(this.card?.id || "", o.name, void 0, t.agolPortalUrl)), this.card?.id ? s.push(l`<calcite-card class=${`${this.isMobile ? "is-mobile" : "cursor-pointer not-mobile"}`} .label=${o.alt} @click=${() => this._openScreenshotGallery(o)} @keydown=${(n) => B(n, () => this._openScreenshotGallery(o))}><div class="card-image-wrap" slot=thumbnail><img alt=${o.alt ?? u} class="thumbnail card-image" slot=thumbnail src=${(c || r) ?? u}>${!this.isMobile && l`<div class="hover-text">${this._translations.openInGallery}</div>` || ""}</div></calcite-card>`) : s.push(""), s;
|
|
235
261
|
}, [])}</calcite-card-group>`;
|
|
236
262
|
}
|
|
237
263
|
_openScreenshotGallery(e) {
|
|
@@ -250,40 +276,40 @@ class Y extends S {
|
|
|
250
276
|
}
|
|
251
277
|
}
|
|
252
278
|
_getOverviewRow() {
|
|
253
|
-
return
|
|
279
|
+
return l`<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>`;
|
|
254
280
|
}
|
|
255
281
|
_getDescriptionRow() {
|
|
256
|
-
return
|
|
282
|
+
return l`<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>`;
|
|
257
283
|
}
|
|
258
284
|
_getInformationProductsRow() {
|
|
259
|
-
return
|
|
285
|
+
return l`<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>`;
|
|
260
286
|
}
|
|
261
287
|
_getInformationTableHeaderRow() {
|
|
262
|
-
return
|
|
288
|
+
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>`;
|
|
263
289
|
}
|
|
264
290
|
_getInformationTableRows() {
|
|
265
|
-
return (this._itemProperties?.infoProducts || []).map((t) =>
|
|
291
|
+
return (this._itemProperties?.infoProducts || []).map((t) => l`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${y(t.item) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${y(t.description) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${y(t.userType) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
266
292
|
}
|
|
267
293
|
_getReleaseNotesRow() {
|
|
268
|
-
return
|
|
294
|
+
return l`<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>`;
|
|
269
295
|
}
|
|
270
296
|
_getReleaseNotesTableHeaderRow() {
|
|
271
|
-
return
|
|
297
|
+
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>`;
|
|
272
298
|
}
|
|
273
299
|
_getReleaseNotesTableRows() {
|
|
274
|
-
return (this._itemProperties?.releaseNotes || [])?.map((t) =>
|
|
300
|
+
return (this._itemProperties?.releaseNotes || [])?.map((t) => l`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${y(t.version) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${y(t.description) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
275
301
|
}
|
|
276
302
|
_getRelatedResourcesRow(e) {
|
|
277
|
-
return
|
|
278
|
-
|
|
303
|
+
return l`<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(() => {
|
|
304
|
+
l`<solution-resource-card></solution-resource-card>`;
|
|
279
305
|
})}</div></calcite-accordion-item></calcite-accordion>`;
|
|
280
306
|
}
|
|
281
307
|
_getRelatedResources() {
|
|
282
308
|
return [];
|
|
283
309
|
}
|
|
284
310
|
_getYouMayAlsoLikeRow(e) {
|
|
285
|
-
const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore,
|
|
286
|
-
return
|
|
311
|
+
const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore, a = this._isYouMayAlsoLikeRowExpanded ? "arrow-up" : "arrow-down", s = this._isYouMayAlsoLikeRowExpanded ? "" : { height: `${this._youMayAlsoLikeBaseHeight}px` };
|
|
312
|
+
return l`<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=${D(s)} ${h(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((o, r) => l`<solution-details-card .id=${`you-may-also-like-${r}`} .card=${o} 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=${a} kind=inverse @click=${() => {
|
|
287
313
|
this._youMayAlsoLikeElement.value?.classList.toggle("expanded"), this._isYouMayAlsoLikeRowExpanded = this._youMayAlsoLikeElement.value.classList.contains("expanded");
|
|
288
314
|
}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`;
|
|
289
315
|
}
|
|
@@ -292,7 +318,7 @@ class Y extends S {
|
|
|
292
318
|
return this._allCards.filter((t) => e.indexOf(t.deployCommonId) > -1);
|
|
293
319
|
}
|
|
294
320
|
_getTermsOfUseRow() {
|
|
295
|
-
return
|
|
321
|
+
return l`<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>`;
|
|
296
322
|
}
|
|
297
323
|
_openDeploy() {
|
|
298
324
|
if (this._configContextConsumer.value.authentication.IsSignedIn) {
|
|
@@ -347,8 +373,8 @@ class Y extends S {
|
|
|
347
373
|
}
|
|
348
374
|
async _getItemData() {
|
|
349
375
|
this._itemFetched = !1;
|
|
350
|
-
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await R(this.card.id, t),
|
|
351
|
-
this._itemFetched = !0, this._itemProperties =
|
|
376
|
+
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await R(this.card.id, t), a = await P(this.card.id, t);
|
|
377
|
+
this._itemFetched = !0, this._itemProperties = a.properties, this.itemPropertiesFetched.emit(this._itemProperties);
|
|
352
378
|
const s = O(i, this.card.typeKeywords, e?.authentication);
|
|
353
379
|
this._privileges = t.username ? s : [], this._userPrivileges = e?.authentication ? e.authentication.PortalUserEnrichedPrivileges : [];
|
|
354
380
|
const o = this._privileges.filter((c) => !this._userPrivileges.includes(c));
|
|
@@ -357,27 +383,27 @@ class Y extends S {
|
|
|
357
383
|
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());
|
|
358
384
|
}
|
|
359
385
|
formatParams(e) {
|
|
360
|
-
const t = this._configContextConsumer.value.userSession, i = [],
|
|
386
|
+
const t = this._configContextConsumer.value.userSession, i = [], a = e ? Object.keys(e) : [], s = {
|
|
361
387
|
id: "",
|
|
362
388
|
props: [],
|
|
363
389
|
accordionDisplay: !1
|
|
364
390
|
};
|
|
365
|
-
if (
|
|
391
|
+
if (a.length > 0) {
|
|
366
392
|
const o = [];
|
|
367
|
-
return
|
|
393
|
+
return a.forEach((r) => {
|
|
368
394
|
const c = e[r];
|
|
369
395
|
c.valueType && c.valueType.toLowerCase() === "itemid" && o.push(this._findExistingItem(r, "Feature Service", t.username || ""));
|
|
370
396
|
}), Promise.all(o).then((r) => {
|
|
371
397
|
const c = {};
|
|
372
398
|
return r.forEach((n) => {
|
|
373
399
|
if (n.query && n.results && n.results.length > 0) {
|
|
374
|
-
const
|
|
375
|
-
c[
|
|
400
|
+
const S = n.query.split(" ")[0].replace("typekeywords:source-", "");
|
|
401
|
+
c[S] = {
|
|
376
402
|
resultId: n.results[0].id,
|
|
377
403
|
response: n.results[0]
|
|
378
404
|
};
|
|
379
405
|
}
|
|
380
|
-
}),
|
|
406
|
+
}), a.forEach((n) => {
|
|
381
407
|
if (n === "serviceLearnMore") {
|
|
382
408
|
this._configureLearnMore = e[n], alert(this._configureLearnMore), delete e[n];
|
|
383
409
|
return;
|
|
@@ -389,15 +415,15 @@ class Y extends S {
|
|
|
389
415
|
return Promise.resolve([]);
|
|
390
416
|
}
|
|
391
417
|
_findExistingItem(e, t, i) {
|
|
392
|
-
const
|
|
393
|
-
return V(`typekeywords:source-${e} type:${t} owner:${i}`,
|
|
418
|
+
const a = this._configContextConsumer.value.userSession;
|
|
419
|
+
return V(`typekeywords:source-${e} type:${t} owner:${i}`, a);
|
|
394
420
|
}
|
|
395
421
|
updateUserProp(e, t) {
|
|
396
|
-
const i = e.itemType?.toLowerCase() === "feature service",
|
|
397
|
-
return e.responseValue = o ? s : "", e.name = o &&
|
|
422
|
+
const i = e.itemType?.toLowerCase() === "feature service", a = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), s = C(t, i ? "url" : "type", "") || "", o = s !== "" && a.test(s);
|
|
423
|
+
return e.responseValue = o ? s : "", e.name = o && _(t, "name") || "", e.title = o && _(t, "title") || "", e.itemType = o ? _(t, "type") : e.itemType, e.validId = o, e.itemUrl = U(t.id, this._configContextConsumer.value.authentication), o;
|
|
398
424
|
}
|
|
399
425
|
updateOption(e, t, i) {
|
|
400
|
-
const
|
|
426
|
+
const a = e.default || "", s = typeof a, o = a.toString();
|
|
401
427
|
this._setFeatureServiceProps(e);
|
|
402
428
|
const r = this.getValidation(e, o);
|
|
403
429
|
t.props.push({
|
|
@@ -427,12 +453,12 @@ class Y extends S {
|
|
|
427
453
|
e.valueType && e.valueType.toLowerCase() === "itemid" && A(e, "attributes.required", "true");
|
|
428
454
|
}
|
|
429
455
|
getValidation(e, t) {
|
|
430
|
-
let i = "",
|
|
431
|
-
return
|
|
456
|
+
let i = "", a = _(e, "validation.message") || "", s = !0;
|
|
457
|
+
return _(e, "attributes.required") === "true" && (i = C(e, "validation.expression", "\\S{1,}"), s = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, a = this._translations.configure.invalidID), {
|
|
432
458
|
valid: s,
|
|
433
459
|
validation: {
|
|
434
460
|
expression: i,
|
|
435
|
-
message:
|
|
461
|
+
message: a
|
|
436
462
|
}
|
|
437
463
|
};
|
|
438
464
|
}
|
|
@@ -452,7 +478,7 @@ class Y extends S {
|
|
|
452
478
|
b(this._configContextConsumer.value) || (this._isLoaded ? this._openDeploy() : this._configContextConsumer.value.authentication?.IsSignedIn ? this._showLoader = !0 : this._openDeploy());
|
|
453
479
|
}
|
|
454
480
|
}
|
|
455
|
-
k("solution-details-panel",
|
|
481
|
+
k("solution-details-panel", G);
|
|
456
482
|
export {
|
|
457
|
-
|
|
483
|
+
G as SolutionDetailsPanel
|
|
458
484
|
};
|