@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.
Files changed (108) hide show
  1. package/dist/cdn/{KXQ6EA36.js → 33OQKT4F.js} +1 -1
  2. package/dist/cdn/{GRBH2MOX.js → 3XPKAEMR.js} +1 -1
  3. package/dist/cdn/{5PIM2BOZ.js → 3XX5UDIU.js} +1 -1
  4. package/dist/cdn/{IU6ZANQW.js → 42WASQMZ.js} +1 -1
  5. package/dist/cdn/{2GS5DXMX.js → 43HTXWT4.js} +1 -1
  6. package/dist/cdn/{CPKTXSK2.js → 4NCV4IWX.js} +1 -1
  7. package/dist/cdn/4WTAL6YU.js +2 -0
  8. package/dist/cdn/{3KVDFRXD.js → 4YB7FA37.js} +1 -1
  9. package/dist/cdn/5TPLPDK2.js +2 -0
  10. package/dist/cdn/{NFRTFOHF.js → 65Q3GK3L.js} +1 -1
  11. package/dist/cdn/{ZSJ55A7H.js → 6LHM6EFD.js} +1 -1
  12. package/dist/cdn/7EEAVPTU.js +2 -0
  13. package/dist/cdn/{JSI6JODX.js → 7WQMX5XY.js} +1 -1
  14. package/dist/cdn/{CLF2PJYC.js → BF6NM5HV.js} +1 -1
  15. package/dist/cdn/BIYG7PA2.js +2 -0
  16. package/dist/cdn/{H2PJ6QZT.js → BWTBRONP.js} +1 -1
  17. package/dist/cdn/{GQWWZGLF.js → BXXN7BIC.js} +1 -1
  18. package/dist/cdn/{4Y4JREZI.js → CACSAX3Q.js} +1 -1
  19. package/dist/cdn/{NH3ESMSN.js → COTZWDC3.js} +1 -1
  20. package/dist/cdn/CR2XUUG5.js +2 -0
  21. package/dist/cdn/{BMOMM64K.js → E7RDA5B4.js} +1 -1
  22. package/dist/cdn/EUY3GSFI.js +2 -0
  23. package/dist/cdn/{ONSABHYA.js → GUKPMOPC.js} +1 -1
  24. package/dist/cdn/{IMN5BMIM.js → GYQ22PJ6.js} +1 -1
  25. package/dist/cdn/{UQTAX7HB.js → I2AQZTRJ.js} +1 -1
  26. package/dist/cdn/{FLRIF3C7.js → JCTGE6OA.js} +1 -1
  27. package/dist/cdn/LCBZNTKI.js +2 -0
  28. package/dist/cdn/{BK7LW2RY.js → LE6OUXPN.js} +1 -1
  29. package/dist/cdn/M6ZFMO6K.js +2 -0
  30. package/dist/cdn/{A6HMNEQC.js → N73GF6WL.js} +1 -1
  31. package/dist/cdn/{MAUD35WR.js → OPJPVHX6.js} +1 -1
  32. package/dist/cdn/{7ZN2BMYK.js → PBWC3QFN.js} +1 -1
  33. package/dist/cdn/{KRWRWUTJ.js → QF3LZFWW.js} +1 -1
  34. package/dist/cdn/{PTWSYW3E.js → QX7YHRF5.js} +2 -2
  35. package/dist/cdn/{5TB2UXTT.js → SUN2LQ7K.js} +1 -1
  36. package/dist/cdn/{DYJGZIDV.js → TYSZL2RK.js} +1 -1
  37. package/dist/cdn/UHVBUHU3.js +2 -0
  38. package/dist/cdn/{CWGUKAP6.js → V7UWSW6U.js} +1 -1
  39. package/dist/cdn/{U4EZHJYT.js → WR3YNDFH.js} +1 -1
  40. package/dist/cdn/XEQSHS4A.js +2 -0
  41. package/dist/cdn/{YNERGBJG.js → XY4HNUJE.js} +1 -1
  42. package/dist/cdn/ZSPRUX4H.js +2 -0
  43. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  44. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  45. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.en.json +1 -1
  46. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.json +1 -1
  47. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.en.json +1 -1
  48. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
  49. package/dist/cdn/index.js +1 -1
  50. package/dist/chunks/cardFetchingUtils.js +12 -12
  51. package/dist/chunks/helpers.js +44 -38
  52. package/dist/chunks/solution-deploy-dialog.js +1 -1
  53. package/dist/chunks/solutions-deploy-app-nav.js +35 -36
  54. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +4 -0
  55. package/dist/components/arcgis-solutions-assistant/customElement.js +8 -8
  56. package/dist/components/arcgis-solutions-assistant/index.js +3 -1
  57. package/dist/components/solution-deployed-card/customElement.js +1 -1
  58. package/dist/components/solution-deployed-card-panel/customElement.d.ts +4 -0
  59. package/dist/components/solution-deployed-card-panel/customElement.js +103 -57
  60. package/dist/components/solution-deployed-card-panel/index.js +0 -1
  61. package/dist/components/solution-details-card/customElement.js +1 -1
  62. package/dist/components/solution-details-panel/customElement.js +6 -6
  63. package/dist/components/solution-item-accordion/customElement.d.ts +4 -2
  64. package/dist/components/solution-item-accordion/customElement.js +3 -3
  65. package/dist/components/solution-resource-card/customElement.js +1 -1
  66. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  67. package/dist/components/solution-social-share/customElement.js +1 -1
  68. package/dist/components/solution-user-avatar/customElement.js +1 -1
  69. package/dist/components/solutions-all-panel/customElement.js +6 -6
  70. package/dist/components/solutions-all-shell/customElement.js +1 -1
  71. package/dist/components/solutions-deploy-app/customElement.d.ts +2 -0
  72. package/dist/components/solutions-deploy-app/customElement.js +117 -95
  73. package/dist/components/solutions-deploy-app/index.js +4 -0
  74. package/dist/components/solutions-deploy-app-nav/customElement.d.ts +6 -0
  75. package/dist/components/solutions-deploy-app-nav/customElement.js +2 -4
  76. package/dist/components/solutions-deployed-panel/customElement.js +35 -26
  77. package/dist/components/solutions-deployed-panel/index.js +0 -1
  78. package/dist/components/solutions-deployed-shell/customElement.js +25 -21
  79. package/dist/components/solutions-deployed-shell/index.js +0 -1
  80. package/dist/components/solutions-filter-panel/customElement.d.ts +0 -6
  81. package/dist/components/solutions-filter-panel/customElement.js +46 -61
  82. package/dist/components/solutions-filter-panel/index.js +0 -3
  83. package/dist/components/solutions-resources-shell/customElement.d.ts +6 -0
  84. package/dist/components/solutions-resources-shell/customElement.js +9 -9
  85. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  86. package/dist/docs/api.json +1 -1
  87. package/dist/docs/docs.json +1 -1
  88. package/dist/docs/vscode.html-custom-data.json +1 -1
  89. package/dist/docs/web-types.json +1 -1
  90. package/dist/loader.js +5 -5
  91. package/dist/solutions-components_commit.txt +8 -5
  92. package/dist/types/lumina.d.ts +3 -3
  93. package/dist/types/preact.d.ts +3 -3
  94. package/dist/types/react.d.ts +3 -3
  95. package/dist/types/stencil.d.ts +3 -3
  96. package/dist/utils/interfaces.d.ts +10 -0
  97. package/package.json +1 -1
  98. package/dist/cdn/BDCGPJPJ.js +0 -2
  99. package/dist/cdn/BFKX5BLC.js +0 -2
  100. package/dist/cdn/CF6JSZPY.js +0 -2
  101. package/dist/cdn/DIUHLPYD.js +0 -2
  102. package/dist/cdn/GFW4PBUK.js +0 -2
  103. package/dist/cdn/HUJNR7CU.js +0 -2
  104. package/dist/cdn/N3EAHFBX.js +0 -2
  105. package/dist/cdn/O3A436MI.js +0 -2
  106. package/dist/cdn/PQIJUUY3.js +0 -2
  107. package/dist/cdn/V66MBBFA.js +0 -2
  108. 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 h, createEvent as l, safeStyleMap as p } from "@arcgis/lumina";
