@esri/solutions-components 5.1.0-next.13 → 5.1.0-next.14

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.
@@ -1,10 +1,10 @@
1
- Built 03/05/2026 11:02:15.34
1
+ Built 03/05/2026 15:20:42.45
2
2
  develop
3
- commit bbb8a273ec1d6cbc2518b4b12d7494337e7e0ab8
4
- Merge: f8d5e30c5 5b6324587
5
- Author: Ryan Cosby <rcosby@esri.com>
6
- Date: Thu Mar 5 10:52:30 2026 -0800
3
+ commit 309de03085d38a007743f67ccb6b635acf982125
4
+ Author: Sumit Zarkar <sumit.zarkar080@gmail.com>
5
+ Date: Wed Mar 4 20:28:04 2026 +0530
7
6
 
8
- Merge pull request #2198 from Esri/ryan9313-config-update
7
+ Delivery for Reporter Instant App - AGOL-2025.R01 - Patch for #2195
9
8
 
10
- simplify config
9
+ ## Implemented
10
+ - #2195
@@ -357,6 +357,7 @@ interface LuminaSolutionsDeployedShell extends Partial<Pick<SolutionsDeployedShe
357
357
  interface LuminaSolutionsFilterPanel extends Partial<Pick<SolutionsFilterPanel, "hideIndustryFilter" | "isAIDialogOpen" | "showReset">>, h.JSX.HTMLAttributes<SolutionsFilterPanel> {
358
358
  onapplyFilter?: EventHandler<SolutionsFilterPanel["applyFilter"]>;
359
359
  ontoggleFilter?: EventHandler<SolutionsFilterPanel["toggleFilter"]>;
360
+ onupdateUrlParams?: EventHandler<SolutionsFilterPanel["updateUrlParams"]>;
360
361
  }
361
362
 
