@esri/solutions-components 5.1.0-next.115 → 5.1.0-next.116
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/FBKFFWV7.js +2 -0
- package/dist/cdn/{MNVPA4PO.js → GX4UL6SH.js} +1 -1
- package/dist/cdn/I26G2BTP.js +2 -0
- package/dist/cdn/JZS6OOSV.js +2 -0
- package/dist/cdn/{I3Z4ZXHI.js → KDBX5NZF.js} +104 -104
- package/dist/cdn/{ZLF75XXR.js → KID5EGV6.js} +1 -1
- package/dist/cdn/{NF7NTXNX.js → LEKPF4W5.js} +1 -1
- package/dist/cdn/NNGGHOOR.js +2 -0
- package/dist/cdn/OGCNOMXG.js +2 -0
- package/dist/cdn/{JDVBBLSB.js → T4SIUI23.js} +1 -1
- package/dist/cdn/{IK3B7GAH.js → WO2UM46M.js} +1 -1
- package/dist/cdn/{BKEBJRZX.js → Z5BMHRBD.js} +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +3299 -3297
- package/dist/components/layer-table/customElement.js +12 -12
- package/dist/components/solution-builder-assistant/customElement.d.ts +4 -0
- package/dist/components/solution-builder-assistant/customElement.js +108 -82
- package/dist/components/solutions-all-panel/customElement.js +12 -10
- package/dist/components/solutions-all-shell/customElement.d.ts +2 -0
- package/dist/components/solutions-all-shell/customElement.js +38 -37
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- 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 -7
- package/dist/utils/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cdn/5MQE4ZNN.js +0 -2
- package/dist/cdn/HP3WJMPA.js +0 -2
- package/dist/cdn/RA7KEE53.js +0 -2
- package/dist/cdn/WO6SEUNB.js +0 -2
- package/dist/cdn/ZLUCHPJQ.js +0 -2
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as y, html as d, svg as C } from "lit";
|
|
4
4
|
import { u as S } from "../../chunks/useT9n.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { useContextConsumer as
|
|
7
|
-
import { a as _, T as g, B as T, d as x, e as
|
|
5
|
+
import { LitElement as w, createEvent as h } from "@arcgis/lumina";
|
|
6
|
+
import { useContextConsumer as v } from "@arcgis/lumina/context";
|
|
7
|
+
import { a as _, T as g, B as T, d as x, e as I } from "../../chunks/interfaces.js";
|
|
8
8
|
import { C as p } from "../../chunks/CardsFetcher.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { g as
|
|
9
|
+
import { g as A } from "../../chunks/cardsHelpers.js";
|
|
10
|
+
import { g as E } from "../../chunks/cardFetchingUtils.js";
|
|
11
11
|
import { c as b } from "../../chunks/deployAppContexts.js";
|
|
12
12
|
import { l as D, k as L } from "../../chunks/helpers.js";
|
|
13
13
|
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;
|
|
14
|
-
class $ extends
|
|
14
|
+
class $ extends w {
|
|
15
15
|
constructor() {
|
|
16
|
-
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 =
|
|
16
|
+
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 = v({
|
|
17
17
|
context: b,
|
|
18
18
|
subscribe: !0,
|
|
19
19
|
callback: async (e) => {
|
|
@@ -40,6 +40,8 @@ class $ extends v {
|
|
|
40
40
|
this._lookupSolutionById(e.detail);
|
|
41
41
|
}), this.listenOn(window, "solutionMatchesFromAssistant", (e) => {
|
|
42
42
|
this._applyAssistantSolutionMatches(e.detail);
|
|
43
|
+
}), this.listenOn(window, "clearAssistantResultFilters", () => {
|
|
44
|
+
this._assistantSolutionIds = /* @__PURE__ */ new Set();
|
|
43
45
|
});
|
|
44
46
|
}
|
|
45
47
|
static {
|
|
@@ -125,7 +127,7 @@ class $ extends v {
|
|
|
125
127
|
const r = [];
|
|
126
128
|
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;
|
|
127
129
|
});
|
|
128
|
-
this._allCards.length === 0 && e?.cards && (this._allCards = e?.cards, this._deployedSolutions && (this._relatedSolutions =
|
|
130
|
+
this._allCards.length === 0 && e?.cards && (this._allCards = e?.cards, this._deployedSolutions && (this._relatedSolutions = A(this._deployedSolutions.cards, this._allCards)));
|
|
129
131
|
const c = this._assistantSolutionIds.size > 0 ? i.filter((s) => this._assistantSolutionIds.has(s.deployCommonId)) : i;
|
|
130
132
|
return this.cardsFetched.emit(c.length), this._isLoading = !1, c;
|
|
131
133
|
} else
|
|
@@ -144,7 +146,7 @@ class $ extends v {
|
|
|
144
146
|
const e = this._configContextConsumer.value.authentication, t = this._configContextConsumer.value.userSession;
|
|
145
147
|
if (e && t && e.IsSignedIn) {
|
|
146
148
|
this._abortControllerDeployed ? (this._abortControllerDeployed.abort(), this._abortControllerDeployed = new AbortController()) : this._abortControllerDeployed = new AbortController();
|
|
147
|
-
const i = await
|
|
149
|
+
const i = await E(e, t, this._cardsFetcher, this._cardsFetcherDeployed, T, "created", this._sortOrder, void 0, this._categories, void 0, this._abortControllerDeployed.signal);
|
|
148
150
|
if (this._abortControllerDeployed = void 0, i) {
|
|
149
151
|
if (this._modifiedCheckTry > 0) {
|
|
150
152
|
if (this._deployedSolutions?.cards.length === i?.cards.length)
|
|
@@ -181,7 +183,7 @@ class $ extends v {
|
|
|
181
183
|
return x[e];
|
|
182
184
|
}
|
|
183
185
|
_getIndustryValue(e) {
|
|
184
|
-
return e === "AEC" ? "AEC" :
|
|
186
|
+
return e === "AEC" ? "AEC" : I[e];
|
|
185
187
|
}
|
|
186
188
|
_clearFilterCategories() {
|
|
187
189
|
this._categories = [];
|
|
@@ -11,6 +11,7 @@ export abstract class SolutionsAllShell extends LitElement {
|
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
13
|
protected _translations: {
|
|
14
|
+
aiAssistantResults: string;
|
|
14
15
|
appliedFilters: string;
|
|
15
16
|
clearIndustryFilter: string;
|
|
16
17
|
chooseSortType: string;
|
|
@@ -21,6 +22,7 @@ export abstract class SolutionsAllShell extends LitElement {
|
|
|
21
22
|
sortByUpdated: string;
|
|
22
23
|
sortBySuggestedForYou: string;
|
|
23
24
|
} & T9nMeta<{
|
|
25
|
+
aiAssistantResults: string;
|
|
24
26
|
appliedFilters: string;
|
|
25
27
|
clearIndustryFilter: string;
|
|
26
28
|
chooseSortType: string;
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as x } from "lit/directives/keyed.js";
|
|
4
|
+
import { repeat as S } from "lit/directives/repeat.js";
|
|
5
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
6
|
+
import { LitElement as C, createEvent as F, safeClassMap as c, safeStyleMap as h } from "@arcgis/lumina";
|
|
6
7
|
import { useContextConsumer as f } from "@arcgis/lumina/context";
|
|
7
|
-
import { css as
|
|
8
|
-
import { c as R, i as
|
|
9
|
-
import { e as
|
|
10
|
-
import { createRef as
|
|
8
|
+
import { css as $, html as a } from "lit";
|
|
9
|
+
import { c as R, i as T } from "../../chunks/deployAppContexts.js";
|
|
10
|
+
import { e as _, d as g, T as m } from "../../chunks/interfaces.js";
|
|
11
|
+
import { createRef as d, ref as n } from "lit/directives/ref.js";
|
|
11
12
|
import "../solutions-filter-panel/customElement.js";
|
|
12
|
-
const
|
|
13
|
-
class P extends
|
|
13
|
+
const M = $`.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;font-weight:var(--calcite-font-weight-medium)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-sm)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@container (max-width: 800px){.filter{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-4);--calcite-panel-background-color: var(--calcite-color-surface-4)}.chips-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--calcite-spacing-xs);flex:1;padding-block:var(--calcite-spacing-xs)}.header-content-wrapper{min-height:50px;flex-wrap:wrap;gap:var(--calcite-spacing-xs);padding-inline-start:var(--calcite-spacing-lg);padding-top:8px}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}.chip-group{max-width:100%}.chip-group{display:flex;flex-wrap:wrap}.responsive-chip{max-width:100%}.responsive-chip .chip-text{display:inline-flex;align-items:center;line-height:1;max-width:100%}@container (max-width: 800px){.responsive-chip{max-width:100%;min-width:0}.responsive-chip .chip-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.mobile-stack{flex-direction:column;align-items:flex-start;padding-top:var(--calcite-spacing-md)}`;
|
|
14
|
+
class P extends C {
|
|
14
15
|
constructor() {
|
|
15
16
|
super(), this.solutionsCount = 0, this._isLoading = !0, this._filterOpen = !0, this._filters = {
|
|
16
17
|
categories: [],
|
|
17
18
|
searchTerm: ""
|
|
18
|
-
}, this._isMobile = !1, this._translations =
|
|
19
|
+
}, this._isMobile = !1, this._translations = w({ name: "solutions-all-shell", blocking: !0 }), this._allSolutionsPanelRef = d(), this._solutionsFilterPanelRef = d(), this._mainPanelRef = d(), this._panelFixed = !1, this._configContextConsumer = f({
|
|
19
20
|
context: R,
|
|
20
21
|
subscribe: !0
|
|
21
22
|
}), this._isMobileContextConsumer = f({
|
|
22
|
-
context:
|
|
23
|
+
context: T,
|
|
23
24
|
subscribe: !0,
|
|
24
25
|
callback: (e) => this._isMobile = e
|
|
25
26
|
}), this.filterRemoved = F(), this.listenOn(window, "searchChanged", (e) => {
|
|
@@ -34,7 +35,7 @@ class P extends w {
|
|
|
34
35
|
this.properties = { solutionsCount: 9, _isLoading: 16, _filterOpen: 16, _filters: 16, _isMobile: 16, _translations: 16 };
|
|
35
36
|
}
|
|
36
37
|
static {
|
|
37
|
-
this.styles =
|
|
38
|
+
this.styles = M;
|
|
38
39
|
}
|
|
39
40
|
willUpdate(e) {
|
|
40
41
|
e.has("_isMobile") && (this._filterOpen = !this._isMobile);
|
|
@@ -45,7 +46,7 @@ class P extends w {
|
|
|
45
46
|
async searchSolutions(e) {
|
|
46
47
|
if (this._allSolutionsPanelRef.value.setSearchOptions(e), "industry" in e || "domain" in e) {
|
|
47
48
|
e.displayValue = e.domain || e.industry;
|
|
48
|
-
const t = e.industry ? Object.entries(
|
|
49
|
+
const t = e.industry ? Object.entries(_).find(([, s]) => s === e.industry)?.[0] : void 0, i = e.domain ? Object.entries(g).find(([, s]) => s === e.domain)?.[0] : void 0;
|
|
49
50
|
e.industry = t || "", e.domain = i || "", e.value = i || t || "", this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry, e.domain, e.displayValue, !0);
|
|
50
51
|
} else ("searchTerm" in e || "sortType" in e) && ("searchTerm" in e && (this._filters.searchTerm = e.searchTerm), this._allSolutionsPanelRef.value?.searchSolutions(e));
|
|
51
52
|
}
|
|
@@ -90,7 +91,7 @@ class P extends w {
|
|
|
90
91
|
}
|
|
91
92
|
render() {
|
|
92
93
|
const e = this._isMobile ? "justify-content-end" : "", t = this._isLoading ? "display-none" : "";
|
|
93
|
-
return
|
|
94
|
+
return a`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile ? "" : this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1" ${n(this._mainPanelRef)}><div class=${c(this._isMobile ? `mobile-stack ${e}` : `display-flex align-items-center header-content-wrapper ${e}`)} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}", this.solutionsCount.toString())}</calcite-label><div class="chips-container">${this._renderChips()}${this._filters.categories && this._filters.categories?.length > 0 && a`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${() => {
|
|
94
95
|
this._filters = {
|
|
95
96
|
...this._filters,
|
|
96
97
|
categories: [],
|
|
@@ -110,22 +111,22 @@ class P extends w {
|
|
|
110
111
|
}
|
|
111
112
|
_getFilterPanel() {
|
|
112
113
|
const e = this._filterOpen ? { display: "flex" } : "";
|
|
113
|
-
return this._isMobile ?
|
|
114
|
+
return this._isMobile ? a`<calcite-panel class=${`border-none ${this._filterOpen ? "background-override" : "filter background-override"}`} id=solutions-all-shell-panel-start style=${h(e)}><solutions-filter-panel class="height-100" @applyFilter=${(t) => {
|
|
114
115
|
this._filterApplied(t.detail);
|
|
115
|
-
}} ${n(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>` :
|
|
116
|
+
}} ${n(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>` : a`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${h(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" @applyFilter=${(t) => {
|
|
116
117
|
this._filterApplied(t.detail);
|
|
117
118
|
}} ${n(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`;
|
|
118
119
|
}
|
|
119
120
|
_getSolutionsAllPanel() {
|
|
120
121
|
const e = this._isMobile && this._filterOpen ? { display: "none" } : "";
|
|
121
|
-
return
|
|
122
|
+
return a`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${h(e)} ${n(this._allSolutionsPanelRef)}></solutions-all-panel>`;
|
|
122
123
|
}
|
|
123
124
|
_renderChips() {
|
|
124
125
|
if (!this._filters.categories)
|
|
125
126
|
return;
|
|
126
127
|
const e = this._filters.categories.filter((t) => t.type === "industry" || t.type === "domain" || t.type === "solution");
|
|
127
128
|
if (e.length !== 0)
|
|
128
|
-
return
|
|
129
|
+
return a`<calcite-chip-group class="chip-group" .label=${this._translations.appliedFilters}>${this._filters.displayValue && this._filters.displayValue !== "" ? x(`${this._filters.displayValue}`, a`<calcite-chip appearance=outline-fill class=${c(this._isMobile ? "responsive-chip" : "padding-start responsive-chip")} closable .label=${this._filters.displayValue ?? ""} @calciteChipClose=${() => this._chipClosed(this._filters.displayValue, "solution")} .value=${this._filters.displayValue}>${this._filters.displayValue}</calcite-chip>`) : S(e, (t) => `${t.type}:${t.value}`, (t) => a`<calcite-chip appearance=outline-fill class=${c(this._isMobile ? "responsive-chip" : "padding-start responsive-chip")} closable .label=${t.displayValue} @calciteChipClose=${() => this._chipClosed(t.displayValue, t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`)}</calcite-chip-group>`;
|
|
129
130
|
}
|
|
130
131
|
_updateSolutionCount(e) {
|
|
131
132
|
this.solutionsCount = e.detail;
|
|
@@ -133,33 +134,32 @@ class P extends w {
|
|
|
133
134
|
_syncSolutionChipOrderWithDisplayedCards() {
|
|
134
135
|
if (!this._filters.categories?.length)
|
|
135
136
|
return;
|
|
136
|
-
const e = this._filters.categories.filter((
|
|
137
|
+
const e = this._filters.categories.filter((l) => l.type === "solution");
|
|
137
138
|
if (e.length <= 1)
|
|
138
139
|
return;
|
|
139
140
|
const t = this._allSolutionsPanelRef.value?.getDisplayedSolutionIds?.() ?? [];
|
|
140
141
|
if (!t.length)
|
|
141
142
|
return;
|
|
142
143
|
const i = /* @__PURE__ */ new Map();
|
|
143
|
-
t.forEach((
|
|
144
|
-
i.set(
|
|
144
|
+
t.forEach((l, o) => {
|
|
145
|
+
i.set(l, o);
|
|
145
146
|
});
|
|
146
|
-
const s = [...e].sort((
|
|
147
|
-
const
|
|
148
|
-
return b -
|
|
149
|
-
}),
|
|
147
|
+
const s = [...e].sort((l, o) => {
|
|
148
|
+
const u = i.get(String(l.value)), p = i.get(String(o.value)), b = u === void 0 ? Number.MAX_SAFE_INTEGER : u, y = p === void 0 ? Number.MAX_SAFE_INTEGER : p;
|
|
149
|
+
return b - y;
|
|
150
|
+
}), r = this._filters.categories.filter((l) => l.type !== "solution");
|
|
150
151
|
this._filters = {
|
|
151
152
|
...this._filters,
|
|
152
|
-
categories: [...
|
|
153
|
+
categories: [...r, ...s]
|
|
153
154
|
};
|
|
154
155
|
}
|
|
155
156
|
_chipClosed(e, t) {
|
|
156
157
|
if (this._filters.categories) {
|
|
157
158
|
if (t === "solution") {
|
|
158
|
-
|
|
159
|
-
this._filters.categories = this._filters.categories.filter((l) => !(l.type === "solution" && l.displayValue === e)), this._emitSolutionMatchesFromAssistant(s.map((l) => String(l.value)), s.map((l) => l.displayValue)), s.length === 0 && this._filters.categories.length === 0 && (this._filters = {
|
|
159
|
+
this._filters.categories = [], this._emitSolutionMatchesFromAssistant([], []), this._filters = {
|
|
160
160
|
...this._filters,
|
|
161
161
|
searchTerm: ""
|
|
162
|
-
}, this._allSolutionsPanelRef.value?.searchSolutions()
|
|
162
|
+
}, this._allSolutionsPanelRef.value?.searchSolutions();
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
165
|
if (t === "industry")
|
|
@@ -172,14 +172,15 @@ class P extends w {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
_applyAssistantSolutionMatches(e) {
|
|
175
|
-
const t = Array.isArray(e?.solutionIds) ? e.solutionIds : [], i = Array.isArray(e?.solutionTitles) ? e.solutionTitles : [], s = t.map((
|
|
175
|
+
const t = Array.isArray(e?.solutionIds) ? e.solutionIds : [], i = Array.isArray(e?.solutionTitles) ? e.solutionTitles : [], s = t.map((r, l) => ({
|
|
176
176
|
type: "solution",
|
|
177
|
-
value:
|
|
178
|
-
displayValue: i[
|
|
177
|
+
value: r,
|
|
178
|
+
displayValue: i[l] ?? r
|
|
179
179
|
}));
|
|
180
180
|
this._filters = {
|
|
181
181
|
categories: s,
|
|
182
|
-
searchTerm: ""
|
|
182
|
+
searchTerm: "",
|
|
183
|
+
displayValue: this._translations.aiAssistantResults
|
|
183
184
|
}, this.filterRemoved.emit([]);
|
|
184
185
|
}
|
|
185
186
|
_toggleFilter() {
|
|
@@ -187,9 +188,9 @@ class P extends w {
|
|
|
187
188
|
}
|
|
188
189
|
_logFilterTelemetry(e) {
|
|
189
190
|
if ((e.type === "industry" || e.type === "domain") && e.industry) {
|
|
190
|
-
const i = [
|
|
191
|
+
const i = [_[e.industry]];
|
|
191
192
|
if (e.domain) {
|
|
192
|
-
const s =
|
|
193
|
+
const s = g[e.domain];
|
|
193
194
|
i.push(s);
|
|
194
195
|
}
|
|
195
196
|
this._telemetry?.logEvent({
|
|
@@ -226,7 +227,7 @@ class P extends w {
|
|
|
226
227
|
this._filters.categories = [], this._allSolutionsPanelRef.value?.searchSolutions();
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
|
-
|
|
230
|
+
v("solutions-all-shell", P);
|
|
230
231
|
export {
|
|
231
232
|
P as SolutionsAllShell
|
|
232
233
|
};
|
|
@@ -71,7 +71,7 @@ class T extends S {
|
|
|
71
71
|
this.styles = R;
|
|
72
72
|
}
|
|
73
73
|
changeIndustryFilter(t, e, c, h) {
|
|
74
|
-
if (t !== "" || e !== "") {
|
|
74
|
+
if (window.dispatchEvent(new CustomEvent("clearAssistantResultFilters")), t !== "" || e !== "") {
|
|
75
75
|
let r = [];
|
|
76
76
|
if (e !== "") {
|
|
77
77
|
const i = F[t], a = this._industryMatchName(i), s = A[e], n = this._domainMatchName(s);
|