@esri/solutions-components 1.2.0-next.191 → 1.2.0-next.192
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/2FB7PLHA.js +2 -0
- package/dist/cdn/{2Z4TOYVC.js → 35BKTK23.js} +1 -1
- package/dist/cdn/3IXJ77QG.js +2 -0
- package/dist/cdn/4PJLBC3H.js +2 -0
- package/dist/cdn/5DYEGOFQ.js +2 -0
- package/dist/cdn/{BHSNNVIL.js → 5YSQ2CW2.js} +1 -1
- package/dist/cdn/{V25NUVVQ.js → 6MYF74WP.js} +1 -1
- package/dist/cdn/6OWU7VAP.js +2 -0
- package/dist/cdn/AIU3MGAJ.js +2 -0
- package/dist/cdn/AXJNTXWG.js +2 -0
- package/dist/cdn/BFRGKEST.js +2 -0
- package/dist/cdn/{OUH4HVG4.js → BTHN6PO3.js} +21 -21
- package/dist/cdn/CA5SSBGK.js +2 -0
- package/dist/cdn/DMQY2YSV.js +2 -0
- package/dist/cdn/DZEATYCC.js +2 -0
- package/dist/cdn/FCTLSKQC.js +2 -0
- package/dist/cdn/{HEW273HR.js → FKEZD3IR.js} +3 -3
- package/dist/cdn/GNHKPEWB.js +2 -0
- package/dist/cdn/HRR3S4YS.js +2 -0
- package/dist/cdn/HTILYSMI.js +2 -0
- package/dist/cdn/K2TGYZ23.js +2 -0
- package/dist/cdn/{W4DGTEPL.js → KMFPTAQU.js} +1 -1
- package/dist/cdn/LOQNTCQ5.js +2 -0
- package/dist/cdn/LT22II6J.js +2 -0
- package/dist/cdn/OSY6VKW4.js +2 -0
- package/dist/cdn/{Y4QWAYNX.js → PK5GAZJJ.js} +1 -1
- package/dist/cdn/PYFPZPMP.js +2 -0
- package/dist/cdn/QCI2IO23.js +2 -0
- package/dist/cdn/{KEWRBJOT.js → QU7HKK7N.js} +3 -3
- package/dist/cdn/U6K37QQX.js +2 -0
- package/dist/cdn/V562ZRP5.js +2 -0
- package/dist/cdn/VFSFRIPI.js +2 -0
- package/dist/cdn/WT64QMSP.js +2 -0
- package/dist/cdn/XCOHDOZB.js +2 -0
- package/dist/cdn/{AS6FGEVT.js → XGT7USWV.js} +1 -1
- package/dist/cdn/XVCTCPQP.js +2 -0
- package/dist/cdn/YBCBDSHJ.js +2 -0
- package/dist/cdn/YN2Q4YSJ.js +2 -0
- package/dist/cdn/Z7S7SUZV.js +2 -0
- package/dist/cdn/ZBVU5UTY.js +2 -0
- package/dist/cdn/ZEIBUDIU.js +2 -0
- package/dist/cdn/ZLVZRRWC.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +13 -13
- package/dist/chunks/interfaces.js +155 -151
- package/dist/chunks/solution-deploy-dialog.js +9 -10
- package/dist/chunks/solutions-deploy-app-nav.js +23 -24
- package/dist/components/arcgis-solutions-assistant/customElement.js +15 -15
- package/dist/components/create-feature/customElement.d.ts +2 -0
- package/dist/components/create-feature/customElement.js +6 -7
- package/dist/components/crowdsource-reporter/customElement.js +3 -3
- package/dist/components/layer-list/customElement.js +32 -32
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +4 -5
- package/dist/components/solution-delete-dialog/customElement.js +6 -7
- package/dist/components/solution-deploy-dialog/customElement.js +3 -4
- package/dist/components/solution-deployed-card/customElement.js +2 -3
- package/dist/components/solution-deployed-card-panel/customElement.js +10 -11
- package/dist/components/solution-details-card/customElement.js +1 -2
- package/dist/components/solution-details-panel/customElement.js +43 -42
- package/dist/components/solution-resource-card/customElement.js +6 -7
- package/dist/components/solution-snapshot-gallery/customElement.js +7 -8
- package/dist/components/solution-social-share/customElement.js +2 -3
- package/dist/components/solution-user-avatar/customElement.js +7 -8
- package/dist/components/solutions-all-panel/customElement.js +17 -18
- package/dist/components/solutions-all-shell/customElement.js +64 -28
- package/dist/components/solutions-all-shell/index.js +1 -0
- package/dist/components/solutions-deploy-app/customElement.js +59 -23
- package/dist/components/solutions-deploy-app-nav/customElement.js +2 -3
- package/dist/components/solutions-deploy-app-nav/index.js +3 -3
- package/dist/components/solutions-deployed-panel/customElement.js +11 -12
- package/dist/components/solutions-deployed-shell/customElement.js +11 -11
- package/dist/components/solutions-filter-panel/customElement.js +68 -65
- package/dist/components/solutions-resources-shell/customElement.js +47 -10
- package/dist/components/solutions-searchsort-toolbar/customElement.js +6 -7
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/3A7PC2RZ.js +0 -2
- package/dist/cdn/3HWKU2CT.js +0 -2
- package/dist/cdn/4CPDEFIT.js +0 -2
- package/dist/cdn/4N5LEYZP.js +0 -2
- package/dist/cdn/7BDPZCCN.js +0 -2
- package/dist/cdn/7M3GJY6J.js +0 -2
- package/dist/cdn/BEC6A65P.js +0 -2
- package/dist/cdn/BT66JT22.js +0 -2
- package/dist/cdn/C7DWPTJL.js +0 -2
- package/dist/cdn/CN4TSLTZ.js +0 -2
- package/dist/cdn/DOFNBU4Q.js +0 -2
- package/dist/cdn/DSH7QIEF.js +0 -2
- package/dist/cdn/FP5UBHCW.js +0 -2
- package/dist/cdn/FPW3BDJT.js +0 -2
- package/dist/cdn/FWFL23CM.js +0 -2
- package/dist/cdn/I3ERNQTX.js +0 -2
- package/dist/cdn/LN36O3EB.js +0 -2
- package/dist/cdn/LPPOTZKI.js +0 -2
- package/dist/cdn/MVNKOMSZ.js +0 -2
- package/dist/cdn/OQVULF2Q.js +0 -2
- package/dist/cdn/PFQDRDKQ.js +0 -2
- package/dist/cdn/PJ2IZ77K.js +0 -2
- package/dist/cdn/QPEQNTE2.js +0 -2
- package/dist/cdn/R6QJKOAM.js +0 -2
- package/dist/cdn/RG6FVRCW.js +0 -2
- package/dist/cdn/RZKHWRGX.js +0 -2
- package/dist/cdn/TA7XOCI6.js +0 -2
- package/dist/cdn/U3MPHGGT.js +0 -2
- package/dist/cdn/VFROSB3U.js +0 -2
- package/dist/cdn/VHA56S7W.js +0 -2
- package/dist/cdn/W4773WDH.js +0 -2
- package/dist/cdn/WI7VFPQ3.js +0 -2
- package/dist/cdn/Y2S3AB43.js +0 -2
- package/dist/cdn/ZVLL5DZC.js +0 -2
- package/dist/chunks/deployAppContexts.js +0 -9
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as u, html as o, svg as f } from "lit";
|
|
4
4
|
import { ref as y } from "lit/directives/ref.js";
|
|
5
5
|
import { u as g } from "../../chunks/useT9n.js";
|
|
6
6
|
import { LitElement as w, createEvent as l, nothing as C } from "@arcgis/lumina";
|
|
7
7
|
import { useContextConsumer as T } from "@arcgis/lumina/context";
|
|
8
8
|
import { C as d, g as x } from "../../chunks/cardFetchingUtils.js";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class E extends w {
|
|
9
|
+
import { B as h, A as v, T as n, M as S, c as D } from "../../chunks/interfaces.js";
|
|
10
|
+
const E = u`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-foreground-2)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.text-center{text-align:center}.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)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}solution-deployed-card{width:calc(20% - .75rem)}@media(max-width:1280px){solution-deployed-card{width:calc(25% - .75rem)}}@media(max-width:1010px){solution-deployed-card{width:calc(33.333% - .75rem)}}@media(max-width:740px){solution-deployed-card{width:calc(50% - .75rem)}}@media(max-width:440px){solution-deployed-card{width:calc(100% - .75rem)}}.margin-top-half{margin-top:.5rem}`, c = 5;
|
|
11
|
+
class b extends w {
|
|
13
12
|
constructor() {
|
|
14
|
-
super(), this.sortType = "created", this._cards = [], this._cardsFetching = !1, this._modifiedCheckTry = 0, this._newId = "", this._refs = {}, this._showDeleteCompleteAlert = !1, this._deletedSolutionName = "", this._translations = g({ name: "solutions-deployed-panel", blocking: !0 }), this._agoTerms =
|
|
13
|
+
super(), this.sortType = "created", this._cards = [], this._cardsFetching = !1, this._modifiedCheckTry = 0, this._newId = "", this._refs = {}, this._showDeleteCompleteAlert = !1, this._deletedSolutionName = "", this._translations = g({ name: "solutions-deployed-panel", blocking: !0 }), this._agoTerms = h, this._allCards = [], this._baseAgoTerms = h, this._categories = [], this._configContextConsumer = T({
|
|
15
14
|
context: v,
|
|
16
15
|
subscribe: !0,
|
|
17
16
|
callback: async (e) => {
|
|
18
17
|
e && (this._initCardsFetchers(), await this._getDeployedSolutions());
|
|
19
18
|
}
|
|
20
19
|
}), this._delay = !1, this._owner = "My solutions", this._sortField = "created", this._sortOrder = "desc", this.deployedCardsFetched = l(), this.searchTermSet = l(), this.sortTypeSet = l(), this.listenOn(window, "solutionDeleted", (e) => {
|
|
21
|
-
this._modifiedCheckTry =
|
|
20
|
+
this._modifiedCheckTry = c, this.reload(e.detail.showAlert, e.detail.refreshSolutionsTimeout, e.detail.solutionTitle);
|
|
22
21
|
}), this.listenOn(window, "solutionConfigureDialogClose", (e) => {
|
|
23
22
|
e.detail && this.reload(!1, !1);
|
|
24
23
|
}), this.listenOn(window, "deployProgressEnd", (e) => {
|
|
25
|
-
this._modifiedCheckTry =
|
|
24
|
+
this._modifiedCheckTry = c, this._refreshAfterDeploy(e.detail);
|
|
26
25
|
}), this.listenOn(window, "sortTypeChanged", (e) => {
|
|
27
26
|
e.detail && e.detail.scope === "deployments" && (this.sortType = e.detail.sortType, this._telemetry?.logEvent({
|
|
28
27
|
category: n.DEPLOYMENTS,
|
|
@@ -41,7 +40,7 @@ class E extends w {
|
|
|
41
40
|
this.properties = { sortType: 1, _cards: 16, _cardsFetching: 16, _modifiedCheckTry: 16, _newId: 16, _refs: 16, _showDeleteCompleteAlert: 16, _deletedSolutionName: 16, _translations: 16 };
|
|
42
41
|
}
|
|
43
42
|
static {
|
|
44
|
-
this.styles =
|
|
43
|
+
this.styles = E;
|
|
45
44
|
}
|
|
46
45
|
get _telemetry() {
|
|
47
46
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -136,7 +135,7 @@ class E extends w {
|
|
|
136
135
|
const a = 10, m = 100;
|
|
137
136
|
for (let s = 0; s < a; s++) {
|
|
138
137
|
if (this._refs[e]) {
|
|
139
|
-
const i = this._cards.find((
|
|
138
|
+
const i = this._cards.find((_) => _.id === e);
|
|
140
139
|
window.dispatchEvent(new CustomEvent("deployedCardReady", {
|
|
141
140
|
detail: { card: i, cardRef: this._refs[e] }
|
|
142
141
|
})), this._newId = "";
|
|
@@ -150,7 +149,7 @@ class E extends w {
|
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
151
|
}
|
|
153
|
-
|
|
152
|
+
p("solutions-deployed-panel", b);
|
|
154
153
|
export {
|
|
155
|
-
|
|
154
|
+
b as SolutionsDeployedPanel
|
|
156
155
|
};
|
|
@@ -4,10 +4,10 @@ import { u as o } from "../../chunks/useT9n.js";
|
|
|
4
4
|
import { LitElement as s, createEvent as l, safeStyleMap as r } from "@arcgis/lumina";
|
|
5
5
|
import { useContextConsumer as a } from "@arcgis/lumina/context";
|
|
6
6
|
import { css as c, html as t, svg as d } from "lit";
|
|
7
|
-
import {
|
|
8
|
-
import { createRef as
|
|
9
|
-
const
|
|
10
|
-
class
|
|
7
|
+
import { A as h, G as p, J as g } from "../../chunks/interfaces.js";
|
|
8
|
+
import { createRef as u, ref as m } from "lit/directives/ref.js";
|
|
9
|
+
const v = c`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-foreground-2)}.panel-override{--calcite-panel-background-color: var(--calcite-color-foreground-2);--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}.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{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-3{padding-top:3px}`;
|
|
10
|
+
class f extends s {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(), this.solutionsCount = 0, this.filterOpen = !0, this.isMobile = !1, this._showAlertFailed = !1, this._translations = o({ name: "solutions-deployed-shell", blocking: !0 }), this._configContextConsumer = a({
|
|
13
13
|
context: h,
|
|
@@ -16,7 +16,7 @@ class v extends s {
|
|
|
16
16
|
context: p,
|
|
17
17
|
subscribe: !0,
|
|
18
18
|
callback: (e) => this.isMobile = e
|
|
19
|
-
}), this._solutionsDeployedPanelRef =
|
|
19
|
+
}), this._solutionsDeployedPanelRef = u(), this.filterRemoved = l(), this.tokenRefreshed = l(), this._handleSignIn = () => {
|
|
20
20
|
const e = window.location.pathname.endsWith("deployments") ? "" : "deployments";
|
|
21
21
|
this._configContextConsumer.value?.authentication?.signIn(e);
|
|
22
22
|
}, this.listenOn(window, "deployedCardFetchFailed", (e) => {
|
|
@@ -28,7 +28,7 @@ class v extends s {
|
|
|
28
28
|
this.properties = { solutionsCount: 9, filterOpen: 16, isMobile: 16, _showAlertFailed: 16, _translations: 16 };
|
|
29
29
|
}
|
|
30
30
|
static {
|
|
31
|
-
this.styles =
|
|
31
|
+
this.styles = v;
|
|
32
32
|
}
|
|
33
33
|
willUpdate(e) {
|
|
34
34
|
e.has("isMobile") && (this.filterOpen = !this.isMobile);
|
|
@@ -43,14 +43,14 @@ class v extends s {
|
|
|
43
43
|
if (!this._configContextConsumer.value?.authentication?.IsSignedIn)
|
|
44
44
|
return this._getSignInPrompt();
|
|
45
45
|
const e = this.isMobile ? "justify-content-end" : "";
|
|
46
|
-
return t`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1"><div class=${`display-flex align-items-center height-50 ${e}`} slot=header-content><calcite-label class="label-override flex-shrink-0 padding-top-3" layout=inline>${this._translations.numberOfDeployments?.replace("{{count}}", this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsDeployedPanel()}</calcite-panel></calcite-shell>`;
|
|
46
|
+
return t`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1"><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-3" layout=inline>${this._translations.numberOfDeployments?.replace("{{count}}", this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsDeployedPanel()}</calcite-panel></calcite-shell>`;
|
|
47
47
|
}
|
|
48
48
|
_getSignInPrompt() {
|
|
49
|
-
return t`<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} scale=l>${this._translations.signIn}</calcite-button></div>`;
|
|
49
|
+
return t`<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) => g(e, () => this._handleSignIn())} scale=l>${this._translations.signIn}</calcite-button></div>`;
|
|
50
50
|
}
|
|
51
51
|
_getSolutionsDeployedPanel() {
|
|
52
52
|
const e = this.isMobile && this.filterOpen ? { display: "none" } : "";
|
|
53
|
-
return t`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${r(e)} ${
|
|
53
|
+
return t`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${r(e)} ${m(this._solutionsDeployedPanelRef)}></solutions-deployed-panel><calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._deployedCardFetchFailedTitle} @calciteAlertClose=${() => {
|
|
54
54
|
this._showAlertFailed = !1;
|
|
55
55
|
}} .open=${this._showAlertFailed}><div slot=title>${this._deployedCardFetchFailedTitle}</div><div slot=message>${this._deployedCardFetchFailedMessage}</div></calcite-alert></div>`;
|
|
56
56
|
}
|
|
@@ -61,7 +61,7 @@ class v extends s {
|
|
|
61
61
|
return t`<div class="sign-in-icon"><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${d`<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>`;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
n("solutions-deployed-shell",
|
|
64
|
+
n("solutions-deployed-shell", f);
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
f as SolutionsDeployedShell
|
|
67
67
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import {
|
|
8
|
-
import { useContextConsumer as
|
|
9
|
-
|
|
10
|
-
const T = I`.width-full{width:100%}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1);--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}`, O = {
|
|
2
|
+
import { c as b } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as N, html as h } from "lit";
|
|
4
|
+
import { repeat as p } from "lit/directives/repeat.js";
|
|
5
|
+
import { u as S } from "../../chunks/useT9n.js";
|
|
6
|
+
import { LitElement as f, createEvent as g, safeClassMap as A } from "@arcgis/lumina";
|
|
7
|
+
import { e as F, A as y, G as I, T as C, J as E } from "../../chunks/interfaces.js";
|
|
8
|
+
import { useContextConsumer as _ } from "@arcgis/lumina/context";
|
|
9
|
+
const T = N`.width-full{width:100%}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1);--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}`, O = {
|
|
11
10
|
PUBLICSAFETY: ["EMERGENCYMANAGEMENT", "FIRESERVICE", "LAWENFORCEMENT"],
|
|
12
11
|
STATEANDLOCALGOVERNMENT: [
|
|
13
12
|
"AGRICULTURE",
|
|
@@ -26,36 +25,36 @@ const T = I`.width-full{width:100%}calcite-panel{--calcite-panel-background-colo
|
|
|
26
25
|
"TRANSPORTATION"
|
|
27
26
|
],
|
|
28
27
|
UTILITIES: ["DISTRICTENERGY", "ELECTRIC", "GAS", "SEWER", "STORMWATER", "WATER"]
|
|
29
|
-
}, R = Object.keys(
|
|
30
|
-
(
|
|
31
|
-
const
|
|
32
|
-
return
|
|
28
|
+
}, R = Object.keys(F).reduce(
|
|
29
|
+
(u, t) => {
|
|
30
|
+
const e = t;
|
|
31
|
+
return u[e] = O[e] ?? [], u;
|
|
33
32
|
},
|
|
34
33
|
{}
|
|
35
34
|
);
|
|
36
|
-
class
|
|
35
|
+
class v extends f {
|
|
37
36
|
constructor() {
|
|
38
37
|
super(), this.hideIndustryFilter = !1, this.isAIDialogOpen = !1, this.showReset = !1, this._activeFilterSettings = {
|
|
39
38
|
categories: []
|
|
40
|
-
}, this._isMobile = !1, this._translations =
|
|
39
|
+
}, this._isMobile = !1, this._translations = S({ name: "solutions-filter-panel", blocking: !0 }), this._userFirstName = "", this._configContextConsumer = _({
|
|
41
40
|
context: y,
|
|
42
41
|
subscribe: !0,
|
|
43
42
|
callback: (t) => {
|
|
44
43
|
t?.userSession && !this._userFirstName && this._loadUserFirstName();
|
|
45
44
|
}
|
|
46
|
-
}), this._isMobileContextConsumer =
|
|
47
|
-
context:
|
|
45
|
+
}), this._isMobileContextConsumer = _({
|
|
46
|
+
context: I,
|
|
48
47
|
subscribe: !0,
|
|
49
48
|
callback: (t) => this._isMobile = t
|
|
50
|
-
}), this.applyFilter =
|
|
51
|
-
const
|
|
52
|
-
Array.isArray(
|
|
49
|
+
}), this.applyFilter = g(), this.toggleFilter = g(), this._handleFilterRemoved = (t) => {
|
|
50
|
+
const e = t.detail;
|
|
51
|
+
Array.isArray(e) && (this._activeFilterSettings = {
|
|
53
52
|
...this._activeFilterSettings,
|
|
54
|
-
categories: [...
|
|
53
|
+
categories: [...e]
|
|
55
54
|
});
|
|
56
55
|
}, this._industryMatchName = (t) => {
|
|
57
|
-
const
|
|
58
|
-
return
|
|
56
|
+
const e = Object.keys(this._translations.industries).find((o) => o.toUpperCase() === t.replaceAll(" ", "").toUpperCase());
|
|
57
|
+
return e && e in this._translations.industries ? this._translations.industries[e] : t;
|
|
59
58
|
}, this.listenOn(window, "filterRemoved", this._handleFilterRemoved), this.listenOn(window, "closeAssistant", () => {
|
|
60
59
|
this.isAIDialogOpen = !1;
|
|
61
60
|
}), this.listenOn(window, "openAssistant", () => {
|
|
@@ -71,48 +70,48 @@ class $ extends b {
|
|
|
71
70
|
get _telemetry() {
|
|
72
71
|
return this._configContextConsumer.value?.telemetrySession;
|
|
73
72
|
}
|
|
74
|
-
changeIndustryFilter(t,
|
|
75
|
-
if (t !== "" ||
|
|
76
|
-
let
|
|
77
|
-
if (
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
displayValue: this._industryMatchName(
|
|
73
|
+
changeIndustryFilter(t, e, o, d) {
|
|
74
|
+
if (t !== "" || e !== "") {
|
|
75
|
+
let n = [];
|
|
76
|
+
if (e !== "") {
|
|
77
|
+
const i = F[t];
|
|
78
|
+
n = [{
|
|
79
|
+
displayValue: this._industryMatchName(i),
|
|
81
80
|
type: "industry",
|
|
82
81
|
value: t,
|
|
83
82
|
industry: t,
|
|
84
83
|
domain: ""
|
|
85
84
|
}, {
|
|
86
|
-
displayValue:
|
|
85
|
+
displayValue: o,
|
|
87
86
|
type: "domain",
|
|
88
|
-
value:
|
|
87
|
+
value: e,
|
|
89
88
|
industry: t,
|
|
90
|
-
domain:
|
|
89
|
+
domain: e
|
|
91
90
|
}];
|
|
92
91
|
} else
|
|
93
|
-
|
|
94
|
-
displayValue:
|
|
95
|
-
type:
|
|
96
|
-
value:
|
|
92
|
+
n = [{
|
|
93
|
+
displayValue: o,
|
|
94
|
+
type: e !== "" ? "domain" : "industry",
|
|
95
|
+
value: e !== "" ? e : t,
|
|
97
96
|
industry: t,
|
|
98
|
-
domain:
|
|
97
|
+
domain: e
|
|
99
98
|
}];
|
|
100
99
|
this._activeFilterSettings = {
|
|
101
100
|
...this._activeFilterSettings,
|
|
102
|
-
categories: [...
|
|
103
|
-
}, d && this.applyFilter.emit(
|
|
101
|
+
categories: [...n]
|
|
102
|
+
}, d && this.applyFilter.emit(n);
|
|
104
103
|
} else {
|
|
105
|
-
const
|
|
106
|
-
displayValue:
|
|
104
|
+
const n = {
|
|
105
|
+
displayValue: o,
|
|
107
106
|
type: "industry",
|
|
108
107
|
value: t,
|
|
109
108
|
industry: t,
|
|
110
|
-
domain:
|
|
109
|
+
domain: e
|
|
111
110
|
};
|
|
112
111
|
this._activeFilterSettings = {
|
|
113
112
|
...this._activeFilterSettings,
|
|
114
|
-
categories: [
|
|
115
|
-
}, d && this.applyFilter.emit(
|
|
113
|
+
categories: [n]
|
|
114
|
+
}, d && this.applyFilter.emit(n);
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
117
|
clearFilters() {
|
|
@@ -122,7 +121,7 @@ class $ extends b {
|
|
|
122
121
|
await this._loadUserFirstName(), this._isMobileContextConsumer.value && (this._isMobile = this._isMobileContextConsumer.value);
|
|
123
122
|
}
|
|
124
123
|
render() {
|
|
125
|
-
return
|
|
124
|
+
return h`<calcite-panel description heading>${this.showReset && h`<calcite-action appearance=solid icon=reset @click=${() => {
|
|
126
125
|
this.clearFilters();
|
|
127
126
|
}} 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-button id=solutions-assistant-button icon-start=speech-bubbles label="Solutions Assistant" @click=${() => {
|
|
128
127
|
this._telemetry?.logEvent({
|
|
@@ -132,22 +131,26 @@ class $ extends b {
|
|
|
132
131
|
}} 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>`;
|
|
133
132
|
}
|
|
134
133
|
renderIndustryBlock() {
|
|
135
|
-
const t = (
|
|
136
|
-
const
|
|
137
|
-
return
|
|
138
|
-
|
|
139
|
-
}} @keydown=${(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}} @keydown=${(
|
|
134
|
+
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 ?? "") === ""), o = (i, a) => a.length > 0 && (e(i) || this._activeFilterSettings.categories?.some((s) => s.industry === i && !!s.domain && a.includes(s.domain)) === !0), d = (i, a) => p(a, (s) => s, (s) => {
|
|
135
|
+
const l = Object.keys(this._translations.industriesDomain).find((r) => r.toUpperCase() === s.toUpperCase()), c = l && l in this._translations.industriesDomain ? this._translations.industriesDomain[l] : s, m = t(i, s);
|
|
136
|
+
return h`<calcite-tree-item .label=${c} @click=${(r) => {
|
|
137
|
+
r.detail !== 0 && this.changeIndustryFilter(i, s, c, !0);
|
|
138
|
+
}} @keydown=${(r) => {
|
|
139
|
+
E(r, () => {
|
|
140
|
+
this.changeIndustryFilter(i, s, c, !0);
|
|
141
|
+
});
|
|
142
|
+
}} .selected=${m || void 0}>${c}</calcite-tree-item>`;
|
|
143
|
+
}), n = p(Object.entries(R), ([i, a]) => i, ([i, a]) => {
|
|
144
|
+
const s = this._industryMatchName(i), l = a, c = e(i), m = o(i, l);
|
|
145
|
+
return h`<calcite-tree-item .label=${s} @click=${(r) => {
|
|
146
|
+
r.detail !== 0 && this.changeIndustryFilter(i, "", s, !0);
|
|
147
|
+
}} @keydown=${(r) => {
|
|
148
|
+
E(r, () => {
|
|
149
|
+
this.changeIndustryFilter(i, "", s, !0);
|
|
150
|
+
});
|
|
151
|
+
}} .selected=${c || void 0} .expanded=${m ? !0 : void 0}>${s}${l.length > 0 && h`<calcite-tree slot=children selection-mode=multiple>${d(i, l)}</calcite-tree>` || ""}</calcite-tree-item>`;
|
|
149
152
|
});
|
|
150
|
-
return
|
|
153
|
+
return h`<calcite-block description expanded class="border-color" .heading=${this._translations.industriesHeader} .label=${this._translations.industriesHeader}><calcite-action class=${A(this._isMobile ? "" : "display-none")} icon=x @click=${this._toggleFilter} slot=content-end text></calcite-action><calcite-tree selection-mode=single-persist class="tree-padding">${n}</calcite-tree></calcite-block>`;
|
|
151
154
|
}
|
|
152
155
|
_toggleFilter() {
|
|
153
156
|
this.toggleFilter.emit();
|
|
@@ -156,14 +159,14 @@ class $ extends b {
|
|
|
156
159
|
try {
|
|
157
160
|
const t = await this._configContextConsumer.value?.userSession?.getUser();
|
|
158
161
|
if (t?.fullName) {
|
|
159
|
-
const
|
|
160
|
-
this._userFirstName =
|
|
162
|
+
const e = t.fullName.split(" ")[0];
|
|
163
|
+
this._userFirstName = e;
|
|
161
164
|
}
|
|
162
165
|
} catch {
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
}
|
|
166
|
-
|
|
169
|
+
b("solutions-filter-panel", v);
|
|
167
170
|
export {
|
|
168
|
-
|
|
171
|
+
v as SolutionsFilterPanel
|
|
169
172
|
};
|
|
@@ -1,23 +1,60 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as a } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as s, html as r } from "lit";
|
|
4
4
|
import { u as o } from "../../chunks/useT9n.js";
|
|
5
|
-
import { LitElement as
|
|
5
|
+
import { LitElement as c, createEvent as d } from "@arcgis/lumina";
|
|
6
|
+
import { createRef as l, ref as p } from "lit/directives/ref.js";
|
|
6
7
|
import "../solutions-resources-section/customElement.js";
|
|
7
|
-
const
|
|
8
|
-
class
|
|
8
|
+
const h = s`.position-relative{position:relative}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-2);--calcite-panel-background-color: var(--calcite-color-foreground-2)}.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-foreground-1)}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-foreground-2);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}`;
|
|
9
|
+
class u extends c {
|
|
9
10
|
constructor() {
|
|
10
|
-
super(), this._translations = o({ name: "solutions-resources-shell", blocking: !0 }), this.sortTypeChanged =
|
|
11
|
+
super(), this._translations = o({ name: "solutions-resources-shell", blocking: !0 }), this._mainPanelRef = l(), this._panelFixed = !1, this.sortTypeChanged = d(), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected);
|
|
11
12
|
}
|
|
12
13
|
static {
|
|
13
14
|
this.properties = { _translations: 16 };
|
|
14
15
|
}
|
|
15
16
|
static {
|
|
16
|
-
this.styles =
|
|
17
|
+
this.styles = h;
|
|
18
|
+
}
|
|
19
|
+
updated() {
|
|
20
|
+
this._fixPanelContentWrapperFocus();
|
|
21
|
+
}
|
|
22
|
+
_fixPanelContentWrapperFocus() {
|
|
23
|
+
if (!this._panelFixed && this._mainPanelRef.value) {
|
|
24
|
+
const e = this._mainPanelRef.value;
|
|
25
|
+
e.componentOnReady?.().then(() => {
|
|
26
|
+
if (e.shadowRoot) {
|
|
27
|
+
const i = e.shadowRoot.querySelector(".content-wrapper");
|
|
28
|
+
i && (i.tabIndex = -1, this._panelFixed = !0, this._setupPanelObserver());
|
|
29
|
+
}
|
|
30
|
+
}).catch(() => {
|
|
31
|
+
this._panelFixed = !0;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
_setupPanelObserver() {
|
|
36
|
+
if (this._panelObserver)
|
|
37
|
+
return;
|
|
38
|
+
this._panelObserver = new MutationObserver((i) => {
|
|
39
|
+
i.forEach((t) => {
|
|
40
|
+
if (t.type === "attributes" && t.attributeName === "tabindex") {
|
|
41
|
+
const n = t.target;
|
|
42
|
+
n.classList.contains("content-wrapper") && n.tabIndex === 0 && (n.tabIndex = -1);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
const e = this._mainPanelRef.value;
|
|
47
|
+
if (e?.shadowRoot) {
|
|
48
|
+
const i = e.shadowRoot.querySelector(".content-wrapper");
|
|
49
|
+
i && this._panelObserver.observe(i, { attributes: !0, attributeFilter: ["tabindex"] });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
disconnectedCallback() {
|
|
53
|
+
super.disconnectedCallback(), this._panelObserver?.disconnect();
|
|
17
54
|
}
|
|
18
55
|
render() {
|
|
19
56
|
const e = this._translations;
|
|
20
|
-
return
|
|
57
|
+
return r`<calcite-shell><calcite-panel ${p(this._mainPanelRef)}><div class="resources-container"><div class="hero-banner"><h1 class="hero-heading">${e.hero.heading}</h1><p class="hero-subheading">${e.hero.subheading}</p></div><solutions-resources-section .heading=${e.getStarted.heading} .subheading=${e.getStarted.subheading} .cards=${[
|
|
21
58
|
{
|
|
22
59
|
meridianIcon: "value",
|
|
23
60
|
heading: e.getStarted.card1.heading,
|
|
@@ -98,7 +135,7 @@ class c extends s {
|
|
|
98
135
|
e.detail === "resources" && this.sortTypeChanged.emit("");
|
|
99
136
|
}
|
|
100
137
|
}
|
|
101
|
-
|
|
138
|
+
a("solutions-resources-shell", u);
|
|
102
139
|
export {
|
|
103
|
-
|
|
140
|
+
u as SolutionsResourcesShell
|
|
104
141
|
};
|
|
@@ -4,10 +4,9 @@ import { css as u, html as n } from "lit";
|
|
|
4
4
|
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
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class _ extends S {
|
|
7
|
+
import { A as m, G as y, c as d, J as l } from "../../chunks/interfaces.js";
|
|
8
|
+
const _ = 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}`;
|
|
9
|
+
class f extends S {
|
|
11
10
|
constructor() {
|
|
12
11
|
super(), this.defaultSortType = "relevance", this.isOrgSolutions = !1, this._activeSearchSortSettings = [
|
|
13
12
|
{
|
|
@@ -58,7 +57,7 @@ class _ extends S {
|
|
|
58
57
|
this.properties = { defaultSortType: [0, { type: String, attribute: "default-sort-type" }], isOrgSolutions: 5, scope: 1, _activeSearchSortSettings: 16, _isMobile: 16, _canViewOrg: 16, _translations: 16 };
|
|
59
58
|
}
|
|
60
59
|
static {
|
|
61
|
-
this.styles =
|
|
60
|
+
this.styles = _;
|
|
62
61
|
}
|
|
63
62
|
changeOwnerFilter(t) {
|
|
64
63
|
this.isOrgSolutions = !t, this._activeSearchSortSettings = this._activeSearchSortSettings.map((s) => s.scope === this.scope ? {
|
|
@@ -185,7 +184,7 @@ class _ extends S {
|
|
|
185
184
|
this._activeSearchSortSettings.some((i) => i.scope === e ? (s = i, !0) : !1), s && this.updateUrlParams.emit(s);
|
|
186
185
|
}
|
|
187
186
|
}
|
|
188
|
-
p("solutions-searchsort-toolbar",
|
|
187
|
+
p("solutions-searchsort-toolbar", f);
|
|
189
188
|
export {
|
|
190
|
-
|
|
189
|
+
f as SolutionsSearchSortToolbar
|
|
191
190
|
};
|