362
363
  interface LuminaSolutionsResourcesSection extends Partial<Pick<SolutionsResourcesSection, "cards" | "heading" | "subheading">>, h.JSX.HTMLAttributes<SolutionsResourcesSection> {
@@ -358,6 +358,7 @@ interface PreactSolutionsDeployedShell extends Partial<Pick<SolutionsDeployedShe
358
358
  interface PreactSolutionsFilterPanel extends Partial<Pick<SolutionsFilterPanel, "hideIndustryFilter" | "isAIDialogOpen" | "showReset">>, HTMLAttributes<SolutionsFilterPanel> {
359
359
  onapplyFilter?: EventHandler<SolutionsFilterPanel["applyFilter"]>;
360
360
  ontoggleFilter?: EventHandler<SolutionsFilterPanel["toggleFilter"]>;
361
+ onupdateUrlParams?: EventHandler<SolutionsFilterPanel["updateUrlParams"]>;
361
362
  }
362
363
 
363
364
  interface PreactSolutionsResourcesSection extends Partial<Pick<SolutionsResourcesSection, "cards" | "heading" | "subheading">>, HTMLAttributes<SolutionsResourcesSection> {
@@ -358,6 +358,7 @@ interface ReactSolutionsDeployedShell extends Partial<Pick<SolutionsDeployedShel
358
358
  interface ReactSolutionsFilterPanel extends Partial<Pick<SolutionsFilterPanel, "hideIndustryFilter" | "isAIDialogOpen" | "showReset">>, HTMLProps<SolutionsFilterPanel> {
359
359
  onapplyFilter?: EventHandler<SolutionsFilterPanel["applyFilter"]>;
360
360
  ontoggleFilter?: EventHandler<SolutionsFilterPanel["toggleFilter"]>;
361
+ onupdateUrlParams?: EventHandler<SolutionsFilterPanel["updateUrlParams"]>;
361
362
  }
362
363
 
363
364
  interface ReactSolutionsResourcesSection extends Partial<Pick<SolutionsResourcesSection, "cards" | "heading" | "subheading">>, HTMLProps<SolutionsResourcesSection> {
@@ -358,6 +358,7 @@ interface StencilSolutionsDeployedShell extends Partial<Pick<SolutionsDeployedSh
358
358
  interface StencilSolutionsFilterPanel extends Partial<Pick<SolutionsFilterPanel, "hideIndustryFilter" | "isAIDialogOpen" | "showReset">>, StencilJsx.HTMLAttributes<SolutionsFilterPanel> {
359
359
  onApplyFilter?: EventHandler<SolutionsFilterPanel["applyFilter"]>;
360
360
  onToggleFilter?: EventHandler<SolutionsFilterPanel["toggleFilter"]>;
361
+ onUpdateUrlParams?: EventHandler<SolutionsFilterPanel["updateUrlParams"]>;
361
362
  }
362
363
 
363
364
  interface StencilSolutionsResourcesSection extends Partial<Pick<SolutionsResourcesSection, "cards" | "heading" | "subheading">>, StencilJsx.HTMLAttributes<SolutionsResourcesSection> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "5.1.0-next.13",
3
+ "version": "5.1.0-next.14",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as E}from"./HBPD3T7H.js";import a from"./OVKFYACI.js";import{a as C,b as v}from"./QHG54NVK.js";import{b as g}from"./DLBZRD4H.js";import{a as I}from"./3AQ7U2PF.js";import{b}from"./NDUAEC62.js";import{H as A,J as S,h as N,i as c,r as m}from"./P4KZ6OZF.js";export default $arcgis.t(([{B:y,C:R,I:f,r:_}])=>{var 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={PUBLICSAFETY:["EMERGENCYMANAGEMENT","FIRESERVICE","LAWENFORCEMENT"],STATEANDLOCALGOVERNMENT:["AGRICULTURE","AIRPORT","ASSESSMENTANDTAXATION","ELECTIONS","EMERGENCYMANAGEMENT","FIRESERVICE","FISHANDWILDLIFE","HEALTHANDHUMANSERVICES","LAWENFORCEMENT","NATURALRESOURCES","PARKS","PLANNINGANDDEVELOPMENT","PUBLICWORKS","TRANSPORTATION"],UTILITIES:["DISTRICTENERGY","ELECTRIC","GAS","SEWER","STORMWATER","WATER"]},$=Object.keys(y).reduce((u,e)=>{let t=e;return u[t]=O[t]??[],u},{}),F=class extends A{constructor(){super(),this.hideIndustryFilter=!1,this.isAIDialogOpen=!1,this.showReset=!1,this._activeFilterSettings={categories:[]},this._isMobile=!1,this._translations=I({name:"solutions-filter-panel",blocking:!0}),this._userFirstName="",this._configContextConsumer=g({context:v,subscribe:!0,callback:e=>{e?.userSession&&!this._userFirstName&&this._loadUserFirstName()}}),this._isMobileContextConsumer=g({context:C,subscribe:!0,callback:e=>this._isMobile=e}),this.applyFilter=m(),this.toggleFilter=m(),this._handleFilterRemoved=e=>{let t=e.detail;Array.isArray(t)&&(this._activeFilterSettings={...this._activeFilterSettings,categories:[...t]})},this._industryMatchName=e=>{let t=Object.keys(this._translations.industries).find(o=>o.toUpperCase()===e.replaceAll(" ","").toUpperCase());return t&&t in this._translations.industries?this._translations.industries[t]:e},this._domainMatchName=e=>{let t=Object.keys(this._translations.industriesDomain).find(o=>o.toUpperCase()===e.replaceAll(" ","").toUpperCase());return t&&t in this._translations.industriesDomain?this._translations.industriesDomain[t]:e},this.listenOn(window,"filterRemoved",this._handleFilterRemoved),this.listenOn(window,"closeAssistant",()=>{this.isAIDialogOpen=!1}),this.listenOn(window,"openAssistant",()=>{this.isAIDialogOpen=!0})}static{this.properties={hideIndustryFilter:5,isAIDialogOpen:5,showReset:5,_activeFilterSettings:16,_isMobile:16,_translations:16,_userFirstName:16}}static{this.styles=T}get _isEnterprise(){return this._configContextConsumer.value?.isEnterprise}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}changeIndustryFilter(e,t,o,h){if(e!==""||t!==""){let n=[];if(t!==""){let i=y[e],a=this._industryMatchName(i),s=R[t],r=this._domainMatchName(s);n=[{displayValue:a,type:"industry",value:e,industry:e,domain:""},{displayValue:r,type:"domain",value:t,industry:e,domain:t}]}else n=[{displayValue:o,type:t!==""?"domain":"industry",value:t!==""?t:e,industry:e,domain:t}];this._activeFilterSettings={...this._activeFilterSettings,categories:[...n]},h&&this.applyFilter.emit(n)}else{let n={displayValue:o,type:"industry",value:e,industry:e,domain:t};this._activeFilterSettings={...this._activeFilterSettings,categories:[n]},h&&this.applyFilter.emit(n)}}clearFilters(){this.changeIndustryFilter("","",""),this.applyFilter.emit(null)}async load(){await this._loadUserFirstName(),this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}render(){return c`<calcite-panel description heading>${this.showReset&&c`<calcite-action appearance=solid icon=reset @click=${()=>{this.clearFilters()}} 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&&c`<calcite-button id=solutions-assistant-button icon-start=speech-bubbles label="Solutions Assistant" @click=${()=>{this._telemetry?.logEvent({category:f.ASSISTANT,action:"Open"}),this.isAIDialogOpen=!0}} 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>`}renderIndustryBlock(){let e=(i,a)=>!this._activeFilterSettings||!this._activeFilterSettings.categories?!1:this._activeFilterSettings.categories.some(s=>s.industry===i&&(s.domain??"")===a),t=i=>!this._activeFilterSettings||!this._activeFilterSettings.categories?!1:this._activeFilterSettings.categories.some(a=>a.industry===i&&(a.domain??"")===""),o=(i,a)=>a.length>0&&(t(i)||this._activeFilterSettings.categories?.some(s=>s.industry===i&&!!s.domain&&a.includes(s.domain))===!0),h=(i,a)=>E(a,s=>s,s=>{let r=Object.keys(this._translations.industriesDomain).find(l=>l.toUpperCase()===s.toUpperCase()),d=r&&r in this._translations.industriesDomain?this._translations.industriesDomain[r]:s,p=e(i,s);return c`<calcite-tree-item .label=${d} @click=${l=>{l.detail!==0&&this.changeIndustryFilter(i,s,d,!0)}} @keydown=${l=>{_(l,()=>{this.changeIndustryFilter(i,s,d,!0)})}} .selected=${p||void 0}>${d}</calcite-tree-item>`}),n=E(Object.entries($),([i,a])=>i,([i,a])=>{let s=this._industryMatchName(i),r=a,d=t(i),p=o(i,r);return c`<calcite-tree-item .label=${s} @click=${l=>{l.detail!==0&&this.changeIndustryFilter(i,"",s,!0)}} @keydown=${l=>{_(l,()=>{this.changeIndustryFilter(i,"",s,!0)})}} .selected=${d||void 0} .expanded=${p?!0:void 0}>${s}${r.length>0&&c`<calcite-tree slot=children selection-mode=multiple>${h(i,r)}</calcite-tree>`||""}</calcite-tree-item>`});return c`<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>`}_toggleFilter(){this.toggleFilter.emit()}async _loadUserFirstName(){try{let e=await this._configContextConsumer.value?.userSession?.getUser();if(e?.fullName){let t=e.fullName.split(" ")[0];this._userFirstName=t}}catch{}}};b("solutions-filter-panel",F);return F},a)