@esri/solutions-components 1.2.0-next.184 → 1.2.0-next.186
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/{T4BABRET.js → 2Z4TOYVC.js} +1 -1
- package/dist/cdn/{UJRIZPZV.js → 3A7PC2RZ.js} +1 -1
- package/dist/cdn/{AHSUDDTV.js → 3HWKU2CT.js} +1 -1
- package/dist/cdn/{3OBXQOE4.js → 4CPDEFIT.js} +1 -1
- package/dist/cdn/{GXGL7E5C.js → 6TJ6HIGG.js} +1 -1
- package/dist/cdn/{2J5B4RQM.js → 7M3GJY6J.js} +1 -1
- package/dist/cdn/AS6FGEVT.js +2 -0
- package/dist/cdn/BEC6A65P.js +2 -0
- package/dist/cdn/BHSNNVIL.js +2 -0
- package/dist/cdn/{FYIT6WMR.js → BT66JT22.js} +1 -1
- package/dist/cdn/{WSU4ELZX.js → C7DWPTJL.js} +1 -1
- package/dist/cdn/{HUWZTPMY.js → CN4TSLTZ.js} +1 -1
- package/dist/cdn/{IZAAOTKA.js → DOFNBU4Q.js} +1 -1
- package/dist/cdn/{D4YDAIIJ.js → EERFOEDZ.js} +1 -1
- package/dist/cdn/{RSJOED5F.js → FP5UBHCW.js} +1 -1
- package/dist/cdn/{KNOAIRGH.js → FWFL23CM.js} +1 -1
- package/dist/cdn/FY4GDFB5.js +2 -0
- package/dist/cdn/{YUXRMEUI.js → HEW273HR.js} +1 -1
- package/dist/cdn/{G7PIGNB5.js → I3ERNQTX.js} +1 -1
- package/dist/cdn/{TQ6UUSC6.js → LN36O3EB.js} +1 -1
- package/dist/cdn/MVNKOMSZ.js +2 -0
- package/dist/cdn/OQVULF2Q.js +2 -0
- package/dist/cdn/{UPCW6ZJC.js → OUH4HVG4.js} +28 -24
- package/dist/cdn/{YJCIONLF.js → PFQDRDKQ.js} +1 -1
- package/dist/cdn/{FQDOIGWN.js → PJ2IZ77K.js} +1 -1
- package/dist/cdn/{DPOINX2J.js → QPEQNTE2.js} +1 -1
- package/dist/cdn/{6KZ7BPYY.js → R6QJKOAM.js} +1 -1
- package/dist/cdn/RG6FVRCW.js +2 -0
- package/dist/cdn/RYK5PICU.js +2 -0
- package/dist/cdn/{G6YTMDRE.js → U3MPHGGT.js} +1 -1
- package/dist/cdn/{VCNW2JFC.js → V25NUVVQ.js} +1 -1
- package/dist/cdn/{VWSBR3EG.js → VHA56S7W.js} +1 -1
- package/dist/cdn/{JZEB6HZ4.js → W4DGTEPL.js} +1 -1
- package/dist/cdn/{YN3QQTPJ.js → WI7VFPQ3.js} +1 -1
- package/dist/cdn/Y2S3AB43.js +2 -0
- package/dist/cdn/{YOUPERBP.js → YBZ4RYD3.js} +1 -1
- package/dist/cdn/{SYHSZMOM.js → ZVLL5DZC.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +66 -58
- package/dist/chunks/cardsHelpers.js +2 -2
- package/dist/chunks/interfaces.js +295 -293
- package/dist/chunks/solutions-deploy-app-nav.js +10 -10
- package/dist/components/arcgis-solutions-assistant/customElement.js +79 -69
- package/dist/components/solution-details-card/customElement.js +8 -8
- package/dist/components/solution-details-panel/customElement.js +50 -50
- package/dist/components/solution-resource-card/customElement.js +11 -11
- package/dist/components/solution-snapshot-gallery/customElement.js +17 -17
- package/dist/components/solution-social-share/customElement.js +5 -5
- package/dist/components/solutions-all-panel/customElement.js +22 -21
- package/dist/components/solutions-deploy-app/customElement.js +12 -11
- package/dist/components/solutions-deployed-panel/customElement.d.ts +2 -2
- package/dist/components/solutions-deployed-panel/customElement.js +42 -27
- 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/solutions-components_commit.txt +7 -7
- package/dist/utils/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cdn/5HY4G5MJ.js +0 -2
- package/dist/cdn/7QFCHNYA.js +0 -2
- package/dist/cdn/BU24GNCR.js +0 -2
- package/dist/cdn/EMCLBWJH.js +0 -2
- package/dist/cdn/ETZI55AM.js +0 -2
- package/dist/cdn/EVTIE353.js +0 -2
- package/dist/cdn/K3V6XHE4.js +0 -2
- package/dist/cdn/LEBOMHXU.js +0 -2
- package/dist/cdn/QAT4TZD4.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./FWFL23CM.js";import"./I5GF7UR6.js";import a from"./MVNKOMSZ.js";import"./W4773WDH.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import"./6D3THEX6.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"./RFGSSUZF.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,a])=>{return a},a,b)
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./RFGSSUZF.js";import{v as e}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./UPCW6ZJC.js"),"_translations:,open,serverRoot,userFirstName;handleSendMessage,loopRequest,requestAIServer;resetChat"],"buffer-tools":[()=>import("./5FFWRFTB.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./2NEAR6UO.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./7KLXOSZR.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./KEWRBJOT.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("./MB4AEU7F.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./NPARH7TR.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("./DSH7QIEF.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("./JO3Y54EO.js")],"delete-button":[()=>import("./R47PFN27.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./3P2BL2Z3.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./UNLJYJJZ.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./V4JECR5W.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./X7ATJSHR.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./AHSUDDTV.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./I7L5AZJF.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./Y4QWAYNX.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./O4OJKTDX.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./UJRIZPZV.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("./GSQCX3MZ.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./3OBXQOE4.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("./2YQZQLV7.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./CUCLCYAD.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./NBVFAVYG.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./ARE6CCRL.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("./XU4DBG4C.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./HNGAUICR.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./XGHAWRFI.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./OWZH3MGL.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("./F26S6XWG.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("./CVN6AFUS.js")],"pdf-download":[()=>import("./OCJHQZGW.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./4VPYQV6U.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("./WB6EAOJX.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./COXCHYSH.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-configure-titles":[()=>import("./6KZ7BPYY.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./RSJOED5F.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./IZAAOTKA.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./WSU4ELZX.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./HUWZTPMY.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./I76VCVNE.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./VWSBR3EG.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./D4YDAIIJ.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./TWVENJ3Z.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./O55UHOD3.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./RWSMIF44.js"),"isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./YJCIONLF.js"),"_translations:,description,heading,icon,meridianIcon,sectionHeading,url"],"solution-snapshot-gallery":[()=>import("./T4BABRET.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./DPOINX2J.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("./G7PIGNB5.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./7QFCHNYA.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./YOUPERBP.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./ETZI55AM.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./FQDOIGWN.js"),"_translations:,appConfig,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-panel":[()=>import("./EVTIE353.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./LPPOTZKI.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./SYHSZMOM.js"),"_translations:,hideIndustryFilter,isAIDialogOpen,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./JZEB6HZ4.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./FYIT6WMR.js"),"_translations:"],"solutions-searchsort-toolbar":[()=>import("./2J5B4RQM.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}}");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)
|
|
2
|
+
import{a}from"./RFGSSUZF.js";import{v as e}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./OUH4HVG4.js"),"_translations:,open,serverRoot,userFirstName;handleSendMessage,loopRequest,requestAIServer;resetChat"],"buffer-tools":[()=>import("./5FFWRFTB.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./2NEAR6UO.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./7KLXOSZR.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./KEWRBJOT.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("./MB4AEU7F.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./NPARH7TR.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("./DSH7QIEF.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("./JO3Y54EO.js")],"delete-button":[()=>import("./R47PFN27.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./3P2BL2Z3.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./UNLJYJJZ.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./V4JECR5W.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./X7ATJSHR.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./3HWKU2CT.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./I7L5AZJF.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./Y4QWAYNX.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./O4OJKTDX.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./3A7PC2RZ.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("./GSQCX3MZ.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./4CPDEFIT.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("./2YQZQLV7.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./CUCLCYAD.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./NBVFAVYG.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./ARE6CCRL.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("./XU4DBG4C.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./HNGAUICR.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./XGHAWRFI.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./OWZH3MGL.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("./F26S6XWG.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("./CVN6AFUS.js")],"pdf-download":[()=>import("./OCJHQZGW.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./4VPYQV6U.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("./WB6EAOJX.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./COXCHYSH.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-configure-titles":[()=>import("./R6QJKOAM.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./FP5UBHCW.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./DOFNBU4Q.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./C7DWPTJL.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./CN4TSLTZ.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./I76VCVNE.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./VHA56S7W.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./EERFOEDZ.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./TWVENJ3Z.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./O55UHOD3.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./RWSMIF44.js"),"isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./PFQDRDKQ.js"),"_translations:,description,heading,icon,meridianIcon,sectionHeading,url"],"solution-snapshot-gallery":[()=>import("./2Z4TOYVC.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./QPEQNTE2.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("./I3ERNQTX.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./OQVULF2Q.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./YBZ4RYD3.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./RYK5PICU.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./PJ2IZ77K.js"),"_translations:,appConfig,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-panel":[()=>import("./BEC6A65P.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./LPPOTZKI.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./ZVLL5DZC.js"),"_translations:,hideIndustryFilter,isAIDialogOpen,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./W4DGTEPL.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./BT66JT22.js"),"_translations:"],"solutions-searchsort-toolbar":[()=>import("./7M3GJY6J.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}}");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)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { s as
|
|
2
|
+
import { s as U, d as D, e as g, b as I } from "./cardsHelpers.js";
|
|
3
3
|
import * as l from "@esri/solution-common";
|
|
4
4
|
import { L as M, y as B, M as N, N as E, O as T, Q as y, B as J } from "./interfaces.js";
|
|
5
5
|
class x {
|
|
@@ -56,41 +56,41 @@ class x {
|
|
|
56
56
|
* @returns A promise resolving to a collection of available Solutions as cards as well as paging information about
|
|
57
57
|
* where those cards came from in the fetcher cache; in case of failure, the promise resolves to an error message
|
|
58
58
|
*/
|
|
59
|
-
requestAvailableSolutionCards(r, t, s, e, i, a, o
|
|
60
|
-
const C =
|
|
61
|
-
if (this.cardCacheParams.q !== r.q || this.cardCacheParams.categoriesAsStr !==
|
|
59
|
+
requestAvailableSolutionCards(r, t, s, e, i, c, a, o) {
|
|
60
|
+
const C = a?.start ? a.start : 1, f = a?.num ? a.num : 24, p = this.portalUrl + "/sharing/rest", u = this.agolPortalUrl + "/sharing/rest", P = this.anonAgolSession, F = JSON.stringify(r.categories);
|
|
61
|
+
if (this.cardCacheParams.q !== r.q || this.cardCacheParams.categoriesAsStr !== F || r.sortField === "relevance" ? (this.cardCache = [], this.cardCacheParams = {
|
|
62
62
|
q: r.q,
|
|
63
|
-
categoriesAsStr:
|
|
63
|
+
categoriesAsStr: F,
|
|
64
64
|
sortField: r.sortField,
|
|
65
65
|
sortOrder: r.sortOrder
|
|
66
|
-
}) : (this.cardCacheParams.sortField !== r.sortField || this.cardCacheParams.sortOrder !== r.sortOrder) && (this.cardCacheParams.sortField = r.sortField, this.cardCacheParams.sortOrder = r.sortOrder, this.cardCache =
|
|
66
|
+
}) : (this.cardCacheParams.sortField !== r.sortField || this.cardCacheParams.sortOrder !== r.sortOrder) && (this.cardCacheParams.sortField = r.sortField, this.cardCacheParams.sortOrder = r.sortOrder, this.cardCache = U(
|
|
67
67
|
this.cardCache,
|
|
68
68
|
this.cardCacheParams.sortField,
|
|
69
69
|
this.cardCacheParams.sortOrder
|
|
70
70
|
)), this.cardCache.length > 0) {
|
|
71
|
-
let
|
|
72
|
-
if (
|
|
73
|
-
const d = D(this.cardCache,
|
|
74
|
-
|
|
71
|
+
let n;
|
|
72
|
+
if (o && o.size > 0) {
|
|
73
|
+
const d = D(this.cardCache, o);
|
|
74
|
+
n = g(d, C, f);
|
|
75
75
|
} else
|
|
76
|
-
|
|
77
|
-
return Promise.resolve(
|
|
76
|
+
n = g(this.cardCache, C, f);
|
|
77
|
+
return Promise.resolve(n);
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const w = {
|
|
80
80
|
filter: r.filter,
|
|
81
81
|
sortField: r.sortField,
|
|
82
82
|
sortOrder: r.sortOrder,
|
|
83
83
|
categories: r?.categories ? this.convertSearchCategories(r.categories) : "",
|
|
84
|
-
signal:
|
|
84
|
+
signal: c
|
|
85
85
|
}, S = [];
|
|
86
86
|
if (t && !i) {
|
|
87
|
-
const
|
|
87
|
+
const n = e || new l.UserSession({});
|
|
88
88
|
S.push(
|
|
89
89
|
l.searchGroupAllContents(
|
|
90
90
|
t,
|
|
91
91
|
r.q,
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
n,
|
|
93
|
+
w,
|
|
94
94
|
p
|
|
95
95
|
)
|
|
96
96
|
);
|
|
@@ -99,19 +99,19 @@ class x {
|
|
|
99
99
|
l.searchGroupAllContents(
|
|
100
100
|
s,
|
|
101
101
|
r.q,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
P,
|
|
103
|
+
w,
|
|
104
|
+
u
|
|
105
105
|
)
|
|
106
|
-
), Promise.allSettled(S).then((
|
|
106
|
+
), Promise.allSettled(S).then((n) => {
|
|
107
107
|
const d = [];
|
|
108
|
-
|
|
108
|
+
n.forEach((m) => {
|
|
109
109
|
if (m.status === "fulfilled") {
|
|
110
|
-
const
|
|
111
|
-
let
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}), d.push(
|
|
110
|
+
const A = m.value;
|
|
111
|
+
let v = "", R = !1;
|
|
112
|
+
v = this.agolPortalUrl, R = !0, A.results.forEach((b) => {
|
|
113
|
+
b.sourcePortalUrl = v, b.knownToBePublicSource = R;
|
|
114
|
+
}), d.push(A);
|
|
115
115
|
} else if (m.status === "rejected")
|
|
116
116
|
throw new Error(
|
|
117
117
|
m.reason.message ? m.reason.message : "cannotAccessAGO"
|
|
@@ -123,19 +123,19 @@ class x {
|
|
|
123
123
|
// : "enterpriseCannotAccessAGO"
|
|
124
124
|
// ) as string
|
|
125
125
|
);
|
|
126
|
-
}), d.length === 0 ? this.cardCache = [] : d.length === 1 ? this.cardCache = this.getCardsFromResponse(d[0]) : this.cardCache =
|
|
126
|
+
}), d.length === 0 ? this.cardCache = [] : d.length === 1 ? this.cardCache = this.getCardsFromResponse(d[0]) : this.cardCache = U(
|
|
127
127
|
this.getCardsFromResponse(this.mergeResponses(d)),
|
|
128
128
|
this.cardCacheParams.sortField,
|
|
129
129
|
this.cardCacheParams.sortOrder
|
|
130
130
|
);
|
|
131
|
-
let
|
|
132
|
-
if (
|
|
133
|
-
const m = D(this.cardCache,
|
|
134
|
-
|
|
131
|
+
let O;
|
|
132
|
+
if (o && o.size > 0) {
|
|
133
|
+
const m = D(this.cardCache, o);
|
|
134
|
+
O = g(m, C, f);
|
|
135
135
|
} else
|
|
136
|
-
|
|
137
|
-
return Promise.resolve(
|
|
138
|
-
}).catch((
|
|
136
|
+
O = g(this.cardCache, C, f);
|
|
137
|
+
return Promise.resolve(O);
|
|
138
|
+
}).catch((n) => Promise.reject(new Error(n.message)));
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
141
|
* Fetches cards for deployed Solutions from the server.
|
|
@@ -145,36 +145,43 @@ class x {
|
|
|
145
145
|
* @returns A collection of deployed Solutions as cards; the paging information shows that all of the cards
|
|
146
146
|
* are returned
|
|
147
147
|
*/
|
|
148
|
-
requestDeployedSolutionCards(r, t, s = "") {
|
|
149
|
-
const
|
|
148
|
+
requestDeployedSolutionCards(r, t, s = "", e) {
|
|
149
|
+
const i = this.portalUrl + "/sharing/rest";
|
|
150
|
+
if (e.aborted)
|
|
151
|
+
return Promise.resolve([]);
|
|
150
152
|
if (this.cardCacheParams.q !== r.q || this.cardCacheParams.categoriesAsStr !== JSON.stringify(r.q) || r.sortField === "relevance" ? (this.cardCache = [], this.cardCacheParams = {
|
|
151
153
|
q: r.q,
|
|
152
154
|
categoriesAsStr: "[]",
|
|
153
155
|
sortField: r.sortField,
|
|
154
156
|
sortOrder: r.sortOrder
|
|
155
|
-
}) : (this.cardCacheParams.sortField !== r.sortField || this.cardCacheParams.sortOrder !== r.sortOrder) && (this.cardCacheParams.sortField = r.sortField, this.cardCacheParams.sortOrder = r.sortOrder, this.cardCache =
|
|
157
|
+
}) : (this.cardCacheParams.sortField !== r.sortField || this.cardCacheParams.sortOrder !== r.sortOrder) && (this.cardCacheParams.sortField = r.sortField, this.cardCacheParams.sortOrder = r.sortOrder, this.cardCache = U(
|
|
156
158
|
this.cardCache,
|
|
157
159
|
this.cardCacheParams.sortField,
|
|
158
160
|
this.cardCacheParams.sortOrder
|
|
159
|
-
)),
|
|
161
|
+
)), e.aborted)
|
|
162
|
+
return Promise.resolve([]);
|
|
163
|
+
if (this.cardCache.length > 0) {
|
|
160
164
|
const a = g(this.cardCache, 1, this.cardCache.length);
|
|
161
165
|
return Promise.resolve(a);
|
|
162
166
|
}
|
|
163
|
-
const
|
|
167
|
+
const c = {
|
|
164
168
|
q: r.q,
|
|
165
169
|
filter: r.filter,
|
|
166
170
|
sortField: r.sortField,
|
|
167
171
|
sortOrder: r.sortOrder,
|
|
168
172
|
authentication: t,
|
|
169
|
-
portal:
|
|
173
|
+
portal: i,
|
|
170
174
|
categories: r?.categories ? JSON.stringify(r.categories) : "",
|
|
171
|
-
num: r.num
|
|
175
|
+
num: r.num,
|
|
176
|
+
signal: e
|
|
172
177
|
};
|
|
173
178
|
return s ? l.getItemBase(s, t).then((a) => {
|
|
179
|
+
if (e.aborted)
|
|
180
|
+
return Promise.resolve([]);
|
|
174
181
|
this.cardCache = this.getCardsFromResponse({ results: [a] });
|
|
175
182
|
const o = g(this.cardCache, 1, this.cardCache.length);
|
|
176
183
|
return Promise.resolve(o);
|
|
177
|
-
}).catch((a) => Promise.reject(new Error(a))) : l.searchAllItems(
|
|
184
|
+
}).catch((a) => Promise.reject(new Error(a))) : l.searchAllItems(c).then((a) => {
|
|
178
185
|
this.cardCache = this.getCardsFromResponse(a);
|
|
179
186
|
const o = g(this.cardCache, 1, this.cardCache.length);
|
|
180
187
|
return Promise.resolve(o);
|
|
@@ -203,13 +210,13 @@ class x {
|
|
|
203
210
|
getCardsFromResponse(r) {
|
|
204
211
|
return r.results.length > 0 ? l.sanitizeJSON(r.results).map(
|
|
205
212
|
(e) => {
|
|
206
|
-
const i = e.sourcePortalUrl ? e.sourcePortalUrl : this.portalUrl,
|
|
213
|
+
const i = e.sourcePortalUrl ? e.sourcePortalUrl : this.portalUrl, c = e.sourcePortalUrl ? e.sourcePortalUrl : this.orgUrl, a = {
|
|
207
214
|
id: e.id,
|
|
208
215
|
title: e.title,
|
|
209
216
|
snippet: e.snippet || "",
|
|
210
217
|
description: e.description || "",
|
|
211
218
|
url: e.url || "",
|
|
212
|
-
itemUrl: `${
|
|
219
|
+
itemUrl: `${c}/home/item.html` + y([{ k: "id", v: e.id }]) || "",
|
|
213
220
|
thumbnailFilename: e.thumbnail,
|
|
214
221
|
thumbnailUrl: T(
|
|
215
222
|
e.id,
|
|
@@ -238,7 +245,7 @@ class x {
|
|
|
238
245
|
relatedSolutions: l.getProp(e, "properties.relatedSolutions") || [],
|
|
239
246
|
owner: e.owner
|
|
240
247
|
};
|
|
241
|
-
return
|
|
248
|
+
return a.deployCommonId !== "" && a.deployVersion !== "" ? a : null;
|
|
242
249
|
}
|
|
243
250
|
).filter((e) => e != null) : [];
|
|
244
251
|
}
|
|
@@ -275,35 +282,36 @@ class x {
|
|
|
275
282
|
) : [];
|
|
276
283
|
}
|
|
277
284
|
}
|
|
278
|
-
async function z(
|
|
279
|
-
if (!
|
|
285
|
+
async function z(h, r, t, s, e = J, i = "created", c = "desc", a = !1, o = [], C = [], f, p, u) {
|
|
286
|
+
if (!h?.IsSignedIn)
|
|
280
287
|
return;
|
|
281
288
|
const P = {
|
|
282
289
|
q: e,
|
|
283
290
|
filter: "type:Solution",
|
|
284
291
|
sortField: i,
|
|
285
|
-
sortOrder:
|
|
286
|
-
delay:
|
|
287
|
-
categories:
|
|
292
|
+
sortOrder: c,
|
|
293
|
+
delay: a,
|
|
294
|
+
categories: o,
|
|
288
295
|
num: 100
|
|
289
296
|
};
|
|
290
|
-
return P.q += k(
|
|
297
|
+
return P.q += k(h, p), await K(
|
|
291
298
|
r,
|
|
292
299
|
P,
|
|
293
300
|
s,
|
|
294
301
|
C,
|
|
295
|
-
|
|
302
|
+
u,
|
|
303
|
+
f
|
|
296
304
|
);
|
|
297
305
|
}
|
|
298
|
-
function k(
|
|
306
|
+
function k(h, r) {
|
|
299
307
|
let t = "";
|
|
300
|
-
const s =
|
|
308
|
+
const s = h.PortalUserOrg, e = h.PortalUserName;
|
|
301
309
|
return s && (t += " orgid:" + s), r !== "My organization's solutions" && e && (t += " owner:" + e), t;
|
|
302
310
|
}
|
|
303
|
-
async function K(
|
|
304
|
-
const
|
|
311
|
+
async function K(h, r, t, s, e = "", i) {
|
|
312
|
+
const c = await t.requestDeployedSolutionCards(r, h, e, i), a = I(c.cards, s);
|
|
305
313
|
return {
|
|
306
|
-
cards:
|
|
314
|
+
cards: c.cards,
|
|
307
315
|
relatedSolutions: a
|
|
308
316
|
};
|
|
309
317
|
}
|
|
@@ -51,12 +51,12 @@ function l(o) {
|
|
|
51
51
|
}
|
|
52
52
|
function c(o) {
|
|
53
53
|
let t = [];
|
|
54
|
-
return o.forEach(
|
|
54
|
+
return o ? (o.forEach(
|
|
55
55
|
(n) => {
|
|
56
56
|
const e = l(n);
|
|
57
57
|
e && t.push(e);
|
|
58
58
|
}
|
|
59
|
-
), t = Array.from(new Set(t)), t;
|
|
59
|
+
), t = Array.from(new Set(t)), t) : [];
|
|
60
60
|
}
|
|
61
61
|
function m(o) {
|
|
62
62
|
const t = "solutionversion-", n = (o.typeKeywords || []).reduce((e, r) => (r.startsWith(t) && (e = Number(r.replace(t, ""))), e), -1);
|