@arcgis/portal-components 6.0.0-next.4 → 6.0.0-next.40
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/2574FNAZ.js +2 -0
- package/dist/cdn/3DOZPC3W.js +2 -0
- package/dist/cdn/3HZI6MKD.js +2 -0
- package/dist/cdn/3KGSWW6B.js +2 -0
- package/dist/cdn/3OL7A2UC.js +2 -0
- package/dist/cdn/3Q7UJKKN.js +2 -0
- package/dist/cdn/43A74S72.js +2 -0
- package/dist/cdn/46HNNQAD.js +2 -0
- package/dist/cdn/46MYBPSS.js +2 -0
- package/dist/cdn/{2TDHJSMP.js → 47DKAGRV.js} +1 -1
- package/dist/cdn/4CBRO7JP.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
- package/dist/cdn/5M25PCH2.js +2 -0
- package/dist/cdn/5MLBK66O.js +2 -0
- package/dist/cdn/5RBH3LGK.js +2 -0
- package/dist/cdn/5ZHNRQOW.js +2 -0
- package/dist/cdn/62TL6V4N.js +2 -0
- package/dist/cdn/66VV7NHO.js +2 -0
- package/dist/cdn/6AHPTR2E.js +2 -0
- package/dist/cdn/6APPSZ7E.js +2 -0
- package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
- package/dist/cdn/6QI7DAS2.js +2 -0
- package/dist/cdn/6ZJNZZPC.js +2 -0
- package/dist/cdn/75CT6IMW.js +2 -0
- package/dist/cdn/7J22VLBO.js +2 -0
- package/dist/cdn/7VPB6Q55.js +63 -0
- package/dist/cdn/7ZU43BL6.js +2 -0
- package/dist/cdn/A5QLPZ57.js +2 -0
- package/dist/cdn/AZTAWZI5.js +2 -0
- 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/C7SNE6YG.js +2 -0
- package/dist/cdn/DENQY4OE.js +2 -0
- package/dist/cdn/DT4HGMLS.js +2 -0
- 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/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
- package/dist/cdn/FFL2L4X5.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → FIAEPK5L.js} +1 -1
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/FTKSVLDI.js +2 -0
- package/dist/cdn/G272JPUS.js +2 -0
- package/dist/cdn/GFUKRB6D.js +2 -0
- package/dist/cdn/{SGDDFWCJ.js → GG6U75ZA.js} +1 -1
- package/dist/cdn/{FRE56NBG.js → GZ4ONSFV.js} +1 -1
- 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/IAWL475A.js +2 -0
- package/dist/cdn/IGLODZPX.js +2 -0
- package/dist/cdn/IOF72CDU.js +2 -0
- package/dist/cdn/ITRJGXFV.js +93 -0
- package/dist/cdn/ITWLFQI4.js +2 -0
- package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
- package/dist/cdn/JFGXTJY4.js +2 -0
- package/dist/cdn/JIU6MBGB.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/KPZGBBDG.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/LEESUFWE.js +2 -0
- package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
- package/dist/cdn/LTD5KLLE.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → LUJGCYQY.js} +1 -1
- package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
- package/dist/cdn/MSL36HAR.js +2 -0
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/N3WRMPM6.js +2 -0
- package/dist/cdn/N47MW5HI.js +9 -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/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
- package/dist/cdn/OPI4P6VO.js +2 -0
- package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
- package/dist/cdn/OQ2JULON.js +2 -0
- package/dist/cdn/OXF2WDSW.js +2 -0
- package/dist/cdn/P3FFM322.js +2 -0
- package/dist/cdn/QAXFE5DD.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
- package/dist/cdn/R26RBXQW.js +2 -0
- package/dist/cdn/R6KJVAX3.js +99 -0
- package/dist/cdn/RA2NMLMP.js +2 -0
- package/dist/cdn/RJXIU4GH.js +2 -0
- package/dist/cdn/RKHNP3KL.js +2 -0
- package/dist/cdn/RR56BOTV.js +2 -0
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/RTZ2TKM5.js +2 -0
- package/dist/cdn/RX64JXHI.js +170 -0
- package/dist/cdn/RXMM6CFK.js +2 -0
- package/dist/cdn/S4N5QMSN.js +2 -0
- package/dist/cdn/SCLYGIHM.js +2 -0
- package/dist/cdn/{JIJO4CAS.js → SLK7PV62.js} +1 -1
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/SUN4MBT3.js +2 -0
- package/dist/cdn/SYXCSFIA.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TP7V25GT.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
- package/dist/cdn/UIK6LPA7.js +2 -0
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
- package/dist/cdn/VWOBCSD6.js +4 -0
- package/dist/cdn/{JE2376SE.js → W3JJBZYX.js} +1 -1
- package/dist/cdn/W6WVMRGQ.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/X7W4VJO7.js +2 -0
- package/dist/cdn/XCOP6QHA.js +2 -0
- package/dist/cdn/XE3DCC5D.js +2 -0
- package/dist/cdn/XVV75AX3.js +2 -0
- 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/YELHAJB3.js +2 -0
- package/dist/cdn/YH2OFXPU.js +2 -0
- package/dist/cdn/YYVLFAFT.js +2 -0
- package/dist/cdn/{74T6IXSN.js → ZDH4KVAV.js} +1 -1
- package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
- package/dist/cdn/ZG7OW456.js +2 -0
- package/dist/cdn/{NWVLGU2C.js → ZLNBCJE4.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.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-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 +5 -5
- 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 +13 -13
- 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 +26 -10
- package/dist/components/arcgis-portal-item-card/customElement.js +90 -80
- package/dist/components/arcgis-portal-item-card/index.js +2 -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 +6 -4
- package/dist/components/arcgis-portal-navigation/customElement.js +371 -374
- package/dist/components/arcgis-portal-navigation/index.js +1 -2
- 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 +19 -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/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
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
|
};
|
package/dist/chunks/item2.js
CHANGED
|
@@ -1,132 +1,106 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import
|
|
2
|
+
import { c as y } from "./requests.js";
|
|
3
|
+
import { c as d } from "./string.js";
|
|
3
4
|
import { a as i } from "./portal.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
function I(e) {
|
|
17
|
-
return e.type === "Image Collection" && e.typeKeywords?.includes("Photo locations");
|
|
18
|
-
}
|
|
19
|
-
function p(e) {
|
|
20
|
-
return e?.sourceType === "mosaic-dataset" || e?.serviceSourceType === "esriImageServiceSourceTypeMosaicDataset";
|
|
21
|
-
}
|
|
22
|
-
function P(e, r) {
|
|
23
|
-
return e.typeKeywords?.includes("Managed Image Collection") || p(r) && !e.typeKeywords?.includes("Tiled Imagery");
|
|
24
|
-
}
|
|
25
|
-
function S(e, r) {
|
|
26
|
-
return !!((e.sourceJSON?.serviceProperties?.tags || e?.serviceProperties?.tags)?.includes(
|
|
27
|
-
"hasMultidimensions"
|
|
28
|
-
) || r?.hasMultidimensions);
|
|
29
|
-
}
|
|
30
|
-
function K(e, r) {
|
|
31
|
-
return c(e, r) || m(e, r);
|
|
32
|
-
}
|
|
33
|
-
function c(e, r) {
|
|
34
|
-
return e.owner === r.username;
|
|
35
|
-
}
|
|
36
|
-
function m(e, r) {
|
|
37
|
-
const t = e.owner, s = e.itemControl === "admin", n = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
|
|
38
|
-
return e.portal?.isPortal && !c(e, r) && s && t?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
|
|
39
|
-
!n.includes(t) ? !1 : s;
|
|
40
|
-
}
|
|
41
|
-
const T = (e, r) => !!r.orgId && e.every((t) => t.isOrgItem);
|
|
42
|
-
function j(e) {
|
|
43
|
-
return e.typeKeywords?.includes("Spatiotemporal");
|
|
44
|
-
}
|
|
45
|
-
function k(e) {
|
|
46
|
-
return e.typeKeywords?.includes("View Service");
|
|
47
|
-
}
|
|
48
|
-
function V(e) {
|
|
49
|
-
return e.typeKeywords?.includes("Hosted Service");
|
|
50
|
-
}
|
|
51
|
-
function G(e) {
|
|
52
|
-
return e.typeKeywords?.includes("Multi Services View");
|
|
53
|
-
}
|
|
54
|
-
function U(e) {
|
|
55
|
-
return e?.hasViews && !e.sourceSchemaChangesAllowed;
|
|
5
|
+
import { r as c } from "./request.js";
|
|
6
|
+
function k(r) {
|
|
7
|
+
return r.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
|
|
8
|
+
}
|
|
9
|
+
const g = (r, e) => [...Array(Math.ceil(r.length / e))].map((t, n) => r.slice(e * n, e + e * n));
|
|
10
|
+
async function v(r, e) {
|
|
11
|
+
const t = `${i(r)}content/items/${e}`;
|
|
12
|
+
try {
|
|
13
|
+
return { result: await c({ url: t, portal: r }) };
|
|
14
|
+
} catch {
|
|
15
|
+
return { error: { code: "unhandledError" } };
|
|
16
|
+
}
|
|
56
17
|
}
|
|
57
|
-
async function
|
|
58
|
-
const
|
|
59
|
-
if (!
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return await
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
)
|
|
18
|
+
async function q(r, e, t, n) {
|
|
19
|
+
const s = Object.fromEntries(t.flatMap(({ id: a }) => a ? [[a, []]] : []));
|
|
20
|
+
if (!t.length)
|
|
21
|
+
return { result: s };
|
|
22
|
+
if (!e.groups)
|
|
23
|
+
return { error: { code: "unhandledError" } };
|
|
24
|
+
try {
|
|
25
|
+
return (await Promise.all(
|
|
26
|
+
g(e.groups, 100).map(
|
|
27
|
+
async (u) => await c({
|
|
28
|
+
url: `${i(r)}content/itemsgroups`,
|
|
29
|
+
portal: r,
|
|
30
|
+
params: {
|
|
31
|
+
items: t.map(({ id: o }) => o).join(","),
|
|
32
|
+
groups: u.map(({ id: o }) => o).join(",")
|
|
33
|
+
},
|
|
34
|
+
...n ? { options: n } : {}
|
|
35
|
+
})
|
|
36
|
+
)
|
|
37
|
+
)).reduce((u, o) => {
|
|
38
|
+
for (const { groupId: p, items: f } of Object.values(o))
|
|
39
|
+
for (const { itemId: m } of f)
|
|
40
|
+
u[m]?.push(p);
|
|
41
|
+
return u;
|
|
42
|
+
}, s), { result: s };
|
|
43
|
+
} catch {
|
|
44
|
+
return { error: { code: "unhandledError" } };
|
|
77
45
|
}
|
|
78
|
-
return await Promise.resolve(null);
|
|
79
46
|
}
|
|
80
|
-
async
|
|
81
|
-
const
|
|
82
|
-
if (!
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
);
|
|
47
|
+
const j = async (r, e, t) => {
|
|
48
|
+
const n = d(e);
|
|
49
|
+
if (!n)
|
|
50
|
+
return {};
|
|
51
|
+
try {
|
|
52
|
+
return { result: await r.queryItems({ ...t, query: n }) };
|
|
53
|
+
} catch (s) {
|
|
54
|
+
return console.error(s), { error: { code: "unhandledError" } };
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
async function G(r, e) {
|
|
58
|
+
if (!r || !e)
|
|
59
|
+
return { result: null };
|
|
60
|
+
const t = `${r.restUrl}/content/items/${e}/data`;
|
|
61
|
+
return await y(t);
|
|
62
|
+
}
|
|
63
|
+
async function U(r, e) {
|
|
64
|
+
return !h(r) || !r.url ? !1 : await l(r.url, e);
|
|
65
|
+
}
|
|
66
|
+
function h(r) {
|
|
67
|
+
return r.typeKeywords?.includes("Hosted Service") && r.type !== "Insights Workbook" && r.type !== "Insights Data Engineering Workbook" && r.type !== "Insights Page";
|
|
68
|
+
}
|
|
69
|
+
function w(r) {
|
|
70
|
+
return `${r.split("?")[0].replace(/\/+$/u, "").replace(/\/\d+$/u, "")}/layers`;
|
|
71
|
+
}
|
|
72
|
+
async function l(r, e, t = !0) {
|
|
73
|
+
const n = w(r);
|
|
74
|
+
try {
|
|
75
|
+
return ((await c({
|
|
76
|
+
portal: e,
|
|
77
|
+
url: n,
|
|
78
|
+
options: { addTokenManually: t }
|
|
79
|
+
})).layers ?? []).some((a) => a.capabilities?.includes("Editing"));
|
|
80
|
+
} catch (s) {
|
|
81
|
+
const a = s instanceof Error ? s.message : String(s);
|
|
82
|
+
if (t && a.toLowerCase().includes("token required"))
|
|
83
|
+
return await l(r, e, !1);
|
|
84
|
+
throw s;
|
|
85
|
+
}
|
|
98
86
|
}
|
|
99
|
-
async function
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
responseType: "json"
|
|
87
|
+
async function I(r, e) {
|
|
88
|
+
return await c({
|
|
89
|
+
url: `${i(r)}content/items/${e}/groups`,
|
|
90
|
+
portal: r
|
|
104
91
|
});
|
|
105
92
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
)
|
|
111
|
-
);
|
|
112
|
-
}
|
|
93
|
+
const M = async (r, e) => {
|
|
94
|
+
const t = await I(r, e);
|
|
95
|
+
return [...t.admin, ...t.member, ...t.other];
|
|
96
|
+
};
|
|
113
97
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
T as i,
|
|
123
|
-
k as j,
|
|
124
|
-
U as k,
|
|
125
|
-
G as l,
|
|
126
|
-
j as m,
|
|
127
|
-
$ as n,
|
|
128
|
-
b as o,
|
|
129
|
-
C as p,
|
|
130
|
-
f as q,
|
|
131
|
-
K as u
|
|
98
|
+
v as a,
|
|
99
|
+
M as b,
|
|
100
|
+
g as c,
|
|
101
|
+
k as e,
|
|
102
|
+
q as f,
|
|
103
|
+
G as g,
|
|
104
|
+
U as i,
|
|
105
|
+
j as s
|
|
132
106
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import {
|
|
3
|
-
import { g as
|
|
4
|
-
import { g } from "./items.js";
|
|
5
|
-
function
|
|
6
|
-
const a =
|
|
7
|
-
return
|
|
2
|
+
import { a as v, b as g } from "./portal.js";
|
|
3
|
+
import { g as d } from "./runtime.js";
|
|
4
|
+
import { g as m } from "./items.js";
|
|
5
|
+
function f(e) {
|
|
6
|
+
const a = b(e);
|
|
7
|
+
return d(`assets/portal-item-thumbnail/${a}`);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function b(e) {
|
|
10
10
|
const a = e.type?.toLowerCase(), r = e.typeKeywords || [];
|
|
11
11
|
switch (a) {
|
|
12
12
|
case "web mapping application":
|
|
@@ -172,22 +172,22 @@ function d(e) {
|
|
|
172
172
|
return "default.avif";
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return e.thumbnail ??
|
|
175
|
+
function h(e) {
|
|
176
|
+
return e.thumbnail ?? m(e).thumbnail ?? null;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const
|
|
180
|
-
if (a.thumbnailUrl) {
|
|
181
|
-
const
|
|
182
|
-
return
|
|
178
|
+
function j(e, a, r = !1, t = !1, i) {
|
|
179
|
+
const c = t ? "https://www.arcgis.com/sharing/rest/" : e ? v(e) : void 0, o = r || t;
|
|
180
|
+
if (!t && a.thumbnailUrl) {
|
|
181
|
+
const s = new URL(a.thumbnailUrl);
|
|
182
|
+
return s.searchParams.append("w", "400"), i && s.searchParams.append("t", i), s.href;
|
|
183
183
|
}
|
|
184
|
-
if (!
|
|
185
|
-
return
|
|
186
|
-
const
|
|
187
|
-
return
|
|
184
|
+
if (!c)
|
|
185
|
+
return f(a);
|
|
186
|
+
const u = e && !o ? g(e) : "", n = u ? `token=${u}` : "", p = `${c}content/items/${a.id}`, l = h(a);
|
|
187
|
+
return l ? `${p}/info/${l}?w=400${n ? `&${n}` : ""}${i ? `&t=${i}` : ""}` : a.type === "Image" && !o ? `${p}/data?${n}` : f(a);
|
|
188
188
|
}
|
|
189
189
|
export {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
f as a,
|
|
191
|
+
h as b,
|
|
192
|
+
j as g
|
|
193
193
|
};
|
package/dist/chunks/items.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
const s = (e) => e.sourceJSON ?? {},
|
|
2
|
+
const o = (e) => !("sourceJSON" in e), s = (e) => o(e) ? e : e.sourceJSON ?? {}, n = (e) => e.typeKeywords ?? s(e).typeKeywords ?? [], i = (e) => s(e).contentStatus, c = (e) => {
|
|
3
3
|
const t = s(e).groupDesignations;
|
|
4
|
-
return t ? t.split(",").map((
|
|
5
|
-
},
|
|
4
|
+
return t ? t.split(",").map((a) => a.trim()).filter(Boolean) : [];
|
|
5
|
+
}, r = (e) => e.type === "Data Store" && n(e).includes("bigDataFileShare"), p = (e) => e.type === "Big Data File Share" || r(e), g = (e) => e.type === "CityEngine Web Scene", y = (e) => e.type === "Parquet Feature Layer", u = (e) => n(e).find((t) => t.includes("replacementItemId_"))?.slice(18);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
c,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
u as a,
|
|
8
|
+
n as b,
|
|
9
|
+
p as c,
|
|
10
|
+
i as d,
|
|
11
|
+
c as e,
|
|
12
|
+
y as f,
|
|
13
13
|
s as g,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
r as h,
|
|
15
|
+
g as i
|
|
16
16
|
};
|