@esri/solutions-components 5.1.0-next.147 → 5.1.0-next.148
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/{UXKH44PB.js → 4RJURJQ5.js} +1 -1
- package/dist/cdn/{UTZUXO5F.js → 5O7LFBHI.js} +1 -1
- package/dist/cdn/DO7NLLUV.js +2 -0
- package/dist/cdn/{PQL3UL3P.js → GRQLB7ZG.js} +1 -1
- package/dist/cdn/{5DEYOM7D.js → HQLA2AI4.js} +1 -1
- package/dist/cdn/{4YCLQ3RW.js → PP7EF7UU.js} +1 -1
- package/dist/cdn/{6IUKH3E3.js → QC4MO5BO.js} +1 -1
- package/dist/cdn/{3MRR3HKE.js → TKOGOWYQ.js} +2 -2
- package/dist/cdn/UCQJWFUW.js +2 -0
- package/dist/cdn/{ZWQWBXHR.js → WXL7GVUU.js} +1 -1
- package/dist/cdn/{B5MBF4JC.js → XO54BFTC.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/solution-builder-assistant.js +14 -14
- package/dist/chunks/validators.js +3 -3
- package/dist/components/arcgis-solutions-assistant/customElement.js +52 -55
- package/dist/components/solution-details-panel/customElement.js +53 -53
- package/dist/components/solution-item-diagram/customElement.js +6 -6
- 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 +7 -4
- package/package.json +1 -1
- package/dist/cdn/AH3PJQ6A.js +0 -2
- package/dist/cdn/IZSM7ZJK.js +0 -2
|
@@ -3,11 +3,11 @@ 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
5
|
import { LitElement as S, createEvent as f, safeClassMap as p, nothing as u, safeStyleMap as I } from "@arcgis/lumina";
|
|
6
|
-
import { useContextConsumer as
|
|
6
|
+
import { useContextConsumer as x } from "@arcgis/lumina/context";
|
|
7
7
|
import { c as D, i as T } from "../../chunks/deployAppContexts.js";
|
|
8
|
-
import { css as L, html as
|
|
8
|
+
import { css as L, html as a } from "lit";
|
|
9
9
|
import * as E from "@esri/solution-common";
|
|
10
|
-
import { sanitizeHTML as _, getItemDataAsJson as R, getItem as P, getPropWithDefault as
|
|
10
|
+
import { sanitizeHTML as _, getItemDataAsJson as R, getItem as P, getPropWithDefault as w, getProp as y, 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
13
|
import { m as v, j as m, n as H, i as b, l as N } from "../../chunks/helpers.js";
|
|
@@ -18,7 +18,7 @@ import "../solution-deploying-dialog/customElement.js";
|
|
|
18
18
|
const B = 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;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
19
|
class Y extends S {
|
|
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 =
|
|
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 = x({
|
|
22
22
|
context: D,
|
|
23
23
|
subscribe: !0
|
|
24
24
|
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = d(), this._deployingDialogRef = d(), this._deployFlow = new z({
|
|
@@ -107,7 +107,7 @@ 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 =
|
|
110
|
+
}), this._isMobileContextConsumer = x({
|
|
111
111
|
context: T,
|
|
112
112
|
subscribe: !0,
|
|
113
113
|
callback: (e) => this.isMobile = e
|
|
@@ -155,7 +155,7 @@ 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 a`<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 ? a`<div class=${p(e)}>${this._getRelatedResourcesRow(t)}</div>` : ""}${i.length > 0 ? a`<div class=${p(e)}>${this._getYouMayAlsoLikeRow(i)}</div>` : ""}<div class=${p(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile ? "" : a`<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(() => {
|
|
@@ -175,26 +175,26 @@ 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, l = this._missingPrivilegeMessages?.bulletedMessages || [], s = l.length > 0,
|
|
179
|
-
return
|
|
178
|
+
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0, l = this._missingPrivilegeMessages?.bulletedMessages || [], s = l.length > 0, o = this._missingPrivilegeMessages?.trailingMessages || [], r = o.length > 0;
|
|
179
|
+
return a`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title ?? u} src=${e ?? u}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i, s, r, t, l, o)}${this._getButtons()}</div></div>`;
|
|
180
180
|
}
|
|
181
|
-
_getTextSection(e, t, i, l, s,
|
|
182
|
-
return
|
|
181
|
+
_getTextSection(e, t, i, l, s, o) {
|
|
182
|
+
return a`<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.card?.chips || [])}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile ? "" : b(this._configContextConsumer.value) ? a`<div class="display-flex flex-direction-row padding-top-1">${this._getReadOnlyNotice()}</div>` : e || t || i ? a`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(l, s, o)}</div>` : ""}</div>`;
|
|
183
183
|
}
|
|
184
184
|
_renderChips(e) {
|
|
185
185
|
const t = e.filter((s) => s === "deployed" || s === "deployedOlderVersion"), i = e.filter((s) => s !== "deployed" && s !== "deployedOlderVersion"), l = [];
|
|
186
186
|
if (i.forEach((s) => {
|
|
187
|
-
const
|
|
188
|
-
l.push(
|
|
187
|
+
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
|
+
l.push(a`<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
189
|
}), t.length > 0) {
|
|
190
190
|
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", l.push(
|
|
192
|
-
const
|
|
191
|
+
i.length > 0 ? s = t[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed" : s += t[0] === "deployedOlderVersion" ? " chip-deployed-warn" : " chip-deployed", l.push(a`<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
|
+
const o = {
|
|
193
193
|
q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
|
|
194
194
|
authentication: this._configContextConsumer.value?.userSession,
|
|
195
195
|
pagingParam: { start: 1, num: 100 }
|
|
196
|
-
}, r = await E.searchItems(
|
|
197
|
-
this._deployedTooltipContent =
|
|
196
|
+
}, r = await E.searchItems(o);
|
|
197
|
+
this._deployedTooltipContent = a`<solutions-deployed-list .results=${r} has-links .listTitle=${t[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
198
198
|
}} @calciteTooltipBeforeClose=${() => {
|
|
199
199
|
}}>${this._deployedTooltipContent}</calcite-tooltip>`);
|
|
200
200
|
}
|
|
@@ -202,36 +202,36 @@ class Y extends S {
|
|
|
202
202
|
}
|
|
203
203
|
_getButtons() {
|
|
204
204
|
const e = this._itemProperties?.demoURL || "", t = b(this._configContextConsumer.value);
|
|
205
|
-
return
|
|
205
|
+
return a`<div class="display-flex flex-direction-column button-width">${!this.isMobile && a`<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 ? a`<calcite-loader inline label></calcite-loader>` : this._translations.deployButton}</calcite-button>` || ""}${!this._configContextConsumer.value?.isEnterprise && e && a`<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 && a`<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
206
|
}
|
|
207
207
|
_getReadOnlyNotice() {
|
|
208
|
-
return
|
|
208
|
+
return a`<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
209
|
}
|
|
210
210
|
_getMissingPrivilegesNotice(e, t, i) {
|
|
211
|
-
const l = "solutions-missing-privileges-notice", s = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges,
|
|
212
|
-
return
|
|
213
|
-
this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${
|
|
211
|
+
const l = "solutions-missing-privileges-notice", s = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges, o = t.length > 0 ? "" : "display-none", r = t.length > 0 ? "padding-top-sm" : "";
|
|
212
|
+
return a`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${s}`}</div><calcite-action icon=information id=${l} slot=actions-end .text=${s}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${h(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${// Leading messages
|
|
213
|
+
this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${o}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${// Bulleted messages
|
|
214
214
|
this._getBulletedMessages(t)}${// Trailing messages
|
|
215
215
|
this._getSpanMessages(i, r)}</div></calcite-popover></div>`;
|
|
216
216
|
}
|
|
217
217
|
_getSpanMessages(e, t) {
|
|
218
|
-
return e.length > 0 ? e.map((i) =>
|
|
218
|
+
return e.length > 0 ? e.map((i) => a`<span class=${p(t)}>${i}</span>`) : "";
|
|
219
219
|
}
|
|
220
220
|
_getBulletedMessages(e) {
|
|
221
|
-
return e.length > 0 ?
|
|
221
|
+
return e.length > 0 ? a`<ul>${e.map((t) => a`<li>${t}</li>`)}</ul>` : "";
|
|
222
222
|
}
|
|
223
223
|
_getScreenshotsRow() {
|
|
224
224
|
const e = this._isScreenshotsRowExpanded ? this._translations.showLess : this._translations.showMore, t = this._isScreenshotsRowExpanded ? "arrow-up" : "arrow-down", i = this._showScreenshotsShowMore ? "" : "display-none";
|
|
225
|
-
return
|
|
225
|
+
return a`<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
226
|
this._screenshotsElement.value?.classList.toggle("expanded"), this._isScreenshotsRowExpanded = this._screenshotsElement.value.classList.contains("expanded");
|
|
227
227
|
}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`;
|
|
228
228
|
}
|
|
229
229
|
_getScreenshots() {
|
|
230
230
|
const e = this._itemProperties?.preview.filter((s) => s.format === "image") || [], t = this._configContextConsumer.value, i = this._itemFetched ? "" : "display-none", l = this._itemFetched ? "display-none" : "";
|
|
231
|
-
return
|
|
232
|
-
const r = $(this.card?.id || "",
|
|
231
|
+
return a`<calcite-loader class=${p(l)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((s, o) => {
|
|
232
|
+
const r = $(this.card?.id || "", o.name, t.authentication);
|
|
233
233
|
let c;
|
|
234
|
-
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (c = $(this.card?.id || "",
|
|
234
|
+
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (c = $(this.card?.id || "", o.name, void 0, t.agolPortalUrl)), this.card?.id ? s.push(a`<calcite-card class=${`${this.isMobile ? "is-mobile" : "cursor-pointer not-mobile"}`} .label=${o.alt} @click=${() => this._openScreenshotGallery(o)} @keydown=${(n) => N(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 && a`<div class="hover-text">${this._translations.openInGallery}</div>` || ""}</div></calcite-card>`) : s.push(""), s;
|
|
235
235
|
}, [])}</calcite-card-group>`;
|
|
236
236
|
}
|
|
237
237
|
_openScreenshotGallery(e) {
|
|
@@ -250,32 +250,32 @@ class Y extends S {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
_getOverviewRow() {
|
|
253
|
-
return
|
|
253
|
+
return a`<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
254
|
}
|
|
255
255
|
_getDescriptionRow() {
|
|
256
|
-
return
|
|
256
|
+
return a`<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
257
|
}
|
|
258
258
|
_getInformationProductsRow() {
|
|
259
|
-
return
|
|
259
|
+
return a`<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
260
|
}
|
|
261
261
|
_getInformationTableHeaderRow() {
|
|
262
|
-
return
|
|
262
|
+
return a`<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
263
|
}
|
|
264
264
|
_getInformationTableRows() {
|
|
265
|
-
return (this._itemProperties?.infoProducts || []).map((t) =>
|
|
265
|
+
return (this._itemProperties?.infoProducts || []).map((t) => a`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.item) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.userType) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
266
266
|
}
|
|
267
267
|
_getReleaseNotesRow() {
|
|
268
|
-
return
|
|
268
|
+
return a`<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
269
|
}
|
|
270
270
|
_getReleaseNotesTableHeaderRow() {
|
|
271
|
-
return
|
|
271
|
+
return a`<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
272
|
}
|
|
273
273
|
_getReleaseNotesTableRows() {
|
|
274
|
-
return (this._itemProperties?.releaseNotes || [])?.map((t) =>
|
|
274
|
+
return (this._itemProperties?.releaseNotes || [])?.map((t) => a`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.version) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
275
275
|
}
|
|
276
276
|
_getRelatedResourcesRow(e) {
|
|
277
|
-
return
|
|
278
|
-
|
|
277
|
+
return a`<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(() => {
|
|
278
|
+
a`<solution-resource-card></solution-resource-card>`;
|
|
279
279
|
})}</div></calcite-accordion-item></calcite-accordion>`;
|
|
280
280
|
}
|
|
281
281
|
_getRelatedResources() {
|
|
@@ -283,7 +283,7 @@ class Y extends S {
|
|
|
283
283
|
}
|
|
284
284
|
_getYouMayAlsoLikeRow(e) {
|
|
285
285
|
const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore, l = this._isYouMayAlsoLikeRowExpanded ? "arrow-up" : "arrow-down", s = this._isYouMayAlsoLikeRowExpanded ? "" : { height: `${this._youMayAlsoLikeBaseHeight}px` };
|
|
286
|
-
return
|
|
286
|
+
return a`<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=${I(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) => a`<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=${l} kind=inverse @click=${() => {
|
|
287
287
|
this._youMayAlsoLikeElement.value?.classList.toggle("expanded"), this._isYouMayAlsoLikeRowExpanded = this._youMayAlsoLikeElement.value.classList.contains("expanded");
|
|
288
288
|
}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`;
|
|
289
289
|
}
|
|
@@ -292,7 +292,7 @@ class Y extends S {
|
|
|
292
292
|
return this._allCards.filter((t) => e.indexOf(t.deployCommonId) > -1);
|
|
293
293
|
}
|
|
294
294
|
_getTermsOfUseRow() {
|
|
295
|
-
return
|
|
295
|
+
return a`<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
296
|
}
|
|
297
297
|
_openDeploy() {
|
|
298
298
|
if (this._configContextConsumer.value.authentication.IsSignedIn) {
|
|
@@ -351,8 +351,8 @@ class Y extends S {
|
|
|
351
351
|
this._itemFetched = !0, this._itemProperties = l.properties, this.itemPropertiesFetched.emit(this._itemProperties);
|
|
352
352
|
const s = O(i, this.card.typeKeywords, e?.authentication);
|
|
353
353
|
this._privileges = t.username ? s : [], this._userPrivileges = e?.authentication ? e.authentication.PortalUserEnrichedPrivileges : [];
|
|
354
|
-
const
|
|
355
|
-
this._missingPrivilegeMessages = F(this._translations,
|
|
354
|
+
const o = this._privileges.filter((c) => !this._userPrivileges.includes(c));
|
|
355
|
+
this._missingPrivilegeMessages = F(this._translations, o), this._isDeployDisabled = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
|
|
356
356
|
const r = i.params ? await this.formatParams(i.params) : [];
|
|
357
357
|
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
358
|
}
|
|
@@ -363,11 +363,11 @@ class Y extends S {
|
|
|
363
363
|
accordionDisplay: !1
|
|
364
364
|
};
|
|
365
365
|
if (l.length > 0) {
|
|
366
|
-
const
|
|
366
|
+
const o = [];
|
|
367
367
|
return l.forEach((r) => {
|
|
368
368
|
const c = e[r];
|
|
369
|
-
c.valueType && c.valueType.toLowerCase() === "itemid" &&
|
|
370
|
-
}), Promise.all(
|
|
369
|
+
c.valueType && c.valueType.toLowerCase() === "itemid" && o.push(this._findExistingItem(r, "Feature Service", t.username || ""));
|
|
370
|
+
}), Promise.all(o).then((r) => {
|
|
371
371
|
const c = {};
|
|
372
372
|
return r.forEach((n) => {
|
|
373
373
|
if (n.query && n.results && n.results.length > 0) {
|
|
@@ -393,13 +393,13 @@ class Y extends S {
|
|
|
393
393
|
return V(`typekeywords:source-${e} type:${t} owner:${i}`, l);
|
|
394
394
|
}
|
|
395
395
|
updateUserProp(e, t) {
|
|
396
|
-
const i = e.itemType?.toLowerCase() === "feature service", l = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), s =
|
|
397
|
-
return e.responseValue =
|
|
396
|
+
const i = e.itemType?.toLowerCase() === "feature service", l = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), s = w(t, i ? "url" : "type", "") || "", o = s !== "" && l.test(s);
|
|
397
|
+
return e.responseValue = o ? s : "", e.name = o && y(t, "name") || "", e.title = o && y(t, "title") || "", e.itemType = o ? y(t, "type") : e.itemType, e.validId = o, e.itemUrl = U(t.id, this._configContextConsumer.value.authentication), o;
|
|
398
398
|
}
|
|
399
399
|
updateOption(e, t, i) {
|
|
400
|
-
const l = e.default || "", s = typeof l,
|
|
400
|
+
const l = e.default || "", s = typeof l, o = l.toString();
|
|
401
401
|
this._setFeatureServiceProps(e);
|
|
402
|
-
const r = this.getValidation(e,
|
|
402
|
+
const r = this.getValidation(e, o);
|
|
403
403
|
t.props.push({
|
|
404
404
|
id: i,
|
|
405
405
|
outType: s,
|
|
@@ -410,10 +410,10 @@ class Y extends S {
|
|
|
410
410
|
choices: e.choices || [],
|
|
411
411
|
valueType: e.valueType.toLowerCase(),
|
|
412
412
|
attributes: e.attributes || {},
|
|
413
|
-
value: e.existingItemId && e.valueType.toLowerCase() === "itemid" ? e.existingItemId :
|
|
414
|
-
default:
|
|
415
|
-
srSearchText:
|
|
416
|
-
autoSelect:
|
|
413
|
+
value: e.existingItemId && e.valueType.toLowerCase() === "itemid" ? e.existingItemId : o,
|
|
414
|
+
default: o,
|
|
415
|
+
srSearchText: o,
|
|
416
|
+
autoSelect: o !== "",
|
|
417
417
|
...r,
|
|
418
418
|
loading: !1,
|
|
419
419
|
validId: !0,
|
|
@@ -428,7 +428,7 @@ class Y extends S {
|
|
|
428
428
|
}
|
|
429
429
|
getValidation(e, t) {
|
|
430
430
|
let i = "", l = y(e, "validation.message") || "", s = !0;
|
|
431
|
-
return y(e, "attributes.required") === "true" && (i =
|
|
431
|
+
return y(e, "attributes.required") === "true" && (i = w(e, "validation.expression", "\\S{1,}"), s = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, l = this._translations.configure.invalidID), {
|
|
432
432
|
valid: s,
|
|
433
433
|
validation: {
|
|
434
434
|
expression: i,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as B } from "../../chunks/useT9n.js";
|
|
4
4
|
import { LitElement as A } from "@arcgis/lumina";
|
|
5
5
|
import { css as $, html as O } from "lit";
|
|
@@ -173,7 +173,7 @@ function U(o, t, e) {
|
|
|
173
173
|
const r = J(o);
|
|
174
174
|
return m(r, t), Q(o, r, e), r;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function E(o) {
|
|
177
177
|
const t = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set();
|
|
178
178
|
function r(i) {
|
|
179
179
|
i.findLinksInto().each(
|
|
@@ -231,7 +231,7 @@ function ee(o, t, e, r = !0) {
|
|
|
231
231
|
i[a] = z;
|
|
232
232
|
}
|
|
233
233
|
{
|
|
234
|
-
const { connectedNodes: n, connectedLinks: a } =
|
|
234
|
+
const { connectedNodes: n, connectedLinks: a } = E(o);
|
|
235
235
|
for (const l of n)
|
|
236
236
|
i[l.key] = k;
|
|
237
237
|
for (const l of a) {
|
|
@@ -507,7 +507,7 @@ class ge {
|
|
|
507
507
|
return;
|
|
508
508
|
if (this.currentSelectedItemId) {
|
|
509
509
|
if (this.usefilteredView) {
|
|
510
|
-
const a =
|
|
510
|
+
const a = E(n);
|
|
511
511
|
a.connectedNodes.add(n);
|
|
512
512
|
const l = Array.from(a.connectedNodes).map((c) => c.data), h = Array.from(a.connectedLinks).map((c) => c.data);
|
|
513
513
|
if (m(this.diagram, { nodes: l, links: h }), this.createNodeHighlighters(), n = this.getNodeById(t), !n)
|
|
@@ -573,7 +573,7 @@ class fe extends A {
|
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
575
|
this._sizeObserver && this._sizeObserver.disconnect(), this._sizeObserver = new ResizeObserver(() => {
|
|
576
|
-
|
|
576
|
+
this._pendingCreate && r(t) && (this._sizeObserver?.disconnect(), this._sizeObserver = void 0, this._buildSolutionDisplay());
|
|
577
577
|
}), this._sizeObserver.observe(t);
|
|
578
578
|
}
|
|
579
579
|
_buildSolutionDisplay() {
|
|
@@ -593,7 +593,7 @@ class fe extends A {
|
|
|
593
593
|
this.solutionDisplay = new ge(t, e, r, this.diagramKey), this.solutionDisplay.create(this.templateInfoGraph, this.typeKeywords);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
|
|
596
|
+
D("solution-item-diagram", fe);
|
|
597
597
|
export {
|
|
598
598
|
fe as SolutionItemDiagram
|
|
599
599
|
};
|