@esri/solutions-components 1.2.0-next.193 → 1.2.0-next.194
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/{DMQY2YSV.js → 2WYTNG6M.js} +1 -1
- package/dist/cdn/{2FB7PLHA.js → 4TAK7UR4.js} +1 -1
- package/dist/cdn/{6AVBPFXC.js → 5WC5OSXJ.js} +1 -1
- package/dist/cdn/5WTBNQ5N.js +2 -0
- package/dist/cdn/5ZVLMXAB.js +2 -0
- package/dist/cdn/6ZIVLBUU.js +2 -0
- package/dist/cdn/{6MYF74WP.js → 74BUVVWT.js} +1 -1
- package/dist/cdn/{XCOHDOZB.js → AKULVI2N.js} +1 -1
- package/dist/cdn/{HTILYSMI.js → AZNV26DL.js} +1 -1
- package/dist/cdn/B5EWNHD4.js +2 -0
- package/dist/cdn/{DZEATYCC.js → CD2CL3AH.js} +1 -1
- package/dist/cdn/CNABSL7D.js +2 -0
- package/dist/cdn/{LOQNTCQ5.js → CRRPFZO6.js} +1 -1
- package/dist/cdn/{GNHKPEWB.js → EOOU7UYE.js} +1 -1
- package/dist/cdn/{2LCLF5CH.js → EZMUUBST.js} +1 -1
- package/dist/cdn/FKU4KCVC.js +21 -0
- package/dist/cdn/FMCJ3OZC.js +2 -0
- package/dist/cdn/{XGT7USWV.js → GBWRGXNI.js} +1 -1
- package/dist/cdn/{U6K37QQX.js → GCH7DWPZ.js} +1 -1
- package/dist/cdn/GIBGZ6ET.js +2 -0
- package/dist/cdn/{K2TGYZ23.js → HJGZC7SA.js} +1 -1
- package/dist/cdn/{OSY6VKW4.js → IYQFLCCH.js} +1 -1
- package/dist/cdn/{5DYEGOFQ.js → JKUFLPMD.js} +1 -1
- package/dist/cdn/KSPUCMA2.js +2 -0
- package/dist/cdn/{AIU3MGAJ.js → KSZHONBS.js} +1 -1
- package/dist/cdn/MHHHY4YI.js +2 -0
- package/dist/cdn/{3IXJ77QG.js → MMKAKDW4.js} +1 -1
- package/dist/cdn/{QCI2IO23.js → MVD6APBB.js} +1 -1
- package/dist/cdn/{YBCBDSHJ.js → NAZCWXLO.js} +1 -1
- package/dist/cdn/{GSZZB2X6.js → NFQ6NA4T.js} +1 -1
- package/dist/cdn/OTTY4ZPN.js +2 -0
- package/dist/cdn/{FCTLSKQC.js → OXSNUTDV.js} +1 -1
- package/dist/cdn/{5YSQ2CW2.js → T3TMKI4D.js} +1 -1
- package/dist/cdn/TLR2QJD4.js +2 -0
- package/dist/cdn/{4PJLBC3H.js → VARQORHC.js} +1 -1
- package/dist/cdn/VMMM42OC.js +2 -0
- package/dist/cdn/VQJQDCP2.js +2 -0
- package/dist/cdn/{BTHN6PO3.js → WDQPKKWX.js} +1 -1
- package/dist/cdn/WSKPG7AR.js +2 -0
- package/dist/cdn/{KMFPTAQU.js → XPPERC5Q.js} +1 -1
- package/dist/cdn/{ZLVZRRWC.js → YMKLF4L5.js} +1 -1
- package/dist/cdn/{YN2Q4YSJ.js → Z2ZGY3E3.js} +1 -1
- package/dist/cdn/{35BKTK23.js → ZLB7IIDL.js} +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/Auth.js +2 -1
- package/dist/chunks/interfaces.js +167 -175
- package/dist/chunks/solution-deploy-dialog.js +5 -5
- package/dist/components/map-draw-tools/customElement.js +7 -7
- package/dist/components/solution-configure-titles/customElement.js +37 -37
- package/dist/components/solution-delete-dialog/customElement.js +10 -10
- package/dist/components/solution-deployed-card-panel/customElement.js +19 -19
- package/dist/components/solution-deploying-dialog/customElement.js +17 -17
- package/dist/components/solution-details-panel/customElement.js +5 -5
- package/dist/components/solution-user-avatar/customElement.js +4 -4
- package/dist/components/solutions-all-shell/customElement.js +2 -2
- package/dist/components/solutions-deployed-panel/customElement.js +69 -33
- package/dist/components/solutions-deployed-shell/customElement.js +59 -23
- package/dist/components/solutions-resources-section/customElement.js +9 -9
- package/dist/components/solutions-resources-shell/customElement.js +5 -5
- 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 +7 -7
- package/package.json +1 -1
- package/dist/cdn/2YQZQLV7.js +0 -2
- package/dist/cdn/AXJNTXWG.js +0 -2
- package/dist/cdn/BFRGKEST.js +0 -2
- package/dist/cdn/CA5SSBGK.js +0 -2
- package/dist/cdn/FKEZD3IR.js +0 -21
- package/dist/cdn/HRR3S4YS.js +0 -2
- package/dist/cdn/LT22II6J.js +0 -2
- package/dist/cdn/MGS4TCQO.js +0 -2
- package/dist/cdn/PKER46Z6.js +0 -2
- package/dist/cdn/V562ZRP5.js +0 -2
- package/dist/cdn/WT64QMSP.js +0 -2
- package/dist/cdn/XVCTCPQP.js +0 -2
- package/dist/cdn/Z7S7SUZV.js +0 -2
- package/dist/cdn/ZBVU5UTY.js +0 -2
- package/dist/cdn/ZEIBUDIU.js +0 -2
|
@@ -4,8 +4,8 @@ import { LitElement as n } from "@arcgis/lumina";
|
|
|
4
4
|
import { useContextConsumer as o } from "@arcgis/lumina/context";
|
|
5
5
|
import { A as l, H as s } from "../../chunks/interfaces.js";
|
|
6
6
|
import { restGetUser as r } from "@esri/solution-common";
|
|
7
|
-
import { css as u, html as
|
|
8
|
-
const
|
|
7
|
+
import { css as u, html as c } from "lit";
|
|
8
|
+
const m = u`*[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))}`;
|
|
9
9
|
class f extends n {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(), this.lookupProfile = !1, this.username = "", this._configContextConsumer = o({
|
|
@@ -19,7 +19,7 @@ class f extends n {
|
|
|
19
19
|
this.properties = { fullname: 1, lookupProfile: 5, thumbnailUrl: 1, username: 1 };
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
this.styles =
|
|
22
|
+
this.styles = m;
|
|
23
23
|
}
|
|
24
24
|
loaded() {
|
|
25
25
|
this.lookupProfile && this._lookupOwnerProfile(this.username);
|
|
@@ -28,7 +28,7 @@ class f extends n {
|
|
|
28
28
|
t.has("username") && this.lookupProfile && this._lookupOwnerProfile(this.username);
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return
|
|
31
|
+
return c`<div class="avatar-container"><calcite-avatar scale=m .username=${this.username} .thumbnail=${this.thumbnailUrl ?? void 0} .fullName=${this.fullname ?? void 0}></calcite-avatar><div class="text-container"><span class="full-name" tabindex=0>${this.fullname ?? ""}</span><span class="username" tabindex=0>${this.username}</span></div></div>`;
|
|
32
32
|
}
|
|
33
33
|
async _lookupOwnerProfile(t) {
|
|
34
34
|
if (this.fullname = void 0, this.thumbnailUrl = "", this.lookupProfile && this._configContextConsumer.value) {
|
|
@@ -8,7 +8,7 @@ import { css as b, html as a } from "lit";
|
|
|
8
8
|
import { A as v, G as y, e as d, d as h, T as p } from "../../chunks/interfaces.js";
|
|
9
9
|
import { createRef as n, ref as s } from "lit/directives/ref.js";
|
|
10
10
|
import "../solutions-filter-panel/customElement.js";
|
|
11
|
-
const x = b`.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-2)}.panel-override{--calcite-panel-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;font-weight:var(--calcite-font-weight-medium)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@media(max-width:800px){.filter{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.chips-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--calcite-spacing-xs);flex:1;padding-block:var(--calcite-spacing-xs)}.header-content-wrapper{min-height:50px;flex-wrap:wrap;gap:var(--calcite-spacing-xs);padding-inline-start:var(--calcite-spacing-md)}.position-relative{position:relative}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}.padding-top-3{padding-top:3px}.chip-group{max-width:100%}.chip-group{display:flex;flex-wrap:wrap}.responsive-chip{max-width:100%}.responsive-chip .chip-text{display:inline-flex;align-items:center;line-height:1;max-width:100%}@media(max-width:800px){.responsive-chip{max-width:100%;min-width:0}.responsive-chip .chip-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}`;
|
|
11
|
+
const x = b`.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-2)}.panel-override{--calcite-panel-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;font-weight:var(--calcite-font-weight-medium)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@media(max-width:800px){.filter{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.chips-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--calcite-spacing-xs);flex:1;padding-block:var(--calcite-spacing-xs)}.header-content-wrapper{min-height:50px;flex-wrap:wrap;gap:var(--calcite-spacing-xs);padding-inline-start:var(--calcite-spacing-md)}.position-relative{position:relative}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}.padding-top-3{padding-top:3px}.chip-group{max-width:100%}.chip-group{display:flex;flex-wrap:wrap}.responsive-chip{max-width:100%}.responsive-chip .chip-text{display:inline-flex;align-items:center;line-height:1;max-width:100%}@media(max-width:800px){.responsive-chip{max-width:100%;min-width:0}.responsive-chip .chip-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.mobile-stack{flex-direction:column;align-items:flex-start;padding-top:var(--calcite-spacing-md)}`;
|
|
12
12
|
class w extends _ {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(), this.solutionsCount = 0, this._isLoading = !0, this._filterOpen = !0, this._filters = {
|
|
@@ -87,7 +87,7 @@ class w extends _ {
|
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
89
|
const e = this._isMobile ? "justify-content-end" : "", t = this._isLoading ? "display-none" : "";
|
|
90
|
-
return a`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile ? "" : this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1" ${s(this._mainPanelRef)}><div class=${o(this._isMobile ? `
|
|
90
|
+
return a`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile ? "" : this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1" ${s(this._mainPanelRef)}><div class=${o(this._isMobile ? `mobile-stack ${e}` : `display-flex align-items-center header-content-wrapper ${e}`)} slot=header-content><calcite-label class="label-override padding-top-3">${this._translations.numberOfSolutions.replace("{{count}}", this.solutionsCount.toString())}</calcite-label><div class="chips-container">${this._renderChips()}${this._filters.categories && this._filters.categories?.length > 0 && a`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${() => {
|
|
91
91
|
this._filters = {
|
|
92
92
|
...this._filters,
|
|
93
93
|
categories: []
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { ref as y } from "lit/directives/ref.js";
|
|
2
|
+
import { c as u } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as f, html as r, svg as y } from "lit";
|
|
5
4
|
import { u as g } from "../../chunks/useT9n.js";
|
|
6
5
|
import { LitElement as w, createEvent as l, nothing as C } from "@arcgis/lumina";
|
|
7
|
-
import { useContextConsumer as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
import { useContextConsumer as x } from "@arcgis/lumina/context";
|
|
7
|
+
import { createRef as T, ref as d } from "lit/directives/ref.js";
|
|
8
|
+
import { C as c, g as v } from "../../chunks/cardFetchingUtils.js";
|
|
9
|
+
import { B as h, A as b, T as n, M as S, c as D } from "../../chunks/interfaces.js";
|
|
10
|
+
const F = f`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-foreground-2)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.text-center{text-align:center}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}solution-deployed-card{width:calc(20% - .75rem)}@media(max-width:1280px){solution-deployed-card{width:calc(25% - .75rem)}}@media(max-width:1010px){solution-deployed-card{width:calc(33.333% - .75rem)}}@media(max-width:740px){solution-deployed-card{width:calc(50% - .75rem)}}@media(max-width:440px){solution-deployed-card{width:calc(100% - .75rem)}}.margin-top-half{margin-top:.5rem}`, m = 5;
|
|
11
|
+
class E extends w {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(), this.sortType = "created", this._cards = [], this._cardsFetching = !1, this._modifiedCheckTry = 0, this._newId = "", this._refs = {}, this._showDeleteCompleteAlert = !1, this._deletedSolutionName = "", this._translations = g({ name: "solutions-deployed-panel", blocking: !0 }), this._agoTerms = h, this._allCards = [], this._baseAgoTerms = h, this._categories = [], this.
|
|
14
|
-
context:
|
|
13
|
+
super(), this.sortType = "created", this._cards = [], this._cardsFetching = !1, this._modifiedCheckTry = 0, this._newId = "", this._refs = {}, this._showDeleteCompleteAlert = !1, this._deletedSolutionName = "", this._translations = g({ name: "solutions-deployed-panel", blocking: !0 }), this._agoTerms = h, this._allCards = [], this._baseAgoTerms = h, this._categories = [], this._mainPanelRef = T(), this._panelFixed = !1, this._configContextConsumer = x({
|
|
14
|
+
context: b,
|
|
15
15
|
subscribe: !0,
|
|
16
16
|
callback: async (e) => {
|
|
17
17
|
e && (this._initCardsFetchers(), await this._getDeployedSolutions());
|
|
18
18
|
}
|
|
19
19
|
}), this._delay = !1, this._owner = "My solutions", this._sortField = "created", this._sortOrder = "desc", this.deployedCardsFetched = l(), this.searchTermSet = l(), this.sortTypeSet = l(), this.listenOn(window, "solutionDeleted", (e) => {
|
|
20
|
-
this._modifiedCheckTry =
|
|
20
|
+
this._modifiedCheckTry = m, this.reload(e.detail.showAlert, e.detail.refreshSolutionsTimeout, e.detail.solutionTitle);
|
|
21
21
|
}), this.listenOn(window, "solutionConfigureDialogClose", (e) => {
|
|
22
22
|
e.detail && this.reload(!1, !1);
|
|
23
23
|
}), this.listenOn(window, "deployProgressEnd", (e) => {
|
|
24
|
-
this._modifiedCheckTry =
|
|
24
|
+
this._modifiedCheckTry = m, this._refreshAfterDeploy(e.detail);
|
|
25
25
|
}), this.listenOn(window, "sortTypeChanged", (e) => {
|
|
26
26
|
e.detail && e.detail.scope === "deployments" && (this.sortType = e.detail.sortType, this._telemetry?.logEvent({
|
|
27
27
|
category: n.DEPLOYMENTS,
|
|
@@ -40,18 +40,18 @@ class b extends w {
|
|
|
40
40
|
this.properties = { sortType: 1, _cards: 16, _cardsFetching: 16, _modifiedCheckTry: 16, _newId: 16, _refs: 16, _showDeleteCompleteAlert: 16, _deletedSolutionName: 16, _translations: 16 };
|
|
41
41
|
}
|
|
42
42
|
static {
|
|
43
|
-
this.styles =
|
|
43
|
+
this.styles = F;
|
|
44
44
|
}
|
|
45
45
|
get _telemetry() {
|
|
46
46
|
return this._configContextConsumer.value?.telemetrySession;
|
|
47
47
|
}
|
|
48
|
-
async reload(e = !0, t = !0,
|
|
49
|
-
this._initCardsFetchers(), e && (this._showDeleteCompleteAlert = !0, this._deletedSolutionName =
|
|
48
|
+
async reload(e = !0, t = !0, i) {
|
|
49
|
+
this._initCardsFetchers(), e && (this._showDeleteCompleteAlert = !0, this._deletedSolutionName = i || this._translations.solution), t ? setTimeout(() => {
|
|
50
50
|
(async () => {
|
|
51
51
|
try {
|
|
52
52
|
await this._getDeployedSolutions();
|
|
53
|
-
} catch (
|
|
54
|
-
console.error("Error getting deployed solutions:",
|
|
53
|
+
} catch (s) {
|
|
54
|
+
console.error("Error getting deployed solutions:", s);
|
|
55
55
|
}
|
|
56
56
|
})();
|
|
57
57
|
}, 500) : await this._getDeployedSolutions();
|
|
@@ -83,19 +83,55 @@ class b extends w {
|
|
|
83
83
|
scope: "deployments"
|
|
84
84
|
})));
|
|
85
85
|
}
|
|
86
|
+
updated() {
|
|
87
|
+
this._fixPanelContentWrapperFocus();
|
|
88
|
+
}
|
|
89
|
+
_fixPanelContentWrapperFocus() {
|
|
90
|
+
if (!this._panelFixed && this._mainPanelRef.value) {
|
|
91
|
+
const e = this._mainPanelRef.value;
|
|
92
|
+
e.componentOnReady?.().then(() => {
|
|
93
|
+
if (e.shadowRoot) {
|
|
94
|
+
const t = e.shadowRoot.querySelector(".content-wrapper");
|
|
95
|
+
t && (t.tabIndex = -1, this._panelFixed = !0, this._setupPanelObserver());
|
|
96
|
+
}
|
|
97
|
+
}).catch(() => {
|
|
98
|
+
this._panelFixed = !0;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
_setupPanelObserver() {
|
|
103
|
+
if (this._panelObserver)
|
|
104
|
+
return;
|
|
105
|
+
this._panelObserver = new MutationObserver((t) => {
|
|
106
|
+
t.forEach((i) => {
|
|
107
|
+
if (i.type === "attributes" && i.attributeName === "tabindex") {
|
|
108
|
+
const s = i.target;
|
|
109
|
+
s.classList.contains("content-wrapper") && s.tabIndex === 0 && (s.tabIndex = -1);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
const e = this._mainPanelRef.value;
|
|
114
|
+
if (e?.shadowRoot) {
|
|
115
|
+
const t = e.shadowRoot.querySelector(".content-wrapper");
|
|
116
|
+
t && this._panelObserver.observe(t, { attributes: !0, attributeFilter: ["tabindex"] });
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
disconnectedCallback() {
|
|
120
|
+
super.disconnectedCallback(), this._panelObserver?.disconnect();
|
|
121
|
+
}
|
|
86
122
|
render() {
|
|
87
|
-
return this._cardsFetching ?
|
|
123
|
+
return this._cardsFetching ? r`<calcite-loader .label=${this._translations.fetchingDeployedSolutions}></calcite-loader>` : this._cards.length ? r`<calcite-panel ${d(this._mainPanelRef)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group><calcite-alert auto-close auto-close-duration=fast icon=check-circle kind=success .label=${this._translations.deleteComplete.replace("{{solutionName}}", this._deletedSolutionName)} .open=${this._showDeleteCompleteAlert} @calciteAlertClose=${() => {
|
|
88
124
|
this._showDeleteCompleteAlert = !1;
|
|
89
|
-
}}><div slot=title>${this._translations.deleteComplete.replace("{{solutionName}}", this._deletedSolutionName)}</div></calcite-alert></calcite-panel>` :
|
|
125
|
+
}}><div slot=title>${this._translations.deleteComplete.replace("{{solutionName}}", this._deletedSolutionName)}</div></calcite-alert></calcite-panel>` : r`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${this._translations.noSolutionsInstruction}</div></div></div>`;
|
|
90
126
|
}
|
|
91
127
|
_initCardsFetchers() {
|
|
92
128
|
if (this._configContextConsumer.value) {
|
|
93
129
|
const e = this._configContextConsumer.value;
|
|
94
|
-
this._cardsFetcher = new
|
|
130
|
+
this._cardsFetcher = new c(e.locale, e.orgUrl, e.portalURL), this._cardsFetcherDeployed = new c(e.locale, e.orgUrl, e.portalURL);
|
|
95
131
|
}
|
|
96
132
|
}
|
|
97
133
|
_renderCards() {
|
|
98
|
-
return this._refs = {}, this._cards.map((e) =>
|
|
134
|
+
return this._refs = {}, this._cards.map((e) => r`<solution-deployed-card .card=${e} .deployedDate=${e.created} .description=${e.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${e.title} id=${e.id ?? C} .itemId=${e.id} .owner=${this._owner === "My solutions" ? "" : e.owner} .thumbnail=${e.thumbnailUrl} ${d(this._handleRefs)}></solution-deployed-card>`);
|
|
99
135
|
}
|
|
100
136
|
_handleRefs(e) {
|
|
101
137
|
e && (this._refs[e.id] = e);
|
|
@@ -105,7 +141,7 @@ class b extends w {
|
|
|
105
141
|
if (e.IsSignedIn) {
|
|
106
142
|
this._abortController ? (this._abortController.abort("redundant request"), this._abortController = new AbortController()) : this._abortController = new AbortController(), this._cardsFetching = !0;
|
|
107
143
|
try {
|
|
108
|
-
const t = await
|
|
144
|
+
const t = await v(e, this._configContextConsumer.value.userSession, this._cardsFetcher, this._cardsFetcherDeployed, this._agoTerms, this._sortField, this._sortOrder, this._delay, this._categories, this._allCards, this._abortController.signal, this._owner);
|
|
109
145
|
this._abortController = void 0, this._modifiedCheckTry > 0 && (this._cards?.length === t?.cards?.length ? (this._modifiedCheckTry--, this._getDeployedSolutions()) : this._modifiedCheckTry = 0), this._cards = t?.cards ?? [], this.deployedCardsFetched.emit(this._cards.length), this._cardsFetching = !1;
|
|
110
146
|
} catch (t) {
|
|
111
147
|
t.message !== "redundant request" && console.warn(t);
|
|
@@ -113,7 +149,7 @@ class b extends w {
|
|
|
113
149
|
}
|
|
114
150
|
}
|
|
115
151
|
_getSolutionsBriefcase() {
|
|
116
|
-
return
|
|
152
|
+
return r`<div><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${y`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`;
|
|
117
153
|
}
|
|
118
154
|
_setSearchTerm(e) {
|
|
119
155
|
this._agoTerms = this._baseAgoTerms + ` ${e}`;
|
|
@@ -128,20 +164,20 @@ class b extends w {
|
|
|
128
164
|
async _refreshAfterDeploy(e) {
|
|
129
165
|
if (e) {
|
|
130
166
|
this._newId = e;
|
|
131
|
-
const t = 10,
|
|
132
|
-
for (let
|
|
133
|
-
|
|
167
|
+
const t = 10, i = 500;
|
|
168
|
+
for (let a = 0; a < t && (await this._getDeployedSolutions(), !this._cards.some((o) => o.id === e)); a++)
|
|
169
|
+
a < t - 1 && await new Promise((o) => setTimeout(o, i));
|
|
134
170
|
await this.updateComplete;
|
|
135
|
-
const
|
|
136
|
-
for (let
|
|
171
|
+
const s = 10, p = 100;
|
|
172
|
+
for (let a = 0; a < s; a++) {
|
|
137
173
|
if (this._refs[e]) {
|
|
138
|
-
const
|
|
174
|
+
const o = this._cards.find((_) => _.id === e);
|
|
139
175
|
window.dispatchEvent(new CustomEvent("deployedCardReady", {
|
|
140
|
-
detail: { card:
|
|
176
|
+
detail: { card: o, cardRef: this._refs[e] }
|
|
141
177
|
})), this._newId = "";
|
|
142
178
|
return;
|
|
143
179
|
}
|
|
144
|
-
await new Promise((
|
|
180
|
+
await new Promise((o) => setTimeout(o, p)), await this.updateComplete;
|
|
145
181
|
}
|
|
146
182
|
console.warn(`Failed to find ref for newly deployed solution after all retries: ${e}`), window.dispatchEvent(new CustomEvent("deploymentCompletedWithoutNav", {
|
|
147
183
|
detail: { solutionId: e }
|
|
@@ -149,7 +185,7 @@ class b extends w {
|
|
|
149
185
|
}
|
|
150
186
|
}
|
|
151
187
|
}
|
|
152
|
-
|
|
188
|
+
u("solutions-deployed-panel", E);
|
|
153
189
|
export {
|
|
154
|
-
|
|
190
|
+
E as SolutionsDeployedPanel
|
|
155
191
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { c
|
|
3
|
-
import { u as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { useContextConsumer as
|
|
6
|
-
import { css as
|
|
7
|
-
import { A as
|
|
8
|
-
import { createRef as
|
|
9
|
-
const
|
|
10
|
-
class
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { u as d } from "../../chunks/useT9n.js";
|
|
4
|
+
import { LitElement as h, createEvent as l, safeStyleMap as p } from "@arcgis/lumina";
|
|
5
|
+
import { useContextConsumer as o } from "@arcgis/lumina/context";
|
|
6
|
+
import { css as u, html as i, svg as g } from "lit";
|
|
7
|
+
import { A as f, G as b, J as v } from "../../chunks/interfaces.js";
|
|
8
|
+
import { createRef as s, ref as r } from "lit/directives/ref.js";
|
|
9
|
+
const m = u`calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.text-center{text-align:center}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: var(--calcite-spacing-none);--calcite-panel-header-background-color: var(--calcite-color-foreground-2)}.panel-override{--calcite-panel-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none);font-weight:var(--calcite-font-weight-medium)}.header-content-wrapper{padding-inline-start:var(--calcite-spacing-xxs)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.position-relative{position:relative}.height-100{height:100%}.height-50{height:50px}.sign-in-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.sign-in-icon{transform:translate(-20px)}.height-150{height:150px}.width-150{width:150px}.padding-top-3{padding-top:3px}`;
|
|
10
|
+
class x extends h {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(), this.solutionsCount = 0, this.filterOpen = !0, this.isMobile = !1, this._showAlertFailed = !1, this._translations =
|
|
13
|
-
context:
|
|
12
|
+
super(), this.solutionsCount = 0, this.filterOpen = !0, this.isMobile = !1, this._showAlertFailed = !1, this._translations = d({ name: "solutions-deployed-shell", blocking: !0 }), this._configContextConsumer = o({
|
|
13
|
+
context: f,
|
|
14
14
|
subscribe: !0
|
|
15
|
-
}), this._deployedCardFetchFailedMessage = "", this._deployedCardFetchFailedTitle = "", this._isMobileContextConsumer =
|
|
16
|
-
context:
|
|
15
|
+
}), this._deployedCardFetchFailedMessage = "", this._deployedCardFetchFailedTitle = "", this._isMobileContextConsumer = o({
|
|
16
|
+
context: b,
|
|
17
17
|
subscribe: !0,
|
|
18
18
|
callback: (e) => this.isMobile = e
|
|
19
|
-
}), this._solutionsDeployedPanelRef =
|
|
19
|
+
}), this._solutionsDeployedPanelRef = s(), this._mainPanelRef = s(), this._panelFixed = !1, this.filterRemoved = l(), this.tokenRefreshed = l(), this._handleSignIn = () => {
|
|
20
20
|
const e = window.location.pathname.endsWith("deployments") ? "" : "deployments";
|
|
21
21
|
this._configContextConsumer.value?.authentication?.signIn(e);
|
|
22
22
|
}, this.listenOn(window, "deployedCardFetchFailed", (e) => {
|
|
23
|
-
const
|
|
24
|
-
this._deployedCardFetchFailedTitle =
|
|
23
|
+
const t = e.detail;
|
|
24
|
+
this._deployedCardFetchFailedTitle = t.title, this._deployedCardFetchFailedMessage = t.message, this._showAlertFailed = !0;
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
static {
|
|
28
28
|
this.properties = { solutionsCount: 9, filterOpen: 16, isMobile: 16, _showAlertFailed: 16, _translations: 16 };
|
|
29
29
|
}
|
|
30
30
|
static {
|
|
31
|
-
this.styles =
|
|
31
|
+
this.styles = m;
|
|
32
32
|
}
|
|
33
33
|
willUpdate(e) {
|
|
34
34
|
e.has("isMobile") && (this.filterOpen = !this.isMobile);
|
|
@@ -39,18 +39,54 @@ class f extends s {
|
|
|
39
39
|
async load() {
|
|
40
40
|
this._isMobileContextConsumer.value && (this.isMobile = this._isMobileContextConsumer.value);
|
|
41
41
|
}
|
|
42
|
+
updated() {
|
|
43
|
+
this._fixPanelContentWrapperFocus();
|
|
44
|
+
}
|
|
45
|
+
_fixPanelContentWrapperFocus() {
|
|
46
|
+
if (!this._panelFixed && this._mainPanelRef.value) {
|
|
47
|
+
const e = this._mainPanelRef.value;
|
|
48
|
+
e.componentOnReady?.().then(() => {
|
|
49
|
+
if (e.shadowRoot) {
|
|
50
|
+
const t = e.shadowRoot.querySelector(".content-wrapper");
|
|
51
|
+
t && (t.tabIndex = -1, this._panelFixed = !0, this._setupPanelObserver());
|
|
52
|
+
}
|
|
53
|
+
}).catch(() => {
|
|
54
|
+
this._panelFixed = !0;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
_setupPanelObserver() {
|
|
59
|
+
if (this._panelObserver)
|
|
60
|
+
return;
|
|
61
|
+
this._panelObserver = new MutationObserver((t) => {
|
|
62
|
+
t.forEach((n) => {
|
|
63
|
+
if (n.type === "attributes" && n.attributeName === "tabindex") {
|
|
64
|
+
const a = n.target;
|
|
65
|
+
a.classList.contains("content-wrapper") && a.tabIndex === 0 && (a.tabIndex = -1);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
const e = this._mainPanelRef.value;
|
|
70
|
+
if (e?.shadowRoot) {
|
|
71
|
+
const t = e.shadowRoot.querySelector(".content-wrapper");
|
|
72
|
+
t && this._panelObserver.observe(t, { attributes: !0, attributeFilter: ["tabindex"] });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
disconnectedCallback() {
|
|
76
|
+
super.disconnectedCallback(), this._panelObserver?.disconnect();
|
|
77
|
+
}
|
|
42
78
|
render() {
|
|
43
79
|
if (!this._configContextConsumer.value?.authentication?.IsSignedIn)
|
|
44
80
|
return this._getSignInPrompt();
|
|
45
81
|
const e = this.isMobile ? "justify-content-end" : "";
|
|
46
|
-
return
|
|
82
|
+
return i`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1" ${r(this._mainPanelRef)}><div class=${`display-flex align-items-center height-50 header-content-wrapper ${e}`} slot=header-content><calcite-label class="label-override flex-shrink-0 padding-top-3" layout=inline>${this._translations.numberOfDeployments?.replace("{{count}}", this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsDeployedPanel()}</calcite-panel></calcite-shell>`;
|
|
47
83
|
}
|
|
48
84
|
_getSignInPrompt() {
|
|
49
|
-
return
|
|
85
|
+
return i`<div class="sign-in-prompt">${this._getSignInIcon()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.signInMessage}</div><calcite-button appearance=outline @click=${this._handleSignIn} @keydown=${(e) => v(e, () => this._handleSignIn())} scale=l>${this._translations.signIn}</calcite-button></div>`;
|
|
50
86
|
}
|
|
51
87
|
_getSolutionsDeployedPanel() {
|
|
52
88
|
const e = this.isMobile && this.filterOpen ? { display: "none" } : "";
|
|
53
|
-
return
|
|
89
|
+
return i`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${p(e)} ${r(this._solutionsDeployedPanelRef)}></solutions-deployed-panel><calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._deployedCardFetchFailedTitle} @calciteAlertClose=${() => {
|
|
54
90
|
this._showAlertFailed = !1;
|
|
55
91
|
}} .open=${this._showAlertFailed}><div slot=title>${this._deployedCardFetchFailedTitle}</div><div slot=message>${this._deployedCardFetchFailedMessage}</div></calcite-alert></div>`;
|
|
56
92
|
}
|
|
@@ -58,10 +94,10 @@ class f extends s {
|
|
|
58
94
|
this.solutionsCount = e.detail;
|
|
59
95
|
}
|
|
60
96
|
_getSignInIcon() {
|
|
61
|
-
return
|
|
97
|
+
return i`<div class="sign-in-icon"><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${g`<path d="M56.9 4.1V60h-.8V4.9H23.3l25.6 7.47v39.26l-28.8 8.4V35h.8v23.97l27.2-7.94V12.97L20.9 5.03V30h-.8V4.1h36.8zM30.735 41.7l.565.566 9.766-9.766-9.766-9.766-.565.567 8.799 8.799H5v.8h34.534l-8.8 8.8z" fill=var(--calcite-color-text-3) />`}</svg></div>`;
|
|
62
98
|
}
|
|
63
99
|
}
|
|
64
|
-
|
|
100
|
+
c("solutions-deployed-shell", x);
|
|
65
101
|
export {
|
|
66
|
-
|
|
102
|
+
x as SolutionsDeployedShell
|
|
67
103
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
2
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as s, html as e } from "lit";
|
|
4
|
+
import { LitElement as n } from "@arcgis/lumina";
|
|
5
5
|
import "../solution-resource-card/customElement.js";
|
|
6
|
-
const
|
|
7
|
-
class
|
|
6
|
+
const o = s`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.resources-section{padding:3rem var(--calcite-spacing-md);max-width:1440px;margin:0 auto;box-sizing:border-box}.section-header{margin-bottom:3rem;text-align:center}.section-heading{font-size:var(--calcite-font-size-3);font-weight:var(--calcite-font-weight-small);margin:0 0 var(--calcite-spacing-lg) 0;color:var(--calcite-color-text-1)}.section-subheading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-2);margin:0}.cards-container{display:flex;gap:var(--calcite-spacing-md);flex-wrap:wrap}.cards-container solution-resource-card{flex:1 1 200px}`;
|
|
7
|
+
class r extends n {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments), this.heading = "", this.subheading = "", this.cards = [];
|
|
10
10
|
}
|
|
@@ -12,13 +12,13 @@ class a extends r {
|
|
|
12
12
|
this.properties = { heading: [1, { type: String }], subheading: [1, { type: String }], cards: [1, { type: Array }] };
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.styles =
|
|
15
|
+
this.styles = o;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return e`<div class="resources-section"><div class="section-header"><h2 class="section-heading">${this.heading}</h2><p class="section-subheading">${this.subheading}</p></div><div class="cards-container">${this.cards.map((i) => e`<solution-resource-card .icon=${i.icon} .meridianIcon=${i.meridianIcon} .heading=${i.heading} .description=${i.description} .url=${i.url} .sectionHeading=${this.heading}></solution-resource-card>`)}</div></div>`;
|
|
18
|
+
return e`<div class="resources-section"><div class="section-header"><h2 class="section-heading" tabindex=0>${this.heading}</h2><p class="section-subheading" tabindex=0>${this.subheading}</p></div><div class="cards-container">${this.cards.map((i) => e`<solution-resource-card .icon=${i.icon} .meridianIcon=${i.meridianIcon} .heading=${i.heading} .description=${i.description} .url=${i.url} .sectionHeading=${this.heading}></solution-resource-card>`)}</div></div>`;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
t("solutions-resources-section", r);
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
r as SolutionsResourcesSection
|
|
24
24
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
2
|
import { c as a } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as s, html as
|
|
4
|
-
import { u as
|
|
3
|
+
import { css as s, html as o } from "lit";
|
|
4
|
+
import { u as r } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as c, createEvent as d } from "@arcgis/lumina";
|
|
6
6
|
import { createRef as l, ref as p } from "lit/directives/ref.js";
|
|
7
7
|
import "../solutions-resources-section/customElement.js";
|
|
8
|
-
const h = s
|
|
8
|
+
const h = s`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.position-relative{position:relative}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-2);--calcite-panel-background-color: var(--calcite-color-foreground-2)}.width-350{--calcite-shell-panel-width: 350px}.height-full{height:100%}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-shell{background-color:unset}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-end-md{margin-inline-end:var(--calcite-spacing-md)}.resources-container{width:100%;box-sizing:border-box}.hero-banner{background-color:var(--calcite-color-foreground-2);padding:4.25rem var(--calcite-spacing-md);text-align:center;width:100%;box-sizing:border-box;margin-bottom:3rem}.hero-heading{font-size:var(--calcite-font-size-5);font-weight:var(--calcite-font-weight-medium);margin:0 0 var(--calcite-spacing-xxl) 0;color:var(--calcite-color-text-1)}.hero-subheading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-2);max-width:600px;margin:0 auto}`;
|
|
9
9
|
class u extends c {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(), this._translations =
|
|
11
|
+
super(), this._translations = r({ name: "solutions-resources-shell", blocking: !0 }), this._mainPanelRef = l(), this._panelFixed = !1, this.sortTypeChanged = d(), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected);
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
14
|
this.properties = { _translations: 16 };
|
|
@@ -54,7 +54,7 @@ class u extends c {
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
const e = this._translations;
|
|
57
|
-
return
|
|
57
|
+
return o`<calcite-shell><calcite-panel ${p(this._mainPanelRef)}><div class="resources-container"><div class="hero-banner"><h1 class="hero-heading" tabindex=0>${e.hero.heading}</h1><p class="hero-subheading" tabindex=0>${e.hero.subheading}</p></div><solutions-resources-section .heading=${e.getStarted.heading} .subheading=${e.getStarted.subheading} .cards=${[
|
|
58
58
|
{
|
|
59
59
|
meridianIcon: "value",
|
|
60
60
|
heading: e.getStarted.card1.heading,
|