5
- import { useContextConsumer as o } from "@arcgis/lumina/context";
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 { J as v } from "../../chunks/helpers.js";
10
- const m = 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{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 x extends h {
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._showAlertFailed = !1, this._translations = d({ name: "solutions-deployed-shell", blocking: !0 }), this._configContextConsumer = o({
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._deployedCardFetchFailedMessage = "", this._deployedCardFetchFailedTitle = "", this._isMobileContextConsumer = o({
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 = l(), this.tokenRefreshed = l(), this._handleSignIn = () => {
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
- this._deployedCardFetchFailedTitle = t.title, this._deployedCardFetchFailedMessage = t.message, this._showAlertFailed = !0;
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, _showAlertFailed: 16, _translations: 16 };
35
+ this.properties = { solutionsCount: 9, filterOpen: 16, isMobile: 16, _translations: 16 };
30
36
  }
31
37
  static {
32
- this.styles = m;
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((a) => {
64
- if (a.type === "attributes" && a.attributeName === "tabindex") {
65
- const n = a.target;
66
- n.classList.contains("content-wrapper") && n.tabIndex === 0 && (n.tabIndex = -1);
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) => v(e, () => this._handleSignIn())} scale=l>${this._translations.signIn}</calcite-button></div>`;
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=${p(e)} ${r(this._solutionsDeployedPanelRef)}></solutions-deployed-panel><calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._deployedCardFetchFailedTitle} @calciteAlertClose=${() => {
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", x);
105
+ c("solutions-deployed-shell", _);
102
106
  export {
103
- x as SolutionsDeployedShell
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 b } from "../../chunks/runtime.js";
3
- import { css as f, html as h } from "lit";
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 y } from "../../chunks/useT9n.js";
6
- import { LitElement as N, createEvent as p, safeClassMap as S } from "@arcgis/lumina";
7
- import { c as A, i as I } from "../../chunks/deployAppContexts.js";
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 C, T as O, J as E } from "../../chunks/helpers.js";
10
- const T = f`.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}`, R = {
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
- }, v = Object.keys(F).reduce(
29
+ }, M = Object.keys(F).reduce(
30
30
  (m, t) => {
31
31
  const e = t;
32
- return m[e] = R[e] ?? [], m;
32
+ return m[e] = v[e] ?? [], m;
33
33
  },
34
34
  {}
35
35
  );
36
- class M extends N {
36
+ class T extends S {
37
37
  constructor() {
38
- super(), this.hideIndustryFilter = !1, this.isAIDialogOpen = !1, this.showReset = !1, this._activeFilterSettings = {
38
+ super(), this.hideIndustryFilter = !1, this.showReset = !1, this._activeFilterSettings = {
39
39
  categories: []
40
- }, this._isMobile = !1, this._translations = y({ name: "solutions-filter-panel", blocking: !0 }), this._userFirstName = "", this._configContextConsumer = _({
41
- context: A,
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((o) => o.toUpperCase() === t.replaceAll(" ", "").toUpperCase());
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((o) => o.toUpperCase() === t.replaceAll(" ", "").toUpperCase());
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, "closeAssistant", () => {
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, isAIDialogOpen: 5, showReset: 5, _activeFilterSettings: 16, _isMobile: 16, _translations: 16, _userFirstName: 16 };
67
+ this.properties = { hideIndustryFilter: 5, showReset: 5, _activeFilterSettings: 16, _isMobile: 16, _translations: 16, _userFirstName: 16 };
72
68
  }
73
69
  static {
74
- this.styles = T;
70
+ this.styles = R;
75
71
  }
76
- get _isEnterprise() {
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 n = [];
74
+ let r = [];
85
75
  if (e !== "") {
86
- const i = F[t], a = this._industryMatchName(i), s = C[e], r = this._domainMatchName(s);
87
- n = [{
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: r,
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
- n = [{
102
- displayValue: o,
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: [...n]
111
- }, d && this.applyFilter.emit(n);
100
+ categories: [...r]
101
+ }, h && this.applyFilter.emit(r);
112
102
  } else {
113
- const n = {
114
- displayValue: o,
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: [n]
123
- }, d && this.applyFilter.emit(n);
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 h`<calcite-panel description heading>${this.showReset && h`<calcite-action appearance=solid icon=reset @click=${() => {
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>${!this._isEnterprise && h`<calcite-button id=solutions-assistant-button icon-start=speech-bubbles label="Solutions Assistant" @click=${() => {
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 ?? "") === ""), 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) => g(a, (s) => s, (s) => {
144
- const r = Object.keys(this._translations.industriesDomain).find((l) => l.toUpperCase() === s.toUpperCase()), c = r && r in this._translations.industriesDomain ? this._translations.industriesDomain[r] : s, u = t(i, s);
145
- return h`<calcite-tree-item .label=${c} @click=${(l) => {
146
- l.detail !== 0 && this.changeIndustryFilter(i, s, c, !0);
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, c, !0);
134
+ this.changeIndustryFilter(i, s, o, !0);
150
135
  });
151
- }} .selected=${u || void 0}>${c}</calcite-tree-item>`;
152
- }), n = g(Object.entries(v), ([i, a]) => i, ([i, a]) => {
153
- const s = this._industryMatchName(i), r = a, c = e(i), u = o(i, r);
154
- return h`<calcite-tree-item .label=${s} @click=${(l) => {
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=${c || void 0} .expanded=${u ? !0 : void 0}>${s}${r.length > 0 && h`<calcite-tree slot=children selection-mode=multiple>${d(i, r)}</calcite-tree>` || ""}</calcite-tree-item>`;
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 h`<calcite-block description expanded class="border-color" .heading=${this._translations.industriesHeader} .label=${this._translations.industriesHeader}><calcite-action class=${S(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>`;
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
- b("solutions-filter-panel", M);
163
+ N("solutions-filter-panel", T);
179
164
  export {
180
- M as SolutionsFilterPanel
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 f extends c {
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", f);
166
+ s("solutions-resources-shell", v);
167
167
  export {
168
- f as SolutionsResourcesShell
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, J as l } from "../../chunks/helpers.js";
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() {