@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
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { toJsonSchema as m } from "@langchain/core/utils/json_schema";
|
|
3
|
+
import { c as u } from "./constants.js";
|
|
4
|
+
const i = {
|
|
5
|
+
heading: "Context",
|
|
6
|
+
runs: "Runs",
|
|
7
|
+
usage: "{used} / {max} input tokens ({percent})",
|
|
8
|
+
usageUnknownWindow: "{used} input tokens. Context window unknown",
|
|
9
|
+
notReported: "Not reported",
|
|
10
|
+
cache: "Cache reads: {read} tokens. Cache writes: {write} tokens.",
|
|
11
|
+
cacheUnidentified: "Prompt cached content cannot be identified.",
|
|
12
|
+
messages: "Input messages",
|
|
13
|
+
calls: "Model calls",
|
|
14
|
+
callsInfo: "About model calls",
|
|
15
|
+
run: "Run {number}",
|
|
16
|
+
callsDescription: "A run is one request you send. The model is called once to start a run, and again after each round of tool calls, so one run usually has several model calls. Each entry is one model call, not a tool call. It shows the input size and cache use of that call. Select one to see what it sent.",
|
|
17
|
+
call: "Model call {number}",
|
|
18
|
+
callSummary: "{used} input tokens | Cache reads {read} | Cache writes {write}",
|
|
19
|
+
cached: "Prompt cached (estimated)",
|
|
20
|
+
cachedResults: "Cached tool results sent ({count})",
|
|
21
|
+
cachedResultsDescription: "Earlier tool results the assistant kept and sent to the model with this call, so it would not call those tools again.",
|
|
22
|
+
cachedResultsNone: "None sent with this call.",
|
|
23
|
+
cachedResultsNote: "Cached tool results",
|
|
24
|
+
cachedResultInput: "Input {input}",
|
|
25
|
+
resultsCached: "Results cached",
|
|
26
|
+
resultsCachedNoInvalidation: "Results cached, no invalidation",
|
|
27
|
+
new: "Not prompt cached",
|
|
28
|
+
characters: "{count} characters",
|
|
29
|
+
tools: "Registered tools now ({count})",
|
|
30
|
+
schemaUnavailable: "Schema unavailable"
|
|
31
|
+
};
|
|
32
|
+
function d(e) {
|
|
33
|
+
return typeof e == "string" ? e : Array.isArray(e) ? e.map((n) => {
|
|
34
|
+
const t = n?.text;
|
|
35
|
+
return typeof t == "string" ? t : d(n);
|
|
36
|
+
}).join(`
|
|
37
|
+
`) : e === void 0 ? "" : JSON.stringify(e);
|
|
38
|
+
}
|
|
39
|
+
function h(e) {
|
|
40
|
+
const n = e?.messages;
|
|
41
|
+
return Array.isArray(n) ? n.flat().map((t) => ({
|
|
42
|
+
role: t.type ?? "unknown",
|
|
43
|
+
// A reply that only calls tools has no content; its tool calls are what is sent back to the model.
|
|
44
|
+
text: d(t.content) + ("tool_calls" in t && t.tool_calls?.length ? JSON.stringify(t.tool_calls) : "")
|
|
45
|
+
})) : [];
|
|
46
|
+
}
|
|
47
|
+
function y(e) {
|
|
48
|
+
if (e.phase !== "started" || e.span.type !== "workflow" || e.span.parentId)
|
|
49
|
+
return;
|
|
50
|
+
const n = e.span.input?.agentExecutionContext?.userRequest;
|
|
51
|
+
return typeof n == "string" ? n : void 0;
|
|
52
|
+
}
|
|
53
|
+
function R(e, n, t = "") {
|
|
54
|
+
const { span: r } = n;
|
|
55
|
+
if (r.type !== "model")
|
|
56
|
+
return e;
|
|
57
|
+
const s = r.metadata?.model;
|
|
58
|
+
if (n.phase === "started") {
|
|
59
|
+
const o = e.at(-1), a = e.find((c) => c.runId === n.runId);
|
|
60
|
+
return [
|
|
61
|
+
...e,
|
|
62
|
+
{
|
|
63
|
+
id: r.id,
|
|
64
|
+
runId: n.runId,
|
|
65
|
+
runNumber: a?.runNumber ?? (o?.runNumber ?? 0) + 1,
|
|
66
|
+
runName: a?.runName ?? t,
|
|
67
|
+
number: (o?.number ?? 0) + 1,
|
|
68
|
+
model: s,
|
|
69
|
+
messages: h(n.span.input),
|
|
70
|
+
completed: !1
|
|
71
|
+
}
|
|
72
|
+
].slice(-20);
|
|
73
|
+
}
|
|
74
|
+
return n.phase === "completed" ? e.map(
|
|
75
|
+
(o) => o.id === r.id ? { ...o, model: s ?? o.model, completed: !0, usage: r.metadata?.tokenUsage } : o
|
|
76
|
+
) : e.filter((o) => o.id !== r.id);
|
|
77
|
+
}
|
|
78
|
+
function p(e, n) {
|
|
79
|
+
let t = 0;
|
|
80
|
+
for (; t < e.length && t < n.length && e[t].role === n[t].role && e[t].text === n[t].text; )
|
|
81
|
+
t++;
|
|
82
|
+
return t;
|
|
83
|
+
}
|
|
84
|
+
function f(e) {
|
|
85
|
+
const n = e.find((t) => t.text.startsWith(u))?.text;
|
|
86
|
+
if (!n)
|
|
87
|
+
return [];
|
|
88
|
+
try {
|
|
89
|
+
return JSON.parse(n.slice(u.length)).map(({ toolName: r, input: s, output: o }) => ({
|
|
90
|
+
toolName: r,
|
|
91
|
+
input: JSON.stringify(s) ?? "",
|
|
92
|
+
output: typeof o == "string" ? o : JSON.stringify(o, null, 2) ?? ""
|
|
93
|
+
}));
|
|
94
|
+
} catch {
|
|
95
|
+
return [];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function S(e, n = {}) {
|
|
99
|
+
return e.flatMap((t, r) => {
|
|
100
|
+
if (!t.completed)
|
|
101
|
+
return [];
|
|
102
|
+
const { usage: s } = t, o = s?.cacheRead ? Math.max(
|
|
103
|
+
0,
|
|
104
|
+
...e.slice(0, r).filter((a) => a.model === t.model).map((a) => p(a.messages, t.messages))
|
|
105
|
+
) : 0;
|
|
106
|
+
return [
|
|
107
|
+
{
|
|
108
|
+
id: t.id,
|
|
109
|
+
runId: t.runId,
|
|
110
|
+
runNumber: t.runNumber,
|
|
111
|
+
runName: t.runName,
|
|
112
|
+
number: t.number,
|
|
113
|
+
promptSize: s?.input,
|
|
114
|
+
contextWindow: t.model ? n[t.model] : void 0,
|
|
115
|
+
cacheRead: s?.cacheRead,
|
|
116
|
+
cacheWrite: s?.cacheWrite,
|
|
117
|
+
messages: t.messages.map((a, c) => ({
|
|
118
|
+
...a,
|
|
119
|
+
...o > 0 && { cached: c < o },
|
|
120
|
+
...a.text.startsWith(u) && { hasCachedToolResults: !0 }
|
|
121
|
+
})),
|
|
122
|
+
cachedToolResults: f(t.messages)
|
|
123
|
+
}
|
|
124
|
+
];
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function C(e) {
|
|
128
|
+
const n = e?.models;
|
|
129
|
+
return Object.fromEntries(
|
|
130
|
+
(n ?? []).flatMap(
|
|
131
|
+
({ name: t, limits: r }) => t && typeof r?.max_input_tokens == "number" ? [[t, r.max_input_tokens]] : []
|
|
132
|
+
)
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
function N(e, n = /* @__PURE__ */ new Map()) {
|
|
136
|
+
return e.map((t) => {
|
|
137
|
+
let r = i.schemaUnavailable;
|
|
138
|
+
try {
|
|
139
|
+
r = JSON.stringify(m(t.schema), null, 2);
|
|
140
|
+
} catch {
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
name: t.name,
|
|
144
|
+
description: t.description,
|
|
145
|
+
schema: r,
|
|
146
|
+
cachePolicy: n.get(t.name) ?? "no-cache"
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function b(e, n) {
|
|
151
|
+
return e.find(({ id: t }) => t === n) ?? e.at(-1);
|
|
152
|
+
}
|
|
153
|
+
function k(e) {
|
|
154
|
+
return !!e?.cacheRead && !!e?.messages.every(({ cached: n }) => n === void 0);
|
|
155
|
+
}
|
|
156
|
+
function I(e) {
|
|
157
|
+
const n = /* @__PURE__ */ new Map();
|
|
158
|
+
for (const t of e) {
|
|
159
|
+
const { runId: r, runNumber: s, runName: o } = t, a = n.get(r) ?? { runId: r, runNumber: s, runName: o, usages: [] };
|
|
160
|
+
a.usages.push(t), n.set(r, a);
|
|
161
|
+
}
|
|
162
|
+
return [...n.values()];
|
|
163
|
+
}
|
|
164
|
+
function M({ runName: e, runNumber: n }) {
|
|
165
|
+
return e ? e.length > 80 ? `${e.slice(0, 77)}...` : e : i.run.replace("{number}", n.toLocaleString());
|
|
166
|
+
}
|
|
167
|
+
function l(e, n) {
|
|
168
|
+
return `${e.toLocaleString()} ${n}${e === 1 ? "" : "s"}`;
|
|
169
|
+
}
|
|
170
|
+
function g(e) {
|
|
171
|
+
return l(e, "model call");
|
|
172
|
+
}
|
|
173
|
+
function U(e) {
|
|
174
|
+
const n = new Set(e.map(({ runId: s }) => s)).size, t = `${g(e.length)} in ${l(n, "run")}`, r = e.flatMap(({ promptSize: s }) => s === void 0 ? [] : [s]);
|
|
175
|
+
return r.length ? `${t} | largest input ${Math.max(...r).toLocaleString()} tokens` : t;
|
|
176
|
+
}
|
|
177
|
+
function L(e) {
|
|
178
|
+
return e?.toLocaleString() ?? i.notReported;
|
|
179
|
+
}
|
|
180
|
+
function W(e) {
|
|
181
|
+
return i.characters.replace("{count}", e.length.toLocaleString());
|
|
182
|
+
}
|
|
183
|
+
function $(e) {
|
|
184
|
+
const { promptSize: n, contextWindow: t } = e ?? {};
|
|
185
|
+
return n === void 0 ? i.notReported : t === void 0 ? i.usageUnknownWindow.replace("{used}", n.toLocaleString()) : i.usage.replace("{used}", n.toLocaleString()).replace("{max}", t.toLocaleString()).replace(
|
|
186
|
+
"{percent}",
|
|
187
|
+
new Intl.NumberFormat(void 0, { style: "percent", maximumFractionDigits: 1 }).format(
|
|
188
|
+
n / t
|
|
189
|
+
)
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
export {
|
|
193
|
+
U as a,
|
|
194
|
+
M as b,
|
|
195
|
+
i as c,
|
|
196
|
+
g as d,
|
|
197
|
+
L as e,
|
|
198
|
+
b as f,
|
|
199
|
+
I as g,
|
|
200
|
+
$ as h,
|
|
201
|
+
k as i,
|
|
202
|
+
W as j,
|
|
203
|
+
N as k,
|
|
204
|
+
S as l,
|
|
205
|
+
y as m,
|
|
206
|
+
R as n,
|
|
207
|
+
C as r
|
|
208
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { FunctionTool as r } from "@arcgis/ai-components/agent-utils/tools/FunctionTool.js";
|
|
3
|
+
import { d as e } from "./constants.js";
|
|
4
|
+
const c = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function i(o) {
|
|
6
|
+
return c.get(o) ?? e;
|
|
7
|
+
}
|
|
8
|
+
function s({
|
|
9
|
+
cachePolicy: o = e,
|
|
10
|
+
...n
|
|
11
|
+
}) {
|
|
12
|
+
const t = new r(n);
|
|
13
|
+
return c.set(t, o), t;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
s as c,
|
|
17
|
+
i as g
|
|
18
|
+
};
|
|
@@ -6,7 +6,7 @@ import * as x from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
|
6
6
|
import R from "@arcgis/core/request.js";
|
|
7
7
|
import * as L from "@arcgis/core/core/sql.js";
|
|
8
8
|
import * as H from "@arcgis/core/applications/PortalApp/layerUtils.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as J, b as N, l as T, c as P, d as z, u as G, e as E, f as D, h as V, g as k } from "./item.js";
|
|
10
10
|
import { a as K } from "./portal.js";
|
|
11
11
|
var O = /* @__PURE__ */ ((r) => (r.expression = "expression/", r))(O || {});
|
|
12
12
|
function b(r) {
|
|
@@ -264,11 +264,11 @@ async function C(r, e, i) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
export {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
267
|
+
xe as a,
|
|
268
|
+
Oe as b,
|
|
269
|
+
Je as c,
|
|
270
|
+
ve as d,
|
|
271
|
+
Re as e,
|
|
272
272
|
be as g,
|
|
273
273
|
b as i
|
|
274
274
|
};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
const
|
|
3
|
-
throw new Error(`Unexpected value: ${
|
|
4
|
-
},
|
|
5
|
-
await new Promise((
|
|
6
|
-
}, n = (
|
|
2
|
+
const r = (t) => {
|
|
3
|
+
throw new Error(`Unexpected value: ${t}`);
|
|
4
|
+
}, s = async (t) => {
|
|
5
|
+
await new Promise((e) => setTimeout(e, t));
|
|
6
|
+
}, n = async (t, e = 10) => {
|
|
7
|
+
for (let a = 0; a < e; a++)
|
|
8
|
+
if (a > 0 && await s(500 * 2 ** Math.floor((a - 1) / 2)), await t())
|
|
9
|
+
return !0;
|
|
10
|
+
return !1;
|
|
11
|
+
}, o = (t, e) => t.includes(e);
|
|
7
12
|
export {
|
|
8
|
-
|
|
9
|
-
o as
|
|
10
|
-
n as
|
|
11
|
-
|
|
13
|
+
r as a,
|
|
14
|
+
o as i,
|
|
15
|
+
n as p,
|
|
16
|
+
s as t
|
|
12
17
|
};
|
package/dist/chunks/groups.js
CHANGED
|
@@ -1,64 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
|
|
3
|
-
import { a as d } from "./portal.js";
|
|
4
|
-
async function l(t, o = {}) {
|
|
5
|
-
return await t.queryGroups(o);
|
|
6
|
-
}
|
|
7
|
-
async function p(t, o) {
|
|
8
|
-
const e = o.title.trim();
|
|
9
|
-
if (!e)
|
|
10
|
-
return { error: { code: "unhandledError", message: "Group title is required." } };
|
|
11
|
-
try {
|
|
12
|
-
const { data: r } = await n(`${d(t)}community/createGroup`, {
|
|
13
|
-
method: "post",
|
|
14
|
-
responseType: "json",
|
|
15
|
-
query: {
|
|
16
|
-
f: "json",
|
|
17
|
-
...o,
|
|
18
|
-
title: e
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return !r.success || !r.group?.id ? {
|
|
22
|
-
error: {
|
|
23
|
-
code: "unhandledError",
|
|
24
|
-
message: "Unable to create a group with the provided title."
|
|
25
|
-
}
|
|
26
|
-
} : {
|
|
27
|
-
result: {
|
|
28
|
-
id: r.group.id,
|
|
29
|
-
title: r.group.title || e
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
} catch (r) {
|
|
33
|
-
return console.error("Error creating portal group:", r), {
|
|
34
|
-
error: {
|
|
35
|
-
code: "unhandledError",
|
|
36
|
-
message: r.details.messages.join(",")
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
async function g(t, o, e) {
|
|
42
|
-
if (!e.length)
|
|
43
|
-
return { error: { code: "unhandledError", message: "At least one username is required." } };
|
|
44
|
-
try {
|
|
45
|
-
const { data: r } = await n(
|
|
46
|
-
`${d(t)}community/groups/${o}/addUsers`,
|
|
47
|
-
{
|
|
48
|
-
method: "post",
|
|
49
|
-
responseType: "json",
|
|
50
|
-
query: { f: "json", users: e.join(",") }
|
|
51
|
-
}
|
|
52
|
-
), s = r.notAdded;
|
|
53
|
-
return {
|
|
54
|
-
result: { addedUsernames: s?.length ? e.filter((a) => !s.includes(a)) : e, notAddedUsers: r.notAddedDetails }
|
|
55
|
-
};
|
|
56
|
-
} catch (r) {
|
|
57
|
-
return console.error("Error adding users to portal group:", r), { error: { code: "unhandledError" } };
|
|
58
|
-
}
|
|
59
|
-
}
|
|
2
|
+
const t = (s) => s.sourceJSON, o = (s) => "sourceJSON" in s, e = (s) => o(s) ? t(s) : s, a = (s) => e(s).capabilities ?? [], i = (s) => e(s).orgId, c = (s) => e(s).membershipAccess, r = (s) => e(s).isOpenData === !0, n = (s) => a(s).includes("distributed");
|
|
60
3
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
4
|
+
i as a,
|
|
5
|
+
c as b,
|
|
6
|
+
e as c,
|
|
7
|
+
n as d,
|
|
8
|
+
t as e,
|
|
9
|
+
a as g,
|
|
10
|
+
r as i
|
|
64
11
|
};
|
package/dist/chunks/groups2.js
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
|
|
2
|
+
import a from "@arcgis/core/portal/PortalGroup.js";
|
|
3
|
+
import { a as n } from "./portal.js";
|
|
4
|
+
import { r as p } from "./request.js";
|
|
5
|
+
async function f(r, s, u = {}) {
|
|
6
|
+
const o = await p({
|
|
7
|
+
url: `${n(r)}community/groups`,
|
|
8
|
+
portal: r,
|
|
9
|
+
params: s,
|
|
10
|
+
options: u
|
|
11
|
+
});
|
|
12
|
+
return {
|
|
13
|
+
...o,
|
|
14
|
+
results: o.results.map((e) => {
|
|
15
|
+
const t = a.fromJSON(e);
|
|
16
|
+
return t.portal = r, t;
|
|
17
|
+
})
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
async function l(r, s = {}) {
|
|
21
|
+
return await r.queryGroups(s);
|
|
22
|
+
}
|
|
3
23
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
c,
|
|
7
|
-
e as d,
|
|
8
|
-
n as e,
|
|
9
|
-
t as g,
|
|
10
|
-
r as i
|
|
24
|
+
l as q,
|
|
25
|
+
f as s
|
|
11
26
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { a as o } from "./portal.js";
|
|
3
|
+
import { r as c } from "./request.js";
|
|
4
|
+
const n = /* @__PURE__ */ new Map();
|
|
5
|
+
async function u(e, t) {
|
|
6
|
+
const r = o(e), s = JSON.stringify([r, t]), a = n.get(s);
|
|
7
|
+
if (a)
|
|
8
|
+
return a;
|
|
9
|
+
try {
|
|
10
|
+
const p = (await c({
|
|
11
|
+
url: `${r}portals/helpmap`,
|
|
12
|
+
portal: e,
|
|
13
|
+
params: { culture: t }
|
|
14
|
+
}))?.helpMap?.m ?? {};
|
|
15
|
+
return n.set(s, p), p;
|
|
16
|
+
} catch {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
u as g
|
|
22
|
+
};
|
package/dist/chunks/info.js
CHANGED
package/dist/chunks/item.js
CHANGED
|
@@ -1,38 +1,140 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import
|
|
3
|
-
import { a } from "./
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
import a from "@arcgis/core/request.js";
|
|
3
|
+
import { a as i } from "./portal.js";
|
|
4
|
+
import { g as p } from "./items.js";
|
|
5
|
+
function v(e, r) {
|
|
6
|
+
return `${i(r)}content/items/${e}`;
|
|
7
|
+
}
|
|
8
|
+
function h(e) {
|
|
9
|
+
return e.typeKeywords?.includes("Hosted Service") && e.type !== "Insights Workbook" && e.type !== "Insights Data Engineering Workbook" && e.type !== "Insights Page";
|
|
10
|
+
}
|
|
11
|
+
function S(e) {
|
|
12
|
+
return e.typeKeywords?.includes("View Service");
|
|
13
|
+
}
|
|
14
|
+
function P(e) {
|
|
15
|
+
return e?.type === "Geoprocessing Service";
|
|
16
|
+
}
|
|
17
|
+
function I(e) {
|
|
18
|
+
return e.typeKeywords?.includes("Service Proxy") && e.typeKeywords.includes("Geocoding filter");
|
|
19
|
+
}
|
|
20
|
+
function T(e) {
|
|
21
|
+
return e.type === "Image Collection" && e.typeKeywords?.includes("Photo locations");
|
|
22
|
+
}
|
|
23
|
+
function m(e) {
|
|
24
|
+
return !!e && ("sourceType" in e && e.sourceType === "mosaic-dataset" || "serviceSourceType" in e && e.serviceSourceType === "esriImageServiceSourceTypeMosaicDataset");
|
|
25
|
+
}
|
|
26
|
+
function K(e, r) {
|
|
27
|
+
return e.typeKeywords?.includes("Managed Image Collection") || m(r) && !e.typeKeywords?.includes("Tiled Imagery");
|
|
28
|
+
}
|
|
29
|
+
function j(e, r) {
|
|
30
|
+
const s = "serviceProperties" in e ? e.serviceProperties : void 0, t = s && typeof s == "object" && "tags" in s ? s.tags : void 0, o = p(e).serviceProperties?.tags ?? t;
|
|
31
|
+
return !!(Array.isArray(o) && o.includes("hasMultidimensions") || r && "hasMultidimensions" in r && r.hasMultidimensions);
|
|
32
|
+
}
|
|
33
|
+
function k(e, r) {
|
|
34
|
+
return c(e, r) || y(e, r);
|
|
35
|
+
}
|
|
36
|
+
function c(e, r) {
|
|
37
|
+
return e.owner === r.username;
|
|
38
|
+
}
|
|
39
|
+
function y(e, r) {
|
|
40
|
+
const s = e.owner, t = e.itemControl === "admin", o = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
|
|
41
|
+
return e.portal?.isPortal && !c(e, r) && t && s?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
|
|
42
|
+
!o.includes(s) ? !1 : t;
|
|
43
|
+
}
|
|
44
|
+
const G = (e, r) => !!r.orgId && e.every((s) => s.isOrgItem);
|
|
45
|
+
function V(e) {
|
|
46
|
+
return e.typeKeywords?.includes("Spatiotemporal");
|
|
47
|
+
}
|
|
48
|
+
function b(e) {
|
|
49
|
+
return e.typeKeywords?.includes("View Service");
|
|
50
|
+
}
|
|
51
|
+
function M(e) {
|
|
52
|
+
return e.typeKeywords?.includes("Hosted Service");
|
|
53
|
+
}
|
|
54
|
+
function U(e) {
|
|
55
|
+
return e.typeKeywords?.includes("Multi Services View");
|
|
56
|
+
}
|
|
57
|
+
function $(e) {
|
|
58
|
+
return e?.hasViews && !e.sourceSchemaChangesAllowed;
|
|
59
|
+
}
|
|
60
|
+
async function A(e) {
|
|
61
|
+
const r = e?.portalItem;
|
|
62
|
+
if (!r)
|
|
63
|
+
return await Promise.resolve(null);
|
|
64
|
+
const s = r.portal;
|
|
65
|
+
if (s?.user) {
|
|
66
|
+
const t = `${i(s)}community/users/${s.user.username}`;
|
|
67
|
+
return await a(t, {
|
|
68
|
+
query: {
|
|
69
|
+
f: "json",
|
|
70
|
+
token: r.portal.credential?.token
|
|
71
|
+
},
|
|
72
|
+
responseType: "json"
|
|
73
|
+
}).then(
|
|
74
|
+
async (o) => {
|
|
75
|
+
const n = o.data?.groups ?? [];
|
|
76
|
+
return await Promise.resolve(n);
|
|
77
|
+
},
|
|
78
|
+
async () => await Promise.reject(new Error("Failed to fetch user groups"))
|
|
79
|
+
);
|
|
26
80
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
81
|
+
return await Promise.resolve(null);
|
|
82
|
+
}
|
|
83
|
+
async function B(e) {
|
|
84
|
+
const r = e?.portalItem;
|
|
85
|
+
if (!r)
|
|
86
|
+
return await Promise.resolve(null);
|
|
87
|
+
const s = r.portal, t = `${i(s)}content/items/${r.id}/groups`;
|
|
88
|
+
return await a(t, {
|
|
89
|
+
query: {
|
|
90
|
+
f: "json",
|
|
91
|
+
token: r.portal.credential?.token
|
|
92
|
+
},
|
|
93
|
+
responseType: "json"
|
|
94
|
+
}).then(
|
|
95
|
+
async (o) => {
|
|
96
|
+
const n = o.data?.admin ?? [], u = o.data?.member ?? [], l = o.data?.other ?? [], d = [...n, ...u, ...l];
|
|
97
|
+
return await Promise.resolve(d);
|
|
98
|
+
},
|
|
99
|
+
async () => await Promise.reject(new Error("Failed to fetch item groups"))
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
async function C(e, r, { relationshipType: s, direction: t }, o = !1) {
|
|
103
|
+
const n = `${i(r)}content/items/${e}/relatedItems`;
|
|
104
|
+
return await a(n, {
|
|
105
|
+
query: { f: "json", relationshipType: s, direction: t, includeRecycleBin: o },
|
|
106
|
+
responseType: "json"
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function D(e, r) {
|
|
110
|
+
return e?.some(
|
|
111
|
+
(s) => r?.some(
|
|
112
|
+
(t) => s.id === t.id && s.capabilities.includes("updateitemcontrol")
|
|
113
|
+
)
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
function q(e) {
|
|
117
|
+
return e.typeKeywords?.includes("DeveloperBasemap") ?? !1;
|
|
33
118
|
}
|
|
34
119
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
120
|
+
M as a,
|
|
121
|
+
b,
|
|
122
|
+
$ as c,
|
|
123
|
+
V as d,
|
|
124
|
+
A as e,
|
|
125
|
+
B as f,
|
|
126
|
+
C as g,
|
|
127
|
+
D as h,
|
|
128
|
+
h as i,
|
|
129
|
+
P as j,
|
|
130
|
+
v as k,
|
|
131
|
+
U as l,
|
|
132
|
+
G as m,
|
|
133
|
+
j as n,
|
|
134
|
+
K as o,
|
|
135
|
+
S as p,
|
|
136
|
+
I as q,
|
|
137
|
+
T as r,
|
|
138
|
+
q as s,
|
|
139
|
+
k as u
|
|
38
140
|
};
|