@arcgis/portal-components 5.1.0-next.96 → 5.1.0-next.98
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/2UAWM45V.js +2 -0
- package/dist/cdn/32DRTMS4.js +2 -0
- package/dist/cdn/3OPKWSWR.js +56 -0
- package/dist/cdn/4XGP5S32.js +2 -0
- package/dist/cdn/{C4G445UB.js → 5WK4GJK2.js} +1 -1
- package/dist/cdn/AMCZ4UZQ.js +2 -0
- package/dist/cdn/CFDTXKJ6.js +2 -0
- package/dist/cdn/CVTNZK7F.js +2 -0
- package/dist/cdn/DAD7LUKA.js +2 -0
- package/dist/cdn/ERNT74VA.js +2 -0
- package/dist/cdn/F5QGCGHF.js +2 -0
- package/dist/cdn/GPPEHGUO.js +2 -0
- package/dist/cdn/HGOHRPAD.js +2 -0
- package/dist/cdn/HQAGVE4P.js +120 -0
- package/dist/cdn/IZQBJ5VK.js +2 -0
- package/dist/cdn/JFG6QVNF.js +2 -0
- package/dist/cdn/{LHL3ZLTA.js → JOYFDD4B.js} +1 -1
- package/dist/cdn/JQKWT7SI.js +109 -0
- package/dist/cdn/LCWXNCUX.js +396 -0
- package/dist/cdn/LJUIMVQ2.js +2 -0
- package/dist/cdn/N5K4DR3J.js +3 -0
- package/dist/cdn/NJMHL2Y7.js +4 -0
- package/dist/cdn/OGQ2PD7M.js +2 -0
- package/dist/cdn/SEZNHA2J.js +2 -0
- package/dist/cdn/SOPWLUP4.js +2 -0
- package/dist/cdn/TTZBF4KI.js +2 -0
- package/dist/cdn/{FQIVYRU6.js → V5ZWDMLE.js} +1 -1
- package/dist/cdn/ZAHK6WQT.js +138 -0
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-type/icons/360vr16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/360vr32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/3dobjecttileslayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/3dobjecttileslayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/3dtileslayerpackage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/3dtileslayerpackage24.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/addindesktop16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/addindesktop32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/apacheparquet16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/apacheparquet32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/apps16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/apps32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/appsgray16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/appsgray32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/bigdataanalytics16.svg +69 -0
- package/dist/cdn/assets/portal-item-type/icons/bigdataanalytics32.svg +93 -0
- package/dist/cdn/assets/portal-item-type/icons/cad16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/cad32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/catalog16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/catalog32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/classificationschema16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/classificationschema32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/classifierdefinition16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/classifierdefinition32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/codeSnippet16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/codeSnippet32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/csv16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/csv32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/csvcollection16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/csvcollection32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/dashboard16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/dashboard32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/data16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/data32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/dataengineeringmodel16.svg +12 -0
- package/dist/cdn/assets/portal-item-type/icons/dataengineeringmodel32.svg +14 -0
- package/dist/cdn/assets/portal-item-type/icons/dataengineeringworkbook16.svg +5 -0
- package/dist/cdn/assets/portal-item-type/icons/dataengineeringworkbook32.svg +9 -0
- package/dist/cdn/assets/portal-item-type/icons/datafiles16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datafiles32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datafilesgray16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datafilesgray32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datapipeline16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datapipeline32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datastore16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datastore32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datastorecollection16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/datastorecollection32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/deeplearningpackage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/deeplearningpackage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/deeplearningproject16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/deeplearningproject32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/desktopstyle16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/desktopstyle32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/dictionarydesktopstyle16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/dictionarydesktopstyle32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/dictionarystyle16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/dictionarystyle32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/discussion16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/discussion32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/elevationlayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/elevationlayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/excaliburimageryproject16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/excaliburimageryproject32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/excel16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/excel32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/experiencebuilder16.svg +15 -0
- package/dist/cdn/assets/portal-item-type/icons/experiencebuilder32.svg +15 -0
- package/dist/cdn/assets/portal-item-type/icons/experiencebuilderwidget16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/experiencebuilderwidget32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/experiencebuilderwidgetpackage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/experiencebuilderwidgetpackage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/features16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/features32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/featureshosted16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/featureshosted32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/feed16.svg +126 -0
- package/dist/cdn/assets/portal-item-type/icons/feed32.svg +140 -0
- package/dist/cdn/assets/portal-item-type/icons/gaussianSplatLayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/gaussianSplatLayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/geocodeservice16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/geocodeservice32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/geodataservice16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/geodataservice32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/geopackage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/geopackage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/geoprocessingmodel16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/geoprocessingmodel32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubevent16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubevent32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubinitiative16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubinitiative32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubinitiativetemplate16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubinitiativetemplate32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubpage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubpage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubproject16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubproject32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubsite16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/hubsite32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/image16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/image32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/imagecollection16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/imagecollection32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/imagery16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/imagery32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/indoorpositioningdataservice16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/indoorpositioningdataservice32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/indoors16.svg +108 -0
- package/dist/cdn/assets/portal-item-type/icons/indoors32.svg +108 -0
- package/dist/cdn/assets/portal-item-type/icons/insightsmodel16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/insightsmodel32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/insightspage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/insightspage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/insightsscript16.svg +12 -0
- package/dist/cdn/assets/portal-item-type/icons/insightsscript32.svg +12 -0
- package/dist/cdn/assets/portal-item-type/icons/insightstheme16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/insightstheme32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/insightsworkbookpackage16.svg +15 -0
- package/dist/cdn/assets/portal-item-type/icons/insightsworkbookpackage32.svg +15 -0
- package/dist/cdn/assets/portal-item-type/icons/instantapps16.svg +68 -0
- package/dist/cdn/assets/portal-item-type/icons/instantapps32.svg +68 -0
- package/dist/cdn/assets/portal-item-type/icons/integratedmeshtileslayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/integratedmeshtileslayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/investigation16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/investigation32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/kernelgatewayconnection16.svg +15 -0
- package/dist/cdn/assets/portal-item-type/icons/kernelgatewayconnection32.svg +15 -0
- package/dist/cdn/assets/portal-item-type/icons/key16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/key32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/kml16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/kml32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/knowledgegraph16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/knowledgegraph32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/knowledgegraphlayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/knowledgegraphlayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/knowledgestudio16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/knowledgestudio32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layergroup16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layergroup2d16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layergroup2d32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layergroup32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layergroup3d16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layergroup3d32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layers16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layers32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layersfeatures16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layersfeatures32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layersfeatureshosted16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layersfeatureshosted32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layersgray16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layersgray32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/linkchart16.svg +44 -0
- package/dist/cdn/assets/portal-item-type/icons/linkchart32.svg +49 -0
- package/dist/cdn/assets/portal-item-type/icons/livestreamvideolayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/livestreamvideolayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mapimages16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mapimages32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/maps16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/maps32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mapsgray16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mapsgray32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mapshowcase16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mapshowcase32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/maptiles16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/maptiles32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/marketplace16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/marketplace32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/markup16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/markup32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/medialayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/medialayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mediaservice16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mediaservice32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mission16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mission32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/missionreport16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/missionreport32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/missiontemplate16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/missiontemplate32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mobilescenepackage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/mobilescenepackage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/nativeapp16.svg +3 -0
- package/dist/cdn/assets/portal-item-type/icons/nativeapp32.svg +3 -0
- package/dist/cdn/assets/portal-item-type/icons/nativeappinstaller16.svg +15 -0
- package/dist/cdn/assets/portal-item-type/icons/nativeappinstaller32.svg +19 -0
- package/dist/cdn/assets/portal-item-type/icons/notebook16.svg +11 -0
- package/dist/cdn/assets/portal-item-type/icons/notebook32.svg +5 -0
- package/dist/cdn/assets/portal-item-type/icons/notebookcodesnippets16.svg +3 -0
- package/dist/cdn/assets/portal-item-type/icons/notebookcodesnippets32.svg +3 -0
- package/dist/cdn/assets/portal-item-type/icons/orthomappingproject16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/orthomappingproject32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/orthomappingtemplate16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/orthomappingtemplate32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/parcellayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/parcellayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/pdf16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/pdf32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/powerpoint16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/powerpoint32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/premiumcontent16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/premiumcontent32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/premiumcredits16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/premiumcredits32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/premiumitem16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/premiumitem32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/propresentation16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/propresentation32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/proproject16.svg +41 -0
- package/dist/cdn/assets/portal-item-type/icons/proproject32.svg +41 -0
- package/dist/cdn/assets/portal-item-type/icons/proreport16.svg +47 -0
- package/dist/cdn/assets/portal-item-type/icons/proreport32.svg +48 -0
- package/dist/cdn/assets/portal-item-type/icons/quickcaptureproject16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/quickcaptureproject32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/rasterprocessingtemplate16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/rasterprocessingtemplate32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/realitymappingproject16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/realitymappingproject32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/realtimeanalytics16.svg +61 -0
- package/dist/cdn/assets/portal-item-type/icons/realtimeanalytics32.svg +68 -0
- package/dist/cdn/assets/portal-item-type/icons/relationaldatabaseconnection16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/relationaldatabaseconnection32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/report16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/report32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/reporttemplate16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/reporttemplate32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/routelayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/routelayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/scenepackage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/scenepackage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerbuilding16.svg +85 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerbuilding32.svg +102 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerline16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerline32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayermesh16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayermesh32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayermultipatch16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayermultipatch32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerpoint16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerpoint32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerpointcloud16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerpointcloud32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerpolygon16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayerpolygon32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayervoxel16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sceneweblayervoxel32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/serviceconnection16.svg +20 -0
- package/dist/cdn/assets/portal-item-type/icons/serviceconnection32.svg +15 -0
- package/dist/cdn/assets/portal-item-type/icons/shapefile16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/shapefile32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sketchlayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sketchlayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/solutions16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/spatiotemporal16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/spatiotemporal32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/spatiotemporaltable16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/spatiotemporaltable32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/spectrallibrary16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/spectrallibrary32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sqlite16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/sqlite32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/statisticaldatacollection16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/statisticaldatacollection32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymap16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymap32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapbriefing16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapbriefing32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapcollection16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapcollection32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapstemplate16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapstemplate32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymaptheme16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymaptheme32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/streamlayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/streamlayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/style16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/style32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/suitabilitymodel16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/suitabilitymodel32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/survey123addin16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/survey123addin32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/survey16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/survey32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/table16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/table32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/taskfile16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/taskfile32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/tiledimagerylayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/tiledimagerylayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/tilepackage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/tilepackage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/tool16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/tool32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/toolsgray16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/toolsgray32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/urbanmodel16.svg +120 -0
- package/dist/cdn/assets/portal-item-type/icons/urbanmodel32.svg +119 -0
- package/dist/cdn/assets/portal-item-type/icons/urbanproject16.svg +5 -0
- package/dist/cdn/assets/portal-item-type/icons/urbanproject32.svg +5 -0
- package/dist/cdn/assets/portal-item-type/icons/utilitynetwork16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/utilitynetwork32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/vectortile16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/vectortile32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/vectortilefile16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/vectortilefile32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/vectortilepackage16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/vectortilepackage32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/webexperiencetemplate16.svg +19 -0
- package/dist/cdn/assets/portal-item-type/icons/webexperiencetemplate32.svg +19 -0
- package/dist/cdn/assets/portal-item-type/icons/websceneglobal16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/websceneglobal32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/webscenelocal16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/webscenelocal32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/wfsogcoptions16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/wfsogcoptions32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/word16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/word32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/workbook16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/workbook32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/workflow16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/workflow32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/xrexperience16.svg +43 -0
- package/dist/cdn/assets/portal-item-type/icons/xrexperience32.svg +43 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/item.js +22 -93
- package/dist/chunks/item2.js +128 -0
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +0 -6
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +223 -525
- package/dist/components/arcgis-portal-ai-assistant/index.js +5 -8
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +91 -0
- package/dist/components/arcgis-portal-item-type/customElement.js +671 -0
- package/dist/components/arcgis-portal-item-type/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-type/index.js +1 -0
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +63 -69
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +1 -1
- package/dist/components/arcgis-portal-user-avatar/customElement.js +18 -19
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +4 -6
- package/dist/loader.js +1 -2
- package/dist/types/lumina.d.ts +5 -2
- package/dist/types/preact.d.ts +6 -2
- package/dist/types/react.d.ts +7 -2
- package/dist/types/stencil.d.ts +5 -2
- package/dist/types/user.d.ts +3 -3
- package/package.json +6 -4
- package/dist/cdn/2EKRHEXO.js +0 -2
- package/dist/cdn/2RLOB43X.js +0 -2
- package/dist/cdn/HTASHDME.js +0 -2
- package/dist/cdn/IAYG2CKA.js +0 -2
- package/dist/cdn/JGJXOYTK.js +0 -2
- package/dist/cdn/KFBICT45.js +0 -2
- package/dist/cdn/KR32IGRK.js +0 -2
- package/dist/cdn/MD6BO6OT.js +0 -4
- package/dist/cdn/N4EPAAMQ.js +0 -109
- package/dist/cdn/NKHB43PS.js +0 -2
- package/dist/cdn/O4YZOGS5.js +0 -2
- package/dist/cdn/PRREQ7M4.js +0 -2
- package/dist/cdn/Q4YVXJFW.js +0 -2
- package/dist/cdn/SKI4HS22.js +0 -2
- package/dist/cdn/SUF4GUWX.js +0 -2
- package/dist/cdn/US2X63ME.js +0 -2
- package/dist/cdn/UXUVTFIJ.js +0 -2
- package/dist/cdn/WLK2L7M6.js +0 -2
- package/dist/cdn/ZMARGQ3L.js +0 -2
- package/dist/cdn/assets/oauth-callback.html +0 -31
- package/dist/components/arcgis-portal-ai-assistant-composer/customElement.js +0 -49
- package/dist/components/arcgis-portal-ai-assistant-composer/index.js +0 -4
- package/dist/components/arcgis-portal-ai-assistant-side-panel/customElement.js +0 -28
- package/dist/components/arcgis-portal-ai-assistant-side-panel/index.js +0 -5
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import a from"./3OTUKLZI.js";import{a as w,b as x}from"./S2PHM4WZ.js";import{a as f}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{I as g,J as o,O as v,h as d,j as n}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{b:b}])=>{function A(s,r){let{fullName:e,firstName:a,lastName:t,username:i}=s;return e||(a&&t?r==="ja"?`${t} ${a}`:`${a} ${t}`:i)}var j=d`:host{max-width:100%;display:flex;align-items:center;min-width:0}.skeleton{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;display:flex;align-items:center}.skeleton-avatar{border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.skeleton-name{background-color:var(--calcite-color-foreground-3);border-radius:var(--calcite-border-radius);width:var(--arcgis-portal-user-avatar-skeleton-width);border-radius:var(--arcgis-portal-user-avatar-spacing);height:var(--arcgis-portal-user-avatar-spacing);margin-inline-start:var(--arcgis-portal-user-avatar-spacing)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.avatar{display:block;flex-grow:0;flex-shrink:0;border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.text{color:var(--calcite-color-text-2);display:flex;flex-direction:column;justify-content:center;min-width:0;text-align:start;margin-inline-start:var(--arcgis-portal-user-avatar-spacing);line-height:calc(var(--arcgis-portal-user-avatar-size) / 2)}.text--no-avatar{margin-inline-start:0}.-text-underline .title{text-decoration:underline}.text--clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.text--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-description{font-weight:500}.description{font-weight:400;color:var(--calcite-color-text-2)}:host([scale="xs"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 18px;--arcgis-portal-user-avatar-spacing: .25rem ;.description{font-size:.625rem;margin-top:-.125rem}.text{line-height:1.35}}:host([scale="s"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 1.5rem ;--arcgis-portal-user-avatar-spacing: .5rem ;--arcgis-portal-user-avatar-skeleton-width: 4rem ;.description{font-size:.625rem}}:host([scale="m"]){font-size:.875rem;--arcgis-portal-user-avatar-size: 2rem ;--arcgis-portal-user-avatar-spacing: .75rem ;--arcgis-portal-user-avatar-skeleton-width: 5rem ;.description{font-size:.75rem}}:host([scale="l"]){font-size:1rem;--arcgis-portal-user-avatar-size: 2.5rem ;--arcgis-portal-user-avatar-spacing: 1rem ;--arcgis-portal-user-avatar-skeleton-width: 6rem ;.description{font-size:.875rem}}`,O=s=>s.thumbnailUrl!==void 0;function c(s,r,e=!1){if(O(s))return s.thumbnailUrl;let a=s.thumbnail;if(!a)return null;if(a.startsWith("http"))return a;let t=x(r);return`${e?"https://www.arcgis.com/sharing/rest/":w(r)}community/users/${s.username}/info/${a}${t&&!e?`?token=${t}`:""}`}var u=class extends g{constructor(){super(...arguments),this.messages=f({name:null}),this.thumbnailUrl=null,this.scale="m",this.hideAvatar=!1}static{this.properties={user:0,portal:0,scale:3,showName:5,hideAvatar:5,heading:1,description:1,underline:5,username:1,wrap:5,checkOnline:5}}static{this.styles=j}async load(){let{username:r,checkOnline:e,portal:a,user:t}=this;if(r&&a){let i=await b(r,a,e);this.user=i,this.thumbnailUrl=c(i,a,e)}else t&&a&&(this.thumbnailUrl=c(t,a,e))}updated(r){let e=r.get("user");e&&this.portal&&(this.thumbnailUrl=c(e,this.portal,this.checkOnline))}renderSkeleton(){return n`<div class="skeleton">${!this.hideAvatar&&n`<div class="skeleton-avatar"></div>`||""}${this.showName&&n`<div class="skeleton-name"></div>`||""}</div>`}renderUser(){let{user:r,messages:e,thumbnailUrl:a,hideAvatar:t,showName:i,description:p,scale:m,underline:k,heading:$}=this;if(!r)return[];let{fullName:z,username:y,id:U}=r,l=!!p,N=(z?.split(" ")||[]).slice(0,2).join(" "),h=this.wrap?"text--clamp":"text--ellipsis";return[!t&&n`<calcite-avatar class="avatar" .scale=${m==="xs"?"s":m} .fullName=${N} .username=${y} .userId=${U} .thumbnail=${a||void 0} .inert=${i||l?!0:void 0}></calcite-avatar>`||"",(i||l)&&n`<span class=${o({text:!0,"text--underline":k,"text--no-avatar":t})}>${i&&n`<span class=${o({title:!0,"has-description":l,[h]:!0})}>${$||A(r,e._lang)}</span>`||""}${l&&n`<span class=${o({description:!0,[h]:!0})}>${p}</span>`||""}</span>`||""]}render(){return this.user&&this.messages._lang?this.renderUser():this.renderSkeleton()}};v("arcgis-portal-user-avatar",u);return u},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as N,b as O,c as P,d as g,e as v,f as A,g as T,n as b,s as E,t as $,v as k}from"./NJMHL2Y7.js";var z=(t,r)=>{let e=t;for(;e;){if(e===r)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},f=(t,r,e)=>{let o=U(r).subscribe;return o(n=>{n.some(i=>z(t,i.target))&&e()})},y={},U=t=>{let r=t.join(","),e=y[r];if(e!==void 0)return e;let o=new Set,n=new MutationObserver(i=>o.forEach(a=>a(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let s={subscribe:i=>(o.add(i),()=>{o.delete(i),o.size===0&&(n.disconnect(),y[r]=void 0)})};return y[r]=s,s},W=(t,r)=>{let e=t;for(;e;){let o=e.closest?.(r);if(o)return o;let n=e.getRootNode?.();if(n===globalThis.document)return;e=n?.host}};var h=(t,r,e)=>W(t,`[${r}]`)?.getAttribute(r)??e;var j=t=>(...r)=>{let e=v(),o=new t(...r),n=o.exports;g(e.at(-1));let s=o.component.manager;s.W(o,n),o.watchExports(s.W.bind(s,o)),A(o);let i=[o.component,...e].reverse();return E(i,a=>a===void 0?void 0:q(o,a,n),n)},q=(t,{host:r,key:e,isReactive:o},n)=>{let s=r,i=s[e]!==t.exports,a=s[e]!==n,c=n!==t.exports;if(i&&!a&&c&&(s[e]=t.exports),r===t.component){if(o){let l=t.component.manager;a&&l.W(t,s[e]),t.onUpdate(p=>{if(p.has(e)){let L=s[e];L!==t.exports&&l.W(t,L)}})}t.O=o?void 0:e}let d=t.component.constructor.elementProperties.get(e)?.readOnly;t.watchExports(()=>{s[e]!==t.exports&&(d?T(()=>{s[e]=t.exports}):s[e]=t.exports)})};var G="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),H=new Set(G),m="en",K={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},I=async(t,r,e="")=>{let o=`${r}/${e}`,n=`${o}${t}.json`;return C[n]??(C[n]=S(t,o)),await C[n]},C={},S=async(t,r)=>{let e=`${r}${t}.json`;try{let o=await fetch(e);if(o.ok)return await o.json()}catch(o){return b("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:o}}),{}}return t===m?{}:await S(m,r)},x=t=>{let r=h(t,"lang",globalThis.navigator?.language||m);return{lang:r,t9nLocale:_(r)}},_=t=>{let[r,e]=t.split("-"),o=r.toLowerCase(),n=o;return e&&(n=`${o}-${e.toUpperCase()}`),n=K[n]??n,H.has(n)?n:e?_(o):m},D=(t,r,e,o)=>{let n,s=()=>B(t,r(),o).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&e(i),n=i}).catch(i=>{b("error","intl","Error updating component locale state",{detail:{error:i}})});return queueMicrotask(s),f(t,["lang"],s)},B=async(t,r,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:n}=x(t),s=`${r}/${e}/t9n`,a=e===null?{}:await I(n,s,"messages.");return{lang:o,t9nLocale:n,t9nStrings:a}};var R=t=>F(void 0,t),fe=t=>r=>F(r,t),w=class extends k{constructor(r,e){super(r);let o=this.exports;try{O(this.component);let n=e(this.component,this),s=this.exports!==o;if(N(n)){s||this.setProvisionalExports(n);let i=n.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a)});this.onLoad(async()=>await i)}else(!s||n!==void 0)&&(this.exports=n),queueMicrotask(()=>super.catchUpLifecycle())}catch(n){this.P.reject(n)}}catchUpLifecycle(){}},F=j(w);var M="ltr",he=()=>R((t,r)=>{r.exports=M,r.onLifecycle(()=>{let e=()=>{let o=h(t.el,"dir",M);r.exports=o==="rtl"?"rtl":"ltr"};return e(),f(t.el,["dir"],e)})}),me=t=>(r={})=>R((e,o)=>{let n=x(e.el),s={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},i=e;o.onLifecycle(()=>D(e.el,()=>t("./assets"),({t9nLocale:c,t9nStrings:u,lang:d})=>{let l={...u,_lang:d,_t9nLocale:c,_loading:!1};o.exports=l;let p=u.componentLabel;typeof p=="string"&&"label"in e&&e.label==null&&(e.label??=p),a(i.messageOverrides)},r.name));let a=c=>{let u=o.exports,d=u._original??u,l=V(d,c);c&&(l._original=d),o.exports=l};return"messageOverrides"in i&&o.onUpdate(c=>{c.has("messageOverrides")&&a(i.messageOverrides)}),r.blocking?(o.setProvisionalExports(s,!1),o.ready):s}),V=(t,r)=>{if(!r)return t;let e={...t};return Object.entries(r).forEach(([o,n])=>{t[o]!==void 0&&(typeof n=="object"?e[o]=V(t[o],n):e[o]=n??t[o])}),e},ge=t=>X,J="arcgisPropertyChange",X=(...t)=>{let r=P(),e=$(J,void 0,r),o=!0;return r.manager.onUpdated(n=>{if(o||!r.el.isConnected){o=!1;return}for(let s of t)n.has(s)&&e.emit({name:s})}),e};export{j as a,W as b,fe as c,he as d,me as e,ge as f};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import"./CFDTXKJ6.js";var e=`This Feature Layer is part of a Feature Service. The Feature Layer contains various fields, each with its own name, type, and description.
|
|
3
|
+
The Feature Layer is a collection of geographic features that represent real-world entities. Each feature in the layer has attributes that provide additional information about the feature. The layer may include point, line, or polygon geometries, depending on the type of data it represents.
|
|
4
|
+
The geometry type for this layer is {layerGeometryType}.
|
|
5
|
+
|
|
6
|
+
Here is the field information for each field in the Feature Layer. Each field has a name, alias, type, valueType and description. These should help you understand the data represented in the Feature Layer.
|
|
7
|
+
|
|
8
|
+
Field Descriptions:
|
|
9
|
+
{fieldInformation}
|
|
10
|
+
|
|
11
|
+
Your task is to :
|
|
12
|
+
|
|
13
|
+
- analyze the field descriptions to understand the data represented in the Feature Layer.
|
|
14
|
+
- Generate the following for the layer:
|
|
15
|
+
- a title: a concise title that accurately reflects the content and purpose of the feature service.
|
|
16
|
+
- a description: a detailed description of the feature layer
|
|
17
|
+
|
|
18
|
+
Consider the following aspects in your description:
|
|
19
|
+
|
|
20
|
+
- purpose of this feature layer
|
|
21
|
+
- types of data and geometric entities represented in the layer
|
|
22
|
+
- sources of the layer information and the geographic area covered
|
|
23
|
+
- potential applications and usefulness of the feature layer in the GIS world
|
|
24
|
+
|
|
25
|
+
If any of the above topics are not applicable, you can skip them. Don't include statements that indicate something this Feature Layer is not or does not have. Avoid listing field names, types, and other technical details.
|
|
26
|
+
|
|
27
|
+
Instructions while generating the title:
|
|
28
|
+
|
|
29
|
+
- Avoid using special characters in the title.
|
|
30
|
+
- Avoid using 'layer' in the title.
|
|
31
|
+
- Avoid using all uppercase letters in the title. Use title case instead.
|
|
32
|
+
- The title should not be too long.
|
|
33
|
+
|
|
34
|
+
You are given Feature Layer descriptions and title.
|
|
35
|
+
|
|
36
|
+
## Existing layer details filled in by a human:
|
|
37
|
+
|
|
38
|
+
{existingLayerTitle}
|
|
39
|
+
{existingLayerSnippet}
|
|
40
|
+
{existingLayerDescription}
|
|
41
|
+
|
|
42
|
+
## Instructions on how to use the information filled in by a human:
|
|
43
|
+
|
|
44
|
+
Remember humans may have more information about the item than just the field and layer descriptions.
|
|
45
|
+
|
|
46
|
+
- Use this information ONLY IF it helps you understand the item better.
|
|
47
|
+
- Use this information ONLY IF it helps you generate a better description and title.
|
|
48
|
+
- Use your knowledge from this information to compensate for any important information that is missing in the field and layer descriptions.
|
|
49
|
+
|
|
50
|
+
## Instructions on what to avoid doing with the information filled in by a human:
|
|
51
|
+
|
|
52
|
+
- you must not use this information in your response as it is.
|
|
53
|
+
- you must not think of this information as the final version.
|
|
54
|
+
- you must not use this information to generate a response without analyzing it.
|
|
55
|
+
- you must not copy this information verbatim in your response.
|
|
56
|
+
`;export{e as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as m}from"./JOYFDD4B.js";import{a as h}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{I as b,L as a,O as d,h as c,j as i,u}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";var g=c`.spacing-y{margin:var(--calcite-spacing-md) 0}.portal-classification-form-element-tooltip{display:flex;justify-content:space-between;align-items:center}`;function s(o,e){return o.uiElement===e}var n=class extends b{constructor(){super(...arguments),this.messages=h(),this.isRequiredErrors=new Set,this.arcgisAttributeValueChange=u()}static{this.properties={validationMsg:16,attributeKey:1,attribute:0,value:0,renderingInfo:0,isRequiredErrors:0}}static{this.styles=g}willUpdate(e){(e.has("renderingInfo")||e.has("isRequiredErrors"))&&(this.validationMsg=this._getValidationMessage())}_getValidationMessage(){if(this.renderingInfo?.attributeValidationResult)return this.renderingInfo.attributeValidationResult;if(this.isRequiredErrors.has(this.attributeKey))return this.messages.requiredfield??"This is a required field."}renderCheckbox(){return s(this.attribute,"checkbox")?i`<calcite-label class="spacing-y" .for=${this.attributeKey} layout=inline><calcite-checkbox .checked=${this.value} id=${this.attributeKey??a} @calciteCheckboxChange=${e=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.checked})} .required=${this.attribute.isRequired??!1} .status=${this.validationMsg?"invalid":"valid"}></calcite-checkbox>${this.attribute.label}</calcite-label>`:null}renderDateInput(){return s(this.attribute,"date")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-input-date-picker id=${this.attributeKey??a} .name=${this.attribute.label} @calciteInputDatePickerChange=${e=>this.isConnected&&this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.value})} overlay-positioning=fixed .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}></calcite-input-date-picker></calcite-label>`:null}renderTextInput(){if(!s(this.attribute,"text"))return null;let e=this.attribute.label,t=this.attribute.description;return i`<calcite-label .for=${this.attributeKey}><div class="portal-classification-form-element-tooltip">${e}${this.attribute.labelTooltip&&i`<div><calcite-icon scale=s icon=information .id=${`tooltip-button-${this.attribute.bannerLabel}`} text-label=${this.messages.information??"Information"??a}></calcite-icon><calcite-tooltip .referenceElement=${`tooltip-button-${this.attribute.bannerLabel}`} placement=right>${this.attribute.labelTooltip}</calcite-tooltip></div>`||""}</div><calcite-input-text id=${this.attributeKey??a} .label=${e} .name=${this.attributeKey} @calciteInputTextChange=${r=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:r.target.value})} .placeholder=${t} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}></calcite-input-text></calcite-label>`}renderSingleSelect(){return s(this.attribute,"single-select")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox selection-mode=single id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.value})} .placeholder=${this.attribute.description??this.messages.selectanoption} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} overlay-positioning=fixed validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value} data-testid=${`single-select-${this.attributeKey}`}>${this._renderSingleSelectComboboxOptions()}</calcite-combobox></calcite-label>`:null}_renderSingleSelectComboboxOptions(){if(!Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return m(this.renderingInfo?.valueExpressionResult,t=>t.label,t=>i`<calcite-combobox-item .selected=${e===t.value} .heading=${t.label} .value=${t.value} data-testid=${`single-combobox-item-${t.value}`}></calcite-combobox-item>`)}_renderComboboxOptions(){if(!Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return this.renderingInfo?.valueExpressionResult.map(t=>i`<calcite-combobox-item .selected=${e?.includes(t.value)} .heading=${t.label} .value=${t.value} data-testid=${`combobox-item-${t.value}`}></calcite-combobox-item>`)}renderMultiSelect(){return s(this.attribute,"multi-select")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>{let t=e.target.value;this.arcgisAttributeValueChange.emit({[this.attributeKey]:t?Array.isArray(t)?t:[t]:void 0})}} .placeholder=${this.attribute.description??this.messages.selectoptions} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}>${this._renderComboboxOptions()}</calcite-combobox></calcite-label>`:null}_renderGroupedComboboxOptions(){if(!this.renderingInfo?.valueExpressionResult||Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return Object.entries(this.renderingInfo?.valueExpressionResult).map(([t,r])=>i`<calcite-combobox-item .selected=${e?.includes(t)} .heading=${t} .value=${t}>${r.map(l=>i`<calcite-combobox-item .selected=${e?.includes(l.value)} .heading=${l.label} .value=${l.value} data-testid=${`grouped-combobox-item-${l.value}`}></calcite-combobox-item>`)}</calcite-combobox-item>`)}renderMultiGroupedSelectNested(){return s(this.attribute,"multi-grouped-select-nested")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>{let t=e.target.value;this.arcgisAttributeValueChange.emit({[this.attributeKey]:t?Array.isArray(t)?t:[t]:void 0})}} .placeholder=${this.attribute.description??this.messages.selectoptions} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}>${this._renderGroupedComboboxOptions()}</calcite-combobox></calcite-label>`:null}render(){switch(this.attribute.uiElement){case"checkbox":return this.renderCheckbox();case"date":return this.renderDateInput();case"multi-select":return this.renderMultiSelect();case"multi-grouped-select-nested":return this.renderMultiGroupedSelectNested();case"single-select":return this.renderSingleSelect();case"text":return this.renderTextInput();default:return i`<div>Not Implemented Yet.</div>`}}};d("arcgis-portal-classification-form-element",n);export{n as ArcgisPortalClassificationFormElement};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{i as o}from"./NJMHL2Y7.js";var c={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},n=Symbol(),e=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,s)=>{this.o=t,this.h=s})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,s,r){this.p=0,this.i=0,(this._=t).addController(this);let i=typeof s=="object"?s:{task:s,args:r};this.v=i.task,this.j=i.args,this.m=i.argsEqual??u,this.k=i.onComplete,this.A=i.onError,this.autoRun=i.autoRun??!0,"initialValue"in i&&(this.u=i.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),s=this.O;this.O=t,t===s||t===void 0||s!==void 0&&this.m(s,t)||await this.run(t)}async run(t){let s,r;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let i=++this.p;this.q=new AbortController;let a=!1;try{s=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,r=l}if(this.p===i){if(s===n)this.i=0;else{if(a===!1){try{this.k?.(s)}catch{}this.i=2,this.o?.(s)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=s,this.l=r}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(h,t)=>h===t||h.length===t.length&&h.every(((s,r)=>!o(s,t[r])));export{c as a,e as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
export default $arcgis.t(([s])=>{var c=async(r,e,t)=>{try{return{result:await r.queryItems({...t,query:`title:${e}`})}}catch(o){return console.error(o),{error:{code:"unhandledError"}}}},u=async(r,e,t)=>{let o=`${e.restUrl}/content/users/${r.id}/items/${t}/generateContext`;try{return{result:(await s(o,{method:"post",responseType:"json",query:{f:"json"}})).data}}catch(n){return console.error("Error fetching item context:",n),{error:{code:"unhandledError"}}}};return{a:c,b:u}},"request")
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),n=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var o=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import b from"./OGQ2PD7M.js";import a from"./PBZ25RYU.js";import"./5WK4GJK2.js";import{a as f}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{I as n,K as c,O as l,h as e,j as s,o}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{a:d,b:h}])=>{var p=e`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`,r=class extends n{constructor(){super(...arguments),this.classificationModel=d(this),this.messages=f(),this._classificationDataTask=h(this),this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.status=this.classificationModel.status,this.missingExistingClassification=!1,this.variant="full",this.autoDestroyDisabled=!1,this.validationErrors=""}static{this.properties={portalClassificationSchema:16,status:16,itemClassification:16,portalItem:0,missingExistingClassification:5,variant:1,autoDestroyDisabled:5,validationErrors:1}}static{this.styles=p}async destroy(){await this.manager.destroy()}willUpdate(a){if(a.has("portalItem")){let{portalItem:i}=this;i?.load().then(()=>{i?.id&&i?.loaded&&i?.classification&&!this.missingExistingClassification?this.classificationModel.validateClassification(this.variant==="preview"?null:i.id,i.classification,i?.portal.restUrl).catch(o(this)).then(t=>{this.validationErrors=t??""}):this.validationErrors=""}).catch(o(this))}}getStyle(){let a={};if(this.variant==="preview"&&(a.fontSize="var(--calcite-font-size-sm)",a.padding="var(--calcite-spacing-xs)"),this.itemClassification&&this.portalClassificationSchema){let i=this.itemClassification.classification,t=this.portalClassificationSchema.classificationMetadata.classificationValueProperties.find(({value:m})=>m===i);t?.backgroundColor&&(a.backgroundColor=t.backgroundColor),t?.textColor&&(a.color=t.textColor)}return a}render(){return this._classificationDataTask.render({pending:void 0,error:void 0,complete:()=>this.portalClassificationSchema&&this.portalItem?.portal.authMode!=="anonymous"?this.validationErrors&&this.variant==="full"?s`<div class="invalid-container"><calcite-icon class="invalid-icon" scale=s icon=exclamation-mark-triangle .textLabel=${this.messages.invalidclassificationerror}></calcite-icon><span class="invalid-message">${this.messages.invalidclassificationerror}</span></div>`:s`<div class="banner" style=${c(this.getStyle())}>${this.itemClassification?.banner??this.messages.notyetclassified??"Not yet classified"}</div>`:""})}};l("arcgis-portal-classification-banner",r);return r},a,b)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import b from"./3OTUKLZI.js";import"./S2PHM4WZ.js";import a from"./AMCZ4UZQ.js";import{c as R}from"./32DRTMS4.js";import{A as S,D as E,G as P,H as g,I as D,J as v,O as L,h as k,j as d,l as A,u,z as M}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{a:O},{a:x,c:U}])=>{var _=(a,e=100)=>{let s;return(...n)=>{let r=()=>{clearTimeout(s),a(...n)};clearTimeout(s),s=setTimeout(r,e)}};var F=M(class extends S{constructor(){super(...arguments),this.key=A}render(a,e){return this.key=a,e}update(a,[e,s]){return e!==this.key&&(E(a),this.key=e),s}});var $=["@","#","$"],K=400;function V(a,e){let s=null;for(let n of e){let r=n.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),i=new RegExp(`${r}"([^"\\n]*)"?$`,"u"),t=a.match(i);if(t){let c=t[0],l=a.length-c.length,h=t[1]??"";(!s||l>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:l})}let o=new RegExp(`${r}[\\p{L}\\p{N}_-]+$`,"u"),m=a.match(o);if(m){let c=m[0],l=a.length-c.length,h=c.slice(n.length);(!s||l>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:l})}}return s}async function Q(a,e={}){return await a.queryGroups(e)}var q=a=>$.includes(a)?a:"@",G=R(a=>{let e=[],s=async i=>await x({requester:async()=>await O(a.portal,i,{num:3}),key:"items",id:i}),n=async i=>await x({requester:async()=>await Q(a.portal,{query:`title:${i}`,num:3}),key:"groups",id:i}),r=_(async(i,t)=>{a.isFetchingEntities=!0;let o=i.toLowerCase();switch(q(t)){case"@":let m=10;a.filteredItemsInfo={type:"user",items:e.filter(h=>h.username?.toLowerCase().includes(o)||h.fullName?.toLowerCase().includes(o)).slice(0,m)};break;case"#":let{result:c}=await s(o);a.filteredItemsInfo={type:"item",items:c?.results??[]};break;case"$":let{results:l}=await n(o);a.filteredItemsInfo={type:"group",items:l};break}(a.filteredItemsInfo?.items?.length??0)===0&&await a.closePopover(),a.isFetchingEntities=!1},K);return{fetchUsers:async()=>{try{let{users:i}=await U(a.portal);e=i??[]}catch(i){e=[],console.error("error fetching org users:",i)}},filterItems:r,getItemText:(i,t)=>{let o="";switch(q(t)){case"@":o=i.username;break;case"#":o=i.title??"";break;case"$":o=i.title??"";break}return o.trim()}}}),y=({id:a,label:e,selected:s,description:n,contentStart:r,onSelect:i})=>F(a,d`<calcite-list-item class=${v({selected:s})} .label=${e} .description=${n} .selected=${s} @pointerdown=${async t=>{t.preventDefault(),t.stopPropagation(),await i()}} ${g(t=>{s&&t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${r}</calcite-list-item>`),j=k`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,w=class extends D{constructor(){super(...arguments),this.calciteTextAreaRef=P(),this.mentionableEntityController=G(this),this.handleInput=e=>{let{bubbleNewValueChange:s,checkForMention:n}=this,r=e.target.value;this._value=r,s(this._value);let i=this.nativeTextAreaRef?.selectionStart??0;n(r,i)},this.handleKeyDown=e=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(e),this.arcgisMentionableTextAreaKeyDown.emit(e);return}switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":e.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":e.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":e.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=e=>{this.arcgisUserMentionableTextAreaChange.emit(e),this.arcgisMentionableTextAreaChange.emit(e)},this.checkForMention=(e,s)=>{let n=e.substring(0,s),r=V(n,this.starters??$);if(r){let{starter:i}=r;this.currentStarter=i,this.filterMentionItems(r),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=e=>{let{mentionText:s,query:n,starter:r,startIndex:i}=e;this.currentMentionQuery=s,this.mentionStartPosition=i;let t=n.toLowerCase();this.mentionableEntityController.filterItems(t,r),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=$,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=u(),this.arcgisMentionableTextAreaChange=u(),this.arcgisMentionableTextAreaKeyDown=u(),this.arcgisUserMentionableTextAreaChange=u(),this.arcgisUserMentionableTextAreaKeyDown=u(),this.renderItemInfo=()=>{let{filteredItemsInfo:e,selectedItemIndex:s,portal:n}=this;if(!e)return null;let{items:r,type:i}=e;switch(i){case"user":return r.map((t,o)=>y({id:t.id,label:`@${t.username}`,description:t.fullName,selected:o===s,contentStart:d`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${n} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(t)}));case"item":return r.map((t,o)=>y({id:t.id??`item-${o}`,label:`#${t.title}`,description:t.id??void 0,selected:o===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return r.map((t,o)=>y({id:t.id??`group-${o}`,label:`${t.title}`,description:t.id??void 0,selected:o===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=j}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(e){let{currentStarter:s,_value:n,mentionStartPosition:r,currentMentionQuery:i,handleClosePopover:t,calciteTextAreaRef:o,nativeTextAreaRef:m,bubbleNewValueChange:c}=this;if(!e||!s)return;let l=this.mentionableEntityController.getItemText(e,s).replaceAll('"',"").trim(),h=/\s/u.test(l)?`${s}"${l}"`:`${s}${l}`,f=(n??"").substring(0,r),p=(n??"").substring(r+i.length),I=`${f}${h} ${p}`;this._value=I,c(this._value);let b=r+h.length+1;t(),await this.updateComplete,o.value?.setFocus(),m&&(m.selectionEnd=b)}willUpdate(e){e.has("value")&&(this._value=this.value??""),e.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let e=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");e&&(this.nativeTextAreaRef=e)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:e,scale:s,_value:n,maxLength:r,rows:i,placeholder:t,readOnly:o,popoverOpen:m,closePopover:c,handleInput:l,handleKeyDown:h,disabled:f,isFetchingEntities:p,filteredItemsInfo:I,renderItemInfo:b,popoverListLabel:T}=this,C=this.calciteTextAreaRef.value,N=I?.items??[];return d`<calcite-text-area .placeholder=${t} .value=${n} .maxLength=${r} .rows=${i} .scale=${s} .readOnly=${o} .disabled=${f} @blur=${c} @calciteTextAreaInput=${l} @keydown=${h} ${g(this.calciteTextAreaRef)}></calcite-text-area>${C&&d`<calcite-popover .open=${m} .placement=${e} class="mention-popover" .label=${T} .referenceElement=${C} trigger-disabled pointer-disabled focus-trap-disabled><div class=${v({"mentionable-list":!0,"mentionable-list--loading":p})}>${p&&d`<calcite-scrim .loading=${p}></calcite-scrim>`||""}${N.length>0&&d`<calcite-list .label=${T}>${b()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};L("arcgis-portal-mentionable-text-area",w);return w},a,b)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{I as l,O as h,j as u,u as e}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";var o=class extends l{constructor(){super(...arguments),this.recognition=null,this.isListening=!1,this.status="idle",this.isSupported=!1,this.arcgisVoiceInputError=e(),this.arcgisVoiceInputInterimTranscription=e(),this.arcgisVoiceInputStart=e(),this.arcgisVoiceInputStop=e(),this.arcgisVoiceInputTranscription=e()}static{this.properties={isListening:16,status:16,isSupported:16,language:1}}async clearText(){this.status="idle"}async startListening(){if(!this.isSupported)return"not-supported";if(this.isListening)return"already-listening";if(!this.recognition)return"uninitialized";try{return this.recognition.start(),null}catch(n){return console.error("Failed to start listening",n),"unhandled"}}async stopListening(){this.isListening&&this.recognition?.stop()}connectedCallback(){super.connectedCallback(),this.initializeSpeechRecognition()}disconnectedCallback(){super.disconnectedCallback(),this.recognition&&this.recognition.stop()}initializeSpeechRecognition(){if(typeof window>"u")return;let n=window.SpeechRecognition??window.webkitSpeechRecognition;if(!n){this.isSupported=!1,this.arcgisVoiceInputError.emit({errorCode:"not-supported"});return}this.isSupported=!0;let t=new n;this.recognition=t,t.continuous=!0,t.interimResults=!0,this.language&&(t.lang=this.language),t.onstart=()=>{this.isListening=!0,this.status="listening",this.arcgisVoiceInputStart.emit()},t.onresult=s=>{let{finalTranscript:i,interimTranscript:a}=Array.from(s.results).slice(s.resultIndex).reduce((r,c)=>{let p=c[0].transcript;return c.isFinal?r.finalTranscript+=p:r.interimTranscript+=p,r},{finalTranscript:"",interimTranscript:""});i?this.arcgisVoiceInputTranscription.emit({text:i}):a&&this.arcgisVoiceInputInterimTranscription.emit({text:a})},t.onerror=s=>{this.isListening=!1,this.status="error";let i="unhandled";switch(s.error){case"no-speech":i="no-speech";break;case"service-not-allowed":case"not-allowed":i="not-allowed";break;default:i="unhandled";break}this.arcgisVoiceInputError.emit({errorCode:i})},t.onend=()=>{this.isListening=!1,this.status="idle",this.arcgisVoiceInputStop.emit()}}render(){return u`<slot></slot>`}};h("arcgis-portal-voice-input",o);export{o as ArcgisPortalVoiceInput};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{$a as da,A,Aa as G,B,Ba as H,Ca as I,Da as J,Ea as K,Fa as L,Ga as M,Ha as N,Ia as O,Ja as P,Ka as Q,La as R,Ma as S,Na as T,Oa as U,Pa as V,Qa as W,Ra as X,Sa as Y,Ta as Z,Ua as _,Va as $,Wa as aa,Za as ba,_a as ca,a,ab as ea,b,bb as fa,c,cb as ga,d,db as ha,e,eb as ia,f,fb as ja,g,gb as ka,h,hb as la,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,wa as C,x,xa as D,y,ya as E,z,za as F}from"./LCWXNCUX.js";import"./CFDTXKJ6.js";export{L as Annotation,H as AsyncBatchedStore,J as BaseChannel,E as BaseCheckpointSaver,k as BaseLangGraphError,G as BaseStore,K as BinaryOperatorAggregate,d as COMMAND_SYMBOL,i as Command,e as CommandInstance,ca as CompiledStateGraph,b as END,v as EmptyChannelError,u as EmptyInputError,R as Graph,l as GraphBubbleUp,o as GraphInterrupt,m as GraphRecursionError,n as GraphValueError,c as INTERRUPT,I as InMemoryStore,w as InvalidUpdateError,F as MemorySaver,da as MessageGraph,ia as MessagesAnnotation,aa as MessagesValue,ja as MessagesZodMeta,ka as MessagesZodState,x as MultipleSubgraphsError,p as NodeInterrupt,g as Overwrite,q as ParentCommand,_ as REMOVE_ALL_MESSAGES,X as ReducedValue,z as RemoteException,a as START,f as Send,ba as StateGraph,A as StateGraphInputError,Z as StateSchema,y as UnreachableNodeError,Y as UntrackedValue,W as UntrackedValueChannel,$ as addMessages,D as copyCheckpoint,C as emptyCheckpoint,ga as entrypoint,O as getConfig,P as getCurrentTaskInput,U as getJsonSchemaFromSchema,ha as getPreviousState,V as getSchemaDefaultGetter,M as getStore,B as getSubgraphsSeenSet,N as getWriter,Q as interrupt,j as isCommand,s as isGraphBubbleUp,t as isGraphInterrupt,h as isInterrupted,r as isParentCommand,T as isSerializableSchema,S as isStandardSchema,$ as messagesStateReducer,ea as pushMessage,fa as task,la as writer};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import a from"./TTZBF4KI.js";import{a as T}from"./S2PHM4WZ.js";import{b as W}from"./5WK4GJK2.js";import{a as q}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{G as C,H as P,I as J,M as A,O as B,h as R,j as y,n as N,p as S,q as j,u as E}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([le,Ie,ve,Fe,x,de,I,pe,fe,L,Z,$,ee,{g:G,i:z,j:V,k:U,l:_,m:H,n:K,o:Q,p:X,q:Y}])=>{var k=(i=>(i.expression="expression/",i))(k||{});function F(i){return i!=null}function te(i,e,t){let s=e.fieldName;if(s.includes(k.expression)){let r=t.get(s);return r?.title?r.title:s}else return ee.supportsFieldConfiguration(i)&&i.getFieldConfiguration(s)?i.getFieldAlias(s)||s:e.label||s}function se(i,e,t){let s="";if(/^raster.(?:item|service)pixelvalue/iu.test(i))s="number";else if(e.has(i)){let r=e.get(i);s=r.type?r.type.toLowerCase():""}else if(t.has(i)){let r=t.get(i);s=r.returnType?r.returnType.toLowerCase():""}else s="number";return s}async function ie(i){return new Map((await me(i)).filter(e=>e.visible).map(e=>[e.name,e]))}function re(i){let e=new Map;return i?.expressionInfos&&i.expressionInfos.forEach(t=>{let s=`${k.expression}${t.name}`;e.set(s,t)}),e}async function me(i){return await new Promise((e,t)=>{switch(i.type){case"feature":case"ogc-feature":case"stream":e(i.fields);break;case"sublayer":{let s=i,r=s?.layer;r?.portalItem&&r.url.includes("https://demographics")&&r.url.includes(".arcgis.com")?r.portalItem?.fetchData().then(a=>{if(a?.thematicGroup){let o=new Map(s.fields.map(n=>[n.name,n])),c=a.thematicGroup.fieldNames,p=[];c.forEach(n=>{o.has(n)&&p.push(o.get(n))}),e(p)}else e(s.fields)}).catch(a=>{t(new Error(a))}):e(s.fields);break}case"imagery":case"imagery-tile":case"wcs":e(i.rasterFields);break;default:e("fields"in i?i.fields??[]:[])}})}function d(i,e){return!i||!e?!1:i.toLocaleLowerCase()===e.toLocaleLowerCase()}async function ae(i,e,t,s){if(!t)return!1;let r=["feature","oriented-imagery"].includes(e.type),a=s?.item??e.portalItem,o=e.sourceJSON;if(!r||!a||!a.portal.user||!U(a)||V(a)||_(a)||H(o)||a.portal.isPortal&&z(a)||["oid","global-id","geometry"].includes(t.type)||await ue(e,t.name,s))return!1;let c=e.sourceJSON.geometryProperties,p=c?.shapeLengthFieldName,n=c?.shapeAreaFieldName;if(d(p,t.name)||d(n,t.name))return!1;let l=e.editFieldsInfo;if(l&&(d(l.creationDateField,t.name)||d(l.creatorField,t.name)||d(l.editDateField,t.name)||d(l.editorField,t.name))||d(e.objectIdField,t.name)||d(e.displayField,t.name)||d(e.typeIdField,t.name)||d(e.subtypeField,t.name)||e.timeInfo&&(d(e.timeInfo.startField,t.name)||d(e.timeInfo.endField,t.name)||d(e.timeInfo.trackIdField,t.name)))return!1;if(!s?.ignoreLayerRenderer&&e.featureReduction){let f=new Set;if(await I.collectFeatureReductionFields(f,e,e.featureReduction),Array.from(f).some(b=>d(b,t.name)))return!1}if(!s?.ignoreLayerRenderer&&(await I.getRendererFields(e.renderer,e.fieldsIndex)).some(f=>d(f,t.name)))return!1;if(!s?.ignoreLayerLabelingInfo){let f=e.labelingInfo?.map(b=>b.labelExpressionInfo?.expression);if(f&&((await I.getExpressionFields(e,f)).some(b=>d(b,t.name))||await oe(e,t,"layer")))return!1}if(!s?.ignoreLayerDefinitionExpression&&e.definitionExpression&&(await $.parseWhereClause(e.definitionExpression,e.fieldsIndex)).fieldNames.some(f=>d(f,t.name))||await ge(e,t,s)||await ye(e,t))return!1;if(await be(e,t))return await Promise.resolve(!1);if(await we(e,t))return await Promise.resolve(!1);if(he(i,e,t)||e.relationships?.map(f=>f.keyField)?.some(f=>d(f,t.name)))return!1;let u=G(a,a.portal.user),v=s?.userItemInfo?.userGroups??await K(e)??[],g=s?.userItemInfo?.itemGroups??await Q(e)??[],w=Y(v,g);if(!u&&!w)return!1;let m=s?.userItemInfo?.relatedItems??await X(a.id,a.portal,{relationshipType:"Service2Service"});return!(m?.data?.relatedItems&&m.data.relatedItems.some(f=>["WMTS","Map Service","Vector Tile Service"].includes(f.type)))}async function ue(i,e,t){let s=`${i.url}/${i.layerId}/fieldGroups`;try{let r=t?.userItemInfo&&"fieldGroups"in t.userItemInfo?t.userItemInfo.fieldGroups:(await Z(s,{query:{f:"json"},responseType:"json"}))?.data?.fieldGroups;return r?r.some(a=>a.fields.some(o=>d(o,e))):!1}catch{return!1}}function he(i,e,t){if(!i)return!1;let s=i.map?.applicationProperties?.viewing?.search;if(s){let r=s.layers?.find(a=>a.id===e.id);if(r){let a=r?.field?.name;if(a)return d(a,t.name)}}return!1}async function oe(i,e,t){let s=t==="layer"?i.labelingInfo?.filter(o=>F(o.where)):i.sourceJSON?.drawingInfo?.labelingInfo?.filter(o=>F(o.where));if(!s?.length)return!1;let r=[...await Promise.all(s.map(async o=>await $.parseWhereClause(o.where,i.fieldsIndex)))],a=!1;for(let o=0;o<r.length;o++){let c=r[o].fieldNames?.some(p=>d(p,e.name));if(!a&&c){a=!0;break}}return await Promise.resolve(a)}async function ge(i,e,t){let s=i.portalItem;if(!s)return!1;let r=`${T(s.portal)}content/items/${s.id}/data`,a=(t?.userItemInfo?.itemData??await Z(r,{query:{f:"json"},responseType:"json"}))?.data;if(!a)return!1;if(a?.layers){let o=a.layers.find(l=>l.id===i.layerId),c=o?.layerDefinition?.drawingInfo?.renderer,p=o?.layerDefinition?.featureReduction,n=o?.layerDefinition?.definitionExpression;if(!c&&!p&&!n)return!1;if(!t?.ignoreItemRenderer&&c){let l=L.fromJSON(c);if((await I.getRendererFields(l,i.fieldsIndex)).some(u=>d(u,e.name)))return!0}if(!t?.ignoreItemFeatureReduction&&p&&await ne(i,e,p)||n&&(await $.parseWhereClause(n,i.fieldsIndex)).fieldNames.some(l=>d(l,e.name)))return!0}return!1}async function ye(i,e){let t=i.sourceJSON,s=t?.drawingInfo?.renderer,r=t?.featureReduction;if(!s&&!r)return!1;if(s){let a=L.fromJSON(s);if((await I.getRendererFields(a,i.fieldsIndex)).some(o=>d(o,e.name)))return!0}return!!(r&&await ne(i,e,r))}async function be(i,e){let t=i.sourceJSON?.drawingInfo?.labelingInfo;if(!t)return await Promise.resolve(!1);let s=t?.map(r=>r.labelExpressionInfo?.expression);if(s){if((await I.getExpressionFields(i,s)).some(r=>d(r,e.name)))return await Promise.resolve(!0);if(await oe(i,e,"service"))return await Promise.resolve(!0)}return await Promise.resolve(!1)}async function we(i,e){let t=i.sourceJSON?.definitionQuery;return t?(await $.parseWhereClause(t,i.fieldsIndex)).fieldNames.some(s=>d(s,e.name))?await Promise.resolve(!0):await Promise.resolve(!1):await Promise.resolve(!1)}async function ne(i,e,t){let s=t.type==="binning"?pe.fromJSON(t):fe.fromJSON(t),r=new Set;return await I.collectFeatureReductionFields(r,i,s),!!Array.from(r).some(a=>d(a,e.name))}var h=new Map;h.set("oid","key");h.set("guid","key");h.set("global-id","key");h.set("blob","binary");h.set("integer","integer");h.set("small-integer","integer");h.set("big-integer","integer");h.set("single","number");h.set("double","number");h.set("long","number");h.set("number","number");h.set("date","date-time");h.set("date-only","calendar");h.set("time-only","clock");h.set("timestamp-offset","time-zone");h.set("string","string");var Ne=({fieldType:i})=>y`<calcite-icon scale=s .icon=${h.get(i)}></calcite-icon>`,Ee=R`.dialog{--calcite-dialog-max-size-y: 60%}.dialog-content-wrapper{position:relative;min-height:100px}.hide-overflow{overflow:hidden}.field-icons{padding:0 var(--calcite-spacing-lg);display:flex;align-items:center}.warning{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);margin-bottom:var(--calcite-spacing-md)}.warning-message{font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold)}.loader-container{position:absolute;height:100%;width:100%;top:0;right:0;display:none;z-index:40;overflow:hidden;background:#fffffff2;padding:0}.active{display:flex;flex-direction:column;align-items:center;justify-content:center}.loader{padding:0}.loader-text{font-weight:var(--calcite-font-weight-medium);text-align:center;margin-right:6.25rem;margin-left:6.25rem}`,O=class extends J{constructor(){super(...arguments),this.arcadeExpMap=new Map,this.cancelNode=C(),this.dialogNode=C(),this.layerFields=[],this.layerFieldsMap=new Map,this.messages=q({blocking:!0}),this.deleteInProgress=!1,this.fieldsAreDeletable=!1,this._propWatcherTask=new W(this,{task:async([e,t])=>{let s=F(e)&&F(t);if(F(e)||N("error",this,S("layer")),F(t)||N("error",this,S("fieldNames")),!s)throw new Error("Required properties are missing");this._propWatcherTask.autoRun=!1,await this.processProps()},args:()=>[this.layer,this.fieldNames]}),this.arcgisBeforeModalClose=E(),this.arcgisClose=E(),this.arcgisBeforeDelete=E(),this.arcgisFieldsDeleted=E()}static{this.properties={config:0,fieldNames:0,layer:0,mapView:0,options:0}}static{this.styles=Ee}async processProps(){let{layer:e,mapView:t,fieldNames:s}=this;if(!e||!s){this.fieldsAreDeletable=!1;return}e.loaded||await e.load(),this.layerFields=e.fields.filter(a=>s.includes(a.name));let r=s.some(a=>!e.fields.find(o=>o.name===a));if(!this.layerFields?.length||r)this.fieldsAreDeletable=!1;else{let a=await Promise.all(this.layerFields.map(async o=>await ae(t,e,o,this.options)));if(this.fieldsAreDeletable=a.every(o=>o),!this.fieldsAreDeletable)return}if(this.layerFieldsMap=await ie(e),this.options?.ignorePopupTemplate||(this.arcadeExpMap=re(e.popupTemplate)),this.portal=e.portalItem?.portal??this.options?.portal,this.item=e.portalItem??this.options?.item,!this.item){this.fieldsAreDeletable=!1;return}await Fe.getCredential(this.item.url.replace("rest/services","rest/admin/services"))}getFieldLabel(e){let{layer:t,arcadeExpMap:s}=this;if(this.options?.ignorePopupTemplate)return this.getFieldDisplayNameFromLayerFields(e);{let r=(t.popupTemplate??t.createPopupTemplate()).fieldInfos?.find(a=>a.fieldName===e);return r?te(t,r,s):this.getFieldDisplayNameFromLayerFields(e)}}getFieldDisplayNameFromLayerFields(e){let{layer:t}=this,s=this.layerFieldsMap.get(e);return de.supportsFieldConfiguration(t)?t.getFieldAlias(e):s.alias??s.name}async deleteFields(){let{layer:e,fieldNames:t}=this,s=`${e.url.replace("/rest/services","/rest/admin/services")}/${e.layerId}/deleteFromDefinition`,r={fields:t.map(o=>({name:o}))},a={deleteFromDefinition:JSON.stringify(r)};await x(s,{query:{...a,f:"json",async:!1},method:"post",responseType:"json"}).then(async o=>{if(o.data?.success){let c=`${e.url}/${e.layerId}`;t.forEach(n=>{e.type==="feature"&&e.floorInfo?.floorField===n&&(e.floorInfo=null)});let p=await x(c,{query:{f:"json"},responseType:"json"});if(p){let n=p.data;this.currentLayerInfo=p.data,n&&(this.updateTypesAndTemplatesOnLayer(),t.forEach(l=>{n.templates?.length?n.templates.forEach(u=>delete u.prototype.attributes[l]):n.types?.forEach(u=>{u.templates.forEach(v=>delete v.prototype.attributes[l])})}),this.updateFeatureService(n))}else this.handleError()}},()=>this.handleError())}updateTypesAndTemplatesOnLayer(){let{currentLayerInfo:e}=this,t=e;if(t.templates?.length){let s=this.updateTemplatesList(t.templates);t.templates=s}else if(t.types){let s=t.types;t.types=[],s.forEach(r=>{r.templates=this.updateTemplatesList(r.templates),this.addType(t,r)})}}updateTemplatesList(e){let{currentLayerInfo:t,messages:s}=this,r=[];return(e??[]).forEach(a=>{let o=new Ie;o.description=a.description??"",o.name=a.name||s.newFeature,o.drawingTool=a.drawingTool||"point";let c={};t.fields.forEach(n=>{let l=!1;for(let u=0;u<a.prototype.attributes.length;u++)if(a.prototype.attributes[u]===n.name){l=!0,c[n.name]=a.prototype.attributes[n.name];break}!l&&n.editable&&(c[n.name]=n.defaultValue||null)});let p=new ve({attributes:c});o.prototype=p,r.push(o)}),r}addType(e,t){e.types?e.types.some(s=>s.id===t.id)||e.types.push(t):e.types=[t]}async updateFeatureService(e){let{layer:t,fieldNames:s}=this,r={templates:e.templates,types:e.types},a=`${t.url.replace("/rest/services","/rest/admin/services")}/${t.layerId}/updateDefinition`,o={f:"json",updateDefinition:JSON.stringify(r)};await x(a,{query:{...o,f:"json"},method:"post",responseType:"json"}).then(async c=>{if(c.data?.success){let p=`${T(this.portal)}content/items/${this.item.id}/data`;if(this.options?.ignorePopupTemplate||s.forEach(n=>{t.popupTemplate?.fieldInfos&&(t.popupTemplate.fieldInfos=t.popupTemplate.fieldInfos.filter(l=>l.fieldName!==n)),t.popupTemplate?.content?.forEach((l,u)=>{l.type==="fields"&&l.fieldInfos&&((t.popupTemplate?.content)[u].fieldInfos=(t.popupTemplate?.content)[u].fieldInfos?.filter(v=>v.fieldName!==n))})}),t.attributeTableTemplate){let n=t.attributeTableTemplate.clone();n.elements=n.elements.filter(l=>!(l.type==="field"&&s.includes(l.fieldName))),n.orderByFields=n.orderByFields.filter(l=>!s.includes(l.field)),t.attributeTableTemplate=n}if(t.fieldConfigurations?.length){let n=le.clone(t.fieldConfigurations).filter(l=>!s.includes(l.name));t.fieldConfigurations=n}await x(p,{query:{f:"json"},responseType:"json"}).then(async n=>{let l=n.data;if(l?.layers||l?.tables){let u=t.isTable,v=u?l.tables:l.layers,g=v?.find(w=>w.id===t.layerId);if(s.forEach(w=>{g?.attributeTableInfo?.attributeTableElements&&(g.attributeTableInfo.attributeTableElements=g.attributeTableInfo.attributeTableElements.map(m=>{if(m.type==="field")return m.fieldName===w?void 0:m;if(m.type==="group"&&Array.isArray(m.attributeTableElements)){let f=m.attributeTableElements.filter(b=>!(b.type==="field"&&b.fieldName===w));return f.length?{...m,attributeTableElements:f}:void 0}return m}).filter(Boolean),g.attributeTableInfo.orderByFields=g.attributeTableInfo.orderByFields.filter(m=>m.field!==w))}),g?.layerDefinition?.fieldConfigurations&&(g.layerDefinition.fieldConfigurations=g.layerDefinition.fieldConfigurations.filter(w=>!s.includes(w.name))),g?.popupInfo){s.forEach(b=>{g.popupInfo.fieldInfos=g.popupInfo.fieldInfos.filter(D=>D.fieldName!==b),g.popupInfo.popupElements?.forEach((D,M)=>{D.type==="fields"&&D.fieldInfos&&(g.popupInfo.popupElements[M].fieldInfos=g.popupInfo.popupElements[M].fieldInfos.filter(ce=>ce.fieldName!==b))})});let w=`${T(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`,m={};u?(m.tables=v,l.layers&&(m.layers=l.layers)):(m.layers=v,l.tables&&(m.tables=l.tables));let f={f:"json",text:JSON.stringify(m)};await x(w,{query:{...f},method:"post",responseType:"json"}).then(b=>{b.data?.success?this.handleSuccess():this.handleError()},()=>this.handleError())}else this.handleSuccess()}else n.httpStatus===200&&(!n.data||JSON.stringify(n.data)==="{}")?this.handleSuccess():this.handleError()},()=>this.handleError())}},()=>this.handleError())}handleSuccess(){this.arcgisFieldsDeleted.emit(),this.dialogNode?.value&&(this.dialogNode.value.open=!1),this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("success"):this.displaySuccessAlert()}handleError(e){this.dialogNode?.value&&(this.dialogNode.value.open=!1),e?this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("read-only-error"):this.displayReadOnlyErrorAlert():this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("error"):this.displayErrorAlert()}displaySuccessAlert(){let{messages:e,fieldNames:t}=this;this.successAlertNode&&(this.successAlertNode.parentElement?.removeChild(this.successAlertNode),this.successAlertNode=void 0),this.successAlertNode=A(y`<calcite-alert .label=${t.length===1?e.fieldDeleted:e.fieldsDeleted} kind=success icon=check-circle auto-close open><div slot=message>${t.length===1?e.fieldDeleted:e.fieldsDeleted}</div></calcite-alert>`),document.body.append(this.successAlertNode)}displayErrorAlert(){let{messages:e}=this;this.errorAlertNode&&(this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode),this.errorAlertNode=void 0),this.errorAlertNode=A(y`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close open><div slot=message>${e.fieldDeletionUnsuccessful}</div></calcite-alert>`),document.body.append(this.errorAlertNode)}displayReadOnlyErrorAlert(){let{messages:e,portal:t}=this;this.errorAlertNode&&(this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode),this.errorAlertNode=void 0),this.errorAlertNode=A(y`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close auto-close-duration=slow open><div slot=title>${e.error}</div><div slot=message>${t.isPortal?e.readOnlyErrorMessageEnterprise:e.readOnlyErrorMessage}</div>${!t.isPortal&&y`<calcite-link slot=link target=_blank href=https://status.arcgis.com>${e.healthDashboard}</calcite-link>`||""}</calcite-alert>`),document.body.append(this.errorAlertNode)}render(){let{messages:e,fieldsAreDeletable:t,fieldNames:s,deleteInProgress:r}=this;return this._propWatcherTask.render({complete:()=>(t||(s?.length?s?.length===1?N("error",this,"Field cannot be deleted"):N("error",this,"One or more fields cannot be deleted"):N("error",this,j("fieldNames"))),y`<calcite-dialog class="dialog" width=s open modal outside-close-disabled escape-disabled @calciteDialogClose=${()=>this.arcgisClose.emit()} .heading=${s?.length===1?e.deleteField:e.deleteFields} ${P(this.dialogNode)}>${t?y`<div class=${`dialog-content-wrapper ${r?"hide-overflow":""}`}>${this.renderDeleteLoader()}<calcite-label>${s.length===1?e.deletePrompt:e.deleteMultiplePrompt}</calcite-label>${this.renderFieldsPreview()}</div>${this.renderCancelButton()}${this.renderDeleteButton()}`:this.renderError()}</calcite-dialog>`)})}renderError(){let{messages:e}=this;return y`<div class="loader-container active"><div class="loader-text">${e.errorOccurred}</div></div>`}renderDeleteLoader(){let{messages:e,fieldNames:t,deleteInProgress:s}=this;return y`<div class=${`loader-container ${s?"active":""}`}><calcite-loader class="loader" .label=${t.length===1?e.deletingField:e.deletingFields} .hidden=${!s}></calcite-loader><div class="loader-text">${t.length===1?e.deletingField:e.deletingFields}</div></div>`}renderFieldsPreview(){let{fieldNames:e,layerFields:t,layerFieldsMap:s,arcadeExpMap:r,messages:a}=this;return y`<calcite-list .label=${a.fields}>${e.map(o=>{let c=t.find(p=>p.name===o);return y`<calcite-list-item .label=${this.getFieldLabel(o)} .description=${`{${o}}`} .value=${o} .disabled=${!c.editable}><div slot=actions-end class="field-icons">${Ne({fieldType:se(o,s,r)})}</div></calcite-list-item>`})}</calcite-list>`}renderCancelButton(){let{messages:e}=this;return y`<calcite-button @click=${()=>this.dialogNode.value.open=!1} slot=footer-end appearance=outline ${P(this.cancelNode)}>${e.cancel}</calcite-button>`}renderDeleteButton(){let{messages:e,fieldNames:t}=this;return y`<calcite-button kind=danger slot=footer-end @click=${async s=>{let{portal:r}=this;s.currentTarget.disabled=!0,this.cancelNode.value.disabled=!0,this.dialogNode.value.closeDisabled=!0,r.sourceJSON?.isReadOnly?this.handleError(!0):(this.deleteInProgress=!0,this.requestUpdate(),this.arcgisBeforeDelete.emit(),await this.deleteFields())}}>${t.length===1?e.deleteField:e.deleteFieldsWithNumber.replace("${number}",`${t.length}`)}</calcite-button>`}};B("arcgis-portal-field-delete",O);return O},"core/lang","layers/support/FeatureTemplate","Graphic","identity/IdentityManager","request","applications/PortalApp/layerUtils","layers/support/fieldUtils","layers/support/FeatureReductionBinning","layers/support/FeatureReductionCluster","renderers/support/jsonUtils","request","core/sql","applications/PortalApp/layerUtils",a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import a from"./TTZBF4KI.js";import"./S2PHM4WZ.js";import{a as C}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{A as b,G as y,H as I,I as w,L as k,O as R,P as $,h as u,j as l,k as h,l as m,u as f,y as g,z as v}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([S,{p:M}])=>{var p=class extends b{constructor(e){if(super(e),this.it=m,e.type!==g.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===h)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};p.directiveName="unsafeHTML",p.resultType=1;var T=v(p);var L=u`.thumbnail-container{width:100%}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`,P=["3DInsetMap","3DScene","3DViz","AttachmentViewer","CapacityAnalysis","Cascade","Compare","Compare/Configure","Compare/Multiviewer","Compare/Search","Compare/SideBySideViewer_Configure","Compare/storytelling_compare","Compare/storytelling_sidepanel","Compare/storytelling_tabbed","Compare3d","CompareAnalysis","CompareMaps","CrowdsourceManager","CrowdsourcePolling","CrowdsourceReporter","Directions","Edit","Editor","Elevations","ElevationsProfile","Embed","Filter","FilterGallery","GeoForm","GeoList","GeoTour","HeaderFooter","Identify","ImageInterpretation","ImageMask","ImageVisit","ImageryViewer","ImpactSummary","InformationLookup","InteractiveFilter","InteractiveLegend","LayerShowcase","Legend","LiveMaps","LocalPerspective","MapAndAppGallery","MapCarousel","MapJournal","MapSeries","Shortlist","MapTools","MapTour","Media","MinimalGallery","Minimalist","MobileViewer","Nearby","OnePane","Panels","PanelsLegend","Profile","PublicGallery","PublicInformation","ServiceLookup","SimpleMapViewer","SimpleViewer","SocialMedia","Solutions/s2.html?app=apps2/FindEditFilter","Solutions/s2.html?app=apps2/Finder","Solutions/s2.html","StoryMapBasic","StorytellingSwipe","StorytellingTextLegend","Styler","SummaryViewer","Time","TimeAware","TwoPane","View","Viewer","ZoneLookup"],U=i=>{if(!i)return!1;let e=P.some(t=>{let r=t.includes(".html"),a=`/apps/${t}${r?"":"/"}`;return decodeURIComponent(i.url)?.includes(a)});return i.type==="Web Mapping Application"&&!!i.url&&e};function D(i){let e=["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","SwipeSpyglass","Story Map"];return i.type==="Web Mapping Application"&&(_(e,i)||j(i))}function j(i){return["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","StorytellingSwipe"].some(e=>{let t=`/apps/${e}/index.html`;return decodeURIComponent(i.url)?.includes(t)})}function _(i,e){return i?.some(t=>e?.typeKeywords?.includes(t))}function x(i){let e=H(i);return $(`assets/portal-item-thumbnail/${e}`)}function H(i){let e=i.type?.toLowerCase(),t=i.typeKeywords||[];switch(e){case"web mapping application":return"webapp.avif";case"mobile application":return"mobileapp.avif";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets.avif";case"notebook":return"notebook.avif";case"style":return t.includes("Dictionary")?"dictionarystyle.avif":"style.avif";case"feature service":return t.includes("Location Tracking View")?"locationtrackingservice.avif":t.includes("IndoorPositioningDataService")?"indoor-positioning-data-service.avif":"default.avif";case"pro presentation":return"pro-presentation.avif";case"reality mapping project":return"realitymappingproject.avif";case"raster function template":return"rasterfunctiontemplate.avif";case"workforce project":return"workforceproject.avif";case"hub initiative":return"hubinitiative.avif";case"hub page":return"hubpage.avif";case"hub site application":case"site application":return"hubsite.avif";case"hub event":return"hubevent.avif";case"hub project":return"hubproject.avif";case"dashboard":return t.includes("ArcGIS Dashboards")?"dashboards.avif":"opsdashboard.avif";case"geoprocessing service":return t.includes("Notebook Web Tool")?"notebookwebtool.avif":"webtool.avif";case"web scene":case"scene service":return"scene.avif";case"ortho mapping project":return"orthomappingproject.avif";case"ortho mapping template":return"orthomappingtemplate.avif";case"insights theme":return"insightstheme.avif";case"insights workbook package":return"insightsworkbookpackage.avif";case"solution":return"solution.avif";case"mobile scene package":return"mobilescenepackage.avif";case"deep learning package":return"deeplearningpackage.avif";case"big data analytic":return"bigdataanalytic.avif";case"real time analytic":return"realtimeanalytic.avif";case"feed":return"feed.avif";case"excalibur imagery project":return"excaliburimageryproject.avif";case"storymap":return t?.includes("storymapcollection")?"storymapcollection.avif":"storymap.avif";case"survey123 add in":return"survey123addin.avif";case"mission":return"mission.avif";case"mission template":return"missiontemplate.avif";case"quickcapture project":return"quickcaptureproject.avif";case"pro report":return"proreport.avif";case"pro package":return"propackage.avif";case"pro report template":return"proreporttemplate.avif";case"urban model":return"urbanmodel.avif";case"urban project":return"urbanproject.avif";case"web experience":return"webexperience.avif";case"web experience template":return"webexperiencetemplate.avif";case"experience builder widget":return"experiencebuilderwidget.avif";case"experience builder widget package":return"experiencebuilderwidgetpackage.avif";case"workflow":return"workflow.avif";case"insights script":return"insightsscript.avif";case"kernel gateway connection":return"kernelgatewayconnection.avif";case"hub initiative template":return"hubinitiativetemplate.avif";case"image service":return t?.includes("Tile Imagery")?"tiledimagerylayer.avif":"imagerylayer.avif";case"mission report":return"missionreport.avif";case"administrative report":return"administrativereport.avif";case"storymap theme":return"storymaptheme.avif";case"knowledge graph":return"knowledgegraph.avif";case"knowledge graph layer":return"knowledgegraphlayer.avif";case"knowledge studio project":return"knowledgestudio.avif";case"earth configuration":return"earthconfiguration.avif";case"link chart":return"linkchart.avif";case"investigation":return"investigation.avif";case"apache parquet":return"apacheparquet.avif";case"curated collection":return"curatedcollection.avif";case"video service":return"mediaservice.avif";case"geodata service":return"geodataservice.avif";case"suitability model":return"suitabilitymodel.avif";case"esri classifier definition":return"classifierdefinition.avif";case"esri spectral library":return"spectrallibrary.avif";case"deep learning studio project":return"deeplearningstudioproject.avif";case"esri classification schema":return"classificationschema.avif";case"insights data engineering workbook":return"dataengineeringworkbook.avif";case"insights data engineering model":return"dataengineeringmodel.avif";case"discussion":return"discussion.avif";case"api key":return"apikey.avif";case"data pipeline":return"datapipeline.avif";case"analysis model":return"analysismodel.avif";case"service connection":return"serviceconnection.avif";case"xr experience":return"xrexperience.avif";case"3dtiles service":return t?.includes("GaussianSplat")?"gaussiansplatlayer.avif":"default.avif";default:return"default.avif"}}function F(i,e,t){let{restUrl:r}=i,a=V(i),n=a?`token=${a}`:"",c=`${r}/content/items/${e.id}`;if(e.thumbnail){let o=e.thumbnailUrl;if(o){let s=new URL(o);return s.searchParams.append("w","400"),s.href}return`${c}/info/${e.thumbnail}?w=400${a?"&":""}${n}`}else if(e.type==="Image")return`${c}/data?${n}`;return x(e)}function V(i){return i?.credential?.token||i?.token||i?.user?.credential?.token||i?.portalUser?.token||""}function E({portal:i,usePortalHostname:e}){let{customBaseUrl:t,portalHostname:r,urlKey:a}=i,{protocol:n}=window.location,c=!e&&a?`${a}.${t}`:r;return`${n}//${c}`}var A=5e3,d=class extends w{constructor(){super(...arguments),this.replacementId=null,this.replacementItemInRecycleBin=!1,this.hasInaccessibleReplacementItem=!1,this.thumbnailUrl=null,this.timer=void 0,this.t9n=C({blocking:!0}),this.primaryActionRef=y(),this.getItemDetailsUrl=({portal:e,itemId:t,redirect:r})=>{let a=E({portal:e,usePortalHostname:!this.user});return a?`${`${a}/home`}/item.html?id=${t}${r?"&performRedirectAction=true":""}`:""},this.performRedirectAction=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId,redirect:!0}),"_self")},this.viewItemDetailsPage=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId??this.itemId}),this.canRedirect?"_self":"_blank")},this.item=null,this.replacementItem=null,this.redirectAction=null,this.canRedirect=!1,this.redirectCancelled=!1,this.open=!1,this.redirectTimeRemaining=A/1e3,this.arcgisPortalReplacementItemFetch=f()}static{this.properties={item:16,replacementItem:16,redirectAction:16,canRedirect:16,redirectCancelled:16,open:16,redirectTimeRemaining:16,itemId:1,portal:0,user:0}}static{this.styles=L}async setFocus(){this.primaryActionRef.value?.setFocus()}willUpdate(e){(e.has("itemId")||e.has("portal")||e.has("user"))&&(this.user??=this.portal?.user??null,this.initItem())}setupTimer({onComplete:e}){typeof this.timer=="number"&&clearInterval(this.timer),this.redirectTimeRemaining=A/1e3,this.timer=setInterval(()=>{if(this.redirectTimeRemaining<=0){clearInterval(this.timer),this.timer=void 0,e();return}this.redirectTimeRemaining-=1},1e3)}cancelTimer({onCancel:e}={}){e?.(),clearInterval(this.timer)}handleClose(){this.cancelTimer(),this.itemId="",this.item=null,this.open=!1}cancelRedirect(){this.cancelTimer(),this.redirectCancelled=!0}isItemRetired(e){return U(e)||D(e)}async initItem(){if(!this.itemId)return;let{itemId:e,portal:t,performRedirectAction:r}=this,a=new S({id:e,portal:t});this.item=await a?.load();let n=await M(e,t,{relationshipType:"ReplacementItem2Item",direction:"reverse"},!0),c=n.data?.relatedItems?.[0];this.replacementItemInRecycleBin=c?.inRecycleBin;let o=c?.id,s=!this.replacementItemInRecycleBin&&o?new S({id:o,portal:t}):null;await s?.load(),this.replacementItem=s,this.hasInaccessibleReplacementItem=this.replacementItemInRecycleBin||!s&&n.data?.aggregations?.total?.count>0&&n.data?.relatedItems?.length===0,this.arcgisPortalReplacementItemFetch.emit({replacementItem:this.hasInaccessibleReplacementItem?{}:s||null}),this.replacementItem=s,this.thumbnailUrl=F(t,s??this.item),this.canRedirect=!!s&&this.isItemRetired(a),this.replacementId=s?.id||null,this.canRedirect&&this.setupTimer({onComplete:()=>r()}),this.open=!0}getReplacementHeading(){let{t9n:e,hasInaccessibleReplacementItem:t,canRedirect:r}=this;return t?e.replacementUnavailable:r?e.redirectToReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retiredTitle:e.replacementAvailable}getReplacementMessage(){let{t9n:e,hasInaccessibleReplacementItem:t,canRedirect:r}=this;return t?e.retiredReplacementUnavailable:r?e.deprecatedHasReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retired:e.deprecatedHasReplacement}getRedirectActionMessage(){let{t9n:e,canRedirect:t,redirectTimeRemaining:r,redirectCancelled:a}=this;return a?e.redirectToReplacement:t?e.redirect.replace("${seconds}",`${r}`):e.moreDetails}renderCard(e){let{canRedirect:t,t9n:r}=this;return l`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl||void 0)??k} @error=${async()=>this.thumbnailUrl=x(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${r.ownedBy?.replace("${owner}",e.owner||"")||""}</span>${t&&l`<calcite-link slot=footer-start icon-end=launch icon-flip-rtl=end .href=${this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId})} target=_blank>${r.moreDetails}</calcite-link>`||""}</calcite-card>`}render(){let{open:e,t9n:t,item:r,replacementItem:a,canRedirect:n,redirectCancelled:c}=this;if(!(!r||!this.isItemRetired(r)))return l`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${()=>this.handleClose()}><div class="replacement-container"><div class="replacement-message">${T(this.getReplacementMessage()?.replace("${itemTitle}",this.item?.title||""))}</div>${this.renderCard(n?a:r)}</div>${n&&!c&&l`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${()=>{this.cancelRedirect()}}>${t.cancelRedirection}</calcite-button>`||""}<calcite-button slot=footer-end @click=${()=>{this.cancelTimer(),n?this.performRedirectAction():this.viewItemDetailsPage()}} .iconEnd=${n?void 0:"launch"} icon-flip-rtl=end ${I(this.primaryActionRef)}>${this.getRedirectActionMessage()}</calcite-button></calcite-dialog>`}};R("arcgis-portal-replacement-item-redirect",d);return d},"portal/PortalItem",a)
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import"./CFDTXKJ6.js";var e=`## GIS Agent Orchestrator
|
|
3
|
+
|
|
4
|
+
You are an orchestrator for an ArcGIS Maps SDK for JavaScript system.
|
|
5
|
+
|
|
6
|
+
Your job is to decide the single best next agent to execute for the current step.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Inputs
|
|
11
|
+
|
|
12
|
+
You are given:
|
|
13
|
+
|
|
14
|
+
- the latest user request
|
|
15
|
+
- relevant chat history
|
|
16
|
+
- the list of registered agents
|
|
17
|
+
- optional prior steps from earlier agent executions
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Output
|
|
22
|
+
|
|
23
|
+
Return either:
|
|
24
|
+
|
|
25
|
+
- one decision with:
|
|
26
|
+
1. \`agentId\` \u2014 the next agent to execute
|
|
27
|
+
2. \`assignedTask\` \u2014 a clear, actionable task for that agent
|
|
28
|
+
3. \`requiresFollowUp\` \u2014 whether another orchestration step will likely be needed after this agent succeeds
|
|
29
|
+
|
|
30
|
+
- or \`null\` if no registered agent applies
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Important
|
|
35
|
+
|
|
36
|
+
- Return \`null\` only when the request is clearly outside the scope of all registered agents.
|
|
37
|
+
- If any agent can take the next useful step, select the best one instead of returning \`null\`.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Context
|
|
42
|
+
|
|
43
|
+
### Latest user request
|
|
44
|
+
|
|
45
|
+
{userRequest}
|
|
46
|
+
|
|
47
|
+
### Registered agents
|
|
48
|
+
|
|
49
|
+
Format:
|
|
50
|
+
{{id: string, name: string, description: string}}[]
|
|
51
|
+
|
|
52
|
+
{registeredAgents}
|
|
53
|
+
|
|
54
|
+
### Prior steps
|
|
55
|
+
|
|
56
|
+
Each step has:
|
|
57
|
+
|
|
58
|
+
- \`agentId: string\`
|
|
59
|
+
- \`assignedTask: string\`
|
|
60
|
+
- \`summary: string\`
|
|
61
|
+
- \`status: "success" | "failed" | "unknown"\`
|
|
62
|
+
|
|
63
|
+
Use prior steps to:
|
|
64
|
+
|
|
65
|
+
- Avoid repeating work that has already succeeded
|
|
66
|
+
- Retry or adjust steps that failed when appropriate
|
|
67
|
+
|
|
68
|
+
{priorSteps}
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Rules
|
|
73
|
+
|
|
74
|
+
- Focus primarily on the latest user request.
|
|
75
|
+
- Use relevant chat history only when the latest request clearly depends on earlier context; otherwise ignore it.
|
|
76
|
+
- Use prior steps to determine what has already been attempted or completed.
|
|
77
|
+
- Do not plan the full workflow up front. Only decide the next best step.
|
|
78
|
+
- Prefer an agent that can directly complete the user\u2019s request.
|
|
79
|
+
- Only break the request into multiple steps when necessary.
|
|
80
|
+
- When multiple agents could help, choose the best fit instead of returning \`null\`.
|
|
81
|
+
- Base the choice on the registered agent descriptions, not on whether the user used exact matching keywords.
|
|
82
|
+
- If no agent can fully complete the request, but one agent can take the next useful step, choose that agent and set \`requiresFollowUp\` to \`true\`.
|
|
83
|
+
- Do NOT reuse constraints from prior steps unless the current user request explicitly requires them.
|
|
84
|
+
- Each step must reflect the current user request exactly.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Constraint Interpretation
|
|
89
|
+
|
|
90
|
+
Interpret the user\u2019s wording precisely:
|
|
91
|
+
|
|
92
|
+
- Do not substitute one type of constraint for another (e.g., distance vs containment, range vs exact match, etc.)
|
|
93
|
+
- If the user specifies a constraint, use it exactly
|
|
94
|
+
- If the user does not specify a constraint, do not assume or infer one
|
|
95
|
+
|
|
96
|
+
Do not reinterpret the request into a different form.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Assigned Task Guidelines (IMPORTANT)
|
|
101
|
+
|
|
102
|
+
- The \`assignedTask\` must match the user\u2019s request exactly in meaning
|
|
103
|
+
- Do not add, remove, or transform constraints
|
|
104
|
+
- Do not substitute one type of constraint for another
|
|
105
|
+
- If a constraint is not explicitly stated, do not assume one
|
|
106
|
+
|
|
107
|
+
- Keep the task short, specific, and directly executable
|
|
108
|
+
- Keep wording close to the user\u2019s request with minimal transformation
|
|
109
|
+
- Use only information explicitly present in the user request or provided context
|
|
110
|
+
|
|
111
|
+
- The \`assignedTask\` may represent only part of the user\u2019s request when multiple steps are necessary
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## requiresFollowUp Guidelines
|
|
116
|
+
|
|
117
|
+
- \`requiresFollowUp\` should indicate a likely next agent step, not uncertainty about the current request
|
|
118
|
+
- Set \`requiresFollowUp\` to \`true\` only when another orchestration step will likely be needed after this agent succeeds
|
|
119
|
+
- Set \`requiresFollowUp\` to \`false\` when a successful result from this agent would likely complete the user-visible task
|
|
120
|
+
`;export{e as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import a from"./TTZBF4KI.js";import"./S2PHM4WZ.js";import{a as x}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{I,J as P,L as y,O as M,P as D,h as S,j as g}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{a:A,b:j,c:G,d:C,e:T,f:E,g:k,h:b}])=>{var V=S`:host{display:inline-flex;align-items:center}:host([scale="s"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--2);--arcgis-portal-item-type-spacing: 1rem}:host([scale="m"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--1);--arcgis-portal-item-type-spacing: 1rem}:host([scale="l"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size-0);--arcgis-portal-item-type-spacing: 1rem}.icon{display:block;flex-grow:0;flex-shrink:0;width:var(--arcgis-portal-item-type-spacing);height:var(--arcgis-portal-item-type-spacing)}.text{color:var(--calcite-text-color-2);font-size:var(--arcgis-portal-item-type-font-size);line-height:1.25rem}.text--ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.text--spaced{margin-inline-start:calc(var(--arcgis-portal-item-type-spacing) / 2);word-wrap:break-word;word-break:break-word}`,B=t=>typeof t?.role=="string"&&t?.role?t?.role:t?.roleId??t?.sourceJSON?.id;function W(t){return["org_admin","account_admin"].includes(B(t))&&!t?.roleId}function F(t){return!!(t?.roleId&&t.roleId.length>0)}function K(t){return!!t?.privileges?.includes("portal:admin:deleteItems")}function O(t,r){return r?k(t,r)||t.itemControl==="update"||b([t],r)&&W(r):!1}function z(t,r){if(!r)return!1;let a=b([t],r),e=k(t,r)||W(r)&&a,i=F(r)&&K(r);return!!(e||a&&i)}async function q({item:t,messages:r,user:a,serviceInfo:e,portal:i}){let s=J(t),o=Q(t,r,i);return{displayName:L(o,{item:t,user:a,messages:r,serviceInfo:e},!1),displayNameHosted:L(o,{item:t,user:a,messages:r,serviceInfo:e},!0),icon:s}}function _(t){if(t.type!=="Scene Service"&&t.type!=="3DTiles Service")return null;let r=t.typeKeywords;return r?.includes("IntegratedMesh")?"mesh":r?.includes("3DObject")?"3D object":r?.includes("Point")?"3D point":r?.includes("PointCloud")?"point cloud":r?.includes("Building")?"building":r?.includes("Voxel")?"voxel":null}function L(t,{item:r,user:a,messages:e,serviceInfo:i},s=!0){let o=r.type==="Image Service";if(!r||!e||!(s&&a)&&r.type!=="Image Service")return t;let n=r.type==="Feature Service"&&r.typeKeywords?.includes("UtilityNetwork"),l=r.type==="Feature Service"&&r.typeKeywords?.includes("ParcelFabric"),u=a&&O(r,a),d=a&&z(r,a),p=A(r),v=(u||d)&&p,f=(u||d)&&s;if(l)return`${t} (${v?e.parcelFabricHosted:e.parcelFabric})`;if(n){let c=v?`, ${e.hosted}`:"";return`${t} (${e.utilityNetwork}${c})`}if(o){let c=r.typeKeywords?.includes("Elevation 3D Layer"),$=f&&p,N=E(r,i)&&!c,R=T(r,i)&&!c,m=`${$?"Hosted":""}${R?"Collection":""}${N?"Multidimensional":""}`,w=m&&`${m[0].toLowerCase()}${m.slice(1)}`,H=w?` (${e[w]})`:"";return`${t}${H}`}if(f){if(r.type==="Scene Service"||r.type==="3DTiles Service"){let c=_(r);c&&(t=`${t} - ${e[c]||c}`)}if(p){let c=` (${j(r)?e.hostedView:e.hosted})`;return`${t}${c}`}return G(r)?`${t} (${e.locatorView})`:C(r)?`${t} (${e.photoLocations})`:t}return t}var U={"360 VR Experience":"360 VR experience","3DTiles Package":"3D tiles package","3DTiles Service":"3D tiles layer","Addin Package":"Add-in package","Administrative Report":"Administrative report","Analysis Model":"Analysis model","Apache Parquet":"Apache Parquet","API Key":"API key","AppBuilder Extension":"AppBuilder extension","AppBuilder Widget Package":"AppBuilder widget package","ArcGIS Explorer Application Configuration":"ArcGIS Explorer application configuration","ArcGIS Pro Add In":"ArcGIS Pro add-in","ArcGIS Pro Configuration":"ArcGIS Pro configuration","ArcMap Document":"ArcMap document","ArcPad Package":"ArcPad package","Basemap Package":"Basemap package","Big Data Analytic":"Big data analytic","Big Data File Share":"Big data file share","CAD Drawing":"CAD drawing","CityEngine Web Scene":"CityEngine web scene","Code Attachment":"Code attachment","Code Sample":"Code sample","Color Set":"Color set","Compact Tile Package":"Compact tile package","Content Category Set":"Content category set","CSV Collection":"CSV collection","Data Pipeline":"Data pipeline","datastore catalog service":"Datastore catalog service","Deep Learning Package":"Deep learning package","Deep Learning Studio Project":"Deep Learning Studio project","Desktop Add In":"Desktop add-in","Desktop Application":"Desktop application","Desktop Application Template":"Desktop application template","Desktop Style":"Desktop style","Dictionary Style":"Dictionary style","Document Link":"Document link","Earth Configuration":"Earth configuration","Esri Classification Schema":"Esri classification schema","Esri Classifier Definition":"Esri classifier definition","Excalibur Imagery Project":"Excalibur imagery project","Experience Builder Widget":"Experience Builder widget","Experience Builder Widget Package":"Experience Builder widget package","Explorer Add In":"Explorer add-in","Explorer Layer":"Explorer layer","Explorer Map":"Explorer map","Export Package":"Export package","Feature Collection Template":"Feature collection template","Feature Service":"Feature layer","File Geodatabase":"File geodatabase","GeoBIM Application":"GeoBIM application","GeoBIM Project":"GeoBIM project","Geocoding Service":"Geocoding service","Geodata Service":"Geodata service","Geoenrichment Service":"GeoEnrichment service","Geometry Service":"Geometry service","Geoprocessing Package":"Geoprocessing package","Geoprocessing Sample":"Geoprocessing sample","Globe Document":"Globe document","Globe Layer":"Globe layer","Globe Service":"Globe service","Group Layer":"Group layer","Hub Event":"Hub event","Hub Initiative":"Hub initiative","Hub Initiative Template":"Hub initiative template","Hub Page":"Hub page","Hub Project":"Hub project","Hub Site Application":"Hub site application","Image Collection":"Image collection","Image Service":"Image service","Imagery Layer":"Imagery layer","Insights Data Engineering Model":"Insights data engineering model","Insights Data Engineering Workbook":"Insights data engineering workbook","Insights Model":"Insights model","Insights Page":"Insights page","Insights Script":"Insights script","Insights Theme":"Insights theme","Insights Workbook":"Insights workbook","Insights Workbook Package":"Insights workbook package","Integration Info":"Integration info","iWork Keynote":"iWork Keynote","iWork Numbers":"iWork Numbers","iWork Pages":"iWork Pages","Kernel Gateway Connection":"Kernel gateway connection","KML Collection":"KML collection","Knowledge Graph":"Knowledge graph","Knowledge Graph Layer":"Knowledge graph layer","Knowledge Graph Web Investigation":"Knowledge graph web investigation","Knowledge Studio Project":"Knowledge Studio project","Layer Package":"Layer package","Layer Template":"Layer template","Living Atlas Export Package":"Living Atlas export package","Locator Package":"Locator package","Map Area":"Map area","Map Document":"Map document","Map Package":"Map package","Map Service":"Map service","Map Showcase":"Map showcase","Map Template":"Map template","Media Layer":"Media layer","Mission Report":"Mission report","Mission Template":"Mission template","Mobile Application":"Mobile application","Mobile Basemap Package":"Mobile basemap package","Mobile Map Package":"Mobile map package","Mobile Scene Package":"Mobile scene package","Native Application":"Native application","Native Application Installer":"Native application installer","Network Analysis Service":"Network analysis service","Notebook Code Snippet Library":"Notebook code snippet library","Notebook Code Snippets":"Notebook code snippets","Operation View":"Operation view","Operations Dashboard Add In":"Operations Dashboard add-in","Operations Dashboard Extension":"Operations Dashboard extension","Oriented Imagery Catalog":"Oriented imagery catalog","Ortho Mapping Project":"Ortho mapping project","Ortho Mapping Template":"Ortho mapping template","Pro Map":"Pro map","Pro Presentation":"Pro presentation","Pro Project":"Pro project","Pro Report":"Pro report","Pro Report Template":"Pro report template","Project Package":"Project package","Project Template":"Project template","Published Map":"Published map","QuickCapture Project":"QuickCapture project","Raster function template":"Raster function template","Real Time Analytic":"Real time analytic","Reality Studio Project":"Reality Studio project","Reality Mapping Project":"Reality mapping project","Relational Database Connection":"Relational database connection","Replication Package":"Replication package","Report Template":"Report template","Route Layer":"Route layer","Rule Package":"Rule package","Scene Document":"Scene document","Scene Service":"Scene service","Service Connection":"Service connection","Service Definition":"Service definition","SQLite Geodatabase":"SQLite geodatabase","Statistical Data Collection":"Statistical data collection","StoryMap Theme":"StoryMap theme","Suitability Model":"Suitability model","Survey123 Add In":"Survey123 add-in","Symbol Set":"Symbol set","Task File":"Task file","Tile Layer":"Tile layer","Tile Package":"Tile package","Urban Model":"Urban model","Urban Project":"Urban project","Vector Tile Package":"Vector tile package","Vector Tile Service":"Vector tile service","Visio Document":"Visio document","Web AppBuilder Widget":"Web AppBuilder widget","Web Experience":"Web experience","Web Experience Template":"Web experience template","Web Link Chart":"Web link chart","Web Map":"Web map","Web Mapping Application":"Web mapping application","Web Scene":"Web scene","Windows Mobile Package":"Windows mobile package","Workflow Manager Package":"Workflow Manager package","Workflow Manager Service":"Workflow Manager service","Workforce Project":"Workforce project","Viewer Configuration":"Viewer configuration","XR Experience":"XR experience"};function Q(t,r,a){let e=t.typeKeywords||[];switch(t.type){case"Stream Service":return"Stream layer";case"Feature Service":case"Feature Collection":return e.includes("Sketch Layer")?"Sketch layer":e.includes("IndoorPositioningDataService")?"Indoor positioning data service":e.includes("EditExtensionIndoorsSpaces")?"Indoors Spaces feature layer":e.includes("ArcgisWorkflowJobLocation")&&e.includes("View Service")?"Workflow job location view":e.includes("ArcgisWorkflowManager")?e.includes("View Service")?"Workflow view":"Workflow layer":e.includes("Table")?"Table":e.includes("Route Layer")?"Route layer":e.includes("Markup")?"Markup":"Feature layer";case"Image Service":return e.includes("Elevation 3D Layer")?"Elevation layer":e.includes("Tiled Imagery")?"Tiled imagery layer":"Imagery layer";case"Data Store":if(!e.length)return"Data store";let s=["cloudStore_amazon","cloudStore_azure","cloudStore_azureDataLakeStore","cloudStore_Google","cloudStore_Alibaba","Cloud"].some(l=>e.includes(l)),o=r.dataStore||{bigdata:"big data file share",cloud:"cloud",cloudStorage:"cloud storage",database:"database",folder:"folder"};return s?`Data store (${a?.isPortal?o.cloudStorage:o.cloud})`:e.includes("egdb")||e.includes("nosql")?`Data store (${o.database})`:e.includes("folder")||e.includes("ArcGIS Server")&&(e.includes("dedicated")||e.includes("global"))?`Data store (${o.folder})`:!e.includes("fileShare")||!e.includes("hdfs")||!e.includes("hive")||!e.includes("dataStore")?`Data store (${o.bigdata})`:"Data store";case"Scene Service":return"Scene layer";case"Video Service":return"Video layer";case"Scene Package":return"Scene layer package";case"Geoprocessing Service":return e.includes("Web Tool")?"Tool":"Geoprocessing service";case"StoryMap":let n=e.includes("storymaptemplate");return e.includes("storymapbriefing")?n?"StoryMap template (briefing)":"StoryMap briefing":e.includes("storymapcollection")?n?"StoryMap template (collection)":"StoryMap collection":e.includes("storymapframe")?n?"StoryMap template (frame)":"StoryMap frame":n?"StoryMap template (story)":"StoryMap story";case"Geocoding Service":return"Locator";case"Geoenrichment Service":return"GeoEnrichment service";case"Microsoft Powerpoint":return"Microsoft PowerPoint";case"GeoJson":return"GeoJSON";case"Globe Service":return"Globe layer";case"Vector Tile Service":return"Tile layer";case"netCDF":return"NetCDF";case"SQLite Geodatabase":return"Mobile geodatabase";case"Style":return e.includes("Dictionary")?"Dictionary style":"Style";case"Desktop Style":return e.includes("Dictionary")?"Desktop dictionary style":"Desktop style";case"Map Service":return!e.includes("Spatiotemporal")&&(e.includes("Hosted Service")||e.includes("Tiled"))&&!e.includes("Relational")?"Tile layer":"Map image layer";case"Compact Tile Package":return"Tile package (tpkx)";case"OGCFeatureServer":return"OGC feature layer";case"3DTiles Service":return e?.includes("GaussianSplat")?"Gaussian splat layer":"3D tiles layer";case"3DTiles Package":return"3D tiles package";case"API Key":return"API key (legacy)";case"Web Mapping Application":if(e.includes("configurableApp"))return"Instant App";if(e.includes("IndoorsApp"))return"Indoors Viewer";if(e.includes("IndoorsSpaceplannerApp"))return"Indoors Space Planner";if(e.includes("IndoorsFloorPlanEditorApp"))return"Indoors Floor Plan Editor";break;case"Application":case"Mobile Application":case"Operation View":case"Desktop Application":if(e.includes("configurableApp"))return"Instant App";break}let i=U[t.type]||t.type;return i?.toLowerCase().includes("add in")?i.replace(/(add in)/giu,"add-in"):i}function J(t){let r=t.type?.toLowerCase()||"",a=t.typeKeywords||[],e=a.includes("Hosted Service");switch(r.trim()){case"360 vr experience":return"360vr";case"3dtiles package":return"3dtileslayerpackage";case"3dtiles service":return a.includes("3DObject")?"3dobjecttileslayer":a.includes("IntegratedMesh")?"integratedmeshtileslayer":a.includes("GaussianSplat")?"gaussianSplatLayer":"3dobjecttileslayer";case"feature service":case"feature collection":case"kml":case"wfs":if(a.includes("ParcelFabric"))return"parcellayer";if(a.includes("IndoorPositioningDataService"))return"indoorpositioningdataservice";let i=a.includes("Spatiotemporal");return a.includes("Table")?i?"spatiotemporaltable":"table":r==="feature collection"&&a.includes("Sketch Layer")?"sketchlayer":a.includes("Route Layer")?"routelayer":a.includes("Markup")?"markup":i?"spatiotemporal":a.includes("UtilityNetwork")?"utilitynetwork":e?"featureshosted":"features";case"group layer":return a.includes("Map")?"layergroup2d":a.includes("Scene")?"layergroup3d":"layergroup";case"wmts":return"maptiles";case"map service":case"wms":return e||a.includes("Tiled")?"maptiles":"mapimages";case"scene service":return a.includes("Line")?"sceneweblayerline":a.includes("3DObject")?"sceneweblayermultipatch":a.includes("Point")?"sceneweblayerpoint":a.includes("IntegratedMesh")?"sceneweblayermesh":a.includes("PointCloud")?"sceneweblayerpointcloud":a.includes("Polygon")?"sceneweblayerpolygon":a.includes("Building")?"sceneweblayerbuilding":a.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer";case"wcs":return"imagery";case"image service":return a.includes("Elevation 3D Layer")?"elevationlayer":a.includes("Tiled Imagery")?"tiledimagerylayer":"imagery";case"stream service":return"streamlayer";case"video service":return a.includes("Live Stream")?"livestreamvideolayer":"mediaservice";case"vector tile service":return"vectortile";case"datastore catalog service":return"datastorecollection";case"geocoding service":return"geocodeservice";case"geoprocessing service":return a.includes("Web Tool")?"tool":"layers";case"geodata service":return"geodataservice";case"web map":case"cityengine web scene":return"maps";case"web scene":return a.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal";case"application":case"web mapping application":case"mobile application":case"operation view":case"desktop application":return a?.some(s=>["IndoorsApp","IndoorsSpaceplannerApp","IndoorsFloorPlanEditorApp"].includes(s))?"indoors":a.includes("configurableApp")?"instantapps":"apps";case"map document":case"map package":case"published map":case"scene document":case"globe document":case"basemap package":case"mobile basemap package":case"mobile map package":case"project package":case"project template":case"pro map":case"layout":return"mapsgray";case"layer":if(a.includes("ArcGIS Pro"))return"mapsgray";break;case"explorer map":if(a.indexOf("Explorer Document"))return"mapsgray";if(a.includes("Explorer Mapping Application"))return"datafilesgray";break;case"pro presentation":return"propresentation";case"api key":return"key";case"csv":return"csv";case"shapefile":return"shapefile";case"csv collection":return"csvcollection";case"media layer":return"medialayer";case"microsoft excel":return"excel";case"microsoft powerpoint":return"powerpoint";case"microsoft word":return"word";case"pdf":return"pdf";case"sqlite geodatabase":return"sqlite";case"administrative report":return"report";case"cad drawing":return"cad";case"service definition":case"geojson":case"netcdf":return"data";case"explorer add in":case"desktop add in":case"windows viewer add in":case"windows viewer configuration":return"appsgray";case"arcgis pro add in":case"arcgis pro configuration":return"addindesktop";case"rule package":case"file geodatabase":case"kml collection":case"windows mobile package":case"map template":case"desktop application template":case"gml":case"arcpad package":case"code sample":case"document link":case"earth configuration":case"operations dashboard add in":case"rules package":case"workflow manager package":return"datafilesgray";case"form":return a.includes("Survey123")?"survey":"datafilesgray";case"network analysis service":case"geometry service":case"geoprocessing package":case"locator package":case"geoprocessing sample":case"workflow manager service":return"toolsgray";case"layer package":case"explorer layer":return"layersgray";case"scene package":return"scenepackage";case"mobile scene package":return"mobilescenepackage";case"tile package":case"compact tile package":return"tilepackage";case"task file":return"taskfile";case"report template":return"reporttemplate";case"statistical data collection":return"statisticaldatacollection";case"analysis model":return"geoprocessingmodel";case"map showcase":return"mapshowcase";case"insights workbook":return"workbook";case"insights model":return"insightsmodel";case"insights page":return"insightspage";case"insights theme":return"insightstheme";case"discussion":return"discussion";case"hub initiative":return"hubinitiative";case"hub page":case"site page":return"hubpage";case"hub event":return"hubevent";case"hub site application":case"site application":return"hubsite";case"hub project":return"hubproject";case"relational database connection":return"relationaldatabaseconnection";case"image":return"image";case"image collection":return"imagecollection";case"style":return a.includes("Dictionary")?"dictionarystyle":"style";case"desktop style":return a.includes("Dictionary")?"dictionarydesktopstyle":"desktopstyle";case"dashboard":return"dashboard";case"raster function template":return"rasterprocessingtemplate";case"vector tile package":return"vectortilepackage";case"ortho mapping project":return"orthomappingproject";case"ortho mapping template":return"orthomappingtemplate";case"solution":return"solutions";case"geopackage":return"geopackage";case"deep learning package":return"deeplearningpackage";case"real time analytic":return"realtimeanalytics";case"big data analytic":return"bigdataanalytics";case"feed":return"feed";case"excalibur imagery project":return"excaliburimageryproject";case"notebook":return"notebook";case"reality mapping project":return"realitymappingproject";case"storymap":return a.includes("storymaptemplate")?"storymapstemplate":a.includes("storymapcollection")?"storymapcollection":a.includes("storymapbriefing")?"storymapbriefing":"storymap";case"survey123 add in":return"survey123addin";case"mission":return"mission";case"mission report":return"missionreport";case"mission template":return"missiontemplate";case"quickcapture project":return"quickcaptureproject";case"pro report":return"proreport";case"urban model":return"urbanmodel";case"urban project":return"urbanproject";case"web experience":return"experiencebuilder";case"web experience template":return"webexperiencetemplate";case"experience builder widget":return"experiencebuilderwidget";case"experience builder widget package":return"experiencebuilderwidgetpackage";case"workflow":return"workflow";case"insights script":return"insightsscript";case"kernel gateway connection":return"kernelgatewayconnection";case"hub initiative template":return"hubinitiativetemplate";case"storymap theme":return"storymaptheme";case"knowledge graph":return"knowledgegraph";case"knowledge studio project":return"knowledgestudio";case"knowledge graph layer":return"knowledgegraphlayer";case"native application":return"nativeapp";case"native application installer":return"nativeappinstaller";case"web link chart":return"linkchart";case"knowledge graph web investigation":return"investigation";case"ogcfeatureserver":return"features";case"pro project":return"proproject";case"insights workbook package":return"insightsworkbookpackage";case"apache parquet":return"apacheparquet";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets";case"suitability model":return"suitabilitymodel";case"esri classifier definition":return"classifierdefinition";case"esri classification schema":return"classificationschema";case"esri spectral library":return"spectrallibrary";case"insights data engineering workbook":return"dataengineeringworkbook";case"insights data engineering model":return"dataengineeringmodel";case"deep learning studio project":return"deeplearningproject";case"data store":return"datastore";case"data pipeline":return"datapipeline";case"service connection":return"serviceconnection";case"xr experience":return"xrexperience"}return a.includes("Document")?"datafilesgray":r.includes("service")?"layers":"maps"}var h=class extends I{constructor(){super(...arguments),this.messages=x({blocking:!0}),this.icon=null,this.displayName="",this.displayNameHosted="",this.scale="s"}static{this.properties={icon:16,displayName:16,displayNameHosted:16,item:0,serviceInfo:0,portal:0,user:0,scale:3,hideText:5,hideIcon:5,ellipsis:5,showHosted:5}}static{this.styles=V}async load(){this.item&&await this.getItemDisplayInformation()}async getItemDisplayInformation(){let{messages:r,user:a,serviceInfo:e,portal:i,item:s}=this,{displayName:o,displayNameHosted:n,icon:l}=await q({item:s,messages:r,serviceInfo:e,user:a,portal:i||s.portal});this.displayName=o,this.displayNameHosted=n,this.icon=l}render(){let{showHosted:r,displayNameHosted:a,scale:e,icon:i,hideText:s,hideIcon:o,ellipsis:n}=this;if(!i)return null;let l=r?a:this.displayName,u=l?.includes("(")?"":"‭",d=D(`./assets/portal-item-type/icons/${i}16.svg`),p=this.hideText?l:void 0;return g`${!o&&g`<span class="icon"><img src=${d??y} alt=${(p||"")??y} class=${`icon icon--${e}`}></span>`||""}${!s&&g`<span class=${P({text:!0,"text--spaced":!o,"text--ellipsis":n})} .innerHTML=${`${u}${l}`}></span>`||""}`}};M("arcgis-portal-item-type",h);return h},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import d from"./GPSI4ROI.js";import c from"./OGQ2PD7M.js";import a from"./PBZ25RYU.js";import{a as w,b as x}from"./5WK4GJK2.js";import{a as I}from"./V5ZWDMLE.js";import{b as v,f as E}from"./32DRTMS4.js";import{G as u,H as g,I as b,L as C,O as y,h as p,j as n}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:S},{a:P,b:$},{a:d,b:c,c:m,d:R,e:O,f:_}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await N(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function N(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function M({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var D=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):J(r,t)},J=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await L(r)).execute(e)}async function L(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var W=p`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,f=class extends b{constructor(){super(),this.classificationModel=P(this),this.messages=I(),this.formMainContentRef=u(),this._classificationDataTask=$(this),this._formCreationTask=new x(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=d(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await D(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this._itemClassificationWatchHandle&&(this._itemClassificationWatchHandle.remove(),this.portalItem.removeHandles("arcgis-classification-config"),this._itemClassificationWatchHandle=void 0),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this.portalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=_(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=m(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=E()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=W}async destroy(){await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=d(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await O(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await S(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=v(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=m(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await D(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await M({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,V=e[o]?.valueExpressionResult,A=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:V,attributeValidationResult:A})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1){let i=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([a,e])=>{e.isRequired&&!this.pendingPortalItem?.classification?.[a]&&this.pendingPortalItem?.classification?.[a]!==0&&(!t||this.isRequiredErrors.has(a))&&i.push({attribute:e.label,reason:this.messages.isrequired??"is required",category:e.attributeCategory}),this.attributeExpressionResults.get(a)?.attributeValidationResult&&i.push({attribute:e.label,reason:this.attributeExpressionResults.get(a)?.attributeValidationResult??"",category:e.attributeCategory})}),this.formValidationErrors=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category))?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===w.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification} .autoDestroyDisabled=${this.autoDestroyDisabled}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${g(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",f);return f},"arcade","core/reactiveUtils",a,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{A as
|
|
2
|
+
import{A as V,B as m,C as h,D as A,E as D,F as y,k as P,y as k,z as w}from"./NJMHL2Y7.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I as a};
|