@esri/solutions-components 5.1.0-next.151 → 5.1.0-next.153

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.
Files changed (34) hide show
  1. package/dist/cdn/{IC6KIGR4.js → 3CDO3ATJ.js} +1 -1
  2. package/dist/cdn/{PWTMEYVV.js → 3S5PVZVU.js} +1 -1
  3. package/dist/cdn/{ZVXEOW2X.js → 4D4UXCEU.js} +1 -1
  4. package/dist/cdn/BAFYN4RD.js +2 -0
  5. package/dist/cdn/CDJCXGBN.js +2 -0
  6. package/dist/cdn/{N7VSZ2CS.js → D6VR7GCD.js} +1 -1
  7. package/dist/cdn/{4QOD7X43.js → DN3PZCF4.js} +1 -1
  8. package/dist/cdn/{7GVN2XEM.js → EVO7B63R.js} +1 -1
  9. package/dist/cdn/{KK7S3QIA.js → GWJRCE5C.js} +28 -28
  10. package/dist/cdn/{DQXGBGQS.js → LBY3ZNJE.js} +1 -1
  11. package/dist/cdn/{LQ4BLDUU.js → PX6AYCC4.js} +1 -1
  12. package/dist/cdn/QFFHU77I.js +2 -0
  13. package/dist/cdn/{2BIUOM64.js → S37TPZAO.js} +1 -1
  14. package/dist/cdn/SJ7HTNAT.js +2 -0
  15. package/dist/cdn/{U74P7HIL.js → TB33W36T.js} +1 -1
  16. package/dist/cdn/{QC4MO5BO.js → WG5NM5XY.js} +1 -1
  17. package/dist/cdn/{5O7LFBHI.js → XJAXXELZ.js} +1 -1
  18. package/dist/cdn/index.js +1 -1
  19. package/dist/chunks/converter.js +64 -64
  20. package/dist/chunks/solution-builder-assistant.js +5 -3
  21. package/dist/chunks/validators.js +9 -6
  22. package/dist/components/arcgis-solutions-assistant/customElement.js +395 -428
  23. package/dist/components/card-manager/customElement.js +42 -38
  24. package/dist/components/layer-table/customElement.js +8 -14
  25. package/dist/components/solution-deployed-card-panel/customElement.js +19 -19
  26. package/dist/docs/api.json +1 -1
  27. package/dist/docs/docs.json +1 -1
  28. package/dist/docs/web-types.json +1 -1
  29. package/dist/solutions-components_commit.txt +7 -7
  30. package/package.json +1 -1
  31. package/dist/cdn/HQLA2AI4.js +0 -2
  32. package/dist/cdn/I46CXTVR.js +0 -2
  33. package/dist/cdn/PGW5WSQA.js +0 -2
  34. package/dist/cdn/ZFF7I7I6.js +0 -2
@@ -1,16 +1,16 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as w } from "../../chunks/runtime.js";
3
- import { css as b, html as s } from "lit";
4
- import { a as c } from "../../chunks/queryUtils.js";
5
- import { g as _ } from "../../chunks/mapViewUtils.js";
6
- import { u as f } from "../../chunks/useT9n.js";
3
+ import { css as g, html as o } from "lit";
4
+ import { a as h } from "../../chunks/queryUtils.js";
5
+ import { g as f } from "../../chunks/mapViewUtils.js";
6
+ import { u as _ } from "../../chunks/useT9n.js";
7
7
  import { createRef as p, ref as d } from "lit-html/directives/ref.js";
