@esri/solutions-components 1.2.0-next.173 → 1.2.0-next.174
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/{Q2FDTNYN.js → 2BRQFLJM.js} +1 -1
- package/dist/cdn/3ZXKTRB3.js +71 -0
- package/dist/cdn/{WSGGMK4M.js → 4GFHM3CD.js} +1 -1
- package/dist/cdn/4LETK56E.js +42 -0
- package/dist/cdn/{RPQK3WWX.js → 4ZRD2V6P.js} +1 -1
- package/dist/cdn/{YXZ5XCZU.js → 5VVGEJPA.js} +1 -1
- package/dist/cdn/{D5JJR6FB.js → 6RPMFU6D.js} +1 -1
- package/dist/cdn/{SUJPMF5X.js → 7AK5QUWI.js} +1 -1
- package/dist/cdn/{6MN7JXUL.js → 7MTM6CCV.js} +1 -1
- package/dist/cdn/7YVBHTQ2.js +107 -0
- package/dist/cdn/{MU7RTD3Q.js → ADWFVM7J.js} +1 -1
- package/dist/cdn/{LPTAQATM.js → B36YXO2J.js} +1 -1
- package/dist/cdn/{5XXBFCJE.js → BP7SZSWK.js} +1 -1
- package/dist/cdn/{35WLNFUD.js → C723WJAL.js} +1 -1
- package/dist/cdn/CNGT7GTK.js +161 -0
- package/dist/cdn/{IYS7VNW2.js → CNOYI64P.js} +1 -1
- package/dist/cdn/CPMLWPIC.js +84 -0
- package/dist/cdn/{MU73R5NY.js → CTVPNT4G.js} +1 -1
- package/dist/cdn/{J7NP5DYG.js → CVEAILLN.js} +1 -1
- package/dist/cdn/{VPH5M6ZG.js → DSHN4MKB.js} +1 -1
- package/dist/cdn/{A6ARY54F.js → E5J7DYCN.js} +1 -1
- package/dist/cdn/EKACGU3O.js +78 -0
- package/dist/cdn/{EWYHZVLG.js → EVLSZPEV.js} +1 -1
- package/dist/cdn/{QYFQRPK7.js → GF6RNBP5.js} +1 -1
- package/dist/cdn/{W67U7B6H.js → GTQBWHKB.js} +1 -1
- package/dist/cdn/{PNN4TKP7.js → JUAEZHMR.js} +1 -1
- package/dist/cdn/{D3J5OW3S.js → K6CKFQQ6.js} +1 -1
- package/dist/cdn/{JBCXSWUE.js → KYDDWA2X.js} +1 -1
- package/dist/cdn/MH46NK3A.js +2 -0
- package/dist/cdn/{XK2BNMVQ.js → NQVXRWJL.js} +1 -1
- package/dist/cdn/NSFRJKJI.js +310 -0
- package/dist/cdn/{6E372BGJ.js → O3BNBDWV.js} +1 -1
- package/dist/cdn/{YTXS76QG.js → OPEYCNAQ.js} +1 -1
- package/dist/cdn/{QUEH5DH3.js → P57YDXXR.js} +1 -1
- package/dist/cdn/{OTIQS35F.js → PO2JCLOX.js} +1 -1
- package/dist/cdn/{YA54VGWG.js → QGR5TZUX.js} +1 -1
- package/dist/cdn/R24ASQQY.js +188 -0
- package/dist/cdn/{OHX43OKT.js → RJRWRCQS.js} +1 -9
- package/dist/cdn/{73IP2NMR.js → RJRWVBMG.js} +1 -1
- package/dist/cdn/{BBLQOGSJ.js → SY4G6SAW.js} +1 -1
- package/dist/cdn/{TRGFYBOH.js → T4PIUXJ7.js} +3 -3
- package/dist/cdn/TZFQU3SK.js +136 -0
- package/dist/cdn/{QSNYUY6K.js → UHIFNZFJ.js} +1 -1
- package/dist/cdn/{GYPFCKOU.js → UROTPS3S.js} +1 -1
- package/dist/cdn/{JOFESHKU.js → VYQEF3JJ.js} +1 -1
- package/dist/cdn/WARPRATU.js +508 -0
- package/dist/cdn/{RQX7YG2W.js → WUHFGWCC.js} +1 -1
- package/dist/cdn/{FNBUXUD2.js → XJLGAYRS.js} +1 -1
- package/dist/cdn/{A5BPM6QU.js → XVKBSBQE.js} +1 -1
- package/dist/cdn/{3LWAQ7AF.js → YQJLSKR4.js} +1 -1
- package/dist/cdn/{5RGOEMSZ.js → YUDNKOVG.js} +1 -1
- package/dist/cdn/{FKFSLIPR.js → ZCWWLT2A.js} +1 -1
- package/dist/cdn/{W6PUON32.js → ZIINWCFY.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/Auth.js +10 -1
- package/dist/chunks/getRelatedInfos.js +1 -1
- package/dist/chunks/interfaces.js +58 -39
- package/dist/chunks/solutions-deploy-app-nav.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +2 -3
- package/dist/components/solution-delete-dialog/customElement.js +2 -14
- package/dist/components/solution-deployed-card/customElement.d.ts +0 -2
- package/dist/components/solution-deployed-card/customElement.js +2 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +95 -22
- package/dist/components/solution-details-panel/customElement.js +14 -3
- package/dist/components/solution-item-accordion/customElement.js +1 -9
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -2
- package/dist/components/solutions-deploy-app/customElement.js +1 -2
- package/dist/components/solutions-deployed-panel/customElement.js +2 -12
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +7 -7
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +21 -22
- package/dist/loader.js +1 -1
- package/dist/solutions-components_commit.txt +5 -5
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/Auth.d.ts +3 -0
- package/dist/utils/interfaces.d.ts +0 -6
- package/package.json +1 -1
- package/dist/cdn/6HGHAHIS.js +0 -245
- package/dist/cdn/BCDZGJVM.js +0 -42
- package/dist/cdn/D32GUK4A.js +0 -188
- package/dist/cdn/IFTQ7B3Z.js +0 -107
- package/dist/cdn/ITNW7ZOV.js +0 -136
- package/dist/cdn/JSKF75Y2.js +0 -71
- package/dist/cdn/RFX3TZLW.js +0 -84
- package/dist/cdn/TEYMDLPT.js +0 -161
- package/dist/cdn/VS5S2XRH.js +0 -78
- package/dist/cdn/YDMRYUCT.js +0 -508
- package/dist/cdn/ZD3TP7AS.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./6GJIDRJ7.js";import c from"./
|
|
2
|
+
import{a}from"./6GJIDRJ7.js";import c from"./NQVXRWJL.js";import b from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import"./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"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([])=>{return a},b,c)
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
+
import{a as m,b as S}from"./W4YXXJAS.js";import{b as c}from"./77CU4WA2.js";import{a as g}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import{b as u}from"./ABSRNM72.js";import{H as d,L as l,h as p,i as r,r as a}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";var y=p`/** @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
|
+
.toolbar-sizing {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
padding-right: 0px;
|
|
22
|
+
padding-left: 0px;
|
|
23
|
+
margin-left: auto;
|
|
24
|
+
margin-right: auto;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
height: 65px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.flex-row {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.flex-grow-1 {
|
|
35
|
+
flex-grow: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
calcite-input-text {
|
|
39
|
+
--calcite-color-focus: transparent;
|
|
40
|
+
--calcite-input-text-border-color: transparent;
|
|
41
|
+
--calcite-color-border-input: transparent;
|
|
42
|
+
--calcite-color-brand: transparent;
|
|
43
|
+
display: grid;
|
|
44
|
+
block-size: 65px;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
border-bottom: 2px solid transparent;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
calcite-dropdown {
|
|
50
|
+
--calcite-color-focus: transparent;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (prefers-color-scheme: dark) {
|
|
54
|
+
calcite-input-text:focus {
|
|
55
|
+
border-bottom: 2px solid #009AF2;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (prefers-color-scheme: light) {
|
|
60
|
+
calcite-input-text:focus {
|
|
61
|
+
border-bottom: 2px solid #007AC2;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.focus-color {
|
|
66
|
+
--calcite-color-focus: transparent;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.padding-end-1-2 {
|
|
70
|
+
padding-inline-end: 0.5rem;
|
|
71
|
+
}`,h=class extends d{constructor(){super(),this.defaultSortType="relevance",this.isOrgSolutions=!1,this._activeSearchSortSettings=[{scope:"all-solutions",settings:{enabled:!0,isOrgSolutions:!1,searchTerm:"",sortType:"relevance"}},{scope:"deployments",settings:{enabled:!0,isOrgSolutions:!1,searchTerm:"",sortType:"created"}}],this._isMobile=!1,this._canViewOrg=!1,this._translations=g({name:"solutions-searchsort-toolbar",blocking:!0}),this._configContextConsumer=c({context:S,subscribe:!0,callback:async t=>{t&&t.authentication&&(this._canViewOrg=t.authentication.CanViewOrg)}}),this._isMobileContextConsumer=c({context:m,subscribe:!0,callback:t=>this._isMobile=t}),this.searchChanged=a(),this.sortTypeChanged=a(),this.toggleFilter=a(),this.updateUrlParams=a(),this.listenOn(window,"detailsCardSelected",()=>{this.scope=void 0}),this.listenOn(window,"deployedCardSelected",()=>{this.scope=void 0}),this.listenOn(window,"searchTermSet",t=>{let e=t.detail;this.scope=e.scope,this.changeSearchFilter(e.searchTerm,!1)}),this.listenOn(window,"sortTypeSet",t=>{let e=t.detail;this.scope=e.scope,this.sortChanged(e.sortType,!1)}),this.listenOn(window,"tabChanged",t=>{this.scope=t.detail;let e=this._getCurrentScopeSetting();(this.scope==="all-solutions"||this.scope==="deployments")&&(this.changeSearchFilter(e?.searchTerm||"",!1),this.sortChanged(e?.sortType||this.defaultSortType,!1),this._updateUrlParams(t))})}static{this.properties={defaultSortType:[0,{type:String,attribute:"default-sort-type"},{}],isOrgSolutions:[5,{},{type:Boolean}],scope:1,_activeSearchSortSettings:[16,{},{state:!0}],_isMobile:[16,{},{state:!0}],_canViewOrg:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=y}changeOwnerFilter(t){this.isOrgSolutions=!t,this._activeSearchSortSettings=this._activeSearchSortSettings.map(s=>s.scope===this.scope?{...s,settings:{...s.settings,isOrgSolutions:this.isOrgSolutions}}:s);let e={displayValue:this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions,type:"owner",value:this.isOrgSolutions?"My organization's solutions":"My solutions"};this.searchChanged.emit({option:e,scope:this.scope})}changeSearchFilter(t,e,s){let o=this._activeSearchSortSettings.map(i=>i.scope===this.scope?{...i,settings:{...i.settings,searchTerm:t}}:i),n=JSON.stringify(this._activeSearchSortSettings)!==JSON.stringify(o);this._activeSearchSortSettings=o,e&&n&&this.searchChanged.emit({option:{searchTerm:t},scope:this.scope}),s&&(this._searchTelemetryTimer&&window.clearTimeout(this._searchTelemetryTimer),this._searchTelemetryTimer=window.setTimeout(()=>{this.searchChanged.emit({option:{searchTerm:t},scope:this.scope,logSearchTelemetry:!0})},1e3))}sortChanged(t,e){this._activeSearchSortSettings=this._activeSearchSortSettings.map(s=>s.scope===this.scope?{...s,settings:{...s.settings,sortType:t}}:s),e&&this.sortTypeChanged.emit({sortType:t,scope:this.scope})}async load(){this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}render(){let t=this.scope==="all-solutions"||this.scope==="deployments"&&this._configContextConsumer.value?.authentication?.IsSignedIn,e=t?this._getCurrentScopeSetting():void 0,s=this.scope==="deployments"?this._translations.search.deployments:this._translations.search.solutions,o=this._isMobile?"padding-end-1-2":"";return t?r`<div class="flex-row toolbar-sizing"><calcite-input-text class="flex-grow-1" clearable icon=search @calciteInputTextChange=${n=>{let i=n.target;this.changeSearchFilter(i.value,!0,!1)}} @keyup=${n=>{let i=n.target;n.key==="Enter"?this.changeSearchFilter(i.value,!0,!1):(i.value.length>=3||i.value.length===0)&&this.changeSearchFilter(i.value,i.value.length>=3||i.value.length===0,!0)}} .placeholder=${s} scale=l slot=content-top .value=${e?.searchTerm}></calcite-input-text>${this._isMobile&&this.scope==="all-solutions"?r`<calcite-button appearance=transparent class=${`focus-color ${o}`} icon-start=filter kind=neutral .label=${this._translations.showFilters} @click=${this._toggleFilter}></calcite-button>`:""}${this.scope==="deployments"&&this._canViewOrg&&this._renderOwnerBlock()||""}${this._renderDropdown()}</div>`:""}_renderOwnerBlock(){return r`<calcite-dropdown width=m overlay-positioning=fixed><calcite-button appearance=transparent class="header-button-padding" .iconStart=${this.isOrgSolutions?"organization":"user"} kind=neutral slot=trigger>${this._isMobile?"":this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions}</calcite-button><calcite-dropdown-group group-title=${this._translations.filterBy??l}><calcite-dropdown-item icon-start=user @click=${()=>{this.changeOwnerFilter(!0)}} .selected=${!this.isOrgSolutions}>${this._translations.mySolutions}</calcite-dropdown-item><calcite-dropdown-item icon-start=organization @click=${()=>{this.changeOwnerFilter(!1)}} .selected=${this.isOrgSolutions}>${this._translations.myOrgSolutions}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_renderDropdown(){let t=[];t=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"}],this.scope==="deployments"?t.push({displayValue:this._translations.sortByDateDeployed,sortType:"created"}):(t.push({displayValue:this._translations.sortByNew,sortType:"new"}),t.push({displayValue:this._translations.sortByUpdated,sortType:"updated"}),this._configContextConsumer.value?.authentication?.IsSignedIn&&t.push({displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}));let e=this._getCurrentScopeSetting();return r`<calcite-dropdown width=m><calcite-button appearance=transparent class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this._isMobile?"":e?.sortType?this._getString(e.sortType):""}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??l}>${t.map(s=>this._getDropdownItem(s.displayValue,s.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(t,e){let s=this._getCurrentScopeSetting();return s?.sortType&&s.sortType!==e?r`<calcite-dropdown-item @click=${()=>this.sortChanged(e,!0)}>${t}</calcite-dropdown-item>`:r`<calcite-dropdown-item @click=${()=>this.sortChanged(e,!0)} selected>${t}</calcite-dropdown-item>`}_getString(t){let e="";switch(t){case"new":e=this._translations.sortByNew;break;case"relevance":e=this._translations.sortByRelevance;break;case"suggested":e=this._translations.sortBySuggestedForYou;break;case"title":e=this._translations.sortByTitle;break;case"updated":e=this._translations.sortByUpdated;break;case"created":e=this._translations.sortByDateDeployed;break}return e}_getCurrentScopeSetting(){return this._activeSearchSortSettings?.filter(e=>e.scope===this.scope)?.[0]?.settings}_toggleFilter(){this.toggleFilter.emit()}_updateUrlParams(t){let e=t.detail,s;this._activeSearchSortSettings.some(o=>o.scope===e?(s=o,!0):!1),s&&this.updateUrlParams.emit(s)}};u("solutions-searchsort-toolbar",h);export{h as SolutionsSearchSortToolbar};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./C723WJAL.js";import c from"./VYQEF3JJ.js";import"./5XHAT3I6.js";import"./DC5KIXAN.js";import"./T4PIUXJ7.js";import a from"./C2LXNVZ5.js";import{a as m}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 w}from"./ABSRNM72.js";import{H as g,J as i,K as b,h as u,i as s,l as _,r as l,u as f}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([E,o,,,y])=>{var F=u`@layer{
|
|
3
3
|
/** @license
|
|
4
4
|
* Copyright 2025 Esri
|
|
5
5
|
*
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
+
import j from"./CNOYI64P.js";import i from"./ZCWWLT2A.js";import"./RJRWRCQS.js";import e from"./4ZRD2V6P.js";import c from"./R24ASQQY.js";import{b as y}from"./W4YXXJAS.js";import{b as D}from"./77CU4WA2.js";import{Zb as b}from"./T4PIUXJ7.js";import{a as I}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 _}from"./ABSRNM72.js";import{F as f,G as h,H as g,J as r,h as m,i as a,l as p,r as d}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{n:w},,{a:C,b:$},{a:S}])=>{var T=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
|
+
.panel-bg-color {
|
|
19
|
+
--calcite-panel-header-background-color: var(--calcite-color-foreground-1);
|
|
20
|
+
--calcite-panel-background-color: var(--calcite-color-foreground-1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.display-none {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
calcite-loader {
|
|
28
|
+
--calcite-loader-spacing: var(--calcite-spacing-md);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.loader-text {
|
|
32
|
+
margin-top: var(--calcite-spacing-md);
|
|
33
|
+
margin-bottom: var(--calcite-spacing-xl);
|
|
34
|
+
text-align: center;
|
|
35
|
+
font-size: var(--calcite-font-size-relative-base);
|
|
36
|
+
color: var(--calcite-color-text-1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.padding-around {
|
|
40
|
+
padding: 12px 2rem 2rem;
|
|
41
|
+
}
|
|
42
|
+
`,u=class extends g{constructor(){super(),this.open=!1,this.source="Card Dropdown",this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=I({name:"solution-delete-dialog",blocking:!0}),this._accordion=f(),this._configContextConsumer=D({context:y,subscribe:!0}),this.solutionDeleteDialogOpen=d(),this.solutionDeleted=d(),this.solutionDeleteDialogBeforeClose=d(),this.listenOn(window,"beforeunload",e=>{this._isDeleteInProgress&&(e.preventDefault(),e.returnValue=!0)})}static{this.properties={card:[0,{},{attribute:!1}],open:[5,{},{type:Boolean}],source:1,_deletePercentage:[16,{},{state:!0}],_fetchingTemplates:[16,{},{state:!0}],_isDeleteInProgress:[16,{},{state:!0}],_nonSolutionDependencyItems:[16,{},{state:!0}],_showDeleteError:[16,{},{state:!0}],_showUndeletableItems:[16,{},{state:!0}],_templateInfos:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=T}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._telemetry?.logEvent({category:w.DEPLOYMENTS,action:"Delete Solution",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],s={progressCallback:t=>{this._deletePercentage=Math.round(t)},solutionOwner:this.card.owner};b(this.card.id,this._configContextConsumer.value.userSession,s).then(t=>{let c=t[1],i;if(c?i=c.items.map(o=>({itemName:o.title,itemType:o.type,owner:o.owner,modified:o.modified})):i=e,i.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._isDeleteInProgress=!1,this.open=!1;else if(i.some(l=>l.itemType==="Solution"))this.card?$(this.card,this._configContextConsumer.value.userSession).then(l=>{this._templateInfos=l,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let l=[];l=c.items.map(n=>({id:n.id,title:n.title,type:n.type,owner:n.owner,modified:n.modified,typeKeywords:[],snippet:"",dependencies:[],url:S(n.id,this._configContextConsumer.value.authentication)})),this._templateInfos=l,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(e){if(e.has("open")){let s=e.get("open");this.open&&!s&&(this._fetchingTemplates=!0,C(this._configContextConsumer.value.userSession,this.card).then(t=>{this._templateInfos=t.templateInfos,this._nonSolutionDependencyItems=t._nonSolutionDependencyItems,this._fetchingTemplates=!1}))}}render(){let e=this._fetchingTemplates?"":"display-none",s=this._fetchingTemplates?"display-none":"",t=[...new Set(this._nonSolutionDependencyItems.map(o=>o.controlItemId))],c=this._templateInfos.length-this._getDependencyCount(),i=this._translations.deletionCount.replace("{{deleteableCount}}",c.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return a`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??p} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?a`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text">${this._translations.deleteInProgress}</div>`:this._showUndeletableItems?a`<calcite-label class=${r(s)} layout=inline>${this._translations.failedToDeleteItems}</calcite-label><solution-item-accordion class=${r(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:a`<div class="padding-around"><calcite-label class=${r(s)} layout=inline scale=l>${this._translations.deletionNote}<calcite-chip .label=${i} scale=m icon=information>${i}</calcite-chip></calcite-label><calcite-loader class=${r(e)} label></calcite-loader><solution-item-accordion class=${r(s)} .itemRelationshipDependencies=${t} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&a`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}_getDependencyCount(){let e=this._nonSolutionDependencyItems.map(t=>t.controlItemId);return[...new Set(e)].length}};_("solution-delete-dialog",u);return u},c,e,i,j)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./R24ASQQY.js";import{ka as u,nb as l,nc as f}from"./T4PIUXJ7.js";import{u as c}from"./3GWWHA4S.js";export default $arcgis.t(([,{m:m}])=>{function D(e){let t="",r="?";return e.forEach(n=>{n.k&&n.v&&(t+=r+n.k+"="+n.v,r="&")}),t}function I(e){return e?f(e,{}).then(t=>Promise.resolve(!!t)):Promise.resolve(!1)}async function x(e,t){let r=t,n=await r.getUsername(),d={q:new c().match(e).in("title").and().match(n).in("owner"),filter:"type:Solution",authentication:r},h=(await l(d)).results.map(i=>i.title),{folders:p}=await u(r),w=p.map(i=>i.title),a=[...h,...w].map(i=>i.trim().toLowerCase()),o=e.toLowerCase(),y=a.filter(i=>i===o),v=a.filter(i=>i.startsWith(o));return{conflictingNames:y,similiarNames:v}}async function C(e,t){return E(e)?{status:!1,type:"empty"}:S(e)?{status:!1,type:"exceed length"}:T(e,"folder")?{status:!1,type:"special character"}:(await x(e.trim(),t)).conflictingNames.length>0?{status:!1,type:"not unique"}:{status:!0,type:""}}function E(e){return e.length<=0}function S(e){return e.length>m}function T(e,t){return(t==="item"?/[><~`$^+=|]/u:/[/<>]/u).test(e)}function U(e){if(e){let t=e.trim();return t?"<div>"+t+"</div>":""}else return""}function q(e){let t="",r="?";return e.forEach(n=>{n.k&&n.v&&(t+=r+n.k+"="+n.v,r="&")}),t}function b(e,t,r,n){let s="";return t?s=n+"/sharing/rest/content/items/"+e+"/info/"+t+q([{k:"w",v:"400"}]):s=r,s}function A(e){let t=e?e.replace("https://","").replace("www.",""):"";return t.endsWith("devext.arcgis.com")||t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?e??"https://www.arcgis.com":"https://www.arcgis.com"}function M(e,t,r){return t.some(n=>n.wkid===e?(r=n.defaultExtent,!0):!1),r}function B(e,t){return g(t||e)}function F(e,t="en"){return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function O(e,t){let r="";return e.some(n=>n.startsWith(t)?(r=n.substring(t.length),!0):!1),r}function g(e){let t=e.replace("www.","");return t.endsWith("devext.arcgis.com")?"dev":t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?"qa":t==="arcgis.com"||t.endsWith(".arcgis.com")?"prod":"dev"}function _(e,t){let r=e?.reduce((n,s)=>(n.indexOf(s.id)<0&&n.push(s.id),n),[])||[];return t?r.sort((n,s)=>t.indexOf(n)-t.indexOf(s)):r}function G(e){return e.charAt(0).toUpperCase()+e.slice(1)}function V(e){return{relevance:"Relevance",title:"Title",new:"New",created:"Date deployed",updated:"Updated",suggested:"Suggested for you"}[e]||e}function j(e){if(!e)return"Unknown error";if(e.message)return e.message;try{let t=JSON.stringify(e);return t&&t!=="{}"?t:e.toString()}catch{return e.toString()}}function z(e){return e?parseFloat(((Date.now()-e)/1e3).toFixed(2)):0}return{a:D,b:I,c:x,d:C,e:T,f:U,g:q,h:b,i:A,j:M,k:B,l:F,m:O,n:_,o:G,p:V,q:j,r:z}},"intl",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./UROTPS3S.js";import b from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import"./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"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,{c:o}])=>{return o},a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import f from"./
|
|
2
|
+
import f from"./WARPRATU.js";import"./7SGXC6B2.js";import e from"./O3BNBDWV.js";import d from"./UROTPS3S.js";import c from"./CNOYI64P.js";import"./I5GF7UR6.js";import b from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import"./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"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,,,,a])=>{return a},a,b,c,d,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./NQVXRWJL.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import"./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"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,a])=>{return a},a,b)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{a as S}from"./
|
|
2
|
+
import{a as S}from"./UHIFNZFJ.js";import"./YMMGYOOO.js";import e from"./N6IQW2WT.js";import c from"./C2LXNVZ5.js";import{a as v}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import{b as I}from"./ABSRNM72.js";import{F as d,G as n,H as F,J as u,h as w,i as a,l as p,r as b,u as L}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([E,P,k,O,{b:$},{a:C,c:f,d:c,e:m,f:_,g:x}])=>{var B=w`@layer{
|
|
3
3
|
/** @license
|
|
4
4
|
* Copyright 2025 Esri
|
|
5
5
|
*
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
+
import e from"./P57YDXXR.js";import d from"./GTQBWHKB.js";import c from"./4ZRD2V6P.js";import b from"./R24ASQQY.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 g}from"./ABSRNM72.js";import{G as u,H as _,L as f,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 D=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
|
+
calcite-panel {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
--calcite-panel-background-color: var(--calcite-color-foreground-2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.card-group {
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
padding-inline-start: var(--calcite-spacing-base);
|
|
27
|
+
padding-top: var(--calcite-spacing-base);
|
|
28
|
+
padding-bottom: var(--calcite-spacing-md);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.text-center {
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.leader-1 {
|
|
36
|
+
margin-top: var(--calcite-spacing-xxl);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.trailer-1 {
|
|
40
|
+
margin-bottom: var(--calcite-spacing-xxl);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.warning-text {
|
|
44
|
+
max-width: 35em;
|
|
45
|
+
margin-left: auto;
|
|
46
|
+
margin-right: auto;
|
|
47
|
+
font-size: var(--calcite-font-size-md);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.no-solutions {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
width: 100%;
|
|
56
|
+
min-height: calc(100vh - 190px);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.display-flex {
|
|
60
|
+
display: flex;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.display-none {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.flex-direction-column {
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
h1 {
|
|
72
|
+
font-weight: unset;
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
solution-deployed-card {
|
|
78
|
+
width: calc(20% - 0.75rem);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (max-width: 1280px) {
|
|
82
|
+
solution-deployed-card {
|
|
83
|
+
width: calc(25% - 0.75rem);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (max-width: 1010px) {
|
|
88
|
+
solution-deployed-card {
|
|
89
|
+
width: calc(33.333% - 0.75rem);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (max-width: 740px) {
|
|
94
|
+
solution-deployed-card {
|
|
95
|
+
width: calc(50% - 0.75rem);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (max-width: 440px) {
|
|
100
|
+
solution-deployed-card {
|
|
101
|
+
width: calc(100% - 0.75rem);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.margin-top-half {
|
|
106
|
+
margin-top: 0.5rem;
|
|
107
|
+
}`,v=5,h=class extends _{constructor(){super(),this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._deletedSolutionName="",this._translations=y({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=d,this._allCards=[],this._baseAgoTerms=d,this._categories=[],this._configContextConsumer=w({context:C,subscribe:!0,callback:async e=>{e&&(this._initCardsFetchers(),await this._getDeployedSolutions())}}),this._delay=!1,this._owner="My solutions",this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=o(),this.searchTermSet=o(),this.sortTypeSet=o(),this.listenOn(window,"solutionDeleted",e=>{this._modifiedCheckTry=v,this.reload(e.detail.showAlert,e.detail.refreshSolutionsTimeout,e.detail.solutionTitle)}),this.listenOn(window,"solutionConfigureDialogClose",e=>{e.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",e=>{this._modifiedCheckTry=v,this._refreshAfterDeploy(e.detail)}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="deployments"&&(this.sortType=e.detail.sortType,this._telemetry?.logEvent({category:r.DEPLOYMENTS,action:"Sort",dimensions:[T(e.detail.sortType)]}),this.searchSolutions(e.detail))}),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="deployments"&&(e.detail.logSearchTelemetry&&e.detail.option?.searchTerm?this._telemetry?.logEvent({category:r.DEPLOYMENTS,action:"Search",dimensions:[e.detail.option.searchTerm]}):this.searchSolutions(e.detail.option))})}static{this.properties={sortType:1,_cards:[16,{},{state:!0}],_cardsFetching:[16,{},{state:!0}],_modifiedCheckTry:[16,{},{state:!0}],_newId:[16,{},{state:!0}],_refs:[16,{},{state:!0}],_showDeleteCompleteAlert:[16,{},{state:!0}],_deletedSolutionName:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=D}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async reload(e=!0,t=!0,l){this._initCardsFetchers(),e&&(this._showDeleteCompleteAlert=!0,this._deletedSolutionName=l||this._translations.solution),t?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(n){console.error("Error getting deployed solutions:",n)}})()},500):await this._getDeployedSolutions()}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):e.type==="owner"&&(this._owner=e.value,this._telemetry?.logEvent({category:r.DEPLOYMENTS,action:"Filter",dimensions:[e.value==="My solutions"?"My content":"Organization"]})):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),await this._getDeployedSolutions()}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"deployments"})),"sortType"in e&&(this._sortCards(e),this.sortTypeSet.emit({sortType:e.sortType,scope:"deployments"})))}render(){return this._cardsFetching?a`<calcite-loader .label=${this._translations.fetchingDeployedSolutions}></calcite-loader>`:this._cards.length?a`<calcite-panel><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group><calcite-alert auto-close auto-close-duration=fast icon=check-circle kind=success .label=${this._translations.deleteComplete.replace("{{solutionName}}",this._deletedSolutionName)} .open=${this._showDeleteCompleteAlert} @calciteAlertClose=${()=>{this._showDeleteCompleteAlert=!1}}><div slot=title>${this._translations.deleteComplete.replace("{{solutionName}}",this._deletedSolutionName)}</div></calcite-alert></calcite-panel>`:a`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${this._translations.noSolutionsInstruction}</div></div></div>`}_initCardsFetchers(){if(this._configContextConsumer.value){let e=this._configContextConsumer.value;this._cardsFetcher=new c(e.locale,e.orgUrl,e.portalURL),this._cardsFetcherDeployed=new c(e.locale,e.orgUrl,e.portalURL)}}_renderCards(){return this._refs={},this._cards.map(e=>a`<solution-deployed-card .card=${e} .deployedDate=${e.created} .description=${e.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${e.title} id=${e.id??f} .itemId=${e.id} .owner=${this._owner==="My solutions"?"":e.owner} .thumbnail=${e.thumbnailUrl} ${u(this._handleRefs)}></solution-deployed-card>`)}_handleRefs(e){e&&(this._refs[e.id]=e)}async _getDeployedSolutions(){let e=this._configContextConsumer.value.authentication;if(e.IsSignedIn){this._cardsFetching=!0;let t=await x(e,this._configContextConsumer.value.userSession,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._owner);this._modifiedCheckTry>0&&(this._cards.length===t?.cards.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),this._cards=t?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}}_getSolutionsBriefcase(){return a`<div><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${p`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):(t==="updated"||t==="created")&&(this._sortOrder="desc",this._sortField=t),this.sortType=t}_clearFilterCategories(){this._categories=[]}async _refreshAfterDeploy(e){if(e){this._newId=e;let t=10,l=500;for(let s=0;s<t&&(await this._getDeployedSolutions(),!this._cards.some(i=>i.id===e));s++)s<t-1&&await new Promise(i=>setTimeout(i,l));await this.updateComplete;let n=10,S=100;for(let s=0;s<n;s++){if(this._refs[e]){let i=this._cards.find(E=>E.id===e);window.dispatchEvent(new CustomEvent("deployedCardReady",{detail:{card:i,cardRef:this._refs[e]}})),this._newId="";return}await new Promise(i=>setTimeout(i,S)),await this.updateComplete}console.warn(`Failed to find ref for newly deployed solution after all retries: ${e}`),window.dispatchEvent(new CustomEvent("deploymentCompletedWithoutNav",{detail:{solutionId:e}})),this._newId=""}}};g("solutions-deployed-panel",h);return h},b,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./
|
|
2
|
+
import{a}from"./RJRWRCQS.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export{a as SolutionItemAccordion};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import h from"./
|
|
2
|
+
import h from"./VYQEF3JJ.js";import{a as H}from"./UHIFNZFJ.js";import e from"./4ZRD2V6P.js";import d from"./R24ASQQY.js";import c from"./N6IQW2WT.js";import a from"./C2LXNVZ5.js";import{a as S}from"./6S75SIVV.js";import{b as x}from"./ABSRNM72.js";import{F as b,G as p,H as E,J as g,h as T,i as o,l as f,r as _,u as v}from"./5CQPQ7AE.js";export default $arcgis.t(([$,c,D,w,{c:F},{c:C,d:A,j:m},{f:y},{n:O},{b:L}])=>{var M=T`@layer{
|
|
3
3
|
/** @license
|
|
4
4
|
* Copyright 2025 Esri
|
|
5
5
|
*
|