@esri/solutions-components 5.1.0-next.95 → 5.1.0-next.96
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/{XAW6KPKL.js → 2BUUN32T.js} +1 -1
- package/dist/cdn/{ZGEMIOB5.js → 2NVL4Z5G.js} +1 -1
- package/dist/cdn/{WVRKV5SS.js → 3CDDDNHX.js} +1 -1
- package/dist/cdn/{4B7NJE47.js → 3EVMNCX6.js} +1 -1
- package/dist/cdn/{2VXTMCRJ.js → 3JQP6RGM.js} +1 -1
- package/dist/cdn/5K6B2WSQ.js +2 -0
- package/dist/cdn/{QYDGCI2P.js → 63RUMXWC.js} +1 -1
- package/dist/cdn/{UHPN75WT.js → 6HZIF7DC.js} +1 -1
- package/dist/cdn/{C7ASL3A4.js → 6ZRRFBIZ.js} +1 -1
- package/dist/cdn/{NPOHA56R.js → 7RK7YWYV.js} +1 -1
- package/dist/cdn/{4QZ7WHXA.js → AG22WAP3.js} +1 -1
- package/dist/cdn/{DI7PQSFH.js → AMEUOI76.js} +1 -1
- package/dist/cdn/{ZP6VPBP4.js → BGXRCU7G.js} +1 -1
- package/dist/cdn/{5OF3YOO7.js → BIVYOKLF.js} +1 -1
- package/dist/cdn/{WRSVJIPA.js → BSXTZCNH.js} +1 -1
- package/dist/cdn/DRXERUDE.js +2 -0
- package/dist/cdn/{3ZZ726LQ.js → DSLOJFRD.js} +1 -1
- package/dist/cdn/{5LTIZSXG.js → EN6E35NY.js} +1 -1
- package/dist/cdn/{FVXS4LF5.js → ESBPGZRY.js} +1 -1
- package/dist/cdn/{R3MCMOLS.js → EVEXF6IH.js} +2 -2
- package/dist/cdn/{55NRVFJ5.js → FZBIZBOO.js} +1 -1
- package/dist/cdn/{KYFNXHOH.js → G7N3V3YJ.js} +1 -1
- package/dist/cdn/{ELPH6EFW.js → I2GXCEQM.js} +1 -1
- package/dist/cdn/{4HPFDUTJ.js → IC2D4LPZ.js} +1 -1
- package/dist/cdn/{FGWGYIBZ.js → KLLT6LQO.js} +1 -1
- package/dist/cdn/{KW6YOUWC.js → MWMNRIUD.js} +1 -1
- package/dist/cdn/{CWXOH2PC.js → NBX7J6DU.js} +1 -1
- package/dist/cdn/{JC5EXPFH.js → NEM3F44J.js} +1 -1
- package/dist/cdn/{2HUG6L4M.js → OF33IXBV.js} +1 -1
- package/dist/cdn/{2O3HAXKG.js → OZE4W3UQ.js} +1 -1
- package/dist/cdn/PVM4ETZ7.js +2 -0
- package/dist/cdn/QADMFYXT.js +2 -0
- package/dist/cdn/QKJ4PGBO.js +2 -0
- package/dist/cdn/RTA6KNSK.js +2 -0
- package/dist/cdn/{SJCXI4TB.js → RX3VLQGY.js} +1 -1
- package/dist/cdn/{CHZWEULM.js → SAI5O6SI.js} +1 -1
- package/dist/cdn/{3J47AYBV.js → TRBSV6ZY.js} +100 -100
- package/dist/cdn/{5BU6XZAD.js → TTV5UYNT.js} +1 -1
- package/dist/cdn/{2B2ANB2N.js → U6CZXWSF.js} +1 -1
- package/dist/cdn/{GJTXLQOS.js → URVOLZIY.js} +1 -1
- package/dist/cdn/{XXT542UR.js → UYY6JODL.js} +1 -1
- package/dist/cdn/VFZ2J4EW.js +2 -0
- package/dist/cdn/VRM54VB2.js +2 -0
- package/dist/cdn/{IGSOHYV3.js → XGZCGPHU.js} +1 -1
- package/dist/cdn/{JJ7JB2ZP.js → Y5N6ESUO.js} +1 -1
- package/dist/cdn/YDNNXKDK.js +2 -0
- package/dist/cdn/{O3SWSZQE.js → ZKGLAGUM.js} +1 -1
- package/dist/cdn/ZPWKF5SM.js +2 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/converter.js +5 -4
- package/dist/chunks/helpers.js +61 -39
- package/dist/chunks/solution-deploy-dialog.js +1 -1
- package/dist/chunks/solutions-deploy-app-nav.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +4962 -4647
- package/dist/components/solution-configure-titles/customElement.js +36 -38
- package/dist/components/solution-delete-dialog/customElement.js +49 -51
- package/dist/components/solution-deployed-card-panel/customElement.js +35 -38
- package/dist/components/solution-details-card/customElement.js +24 -32
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.d.ts +2 -0
- package/dist/components/solution-item-accordion/customElement.js +25 -32
- package/dist/components/solution-item-accordion/index.js +0 -1
- package/dist/components/solutions-all-panel/customElement.d.ts +2 -0
- package/dist/components/solutions-all-panel/customElement.js +48 -33
- package/dist/components/solutions-all-shell/customElement.js +94 -40
- package/dist/components/solutions-deployed-list/customElement.d.ts +9 -9
- package/dist/components/solutions-deployed-list/customElement.js +3 -3
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/solutions-components_commit.txt +7 -7
- 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/dist/utils/interfaces.d.ts +9 -1
- package/package.json +1 -1
- package/dist/cdn/2ID55IJB.js +0 -2
- package/dist/cdn/2SGR44DX.js +0 -2
- package/dist/cdn/74MDW73I.js +0 -2
- package/dist/cdn/ADPYDJG6.js +0 -2
- package/dist/cdn/AJZHT4GA.js +0 -2
- package/dist/cdn/ITLTQWCX.js +0 -2
- package/dist/cdn/IYUTLV2O.js +0 -2
- package/dist/cdn/K6WLYYPH.js +0 -2
- package/dist/cdn/R4VHCXKS.js +0 -2
- package/dist/cdn/X5EABWHE.js +0 -2
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { u } from "../../chunks/useT9n.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { useContextConsumer as
|
|
2
|
+
import { c as h } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as p, html as o } from "lit";
|
|
4
|
+
import { u as m } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as u, createEvent as f, nothing as r, safeClassMap as g } from "@arcgis/lumina";
|
|
6
|
+
import { useContextConsumer as y } from "@arcgis/lumina/context";
|
|
7
7
|
import { c as b } from "../../chunks/deployAppContexts.js";
|
|
8
|
-
import { T as
|
|
9
|
-
import { c as
|
|
10
|
-
import { h as C } from "../../chunks/helpers.js";
|
|
8
|
+
import { T as v } from "../../chunks/interfaces.js";
|
|
9
|
+
import { c as x } from "../../chunks/cardsHelpers.js";
|
|
10
|
+
import { s as $, h as C } from "../../chunks/helpers.js";
|
|
11
11
|
import * as _ from "@esri/solution-common";
|
|
12
|
-
const S =
|
|
13
|
-
class w extends
|
|
12
|
+
const S = p`calcite-card{height:100%;padding-bottom:2px;border:2px solid transparent;transition:border-color .1s ease;box-sizing:border-box}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border-color:var(--calcite-color-brand);cursor:pointer}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.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:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`;
|
|
13
|
+
class w extends u {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.referrerSolutionId = "", this.referrerSolutionTitle = "", this.referrerSolutionVersion = "", this.source = "all-solutions", this._deployedTooltipContent = "", this._translations =
|
|
15
|
+
super(...arguments), this.referrerSolutionId = "", this.referrerSolutionTitle = "", this.referrerSolutionVersion = "", this.source = "all-solutions", this._deployedTooltipContent = "", this._translations = m({ name: "solution-details-card", blocking: !0 }), this._configContextConsumer = y({
|
|
16
16
|
context: b,
|
|
17
17
|
subscribe: !0
|
|
18
|
-
}), this.detailsCardSelected =
|
|
18
|
+
}), this.detailsCardSelected = f();
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
21
|
this.properties = { card: 0, referrerSolutionId: 1, referrerSolutionTitle: 1, referrerSolutionVersion: 1, source: 1, _deployedTooltipContent: 16, _translations: 16 };
|
|
@@ -27,8 +27,8 @@ class w extends f {
|
|
|
27
27
|
return this._configContextConsumer.value?.telemetrySession;
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
const e =
|
|
31
|
-
return
|
|
30
|
+
const e = x(this.card.title);
|
|
31
|
+
return o`<a href=${e ?? r} @click=${this._anchorClick} tabindex=-1 .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`;
|
|
32
32
|
}
|
|
33
33
|
_anchorClick(e) {
|
|
34
34
|
e.preventDefault();
|
|
@@ -44,7 +44,7 @@ class w extends f {
|
|
|
44
44
|
this.card?.deployVersion || ""
|
|
45
45
|
];
|
|
46
46
|
this._telemetry?.logEvent({
|
|
47
|
-
category:
|
|
47
|
+
category: v.SOLUTION_DETAILS,
|
|
48
48
|
action: "Related Solution",
|
|
49
49
|
dimensions: i
|
|
50
50
|
});
|
|
@@ -52,33 +52,25 @@ class w extends f {
|
|
|
52
52
|
this.detailsCardSelected.emit(this.card);
|
|
53
53
|
}
|
|
54
54
|
_renderChips(e) {
|
|
55
|
-
const i = e.filter((t) => t === "deployed" || t === "deployedOlderVersion"),
|
|
56
|
-
return
|
|
57
|
-
const l = "chip-status",
|
|
58
|
-
|
|
59
|
-
}), i.length > 0 &&
|
|
55
|
+
const i = e.filter((t) => t === "deployed" || t === "deployedOlderVersion"), c = e.filter((t) => t !== "deployed" && t !== "deployedOlderVersion"), s = [];
|
|
56
|
+
return c.forEach((t) => {
|
|
57
|
+
const l = "chip-status", n = `solution-details-card-chip-${t}`, d = t === "new" ? "star" : "mega-phone", a = t === "new" ? this._translations.newSolution : this._translations.updated;
|
|
58
|
+
s.push(o`<calcite-chip class=${g(l)} .icon=${d} id=${n ?? r} .label=${a} .value=${a} scale=s></calcite-chip><calcite-tooltip .referenceElement=${n}><span>${a}</span></calcite-tooltip>`);
|
|
59
|
+
}), i.length > 0 && s.push(o`<calcite-chip class="chip-deployed" .icon=${i[0] === "deployedOlderVersion" ? "recent" : "check-circle"} id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip placement=bottom reference-element=solution-details-card-chip-deployed @calciteTooltipBeforeOpen=${async () => {
|
|
60
60
|
const t = {
|
|
61
61
|
q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
|
|
62
62
|
authentication: this._configContextConsumer.value?.userSession,
|
|
63
63
|
pagingParam: { start: 1, num: 100 }
|
|
64
64
|
}, l = await _.searchItems(t);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
id: o.id,
|
|
69
|
-
title: o.title,
|
|
70
|
-
deployVersion: s,
|
|
71
|
-
created: o.created
|
|
72
|
-
};
|
|
73
|
-
})} .listTitle=${i[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
74
|
-
}}>${this._deployedTooltipContent}</calcite-tooltip>`), c;
|
|
65
|
+
this._deployedTooltipContent = o`<solutions-deployed-list .cards=${$(l.results)} has-links .listTitle=${i[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
66
|
+
}}>${this._deployedTooltipContent}</calcite-tooltip>`), s;
|
|
75
67
|
}
|
|
76
68
|
_renderCard() {
|
|
77
69
|
const e = this.card;
|
|
78
|
-
return
|
|
70
|
+
return o`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${(i) => C(i, () => this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title ?? r} class="thumbnail card-image" src=${e.thumbnailUrl ?? r}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips && e.chips.length > 0 ? o`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>` : void 0}<div slot=footer-start></div></calcite-card>`;
|
|
79
71
|
}
|
|
80
72
|
}
|
|
81
|
-
|
|
73
|
+
h("solution-details-card", w);
|
|
82
74
|
export {
|
|
83
75
|
w as SolutionDetailsCard
|
|
84
76
|
};
|
|
@@ -9,7 +9,7 @@ import { css as R, html as l } from "lit";
|
|
|
9
9
|
import { request as T, getWorkflowBaseURL as P, getWorkflowManagerAuthorized as A, sanitizeHTML as _, getItemDataAsJson as O, getItem as U, getPropWithDefault as $, getProp as f, setCreateProp as N } from "@esri/solution-common";
|
|
10
10
|
import { E as m, g as x, T as g, z as F, A as H } from "../../chunks/interfaces.js";
|
|
11
11
|
import { _findExistingItem as V } from "@esri/solution-deployer";
|
|
12
|
-
import {
|
|
12
|
+
import { m as z, n as b, o as B, h as Y } from "../../chunks/helpers.js";
|
|
13
13
|
import { a as M, g as G } from "../../chunks/common.js";
|
|
14
14
|
import "../../chunks/solution-deploy-dialog.js";
|
|
15
15
|
import "../solution-snapshot-gallery/customElement.js";
|
|
@@ -17,12 +17,14 @@ export abstract class SolutionItemAccordion extends LitElement {
|
|
|
17
17
|
openDetails: string;
|
|
18
18
|
solutionsTemplates: string;
|
|
19
19
|
usedInAnotherSolution: string;
|
|
20
|
+
itemUsedInOtherSolutions: string;
|
|
20
21
|
} & T9nMeta<{
|
|
21
22
|
usedInOtherSolutionsDeleteWarning: string;
|
|
22
23
|
noPrivilegeToManage: string;
|
|
23
24
|
openDetails: string;
|
|
24
25
|
solutionsTemplates: string;
|
|
25
26
|
usedInAnotherSolution: string;
|
|
27
|
+
itemUsedInOtherSolutions: string;
|
|
26
28
|
}>;
|
|
27
29
|
/** DependencyItem[]: List of items that have relationship dependencies outside of this solution */
|
|
28
30
|
accessor itemRelationshipDependencies: DependencyItem[];
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { css as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { c as
|
|
7
|
-
import { useContextConsumer as
|
|
8
|
-
import * as
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { c as h } from "../../chunks/runtime.js";
|
|
3
|
+
import { u as p } from "../../chunks/useT9n.js";
|
|
4
|
+
import { css as u, html as o, nothing as m } from "lit";
|
|
5
|
+
import { LitElement as g, createEvent as l, safeStyleMap as y } from "@arcgis/lumina";
|
|
6
|
+
import { c as f } from "../../chunks/deployAppContexts.js";
|
|
7
|
+
import { useContextConsumer as _ } from "@arcgis/lumina/context";
|
|
8
|
+
import * as T from "@esri/solution-common";
|
|
9
|
+
import { s as x } from "../../chunks/helpers.js";
|
|
10
|
+
const v = u`:host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-brand)}`;
|
|
11
|
+
class w extends g {
|
|
11
12
|
constructor() {
|
|
12
|
-
super(...arguments), this.itemRelationshipDependencies = [], this.linkType = "item", this.listSelectionMode = "none", this.reuseWarning = "", this.templateInfos = [], this.typeKeywords = [], this.usageContext = "content", this._canDeletePermission = !1, this._dependencyTooltipContent = "", this._sortedTemplateInfos = [], this._translations =
|
|
13
|
-
context:
|
|
13
|
+
super(...arguments), this.itemRelationshipDependencies = [], this.linkType = "item", this.listSelectionMode = "none", this.reuseWarning = "", this.templateInfos = [], this.typeKeywords = [], this.usageContext = "content", this._canDeletePermission = !1, this._dependencyTooltipContent = "", this._sortedTemplateInfos = [], this._translations = p({ name: "solution-item-accordion", blocking: !0 }), this._configContextConsumer = _({
|
|
14
|
+
context: f,
|
|
14
15
|
subscribe: !0
|
|
15
16
|
}), this._sortOrder = [
|
|
16
17
|
"Hub Site Application",
|
|
@@ -45,13 +46,13 @@ class S extends _ {
|
|
|
45
46
|
"Report Template",
|
|
46
47
|
"Rule Package",
|
|
47
48
|
"Group"
|
|
48
|
-
], this.solutionItemHover =
|
|
49
|
+
], this.solutionItemHover = l(), this.solutionItemSelect = l(), this.solutionTypeHover = l();
|
|
49
50
|
}
|
|
50
51
|
static {
|
|
51
52
|
this.properties = { itemRelationshipDependencies: 0, linkType: 1, listSelectionMode: 1, reuseWarning: 1, templateInfos: 0, typeKeywords: 0, usageContext: 1, _canDeletePermission: 16, _dependencyTooltipContent: 16, _sortedTemplateInfos: 16, _translations: 16 };
|
|
52
53
|
}
|
|
53
54
|
static {
|
|
54
|
-
this.styles =
|
|
55
|
+
this.styles = v;
|
|
55
56
|
}
|
|
56
57
|
willUpdate(e) {
|
|
57
58
|
e.has("templateInfos") && (this.hasUpdated || this.templateInfos?.length > 0) && this.templateInfosWatchHandler();
|
|
@@ -125,7 +126,7 @@ class S extends _ {
|
|
|
125
126
|
}
|
|
126
127
|
_getListItem(e) {
|
|
127
128
|
const i = this.typeKeywords.includes("Deployed") && e.url, t = this.linkType === "action";
|
|
128
|
-
return o`<calcite-list-item id=${e.id ??
|
|
129
|
+
return o`<calcite-list-item id=${e.id ?? m} @mouseenter=${() => this.solutionItemHover.emit({ itemId: e.id, entering: !0 })} @mouseleave=${() => this.solutionItemHover.emit({ itemId: e.id, entering: !1 })} @calciteListItemSelect=${() => {
|
|
129
130
|
this._deselectOthers(e.id), this.solutionItemSelect.emit({ itemId: e.id, selected: !0 }), i && !t && window.open(e.url, "_blank");
|
|
130
131
|
}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${i && !t ? "underline" : ""}`}>${e.title}</div><div class="solution-list-item-description">${e.snippet}</div></div>${this._checkUsageForWarnings(e)}${i && t ? o`<div slot=actions-end><calcite-action icon=launch .id=${`${e.id}-launch`} @click=${() => window.open(e.url, "_blank")} text></calcite-action><calcite-tooltip overlay-positioning=fixed .referenceElement=${`${e.id}-launch`}><span>${this._translations?.openDetails}</span></calcite-tooltip></div>` : null}</calcite-list-item>`;
|
|
131
132
|
}
|
|
@@ -134,8 +135,8 @@ class S extends _ {
|
|
|
134
135
|
}
|
|
135
136
|
_sortTemplates() {
|
|
136
137
|
return this.templateInfos.sort((e, i) => {
|
|
137
|
-
const t = this._getTypeForSort(e), s = this._getTypeForSort(i), n = this._sortOrder.indexOf(t),
|
|
138
|
-
return n -
|
|
138
|
+
const t = this._getTypeForSort(e), s = this._getTypeForSort(i), n = this._sortOrder.indexOf(t), r = this._sortOrder.indexOf(s);
|
|
139
|
+
return n - r;
|
|
139
140
|
});
|
|
140
141
|
}
|
|
141
142
|
_getTypeForSort(e) {
|
|
@@ -152,22 +153,14 @@ class S extends _ {
|
|
|
152
153
|
}
|
|
153
154
|
_getWarningChip(e, i, t, s) {
|
|
154
155
|
const n = i === "info" ? "var(--calcite-color-status-info)" : "var(--calcite-color-status-danger)";
|
|
155
|
-
return o`<div slot=actions-end><calcite-chip .icon=${i === "info" ? "information" : "exclamation-mark-triangle"} .id=${t + "-warning"} kind=neutral .label=${e} scale=s style=${
|
|
156
|
-
const
|
|
157
|
-
q: s.map((
|
|
156
|
+
return o`<div slot=actions-end><calcite-chip .icon=${i === "info" ? "information" : "exclamation-mark-triangle"} .id=${t + "-warning"} kind=neutral .label=${e} scale=s style=${y({ "--calcite-chip-icon-color": n, cursor: s && s.length > 0 ? "pointer" : "default" })}>${e}</calcite-chip>${s && s.length > 0 ? o`<calcite-tooltip class=solution-list-item-content placement=bottom .referenceElement=${`${t}-warning`} scale=s @calciteTooltipBeforeOpen=${async () => {
|
|
157
|
+
const a = {
|
|
158
|
+
q: s.map((d) => `id:${d.dependencyItemId}`).join(" OR "),
|
|
158
159
|
authentication: this._configContextConsumer.value?.userSession,
|
|
159
160
|
pagingParam: { start: 1, num: 100 }
|
|
160
|
-
}, c = await
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return {
|
|
164
|
-
id: l.id,
|
|
165
|
-
title: l.title,
|
|
166
|
-
deployVersion: h,
|
|
167
|
-
created: l.created
|
|
168
|
-
};
|
|
169
|
-
})}></solutions-deployed-list>`;
|
|
170
|
-
}}>${this._dependencyTooltipContent}</calcite-popover>` : null}</div>`;
|
|
161
|
+
}, c = await T.searchItems(a);
|
|
162
|
+
this._dependencyTooltipContent = o`<solutions-deployed-list .cards=${x(c.results)} .listTitle=${this._translations?.itemUsedInOtherSolutions || ""}></solutions-deployed-list>`;
|
|
163
|
+
}}>${this._dependencyTooltipContent}</calcite-tooltip>` : null}</div>`;
|
|
171
164
|
}
|
|
172
165
|
_checkUsageForWarnings(e) {
|
|
173
166
|
const i = this._configContextConsumer.value?.userSession?.username ?? null, t = this.itemRelationshipDependencies.filter((n) => n.controlItemId === e.id), s = t.length > 0;
|
|
@@ -197,7 +190,7 @@ class S extends _ {
|
|
|
197
190
|
return "";
|
|
198
191
|
}
|
|
199
192
|
}
|
|
200
|
-
|
|
193
|
+
h("solution-item-accordion", w);
|
|
201
194
|
export {
|
|
202
|
-
|
|
195
|
+
w as SolutionItemAccordion
|
|
203
196
|
};
|
|
@@ -7,5 +7,4 @@ import "@esri/calcite-components/components/calcite-action";
|
|
|
7
7
|
import "@esri/calcite-components/components/calcite-tooltip";
|
|
8
8
|
import "@esri/calcite-components/components/calcite-chip";
|
|
9
9
|
import "../solutions-deployed-list/index.js";
|
|
10
|
-
import "@esri/calcite-components/components/calcite-popover";
|
|
11
10
|
export * from "./customElement.js";
|
|
@@ -35,6 +35,8 @@ export abstract class SolutionsAllPanel extends LitElement {
|
|
|
35
35
|
* @default 'relevance'
|
|
36
36
|
*/
|
|
37
37
|
accessor sortType: SortType;
|
|
38
|
+
/** Returns displayed solution ids in the same order cards are currently rendered. */
|
|
39
|
+
getDisplayedSolutionIds(): string[];
|
|
38
40
|
/**
|
|
39
41
|
* Search solutions based on key criteria
|
|
40
42
|
*
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { u as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { useContextConsumer as
|
|
7
|
-
import { a as
|
|
8
|
-
import { C as
|
|
9
|
-
import { b } from "../../chunks/cardsHelpers.js";
|
|
10
|
-
import { c as
|
|
11
|
-
import {
|
|
12
|
-
const
|
|
13
|
-
class
|
|
2
|
+
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as y, html as d, svg as C } from "lit";
|
|
4
|
+
import { u as S } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as v, createEvent as h } from "@arcgis/lumina";
|
|
6
|
+
import { useContextConsumer as w } from "@arcgis/lumina/context";
|
|
7
|
+
import { a as _, T as g, B as T, d as x, e as E } from "../../chunks/interfaces.js";
|
|
8
|
+
import { C as p, g as I } from "../../chunks/cardFetchingUtils.js";
|
|
9
|
+
import { b as A } from "../../chunks/cardsHelpers.js";
|
|
10
|
+
import { c as b } from "../../chunks/deployAppContexts.js";
|
|
11
|
+
import { f as D, h as L } from "../../chunks/helpers.js";
|
|
12
|
+
const F = y`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-surface-3)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-md) var(--calcite-spacing-md)}solution-details-card{width:calc(25% - .6rem)}@container (max-width: 1234px){solution-details-card{width:calc(33.333% - .6rem)}}@container (max-width: 1010px){solution-details-card{width:calc(50% - .6rem)}}@container (max-width: 800px){.card-group{padding-left:0;padding-right:0}solution-details-card{width:calc(33.33% - .6rem)}}@container (max-width: 680px){solution-details-card{width:calc(50% - .6rem)}}@container (max-width: 440px){solution-details-card{width:calc(100% - .75rem)}}.text-center{text-align:center}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.margin-top-half{margin-top:.5rem}.margin-top-1{margin-top:1rem}.no-solutions-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}`, m = 5;
|
|
13
|
+
class $ extends v {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(), this.sortType = "relevance", this._cards = [], this._isLoading = !0, this._modifiedCheckTry = 0, this._translations =
|
|
16
|
-
context:
|
|
15
|
+
super(), this.sortType = "relevance", this._cards = [], this._isLoading = !0, this._modifiedCheckTry = 0, this._translations = S({ name: "solutions-all-panel", blocking: !0 }), this._agoTerms = `${_}`, this._allCards = [], this._baseAgoTerms = _, this._categories = [], this._configContextConsumer = w({
|
|
16
|
+
context: b,
|
|
17
17
|
subscribe: !0,
|
|
18
18
|
callback: async (e) => {
|
|
19
19
|
e && (this._isDisconnectedEnvironment ? this._isLoading = !1 : await this._loadUpdateProcedures());
|
|
20
20
|
}
|
|
21
|
-
}), this._delay = !1, this._getSuggested = !1, this._relatedSolutions = /* @__PURE__ */ new Set(), this._sortField = "relevance", this._sortOrder = "desc", this.cardsFetched =
|
|
21
|
+
}), this._delay = !1, this._getSuggested = !1, this._relatedSolutions = /* @__PURE__ */ new Set(), this._sortField = "relevance", this._sortOrder = "desc", this._assistantSolutionIds = /* @__PURE__ */ new Set(), this.cardsFetched = h(), this.allCardsFetched = h(), this.searchTermSet = h(), this.sortTypeSet = h(), this.detailsCardSelected = h(), this._handleOpenAssistant = () => {
|
|
22
22
|
this._telemetry?.logEvent({
|
|
23
|
-
category:
|
|
23
|
+
category: g.ASSISTANT,
|
|
24
24
|
action: "Open"
|
|
25
25
|
}), window.dispatchEvent(new CustomEvent("openAssistant"));
|
|
26
26
|
}, this.listenOn(window, "deployProgressEnd", () => {
|
|
27
|
-
this._modifiedCheckTry =
|
|
27
|
+
this._modifiedCheckTry = m, this._loadUpdateProcedures();
|
|
28
28
|
}), this.listenOn(window, "solutionDeleted", () => {
|
|
29
|
-
this._modifiedCheckTry =
|
|
29
|
+
this._modifiedCheckTry = m, this._loadUpdateProcedures();
|
|
30
30
|
}), this.listenOn(window, "sortTypeChanged", (e) => {
|
|
31
31
|
e.detail && e.detail.scope === "all-solutions" && (this.sortType = e.detail.sortType, this._telemetry?.logEvent({
|
|
32
|
-
category:
|
|
32
|
+
category: g.ALL_SOLUTIONS,
|
|
33
33
|
action: "Sort",
|
|
34
34
|
dimensions: [D(e.detail.sortType)]
|
|
35
35
|
}), this.sortType === "suggested" && this._deployedSolutions?.cards.length === 0 ? this._getDeployedSolutions().then(() => {
|
|
@@ -37,13 +37,15 @@ class F extends S {
|
|
|
37
37
|
}) : this.searchSolutions(e.detail));
|
|
38
38
|
}), this.listenOn(window, "solutionIDFromAssistant", (e) => {
|
|
39
39
|
this._lookupSolutionById(e.detail);
|
|
40
|
+
}), this.listenOn(window, "solutionMatchesFromAssistant", (e) => {
|
|
41
|
+
this._applyAssistantSolutionMatches(e.detail);
|
|
40
42
|
});
|
|
41
43
|
}
|
|
42
44
|
static {
|
|
43
45
|
this.properties = { sortType: 1, _cards: 16, _isLoading: 16, _modifiedCheckTry: 16, _translations: 16 };
|
|
44
46
|
}
|
|
45
47
|
static {
|
|
46
|
-
this.styles =
|
|
48
|
+
this.styles = F;
|
|
47
49
|
}
|
|
48
50
|
get _isEnterprise() {
|
|
49
51
|
return this._configContextConsumer.value?.isEnterprise;
|
|
@@ -66,9 +68,12 @@ class F extends S {
|
|
|
66
68
|
scope: "all-solutions"
|
|
67
69
|
})));
|
|
68
70
|
}
|
|
71
|
+
getDisplayedSolutionIds() {
|
|
72
|
+
return this._cards.map((e) => e.deployCommonId);
|
|
73
|
+
}
|
|
69
74
|
render() {
|
|
70
75
|
const e = this._configContextConsumer.value?.authentication?.IsSignedIn && this._configContextConsumer.value?.authentication?.CanUseAI;
|
|
71
|
-
return this._isDisconnectedEnvironment ? d`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.disconnectedEnvironment}</div></div></div></div>` : this._isLoading || this._cards.length ? d`<calcite-panel>${this._isLoading ? d`<calcite-loader id=solutions-all-panel-loader .label=${this._translations.fetchingSolutions}></calcite-loader>` : d`<calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group>`}</calcite-panel>` : d`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${!this._isEnterprise && e ? this._translations.assistantHelp : this._translations.changeSearchTerm}</div></div>${!this._isEnterprise && e && d`<calcite-button appearance=outline icon-start=speech-bubbles @click=${this._handleOpenAssistant} @keydown=${(t) =>
|
|
76
|
+
return this._isDisconnectedEnvironment ? d`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.disconnectedEnvironment}</div></div></div></div>` : this._isLoading || this._cards.length ? d`<calcite-panel>${this._isLoading ? d`<calcite-loader id=solutions-all-panel-loader .label=${this._translations.fetchingSolutions}></calcite-loader>` : d`<calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group>`}</calcite-panel>` : d`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${!this._isEnterprise && e ? this._translations.assistantHelp : this._translations.changeSearchTerm}</div></div>${!this._isEnterprise && e && d`<calcite-button appearance=outline icon-start=speech-bubbles @click=${this._handleOpenAssistant} @keydown=${(t) => L(t, () => this._handleOpenAssistant())} scale=l>${this._translations.askAssistant}</calcite-button>` || ""}</div></div>`;
|
|
72
77
|
}
|
|
73
78
|
_renderCards() {
|
|
74
79
|
return this._cards.map((e) => d`<solution-details-card .card=${e}></solution-details-card>`);
|
|
@@ -108,8 +113,8 @@ class F extends S {
|
|
|
108
113
|
return n !== void 0 && Number(o.deployVersion) >= n;
|
|
109
114
|
}), l = new Set(a.map((o) => o.deployCommonId));
|
|
110
115
|
this._relatedSolutions = new Set([...this._relatedSolutions].filter((o) => !l.has(o))), t.sort((o, n) => {
|
|
111
|
-
const r = this._relatedSolutions.has(o.deployCommonId),
|
|
112
|
-
return r && !
|
|
116
|
+
const r = this._relatedSolutions.has(o.deployCommonId), u = this._relatedSolutions.has(n.deployCommonId);
|
|
117
|
+
return r && !u ? -1 : !r && u ? 1 : 0;
|
|
113
118
|
});
|
|
114
119
|
}
|
|
115
120
|
const i = t.map((s) => {
|
|
@@ -119,7 +124,9 @@ class F extends S {
|
|
|
119
124
|
const r = [];
|
|
120
125
|
return a ? r.push("new") : l && r.push("updated"), o && (n ? r.push("deployed") : r.push("deployedOlderVersion")), s.chips = r.length > 0 ? r : void 0, s.supportReuse = o ? !!(o && !n) : !0, s;
|
|
121
126
|
});
|
|
122
|
-
|
|
127
|
+
this._allCards.length === 0 && e?.cards && (this._allCards = e?.cards, this._deployedSolutions && (this._relatedSolutions = A(this._deployedSolutions.cards, this._allCards)));
|
|
128
|
+
const c = this._assistantSolutionIds.size > 0 ? i.filter((s) => this._assistantSolutionIds.has(s.deployCommonId)) : i;
|
|
129
|
+
return this.cardsFetched.emit(c.length), this._isLoading = !1, c;
|
|
123
130
|
} else
|
|
124
131
|
return this._isLoading = !1, [];
|
|
125
132
|
}
|
|
@@ -130,13 +137,13 @@ class F extends S {
|
|
|
130
137
|
}
|
|
131
138
|
this._isLoading = !0;
|
|
132
139
|
const e = this._configContextConsumer.value;
|
|
133
|
-
this._cardsFetcher = new
|
|
140
|
+
this._cardsFetcher = new p(e.locale, e.orgUrl, e.portalURL), this._cardsFetcherDeployed = new p(e.locale, e.orgUrl, e.portalURL), await this._getDeployedSolutions(), this._cards = await this._getSolutions(), this.allCardsFetched.emit(this._cards), this._isLoading = !1;
|
|
134
141
|
}
|
|
135
142
|
async _getDeployedSolutions() {
|
|
136
143
|
const e = this._configContextConsumer.value.authentication, t = this._configContextConsumer.value.userSession;
|
|
137
144
|
if (e && t && e.IsSignedIn) {
|
|
138
145
|
this._abortControllerDeployed ? (this._abortControllerDeployed.abort(), this._abortControllerDeployed = new AbortController()) : this._abortControllerDeployed = new AbortController();
|
|
139
|
-
const i = await
|
|
146
|
+
const i = await I(e, t, this._cardsFetcher, this._cardsFetcherDeployed, T, "created", this._sortOrder, void 0, this._categories, void 0, this._abortControllerDeployed.signal);
|
|
140
147
|
if (this._abortControllerDeployed = void 0, i) {
|
|
141
148
|
if (this._modifiedCheckTry > 0) {
|
|
142
149
|
if (this._deployedSolutions?.cards.length === i?.cards.length)
|
|
@@ -148,7 +155,7 @@ class F extends S {
|
|
|
148
155
|
}
|
|
149
156
|
}
|
|
150
157
|
_getMeridianSearch() {
|
|
151
|
-
return d`<div><svg viewBox="0 0 64 64" width=140 height=140 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${
|
|
158
|
+
return d`<div><svg viewBox="0 0 64 64" width=140 height=140 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${C`<path d="M60.217 54.937l-15.77-15.77-1.414 1.415-3.801-3.8a19.94 19.94 0 1 0-2.451 2.45l3.802 3.802-1.413 1.415 15.767 15.767a1.739 1.739 0 0 0 2.459 0l2.82-2.821a1.742 1.742 0 0 0 0-2.458zM4.9 24A19.1 19.1 0 1 1 24 43.1 19.121 19.121 0 0 1 4.9 24zm32.474 14.693q.69-.63 1.32-1.32l3.774 3.775-1.32 1.32zM59.65 56.83l-2.82 2.82a.97.97 0 0 1-1.327 0L40.3 44.45l4.145-4.15L59.65 55.501a.939.939 0 0 1 0 1.328zM22.343 9.62l.097.795q-.31.038-.619.086a13.635 13.635 0 0 0-11.353 11.775l-.026.217-.795-.084.026-.228a14.44 14.44 0 0 1 12.022-12.47c.215-.034.431-.064.648-.09z" />`}</svg></div>`;
|
|
152
159
|
}
|
|
153
160
|
_textSearch(e) {
|
|
154
161
|
this._agoTerms = this._baseAgoTerms + ` ${e}`;
|
|
@@ -162,8 +169,8 @@ class F extends S {
|
|
|
162
169
|
if (t.industry) {
|
|
163
170
|
const i = this._getIndustryValue(t.industry);
|
|
164
171
|
if (t.domain) {
|
|
165
|
-
const
|
|
166
|
-
this._categories.push(`/Categories/${i}/${
|
|
172
|
+
const c = this._getDomainValue(t.domain);
|
|
173
|
+
this._categories.push(`/Categories/${i}/${c}`);
|
|
167
174
|
} else
|
|
168
175
|
this._categories.push(`/Categories/${i}`);
|
|
169
176
|
}
|
|
@@ -173,7 +180,7 @@ class F extends S {
|
|
|
173
180
|
return x[e];
|
|
174
181
|
}
|
|
175
182
|
_getIndustryValue(e) {
|
|
176
|
-
return e === "AEC" ? "AEC" :
|
|
183
|
+
return e === "AEC" ? "AEC" : E[e];
|
|
177
184
|
}
|
|
178
185
|
_clearFilterCategories() {
|
|
179
186
|
this._categories = [];
|
|
@@ -182,15 +189,23 @@ class F extends S {
|
|
|
182
189
|
return !!this._deployedSolutions?.cards?.some((t) => t?.typeKeywords?.some((i) => i.includes("solutionid") && i.includes(e)));
|
|
183
190
|
}
|
|
184
191
|
_isLatestVersion(e) {
|
|
185
|
-
const t = this._deployedSolutions?.cards?.filter((i) => i?.typeKeywords?.some((
|
|
192
|
+
const t = this._deployedSolutions?.cards?.filter((i) => i?.typeKeywords?.some((c) => c.includes("solutionid") && c.includes(e.deployCommonId)));
|
|
186
193
|
return !(t && t.length > 0 && t[0].deployVersion !== e.deployVersion);
|
|
187
194
|
}
|
|
188
195
|
_lookupSolutionById(e) {
|
|
189
196
|
const t = this._allCards.filter((i) => i.deployCommonId === e);
|
|
190
197
|
t.length > 0 && this.detailsCardSelected.emit(t[0]);
|
|
191
198
|
}
|
|
199
|
+
async _applyAssistantSolutionMatches(e) {
|
|
200
|
+
const t = Array.isArray(e?.solutionIds) ? e.solutionIds.filter(Boolean) : [];
|
|
201
|
+
if (this._agoTerms = this._baseAgoTerms, this._clearFilterCategories(), this._getSuggested = !1, this._assistantSolutionIds = new Set(t), this._allCards.length === 0) {
|
|
202
|
+
await this._loadUpdateProcedures();
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
this._cards = await this._getSolutions();
|
|
206
|
+
}
|
|
192
207
|
}
|
|
193
|
-
|
|
208
|
+
f("solutions-all-panel", $);
|
|
194
209
|
export {
|
|
195
|
-
|
|
210
|
+
$ as SolutionsAllPanel
|
|
196
211
|
};
|