8
- import { LitElement as y, createEvent as o, noShadowRoot as F, safeClassMap as v } from "@arcgis/lumina";
9
- const $ = b`@layer{:host{display:block!important}.display-none{display:none}.padding-1{padding:1rem}.position-relative{position:relative}.overflow-auto{overflow:auto}.height-full{height:100%}.paste-component{--arcgis-paste-height: 100%;--arcgis-paste-width: 100%;height:100%;width:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}.margin-top-10{margin-top:10px}card-manager{display:block}}`;
8
+ import { LitElement as y, createEvent as r, noShadowRoot as F, safeClassMap as v } from "@arcgis/lumina";
9
+ const $ = g`@layer{:host{display:block!important}.display-none{display:none}.padding-1{padding:1rem}.position-relative{position:relative}.overflow-auto{overflow:auto}.height-full{height:100%}.paste-component{--arcgis-paste-height: 100%;--arcgis-paste-width: 100%;height:100%;width:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}.margin-top-10{margin-top:10px}card-manager{display:block}}`;
10
10
  class S extends y {
11
11
  constructor() {
12
- super(), this.customInfoText = "", this.enableEditGeometry = !1, this.enableSnapping = !1, this.isMobile = !1, this.zoomAndScrollToSelected = !1, this.selectedFeaturesIds = [], this.enableCreateFeatures = !0, this.createBtnLabel = "", this.selectingFeatureFromMap = !1, this.showSketchWidgets = !1, this.mapComponentId = "", this.pasteEnabled = !1, this.showCopyPasteActions = !1, this.allowedPasteLayerIds = [], this._cardLoading = !1, this._graphics = [], this._showCreateFeatureComponent = !1, this._showSubmitBtn = !1, this._activeFeatureCreationCount = 1, this._isPasting = !1, this._translations = f({ name: "card-manager", blocking: !0 }), this._isFeatureCreated = !1, this._createFeature = p(), this._pasteComponent = p(), this.createWorkFlowStarted = o(), this.backFromCreateWorkFlow = o(), this.featureOrRecordSubmitted = o(), this.featuresCopied = o(), this.featuresPasted = o(), this._featuresAdded = () => {
13
- this._isPasting && this._pasteComponent.value && this._resetPasteWorkflow();
12
+ super(), this.customInfoText = "", this.enableEditGeometry = !1, this.enableSnapping = !1, this.isMobile = !1, this.zoomAndScrollToSelected = !1, this.selectedFeaturesIds = [], this.enableCreateFeatures = !0, this.createBtnLabel = "", this.selectingFeatureFromMap = !1, this.showSketchWidgets = !1, this.mapComponentId = "", this.pasteEnabled = !1, this.showCopyPasteActions = !1, this.allowedPasteLayerIds = [], this._cardLoading = !1, this._graphics = [], this._showCreateFeatureComponent = !1, this._showSubmitBtn = !1, this._activeFeatureCreationCount = 1, this._translations = _({ name: "card-manager", blocking: !0 }), this._isFeatureCreated = !1, this._createFeature = p(), this._pasteComponent = p(), this.createWorkFlowStarted = r(), this.backFromCreateWorkFlow = r(), this.featureOrRecordSubmitted = r(), this.featuresCopied = r(), this.featuresPasted = r(), this._featuresAdded = () => {
13
+ this._pasteComponent.value && this._resetPasteWorkflow();
14
14
  }, this._initCreateComponent = () => {
15
15
  this._showCreateFeatureComponent = !0;
16
16
  }, this._pasteComponentReady = async () => {
@@ -19,19 +19,26 @@ class S extends y {
19
19
  await e.viewOnReady(), this._pasteComponent.value.referenceElement = e;
20
20
  }
21
21
  }, this._applyPasteCommand = async (e) => {
22
- if (!this._pasteComponent.value) {
23
- console.error("Paste failed: paste component is not available.");
24
- return;
25
- }
26
- try {
27
- e.detail.applySet && (this._isPasting = !0, await this._pasteComponent.value.writeChanges(e.detail.applySet), await this._resetPasteWorkflow());
28
- } catch (t) {
29
- await this._resetPasteWorkflow(), console.error("Paste failed:", t);
30
- }
22
+ const t = new Promise((a, i) => {
23
+ if (!this._pasteComponent.value) {
24
+ console.error("Paste failed: paste component is not available."), a();
25
+ return;
26
+ }
27
+ try {
28
+ e.detail.applySet ? this._pasteComponent.value.writeChanges(e.detail.applySet).then(() => {
29
+ this._resetPasteWorkflow(), a();
30
+ }).catch((s) => {
31
+ console.log(s), i(s);
32
+ }) : a();
33
+ } catch (s) {
34
+ i(s), console.error("Paste failed:", s);
35
+ }
36
+ });
37
+ e.detail.completionCallback = t;
31
38
  }, this.listenOn(window, "featureSelectionChange", this.featureSelectionChange), this.listenOn(window, "layerSelectionChange", this.layerSelectionChange), this.listenOn(window, "mapChanged", this.mapChanged), this.listenOn(window, "relatedRecordToggled", this.relatedRecordToggled), this.listenOn(window, "copyFeatures", this._copyFeatures), this.listenOn(window, "pasteFeatures", this._pasteFeatures), this.listenOn(window, "featuresAdded", this._featuresAdded), this.listenOn(window, "initCreateComponent", this._initCreateComponent);
32
39
  }
33
40
  static {
34
- this.properties = { customInfoText: 1, enableEditGeometry: 5, enableSnapping: 5, isMobile: 5, layerOrTable: 0, mapView: 0, zoomAndScrollToSelected: 5, selectedFeaturesIds: 0, enableCreateFeatures: 5, createBtnLabel: 1, selectingFeatureFromMap: 5, showSketchWidgets: 5, mapComponentId: 1, pasteEnabled: 5, showCopyPasteActions: 5, allowedPasteLayerIds: 0, _cardLoading: 16, _graphics: 16, _showCreateFeatureComponent: 16, _showSubmitBtn: 16, _activeFeatureCreationCount: 16, _isPasting: 16, _translations: 16 };
41
+ this.properties = { customInfoText: 1, enableEditGeometry: 5, enableSnapping: 5, isMobile: 5, layerOrTable: 0, mapView: 0, zoomAndScrollToSelected: 5, selectedFeaturesIds: 0, enableCreateFeatures: 5, createBtnLabel: 1, selectingFeatureFromMap: 5, showSketchWidgets: 5, mapComponentId: 1, pasteEnabled: 5, showCopyPasteActions: 5, allowedPasteLayerIds: 0, _cardLoading: 16, _graphics: 16, _showCreateFeatureComponent: 16, _showSubmitBtn: 16, _activeFeatureCreationCount: 16, _translations: 16 };
35
42
  }
36
43
  static {
37
44
  this.styles = $;
@@ -47,7 +54,7 @@ class S extends y {
47
54
  async layerSelectionChange(e) {
48
55
  this._showCreateFeatureComponent && this._backFromCreateFeature();
49
56
  const t = e.detail[0];
50
- this.layerOrTable = this.mapView ? await _(this.mapView, t) : void 0, await this._resetPasteWorkflow();
57
+ this.layerOrTable = this.mapView ? await f(this.mapView, t) : void 0, await this._resetPasteWorkflow();
51
58
  }
52
59
  async mapChanged(e) {
53
60
  await this._resetPasteWorkflow();
@@ -59,15 +66,15 @@ class S extends y {
59
66
  async _copyFeatures(e) {
60
67
  if (!this._pasteComponent.value)
61
68
  return;
62
- const t = e.detail.featuresIds, a = this.layerOrTable, i = await c(t, a, [], !0, this.mapView?.spatialReference), r = [];
69
+ const t = e.detail.featuresIds, a = this.layerOrTable, i = await h(t, a, [], !0, this.mapView?.spatialReference), s = [];
63
70
  i.forEach((n) => {
64
71
  const l = {
65
72
  layer: n.layer,
66
73
  graphic: n,
67
74
  type: "feature"
68
75
  };
69
- r.push(l);
70
- }), this._pasteComponent.value.clipboard.setData(r), this.featuresCopied.emit(), this.requestUpdate();
76
+ s.push(l);
77
+ }), this._pasteComponent.value.clipboard.setData(s), this.featuresCopied.emit(), this.requestUpdate();
71
78
  }
72
79
  async _pasteFeatures(e) {
73
80
  if (!this._pasteComponent.value) {
@@ -88,30 +95,27 @@ class S extends y {
88
95
  };
89
96
  }
90
97
  async _resetPasteWorkflow() {
91
- if (!this._pasteComponent.value) {
92
- this._isPasting = !1;
93
- return;
94
- }
95
- try {
96
- await this._pasteComponent.value.showClipboardItems(!1), await this._pasteComponent.value.cancelMoveClipboard();
97
- } catch (e) {
98
- console.error("Reset paste workflow failed:", e);
99
- } finally {
100
- this._isPasting = !1, this._pasteComponent.value.closed = !0;
101
- }
98
+ if (this._pasteComponent.value)
99
+ try {
100
+ await this._pasteComponent.value.showClipboardItems(!1), await this._pasteComponent.value.cancelMoveClipboard();
101
+ } catch (e) {
102
+ console.error("Reset paste workflow failed:", e);
103
+ } finally {
104
+ this._pasteComponent.value.closed = !0;
105
+ }
102
106
  }
103
107
  async load() {
104
108
  this.selectedFeaturesIds?.length > 0 && (this._graphics = await this._getFeaturesByIds(this.selectedFeaturesIds));
105
109
  }
106
110
  render() {
107
- const e = (this._pasteComponent.value?.closed || !this.showCopyPasteActions) && this._graphics?.length > 0, t = this._pasteComponent.value?.closed ? "display-none" : "", a = this._graphics?.length === 0 && this._showCreateFeatureComponent ? "" : "display-none", i = this._graphics?.length > 0 || this._showCreateFeatureComponent || !this._pasteComponent.value?.closed && this.showCopyPasteActions ? "display-none" : "", r = this.layerOrTable?.isTable, n = this.customInfoText ? this.customInfoText : this.selectingFeatureFromMap ? this._translations.selectFeaturesFromMapToStart : this._translations.selectFeaturesToStart, l = this.enableCreateFeatures && this.layerOrTable?.editingEnabled && this.layerOrTable?.capabilities?.operations?.supportsAdd, h = this.createBtnLabel ? this.createBtnLabel : r ? this._translations.createRecord : this._translations.createFeature, u = !this.layerOrTable, m = this.enableSnapping && !this.layerOrTable?.isTable, C = this.layerOrTable?.isTable ? ["paste"] : ["paste", "paste-as"], g = !this.layerOrTable?.isTable;
108
- return s`<calcite-panel><div class="overflow-auto height-full">${e && s`<calcite-shell class=${"position-relative"}><div class="position-static z-index-500 height-full"><info-card .allowEditing=${this.layerOrTable?.editingEnabled} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${m} .graphics=${this._graphics.reverse()} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} .featuresReferenceId=${this.mapComponentId} position=relative .pasteEnabled=${this.pasteEnabled} show-close-btn .showCopyPasteActions=${this.showCopyPasteActions}></info-card></div></calcite-shell>` || ""}<calcite-shell class=${`position-relative ${i}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap ? "map" : "table"} icon-flip-rtl open><div slot=message>${n}</div></calcite-notice></div>${!this.isMobile && l && s`<calcite-button .disabled=${u} @click=${() => this._createFeatureBtnClicked()} slot=footer width=full>${h}</calcite-button>` || ""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${a}`}><calcite-flow-item selected><calcite-panel .heading=${h}><calcite-action class="back-button hydrated" icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start .text=${this._translations.back}></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn && s`<calcite-button appearance=solid class="footer-top-button footer-button" @click=${() => this._createFeature.value && void this._createFeature.value.submit()} slot=footer width=full>${this._activeFeatureCreationCount > 1 ? this._translations.createMultiple.replace("{{n}}", String(this._activeFeatureCreationCount)) : this._translations.create}</calcite-button>` || ""}</calcite-panel></calcite-flow-item></calcite-shell>${this.showCopyPasteActions && s`<calcite-panel class=${v(t)} .loading=${this._isPasting}><arcgis-paste always-show-feature-form class=${`paste-component ${t}`} closed @arcgisReady=${this._pasteComponentReady} @arcgisApplyPasteCommand=${this._applyPasteCommand} @arcgisClose=${() => {
111
+ const e = (this._pasteComponent.value?.closed || !this.showCopyPasteActions) && this._graphics?.length > 0, t = this._pasteComponent.value?.closed ? "display-none" : "", a = this._graphics?.length === 0 && this._showCreateFeatureComponent ? "" : "display-none", i = this._graphics?.length > 0 || this._showCreateFeatureComponent || !this._pasteComponent.value?.closed && this.showCopyPasteActions ? "display-none" : "", s = this.layerOrTable?.isTable, n = this.customInfoText ? this.customInfoText : this.selectingFeatureFromMap ? this._translations.selectFeaturesFromMapToStart : this._translations.selectFeaturesToStart, l = this.enableCreateFeatures && this.layerOrTable?.editingEnabled && this.layerOrTable?.capabilities?.operations?.supportsAdd, c = this.createBtnLabel ? this.createBtnLabel : s ? this._translations.createRecord : this._translations.createFeature, u = !this.layerOrTable, m = this.enableSnapping && !this.layerOrTable?.isTable, C = this.layerOrTable?.isTable ? ["paste"] : ["paste", "paste-as"], b = !this.layerOrTable?.isTable;
112
+ return o`<calcite-panel><div class="overflow-auto height-full">${e && o`<calcite-shell class=${"position-relative"}><div class="position-static z-index-500 height-full"><info-card .allowEditing=${this.layerOrTable?.editingEnabled} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${m} .graphics=${this._graphics.reverse()} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} .featuresReferenceId=${this.mapComponentId} position=relative .pasteEnabled=${this.pasteEnabled} show-close-btn .showCopyPasteActions=${this.showCopyPasteActions}></info-card></div></calcite-shell>` || ""}<calcite-shell class=${`position-relative ${i}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap ? "map" : "table"} icon-flip-rtl open><div slot=message>${n}</div></calcite-notice></div>${!this.isMobile && l && o`<calcite-button .disabled=${u} @click=${() => this._createFeatureBtnClicked()} slot=footer width=full>${c}</calcite-button>` || ""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${a}`}><calcite-flow-item selected><calcite-panel .heading=${c}><calcite-action class="back-button hydrated" icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start .text=${this._translations.back}></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn && o`<calcite-button appearance=solid class="footer-top-button footer-button" @click=${() => this._createFeature.value && void this._createFeature.value.submit()} slot=footer width=full>${this._activeFeatureCreationCount > 1 ? this._translations.createMultiple.replace("{{n}}", String(this._activeFeatureCreationCount)) : this._translations.create}</calcite-button>` || ""}</calcite-panel></calcite-flow-item></calcite-shell>${this.showCopyPasteActions && o`<calcite-panel class=${v(t)}><arcgis-paste always-show-feature-form class=${`paste-component ${t}`} closed @arcgisReady=${this._pasteComponentReady} @arcgisApplyPasteCommand=${this._applyPasteCommand} @arcgisClose=${() => {
109
113
  this._resetPasteWorkflow();
110
- }} paste-with-multiple-layers-enabled paste-with-multiple-features-enabled .layerPermissionsCheck=${this._getLayerPermissionsCheck()} .supportedCommands=${C} .view=${this.mapView} ${d(this._pasteComponent)}>${g && s`<calcite-notice slot=commands-page-message class="margin-top-10" open icon=move><div slot=message>${this._translations.moveClipboardFeatures}</div></calcite-notice>` || ""}</arcgis-paste></calcite-panel>` || ""}</div></calcite-panel>`;
114
+ }} paste-with-multiple-layers-enabled paste-with-multiple-features-enabled .layerPermissionsCheck=${this._getLayerPermissionsCheck()} .supportedCommands=${C} .view=${this.mapView} ${d(this._pasteComponent)}>${b && o`<calcite-notice slot=commands-page-message class="margin-top-10" open icon=move><div slot=message>${this._translations.moveClipboardFeatures}</div></calcite-notice>` || ""}</arcgis-paste></calcite-panel>` || ""}</div></calcite-panel>`;
111
115
  }
112
116
  getEditorComponent() {
113
117
  const e = this.enableSnapping && !this.layerOrTable?.isTable && this.enableCreateFeatures;
114
- return s`<div>${this._showCreateFeatureComponent && s`<create-feature allow-multiple-creation customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @activeFeatureCountChange=${(t) => {
118
+ return o`<div>${this._showCreateFeatureComponent && o`<create-feature allow-multiple-creation customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @activeFeatureCountChange=${(t) => {
115
119
  this._activeFeatureCreationCount = t.detail, this._showSubmitBtn = this._activeFeatureCreationCount > 0;
116
120
  }} @drawComplete=${() => {
117
121
  this._showSubmitBtn = !0;
@@ -124,7 +128,7 @@ class S extends y {
124
128
  }} @success=${this._featureCreated} .showSketchWidgets=${this.showSketchWidgets} .selectedLayerId=${this.layerOrTable?.id} show-guiding-msg .showLayerVisibilityMsg=${this.layerOrTable?.visible === !1} ${d(this._createFeature)}></create-feature>` || ""}</div>`;
125
129
  }
126
130
  async _getFeaturesByIds(e) {
127
- return (e.length > 0 && this.layerOrTable && this.mapView ? await c(e, this.layerOrTable, [], !0, this.mapView?.spatialReference) : []).sort((a, i) => e.indexOf(Number(a.getObjectId())) - e.indexOf(Number(i.getObjectId())));
131
+ return (e.length > 0 && this.layerOrTable && this.mapView ? await h(e, this.layerOrTable, [], !0, this.mapView?.spatialReference) : []).sort((a, i) => e.indexOf(Number(a.getObjectId())) - e.indexOf(Number(i.getObjectId())));
128
132
  }
129
133
  _createFeatureBtnClicked() {
130
134
  this._showCreateFeatureComponent = !0, this.createWorkFlowStarted.emit();
@@ -444,7 +444,7 @@ class R extends A {
444
444
  try {
445
445
  const i = this._layer?.id;
446
446
  if (t === i) {
447
- await this._refresh(), this._clearSelection(), this._searchExpression && await this._searchFullText();
447
+ await this._refresh(!1, !0), this._clearSelection(), this._searchExpression && await this._searchFullText();
448
448
  const s = [];
449
449
  for (const a of e)
450
450
  this._allIds.includes(a) && s.push(a);
@@ -591,13 +591,7 @@ class R extends A {
591
591
  if (this._hasPendingEdits()) {
592
592
  let a = !1;
593
593
  try {
594
- if (this._editor.activeWorkflow) {
595
- const l = new Promise((h, r) => setTimeout(() => r(new Error("cancel-timeout")), 1e3));
596
- await Promise.race([
597
- this._editor.activeWorkflow.cancel({ force: !1 }),
598
- l
599
- ]);
600
- }
594
+ this._editor.activeWorkflow && await this._editor.activeWorkflow.cancel({ force: !1 });
601
595
  } catch (l) {
602
596
  a = l?.name === "workflow:cancel-denied";
603
597
  }
@@ -855,13 +849,13 @@ class R extends A {
855
849
  _updateToolInfoLoading(e, t) {
856
850
  this._toolInfos.some((i) => i?.icon === e ? (i.loading = t, !0) : !1);
857
851
  }
858
- async _refresh(e) {
859
- if (await this._validateActiveEdits([], this.selectedIds)) {
852
+ async _refresh(e, t) {
853
+ if (t ? !0 : await this._validateActiveEdits([], this.selectedIds)) {
860
854
  this._table && await this._table.refresh(), this._relatedFeatureTable && await this._relatedFeatureTable.refresh(), this._allIds = await this.queryAllIds();
861
- const i = this._getSelectedLayer(this.selectedRelatedIds);
862
- if (i && this.relatedRecordToggled.emit(i), !e) {
863
- const s = this._getSelectedIds();
864
- this.featureSelectionChange.emit(s);
855
+ const s = this._getSelectedLayer(this.selectedRelatedIds);
856
+ if (s && this.relatedRecordToggled.emit(s), !e) {
857
+ const a = this._getSelectedIds();
858
+ this.featureSelectionChange.emit(a);
865
859
  }
866
860
  }
867
861
  }
@@ -5,19 +5,19 @@ import { LitElement as v, createEvent as r, safeClassMap as y, nothing as c, saf
5
5
  import { useContextConsumer as g } from "@arcgis/lumina/context";
6
6
  import { css as $, html as i } from "lit";
7
7
  import { c as C, i as S } from "../../chunks/deployAppContexts.js";
8
- import { y as k, T as l, x as D, A as T } from "../../chunks/interfaces.js";
8
+ import { y as D, T as n, x as k, A as T } from "../../chunks/interfaces.js";
9
9
  import { f as h, a as I, b as u } from "../../chunks/cardsHelpers.js";
10
10
  import { g as O } from "../../chunks/getRelatedInfos.js";
11
11
  import { k as N, i as m, j as p, h as M } from "../../chunks/helpers.js";
12
12
  import * as f from "@esri/solution-common";
13
- const U = $`.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;block-size:2.5rem;min-block-size:2.5rem}.solution-deployed-action.padding-bottom-lg{padding-bottom:0;margin-bottom:var(--calcite-spacing-lg)}.solution-deployed-action::part(button){block-size:100%;min-block-size:100%}.chipClass{padding-left:var(--calcite-spacing-sm)!important;padding-right:var(--calcite-spacing-sm)!important}.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}}`;
13
+ const U = $`.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}.solution-deployed-action.padding-bottom-lg,.solution-deployed-action.padding-bottom-1{padding-bottom:0;margin-bottom:var(--calcite-spacing-lg)}.solution-deployed-action.padding-top-1{padding-top:0;margin-top:var(--calcite-spacing-lg)}.chipClass{padding-left:var(--calcite-spacing-sm)!important;padding-right:var(--calcite-spacing-sm)!important}.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}}`;
14
14
  class V extends v {
15
15
  constructor() {
16
16
  super(), this.diagramKey = "", this.open = !1, this.readOnlyNotice = "", this.templateInfos = [], this._accordionLoading = !1, this._configureTitlesOpen = !1, this._deleteDialogOpen = !1, this._hasNewVersion = !1, this._hasSourceSolution = !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 = x({ name: "solution-deployed-card-panel", blocking: !0 }), this._configContextConsumer = g({
17
17
  context: C,
18
18
  subscribe: !0,
19
19
  callback: async (e) => {
20
- e && (this._isOrgAdmin = k(e.authentication), this._user = e.authentication?.Portal?.user);
20
+ e && (this._isOrgAdmin = D(e.authentication), this._user = e.authentication?.Portal?.user);
21
21
  }
22
22
  }), this._isOrgAdmin = !1, this._isMobileContextConsumer = g({
23
23
  context: S,
@@ -25,7 +25,7 @@ class V extends v {
25
25
  callback: (e) => this.isMobile = e
26
26
  }), this.navTabSelected = r(), this.forceSelectTab = r(), this.sortTypeChanged = r(), this.solutionConfigureDialogClose = r(), this._nonSolutionDependencyItems = [], this._openFolder = (e) => {
27
27
  e.stopPropagation(), this._telemetry?.logEvent({
28
- category: l.DEPLOYMENTS,
28
+ category: n.DEPLOYMENTS,
29
29
  action: "Open Folder",
30
30
  dimensions: [
31
31
  this.card?.title || "",
@@ -37,9 +37,9 @@ class V extends v {
37
37
  const t = this._configContextConsumer.value?.orgUrl;
38
38
  if (!t)
39
39
  return;
40
- const a = this._configContextConsumer.value?.userSession?.username, n = this.card?.owner === a;
40
+ const a = this._configContextConsumer.value?.userSession?.username, l = this.card?.owner === a;
41
41
  let o;
42
- if (n) {
42
+ if (l) {
43
43
  const s = this._folderId || this.card?.owner;
44
44
  o = `${t}/home/content.html?folder=${s}`;
45
45
  } else
@@ -47,7 +47,7 @@ class V extends v {
47
47
  window.open(o, "_blank");
48
48
  }, this._openSourceSolutionDetails = async (e) => {
49
49
  e.stopPropagation(), this._telemetry?.logEvent({
50
- category: l.DEPLOYMENTS,
50
+ category: n.DEPLOYMENTS,
51
51
  action: "Open Details",
52
52
  dimensions: [
53
53
  this.card?.title || "",
@@ -100,11 +100,11 @@ class V extends v {
100
100
  this.card = t.card, this.cardRef = t.cardRef, this.templateInfos = [], this._accordionLoading = !0, this.templateInfos = await this._getTemplates(), this._accordionLoading = !1;
101
101
  const a = await O(this._configContextConsumer.value.userSession, this.card);
102
102
  this._nonSolutionDependencyItems = a._nonSolutionDependencyItems;
103
- const n = I(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
104
- this._hasSourceSolution = !!n;
103
+ const l = I(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
104
+ this._hasSourceSolution = !!l;
105
105
  let o = !1;
106
- if (n) {
107
- const s = u(n), d = u(this.card);
106
+ if (l) {
107
+ const s = u(l), d = u(this.card);
108
108
  o = s > d;
109
109
  }
110
110
  this._hasNewVersion = o, this._folderLoading = !0, this._folderName = "", this._folderId = null, await this._fetchFolderInfo(), this._folderLoading = !1;
@@ -113,8 +113,8 @@ class V extends v {
113
113
  e.detail === "deployed-card" && this.sortTypeChanged.emit("");
114
114
  }
115
115
  _getButtons() {
116
- const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, n = m(this._configContextConsumer.value), o = this.card?.owner === e || this._isOrgAdmin || t, s = this.card?.owner === e || this._isOrgAdmin || a, d = o ? "display-none" : "", b = this.isMobile ? "padding-lg" : "padding-xxl";
117
- return i`<div class=${`display-flex flex-direction-column ${b}`}>${!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>${o && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" .disabled=${n} id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${y(d)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${s && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" .disabled=${n} kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>` || ""}</div>`;
116
+ const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, l = m(this._configContextConsumer.value), o = this.card?.owner === e || this._isOrgAdmin || t, s = this.card?.owner === e || this._isOrgAdmin || a, d = o ? "display-none" : "", b = this.isMobile ? "padding-lg" : "padding-xxl";
117
+ return i`<div class=${`display-flex flex-direction-column ${b}`}>${!this.isMobile && i`<calcite-button appearance=outline-fill class="padding-bottom-1 solution-deployed-action" kind=neutral @click=${this._openDiagram} scale=m width=full>${this._translations.viewTheDiagram}</calcite-button>` || ""}<calcite-button appearance=outline-fill class="padding-bottom-1 solution-deployed-action" kind=neutral @click=${this._viewDocumentation} scale=m width=full>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline-fill class="padding-bottom-1 solution-deployed-action" kind=neutral @click=${this._openItemDetails} scale=m width=full>${this._translations.itemDetails}</calcite-button>${o && !this.isMobile && i`<calcite-button appearance=outline-fill class="padding-bottom-1 solution-deployed-action" .disabled=${l} id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog} scale=m width=full>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${y(d)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${s && !this.isMobile && i`<calcite-button appearance=outline-fill class="padding-bottom-1 solution-deployed-action" .disabled=${l} kind=neutral @click=${this._deleteSolution} scale=m width=full>${this._translations.deleteSolution}</calcite-button>` || ""}</div>`;
118
118
  }
119
119
  _getReadOnlyNotice() {
120
120
  return i`<calcite-notice class="padding-bottom-lg" icon=exclamation-mark-triangle kind=warning open scale=s><div slot=message .innerHTML=${this.readOnlyNotice ?? ""}></div></calcite-notice>`;
@@ -131,7 +131,7 @@ class V extends v {
131
131
  }
132
132
  _viewDocumentation(e) {
133
133
  e.stopPropagation(), this._telemetry?.logEvent({
134
- category: l.DEPLOYMENTS,
134
+ category: n.DEPLOYMENTS,
135
135
  action: "Open Help",
136
136
  dimensions: [
137
137
  this.card?.title || "",
@@ -144,7 +144,7 @@ class V extends v {
144
144
  }
145
145
  _openItemDetails(e) {
146
146
  e.stopPropagation(), this._telemetry?.logEvent({
147
- category: l.DEPLOYMENTS,
147
+ category: n.DEPLOYMENTS,
148
148
  action: "Open Item Details",
149
149
  dimensions: [
150
150
  this.card?.title || "",
@@ -165,7 +165,7 @@ class V extends v {
165
165
  e.stopPropagation();
166
166
  const t = await this._getTemplates();
167
167
  t && (this._telemetry?.logEvent({
168
- category: l.DEPLOYMENTS,
168
+ category: n.DEPLOYMENTS,
169
169
  action: "View Diagram",
170
170
  dimensions: [
171
171
  this.card?.title || "",
@@ -177,7 +177,7 @@ class V extends v {
177
177
  }), this._templateInfoGraph = t, this._isDiagramOpen = !0);
178
178
  }
179
179
  async _getTemplates() {
180
- return this.cardRef ? await this.cardRef.getTemplates() : this.card ? await D(this.card.id, this._configContextConsumer.value.userSession) : void 0;
180
+ return this.cardRef ? await this.cardRef.getTemplates() : this.card ? await k(this.card.id, this._configContextConsumer.value.userSession) : void 0;
181
181
  }
182
182
  async _fetchFolderInfo() {
183
183
  if (this.card?.id)
@@ -201,11 +201,11 @@ class V extends v {
201
201
  }
202
202
  _getSolutionVersionCard() {
203
203
  const e = this._hasNewVersion ? this._translations.newVersionAvailable : this._translations.youHaveTheLatestVersion, t = this.isMobile ? "padding-lg" : "padding-xxl";
204
- 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 aria-hidden=true 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>` : this._hasSourceSolution ? i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openSourceSolutionDetails} width=full>${this._translations.openDetails}</calcite-button>` : null}</div>`;
204
+ 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 aria-hidden=true 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-fill class="padding-top-1 solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} scale=m width=full>${this._translations.learnMoreNewVersion}</calcite-button>` : this._hasSourceSolution ? i`<calcite-button appearance=outline-fill class="padding-top-1 solution-deployed-action" kind=neutral @click=${this._openSourceSolutionDetails} scale=m width=full>${this._translations.openDetails}</calcite-button>` : null}</div>`;
205
205
  }
206
206
  async _openNewVersionSolution(e) {
207
207
  e.stopPropagation(), this._telemetry?.logEvent({
208
- category: l.DEPLOYMENTS,
208
+ category: n.DEPLOYMENTS,
209
209
  action: "View Latest Version",
210
210
  dimensions: [
211
211
  this.card?.title || "",