@esri/solutions-components 5.1.0-next.65 → 5.1.0-next.67
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/{KXQ6EA36.js → 33OQKT4F.js} +1 -1
- package/dist/cdn/{GRBH2MOX.js → 3XPKAEMR.js} +1 -1
- package/dist/cdn/{5PIM2BOZ.js → 3XX5UDIU.js} +1 -1
- package/dist/cdn/{IU6ZANQW.js → 42WASQMZ.js} +1 -1
- package/dist/cdn/{2GS5DXMX.js → 43HTXWT4.js} +1 -1
- package/dist/cdn/{CPKTXSK2.js → 4NCV4IWX.js} +1 -1
- package/dist/cdn/4WTAL6YU.js +2 -0
- package/dist/cdn/{3KVDFRXD.js → 4YB7FA37.js} +1 -1
- package/dist/cdn/5TPLPDK2.js +2 -0
- package/dist/cdn/{NFRTFOHF.js → 65Q3GK3L.js} +1 -1
- package/dist/cdn/{ZSJ55A7H.js → 6LHM6EFD.js} +1 -1
- package/dist/cdn/7EEAVPTU.js +2 -0
- package/dist/cdn/{JSI6JODX.js → 7WQMX5XY.js} +1 -1
- package/dist/cdn/{CLF2PJYC.js → BF6NM5HV.js} +1 -1
- package/dist/cdn/BIYG7PA2.js +2 -0
- package/dist/cdn/{H2PJ6QZT.js → BWTBRONP.js} +1 -1
- package/dist/cdn/{GQWWZGLF.js → BXXN7BIC.js} +1 -1
- package/dist/cdn/{4Y4JREZI.js → CACSAX3Q.js} +1 -1
- package/dist/cdn/{NH3ESMSN.js → COTZWDC3.js} +1 -1
- package/dist/cdn/CR2XUUG5.js +2 -0
- package/dist/cdn/{BMOMM64K.js → E7RDA5B4.js} +1 -1
- package/dist/cdn/EUY3GSFI.js +2 -0
- package/dist/cdn/{ONSABHYA.js → GUKPMOPC.js} +1 -1
- package/dist/cdn/{IMN5BMIM.js → GYQ22PJ6.js} +1 -1
- package/dist/cdn/{UQTAX7HB.js → I2AQZTRJ.js} +1 -1
- package/dist/cdn/{FLRIF3C7.js → JCTGE6OA.js} +1 -1
- package/dist/cdn/LCBZNTKI.js +2 -0
- package/dist/cdn/{BK7LW2RY.js → LE6OUXPN.js} +1 -1
- package/dist/cdn/M6ZFMO6K.js +2 -0
- package/dist/cdn/{A6HMNEQC.js → N73GF6WL.js} +1 -1
- package/dist/cdn/{MAUD35WR.js → OPJPVHX6.js} +1 -1
- package/dist/cdn/{7ZN2BMYK.js → PBWC3QFN.js} +1 -1
- package/dist/cdn/{KRWRWUTJ.js → QF3LZFWW.js} +1 -1
- package/dist/cdn/{PTWSYW3E.js → QX7YHRF5.js} +2 -2
- package/dist/cdn/{5TB2UXTT.js → SUN2LQ7K.js} +1 -1
- package/dist/cdn/{DYJGZIDV.js → TYSZL2RK.js} +1 -1
- package/dist/cdn/UHVBUHU3.js +2 -0
- package/dist/cdn/{CWGUKAP6.js → V7UWSW6U.js} +1 -1
- package/dist/cdn/{U4EZHJYT.js → WR3YNDFH.js} +1 -1
- package/dist/cdn/XEQSHS4A.js +2 -0
- package/dist/cdn/{YNERGBJG.js → XY4HNUJE.js} +1 -1
- package/dist/cdn/ZSPRUX4H.js +2 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +12 -12
- package/dist/chunks/helpers.js +44 -38
- package/dist/chunks/solution-deploy-dialog.js +1 -1
- package/dist/chunks/solutions-deploy-app-nav.js +35 -36
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +4 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +8 -8
- package/dist/components/arcgis-solutions-assistant/index.js +3 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deployed-card-panel/customElement.d.ts +4 -0
- package/dist/components/solution-deployed-card-panel/customElement.js +103 -57
- package/dist/components/solution-deployed-card-panel/index.js +0 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +6 -6
- package/dist/components/solution-item-accordion/customElement.d.ts +4 -2
- package/dist/components/solution-item-accordion/customElement.js +3 -3
- package/dist/components/solution-resource-card/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-user-avatar/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +6 -6
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.d.ts +2 -0
- package/dist/components/solutions-deploy-app/customElement.js +117 -95
- package/dist/components/solutions-deploy-app/index.js +4 -0
- package/dist/components/solutions-deploy-app-nav/customElement.d.ts +6 -0
- package/dist/components/solutions-deploy-app-nav/customElement.js +2 -4
- package/dist/components/solutions-deployed-panel/customElement.js +35 -26
- package/dist/components/solutions-deployed-panel/index.js +0 -1
- package/dist/components/solutions-deployed-shell/customElement.js +25 -21
- package/dist/components/solutions-deployed-shell/index.js +0 -1
- package/dist/components/solutions-filter-panel/customElement.d.ts +0 -6
- package/dist/components/solutions-filter-panel/customElement.js +46 -61
- package/dist/components/solutions-filter-panel/index.js +0 -3
- package/dist/components/solutions-resources-shell/customElement.d.ts +6 -0
- package/dist/components/solutions-resources-shell/customElement.js +9 -9
- package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +5 -5
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/types/lumina.d.ts +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/dist/utils/interfaces.d.ts +10 -0
- package/package.json +1 -1
- package/dist/cdn/BDCGPJPJ.js +0 -2
- package/dist/cdn/BFKX5BLC.js +0 -2
- package/dist/cdn/CF6JSZPY.js +0 -2
- package/dist/cdn/DIUHLPYD.js +0 -2
- package/dist/cdn/GFW4PBUK.js +0 -2
- package/dist/cdn/HUJNR7CU.js +0 -2
- package/dist/cdn/N3EAHFBX.js +0 -2
- package/dist/cdn/O3A436MI.js +0 -2
- package/dist/cdn/PQIJUUY3.js +0 -2
- package/dist/cdn/V66MBBFA.js +0 -2
- package/dist/cdn/ZMQ6KCYQ.js +0 -2
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as d } from "../../chunks/useT9n.js";
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { useContextConsumer as
|
|
4
|
+
import { LitElement as p, createEvent as o, safeStyleMap as h } from "@arcgis/lumina";
|
|
5
|
+
import { useContextConsumer as l } from "@arcgis/lumina/context";
|
|
6
6
|
import { css as u, html as i, svg as g } from "lit";
|
|
7
7
|
import { c as f, i as b } from "../../chunks/deployAppContexts.js";
|
|
8
8
|
import { createRef as s, ref as r } from "lit/directives/ref.js";
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
class
|
|
9
|
+
import { H as v, K as m } from "../../chunks/helpers.js";
|
|
10
|
+
const x = u`calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.text-center{text-align:center}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: var(--calcite-spacing-none);--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none);font-weight:var(--calcite-font-weight-medium)}.header-content-wrapper{padding-inline-start:var(--calcite-spacing-xxs)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.justify-content-start{justify-content:start}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.height-50{height:50px}.sign-in-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.sign-in-icon{transform:translate(-20px)}.height-150{height:150px}.width-150{width:150px}.padding-top-8{padding-top:8px}`;
|
|
11
|
+
class _ extends p {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(), this.solutionsCount = 0, this.filterOpen = !0, this.isMobile = !1, this.
|
|
13
|
+
super(), this.solutionsCount = 0, this.filterOpen = !0, this.isMobile = !1, this._translations = d({ name: "solutions-deployed-shell", blocking: !0 }), this._configContextConsumer = l({
|
|
14
14
|
context: f,
|
|
15
15
|
subscribe: !0
|
|
16
|
-
}), this.
|
|
16
|
+
}), this._isMobileContextConsumer = l({
|
|
17
17
|
context: b,
|
|
18
18
|
subscribe: !0,
|
|
19
19
|
callback: (e) => this.isMobile = e
|
|
20
|
-
}), this._solutionsDeployedPanelRef = s(), this._mainPanelRef = s(), this._panelFixed = !1, this.filterRemoved =
|
|
20
|
+
}), this._solutionsDeployedPanelRef = s(), this._mainPanelRef = s(), this._panelFixed = !1, this.filterRemoved = o(), this.tokenRefreshed = o(), this._handleSignIn = () => {
|
|
21
21
|
const e = window.location.pathname.endsWith("deployments") ? "" : "deployments";
|
|
22
22
|
this._configContextConsumer.value?.authentication?.signIn(e);
|
|
23
23
|
}, this.listenOn(window, "deployedCardFetchFailed", (e) => {
|
|
24
24
|
const t = e.detail;
|
|
25
|
-
|
|
25
|
+
v({
|
|
26
|
+
kind: "danger",
|
|
27
|
+
icon: "exclamation-mark-triangle",
|
|
28
|
+
title: t.title,
|
|
29
|
+
message: t.message,
|
|
30
|
+
autoClose: !1
|
|
31
|
+
});
|
|
26
32
|
});
|
|
27
33
|
}
|
|
28
34
|
static {
|
|
29
|
-
this.properties = { solutionsCount: 9, filterOpen: 16, isMobile: 16,
|
|
35
|
+
this.properties = { solutionsCount: 9, filterOpen: 16, isMobile: 16, _translations: 16 };
|
|
30
36
|
}
|
|
31
37
|
static {
|
|
32
|
-
this.styles =
|
|
38
|
+
this.styles = x;
|
|
33
39
|
}
|
|
34
40
|
willUpdate(e) {
|
|
35
41
|
e.has("isMobile") && (this.filterOpen = !this.isMobile);
|
|
@@ -60,10 +66,10 @@ class x extends h {
|
|
|
60
66
|
if (this._panelObserver)
|
|
61
67
|
return;
|
|
62
68
|
this._panelObserver = new MutationObserver((t) => {
|
|
63
|
-
t.forEach((
|
|
64
|
-
if (
|
|
65
|
-
const
|
|
66
|
-
|
|
69
|
+
t.forEach((n) => {
|
|
70
|
+
if (n.type === "attributes" && n.attributeName === "tabindex") {
|
|
71
|
+
const a = n.target;
|
|
72
|
+
a.classList.contains("content-wrapper") && a.tabIndex === 0 && (a.tabIndex = -1);
|
|
67
73
|
}
|
|
68
74
|
});
|
|
69
75
|
});
|
|
@@ -83,13 +89,11 @@ class x extends h {
|
|
|
83
89
|
return i`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1" ${r(this._mainPanelRef)}><div class=${`display-flex align-items-center height-50 header-content-wrapper ${e}`} slot=header-content><calcite-label class="label-override flex-shrink-0 padding-top-8" layout=inline>${this._translations.numberOfDeployments?.replace("{{count}}", this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsDeployedPanel()}</calcite-panel></calcite-shell>`;
|
|
84
90
|
}
|
|
85
91
|
_getSignInPrompt() {
|
|
86
|
-
return i`<div class="sign-in-prompt">${this._getSignInIcon()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.signInMessage}</div><calcite-button appearance=outline @click=${this._handleSignIn} @keydown=${(e) =>
|
|
92
|
+
return i`<div class="sign-in-prompt">${this._getSignInIcon()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.signInMessage}</div><calcite-button appearance=outline @click=${this._handleSignIn} @keydown=${(e) => m(e, () => this._handleSignIn())} scale=l>${this._translations.signIn}</calcite-button></div>`;
|
|
87
93
|
}
|
|
88
94
|
_getSolutionsDeployedPanel() {
|
|
89
95
|
const e = this.isMobile && this.filterOpen ? { display: "none" } : "";
|
|
90
|
-
return i`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${
|
|
91
|
-
this._showAlertFailed = !1;
|
|
92
|
-
}} .open=${this._showAlertFailed}><div slot=title>${this._deployedCardFetchFailedTitle}</div><div slot=message>${this._deployedCardFetchFailedMessage}</div></calcite-alert></div>`;
|
|
96
|
+
return i`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${h(e)} ${r(this._solutionsDeployedPanelRef)}></solutions-deployed-panel></div>`;
|
|
93
97
|
}
|
|
94
98
|
_updateSolutionCount(e) {
|
|
95
99
|
this.solutionsCount = e.detail;
|
|
@@ -98,7 +102,7 @@ class x extends h {
|
|
|
98
102
|
return i`<div class="sign-in-icon"><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${g`<path d="M56.9 4.1V60h-.8V4.9H23.3l25.6 7.47v39.26l-28.8 8.4V35h.8v23.97l27.2-7.94V12.97L20.9 5.03V30h-.8V4.1h36.8zM30.735 41.7l.565.566 9.766-9.766-9.766-9.766-.565.567 8.799 8.799H5v.8h34.534l-8.8 8.8z" fill=var(--calcite-color-text-3) />`}</svg></div>`;
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
|
-
c("solutions-deployed-shell",
|
|
105
|
+
c("solutions-deployed-shell", _);
|
|
102
106
|
export {
|
|
103
|
-
|
|
107
|
+
_ as SolutionsDeployedShell
|
|
104
108
|
};
|
|
@@ -3,5 +3,4 @@ import "@esri/calcite-components/components/calcite-panel";
|
|
|
3
3
|
import "@esri/calcite-components/components/calcite-label";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-button";
|
|
5
5
|
import "../solutions-deployed-panel/index.js";
|
|
6
|
-
import "@esri/calcite-components/components/calcite-alert";
|
|
7
6
|
export * from "./customElement.js";
|
|
@@ -106,12 +106,6 @@ export abstract class SolutionsFilterPanel extends LitElement {
|
|
|
106
106
|
* @default false
|
|
107
107
|
*/
|
|
108
108
|
accessor hideIndustryFilter: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Determines if AI Assistant is open.
|
|
111
|
-
*
|
|
112
|
-
* @default false
|
|
113
|
-
*/
|
|
114
|
-
accessor isAIDialogOpen: boolean;
|
|
115
109
|
/**
|
|
116
110
|
* Flag to display reset in the panel
|
|
117
111
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as N } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as y, html as d } from "lit";
|
|
4
4
|
import { repeat as g } from "lit/directives/repeat.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { c as
|
|
5
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
6
|
+
import { LitElement as S, createEvent as p, safeClassMap as f } from "@arcgis/lumina";
|
|
7
|
+
import { c as C, i as I } from "../../chunks/deployAppContexts.js";
|
|
8
8
|
import { useContextConsumer as _ } from "@arcgis/lumina/context";
|
|
9
|
-
import { e as F, d as
|
|
10
|
-
const
|
|
9
|
+
import { e as F, d as A, K as E } from "../../chunks/helpers.js";
|
|
10
|
+
const R = y`.width-full{width:100%}calcite-panel{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-panel-footer-space: var(--calcite-spacing-sm)}.border-color{--calcite-block-border-color: transparent}calcite-block{margin:0;--calcite-block-content-space: 0}.tree-padding{padding:0 .2rem}.display-none{display:none}`, v = {
|
|
11
11
|
PUBLICSAFETY: ["EMERGENCYMANAGEMENT", "FIRESERVICE", "LAWENFORCEMENT"],
|
|
12
12
|
STATEANDLOCALGOVERNMENT: [
|
|
13
13
|
"AGRICULTURE",
|
|
@@ -26,19 +26,19 @@ const T = f`.width-full{width:100%}calcite-panel{--calcite-panel-background-colo
|
|
|
26
26
|
"TRANSPORTATION"
|
|
27
27
|
],
|
|
28
28
|
UTILITIES: ["DISTRICTENERGY", "ELECTRIC", "GAS", "SEWER", "STORMWATER", "WATER"]
|
|
29
|
-
},
|
|
29
|
+
}, M = Object.keys(F).reduce(
|
|
30
30
|
(m, t) => {
|
|
31
31
|
const e = t;
|
|
32
|
-
return m[e] =
|
|
32
|
+
return m[e] = v[e] ?? [], m;
|
|
33
33
|
},
|
|
34
34
|
{}
|
|
35
35
|
);
|
|
36
|
-
class
|
|
36
|
+
class T extends S {
|
|
37
37
|
constructor() {
|
|
38
|
-
super(), this.hideIndustryFilter = !1, this.
|
|
38
|
+
super(), this.hideIndustryFilter = !1, this.showReset = !1, this._activeFilterSettings = {
|
|
39
39
|
categories: []
|
|
40
|
-
}, this._isMobile = !1, this._translations =
|
|
41
|
-
context:
|
|
40
|
+
}, this._isMobile = !1, this._translations = b({ name: "solutions-filter-panel", blocking: !0 }), this._userFirstName = "", this._configContextConsumer = _({
|
|
41
|
+
context: C,
|
|
42
42
|
subscribe: !0,
|
|
43
43
|
callback: (t) => {
|
|
44
44
|
t?.userSession && !this._userFirstName && this._loadUserFirstName();
|
|
@@ -54,52 +54,42 @@ class M extends N {
|
|
|
54
54
|
categories: [...e]
|
|
55
55
|
});
|
|
56
56
|
}, this._industryMatchName = (t) => {
|
|
57
|
-
const e = Object.keys(this._translations.industries).find((
|
|
57
|
+
const e = Object.keys(this._translations.industries).find((c) => c.toUpperCase() === t.replaceAll(" ", "").toUpperCase());
|
|
58
58
|
return e && e in this._translations.industries ? this._translations.industries[e] : t;
|
|
59
59
|
}, this._domainMatchName = (t) => {
|
|
60
|
-
const e = Object.keys(this._translations.industriesDomain).find((
|
|
60
|
+
const e = Object.keys(this._translations.industriesDomain).find((c) => c.toUpperCase() === t.replaceAll(" ", "").toUpperCase());
|
|
61
61
|
return e && e in this._translations.industriesDomain ? this._translations.industriesDomain[e] : t;
|
|
62
|
-
}, this.listenOn(window, "filterRemoved", this._handleFilterRemoved), this.listenOn(window, "
|
|
63
|
-
this.isAIDialogOpen = !1;
|
|
64
|
-
}), this.listenOn(window, "openAssistant", () => {
|
|
65
|
-
this.isAIDialogOpen = !0;
|
|
66
|
-
}), this.listenOn(window, "tabChanged", (t) => {
|
|
62
|
+
}, this.listenOn(window, "filterRemoved", this._handleFilterRemoved), this.listenOn(window, "tabChanged", (t) => {
|
|
67
63
|
t.detail === "all-solutions" ? this.updateUrlParams.emit(this._activeFilterSettings) : this.updateUrlParams.emit(null);
|
|
68
64
|
});
|
|
69
65
|
}
|
|
70
66
|
static {
|
|
71
|
-
this.properties = { hideIndustryFilter: 5,
|
|
67
|
+
this.properties = { hideIndustryFilter: 5, showReset: 5, _activeFilterSettings: 16, _isMobile: 16, _translations: 16, _userFirstName: 16 };
|
|
72
68
|
}
|
|
73
69
|
static {
|
|
74
|
-
this.styles =
|
|
70
|
+
this.styles = R;
|
|
75
71
|
}
|
|
76
|
-
|
|
77
|
-
return this._configContextConsumer.value?.isEnterprise;
|
|
78
|
-
}
|
|
79
|
-
get _telemetry() {
|
|
80
|
-
return this._configContextConsumer.value?.telemetrySession;
|
|
81
|
-
}
|
|
82
|
-
changeIndustryFilter(t, e, o, d) {
|
|
72
|
+
changeIndustryFilter(t, e, c, h) {
|
|
83
73
|
if (t !== "" || e !== "") {
|
|
84
|
-
let
|
|
74
|
+
let r = [];
|
|
85
75
|
if (e !== "") {
|
|
86
|
-
const i = F[t], a = this._industryMatchName(i), s =
|
|
87
|
-
|
|
76
|
+
const i = F[t], a = this._industryMatchName(i), s = A[e], n = this._domainMatchName(s);
|
|
77
|
+
r = [{
|
|
88
78
|
displayValue: a,
|
|
89
79
|
type: "industry",
|
|
90
80
|
value: t,
|
|
91
81
|
industry: t,
|
|
92
82
|
domain: ""
|
|
93
83
|
}, {
|
|
94
|
-
displayValue:
|
|
84
|
+
displayValue: n,
|
|
95
85
|
type: "domain",
|
|
96
86
|
value: e,
|
|
97
87
|
industry: t,
|
|
98
88
|
domain: e
|
|
99
89
|
}];
|
|
100
90
|
} else
|
|
101
|
-
|
|
102
|
-
displayValue:
|
|
91
|
+
r = [{
|
|
92
|
+
displayValue: c,
|
|
103
93
|
type: e !== "" ? "domain" : "industry",
|
|
104
94
|
value: e !== "" ? e : t,
|
|
105
95
|
industry: t,
|
|
@@ -107,11 +97,11 @@ class M extends N {
|
|
|
107
97
|
}];
|
|
108
98
|
this._activeFilterSettings = {
|
|
109
99
|
...this._activeFilterSettings,
|
|
110
|
-
categories: [...
|
|
111
|
-
},
|
|
100
|
+
categories: [...r]
|
|
101
|
+
}, h && this.applyFilter.emit(r);
|
|
112
102
|
} else {
|
|
113
|
-
const
|
|
114
|
-
displayValue:
|
|
103
|
+
const r = {
|
|
104
|
+
displayValue: c,
|
|
115
105
|
type: "industry",
|
|
116
106
|
value: t,
|
|
117
107
|
industry: t,
|
|
@@ -119,8 +109,8 @@ class M extends N {
|
|
|
119
109
|
};
|
|
120
110
|
this._activeFilterSettings = {
|
|
121
111
|
...this._activeFilterSettings,
|
|
122
|
-
categories: [
|
|
123
|
-
},
|
|
112
|
+
categories: [r]
|
|
113
|
+
}, h && this.applyFilter.emit(r);
|
|
124
114
|
}
|
|
125
115
|
}
|
|
126
116
|
clearFilters() {
|
|
@@ -130,36 +120,31 @@ class M extends N {
|
|
|
130
120
|
await this._loadUserFirstName(), this._isMobileContextConsumer.value && (this._isMobile = this._isMobileContextConsumer.value);
|
|
131
121
|
}
|
|
132
122
|
render() {
|
|
133
|
-
return
|
|
123
|
+
return d`<calcite-panel description heading>${this.showReset && d`<calcite-action appearance=solid icon=reset @click=${() => {
|
|
134
124
|
this.clearFilters();
|
|
135
|
-
}} slot=header-actions-end .text=${this._translations.resetFilters} text-enabled></calcite-action>` || ""}<calcite-block-group .label=${this._translations.filters} scale=l>${!this.hideIndustryFilter && this.renderIndustryBlock() || ""}</calcite-block-group
|
|
136
|
-
this._telemetry?.logEvent({
|
|
137
|
-
category: O.ASSISTANT,
|
|
138
|
-
action: "Open"
|
|
139
|
-
}), this.isAIDialogOpen = !0;
|
|
140
|
-
}} round scale=l slot=footer-start></calcite-button><calcite-tooltip reference-element=solutions-assistant-button placement=right slot=footer-start offset-distance=10 open><span>${this._translations.assistant.welcomeTip}</span></calcite-tooltip><arcgis-solutions-assistant .open=${this.isAIDialogOpen} .userFirstName=${this._userFirstName}></arcgis-solutions-assistant>` || ""}</calcite-panel>`;
|
|
125
|
+
}} slot=header-actions-end .text=${this._translations.resetFilters} text-enabled></calcite-action>` || ""}<calcite-block-group .label=${this._translations.filters} scale=l>${!this.hideIndustryFilter && this.renderIndustryBlock() || ""}</calcite-block-group></calcite-panel>`;
|
|
141
126
|
}
|
|
142
127
|
renderIndustryBlock() {
|
|
143
|
-
const t = (i, a) => !this._activeFilterSettings || !this._activeFilterSettings.categories ? !1 : this._activeFilterSettings.categories.some((s) => s.industry === i && (s.domain ?? "") === a), e = (i) => !this._activeFilterSettings || !this._activeFilterSettings.categories ? !1 : this._activeFilterSettings.categories.some((a) => a.industry === i && (a.domain ?? "") === ""),
|
|
144
|
-
const
|
|
145
|
-
return
|
|
146
|
-
l.detail !== 0 && this.changeIndustryFilter(i, s,
|
|
128
|
+
const t = (i, a) => !this._activeFilterSettings || !this._activeFilterSettings.categories ? !1 : this._activeFilterSettings.categories.some((s) => s.industry === i && (s.domain ?? "") === a), e = (i) => !this._activeFilterSettings || !this._activeFilterSettings.categories ? !1 : this._activeFilterSettings.categories.some((a) => a.industry === i && (a.domain ?? "") === ""), c = (i, a) => a.length > 0 && (e(i) || this._activeFilterSettings.categories?.some((s) => s.industry === i && !!s.domain && a.includes(s.domain)) === !0), h = (i, a) => g(a, (s) => s, (s) => {
|
|
129
|
+
const n = Object.keys(this._translations.industriesDomain).find((l) => l.toUpperCase() === s.toUpperCase()), o = n && n in this._translations.industriesDomain ? this._translations.industriesDomain[n] : s, u = t(i, s);
|
|
130
|
+
return d`<calcite-tree-item .label=${o} @click=${(l) => {
|
|
131
|
+
l.detail !== 0 && this.changeIndustryFilter(i, s, o, !0);
|
|
147
132
|
}} @keydown=${(l) => {
|
|
148
133
|
E(l, () => {
|
|
149
|
-
this.changeIndustryFilter(i, s,
|
|
134
|
+
this.changeIndustryFilter(i, s, o, !0);
|
|
150
135
|
});
|
|
151
|
-
}} .selected=${u || void 0}>${
|
|
152
|
-
}),
|
|
153
|
-
const s = this._industryMatchName(i),
|
|
154
|
-
return
|
|
136
|
+
}} .selected=${u || void 0}>${o}</calcite-tree-item>`;
|
|
137
|
+
}), r = g(Object.entries(M), ([i, a]) => i, ([i, a]) => {
|
|
138
|
+
const s = this._industryMatchName(i), n = a, o = e(i), u = c(i, n);
|
|
139
|
+
return d`<calcite-tree-item .label=${s} @click=${(l) => {
|
|
155
140
|
l.detail !== 0 && this.changeIndustryFilter(i, "", s, !0);
|
|
156
141
|
}} @keydown=${(l) => {
|
|
157
142
|
E(l, () => {
|
|
158
143
|
this.changeIndustryFilter(i, "", s, !0);
|
|
159
144
|
});
|
|
160
|
-
}} .selected=${
|
|
145
|
+
}} .selected=${o || void 0} .expanded=${u ? !0 : void 0}>${s}${n.length > 0 && d`<calcite-tree slot=children selection-mode=multiple>${h(i, n)}</calcite-tree>` || ""}</calcite-tree-item>`;
|
|
161
146
|
});
|
|
162
|
-
return
|
|
147
|
+
return d`<calcite-block description expanded class="border-color" .heading=${this._translations.industriesHeader} .label=${this._translations.industriesHeader}><calcite-action class=${f(this._isMobile ? "" : "display-none")} icon=x @click=${this._toggleFilter} slot=content-end text></calcite-action><calcite-tree selection-mode=single-persist class="tree-padding">${r}</calcite-tree></calcite-block>`;
|
|
163
148
|
}
|
|
164
149
|
_toggleFilter() {
|
|
165
150
|
this.toggleFilter.emit();
|
|
@@ -175,7 +160,7 @@ class M extends N {
|
|
|
175
160
|
}
|
|
176
161
|
}
|
|
177
162
|
}
|
|
178
|
-
|
|
163
|
+
N("solutions-filter-panel", T);
|
|
179
164
|
export {
|
|
180
|
-
|
|
165
|
+
T as SolutionsFilterPanel
|
|
181
166
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-panel";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-action";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-block-group";
|
|
4
|
-
import "@esri/calcite-components/components/calcite-button";
|
|
5
|
-
import "@esri/calcite-components/components/calcite-tooltip";
|
|
6
|
-
import "../arcgis-solutions-assistant/index.js";
|
|
7
4
|
import "@esri/calcite-components/components/calcite-tree-item";
|
|
8
5
|
import "@esri/calcite-components/components/calcite-tree";
|
|
9
6
|
import "@esri/calcite-components/components/calcite-block";
|
|
@@ -140,6 +140,12 @@ export abstract class SolutionsResourcesShell extends LitElement {
|
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
142
|
}>;
|
|
143
|
+
/**
|
|
144
|
+
* Whether the assistant panel is open
|
|
145
|
+
*
|
|
146
|
+
* @default false
|
|
147
|
+
*/
|
|
148
|
+
accessor assistantOpen: boolean;
|
|
143
149
|
/** Emitted on demand when the sort type changes */
|
|
144
150
|
readonly sortTypeChanged: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
145
151
|
readonly "@eventTypes": {
|
|
@@ -9,13 +9,13 @@ const g = { heading: "Get Started", card1: { heading: "What's new in the app" },
|
|
|
9
9
|
getStarted: g,
|
|
10
10
|
documentation: u,
|
|
11
11
|
support: m
|
|
12
|
-
}, b = o`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.position-relative{position:relative}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-background-color: var(--calcite-color-surface-3)}.width-350{--calcite-shell-panel-width: 350px}.height-full{height:100%}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}calcite-panel{--calcite-panel-background-color: var(--calcite-color-surface-2)}calcite-shell{background-color:unset}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-end-md{margin-inline-end:var(--calcite-spacing-md)}.resources-container{width:100%;box-sizing:border-box}.hero-banner{background-color:var(--calcite-color-surface-3);padding:4.25rem var(--calcite-spacing-md);text-align:center;width:100%;box-sizing:border-box;margin-bottom:3rem}.hero-heading{font-size:var(--calcite-font-size-5);font-weight:var(--calcite-font-weight-medium);margin:0 0 var(--calcite-spacing-xxl) 0;color:var(--calcite-color-text-1)}.hero-subheading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-2);max-width:600px;margin:0 auto}`;
|
|
13
|
-
class
|
|
12
|
+
}, b = o`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.position-relative{position:relative}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-background-color: var(--calcite-color-surface-3)}.width-350{--calcite-shell-panel-width: 350px}.height-full{height:100%}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}calcite-panel{--calcite-panel-background-color: var(--calcite-color-surface-2)}calcite-shell{background-color:unset;height:auto}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-end-md{margin-inline-end:var(--calcite-spacing-md)}.resources-container{width:100%;box-sizing:border-box}.content-wrapper{max-width:1440px;width:100%;margin-left:auto;margin-right:auto;padding-left:var(--calcite-spacing-md);padding-right:var(--calcite-spacing-md);box-sizing:border-box}.hero-banner{background-color:var(--calcite-color-surface-3);padding:4.25rem var(--calcite-spacing-md);text-align:center;width:100%;box-sizing:border-box;margin-bottom:3rem}.hero-content{max-width:1440px;width:100%;margin-left:auto;margin-right:auto}.hero-heading{font-size:var(--calcite-font-size-5);font-weight:var(--calcite-font-weight-medium);margin:0 0 var(--calcite-spacing-xxl) 0;color:var(--calcite-color-text-1)}.hero-subheading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-2);max-width:600px;margin:0 auto}.assistant-open{margin-left:max(2vw,calc((100vw - 1440px)/2));margin-right:0;width:auto;max-width:1440px}`;
|
|
13
|
+
class v extends c {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(), this._translations = d({ name: "solutions-resources-shell", blocking: !0 }), this._mainPanelRef = h(), this._panelFixed = !1, this.sortTypeChanged = l(), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected);
|
|
15
|
+
super(), this.assistantOpen = !1, this._translations = d({ name: "solutions-resources-shell", blocking: !0 }), this._mainPanelRef = h(), this._panelFixed = !1, this.sortTypeChanged = l(), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected);
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
|
-
this.properties = { _translations: 16 };
|
|
18
|
+
this.properties = { assistantOpen: 7, _translations: 16 };
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
21
|
this.styles = b;
|
|
@@ -57,8 +57,8 @@ class f extends c {
|
|
|
57
57
|
super.disconnectedCallback(), this._panelObserver?.disconnect();
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
const e = this._translations;
|
|
61
|
-
return r`<calcite-shell><calcite-panel ${p(this._mainPanelRef)}><div class="resources-container"><div class="hero-banner"><h1 class="hero-heading" tabindex=0>${e.hero.heading}</h1><p class="hero-subheading" tabindex=0>${e.hero.subheading}</p></div><solutions-resources-section .heading=${e.getStarted.heading} .subheading=${e.getStarted.subheading} .cards=${[
|
|
60
|
+
const e = this._translations, n = this.assistantOpen ? "assistant-open" : "";
|
|
61
|
+
return r`<calcite-shell class="position-relative"><calcite-panel ${p(this._mainPanelRef)}><div class="resources-container"><div class="hero-banner"><div class=${`hero-content ${n}`}><h1 class="hero-heading" tabindex=0>${e.hero.heading}</h1><p class="hero-subheading" tabindex=0>${e.hero.subheading}</p></div></div><div class=${`content-wrapper ${n}`}><solutions-resources-section .heading=${e.getStarted.heading} .subheading=${e.getStarted.subheading} .cards=${[
|
|
62
62
|
{
|
|
63
63
|
meridianIcon: "value",
|
|
64
64
|
heading: e.getStarted.card1.heading,
|
|
@@ -157,13 +157,13 @@ class f extends c {
|
|
|
157
157
|
headingEn: i.support.card4.heading,
|
|
158
158
|
sectionHeadingEn: i.support.heading
|
|
159
159
|
}
|
|
160
|
-
]}></solutions-resources-section></div></calcite-panel></calcite-shell>`;
|
|
160
|
+
]}></solutions-resources-section></div></div></calcite-panel></calcite-shell>`;
|
|
161
161
|
}
|
|
162
162
|
_handleDeployAppTabSelected(e) {
|
|
163
163
|
e.detail === "resources" && this.sortTypeChanged.emit("");
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
s("solutions-resources-shell",
|
|
166
|
+
s("solutions-resources-shell", v);
|
|
167
167
|
export {
|
|
168
|
-
|
|
168
|
+
v as SolutionsResourcesShell
|
|
169
169
|
};
|
|
@@ -5,7 +5,7 @@ import { u as g } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { LitElement as S, createEvent as a, nothing as c } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as h } from "@arcgis/lumina/context";
|
|
7
7
|
import { c as m, i as y } from "../../chunks/deployAppContexts.js";
|
|
8
|
-
import { c as d,
|
|
8
|
+
import { c as d, K as l } from "../../chunks/helpers.js";
|
|
9
9
|
const f = u`.toolbar-sizing{display:flex;align-items:center;padding-right:0;padding-left:0;margin-left:auto;margin-right:auto;box-sizing:border-box;height:65px}.flex-row{display:flex;flex-direction:row}.flex-grow-1{flex-grow:1}calcite-input-text{--calcite-color-focus: transparent;--calcite-input-text-border-color: transparent;--calcite-color-border-input: transparent;--calcite-color-brand: transparent;display:grid;block-size:65px;box-sizing:border-box;border-bottom:2px solid transparent}@media(prefers-color-scheme:dark){calcite-input-text:focus{border-bottom:2px solid #009AF2}}@media(prefers-color-scheme:light){calcite-input-text:focus{border-bottom:2px solid #007AC2}}.padding-end-1-2{padding-inline-end:.5rem}`;
|
|
10
10
|
class _ extends S {
|
|
11
11
|
constructor() {
|