@esri/solutions-components 5.1.0-next.101 → 5.1.0-next.103
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/2AXKBNIN.js +2 -0
- package/dist/cdn/{VFBHL5I3.js → 2HGZUNIC.js} +1 -1
- package/dist/cdn/{BEFZMWNT.js → 3NPBN2B4.js} +1 -1
- package/dist/cdn/4SPIPOYO.js +2 -0
- package/dist/cdn/{AGWF7JS3.js → 64ZLSOK3.js} +1 -1
- package/dist/cdn/{5MJRRAR3.js → 6UTDTBHM.js} +1 -1
- package/dist/cdn/{KFUDOMCU.js → 7EPZDMA2.js} +1 -1
- package/dist/cdn/{NAP64TVV.js → 7SFTLJTV.js} +1 -1
- package/dist/cdn/{OVUYJGIC.js → 7X5K32QE.js} +1 -1
- package/dist/cdn/{YVHMD4UA.js → A2SX6EF7.js} +1 -1
- package/dist/cdn/{52NCESZ3.js → ADTHTFGI.js} +1 -1
- package/dist/cdn/{R2DPK4DM.js → AFMPPVMO.js} +1 -1
- package/dist/cdn/{RPW7LJQH.js → ANZVLZYR.js} +1 -1
- package/dist/cdn/{WBOSBQON.js → AO3QYZNQ.js} +1 -1
- package/dist/cdn/{V5CN55C4.js → AYO5GP4M.js} +1 -1
- package/dist/cdn/{QY5DNKV4.js → B4EWPUMU.js} +1 -1
- package/dist/cdn/B7YFREN6.js +2 -0
- package/dist/cdn/{AXOVJQ27.js → BELRJU3A.js} +1 -1
- package/dist/cdn/{6GS6GAPJ.js → BYU5RVVM.js} +1 -1
- package/dist/cdn/{MKHDEHCO.js → C42RDWYF.js} +1 -1
- package/dist/cdn/CGCDR6AO.js +2 -0
- package/dist/cdn/{FMBNUELT.js → CNY6H6U2.js} +1 -1
- package/dist/cdn/{HQELLKEZ.js → CZZN3R4F.js} +1 -1
- package/dist/cdn/{WVESDJHN.js → D6D5Y5L4.js} +1 -1
- package/dist/cdn/{TUMD7SXH.js → DINEURA2.js} +1 -1
- package/dist/cdn/{4CTPT5BL.js → G4OMMOS4.js} +1 -1
- package/dist/cdn/{QLCCVERE.js → GU4QAZMD.js} +1 -1
- package/dist/cdn/{NBWWIDDN.js → IGIHPCRS.js} +1 -1
- package/dist/cdn/{ULMPSDVQ.js → IIOO4ABM.js} +1 -1
- package/dist/cdn/{5HEWMGPZ.js → JPJ2PWRJ.js} +1 -1
- package/dist/cdn/{PUKJZLBU.js → LYNVZ7EL.js} +1 -1
- package/dist/cdn/{K6MXQSMI.js → MSEGWVWC.js} +2 -2
- package/dist/cdn/{FFUTLAI6.js → N3FJFS6W.js} +1 -1
- package/dist/cdn/{P6I6DQ26.js → NBJK6Z7L.js} +1 -1
- package/dist/cdn/{LN4MOERJ.js → NHBGCM7D.js} +1 -1
- package/dist/cdn/{YZHE6356.js → O5PAINAH.js} +1 -1
- package/dist/cdn/P2QWXLFJ.js +2 -0
- package/dist/cdn/{7XZPMBE6.js → P76UNULK.js} +1 -1
- package/dist/cdn/{RNJB26Y3.js → PDE6N2YM.js} +1 -1
- package/dist/cdn/{IBUNGLNK.js → PQPNCADS.js} +1 -1
- package/dist/cdn/{PTRLHLU7.js → RQIBNHBN.js} +1 -1
- package/dist/cdn/RSS5TMGK.js +384 -0
- package/dist/cdn/{BYMRDTAH.js → SR53JCI4.js} +1 -1
- package/dist/cdn/{7NJD2NA4.js → TDY54Z67.js} +1 -1
- package/dist/cdn/{32CHXOKC.js → TS7GYVPR.js} +1 -1
- package/dist/cdn/{RCDAQADA.js → TWO6FJHP.js} +1 -1
- package/dist/cdn/{3N6JSBDY.js → UQ6CJF7E.js} +1 -1
- package/dist/cdn/{XT5YSGV5.js → UUGWRXGN.js} +1 -1
- package/dist/cdn/{6YK4PYP4.js → UUMJMH3T.js} +1 -1
- package/dist/cdn/{377WBJCF.js → VB5C4Z27.js} +1 -1
- package/dist/cdn/VBOMEOGC.js +2 -0
- package/dist/cdn/{ABL2KXLF.js → VK6ZOC6A.js} +1 -1
- package/dist/cdn/{QUXKMFKN.js → WNH3PY6X.js} +1 -1
- package/dist/cdn/{TXNMM6GI.js → WU7QCA5H.js} +1 -1
- package/dist/cdn/{4IPMIMO5.js → WZ22NICV.js} +1 -1
- package/dist/cdn/{RG2D7ZRS.js → Y2ROEEOX.js} +2 -2
- package/dist/cdn/{JL4NGXC2.js → YXJJ5QPI.js} +1 -1
- package/dist/cdn/{VMGLKQNQ.js → ZPOWEU76.js} +1 -1
- package/dist/cdn/{VFVRYSDK.js → ZT5TOVYM.js} +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +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-deployed-card-panel/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardsHelpers.js +3 -3
- package/dist/chunks/getItemIcon.js +17 -17
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +2 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +8265 -7520
- package/dist/components/solution-builder-assistant/customElement.d.ts +4 -0
- package/dist/components/solution-builder-assistant/customElement.js +85 -78
- package/dist/components/solution-builder-assistant/index.js +1 -1
- package/dist/components/solution-deployed-card-panel/customElement.d.ts +2 -0
- package/dist/components/solution-deployed-card-panel/customElement.js +50 -38
- package/dist/components/solution-details-card/customElement.js +10 -10
- package/dist/components/solution-details-panel/customElement.js +14 -10
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +1 -1
- package/dist/components/solutions-deployed-list/customElement.d.ts +2 -0
- package/dist/components/solutions-deployed-list/customElement.js +29 -24
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +3 -3
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/3TISGUGU.js +0 -359
- package/dist/cdn/7HBL3GLY.js +0 -2
- package/dist/cdn/ANSQV6XB.js +0 -2
- package/dist/cdn/IND3UUYC.js +0 -2
- package/dist/cdn/KCEVE53E.js +0 -2
- package/dist/cdn/Q6M7TE6U.js +0 -2
- package/dist/cdn/RR6KWZJ6.js +0 -2
|
@@ -7,8 +7,8 @@ import "@esri/calcite-components/components/calcite-icon";
|
|
|
7
7
|
import "@esri/calcite-components/components/calcite-table-row";
|
|
8
8
|
import "@esri/calcite-components/components/calcite-table-cell";
|
|
9
9
|
import "@esri/calcite-components/components/calcite-tooltip";
|
|
10
|
-
import "@esri/calcite-components/components/calcite-label";
|
|
11
10
|
import "@esri/calcite-components/components/calcite-input-text";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-label";
|
|
12
12
|
import "@esri/calcite-components/components/calcite-text-area";
|
|
13
13
|
import "@esri/calcite-components/components/calcite-button";
|
|
14
14
|
import "@esri/calcite-components/components/calcite-notice";
|
|
@@ -23,6 +23,7 @@ export abstract class SolutionDeployedCardPanel extends LitElement {
|
|
|
23
23
|
mustOwnSolution: string;
|
|
24
24
|
viewTheDiagram: string;
|
|
25
25
|
learnMoreNewVersion: string;
|
|
26
|
+
openDetails: string;
|
|
26
27
|
showMoreSummary: string;
|
|
27
28
|
solutionsContentsAndCount: string;
|
|
28
29
|
solutionDocumentation: string;
|
|
@@ -45,6 +46,7 @@ export abstract class SolutionDeployedCardPanel extends LitElement {
|
|
|
45
46
|
mustOwnSolution: string;
|
|
46
47
|
viewTheDiagram: string;
|
|
47
48
|
learnMoreNewVersion: string;
|
|
49
|
+
openDetails: string;
|
|
48
50
|
showMoreSummary: string;
|
|
49
51
|
solutionsContentsAndCount: string;
|
|
50
52
|
solutionDocumentation: string;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { useContextConsumer as
|
|
6
|
-
import { css as
|
|
7
|
-
import { c as
|
|
8
|
-
import { y, T as
|
|
9
|
-
import { f as
|
|
10
|
-
import { g as
|
|
11
|
-
import { u as
|
|
2
|
+
import { c as m } from "../../chunks/runtime.js";
|
|
3
|
+
import { u as f } from "../../chunks/useT9n.js";
|
|
4
|
+
import { LitElement as b, createEvent as r, safeClassMap as x, nothing as d } from "@arcgis/lumina";
|
|
5
|
+
import { useContextConsumer as p } from "@arcgis/lumina/context";
|
|
6
|
+
import { css as _, html as i } from "lit";
|
|
7
|
+
import { c as v, i as y } from "../../chunks/deployAppContexts.js";
|
|
8
|
+
import { y as w, T as l, x as C } from "../../chunks/interfaces.js";
|
|
9
|
+
import { f as g, a as $, b as h } from "../../chunks/cardsHelpers.js";
|
|
10
|
+
import { g as S } from "../../chunks/getRelatedInfos.js";
|
|
11
|
+
import { u as D } from "../../chunks/common.js";
|
|
12
12
|
import { j as k, i as T } from "../../chunks/helpers.js";
|
|
13
|
-
import * as
|
|
14
|
-
const I =
|
|
15
|
-
class O extends
|
|
13
|
+
import * as u from "@esri/solution-common";
|
|
14
|
+
const I = _`.negative-tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.font-weight-med{font-weight:var(--calcite-font-weight-medium)}.font-weight-bold{font-weight:var(--calcite-font-weight-bold)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.font-1{font-size:var(--calcite-spacing-lg)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}@container (min-width: 801px){.font-size-override .display-flex.flex-direction-row>.image-width+.display-flex{flex:1;min-width:0}}.icon-color{color:var(--calcite-color-text-3)}.padding-bottom-lg{padding-bottom:var(--calcite-spacing-lg)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.align-items-center{align-items:center}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.background-color-1{background-color:var(--calcite-color-surface-2)}.background-color-2{background-color:var(--calcite-color-surface-3)}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.position-relative{position:relative}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-shell-panel-background-color: var(--calcite-color-surface-2)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.bottom-border{border-bottom:solid var(--calcite-spacing-px);color:var(--calcite-color-border-1)}.margin-start-end-xxl{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.margin-start-end-lg{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-top-xxl{margin-top:var(--calcite-spacing-xxl)}.justify-between{justify-content:space-between}.items-baseline{align-items:baseline}.padding-xxl{padding:var(--calcite-spacing-xxl)}.padding-lg{padding:var(--calcite-spacing-lg)}.padding-top-xxl{padding-top:var(--calcite-spacing-xxl)}.padding-top-lg{padding-top:var(--calcite-spacing-lg)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}.padding-start-sm{padding-inline-start:var(--calcite-spacing-sm)}.padding-start-xxl{padding-inline-start:var(--calcite-spacing-xxl)}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}img{max-width:100%;height:auto;overflow-clip-margin:content-box;overflow:clip;display:block}.margin-xl{margin:var(--calcite-spacing-xl)}.line-height-1{line-height:1.1}.line-height-xxl{line-height:var(--calcite-line-height-xxl)}@container (max-width: 800px){.font-size-override .display-flex.flex-direction-row{flex-direction:column!important}.image-width{width:100%!important;max-width:100%!important;margin:0!important;padding:var(--calcite-spacing-lg)!important;padding-bottom:0!important;box-sizing:border-box}.image-width img{width:100%;max-width:100%}.margin-xl{margin:0!important}.image-width+.display-flex{padding-inline-start:var(--calcite-spacing-lg)!important;padding-inline-end:var(--calcite-spacing-lg)!important}.padding-start-sm{padding-inline-start:0!important}.title-font{padding-inline-start:0!important;padding-top:var(--calcite-spacing-lg)!important;padding-bottom:var(--calcite-spacing-lg)!important}.align-items-start.padding-bottom-xxl,.padding-bottom-xxl.padding-start-sm{padding-bottom:var(--calcite-spacing-lg)!important}}calcite-shell-panel{--calcite-shell-panel-max-width: 20rem;--calcite-shell-panel-width: 24vw}calcite-shell{block-size:unset}.solution-deployed-action{--calcite-color-focus: initial}.skeleton-loader{background:linear-gradient(90deg,var(--calcite-color-foreground-1) 0%,var(--calcite-color-foreground-2) 50%,var(--calcite-color-foreground-1) 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--calcite-border-radius)}.skeleton-folder{height:1.5rem;width:12rem;border-radius:var(--calcite-border-radius)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}`;
|
|
15
|
+
class O extends b {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(), this.diagramKey = "", this.open = !1, this.templateInfos = [], this._accordionLoading = !1, this._configureTitlesOpen = !1, this._deleteDialogOpen = !1, this._hasNewVersion = !1, this._isDiagramOpen = !1, this._isNameConflict = !1, this._invalidNameMessage = "", this._showFailedAlert = !1, this._showItemUpdateLoading = !1, this.isMobile = !1, this._templateInfoGraph = [], this._thumbnailUrl = "", this._folderName = "", this._folderId = null, this._folderLoading = !1, this._translations =
|
|
18
|
-
context:
|
|
17
|
+
super(), this.diagramKey = "", this.open = !1, this.templateInfos = [], this._accordionLoading = !1, this._configureTitlesOpen = !1, this._deleteDialogOpen = !1, this._hasNewVersion = !1, this._isDiagramOpen = !1, this._isNameConflict = !1, this._invalidNameMessage = "", this._showFailedAlert = !1, this._showItemUpdateLoading = !1, this.isMobile = !1, this._templateInfoGraph = [], this._thumbnailUrl = "", this._folderName = "", this._folderId = null, this._folderLoading = !1, this._translations = f({ name: "solution-deployed-card-panel", blocking: !0 }), this._configContextConsumer = p({
|
|
18
|
+
context: v,
|
|
19
19
|
subscribe: !0,
|
|
20
20
|
callback: async (e) => {
|
|
21
|
-
e && (this._isOrgAdmin =
|
|
21
|
+
e && (this._isOrgAdmin = w(e.authentication), this._user = e.authentication?.Portal?.user);
|
|
22
22
|
}
|
|
23
|
-
}), this._isOrgAdmin = !1, this._isMobileContextConsumer =
|
|
24
|
-
context:
|
|
23
|
+
}), this._isOrgAdmin = !1, this._isMobileContextConsumer = p({
|
|
24
|
+
context: y,
|
|
25
25
|
subscribe: !0,
|
|
26
26
|
callback: (e) => this.isMobile = e
|
|
27
27
|
}), this.navTabSelected = r(), this.forceSelectTab = r(), this.sortTypeChanged = r(), this.solutionConfigureDialogClose = r(), this._nonSolutionDependencyItems = [], this._openFolder = (e) => {
|
|
28
28
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
29
|
-
category:
|
|
29
|
+
category: l.DEPLOYMENTS,
|
|
30
30
|
action: "Open Folder",
|
|
31
31
|
dimensions: [
|
|
32
32
|
this.card?.title || "",
|
|
@@ -41,11 +41,23 @@ class O extends f {
|
|
|
41
41
|
const o = this._configContextConsumer.value?.userSession?.username, n = this.card?.owner === o;
|
|
42
42
|
let a;
|
|
43
43
|
if (n) {
|
|
44
|
-
const
|
|
45
|
-
a = `${t}/home/content.html?folder=${
|
|
44
|
+
const s = this._folderId || this.card?.owner;
|
|
45
|
+
a = `${t}/home/content.html?folder=${s}`;
|
|
46
46
|
} else
|
|
47
47
|
this._folderId ? a = `${t}/home/content.html?user=${this.card?.owner}&folder=${this._folderId}` : a = `${t}/home/content.html?user=${this.card?.owner}&folder=${this.card?.owner}`;
|
|
48
48
|
window.open(a, "_blank");
|
|
49
|
+
}, this._openSourceSolutionDetails = async (e) => {
|
|
50
|
+
e.stopPropagation(), this._telemetry?.logEvent({
|
|
51
|
+
category: l.DEPLOYMENTS,
|
|
52
|
+
action: "Open Details",
|
|
53
|
+
dimensions: [
|
|
54
|
+
this.card?.title || "",
|
|
55
|
+
this.card?.deployCommonId || "",
|
|
56
|
+
this.card?.deployVersion || ""
|
|
57
|
+
]
|
|
58
|
+
}), await new Promise((o) => setTimeout(o, 100));
|
|
59
|
+
const t = g(this._configContextConsumer.value.allCards, this.card.deployCommonId);
|
|
60
|
+
t && this.forceSelectTab.emit({ tabType: "details", tabTitleOrId: t });
|
|
49
61
|
}, this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected), this.listenOn(window, "displayDeployedCard", () => {
|
|
50
62
|
k({
|
|
51
63
|
kind: "success",
|
|
@@ -86,13 +98,13 @@ class O extends f {
|
|
|
86
98
|
async _deployedCardSelected(e) {
|
|
87
99
|
const t = e.detail;
|
|
88
100
|
this.card = t.card, this.cardRef = t.cardRef, this.templateInfos = [], this._accordionLoading = !0, this.templateInfos = await this._getTemplates(), this._accordionLoading = !1;
|
|
89
|
-
const o = await
|
|
101
|
+
const o = await S(this._configContextConsumer.value.userSession, this.card);
|
|
90
102
|
this._nonSolutionDependencyItems = o._nonSolutionDependencyItems;
|
|
91
|
-
const n =
|
|
103
|
+
const n = $(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
|
|
92
104
|
let a = !1;
|
|
93
105
|
if (n) {
|
|
94
|
-
const
|
|
95
|
-
a =
|
|
106
|
+
const s = h(n), c = h(this.card);
|
|
107
|
+
a = s > c;
|
|
96
108
|
}
|
|
97
109
|
this._hasNewVersion = a, this._folderLoading = !0, this._folderName = "", this._folderId = null, await this._fetchFolderInfo(), this._folderLoading = !1;
|
|
98
110
|
}
|
|
@@ -100,8 +112,8 @@ class O extends f {
|
|
|
100
112
|
e.detail === "deployed-card" && this.sortTypeChanged.emit("");
|
|
101
113
|
}
|
|
102
114
|
_getButtons() {
|
|
103
|
-
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, o = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, n = this.card?.owner === e || this._isOrgAdmin || t, a = this.card?.owner === e || this._isOrgAdmin || o,
|
|
104
|
-
return i`<div class=${`display-flex flex-direction-column ${c}`}>${!this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>` || ""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${n && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${
|
|
115
|
+
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, o = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, n = this.card?.owner === e || this._isOrgAdmin || t, a = this.card?.owner === e || this._isOrgAdmin || o, s = n ? "display-none" : "", c = this.isMobile ? "padding-lg" : "padding-xxl";
|
|
116
|
+
return i`<div class=${`display-flex flex-direction-column ${c}`}>${!this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>` || ""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${n && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${x(s)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${a && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>` || ""}</div>`;
|
|
105
117
|
}
|
|
106
118
|
_openConfigureTitlesDialog() {
|
|
107
119
|
this._configureTitlesOpen = !0;
|
|
@@ -115,7 +127,7 @@ class O extends f {
|
|
|
115
127
|
}
|
|
116
128
|
_viewDocumentation(e) {
|
|
117
129
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
118
|
-
category:
|
|
130
|
+
category: l.DEPLOYMENTS,
|
|
119
131
|
action: "Open Help",
|
|
120
132
|
dimensions: [
|
|
121
133
|
this.card?.title || "",
|
|
@@ -127,7 +139,7 @@ class O extends f {
|
|
|
127
139
|
}
|
|
128
140
|
_openItemDetails(e) {
|
|
129
141
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
130
|
-
category:
|
|
142
|
+
category: l.DEPLOYMENTS,
|
|
131
143
|
action: "Open Item Details",
|
|
132
144
|
dimensions: [
|
|
133
145
|
this.card?.title || "",
|
|
@@ -147,7 +159,7 @@ class O extends f {
|
|
|
147
159
|
e.stopPropagation();
|
|
148
160
|
const t = await this._getTemplates();
|
|
149
161
|
t && (this._telemetry?.logEvent({
|
|
150
|
-
category:
|
|
162
|
+
category: l.DEPLOYMENTS,
|
|
151
163
|
action: "View Diagram",
|
|
152
164
|
dimensions: [
|
|
153
165
|
this.card?.title || "",
|
|
@@ -158,7 +170,7 @@ class O extends f {
|
|
|
158
170
|
}), this._templateInfoGraph = t, this._isDiagramOpen = !0);
|
|
159
171
|
}
|
|
160
172
|
async _getTemplates() {
|
|
161
|
-
return this.cardRef ? await this.cardRef.getTemplates() : this.card ? await
|
|
173
|
+
return this.cardRef ? await this.cardRef.getTemplates() : this.card ? await C(this.card.id, this._configContextConsumer.value.userSession) : void 0;
|
|
162
174
|
}
|
|
163
175
|
async _fetchFolderInfo() {
|
|
164
176
|
if (this.card?.id)
|
|
@@ -166,9 +178,9 @@ class O extends f {
|
|
|
166
178
|
const e = this._configContextConsumer.value?.userSession;
|
|
167
179
|
if (!e)
|
|
168
180
|
return;
|
|
169
|
-
const t = await
|
|
181
|
+
const t = await u.getItemBase(this.card.id, e);
|
|
170
182
|
if (this._folderId = t.ownerFolder ?? null, this._folderId) {
|
|
171
|
-
const o = await
|
|
183
|
+
const o = await u.getUserFolder(this.card.owner, this._folderId, e);
|
|
172
184
|
this._folderName = o?.currentFolder?.title || this._folderId;
|
|
173
185
|
} else
|
|
174
186
|
this._folderName = this.card.owner || "Root";
|
|
@@ -182,11 +194,11 @@ class O extends f {
|
|
|
182
194
|
}
|
|
183
195
|
_getSolutionVersionCard() {
|
|
184
196
|
const e = this._hasNewVersion ? this._translations.newVersionAvailable : this._translations.youHaveTheLatestVersion, t = this.isMobile ? "padding-lg" : "padding-xxl";
|
|
185
|
-
return i`<div class=${`${t} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.solutionVersion.replace("{{version}}", this.card?.deployVersion || "")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion ? i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>` : ""}</div>`;
|
|
197
|
+
return i`<div class=${`${t} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.solutionVersion.replace("{{version}}", this.card?.deployVersion || "")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion ? i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>` : i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openSourceSolutionDetails} width=full>${this._translations.openDetails}</calcite-button>`}</div>`;
|
|
186
198
|
}
|
|
187
199
|
async _openNewVersionSolution(e) {
|
|
188
200
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
189
|
-
category:
|
|
201
|
+
category: l.DEPLOYMENTS,
|
|
190
202
|
action: "View Latest Version",
|
|
191
203
|
dimensions: [
|
|
192
204
|
this.card?.title || "",
|
|
@@ -194,7 +206,7 @@ class O extends f {
|
|
|
194
206
|
this.card?.deployVersion || ""
|
|
195
207
|
]
|
|
196
208
|
}), await new Promise((o) => setTimeout(o, 100));
|
|
197
|
-
const t =
|
|
209
|
+
const t = g(this._configContextConsumer.value.allCards, this.card.deployCommonId);
|
|
198
210
|
t && this.forceSelectTab.emit({ tabType: "details", tabTitleOrId: t });
|
|
199
211
|
}
|
|
200
212
|
_getSolutionPanel() {
|
|
@@ -218,10 +230,10 @@ class O extends f {
|
|
|
218
230
|
this._deleteDialogOpen = !0;
|
|
219
231
|
}
|
|
220
232
|
_updateThumbnailToken(e) {
|
|
221
|
-
this._thumbnailUrl !== "" && (this._thumbnailUrl =
|
|
233
|
+
this._thumbnailUrl !== "" && (this._thumbnailUrl = D(this._thumbnailUrl, e));
|
|
222
234
|
}
|
|
223
235
|
}
|
|
224
|
-
|
|
236
|
+
m("solution-deployed-card-panel", O);
|
|
225
237
|
export {
|
|
226
238
|
O as SolutionDeployedCardPanel
|
|
227
239
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { c as h } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as m, html as o } from "lit";
|
|
4
4
|
import { u } from "../../chunks/useT9n.js";
|
|
5
|
-
import { LitElement as f, createEvent as g, nothing as
|
|
5
|
+
import { LitElement as f, createEvent as g, nothing as s, safeClassMap as c } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as y } from "@arcgis/lumina/context";
|
|
7
7
|
import { c as v } from "../../chunks/deployAppContexts.js";
|
|
8
8
|
import { T as x } from "../../chunks/interfaces.js";
|
|
9
|
-
import { d as
|
|
10
|
-
import { k as
|
|
9
|
+
import { d as _ } from "../../chunks/cardsHelpers.js";
|
|
10
|
+
import { k as b } from "../../chunks/helpers.js";
|
|
11
11
|
import * as $ from "@esri/solution-common";
|
|
12
12
|
const C = m`calcite-card{height:100%;padding-bottom:2px;border:2px solid transparent;transition:border-color .1s ease;box-sizing:border-box}@media(max-width:400px){calcite-card{width:100%}}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 .hover-text{opacity:1;color:#fff}calcite-card:hover{border-color:var(--calcite-color-brand);cursor:pointer}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.chip-deployed-warn{--calcite-chip-icon-color: var(--calcite-color-status-warning)}.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:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.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}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`;
|
|
13
13
|
class T extends f {
|
|
@@ -27,8 +27,8 @@ class T extends f {
|
|
|
27
27
|
return this._configContextConsumer.value?.telemetrySession;
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
const e =
|
|
31
|
-
return
|
|
30
|
+
const e = _(this.card.title);
|
|
31
|
+
return o`<a href=${(this._isTooltipOpen ? void 0 : e) ?? s} @click=${this._anchorClick} tabindex=-1 title=${(this._isTooltipOpen ? void 0 : `${this._translations.arcgisSolutions} | ${this.card.title}`) ?? s}>${this._renderCard()}</a>`;
|
|
32
32
|
}
|
|
33
33
|
_anchorClick(e) {
|
|
34
34
|
e.preventDefault();
|
|
@@ -52,11 +52,11 @@ class T extends f {
|
|
|
52
52
|
this.detailsCardSelected.emit(this.card);
|
|
53
53
|
}
|
|
54
54
|
_renderChips(e) {
|
|
55
|
-
const i = e.filter((t) => t === "deployed" || t === "deployedOlderVersion"), d = e.filter((t) => t !== "deployed" && t !== "deployedOlderVersion"),
|
|
55
|
+
const i = e.filter((t) => t === "deployed" || t === "deployedOlderVersion"), d = e.filter((t) => t !== "deployed" && t !== "deployedOlderVersion"), r = [];
|
|
56
56
|
return d.forEach((t) => {
|
|
57
57
|
const l = "chip-status", n = `solution-details-card-chip-${t}`, p = t === "new" ? "star" : "mega-phone", a = t === "new" ? this._translations.newSolution : this._translations.updated;
|
|
58
|
-
|
|
59
|
-
}), i.length > 0 &&
|
|
58
|
+
r.push(o`<calcite-chip class=${c(l)} .icon=${p} id=${n ?? s} .label=${a} .value=${a} scale=s></calcite-chip><calcite-tooltip .referenceElement=${n}><span>${a}</span></calcite-tooltip>`);
|
|
59
|
+
}), i.length > 0 && r.push(o`<calcite-chip class=${c(i[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed")} .icon=${i[0] === "deployedOlderVersion" ? "recent" : "check-circle"} id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip placement=top reference-element=solution-details-card-chip-deployed @calciteTooltipBeforeOpen=${async () => {
|
|
60
60
|
this._isTooltipOpen = !0;
|
|
61
61
|
const t = {
|
|
62
62
|
q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
|
|
@@ -66,11 +66,11 @@ class T extends f {
|
|
|
66
66
|
this._deployedTooltipContent = o`<solutions-deployed-list .results=${l} has-links .listTitle=${i[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
67
67
|
}} @calciteTooltipBeforeClose=${() => {
|
|
68
68
|
this._isTooltipOpen = !1;
|
|
69
|
-
}}>${this._deployedTooltipContent}</calcite-tooltip>`),
|
|
69
|
+
}}>${this._deployedTooltipContent}</calcite-tooltip>`), r;
|
|
70
70
|
}
|
|
71
71
|
_renderCard() {
|
|
72
72
|
const e = this.card;
|
|
73
|
-
return o`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${(i) =>
|
|
73
|
+
return o`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${(i) => b(i, () => this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title ?? s} class="thumbnail card-image" src=${e.thumbnailUrl ?? s}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips && e.chips.length > 0 ? o`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>` : void 0}<div slot=footer-start></div></calcite-card>`;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
h("solution-details-card", T);
|
|
@@ -201,18 +201,22 @@ class ie extends S {
|
|
|
201
201
|
}
|
|
202
202
|
_renderChips(e) {
|
|
203
203
|
const t = e.filter((s) => s === "deployed" || s === "deployedOlderVersion"), i = e.filter((s) => s !== "deployed" && s !== "deployedOlderVersion"), o = [];
|
|
204
|
-
|
|
204
|
+
if (i.forEach((s) => {
|
|
205
205
|
const a = "margin-bottom-1-5 margin-sides-1 chip-status", r = `solution-details-card-chip-${s}`, d = s === "new" ? "star" : "mega-phone", n = s === "new" ? this._translations.newChip : this._translations.updatedChip;
|
|
206
206
|
o.push(l`<calcite-chip class=${g(a)} .icon=${d} id=${r ?? _} .label=${n} .value=${n} scale=s></calcite-chip><calcite-tooltip .referenceElement=${r}><span>${n}</span></calcite-tooltip>`);
|
|
207
|
-
}), t.length > 0
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
207
|
+
}), t.length > 0) {
|
|
208
|
+
let s = "margin-bottom-1-5 margin-sides-1 chip-status";
|
|
209
|
+
i.length > 0 ? s = t[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed" : s += t[0] === "deployedOlderVersion" ? " chip-deployed-warn" : " chip-deployed", o.push(l`<calcite-chip class=${g(s)} .icon=${t[0] === "deployedOlderVersion" ? "recent" : "check-circle"} id=solution-details-card-chip-deployed .label=${this._translations.deployedChip} .value=${this._translations.deployedChip} scale=s></calcite-chip><calcite-tooltip placement=bottom reference-element=solution-details-card-chip-deployed @calciteTooltipBeforeOpen=${async () => {
|
|
210
|
+
const a = {
|
|
211
|
+
q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
|
|
212
|
+
authentication: this._configContextConsumer.value?.userSession,
|
|
213
|
+
pagingParam: { start: 1, num: 100 }
|
|
214
|
+
}, r = await R.searchItems(a);
|
|
215
|
+
this._deployedTooltipContent = l`<solutions-deployed-list .results=${r} has-links .listTitle=${t[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
216
|
+
}} @calciteTooltipBeforeClose=${() => {
|
|
217
|
+
}}>${this._deployedTooltipContent}</calcite-tooltip>`);
|
|
218
|
+
}
|
|
219
|
+
return o;
|
|
216
220
|
}
|
|
217
221
|
_getButtons() {
|
|
218
222
|
const e = this._itemProperties?.demoURL || "";
|
|
@@ -152,7 +152,7 @@ class v extends g {
|
|
|
152
152
|
}
|
|
153
153
|
_getWarningChip(e, i, t, s) {
|
|
154
154
|
const n = i === "info" ? "var(--calcite-color-status-info)" : "var(--calcite-color-status-danger)";
|
|
155
|
-
return o`<div slot=actions-end><calcite-chip .icon=${i === "info" ? "information" : "exclamation-mark-triangle"} .id=${t + "-warning"} kind=neutral .label=${e} scale=s style=${y({ "--calcite-chip-icon-color": n, cursor: s && s.length > 0 ? "pointer" : "default" })}>${e}</calcite-chip>${s && s.length > 0 ? o`<calcite-tooltip class=solution-list-item-content placement=bottom .referenceElement=${`${t}-warning`} scale=
|
|
155
|
+
return o`<div slot=actions-end><calcite-chip .icon=${i === "info" ? "information" : "exclamation-mark-triangle"} .id=${t + "-warning"} kind=neutral .label=${e} scale=s style=${y({ "--calcite-chip-icon-color": n, cursor: s && s.length > 0 ? "pointer" : "default" })}>${e}</calcite-chip>${s && s.length > 0 ? o`<calcite-tooltip class=solution-list-item-content placement=bottom .referenceElement=${`${t}-warning`} scale=m @calciteTooltipBeforeOpen=${async () => {
|
|
156
156
|
const a = {
|
|
157
157
|
q: s.map((d) => `id:${d.dependencyItemId}`).join(" OR "),
|
|
158
158
|
authentication: this._configContextConsumer.value?.userSession,
|
|
@@ -11,7 +11,7 @@ import { C as y } from "../../chunks/CardsFetcher.js";
|
|
|
11
11
|
import { g as O } from "../../chunks/cardFetchingUtils.js";
|
|
12
12
|
import { useContextProvider as _ } from "@arcgis/lumina/context";
|
|
13
13
|
import { c as F, b as L, i as $ } from "../../chunks/deployAppContexts.js";
|
|
14
|
-
import { h as E,
|
|
14
|
+
import { h as E, a as P } 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";
|
|
@@ -25,6 +25,8 @@ export abstract class SolutionsDeployedList extends LitElement {
|
|
|
25
25
|
* @default ''
|
|
26
26
|
*/
|
|
27
27
|
accessor listTitle: string;
|
|
28
|
+
/** List of deployed cards for navigation */
|
|
29
|
+
accessor referenceCards: IDeployCard[];
|
|
28
30
|
/** The results of a dependency query */
|
|
29
31
|
accessor results: portal.ISearchResult<common.IItem> | null;
|
|
30
32
|
/** Emitted on demand when the details card is selected. */
|
|
@@ -1,55 +1,60 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { u as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { c } from "../../chunks/deployAppContexts.js";
|
|
7
|
-
import { useContextConsumer as
|
|
8
|
-
import { C as
|
|
2
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as o, html as i } from "lit";
|
|
4
|
+
import { u as n } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as r, createEvent as c } from "@arcgis/lumina";
|
|
6
|
+
import { c as a } from "../../chunks/deployAppContexts.js";
|
|
7
|
+
import { useContextConsumer as d } from "@arcgis/lumina/context";
|
|
8
|
+
import { C as u } from "../../chunks/CardsFetcher.js";
|
|
9
9
|
import "@esri/solution-common";
|
|
10
|
-
import { s as
|
|
11
|
-
const
|
|
12
|
-
class f extends
|
|
10
|
+
import { s as m } from "../../chunks/helpers.js";
|
|
11
|
+
const h = o`.text-center{text-align:center}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex;align-items:center}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.padding-10{padding:10px}.padding-y-10{padding-top:10px;padding-bottom:10px}.subnote{font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}`;
|
|
12
|
+
class f extends r {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(), this.results = null, this.hasLinks = !1, this.listTitle = "", this._translations =
|
|
15
|
-
context:
|
|
14
|
+
super(), this.referenceCards = [], this.results = null, this.hasLinks = !1, this.listTitle = "", this._translations = n({ name: "solutions-deployed-list", blocking: !0 }), this._cardsFetcher = null, this._configContextConsumer = d({
|
|
15
|
+
context: a,
|
|
16
16
|
subscribe: !0
|
|
17
|
-
}), this.deployedCardSelected =
|
|
17
|
+
}), this.deployedCardSelected = c();
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
|
-
this.properties = { results: 0, hasLinks: 5, listTitle: 1, _translations: 16, _cardsFetcher: 16 };
|
|
20
|
+
this.properties = { referenceCards: 0, results: 0, hasLinks: 5, listTitle: 1, _translations: 16, _cardsFetcher: 16 };
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.styles =
|
|
23
|
+
this.styles = h;
|
|
24
24
|
}
|
|
25
25
|
async load() {
|
|
26
26
|
if (this._configContextConsumer?.value) {
|
|
27
27
|
const t = this._configContextConsumer.value;
|
|
28
|
-
this._cardsFetcher = new
|
|
28
|
+
this._cardsFetcher = new u(t.locale, t.orgUrl, t.portalURL);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
disconnectedCallback() {
|
|
32
32
|
super.disconnectedCallback();
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return this.results ? i`${this.listTitle !== "" && i`<div>${this.listTitle}</div>` || ""}
|
|
35
|
+
return this.results ? i`${this.listTitle !== "" && i`<div>${this.listTitle}</div>` || ""}${this.hasLinks ? i`<calcite-list label="dependency list">${this._renderCards()}</calcite-list>` : i`<calcite-list label="dependency list" selection-mode=none interaction-mode=static>${this._renderCards()}</calcite-list>`}` : i`<div class="no-solutions"></div>`;
|
|
36
36
|
}
|
|
37
37
|
_renderCards() {
|
|
38
38
|
if (this._cardsFetcher && this.results) {
|
|
39
39
|
const t = { ...this.results };
|
|
40
|
-
return t.results =
|
|
41
|
-
this._cardSelected(e);
|
|
40
|
+
return t.results = m(t.results), this._cardsFetcher.getCardsFromResponse(t).map((e) => i`<calcite-list-item .label=${e.title} @calciteListItemSelect=${() => {
|
|
41
|
+
this.hasLinks && this._cardSelected(e);
|
|
42
42
|
}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${this.hasLinks ? "underline" : ""}`}>${e.title}</div><div class="solution-list-item-description">${`${this._translations.deployedVersion} ${e.deployVersion} - ${new Date(e.created).toLocaleDateString(this._configContextConsumer.value?.locale, { year: "numeric", month: "long", day: "numeric" })}`}</div></div></calcite-list-item>`);
|
|
43
43
|
}
|
|
44
44
|
return [];
|
|
45
45
|
}
|
|
46
|
-
_cardSelected(t) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
async _cardSelected(t) {
|
|
47
|
+
const s = {
|
|
48
|
+
tabType: "deployed-card",
|
|
49
|
+
tabTitleOrId: t.id
|
|
50
|
+
};
|
|
51
|
+
window.dispatchEvent(new CustomEvent("forceSelectTab", {
|
|
52
|
+
detail: s
|
|
53
|
+
// Pass the payload here
|
|
54
|
+
}));
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
|
-
|
|
57
|
+
l("solutions-deployed-list", f);
|
|
53
58
|
export {
|
|
54
59
|
f as SolutionsDeployedList
|
|
55
60
|
};
|