@esri/solutions-components 5.1.0-next.155 → 5.1.0-next.156
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/{G4ADX65Y.js → 6RTL3IJQ.js} +1 -1
- package/dist/cdn/{5KWJUQRY.js → 7CZG6NDM.js} +1 -1
- package/dist/cdn/{CEPWTLDN.js → 7NKBQ4G6.js} +1 -1
- package/dist/cdn/{MDXI36JJ.js → BYGOJ5ML.js} +141 -138
- package/dist/cdn/{CSAXBV46.js → DQ7I7HGP.js} +1 -1
- package/dist/cdn/E4BPYNC5.js +4 -0
- package/dist/cdn/EKRMEQQI.js +2 -0
- package/dist/cdn/EZ5PKNLU.js +2 -0
- package/dist/cdn/HDTRW7I6.js +4 -0
- package/dist/cdn/{M3NML7ZV.js → IMJTIIHG.js} +1 -1
- package/dist/cdn/{CPBEDBQJ.js → JAYARGS3.js} +1 -1
- package/dist/cdn/{TM6TYAW2.js → KDSK7F55.js} +18 -18
- package/dist/cdn/LZTAD4IE.js +2 -0
- package/dist/cdn/{QSGVCMF2.js → OL5LAOD5.js} +1 -1
- package/dist/cdn/{QCNGBMWJ.js → PBENK36A.js} +1 -1
- package/dist/cdn/{PJTHEJG4.js → QCXOGAWW.js} +1 -1
- package/dist/cdn/{2K4FSWCI.js → R7A62RZ4.js} +1 -1
- package/dist/cdn/{QU25YPPX.js → ZZJHOJM5.js} +1 -1
- 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/solutions-deploy-app/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/solution-builder-assistant.js +3 -3
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +6 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +18 -4
- package/dist/components/create-feature/customElement.js +101 -74
- package/dist/components/crowdsource-reporter/customElement.d.ts +6 -2
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.d.ts +8 -0
- package/dist/components/solutions-deploy-app/customElement.js +19 -19
- 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 -8
- package/package.json +1 -1
- package/dist/cdn/6Y47Z4QA.js +0 -4
- package/dist/cdn/GYTMAAVH.js +0 -2
- package/dist/cdn/ON244IGD.js +0 -2
- package/dist/cdn/WFWEWVGR.js +0 -2
- package/dist/cdn/WUKFT5AY.js +0 -4
|
@@ -10,7 +10,7 @@ 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
12
|
import { useContextProvider as b } from "@arcgis/lumina/context";
|
|
13
|
-
import { c as F, b as
|
|
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";
|
|
16
16
|
import "@esri/solution-common";
|
|
@@ -677,7 +677,7 @@ 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 = b({ 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 = b({ context:
|
|
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 = b({ 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 = b({ context: $ }), this._isMobileContextProvider = b({ 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
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 = c(), this.deployedCardFetchFailed = c(), this.detailsCardSelected = c(), this.deployedCardSelected = c(), this.metaTagStringsReady = c(), this.sessionRefreshed = c(), this.tabChanged = c(), 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", () => {
|
|
@@ -742,7 +742,7 @@ class V extends w {
|
|
|
742
742
|
if (this.authentication?.IsSignedIn) {
|
|
743
743
|
if (this._forceInit = !0, this._isLoaded = !1, this._cardFetcherDeployed && await this._getDeployedSolution(e.tabTitleOrId), this._deployedSolutions?.cards?.length > 0) {
|
|
744
744
|
let s;
|
|
745
|
-
this._deployedSolutions.cards.some((
|
|
745
|
+
this._deployedSolutions.cards.some((n) => n.id === e.tabTitleOrId ? (s = n, this.deployedCardSelected.emit({ card: s }), !0) : !1), this._isLoaded = !0, this._forceInit = !1;
|
|
746
746
|
} else
|
|
747
747
|
return this._isLoaded = !0, this._forceInit = !1, this.selectTab({ tabTitleOrId: "", tabType: "deployments" }, t);
|
|
748
748
|
break;
|
|
@@ -811,7 +811,7 @@ class V extends w {
|
|
|
811
811
|
const e = this._isLoaded ? "display-none" : "", t = this._isLoaded ? "" : "display-none";
|
|
812
812
|
return d`<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() && d`<div class="border"></div>` || ""}${this._activeTab !== "resources" && d`<solutions-searchsort-toolbar ${a(async (i) => {
|
|
813
813
|
i && (await this._deployAppNav.value?.componentOnReady(), this._searchSortToolbar = i);
|
|
814
|
-
})}></solutions-searchsort-toolbar>` || ""}${this._activeTab === "resources" && d`<div class="border"></div><div class="resources-menu-container"><calcite-menu label
|
|
814
|
+
})}></solutions-searchsort-toolbar>` || ""}${this._activeTab === "resources" && d`<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=${_(e)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${_(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 && d`<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
816
|
}} scale=l></calcite-fab>${!this._fabTooltipDismissed && d`<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;
|
|
@@ -876,13 +876,13 @@ class V extends w {
|
|
|
876
876
|
if (!((e === "details" || e === "deployed-card") && !t) && i) {
|
|
877
877
|
const s = [];
|
|
878
878
|
if ((e === "details" || e === "deployed-card") && t) {
|
|
879
|
-
const
|
|
880
|
-
s.push(
|
|
879
|
+
const l = t;
|
|
880
|
+
s.push(l.title || ""), s.push(l.deployCommonId || ""), s.push(l.deployVersion || ""), s.push(""), s.push(P(l.typeKeywords));
|
|
881
881
|
}
|
|
882
|
-
const
|
|
882
|
+
const n = e === "deployed-card" ? "Open" : "View";
|
|
883
883
|
this._telemetry?.logEvent({
|
|
884
884
|
category: i,
|
|
885
|
-
action:
|
|
885
|
+
action: n,
|
|
886
886
|
dimensions: s.length > 0 ? s : void 0
|
|
887
887
|
});
|
|
888
888
|
}
|
|
@@ -982,11 +982,11 @@ class V extends w {
|
|
|
982
982
|
this._abortControllerDeployed ? (this._abortControllerDeployed.abort(), this._abortControllerDeployed = new AbortController()) : this._abortControllerDeployed = new AbortController();
|
|
983
983
|
const s = A(t);
|
|
984
984
|
try {
|
|
985
|
-
const
|
|
986
|
-
|
|
987
|
-
} catch (
|
|
988
|
-
const
|
|
989
|
-
|
|
985
|
+
const n = await O(t, i, this._cardsFetcher, this._cardFetcherDeployed, x, "created", "desc", !1, [], [], this._abortControllerDeployed.signal, s ? "My organization's solutions" : "My solutions", e);
|
|
986
|
+
n.cards.length === 0 || n.cards[0].typeKeywords.indexOf("Deployed") < 0 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchNotSolution.replace("{{ITEMID}}", e), this._showDeployedCardFetchFailed = !0) : this._deployedSolutions = n;
|
|
987
|
+
} catch (n) {
|
|
988
|
+
const l = n.message;
|
|
989
|
+
l.indexOf("CONT_0001") > -1 || l.indexOf("Item does not exist or is inaccessible.") > -1 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchWrongId.replace("{{ITEMID}}", e), this._showDeployedCardFetchFailed = !0) : l.indexOf("GWM_0003") > -1 || l.indexOf("You do not have permissions to access this resource or perform this operation.") > -1 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}", e), this._showDeployedCardFetchFailed = !0) : (this._showDeployedCardFetchFailed = !0, this._deployCardFetchFailedMessage = ""), console.warn(n);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
}
|
|
@@ -999,12 +999,12 @@ class V extends w {
|
|
|
999
999
|
_getDefaultSearchOptions(e) {
|
|
1000
1000
|
let t;
|
|
1001
1001
|
if (e) {
|
|
1002
|
-
const i = e.domain, s = e.industry === "AEC" ? I.AEC : e.industry,
|
|
1002
|
+
const i = e.domain, s = e.industry === "AEC" ? I.AEC : e.industry, n = e.offerType, l = e.searchTerm, g = "";
|
|
1003
1003
|
let r = e.sortField;
|
|
1004
1004
|
const p = e.owner, u = e.filter;
|
|
1005
1005
|
r === "suggested" && !this.authentication?.IsSignedIn && (r = this.sortType), t = i || s ? {
|
|
1006
1006
|
type: i ? "domain" : s ? "industry" : ""
|
|
1007
|
-
} : void 0, i && (t = t ? { ...t, domain: i } : { domain: i }), s && (t = t ? { ...t, industry: s } : { industry: s }),
|
|
1007
|
+
} : void 0, i && (t = t ? { ...t, domain: i } : { domain: i }), s && (t = t ? { ...t, industry: s } : { industry: s }), l && (t = t ? { ...t, searchTerm: l } : { searchTerm: l }), t && (t = { ...t, displayValue: g }), r && (t = t ? { ...t, sortType: r } : { sortType: r }), n && (r = n.toLowerCase(), t = t ? { ...t, sortType: r } : { sortType: r }), p && (t = t ? { ...t, owner: p } : { owner: p }), u && (t = t ? { ...t, filter: u } : { filter: u });
|
|
1008
1008
|
}
|
|
1009
1009
|
return t;
|
|
1010
1010
|
}
|
|
@@ -1017,14 +1017,14 @@ class V extends w {
|
|
|
1017
1017
|
_setRefreshInterval() {
|
|
1018
1018
|
const { userSession: e, authentication: t } = this._configContextProvider.value;
|
|
1019
1019
|
if (e && e.tokenDuration && t?.IsSignedIn) {
|
|
1020
|
-
const i = Date.now(),
|
|
1020
|
+
const i = Date.now(), n = (t.Credential?.expires - i) * 0.95;
|
|
1021
1021
|
setInterval(async () => {
|
|
1022
1022
|
if (t.Credential && t.Credential.expires) {
|
|
1023
1023
|
await t.Credential?.refreshToken();
|
|
1024
|
-
const
|
|
1025
|
-
e.updateToken(t.Credential.token,
|
|
1024
|
+
const l = new Date(t.Credential.expires);
|
|
1025
|
+
e.updateToken(t.Credential.token, l), this.sessionRefreshed.emit(e.token);
|
|
1026
1026
|
}
|
|
1027
|
-
},
|
|
1027
|
+
}, n);
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|