@esri/solutions-components 5.1.0-next.123 → 5.1.0-next.127
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/{EWUZF57U.js → 232XXYVJ.js} +1 -1
- package/dist/cdn/{Y6ZWXE53.js → 23LRX7AS.js} +1 -1
- package/dist/cdn/{Z25OUDBP.js → 23SGJQLW.js} +1 -1
- package/dist/cdn/2KSXH2TC.js +2 -0
- package/dist/cdn/3JZVI5AM.js +7 -0
- package/dist/cdn/{C7SMCM7E.js → 3UJAJDSF.js} +1 -1
- package/dist/cdn/{A4RZESK7.js → 3UKDJZ2D.js} +2 -2
- package/dist/cdn/{JR5GBFT2.js → 4V4CR63B.js} +1 -1
- package/dist/cdn/{ZV6TCDGB.js → 4Z6UJJJR.js} +1 -1
- package/dist/cdn/4ZUE6R22.js +2 -0
- package/dist/cdn/5AAG5ERI.js +2 -0
- package/dist/cdn/{6GSCRFFW.js → 5GHZQ66V.js} +1 -1
- package/dist/cdn/5U2GHXOV.js +2 -0
- package/dist/cdn/5UIJ4Z3C.js +2 -0
- package/dist/cdn/{6RTR35JT.js → 5XDPNTYE.js} +1 -1
- package/dist/cdn/6ID6N5BF.js +2 -0
- package/dist/cdn/6IMLSV3Z.js +2 -0
- package/dist/cdn/{K5MMGZY2.js → 6Q52JBZW.js} +1 -1
- package/dist/cdn/{4MAZNAHZ.js → 6SSQ6MIC.js} +1 -1
- package/dist/cdn/{KZBWKZOC.js → 74XF7DBP.js} +1 -1
- package/dist/cdn/75WQ7UGJ.js +2 -0
- package/dist/cdn/7CGCLEYB.js +2 -0
- package/dist/cdn/{SH72A5PB.js → 7V57GR4X.js} +1 -1
- package/dist/cdn/{D66IBZZA.js → 7ZKKR7QO.js} +1 -1
- package/dist/cdn/AL7O7ZB2.js +3 -0
- package/dist/cdn/{MYPJ63EE.js → ANVT6ANQ.js} +1 -1
- package/dist/cdn/{GWSB6X4X.js → AOJP5RQ6.js} +1 -1
- package/dist/cdn/{XQQ52NKX.js → AYSQIO6L.js} +1 -1
- package/dist/cdn/{WGEHABGS.js → B33EUN4X.js} +1 -1
- package/dist/cdn/BLCW2CZO.js +2 -0
- package/dist/cdn/{3WKKIXVT.js → BOSEAFVW.js} +1 -1
- package/dist/cdn/{CGFMGQ3A.js → BROZWKD5.js} +1 -1
- package/dist/cdn/CB7QDBRG.js +2 -0
- package/dist/cdn/CEWRVOKP.js +2 -0
- package/dist/cdn/{MOK7GNOH.js → CWXZSWUA.js} +1 -1
- package/dist/cdn/D4FRUAT3.js +2 -0
- package/dist/cdn/DQ7NBBUU.js +2 -0
- package/dist/cdn/{D5Y4JMF7.js → E4ZB3BPD.js} +1 -1
- package/dist/cdn/E5X2RW5Y.js +109 -0
- package/dist/cdn/{KGECA3WE.js → EDZIFJZR.js} +1 -1
- package/dist/cdn/{NYWKJJKK.js → EIF4KZBD.js} +1 -1
- package/dist/cdn/{B6Y3RA4F.js → ENG5BCAV.js} +1 -1
- package/dist/cdn/EOSKMSMP.js +2 -0
- package/dist/cdn/{RH47YGDG.js → EVZXWT6K.js} +1 -1
- package/dist/cdn/EXC566PM.js +2 -0
- package/dist/cdn/FOTFZKKU.js +2 -0
- package/dist/cdn/FTY7YPLA.js +88 -0
- package/dist/cdn/FW2HWQC7.js +2 -0
- package/dist/cdn/{MGAKD4WY.js → GDDMG3Q4.js} +1 -1
- package/dist/cdn/{BRBOVJ3Q.js → GPL6FNKN.js} +1 -1
- package/dist/cdn/{DUDZ4BGI.js → GSD6O5J7.js} +1 -1
- package/dist/cdn/{SSF6ST7U.js → H4YPSJ5G.js} +1 -1
- package/dist/cdn/{TTOCCH2K.js → H7J2FXMS.js} +1 -1
- package/dist/cdn/{C5QZMZX7.js → HEI6GMZN.js} +1 -1
- package/dist/cdn/{AZ4JB3M3.js → HJW2JW4G.js} +1 -1
- package/dist/cdn/HO4GBQJG.js +2 -0
- package/dist/cdn/HT2HC33W.js +2 -0
- package/dist/cdn/{IHKF4AMV.js → HYLQNC4V.js} +3 -3
- package/dist/cdn/HZOBBQYW.js +431 -0
- package/dist/cdn/ICSHJV2N.js +2 -0
- package/dist/cdn/IFI66PVI.js +2 -0
- package/dist/cdn/{YFXSWGXE.js → IHG7KTNC.js} +1 -1
- package/dist/cdn/IP3VJ34C.js +4 -0
- package/dist/cdn/IV7RVOFY.js +56 -0
- package/dist/cdn/{3UIIZPJJ.js → IYQGIBWM.js} +1 -1
- package/dist/cdn/{JFJRHOAG.js → KCTWFRCW.js} +1 -1
- package/dist/cdn/{3W366S6N.js → KEOBSFBN.js} +1 -1
- package/dist/cdn/{N2KSPEVT.js → LP2JYX4X.js} +1 -1
- package/dist/cdn/{C4IFGE7P.js → MDNGEZ2V.js} +1 -1
- package/dist/cdn/{XVMCFCUH.js → MEDCFXMB.js} +1 -1
- package/dist/cdn/{X6JL6SAH.js → MOH6GREK.js} +1 -1
- package/dist/cdn/MURYADCX.js +2 -0
- package/dist/cdn/{JBNWEBAG.js → N22MFQSQ.js} +1 -1
- package/dist/cdn/N5D5ABJ6.js +2 -0
- package/dist/cdn/{5HZMUGQD.js → N7BXCDA3.js} +1 -1
- package/dist/cdn/{SGJY2CP3.js → ODB4CELR.js} +1 -1
- package/dist/cdn/PZW6JMSM.js +2 -0
- package/dist/cdn/{5MVIKBSS.js → QF2IXVAT.js} +1 -1
- package/dist/cdn/{CQRK2NYK.js → QJICQ4W3.js} +1 -1
- package/dist/cdn/QNRKGTZT.js +121 -0
- package/dist/cdn/{GIANH6D4.js → R3C2X4CM.js} +1 -1
- package/dist/cdn/{DKB6JTUF.js → RKZXRHZK.js} +1 -1
- package/dist/cdn/RPEQD2MH.js +2 -0
- package/dist/cdn/{SMNWKCWR.js → RXM4BHPK.js} +1 -1
- package/dist/cdn/S5F6KJQM.js +18 -0
- package/dist/cdn/SFFLZSAY.js +2 -0
- package/dist/cdn/SSH4MSHE.js +2 -0
- package/dist/cdn/{BQVD2BBH.js → SSZBIVTK.js} +1 -1
- package/dist/cdn/{EZ4DX2MW.js → TFTW5B3R.js} +1 -1
- package/dist/cdn/{I74AIIHN.js → TIF36KTA.js} +1 -1
- package/dist/cdn/TV3ZHJ7B.js +2 -0
- package/dist/cdn/{U6JZYJ4D.js → UM3P3Q52.js} +1 -1
- package/dist/cdn/{WH2NFOMH.js → UUHDVB24.js} +5 -5
- package/dist/cdn/UY5JVVRO.js +2 -0
- package/dist/cdn/VEDAG7UO.js +2 -0
- package/dist/cdn/VFBFI3KQ.js +2 -0
- package/dist/cdn/{BXOH6SN4.js → VTI5LEQY.js} +1 -1
- package/dist/cdn/W5FWW67G.js +2 -0
- package/dist/cdn/{RB3YU5TX.js → WA3BLQHA.js} +1 -1
- package/dist/cdn/{JEEUSHAF.js → X73XP424.js} +1 -1
- package/dist/cdn/XC3IZAIH.js +2 -0
- package/dist/cdn/{3FOUGCWY.js → XDZPQACK.js} +1 -1
- package/dist/cdn/XGODSNWZ.js +2 -0
- package/dist/cdn/{UNKHKP5I.js → YJCH2NIS.js} +1 -1
- package/dist/cdn/{A4NILC27.js → YKM2YRZP.js} +1 -1
- package/dist/cdn/{FBRYBN7J.js → YMLQXXAS.js} +1 -1
- package/dist/cdn/{JUUVYK2H.js → YQHYMLC7.js} +1 -1
- package/dist/cdn/{Y3CYPNEY.js → YWXDNRE2.js} +1 -1
- package/dist/cdn/{E4GB5Z4R.js → ZNWZWFMH.js} +1 -1
- package/dist/cdn/{DGUS2OKW.js → ZS3UOY5Q.js} +1 -1
- package/dist/cdn/{5VDDAINK.js → ZX3UHK6P.js} +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-panel/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/Auth.js +163 -71
- package/dist/chunks/CardsFetcher.js +3 -2
- package/dist/chunks/getRelatedInfos.js +1 -1
- package/dist/chunks/helpers.js +24 -20
- package/dist/chunks/interfaces.js +152 -141
- package/dist/chunks/solution-deploy-dialog.js +25 -19
- package/dist/chunks/solutions-deploy-app-nav.js +4 -5
- package/dist/components/arcgis-solutions-assistant/customElement.js +681 -57987
- package/dist/components/consent-manager/customElement.js +23 -3598
- package/dist/components/solution-builder-assistant/customElement.d.ts +8 -2
- package/dist/components/solution-builder-assistant/customElement.js +34 -27
- package/dist/components/solution-builder-assistant/index.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +63 -61
- package/dist/components/solution-delete-dialog/customElement.js +18 -15
- package/dist/components/solution-deployed-card/customElement.js +2 -3
- package/dist/components/solution-deployed-card-panel/customElement.d.ts +7 -0
- package/dist/components/solution-deployed-card-panel/customElement.js +34 -32
- package/dist/components/solution-deployed-card-panel/index.js +1 -0
- package/dist/components/solution-details-panel/customElement.d.ts +7 -4
- package/dist/components/solution-details-panel/customElement.js +115 -180
- package/dist/components/solution-snapshot-gallery/customElement.js +2 -1
- package/dist/components/solution-social-share/customElement.js +2 -2
- package/dist/components/solution-user-avatar/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.d.ts +4 -0
- package/dist/components/solutions-deploy-app/customElement.js +127 -121
- package/dist/components/solutions-deploy-app-nav/customElement.js +2 -3
- package/dist/components/solutions-deployed-list/customElement.js +7 -6
- 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 +3 -3
- package/dist/solutions-components_commit.txt +4 -4
- package/dist/types/lumina.d.ts +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/dist/utils/Auth.d.ts +11 -0
- package/package.json +11 -6
- package/dist/cdn/23V6TTH7.js +0 -2
- package/dist/cdn/2XMRDB3K.js +0 -18
- package/dist/cdn/3KDM4JBY.js +0 -2
- package/dist/cdn/3RUVSQ7E.js +0 -2
- package/dist/cdn/4FZ44STD.js +0 -2
- package/dist/cdn/52KL2BJB.js +0 -2
- package/dist/cdn/5DS6TJ6G.js +0 -2
- package/dist/cdn/7JUP4GFU.js +0 -2
- package/dist/cdn/7UERL2R2.js +0 -2
- package/dist/cdn/7WKV6M26.js +0 -2
- package/dist/cdn/BKZZ625R.js +0 -2
- package/dist/cdn/BWYFMFIB.js +0 -423
- package/dist/cdn/DIZGS2TJ.js +0 -2
- package/dist/cdn/F2J3FYTD.js +0 -2
- package/dist/cdn/GVEIFIEZ.js +0 -2
- package/dist/cdn/H5WTVMPJ.js +0 -2
- package/dist/cdn/HNZAE56I.js +0 -2
- package/dist/cdn/HQJ25PBT.js +0 -2
- package/dist/cdn/IF52R2FM.js +0 -2
- package/dist/cdn/IOKTYFKK.js +0 -7
- package/dist/cdn/IRRMUFW7.js +0 -2
- package/dist/cdn/JFKCARWJ.js +0 -2
- package/dist/cdn/JIB3C4UN.js +0 -2
- package/dist/cdn/K7QUGRWR.js +0 -4
- package/dist/cdn/MN3KMBU6.js +0 -2
- package/dist/cdn/MPZE3IV4.js +0 -2
- package/dist/cdn/QKKYYRVF.js +0 -2
- package/dist/cdn/QTV6GN3W.js +0 -2
- package/dist/cdn/QVJAIVT4.js +0 -2
- package/dist/cdn/R23DJVW5.js +0 -2
- package/dist/cdn/RXFNNWEJ.js +0 -2
- package/dist/cdn/SBLN3F4Y.js +0 -2
- package/dist/cdn/STWIOVJR.js +0 -2
- package/dist/cdn/TUQVCY7T.js +0 -2
- package/dist/cdn/UPZXZI75.js +0 -2
- package/dist/cdn/VL4OP3CF.js +0 -2
- package/dist/cdn/XRMZECS5.js +0 -2
- package/dist/cdn/XRQGTB5B.js +0 -2
- package/dist/cdn/ZPT5ISDK.js +0 -2
- package/dist/chunks/common.js +0 -26
- package/dist/chunks/get.js +0 -387
|
@@ -3,7 +3,7 @@ import { c as n } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { u as c } from "../../chunks/useT9n.js";
|
|
4
4
|
import { LitElement as l, nothing as a } from "@arcgis/lumina";
|
|
5
5
|
import { useContextConsumer as d } from "@arcgis/lumina/context";
|
|
6
|
-
import {
|
|
6
|
+
import { y as r } from "../../chunks/interfaces.js";
|
|
7
7
|
import { c as h } from "../../chunks/deployAppContexts.js";
|
|
8
8
|
import { q as p } from "../../chunks/helpers.js";
|
|
9
9
|
import { css as m, html as i } from "lit";
|
|
@@ -11,6 +11,7 @@ import "@esri/solution-common";
|
|
|
11
11
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
12
12
|
import "@arcgis/core/identity/OAuthInfo.js";
|
|
13
13
|
import "@arcgis/core/portal/Portal.js";
|
|
14
|
+
import "@arcgis/lumina/controllers";
|
|
14
15
|
import { createRef as g, ref as u } from "lit-html/directives/ref.js";
|
|
15
16
|
const f = m`*[tabindex]:focus-visible{outline:solid 2px var(--calcite-color-brand);outline-offset:2px}.display-flex{display:flex}.align-items-center{align-items:center}.justify-content-center{justify-content:center}.screenshot-container{width:100%;overflow:hidden}.footer{width:100%}.footer-override{--calcite-dialog-footer-space: 0px}.footer-card{width:200px;height:110px;cursor:pointer}.padding-1{padding:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-end-1{padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.padding-top-1{padding-top:1rem}.padding-top-1-2{padding-top:.5rem}.background-black{background-color:var(--calcite-color-surface-4)}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover{outline:2px solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding-bottom:2px}.calcite-card-selected{outline:2px solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding-bottom:2px}calcite-card:hover .hover-text{opacity:1;color:#fff}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-lg)}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.footer-card img{background-color:var(--calcite-color-surface-2)}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip;display:block;object-fit:contain}`;
|
|
16
17
|
class b extends l {
|
|
@@ -6,7 +6,7 @@ import { LitElement as m, nothing as h, safeStyleMap as l } from "@arcgis/lumina
|
|
|
6
6
|
import { useContextConsumer as b } from "@arcgis/lumina/context";
|
|
7
7
|
import { c as x } from "../../chunks/deployAppContexts.js";
|
|
8
8
|
import { T as w } from "../../chunks/interfaces.js";
|
|
9
|
-
import {
|
|
9
|
+
import { u as y } from "../../chunks/helpers.js";
|
|
10
10
|
import { createRef as n, ref as r } from "lit-html/directives/ref.js";
|
|
11
11
|
import * as $ from "@arcgis/core/intl.js";
|
|
12
12
|
import k from "@arcgis/core/request.js";
|
|
@@ -73,7 +73,7 @@ class P extends m {
|
|
|
73
73
|
}
|
|
74
74
|
_renderButton() {
|
|
75
75
|
const o = this.shareButtonScale != null ? this.shareButtonScale : this.scale;
|
|
76
|
-
return this.shareButtonType === "button" ? e`<calcite-button .appearance=${this.buttonAppearance} class=solutions-social-share__popover-button id=shareButton .kind=${this.shareButtonKind} .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} title=${this._translations.share?.label ?? h} ${r(this._popoverButtonRef)}>${this.shareButtonText}</calcite-button>` : e`<calcite-action alignment=center .appearance=${this.actionApperance} class=solutions-social-share__popover-button id=shareButton .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} text title=${this._translations.share?.label ?? h} ${r(this._popoverActionRef)}><div class=solutions-social-share__icon-container><calcite-icon aria-hidden=true icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div></calcite-action>`;
|
|
76
|
+
return this.shareButtonType === "button" ? e`<calcite-button .appearance=${this.buttonAppearance} class=solutions-social-share__popover-button id=shareButton .kind=${this.shareButtonKind} .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} title=${this._translations.share?.label ?? h} width=full ${r(this._popoverButtonRef)}>${this.shareButtonText}</calcite-button>` : e`<calcite-action alignment=center .appearance=${this.actionApperance} class=solutions-social-share__popover-button id=shareButton .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} text title=${this._translations.share?.label ?? h} ${r(this._popoverActionRef)}><div class=solutions-social-share__icon-container><calcite-icon aria-hidden=true icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div></calcite-action>`;
|
|
77
77
|
}
|
|
78
78
|
_renderSuccess() {
|
|
79
79
|
const o = this._translations.success;
|
|
@@ -5,7 +5,7 @@ import { useContextConsumer as n } from "@arcgis/lumina/context";
|
|
|
5
5
|
import { c as l } from "../../chunks/deployAppContexts.js";
|
|
6
6
|
import { restGetUser as s } from "@esri/solution-common";
|
|
7
7
|
import { css as r, html as u } from "lit";
|
|
8
|
-
import {
|
|
8
|
+
import { H as c } from "../../chunks/interfaces.js";
|
|
9
9
|
const m = r`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.avatar-container{align-items:center;display:flex;flex-direction:row;padding-top:var(--calcite-spacing-lg)}.full-name{margin-inline-start:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-navigation-user-full-name-text-color, var(--calcite-color-text-1))}.text-container{margin-block-start:.125rem;display:flex;flex-direction:column;padding-inline:1rem;text-align:start}.username{font-size:var(--calcite-font-size--1);color:var(--calcite-navigation-user-name-text-color, var(--calcite-color-text-2))}`;
|
|
10
10
|
class f extends o {
|
|
11
11
|
constructor() {
|
|
@@ -27,6 +27,8 @@ export abstract class SolutionsDeployApp extends LitElement {
|
|
|
27
27
|
metaResourcesDescription: string;
|
|
28
28
|
metaDetailsTitle: string;
|
|
29
29
|
assistantFabTooltip: string;
|
|
30
|
+
writableEnterprise: string;
|
|
31
|
+
writableOnline: string;
|
|
30
32
|
} & T9nMeta<{
|
|
31
33
|
allSolutions: string;
|
|
32
34
|
failedToOpen: string;
|
|
@@ -44,6 +46,8 @@ export abstract class SolutionsDeployApp extends LitElement {
|
|
|
44
46
|
metaResourcesDescription: string;
|
|
45
47
|
metaDetailsTitle: string;
|
|
46
48
|
assistantFabTooltip: string;
|
|
49
|
+
writableEnterprise: string;
|
|
50
|
+
writableOnline: string;
|
|
47
51
|
}>;
|
|
48
52
|
/** App config to use when useLocalAppConfig is false */
|
|
49
53
|
accessor appConfig: any;
|
|
@@ -2,28 +2,28 @@
|
|
|
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
|
|
6
|
-
import { css 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 h } from "lit";
|
|
7
7
|
import { T as m } from "../../chunks/solutions-deploy-app-nav.js";
|
|
8
|
-
import { a as D, T as c, A, B as x, e as
|
|
9
|
-
import { createRef as
|
|
8
|
+
import { a as D, T as c, F as A, B as x, e as O } from "../../chunks/interfaces.js";
|
|
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
|
-
import { g as
|
|
11
|
+
import { g as I } from "../../chunks/cardFetchingUtils.js";
|
|
12
12
|
import { useContextProvider as _ } from "@arcgis/lumina/context";
|
|
13
|
-
import { c as F, b as L, i as
|
|
14
|
-
import { f as
|
|
13
|
+
import { c as F, b as L, i as E } from "../../chunks/deployAppContexts.js";
|
|
14
|
+
import { f as $, b as M } from "../../chunks/cardsHelpers.js";
|
|
15
15
|
import "@esri/solution-common";
|
|
16
16
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
17
17
|
import "@arcgis/core/identity/OAuthInfo.js";
|
|
18
18
|
import "@arcgis/core/portal/Portal.js";
|
|
19
19
|
import "@arcgis/core/intl.js";
|
|
20
|
-
import { _ as
|
|
20
|
+
import { _ as P } from "../../chunks/solution-deploy-dialog.js";
|
|
21
21
|
import "../solutions-all-shell/customElement.js";
|
|
22
22
|
import "../solutions-deployed-shell/customElement.js";
|
|
23
23
|
import "../solution-details-panel/customElement.js";
|
|
24
24
|
import "../solution-deployed-card-panel/customElement.js";
|
|
25
25
|
import "../solution-builder-assistant/customElement.js";
|
|
26
|
-
const
|
|
26
|
+
const B = S`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--panel-edge-adjustment: 2vw;--assistant-panel-min-width: 420px;--assistant-panel-width: max(var(--assistant-panel-min-width), calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment) - 15px))}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-right:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel{margin-left:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));margin-right:0;width:auto;max-width:1440px}.builder-panel{position:fixed;top:65px;left:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));right:var(--assistant-panel-width);bottom:0;z-index:400;display:flex;flex-direction:column;transition:transform .3s cubic-bezier(.4,0,.2,1);transform:translate(0);pointer-events:auto}.builder-panel.display-none{display:flex!important;transform:translate(100%);pointer-events:none}.builder-panel.display-none:has(~.assistant-panel.display-none){display:none!important;transition:none}.assistant-panel{position:fixed;top:65px;right:0;bottom:0;width:var(--assistant-panel-width);min-width:var(--assistant-panel-min-width);z-index:400;display:flex;flex-direction:column}@media(max-width:800px){.builder-panel{display:none!important}.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-right:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);right:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}`, k = {
|
|
27
27
|
solution: {
|
|
28
28
|
title: "Bus Stop ADA Compliance Inspections",
|
|
29
29
|
description: "Bus Stop ADA Compliance Inspections can be used to perform routine inspections of bus stops for ADA compliance and monitor inspection progress.",
|
|
@@ -551,38 +551,41 @@ const M = w`.back-color-override{background-color:var(--calcite-color-surface-3)
|
|
|
551
551
|
]
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
|
-
class R extends
|
|
554
|
+
class R extends w {
|
|
555
555
|
constructor() {
|
|
556
|
-
super(), this.initTitleOrId = "", this.sortType = "relevance", this.useLocalAppConfig = !1, this.loadExampleBuilderData = !1, this.authentication = void 0, this._isLoaded = !1, this.isMobile = !1, this._isAssistantOpen = !1, this._builderVisible = !1, this._hasActiveBuilderDesign = !1, this._showFabTooltip = !0, this._activeTab = "all-solutions", this._showDeployedCardFetchFailed = !1, this._globalAlerts = [], this._translations = T({ name: "solutions-deploy-app", blocking: !0 }), this._agoTerms = `${D}`, this._allCards = [], this._allShell =
|
|
556
|
+
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._activeTab = "all-solutions", 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: L }), this._isMobileContextProvider = _({ context: E }), this._handleWindowResize = () => {
|
|
557
|
+
const e = window.innerWidth <= 800;
|
|
558
|
+
this._isViewportMobile !== e && (this._isViewportMobile = e, e && (this._isAssistantOpen = !1, this._builderVisible = !1));
|
|
559
|
+
}, this._mainContentRef = o(), this._mySolutionsShell = o(), this._mySolutionsTab = o(), this._mySolutionsTabTitle = 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", () => {
|
|
557
560
|
this._openAssistant();
|
|
558
561
|
}), this.listenOn(window, "closeAssistant", () => {
|
|
559
562
|
this._isAssistantOpen = !1, this._builderVisible = !1;
|
|
560
563
|
}), this.listenOn(window, "toggleSolutionBuilder", () => {
|
|
561
564
|
this._builderVisible = !this._builderVisible;
|
|
562
|
-
}), this.listenOn(window, "discardBuilder", (
|
|
563
|
-
this._hasActiveBuilderDesign =
|
|
564
|
-
}), this.listenOn(window, "arcgis-solution-design-update", this._solutionBuilderSelected), this._builderDesignContextProvider.value = {
|
|
565
|
+
}), this.listenOn(window, "discardBuilder", (e) => {
|
|
566
|
+
this._hasActiveBuilderDesign = e.detail;
|
|
567
|
+
}), this.listenOn(window, "arcgis-solution-design-update", this._solutionBuilderSelected), window.addEventListener("resize", this._handleWindowResize), this._builderDesignContextProvider.value = {
|
|
565
568
|
design: this.loadExampleBuilderData ? k : null,
|
|
566
|
-
updateDesign: (
|
|
569
|
+
updateDesign: (e) => {
|
|
567
570
|
this._builderDesignContextProvider.value = {
|
|
568
571
|
...this._builderDesignContextProvider.value,
|
|
569
|
-
design:
|
|
572
|
+
design: e
|
|
570
573
|
};
|
|
571
574
|
},
|
|
572
575
|
isBuilderVisible: !1,
|
|
573
|
-
setBuilderVisible: (
|
|
574
|
-
this._builderVisible =
|
|
576
|
+
setBuilderVisible: (e) => {
|
|
577
|
+
this._builderVisible = e, this._builderDesignContextProvider.value = {
|
|
575
578
|
...this._builderDesignContextProvider.value,
|
|
576
|
-
isBuilderVisible:
|
|
579
|
+
isBuilderVisible: e
|
|
577
580
|
};
|
|
578
581
|
}
|
|
579
582
|
}, this.loadExampleBuilderData && (this._hasActiveBuilderDesign = !0);
|
|
580
583
|
}
|
|
581
584
|
static {
|
|
582
|
-
this.properties = { appConfig: 1, initTab: 1, initTitleOrId: 1, sortType: 1, useLocalAppConfig: 5, loadExampleBuilderData: 5, authentication: 16, _isLoaded: 16, isMobile: 16, _isAssistantOpen: 16, _builderVisible: 16, _hasActiveBuilderDesign: 16, _showFabTooltip: 16, _activeTab: 16, _showDeployedCardFetchFailed: 16, _globalAlerts: 16, _translations: 16 };
|
|
585
|
+
this.properties = { appConfig: 1, initTab: 1, initTitleOrId: 1, sortType: 1, useLocalAppConfig: 5, loadExampleBuilderData: 5, authentication: 16, _isLoaded: 16, isMobile: 16, _isViewportMobile: 16, _isAssistantOpen: 16, _builderVisible: 16, _hasActiveBuilderDesign: 16, _showFabTooltip: 16, _activeTab: 16, _showDeployedCardFetchFailed: 16, _globalAlerts: 16, _translations: 16 };
|
|
583
586
|
}
|
|
584
587
|
static {
|
|
585
|
-
this.styles =
|
|
588
|
+
this.styles = B;
|
|
586
589
|
}
|
|
587
590
|
get _telemetry() {
|
|
588
591
|
return this._configContextProvider.value?.telemetrySession;
|
|
@@ -590,16 +593,19 @@ class R extends C {
|
|
|
590
593
|
get _isDisconnectedEnvironment() {
|
|
591
594
|
return this._configContextProvider.value?.isEnterprise === !0 && this._configContextProvider.value?.authentication?.CanSearchArcGISOnline === !1;
|
|
592
595
|
}
|
|
596
|
+
get _readOnlyNotice() {
|
|
597
|
+
return !!this._configContextProvider.value?.isEnterprise ? this._translations.writableEnterprise || "" : (this._translations.writableOnline || "").replace("{{url}}", "https://status.arcgis.com/");
|
|
598
|
+
}
|
|
593
599
|
_openAssistant() {
|
|
594
600
|
this._telemetry?.logEvent({
|
|
595
601
|
category: c.ASSISTANT,
|
|
596
602
|
action: "Open"
|
|
597
603
|
}), this._isAssistantOpen = !0;
|
|
598
604
|
}
|
|
599
|
-
async selectTab(
|
|
605
|
+
async selectTab(e, t) {
|
|
600
606
|
if (this._isLoaded || this._forceInit) {
|
|
601
|
-
const i = this._getDefaultSearchOptions(
|
|
602
|
-
switch (this._searchSortToolbar && (this._searchSortToolbar.scope =
|
|
607
|
+
const i = this._getDefaultSearchOptions(t);
|
|
608
|
+
switch (this._searchSortToolbar && (this._searchSortToolbar.scope = e.tabType), e.tabType) {
|
|
603
609
|
case "all-solutions":
|
|
604
610
|
this._allTab.value.selected = !0, this._allTabTitle.value.selected = !0, i && await this._allShell.value?.searchSolutions(i);
|
|
605
611
|
break;
|
|
@@ -608,41 +614,41 @@ class R extends C {
|
|
|
608
614
|
break;
|
|
609
615
|
case "deployed-card":
|
|
610
616
|
if (this.authentication?.IsSignedIn) {
|
|
611
|
-
if (this._forceInit = !0, this._isLoaded = !1, this._cardFetcherDeployed && await this._getDeployedSolution(
|
|
617
|
+
if (this._forceInit = !0, this._isLoaded = !1, this._cardFetcherDeployed && await this._getDeployedSolution(e.tabTitleOrId), this._deployedSolutions?.cards?.length > 0) {
|
|
612
618
|
let s;
|
|
613
|
-
this._deployedSolutions.cards.some((
|
|
619
|
+
this._deployedSolutions.cards.some((l) => l.id === e.tabTitleOrId ? (s = l, this.deployedCardSelected.emit({ card: s }), !0) : !1), this._isLoaded = !0, this._forceInit = !1;
|
|
614
620
|
} else
|
|
615
|
-
return this._isLoaded = !0, this._forceInit = !1, this.selectTab({ tabTitleOrId: "", tabType: "deployments" },
|
|
621
|
+
return this._isLoaded = !0, this._forceInit = !1, this.selectTab({ tabTitleOrId: "", tabType: "deployments" }, t);
|
|
616
622
|
break;
|
|
617
623
|
} else
|
|
618
624
|
await this.authentication?.signIn();
|
|
619
625
|
case "details":
|
|
620
626
|
if (this._allCards) {
|
|
621
|
-
let s =
|
|
622
|
-
s = s ||
|
|
627
|
+
let s = $(this._allCards, e.tabTitleOrId);
|
|
628
|
+
s = s || M(this._allCards, e.tabTitleOrId), s ? (this._detailsTab.value.selected = !0, this._detailsTabTitle.value.selected = !0, this.detailsCardSelected.emit(s)) : (e.tabType = "all-solutions", this._allTab.value.selected = !0, this._allTabTitle.value.selected = !0);
|
|
623
629
|
}
|
|
624
630
|
break;
|
|
625
631
|
case "deployments":
|
|
626
632
|
this._mySolutionsTab.value.selected = !0, this._mySolutionsTabTitle.value.selected = !0, this._searchSortToolbar && i?.filter && this._searchSortToolbar.changeOwnerFilter(i.filter !== "Organization"), i && await this._mySolutionsShell.value?.searchSolutions(i);
|
|
627
633
|
break;
|
|
628
634
|
}
|
|
629
|
-
return this._builderVisible = !1, this._setActiveTab(new CustomEvent("setActiveTab", { detail:
|
|
635
|
+
return this._builderVisible = !1, this._setActiveTab(new CustomEvent("setActiveTab", { detail: e })), this._blurTabs(), this._showDeployedCardFetchFailed && (this.deployedCardFetchFailed.emit({ message: this._deployCardFetchFailedMessage, title: this._translations.failedToOpen }), this._showDeployedCardFetchFailed = !1), !0;
|
|
630
636
|
} else
|
|
631
|
-
return this._initTab =
|
|
637
|
+
return this._initTab = e, this._initFilters = t, !1;
|
|
632
638
|
}
|
|
633
|
-
updated(
|
|
634
|
-
this._fixTabpanelFocus(),
|
|
635
|
-
for (const i of
|
|
636
|
-
const
|
|
637
|
-
this.isMobile !==
|
|
639
|
+
updated(e) {
|
|
640
|
+
this._fixTabpanelFocus(), e.has("_isAssistantOpen") && this._setScrollbarGutters(this._isAssistantOpen ? "stable" : "stable both-edges"), !this._resizeObserver && this._mainContentRef.value && (this._resizeObserver = new ResizeObserver((t) => {
|
|
641
|
+
for (const i of t) {
|
|
642
|
+
const s = i.contentRect.width <= 800;
|
|
643
|
+
this.isMobile !== s && (this.isMobile = s, this._isMobileContextProvider.setValue(s));
|
|
638
644
|
}
|
|
639
645
|
}), this._resizeObserver.observe(this._mainContentRef.value));
|
|
640
646
|
}
|
|
641
647
|
_fixTabpanelFocus() {
|
|
642
648
|
if (!this._tabpanelsFixed && this._allTab.value) {
|
|
643
|
-
const
|
|
644
|
-
Promise.all(
|
|
645
|
-
const i =
|
|
649
|
+
const e = [this._allTab, this._mySolutionsTab, this._resourcesTab, this._detailsTab, this._deployedCardTab];
|
|
650
|
+
Promise.all(e.map(async (t) => {
|
|
651
|
+
const i = t.value;
|
|
646
652
|
if (i && (await i.componentOnReady?.(), i.shadowRoot)) {
|
|
647
653
|
const s = i.shadowRoot.querySelector('[role="tabpanel"]');
|
|
648
654
|
s && (s.tabIndex = -1);
|
|
@@ -657,15 +663,15 @@ class R extends C {
|
|
|
657
663
|
_setupTabpanelObserver() {
|
|
658
664
|
if (this._tabpanelObserver)
|
|
659
665
|
return;
|
|
660
|
-
this._tabpanelObserver = new MutationObserver((
|
|
661
|
-
|
|
666
|
+
this._tabpanelObserver = new MutationObserver((t) => {
|
|
667
|
+
t.forEach((i) => {
|
|
662
668
|
if (i.type === "attributes" && i.attributeName === "tabindex") {
|
|
663
669
|
const s = i.target;
|
|
664
670
|
s.getAttribute("role") === "tabpanel" && s.tabIndex === 0 && (s.tabIndex = -1);
|
|
665
671
|
}
|
|
666
672
|
});
|
|
667
|
-
}), [this._allTab, this._mySolutionsTab, this._resourcesTab, this._detailsTab, this._deployedCardTab].forEach((
|
|
668
|
-
const i =
|
|
673
|
+
}), [this._allTab, this._mySolutionsTab, this._resourcesTab, this._detailsTab, this._deployedCardTab].forEach((t) => {
|
|
674
|
+
const i = t.value;
|
|
669
675
|
if (i?.shadowRoot) {
|
|
670
676
|
const s = i.shadowRoot.querySelector('[role="tabpanel"]');
|
|
671
677
|
s && this._tabpanelObserver.observe(s, { attributes: !0, attributeFilter: ["tabindex"] });
|
|
@@ -673,31 +679,31 @@ class R extends C {
|
|
|
673
679
|
});
|
|
674
680
|
}
|
|
675
681
|
async load() {
|
|
676
|
-
this.useLocalAppConfig && (this.appConfig =
|
|
682
|
+
this.useLocalAppConfig && (this.appConfig = P);
|
|
677
683
|
}
|
|
678
684
|
render() {
|
|
679
|
-
const
|
|
680
|
-
return h`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${
|
|
685
|
+
const e = this._isLoaded ? "display-none" : "", t = this._isLoaded ? "" : "display-none";
|
|
686
|
+
return h`<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() && h`<div class="border"></div>` || ""}<solutions-searchsort-toolbar ${a(async (i) => {
|
|
681
687
|
i && (await this._deployAppNav.value?.componentOnReady(), this._searchSortToolbar = i);
|
|
682
|
-
})}></solutions-searchsort-toolbar><calcite-loader class=${b(
|
|
688
|
+
})}></solutions-searchsort-toolbar><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 .assistantOpen=${this._isAssistantOpen} class="height-100"></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 && h`<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=${() => {
|
|
683
689
|
this._openAssistant(), this._showFabTooltip = !1;
|
|
684
|
-
}} scale=l></calcite-fab><calcite-tooltip class=${b(this._isAssistantOpen ? "display-none" : "")} .open=${this._showFabTooltip && !this._isAssistantOpen} placement=leading reference-element=assistant-fab-button><span>${this._translations.assistantFabTooltip}</span></calcite-tooltip>` || ""}</calcite-shell>`;
|
|
690
|
+
}} scale=l></calcite-fab><calcite-tooltip class=${b(this._isAssistantOpen || this._isViewportMobile ? "display-none" : "")} .open=${this._showFabTooltip && !this._isAssistantOpen && !this._isViewportMobile} placement=leading reference-element=assistant-fab-button><span>${this._translations.assistantFabTooltip}</span></calcite-tooltip>` || ""}</calcite-shell>`;
|
|
685
691
|
}
|
|
686
692
|
loaded() {
|
|
687
693
|
this._setScrollbarGutters();
|
|
688
694
|
}
|
|
689
695
|
disconnectedCallback() {
|
|
690
|
-
super.disconnectedCallback(), this._resizeObserver?.disconnect(), this._tabpanelObserver?.disconnect();
|
|
696
|
+
super.disconnectedCallback(), window.removeEventListener("resize", this._handleWindowResize), this._resizeObserver?.disconnect(), this._tabpanelObserver?.disconnect();
|
|
691
697
|
}
|
|
692
698
|
_renderGlobalAlerts() {
|
|
693
|
-
return v(this._globalAlerts, (
|
|
699
|
+
return v(this._globalAlerts, (e) => e.id, (e) => h`<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 && h`<div slot=title>${e.title}</div>` || ""}<div slot=message>${e.message}</div></calcite-alert>`);
|
|
694
700
|
}
|
|
695
|
-
async _handleAuthInit(
|
|
696
|
-
const
|
|
697
|
-
|
|
701
|
+
async _handleAuthInit(e) {
|
|
702
|
+
const t = e.detail;
|
|
703
|
+
t.telemetrySession || (t.telemetrySession = m.getDisabledSession()), this._configContextProvider.setValue(t), t.authentication && (this.authentication = t.authentication), this._cardFetcherDeployed = new y(t.locale, t.orgUrl, t.portalURL), this._cardsFetcher = new y(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)));
|
|
698
704
|
}
|
|
699
|
-
_setActiveTab(
|
|
700
|
-
const i =
|
|
705
|
+
_setActiveTab(e) {
|
|
706
|
+
const i = e.detail.tabType, s = this._activeTab !== i;
|
|
701
707
|
switch (this._activeTab = i, s && this._logTabViewTelemetry(i), i) {
|
|
702
708
|
case "all-solutions":
|
|
703
709
|
this._allTabTitle.value?.click();
|
|
@@ -717,9 +723,9 @@ class R extends C {
|
|
|
717
723
|
}
|
|
718
724
|
this._builderVisible = !1, i !== "details" && i !== "deployed-card" && (this._deployAppNav.value.activateMenuItem(i), this.deployAppTabSelected.emit(i), this._emitMetaTagStrings(i));
|
|
719
725
|
}
|
|
720
|
-
_logTabViewTelemetry(
|
|
726
|
+
_logTabViewTelemetry(e, t) {
|
|
721
727
|
let i;
|
|
722
|
-
switch (
|
|
728
|
+
switch (e) {
|
|
723
729
|
case "all-solutions":
|
|
724
730
|
i = c.ALL_SOLUTIONS;
|
|
725
731
|
break;
|
|
@@ -736,23 +742,23 @@ class R extends C {
|
|
|
736
742
|
i = c.DEPLOYMENTS;
|
|
737
743
|
break;
|
|
738
744
|
}
|
|
739
|
-
if (!((
|
|
745
|
+
if (!((e === "details" || e === "deployed-card") && !t) && i) {
|
|
740
746
|
const s = [];
|
|
741
|
-
if ((
|
|
742
|
-
const n =
|
|
747
|
+
if ((e === "details" || e === "deployed-card") && t) {
|
|
748
|
+
const n = t;
|
|
743
749
|
s.push(n.title || ""), s.push(n.deployCommonId || ""), s.push(n.deployVersion || "");
|
|
744
750
|
}
|
|
745
|
-
const
|
|
751
|
+
const l = e === "deployed-card" ? "Open" : "View";
|
|
746
752
|
this._telemetry?.logEvent({
|
|
747
753
|
category: i,
|
|
748
|
-
action:
|
|
754
|
+
action: l,
|
|
749
755
|
dimensions: s.length > 0 ? s : void 0
|
|
750
756
|
});
|
|
751
757
|
}
|
|
752
758
|
}
|
|
753
|
-
_emitMetaTagStrings(
|
|
759
|
+
_emitMetaTagStrings(e, t) {
|
|
754
760
|
let i = "", s = "";
|
|
755
|
-
switch (
|
|
761
|
+
switch (e) {
|
|
756
762
|
case "all-solutions":
|
|
757
763
|
i = this._translations.metaAllSolutionsTitle, s = this._translations.metaAllSolutionsDescription;
|
|
758
764
|
break;
|
|
@@ -764,62 +770,62 @@ class R extends C {
|
|
|
764
770
|
i = this._translations.metaResourcesTitle, s = this._translations.metaResourcesDescription;
|
|
765
771
|
break;
|
|
766
772
|
case "details":
|
|
767
|
-
|
|
773
|
+
t && (i = this._translations.metaDetailsTitle.replace("{title}", t.title), s = t.snippet);
|
|
768
774
|
break;
|
|
769
775
|
}
|
|
770
776
|
this.metaTagStringsReady.emit({
|
|
771
|
-
pageType:
|
|
777
|
+
pageType: e,
|
|
772
778
|
title: i,
|
|
773
779
|
description: s,
|
|
774
|
-
detailTemplate:
|
|
780
|
+
detailTemplate: t
|
|
775
781
|
});
|
|
776
782
|
}
|
|
777
783
|
_handleCalciteTabChanged() {
|
|
778
784
|
this.tabChanged.emit(this._activeTab);
|
|
779
785
|
}
|
|
780
|
-
_detailsCardSelected(
|
|
781
|
-
this._activeTab = "details", this._detailsTabTitle.value.selected = !0, this._detailsTab.value.selected = !0, this._deployAppNav.value.clearMenuItems(),
|
|
786
|
+
_detailsCardSelected(e) {
|
|
787
|
+
this._activeTab = "details", this._detailsTabTitle.value.selected = !0, this._detailsTab.value.selected = !0, this._deployAppNav.value.clearMenuItems(), e?.detail && (this._selectedDetailsCard = e.detail), this._logTabViewTelemetry("details", this._selectedDetailsCard), this._emitMetaTagStrings("details", this._selectedDetailsCard);
|
|
782
788
|
}
|
|
783
|
-
_deployedCardSelected(
|
|
784
|
-
this._activeTab = "deployed-card", this._deployedCardTabTitle.value.selected = !0, this._deployedCardTab.value.selected = !0, this._deployAppNav.value.clearMenuItems(),
|
|
789
|
+
_deployedCardSelected(e) {
|
|
790
|
+
this._activeTab = "deployed-card", this._deployedCardTabTitle.value.selected = !0, this._deployedCardTab.value.selected = !0, this._deployAppNav.value.clearMenuItems(), e?.detail?.card && (this._selectedDeployedCard = e.detail.card), this._logTabViewTelemetry("deployed-card", this._selectedDeployedCard), this._emitMetaTagStrings("deployed-card");
|
|
785
791
|
}
|
|
786
|
-
_solutionBuilderSelected(
|
|
787
|
-
|
|
788
|
-
design:
|
|
789
|
-
updateDesign: (
|
|
792
|
+
_solutionBuilderSelected(e) {
|
|
793
|
+
e?.detail && (this._builderVisible = !0, this._hasActiveBuilderDesign = !0, this._builderDesignContextProvider.value = {
|
|
794
|
+
design: e.detail,
|
|
795
|
+
updateDesign: (t) => {
|
|
790
796
|
this._builderDesignContextProvider.value = {
|
|
791
797
|
...this._builderDesignContextProvider.value,
|
|
792
|
-
design:
|
|
798
|
+
design: t
|
|
793
799
|
};
|
|
794
800
|
},
|
|
795
801
|
isBuilderVisible: !0,
|
|
796
|
-
setBuilderVisible: (
|
|
797
|
-
this._builderVisible =
|
|
802
|
+
setBuilderVisible: (t) => {
|
|
803
|
+
this._builderVisible = t, this._builderDesignContextProvider.value = {
|
|
798
804
|
...this._builderDesignContextProvider.value,
|
|
799
|
-
isBuilderVisible:
|
|
805
|
+
isBuilderVisible: t
|
|
800
806
|
};
|
|
801
807
|
}
|
|
802
808
|
});
|
|
803
809
|
}
|
|
804
|
-
_handleDeployedCardDisplay(
|
|
805
|
-
const { card:
|
|
806
|
-
this.deployedCardSelected.emit({ card:
|
|
810
|
+
_handleDeployedCardDisplay(e) {
|
|
811
|
+
const { card: t, cardRef: i } = e.detail;
|
|
812
|
+
this.deployedCardSelected.emit({ card: t, cardRef: i });
|
|
807
813
|
}
|
|
808
|
-
_handleShowGlobalAlert(
|
|
809
|
-
const
|
|
810
|
-
this._globalAlerts = [...this._globalAlerts, { ...
|
|
814
|
+
_handleShowGlobalAlert(e) {
|
|
815
|
+
const t = e.detail, i = t.id || `alert-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
816
|
+
this._globalAlerts = [...this._globalAlerts, { ...t, id: i }];
|
|
811
817
|
}
|
|
812
|
-
_removeGlobalAlert(
|
|
813
|
-
this._globalAlerts = this._globalAlerts.filter((
|
|
818
|
+
_removeGlobalAlert(e) {
|
|
819
|
+
this._globalAlerts = this._globalAlerts.filter((t) => t.id !== e);
|
|
814
820
|
}
|
|
815
821
|
async _initializeTelemetry() {
|
|
816
|
-
const
|
|
817
|
-
if (!this.authentication || !
|
|
822
|
+
const e = this._configContextProvider.value;
|
|
823
|
+
if (!this.authentication || !e)
|
|
818
824
|
return;
|
|
819
|
-
const
|
|
820
|
-
this._configContextProvider.value.telemetrySession =
|
|
825
|
+
const t = await this._telemetryManager.initializeTelemetry(this.authentication, e);
|
|
826
|
+
this._configContextProvider.value.telemetrySession = t;
|
|
821
827
|
}
|
|
822
|
-
async _getSolutions(
|
|
828
|
+
async _getSolutions(e, t) {
|
|
823
829
|
if (this._isDisconnectedEnvironment)
|
|
824
830
|
return [];
|
|
825
831
|
this._abortController ? (this._abortController.abort(), this._abortController = new AbortController()) : this._abortController = new AbortController();
|
|
@@ -834,22 +840,22 @@ class R extends C {
|
|
|
834
840
|
delay: this._delay,
|
|
835
841
|
getSuggested: this._getSuggested,
|
|
836
842
|
num: 100
|
|
837
|
-
},
|
|
843
|
+
}, e, t, this._configContextProvider.value.userSession, this._configContextProvider.value.isEnterprise, this._abortController.signal, {
|
|
838
844
|
num: 1e3
|
|
839
845
|
});
|
|
840
846
|
return this._abortController = void 0, this._allCards.length === 0 && i?.cards && (this._allCards = i?.cards), this._allCards;
|
|
841
847
|
}
|
|
842
|
-
async _getDeployedSolution(
|
|
843
|
-
const
|
|
844
|
-
if (
|
|
848
|
+
async _getDeployedSolution(e) {
|
|
849
|
+
const t = this._configContextProvider.value.authentication, i = this._configContextProvider.value.userSession;
|
|
850
|
+
if (t && i && t.IsSignedIn) {
|
|
845
851
|
this._abortControllerDeployed ? (this._abortControllerDeployed.abort(), this._abortControllerDeployed = new AbortController()) : this._abortControllerDeployed = new AbortController();
|
|
846
|
-
const s = A(
|
|
852
|
+
const s = A(t);
|
|
847
853
|
try {
|
|
848
|
-
const
|
|
849
|
-
|
|
850
|
-
} catch (
|
|
851
|
-
const n =
|
|
852
|
-
n.indexOf("CONT_0001") > -1 || n.indexOf("Item does not exist or is inaccessible.") > -1 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchWrongId.replace("{{ITEMID}}",
|
|
854
|
+
const l = await I(t, i, this._cardsFetcher, this._cardFetcherDeployed, x, "created", "desc", !1, [], [], this._abortControllerDeployed.signal, s ? "My organization's solutions" : "My solutions", e);
|
|
855
|
+
l.cards.length === 0 || l.cards[0].typeKeywords.indexOf("Deployed") < 0 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchNotSolution.replace("{{ITEMID}}", e), this._showDeployedCardFetchFailed = !0) : this._deployedSolutions = l;
|
|
856
|
+
} catch (l) {
|
|
857
|
+
const n = l.message;
|
|
858
|
+
n.indexOf("CONT_0001") > -1 || n.indexOf("Item does not exist or is inaccessible.") > -1 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchWrongId.replace("{{ITEMID}}", e), this._showDeployedCardFetchFailed = !0) : n.indexOf("GWM_0003") > -1 || n.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(l);
|
|
853
859
|
}
|
|
854
860
|
}
|
|
855
861
|
}
|
|
@@ -859,35 +865,35 @@ class R extends C {
|
|
|
859
865
|
_isSearchToolbarShowing() {
|
|
860
866
|
return this._activeTab === "all-solutions" || this._activeTab === "deployments" && this.authentication?.IsSignedIn === !0;
|
|
861
867
|
}
|
|
862
|
-
_getDefaultSearchOptions(
|
|
863
|
-
let
|
|
864
|
-
if (
|
|
865
|
-
const i =
|
|
866
|
-
let r =
|
|
867
|
-
const p =
|
|
868
|
-
r === "suggested" && !this.authentication?.IsSignedIn && (r = this.sortType),
|
|
868
|
+
_getDefaultSearchOptions(e) {
|
|
869
|
+
let t;
|
|
870
|
+
if (e) {
|
|
871
|
+
const i = e.domain, s = e.industry === "AEC" ? O.AEC : e.industry, l = e.offerType, n = e.searchTerm, g = "";
|
|
872
|
+
let r = e.sortField;
|
|
873
|
+
const p = e.owner, u = e.filter;
|
|
874
|
+
r === "suggested" && !this.authentication?.IsSignedIn && (r = this.sortType), t = i || s ? {
|
|
869
875
|
type: i ? "domain" : s ? "industry" : ""
|
|
870
|
-
} : void 0, i && (
|
|
876
|
+
} : void 0, i && (t = t ? { ...t, domain: i } : { domain: i }), s && (t = t ? { ...t, industry: s } : { industry: s }), n && (t = t ? { ...t, searchTerm: n } : { searchTerm: n }), t && (t = { ...t, displayValue: g }), r && (t = t ? { ...t, sortType: r } : { sortType: r }), l && (r = l.toLowerCase(), t = t ? { ...t, sortType: r } : { sortType: r }), p && (t = t ? { ...t, owner: p } : { owner: p }), u && (t = t ? { ...t, filter: u } : { filter: u });
|
|
871
877
|
}
|
|
872
|
-
return
|
|
878
|
+
return t;
|
|
873
879
|
}
|
|
874
|
-
_setScrollbarGutters(
|
|
880
|
+
_setScrollbarGutters(e = "stable both-edges") {
|
|
875
881
|
[this._allTab, this._mySolutionsTab, this._resourcesTab, this._detailsTab, this._deployedCardTab].forEach((i) => {
|
|
876
882
|
const s = i.value?.shadowRoot?.firstElementChild;
|
|
877
|
-
s?.style && (s.style.scrollbarGutter =
|
|
883
|
+
s?.style && (s.style.scrollbarGutter = e);
|
|
878
884
|
});
|
|
879
885
|
}
|
|
880
886
|
_setRefreshInterval() {
|
|
881
|
-
const { userSession:
|
|
882
|
-
if (
|
|
883
|
-
const i = Date.now(),
|
|
887
|
+
const { userSession: e, authentication: t } = this._configContextProvider.value;
|
|
888
|
+
if (e && e.tokenDuration && t?.IsSignedIn) {
|
|
889
|
+
const i = Date.now(), l = (t.Credential?.expires - i) * 0.95;
|
|
884
890
|
setInterval(async () => {
|
|
885
|
-
if (
|
|
886
|
-
await
|
|
887
|
-
const n = new Date(
|
|
888
|
-
|
|
891
|
+
if (t.Credential && t.Credential.expires) {
|
|
892
|
+
await t.Credential?.refreshToken();
|
|
893
|
+
const n = new Date(t.Credential.expires);
|
|
894
|
+
e.updateToken(t.Credential.token, n), this.sessionRefreshed.emit(e.token);
|
|
889
895
|
}
|
|
890
|
-
},
|
|
896
|
+
}, l);
|
|
891
897
|
}
|
|
892
898
|
}
|
|
893
899
|
}
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
import "../../chunks/runtime.js";
|
|
3
3
|
import "../../chunks/useT9n.js";
|
|
4
4
|
import "@arcgis/lumina";
|
|
5
|
-
import { S as
|
|
5
|
+
import { S as f } from "../../chunks/solutions-deploy-app-nav.js";
|
|
6
6
|
import "../../chunks/Auth.js";
|
|
7
7
|
import "../../chunks/interfaces.js";
|
|
8
8
|
import "lit-html/directives/ref.js";
|
|
9
9
|
import "@esri/solution-common";
|
|
10
10
|
import "lit";
|
|
11
|
-
import "../../chunks/common.js";
|
|
12
11
|
import "../../chunks/helpers.js";
|
|
13
12
|
export {
|
|
14
|
-
|
|
13
|
+
f as SolutionsDeployAppNav
|
|
15
14
|
};
|