@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,38 +1,40 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { repeat as
|
|
4
|
-
import { u as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { useContextConsumer as
|
|
7
|
-
import { css as
|
|
8
|
-
import { c as
|
|
9
|
-
import { e as
|
|
10
|
-
import { createRef as
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as x } from "lit/directives/repeat.js";
|
|
4
|
+
import { u as S } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as w, createEvent as F, safeClassMap as p, safeStyleMap as c } from "@arcgis/lumina";
|
|
6
|
+
import { useContextConsumer as f } from "@arcgis/lumina/context";
|
|
7
|
+
import { css as C, html as r } from "lit";
|
|
8
|
+
import { c as R, i as T } from "../../chunks/deployAppContexts.js";
|
|
9
|
+
import { e as g, d as _, T as m } from "../../chunks/interfaces.js";
|
|
10
|
+
import { createRef as h, ref as n } from "lit/directives/ref.js";
|
|
11
11
|
import "../solutions-filter-panel/customElement.js";
|
|
12
|
-
const
|
|
13
|
-
class
|
|
12
|
+
const $ = C`.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)}`;
|
|
13
|
+
class P extends w {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(), this.solutionsCount = 0, this._isLoading = !0, this._filterOpen = !0, this._filters = {
|
|
16
16
|
categories: [],
|
|
17
17
|
searchTerm: ""
|
|
18
|
-
}, this._isMobile = !1, this._translations =
|
|
19
|
-
context:
|
|
18
|
+
}, this._isMobile = !1, this._translations = S({ name: "solutions-all-shell", blocking: !0 }), this._allSolutionsPanelRef = h(), this._solutionsFilterPanelRef = h(), this._mainPanelRef = h(), this._panelFixed = !1, this._configContextConsumer = f({
|
|
19
|
+
context: R,
|
|
20
20
|
subscribe: !0
|
|
21
|
-
}), this._isMobileContextConsumer =
|
|
22
|
-
context:
|
|
21
|
+
}), this._isMobileContextConsumer = f({
|
|
22
|
+
context: T,
|
|
23
23
|
subscribe: !0,
|
|
24
24
|
callback: (e) => this._isMobile = e
|
|
25
|
-
}), this.filterRemoved =
|
|
25
|
+
}), this.filterRemoved = F(), this.listenOn(window, "searchChanged", (e) => {
|
|
26
26
|
e.detail && e.detail.scope === "all-solutions" && this._filterApplied(e.detail.option, e.detail.logSearchTelemetry);
|
|
27
27
|
}), this.listenOn(window, "toggleFilter", this._toggleFilter), this.listenOn(window, "cardsFetched", () => {
|
|
28
|
-
this._isLoading = !1;
|
|
28
|
+
this._isLoading = !1, this._syncSolutionChipOrderWithDisplayedCards();
|
|
29
|
+
}), this.listenOn(window, "solutionMatchesFromAssistant", (e) => {
|
|
30
|
+
this._applyAssistantSolutionMatches(e.detail);
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
33
|
static {
|
|
32
34
|
this.properties = { solutionsCount: 9, _isLoading: 16, _filterOpen: 16, _filters: 16, _isMobile: 16, _translations: 16 };
|
|
33
35
|
}
|
|
34
36
|
static {
|
|
35
|
-
this.styles =
|
|
37
|
+
this.styles = $;
|
|
36
38
|
}
|
|
37
39
|
willUpdate(e) {
|
|
38
40
|
e.has("_isMobile") && (this._filterOpen = !this._isMobile);
|
|
@@ -43,7 +45,7 @@ class w extends _ {
|
|
|
43
45
|
async searchSolutions(e) {
|
|
44
46
|
if (this._allSolutionsPanelRef.value.setSearchOptions(e), "industry" in e || "domain" in e) {
|
|
45
47
|
e.displayValue = e.domain || e.industry;
|
|
46
|
-
const t = e.industry ? Object.entries(
|
|
48
|
+
const t = e.industry ? Object.entries(g).find(([, s]) => s === e.industry)?.[0] : void 0, i = e.domain ? Object.entries(_).find(([, s]) => s === e.domain)?.[0] : void 0;
|
|
47
49
|
e.industry = t || "", e.domain = i || "", e.value = i || t || "", this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry, e.domain, e.displayValue, !0);
|
|
48
50
|
} else ("searchTerm" in e || "sortType" in e) && ("searchTerm" in e && (this._filters.searchTerm = e.searchTerm), this._allSolutionsPanelRef.value?.searchSolutions(e));
|
|
49
51
|
}
|
|
@@ -72,8 +74,8 @@ class w extends _ {
|
|
|
72
74
|
this._panelObserver = new MutationObserver((t) => {
|
|
73
75
|
t.forEach((i) => {
|
|
74
76
|
if (i.type === "attributes" && i.attributeName === "tabindex") {
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
+
const s = i.target;
|
|
78
|
+
s.classList.contains("content-wrapper") && s.tabIndex === 0 && (s.tabIndex = -1);
|
|
77
79
|
}
|
|
78
80
|
});
|
|
79
81
|
});
|
|
@@ -88,58 +90,110 @@ class w extends _ {
|
|
|
88
90
|
}
|
|
89
91
|
render() {
|
|
90
92
|
const e = this._isMobile ? "justify-content-end" : "", t = this._isLoading ? "display-none" : "";
|
|
91
|
-
return
|
|
93
|
+
return r`<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=${p(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 && r`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${() => {
|
|
92
94
|
this._filters = {
|
|
93
95
|
...this._filters,
|
|
94
|
-
categories: []
|
|
95
|
-
|
|
96
|
+
categories: [],
|
|
97
|
+
searchTerm: ""
|
|
98
|
+
}, this._emitSolutionMatchesFromAssistant([], []), this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories), this.filterRemoved.emit([]);
|
|
96
99
|
}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>` || ""}</div></div>${this._isMobile && this._getFilterPanel() || ""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`;
|
|
97
100
|
}
|
|
101
|
+
_emitSolutionMatchesFromAssistant(e, t) {
|
|
102
|
+
window.dispatchEvent(new CustomEvent("solutionMatchesFromAssistant", {
|
|
103
|
+
detail: {
|
|
104
|
+
solutionIds: e,
|
|
105
|
+
solutionTitles: t
|
|
106
|
+
},
|
|
107
|
+
bubbles: !0,
|
|
108
|
+
composed: !0
|
|
109
|
+
}));
|
|
110
|
+
}
|
|
98
111
|
_getFilterPanel() {
|
|
99
112
|
const e = this._filterOpen ? { display: "flex" } : "";
|
|
100
|
-
return this._isMobile ?
|
|
113
|
+
return this._isMobile ? r`<calcite-panel class=${`border-none ${this._filterOpen ? "background-override" : "filter background-override"}`} id=solutions-all-shell-panel-start style=${c(e)}><solutions-filter-panel class="height-100" @applyFilter=${(t) => {
|
|
101
114
|
this._filterApplied(t.detail);
|
|
102
|
-
}} ${
|
|
115
|
+
}} ${n(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>` : r`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${c(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" @applyFilter=${(t) => {
|
|
103
116
|
this._filterApplied(t.detail);
|
|
104
|
-
}} ${
|
|
117
|
+
}} ${n(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`;
|
|
105
118
|
}
|
|
106
119
|
_getSolutionsAllPanel() {
|
|
107
120
|
const e = this._isMobile && this._filterOpen ? { display: "none" } : "";
|
|
108
|
-
return
|
|
121
|
+
return r`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${c(e)} ${n(this._allSolutionsPanelRef)}></solutions-all-panel>`;
|
|
109
122
|
}
|
|
110
123
|
_renderChips() {
|
|
111
124
|
if (!this._filters.categories)
|
|
112
125
|
return;
|
|
113
|
-
const e = this._filters.categories.filter((t) => t.type === "industry" || t.type === "domain");
|
|
126
|
+
const e = this._filters.categories.filter((t) => t.type === "industry" || t.type === "domain" || t.type === "solution");
|
|
114
127
|
if (e.length !== 0)
|
|
115
|
-
return
|
|
128
|
+
return r`<calcite-chip-group class="chip-group" label>${x(e, (t) => `${t.type}:${t.value}`, (t) => r`<calcite-chip appearance=outline-fill class=${p(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>`;
|
|
116
129
|
}
|
|
117
130
|
_updateSolutionCount(e) {
|
|
118
131
|
this.solutionsCount = e.detail;
|
|
119
132
|
}
|
|
133
|
+
_syncSolutionChipOrderWithDisplayedCards() {
|
|
134
|
+
if (!this._filters.categories?.length)
|
|
135
|
+
return;
|
|
136
|
+
const e = this._filters.categories.filter((a) => a.type === "solution");
|
|
137
|
+
if (e.length <= 1)
|
|
138
|
+
return;
|
|
139
|
+
const t = this._allSolutionsPanelRef.value?.getDisplayedSolutionIds?.() ?? [];
|
|
140
|
+
if (!t.length)
|
|
141
|
+
return;
|
|
142
|
+
const i = /* @__PURE__ */ new Map();
|
|
143
|
+
t.forEach((a, o) => {
|
|
144
|
+
i.set(a, o);
|
|
145
|
+
});
|
|
146
|
+
const s = [...e].sort((a, o) => {
|
|
147
|
+
const d = i.get(String(a.value)), u = i.get(String(o.value)), b = d === void 0 ? Number.MAX_SAFE_INTEGER : d, v = u === void 0 ? Number.MAX_SAFE_INTEGER : u;
|
|
148
|
+
return b - v;
|
|
149
|
+
}), l = this._filters.categories.filter((a) => a.type !== "solution");
|
|
150
|
+
this._filters = {
|
|
151
|
+
...this._filters,
|
|
152
|
+
categories: [...l, ...s]
|
|
153
|
+
};
|
|
154
|
+
}
|
|
120
155
|
_chipClosed(e, t) {
|
|
121
156
|
if (this._filters.categories) {
|
|
157
|
+
if (t === "solution") {
|
|
158
|
+
const s = this._filters.categories.filter((l) => l.type === "solution").filter((l) => l.displayValue !== e);
|
|
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 = {
|
|
160
|
+
...this._filters,
|
|
161
|
+
searchTerm: ""
|
|
162
|
+
}, this._allSolutionsPanelRef.value?.searchSolutions());
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
122
165
|
if (t === "industry")
|
|
123
166
|
this._filters.categories = [];
|
|
124
167
|
else {
|
|
125
|
-
const i = this._filters.categories.filter((
|
|
168
|
+
const i = this._filters.categories.filter((s) => s.displayValue !== e && s.type !== t);
|
|
126
169
|
this._filters.categories = i;
|
|
127
170
|
}
|
|
128
171
|
this._filters.categories.length > 0 ? this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories) : this._filters.searchTerm !== "" ? (this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories), this._allSolutionsPanelRef.value?.searchSolutions({ searchTerm: this._filters.searchTerm })) : this._allSolutionsPanelRef.value?.searchSolutions(), this.filterRemoved.emit(this._filters.categories);
|
|
129
172
|
}
|
|
130
173
|
}
|
|
174
|
+
_applyAssistantSolutionMatches(e) {
|
|
175
|
+
const t = Array.isArray(e?.solutionIds) ? e.solutionIds : [], i = Array.isArray(e?.solutionTitles) ? e.solutionTitles : [], s = t.map((l, a) => ({
|
|
176
|
+
type: "solution",
|
|
177
|
+
value: l,
|
|
178
|
+
displayValue: i[a] ?? l
|
|
179
|
+
}));
|
|
180
|
+
this._filters = {
|
|
181
|
+
categories: s,
|
|
182
|
+
searchTerm: ""
|
|
183
|
+
}, this.filterRemoved.emit([]);
|
|
184
|
+
}
|
|
131
185
|
_toggleFilter() {
|
|
132
186
|
this._filterOpen = !this._filterOpen;
|
|
133
187
|
}
|
|
134
188
|
_logFilterTelemetry(e) {
|
|
135
189
|
if ((e.type === "industry" || e.type === "domain") && e.industry) {
|
|
136
|
-
const i = [
|
|
190
|
+
const i = [g[e.industry]];
|
|
137
191
|
if (e.domain) {
|
|
138
|
-
const
|
|
139
|
-
i.push(
|
|
192
|
+
const s = _[e.domain];
|
|
193
|
+
i.push(s);
|
|
140
194
|
}
|
|
141
195
|
this._telemetry?.logEvent({
|
|
142
|
-
category:
|
|
196
|
+
category: m.ALL_SOLUTIONS,
|
|
143
197
|
action: "Filter",
|
|
144
198
|
dimensions: i
|
|
145
199
|
});
|
|
@@ -156,12 +210,12 @@ class w extends _ {
|
|
|
156
210
|
categories: e,
|
|
157
211
|
searchTerm: this._filters.searchTerm
|
|
158
212
|
};
|
|
159
|
-
const
|
|
160
|
-
|
|
213
|
+
const s = e[e.length - 1];
|
|
214
|
+
s && this._logFilterTelemetry(s);
|
|
161
215
|
}
|
|
162
216
|
if ("searchTerm" in i && (this._filters.searchTerm = i.searchTerm, t && i.searchTerm)) {
|
|
163
217
|
this._telemetry?.logEvent({
|
|
164
|
-
category:
|
|
218
|
+
category: m.ALL_SOLUTIONS,
|
|
165
219
|
action: "Search",
|
|
166
220
|
dimensions: [i.searchTerm]
|
|
167
221
|
});
|
|
@@ -172,7 +226,7 @@ class w extends _ {
|
|
|
172
226
|
this._filters.categories = [], this._allSolutionsPanelRef.value?.searchSolutions();
|
|
173
227
|
}
|
|
174
228
|
}
|
|
175
|
-
|
|
229
|
+
y("solutions-all-shell", P);
|
|
176
230
|
export {
|
|
177
|
-
|
|
231
|
+
P as SolutionsAllShell
|
|
178
232
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
+
import type { ISolutionItemMiniContext } from "../../utils/interfaces.js";
|
|
3
4
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
4
5
|
|
|
5
6
|
export abstract class SolutionsDeployedList extends LitElement {
|
|
@@ -11,7 +12,13 @@ export abstract class SolutionsDeployedList extends LitElement {
|
|
|
11
12
|
*/
|
|
12
13
|
protected _translations: { deployedVersion: string; } & T9nMeta<{ deployedVersion: string; }>;
|
|
13
14
|
/** All the solution cards */
|
|
14
|
-
accessor cards:
|
|
15
|
+
accessor cards: ISolutionItemMiniContext[];
|
|
16
|
+
/**
|
|
17
|
+
* Should the content be linkable
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
accessor hasLinks: boolean;
|
|
15
22
|
/**
|
|
16
23
|
* The title to display
|
|
17
24
|
*
|
|
@@ -23,11 +30,4 @@ export abstract class SolutionsDeployedList extends LitElement {
|
|
|
23
30
|
readonly "@eventTypes": {
|
|
24
31
|
deployedCardsClicked: SolutionsDeployedList["deployedCardsClicked"]["detail"];
|
|
25
32
|
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type SolutionItemMiniContext = {
|
|
29
|
-
id: string;
|
|
30
|
-
title: string;
|
|
31
|
-
deployVersion: string;
|
|
32
|
-
created: number;
|
|
33
|
-
};
|
|
33
|
+
}
|
|
@@ -8,13 +8,13 @@ import { useContextConsumer as d } from "@arcgis/lumina/context";
|
|
|
8
8
|
const c = s`.text-center{text-align:center}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex;align-items:center}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.padding-10{padding:10px}.padding-y-10{padding-top:10px;padding-bottom:10px}.subnote{font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}`;
|
|
9
9
|
class h extends n {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(), this.cards = [], this.listTitle = "", this._translations = l({ name: "solutions-deployed-list", blocking: !0 }), this._configContextConsumer = d({
|
|
11
|
+
super(), this.cards = [], this.hasLinks = !1, this.listTitle = "", this._translations = l({ name: "solutions-deployed-list", blocking: !0 }), this._configContextConsumer = d({
|
|
12
12
|
context: r,
|
|
13
13
|
subscribe: !0
|
|
14
14
|
}), this.deployedCardsClicked = o();
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
|
-
this.properties = { cards: 0, listTitle: 1, _translations: 16 };
|
|
17
|
+
this.properties = { cards: 0, hasLinks: 5, listTitle: 1, _translations: 16 };
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
20
|
this.styles = c;
|
|
@@ -26,7 +26,7 @@ class h extends n {
|
|
|
26
26
|
return this.cards.length ? t`${this.listTitle !== "" && t`<div>${this.listTitle}</div>` || ""}${this._renderCards()}` : t`<div class="no-solutions"></div>`;
|
|
27
27
|
}
|
|
28
28
|
_renderCards() {
|
|
29
|
-
return this.cards.map((e) => t`<div class="display-flex flex-direction-row"><div class=padding-10>${this._getSolutionsBriefcase()}</div><div class=padding-10><div
|
|
29
|
+
return this.cards.map((e) => t`<div class="display-flex flex-direction-row"><div class=padding-10>${this._getSolutionsBriefcase()}</div><div class=padding-10><div>${this.hasLinks ? t`<a href=${"/apps/solutions/deployments/" + e.id}>${e.title}</a>` : e.title}</div><div class="subnote">${`${this._translations.deployedVersion} ${e.deployVersion} - ${new Date(e.created).toLocaleDateString(this._configContextConsumer.value?.locale, { year: "numeric", month: "long", day: "numeric" })}`}</div></div></div>`);
|
|
30
30
|
}
|
|
31
31
|
_getSolutionsBriefcase() {
|
|
32
32
|
return t`<div slot=header-actions-start><svg viewBox="0 0 64 64" width=24 height=24 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-1)>${a`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`;
|
|
@@ -8,7 +8,7 @@ import { createRef as T, ref as d } from "lit/directives/ref.js";
|
|
|
8
8
|
import { C as c, g as v } from "../../chunks/cardFetchingUtils.js";
|
|
9
9
|
import { c as b } from "../../chunks/deployAppContexts.js";
|
|
10
10
|
import { B as h, T as n, c as S } from "../../chunks/interfaces.js";
|
|
11
|
-
import {
|
|
11
|
+
import { f as F, e as D } from "../../chunks/helpers.js";
|
|
12
12
|
const E = u`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-surface-3)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.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)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}solution-deployed-card{width:calc(20% - .75rem)}@container (max-width: 1280px){solution-deployed-card{width:calc(25% - .75rem)}}@container (max-width: 1010px){solution-deployed-card{width:calc(33.333% - .75rem)}}@container (max-width: 740px){solution-deployed-card{width:calc(50% - .75rem)}}@container (max-width: 440px){solution-deployed-card{width:calc(100% - .75rem)}}.margin-top-half{margin-top:.5rem}`, m = 5;
|
|
13
13
|
class R extends w {
|
|
14
14
|
constructor() {
|
|
@@ -6,7 +6,7 @@ import { useContextConsumer as l } from "@arcgis/lumina/context";
|
|
|
6
6
|
import { css as u, html as i, svg as g } from "lit";
|
|
7
7
|
import { c as f, i as b } from "../../chunks/deployAppContexts.js";
|
|
8
8
|
import { createRef as s, ref as r } from "lit/directives/ref.js";
|
|
9
|
-
import {
|
|
9
|
+
import { e as v, h as m } from "../../chunks/helpers.js";
|
|
10
10
|
const x = u`calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.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)}.text-center{text-align:center}.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: var(--calcite-spacing-none);--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: var(--calcite-spacing-none);font-weight:var(--calcite-font-weight-medium)}.header-content-wrapper{padding-inline-start:var(--calcite-spacing-xxs)}.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-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.justify-content-start{justify-content:start}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}.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)}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.height-50{height:50px}.sign-in-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.sign-in-icon{transform:translate(-20px)}.height-150{height:150px}.width-150{width:150px}.padding-top-8{padding-top:8px}`;
|
|
11
11
|
class _ extends p {
|
|
12
12
|
constructor() {
|