@esri/solutions-components 1.2.0-next.193 → 1.2.0-next.195
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/{HTILYSMI.js → 4OYK7LQI.js} +1 -1
- package/dist/cdn/{2FB7PLHA.js → 4TAK7UR4.js} +1 -1
- package/dist/cdn/5N36Y4KQ.js +2 -0
- package/dist/cdn/5ZVLMXAB.js +2 -0
- package/dist/cdn/6SQBHRNL.js +2 -0
- package/dist/cdn/6ZIVLBUU.js +2 -0
- package/dist/cdn/{6MYF74WP.js → 74BUVVWT.js} +1 -1
- package/dist/cdn/{YN2Q4YSJ.js → 7KGICWE5.js} +1 -1
- package/dist/cdn/{XCOHDOZB.js → AKULVI2N.js} +1 -1
- package/dist/cdn/B5EWNHD4.js +2 -0
- package/dist/cdn/{6AVBPFXC.js → BXWJRGO4.js} +1 -1
- 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/{K2TGYZ23.js → DWERPOBG.js} +1 -1
- package/dist/cdn/{GNHKPEWB.js → EOOU7UYE.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/{QCI2IO23.js → HJGZC7SA.js} +1 -1
- package/dist/cdn/{2LCLF5CH.js → HNIKG65G.js} +1 -1
- package/dist/cdn/IEFFRDCD.js +2 -0
- package/dist/cdn/{OSY6VKW4.js → IYQFLCCH.js} +1 -1
- package/dist/cdn/MHHHY4YI.js +2 -0
- package/dist/cdn/{3IXJ77QG.js → MMKAKDW4.js} +1 -1
- package/dist/cdn/{YBCBDSHJ.js → NAZCWXLO.js} +1 -1
- package/dist/cdn/OTTY4ZPN.js +2 -0
- package/dist/cdn/{FCTLSKQC.js → OXSNUTDV.js} +1 -1
- package/dist/cdn/QTJVVDLF.js +2 -0
- package/dist/cdn/{5YSQ2CW2.js → T3TMKI4D.js} +1 -1
- package/dist/cdn/TLR2QJD4.js +2 -0
- package/dist/cdn/{GSZZB2X6.js → U4B663P4.js} +1 -1
- package/dist/cdn/UIGEOGE2.js +2 -0
- package/dist/cdn/{ZLVZRRWC.js → UMNMUV3Z.js} +1 -1
- 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/{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 +7 -7
- package/dist/components/solution-details-card/customElement.js +6 -6
- package/dist/components/solution-details-panel/customElement.js +5 -5
- package/dist/components/solution-resource-card/customElement.d.ts +4 -6
- package/dist/components/solution-resource-card/customElement.js +19 -18
- package/dist/components/solution-snapshot-gallery/customElement.js +2 -2
- 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 +8 -8
- package/dist/components/solutions-resources-shell/customElement.js +54 -26
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/solutions-components_commit.txt +6 -6
- 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/dist/utils/interfaces.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cdn/2YQZQLV7.js +0 -2
- package/dist/cdn/5DYEGOFQ.js +0 -2
- package/dist/cdn/AIU3MGAJ.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
|
@@ -5,15 +5,15 @@ import { css as l, html as n } from "lit";
|
|
|
5
5
|
import { createRef as d, ref as p } from "lit-html/directives/ref.js";
|
|
6
6
|
import { LitElement as g, createEvent as o, noShadowRoot as m, safeClassMap as h } from "@arcgis/lumina";
|
|
7
7
|
import { useContextConsumer as f } from "@arcgis/lumina/context";
|
|
8
|
-
import { p as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import { p as _ } from "../../chunks/publicNotificationContext.js";
|
|
9
|
+
import k from "@arcgis/core/layers/GraphicsLayer";
|
|
10
|
+
import y from "@arcgis/core/widgets/Sketch/SketchViewModel";
|
|
11
11
|
import w from "@arcgis/core/widgets/Sketch";
|
|
12
12
|
const b = l`@layer{:host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=rtl]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v: 12px;--esri-widget-padding-h: 15px;--esri-widget-padding: var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start!important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-responsive-toolbar__bar--horizontal{--calcite-action-group-border-color: var(--calcite-color-border-3) !important}}`;
|
|
13
13
|
class u extends g {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments), this.active = !1, this.drawMode = "SKETCH", this.editGraphicsEnabled = !0, this.graphics = [], this.redoEnabled = !1, this.undoEnabled = !1, this._translations = c({ name: "map-draw-tools", blocking: !0 }), this._pnContextConsumer = f({
|
|
16
|
-
context:
|
|
16
|
+
context: _,
|
|
17
17
|
subscribe: !0
|
|
18
18
|
}), this._sketchElement = d(), this.selectionLoadingChange = o(), this.sketchGraphicsChange = o(), this.drawUndo = o(), this.drawRedo = o();
|
|
19
19
|
}
|
|
@@ -39,7 +39,7 @@ class u extends g {
|
|
|
39
39
|
this._clearSketch();
|
|
40
40
|
}
|
|
41
41
|
async updateGraphics() {
|
|
42
|
-
this._updateGraphics();
|
|
42
|
+
this._sketchWidget?.activeTool !== "rectangle" && this._updateGraphics();
|
|
43
43
|
}
|
|
44
44
|
loaded() {
|
|
45
45
|
this._init();
|
|
@@ -58,7 +58,7 @@ class u extends g {
|
|
|
58
58
|
const e = this._pnContextConsumer.value, i = this._translations.sketchLayer;
|
|
59
59
|
if (this.mapView) {
|
|
60
60
|
const s = this.mapView.map.layers.findIndex((t) => t.title === i);
|
|
61
|
-
s > -1 ? this._sketchGraphicsLayer = this.mapView.map.layers.getItemAt(s) : (this._sketchGraphicsLayer = new
|
|
61
|
+
s > -1 ? this._sketchGraphicsLayer = this.mapView.map.layers.getItemAt(s) : (this._sketchGraphicsLayer = new k({ title: i, listMode: "hide" }), this._sketchGraphicsLayer && (e.managedLayers[i] = "sketch", this.mapView.map.layers.add(this._sketchGraphicsLayer))), this.graphics && this.graphics.length > 0 && this._sketchGraphicsLayer && this._sketchGraphicsLayer.addMany(this.graphics);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
_initSketch() {
|
|
@@ -94,7 +94,7 @@ class u extends g {
|
|
|
94
94
|
settingsMenu: this.drawMode === "SKETCH"
|
|
95
95
|
}
|
|
96
96
|
}), this._sketchWidget && this._sketchWidget.viewModel) {
|
|
97
|
-
this._sketchViewModel = new
|
|
97
|
+
this._sketchViewModel = new y({
|
|
98
98
|
...e
|
|
99
99
|
}), this.polylineSymbol && (this._sketchWidget.viewModel.polylineSymbol = this.polylineSymbol), this.pointSymbol && (this._sketchWidget.viewModel.pointSymbol = this.pointSymbol), this.polygonSymbol && (this._sketchWidget.viewModel.polygonSymbol = this.polygonSymbol), this._sketchWidget?.when(async () => {
|
|
100
100
|
await new Promise((a) => setTimeout(a, 50)), this._sketchElement.value?.getElementsByTagName("calcite-popover")[0]?.setAttribute("placement", "auto");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
2
|
import { c as C } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as y } from "../../chunks/useT9n.js";
|
|
4
|
-
import { LitElement as S, createEvent as c, safeClassMap as
|
|
4
|
+
import { LitElement as S, createEvent as c, safeClassMap as f } from "@arcgis/lumina";
|
|
5
5
|
import { useContextConsumer as T } from "@arcgis/lumina/context";
|
|
6
6
|
import { css as D, html as u } from "lit";
|
|
7
7
|
import { A as v, C as m, I as $, T as P } from "../../chunks/interfaces.js";
|
|
8
8
|
import { createRef as _, ref as p } from "lit-html/directives/ref.js";
|
|
9
|
-
import * as
|
|
10
|
-
import { updateGroup as
|
|
9
|
+
import * as b from "@esri/solution-common";
|
|
10
|
+
import { updateGroup as V, updateItem as E, updateItemExtended as w } from "@esri/solution-common";
|
|
11
11
|
import { g as W } from "../../chunks/getRelatedInfos.js";
|
|
12
|
-
const L = D
|
|
12
|
+
const L = D`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.font-style-1{font-size:1rem;color:var(--calcite-color-text-2)}.margin-top-0{margin-top:0}.padding-top-20{padding-top:20px}.padding-bottom-2{padding-bottom:2rem}.padding-left-2{padding-left:2rem}.padding-right-2{padding-right:2rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`;
|
|
13
13
|
class k extends S {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments), this.open = !1, this.source = "Card Dropdown", this.solutionData = {}, this.templateInfos = [], this._saveDisabled = !1, this._displayTemplateInfos = [], this._hasNameLengthError = !1, this._nonSolutionDependencyItems = [], this._solutionItemsTitlesUpdating = !1, this._translations = y({ name: "solution-configure-titles", blocking: !0 }), this._configContextConsumer = T({
|
|
@@ -23,13 +23,13 @@ class k extends S {
|
|
|
23
23
|
static {
|
|
24
24
|
this.styles = L;
|
|
25
25
|
}
|
|
26
|
-
async willUpdate(
|
|
27
|
-
if (
|
|
28
|
-
const t =
|
|
26
|
+
async willUpdate(i) {
|
|
27
|
+
if (i.has("templateInfos") && (this._templateInfos = JSON.parse(JSON.stringify(this.templateInfos)), this._updateTemplates()), i.has("open")) {
|
|
28
|
+
const t = i.get("open");
|
|
29
29
|
if (this.open && !t) {
|
|
30
30
|
await this._updatePrefixSuffix(), this._templateInfos = JSON.parse(JSON.stringify(this.templateInfos)), this._originalTitles = this._templateInfos.map((s) => ({ id: s.id, title: s.title })), this._updateTemplates();
|
|
31
|
-
const
|
|
32
|
-
this._nonSolutionDependencyItems =
|
|
31
|
+
const e = await W(this._configContextConsumer.value.userSession, this.card);
|
|
32
|
+
this._nonSolutionDependencyItems = e._nonSolutionDependencyItems, await this._accordionRef?.expandFirstItem();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -40,7 +40,7 @@ class k extends S {
|
|
|
40
40
|
this._updateTemplates(), await this._updatePrefixSuffix();
|
|
41
41
|
}
|
|
42
42
|
async _updatePrefixSuffix() {
|
|
43
|
-
this.solutionData = await
|
|
43
|
+
this.solutionData = await b.getItemDataAsJson(this.card.id, this._configContextConsumer.value.userSession), this.solutionData.titles?.prefix && (this._loadingDefaultPrefix = !0, this._defaultPrefix = this.solutionData.titles.prefix, this._prefixValue = this.solutionData.titles.prefix), this.solutionData.titles?.suffix && (this._loadingDefaultSuffix = !0, this._defaultSuffix = this.solutionData.titles.suffix, this._suffixValue = this.solutionData.titles.suffix);
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
return u`<calcite-dialog .heading=${this.card.title} modal @calciteDialogBeforeClose=${() => {
|
|
@@ -48,12 +48,12 @@ class k extends S {
|
|
|
48
48
|
}} .open=${this.open} outside-close-disabled width=l>${this._getPrefixSuffixControls()}${this._getAccordion()}${this._getDialogButtons()}</calcite-dialog>`;
|
|
49
49
|
}
|
|
50
50
|
_getPrefixSuffixControls() {
|
|
51
|
-
const
|
|
52
|
-
return this._saveDisabled = !
|
|
51
|
+
const i = m(this._prefixValue, "item"), t = this._hasNameLengthError && this._prefixValue.length > 0, e = !i, s = !t, n = e ? "display-none" : "", r = s ? "display-none" : "", a = e && s ? "valid" : "invalid", o = m(this._suffixValue, "item"), h = this._hasNameLengthError && this._suffixValue.length > 0, l = !o, d = !h, x = l ? "display-none" : "", g = d ? "display-none" : "", I = l && d ? "valid" : "invalid";
|
|
52
|
+
return this._saveDisabled = !e || !s || !l || !d || !this._hasChanges(), u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-top-20"><calcite-label scale=l class="font-weight-medium"><span tabindex=0>${this._translations.configureTitlesDialogHeader}</span></calcite-label><p class="font-style-1 margin-top-0" tabindex=0>${this._translations.addPrefixOrSuffixToItems}</p><div class="display-flex flex-direction-row justify-content-space"><calcite-label class="width-full padding-end-1" scale=l>${this._translations.prefixToAddToItems}<calcite-input clearable @blur=${this._prefixInput} @input=${this._prefixInput} .placeholder=${this._translations.enterPrefixPlaceholder} .status=${a} .value=${this._prefixValue} ${p(this._prefixRef)}></calcite-input><calcite-input-message class=${f(n)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(r)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label><calcite-label class="width-full" scale=l>${this._translations.suffixToAddToItems}<calcite-input clearable @blur=${this._suffixInput} @input=${this._suffixInput} .placeholder=${this._translations.enterSuffixPlaceholder} .status=${I} .value=${this._suffixValue} ${p(this._suffixRef)}></calcite-input><calcite-input-message class=${f(x)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(g)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label></div></div>`;
|
|
53
53
|
}
|
|
54
54
|
_getAccordion() {
|
|
55
|
-
const
|
|
56
|
-
return u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-bottom-2"><p class="font-style-1 margin-top-0">${this._translations.previewTheChanges}</p><solution-item-accordion .itemRelationshipDependencies=${
|
|
55
|
+
const i = [...new Set(this._nonSolutionDependencyItems.map((t) => t.controlItemId))];
|
|
56
|
+
return u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-bottom-2"><p class="font-style-1 margin-top-0">${this._translations.previewTheChanges}</p><solution-item-accordion .itemRelationshipDependencies=${i} list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReuseWarning} .templateInfos=${this._displayTemplateInfos} .typeKeywords=${this.card?.typeKeywords} ${p(async (t) => {
|
|
57
57
|
t && (this._accordionRef = t);
|
|
58
58
|
})}></solution-item-accordion></div>`;
|
|
59
59
|
}
|
|
@@ -72,33 +72,33 @@ class k extends S {
|
|
|
72
72
|
}
|
|
73
73
|
_updateTemplates() {
|
|
74
74
|
this._templateInfos = this._templateInfos.map((t) => (this._loadingDefaultPrefix && t.title.startsWith(this._prefixValue) && (t.title = this._replaceStart(t.title, this._prefixValue, "")), this._loadingDefaultSuffix && t.title.endsWith(this._suffixValue) && (t.title = this._replaceAtEnd(t.title, this._suffixValue, "")), t));
|
|
75
|
-
const
|
|
76
|
-
this._hasNameLengthError = !1, this._displayTemplateInfos =
|
|
77
|
-
const
|
|
75
|
+
const i = JSON.parse(JSON.stringify(this._templateInfos));
|
|
76
|
+
this._hasNameLengthError = !1, this._displayTemplateInfos = i.map((t) => {
|
|
77
|
+
const e = this._prefixValue !== "", s = this._suffixValue !== "", n = this._defaultPrefix !== "", r = this._defaultSuffix !== "";
|
|
78
78
|
let a = t.title;
|
|
79
|
-
|
|
79
|
+
e && (n ? this._originalTitles.find((l) => l.id === t.id)?.title.startsWith(this._defaultPrefix) ? a = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue) : this._prefixValue !== this._defaultPrefix && (a = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue)) : a = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue));
|
|
80
80
|
let o = a;
|
|
81
|
-
return s && (
|
|
81
|
+
return s && (r ? this._originalTitles.find((l) => l.id === t.id)?.title.endsWith(this._defaultSuffix) ? o = this._applySuffixWithDuplicateCheck(a, this._suffixValue) : this._suffixValue !== this._defaultSuffix && (o = this._applySuffixWithDuplicateCheck(a, this._suffixValue)) : o = this._applySuffixWithDuplicateCheck(a, this._suffixValue)), t.title = o, this._hasNameLengthError || (this._hasNameLengthError = t.title.length > $), t;
|
|
82
82
|
}), this._loadingDefaultPrefix = !1, this._loadingDefaultSuffix = !1;
|
|
83
83
|
}
|
|
84
|
-
_replaceStart(
|
|
85
|
-
return
|
|
84
|
+
_replaceStart(i, t, e) {
|
|
85
|
+
return i.startsWith(t) ? `${e}${i.slice(t.length)}` : i;
|
|
86
86
|
}
|
|
87
|
-
_replaceAtEnd(
|
|
88
|
-
return
|
|
87
|
+
_replaceAtEnd(i, t, e) {
|
|
88
|
+
return i.endsWith(t) ? `${i.substring(0, i.length - t.length)}${e}` : i;
|
|
89
89
|
}
|
|
90
|
-
_applyPrefixWithDuplicateCheck(
|
|
91
|
-
return !t ||
|
|
90
|
+
_applyPrefixWithDuplicateCheck(i, t) {
|
|
91
|
+
return !t || i.startsWith(t) ? i : t + i;
|
|
92
92
|
}
|
|
93
|
-
_applySuffixWithDuplicateCheck(
|
|
94
|
-
return !t ||
|
|
93
|
+
_applySuffixWithDuplicateCheck(i, t) {
|
|
94
|
+
return !t || i.endsWith(t) ? i : i + t;
|
|
95
95
|
}
|
|
96
96
|
_hasChanges() {
|
|
97
|
-
const
|
|
97
|
+
const i = this._defaultPrefix !== this._prefixValue, t = this._defaultSuffix !== this._suffixValue;
|
|
98
98
|
return this._displayTemplateInfos.some((s) => {
|
|
99
|
-
const n = this._originalTitles.find((
|
|
99
|
+
const n = this._originalTitles.find((r) => r.id === s.id);
|
|
100
100
|
return n && n.title !== s.title;
|
|
101
|
-
}) ||
|
|
101
|
+
}) || i || t;
|
|
102
102
|
}
|
|
103
103
|
_closeDialog() {
|
|
104
104
|
this.open = !1;
|
|
@@ -115,26 +115,26 @@ class k extends S {
|
|
|
115
115
|
this.source
|
|
116
116
|
]
|
|
117
117
|
}), this._solutionItemsTitlesUpdating = !0;
|
|
118
|
-
const
|
|
118
|
+
const i = this._displayTemplateInfos.reduce((t, e) => {
|
|
119
119
|
const s = {
|
|
120
|
-
id:
|
|
121
|
-
title:
|
|
120
|
+
id: e.id,
|
|
121
|
+
title: e.title
|
|
122
122
|
};
|
|
123
|
-
return t.push(
|
|
123
|
+
return t.push(e.type === "Group" ? V(s, this._configContextConsumer.value.userSession) : E(s, this._configContextConsumer.value.userSession, void 0, { solutionOwner: this.card?.owner })), t;
|
|
124
124
|
}, []);
|
|
125
125
|
if (this.solutionData?.templates) {
|
|
126
126
|
const t = {
|
|
127
127
|
id: this.card.id
|
|
128
|
-
},
|
|
128
|
+
}, e = {
|
|
129
129
|
...this.solutionData,
|
|
130
130
|
titles: {
|
|
131
131
|
prefix: this._prefixValue,
|
|
132
132
|
suffix: this._suffixValue
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
i.push(w(t, e, this._configContextConsumer.value.userSession, void 0, void 0, null, this.card?.owner));
|
|
136
136
|
}
|
|
137
|
-
await Promise.all(
|
|
137
|
+
await Promise.all(i), this._solutionItemsTitlesUpdating = !1, this.solutionItemsTitlesChanged.emit();
|
|
138
138
|
}
|
|
139
139
|
this._closeDialog();
|
|
140
140
|
}
|
|
@@ -4,13 +4,13 @@ import { css as u, nothing as p, html as r } from "lit";
|
|
|
4
4
|
import { u as f } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as g, createEvent as d, safeClassMap as c } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as _ } from "@arcgis/lumina/context";
|
|
7
|
-
import { A as D, T as I, D as
|
|
8
|
-
import { deleteSolution as
|
|
7
|
+
import { A as D, T as I, D as b } from "../../chunks/interfaces.js";
|
|
8
|
+
import { deleteSolution as y } from "@esri/solution-common";
|
|
9
9
|
import { createRef as w, ref as h } from "lit-html/directives/ref.js";
|
|
10
10
|
import "../solution-item-accordion/customElement.js";
|
|
11
11
|
import { p as $, g as C } from "../../chunks/getRelatedInfos.js";
|
|
12
|
-
const
|
|
13
|
-
class
|
|
12
|
+
const v = u`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.deletion-note-text{display:inline-block}.deletion-note-container{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-0);margin-bottom:var(--calcite-spacing-md)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.display-none{display:none}calcite-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.loader-text{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-xl);text-align:center;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-1)}.padding-around{padding:12px 2rem 2rem}`;
|
|
13
|
+
class x extends g {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(), this.open = !1, this.source = "Card Dropdown", this._deletePercentage = 0, this._fetchingTemplates = !1, this._isDeleteInProgress = !1, this._nonSolutionDependencyItems = [], this._showDeleteError = !1, this._showUndeletableItems = !1, this._templateInfos = [], this._translations = f({ name: "solution-delete-dialog", blocking: !0 }), this._accordion = w(), this._configContextConsumer = _({
|
|
16
16
|
context: D,
|
|
@@ -23,7 +23,7 @@ class v extends g {
|
|
|
23
23
|
this.properties = { card: 0, open: 5, source: 1, _deletePercentage: 16, _fetchingTemplates: 16, _isDeleteInProgress: 16, _nonSolutionDependencyItems: 16, _showDeleteError: 16, _showUndeletableItems: 16, _templateInfos: 16, _translations: 16 };
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.styles =
|
|
26
|
+
this.styles = v;
|
|
27
27
|
}
|
|
28
28
|
get _telemetry() {
|
|
29
29
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -53,7 +53,7 @@ class v extends g {
|
|
|
53
53
|
},
|
|
54
54
|
solutionOwner: this.card.owner
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
y(this.card.id, this._configContextConsumer.value.userSession, s).then((t) => {
|
|
57
57
|
const a = t[1];
|
|
58
58
|
let i;
|
|
59
59
|
if (a ? i = a.items.map((o) => ({
|
|
@@ -78,7 +78,7 @@ class v extends g {
|
|
|
78
78
|
typeKeywords: [],
|
|
79
79
|
snippet: "",
|
|
80
80
|
dependencies: [],
|
|
81
|
-
url:
|
|
81
|
+
url: b(n.id, this._configContextConsumer.value.authentication)
|
|
82
82
|
})), this._templateInfos = l, this._showDeleteError = !1, this._showUndeletableItems = !0, this._isDeleteInProgress = !1;
|
|
83
83
|
} else
|
|
84
84
|
this.solutionDeleted.emit({ showAlert: !0, refreshSolutionsTimeout: !0 }), this._isDeleteInProgress = !1, this.open = !1;
|
|
@@ -99,7 +99,7 @@ class v extends g {
|
|
|
99
99
|
this.solutionDeleteDialogBeforeClose.emit();
|
|
100
100
|
}} @calciteDialogClose=${() => {
|
|
101
101
|
this.open = !1, this.solutionDeleteDialogOpen.emit(!1);
|
|
102
|
-
}}>${this._isDeleteInProgress ? r`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text">${this._translations.deleteInProgress}</div>` : this._showUndeletableItems ? r`<calcite-label class=${c(s)} layout=inline>${this._translations.failedToDeleteItems}</calcite-label><solution-item-accordion class=${c(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>` : r`<div class="padding-around"><
|
|
102
|
+
}}>${this._isDeleteInProgress ? r`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text" tabindex=0>${this._translations.deleteInProgress}</div>` : this._showUndeletableItems ? r`<calcite-label class=${c(s)} layout=inline><span tabindex=0>${this._translations.failedToDeleteItems}</span></calcite-label><solution-item-accordion class=${c(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>` : r`<div class="padding-around"><div class=${`deletion-note-container ${s}`}><span class="deletion-note-text" tabindex=0>${this._translations.deletionNote}</span><calcite-chip .label=${i} scale=m icon=information>${i}</calcite-chip></div><calcite-loader class=${c(e)} label></calcite-loader><solution-item-accordion class=${c(s)} .itemRelationshipDependencies=${t} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${() => {
|
|
103
103
|
this.delete();
|
|
104
104
|
}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError && r`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${() => {
|
|
105
105
|
this._showDeleteError = !1;
|
|
@@ -110,7 +110,7 @@ class v extends g {
|
|
|
110
110
|
return [...new Set(e)].length;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
m("solution-delete-dialog",
|
|
113
|
+
m("solution-delete-dialog", x);
|
|
114
114
|
export {
|
|
115
|
-
|
|
115
|
+
x as SolutionDeleteDialog
|
|
116
116
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
2
|
import { c as h } from "../../chunks/runtime.js";
|
|
3
3
|
import { u } from "../../chunks/useT9n.js";
|
|
4
|
-
import { LitElement as m, createEvent as l, safeClassMap as f, nothing as
|
|
5
|
-
import { useContextConsumer as
|
|
4
|
+
import { LitElement as m, createEvent as l, safeClassMap as f, nothing as r } from "@arcgis/lumina";
|
|
5
|
+
import { useContextConsumer as d } from "@arcgis/lumina/context";
|
|
6
6
|
import { css as b, html as i } from "lit";
|
|
7
|
-
import { A as x, F as
|
|
8
|
-
import { f as
|
|
7
|
+
import { A as x, F as v, G as _, T as s, x as y, H as w } from "../../chunks/interfaces.js";
|
|
8
|
+
import { f as $, g as p, a as C } from "../../chunks/cardsHelpers.js";
|
|
9
9
|
import { g as S } from "../../chunks/getRelatedInfos.js";
|
|
10
|
-
const D = b`.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}.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-foreground-1)}.background-color-2{background-color:var(--calcite-color-foreground-2)}.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-foreground-2);background-color:var(--calcite-color-foreground-2)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-foreground-1);--calcite-shell-panel-background-color: var(--calcite-color-foreground-1)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.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}@media(max-width:1280px){.image-width{flex-grow:2;flex-shrink:.5}}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)}@media(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}`;
|
|
10
|
+
const D = b`.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}@media(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-foreground-1)}.background-color-2{background-color:var(--calcite-color-foreground-2)}.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-foreground-2);background-color:var(--calcite-color-foreground-2)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-foreground-1);--calcite-shell-panel-background-color: var(--calcite-color-foreground-1)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.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}@media(max-width:1280px){.image-width{flex-grow:2;flex-shrink:.5}}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)}@media(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}`;
|
|
11
11
|
class T extends m {
|
|
12
12
|
constructor() {
|
|
13
|
-
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._showSuccessAlert = !1, this._showFailedAlert = !1, this._showItemUpdateLoading = !1, this.isMobile = !1, this._templateInfoGraph = [], this._thumbnailUrl = "", this._translations = u({ name: "solution-deployed-card-panel", blocking: !0 }), this._configContextConsumer =
|
|
13
|
+
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._showSuccessAlert = !1, this._showFailedAlert = !1, this._showItemUpdateLoading = !1, this.isMobile = !1, this._templateInfoGraph = [], this._thumbnailUrl = "", this._translations = u({ name: "solution-deployed-card-panel", blocking: !0 }), this._configContextConsumer = d({
|
|
14
14
|
context: x,
|
|
15
15
|
subscribe: !0,
|
|
16
16
|
callback: async (e) => {
|
|
17
|
-
e && (this._isOrgAdmin =
|
|
17
|
+
e && (this._isOrgAdmin = v(e.authentication), this._user = e.authentication?.Portal?.user);
|
|
18
18
|
}
|
|
19
|
-
}), this._isOrgAdmin = !1, this._isMobileContextConsumer =
|
|
20
|
-
context:
|
|
19
|
+
}), this._isOrgAdmin = !1, this._isMobileContextConsumer = d({
|
|
20
|
+
context: _,
|
|
21
21
|
subscribe: !0,
|
|
22
22
|
callback: (e) => this.isMobile = e
|
|
23
23
|
}), this.navTabSelected = l(), this.forceSelectTab = l(), this.sortTypeChanged = l(), this.solutionConfigureDialogClose = l(), this._nonSolutionDependencyItems = [], this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected), this.listenOn(window, "displayDeployedCard", () => {
|
|
@@ -55,11 +55,11 @@ class T extends m {
|
|
|
55
55
|
this.card = t.card, this.cardRef = t.cardRef, this.templateInfos = [], this._accordionLoading = !0, this.templateInfos = await this._getTemplates(), this._accordionLoading = !1;
|
|
56
56
|
const a = await S(this._configContextConsumer.value.userSession, this.card);
|
|
57
57
|
this._nonSolutionDependencyItems = a._nonSolutionDependencyItems;
|
|
58
|
-
const o =
|
|
58
|
+
const o = $(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
|
|
59
59
|
let n = !1;
|
|
60
60
|
if (o) {
|
|
61
|
-
const c =
|
|
62
|
-
n = c >
|
|
61
|
+
const c = p(o), g = p(this.card);
|
|
62
|
+
n = c > g;
|
|
63
63
|
}
|
|
64
64
|
this._hasNewVersion = n;
|
|
65
65
|
}
|
|
@@ -67,8 +67,8 @@ class T extends m {
|
|
|
67
67
|
e.detail === "deployed-card" && this.sortTypeChanged.emit("");
|
|
68
68
|
}
|
|
69
69
|
_getButtons() {
|
|
70
|
-
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = this.
|
|
71
|
-
return i`<div class=${`display-flex flex-direction-column ${
|
|
70
|
+
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = this.card?.owner === e || this._isOrgAdmin || t, o = this.card?.owner === e || this._isOrgAdmin, n = a ? "display-none" : "", c = this.isMobile ? "padding-lg" : "padding-xxl";
|
|
71
|
+
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>${a && !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=${f(n)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${o && !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>`;
|
|
72
72
|
}
|
|
73
73
|
_openConfigureTitlesDialog() {
|
|
74
74
|
this._configureTitlesOpen = !0;
|
|
@@ -108,7 +108,7 @@ class T extends m {
|
|
|
108
108
|
if (!this._configContextConsumer?.value)
|
|
109
109
|
return;
|
|
110
110
|
const e = this.isMobile ? "margin-start-end-lg" : "margin-start-end-xxl";
|
|
111
|
-
return i`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override" layout=inline scale=l>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username === this.card?.owner ? this._user?.fullName : void 0} .lookupProfile=${this._user?.username !== this.card?.owner} .thumbnailUrl=${this._user?.username === this.card?.owner ? this._user?.thumbnailUrl : void 0} .username=${this.card?.owner}></solution-user-avatar></div>`;
|
|
111
|
+
return i`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l tabindex=0>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username === this.card?.owner ? this._user?.fullName : void 0} .lookupProfile=${this._user?.username !== this.card?.owner} .thumbnailUrl=${this._user?.username === this.card?.owner ? this._user?.thumbnailUrl : void 0} .username=${this.card?.owner}></solution-user-avatar></div>`;
|
|
112
112
|
}
|
|
113
113
|
async _openDiagram(e) {
|
|
114
114
|
e.stopPropagation();
|
|
@@ -129,7 +129,7 @@ class T extends m {
|
|
|
129
129
|
}
|
|
130
130
|
_getSolutionVersionCard() {
|
|
131
131
|
const e = this._hasNewVersion ? this._translations.newVersionAvailable : this._translations.youHaveTheLatestVersion, t = this.isMobile ? "padding-lg" : "padding-xxl";
|
|
132
|
-
return i`<div class=${`${t} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override" layout=inline scale=l slot=heading>${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>${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>`;
|
|
132
|
+
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>`;
|
|
133
133
|
}
|
|
134
134
|
async _openNewVersionSolution(e) {
|
|
135
135
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
@@ -141,11 +141,11 @@ class T extends m {
|
|
|
141
141
|
this.card?.deployVersion || ""
|
|
142
142
|
]
|
|
143
143
|
}), await new Promise((a) => setTimeout(a, 100));
|
|
144
|
-
const t =
|
|
144
|
+
const t = C(this._configContextConsumer.value.allCards, this.card.deployCommonId);
|
|
145
145
|
t && this.forceSelectTab.emit({ tabType: "details", tabTitleOrId: t });
|
|
146
146
|
}
|
|
147
147
|
_getSolutionPanel() {
|
|
148
|
-
return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title ??
|
|
148
|
+
return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title ?? r} src=${this._thumbnailUrl ?? r}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1 negative-tabbing-offset" tabindex=0>${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl negative-tabbing-offset" tabindex=0>${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color tabbing-offset" layout=inline tabindex=0><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}", this.card?.created || "")}</calcite-label></div></div></div></div></div></calcite-panel>`;
|
|
149
149
|
}
|
|
150
150
|
_getSolutionContents() {
|
|
151
151
|
const e = [...new Set(this._nonSolutionDependencyItems.map((t) => t.controlItemId))];
|
|
@@ -162,7 +162,7 @@ class T extends m {
|
|
|
162
162
|
}}><div slot=title>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}", this.card?.title ?? "")}</div></calcite-alert>`;
|
|
163
163
|
}
|
|
164
164
|
_renderDiagramDialog() {
|
|
165
|
-
return this._isDiagramOpen ? i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "") ??
|
|
165
|
+
return this._isDiagramOpen ? i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "") ?? r} modal .open=${this._isDiagramOpen} @calciteDialogClose=${() => {
|
|
166
166
|
this._isDiagramOpen = !1;
|
|
167
167
|
}} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey !== "" ? this.diagramKey : this._configContextConsumer.value?.diagramKey ?? ""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>` : "";
|
|
168
168
|
}
|
|
@@ -4,11 +4,11 @@ import { css as c, html as t } from "lit";
|
|
|
4
4
|
import { keyed as r } from "lit/directives/keyed.js";
|
|
5
5
|
import { u as d } from "../../chunks/useT9n.js";
|
|
6
6
|
import { LitElement as h, createEvent as a } from "@arcgis/lumina";
|
|
7
|
-
import { createRef as
|
|
8
|
-
const p = c
|
|
7
|
+
import { createRef as i, ref as l } from "lit-html/directives/ref.js";
|
|
8
|
+
const p = c`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.panel-bg-white{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.loader-text{margin-top:var(--calcite-spacing-sm);margin-bottom:var(--calcite-spacing-xxxl);text-align:center;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-1)}.carousel-style{height:120px;display:flex;align-items:center}`;
|
|
9
9
|
class g extends h {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(), this.deploymentProgress = 0, this.open = !1, this.isWaitingForCard = !1, this._isInCancelConfirmation = !1, this._showCancelConfirmation = !1, this._showIsCancelling = !1, this._translations = d({ name: "solution-deploying-dialog", blocking: !0 }), this._carouselKey = 0, this._deployingDialogRef =
|
|
11
|
+
super(), this.deploymentProgress = 0, this.open = !1, this.isWaitingForCard = !1, this._isInCancelConfirmation = !1, this._showCancelConfirmation = !1, this._showIsCancelling = !1, this._translations = d({ name: "solution-deploying-dialog", blocking: !0 }), this._carouselKey = 0, this._deployingDialogRef = i(), this._carouselRef = i(), this._carouselMessages = [], this._confirmUnload = !1, this.deployingDialogOpened = a(), this.deploymentProcessCancelled = a(), this.listenOn(window, "beforeunload", (e) => {
|
|
12
12
|
(this._confirmUnload || this._showIsCancelling) && (e.preventDefault(), e.returnValue = !0);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
@@ -35,14 +35,14 @@ class g extends h {
|
|
|
35
35
|
render() {
|
|
36
36
|
return t`<calcite-dialog close-disabled .heading=${this._translations.title.replace("{{solution}}", this.card?.title ?? "")} escape-disabled modal width=m .open=${this.open} @calciteDialogBeforeClose=${(e) => {
|
|
37
37
|
e.preventDefault(), this._confirmUnload = !1;
|
|
38
|
-
}} @calciteDialogOpen=${() => this._onDialogOpen()} outside-close-disabled ${
|
|
38
|
+
}} @calciteDialogOpen=${() => this._onDialogOpen()} outside-close-disabled ${l(this._deployingDialogRef)}>${this._showCancelConfirmation ? this.renderCancelModal() : this._showIsCancelling ? this.renderCancellingModal() : t`<calcite-panel class="panel-bg-white">${this.isWaitingForCard ? t`<calcite-loader .label=${this._translations.deploymentInProgress} scale=l type=indeterminate></calcite-loader><div class="loader-text" tabindex=0>${this._translations.deploymentInProgress}</div>` : t`<calcite-loader .label=${this._translations.deploymentInProgress} scale=l type=determinate-value .value=${this.deploymentProgress}></calcite-loader><div class="loader-text" tabindex=0>${this._translations.deploymentInProgress}</div>`}<div class="carousel-style">${r(this._carouselKey, t`<calcite-carousel .label=${this._translations.newsAndFeatures} arrow-type=inline ${l(this._carouselRef)}>${this.renderCarouselItems()}</calcite-carousel>`)}</div></calcite-panel>`}${!this._showCancelConfirmation && !this._showIsCancelling && t`<calcite-button appearance=outline @click=${this.confirmCancel} slot=footer-end>${this._translations.cancel}</calcite-button>` || ""}${this._showCancelConfirmation && t`<calcite-button kind=brand @click=${() => {
|
|
39
39
|
this._isInCancelConfirmation = !1, this._showCancelConfirmation = !1;
|
|
40
40
|
}} slot=footer-end>${this._translations.continueDeployment}</calcite-button><calcite-button appearance=outline @click=${this.cancelDeployment} slot=footer-end>${this._translations.cancelDeploymentButton}</calcite-button>` || ""}</calcite-dialog>`;
|
|
41
41
|
}
|
|
42
42
|
renderCarouselItems() {
|
|
43
43
|
const e = [];
|
|
44
44
|
return this._carouselMessages.forEach((s, o) => {
|
|
45
|
-
e.push(t`<calcite-carousel-item .label=${`carousel-item-${o}`}><calcite-label layout=inline scale=
|
|
45
|
+
e.push(t`<calcite-carousel-item .label=${`carousel-item-${o}`}><calcite-label layout=inline scale=m>${s.icon && t`<calcite-icon .icon=${s.icon} class="padding-end-0-5"></calcite-icon>` || ""}<span .innerHTML=${this._processCarouselMessage(s) ?? ""} tabindex=0></span></calcite-label></calcite-carousel-item>`);
|
|
46
46
|
}), e;
|
|
47
47
|
}
|
|
48
48
|
_getCarouselMessages() {
|
|
@@ -85,10 +85,10 @@ class g extends h {
|
|
|
85
85
|
return s.includes("{{url}}") && e.url && (s = s.replace("{{url}}", e.url)), s;
|
|
86
86
|
}
|
|
87
87
|
renderCancelModal() {
|
|
88
|
-
return t`<calcite-panel class="panel-bg-white">${this._translations.deploymentCancelMessage}</calcite-panel>`;
|
|
88
|
+
return t`<calcite-panel class="panel-bg-white"><div tabindex=0>${this._translations.deploymentCancelMessage}</div></calcite-panel>`;
|
|
89
89
|
}
|
|
90
90
|
renderCancellingModal() {
|
|
91
|
-
return t`<calcite-panel class="panel-bg-white"><calcite-loader .label=${this._translations.cancelCurrentDeployment}></calcite-loader><div class="loader-text">${this._translations.cancelCurrentDeployment}</div></calcite-panel>`;
|
|
91
|
+
return t`<calcite-panel class="panel-bg-white"><calcite-loader .label=${this._translations.cancelCurrentDeployment}></calcite-loader><div class="loader-text" tabindex=0>${this._translations.cancelCurrentDeployment}</div></calcite-panel>`;
|
|
92
92
|
}
|
|
93
93
|
_onDialogOpen() {
|
|
94
94
|
this._confirmUnload = !0, this._carouselKey++, this._translations.carousel && (this._carouselMessages = this._getCarouselMessages()), this.deployingDialogOpened.emit(), setTimeout(() => {
|
|
@@ -3,14 +3,14 @@ import { c as h } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as p, html as o } from "lit";
|
|
4
4
|
import { u as m } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as u, createEvent as f, nothing as r, safeClassMap as g } from "@arcgis/lumina";
|
|
6
|
-
import { useContextConsumer as
|
|
7
|
-
import { A as
|
|
6
|
+
import { useContextConsumer as b } from "@arcgis/lumina/context";
|
|
7
|
+
import { A as x, T as v, J as y } from "../../chunks/interfaces.js";
|
|
8
8
|
import { c as $ } from "../../chunks/cardsHelpers.js";
|
|
9
|
-
const _ = p`calcite-card{height:100%;padding-bottom:2px}@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{
|
|
9
|
+
const _ = p`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)}.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%}`;
|
|
10
10
|
class C extends u {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(...arguments), this.referrerSolutionId = "", this.referrerSolutionTitle = "", this.referrerSolutionVersion = "", this.source = "all-solutions", this._translations = m({ name: "solution-details-card", blocking: !0 }), this._configContextConsumer =
|
|
13
|
-
context:
|
|
12
|
+
super(...arguments), this.referrerSolutionId = "", this.referrerSolutionTitle = "", this.referrerSolutionVersion = "", this.source = "all-solutions", this._translations = m({ name: "solution-details-card", blocking: !0 }), this._configContextConsumer = b({
|
|
13
|
+
context: x,
|
|
14
14
|
subscribe: !0
|
|
15
15
|
}), this.detailsCardSelected = f();
|
|
16
16
|
}
|
|
@@ -41,7 +41,7 @@ class C extends u {
|
|
|
41
41
|
this.card?.deployVersion || ""
|
|
42
42
|
];
|
|
43
43
|
this._telemetry?.logEvent({
|
|
44
|
-
category:
|
|
44
|
+
category: v.SOLUTION_DETAILS,
|
|
45
45
|
action: "Related Solution",
|
|
46
46
|
dimensions: t
|
|
47
47
|
});
|
|
@@ -11,7 +11,7 @@ import { _findExistingItem as G } from "@esri/solution-deployer";
|
|
|
11
11
|
import "../../chunks/solution-deploy-dialog.js";
|
|
12
12
|
import "../solution-snapshot-gallery/customElement.js";
|
|
13
13
|
import "../solution-deploying-dialog/customElement.js";
|
|
14
|
-
const W = N`.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.flex-1{flex:1}.cursor-default{cursor:default}solution-details-card[id*=you-may-also-like]{width:240px}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}ul ul{list-style-type:circle}li{margin:var(--calcite-spacing-sm) var(--calcite-spacing-none)}calcite-label{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.padding-1{padding:var(--calcite-spacing-lg)}.padding-1-5{padding:var(--calcite-spacing-xl)}.padding-2px{padding:var(--calcite-spacing-base)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-bottom-sm{padding-bottom:var(--calcite-spacing-sm)}.padding-top-md{padding-top:var(--calcite-spacing-md)}.padding-top-sm{padding-top:var(--calcite-spacing-sm)}.padding-top-xs{padding-top:.25rem}.padding-bottom-1-5{padding-bottom:var(--calcite-spacing-xxl)}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-top-1-5{padding-top:var(--calcite-spacing-xxl)}.padding-top-1-2{padding-top:var(--calcite-spacing-sm)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-1-75{padding-inline-end:1.75rem}.padding-end-2{padding-inline-end:var(--calcite-spacing-xxxl)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-bottom-1{margin-bottom:var(--calcite-spacing-lg)}.margin-bottom-1-5{margin-bottom:var(--calcite-spacing-xxl)}.margin-end-1{margin-inline-end:var(--calcite-spacing-lg)}.margin-top-0{margin-top:var(--calcite-spacing-none)}.margin-top-1{margin-top:var(--calcite-spacing-lg)}.margin-top-875{margin-top:.875rem}.margin-top-1-5{margin-top:var(--calcite-spacing-xxl)}.margin-sides-0-5{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm)}.margin-sides-1{margin-left:var(--calcite-spacing-lg);margin-right:var(--calcite-spacing-lg)}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.image-width{flex-grow:0;flex-shrink:1}}.width-full{width:100%}@media(max-width:768px){.width-full{flex-direction:column}.width-full>.display-flex{flex-direction:column}.image-width{width:100%;padding-inline-end:0;margin-bottom:var(--calcite-spacing-lg)}.button-width{width:100%;margin-top:var(--calcite-spacing-lg)}}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-sm) var(--calcite-spacing-md)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}calcite-card{width:450px;--calcite-card-border-color: transparent}@media(max-width:1496px){calcite-card{width:calc(100% / 3 - .5rem)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}}@media(max-width:1100px){calcite-card{width:calc(50% - .5rem)}#screenshots-subsection calcite-card{width:calc(50% - .5rem)}}@media(max-width:550px){calcite-card{width:100%}#screenshots-subsection calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}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:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding:var(--calcite-spacing-base)}calcite-card.is-mobile:hover img{cursor:default;-webkit-filter:brightness(100%);filter:brightness(100%);transition:all .1s ease}calcite-card{border:var(--calcite-spacing-base) solid transparent;box-sizing:border-box;padding:var(--calcite-spacing-base)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.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;display:block}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-foreground-2)}.back-color-override-1{background-color:var(--calcite-color-foreground-1)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.line-height-xxl{line-height:var(--calcite-spacing-xxl)}.line-height-1{line-height:1.1}.font-1{font-size:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}.font-color-2{color:var(--calcite-color-text-2)}h1{font-weight:unset;margin:var(--calcite-spacing-none);padding:var(--calcite-spacing-none)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-foreground-1)}.table-cell{font-size:var(--calcite-spacing-lg);color:var(--calcite-color-text-2);margin:0}.table-cell p{margin:0}calcite-table-header{font-weight:var(--calcite-font-weight-medium);--calcite-internal-table-cell-font-size: var(--calcite-font-size-md)}.position-relative{position:relative}.background-color-2{background-color:var(--calcite-color-foreground-2)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-foreground-2);background-color:var(--calcite-color-foreground-2)}.border-none{border:none}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}calcite-shell{block-size:unset}.solution-detail-action{--calcite-color-focus: initial}a{color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:hover{background-size:100% 1px,100% 1px}a:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:active{color:var(--calcite-color-brand-press)}`;
|
|
14
|
+
const W = N`.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.flex-1{flex:1}.cursor-default{cursor:default}solution-details-card[id*=you-may-also-like]{width:240px}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}ul ul{list-style-type:circle}li{margin:var(--calcite-spacing-sm) var(--calcite-spacing-none)}calcite-label{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.padding-1{padding:var(--calcite-spacing-lg)}.padding-1-5{padding:var(--calcite-spacing-xl)}.padding-2px{padding:var(--calcite-spacing-base)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-bottom-sm{padding-bottom:var(--calcite-spacing-sm)}.padding-top-md{padding-top:var(--calcite-spacing-md)}.padding-top-sm{padding-top:var(--calcite-spacing-sm)}.padding-top-xs{padding-top:.25rem}.padding-bottom-1-5{padding-bottom:var(--calcite-spacing-xxl)}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-top-1-5{padding-top:var(--calcite-spacing-xxl)}.padding-top-1-2{padding-top:var(--calcite-spacing-sm)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-1-75{padding-inline-end:1.75rem}.padding-end-2{padding-inline-end:var(--calcite-spacing-xxxl)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-bottom-1{margin-bottom:var(--calcite-spacing-lg)}.margin-bottom-1-5{margin-bottom:var(--calcite-spacing-xxl)}.margin-end-1{margin-inline-end:var(--calcite-spacing-lg)}.margin-top-0{margin-top:var(--calcite-spacing-none)}.margin-top-1{margin-top:var(--calcite-spacing-lg)}.margin-top-875{margin-top:.875rem}.margin-top-1-5{margin-top:var(--calcite-spacing-xxl)}.margin-sides-0-5{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm)}.margin-sides-1{margin-left:var(--calcite-spacing-lg);margin-right:var(--calcite-spacing-lg)}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.image-width{flex-grow:0;flex-shrink:1}}.width-full{width:100%}@media(max-width:768px){.width-full{flex-direction:column}.width-full>.display-flex{flex-direction:column}.image-width{width:100%;padding-inline-end:0;margin-bottom:var(--calcite-spacing-lg)}.button-width{width:100%;margin-top:var(--calcite-spacing-lg)}}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-sm) var(--calcite-spacing-md)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}calcite-card{width:450px;--calcite-card-border-color: transparent}@media(max-width:1496px){calcite-card{width:calc(100% / 3 - .5rem)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}}@media(max-width:1100px){calcite-card{width:calc(50% - .5rem)}#screenshots-subsection calcite-card{width:calc(50% - .5rem)}}@media(max-width:550px){calcite-card{width:100%}#screenshots-subsection calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}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:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding:var(--calcite-spacing-base)}calcite-card.is-mobile:hover img{cursor:default;-webkit-filter:brightness(100%);filter:brightness(100%);transition:all .1s ease}calcite-card{border:var(--calcite-spacing-base) solid transparent;box-sizing:border-box;padding:var(--calcite-spacing-base)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.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;display:block}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-foreground-2)}.back-color-override-1{background-color:var(--calcite-color-foreground-1)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.line-height-xxl{line-height:var(--calcite-spacing-xxl)}.line-height-1{line-height:1.1}.font-1{font-size:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}.font-color-2{color:var(--calcite-color-text-2)}h1{font-weight:unset;margin:var(--calcite-spacing-none);padding:var(--calcite-spacing-none)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-foreground-1)}.table-cell{font-size:var(--calcite-spacing-lg);color:var(--calcite-color-text-2);margin:0}.table-cell p{margin:0}calcite-table-header{font-weight:var(--calcite-font-weight-medium);--calcite-internal-table-cell-font-size: var(--calcite-font-size-md)}.position-relative{position:relative}.background-color-2{background-color:var(--calcite-color-foreground-2)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-foreground-2);background-color:var(--calcite-color-foreground-2)}.border-none{border:none}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}calcite-shell{block-size:unset}.solution-detail-action{--calcite-color-focus: initial}a{color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:hover{background-size:100% 1px,100% 1px}a:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:active{color:var(--calcite-color-brand-press)}*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}`;
|
|
15
15
|
async function K(n, e, t) {
|
|
16
16
|
let i = t;
|
|
17
17
|
return n && (n?.IsEnterprisePortal && await X(
|
|
@@ -193,7 +193,7 @@ class te extends C {
|
|
|
193
193
|
return a`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title ?? y} src=${e ?? y}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i, o, r, t, s, l)}${this._getButtons()}</div></div>`;
|
|
194
194
|
}
|
|
195
195
|
_getTextSection(e, t, i, s, o, l) {
|
|
196
|
-
return a`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1">${this.card?.title}</h1>${this.card?.categories?.some((r) => r.includes("New Release")) && a`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>` || ""}</div><div class="font-1 padding-end-1 line-height-xxl">${this.card?.snippet}</div>${this.isMobile ? "" : e || t || i ? a`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s, o, l)}</div>` : ""}</div>`;
|
|
196
|
+
return a`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1" tabindex=0>${this.card?.title}</h1>${this.card?.categories?.some((r) => r.includes("New Release")) && a`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>` || ""}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile ? "" : e || t || i ? a`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s, o, l)}</div>` : ""}</div>`;
|
|
197
197
|
}
|
|
198
198
|
_getButtons() {
|
|
199
199
|
const e = this._itemProperties?.demoURL || "";
|
|
@@ -245,10 +245,10 @@ class te extends C {
|
|
|
245
245
|
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`;
|
|
246
246
|
}
|
|
247
247
|
_getDescriptionRow() {
|
|
248
|
-
return a`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl">${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description ?? ""}></div></div>`;
|
|
248
|
+
return a`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" tabindex=0>${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description ?? ""} tabindex=0></div></div>`;
|
|
249
249
|
}
|
|
250
250
|
_getInformationProductsRow() {
|
|
251
|
-
return a`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span>${this.card?.title ? this._translations.informationProductsSubText.replace("{{solutionTitle}}", this.card.title) : ""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p>${this._translations.informationProductsFooterText}</p></div>`;
|
|
251
|
+
return a`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span tabindex=0>${this.card?.title ? this._translations.informationProductsSubText.replace("{{solutionTitle}}", this.card.title) : ""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p tabindex=0>${this._translations.informationProductsFooterText}</p></div>`;
|
|
252
252
|
}
|
|
253
253
|
_getInformationTableHeaderRow() {
|
|
254
254
|
return a`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`;
|
|
@@ -284,7 +284,7 @@ class te extends C {
|
|
|
284
284
|
return this._allCards.filter((t) => e.indexOf(t.deployCommonId) > -1);
|
|
285
285
|
}
|
|
286
286
|
_getTermsOfUseRow() {
|
|
287
|
-
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo || "") ?? ""}></div></calcite-accordion-item></calcite-accordion>`;
|
|
287
|
+
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo || "") ?? ""} tabindex=0></div></calcite-accordion-item></calcite-accordion>`;
|
|
288
288
|
}
|
|
289
289
|
_openDeploy() {
|
|
290
290
|
if (this._configContextConsumer.value.authentication.IsSignedIn) {
|