@esri/solutions-components 1.2.0-next.180 → 1.2.0-next.182
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/{JKDXVDTQ.js → 6KIWQISA.js} +2 -2
- package/dist/cdn/{SECQL6XD.js → CXO6ITPS.js} +1 -1
- package/dist/cdn/IDGWY7NE.js +84 -0
- package/dist/cdn/N3P7ULE5.js +2 -0
- package/dist/cdn/{W5WIPHFJ.js → SFSI46XY.js} +1 -1
- package/dist/cdn/VOQPIDRD.js +155 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/cardFetchingUtils.js +3 -4
- package/dist/components/solutions-all-panel/customElement.js +20 -22
- package/dist/components/solutions-deploy-app/customElement.js +23 -22
- package/dist/components/solutions-deployed-shell/customElement.js +2 -6
- 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/index.d.ts +0 -10
- package/dist/loader.js +0 -1
- package/dist/solutions-components_commit.txt +4 -4
- package/dist/types/lumina.d.ts +0 -6
- package/dist/types/preact.d.ts +0 -7
- package/dist/types/react.d.ts +0 -8
- package/dist/types/stencil.d.ts +0 -6
- package/package.json +1 -1
- package/dist/cdn/2VK6WFTR.js +0 -84
- package/dist/cdn/6RIBHYGR.js +0 -155
- package/dist/cdn/EEK7QNU3.js +0 -53
- package/dist/cdn/WVHUE64C.js +0 -2
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ar.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.bg.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.bs.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ca.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.cs.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.da.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.de.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.el.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.en.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.es.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.et.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.fi.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.fr.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.he.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.hr.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.hu.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.id.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.it.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ja.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ko.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.lt.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.lv.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.nl.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.no.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.pl.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.pt-BR.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.pt-PT.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ro.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ru.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.sk.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.sl.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.sr.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.sv.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.th.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.tr.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.uk.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.vi.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.zh-CN.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.zh-HK.json +0 -8
- package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.zh-TW.json +0 -8
- package/dist/components/solutions-deployed-filter-panel/customElement.d.ts +0 -59
- package/dist/components/solutions-deployed-filter-panel/customElement.js +0 -155
- package/dist/components/solutions-deployed-filter-panel/index.d.ts +0 -1
- package/dist/components/solutions-deployed-filter-panel/index.js +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import g from"./
|
|
2
|
+
import g from"./N3P7ULE5.js";import e from"./UCUN6MQX.js";import d from"./RFTLE3FH.js";import b from"./QFO7CLLL.js";import{b as v}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as C}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as S}from"./ABSRNM72.js";import{H as y,h as _,i as a,j as f,r as c}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{g:T,h:x,k:E,l:h,n:u},{p:I},{c:A},{a:g,b:L}])=>{var D=_`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -104,4 +104,4 @@ solution-details-card {
|
|
|
104
104
|
justify-content: center;
|
|
105
105
|
align-items: center;
|
|
106
106
|
width: 100%;
|
|
107
|
-
}`,
|
|
107
|
+
}`,b=5,m=class extends y{constructor(){super(),this.sortType="relevance",this._cards=[],this._isLoading=!0,this._modifiedCheckTry=0,this._translations=C({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${h}`,this._allCards=[],this._baseAgoTerms=h,this._categories=[],this._configContextConsumer=w({context:v,subscribe:!0,callback:async e=>{e&&(this._isDisconnectedEnvironment?this._isLoading=!1:await this._loadUpdateProcedures())}}),this._delay=!1,this._getSuggested=!1,this._relatedSolutions=new Set,this._sortField="relevance",this._sortOrder="desc",this.cardsFetched=c(),this.allCardsFetched=c(),this.searchTermSet=c(),this.sortTypeSet=c(),this.detailsCardSelected=c(),this._handleOpenAssistant=()=>{this._telemetry?.logEvent({category:u.ASSISTANT,action:"Open"}),window.dispatchEvent(new CustomEvent("openAssistant"))},this.listenOn(window,"deployProgressEnd",()=>{this._modifiedCheckTry=b,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=b,this._loadUpdateProcedures()}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&(this.sortType=e.detail.sortType,this._telemetry?.logEvent({category:u.ALL_SOLUTIONS,action:"Sort",dimensions:[I(e.detail.sortType)]}),this.sortType==="suggested"&&this._deployedSolutions?.cards.length===0?this._getDeployedSolutions().then(()=>{this.searchSolutions(e.detail)}):this.searchSolutions(e.detail))}),this.listenOn(window,"solutionIDFromAssistant",e=>{this._lookupSolutionById(e.detail)})}static{this.properties={sortType:1,_cards:[16,{},{state:!0}],_isLoading:[16,{},{state:!0}],_modifiedCheckTry:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=D}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextConsumer.value?.isEnterprise===!0&&this._configContextConsumer.value?.authentication?.CanSearchArcGISOnline===!1}async searchSolutions(e){console.log("SAP searchSolutions"),!this._isDisconnectedEnvironment&&(e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):Array.isArray(e)&&this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),this._cards=await this._getSolutions())}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"all-solutions"})),"sortType"in e&&(this._sortCards(e),this.sortTypeSet.emit({sortType:e.sortType,scope:"all-solutions"})))}render(){let e=this._configContextConsumer.value?.authentication?.IsSignedIn&&this._configContextConsumer.value?.authentication?.CanUseAI;return this._isDisconnectedEnvironment?a`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.disconnectedEnvironment}</div></div></div></div>`:this._isLoading||this._cards.length?a`<calcite-panel>${this._isLoading?a`<calcite-loader id=solutions-all-panel-loader .label=${this._translations.fetchingSolutions}></calcite-loader>`:a`<calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group>`}</calcite-panel>`:a`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${e?this._translations.assistantHelp:this._translations.changeSearchTerm}</div></div>${e&&a`<calcite-button appearance=outline icon-start=speech-bubbles @click=${this._handleOpenAssistant} scale=l>${this._translations.askAssistant}</calcite-button>`||""}</div></div>`}_renderCards(){return this._cards.map(e=>a`<solution-details-card .card=${e}></solution-details-card>`)}async _getSolutions(){if(console.log("SAP _getSolutions"),this._isDisconnectedEnvironment)return this._isLoading=!1,[];if(this._configContextConsumer.value){this._isLoading=!0,this._abortController?this._abortController.abort():this._abortController=new AbortController;let e=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},this._configContextConsumer.value?.primarySolutionsGroupId,this._configContextConsumer.value?.agoBasedEnterpriseSolutionsGroupId,this._configContextConsumer.value?.userSession,this._configContextConsumer.value?.isEnterprise,this._abortController.signal,{num:1e3});console.log("SAP _getSolutions has cards"),console.log(e.cards.length),this._abortController=void 0;let t=e?.cards.length?e.cards:[];if(this.sortType==="new"||this.sortType==="updated"){let s="/Categories/New Release";this.sortType==="updated"&&(s="/Categories/Updated"),t.sort((l,d)=>l.categories.includes(s)&&!d.categories.includes(s)?-1:!l.categories.includes(s)&&d.categories.includes(s)?1:l.categories.includes(s)&&d.categories.includes(s)?l.categories.length-d.categories.length:0)}else if(this.sortType==="suggested"&&this._relatedSolutions.size>0&&this._deployedSolutions?.cards?.length){let s=new Map;for(let o of t){let r=s.get(o.deployCommonId),n=Number(o.deployVersion);(!r||n>r)&&s.set(o.deployCommonId,n)}let l=this._deployedSolutions.cards.filter(o=>{let r=s.get(o.deployCommonId);return r!==void 0&&Number(o.deployVersion)>=r}),d=new Set(l.map(o=>o.deployCommonId));this._relatedSolutions=new Set([...this._relatedSolutions].filter(o=>!d.has(o))),t.sort((o,r)=>{let n=this._relatedSolutions.has(o.deployCommonId),p=this._relatedSolutions.has(r.deployCommonId);return n&&!p?-1:!n&&p?1:0})}let i=t.map(s=>{let l=s.categories.indexOf("/Categories/New Release")>-1,d=s.categories.indexOf("/Categories/Updated")>-1,o=!1,r=!0;this._deployedSolutions&&(o=this._isSolutionDeployed(s.deployCommonId),r=this._isLatestVersion(s));let n=[];return l?n.push("new"):d&&n.push("updated"),o&&r&&n.push("deployed"),s.chips=n.length>0?n:void 0,s.supportReuse=o?!!(o&&!r):!0,s});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards,this._deployedSolutions&&(this._relatedSolutions=A(this._deployedSolutions.cards,this._allCards))),this.cardsFetched.emit(i.length),console.log("SAP _getSolutions emit cardsFetched"),this._isLoading=!1,i}else return this._isLoading=!1,[]}async _loadUpdateProcedures(){if(this._isDisconnectedEnvironment){this._isLoading=!1;return}this._isLoading=!0;let e=this._configContextConsumer.value;this._cardsFetcher=new g(e.locale,e.orgUrl,e.portalURL),this._cardsFetcherDeployed=new g(e.locale,e.orgUrl,e.portalURL),await this._getDeployedSolutions(),this._cards=await this._getSolutions(),this.allCardsFetched.emit(this._cards),this._isLoading=!1}async _getDeployedSolutions(){let e=this._configContextConsumer.value.authentication,t=this._configContextConsumer.value.userSession;if(e&&t&&e.IsSignedIn){let i=await L(e,t,this._cardsFetcher,this._cardsFetcherDeployed,E,"created");if(i){if(this._modifiedCheckTry>0){if(this._deployedSolutions?.cards.length===i?.cards.length)return this._modifiedCheckTry--,await this._getDeployedSolutions();this._modifiedCheckTry=0}this._deployedSolutions=i}}}_getMeridianSearch(){return a`<div><svg viewBox="0 0 64 64" width=140 height=140 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${f`<path d="M60.217 54.937l-15.77-15.77-1.414 1.415-3.801-3.8a19.94 19.94 0 1 0-2.451 2.45l3.802 3.802-1.413 1.415 15.767 15.767a1.739 1.739 0 0 0 2.459 0l2.82-2.821a1.742 1.742 0 0 0 0-2.458zM4.9 24A19.1 19.1 0 1 1 24 43.1 19.121 19.121 0 0 1 4.9 24zm32.474 14.693q.69-.63 1.32-1.32l3.774 3.775-1.32 1.32zM59.65 56.83l-2.82 2.82a.97.97 0 0 1-1.327 0L40.3 44.45l4.145-4.15L59.65 55.501a.939.939 0 0 1 0 1.328zM22.343 9.62l.097.795q-.31.038-.619.086a13.635 13.635 0 0 0-11.353 11.775l-.026.217-.795-.084.026-.228a14.44 14.44 0 0 1 12.022-12.47c.215-.034.431-.064.648-.09z" />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;this._getSuggested=!1,this._sortOrder="desc",t==="suggested"?this._getSuggested=!0:t==="new"?this._sortField="relevance":t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):t==="updated"&&(this._sortField="relevance"),this.sortType=t}_filterCards(e){this._categories=[],e.forEach(t=>{if(t.industry){let i=this._getIndustryValue(t.industry);if(t.domain){let s=this._getDomainValue(t.domain);this._categories.push(`/Categories/${i}/${s}`)}else this._categories.push(`/Categories/${i}`)}})}_getDomainValue(e){return x[e]}_getIndustryValue(e){return e==="AEC"?"AEC":T[e]}_clearFilterCategories(){this._categories=[]}_isSolutionDeployed(e){return!!this._deployedSolutions?.cards?.some(t=>t?.typeKeywords?.some(i=>i.includes("solutionid")&&i.includes(e)))}_isLatestVersion(e){let t=this._deployedSolutions?.cards?.filter(i=>i?.typeKeywords?.some(s=>s.includes("solutionid")&&s.includes(e.deployCommonId)));return!(t&&t.length>0&&t[0].deployVersion!==e.deployVersion)}_lookupSolutionById(e){let t=this._allCards.filter(i=>i.deployCommonId===e);t.length>0&&this.detailsCardSelected.emit(t[0])}};S("solutions-all-panel",m);return m},b,d,e,g)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./N3P7ULE5.js";import d from"./UCUN6MQX.js";import c from"./RFTLE3FH.js";import b from"./QFO7CLLL.js";import{b as C}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as y}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as f}from"./ABSRNM72.js";import{G as u,H as _,L as g,h as m,i as a,j as p,r as o}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{k:d,n:r},{p:T},,{a:c,b:x}])=>{var E=m`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
+
import t from"./LHMG5K7R.js";import s from"./N3P7ULE5.js";import r from"./PHAIB63K.js";import q from"./HC7Y7YXB.js";import"./VOQPIDRD.js";import l from"./BGI5LCTI.js";import k from"./UCUN6MQX.js";import j from"./AWWVDYW7.js";import"./7SGXC6B2.js";import i from"./Y5KP4RVL.js";import h from"./ARZ7BSMD.js";import g from"./JGULYSPT.js";import e from"./CWXECEWK.js";import"./I5GF7UR6.js";import"./YUDZU2OW.js";import d from"./RFTLE3FH.js";import c from"./QFO7CLLL.js";import{a as S,b as w}from"./W4YXXJAS.js";import{a as b}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as C}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as v}from"./ABSRNM72.js";import{F as o,G as a,H as f,J as _,h as m,i as p,r as n}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,,{c:I,g:D,k:F,l:O,n:c},,,,{b:x},,,{g:E,h:A},,,,{a:y,b:k},{a:T}])=>{var M=m`/** @license
|
|
3
|
+
* Copyright 2025 Esri
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
.back-color-override {
|
|
19
|
+
background-color: var(--calcite-color-foreground-2);
|
|
20
|
+
--calcite-tab-border-color: var(--calcite-color-foreground-3);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.display-none {
|
|
24
|
+
display: none !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.height-100 {
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Calcite overrides */
|
|
32
|
+
|
|
33
|
+
calcite-tab-nav {
|
|
34
|
+
padding-bottom: 6px;
|
|
35
|
+
padding-top: 6px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
calcite-tabs {
|
|
39
|
+
--calcite-tab-border-color: var(--calcite-color-border-3);
|
|
40
|
+
--calcite-color-focus: transparent;
|
|
41
|
+
height: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.tab-space-0 {
|
|
45
|
+
--calcite-tab-content-space-y: var(--calcite-spacing-none);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tab-space-md {
|
|
49
|
+
--calcite-tab-content-space-y: var(--calcite-spacing-md);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
solutions-searchsort-toolbar,
|
|
53
|
+
solutions-deploy-app-nav,
|
|
54
|
+
solution-details-panel,
|
|
55
|
+
solutions-resources-shell,
|
|
56
|
+
solutions-deployed-shell,
|
|
57
|
+
solutions-all-shell,
|
|
58
|
+
calcite-tab-nav,
|
|
59
|
+
solution-deployed-card-panel {
|
|
60
|
+
width: 1440px;
|
|
61
|
+
display: block;
|
|
62
|
+
max-width: 96vw;
|
|
63
|
+
padding-right: var(--calcite-spacing-none);
|
|
64
|
+
padding-left: var(--calcite-spacing-none);
|
|
65
|
+
margin-left: auto;
|
|
66
|
+
margin-right: auto;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.border {
|
|
71
|
+
height: var(--calcite-spacing-px);
|
|
72
|
+
border-bottom-color: var(--calcite-color-border-3);
|
|
73
|
+
border-bottom-style: solid;
|
|
74
|
+
border-bottom-width: var(--calcite-border-width-sm);
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.overflow-auto {
|
|
79
|
+
overflow: auto;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
solution-details-panel {
|
|
83
|
+
scroll-margin-top: 3rem;
|
|
84
|
+
}`,g=class extends f{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._translations=C({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${O}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=b({context:w}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._isMobileContextProvider=b({context:S}),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new T,this.deployAppTabSelected=n(),this.deployedCardFetchFailed=n(),this.detailsCardSelected=n(),this.deployedCardSelected=n(),this.metaTagStringsReady=n(),this.tabChanged=n(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:[5,{},{type:Boolean}],authentication:[16,{},{state:!0}],_isLoaded:[16,{},{state:!0}],isMobile:[16,{},{state:!0}],_activeTab:[16,{},{state:!0}],_showDeployedCardFetchFailed:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=M}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}async selectTab(t,e){if(console.log("selectTab in SC"),this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&(console.log("SDA selectTab call searchSolutions"),await this._allShell.value?.searchSolutions(i));break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(l=>l.id===t.tabTitleOrId?(s=l,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let s=E(this._allCards,t.tabTitleOrId);s=s||A(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i.owner&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){this.useLocalAppConfig&&(this.appConfig=x)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return p`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav>${this._isSearchToolbarShowing()&&p`<div class="border" slot=header></div>`||""}<solutions-searchsort-toolbar slot=header ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i)})}></solutions-searchsort-toolbar><calcite-loader class=${_(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${_(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=T.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new y(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new y(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_mediaQueryChange(t){this.isMobile=t.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setActiveTab(t){let i=t.detail.tabType,s=this._activeTab!==i;switch(this._activeTab=i,s&&this._logTabViewTelemetry(i),i){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}i!=="details"&&i!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(i),this.deployAppTabSelected.emit(i),this._emitMetaTagStrings(i))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=c.ALL_SOLUTIONS;break;case"deployments":i=c.DEPLOYMENTS;break;case"resources":i=c.RESOURCES;break;case"details":i=c.SOLUTION_DETAILS;break;case"deployed-card":i=c.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let r=e;s.push(r.title||""),s.push(r.deployCommonId||""),s.push(r.deployVersion||"")}let l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,dimensions:s.length>0?s:void 0})}}_emitMetaTagStrings(t,e){let i="",s="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,s=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,s=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,s=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),s=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:s,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(console.log("SDA _getSolutions"),this._isDisconnectedEnvironment)return[];this._abortController?this._abortController.abort():this._abortController=new AbortController;let i=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return console.log("SDA _getSolutions cards fetched"),console.log(i.cards.length),this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards,console.log("SDA _getSolutions allCards set")),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){let s=I(e);try{let l=await k(e,i,this._cardsFetcher,this._cardFetcherDeployed,F,"created","desc",!1,[],[],s?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let r=l.message;r.indexOf("CONT_0001")>-1||r.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):r.indexOf("GWM_0003")>-1||r.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(l)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry==="AEC"?D.AEC:t.industry,l=t.offerType,r=t.searchTerm,L="",d=t.sortField,h=t.owner,u=t.filter;e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),r&&(e=e?{...e,searchTerm:r}:{searchTerm:r}),e&&(e={...e,displayValue:L}),d&&(e=e?{...e,sortType:d}:{sortType:d}),l&&(d=l.toLowerCase(),e=e?{...e,sortType:d}:{sortType:d}),h&&(e=e?{...e,owner:h}:{owner:h}),u&&(e=e?{...e,filter:u}:{filter:u})}return e}_setScrollbarGutters(){let t=this._detailsTab.value?.shadowRoot?.firstElementChild;t?.style&&(t.style.scrollbarGutter="stable both-edges");let e=this._deployedCardTab.value?.shadowRoot?.firstElementChild;e?.style&&(e.style.scrollbarGutter="stable both-edges")}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),l=(e.Credential?.expires-i)*.95;setInterval(async()=>{await t.refreshCredentials()},l)}}};v("solutions-deploy-app",g);return g},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",c,d,e,g,h,i,j,k,l,q,r,s,t)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
+
import d from"./UCUN6MQX.js";import c from"./RFTLE3FH.js";import a from"./QFO7CLLL.js";import{K as T,nb as N,ob as O,qa as M,r as b}from"./T4PIUXJ7.js";import{g as U}from"./3YYHZQJB.js";export default $arcgis.t(([{k:y},{f:J,g:j,h:k,i:K,l:F,m:w},{a:A,b:l,c:_,e:p}])=>{var x=class{constructor(r,t,s){this.cMissingImageDataURI="https://static.arcgis.com/images/solution.png",this.cardCache=[],this.cardCacheParams={q:"",categoriesAsStr:"[]",sortField:"title",sortOrder:"asc"},this.locale=r,this.orgUrl=t,this.portalUrl=s,this.anonAgolSession=new U({}),this.agolPortalUrl=K(s)}addToCache(r){this.cardCache.push(r)}getCache(){return this.cardCache}removeFromCache(r){this.cardCache=this.cardCache.filter(t=>t.id!==r)}requestAvailableSolutionCards(r,t,s,e,i,a,o,h){let g=o?.start?o.start:1,C=o?.num?o.num:24,P=this.portalUrl+"/sharing/rest",f=this.agolPortalUrl+"/sharing/rest",z=this.anonAgolSession,v=JSON.stringify(r.categories);if(this.cardCacheParams.q!==r.q||this.cardCacheParams.categoriesAsStr!==v||r.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:r.q,categoriesAsStr:v,sortField:r.sortField,sortOrder:r.sortOrder}):(this.cardCacheParams.sortField!==r.sortField||this.cardCacheParams.sortOrder!==r.sortOrder)&&(this.cardCacheParams.sortField=r.sortField,this.cardCacheParams.sortOrder=r.sortOrder,this.cardCache=p(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let c;if(h&&h.size>0){let d=A(this.cardCache,h);c=l(d,g,C)}else c=l(this.cardCache,g,C);return Promise.resolve(c)}let R={filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,categories:r?.categories?this.convertSearchCategories(r.categories):"",signal:a},S=[];if(t&&!i){let c=e||new U({});S.push(O(t,r.q,c,R,P))}return s&&i&&S.push(O(s,r.q,z,R,f)),Promise.allSettled(S).then(c=>{let d=[];c.forEach(m=>{if(m.status==="fulfilled"){let D=m.value,B="",E=!1;B=this.agolPortalUrl,E=!0,D.results.forEach(I=>{I.sourcePortalUrl=B,I.knownToBePublicSource=E}),d.push(D)}else if(m.status==="rejected")throw new Error(m.reason.message?m.reason.message:"cannotAccessAGO")}),d.length===0?this.cardCache=[]:d.length===1?this.cardCache=this.getCardsFromResponse(d[0]):this.cardCache=p(this.getCardsFromResponse(this.mergeResponses(d)),this.cardCacheParams.sortField,this.cardCacheParams.sortOrder);let u;if(h&&h.size>0){let m=A(this.cardCache,h);u=l(m,g,C)}else u=l(this.cardCache,g,C);return Promise.resolve(u)}).catch(c=>Promise.reject(new Error(c.message)))}requestDeployedSolutionCards(r,t,s=""){let e=this.portalUrl+"/sharing/rest";if(this.cardCacheParams.q!==r.q||this.cardCacheParams.categoriesAsStr!==JSON.stringify(r.q)||r.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:r.q,categoriesAsStr:"[]",sortField:r.sortField,sortOrder:r.sortOrder}):(this.cardCacheParams.sortField!==r.sortField||this.cardCacheParams.sortOrder!==r.sortOrder)&&(this.cardCacheParams.sortField=r.sortField,this.cardCacheParams.sortOrder=r.sortOrder,this.cardCache=p(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let a=l(this.cardCache,1,this.cardCache.length);return Promise.resolve(a)}let i={q:r.q,filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,authentication:t,portal:e,categories:r?.categories?JSON.stringify(r.categories):"",num:r.num};return s?M(s,t).then(a=>{this.cardCache=this.getCardsFromResponse({results:[a]});let o=l(this.cardCache,1,this.cardCache.length);return Promise.resolve(o)}).catch(a=>Promise.reject(new Error(a))):N(i).then(a=>{this.cardCache=this.getCardsFromResponse(a);let o=l(this.cardCache,1,this.cardCache.length);return Promise.resolve(o)}).catch(a=>Promise.reject(new Error(a)))}convertSearchCategories(r){return r&&(Array.isArray(r)?r=r.map(t=>JSON.stringify(Array.isArray(t)?t:[t])):r=JSON.stringify([r])),r}getCardsFromResponse(r){return r.results.length>0?b(r.results).map(e=>{let i=e.sourcePortalUrl?e.sourcePortalUrl:this.portalUrl,a=e.sourcePortalUrl?e.sourcePortalUrl:this.orgUrl,o={id:e.id,title:e.title,snippet:e.snippet||"",description:e.description||"",url:e.url||"",itemUrl:`${a}/home/item.html`+j([{k:"id",v:e.id}])||"",thumbnailFilename:e.thumbnail,thumbnailUrl:k(e.id,e.thumbnail,this.cMissingImageDataURI,i),tryitUrl:e.url||"",typeKeywords:e.typeKeywords,learnMoreUrl:e.properties?.learnMoreUrl||"",createdMs:e.created,created:F(e.created,this.locale),modified:F(e.modified,this.locale),numViews:e.numViews,tags:e.tags,categories:e.groupCategories&&e.groupCategories.length>0?e.groupCategories:e.categories||[],licenseInfo:J(e.licenseInfo),deployCommonId:w(e.typeKeywords||[],"solutionid-"),deployVersion:w(e.typeKeywords||[],"solutionversion-"),canDelete:e.created>16183314e5,preview:this.preparePreviewImageUrls(e.id,e.properties?.preview,i),sourcePortalUrl:e.sourcePortalUrl||"",knownToBePublicSource:e.knownToBePublicSource||!1,waitId:"",relatedSolutions:T(e,"properties.relatedSolutions")||[],owner:e.owner};return o.deployCommonId!==""&&o.deployVersion!==""?o:null}).filter(e=>e!=null):[]}mergeResponses(r){let t=0;r.forEach(e=>t+=e.total);let s=[];return r.forEach(e=>s=s.concat(e.results)),{query:r[0].query,start:1,num:t,nextStart:-1,total:t,results:s}}preparePreviewImageUrls(r,t,s){return t?t.map(e=>(e.format==="image"&&(e.name=s+"/sharing/rest/content/items/"+r+"/resources/"+e.name),e)):[]}};async function W(n,r,t,s,e=y,i="created",a="desc",o=!1,h=[],g=[],C,P){if(!n?.IsSignedIn)return;let f={q:e,filter:"type:Solution",sortField:i,sortOrder:a,delay:o,categories:h,num:100};return f.q+=V(n,C),await L(r,f,s,g,P)}function V(n,r){let t="",s=n.PortalUserOrg,e=n.PortalUserName;return s&&(t+=" orgid:"+s),r!=="My organization's solutions"&&e&&(t+=" owner:"+e),t}async function L(n,r,t,s,e=""){let i=await t.requestDeployedSolutionCards(r,n,e),a=_(i.cards,s);return{cards:i.cards,relatedSolutions:a}}return{a:x,b:W}},a,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./
|
|
2
|
+
import{a}from"./VOQPIDRD.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export{a as SolutionsDeployedShell};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
+
import{a as u,b as m}from"./W4YXXJAS.js";import{b as a}from"./77CU4WA2.js";import{a as g}from"./6S75SIVV.js";import{b as p}from"./ABSRNM72.js";import{F as r,G as c,H as d,K as h,h as o,i as t,j as s,r as i}from"./5CQPQ7AE.js";var f=o`/** @license
|
|
3
|
+
* Copyright 2025 Esri
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
calcite-shell-panel {
|
|
19
|
+
z-index: var(--calcite-z-index-1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.position-relative {
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.display-flex {
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.flex-1 {
|
|
31
|
+
flex: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.flex-grow {
|
|
35
|
+
flex: 1;
|
|
36
|
+
/* This allows the label to grow and take up available space */
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.flex-shrink-0 {
|
|
40
|
+
flex: 0 0 auto;
|
|
41
|
+
/* This prevents the label from growing and allows it to take only the space it needs */
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.leader-1 {
|
|
45
|
+
margin-top: var(--calcite-spacing-xxl);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.trailer-1 {
|
|
49
|
+
margin-bottom: var(--calcite-spacing-xxl);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.warning-text {
|
|
53
|
+
max-width: 35em;
|
|
54
|
+
margin-left: auto;
|
|
55
|
+
margin-right: auto;
|
|
56
|
+
font-size: var(--calcite-font-size-md);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.text-center {
|
|
60
|
+
text-align: center;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.border-override {
|
|
64
|
+
border-top-width: var(--calcite-border-width-none);
|
|
65
|
+
border-bottom-width: var(--calcite-border-width-none);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.header-override {
|
|
69
|
+
--calcite-panel-header-content-space: var(--calcite-spacing-none);
|
|
70
|
+
--calcite-panel-header-background-color: var(--calcite-color-foreground-2);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.panel-override {
|
|
74
|
+
--calcite-panel-background-color: var(--calcite-color-foreground-2);
|
|
75
|
+
--calcite-panel-border-color: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.label-override {
|
|
79
|
+
--calcite-label-margin-bottom: var(--calcite-spacing-none);
|
|
80
|
+
padding-inline-start: var(--calcite-spacing-base);
|
|
81
|
+
font-weight: var(--calcite-font-weight-medium);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.header-button-padding {
|
|
85
|
+
padding-top: var(--calcite-spacing-sm);
|
|
86
|
+
padding-bottom: var(--calcite-spacing-sm);
|
|
87
|
+
padding-inline-start: var(--calcite-spacing-lg);
|
|
88
|
+
padding-inline-end: var(--calcite-spacing-lg);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.padding-start {
|
|
92
|
+
padding-inline-start: var(--calcite-spacing-lg);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.align-items-center {
|
|
96
|
+
align-items: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.justify-content-end {
|
|
100
|
+
justify-content: end;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.filter-width-350 {
|
|
104
|
+
--calcite-shell-panel-width: 350px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.z-index-2 {
|
|
108
|
+
z-index: 2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.mock-fab {
|
|
112
|
+
--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);
|
|
113
|
+
box-shadow: var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));
|
|
114
|
+
--calcite-button-background-color: var(--calcite-fab-background-color);
|
|
115
|
+
--calcite-button-border-color: var(--calcite-fab-border-color);
|
|
116
|
+
--calcite-button-text-color: var(--calcite-fab-text-color);
|
|
117
|
+
--calcite-button-loader-color: var(--calcite-fab-loader-color);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.position-relative {
|
|
121
|
+
position: relative;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.height-100 {
|
|
125
|
+
height: 100%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.height-50 {
|
|
129
|
+
height: 50px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.sign-in-prompt {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
align-items: center;
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 100%;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.sign-in-icon {
|
|
142
|
+
transform: translateX(-20px)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.height-150 {
|
|
146
|
+
height: 150px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.width-150 {
|
|
150
|
+
width: 150px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.padding-top-3 {
|
|
154
|
+
padding-top: 3px;
|
|
155
|
+
}`,l=class extends d{constructor(){super(),this.solutionsCount=0,this.filterOpen=!0,this.isMobile=!1,this._showAlertFailed=!1,this._translations=g({name:"solutions-deployed-shell",blocking:!0}),this._configContextConsumer=a({context:m,subscribe:!0}),this._deployedCardFetchFailedMessage="",this._deployedCardFetchFailedTitle="",this._isMobileContextConsumer=a({context:u,subscribe:!0,callback:e=>this.isMobile=e}),this._solutionsDeployedPanelRef=r(),this.filterRemoved=i(),this.tokenRefreshed=i(),this._handleSignIn=()=>{let e=window.location.pathname.endsWith("deployments")?"":"deployments";this._configContextConsumer.value?.authentication?.signIn(e)},this.listenOn(window,"deployedCardFetchFailed",e=>{let n=e.detail;this._deployedCardFetchFailedTitle=n.title,this._deployedCardFetchFailedMessage=n.message,this._showAlertFailed=!0})}static{this.properties={solutionsCount:[9,{},{type:Number}],filterOpen:[16,{},{state:!0}],isMobile:[16,{},{state:!0}],_showAlertFailed:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=f}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){this._solutionsDeployedPanelRef.value?.setSearchOptions(e),("sortType"in e||"searchTerm"in e)&&this._solutionsDeployedPanelRef.value?.searchSolutions(e)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}render(){if(!this._configContextConsumer.value?.authentication?.IsSignedIn)return this._getSignInPrompt();let e=this.isMobile?"justify-content-end":"";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>`}_getSignInPrompt(){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>`}_getSolutionsDeployedPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return t`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${h(e)} ${c(this._solutionsDeployedPanelRef)}></solutions-deployed-panel><calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._deployedCardFetchFailedTitle} @calciteAlertClose=${()=>{this._showAlertFailed=!1}} .open=${this._showAlertFailed}><div slot=title>${this._deployedCardFetchFailedTitle}</div><div slot=message>${this._deployedCardFetchFailedMessage}</div></calcite-alert></div>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_getSignInIcon(){return t`<div class="sign-in-icon"><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${s`<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>`}};p("solutions-deployed-shell",l);export{l as a};
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./ABSRNM72.js";import{v as e}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./FEILAE45.js"),"_translations:,open,serverRoot,userFirstName;handleSendMessage,loopRequest,requestAIServer;resetChat"],"buffer-tools":[()=>import("./SXKFLQ6J.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./CNCHPFKY.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./2JWJRETB.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./QHPWHMGO.js"),"_translations:,aiImageExtraction:,allowMultipleCreation,customizeSubmit,enablePhotoLocation,enableSearch,enableSnapping,floorLevel,formElements,isMobile,mapView:,popupEnabled,reportingArea,reportingAreaLayer,reportingAreaMessage,searchConfiguration:,selectedLayerId,showGuidingMsg,showLayerVisibilityMsg,showSketchWidgets,submitNewReportsMessage,updateMapPosition;refresh,showForm,submit"],"create-related-feature":[()=>import("./V7SJ57VS.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./RJRWVBMG.js"),"_translations:,appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,enableCSV,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapList,enableSearch,enableSelectionTool,enableShare,enableSnapping,enableZoom,featureSelectionMode,honorMapFieldSettings,introductionWindowEnabled,mapInfos:,onlyShowUpdatableLayers,popupHeaderColor,popupHeaderHoverColor,popupHeaderHoverTextColor,popupHeaderTextColor,searchConfiguration:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,theme,visibilityIcon,zoomAndScrollToSelected,zoomToScale"],"crowdsource-reporter":[()=>import("./7MTM6CCV.js"),"_translations:,aiImageExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableNewReports,enablePhotoLocation,enableSearch,enableSnapping,enableZoom,filterByMapExtent,floorLevel,isMobile,layerExpressions:,layerId,level,loginTitle,mapInfos:,mapView:,objectId,reportButtonText,reportingArea,reportingAreaLayer,reportingAreaMessage,reportingOptions:,reportsHeader,reportSubmittedMessage,searchConfiguration:,showComments,showFeatureSymbol,showFullCommentTitle,showMyReportsOnly,showUserImageInCommentsList,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./WSUCAHSV.js")],"delete-button":[()=>import("./2UY5AG4I.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./NDEILGBJ.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./IVESIH47.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./DEVMQRIV.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./QGR5TZUX.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./TPUPFMVO.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./4GFHM3CD.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./R6TK53NR.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./J6BRXQUD.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./24LLKGOA.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,mapHidden,mapInfo:,mapView:,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate"],"map-basemap-gallery":[()=>import("./YP3NCJZY.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./Z7GVQOFC.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./WOIJDANZ.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./FCS5ID7D.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./JLQGZPWA.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./JDFTGGSH.js"),"_translations:,appearance,configLayerOrderDefined,defaultLayerId,disabled,display,enabledLayerIds:,height,isMobile,mapView:,placeholderIcon,referenceElement,scale,selectedIds:,showLayersListInPopover,showOnlyUpdatableLayers,showSingleLayerAsLabel,showTables,showTablesDisabled,type;setLayerById,setLayerByIds,updateLayer"],"map-legend":[()=>import("./TVHVKDXC.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./VXSAHUEP.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./XMMILGG2.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./DI25OTTX.js"),"_translations:,bufferColor,bufferOutlineColor,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,enabledLayerIds:,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,geometries:,headerLabelClass,isUpdate,layerViews:,mapView:,noResultText,searchConfiguration:,searchDistanceEnabled,selectionLayerIds:,selectionSet:,selectLayerView:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:,useLayerFeaturesEnabled;clearSelection,getSelection"],"map-tools":[()=>import("./65LO5FJ5.js"),"_translations:,basemapConfig:,defaultLayerId,enableBasemap,enabledLayerIds:,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableSingleExpand,isMobile,layout,mapInfo:,mapInfos:,mapView:,mapWidgetsSize,parentComponentHeight,parentComponentWidth,position,searchConfiguration:,selectedFeaturesIds:,selectedLayer:,selectedWebMapId,selectionTools:,showOnlyUpdatableLayers,stackTools,toolOrder:,visibilityIcon,zoomToolsSize"],"pci-calculator":[()=>import("./VSJ75MUT.js")],"pdf-download":[()=>import("./KYDDWA2X.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./EVLSZPEV.js"),"_translations:,addresseeLayerIds:,bufferColor,bufferOutlineColor,customExport,customExportURL,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,defaultExportTitle,defaultNumLabelsPerPage,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,featureEffect:,featureHighlightEnabled,initialNotice,mapView:,noResultText,searchConfiguration:,selectionLayerIds:,showRefineSelection,showSearchSettings,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"refine-selection":[()=>import("./UBZXPTKV.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./VL2MYWM4.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-configure-titles":[()=>import("./3MWL4VKU.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./A4ABVAGK.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./HQTCXWS5.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./7CMFEMV5.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./I4EKAQNZ.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./NRCA2TEL.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./RYSMGC7G.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./WO24XOJC.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./ADWFVM7J.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./BP7SZSWK.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./PXSQUQNJ.js"),"isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./C7UDORSN.js"),"_translations:,description,heading,icon,meridianIcon,sectionHeading,url"],"solution-snapshot-gallery":[()=>import("./ZELDJPGW.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./S6OVOZ5S.js"),"_translations:,actionApperance,autoUpdateShareUrl,buttonAppearance,inlineSuccessPopoverPlacement,mode,popoverButtonIconScale,popoverPositioning,removePopoverOffset,scale,shareButtonKind,shareButtonScale,shareButtonText,shareButtonType,shareIconsLayout,shareText,shareUrl,shortenShareUrl,socialMedia,solutionId,solutionTitle,solutionVersion,successMessage"],"solution-user-avatar":[()=>import("./ZIINWCFY.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./JKDXVDTQ.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./XPPWSXNO.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./2VK6WFTR.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./O4MVHJET.js"),"_translations:,appConfig,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-filter-panel":[()=>import("./EEK7QNU3.js"),"_translations:,isAllSolutions,isMobile,isOrgAdmin;;changeOwnerFilter,changeSearchFilter,clearFilters"],"solutions-deployed-panel":[()=>import("./SECQL6XD.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./W5WIPHFJ.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./36VCTUT7.js"),"_translations:,hideIndustryFilter,isAIDialogOpen,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./E3RDQBWZ.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./AUZITS7B.js"),"_translations:"],"solutions-searchsort-toolbar":[()=>import("./YL5D7Y2I.js"),"_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]});o({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync(`@layer{:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-filter-panel,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}
|
|
2
|
+
import{a}from"./ABSRNM72.js";import{v as e}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./FEILAE45.js"),"_translations:,open,serverRoot,userFirstName;handleSendMessage,loopRequest,requestAIServer;resetChat"],"buffer-tools":[()=>import("./SXKFLQ6J.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./CNCHPFKY.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./2JWJRETB.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./QHPWHMGO.js"),"_translations:,aiImageExtraction:,allowMultipleCreation,customizeSubmit,enablePhotoLocation,enableSearch,enableSnapping,floorLevel,formElements,isMobile,mapView:,popupEnabled,reportingArea,reportingAreaLayer,reportingAreaMessage,searchConfiguration:,selectedLayerId,showGuidingMsg,showLayerVisibilityMsg,showSketchWidgets,submitNewReportsMessage,updateMapPosition;refresh,showForm,submit"],"create-related-feature":[()=>import("./V7SJ57VS.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./RJRWVBMG.js"),"_translations:,appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,enableCSV,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapList,enableSearch,enableSelectionTool,enableShare,enableSnapping,enableZoom,featureSelectionMode,honorMapFieldSettings,introductionWindowEnabled,mapInfos:,onlyShowUpdatableLayers,popupHeaderColor,popupHeaderHoverColor,popupHeaderHoverTextColor,popupHeaderTextColor,searchConfiguration:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,theme,visibilityIcon,zoomAndScrollToSelected,zoomToScale"],"crowdsource-reporter":[()=>import("./7MTM6CCV.js"),"_translations:,aiImageExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableNewReports,enablePhotoLocation,enableSearch,enableSnapping,enableZoom,filterByMapExtent,floorLevel,isMobile,layerExpressions:,layerId,level,loginTitle,mapInfos:,mapView:,objectId,reportButtonText,reportingArea,reportingAreaLayer,reportingAreaMessage,reportingOptions:,reportsHeader,reportSubmittedMessage,searchConfiguration:,showComments,showFeatureSymbol,showFullCommentTitle,showMyReportsOnly,showUserImageInCommentsList,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./WSUCAHSV.js")],"delete-button":[()=>import("./2UY5AG4I.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./NDEILGBJ.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./IVESIH47.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./DEVMQRIV.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./QGR5TZUX.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./TPUPFMVO.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./4GFHM3CD.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./R6TK53NR.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./J6BRXQUD.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./24LLKGOA.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,mapHidden,mapInfo:,mapView:,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate"],"map-basemap-gallery":[()=>import("./YP3NCJZY.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./Z7GVQOFC.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./WOIJDANZ.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./FCS5ID7D.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./JLQGZPWA.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./JDFTGGSH.js"),"_translations:,appearance,configLayerOrderDefined,defaultLayerId,disabled,display,enabledLayerIds:,height,isMobile,mapView:,placeholderIcon,referenceElement,scale,selectedIds:,showLayersListInPopover,showOnlyUpdatableLayers,showSingleLayerAsLabel,showTables,showTablesDisabled,type;setLayerById,setLayerByIds,updateLayer"],"map-legend":[()=>import("./TVHVKDXC.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./VXSAHUEP.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./XMMILGG2.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./DI25OTTX.js"),"_translations:,bufferColor,bufferOutlineColor,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,enabledLayerIds:,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,geometries:,headerLabelClass,isUpdate,layerViews:,mapView:,noResultText,searchConfiguration:,searchDistanceEnabled,selectionLayerIds:,selectionSet:,selectLayerView:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:,useLayerFeaturesEnabled;clearSelection,getSelection"],"map-tools":[()=>import("./65LO5FJ5.js"),"_translations:,basemapConfig:,defaultLayerId,enableBasemap,enabledLayerIds:,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableSingleExpand,isMobile,layout,mapInfo:,mapInfos:,mapView:,mapWidgetsSize,parentComponentHeight,parentComponentWidth,position,searchConfiguration:,selectedFeaturesIds:,selectedLayer:,selectedWebMapId,selectionTools:,showOnlyUpdatableLayers,stackTools,toolOrder:,visibilityIcon,zoomToolsSize"],"pci-calculator":[()=>import("./VSJ75MUT.js")],"pdf-download":[()=>import("./KYDDWA2X.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./EVLSZPEV.js"),"_translations:,addresseeLayerIds:,bufferColor,bufferOutlineColor,customExport,customExportURL,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,defaultExportTitle,defaultNumLabelsPerPage,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,featureEffect:,featureHighlightEnabled,initialNotice,mapView:,noResultText,searchConfiguration:,selectionLayerIds:,showRefineSelection,showSearchSettings,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"refine-selection":[()=>import("./UBZXPTKV.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./VL2MYWM4.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-configure-titles":[()=>import("./3MWL4VKU.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./A4ABVAGK.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./HQTCXWS5.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./7CMFEMV5.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./I4EKAQNZ.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./NRCA2TEL.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./RYSMGC7G.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./WO24XOJC.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./ADWFVM7J.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./BP7SZSWK.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./PXSQUQNJ.js"),"isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./C7UDORSN.js"),"_translations:,description,heading,icon,meridianIcon,sectionHeading,url"],"solution-snapshot-gallery":[()=>import("./ZELDJPGW.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./S6OVOZ5S.js"),"_translations:,actionApperance,autoUpdateShareUrl,buttonAppearance,inlineSuccessPopoverPlacement,mode,popoverButtonIconScale,popoverPositioning,removePopoverOffset,scale,shareButtonKind,shareButtonScale,shareButtonText,shareButtonType,shareIconsLayout,shareText,shareUrl,shortenShareUrl,socialMedia,solutionId,solutionTitle,solutionVersion,successMessage"],"solution-user-avatar":[()=>import("./ZIINWCFY.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./6KIWQISA.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./XPPWSXNO.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./IDGWY7NE.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./O4MVHJET.js"),"_translations:,appConfig,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-panel":[()=>import("./CXO6ITPS.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./SFSI46XY.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./36VCTUT7.js"),"_translations:,hideIndustryFilter,isAIDialogOpen,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./E3RDQBWZ.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./AUZITS7B.js"),"_translations:"],"solutions-searchsort-toolbar":[()=>import("./YL5D7Y2I.js"),"_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]});o({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync(`@layer{:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}
|
|
3
3
|
|
|
4
4
|
}`);document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a)
|
package/dist/cdn/main.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer{
|
|
2
|
-
:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-
|
|
2
|
+
:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
}
|
|
@@ -64,7 +64,7 @@ class CardsFetcher {
|
|
|
64
64
|
* @returns A promise resolving to a collection of available Solutions as cards as well as paging information about
|
|
65
65
|
* where those cards came from in the fetcher cache; in case of failure, the promise resolves to an error message
|
|
66
66
|
*/
|
|
67
|
-
requestAvailableSolutionCards(query, primarySolutionsGroupId, agoBasedEnterpriseSolutionsGroupId, userSession, isEnterprise, pagingParams, acceptableIds) {
|
|
67
|
+
requestAvailableSolutionCards(query, primarySolutionsGroupId, agoBasedEnterpriseSolutionsGroupId, userSession, isEnterprise, signal, pagingParams, acceptableIds) {
|
|
68
68
|
const start1 = pagingParams?.start ? pagingParams.start : 1;
|
|
69
69
|
const num = pagingParams?.num ? pagingParams.num : 24;
|
|
70
70
|
const portalUrl = this.portalUrl + "/sharing/rest";
|
|
@@ -102,9 +102,8 @@ class CardsFetcher {
|
|
|
102
102
|
filter: query.filter,
|
|
103
103
|
sortField: query.sortField,
|
|
104
104
|
sortOrder: query.sortOrder,
|
|
105
|
-
categories: query?.categories ? this.convertSearchCategories(query.categories) : ""
|
|
106
|
-
|
|
107
|
-
//signal
|
|
105
|
+
categories: query?.categories ? this.convertSearchCategories(query.categories) : "",
|
|
106
|
+
signal
|
|
108
107
|
};
|
|
109
108
|
const searches = [];
|
|
110
109
|
if (primarySolutionsGroupId && !isEnterprise) {
|
|
@@ -256,30 +256,28 @@ class SolutionsAllPanel extends LitElement {
|
|
|
256
256
|
}
|
|
257
257
|
if (this._configContextConsumer.value) {
|
|
258
258
|
this._isLoading = true;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
"num": 1e3
|
|
279
|
-
}
|
|
280
|
-
);
|
|
259
|
+
if (this._abortController) {
|
|
260
|
+
this._abortController.abort();
|
|
261
|
+
} else {
|
|
262
|
+
this._abortController = new AbortController();
|
|
263
|
+
}
|
|
264
|
+
const fetchedCards = await this._cardsFetcher?.requestAvailableSolutionCards({
|
|
265
|
+
"q": this._agoTerms,
|
|
266
|
+
"filter": "type:Solution",
|
|
267
|
+
"sortField": this._sortField,
|
|
268
|
+
"sortOrder": this._sortOrder,
|
|
269
|
+
// TODO default search when old app loads is desc...may need to switch this for other
|
|
270
|
+
"nextStart": -1,
|
|
271
|
+
"categories": this._categories,
|
|
272
|
+
"delay": this._delay,
|
|
273
|
+
"getSuggested": this._getSuggested,
|
|
274
|
+
"num": 100
|
|
275
|
+
}, this._configContextConsumer.value?.primarySolutionsGroupId, this._configContextConsumer.value?.agoBasedEnterpriseSolutionsGroupId, this._configContextConsumer.value?.userSession, this._configContextConsumer.value?.isEnterprise, this._abortController.signal, {
|
|
276
|
+
"num": 1e3
|
|
277
|
+
});
|
|
281
278
|
console.log("SAP _getSolutions has cards");
|
|
282
279
|
console.log(fetchedCards.cards.length);
|
|
280
|
+
this._abortController = void 0;
|
|
283
281
|
const cards = fetchedCards?.cards.length ? fetchedCards.cards : [];
|
|
284
282
|
if (this.sortType === "new" || this.sortType === "updated") {
|
|
285
283
|
let releaseType = "/Categories/New Release";
|
|
@@ -233,6 +233,9 @@ class SolutionsDeployApp extends LitElement {
|
|
|
233
233
|
case "deployments":
|
|
234
234
|
this._mySolutionsTab.value.selected = true;
|
|
235
235
|
this._mySolutionsTabTitle.value.selected = true;
|
|
236
|
+
if (this._searchSortToolbar && searchOptions.owner) {
|
|
237
|
+
this._searchSortToolbar.changeOwnerFilter(searchOptions.filter !== "Organization");
|
|
238
|
+
}
|
|
236
239
|
if (searchOptions) {
|
|
237
240
|
await this._mySolutionsShell.value?.searchSolutions(searchOptions);
|
|
238
241
|
}
|
|
@@ -459,30 +462,28 @@ class SolutionsDeployApp extends LitElement {
|
|
|
459
462
|
if (this._isDisconnectedEnvironment) {
|
|
460
463
|
return [];
|
|
461
464
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
"num": 1e3
|
|
482
|
-
}
|
|
483
|
-
);
|
|
465
|
+
if (this._abortController) {
|
|
466
|
+
this._abortController.abort();
|
|
467
|
+
} else {
|
|
468
|
+
this._abortController = new AbortController();
|
|
469
|
+
}
|
|
470
|
+
const fetchedCards = await this._cardsFetcher?.requestAvailableSolutionCards({
|
|
471
|
+
"q": this._agoTerms,
|
|
472
|
+
"filter": "type:Solution",
|
|
473
|
+
"sortField": this._sortField,
|
|
474
|
+
"sortOrder": this._sortOrder,
|
|
475
|
+
// TODO default search when old app loads is desc...may need to switch this for other
|
|
476
|
+
"nextStart": -1,
|
|
477
|
+
"categories": this._categories,
|
|
478
|
+
"delay": this._delay,
|
|
479
|
+
"getSuggested": this._getSuggested,
|
|
480
|
+
"num": 100
|
|
481
|
+
}, primarySolutionsGroupId, agoBasedEnterpriseSolutionsGroupId, this._configContextProvider.value.userSession, this._configContextProvider.value.isEnterprise, this._abortController.signal, {
|
|
482
|
+
"num": 1e3
|
|
483
|
+
});
|
|
484
484
|
console.log("SDA _getSolutions cards fetched");
|
|
485
485
|
console.log(fetchedCards.cards.length);
|
|
486
|
+
this._abortController = void 0;
|
|
486
487
|
if (this._allCards.length === 0 && fetchedCards?.cards) {
|
|
487
488
|
this._allCards = fetchedCards?.cards;
|
|
488
489
|
console.log("SDA _getSolutions allCards set");
|