@esri/solutions-components 5.1.0-next.166 → 5.1.0-next.167
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/2MCOUOTQ.js +2 -0
- package/dist/cdn/{SJ2IGQMX.js → 4D46WTPB.js} +1 -1
- package/dist/cdn/4L7TJNAM.js +43 -0
- package/dist/cdn/{QVUBUYP6.js → 6LN2ZRAZ.js} +1 -1
- package/dist/cdn/{CKWEF3KW.js → BYOO7TWU.js} +1 -1
- package/dist/cdn/{T26SIBKB.js → DFHULDJT.js} +1 -1
- package/dist/cdn/{GI33DSVT.js → DGGIENYR.js} +1 -1
- package/dist/cdn/{IVKRYKER.js → DSJRQHKW.js} +1 -1
- package/dist/cdn/{BT3FYIEX.js → EBAOA6CS.js} +1 -1
- package/dist/cdn/{ZOFZVFBV.js → F5463ORT.js} +1 -1
- package/dist/cdn/{K5ZYDQR7.js → FK6Q2LYR.js} +1 -1
- package/dist/cdn/{UTUOUV3E.js → HGOH5KSX.js} +1 -1
- package/dist/cdn/{VL2NVCIB.js → HLCHUP24.js} +3 -3
- package/dist/cdn/{XLGAHCS7.js → HUYLWWWJ.js} +1 -1
- package/dist/cdn/{Y32IJPXS.js → I6EH3H6Z.js} +1 -1
- package/dist/cdn/{25QYS4LE.js → IP7IUAM5.js} +1 -1
- package/dist/cdn/{3FKVBTJC.js → JCGZXASG.js} +1 -1
- package/dist/cdn/{P5RZHVDH.js → JJLYSRRX.js} +1 -1
- package/dist/cdn/{JGL4WYTO.js → K6O33P5T.js} +1 -1
- package/dist/cdn/{RHAHQ4DB.js → LQ6PZESP.js} +1 -1
- package/dist/cdn/{AFLXI5U2.js → LUIN5XSX.js} +1 -1
- package/dist/cdn/LWQ4SBU2.js +2 -0
- package/dist/cdn/{DKZ4FZKK.js → LXGPZJIZ.js} +1 -1
- package/dist/cdn/{GJWHFH2F.js → MXF4BYLT.js} +1 -1
- package/dist/cdn/{C47WRU5U.js → OTQLLNFG.js} +1 -1
- package/dist/cdn/{RYJ556XB.js → PM7QF66M.js} +1 -1
- package/dist/cdn/{TCRMAQDF.js → QKSC4XFL.js} +1 -1
- package/dist/cdn/{2BRPSISV.js → ROGRXRFI.js} +1 -1
- package/dist/cdn/{46I7FRQJ.js → RWHR4UZT.js} +1 -1
- package/dist/cdn/{K4LZRLGL.js → T5R4UF7Y.js} +1 -1
- package/dist/cdn/{PVPKXQBE.js → TSDKMOES.js} +3 -3
- package/dist/cdn/{KD4IHPH6.js → UOQSRV3X.js} +2 -2
- package/dist/cdn/{2VG5GRFH.js → V6N4G75E.js} +1 -1
- package/dist/cdn/{2YC25V3L.js → VJBL5ZUX.js} +1 -1
- package/dist/cdn/{UEYON3AE.js → VLBNRURV.js} +1 -1
- package/dist/cdn/{XXCHYJ3I.js → VLF76E2L.js} +1 -1
- package/dist/cdn/{2BI4S6V2.js → VY364MR6.js} +1 -1
- package/dist/cdn/{Z7VXHUQA.js → WKRSOM6J.js} +1 -1
- package/dist/cdn/{VTFLDHVU.js → X6TQNCB3.js} +1 -1
- package/dist/cdn/Y2MAVMNV.js +2 -0
- package/dist/cdn/{66N4ZZKC.js → ZWL4JFKS.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/assessBuildRequest.js +2 -2
- package/dist/chunks/assistantResponse.js +23 -29
- package/dist/chunks/interfaces.js +6 -3
- package/dist/components/arcgis-solutions-assistant/customElement.js +9 -9
- package/dist/components/card-manager/customElement.d.ts +0 -3
- package/dist/components/card-manager/customElement.js +6 -6
- package/dist/components/create-feature/customElement.js +17 -6
- package/dist/components/crowdsource-manager/customElement.js +3 -3
- package/dist/components/layer-table/customElement.js +13 -13
- package/dist/components/solution-configure-titles/customElement.js +2 -1
- package/dist/components/solution-delete-dialog/customElement.js +2 -1
- package/dist/components/solution-deployed-card-panel/customElement.js +8 -4
- package/dist/components/solutions-deploy-app/customElement.js +14 -14
- 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/solutions-components_commit.txt +6 -6
- package/dist/types/lumina.d.ts +0 -1
- package/dist/types/preact.d.ts +0 -1
- package/dist/types/react.d.ts +0 -1
- package/dist/types/stencil.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cdn/632J5NXN.js +0 -49
- package/dist/cdn/CDT6E3VG.js +0 -2
- package/dist/cdn/HQCHD3FH.js +0 -2
- package/dist/cdn/RSCCUNJ4.js +0 -2
|
@@ -35,9 +35,9 @@ Immediately fail the request if ANY of the following are present:\r
|
|
|
35
35
|
- Fetching or ingesting external data (files, URLs, APIs)\r
|
|
36
36
|
\r
|
|
37
37
|
# Step 2: Use Case Validation\r
|
|
38
|
-
A valid use case
|
|
38
|
+
A valid use case is required to design the solution.\r
|
|
39
39
|
\r
|
|
40
|
-
A
|
|
40
|
+
A use case must include:\r
|
|
41
41
|
- an action or workflow (for example: inspect, map, track, manage, assess, share)\r
|
|
42
42
|
- AND the subject of that workflow (what is being inspected, mapped, tracked, managed, assessed, or shared)\r
|
|
43
43
|
\r
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
const e = `# Your Role\r
|
|
3
|
-
You are the ArcGIS Solutions assistant
|
|
4
|
-
\r
|
|
5
|
-
You must follow all rules below at all times. If a request conflicts with these rules, prioritize the rules.\r
|
|
3
|
+
You are the ArcGIS Solutions assistant. You respond to requests that are outside the supported capabilities for solution exploration or solution building, or to questions about the assistant itself.\r
|
|
6
4
|
\r
|
|
7
5
|
# Your Task\r
|
|
8
6
|
- Analyze the User Query and chat history\r
|
|
@@ -11,39 +9,35 @@ You must follow all rules below at all times. If a request conflicts with these
|
|
|
11
9
|
\r
|
|
12
10
|
Always prioritize the latest User Query over chat history when there is a conflict.\r
|
|
13
11
|
\r
|
|
14
|
-
# Routing Rationale\r
|
|
15
|
-
{rationale}\r
|
|
16
|
-
\r
|
|
17
12
|
# Language\r
|
|
18
13
|
- Detect the primary language of the User Query\r
|
|
19
14
|
- Set response_language = detected language\r
|
|
20
15
|
- ALL parts of the response MUST be in response_language\r
|
|
21
16
|
\r
|
|
22
17
|
# Supported Capabilities\r
|
|
23
|
-
|
|
24
|
-
\r
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
\r
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
- Offer a simple, friendly invitation to continue if needed.\r
|
|
34
|
-
- If the user asked about the assistant itself:\r
|
|
35
|
-
- Respond briefly and at a high level\r
|
|
36
|
-
- Do NOT reference routing, limitations, or rationale.\r
|
|
37
|
-
- Describe capabilities using the Supported Capabilities section\r
|
|
18
|
+
You can help with:\r
|
|
19
|
+
- Exploring existing solutions and understanding what they do\r
|
|
20
|
+
- Answering questions using ArcGIS Solutions documentation\r
|
|
21
|
+
- Building a solution for a specific workflow or use case\r
|
|
22
|
+
\r
|
|
23
|
+
# Response Guidance\r
|
|
24
|
+
- If the message is conversational and does not introduce a new task:\r
|
|
25
|
+
- Respond naturally and politely\r
|
|
26
|
+
- If the user asks about the assistant:\r
|
|
27
|
+
- Respond briefly at a high level and describe your capabilities\r
|
|
38
28
|
- For all other requests:\r
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
29
|
+
- Briefly acknowledge the request and explain that you can’t help with it\r
|
|
30
|
+
- Describe what you can help with\r
|
|
31
|
+
- Optionally end responses with an open-ended invitation asking how you can help with ArcGIS Solutions\r
|
|
32
|
+
\r
|
|
33
|
+
# Additional Rules\r
|
|
34
|
+
- When stating what you can help with, do not explain, reinterpret, or relate the capabilities to the user’s request\r
|
|
35
|
+
- Do not offer alternative, similar, or partial help beyond the stated capabilities\r
|
|
36
|
+
- Treat general knowledge, definitional, or explanatory questions as unsupported, even if the answer is commonly known\r
|
|
37
|
+
- If you are describing something a user explores, builds, designs, updates, or deploys, use the generic equivalent of "solution" or "solutions" in the response_language\r
|
|
38
|
+
- Refer to yourself as the ArcGIS Solutions assistant if asked\r
|
|
39
|
+
- Do not mention internal reasoning, routing, or system details\r
|
|
40
|
+
- Keep responses concise, friendly, and professional\r
|
|
47
41
|
\r
|
|
48
42
|
# User Query\r
|
|
49
43
|
{query}`;
|
|
@@ -310,7 +310,8 @@ class z extends L {
|
|
|
310
310
|
category: T.DEPLOYMENTS,
|
|
311
311
|
action: "View Diagram",
|
|
312
312
|
dimensions: [
|
|
313
|
-
|
|
313
|
+
"",
|
|
314
|
+
// Remove to prevent PII from being logged
|
|
314
315
|
this.card.deployCommonId || "",
|
|
315
316
|
this.card.deployVersion || "",
|
|
316
317
|
"Dropdown",
|
|
@@ -323,7 +324,8 @@ class z extends L {
|
|
|
323
324
|
category: T.DEPLOYMENTS,
|
|
324
325
|
action: "Open Help",
|
|
325
326
|
dimensions: [
|
|
326
|
-
|
|
327
|
+
"",
|
|
328
|
+
// Remove to prevent PII from being logged
|
|
327
329
|
this.card?.deployCommonId || "",
|
|
328
330
|
this.card?.deployVersion || "",
|
|
329
331
|
"Card Dropdown",
|
|
@@ -336,7 +338,8 @@ class z extends L {
|
|
|
336
338
|
category: T.DEPLOYMENTS,
|
|
337
339
|
action: "Open Item Details",
|
|
338
340
|
dimensions: [
|
|
339
|
-
|
|
341
|
+
"",
|
|
342
|
+
// Remove to prevent PII from being logged
|
|
340
343
|
this.card?.deployCommonId || "",
|
|
341
344
|
this.card?.deployVersion || "",
|
|
342
345
|
"Card Dropdown",
|
|
@@ -1579,21 +1579,21 @@ const rs = E.object({
|
|
|
1579
1579
|
}, ps = async (s, e) => {
|
|
1580
1580
|
if (O(e))
|
|
1581
1581
|
return {};
|
|
1582
|
-
const t = U(e), i = s.agentExecutionContext.userRequest
|
|
1582
|
+
const t = U(e), i = s.agentExecutionContext.userRequest;
|
|
1583
1583
|
await _(
|
|
1584
1584
|
{ text: t?.executingSolutionsAssistantAgent },
|
|
1585
1585
|
e
|
|
1586
1586
|
);
|
|
1587
|
-
const
|
|
1588
|
-
promptText:
|
|
1587
|
+
const n = await v(se, "assistantResponse"), o = s.agentExecutionContext.messages.slice(-11), a = await Ge({
|
|
1588
|
+
promptText: n,
|
|
1589
1589
|
modelTier: "advanced",
|
|
1590
1590
|
temperature: 0,
|
|
1591
|
-
messages:
|
|
1592
|
-
inputVariables: { query: i
|
|
1591
|
+
messages: o,
|
|
1592
|
+
inputVariables: { query: i }
|
|
1593
1593
|
});
|
|
1594
1594
|
return ie(e, "assistant"), {
|
|
1595
|
-
outputMessage:
|
|
1596
|
-
summary:
|
|
1595
|
+
outputMessage: a,
|
|
1596
|
+
summary: a,
|
|
1597
1597
|
status: "success"
|
|
1598
1598
|
};
|
|
1599
1599
|
}, ms = (s) => s.selectedTool ?? "other", hs = () => new K($e).addNode("classifyIntent", cs).addNode("routeToExplorer", us).addNode("routeToBuilder", ds).addNode("assistantResponse", ps).addEdge(W, "classifyIntent").addConditionalEdges("classifyIntent", ms, {
|
|
@@ -1701,8 +1701,8 @@ class xs extends De {
|
|
|
1701
1701
|
action: "Toggle Builder Panel",
|
|
1702
1702
|
dimensions: [this.builderVisible ? "Close" : "Open"]
|
|
1703
1703
|
}), window.dispatchEvent(new CustomEvent("toggleSolutionBuilder"));
|
|
1704
|
-
}} scale=m slot=header-actions-end></calcite-action>` || ""}${!this._isMobile && T`<calcite-tooltip placement=bottom reference-element=solutionBuilderAction><span>${this._translations.tooltips.solutionBuilder}</span></calcite-tooltip>` || ""}<arcgis-assistant reference-element copy-enabled feedback-enabled heading description entry-message=${this._translations.defaultStartUpMessage ?? re} .suggestedPrompts=${e} @arcgisSubmit=${(
|
|
1705
|
-
|
|
1704
|
+
}} scale=m slot=header-actions-end></calcite-action>` || ""}${!this._isMobile && T`<calcite-tooltip placement=bottom reference-element=solutionBuilderAction><span>${this._translations.tooltips.solutionBuilder}</span></calcite-tooltip>` || ""}<arcgis-assistant reference-element copy-enabled feedback-enabled heading description entry-message=${this._translations.defaultStartUpMessage ?? re} .suggestedPrompts=${e} @arcgisSubmit=${() => {
|
|
1705
|
+
this._suggestedPrompts = [], e = [], this._hasInteracted = !0, this._chatStartTime = Date.now(), this.assistantProcessing.emit(!0);
|
|
1706
1706
|
}} @arcgisFeedback=${(t) => {
|
|
1707
1707
|
t.detail;
|
|
1708
1708
|
}} @arcgisResponse=${() => {
|
|
@@ -119,8 +119,6 @@ export abstract class CardManager extends LitElement {
|
|
|
119
119
|
readonly createWorkFlowStarted: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
120
120
|
/** Emitted when the paste action should be disabled */
|
|
121
121
|
readonly disablePaste: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
122
|
-
/** Emits when feature/record is submitted */
|
|
123
|
-
readonly featureOrRecordSubmitted: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
124
122
|
/** Emitted when the features have been copied to the clipboard */
|
|
125
123
|
readonly featuresCopied: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
126
124
|
/** Emitted when the features have been pasted from the clipboard */
|
|
@@ -129,7 +127,6 @@ export abstract class CardManager extends LitElement {
|
|
|
129
127
|
backFromCreateWorkFlow: CardManager["backFromCreateWorkFlow"]["detail"];
|
|
130
128
|
createWorkFlowStarted: CardManager["createWorkFlowStarted"]["detail"];
|
|
131
129
|
disablePaste: CardManager["disablePaste"]["detail"];
|
|
132
|
-
featureOrRecordSubmitted: CardManager["featureOrRecordSubmitted"]["detail"];
|
|
133
130
|
featuresCopied: CardManager["featuresCopied"]["detail"];
|
|
134
131
|
featuresPasted: CardManager["featuresPasted"]["detail"];
|
|
135
132
|
};
|
|
@@ -8,14 +8,14 @@ import { createRef as d, ref as p } from "lit-html/directives/ref.js";
|
|
|
8
8
|
import { LitElement as y, createEvent as n, noShadowRoot as F, safeClassMap as v } from "@arcgis/lumina";
|
|
9
9
|
import * as $ from "@arcgis/core/core/reactiveUtils.js";
|
|
10
10
|
const k = 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}}`;
|
|
11
|
-
class
|
|
11
|
+
class B extends y {
|
|
12
12
|
constructor() {
|
|
13
|
-
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._createAndBackBtnDisabled = !1, this._translations = g({ name: "card-manager", blocking: !0 }), this._isFeatureCreated = !1, this._createFeature = d(), this._pasteComponent = d(), this.createWorkFlowStarted = n(), this.backFromCreateWorkFlow = n(), this.
|
|
13
|
+
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._createAndBackBtnDisabled = !1, this._translations = g({ name: "card-manager", blocking: !0 }), this._isFeatureCreated = !1, this._createFeature = d(), this._pasteComponent = d(), this.createWorkFlowStarted = n(), this.backFromCreateWorkFlow = n(), this.featuresCopied = n(), this.featuresPasted = n(), this.disablePaste = n(), this._handleCreateAndBackBtn = (e) => {
|
|
14
14
|
this._createFeatureEditor && (this._createAndBackBtnDisabled = e);
|
|
15
15
|
}, this._featuresAdded = () => {
|
|
16
16
|
this._pasteComponent.value && this._resetPasteWorkflow();
|
|
17
17
|
}, this._initCreateComponent = () => {
|
|
18
|
-
this._showCreateFeatureComponent = !0;
|
|
18
|
+
this._isFeatureCreated = !1, this._handleCreateAndBackBtn(!1), this._showCreateFeatureComponent = !0;
|
|
19
19
|
}, this._createFeatureEditorInitialized = (e) => {
|
|
20
20
|
this._createFeatureEditor = e.detail;
|
|
21
21
|
}, this._createFeatureEditorClosed = () => {
|
|
@@ -167,10 +167,10 @@ class S extends y {
|
|
|
167
167
|
return this._createFeatureEditor?.activeWorkflow?.hasPendingEdits;
|
|
168
168
|
}
|
|
169
169
|
_featureCreated() {
|
|
170
|
-
this.
|
|
170
|
+
this._showSubmitBtn = !1, this._isFeatureCreated = !0;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
w("card-manager",
|
|
173
|
+
w("card-manager", B);
|
|
174
174
|
export {
|
|
175
|
-
|
|
175
|
+
B as CardManager
|
|
176
176
|
};
|
|
@@ -79,10 +79,21 @@ class N extends E {
|
|
|
79
79
|
}
|
|
80
80
|
async submit() {
|
|
81
81
|
const e = this._editor.value?.activeWorkflow;
|
|
82
|
-
if (e
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
if (e) {
|
|
83
|
+
this._pendingAttachmentUpload = !!(this._selectedLayer && this._selectedLayer.capabilities.data.supportsAttachment && this._selectedImageBase64), this._awaitingLayerEdits = !0, e.data?.creationInfo && this._updatedMapView && (e.data.creationInfo.view = this._updatedMapView);
|
|
84
|
+
try {
|
|
85
|
+
await e.save();
|
|
86
|
+
} catch (t) {
|
|
87
|
+
if (this._awaitingLayerEdits = !1, this._pendingAttachmentUpload = !1, t?.name === "AbortError")
|
|
88
|
+
return;
|
|
89
|
+
this._onFail(t);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (e.data.viewModel.failures.length) {
|
|
93
|
+
const t = e.data.viewModel.failures[0].error;
|
|
94
|
+
this._currentPage = "drawing", this._onFail(t);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
86
97
|
}
|
|
87
98
|
}
|
|
88
99
|
async refresh(e) {
|
|
@@ -108,8 +119,8 @@ class N extends E {
|
|
|
108
119
|
}
|
|
109
120
|
this.reportingAreaMessage && this._guidingMessageRefNode.value?.children[0] && (this._guidingMessageRefNode.value.children[0].style.margin = "0px");
|
|
110
121
|
}
|
|
111
|
-
disconnectedCallback() {
|
|
112
|
-
super.disconnectedCallback(), this._editor.value && (this._editor.value.destroy(), this.enableSnapping && this.mapView?.ui.view && (this.mapView.ui.view.grid = null), this._removeHandlers(), this.createFeatureEditorClosed.emit());
|
|
122
|
+
async disconnectedCallback() {
|
|
123
|
+
super.disconnectedCallback(), this._editor.value && (this._editor.value.activeWorkflow?.activeWorkflow?.hasPendingEdits && (await this._editor.value.activeWorkflow.reset(), await this._editor.value.cancelWorkflow()), await this._editor.value.destroy(), this.enableSnapping && this.mapView?.ui.view && (this.mapView.ui.view.grid = null), this._removeHandlers(), this.createFeatureEditorClosed.emit());
|
|
113
124
|
}
|
|
114
125
|
render() {
|
|
115
126
|
const e = this._currentPage === "loading" ? "" : "display-none", t = this.isMobile && this.updateMapPosition ? "show-map" : "display-none", i = this._inValidGeometryDrawn ? "danger" : "success", a = this._inValidGeometryDrawn ? "exclamation-mark-triangle" : "lightbulb", s = this.showLayerVisibilityMsg && this._currentPage === "templatePicker", r = (this.showGuidingMsg || s) && this._currentPage !== "loading" && this._currentPage !== "drawingMultipleFeatures";
|
|
@@ -157,7 +157,7 @@ class V extends M {
|
|
|
157
157
|
_getPopupExpandNode() {
|
|
158
158
|
const e = this._isMobile ? "height-full" : "height-full position-relative", t = this._isMobile && this._showInformationHeader ? "display-none height-0" : "", i = this.popupHeaderColor ? "" : this._isMobile ? "calcite-mode-light" : "calcite-mode-dark", a = this._isMobile && this._hideTable ? "position-absolute-0 width-full height-full" : this._isMobile ? "display-none height-0" : "", l = this._currentMapInfos?.length > 1 && this.appLayout === "tableView" ? "position-relative top-51" : "", o = this.appLayout !== "tableView" ? "position-sticky" : "";
|
|
159
159
|
return s`<div class=${`${i} ${e} ${a} ${l} ${o}`} style=${T({
|
|
160
|
-
"--calcite-
|
|
160
|
+
"--calcite-panel-header-background-color": this.popupHeaderColor,
|
|
161
161
|
"--calcite-color-surface-3": this.popupHeaderHoverColor,
|
|
162
162
|
"--calcite-color-text-3": this.popupHeaderTextColor,
|
|
163
163
|
"--calcite-color-text-2": this.popupHeaderTextColor
|
|
@@ -169,7 +169,7 @@ class V extends M {
|
|
|
169
169
|
this._showInformationHeader = !0;
|
|
170
170
|
}} @createWorkFlowStarted=${() => {
|
|
171
171
|
this.appLayout = l?.isTable ? "tableView" : "mapView", this._showInformationHeader = !1;
|
|
172
|
-
}}
|
|
172
|
+
}} .pasteEnabled=${this._pasteEnabled} .selectedFeaturesIds=${this._layerTable.value?.selectedIds} .selectingFeatureFromMap=${this.appLayout === "mapView"} .showCopyPasteActions=${this._showCopyPasteActions} .showSketchWidgets=${l?.geometryType !== "point"} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected}></card-manager></div>`;
|
|
173
173
|
}
|
|
174
174
|
_getTable(e, t, i) {
|
|
175
175
|
const a = this.appLayout === "mapView", l = this.appLayout === "tableView", o = i && this._isMobile ? "visibility-hidden" : a ? "display-none" : "", r = a ? "height-full width-full z-index-0" : "display-none", h = this._getTableSizeClass(e, t), n = e === "HORIZONTAL" ? "horizontal" : "vertical", d = e === "HORIZONTAL" ? "header" : "panel-start", p = this.defaultWebmap && this.defaultLayer, m = this._isMobile ? "border-top" : "", b = this.defaultGlobalId ? this.defaultGlobalId?.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId] : void 0, g = this.defaultOid ? this.defaultOid?.indexOf(",") > -1 ? this.defaultOid.split(",").map((y) => Number.parseInt(y, 10)) : [Number.parseInt(this.defaultOid, 10)] : void 0;
|
|
@@ -218,7 +218,7 @@ class V extends M {
|
|
|
218
218
|
this._filterOpen = !this._filterOpen;
|
|
219
219
|
}
|
|
220
220
|
_handleFilterListReset() {
|
|
221
|
-
this._mapExtentFilterChecked = !1, this._mapCard.value && this._mapCard.value.resetFilter(), this._layerTable.value && this._layerTable.value.filterReset();
|
|
221
|
+
this._mapExtentFilterChecked = !1, this._mapCard.value && this._mapCard.value.resetFilter(), this._layerTable.value && this._layerTable.value._filterActive && this._layerTable.value.filterReset();
|
|
222
222
|
}
|
|
223
223
|
async _closeFilter() {
|
|
224
224
|
this._filterOpen && (this._filterOpen = !1, this._layerTable.value && this._layerTable.value.closeFilter());
|
|
@@ -15,7 +15,7 @@ import * as p from "@arcgis/core/core/reactiveUtils.js";
|
|
|
15
15
|
import D from "@arcgis/core/rest/support/RelationshipQuery.js";
|
|
16
16
|
import w from "@arcgis/core/widgets/FeatureTable/support/TableTemplate.js";
|
|
17
17
|
const M = C`@layer{:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-surface-1)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-dialog-content-space: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-surface-2)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{color:var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`;
|
|
18
|
-
class
|
|
18
|
+
class V extends A {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(), this.defaultGlobalId = [], this.defaultLayerId = "", this.defaultOid = [], this.enableAutoRefresh = !1, this.enableColumnReorder = !0, this.enableCSV = !1, this.enableInlineEdit = !1, this.enableShare = !1, this.enableTableAutosave = !0, this.featureSelectionMode = "multiple", this.selectedRelatedIds = [], this.honorMapFieldSettings = !1, this.isMobile = !1, this.mapHidden = !1, this.showOnlyUpdatableLayers = !1, this.selectedIds = [], this.shareIncludeEmbed = !1, this.shareIncludeSocial = !1, this.showNewestFirst = !1, this.zoomAndScrollToSelected = !1, this.pasteEnabled = !1, this.showCopyPasteActions = !1, this.layerIds = [], this._allIds = [], this._configLayerOrderDefined = !1, this._csvExporting = !1, this._fetchingData = !1, this._hideTable = !1, this._filterActive = !1, this._selectAllActive = !1, this._showHideOpen = !1, this._showOnlySelected = !1, this._toolInfos = [], this._translations = O({ name: "layer-table", blocking: !0 }), this._fullTextSearchInfo = [], this._searchPlaceHolder = "", this._size = 0, this._queryingData = !1, this._editEnabled = !1, this._enabledLayerIds = [], this._defaultGlobalIdHonored = !1, this._defaultOidHonored = !1, this._deleteEnabled = !1, this._floorExpression = "", this._floorField = "", this._floorLevel = "", this._loaded = !1, this._shareNode = y(), this._toolbar = y(), this._searchExpression = "", this._skipEditCheck = !1, this._tempSelectedIds = [], this._outOFExtentOids = [], this._shouldUpdateTableOnExtentChange = !0, this._creatingFeature = !1, this._searchNode = y(), this._layerEditsHandles = [], this._pastedFeaturesIds = [], this._shouldSelectCreatedFeatures = !1, this.columnReorder = o(), this.featureSelectionChange = o(), this.toggleFilter = o(), this.showDelete = o(), this.relatedRecordToggled = o(), this.editMultipleFeatures = o(), this.copyFeatures = o(), this.pasteFeatures = o(), this.featuresAdded = o(), this.initCreateComponent = o(), this.requestLayerSelectionChange = o(), this.beforeFeatureSelectionChange = o(), this.continueEditing = o(), this.createFeatureEditorInitialized = (e) => {
|
|
21
21
|
this._createFeatureEditor = e.detail;
|
|
@@ -220,21 +220,21 @@ class k extends A {
|
|
|
220
220
|
t.searchTerm = e.target.value;
|
|
221
221
|
}), this._searchFullText();
|
|
222
222
|
}
|
|
223
|
-
async _searchFullText() {
|
|
224
|
-
let
|
|
223
|
+
async _searchFullText(e = !1) {
|
|
224
|
+
let t = [], i = !1;
|
|
225
225
|
if (this._showOnlySelected)
|
|
226
|
-
|
|
227
|
-
else if (await this._validateActiveEdits([], this.selectedIds))
|
|
226
|
+
t = this._tempSelectedIds, i = !0;
|
|
227
|
+
else if (e ? !0 : await this._validateActiveEdits([], this.selectedIds))
|
|
228
228
|
this._clearSelection(), this._tempSelectedIds = [];
|
|
229
229
|
else
|
|
230
230
|
return;
|
|
231
231
|
this._searchExpression && this._clearSearchDefinitionExpression();
|
|
232
|
-
let
|
|
232
|
+
let s = [];
|
|
233
233
|
if (this._fullTextSearchInfo?.length && this._fullTextSearchInfo[0].searchTerm) {
|
|
234
|
-
const
|
|
235
|
-
|
|
234
|
+
const a = this._layer?.createQuery();
|
|
235
|
+
a.fullText = this._fullTextSearchInfo, s = this._layer ? await this._layer.queryObjectIds(a) : [], i && t?.length && (s = s.filter((l) => t.includes(l))), await this._updateSearchDefinitionExpression(s?.length ? s : [-1]);
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
i && s?.length && (this._showOnlySelected = !0, this._table?.highlightIds.addMany(s.reverse())), this._selectedLayerView ? await p.once(() => !this._selectedLayerView.updating) : await new Promise((a) => setTimeout(a, 800)), this._allIds = await this.queryAllIds(), this.selectedIds = this.selectedIds.filter((a) => this._allIds.indexOf(a) > -1), await this._refresh(!1, !0);
|
|
238
238
|
}
|
|
239
239
|
_clearSearchDefinitionExpression() {
|
|
240
240
|
const e = this._layer?.definitionExpression;
|
|
@@ -441,7 +441,7 @@ class k extends A {
|
|
|
441
441
|
if (this._shouldSelectCreatedFeatures) {
|
|
442
442
|
await this._selectFeatures(n, i), i === f && this.featuresAdded.emit(n);
|
|
443
443
|
return;
|
|
444
|
-
} else i === f && n.length > 0 ? (this._searchExpression
|
|
444
|
+
} else i === f && n.length > 0 ? (this._searchExpression ? (this._clearSelection(), await this._searchFullText(!0)) : await this._refresh(!1, !0), this.initCreateComponent.emit()) : i === f && d.length > 0 && this._searchExpression && await this._selectFeatures(d, i);
|
|
445
445
|
});
|
|
446
446
|
a && this._layerEditsHandles.push(a);
|
|
447
447
|
}
|
|
@@ -450,7 +450,7 @@ class k extends A {
|
|
|
450
450
|
try {
|
|
451
451
|
const i = this._layer?.id;
|
|
452
452
|
if (t === i) {
|
|
453
|
-
await this.
|
|
453
|
+
this._searchExpression ? (await this._searchFullText(!0), this._allIds = await this.queryAllIds()) : (await this._refresh(!1, !0), this._clearSelection());
|
|
454
454
|
const s = [];
|
|
455
455
|
for (const a of e)
|
|
456
456
|
this._allIds.includes(a) && s.push(a);
|
|
@@ -952,7 +952,7 @@ class k extends A {
|
|
|
952
952
|
}));
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
E("layer-table",
|
|
955
|
+
E("layer-table", V);
|
|
956
956
|
export {
|
|
957
|
-
|
|
957
|
+
V as LayerTable
|
|
958
958
|
};
|
|
@@ -116,7 +116,8 @@ class k extends D {
|
|
|
116
116
|
category: V.DEPLOYMENTS,
|
|
117
117
|
action: "Rename Items",
|
|
118
118
|
dimensions: [
|
|
119
|
-
|
|
119
|
+
"",
|
|
120
|
+
// Remove to prevent PII from being logged
|
|
120
121
|
this.card?.deployCommonId || "",
|
|
121
122
|
this.card?.deployVersion || "",
|
|
122
123
|
this.source,
|
|
@@ -45,7 +45,8 @@ class E extends g {
|
|
|
45
45
|
category: I.DEPLOYMENTS,
|
|
46
46
|
action: "Delete Solution",
|
|
47
47
|
dimensions: [
|
|
48
|
-
|
|
48
|
+
"",
|
|
49
|
+
// Remove to prevent PII from being logged
|
|
49
50
|
this.card?.deployCommonId || "",
|
|
50
51
|
this.card?.deployVersion || "",
|
|
51
52
|
this.source,
|
|
@@ -134,7 +134,8 @@ class V extends v {
|
|
|
134
134
|
category: n.DEPLOYMENTS,
|
|
135
135
|
action: "Open Help",
|
|
136
136
|
dimensions: [
|
|
137
|
-
|
|
137
|
+
"",
|
|
138
|
+
// Remove to prevent PII from being logged
|
|
138
139
|
this.card?.deployCommonId || "",
|
|
139
140
|
this.card?.deployVersion || "",
|
|
140
141
|
"Details Page",
|
|
@@ -147,7 +148,8 @@ class V extends v {
|
|
|
147
148
|
category: n.DEPLOYMENTS,
|
|
148
149
|
action: "Open Item Details",
|
|
149
150
|
dimensions: [
|
|
150
|
-
|
|
151
|
+
"",
|
|
152
|
+
// Remove to prevent PII from being logged
|
|
151
153
|
this.card?.deployCommonId || "",
|
|
152
154
|
this.card?.deployVersion || "",
|
|
153
155
|
"Details Page",
|
|
@@ -168,7 +170,8 @@ class V extends v {
|
|
|
168
170
|
category: n.DEPLOYMENTS,
|
|
169
171
|
action: "View Diagram",
|
|
170
172
|
dimensions: [
|
|
171
|
-
|
|
173
|
+
"",
|
|
174
|
+
// Remove to prevent PII from being logged
|
|
172
175
|
this.card?.deployCommonId || "",
|
|
173
176
|
this.card?.deployVersion || "",
|
|
174
177
|
"Details Page",
|
|
@@ -208,7 +211,8 @@ class V extends v {
|
|
|
208
211
|
category: n.DEPLOYMENTS,
|
|
209
212
|
action: "View Latest Version",
|
|
210
213
|
dimensions: [
|
|
211
|
-
|
|
214
|
+
"",
|
|
215
|
+
// Remove to prevent PII from being logged
|
|
212
216
|
this.card?.deployCommonId || "",
|
|
213
217
|
this.card?.deployVersion || ""
|
|
214
218
|
]
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as v } from "lit/directives/repeat.js";
|
|
4
4
|
import { u as T } from "../../chunks/useT9n.js";
|
|
5
|
-
import { LitElement as w, createEvent as d, safeClassMap as
|
|
5
|
+
import { LitElement as w, createEvent as d, safeClassMap as _, nothing as C } from "@arcgis/lumina";
|
|
6
6
|
import { css as S, html as c } from "lit";
|
|
7
|
-
import { T as
|
|
7
|
+
import { T as y } from "../../chunks/solutions-deploy-app-nav.js";
|
|
8
8
|
import { a as D, T as h, y as A, B as x, e as I } from "../../chunks/interfaces.js";
|
|
9
9
|
import { createRef as o, ref as a } from "lit-html/directives/ref.js";
|
|
10
|
-
import { C as
|
|
10
|
+
import { C as g } from "../../chunks/CardsFetcher.js";
|
|
11
11
|
import { g as O } from "../../chunks/cardFetchingUtils.js";
|
|
12
|
-
import { useContextProvider as
|
|
12
|
+
import { useContextProvider as m } from "@arcgis/lumina/context";
|
|
13
13
|
import { c as F, b as $, i as L } from "../../chunks/deployAppContexts.js";
|
|
14
14
|
import { t as M } from "../../chunks/solution-builder-assistant.js";
|
|
15
15
|
import { h as k, a as E } from "../../chunks/cardsHelpers.js";
|
|
@@ -677,10 +677,10 @@ const R = S`.back-color-override{background-color:var(--calcite-color-surface-3)
|
|
|
677
677
|
};
|
|
678
678
|
class V extends w {
|
|
679
679
|
constructor() {
|
|
680
|
-
super(), this.initTitleOrId = "", this.sortType = "relevance", this.useLocalAppConfig = !1, this.loadExampleBuilderData = !1, this.authentication = void 0, this._isLoaded = !1, this.isMobile = !1, this._isViewportMobile = window.innerWidth <= 800, this._isAssistantOpen = !1, this._builderVisible = !1, this._hasActiveBuilderDesign = !1, this._showFabTooltip = !0, this._fabTooltipDismissed = !1, this._activeTab = "all-solutions", this._activeResourcesMenuItem = "getStarted", this._showDeployedCardFetchFailed = !1, this._globalAlerts = [], this._translations = T({ name: "solutions-deploy-app", blocking: !0 }), this._agoTerms = `${D}`, this._allCards = [], this._allShell = o(), this._allTab = o(), this._allTabTitle = o(), this._resourcesTab = o(), this._resourcesTabTitle = o(), this._categories = [], this._configContextProvider =
|
|
680
|
+
super(), this.initTitleOrId = "", this.sortType = "relevance", this.useLocalAppConfig = !1, this.loadExampleBuilderData = !1, this.authentication = void 0, this._isLoaded = !1, this.isMobile = !1, this._isViewportMobile = window.innerWidth <= 800, this._isAssistantOpen = !1, this._builderVisible = !1, this._hasActiveBuilderDesign = !1, this._showFabTooltip = !0, this._fabTooltipDismissed = !1, this._activeTab = "all-solutions", this._activeResourcesMenuItem = "getStarted", this._showDeployedCardFetchFailed = !1, this._globalAlerts = [], this._translations = T({ name: "solutions-deploy-app", blocking: !0 }), this._agoTerms = `${D}`, this._allCards = [], this._allShell = o(), this._allTab = o(), this._allTabTitle = o(), this._resourcesTab = o(), this._resourcesTabTitle = o(), this._categories = [], this._configContextProvider = m({ context: F }), this._delay = !1, this._deployAppNav = o(), this._deployedCardPanel = o(), this._deployCardFetchFailedMessage = "", this._deployedCardTab = o(), this._deployedCardTabTitle = o(), this._detailsShell = o(), this._detailsTab = o(), this._detailsTabTitle = o(), this._forceInit = !1, this._getSuggested = !1, this._tabpanelsFixed = !1, this._solutionBuilderPanel = o(), this._builderDesignContextProvider = m({ context: $ }), this._isMobileContextProvider = m({ context: L }), this._handleWindowResize = () => {
|
|
681
681
|
const e = window.innerWidth <= 800;
|
|
682
682
|
this._isViewportMobile !== e && (this._isViewportMobile = e, e && (this._isAssistantOpen = !1, this._builderVisible = !1));
|
|
683
|
-
}, this._mainContentRef = o(), this._mySolutionsShell = o(), this._mySolutionsTab = o(), this._mySolutionsTabTitle = o(), this._resourcesShell = o(), this._sortField = "relevance", this._sortOrder = "desc", this._telemetryManager = new
|
|
683
|
+
}, this._mainContentRef = o(), this._mySolutionsShell = o(), this._mySolutionsTab = o(), this._mySolutionsTabTitle = o(), this._resourcesShell = o(), this._sortField = "relevance", this._sortOrder = "desc", this._telemetryManager = new y(), this.deployAppTabSelected = d(), this.deployedCardFetchFailed = d(), this.detailsCardSelected = d(), this.deployedCardSelected = d(), this.metaTagStringsReady = d(), this.sessionRefreshed = d(), this.tabChanged = d(), this.listenOn(window, "detailsCardSelected", this._detailsCardSelected), this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "displayDeployedCard", this._handleDeployedCardDisplay), this.listenOn(window, "navTabSelected", this._setActiveTab), this.listenOn(window, "forceSelectTab", (e) => this.selectTab(e.detail, {})), this.listenOn(window, "showGlobalAlert", this._handleShowGlobalAlert), this.listenOn(window, "openAssistant", () => {
|
|
684
684
|
this._openAssistant();
|
|
685
685
|
}), this.listenOn(window, "closeAssistant", () => {
|
|
686
686
|
this._isAssistantOpen = !1, this._builderVisible = !1;
|
|
@@ -809,9 +809,9 @@ class V extends w {
|
|
|
809
809
|
}
|
|
810
810
|
render() {
|
|
811
811
|
const e = this._isLoaded ? "display-none" : "", t = this._isLoaded ? "" : "display-none";
|
|
812
|
-
return c`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen ? " assistant-open" : ""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing() && c`<div class="border"></div>` || ""}<solutions-searchsort-toolbar class=${
|
|
812
|
+
return c`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen ? " assistant-open" : ""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing() && c`<div class="border"></div>` || ""}<solutions-searchsort-toolbar class=${_(this._activeTab === "resources" ? "display-none" : "")} ${a(async (i) => {
|
|
813
813
|
i && (await this._deployAppNav.value?.componentOnReady(), this._searchSortToolbar = i, i.scope = this._activeTab);
|
|
814
|
-
})}></solutions-searchsort-toolbar>${this._activeTab === "resources" && c`<div class="border"></div><div class="resources-menu-container"><calcite-menu .label=${this._translations.resourcesNavigationMenuLabel} class="resources-menu-toolbar"><calcite-menu-item .active=${this._activeResourcesMenuItem === "getStarted" || void 0} .label=${this._translations.resourcesGetStarted} .text=${this._translations.resourcesGetStarted} @click=${() => this._handleResourcesMenuClick("getStarted")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem === "documentation" || void 0} .label=${this._translations.resourcesDocumentation} .text=${this._translations.resourcesDocumentation} @click=${() => this._handleResourcesMenuClick("documentation")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem === "support" || void 0} .label=${this._translations.resourcesSupport} .text=${this._translations.resourcesSupport} @click=${() => this._handleResourcesMenuClick("support")}></calcite-menu-item></calcite-menu></div>` || ""}<calcite-loader class=${
|
|
814
|
+
})}></solutions-searchsort-toolbar>${this._activeTab === "resources" && c`<div class="border"></div><div class="resources-menu-container"><calcite-menu .label=${this._translations.resourcesNavigationMenuLabel} class="resources-menu-toolbar"><calcite-menu-item .active=${this._activeResourcesMenuItem === "getStarted" || void 0} .label=${this._translations.resourcesGetStarted} .text=${this._translations.resourcesGetStarted} @click=${() => this._handleResourcesMenuClick("getStarted")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem === "documentation" || void 0} .label=${this._translations.resourcesDocumentation} .text=${this._translations.resourcesDocumentation} @click=${() => this._handleResourcesMenuClick("documentation")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem === "support" || void 0} .label=${this._translations.resourcesSupport} .text=${this._translations.resourcesSupport} @click=${() => this._handleResourcesMenuClick("support")}></calcite-menu-item></calcite-menu></div>` || ""}<calcite-loader class=${_(e)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${_(t)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell class="height-100" ${a(this._resourcesShell)}></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise && c`<div class=${`builder-panel${this._builderVisible && !this._isViewportMobile ? "" : " display-none"}`}><solution-builder-assistant class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._solutionBuilderPanel)}></solution-builder-assistant></div><div class=${`assistant-panel${this._isAssistantOpen && !this._isViewportMobile ? "" : " display-none"}`}><arcgis-solutions-assistant class="height-100" .builderVisible=${this._builderVisible} .hasActiveBuilderDesign=${this._hasActiveBuilderDesign}></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip ?? C} class=${`assistant-fab${this._isAssistantOpen || this._isViewportMobile ? " display-none" : ""}`} icon=effects id=assistant-fab-button @click=${() => {
|
|
815
815
|
this._openAssistant(), this._fabTooltipDismissed = !0, this._showFabTooltip = !1;
|
|
816
816
|
}} scale=l></calcite-fab>${!this._fabTooltipDismissed && c`<calcite-popover closable class=${`assistant-fab-popover${this._isAssistantOpen || this._isViewportMobile ? " display-none" : ""}`} .label=${this._translations.assistantFabTooltip} overlay-positioning=fixed @calcitePopoverClose=${() => {
|
|
817
817
|
this._fabTooltipDismissed = !0, this._showFabTooltip = !1;
|
|
@@ -831,7 +831,7 @@ class V extends w {
|
|
|
831
831
|
}
|
|
832
832
|
async _handleAuthInit(e) {
|
|
833
833
|
const t = e.detail;
|
|
834
|
-
t.telemetrySession || (t.telemetrySession =
|
|
834
|
+
t.telemetrySession || (t.telemetrySession = y.getDisabledSession()), this._configContextProvider.setValue(t), t.authentication && (this.authentication = t.authentication), this._cardFetcherDeployed = new g(t.locale, t.orgUrl, t.portalURL), this._cardsFetcher = new g(t.locale, t.orgUrl, t.portalURL), this._isDisconnectedEnvironment || await this._getSolutions(t.primarySolutionsGroupId, t.agoBasedEnterpriseSolutionsGroupId), this._configContextProvider.value.allCards = this._allCards, this._configContextProvider.value.anonAgolSession = this._cardsFetcher.anonAgolSession, this._configContextProvider.value.agolPortalUrl = this._cardsFetcher.agolPortalUrl, await this._initializeTelemetry(), this._isLoaded = !0, this._setRefreshInterval(), this._initTab ? (this.selectTab(this._initTab, this._initFilters), this._logTabViewTelemetry(this._initTab.tabType), this._initTab = void 0, this._initFilters = void 0) : this.authentication?.IsSignedIn && (this.initTab === "details" || this.initTab === "deployed-card" || (this._logTabViewTelemetry(this._activeTab), this._emitMetaTagStrings(this._activeTab)));
|
|
835
835
|
}
|
|
836
836
|
_setActiveTab(e) {
|
|
837
837
|
const i = e.detail.tabType, s = this._activeTab !== i;
|
|
@@ -876,8 +876,8 @@ class V extends w {
|
|
|
876
876
|
if (!((e === "details" || e === "deployed-card") && !t) && i) {
|
|
877
877
|
const s = [];
|
|
878
878
|
if ((e === "details" || e === "deployed-card") && t) {
|
|
879
|
-
const l = t;
|
|
880
|
-
s.push(
|
|
879
|
+
const l = t, p = e === "deployed-card" ? "" : l.title || "";
|
|
880
|
+
s.push(p), s.push(l.deployCommonId || ""), s.push(l.deployVersion || ""), s.push(""), s.push(P(l.typeKeywords));
|
|
881
881
|
}
|
|
882
882
|
const n = e === "deployed-card" ? "Open" : "View";
|
|
883
883
|
this._telemetry?.logEvent({
|
|
@@ -999,12 +999,12 @@ class V extends w {
|
|
|
999
999
|
_getDefaultSearchOptions(e) {
|
|
1000
1000
|
let t;
|
|
1001
1001
|
if (e) {
|
|
1002
|
-
const i = e.domain, s = e.industry === "AEC" ? I.AEC : e.industry, n = e.offerType, l = e.searchTerm,
|
|
1002
|
+
const i = e.domain, s = e.industry === "AEC" ? I.AEC : e.industry, n = e.offerType, l = e.searchTerm, p = "";
|
|
1003
1003
|
let r = e.sortField;
|
|
1004
|
-
const
|
|
1004
|
+
const u = e.owner, b = e.filter;
|
|
1005
1005
|
r === "suggested" && !this.authentication?.IsSignedIn && (r = this.sortType), t = i || s ? {
|
|
1006
1006
|
type: i ? "domain" : s ? "industry" : ""
|
|
1007
|
-
} : void 0, i && (t = t ? { ...t, domain: i } : { domain: i }), s && (t = t ? { ...t, industry: s } : { industry: s }), l && (t = t ? { ...t, searchTerm: l } : { searchTerm: l }), t && (t = { ...t, displayValue:
|
|
1007
|
+
} : void 0, i && (t = t ? { ...t, domain: i } : { domain: i }), s && (t = t ? { ...t, industry: s } : { industry: s }), l && (t = t ? { ...t, searchTerm: l } : { searchTerm: l }), t && (t = { ...t, displayValue: p }), r && (t = t ? { ...t, sortType: r } : { sortType: r }), n && (r = n.toLowerCase(), t = t ? { ...t, sortType: r } : { sortType: r }), u && (t = t ? { ...t, owner: u } : { owner: u }), b && (t = t ? { ...t, filter: b } : { filter: b });
|
|
1008
1008
|
}
|
|
1009
1009
|
return t;
|
|
1010
1010
|
}
|