@esri/solutions-components 5.1.0-next.162 → 5.1.0-next.164
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/{V74POSPP.js → 2V64PFN2.js} +1 -1
- package/dist/cdn/{UNBGBQPR.js → 3LZFERNW.js} +1 -1
- package/dist/cdn/{PEQUHMTU.js → 3QONPAFM.js} +1 -1
- package/dist/cdn/{CFJ4FEY3.js → 44EC2SD3.js} +1 -1
- package/dist/cdn/{W7VD3QDN.js → 4G6CA64M.js} +1 -1
- package/dist/cdn/{JJDAJ7CL.js → 5M3PCZM5.js} +1 -1
- package/dist/cdn/{X52T6DJT.js → 5NZT27OV.js} +1 -1
- package/dist/cdn/{QLX3XORL.js → 5W7G3TSG.js} +6 -4
- package/dist/cdn/{MDKHW7NM.js → 62GTPPV5.js} +1 -1
- package/dist/cdn/{R2JOPHL5.js → 7RIJ2EMD.js} +1 -1
- package/dist/cdn/{WCD4U7UJ.js → AV2Q4PBA.js} +1 -1
- package/dist/cdn/{LHLLMC6K.js → B5JYLQYP.js} +1 -1
- package/dist/cdn/{IOFIC3IG.js → CKURBJFW.js} +1 -1
- package/dist/cdn/{3D5OFNW5.js → CZ4A24AM.js} +1 -1
- package/dist/cdn/{4ALVWOG7.js → DVCYL5TO.js} +1 -1
- package/dist/cdn/{KIKSO3OQ.js → EFYLYWPE.js} +1 -1
- package/dist/cdn/{3A5WS2II.js → FUW3T6S6.js} +1 -1
- package/dist/cdn/{XA3SV62A.js → FZUI77EG.js} +1 -1
- package/dist/cdn/{FA5CJT2S.js → GUMEOBNQ.js} +1 -1
- package/dist/cdn/{IGQJLEEJ.js → GVFCX2FF.js} +1 -1
- package/dist/cdn/{UXN2MYLX.js → H5KFQMYD.js} +1 -1
- package/dist/cdn/I7MO6UJB.js +2 -0
- package/dist/cdn/{QWNRGCQS.js → IEXNY45H.js} +1 -1
- package/dist/cdn/{HGOYPWOK.js → IXBI3PV7.js} +1 -1
- package/dist/cdn/IXLVTSCY.js +2 -0
- package/dist/cdn/{MJ6JD7WX.js → J6CXULUZ.js} +1 -1
- package/dist/cdn/{F6J3OLVZ.js → KSAJFFJI.js} +1 -1
- package/dist/cdn/{5EXKQXLZ.js → LDSV7DEV.js} +1 -1
- package/dist/cdn/{CGOOAJVN.js → LHTDVWX2.js} +18 -18
- package/dist/cdn/LQXIFBIM.js +3 -0
- package/dist/cdn/{CAXDDYGL.js → MICWKD3Q.js} +1 -1
- package/dist/cdn/{KMKZEHDS.js → NQBHAESW.js} +1 -1
- package/dist/cdn/{SC4UAHYZ.js → OG4BNL2Z.js} +1 -1
- package/dist/cdn/{CYEFGPUM.js → OZSFGLR6.js} +1 -1
- package/dist/cdn/{QBARJMJE.js → PN2P5EVA.js} +1 -1
- package/dist/cdn/{H3NPAQ3U.js → Q3MHT47G.js} +1 -1
- package/dist/cdn/{SGU3KCZB.js → Q6WCNWQE.js} +1 -1
- package/dist/cdn/{IE5TTSUW.js → QH6PUU3Q.js} +15 -16
- package/dist/cdn/{MLNGJEKI.js → QWGJAD3Z.js} +1 -1
- package/dist/cdn/{6LHIJG7J.js → R3PYC2H6.js} +1 -1
- package/dist/cdn/{RLYLBYMX.js → RBSOCHJT.js} +1 -1
- package/dist/cdn/{ACTJS4TX.js → RDRCAA3H.js} +1 -1
- package/dist/cdn/{LM46YQCN.js → SS6AENH6.js} +1 -1
- package/dist/cdn/{BVG2SE55.js → SXECIQ6Q.js} +1 -1
- package/dist/cdn/{DKQRECGR.js → TGMVIKID.js} +1 -1
- package/dist/cdn/{3SDEIO24.js → TSUSILGP.js} +1 -1
- package/dist/cdn/{3Z7EYDFO.js → UHJVBWUV.js} +99 -99
- package/dist/cdn/{ZI7OWB5M.js → V4O3KYPD.js} +1 -1
- package/dist/cdn/{R4PQI4LJ.js → V4ZJH2HP.js} +1 -1
- package/dist/cdn/{UUIKE2AH.js → V5WXJLJN.js} +1 -1
- package/dist/cdn/{T6FQ2A4O.js → VCLTCEIQ.js} +1 -1
- package/dist/cdn/{PYPVVSIX.js → WDASGI72.js} +1 -1
- package/dist/cdn/{CZVHNBQN.js → WGRSVQHE.js} +1 -1
- package/dist/cdn/{TLY6ZEKN.js → WRQXYCRH.js} +1 -1
- package/dist/cdn/{FBSKACM2.js → X7WLU5YB.js} +1 -1
- package/dist/cdn/{YCIKY6QN.js → XEYYUNNX.js} +1 -1
- package/dist/cdn/{D2EVPZ5K.js → XXQVYXGC.js} +1 -1
- package/dist/cdn/{7FZDDT7D.js → YNCRTGYJ.js} +1 -1
- package/dist/cdn/{LSBUPU7F.js → YOBHTTO5.js} +1 -1
- package/dist/cdn/{MTEVQC6W.js → Z226R5SF.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/assessBuildRequest.js +15 -16
- package/dist/chunks/assessUpdateRequest.js +6 -4
- package/dist/chunks/interfaces.js +47 -47
- package/dist/chunks/solution-builder-assistant.js +21 -10
- package/dist/chunks/updateDesign.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +22 -32
- package/dist/components/solutions-deploy-app/customElement.js +9 -9
- 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 +5 -5
- package/package.json +1 -1
- package/dist/cdn/26EKIZQ3.js +0 -2
- package/dist/cdn/UBPCOTIY.js +0 -2
- package/dist/cdn/YGWYD3LU.js +0 -3
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as x } from "lit/directives/keyed.js";
|
|
4
|
-
import { repeat as
|
|
5
|
-
import { u as
|
|
6
|
-
import { LitElement as C, createEvent as
|
|
4
|
+
import { repeat as w } from "lit/directives/repeat.js";
|
|
5
|
+
import { u as S } from "../../chunks/useT9n.js";
|
|
6
|
+
import { LitElement as C, createEvent as R, safeClassMap as c, safeStyleMap as h } from "@arcgis/lumina";
|
|
7
7
|
import { useContextConsumer as f } from "@arcgis/lumina/context";
|
|
8
8
|
import { css as $, html as a } from "lit";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as F, i as T } from "../../chunks/deployAppContexts.js";
|
|
10
10
|
import { e as _, d as g, T as m } from "../../chunks/interfaces.js";
|
|
11
11
|
import { createRef as d, ref as n } from "lit/directives/ref.js";
|
|
12
12
|
import "../solutions-filter-panel/customElement.js";
|
|
13
|
-
const
|
|
14
|
-
class
|
|
13
|
+
const P = $`.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 A extends C {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(), this.solutionsCount = 0, this._isLoading = !0, this._filterOpen = !0, this._filters = {
|
|
17
17
|
categories: [],
|
|
18
18
|
searchTerm: ""
|
|
19
|
-
}, this._isMobile = !1, this._translations =
|
|
20
|
-
context:
|
|
19
|
+
}, this._isMobile = !1, this._translations = S({ name: "solutions-all-shell", blocking: !0 }), this._allSolutionsPanelRef = d(), this._solutionsFilterPanelRef = d(), this._mainPanelRef = d(), this._panelFixed = !1, this._configContextConsumer = f({
|
|
20
|
+
context: F,
|
|
21
21
|
subscribe: !0
|
|
22
22
|
}), this._isMobileContextConsumer = f({
|
|
23
23
|
context: T,
|
|
24
24
|
subscribe: !0,
|
|
25
25
|
callback: (e) => this._isMobile = e
|
|
26
|
-
}), this.filterRemoved =
|
|
26
|
+
}), this.filterRemoved = R(), this.listenOn(window, "searchChanged", (e) => {
|
|
27
27
|
e.detail && e.detail.scope === "all-solutions" && this._filterApplied(e.detail.option, e.detail.logSearchTelemetry);
|
|
28
28
|
}), this.listenOn(window, "toggleFilter", this._toggleFilter), this.listenOn(window, "cardsFetched", () => {
|
|
29
29
|
this._isLoading = !1, this._syncSolutionChipOrderWithDisplayedCards();
|
|
@@ -35,7 +35,7 @@ class P extends C {
|
|
|
35
35
|
this.properties = { solutionsCount: 9, _isLoading: 16, _filterOpen: 16, _filters: 16, _isMobile: 16, _translations: 16 };
|
|
36
36
|
}
|
|
37
37
|
static {
|
|
38
|
-
this.styles =
|
|
38
|
+
this.styles = P;
|
|
39
39
|
}
|
|
40
40
|
willUpdate(e) {
|
|
41
41
|
e.has("_isMobile") && (this._filterOpen = !this._isMobile);
|
|
@@ -92,23 +92,13 @@ class P extends C {
|
|
|
92
92
|
render() {
|
|
93
93
|
const e = this._isMobile ? "justify-content-end" : "", t = this._isLoading ? "display-none" : "";
|
|
94
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=${() => {
|
|
95
|
+
const i = this._filters.categories?.some((s) => s.type === "solution") ?? !1;
|
|
95
96
|
this._filters = {
|
|
96
97
|
...this._filters,
|
|
97
|
-
categories: []
|
|
98
|
-
|
|
99
|
-
}, this._emitSolutionMatchesFromAssistant([], []), this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories), this.filterRemoved.emit([]);
|
|
98
|
+
categories: []
|
|
99
|
+
}, i && window.dispatchEvent(new CustomEvent("clearAssistantResultFilters")), this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories), this._filters.searchTerm !== "" && this._allSolutionsPanelRef.value?.searchSolutions({ searchTerm: this._filters.searchTerm }), this.filterRemoved.emit([]);
|
|
100
100
|
}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>` || ""}</div></div>${this._isMobile && this._getFilterPanel() || ""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`;
|
|
101
101
|
}
|
|
102
|
-
_emitSolutionMatchesFromAssistant(e, t) {
|
|
103
|
-
window.dispatchEvent(new CustomEvent("solutionMatchesFromAssistant", {
|
|
104
|
-
detail: {
|
|
105
|
-
solutionIds: e,
|
|
106
|
-
solutionTitles: t
|
|
107
|
-
},
|
|
108
|
-
bubbles: !0,
|
|
109
|
-
composed: !0
|
|
110
|
-
}));
|
|
111
|
-
}
|
|
112
102
|
_getFilterPanel() {
|
|
113
103
|
const e = this._filterOpen ? { display: "flex" } : "";
|
|
114
104
|
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) => {
|
|
@@ -126,7 +116,7 @@ class P extends C {
|
|
|
126
116
|
return;
|
|
127
117
|
const e = this._filters.categories.filter((t) => t.type === "industry" || t.type === "domain" || t.type === "solution");
|
|
128
118
|
if (e.length !== 0)
|
|
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>`) :
|
|
119
|
+
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>`) : w(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>`;
|
|
130
120
|
}
|
|
131
121
|
_updateSolutionCount(e) {
|
|
132
122
|
this.solutionsCount = e.detail;
|
|
@@ -145,8 +135,8 @@ class P extends C {
|
|
|
145
135
|
i.set(l, o);
|
|
146
136
|
});
|
|
147
137
|
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,
|
|
149
|
-
return b -
|
|
138
|
+
const u = i.get(String(l.value)), p = i.get(String(o.value)), b = u === void 0 ? Number.MAX_SAFE_INTEGER : u, v = p === void 0 ? Number.MAX_SAFE_INTEGER : p;
|
|
139
|
+
return b - v;
|
|
150
140
|
}), r = this._filters.categories.filter((l) => l.type !== "solution");
|
|
151
141
|
this._filters = {
|
|
152
142
|
...this._filters,
|
|
@@ -156,10 +146,10 @@ class P extends C {
|
|
|
156
146
|
_chipClosed(e, t) {
|
|
157
147
|
if (this._filters.categories) {
|
|
158
148
|
if (t === "solution") {
|
|
159
|
-
this._filters
|
|
149
|
+
this._filters = {
|
|
160
150
|
...this._filters,
|
|
161
|
-
|
|
162
|
-
}, this._allSolutionsPanelRef.value?.searchSolutions();
|
|
151
|
+
categories: []
|
|
152
|
+
}, window.dispatchEvent(new CustomEvent("clearAssistantResultFilters")), this._allSolutionsPanelRef.value?.searchSolutions(), this._filters.searchTerm !== "" && this._allSolutionsPanelRef.value?.searchSolutions({ searchTerm: this._filters.searchTerm });
|
|
163
153
|
return;
|
|
164
154
|
}
|
|
165
155
|
if (t === "industry")
|
|
@@ -227,7 +217,7 @@ class P extends C {
|
|
|
227
217
|
this._filters.categories = [], this._allSolutionsPanelRef.value?.searchSolutions();
|
|
228
218
|
}
|
|
229
219
|
}
|
|
230
|
-
|
|
220
|
+
y("solutions-all-shell", A);
|
|
231
221
|
export {
|
|
232
|
-
|
|
222
|
+
A as SolutionsAllShell
|
|
233
223
|
};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as v } from "lit/directives/repeat.js";
|
|
4
4
|
import { u as T } from "../../chunks/useT9n.js";
|
|
5
|
-
import { LitElement as w, createEvent as
|
|
6
|
-
import { css as S, html as
|
|
5
|
+
import { LitElement as w, createEvent as d, safeClassMap as b, nothing as C } from "@arcgis/lumina";
|
|
6
|
+
import { css as S, html as c } from "lit";
|
|
7
7
|
import { T as m } from "../../chunks/solutions-deploy-app-nav.js";
|
|
8
8
|
import { a as D, T as h, y as A, B as x, e as I } from "../../chunks/interfaces.js";
|
|
9
9
|
import { createRef as o, ref as a } from "lit-html/directives/ref.js";
|
|
10
10
|
import { C as y } from "../../chunks/CardsFetcher.js";
|
|
11
11
|
import { g as O } from "../../chunks/cardFetchingUtils.js";
|
|
12
|
-
import { useContextProvider as
|
|
12
|
+
import { useContextProvider as _ } from "@arcgis/lumina/context";
|
|
13
13
|
import { c as F, b as $, i as L } from "../../chunks/deployAppContexts.js";
|
|
14
14
|
import { t as M } from "../../chunks/solution-builder-assistant.js";
|
|
15
15
|
import { h as k, a as E } from "../../chunks/cardsHelpers.js";
|
|
@@ -677,10 +677,10 @@ const R = S`.back-color-override{background-color:var(--calcite-color-surface-3)
|
|
|
677
677
|
};
|
|
678
678
|
class V extends w {
|
|
679
679
|
constructor() {
|
|
680
|
-
super(), this.initTitleOrId = "", this.sortType = "relevance", this.useLocalAppConfig = !1, this.loadExampleBuilderData = !1, this.authentication = void 0, this._isLoaded = !1, this.isMobile = !1, this._isViewportMobile = window.innerWidth <= 800, this._isAssistantOpen = !1, this._builderVisible = !1, this._hasActiveBuilderDesign = !1, this._showFabTooltip = !0, this._fabTooltipDismissed = !1, this._activeTab = "all-solutions", this._activeResourcesMenuItem = "getStarted", this._showDeployedCardFetchFailed = !1, this._globalAlerts = [], this._translations = T({ name: "solutions-deploy-app", blocking: !0 }), this._agoTerms = `${D}`, this._allCards = [], this._allShell = o(), this._allTab = o(), this._allTabTitle = o(), this._resourcesTab = o(), this._resourcesTabTitle = o(), this._categories = [], this._configContextProvider =
|
|
680
|
+
super(), this.initTitleOrId = "", this.sortType = "relevance", this.useLocalAppConfig = !1, this.loadExampleBuilderData = !1, this.authentication = void 0, this._isLoaded = !1, this.isMobile = !1, this._isViewportMobile = window.innerWidth <= 800, this._isAssistantOpen = !1, this._builderVisible = !1, this._hasActiveBuilderDesign = !1, this._showFabTooltip = !0, this._fabTooltipDismissed = !1, this._activeTab = "all-solutions", this._activeResourcesMenuItem = "getStarted", this._showDeployedCardFetchFailed = !1, this._globalAlerts = [], this._translations = T({ name: "solutions-deploy-app", blocking: !0 }), this._agoTerms = `${D}`, this._allCards = [], this._allShell = o(), this._allTab = o(), this._allTabTitle = o(), this._resourcesTab = o(), this._resourcesTabTitle = o(), this._categories = [], this._configContextProvider = _({ context: F }), this._delay = !1, this._deployAppNav = o(), this._deployedCardPanel = o(), this._deployCardFetchFailedMessage = "", this._deployedCardTab = o(), this._deployedCardTabTitle = o(), this._detailsShell = o(), this._detailsTab = o(), this._detailsTabTitle = o(), this._forceInit = !1, this._getSuggested = !1, this._tabpanelsFixed = !1, this._solutionBuilderPanel = o(), this._builderDesignContextProvider = _({ context: $ }), this._isMobileContextProvider = _({ context: L }), this._handleWindowResize = () => {
|
|
681
681
|
const e = window.innerWidth <= 800;
|
|
682
682
|
this._isViewportMobile !== e && (this._isViewportMobile = e, e && (this._isAssistantOpen = !1, this._builderVisible = !1));
|
|
683
|
-
}, this._mainContentRef = o(), this._mySolutionsShell = o(), this._mySolutionsTab = o(), this._mySolutionsTabTitle = o(), this._resourcesShell = o(), this._sortField = "relevance", this._sortOrder = "desc", this._telemetryManager = new m(), this.deployAppTabSelected =
|
|
683
|
+
}, this._mainContentRef = o(), this._mySolutionsShell = o(), this._mySolutionsTab = o(), this._mySolutionsTabTitle = o(), this._resourcesShell = o(), this._sortField = "relevance", this._sortOrder = "desc", this._telemetryManager = new m(), this.deployAppTabSelected = d(), this.deployedCardFetchFailed = d(), this.detailsCardSelected = d(), this.deployedCardSelected = d(), this.metaTagStringsReady = d(), this.sessionRefreshed = d(), this.tabChanged = d(), this.listenOn(window, "detailsCardSelected", this._detailsCardSelected), this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "displayDeployedCard", this._handleDeployedCardDisplay), this.listenOn(window, "navTabSelected", this._setActiveTab), this.listenOn(window, "forceSelectTab", (e) => this.selectTab(e.detail, {})), this.listenOn(window, "showGlobalAlert", this._handleShowGlobalAlert), this.listenOn(window, "openAssistant", () => {
|
|
684
684
|
this._openAssistant();
|
|
685
685
|
}), this.listenOn(window, "closeAssistant", () => {
|
|
686
686
|
this._isAssistantOpen = !1, this._builderVisible = !1;
|
|
@@ -809,11 +809,11 @@ class V extends w {
|
|
|
809
809
|
}
|
|
810
810
|
render() {
|
|
811
811
|
const e = this._isLoaded ? "display-none" : "", t = this._isLoaded ? "" : "display-none";
|
|
812
|
-
return
|
|
812
|
+
return c`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen ? " assistant-open" : ""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing() && c`<div class="border"></div>` || ""}<solutions-searchsort-toolbar class=${b(this._activeTab === "resources" ? "display-none" : "")} ${a(async (i) => {
|
|
813
813
|
i && (await this._deployAppNav.value?.componentOnReady(), this._searchSortToolbar = i, i.scope = this._activeTab);
|
|
814
|
-
})}></solutions-searchsort-toolbar
|
|
814
|
+
})}></solutions-searchsort-toolbar>${this._activeTab === "resources" && c`<div class="border"></div><div class="resources-menu-container"><calcite-menu .label=${this._translations.resourcesNavigationMenuLabel} class="resources-menu-toolbar"><calcite-menu-item .active=${this._activeResourcesMenuItem === "getStarted" || void 0} .label=${this._translations.resourcesGetStarted} .text=${this._translations.resourcesGetStarted} @click=${() => this._handleResourcesMenuClick("getStarted")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem === "documentation" || void 0} .label=${this._translations.resourcesDocumentation} .text=${this._translations.resourcesDocumentation} @click=${() => this._handleResourcesMenuClick("documentation")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem === "support" || void 0} .label=${this._translations.resourcesSupport} .text=${this._translations.resourcesSupport} @click=${() => this._handleResourcesMenuClick("support")}></calcite-menu-item></calcite-menu></div>` || ""}<calcite-loader class=${b(e)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${b(t)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell class="height-100" ${a(this._resourcesShell)}></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise && c`<div class=${`builder-panel${this._builderVisible && !this._isViewportMobile ? "" : " display-none"}`}><solution-builder-assistant class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._solutionBuilderPanel)}></solution-builder-assistant></div><div class=${`assistant-panel${this._isAssistantOpen && !this._isViewportMobile ? "" : " display-none"}`}><arcgis-solutions-assistant class="height-100" .builderVisible=${this._builderVisible} .hasActiveBuilderDesign=${this._hasActiveBuilderDesign}></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip ?? C} class=${`assistant-fab${this._isAssistantOpen || this._isViewportMobile ? " display-none" : ""}`} icon=effects id=assistant-fab-button @click=${() => {
|
|
815
815
|
this._openAssistant(), this._fabTooltipDismissed = !0, this._showFabTooltip = !1;
|
|
816
|
-
}} scale=l></calcite-fab>${!this._fabTooltipDismissed &&
|
|
816
|
+
}} scale=l></calcite-fab>${!this._fabTooltipDismissed && c`<calcite-popover closable class=${`assistant-fab-popover${this._isAssistantOpen || this._isViewportMobile ? " display-none" : ""}`} .label=${this._translations.assistantFabTooltip} overlay-positioning=fixed @calcitePopoverClose=${() => {
|
|
817
817
|
this._fabTooltipDismissed = !0, this._showFabTooltip = !1;
|
|
818
818
|
}} .open=${this._showFabTooltip && !this._isAssistantOpen && !this._isViewportMobile} placement=leading reference-element=assistant-fab-button><span class="assistant-fab-popover__content">${this._translations.assistantFabTooltip}</span></calcite-popover>` || ""}` || ""}</calcite-shell>`;
|
|
819
819
|
}
|
|
@@ -827,7 +827,7 @@ class V extends w {
|
|
|
827
827
|
this._activeResourcesMenuItem = e, await this._resourcesShell.value?.scrollToSection(e);
|
|
828
828
|
}
|
|
829
829
|
_renderGlobalAlerts() {
|
|
830
|
-
return v(this._globalAlerts, (e) => e.id, (e) =>
|
|
830
|
+
return v(this._globalAlerts, (e) => e.id, (e) => c`<calcite-alert .autoClose=${e.autoClose} .autoCloseDuration=${e.autoCloseDuration} .icon=${e.icon} .kind=${e.kind} .label=${e.title || ""} @calciteAlertClose=${() => this._removeGlobalAlert(e.id)} open>${e.title && c`<div slot=title>${e.title}</div>` || ""}<div slot=message>${e.message}</div></calcite-alert>`);
|
|
831
831
|
}
|
|
832
832
|
async _handleAuthInit(e) {
|
|
833
833
|
const t = e.detail;
|