@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
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as v, createEvent as b, nothing as y } from "@arcgis/lumina";
|
|
4
|
+
import { css as x, html as c } from "lit";
|
|
5
|
+
import { createRef as g, ref as m } from "lit/directives/ref.js";
|
|
6
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
7
|
+
import { a as d } from "../../chunks/portal.js";
|
|
8
|
+
import { f as $, c as G } from "../../chunks/item2.js";
|
|
9
|
+
import { r as h } from "../../chunks/request.js";
|
|
10
|
+
async function z(i, t, r = {}) {
|
|
11
|
+
try {
|
|
12
|
+
const e = await h({
|
|
13
|
+
url: `${d(i)}content/items/${t}/groups`,
|
|
14
|
+
portal: i,
|
|
15
|
+
options: r
|
|
16
|
+
});
|
|
17
|
+
return { result: [...e.admin, ...e.member, ...e.other] };
|
|
18
|
+
} catch (e) {
|
|
19
|
+
return r.signal?.aborted || console.error("Unable to fetch item sharing groups", e), { error: { code: "unhandledError" } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async function S(i, t, r, e = {}) {
|
|
23
|
+
if (!r.length)
|
|
24
|
+
return { result: [] };
|
|
25
|
+
try {
|
|
26
|
+
const s = d(i), o = await h({
|
|
27
|
+
url: `${s}content/items/${t.id}`,
|
|
28
|
+
portal: i,
|
|
29
|
+
options: e
|
|
30
|
+
});
|
|
31
|
+
if (o.itemControl !== "admin" && o.itemControl !== "update") {
|
|
32
|
+
const a = await $(i, { groups: r }, [t], e);
|
|
33
|
+
return a.error ? { error: a.error } : { result: a.result?.[t.id] ?? [] };
|
|
34
|
+
}
|
|
35
|
+
const n = t.ownerFolder ? `${t.ownerFolder}/` : "", l = await h({
|
|
36
|
+
url: `${s}content/users/${t.owner}/${n}items/${t.id}`,
|
|
37
|
+
portal: i,
|
|
38
|
+
options: e
|
|
39
|
+
}), p = new Set(r.map(({ id: a }) => a));
|
|
40
|
+
return { result: l.sharing.groups.filter((a) => p.has(a)) };
|
|
41
|
+
} catch (s) {
|
|
42
|
+
return e.signal?.aborted || console.error("Unable to resolve item sharing group IDs", s), { error: { code: "unhandledError" } };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
async function D(i, t, r = {}) {
|
|
46
|
+
try {
|
|
47
|
+
return { result: (await Promise.all(
|
|
48
|
+
G([...new Set(t)], 100).map(async (s) => (await h({
|
|
49
|
+
url: `${d(i)}community/groups`,
|
|
50
|
+
portal: i,
|
|
51
|
+
params: { q: `id:(${s.join(" OR ")})`, num: 100 },
|
|
52
|
+
options: r
|
|
53
|
+
})).results)
|
|
54
|
+
)).flat().sort((s, o) => s.title.localeCompare(o.title)) };
|
|
55
|
+
} catch (e) {
|
|
56
|
+
return r.signal?.aborted || console.error("Unable to fetch sharing group details", e), { error: { code: "unhandledError" } };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
const O = x`:host{display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--arcgis-portal-item-share-summary-spacing, 1rem);--text-size: var(--arcgis-portal-item-share-summary-text-size, .875rem);--spacing: var(--arcgis-portal-item-share-summary-spacing, 1rem);--padding: var(--arcgis-portal-item-share-summary-padding, 7px)}:host([scale="s"]){--text-size: var(--arcgis-portal-item-share-summary-text-size, .75rem);--padding: var(--arcgis-portal-item-share-summary-padding, 3px)}:host([scale="l"]){--text-size: var(--arcgis-portal-item-share-summary-text-size, 1rem);--padding: var(--arcgis-portal-item-share-summary-padding, 9px)}:host([scale="s"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 3px 8px)}:host([scale="m"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 7px 12px)}:host([scale="l"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 9px 16px)}.wrapper{display:flex;align-items:center;padding:var(--padding);border:1px solid var(--arcgis-portal-item-share-summary-border-color, var(--calcite-color-border-1));border-radius:calc(var(--spacing) + .5rem);background:var(--arcgis-portal-item-share-summary-background-color, var(--calcite-color-foreground-1));color:var(--calcite-color-text-1);font:inherit;font-size:var(--text-size);line-height:1;cursor:pointer}.wrapper:hover{background:var(--calcite-color-foreground-2)}.wrapper:focus-visible{outline:2px solid var(--calcite-color-focus);outline-offset:2px}.icon{display:block;flex:0 0 auto;inline-size:var(--spacing);block-size:var(--spacing)}.text{margin-inline-start:calc(var(--spacing) / 4);font-weight:400}calcite-tooltip{--calcite-tooltip-z-index: calc(var(--calcite-z-index-overlay) + 1)}.tooltip{inline-size:18rem;padding-block-start:.25rem;margin:-1rem}.section-header{display:flex;align-items:center;justify-content:space-between;margin:0;padding:.75rem;background:var(--calcite-color-background);color:var(--calcite-color-text-2);font-size:.875rem;font-weight:700}.section-header h4{margin:0;font:inherit}.section{box-sizing:border-box;max-block-size:10rem;overflow:auto;margin:0;padding:.75rem;background:var(--calcite-color-foreground-1)}.status{color:var(--calcite-color-text-1);font-size:.875rem}.groups{list-style:none}.group{display:flex;align-items:center;padding-block:.25rem}.avatar{flex-shrink:0}.group-text{flex:1;min-inline-size:0;margin-inline-start:.75rem}.group-text h5,.group-text p{margin:0;padding:0;line-height:1.35}.group-text h5{overflow-wrap:anywhere;color:var(--calcite-color-text-1);font-size:.875rem;font-weight:500}.group-text p{color:var(--calcite-color-text-3);font-size:.75rem}calcite-loader{--calcite-loader-padding: 2rem}`, R = {
|
|
60
|
+
private: "user",
|
|
61
|
+
shared: "user",
|
|
62
|
+
org: "organization",
|
|
63
|
+
public: "globe"
|
|
64
|
+
};
|
|
65
|
+
function k(i, t, r, e, s) {
|
|
66
|
+
const o = i === "shared" && !t?.length && r ? "private" : i, n = new Intl.NumberFormat(s).format(t?.length ?? 0);
|
|
67
|
+
return {
|
|
68
|
+
icon: R[o],
|
|
69
|
+
access: t?.length && o === "shared" ? e.private : e[o],
|
|
70
|
+
groups: t?.length ? e.groups.replace("${num}", n) : (
|
|
71
|
+
// here, no groups or groups weren't configured correctly
|
|
72
|
+
o === "shared" ? e.shared : ""
|
|
73
|
+
),
|
|
74
|
+
tooltip: t?.length ? e[`${o}Groups`].replace("${num}", n) : e[o],
|
|
75
|
+
tooltipNoCount: t?.length ? e[`${o}Groups`].replace("(${num})", "").trim() : e[o]
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
class I extends v {
|
|
79
|
+
constructor() {
|
|
80
|
+
super(...arguments), this.messages = w({ blocking: !0, name: "portal-item-share-summary" }), this.buttonRef = g(), this.tooltipRef = g(), this.tooltipOpen = !1, this.loadingDetails = !1, this.showText = !0, this.scale = "m", this.overlayPositioning = "absolute", this.autoFetchGroups = !1, this.arcgisInternalShareSummaryActivate = b({ bubbles: !1, composed: !1 });
|
|
81
|
+
}
|
|
82
|
+
static {
|
|
83
|
+
this.properties = { groupData: 16, loadingDetails: 16, favoriteOnlySource: 16, item: 0, portal: 0, groups: 0, userGroups: 0, showText: 7, showHoverText: 5, scale: 3, overlayPositioning: 1, autoFetchGroups: 5, messageOverrides: 0 };
|
|
84
|
+
}
|
|
85
|
+
static {
|
|
86
|
+
this.styles = O;
|
|
87
|
+
}
|
|
88
|
+
async fetchGroups() {
|
|
89
|
+
await this.updateComplete, await this.refreshGroups();
|
|
90
|
+
}
|
|
91
|
+
async setFocus() {
|
|
92
|
+
await this.updateComplete, this.buttonRef.value?.focus();
|
|
93
|
+
}
|
|
94
|
+
willUpdate(t) {
|
|
95
|
+
const r = t.has("item") || t.has("portal"), e = t.has("groups") && this.groups !== this.fetchedGroups;
|
|
96
|
+
(r || t.has("groups") || t.has("userGroups")) && (this.detailsRequest?.abort(), this.groupData = void 0, this.loadingDetails = !1, this.favoriteOnlySource === "details" && (this.favoriteOnlySource = void 0)), (r || e) && (this.groupsRequest?.abort(), this.favoriteOnlySource = void 0, r && this.fetchedGroups && this.groups === this.fetchedGroups && (this.groups = void 0), this.fetchedGroups = void 0), this.autoFetchGroups && this.groups === void 0 && this.item?.id && this.portal && (r || e || t.has("autoFetchGroups")) && this.refreshGroups(), (this.showHoverText ?? !this.showText) || (this.tooltipOpen = !1), this.tooltipOpen && (r || t.has("groups") || t.has("userGroups")) && this.item?.id && this.portal && this.loadGroupData();
|
|
97
|
+
}
|
|
98
|
+
updated() {
|
|
99
|
+
this.tooltipRef.value && this.buttonRef.value && (this.tooltipRef.value.referenceElement = this.buttonRef.value);
|
|
100
|
+
}
|
|
101
|
+
async refreshGroups() {
|
|
102
|
+
const { item: t, portal: r, groups: e } = this;
|
|
103
|
+
if (!t?.id || !r) {
|
|
104
|
+
console.error("A saved item and portal are required to fetch sharing groups");
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
this.groupsRequest?.abort();
|
|
108
|
+
const s = new AbortController();
|
|
109
|
+
this.groupsRequest = s;
|
|
110
|
+
const { result: o, error: n } = await z(r, t.id, { signal: s.signal });
|
|
111
|
+
if (!(s.signal.aborted || this.item !== t || this.portal !== r || this.groups !== e)) {
|
|
112
|
+
if (n || !o) {
|
|
113
|
+
console.error("Unable to refresh the sharing summary", n);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
this.fetchedGroups = o.filter((l) => !l.isFav).map(({ id: l }) => l), this.favoriteOnlySource = o.length > 0 && this.fetchedGroups.length === 0 ? "refresh" : void 0, this.groups = this.fetchedGroups;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async loadGroupData() {
|
|
120
|
+
const { item: t, portal: r, groups: e, userGroups: s } = this;
|
|
121
|
+
if (!t?.id || !t.owner || !r) {
|
|
122
|
+
console.error("A saved item, owner, and portal are required to load sharing details");
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
this.detailsRequest?.abort();
|
|
126
|
+
const o = new AbortController();
|
|
127
|
+
this.detailsRequest = o;
|
|
128
|
+
const n = { signal: o.signal }, l = () => !o.signal.aborted && this.item === t && this.portal === r && this.groups === e && this.userGroups === s;
|
|
129
|
+
this.loadingDetails = !0;
|
|
130
|
+
try {
|
|
131
|
+
let p = e;
|
|
132
|
+
if (s) {
|
|
133
|
+
const u = await S(r, { id: t.id, owner: t.owner, ownerFolder: t.ownerFolder }, s, n);
|
|
134
|
+
if (!l())
|
|
135
|
+
return;
|
|
136
|
+
if (u.error) {
|
|
137
|
+
console.error("Unable to resolve sharing details", u.error);
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
u.result?.length && (p = u.result);
|
|
141
|
+
}
|
|
142
|
+
const a = await D(r, p ?? [], n);
|
|
143
|
+
if (!l())
|
|
144
|
+
return;
|
|
145
|
+
if (a.error || !a.result) {
|
|
146
|
+
console.error("Unable to load sharing details", a.error);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this.groupData = a.result.filter((u) => !u.isFav), a.result.length ? this.favoriteOnlySource = this.groupData.length ? void 0 : this.favoriteOnlySource ?? "details" : this.favoriteOnlySource === "details" && (this.favoriteOnlySource = void 0);
|
|
150
|
+
} finally {
|
|
151
|
+
l() && (this.loadingDetails = !1);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
renderGroupData() {
|
|
155
|
+
const { messages: t, groupData: r } = this;
|
|
156
|
+
return r?.length ? c`<h4 class="section-header">${t.groups.replace("${num}", new Intl.NumberFormat(t._lang).format(r.length))}</h4><ul class="section groups">${r.map((e) => c`<li class="group"><arcgis-portal-group-thumbnail .group=${e} .portal=${this.portal} class="avatar"></arcgis-portal-group-thumbnail><div class="group-text"><h5>${e.title}</h5><p>${t.viewableBy.replace("${level}", e.access === "public" ? t.everyone : e.access === "org" ? t.organization : t.groupMembers)}</p></div></li>`)}</ul>` : null;
|
|
157
|
+
}
|
|
158
|
+
render() {
|
|
159
|
+
if (!this.item?.access)
|
|
160
|
+
return null;
|
|
161
|
+
const { messages: t, showText: r } = this, e = k(this.item.access, this.groups ?? this.groupData?.map(({ id: s }) => s), this.favoriteOnlySource !== void 0, t, t._lang);
|
|
162
|
+
return c`<button type=button class="wrapper" aria-label=${e.tooltip ?? y} @click=${() => this.arcgisInternalShareSummaryActivate.emit()} ${m(this.buttonRef)}><calcite-icon class="icon" .icon=${e.icon} scale=s></calcite-icon>${r && e.groups !== e.access && c`<span class="text">${e.access}</span>` || ""}${e.groups && c`<calcite-icon class="icon" icon=plus scale=s></calcite-icon><calcite-icon class="icon" icon=group scale=s></calcite-icon>${r && c`<span class="text">${e.groups}</span>` || ""}` || ""}</button>${(this.showHoverText ?? !r) && c`<calcite-tooltip close-on-click placement=bottom-start offset-distance=6 offset-skidding=0 .overlayPositioning=${this.overlayPositioning} @calciteTooltipBeforeOpen=${() => {
|
|
163
|
+
this.tooltipOpen = !0, this.loadGroupData();
|
|
164
|
+
}} @calciteTooltipBeforeClose=${() => {
|
|
165
|
+
this.tooltipOpen = !1;
|
|
166
|
+
}} ${m(this.tooltipRef)}><div class="tooltip">${this.loadingDetails ? c`<calcite-loader .label=${t.sharing} scale=s></calcite-loader>` : c`<div class="section-header"><h4>${t.sharing}</h4><slot name=tooltip-header-end></slot></div><p class="section status">${this.groupData?.length ? e.tooltipNoCount : e.tooltip}</p>${this.renderGroupData()}`}</div></calcite-tooltip>` || ""}`;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
f("arcgis-portal-item-share-summary", I);
|
|
170
|
+
export {
|
|
171
|
+
I as ArcgisPortalItemShareSummary
|
|
172
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "../arcgis-portal-group-thumbnail/index.js";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-tooltip";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-loader";
|
|
5
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
3
|
+
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
4
|
+
import type { ArcgisPortalItemShareSummary } from "../arcgis-portal-item-share-summary/customElement.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Sharing summary that requests a host-managed editing workflow when activated.
|
|
8
|
+
*
|
|
9
|
+
* The host handles `arcgisItemShareSummaryRequest`; this component does not include
|
|
10
|
+
* an item-sharing dialog, persist sharing changes, or check editing permissions.
|
|
11
|
+
* Enable `allowEdit` only when the host is ready to handle the request.
|
|
12
|
+
*
|
|
13
|
+
* @slot [tooltip-header-end] - Content at the end of the sharing tooltip header.
|
|
14
|
+
*/
|
|
15
|
+
export abstract class ArcgisPortalItemShareSummaryEditable extends ArcgisPortalItemShareSummary {
|
|
16
|
+
/**
|
|
17
|
+
* Enables requesting a host-managed sharing workflow on summary activation.
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
accessor allowEdit: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Requests that the host open its sharing workflow for the supplied item and portal.
|
|
24
|
+
* Emitted only when editing is enabled and both inputs are supplied.
|
|
25
|
+
*/
|
|
26
|
+
readonly arcgisItemShareSummaryRequest: import("@arcgis/lumina").TargetedEvent<this, {
|
|
27
|
+
item: PortalItem;
|
|
28
|
+
portal: Portal;
|
|
29
|
+
}>;
|
|
30
|
+
readonly "@eventTypes": {
|
|
31
|
+
arcgisItemShareSummaryRequest: ArcgisPortalItemShareSummaryEditable["arcgisItemShareSummaryRequest"]["detail"];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
3
|
+
import { createEvent as e } from "@arcgis/lumina";
|
|
4
|
+
import { ArcgisPortalItemShareSummary as r } from "../arcgis-portal-item-share-summary/customElement.js";
|
|
5
|
+
class a extends r {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(), this.allowEdit = !1, this.arcgisItemShareSummaryRequest = e(), this.listen("arcgisInternalShareSummaryActivate", this.requestSharing);
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.properties = { allowEdit: 5 };
|
|
11
|
+
}
|
|
12
|
+
requestSharing() {
|
|
13
|
+
this.allowEdit && this.item && this.portal && this.arcgisItemShareSummaryRequest.emit({ item: this.item, portal: this.portal });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
t("arcgis-portal-item-share-summary-editable", a);
|
|
17
|
+
export {
|
|
18
|
+
a as ArcgisPortalItemShareSummaryEditable
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
3
|
+
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
4
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
|
+
import type { ReviewLayerSharingIssueState } from "../arcgis-portal-review-layer-sharing/types.js";
|
|
6
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
7
|
+
|
|
8
|
+
export abstract class ArcgisPortalItemStatusCard extends LitElement {
|
|
9
|
+
/** The item to display. */
|
|
10
|
+
accessor item: PortalItem;
|
|
11
|
+
/** @internal */
|
|
12
|
+
protected messages: {
|
|
13
|
+
status: {
|
|
14
|
+
noPermission: {
|
|
15
|
+
notice: string;
|
|
16
|
+
panel: string;
|
|
17
|
+
};
|
|
18
|
+
pdc: {
|
|
19
|
+
notice: string;
|
|
20
|
+
panel: string;
|
|
21
|
+
learnMore: string;
|
|
22
|
+
};
|
|
23
|
+
premium: {
|
|
24
|
+
notice: string;
|
|
25
|
+
panel: string;
|
|
26
|
+
learnMore: string;
|
|
27
|
+
};
|
|
28
|
+
sharingPDCEnabled: {
|
|
29
|
+
notice: string;
|
|
30
|
+
panel: string;
|
|
31
|
+
};
|
|
32
|
+
needsAuthentication: {
|
|
33
|
+
notice: string;
|
|
34
|
+
panel: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
goToItem: string;
|
|
38
|
+
} & T9nMeta<{
|
|
39
|
+
status: {
|
|
40
|
+
noPermission: {
|
|
41
|
+
notice: string;
|
|
42
|
+
panel: string;
|
|
43
|
+
};
|
|
44
|
+
pdc: {
|
|
45
|
+
notice: string;
|
|
46
|
+
panel: string;
|
|
47
|
+
learnMore: string;
|
|
48
|
+
};
|
|
49
|
+
premium: {
|
|
50
|
+
notice: string;
|
|
51
|
+
panel: string;
|
|
52
|
+
learnMore: string;
|
|
53
|
+
};
|
|
54
|
+
sharingPDCEnabled: {
|
|
55
|
+
notice: string;
|
|
56
|
+
panel: string;
|
|
57
|
+
};
|
|
58
|
+
needsAuthentication: {
|
|
59
|
+
notice: string;
|
|
60
|
+
panel: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
goToItem: string;
|
|
64
|
+
}>;
|
|
65
|
+
/** Current portal instance for link generation. */
|
|
66
|
+
accessor portal: Portal;
|
|
67
|
+
/**
|
|
68
|
+
* Whether this item's preview is open.
|
|
69
|
+
*
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
accessor previewed: boolean;
|
|
73
|
+
/** The issue state that determines status content. */
|
|
74
|
+
accessor state: ReviewLayerSharingIssueState;
|
|
75
|
+
/** Returns keyboard focus to the card after its preview closes. */
|
|
76
|
+
restoreFocus(): Promise<void>;
|
|
77
|
+
/** Requests previewing this item. */
|
|
78
|
+
readonly arcgisItemBrowserCardPreview: import("@arcgis/lumina").TargetedEvent<this, PortalItem | null>;
|
|
79
|
+
readonly "@eventTypes": {
|
|
80
|
+
arcgisItemBrowserCardPreview: ArcgisPortalItemStatusCard["arcgisItemBrowserCardPreview"]["detail"];
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import "../../chunks/runtime.js";
|
|
3
|
+
import "lit";
|
|
4
|
+
import "@arcgis/lumina";
|
|
5
|
+
import "lit/directives/ref.js";
|
|
6
|
+
import "../arcgis-portal-item-card/customElement.js";
|
|
7
|
+
import "../../chunks/useT9n.js";
|
|
8
|
+
import "../../chunks/url.js";
|
|
9
|
+
import { A } from "../../chunks/portal-item-status-card.js";
|
|
10
|
+
export {
|
|
11
|
+
A as ArcgisPortalItemStatusCard
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -24,6 +24,7 @@ export abstract class ArcgisPortalItemThumbnail extends LitElement {
|
|
|
24
24
|
/**
|
|
25
25
|
* Set to true to force loading thumbnails from the production ArcGIS Online endpoint.
|
|
26
26
|
* This is only useful in Enterprise when viewing ArcGIS Online content.
|
|
27
|
+
* The current portal's token is not included in production thumbnail URLs.
|
|
27
28
|
*
|
|
28
29
|
* @default false
|
|
29
30
|
*/
|
|
@@ -4,13 +4,13 @@ import { LitElement as E, createEvent as F, safeClassMap as v, nothing as D } fr
|
|
|
4
4
|
import { css as V, html as w } from "lit";
|
|
5
5
|
import { i as O } from "../../chunks/functionalities.js";
|
|
6
6
|
import { a as g, b as S, g as R } from "../../chunks/itemThumbnail.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { k as x, u as k } from "../../chunks/item.js";
|
|
8
|
+
import { b as A } from "../../chunks/portal.js";
|
|
9
9
|
import { execute as B } from "@arcgis/core/rest/geoprocessor.js";
|
|
10
10
|
function G(e) {
|
|
11
11
|
return e ? `${e.xmin},${e.ymin},${e.xmax},${e.ymax}` : "";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function U(e) {
|
|
14
14
|
return e && e.xmin >= -180 && e.xmax <= 180 && e.ymin >= -90 && e.ymax <= 90 && e.xmin <= e.xmax && e.ymin <= e.ymax ? [
|
|
15
15
|
[e.xmin, e.ymin],
|
|
16
16
|
[e.xmax, e.ymax]
|
|
@@ -129,7 +129,7 @@ async function _(e, t) {
|
|
|
129
129
|
i?.destroy(), r?.destroy();
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
async function
|
|
132
|
+
async function $({
|
|
133
133
|
webMap: e,
|
|
134
134
|
extent: t,
|
|
135
135
|
portal: r,
|
|
@@ -182,9 +182,9 @@ async function C({
|
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
};
|
|
185
|
-
return await
|
|
185
|
+
return await $({
|
|
186
186
|
webMap: c,
|
|
187
|
-
extent:
|
|
187
|
+
extent: U(e.extent),
|
|
188
188
|
portal: t,
|
|
189
189
|
spatialReference: { wkid: 4326 }
|
|
190
190
|
});
|
|
@@ -216,9 +216,9 @@ async function W({
|
|
|
216
216
|
authoringAppVersion: "5.3",
|
|
217
217
|
version: "2.10"
|
|
218
218
|
};
|
|
219
|
-
return await
|
|
219
|
+
return await $({
|
|
220
220
|
webMap: i,
|
|
221
|
-
extent:
|
|
221
|
+
extent: U(e.extent),
|
|
222
222
|
portal: t,
|
|
223
223
|
spatialReference: { wkid: 102100 }
|
|
224
224
|
});
|
|
@@ -237,21 +237,21 @@ async function j({
|
|
|
237
237
|
}
|
|
238
238
|
return { result: a ?? i };
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function z(e, t) {
|
|
241
241
|
if (!e)
|
|
242
242
|
return !1;
|
|
243
243
|
const r = e.includes("thumbnail/ago_downloaded."), i = e.includes("Utilities/PrintingTools");
|
|
244
244
|
return !e.includes("images/transparent.gif") && (t?.isPortal ? !i : !r);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
const r = !!t &&
|
|
246
|
+
function q(e, t) {
|
|
247
|
+
const r = !!t && k(e, t), i = e.type === "Dashboard";
|
|
248
248
|
return !S(e) && r && i;
|
|
249
249
|
}
|
|
250
250
|
function J(e, t, r) {
|
|
251
|
-
const i = S(e), n =
|
|
251
|
+
const i = S(e), n = z(i, t), a = ["Feature Service", "Vector Tile Service"].includes(e.type) && !n, l = e.type === "Feature Service" && e.typeKeywords?.includes("Location Tracking Service"), c = e.typeKeywords?.includes("Table");
|
|
252
252
|
if (e.type === "Image" || i && !a || l || c)
|
|
253
253
|
return !1;
|
|
254
|
-
const s = e.typeKeywords?.includes("Tiled Imagery"), p = e.type === "Image Service" && !s || e.type === "Map Service", m = !!r &&
|
|
254
|
+
const s = e.typeKeywords?.includes("Tiled Imagery"), p = e.type === "Image Service" && !s || e.type === "Map Service", m = !!r && k(e, r);
|
|
255
255
|
return m && p || m && e.type === "Feature Service" || e.type === "Vector Tile Service" || m && e.type === "KML";
|
|
256
256
|
}
|
|
257
257
|
const H = V`:host{display:block;height:100%;position:relative;width:100%}.outer{position:relative;width:100%;height:100%;aspect-ratio:3 / 2;min-height:0}.inner{position:absolute;inset:0;background-color:var(--calcite-color-background)}.inner--loading{animation:thumbnail-shimmer 1s linear infinite;background-image:linear-gradient(to right,var(--calcite-color-background) 0%,var(--calcite-color-foreground-2),var(--calcite-color-background) 40%,var(--calcite-color-background) 100%);background-repeat:no-repeat;background-size:800px 100%}.thumbnail{display:block;width:100%;height:100%;object-fit:cover;opacity:1;transition:opacity .3s linear}.thumbnail--loading{opacity:0}.fallback{display:flex;height:100%;width:100%;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-3)}@keyframes thumbnail-shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}`;
|
|
@@ -287,7 +287,7 @@ class Y extends E {
|
|
|
287
287
|
async updateThumbnail() {
|
|
288
288
|
const { item: t, portal: r, user: i } = this;
|
|
289
289
|
this.imageError = !1, this.useDefaultThumbnail = !1;
|
|
290
|
-
const n = this.generate && J(t, r, i), a = this.generate &&
|
|
290
|
+
const n = this.generate && J(t, r, i), a = this.generate && q(t, i);
|
|
291
291
|
n && await this.generateThumbnail() || (this.thumbnailUri = a ? g(t) : R(r, t, !1, this.useProduction, this.cacheString), a && await this.generateThumbnail(!0));
|
|
292
292
|
}
|
|
293
293
|
render() {
|
|
@@ -3,7 +3,7 @@ import type Portal from "@arcgis/core/portal/Portal.js";
|
|
|
3
3
|
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
4
4
|
import type PortalUser from "@arcgis/core/portal/PortalUser.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
|
-
import type {
|
|
6
|
+
import type { ItemServiceInfo } from "../../types/item.js";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
8
|
|
|
9
9
|
export abstract class ArcgisPortalItemType extends LitElement {
|
|
@@ -35,12 +35,13 @@ export abstract class ArcgisPortalItemType extends LitElement {
|
|
|
35
35
|
utilityNetwork: string;
|
|
36
36
|
parcelFabric: string;
|
|
37
37
|
parcelFabricHosted: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
meshLayer: string;
|
|
39
|
+
object3dLayer: string;
|
|
40
|
+
pointCloudLayer: string;
|
|
41
|
+
point3dLayer: string;
|
|
42
|
+
buildingLayer: string;
|
|
43
|
+
voxelLayer: string;
|
|
44
|
+
gaussianSplatLayer: string;
|
|
44
45
|
dataStore: {
|
|
45
46
|
bigdata: string;
|
|
46
47
|
cloud: string;
|
|
@@ -64,12 +65,13 @@ export abstract class ArcgisPortalItemType extends LitElement {
|
|
|
64
65
|
utilityNetwork: string;
|
|
65
66
|
parcelFabric: string;
|
|
66
67
|
parcelFabricHosted: string;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
meshLayer: string;
|
|
69
|
+
object3dLayer: string;
|
|
70
|
+
pointCloudLayer: string;
|
|
71
|
+
point3dLayer: string;
|
|
72
|
+
buildingLayer: string;
|
|
73
|
+
voxelLayer: string;
|
|
74
|
+
gaussianSplatLayer: string;
|
|
73
75
|
dataStore: {
|
|
74
76
|
bigdata: string;
|
|
75
77
|
cloud: string;
|
|
@@ -81,7 +83,7 @@ export abstract class ArcgisPortalItemType extends LitElement {
|
|
|
81
83
|
accessor portal: Portal | undefined;
|
|
82
84
|
/** @default "s" */
|
|
83
85
|
accessor scale: "l" | "m" | "s";
|
|
84
|
-
accessor serviceInfo:
|
|
86
|
+
accessor serviceInfo: ItemServiceInfo | undefined;
|
|
85
87
|
/**
|
|
86
88
|
* Display additional information about the item (views, extensions, photos, etc)
|
|
87
89
|
* will only display for users who can update or edit
|
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u } from "../../chunks/useT9n.js";
|
|
6
|
-
import { g as
|
|
7
|
-
const
|
|
8
|
-
class
|
|
2
|
+
import { g as f, c as y } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as u, nothing as o, safeClassMap as x } from "@arcgis/lumina";
|
|
4
|
+
import { css as v, html as i } from "lit";
|
|
5
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
6
|
+
import { g as I } from "../../chunks/utils4.js";
|
|
7
|
+
const $ = v`:host{display:inline-flex;align-items:center}:host([scale="s"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--2);--arcgis-portal-item-type-spacing: 1rem}:host([scale="m"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--1);--arcgis-portal-item-type-spacing: 1rem}:host([scale="l"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size-0);--arcgis-portal-item-type-spacing: 1rem}.icon{display:block;flex-grow:0;flex-shrink:0;width:var(--arcgis-portal-item-type-spacing);height:var(--arcgis-portal-item-type-spacing)}.text{color:var(--calcite-text-color-2);font-size:var(--arcgis-portal-item-type-font-size);line-height:1.25rem}.text--ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.text--spaced{margin-inline-start:calc(var(--arcgis-portal-item-type-spacing) / 2);word-wrap:break-word;word-break:break-word}`;
|
|
8
|
+
class z extends u {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(...arguments), this.messages =
|
|
10
|
+
super(...arguments), this.messages = w({ blocking: !0 }), this.scale = "s";
|
|
11
11
|
}
|
|
12
12
|
static {
|
|
13
|
-
this.properties = {
|
|
13
|
+
this.properties = { displayInfo: 16, item: 0, serviceInfo: 0, portal: 0, user: 0, scale: 3, hideText: 5, hideIcon: 5, ellipsis: 5, showHosted: 5 };
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
|
-
this.styles =
|
|
16
|
+
this.styles = $;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
portal: s || e.portal
|
|
28
|
-
});
|
|
29
|
-
this.displayName = i, this.displayNameHosted = l, this.icon = t;
|
|
18
|
+
willUpdate(t) {
|
|
19
|
+
const s = this.messages._lang;
|
|
20
|
+
(t.has("item") || t.has("serviceInfo") || t.has("portal") || t.has("user") || s !== this.displayLanguage) && (this.displayLanguage = s, this.displayInfo = this.item && s ? I({
|
|
21
|
+
item: this.item,
|
|
22
|
+
messages: this.messages,
|
|
23
|
+
serviceInfo: this.serviceInfo,
|
|
24
|
+
portal: this.portal ?? this.item.portal,
|
|
25
|
+
user: this.user
|
|
26
|
+
}) : void 0);
|
|
30
27
|
}
|
|
31
28
|
render() {
|
|
32
|
-
const {
|
|
33
|
-
if (!
|
|
29
|
+
const { displayInfo: t, showHosted: s, scale: l, hideText: c, hideIcon: a, ellipsis: n } = this;
|
|
30
|
+
if (!t)
|
|
34
31
|
return null;
|
|
35
|
-
const t =
|
|
36
|
-
return
|
|
32
|
+
const { icon: p, displayName: m, displayNameHosted: h } = t, e = s ? h : m, g = e?.includes("(") ? "" : "‭", d = f(`./assets/portal-item-type/icons/${p}16.svg`), r = this.hideText ? e : void 0;
|
|
33
|
+
return i`${!a && i`<span class="icon"><img src=${d ?? o} alt=${(r || "") ?? o} class=${`icon icon--${l}`}></span>` || ""}${!c && i`<span class=${x({ text: !0, "text--spaced": !a, "text--ellipsis": n })} .innerHTML=${`${g}${e}`}></span>` || ""}`;
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
|
-
|
|
36
|
+
y("arcgis-portal-item-type", z);
|
|
40
37
|
export {
|
|
41
|
-
|
|
38
|
+
z as ArcgisPortalItemType
|
|
42
39
|
};
|