@arcgis/portal-components 6.0.0-next.4 → 6.0.0-next.41
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/{SGDDFWCJ.js → 2GIECQ25.js} +1 -1
- package/dist/cdn/2N6K2UUQ.js +2 -0
- package/dist/cdn/36DGXQLJ.js +2 -0
- package/dist/cdn/{2TDHJSMP.js → 3HXQ5Z4C.js} +1 -1
- package/dist/cdn/3HZI6MKD.js +2 -0
- package/dist/cdn/3OL7A2UC.js +2 -0
- package/dist/cdn/3Q7UJKKN.js +2 -0
- package/dist/cdn/3SG67WP5.js +2 -0
- package/dist/cdn/3ZVDEJPF.js +2 -0
- package/dist/cdn/42AN66SK.js +2 -0
- package/dist/cdn/46HNNQAD.js +2 -0
- package/dist/cdn/4CBRO7JP.js +2 -0
- package/dist/cdn/4E354KKM.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/5MLBK66O.js +2 -0
- package/dist/cdn/5ZHNRQOW.js +2 -0
- package/dist/cdn/62TL6V4N.js +2 -0
- package/dist/cdn/67FEZD25.js +2 -0
- package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
- package/dist/cdn/6GPAZV4Z.js +2 -0
- package/dist/cdn/6QI7DAS2.js +2 -0
- package/dist/cdn/6XDKSVRF.js +2 -0
- package/dist/cdn/6ZJNZZPC.js +2 -0
- package/dist/cdn/6ZYYG64M.js +2 -0
- package/dist/cdn/7AG3E7K6.js +2 -0
- package/dist/cdn/7JDXAVUG.js +2 -0
- package/dist/cdn/7JKFWVCY.js +2 -0
- package/dist/cdn/7VPB6Q55.js +63 -0
- package/dist/cdn/AJEQETRW.js +2 -0
- package/dist/cdn/{JE2376SE.js → AP7UWD4P.js} +1 -1
- package/dist/cdn/{OR6T5SB3.js → BNWJUQDF.js} +1 -1
- package/dist/cdn/BUYOYUA2.js +2 -0
- package/dist/cdn/BX7Q3V2Y.js +43 -0
- package/dist/cdn/BXPNB7VJ.js +2 -0
- package/dist/cdn/BZEKNJUA.js +2 -0
- package/dist/cdn/C6RUWLEJ.js +2 -0
- package/dist/cdn/CERDMRFQ.js +2 -0
- package/dist/cdn/DFECUYNW.js +2 -0
- package/dist/cdn/DGWOMELT.js +2 -0
- package/dist/cdn/DIWTHL4N.js +2 -0
- package/dist/cdn/DKUOQCHO.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → DQL2JT6K.js} +1 -1
- package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
- package/dist/cdn/DU2R3VC4.js +2 -0
- package/dist/cdn/E5HCHRAI.js +2 -0
- package/dist/cdn/EBL7YSRM.js +2 -0
- package/dist/cdn/EDGE3T36.js +2 -0
- package/dist/cdn/EETYTFHH.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
- package/dist/cdn/FINVGL3V.js +2 -0
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/FXXFSYNB.js +2 -0
- package/dist/cdn/GA4OWLSO.js +2 -0
- package/dist/cdn/GFUKRB6D.js +2 -0
- package/dist/cdn/GHDMQJG4.js +2 -0
- package/dist/cdn/{FRE56NBG.js → GY4SY4XC.js} +1 -1
- package/dist/cdn/H4TPPTVB.js +2 -0
- package/dist/cdn/HOIZXTOD.js +2 -0
- package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
- package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
- package/dist/cdn/IQPJOVDL.js +2 -0
- package/dist/cdn/ITRJGXFV.js +93 -0
- package/dist/cdn/ITWLFQI4.js +2 -0
- package/dist/cdn/IWPJEUHY.js +2 -0
- package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
- package/dist/cdn/JDW7ECBF.js +2 -0
- package/dist/cdn/JFGXTJY4.js +2 -0
- package/dist/cdn/JGTBDGJ7.js +2 -0
- package/dist/cdn/JLT5GCLY.js +2 -0
- package/dist/cdn/JTA223NH.js +2 -0
- package/dist/cdn/KA2MXQTR.js +2 -0
- package/dist/cdn/KAK6CNI7.js +2 -0
- package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/KWL2D56D.js +3 -0
- package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
- package/dist/cdn/L3YOPSRB.js +135 -0
- package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
- package/dist/cdn/{JIJO4CAS.js → LVWAYUYZ.js} +1 -1
- package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
- package/dist/cdn/ME6XACY6.js +2 -0
- package/dist/cdn/MSL36HAR.js +2 -0
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/N47MW5HI.js +9 -0
- package/dist/cdn/N5AG34NK.js +2 -0
- package/dist/cdn/N7XYFVOI.js +2 -0
- package/dist/cdn/NHVPNSNH.js +2 -0
- package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
- package/dist/cdn/O2GPTWGF.js +3 -0
- package/dist/cdn/ODYYTLLQ.js +2 -0
- package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
- package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
- package/dist/cdn/OQBLBDR5.js +2 -0
- package/dist/cdn/OWODUQF2.js +2 -0
- package/dist/cdn/OXF2WDSW.js +2 -0
- package/dist/cdn/PM33STYQ.js +2 -0
- package/dist/cdn/PUHZVFK7.js +2 -0
- package/dist/cdn/QAXFE5DD.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
- package/dist/cdn/QXPDVHB5.js +2 -0
- package/dist/cdn/R26RBXQW.js +2 -0
- package/dist/cdn/{NWVLGU2C.js → R45EMSQJ.js} +1 -1
- package/dist/cdn/R6KJVAX3.js +99 -0
- package/dist/cdn/RA2NMLMP.js +2 -0
- package/dist/cdn/RDRSZQAR.js +2 -0
- package/dist/cdn/RR56BOTV.js +2 -0
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/RX64JXHI.js +170 -0
- package/dist/cdn/S4N5QMSN.js +2 -0
- package/dist/cdn/SCLYGIHM.js +2 -0
- package/dist/cdn/SGV47YVU.js +2 -0
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TQX5BOZG.js +2 -0
- package/dist/cdn/U2J4ST45.js +2 -0
- package/dist/cdn/U3V7PPC2.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
- package/dist/cdn/UCHX4CBR.js +2 -0
- package/dist/cdn/UCTXRTQZ.js +2 -0
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/UWB23CG4.js +2 -0
- package/dist/cdn/VABNHOVG.js +2 -0
- package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
- package/dist/cdn/VWOBCSD6.js +4 -0
- package/dist/cdn/W6U2HMEK.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
- package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
- package/dist/cdn/WTKLB3R6.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → XSEFGIVV.js} +1 -1
- package/dist/cdn/XYHIVGUK.js +2 -0
- package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
- package/dist/cdn/Y7ZCEONL.js +73 -0
- package/dist/cdn/YCMZ3RVZ.js +2 -0
- package/dist/cdn/YELHAJB3.js +2 -0
- package/dist/cdn/YH2OFXPU.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.js} +1 -1
- package/dist/cdn/{74T6IXSN.js → ZOOEWYFB.js} +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/FieldIcons.js +24 -0
- package/dist/chunks/constants.js +7 -0
- package/dist/chunks/contextUsage.js +208 -0
- package/dist/chunks/createPortalTool.js +18 -0
- package/dist/chunks/fieldAddDelete.js +6 -6
- package/dist/chunks/functionalities.js +14 -9
- package/dist/chunks/groups.js +8 -61
- package/dist/chunks/groups2.js +23 -8
- package/dist/chunks/help.js +22 -0
- package/dist/chunks/info.js +2 -2
- package/dist/chunks/item.js +135 -33
- package/dist/chunks/item2.js +96 -122
- package/dist/chunks/itemThumbnail.js +21 -21
- package/dist/chunks/items.js +11 -11
- package/dist/chunks/layers.js +196 -0
- package/dist/chunks/loadClassificationData.js +26 -27
- package/dist/chunks/portal-browser.js +49 -46
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-item-preview-sublayer.js +214 -0
- package/dist/chunks/portal-item-status-card.js +81 -0
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +14 -10
- package/dist/chunks/portal2.js +22 -22
- package/dist/chunks/portalEntitySelection.js +61 -0
- package/dist/chunks/previewSessionController.js +33 -0
- package/dist/chunks/query.js +14 -14
- package/dist/chunks/request.js +49 -41
- package/dist/chunks/requests.js +7 -7
- package/dist/chunks/selectedMentions.js +25 -0
- package/dist/chunks/services.js +5 -5
- package/dist/chunks/string.js +19 -11
- package/dist/chunks/ui.js +1 -0
- package/dist/chunks/url.js +2 -2
- package/dist/chunks/user.js +67 -53
- package/dist/chunks/user2.js +10 -10
- package/dist/chunks/utils.js +35 -22
- package/dist/chunks/utils3.js +88 -657
- package/dist/chunks/utils4.js +663 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
- package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
- package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
- package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
- package/dist/components/arcgis-portal-browser/customElement.js +3 -2
- package/dist/components/arcgis-portal-browser/index.js +1 -0
- package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
- package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
- package/dist/components/arcgis-portal-delete-items/index.js +1 -2
- package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
- package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
- package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
- package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
- package/dist/components/arcgis-portal-field-delete/index.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
- package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
- package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
- package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
- package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
- package/dist/components/arcgis-portal-item-card/customElement.d.ts +37 -10
- package/dist/components/arcgis-portal-item-card/customElement.js +125 -86
- package/dist/components/arcgis-portal-item-card/index.js +4 -1
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
- package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
- package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
- package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
- package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview/index.js +20 -0
- package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
- package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
- package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
- package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
- package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
- package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
- package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
- package/dist/components/arcgis-portal-navigation/customElement.d.ts +10 -4
- package/dist/components/arcgis-portal-navigation/customElement.js +349 -351
- package/dist/components/arcgis-portal-navigation/index.js +4 -5
- package/dist/components/arcgis-portal-navigation/types.d.ts +3 -0
- package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
- package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
- package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
- package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
- package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
- package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
- package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
- package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
- package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
- package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
- package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
- package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
- package/dist/components/portal-group-browser-filters/customElement.js +15 -15
- package/dist/components/portal-related-items-list-item/customElement.js +16 -14
- package/dist/components/portal-related-items-list-item/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.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 +87 -0
- package/dist/index.js +305 -6
- package/dist/loader.js +22 -11
- package/dist/services/group.d.ts +17 -0
- package/dist/services/groups.d.ts +9 -0
- package/dist/services/item.d.ts +9 -0
- package/dist/types/item.d.ts +23 -11
- package/dist/types/layer.d.ts +27 -0
- package/dist/types/lumina.d.ts +82 -12
- package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
- package/dist/types/portalEntityPicker.d.ts +3 -0
- package/dist/types/preact.d.ts +93 -12
- package/dist/types/react.d.ts +104 -12
- package/dist/types/services.d.ts +28 -1
- package/dist/types/stencil.d.ts +82 -12
- package/dist/types/user.d.ts +14 -10
- package/dist/utils/generateEmbeddings.d.ts +7 -0
- package/dist/utils/semanticSearch.d.ts +60 -0
- package/dist/utils/types.d.ts +10 -0
- package/package.json +14 -13
- package/dist/cdn/23NXHNPU.js +0 -2
- package/dist/cdn/24QSQLRY.js +0 -2
- package/dist/cdn/2CN754CY.js +0 -2
- package/dist/cdn/2FQKDFEE.js +0 -2
- package/dist/cdn/2MPQ5IWJ.js +0 -2
- package/dist/cdn/3CQKCUM5.js +0 -2
- package/dist/cdn/3EYB5GQX.js +0 -2
- package/dist/cdn/3FSPL34I.js +0 -170
- package/dist/cdn/3LEQ37YT.js +0 -68
- package/dist/cdn/4KTRAA2J.js +0 -2
- package/dist/cdn/4MUB6TL6.js +0 -2
- package/dist/cdn/4PRXQFCV.js +0 -2
- package/dist/cdn/4QFTKB6T.js +0 -2
- package/dist/cdn/4TSXFX3M.js +0 -2
- package/dist/cdn/5C5GHX4D.js +0 -2
- package/dist/cdn/7LMZHJZG.js +0 -2
- package/dist/cdn/A2SQ4EMZ.js +0 -2
- package/dist/cdn/AICPYLWE.js +0 -4
- package/dist/cdn/AXOBMX3S.js +0 -2
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BYHX3UWV.js +0 -2
- package/dist/cdn/CD5UWSCP.js +0 -2
- package/dist/cdn/D2YQWKME.js +0 -135
- package/dist/cdn/DDBXEXOV.js +0 -2
- package/dist/cdn/DHMNNIXZ.js +0 -2
- package/dist/cdn/DLI4XKJ3.js +0 -2
- package/dist/cdn/DYO5P3F2.js +0 -2
- package/dist/cdn/E66BDC6N.js +0 -2
- package/dist/cdn/EEAVX4PP.js +0 -2
- package/dist/cdn/EMJQI4MA.js +0 -2
- package/dist/cdn/EY5S6ICQ.js +0 -2
- package/dist/cdn/FIBQAMJ3.js +0 -2
- package/dist/cdn/FIQZPIIK.js +0 -2
- package/dist/cdn/FNLBJ4ZQ.js +0 -2
- package/dist/cdn/GGDOGNH4.js +0 -150
- package/dist/cdn/GSOBDGLK.js +0 -2
- package/dist/cdn/GXM3XY3J.js +0 -2
- package/dist/cdn/HCNTXLUT.js +0 -2
- package/dist/cdn/I273CANO.js +0 -2
- package/dist/cdn/I6NVKNZJ.js +0 -2
- package/dist/cdn/J5FKIZAM.js +0 -2
- package/dist/cdn/J5NPDIZM.js +0 -2
- package/dist/cdn/JOUR2FB2.js +0 -3
- package/dist/cdn/JWBUJT43.js +0 -2
- package/dist/cdn/K75JTQPW.js +0 -2
- package/dist/cdn/LISDTBEX.js +0 -2
- package/dist/cdn/LYLQCBVX.js +0 -2
- package/dist/cdn/MQK63FV7.js +0 -2
- package/dist/cdn/N4VOTJ25.js +0 -2
- package/dist/cdn/N5QLV56W.js +0 -2
- package/dist/cdn/OD5WXP7J.js +0 -2
- package/dist/cdn/OXPXXIWL.js +0 -2
- package/dist/cdn/PKA745KL.js +0 -2
- package/dist/cdn/PMRFXB4F.js +0 -2
- package/dist/cdn/PNIFJ5DQ.js +0 -2
- package/dist/cdn/PZDI5ZDC.js +0 -2
- package/dist/cdn/QROXYP6V.js +0 -2
- package/dist/cdn/QUOLQGKP.js +0 -2
- package/dist/cdn/QWHGLE3O.js +0 -2
- package/dist/cdn/R3PK7XOP.js +0 -2
- package/dist/cdn/REM3KCX6.js +0 -2
- package/dist/cdn/RNWICLRH.js +0 -2
- package/dist/cdn/RQYNPDN3.js +0 -2
- package/dist/cdn/S6F7U36E.js +0 -400
- package/dist/cdn/SMX2LEJB.js +0 -2
- package/dist/cdn/SVROAT3Z.js +0 -2
- package/dist/cdn/TBZXKKGP.js +0 -2
- package/dist/cdn/TNUCSWBN.js +0 -2
- package/dist/cdn/TOICLGFK.js +0 -2
- package/dist/cdn/TOTWYGB3.js +0 -2
- package/dist/cdn/TUUUK3VX.js +0 -2
- package/dist/cdn/U3KMGSVH.js +0 -2
- package/dist/cdn/UEP2NYJK.js +0 -2
- package/dist/cdn/UZP4YMTE.js +0 -2
- package/dist/cdn/VNU4QX7M.js +0 -41
- package/dist/cdn/XYMBRPC7.js +0 -2
- package/dist/cdn/YB3DR4VO.js +0 -2
- package/dist/cdn/YYTEJVBL.js +0 -2
- package/dist/cdn/Z3HGPBOR.js +0 -2
- package/dist/cdn/ZDDN7UKS.js +0 -2
- package/dist/cdn/ZXNF77OB.js +0 -2
- package/dist/chunks/functional.js +0 -9
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
- /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
- /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
|
@@ -1,56 +1,61 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
|
+
import I from "@arcgis/core/layers/Layer.js";
|
|
4
|
+
import C from "@arcgis/core/portal/PortalItem.js";
|
|
5
|
+
import { LitElement as A, createEvent as b } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as w, bypassReadOnly as T } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { css as L, html as c } from "lit";
|
|
8
|
+
import { u as z } from "../../chunks/useT9n.js";
|
|
9
|
+
import f from "@arcgis/core/request.js";
|
|
10
|
+
import { r as S } from "../../chunks/request.js";
|
|
11
|
+
import { g as G } from "../../chunks/item.js";
|
|
12
|
+
import { p as x } from "../../chunks/functionalities.js";
|
|
13
|
+
const R = L`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}.add-fields-button{margin:.75rem 0}calcite-block{border-bottom:0}calcite-list-item:last-child:after{display:block;margin-inline-start:var(--calcite-spacing-md);border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3));content:""}`;
|
|
14
|
+
async function _({
|
|
12
15
|
item: s,
|
|
13
16
|
layers: e
|
|
14
17
|
}) {
|
|
15
|
-
const { url:
|
|
16
|
-
if (!
|
|
17
|
-
return { result:
|
|
18
|
+
const { url: t } = s, l = /* @__PURE__ */ new Map();
|
|
19
|
+
if (!t)
|
|
20
|
+
return { result: l };
|
|
18
21
|
try {
|
|
19
|
-
const i = (await
|
|
22
|
+
const i = (await f(t, {
|
|
23
|
+
cacheBust: !0,
|
|
20
24
|
query: { f: "json" },
|
|
21
25
|
responseType: "json"
|
|
22
26
|
})).data;
|
|
23
27
|
if (i.fields) {
|
|
24
|
-
const
|
|
25
|
-
return e?.length === 1 &&
|
|
28
|
+
const r = e?.[0];
|
|
29
|
+
return e?.length === 1 && r?.layerId != null && l.set(r.layerId, i.fields), { result: l };
|
|
26
30
|
}
|
|
27
31
|
if (!i.layers?.length)
|
|
28
|
-
return { result:
|
|
29
|
-
const
|
|
32
|
+
return { result: l };
|
|
33
|
+
const a = t.replace(/\/$/u, "");
|
|
30
34
|
return await Promise.all(
|
|
31
|
-
i.layers.map(async ({ id:
|
|
32
|
-
const
|
|
35
|
+
i.layers.map(async ({ id: r }) => {
|
|
36
|
+
const n = (await f(`${a}/${r}`, {
|
|
37
|
+
cacheBust: !0,
|
|
33
38
|
query: { f: "json" },
|
|
34
39
|
responseType: "json"
|
|
35
40
|
})).data;
|
|
36
|
-
|
|
41
|
+
l.set(r, n.fields ?? []);
|
|
37
42
|
})
|
|
38
|
-
), { result:
|
|
43
|
+
), { result: l };
|
|
39
44
|
} catch (i) {
|
|
40
45
|
return console.error("Error getting layer fields:", i), { error: { code: "unhandledError" } };
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
|
-
const
|
|
48
|
+
const O = (s) => {
|
|
44
49
|
const { url: e } = s;
|
|
45
50
|
return e ? e.replace("/rest/services", "/rest/admin/services").replace(/\/$/u, "") : null;
|
|
46
51
|
};
|
|
47
|
-
async function
|
|
52
|
+
async function E({
|
|
48
53
|
fields: s,
|
|
49
54
|
item: e,
|
|
50
|
-
portal:
|
|
51
|
-
layerId:
|
|
55
|
+
portal: t,
|
|
56
|
+
layerId: l
|
|
52
57
|
}) {
|
|
53
|
-
const i =
|
|
58
|
+
const i = O(e);
|
|
54
59
|
if (!i)
|
|
55
60
|
return {
|
|
56
61
|
error: {
|
|
@@ -59,35 +64,35 @@ async function I({
|
|
|
59
64
|
}
|
|
60
65
|
};
|
|
61
66
|
try {
|
|
62
|
-
const
|
|
63
|
-
url: `${i}/${
|
|
64
|
-
portal:
|
|
67
|
+
const a = await S({
|
|
68
|
+
url: `${i}/${l != null ? `${l}/` : ""}addToDefinition`,
|
|
69
|
+
portal: t,
|
|
65
70
|
method: "post",
|
|
66
71
|
params: {
|
|
67
72
|
addToDefinition: JSON.stringify({ fields: s })
|
|
68
73
|
}
|
|
69
74
|
});
|
|
70
|
-
return
|
|
75
|
+
return a.success === !1 || a.error ? {
|
|
71
76
|
error: {
|
|
72
77
|
code: "unhandledError",
|
|
73
|
-
message:
|
|
78
|
+
message: a.error?.message
|
|
74
79
|
}
|
|
75
|
-
} : { result:
|
|
76
|
-
} catch (
|
|
77
|
-
return console.error("Error adding fields to the feature service definition:",
|
|
80
|
+
} : { result: a };
|
|
81
|
+
} catch (a) {
|
|
82
|
+
return console.error("Error adding fields to the feature service definition:", a), {
|
|
78
83
|
error: {
|
|
79
84
|
code: "unhandledError"
|
|
80
85
|
}
|
|
81
86
|
};
|
|
82
87
|
}
|
|
83
88
|
}
|
|
84
|
-
async function
|
|
89
|
+
async function M({
|
|
85
90
|
fields: s,
|
|
86
91
|
item: e,
|
|
87
|
-
portal:
|
|
88
|
-
layerId:
|
|
92
|
+
portal: t,
|
|
93
|
+
layerId: l
|
|
89
94
|
}) {
|
|
90
|
-
const i =
|
|
95
|
+
const i = O(e);
|
|
91
96
|
if (!i)
|
|
92
97
|
return {
|
|
93
98
|
error: {
|
|
@@ -96,61 +101,61 @@ async function C({
|
|
|
96
101
|
}
|
|
97
102
|
};
|
|
98
103
|
try {
|
|
99
|
-
const
|
|
100
|
-
url: `${i}/${
|
|
101
|
-
portal:
|
|
104
|
+
const a = await S({
|
|
105
|
+
url: `${i}/${l != null ? `${l}/` : ""}updateDefinition`,
|
|
106
|
+
portal: t,
|
|
102
107
|
method: "post",
|
|
103
108
|
params: {
|
|
104
109
|
updateDefinition: JSON.stringify({ fields: s })
|
|
105
110
|
}
|
|
106
111
|
});
|
|
107
|
-
return
|
|
112
|
+
return a.success === !1 || a.error ? {
|
|
108
113
|
error: {
|
|
109
114
|
code: "unhandledError",
|
|
110
|
-
message:
|
|
115
|
+
message: a.error?.message ?? "Failed to update the feature service definition."
|
|
111
116
|
}
|
|
112
|
-
} : { result:
|
|
113
|
-
} catch (
|
|
114
|
-
return console.error("Error updating the feature service definition:",
|
|
117
|
+
} : { result: a };
|
|
118
|
+
} catch (a) {
|
|
119
|
+
return console.error("Error updating the feature service definition:", a), {
|
|
115
120
|
error: {
|
|
116
121
|
code: "unhandledError"
|
|
117
122
|
}
|
|
118
123
|
};
|
|
119
124
|
}
|
|
120
125
|
}
|
|
121
|
-
async function
|
|
126
|
+
async function N(s) {
|
|
122
127
|
const { url: e } = s;
|
|
123
128
|
if (!e)
|
|
124
129
|
return { error: { code: "unhandledError" } };
|
|
125
130
|
try {
|
|
126
|
-
return { result: (await
|
|
127
|
-
} catch (
|
|
128
|
-
return console.error("Error getting service info:",
|
|
131
|
+
return { result: (await f(e, { query: { f: "json" } })).data };
|
|
132
|
+
} catch (t) {
|
|
133
|
+
return console.error("Error getting service info:", t), { error: { code: "unhandledError" } };
|
|
129
134
|
}
|
|
130
135
|
}
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
-
return
|
|
134
|
-
({ code: i, name:
|
|
135
|
-
) :
|
|
136
|
-
},
|
|
137
|
-
const
|
|
138
|
-
for (const
|
|
139
|
-
const
|
|
140
|
-
|
|
136
|
+
const k = (s, e) => {
|
|
137
|
+
const t = s.domain ?? null, l = e.domain ?? null;
|
|
138
|
+
return t === null || l === null ? t === l : t.type !== l.type ? !1 : t.type === "codedValue" && l.type === "codedValue" ? t.codedValues.length === l.codedValues.length && t.codedValues.every(
|
|
139
|
+
({ code: i, name: a }, r) => i === l.codedValues[r]?.code && a === l.codedValues[r]?.name
|
|
140
|
+
) : t.type === "range" && l.type === "range" ? t.range[0] === l.range[0] && t.range[1] === l.range[1] : !0;
|
|
141
|
+
}, $ = (s, e) => {
|
|
142
|
+
const t = new Map(e.map((a) => [a.name, a])), l = [], i = [];
|
|
143
|
+
for (const a of s) {
|
|
144
|
+
const r = t.get(a.name);
|
|
145
|
+
r ? k(a, r) || i.push({ name: a.name, domain: a.domain }) : l.push(a);
|
|
141
146
|
}
|
|
142
|
-
return { missingFields:
|
|
143
|
-
},
|
|
147
|
+
return { missingFields: l, modifiedFields: i };
|
|
148
|
+
}, B = (s) => {
|
|
144
149
|
switch (s) {
|
|
145
150
|
case "esriGeometryPolyline":
|
|
146
151
|
case "esriGeometryPolygon":
|
|
147
|
-
return [...
|
|
152
|
+
return [...U];
|
|
148
153
|
case "esriGeometryPoint":
|
|
149
|
-
return [...
|
|
154
|
+
return [...K];
|
|
150
155
|
default:
|
|
151
156
|
return [];
|
|
152
157
|
}
|
|
153
|
-
},
|
|
158
|
+
}, F = (s) => s === "esriGeometryPoint" ? [...Y] : [], q = (s) => s === "esriGeometryPoint" ? [...H] : [], U = [
|
|
154
159
|
{
|
|
155
160
|
name: "esrignss_avg_h_rms",
|
|
156
161
|
type: "esriFieldTypeDouble",
|
|
@@ -222,7 +227,7 @@ const A = (s, e) => {
|
|
|
222
227
|
domain: null,
|
|
223
228
|
defaultValue: null
|
|
224
229
|
}
|
|
225
|
-
],
|
|
230
|
+
], K = [
|
|
226
231
|
{
|
|
227
232
|
name: "esrignss_speed",
|
|
228
233
|
type: "esriFieldTypeDouble",
|
|
@@ -633,7 +638,7 @@ const A = (s, e) => {
|
|
|
633
638
|
domain: null,
|
|
634
639
|
defaultValue: null
|
|
635
640
|
}
|
|
636
|
-
],
|
|
641
|
+
], Y = [
|
|
637
642
|
{
|
|
638
643
|
name: "esrisnsr_tilt_azimuth_accuracy",
|
|
639
644
|
type: "esriFieldTypeDouble",
|
|
@@ -691,7 +696,7 @@ const A = (s, e) => {
|
|
|
691
696
|
},
|
|
692
697
|
defaultValue: null
|
|
693
698
|
}
|
|
694
|
-
],
|
|
699
|
+
], H = [
|
|
695
700
|
{
|
|
696
701
|
name: "esrignss_cp1_latitude",
|
|
697
702
|
type: "esriFieldTypeDouble",
|
|
@@ -1180,77 +1185,107 @@ const A = (s, e) => {
|
|
|
1180
1185
|
defaultValue: null
|
|
1181
1186
|
}
|
|
1182
1187
|
];
|
|
1183
|
-
function
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
return
|
|
1188
|
+
function j(s) {
|
|
1189
|
+
if (s.geometryType === "polyline" || s.geometryType === "polygon") {
|
|
1190
|
+
const e = s.capabilities;
|
|
1191
|
+
return e?.data?.supportsAttachment && e?.operations?.supportsQueryAttachments;
|
|
1192
|
+
}
|
|
1193
|
+
return !0;
|
|
1189
1194
|
}
|
|
1190
|
-
const
|
|
1191
|
-
class
|
|
1195
|
+
const W = (s) => s.every(j), X = ["point", "polyline", "polygon"], J = (s) => s?.type === "Feature Service", P = (s) => J(s) && !s.typeKeywords.some((e) => ["View Service", "Multi Services View"].includes(e));
|
|
1196
|
+
class Q extends A {
|
|
1192
1197
|
constructor() {
|
|
1193
|
-
super(...arguments), this.messages =
|
|
1198
|
+
super(...arguments), this.messages = z({ blocking: !0 }), this.initCount = 0, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.loadedItem = null, this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.initializing = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1, this.addingGPSFieldMetadata = [], this.item = null, this.itemId = null, this.canShowAddGPSMetadata = !1, this.supportsAttachments = !0, this.areSourceSchemaChangesAllowed = !0, this.messageOverrides = {}, this.arcgisPropertyChange = w()("canShowAddGPSMetadata", "supportsAttachments", "areSourceSchemaChangesAllowed"), this.arcgisGPSMetadataFieldsAdded = b(), this.arcgisReadOnlyMode = b();
|
|
1194
1199
|
}
|
|
1195
1200
|
static {
|
|
1196
|
-
this.properties = { loadedItem: 16, gpsFieldFixesBySet: 16, addFieldsDisabled: 16, initializing: 16, hasLineOrPolygonLayer: 16, hasPointFeatureLayer: 16, addingGPSFieldMetadata: 16, item: 0, itemId: 1, portal: 0 };
|
|
1201
|
+
this.properties = { loadedItem: 16, gpsFieldFixesBySet: 16, addFieldsDisabled: 16, initializing: 16, hasLineOrPolygonLayer: 16, hasPointFeatureLayer: 16, addingGPSFieldMetadata: 16, item: 0, itemId: 1, portal: 0, canShowAddGPSMetadata: 32, supportsAttachments: 32, areSourceSchemaChangesAllowed: 32, messageOverrides: 0 };
|
|
1197
1202
|
}
|
|
1198
1203
|
static {
|
|
1199
|
-
this.styles =
|
|
1204
|
+
this.styles = R;
|
|
1205
|
+
}
|
|
1206
|
+
connectedCallback() {
|
|
1207
|
+
super.connectedCallback(), this.hasUpdated && this.initItem();
|
|
1200
1208
|
}
|
|
1201
1209
|
willUpdate(e) {
|
|
1202
1210
|
(e.has("item") || e.has("itemId")) && this.initItem();
|
|
1203
1211
|
}
|
|
1204
1212
|
async initItem({ showLoading: e = !0 } = {}) {
|
|
1205
|
-
const
|
|
1213
|
+
const t = ++this.initCount;
|
|
1206
1214
|
if (!this.item && !this.itemId) {
|
|
1207
1215
|
this.resetItemState(), this.initializing = !1;
|
|
1208
1216
|
return;
|
|
1209
1217
|
}
|
|
1210
1218
|
e && (this.resetItemState(), this.initializing = !0);
|
|
1211
|
-
const { item:
|
|
1219
|
+
const { item: l, itemId: i, portal: a } = this;
|
|
1220
|
+
if (l?.type && !P(l)) {
|
|
1221
|
+
this.resetItemState(), this.initializing = !1;
|
|
1222
|
+
return;
|
|
1223
|
+
}
|
|
1224
|
+
const r = l ? await l.load() : await new C({
|
|
1212
1225
|
id: i,
|
|
1213
|
-
portal:
|
|
1226
|
+
portal: a
|
|
1214
1227
|
}).load();
|
|
1215
|
-
if (!this.isCurrentInitialization(
|
|
1228
|
+
if (!this.isCurrentInitialization(t))
|
|
1216
1229
|
return;
|
|
1217
|
-
if (!
|
|
1230
|
+
if (!P(r)) {
|
|
1218
1231
|
this.resetItemState(), this.initializing = !1;
|
|
1219
1232
|
return;
|
|
1220
1233
|
}
|
|
1221
|
-
this.loadedItem =
|
|
1222
|
-
const
|
|
1223
|
-
if (!this.isCurrentInitialization(
|
|
1234
|
+
this.loadedItem = r;
|
|
1235
|
+
const n = !e && this.layersLoaded ? [...this.pointLayers, ...this.lineOrPolygonLayers] : await this.getFeatureLayers(r);
|
|
1236
|
+
if (!this.isCurrentInitialization(t))
|
|
1224
1237
|
return;
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
if (!this.isCurrentInitialization(l))
|
|
1238
|
+
if (n.length === 0) {
|
|
1239
|
+
this.resetItemState(), this.initializing = !1;
|
|
1228
1240
|
return;
|
|
1229
|
-
|
|
1241
|
+
}
|
|
1242
|
+
const p = await G(r.id, r.portal, {
|
|
1243
|
+
relationshipType: "Service2Service"
|
|
1244
|
+
});
|
|
1245
|
+
if (!this.isCurrentInitialization(t))
|
|
1246
|
+
return;
|
|
1247
|
+
if (p?.data?.relatedItems?.some((d) => ["WMTS", "Map Service", "Vector Tile Service"].includes(d.type))) {
|
|
1230
1248
|
this.resetItemState(), this.initializing = !1;
|
|
1231
1249
|
return;
|
|
1232
1250
|
}
|
|
1233
|
-
|
|
1251
|
+
this.layersLoaded = !0, this.pointLayers = n.filter((d) => d.geometryType === "point"), this.lineOrPolygonLayers = n.filter((d) => d.geometryType === "polyline" || d.geometryType === "polygon"), this.hasLineOrPolygonLayer = n.some((d) => d.geometryType === "polyline" || d.geometryType === "polygon"), this.hasPointFeatureLayer = n.some((d) => d.geometryType === "point"), T(() => this.canShowAddGPSMetadata = !0);
|
|
1252
|
+
const { result: o } = await N(r);
|
|
1253
|
+
if (!this.isCurrentInitialization(t))
|
|
1254
|
+
return;
|
|
1255
|
+
const { result: m, error: h } = await _({
|
|
1256
|
+
item: r,
|
|
1257
|
+
layers: n
|
|
1258
|
+
});
|
|
1259
|
+
if (!this.isCurrentInitialization(t))
|
|
1260
|
+
return;
|
|
1261
|
+
if (h) {
|
|
1262
|
+
this.resetItemState(), this.initializing = !1;
|
|
1263
|
+
return;
|
|
1264
|
+
}
|
|
1265
|
+
const g = m ?? /* @__PURE__ */ new Map();
|
|
1234
1266
|
this.gpsFieldFixesBySet = {
|
|
1235
|
-
base: this.analyzeFieldSet([...this.pointLayers, ...this.lineOrPolygonLayers],
|
|
1236
|
-
gnss: this.analyzeFieldSet(this.pointLayers,
|
|
1237
|
-
rangefinder: this.analyzeFieldSet(this.pointLayers,
|
|
1238
|
-
},
|
|
1239
|
-
|
|
1240
|
-
this.addFieldsDisabled = !this.supportsAttachments || !
|
|
1267
|
+
base: this.analyzeFieldSet([...this.pointLayers, ...this.lineOrPolygonLayers], g, "base"),
|
|
1268
|
+
gnss: this.analyzeFieldSet(this.pointLayers, g, "gnss"),
|
|
1269
|
+
rangefinder: this.analyzeFieldSet(this.pointLayers, g, "rangefinder")
|
|
1270
|
+
}, T(() => {
|
|
1271
|
+
this.supportsAttachments = W(n), this.areSourceSchemaChangesAllowed = o?.sourceSchemaChangesAllowed !== !1;
|
|
1272
|
+
}), this.addFieldsDisabled = !this.supportsAttachments || !this.areSourceSchemaChangesAllowed, this.initializing = !1;
|
|
1241
1273
|
}
|
|
1242
1274
|
isCurrentInitialization(e) {
|
|
1243
1275
|
return e === this.initCount;
|
|
1244
1276
|
}
|
|
1245
1277
|
resetItemState() {
|
|
1246
|
-
|
|
1278
|
+
T(() => {
|
|
1279
|
+
this.canShowAddGPSMetadata = !1, this.supportsAttachments = !0, this.areSourceSchemaChangesAllowed = !0;
|
|
1280
|
+
}), this.loadedItem = null, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1;
|
|
1247
1281
|
}
|
|
1248
1282
|
async getFeatureLayers(e) {
|
|
1249
|
-
const
|
|
1250
|
-
return await
|
|
1283
|
+
const t = await I.fromPortalItem({ portalItem: e });
|
|
1284
|
+
return await t.load(), "layers" in t ? (await Promise.all(t.layers.map(async (i) => (await i.load(), this.isSupportedFeatureLayer(i) ? i : null)))).filter((i) => !!i) : this.isSupportedFeatureLayer(t) ? [t] : [];
|
|
1251
1285
|
}
|
|
1252
1286
|
isSupportedFeatureLayer(e) {
|
|
1253
|
-
|
|
1287
|
+
const t = e;
|
|
1288
|
+
return e.type === "feature" && X.some((l) => l === t.geometryType);
|
|
1254
1289
|
}
|
|
1255
1290
|
getCompatibleEsriGeometryType(e) {
|
|
1256
1291
|
switch (e.geometryType) {
|
|
@@ -1264,14 +1299,14 @@ class k extends P {
|
|
|
1264
1299
|
return null;
|
|
1265
1300
|
}
|
|
1266
1301
|
}
|
|
1267
|
-
analyzeFieldSet(e,
|
|
1302
|
+
analyzeFieldSet(e, t, l) {
|
|
1268
1303
|
const i = [];
|
|
1269
|
-
for (const
|
|
1270
|
-
if (
|
|
1304
|
+
for (const a of e) {
|
|
1305
|
+
if (a.layerId == null)
|
|
1271
1306
|
continue;
|
|
1272
|
-
const
|
|
1307
|
+
const r = t.get(a.layerId) ?? [], n = this.getCompatibleEsriGeometryType(a), p = n ? l === "base" ? B(n) : l === "gnss" ? F(n) : q(n) : [], o = $(p, r);
|
|
1273
1308
|
(o.missingFields.length > 0 || o.modifiedFields.length > 0) && i.push({
|
|
1274
|
-
layerId:
|
|
1309
|
+
layerId: a.layerId,
|
|
1275
1310
|
fieldsToAdd: o.missingFields,
|
|
1276
1311
|
domainsToUpdate: o.modifiedFields
|
|
1277
1312
|
});
|
|
@@ -1285,46 +1320,59 @@ class k extends P {
|
|
|
1285
1320
|
return this.addingGPSFieldMetadata.includes(e);
|
|
1286
1321
|
}
|
|
1287
1322
|
async addFields(e) {
|
|
1288
|
-
const
|
|
1289
|
-
if (!
|
|
1290
|
-
|
|
1291
|
-
|
|
1323
|
+
const t = this.portal ?? this.loadedItem?.portal, l = this.loadedItem, i = this.gpsFieldFixesBySet;
|
|
1324
|
+
if (!t || !l || !i)
|
|
1325
|
+
return;
|
|
1326
|
+
if (t.isReadOnly) {
|
|
1327
|
+
this.arcgisReadOnlyMode.emit();
|
|
1328
|
+
return;
|
|
1329
|
+
}
|
|
1330
|
+
this.addingGPSFieldMetadata = [...this.addingGPSFieldMetadata, e];
|
|
1331
|
+
const a = [...this.pointLayers, ...this.lineOrPolygonLayers];
|
|
1332
|
+
try {
|
|
1333
|
+
const r = i[e], p = (await Promise.all(r.filter(({ fieldsToAdd: u }) => u.length > 0).map(async ({ fieldsToAdd: u, layerId: y }) => await E({ fields: u, item: l, layerId: y, portal: t })))).every(({ error: u }) => !u), o = p ? await Promise.all(r.filter(({ domainsToUpdate: u }) => u.length > 0).map(async ({ domainsToUpdate: u, layerId: y }) => await M({ fields: u, item: l, layerId: y, portal: t }))) : [], m = p && o.every(({ error: u }) => !u);
|
|
1334
|
+
if (!m || this.loadedItem !== l)
|
|
1292
1335
|
return;
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1336
|
+
let h;
|
|
1337
|
+
if (await x(async () => {
|
|
1338
|
+
if (this.loadedItem !== l)
|
|
1339
|
+
return !0;
|
|
1340
|
+
const { result: u, error: y } = await _({ item: l, layers: a });
|
|
1341
|
+
if (y || this.loadedItem !== l)
|
|
1342
|
+
return !0;
|
|
1343
|
+
if (!u)
|
|
1344
|
+
return !1;
|
|
1345
|
+
const V = e === "base" ? a : a.filter((v) => v.geometryType === "point");
|
|
1346
|
+
return this.analyzeFieldSet(V, u, e).length > 0 ? !1 : (h = u, !0);
|
|
1347
|
+
}, 10) || console.warn("Fields were not verified on the service.", {
|
|
1348
|
+
itemId: l.id,
|
|
1349
|
+
fieldSet: e
|
|
1350
|
+
}), !h || this.loadedItem !== l)
|
|
1351
|
+
return;
|
|
1352
|
+
await this.initItem({ showLoading: !1 }), p && m && this.gpsFieldFixesBySet && !this.hasFieldChanges(e) && this.arcgisGPSMetadataFieldsAdded.emit(e);
|
|
1353
|
+
} finally {
|
|
1354
|
+
this.addingGPSFieldMetadata = this.addingGPSFieldMetadata.filter((r) => r !== e);
|
|
1301
1355
|
}
|
|
1302
1356
|
}
|
|
1303
|
-
canShowAddGPSMetadata() {
|
|
1304
|
-
const e = this.loadedItem ?? this.item;
|
|
1305
|
-
return !!e && T(e);
|
|
1306
|
-
}
|
|
1307
1357
|
showAdvancedFields() {
|
|
1308
1358
|
const e = this.gpsFieldFixesBySet;
|
|
1309
|
-
return !this.hasPointFeatureLayer || !e ? !1 : this.pointLayers.some((l) => {
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
return (e.base.find(({ layerId: n }) => n === l.layerId)?.fieldsToAdd ?? []).length < i.length;
|
|
1314
|
-
});
|
|
1359
|
+
return !this.hasPointFeatureLayer || !e ? !1 : this.hasFieldChanges("base") ? this.pointLayers.some((t) => t.layerId == null ? !1 : ["gnss", "rangefinder"].some((l) => {
|
|
1360
|
+
const i = l === "gnss" ? F("esriGeometryPoint") : q("esriGeometryPoint");
|
|
1361
|
+
return (e[l].find(({ layerId: r }) => r === t.layerId)?.fieldsToAdd ?? []).length < i.length;
|
|
1362
|
+
})) : !0;
|
|
1315
1363
|
}
|
|
1316
|
-
renderAddFieldsControl(e,
|
|
1317
|
-
const
|
|
1318
|
-
if (!
|
|
1364
|
+
renderAddFieldsControl(e, t = !1) {
|
|
1365
|
+
const l = this.gpsFieldFixesBySet;
|
|
1366
|
+
if (!t && l && !this.hasFieldChanges(e))
|
|
1319
1367
|
return c`<span slot=actions-end class="added"><calcite-icon icon=check-circle scale=s aria-hidden></calcite-icon>${this.messages.added}</span>`;
|
|
1320
1368
|
const i = this.isLoading(e);
|
|
1321
|
-
return c`<calcite-button slot=actions-end appearance=outline-fill .disabled=${
|
|
1369
|
+
return c`<calcite-button slot=actions-end class="add-fields-button" appearance=outline-fill .disabled=${t || !l || i || this.addFieldsDisabled} .loading=${i} @click=${async () => await this.addFields(e)}>${i ? this.messages.addingFields : this.messages.addFields}</calcite-button>`;
|
|
1322
1370
|
}
|
|
1323
1371
|
render() {
|
|
1324
|
-
return this.canShowAddGPSMetadata
|
|
1372
|
+
return this.canShowAddGPSMetadata ? c`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing && c`<calcite-scrim loading></calcite-scrim>` || ""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields() && c`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>` || ""}</calcite-list></calcite-block></div>` : null;
|
|
1325
1373
|
}
|
|
1326
1374
|
}
|
|
1327
|
-
|
|
1375
|
+
D("arcgis-portal-add-gps-metadata", Q);
|
|
1328
1376
|
export {
|
|
1329
|
-
|
|
1377
|
+
Q as ArcgisPortalAddGpsMetadata
|
|
1330
1378
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
3
3
|
import type PortalUser from "@arcgis/core/portal/PortalUser.js";
|
|
4
|
+
import type { ArcgisAssistant } from "@arcgis/ai-components/components/arcgis-assistant";
|
|
4
5
|
import type { Config } from "@arcgis/core/config.js";
|
|
5
6
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
7
|
+
import type { PortalAssistantCurrentContext } from "../../types/portalAssistantCurrentContext.js";
|
|
6
8
|
import type { PartialPortalNavigationTargetMap, PortalNavigationTarget } from "./types/navigation.js";
|
|
7
|
-
import type { CapabilityRegistry } from "./data/capability-registries/types.js";
|
|
8
9
|
import type { PortalAssistantTools } from "./types/assistantTools.js";
|
|
10
|
+
import type { PortalAssistantEntityToolPresets } from "./types/portalEntityTools.js";
|
|
9
11
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
10
12
|
|
|
11
13
|
/** @internal */
|
|
@@ -13,17 +15,35 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
|
|
|
13
15
|
/** @default false */
|
|
14
16
|
accessor autoDestroyDisabled: boolean;
|
|
15
17
|
accessor config: Config;
|
|
18
|
+
/**
|
|
19
|
+
* The item, group, or organization displayed in the host application's current view.
|
|
20
|
+
* The AI assistant uses this context to understand references such as "this item".
|
|
21
|
+
* Assign a new object when the view changes, or `undefined` when there is no current entity.
|
|
22
|
+
*/
|
|
23
|
+
accessor currentContext: PortalAssistantCurrentContext | undefined;
|
|
16
24
|
/** @default false */
|
|
17
25
|
accessor defaultClosed: boolean;
|
|
18
|
-
/**
|
|
19
|
-
accessor disabledAgents:
|
|
20
|
-
|
|
26
|
+
/** Disables the tool agent when `tools` is true. Omitted means enabled. */
|
|
27
|
+
accessor disabledAgents: { tools?: boolean; } | undefined;
|
|
28
|
+
/** Entity types offered by askUser for explicit picker selection. Omitted entity types are enabled. */
|
|
29
|
+
accessor entityToolPresets: PortalAssistantEntityToolPresets | undefined;
|
|
21
30
|
/** Optional map of navigation target overrides for generating navigation hrefs from portal navigation suggestions. */
|
|
22
31
|
accessor navigationTargetMap: PartialPortalNavigationTargetMap | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Enables runtime tracing and opens a movable, resizable developer diagnostics window.
|
|
34
|
+
* Recorded inputs and outputs may contain sensitive data. Disable when diagnostics are not needed.
|
|
35
|
+
* Set before starting a conversation; changing this flag reinitializes the assistant runtime.
|
|
36
|
+
* Closing the window preserves recorded history and tracing. Reopen it from the assistant header.
|
|
37
|
+
* Disabling removes the panel and its recorded history.
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
accessor observabilityEnabled: boolean;
|
|
23
42
|
accessor portal: Portal;
|
|
24
43
|
/** @internal */
|
|
25
44
|
protected t9n: {
|
|
26
45
|
heading: string;
|
|
46
|
+
diagnostics: string;
|
|
27
47
|
placeholder: string;
|
|
28
48
|
askMeAQuestionPlaceholder: string;
|
|
29
49
|
emptyStateMessage: string;
|
|
@@ -93,6 +113,7 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
|
|
|
93
113
|
};
|
|
94
114
|
} & T9nMeta<{
|
|
95
115
|
heading: string;
|
|
116
|
+
diagnostics: string;
|
|
96
117
|
placeholder: string;
|
|
97
118
|
askMeAQuestionPlaceholder: string;
|
|
98
119
|
emptyStateMessage: string;
|
|
@@ -166,15 +187,23 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
|
|
|
166
187
|
*
|
|
167
188
|
* The factory receives Portal-provided `tool` and
|
|
168
189
|
* `requestPortalAssistantUiAction` helpers.
|
|
190
|
+
* Configure tools before starting a conversation; live replacement during a running turn is not supported.
|
|
191
|
+
* Tool interrupts must treat a `false` response as rejection. User cancellation resumes the agent
|
|
192
|
+
* with that response; it does not approve the tool or stop the entire conversation.
|
|
169
193
|
*/
|
|
170
194
|
accessor tools: PortalAssistantTools | undefined;
|
|
195
|
+
accessor user: PortalUser;
|
|
171
196
|
/**
|
|
172
|
-
*
|
|
197
|
+
* Submits a message after the Portal AI assistant has finished initializing.
|
|
173
198
|
*
|
|
174
|
-
* @
|
|
199
|
+
* @param args
|
|
200
|
+
* @example
|
|
201
|
+
* ```js
|
|
202
|
+
* const assistant = document.querySelector("arcgis-portal-ai-assistant");
|
|
203
|
+
* await assistant.submitMessage("Summarize this group.");
|
|
204
|
+
* ```
|
|
175
205
|
*/
|
|
176
|
-
|
|
177
|
-
accessor user: PortalUser;
|
|
206
|
+
submitMessage(...args: Parameters<ArcgisAssistant["submitMessage"]>): Promise<void>;
|
|
178
207
|
readonly arcgisPortalNavigationRequest: import("@arcgis/lumina").TargetedEvent<this, {
|
|
179
208
|
href: string;
|
|
180
209
|
targetDetail: PortalNavigationTarget;
|
|
@@ -182,10 +211,4 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
|
|
|
182
211
|
readonly "@eventTypes": {
|
|
183
212
|
arcgisPortalNavigationRequest: ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]["detail"];
|
|
184
213
|
};
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @internal */
|
|
188
|
-
export type PortalAiAssistantDisabledAgents = Partial<Record<PortalAiAssistantAgentKey, boolean>>;
|
|
189
|
-
|
|
190
|
-
/** @internal */
|
|
191
|
-
export type PortalAiAssistantAgentKey = "docAssistant" | "groupAnalytics" | "groupCreation" | "itemAnalytics" | "navigation" | "tools";
|
|
214
|
+
}
|