@esri/solutions-components 5.1.0-next.150 → 5.1.0-next.152
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/{KH5WPLZK.js → 2BM4W44V.js} +1 -1
- package/dist/cdn/{6K3C5JX2.js → 2HAYT46E.js} +1 -1
- package/dist/cdn/3RKQYXNE.js +2 -0
- package/dist/cdn/{7WYPODAB.js → 3S5PVZVU.js} +1 -1
- package/dist/cdn/3TIQRBWC.js +2 -0
- package/dist/cdn/4QOD7X43.js +2 -0
- package/dist/cdn/{YWALGZAG.js → 63ZMLOEP.js} +1 -1
- package/dist/cdn/{GRQLB7ZG.js → 7GVN2XEM.js} +1 -1
- package/dist/cdn/BAFYN4RD.js +2 -0
- package/dist/cdn/C4KWJ3PL.js +2 -0
- package/dist/cdn/{ZNH7LRND.js → EKUENEEW.js} +1 -1
- package/dist/cdn/{TKOGOWYQ.js → EVMBOT65.js} +27 -27
- package/dist/cdn/{W7I22AW3.js → FNTXI57U.js} +1 -1
- package/dist/cdn/{4SBOBTOR.js → FWRT4BPD.js} +1 -1
- package/dist/cdn/{Q2DJUFVO.js → FZKGL66L.js} +1 -1
- package/dist/cdn/{7Q5BT35O.js → G6EZOEPB.js} +1 -1
- package/dist/cdn/{LTLR4VF3.js → GMSG7ZRV.js} +1 -1
- package/dist/cdn/{KETYOYXQ.js → IC6KIGR4.js} +1 -1
- package/dist/cdn/{RMO244NW.js → KV76ATT5.js} +1 -1
- package/dist/cdn/LGZDNUGT.js +2 -0
- package/dist/cdn/{PP7EF7UU.js → LQ4BLDUU.js} +1 -1
- package/dist/cdn/{YTU2BYBP.js → M73VTGBI.js} +1 -1
- package/dist/cdn/{Q35DDH7J.js → MDXI36JJ.js} +7 -7
- package/dist/cdn/{BH42V5CR.js → N7VSZ2CS.js} +1 -1
- package/dist/cdn/{G3C6IL5Y.js → OAEWZFWV.js} +1 -1
- package/dist/cdn/{6VCG2ITQ.js → ON244IGD.js} +1 -1
- package/dist/cdn/{6AUKNSKW.js → QD22B6N2.js} +1 -1
- package/dist/cdn/{4FRYNYQ6.js → QGDR24DC.js} +1 -1
- package/dist/cdn/{WXL7GVUU.js → RBYAQRK6.js} +1 -1
- package/dist/cdn/{42GXADY4.js → RUVOSMTB.js} +1 -1
- package/dist/cdn/{Y37QLEAM.js → S4VDUHA7.js} +1 -1
- package/dist/cdn/TLM7N22U.js +2 -0
- package/dist/cdn/{3A2YSBVB.js → TOIBA2KF.js} +1 -1
- package/dist/cdn/{DQQTSOMQ.js → UIGRRD7P.js} +1 -1
- package/dist/cdn/{FWLPMS4Q.js → VY5TD3VS.js} +1 -1
- package/dist/cdn/X65HFYH4.js +2 -0
- package/dist/cdn/{4DAGSZIC.js → XK36P3C4.js} +1 -1
- package/dist/cdn/{757HAEJS.js → ZCLYSOQM.js} +1 -1
- package/dist/cdn/{QDKHYQJB.js → ZOF7AUSS.js} +1 -1
- package/dist/cdn/{YFJZN5K5.js → ZVXEOW2X.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/interfaces.js +9 -9
- package/dist/chunks/solution-builder-assistant.js +5 -3
- package/dist/components/arcgis-solutions-assistant/customElement.js +195 -170
- package/dist/components/solution-builder-assistant/index.js +2 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +19 -19
- package/dist/components/solution-details-panel/customElement.js +98 -72
- package/dist/components/solutions-deploy-app/customElement.js +22 -18
- package/dist/components/solutions-deploy-app/index.js +2 -0
- package/dist/components/solutions-resources-section/customElement.js +4 -4
- package/dist/components/solutions-resources-shell/customElement.d.ts +4 -3
- package/dist/components/solutions-resources-shell/customElement.js +95 -53
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/4RJURJQ5.js +0 -2
- package/dist/cdn/DO7NLLUV.js +0 -2
- package/dist/cdn/JMBANG5V.js +0 -2
- package/dist/cdn/OANAQ6HY.js +0 -2
- package/dist/cdn/RY6KZ77P.js +0 -2
- package/dist/cdn/UCQJWFUW.js +0 -2
- package/dist/cdn/XEF5G3BC.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./LGZDNUGT.js";import b from"./UBEU6ULP.js";import{a as y,b as _}from"./2B4SGB3I.js";import{b as h}from"./I2NTSKBD.js";import"./AE5HNAOV.js";import{a as S}from"./MGEDATQ7.js";import"./RMEDO4JC.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as m}from"./2I5LGZNX.js";import{G as u,K as c,h as g,i as a,q as n}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([{s:l},{s:p}])=>{var w=g`.toolbar-sizing{display:flex;align-items:center;padding-right:0;padding-left:0;margin-left:auto;margin-right:auto;box-sizing:border-box;height:65px}.flex-row{display:flex;flex-direction:row}.flex-grow-1{flex-grow:1}calcite-input-text{--calcite-color-focus: transparent;--calcite-input-text-border-color: transparent;--calcite-color-border-input: transparent;--calcite-color-brand: transparent;display:grid;block-size:65px;box-sizing:border-box;border-bottom:2px solid transparent}@media(prefers-color-scheme:dark){calcite-input-text:focus{border-bottom:2px solid #009AF2}}@media(prefers-color-scheme:light){calcite-input-text:focus{border-bottom:2px solid #007AC2}}.padding-end-1-2{padding-inline-end:.5rem}`,d=class extends u{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=S({name:"solutions-searchsort-toolbar",blocking:!0}),this._configContextConsumer=h({context:_,subscribe:!0,callback:async t=>{t&&t.authentication&&(this._canViewOrg=t.authentication.CanViewOrg)}}),this._isMobileContextConsumer=h({context:y,subscribe:!0,callback:t=>this._isMobile=t}),this.searchChanged=n(),this.sortTypeChanged=n(),this.toggleFilter=n(),this.updateUrlParams=n(),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,scope:1,_activeSearchSortSettings:16,_isMobile:16,_canViewOrg:16,_translations:16}}static{this.styles=w}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?p.ORG:p.MINE,type:"owner",value:this.isOrgSolutions?"My organization's solutions":"My solutions"};this.searchChanged.emit({option:e,scope:this.scope})}changeSearchFilter(t,e,s){let i=this._activeSearchSortSettings.map(o=>o.scope===this.scope?{...o,settings:{...o.settings,searchTerm:t}}:o),r=JSON.stringify(this._activeSearchSortSettings)!==JSON.stringify(i);this._activeSearchSortSettings=i,e&&r&&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,i=this._isMobile?"padding-end-1-2":"";return t?a`<div class="flex-row toolbar-sizing"><calcite-input-text class="flex-grow-1" clearable icon=search .label=${s} @calciteInputTextChange=${r=>{let o=r.target;this.changeSearchFilter(o.value,!0,!1)}} @keyup=${r=>{let o=r.target;["Tab","Shift","Alt","Control","Meta","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Escape"].includes(r.key)||(r.key==="Enter"?this.changeSearchFilter(o.value,!0,!1):(o.value.length>=3||o.value.length===0)&&this.changeSearchFilter(o.value,o.value.length>=3||o.value.length===0,!0))}} .placeholder=${s} scale=l slot=content-top .value=${e?.searchTerm}></calcite-input-text>${this._isMobile&&this.scope==="all-solutions"?a`<calcite-button appearance=transparent class=${`focus-color ${i}`} 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 a`<calcite-dropdown width=m overlay-positioning=fixed><calcite-button appearance=transparent class="header-button-padding" .iconStart=${this.isOrgSolutions?"organization":"user"} kind=neutral .label=${this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions} slot=trigger>${this._isMobile?"":this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions}</calcite-button><calcite-dropdown-group group-title=${this._translations.filterBy??c}><calcite-dropdown-item icon-start=user @click=${t=>{t.detail!==0&&this.changeOwnerFilter(!0)}} @keydown=${t=>l(t,()=>this.changeOwnerFilter(!0))} .selected=${!this.isOrgSolutions}>${this._translations.mySolutions}</calcite-dropdown-item><calcite-dropdown-item icon-start=organization @click=${t=>{t.detail!==0&&this.changeOwnerFilter(!1)}} @keydown=${t=>l(t,()=>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 a`<calcite-dropdown width=m><calcite-button appearance=transparent class="header-button-padding" icon-start=sort-descending kind=neutral .label=${e?.sortType?this._getString(e.sortType):this._translations.chooseSortType} slot=trigger>${this._isMobile?"":e?.sortType?this._getString(e.sortType):""}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??c}>${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?a`<calcite-dropdown-item @click=${i=>{i.detail!==0&&this.sortChanged(e,!0)}} @keydown=${i=>l(i,()=>this.sortChanged(e,!0))}>${t}</calcite-dropdown-item>`:a`<calcite-dropdown-item @click=${i=>{i.detail!==0&&this.sortChanged(e,!0)}} @keydown=${i=>l(i,()=>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(t=>t.scope===this.scope)?.[0]?.settings}_toggleFilter(){this.toggleFilter.emit()}_updateUrlParams(t){let e=t.detail,s;this._activeSearchSortSettings.some(i=>i.scope===e?(s=i,!0):!1),s&&this.updateUrlParams.emit(s)}};m("solutions-searchsort-toolbar",d);return d},b,d)
|