@esri/solutions-components 5.1.0-next.166 → 5.1.0-next.168
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/2MCOUOTQ.js +2 -0
- package/dist/cdn/{SJ2IGQMX.js → 4D46WTPB.js} +1 -1
- package/dist/cdn/4L7TJNAM.js +43 -0
- package/dist/cdn/6KO7AYJN.js +2 -0
- package/dist/cdn/{QVUBUYP6.js → 6LN2ZRAZ.js} +1 -1
- package/dist/cdn/{PVPKXQBE.js → BU6BDYWD.js} +3 -3
- package/dist/cdn/{CKWEF3KW.js → BYOO7TWU.js} +1 -1
- package/dist/cdn/{T26SIBKB.js → DFHULDJT.js} +1 -1
- package/dist/cdn/{GI33DSVT.js → DGGIENYR.js} +1 -1
- package/dist/cdn/{IVKRYKER.js → DSJRQHKW.js} +1 -1
- package/dist/cdn/{BT3FYIEX.js → EBAOA6CS.js} +1 -1
- package/dist/cdn/{ZOFZVFBV.js → F5463ORT.js} +1 -1
- package/dist/cdn/{K5ZYDQR7.js → FK6Q2LYR.js} +1 -1
- package/dist/cdn/{UTUOUV3E.js → HGOH5KSX.js} +1 -1
- package/dist/cdn/{XLGAHCS7.js → HUYLWWWJ.js} +1 -1
- package/dist/cdn/{Y32IJPXS.js → I6EH3H6Z.js} +1 -1
- package/dist/cdn/{25QYS4LE.js → IP7IUAM5.js} +1 -1
- package/dist/cdn/{3FKVBTJC.js → JCGZXASG.js} +1 -1
- package/dist/cdn/{P5RZHVDH.js → JJLYSRRX.js} +1 -1
- package/dist/cdn/{JGL4WYTO.js → K6O33P5T.js} +1 -1
- package/dist/cdn/{RHAHQ4DB.js → LQ6PZESP.js} +1 -1
- package/dist/cdn/{AFLXI5U2.js → LUIN5XSX.js} +1 -1
- package/dist/cdn/LWQ4SBU2.js +2 -0
- package/dist/cdn/{DKZ4FZKK.js → LXGPZJIZ.js} +1 -1
- package/dist/cdn/{ZSTC2DJY.js → MBT2S4J5.js} +1 -1
- package/dist/cdn/{GJWHFH2F.js → MXF4BYLT.js} +1 -1
- package/dist/cdn/{C47WRU5U.js → OTQLLNFG.js} +1 -1
- package/dist/cdn/{RYJ556XB.js → PM7QF66M.js} +1 -1
- package/dist/cdn/{TCRMAQDF.js → QKSC4XFL.js} +1 -1
- package/dist/cdn/{2BRPSISV.js → ROGRXRFI.js} +1 -1
- package/dist/cdn/{46I7FRQJ.js → RWHR4UZT.js} +1 -1
- package/dist/cdn/{VXGLGWIF.js → SNA7NRRQ.js} +3 -3
- package/dist/cdn/{K4LZRLGL.js → T5R4UF7Y.js} +1 -1
- package/dist/cdn/{KD4IHPH6.js → UOQSRV3X.js} +2 -2
- package/dist/cdn/{2VG5GRFH.js → V6N4G75E.js} +1 -1
- package/dist/cdn/{2YC25V3L.js → VJBL5ZUX.js} +1 -1
- package/dist/cdn/{UEYON3AE.js → VLBNRURV.js} +1 -1
- package/dist/cdn/{XXCHYJ3I.js → VLF76E2L.js} +1 -1
- package/dist/cdn/{2BI4S6V2.js → VY364MR6.js} +1 -1
- package/dist/cdn/{Z7VXHUQA.js → WKRSOM6J.js} +1 -1
- package/dist/cdn/{VL2NVCIB.js → WRWWRMHZ.js} +3 -3
- package/dist/cdn/{VTFLDHVU.js → X6TQNCB3.js} +1 -1
- package/dist/cdn/Y2MAVMNV.js +2 -0
- package/dist/cdn/{66N4ZZKC.js → ZWL4JFKS.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/assessBuildRequest.js +2 -2
- package/dist/chunks/assistantResponse.js +23 -29
- package/dist/chunks/designSolution.js +3 -3
- package/dist/chunks/interfaces.js +6 -3
- package/dist/chunks/updateDesign.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +9 -9
- package/dist/components/card-manager/customElement.d.ts +0 -3
- package/dist/components/card-manager/customElement.js +6 -6
- package/dist/components/create-feature/customElement.js +80 -62
- package/dist/components/create-related-feature/customElement.js +12 -9
- package/dist/components/crowdsource-manager/customElement.js +3 -3
- package/dist/components/layer-table/customElement.js +13 -13
- package/dist/components/solution-configure-titles/customElement.js +2 -1
- package/dist/components/solution-delete-dialog/customElement.js +2 -1
- package/dist/components/solution-deployed-card-panel/customElement.js +8 -4
- package/dist/components/solutions-deploy-app/customElement.js +14 -14
- 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/solutions-components_commit.txt +6 -6
- package/dist/types/lumina.d.ts +0 -1
- package/dist/types/preact.d.ts +0 -1
- package/dist/types/react.d.ts +0 -1
- package/dist/types/stencil.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cdn/2NSMAAXL.js +0 -2
- package/dist/cdn/632J5NXN.js +0 -49
- package/dist/cdn/CDT6E3VG.js +0 -2
- package/dist/cdn/HQCHD3FH.js +0 -2
- package/dist/cdn/RSCCUNJ4.js +0 -2
|
@@ -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 d, safeClassMap as
|
|
5
|
+
import { LitElement as w, createEvent as d, safeClassMap as _, nothing as C } from "@arcgis/lumina";
|
|
6
6
|
import { css as S, html as c } from "lit";
|
|
7
|
-
import { T as
|
|
7
|
+
import { T as y } 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
|
-
import { C as
|
|
10
|
+
import { C as g } from "../../chunks/CardsFetcher.js";
|
|
11
11
|
import { g as O } from "../../chunks/cardFetchingUtils.js";
|
|
12
|
-
import { useContextProvider as
|
|
12
|
+
import { useContextProvider as m } 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 = m({ 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 = m({ context: $ }), this._isMobileContextProvider = m({ 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
|
|
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 y(), 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,9 +809,9 @@ class V extends w {
|
|
|
809
809
|
}
|
|
810
810
|
render() {
|
|
811
811
|
const e = this._isLoaded ? "display-none" : "", t = this._isLoaded ? "" : "display-none";
|
|
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=${
|
|
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=${_(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>${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=${
|
|
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=${_(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 && 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
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;
|
|
@@ -831,7 +831,7 @@ class V extends w {
|
|
|
831
831
|
}
|
|
832
832
|
async _handleAuthInit(e) {
|
|
833
833
|
const t = e.detail;
|
|
834
|
-
t.telemetrySession || (t.telemetrySession =
|
|
834
|
+
t.telemetrySession || (t.telemetrySession = y.getDisabledSession()), this._configContextProvider.setValue(t), t.authentication && (this.authentication = t.authentication), this._cardFetcherDeployed = new g(t.locale, t.orgUrl, t.portalURL), this._cardsFetcher = new g(t.locale, t.orgUrl, t.portalURL), this._isDisconnectedEnvironment || await this._getSolutions(t.primarySolutionsGroupId, t.agoBasedEnterpriseSolutionsGroupId), this._configContextProvider.value.allCards = this._allCards, this._configContextProvider.value.anonAgolSession = this._cardsFetcher.anonAgolSession, this._configContextProvider.value.agolPortalUrl = this._cardsFetcher.agolPortalUrl, await this._initializeTelemetry(), this._isLoaded = !0, this._setRefreshInterval(), this._initTab ? (this.selectTab(this._initTab, this._initFilters), this._logTabViewTelemetry(this._initTab.tabType), this._initTab = void 0, this._initFilters = void 0) : this.authentication?.IsSignedIn && (this.initTab === "details" || this.initTab === "deployed-card" || (this._logTabViewTelemetry(this._activeTab), this._emitMetaTagStrings(this._activeTab)));
|
|
835
835
|
}
|
|
836
836
|
_setActiveTab(e) {
|
|
837
837
|
const i = e.detail.tabType, s = this._activeTab !== i;
|
|
@@ -876,8 +876,8 @@ 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 l = t;
|
|
880
|
-
s.push(
|
|
879
|
+
const l = t, p = e === "deployed-card" ? "" : l.title || "";
|
|
880
|
+
s.push(p), s.push(l.deployCommonId || ""), s.push(l.deployVersion || ""), s.push(""), s.push(P(l.typeKeywords));
|
|
881
881
|
}
|
|
882
882
|
const n = e === "deployed-card" ? "Open" : "View";
|
|
883
883
|
this._telemetry?.logEvent({
|
|
@@ -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, n = e.offerType, l = e.searchTerm,
|
|
1002
|
+
const i = e.domain, s = e.industry === "AEC" ? I.AEC : e.industry, n = e.offerType, l = e.searchTerm, p = "";
|
|
1003
1003
|
let r = e.sortField;
|
|
1004
|
-
const
|
|
1004
|
+
const u = e.owner, b = 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 }), l && (t = t ? { ...t, searchTerm: l } : { searchTerm: l }), t && (t = { ...t, displayValue:
|
|
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: p }), r && (t = t ? { ...t, sortType: r } : { sortType: r }), n && (r = n.toLowerCase(), t = t ? { ...t, sortType: r } : { sortType: r }), u && (t = t ? { ...t, owner: u } : { owner: u }), b && (t = t ? { ...t, filter: b } : { filter: b });
|
|
1008
1008
|
}
|
|
1009
1009
|
return t;
|
|
1010
1010
|
}
|