@esri/solutions-components 5.1.0-next.152 → 5.1.0-next.154
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/{IC6KIGR4.js → 3CDO3ATJ.js} +1 -1
- package/dist/cdn/{ZVXEOW2X.js → 4D4UXCEU.js} +1 -1
- package/dist/cdn/{C4KWJ3PL.js → CDJCXGBN.js} +1 -1
- package/dist/cdn/{N7VSZ2CS.js → D6VR7GCD.js} +1 -1
- package/dist/cdn/{4QOD7X43.js → DN3PZCF4.js} +1 -1
- package/dist/cdn/{7GVN2XEM.js → EVO7B63R.js} +1 -1
- package/dist/cdn/{EVMBOT65.js → GWJRCE5C.js} +28 -28
- package/dist/cdn/{3RKQYXNE.js → LBY3ZNJE.js} +1 -1
- package/dist/cdn/{LQ4BLDUU.js → PX6AYCC4.js} +1 -1
- package/dist/cdn/QFFHU77I.js +2 -0
- package/dist/cdn/{2BIUOM64.js → S37TPZAO.js} +1 -1
- package/dist/cdn/SJ7HTNAT.js +2 -0
- package/dist/cdn/{RBYAQRK6.js → TB33W36T.js} +1 -1
- package/dist/cdn/{QC4MO5BO.js → WG5NM5XY.js} +1 -1
- package/dist/cdn/{5O7LFBHI.js → XJAXXELZ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/converter.js +64 -64
- package/dist/chunks/validators.js +9 -6
- package/dist/components/arcgis-solutions-assistant/customElement.js +395 -428
- package/dist/components/card-manager/customElement.js +42 -38
- package/dist/components/layer-table/customElement.js +8 -14
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +5 -8
- package/package.json +1 -1
- package/dist/cdn/HQLA2AI4.js +0 -2
- package/dist/cdn/I46CXTVR.js +0 -2
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a}from"./2I5LGZNX.js";import{u as e}from"./FFF5HUPM.js";import"./QPIMTXPL.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./EVMBOT65.js"),"_translations:,builderVisible,hasActiveBuilderDesign,open,userFirstName"],"buffer-tools":[()=>import("./4ASIXXDP.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./I46CXTVR.js"),"_translations:,allowedPasteLayerIds:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapComponentId,mapView:,pasteEnabled,selectedFeaturesIds:,selectingFeatureFromMap,showCopyPasteActions,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./3JZVI5AM.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./DMM5WA5Q.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,allowMultipleCreation,appName,customizeSubmit,enableMessageLocation,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("./BJAEUZFB.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./RRD4QUQS.js"),"_translations:,appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,enableCopyPaste,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("./DD2Y5NOB.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableMessageLocation,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,sortFields:,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./YJBXJNUR.js")],"delete-button":[()=>import("./JNE3LBQU.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./NYQQSL25.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./OQOCOC5R.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./6BIHAEOS.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./WC37HMOI.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./N7VSZ2CS.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./3KYQE6O5.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,featuresReferenceId,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,pasteEnabled,position,showCloseBtn,showCopyPasteActions;back,getSelectedFeature,next,refresh,toggleListView"],"layer-list":[()=>import("./ITSA4WXG.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./P6VUY7UX.js"),"layerListRef:,mapView:,visibilityIcon"],"layer-table":[()=>import("./ZVXEOW2X.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,layerIds:,mapHidden,mapInfo:,mapView:,pasteEnabled,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate"],"map-basemap-gallery":[()=>import("./P2NKBGLG.js"),"basemapConfig:,basemapGalleryRef:,mapView:"],"map-card":[()=>import("./KV76ATT5.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapComponentId,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,pasteEnabled,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./UNBTFJYB.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./DIMSALHW.js"),"enabled,floorFilterRef:,mapView:"],"map-fullscreen":[()=>import("./SHGAD5MK.js"),"fullscreenRef:,mapView:"],"map-layer-picker":[()=>import("./ZCPVOS4Q.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("./SQ3AHKIW.js"),"legendRef:,mapView:"],"map-picker":[()=>import("./L5YT5FRJ.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./JJV3TD42.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchComponent:,searchConfiguration:,searchTerm"],"map-select-tools":[()=>import("./NV2DLQDN.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("./UWSHU7MG.js"),"_translations:,basemapConfig:,configLayerOrderDefined,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("./KZSBETIP.js")],"pdf-download":[()=>import("./JOAEH3CI.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./2IGILR4T.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("./Z23BVIGQ.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./NM2PQIH6.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-builder-assistant":[()=>import("./RBYAQRK6.js"),"_translations:,design,readOnlyNotice"],"solution-configure-titles":[()=>import("./7GVN2XEM.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./ZOF7AUSS.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./QC4MO5BO.js"),"_translations:,card:,debugFailDeployment,design:,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./UIGRRD7P.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./3S5PVZVU.js"),"_translations:,card:,cardRef,diagramKey,open,readOnlyNotice,templateInfos:"],"solution-deploying-dialog":[()=>import("./AOWNMC3W.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./2BM4W44V.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./LQ4BLDUU.js"),"_translations:,card:,readOnlyNotice"],"solution-item-accordion":[()=>import("./IEC46RE7.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:,usageContext;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./XO54BFTC.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./NVEAYDYI.js"),"designType,isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./QGDR24DC.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./QD22B6N2.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./EKUENEEW.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("./FNTXI57U.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./2HAYT46E.js"),"_translations:,sortType;searchSolutions,setSearchOptions;getDisplayedSolutionIds"],"solutions-all-shell":[()=>import("./RUVOSMTB.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./3RKQYXNE.js"),"_translations:,appConfig,initTab,initTitleOrId,loadExampleBuilderData,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./VY5TD3VS.js"),"_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-list":[()=>import("./GG4IIHQE.js"),"_translations:,hasLinks,listTitle,referenceCards:,results:"],"solutions-deployed-panel":[()=>import("./TOIBA2KF.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./SYQ5E5TV.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./ZCLYSOQM.js"),"_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./63ZMLOEP.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./3TIQRBWC.js"),"_translations:;scrollToSection"],"solutions-searchsort-toolbar":[()=>import("./M73VTGBI.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-builder-assistant,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-list,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"./2I5LGZNX.js";import{u as e}from"./FFF5HUPM.js";import"./QPIMTXPL.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./GWJRCE5C.js"),"_translations:,builderVisible,hasActiveBuilderDesign,open,userFirstName"],"buffer-tools":[()=>import("./4ASIXXDP.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./QFFHU77I.js"),"_translations:,allowedPasteLayerIds:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapComponentId,mapView:,pasteEnabled,selectedFeaturesIds:,selectingFeatureFromMap,showCopyPasteActions,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./3JZVI5AM.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./DMM5WA5Q.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,allowMultipleCreation,appName,customizeSubmit,enableMessageLocation,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("./BJAEUZFB.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./RRD4QUQS.js"),"_translations:,appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,enableCopyPaste,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("./DD2Y5NOB.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableMessageLocation,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,sortFields:,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./YJBXJNUR.js")],"delete-button":[()=>import("./JNE3LBQU.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./NYQQSL25.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./OQOCOC5R.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./6BIHAEOS.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./WC37HMOI.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./D6VR7GCD.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./3KYQE6O5.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,featuresReferenceId,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,pasteEnabled,position,showCloseBtn,showCopyPasteActions;back,getSelectedFeature,next,refresh,toggleListView"],"layer-list":[()=>import("./ITSA4WXG.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./P6VUY7UX.js"),"layerListRef:,mapView:,visibilityIcon"],"layer-table":[()=>import("./4D4UXCEU.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,layerIds:,mapHidden,mapInfo:,mapView:,pasteEnabled,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate"],"map-basemap-gallery":[()=>import("./P2NKBGLG.js"),"basemapConfig:,basemapGalleryRef:,mapView:"],"map-card":[()=>import("./KV76ATT5.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapComponentId,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,pasteEnabled,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./UNBTFJYB.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./DIMSALHW.js"),"enabled,floorFilterRef:,mapView:"],"map-fullscreen":[()=>import("./SHGAD5MK.js"),"fullscreenRef:,mapView:"],"map-layer-picker":[()=>import("./ZCPVOS4Q.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("./SQ3AHKIW.js"),"legendRef:,mapView:"],"map-picker":[()=>import("./L5YT5FRJ.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./JJV3TD42.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchComponent:,searchConfiguration:,searchTerm"],"map-select-tools":[()=>import("./NV2DLQDN.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("./UWSHU7MG.js"),"_translations:,basemapConfig:,configLayerOrderDefined,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("./KZSBETIP.js")],"pdf-download":[()=>import("./JOAEH3CI.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./2IGILR4T.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("./Z23BVIGQ.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./NM2PQIH6.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-builder-assistant":[()=>import("./TB33W36T.js"),"_translations:,design,readOnlyNotice"],"solution-configure-titles":[()=>import("./EVO7B63R.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./ZOF7AUSS.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./WG5NM5XY.js"),"_translations:,card:,debugFailDeployment,design:,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./UIGRRD7P.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./3S5PVZVU.js"),"_translations:,card:,cardRef,diagramKey,open,readOnlyNotice,templateInfos:"],"solution-deploying-dialog":[()=>import("./AOWNMC3W.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./2BM4W44V.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./PX6AYCC4.js"),"_translations:,card:,readOnlyNotice"],"solution-item-accordion":[()=>import("./IEC46RE7.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:,usageContext;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./XO54BFTC.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./NVEAYDYI.js"),"designType,isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./QGDR24DC.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./QD22B6N2.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./EKUENEEW.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("./FNTXI57U.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./2HAYT46E.js"),"_translations:,sortType;searchSolutions,setSearchOptions;getDisplayedSolutionIds"],"solutions-all-shell":[()=>import("./RUVOSMTB.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./LBY3ZNJE.js"),"_translations:,appConfig,initTab,initTitleOrId,loadExampleBuilderData,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./VY5TD3VS.js"),"_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-list":[()=>import("./GG4IIHQE.js"),"_translations:,hasLinks,listTitle,referenceCards:,results:"],"solutions-deployed-panel":[()=>import("./TOIBA2KF.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./SYQ5E5TV.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./ZCLYSOQM.js"),"_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./63ZMLOEP.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./3TIQRBWC.js"),"_translations:;scrollToSection"],"solutions-searchsort-toolbar":[()=>import("./M73VTGBI.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-builder-assistant,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-list,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)
|
package/dist/chunks/converter.js
CHANGED
|
@@ -15,7 +15,7 @@ function f(n = 0) {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
function g(n = 0) {
|
|
18
|
-
const { fill: e, outline: t } = f(n), i = [...e, 153],
|
|
18
|
+
const { fill: e, outline: t } = f(n), i = [...e, 153], r = [...t, 255];
|
|
19
19
|
return {
|
|
20
20
|
renderer: {
|
|
21
21
|
type: "simple",
|
|
@@ -209,7 +209,7 @@ function g(n = 0) {
|
|
|
209
209
|
width: 1.5,
|
|
210
210
|
height3D: 1,
|
|
211
211
|
anchor3D: "Center",
|
|
212
|
-
color:
|
|
212
|
+
color: r
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
type: "CIMSolidFill",
|
|
@@ -562,27 +562,27 @@ class y {
|
|
|
562
562
|
);
|
|
563
563
|
}
|
|
564
564
|
dumpToLlmTemplate() {
|
|
565
|
-
const e = this.structure?.buildSolution?.solution, t = Object.entries(e?.strings || {}).map(([o,
|
|
565
|
+
const e = this.structure?.buildSolution?.solution, t = Object.entries(e?.strings || {}).map(([o, l]) => ({
|
|
566
566
|
key: o,
|
|
567
|
-
value:
|
|
568
|
-
description:
|
|
567
|
+
value: l.value,
|
|
568
|
+
description: l.description
|
|
569
569
|
})), i = {
|
|
570
570
|
title: e?.title,
|
|
571
571
|
description: e?.description,
|
|
572
572
|
tags: e?.tags,
|
|
573
573
|
strings: t
|
|
574
|
-
},
|
|
574
|
+
}, r = this.structure?.buildSolution?.items, s = Object.entries(r || {}).map(([o, l]) => ({
|
|
575
575
|
id: o,
|
|
576
|
-
title:
|
|
577
|
-
description:
|
|
578
|
-
type:
|
|
576
|
+
title: l.title,
|
|
577
|
+
description: l.description,
|
|
578
|
+
type: l.type
|
|
579
579
|
}));
|
|
580
580
|
let a = null;
|
|
581
|
-
for (const [o,
|
|
582
|
-
if (
|
|
581
|
+
for (const [o, l] of Object.entries(r || {})) {
|
|
582
|
+
if (l.type !== "Feature Layer (hosted)")
|
|
583
583
|
continue;
|
|
584
584
|
const u = [];
|
|
585
|
-
for (const d of
|
|
585
|
+
for (const d of l.service?.layers || []) {
|
|
586
586
|
const c = this.getFields(d), m = {
|
|
587
587
|
id: d.id,
|
|
588
588
|
type: "",
|
|
@@ -594,7 +594,7 @@ class y {
|
|
|
594
594
|
};
|
|
595
595
|
d.geometryType && (m.type = y.simpleTypeLookup[d.geometryType] || "", m.typeMutable = !1), u.push(m);
|
|
596
596
|
}
|
|
597
|
-
for (const d of
|
|
597
|
+
for (const d of l.service?.tables || []) {
|
|
598
598
|
const c = this.getFields(d);
|
|
599
599
|
u.push({
|
|
600
600
|
id: d.id,
|
|
@@ -608,7 +608,7 @@ class y {
|
|
|
608
608
|
}
|
|
609
609
|
a = {
|
|
610
610
|
itemId: o,
|
|
611
|
-
addLayers:
|
|
611
|
+
addLayers: l.addLayers,
|
|
612
612
|
layers: u
|
|
613
613
|
};
|
|
614
614
|
break;
|
|
@@ -655,60 +655,60 @@ class y {
|
|
|
655
655
|
for (const o of e.featureLayer.layers)
|
|
656
656
|
this.llmFsLookup[e.featureLayer.itemId][o.id] = o;
|
|
657
657
|
}
|
|
658
|
-
for (const [o,
|
|
659
|
-
|
|
658
|
+
for (const [o, l] of Object.entries(this.buildSolution.items))
|
|
659
|
+
l.type === "Feature Layer (hosted, view)" && (this.llmFsLookup[o] = { ...this.llmFsLookup[l.source] });
|
|
660
660
|
t.title = e.solution.title, t.description = e.solution.description, t.tags = e.solution.tags;
|
|
661
661
|
const i = t.strings;
|
|
662
662
|
for (const o of e.solution.strings)
|
|
663
663
|
i[o.key] && (i[o.key].value = o.value);
|
|
664
|
-
const
|
|
664
|
+
const r = {}, s = /* @__PURE__ */ new Set(), a = this.buildSolution.items;
|
|
665
665
|
for (const o of e.items) {
|
|
666
|
-
const
|
|
667
|
-
if (
|
|
668
|
-
if (
|
|
669
|
-
this.applyWebMap(
|
|
670
|
-
else if (
|
|
671
|
-
this.applyFeatureService(
|
|
672
|
-
const u = I(
|
|
673
|
-
|
|
674
|
-
} else
|
|
666
|
+
const l = a[o.id];
|
|
667
|
+
if (l)
|
|
668
|
+
if (l.title = o.title, l.description = o.description, l.type === "Web Map")
|
|
669
|
+
this.applyWebMap(l);
|
|
670
|
+
else if (l.type === "Feature Layer (hosted)") {
|
|
671
|
+
this.applyFeatureService(l, o.id, !1);
|
|
672
|
+
const u = I(l);
|
|
673
|
+
l.data = u, r[o.id] = u;
|
|
674
|
+
} else l.type === "Feature Layer (hosted, view)" && (this.applyFeatureService(l, o.id, !0), s.add(o.id));
|
|
675
675
|
}
|
|
676
676
|
for (const o of s) {
|
|
677
|
-
const
|
|
678
|
-
|
|
677
|
+
const l = a[o];
|
|
678
|
+
l.data = r[l.source];
|
|
679
679
|
}
|
|
680
680
|
return this.structure;
|
|
681
681
|
}
|
|
682
682
|
applyWebMap(e) {
|
|
683
683
|
if (!e.layerSources)
|
|
684
684
|
return;
|
|
685
|
-
for (const
|
|
686
|
-
const [s, a] = this.extractIdAndLayerId(
|
|
687
|
-
o && (
|
|
685
|
+
for (const r of [...e.layers || [], ...e.tables || []]) {
|
|
686
|
+
const [s, a] = this.extractIdAndLayerId(r.url), o = this.llmFsLookup[s]?.[a];
|
|
687
|
+
o && (r.title = o.name);
|
|
688
688
|
}
|
|
689
689
|
if (!(e.layers?.length === 0 && e.tables?.length === 0))
|
|
690
690
|
return;
|
|
691
691
|
const i = crypto.randomUUID().replace(/-/gu, "").substring(0, 10);
|
|
692
|
-
for (const
|
|
693
|
-
const s = this.llmFsLookup[
|
|
692
|
+
for (const r of e.layerSources) {
|
|
693
|
+
const s = this.llmFsLookup[r];
|
|
694
694
|
if (s)
|
|
695
695
|
for (const [a, o] of Object.entries(s)) {
|
|
696
|
-
const
|
|
697
|
-
id: `${i}-layer-${
|
|
696
|
+
const l = Number(a), u = o.type.toLowerCase() === "table", d = {
|
|
697
|
+
id: `${i}-layer-${l}`,
|
|
698
698
|
title: o.name,
|
|
699
|
-
url: `{{${
|
|
700
|
-
itemId: `{{${
|
|
699
|
+
url: `{{${r}.layer${l}.url}}`,
|
|
700
|
+
itemId: `{{${r}.layer${l}.itemId}}`
|
|
701
701
|
};
|
|
702
702
|
u ? e.tables.unshift(d) : (d.layerType = "ArcGISFeatureLayer", e.layers.unshift(d));
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
extractIdAndLayerId(e) {
|
|
707
|
-
const t = e.replace(/[{}]/gu, "").split("."), i = t[0],
|
|
708
|
-
return [i,
|
|
707
|
+
const t = e.replace(/[{}]/gu, "").split("."), i = t[0], r = Number.parseInt(t[1].replace("layer", ""));
|
|
708
|
+
return [i, r];
|
|
709
709
|
}
|
|
710
710
|
applyFeatureService(e, t, i = !1) {
|
|
711
|
-
const
|
|
711
|
+
const r = e.source || t, s = this.llmFsLookup[r];
|
|
712
712
|
for (const o of [...e.service.layers, ...e.service.tables])
|
|
713
713
|
this.applyLayer(o, s, i);
|
|
714
714
|
e.addLayers && !i && this.addNewLayers(e, s);
|
|
@@ -716,19 +716,19 @@ class y {
|
|
|
716
716
|
i && a && this.addNewViewLayers(e, t, s);
|
|
717
717
|
}
|
|
718
718
|
addNewLayers(e, t) {
|
|
719
|
-
for (const [i,
|
|
719
|
+
for (const [i, r] of Object.entries(t)) {
|
|
720
720
|
const a = { id: Number(i) };
|
|
721
|
-
this.applyLayer(a, t),
|
|
721
|
+
this.applyLayer(a, t), r.type.toLowerCase() === "table" ? e.service.tables.push(a) : e.service.layers.push(a);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
addNewViewLayers(e, t, i) {
|
|
725
|
-
const
|
|
725
|
+
const r = e.source;
|
|
726
726
|
for (const [s, a] of Object.entries(i)) {
|
|
727
|
-
const o = Number(s),
|
|
727
|
+
const o = Number(s), l = a.type.toLowerCase() === "table", u = {
|
|
728
728
|
adminLayerInfo: {
|
|
729
|
-
geometryField:
|
|
729
|
+
geometryField: l ? null : { name: "Shape" },
|
|
730
730
|
viewLayerDefinition: {
|
|
731
|
-
sourceServiceName: `{{${
|
|
731
|
+
sourceServiceName: `{{${r}.name}}`,
|
|
732
732
|
sourceLayerId: o,
|
|
733
733
|
sourceLayerFields: "*"
|
|
734
734
|
}
|
|
@@ -738,33 +738,33 @@ class y {
|
|
|
738
738
|
extent: `{{${t}.solutionExtent}}`,
|
|
739
739
|
maxRecordCount: 2e3
|
|
740
740
|
};
|
|
741
|
-
|
|
741
|
+
l ? e.service.tables.push(u) : e.service.layers.push(u);
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
applyLayer(e, t, i = !1) {
|
|
745
|
-
const
|
|
746
|
-
if (!
|
|
745
|
+
const r = t[e.id];
|
|
746
|
+
if (!r || (e.name = r.name, e.description = r.description || "", i))
|
|
747
747
|
return;
|
|
748
|
-
const s = y.typeLookup[
|
|
749
|
-
s.toLowerCase() === "table" ? e.type = s : e.geometryType = s, e.editFieldsInfo = this.editFieldsInfo(), e.globalIdField = "globalid", e.objectIdField = "objectid", e.uniqueIdField = { name: "objectid", isSystemMaintained: !0 }, e.hasAttachments = !0, this.updateRelationships(e, t), this.updateFields(e,
|
|
748
|
+
const s = y.typeLookup[r.type.toLowerCase()] || r.type;
|
|
749
|
+
s.toLowerCase() === "table" ? e.type = s : e.geometryType = s, e.editFieldsInfo = this.editFieldsInfo(), e.globalIdField = "globalid", e.objectIdField = "objectid", e.uniqueIdField = { name: "objectid", isSystemMaintained: !0 }, e.hasAttachments = !0, this.updateRelationships(e, t), this.updateFields(e, r), this.updateTemplates(e), this.updateDrawingInfo(e);
|
|
750
750
|
}
|
|
751
751
|
updateRelationships(e, t) {
|
|
752
752
|
const i = e.relationships || [];
|
|
753
|
-
for (const
|
|
754
|
-
const s = t[
|
|
755
|
-
s && (
|
|
753
|
+
for (const r of i) {
|
|
754
|
+
const s = t[r.relatedTableId];
|
|
755
|
+
s && (r.name = s.name);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
updateFields(e, t) {
|
|
759
|
-
const i = [],
|
|
759
|
+
const i = [], r = [
|
|
760
760
|
[!1, t.customFields],
|
|
761
761
|
[!0, t.requiredFields],
|
|
762
762
|
[!0, t.systemFields]
|
|
763
763
|
];
|
|
764
|
-
for (const [s, a] of
|
|
764
|
+
for (const [s, a] of r)
|
|
765
765
|
if (Array.isArray(a))
|
|
766
766
|
for (const o of a) {
|
|
767
|
-
const
|
|
767
|
+
const l = {
|
|
768
768
|
name: o.name,
|
|
769
769
|
alias: o.alias,
|
|
770
770
|
type: y.fieldTypeToEsri[o.type] || o.type,
|
|
@@ -772,7 +772,7 @@ class y {
|
|
|
772
772
|
domain: this.createDomain(o.choiceList, o.name),
|
|
773
773
|
required: s
|
|
774
774
|
};
|
|
775
|
-
o.type?.toLowerCase() === "string" && (
|
|
775
|
+
o.type?.toLowerCase() === "string" && (l.length = o.length ?? 256), (o.type === "oid" || o.type === "globalid") && (l.editable = !1, l.nullable = !1), i.push(l);
|
|
776
776
|
}
|
|
777
777
|
e.fields = i;
|
|
778
778
|
}
|
|
@@ -876,11 +876,11 @@ function h(n) {
|
|
|
876
876
|
}
|
|
877
877
|
function b(n) {
|
|
878
878
|
const e = [], t = [];
|
|
879
|
-
for (const
|
|
880
|
-
|
|
881
|
-
fieldName:
|
|
879
|
+
for (const r of n.fields)
|
|
880
|
+
r.required || t.push({
|
|
881
|
+
fieldName: r.name,
|
|
882
882
|
isEditable: !0,
|
|
883
|
-
label:
|
|
883
|
+
label: r.alias,
|
|
884
884
|
visible: !0
|
|
885
885
|
});
|
|
886
886
|
e.push({
|
|
@@ -890,14 +890,14 @@ function b(n) {
|
|
|
890
890
|
});
|
|
891
891
|
const i = n.relationships || [];
|
|
892
892
|
if (i.length && n.type !== "Table")
|
|
893
|
-
for (const
|
|
893
|
+
for (const r of i)
|
|
894
894
|
e.push({
|
|
895
895
|
type: "relationship",
|
|
896
896
|
description: "",
|
|
897
897
|
displayCount: 3,
|
|
898
898
|
displayType: "list",
|
|
899
899
|
orderByFields: [{ field: "created_date", order: "asc" }],
|
|
900
|
-
relationshipId:
|
|
900
|
+
relationshipId: r.id
|
|
901
901
|
});
|
|
902
902
|
return e.push({
|
|
903
903
|
type: "attachments",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import * as
|
|
2
|
+
import * as s from "@esri/solution-common";
|
|
3
3
|
const T = 250, F = /* @__PURE__ */ new Set([
|
|
4
4
|
"add",
|
|
5
5
|
"all",
|
|
@@ -53,6 +53,8 @@ const T = 250, F = /* @__PURE__ */ new Set([
|
|
|
53
53
|
"rownum",
|
|
54
54
|
"select",
|
|
55
55
|
"set",
|
|
56
|
+
"shape",
|
|
57
|
+
"subtype",
|
|
56
58
|
"table",
|
|
57
59
|
"top",
|
|
58
60
|
"truncate",
|
|
@@ -80,22 +82,22 @@ function n(e) {
|
|
|
80
82
|
function u(e) {
|
|
81
83
|
return e.length > T;
|
|
82
84
|
}
|
|
83
|
-
function
|
|
85
|
+
function l(e, r) {
|
|
84
86
|
return V.test(e) ? !0 : r === "item" ? /[><~`$^+=|\\]/u.test(e) : /[/<>\\]/u.test(e);
|
|
85
87
|
}
|
|
86
88
|
async function w(e, r) {
|
|
87
89
|
const t = r, a = await t.getUsername(), f = {
|
|
88
|
-
q: new
|
|
90
|
+
q: new s.SearchQueryBuilder().match(e).in("title").and().match(a).in("owner"),
|
|
89
91
|
filter: "type:Solution",
|
|
90
92
|
authentication: t
|
|
91
|
-
}, d = (await
|
|
93
|
+
}, d = (await s.searchAllItems(f)).results.map((i) => i.title), { folders: p } = await s.getFoldersAndGroups(t), y = p.map((i) => i.title), o = [...d, ...y].map((i) => i.trim().toLowerCase()), c = e.toLowerCase(), h = o.filter((i) => i === c), m = o.filter((i) => i.startsWith(c));
|
|
92
94
|
return { conflictingNames: h, similiarNames: m };
|
|
93
95
|
}
|
|
94
96
|
async function v(e, r, t = !1) {
|
|
95
|
-
return n(e) ? { isValid: !1, errorType: "empty" } : u(e) ? { isValid: !1, errorType: "exceed-length" } :
|
|
97
|
+
return n(e) ? { isValid: !1, errorType: "empty" } : u(e) ? { isValid: !1, errorType: "exceed-length" } : l(e, "folder") || l(e, "item") ? { isValid: !1, errorType: "special-character" } : !t && r && (await w(e.trim(), r)).conflictingNames.length > 0 ? { isValid: !1, errorType: "not-unique" } : { isValid: !0, errorType: null };
|
|
96
98
|
}
|
|
97
99
|
function x(e) {
|
|
98
|
-
return n(e) ? { isValid: !1, errorType: "empty" } : u(e) ? { isValid: !1, errorType: "exceed-length" } :
|
|
100
|
+
return n(e) ? { isValid: !1, errorType: "empty" } : u(e) ? { isValid: !1, errorType: "exceed-length" } : l(e, "item") ? { isValid: !1, errorType: "special-character" } : { isValid: !0, errorType: null };
|
|
99
101
|
}
|
|
100
102
|
function L(e, r, t = !1) {
|
|
101
103
|
if (e.length > r)
|
|
@@ -116,6 +118,7 @@ function I(e, r, t = !1) {
|
|
|
116
118
|
return t ? { isValid: !0, errorType: null } : e.trim().length === 0 ? { isValid: !1, errorType: "empty" } : e.length > r ? { isValid: !1, errorType: "exceed-length" } : { isValid: !0, errorType: null };
|
|
117
119
|
}
|
|
118
120
|
export {
|
|
121
|
+
F as S,
|
|
119
122
|
v as a,
|
|
120
123
|
L as b,
|
|
121
124
|
w as c,
|