@esri/solutions-components 5.1.0-next.78 → 5.1.0-next.79
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/{QZLMNSE7.js → 4BXRUI5X.js} +1 -1
- package/dist/cdn/{EKI654VN.js → 4IMAYCJM.js} +1 -1
- package/dist/cdn/4TL66G66.js +9 -0
- package/dist/cdn/{2SQ65XGX.js → 4XPYA3ZL.js} +1 -1
- package/dist/cdn/{OBA2TIH4.js → 5CEMQAMC.js} +1 -1
- package/dist/cdn/{WIOHBSZV.js → 5MKDWIDM.js} +1 -1
- package/dist/cdn/{BHXMKRJY.js → 6QKRLRAP.js} +1 -1
- package/dist/cdn/{FYYEWGIN.js → 733RRE2J.js} +1 -1
- package/dist/cdn/{CK5X5IU2.js → A4XBJJEQ.js} +1 -1
- package/dist/cdn/{N3VBZJNB.js → BMMT73FL.js} +1 -1
- package/dist/cdn/{HNEWW3X6.js → BOU4VPX6.js} +1 -1
- package/dist/cdn/{VY67IEV4.js → C6JAM52C.js} +1 -1
- package/dist/cdn/{JFYW5FSM.js → D7B7IHCG.js} +1 -1
- package/dist/cdn/{BPLLNJ3A.js → DJ67MNGR.js} +1 -1
- package/dist/cdn/{MZYF5JT4.js → EDIUHKTP.js} +1 -1
- package/dist/cdn/{VD6SVO7V.js → ETMBHO6W.js} +99 -99
- package/dist/cdn/{OXBWKILN.js → FIJSXIFB.js} +1 -1
- package/dist/cdn/{PTQYSYRF.js → GF4D45RS.js} +1 -1
- package/dist/cdn/{TTTFI5U6.js → H2M2ACTQ.js} +1 -1
- package/dist/cdn/{POMV26C6.js → HC5I7DO7.js} +1 -1
- package/dist/cdn/{IOFPQUQT.js → HE2XAIDT.js} +1 -1
- package/dist/cdn/{SNNNPHA4.js → HTGJEIDJ.js} +1 -1
- package/dist/cdn/{5US2XMV6.js → J25DRPOQ.js} +1 -1
- package/dist/cdn/{OJQWJ5JQ.js → JAFNSVRV.js} +1 -1
- package/dist/cdn/{A3K7BOI5.js → KIIHG5RR.js} +1 -1
- package/dist/cdn/{Z7HOLCIT.js → KZMJQGVV.js} +1 -1
- package/dist/cdn/MK6WD5QW.js +2 -0
- package/dist/cdn/{2XJM3XD7.js → MSSBDYEE.js} +1 -1
- package/dist/cdn/{NRKOYVJQ.js → OZZ7I4JM.js} +1 -1
- package/dist/cdn/{WQEX3INL.js → P6PKBBHT.js} +1 -1
- package/dist/cdn/{UB3G6QGB.js → PPPDIFLS.js} +1 -1
- package/dist/cdn/{UWOMOUMR.js → QWHQYVUI.js} +1 -1
- package/dist/cdn/{AFEFGOFA.js → RCL2R2OE.js} +1 -1
- package/dist/cdn/{R4LAWIED.js → RGCSGE7R.js} +1 -1
- package/dist/cdn/{25HGCZFX.js → TBOLV3EZ.js} +1 -1
- package/dist/cdn/{K53AOGO7.js → TCMBDCFZ.js} +1 -1
- package/dist/cdn/{B3BNZZVL.js → TI2UR2TV.js} +1 -1
- package/dist/cdn/{D6ITCIPE.js → U4ZLSRR7.js} +1 -1
- package/dist/cdn/{4GNCJBBI.js → U7XLS67A.js} +1 -1
- package/dist/cdn/{27KH7XZL.js → UUK4R4CR.js} +1 -1
- package/dist/cdn/{XS4DWFZ7.js → UYRQWVGS.js} +1 -1
- package/dist/cdn/{6L3O33XA.js → VBWAOJWD.js} +1 -1
- package/dist/cdn/{VTU3SPGB.js → VGXNLBOO.js} +1 -1
- package/dist/cdn/{WM75XMOB.js → VQXYPYZO.js} +1 -1
- package/dist/cdn/{SVGXZT2D.js → WGMESBWP.js} +1 -1
- package/dist/cdn/{N42YRYTK.js → WROPXUSZ.js} +1 -1
- package/dist/cdn/{D64WWPJO.js → YMNLP2QU.js} +1 -1
- package/dist/cdn/{WYEN6ILU.js → YVCQPPKA.js} +1 -1
- package/dist/cdn/{K6TX7RXM.js → ZCQCAKCG.js} +1 -1
- package/dist/cdn/{22TA4SJL.js → ZR2WIC7U.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/create_design_prompt.js +1 -1
- package/dist/chunks/create_user_query.js +12 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +5883 -5888
- package/dist/components/solution-deployed-card-panel/customElement.js +42 -43
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +6 -6
- package/package.json +3 -3
- package/dist/cdn/F6GQA5OC.js +0 -2
- package/dist/cdn/G3EBE4SG.js +0 -2
- package/dist/cdn/XQJY2TSR.js +0 -2
- package/dist/chunks/update_existing_design_prompt.js +0 -5
- package/dist/chunks/user_prompt.js +0 -5
- /package/dist/cdn/{2WTVBIT3.js → YOPFAHBT.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as m } from "../../chunks/useT9n.js";
|
|
4
|
-
import { LitElement as f, createEvent as
|
|
4
|
+
import { LitElement as f, createEvent as r, safeClassMap as b, nothing as d } from "@arcgis/lumina";
|
|
5
5
|
import { useContextConsumer as g } from "@arcgis/lumina/context";
|
|
6
6
|
import { css as x, html as i } from "lit";
|
|
7
7
|
import { c as _, i as v } from "../../chunks/deployAppContexts.js";
|
|
8
|
-
import { F as y, T as
|
|
8
|
+
import { F as y, T as s, H as w, z as C, J as $ } from "../../chunks/helpers.js";
|
|
9
9
|
import { f as S, g as p, a as k } from "../../chunks/cardsHelpers.js";
|
|
10
10
|
import { g as D } from "../../chunks/getRelatedInfos.js";
|
|
11
11
|
import * as h from "@esri/solution-common";
|
|
@@ -22,9 +22,9 @@ class I extends f {
|
|
|
22
22
|
context: v,
|
|
23
23
|
subscribe: !0,
|
|
24
24
|
callback: (e) => this.isMobile = e
|
|
25
|
-
}), this.navTabSelected =
|
|
25
|
+
}), this.navTabSelected = r(), this.forceSelectTab = r(), this.sortTypeChanged = r(), this.solutionConfigureDialogClose = r(), this._nonSolutionDependencyItems = [], this._openFolder = (e) => {
|
|
26
26
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
27
|
-
category:
|
|
27
|
+
category: s.DEPLOYMENTS,
|
|
28
28
|
action: "Open Folder",
|
|
29
29
|
dimensions: [
|
|
30
30
|
this.card?.title || "",
|
|
@@ -36,8 +36,14 @@ class I extends f {
|
|
|
36
36
|
const t = this._configContextConsumer.value?.orgUrl;
|
|
37
37
|
if (!t)
|
|
38
38
|
return;
|
|
39
|
-
const
|
|
40
|
-
|
|
39
|
+
const o = this._configContextConsumer.value?.userSession?.username, n = this.card?.owner === o;
|
|
40
|
+
let a;
|
|
41
|
+
if (n) {
|
|
42
|
+
const l = this._folderId || this.card?.owner;
|
|
43
|
+
a = `${t}/home/content.html?folder=${l}`;
|
|
44
|
+
} else
|
|
45
|
+
this._folderId ? a = `${t}/home/content.html?user=${this.card?.owner}&folder=${this._folderId}` : a = `${t}/home/content.html?user=${this.card?.owner}&folder=${this.card?.owner}`;
|
|
46
|
+
window.open(a, "_blank");
|
|
41
47
|
}, this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected), this.listenOn(window, "displayDeployedCard", () => {
|
|
42
48
|
w({
|
|
43
49
|
kind: "success",
|
|
@@ -68,32 +74,32 @@ class I extends f {
|
|
|
68
74
|
}
|
|
69
75
|
willUpdate(e) {
|
|
70
76
|
if (e.has("card")) {
|
|
71
|
-
const t = this._configContextConsumer.value?.userSession,
|
|
72
|
-
this._thumbnailUrl = `${
|
|
77
|
+
const t = this._configContextConsumer.value?.userSession, o = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400");
|
|
78
|
+
this._thumbnailUrl = `${o}&token=${t?.token}`, this._folderLoading = !0, this._folderName = "", this._folderId = null;
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
render() {
|
|
76
|
-
return this.isMobile ? i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}
|
|
82
|
+
return this.isMobile ? i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</div>${this._getSolutionContents()}</calcite-panel></calcite-shell>` : i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`;
|
|
77
83
|
}
|
|
78
84
|
async _deployedCardSelected(e) {
|
|
79
85
|
const t = e.detail;
|
|
80
86
|
this.card = t.card, this.cardRef = t.cardRef, this.templateInfos = [], this._accordionLoading = !0, this.templateInfos = await this._getTemplates(), this._accordionLoading = !1;
|
|
81
|
-
const
|
|
82
|
-
this._nonSolutionDependencyItems =
|
|
83
|
-
const
|
|
84
|
-
let
|
|
85
|
-
if (
|
|
86
|
-
const l = p(
|
|
87
|
-
|
|
87
|
+
const o = await D(this._configContextConsumer.value.userSession, this.card);
|
|
88
|
+
this._nonSolutionDependencyItems = o._nonSolutionDependencyItems;
|
|
89
|
+
const n = S(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
|
|
90
|
+
let a = !1;
|
|
91
|
+
if (n) {
|
|
92
|
+
const l = p(n), c = p(this.card);
|
|
93
|
+
a = l > c;
|
|
88
94
|
}
|
|
89
|
-
this._hasNewVersion =
|
|
95
|
+
this._hasNewVersion = a, this._folderLoading = !0, this._folderName = "", this._folderId = null, await this._fetchFolderInfo(), this._folderLoading = !1;
|
|
90
96
|
}
|
|
91
97
|
_handleDeployAppTabSelected(e) {
|
|
92
98
|
e.detail === "deployed-card" && this.sortTypeChanged.emit("");
|
|
93
99
|
}
|
|
94
100
|
_getButtons() {
|
|
95
|
-
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution,
|
|
96
|
-
return i`<div class=${`display-flex flex-direction-column ${
|
|
101
|
+
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, o = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, n = this.card?.owner === e || this._isOrgAdmin || t, a = this.card?.owner === e || this._isOrgAdmin || o, l = n ? "display-none" : "", c = this.isMobile ? "padding-lg" : "padding-xxl";
|
|
102
|
+
return i`<div class=${`display-flex flex-direction-column ${c}`}>${!this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>` || ""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${n && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${b(l)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${a && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>` || ""}</div>`;
|
|
97
103
|
}
|
|
98
104
|
_openConfigureTitlesDialog() {
|
|
99
105
|
this._configureTitlesOpen = !0;
|
|
@@ -107,7 +113,7 @@ class I extends f {
|
|
|
107
113
|
}
|
|
108
114
|
_viewDocumentation(e) {
|
|
109
115
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
110
|
-
category:
|
|
116
|
+
category: s.DEPLOYMENTS,
|
|
111
117
|
action: "Open Help",
|
|
112
118
|
dimensions: [
|
|
113
119
|
this.card?.title || "",
|
|
@@ -119,7 +125,7 @@ class I extends f {
|
|
|
119
125
|
}
|
|
120
126
|
_openItemDetails(e) {
|
|
121
127
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
122
|
-
category:
|
|
128
|
+
category: s.DEPLOYMENTS,
|
|
123
129
|
action: "Open Item Details",
|
|
124
130
|
dimensions: [
|
|
125
131
|
this.card?.title || "",
|
|
@@ -139,7 +145,7 @@ class I extends f {
|
|
|
139
145
|
e.stopPropagation();
|
|
140
146
|
const t = await this._getTemplates();
|
|
141
147
|
t && (this._telemetry?.logEvent({
|
|
142
|
-
category:
|
|
148
|
+
category: s.DEPLOYMENTS,
|
|
143
149
|
action: "View Diagram",
|
|
144
150
|
dimensions: [
|
|
145
151
|
this.card?.title || "",
|
|
@@ -153,31 +159,24 @@ class I extends f {
|
|
|
153
159
|
return this.cardRef ? await this.cardRef.getTemplates() : this.card ? await C(this.card.id, this._configContextConsumer.value.userSession) : void 0;
|
|
154
160
|
}
|
|
155
161
|
async _fetchFolderInfo() {
|
|
156
|
-
if (
|
|
157
|
-
return;
|
|
158
|
-
const e = this._configContextConsumer.value?.userSession?.username;
|
|
159
|
-
if (this.card?.owner === e)
|
|
162
|
+
if (this.card?.id)
|
|
160
163
|
try {
|
|
161
|
-
const
|
|
162
|
-
if (!
|
|
163
|
-
return;
|
|
164
|
-
const a = await h.getItemBase(this.card.id, t);
|
|
165
|
-
this._folderId = a.ownerFolder ?? null;
|
|
166
|
-
const o = this._configContextConsumer.value?.userSession?.username;
|
|
167
|
-
if (this.card?.owner !== o)
|
|
164
|
+
const e = this._configContextConsumer.value?.userSession;
|
|
165
|
+
if (!e)
|
|
168
166
|
return;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
const t = await h.getItemBase(this.card.id, e);
|
|
168
|
+
if (this._folderId = t.ownerFolder ?? null, this._folderId) {
|
|
169
|
+
const o = await h.getUserFolder(this.card.owner, this._folderId, e);
|
|
170
|
+
this._folderName = o?.currentFolder?.title || this._folderId;
|
|
172
171
|
} else
|
|
173
|
-
this._folderName = this.card
|
|
174
|
-
} catch (
|
|
175
|
-
console.error("Error fetching folder info:",
|
|
172
|
+
this._folderName = this.card.owner || "Root";
|
|
173
|
+
} catch (e) {
|
|
174
|
+
console.error("Error fetching folder info:", e), this._folderId = null, this._folderName = "";
|
|
176
175
|
}
|
|
177
176
|
}
|
|
178
177
|
_getFolderSection() {
|
|
179
|
-
const e = this.isMobile ? "padding-lg" : "padding-xxl",
|
|
180
|
-
return i`<div class=${`${e} display-flex 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 slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading ? i`<div class="skeleton-loader skeleton-folder"></div>` : i`<calcite-icon class="icon-color" .icon=${
|
|
178
|
+
const e = this.isMobile ? "padding-lg" : "padding-xxl", o = !this._folderId ? "home" : "folder";
|
|
179
|
+
return i`<div class=${`${e} display-flex 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 slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading ? i`<div class="skeleton-loader skeleton-folder"></div>` : i`<calcite-icon class="icon-color" .icon=${o} scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${this._folderName || "Root"}</span></div>`}</div></div></div>`;
|
|
181
180
|
}
|
|
182
181
|
_getSolutionVersionCard() {
|
|
183
182
|
const e = this._hasNewVersion ? this._translations.newVersionAvailable : this._translations.youHaveTheLatestVersion, t = this.isMobile ? "padding-lg" : "padding-xxl";
|
|
@@ -185,14 +184,14 @@ class I extends f {
|
|
|
185
184
|
}
|
|
186
185
|
async _openNewVersionSolution(e) {
|
|
187
186
|
e.stopPropagation(), this._telemetry?.logEvent({
|
|
188
|
-
category:
|
|
187
|
+
category: s.DEPLOYMENTS,
|
|
189
188
|
action: "View Latest Version",
|
|
190
189
|
dimensions: [
|
|
191
190
|
this.card?.title || "",
|
|
192
191
|
this.card?.deployCommonId || "",
|
|
193
192
|
this.card?.deployVersion || ""
|
|
194
193
|
]
|
|
195
|
-
}), await new Promise((
|
|
194
|
+
}), await new Promise((o) => setTimeout(o, 100));
|
|
196
195
|
const t = k(this._configContextConsumer.value.allCards, this.card.deployCommonId);
|
|
197
196
|
t && this.forceSelectTab.emit({ tabType: "details", tabTitleOrId: t });
|
|
198
197
|
}
|