@arcgis/portal-components 6.0.0-next.4 → 6.0.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{SGDDFWCJ.js → 2GIECQ25.js} +1 -1
- package/dist/cdn/2N6K2UUQ.js +2 -0
- package/dist/cdn/36DGXQLJ.js +2 -0
- package/dist/cdn/{2TDHJSMP.js → 3HXQ5Z4C.js} +1 -1
- package/dist/cdn/3HZI6MKD.js +2 -0
- package/dist/cdn/3OL7A2UC.js +2 -0
- package/dist/cdn/3Q7UJKKN.js +2 -0
- package/dist/cdn/3SG67WP5.js +2 -0
- package/dist/cdn/3ZVDEJPF.js +2 -0
- package/dist/cdn/42AN66SK.js +2 -0
- package/dist/cdn/46HNNQAD.js +2 -0
- package/dist/cdn/4CBRO7JP.js +2 -0
- package/dist/cdn/4E354KKM.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/5MLBK66O.js +2 -0
- package/dist/cdn/5ZHNRQOW.js +2 -0
- package/dist/cdn/62TL6V4N.js +2 -0
- package/dist/cdn/67FEZD25.js +2 -0
- package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
- package/dist/cdn/6GPAZV4Z.js +2 -0
- package/dist/cdn/6QI7DAS2.js +2 -0
- package/dist/cdn/6XDKSVRF.js +2 -0
- package/dist/cdn/6ZJNZZPC.js +2 -0
- package/dist/cdn/6ZYYG64M.js +2 -0
- package/dist/cdn/7AG3E7K6.js +2 -0
- package/dist/cdn/7JDXAVUG.js +2 -0
- package/dist/cdn/7JKFWVCY.js +2 -0
- package/dist/cdn/7VPB6Q55.js +63 -0
- package/dist/cdn/AJEQETRW.js +2 -0
- package/dist/cdn/{JE2376SE.js → AP7UWD4P.js} +1 -1
- package/dist/cdn/{OR6T5SB3.js → BNWJUQDF.js} +1 -1
- package/dist/cdn/BUYOYUA2.js +2 -0
- package/dist/cdn/BX7Q3V2Y.js +43 -0
- package/dist/cdn/BXPNB7VJ.js +2 -0
- package/dist/cdn/BZEKNJUA.js +2 -0
- package/dist/cdn/C6RUWLEJ.js +2 -0
- package/dist/cdn/CERDMRFQ.js +2 -0
- package/dist/cdn/DFECUYNW.js +2 -0
- package/dist/cdn/DGWOMELT.js +2 -0
- package/dist/cdn/DIWTHL4N.js +2 -0
- package/dist/cdn/DKUOQCHO.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → DQL2JT6K.js} +1 -1
- package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
- package/dist/cdn/DU2R3VC4.js +2 -0
- package/dist/cdn/E5HCHRAI.js +2 -0
- package/dist/cdn/EBL7YSRM.js +2 -0
- package/dist/cdn/EDGE3T36.js +2 -0
- package/dist/cdn/EETYTFHH.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
- package/dist/cdn/FINVGL3V.js +2 -0
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/FXXFSYNB.js +2 -0
- package/dist/cdn/GA4OWLSO.js +2 -0
- package/dist/cdn/GFUKRB6D.js +2 -0
- package/dist/cdn/GHDMQJG4.js +2 -0
- package/dist/cdn/{FRE56NBG.js → GY4SY4XC.js} +1 -1
- package/dist/cdn/H4TPPTVB.js +2 -0
- package/dist/cdn/HOIZXTOD.js +2 -0
- package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
- package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
- package/dist/cdn/IQPJOVDL.js +2 -0
- package/dist/cdn/ITRJGXFV.js +93 -0
- package/dist/cdn/ITWLFQI4.js +2 -0
- package/dist/cdn/IWPJEUHY.js +2 -0
- package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
- package/dist/cdn/JDW7ECBF.js +2 -0
- package/dist/cdn/JFGXTJY4.js +2 -0
- package/dist/cdn/JGTBDGJ7.js +2 -0
- package/dist/cdn/JLT5GCLY.js +2 -0
- package/dist/cdn/JTA223NH.js +2 -0
- package/dist/cdn/KA2MXQTR.js +2 -0
- package/dist/cdn/KAK6CNI7.js +2 -0
- package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/KWL2D56D.js +3 -0
- package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
- package/dist/cdn/L3YOPSRB.js +135 -0
- package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
- package/dist/cdn/{JIJO4CAS.js → LVWAYUYZ.js} +1 -1
- package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
- package/dist/cdn/ME6XACY6.js +2 -0
- package/dist/cdn/MSL36HAR.js +2 -0
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/N47MW5HI.js +9 -0
- package/dist/cdn/N5AG34NK.js +2 -0
- package/dist/cdn/N7XYFVOI.js +2 -0
- package/dist/cdn/NHVPNSNH.js +2 -0
- package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
- package/dist/cdn/O2GPTWGF.js +3 -0
- package/dist/cdn/ODYYTLLQ.js +2 -0
- package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
- package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
- package/dist/cdn/OQBLBDR5.js +2 -0
- package/dist/cdn/OWODUQF2.js +2 -0
- package/dist/cdn/OXF2WDSW.js +2 -0
- package/dist/cdn/PM33STYQ.js +2 -0
- package/dist/cdn/PUHZVFK7.js +2 -0
- package/dist/cdn/QAXFE5DD.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
- package/dist/cdn/QXPDVHB5.js +2 -0
- package/dist/cdn/R26RBXQW.js +2 -0
- package/dist/cdn/{NWVLGU2C.js → R45EMSQJ.js} +1 -1
- package/dist/cdn/R6KJVAX3.js +99 -0
- package/dist/cdn/RA2NMLMP.js +2 -0
- package/dist/cdn/RDRSZQAR.js +2 -0
- package/dist/cdn/RR56BOTV.js +2 -0
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/RX64JXHI.js +170 -0
- package/dist/cdn/S4N5QMSN.js +2 -0
- package/dist/cdn/SCLYGIHM.js +2 -0
- package/dist/cdn/SGV47YVU.js +2 -0
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TQX5BOZG.js +2 -0
- package/dist/cdn/U2J4ST45.js +2 -0
- package/dist/cdn/U3V7PPC2.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
- package/dist/cdn/UCHX4CBR.js +2 -0
- package/dist/cdn/UCTXRTQZ.js +2 -0
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/UWB23CG4.js +2 -0
- package/dist/cdn/VABNHOVG.js +2 -0
- package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
- package/dist/cdn/VWOBCSD6.js +4 -0
- package/dist/cdn/W6U2HMEK.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
- package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
- package/dist/cdn/WTKLB3R6.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → XSEFGIVV.js} +1 -1
- package/dist/cdn/XYHIVGUK.js +2 -0
- package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
- package/dist/cdn/Y7ZCEONL.js +73 -0
- package/dist/cdn/YCMZ3RVZ.js +2 -0
- package/dist/cdn/YELHAJB3.js +2 -0
- package/dist/cdn/YH2OFXPU.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.js} +1 -1
- package/dist/cdn/{74T6IXSN.js → ZOOEWYFB.js} +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/FieldIcons.js +24 -0
- package/dist/chunks/constants.js +7 -0
- package/dist/chunks/contextUsage.js +208 -0
- package/dist/chunks/createPortalTool.js +18 -0
- package/dist/chunks/fieldAddDelete.js +6 -6
- package/dist/chunks/functionalities.js +14 -9
- package/dist/chunks/groups.js +8 -61
- package/dist/chunks/groups2.js +23 -8
- package/dist/chunks/help.js +22 -0
- package/dist/chunks/info.js +2 -2
- package/dist/chunks/item.js +135 -33
- package/dist/chunks/item2.js +96 -122
- package/dist/chunks/itemThumbnail.js +21 -21
- package/dist/chunks/items.js +11 -11
- package/dist/chunks/layers.js +196 -0
- package/dist/chunks/loadClassificationData.js +26 -27
- package/dist/chunks/portal-browser.js +49 -46
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-item-preview-sublayer.js +214 -0
- package/dist/chunks/portal-item-status-card.js +81 -0
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +14 -10
- package/dist/chunks/portal2.js +22 -22
- package/dist/chunks/portalEntitySelection.js +61 -0
- package/dist/chunks/previewSessionController.js +33 -0
- package/dist/chunks/query.js +14 -14
- package/dist/chunks/request.js +49 -41
- package/dist/chunks/requests.js +7 -7
- package/dist/chunks/selectedMentions.js +25 -0
- package/dist/chunks/services.js +5 -5
- package/dist/chunks/string.js +19 -11
- package/dist/chunks/ui.js +1 -0
- package/dist/chunks/url.js +2 -2
- package/dist/chunks/user.js +67 -53
- package/dist/chunks/user2.js +10 -10
- package/dist/chunks/utils.js +35 -22
- package/dist/chunks/utils3.js +88 -657
- package/dist/chunks/utils4.js +663 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
- package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
- package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
- package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
- package/dist/components/arcgis-portal-browser/customElement.js +3 -2
- package/dist/components/arcgis-portal-browser/index.js +1 -0
- package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
- package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
- package/dist/components/arcgis-portal-delete-items/index.js +1 -2
- package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
- package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
- package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
- package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
- package/dist/components/arcgis-portal-field-delete/index.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
- package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
- package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
- package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
- package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
- package/dist/components/arcgis-portal-item-card/customElement.d.ts +37 -10
- package/dist/components/arcgis-portal-item-card/customElement.js +125 -86
- package/dist/components/arcgis-portal-item-card/index.js +4 -1
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
- package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
- package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
- package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
- package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview/index.js +20 -0
- package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
- package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
- package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
- package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
- package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
- package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
- package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
- package/dist/components/arcgis-portal-navigation/customElement.d.ts +10 -4
- package/dist/components/arcgis-portal-navigation/customElement.js +349 -351
- package/dist/components/arcgis-portal-navigation/index.js +4 -5
- package/dist/components/arcgis-portal-navigation/types.d.ts +3 -0
- package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
- package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
- package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
- package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
- package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
- package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
- package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
- package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
- package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
- package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
- package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
- package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
- package/dist/components/portal-group-browser-filters/customElement.js +15 -15
- package/dist/components/portal-related-items-list-item/customElement.js +16 -14
- package/dist/components/portal-related-items-list-item/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +87 -0
- package/dist/index.js +305 -6
- package/dist/loader.js +22 -11
- package/dist/services/group.d.ts +17 -0
- package/dist/services/groups.d.ts +9 -0
- package/dist/services/item.d.ts +9 -0
- package/dist/types/item.d.ts +23 -11
- package/dist/types/layer.d.ts +27 -0
- package/dist/types/lumina.d.ts +82 -12
- package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
- package/dist/types/portalEntityPicker.d.ts +3 -0
- package/dist/types/preact.d.ts +93 -12
- package/dist/types/react.d.ts +104 -12
- package/dist/types/services.d.ts +28 -1
- package/dist/types/stencil.d.ts +82 -12
- package/dist/types/user.d.ts +14 -10
- package/dist/utils/generateEmbeddings.d.ts +7 -0
- package/dist/utils/semanticSearch.d.ts +60 -0
- package/dist/utils/types.d.ts +10 -0
- package/package.json +14 -13
- package/dist/cdn/23NXHNPU.js +0 -2
- package/dist/cdn/24QSQLRY.js +0 -2
- package/dist/cdn/2CN754CY.js +0 -2
- package/dist/cdn/2FQKDFEE.js +0 -2
- package/dist/cdn/2MPQ5IWJ.js +0 -2
- package/dist/cdn/3CQKCUM5.js +0 -2
- package/dist/cdn/3EYB5GQX.js +0 -2
- package/dist/cdn/3FSPL34I.js +0 -170
- package/dist/cdn/3LEQ37YT.js +0 -68
- package/dist/cdn/4KTRAA2J.js +0 -2
- package/dist/cdn/4MUB6TL6.js +0 -2
- package/dist/cdn/4PRXQFCV.js +0 -2
- package/dist/cdn/4QFTKB6T.js +0 -2
- package/dist/cdn/4TSXFX3M.js +0 -2
- package/dist/cdn/5C5GHX4D.js +0 -2
- package/dist/cdn/7LMZHJZG.js +0 -2
- package/dist/cdn/A2SQ4EMZ.js +0 -2
- package/dist/cdn/AICPYLWE.js +0 -4
- package/dist/cdn/AXOBMX3S.js +0 -2
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BYHX3UWV.js +0 -2
- package/dist/cdn/CD5UWSCP.js +0 -2
- package/dist/cdn/D2YQWKME.js +0 -135
- package/dist/cdn/DDBXEXOV.js +0 -2
- package/dist/cdn/DHMNNIXZ.js +0 -2
- package/dist/cdn/DLI4XKJ3.js +0 -2
- package/dist/cdn/DYO5P3F2.js +0 -2
- package/dist/cdn/E66BDC6N.js +0 -2
- package/dist/cdn/EEAVX4PP.js +0 -2
- package/dist/cdn/EMJQI4MA.js +0 -2
- package/dist/cdn/EY5S6ICQ.js +0 -2
- package/dist/cdn/FIBQAMJ3.js +0 -2
- package/dist/cdn/FIQZPIIK.js +0 -2
- package/dist/cdn/FNLBJ4ZQ.js +0 -2
- package/dist/cdn/GGDOGNH4.js +0 -150
- package/dist/cdn/GSOBDGLK.js +0 -2
- package/dist/cdn/GXM3XY3J.js +0 -2
- package/dist/cdn/HCNTXLUT.js +0 -2
- package/dist/cdn/I273CANO.js +0 -2
- package/dist/cdn/I6NVKNZJ.js +0 -2
- package/dist/cdn/J5FKIZAM.js +0 -2
- package/dist/cdn/J5NPDIZM.js +0 -2
- package/dist/cdn/JOUR2FB2.js +0 -3
- package/dist/cdn/JWBUJT43.js +0 -2
- package/dist/cdn/K75JTQPW.js +0 -2
- package/dist/cdn/LISDTBEX.js +0 -2
- package/dist/cdn/LYLQCBVX.js +0 -2
- package/dist/cdn/MQK63FV7.js +0 -2
- package/dist/cdn/N4VOTJ25.js +0 -2
- package/dist/cdn/N5QLV56W.js +0 -2
- package/dist/cdn/OD5WXP7J.js +0 -2
- package/dist/cdn/OXPXXIWL.js +0 -2
- package/dist/cdn/PKA745KL.js +0 -2
- package/dist/cdn/PMRFXB4F.js +0 -2
- package/dist/cdn/PNIFJ5DQ.js +0 -2
- package/dist/cdn/PZDI5ZDC.js +0 -2
- package/dist/cdn/QROXYP6V.js +0 -2
- package/dist/cdn/QUOLQGKP.js +0 -2
- package/dist/cdn/QWHGLE3O.js +0 -2
- package/dist/cdn/R3PK7XOP.js +0 -2
- package/dist/cdn/REM3KCX6.js +0 -2
- package/dist/cdn/RNWICLRH.js +0 -2
- package/dist/cdn/RQYNPDN3.js +0 -2
- package/dist/cdn/S6F7U36E.js +0 -400
- package/dist/cdn/SMX2LEJB.js +0 -2
- package/dist/cdn/SVROAT3Z.js +0 -2
- package/dist/cdn/TBZXKKGP.js +0 -2
- package/dist/cdn/TNUCSWBN.js +0 -2
- package/dist/cdn/TOICLGFK.js +0 -2
- package/dist/cdn/TOTWYGB3.js +0 -2
- package/dist/cdn/TUUUK3VX.js +0 -2
- package/dist/cdn/U3KMGSVH.js +0 -2
- package/dist/cdn/UEP2NYJK.js +0 -2
- package/dist/cdn/UZP4YMTE.js +0 -2
- package/dist/cdn/VNU4QX7M.js +0 -41
- package/dist/cdn/XYMBRPC7.js +0 -2
- package/dist/cdn/YB3DR4VO.js +0 -2
- package/dist/cdn/YYTEJVBL.js +0 -2
- package/dist/cdn/Z3HGPBOR.js +0 -2
- package/dist/cdn/ZDDN7UKS.js +0 -2
- package/dist/cdn/ZXNF77OB.js +0 -2
- package/dist/chunks/functional.js +0 -9
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
- /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
- /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
3
3
|
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
4
|
-
import type PortalUser from "@arcgis/core/portal/PortalUser.js";
|
|
5
4
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
5
|
import type { InternalUIAction } from "../../types/tracking.js";
|
|
7
6
|
import type { Scale } from "../../types/ui.js";
|
|
8
|
-
import type {
|
|
7
|
+
import type { UserPresentation } from "../../types/user.js";
|
|
9
8
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
10
9
|
|
|
11
10
|
export abstract class ArcgisPortalUserPopup extends LitElement {
|
|
@@ -21,7 +20,7 @@ export abstract class ArcgisPortalUserPopup extends LitElement {
|
|
|
21
20
|
* @default false
|
|
22
21
|
*/
|
|
23
22
|
accessor avatarAriaHidden: boolean | undefined;
|
|
24
|
-
/** Fully qualified
|
|
23
|
+
/** Fully qualified page root for user links. Defaults to the portal home app. */
|
|
25
24
|
accessor baseUrl: string | undefined;
|
|
26
25
|
/**
|
|
27
26
|
* @default false
|
|
@@ -89,7 +88,7 @@ export abstract class ArcgisPortalUserPopup extends LitElement {
|
|
|
89
88
|
*/
|
|
90
89
|
accessor underline: boolean | undefined;
|
|
91
90
|
/** Passing a user will always show thumbnail for that user (use either user or item). */
|
|
92
|
-
accessor user:
|
|
91
|
+
accessor user: UserPresentation | undefined;
|
|
93
92
|
/** Passing a username will perform a fetch for the user information on load. */
|
|
94
93
|
accessor username: string | undefined;
|
|
95
94
|
/**
|
|
@@ -109,6 +108,4 @@ export abstract class ArcgisPortalUserPopup extends LitElement {
|
|
|
109
108
|
arcgisUserPopupClose: ArcgisPortalUserPopup["arcgisUserPopupClose"]["detail"];
|
|
110
109
|
arcgisUserPopupInternalUIAction: ArcgisPortalUserPopup["arcgisUserPopupInternalUIAction"]["detail"];
|
|
111
110
|
};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export type PopupUser = CommunityUser | ItemUserInfo | PortalUser | SearchResultUser;
|
|
111
|
+
}
|
|
@@ -1,87 +1,104 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { f as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
+
import { isAbortError as v } from "@arcgis/core/core/promiseUtils.js";
|
|
4
|
+
import { LitElement as T, createEvent as g, safeClassMap as b, safeStyleMap as L } from "@arcgis/lumina";
|
|
5
|
+
import { Task as N } from "@lit/task";
|
|
6
|
+
import { log as $ } from "@arcgis/toolkit/log";
|
|
7
|
+
import { css as q, html as m } from "lit";
|
|
8
|
+
import { createRef as w, ref as _ } from "lit/directives/ref.js";
|
|
9
|
+
import { unsafeHTML as z } from "lit/directives/unsafe-html.js";
|
|
10
|
+
import { u as H } from "../../chunks/useT9n.js";
|
|
11
|
+
import { f as y } from "../../chunks/user.js";
|
|
12
|
+
import { d as U } from "../../chunks/items.js";
|
|
13
|
+
import { s as I } from "../../chunks/dom.js";
|
|
14
|
+
import { f as E } from "../../chunks/verified.js";
|
|
15
|
+
import { d as M, g as F } from "../../chunks/string.js";
|
|
16
|
+
import { g as G } from "../../chunks/user2.js";
|
|
17
|
+
import { g as S } from "../../chunks/url.js";
|
|
18
|
+
import { f as x, r as P } from "../../chunks/request.js";
|
|
19
|
+
import { a as A } from "../../chunks/portal.js";
|
|
20
|
+
async function D(l, e, r, o) {
|
|
21
|
+
const t = l.owner ?? "";
|
|
22
|
+
if (U(l) === "public_authoritative") {
|
|
23
|
+
const s = await E(l, r, e, o);
|
|
24
|
+
if (s) {
|
|
25
|
+
const { description: p, name: n, thumbnail: c, url: a } = s;
|
|
26
|
+
return {
|
|
27
|
+
description: p ? I(p) : "",
|
|
28
|
+
fullName: n,
|
|
29
|
+
username: t,
|
|
30
|
+
thumbnail: c,
|
|
31
|
+
id: e.id ?? "",
|
|
32
|
+
url: a
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return await y(t, e, o);
|
|
35
37
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
const V = q`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`;
|
|
39
|
+
async function j(l, e, r) {
|
|
40
|
+
const o = r ? "https://www.arcgis.com/sharing/rest/" : A(e), t = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
|
41
|
+
return await x({
|
|
42
|
+
requester: async () => await P({
|
|
40
43
|
url: `${o}community/groups`,
|
|
41
|
-
portal:
|
|
44
|
+
portal: e,
|
|
42
45
|
params: {
|
|
43
|
-
q: `(owner:"${
|
|
46
|
+
q: `(owner:"${l}")`,
|
|
44
47
|
num: 100
|
|
45
48
|
},
|
|
46
|
-
options:
|
|
49
|
+
options: t
|
|
47
50
|
}),
|
|
48
51
|
key: "userGroups",
|
|
49
|
-
id:
|
|
52
|
+
id: `${o}${l}`
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
|
-
async function
|
|
53
|
-
const o = r ? "https://www.arcgis.com/sharing/rest/" :
|
|
54
|
-
return await
|
|
55
|
-
requester: async () => (await
|
|
55
|
+
async function J(l, e, r) {
|
|
56
|
+
const o = r ? "https://www.arcgis.com/sharing/rest/" : A(e), t = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
|
57
|
+
return await x({
|
|
58
|
+
requester: async () => (await P({
|
|
56
59
|
url: `${o}search`,
|
|
57
|
-
portal:
|
|
60
|
+
portal: e,
|
|
58
61
|
params: {
|
|
59
|
-
q: `(owner:"${
|
|
62
|
+
q: `(owner:"${l}") -typekeywords:"recyclebin"`,
|
|
60
63
|
num: 1
|
|
61
64
|
},
|
|
62
|
-
options:
|
|
65
|
+
options: t
|
|
63
66
|
})).total,
|
|
64
67
|
key: "userItemsTotal",
|
|
65
|
-
id:
|
|
68
|
+
id: `${o}${l}`
|
|
66
69
|
});
|
|
67
70
|
}
|
|
68
|
-
function
|
|
69
|
-
baseUrl:
|
|
70
|
-
user:
|
|
71
|
+
function k({
|
|
72
|
+
baseUrl: l,
|
|
73
|
+
user: e,
|
|
71
74
|
type: r
|
|
72
75
|
}) {
|
|
73
|
-
const o =
|
|
74
|
-
return
|
|
76
|
+
const o = M(l), t = encodeURIComponent(e.username || "");
|
|
77
|
+
return t ? `${o}/${r}.html?user=${t}` : `${o}/${r}.html`;
|
|
75
78
|
}
|
|
76
|
-
class
|
|
79
|
+
class K extends T {
|
|
77
80
|
constructor() {
|
|
78
|
-
super(...arguments), this.messages =
|
|
81
|
+
super(...arguments), this.messages = H({ blocking: !0 }), this.buttonRef = w(), this.popoverRef = w(), this.identityTask = new N(this, {
|
|
82
|
+
args: () => [this.item, this.user, this.username, this.fullName, this.portal, this.checkOnline, this.messages._lang],
|
|
83
|
+
task: async ([e, r, o, t, s, p, n], { signal: c }) => {
|
|
84
|
+
if (!s || !n || r)
|
|
85
|
+
return;
|
|
86
|
+
const a = e ? await D(e, s, n, p) : o ? await y(o, s, p) : void 0;
|
|
87
|
+
return c.throwIfAborted(), a && !a.fullName && t ? { ...a, fullName: t } : a;
|
|
88
|
+
},
|
|
89
|
+
onComplete: (e) => {
|
|
90
|
+
this.itemUserInfo = e;
|
|
91
|
+
},
|
|
92
|
+
onError: (e) => {
|
|
93
|
+
v(e) || $("error", this, "Unable to load the item owner.", { detail: { error: e } });
|
|
94
|
+
}
|
|
95
|
+
}), this.isPopoverOpen = !1, this.scale = "m", this.showAvatar = !0, this.showName = !0, this.showUsername = !1, this.appearance = "transparent", this.arcgisUserPopupInternalUIAction = g(), this.arcgisUserPopupClose = g();
|
|
79
96
|
}
|
|
80
97
|
static {
|
|
81
98
|
this.properties = { itemUserInfo: 16, groups: 16, total: 16, isPopoverOpen: 16, user: 0, username: 1, fullName: 1, item: 0, scale: 3, portal: 0, baseUrl: 1, underline: 5, showAvatar: 5, showName: 5, showUsername: 5, wrap: 5, appearance: 1, zIndex: 9, avatarAriaHidden: 5, checkOnline: 5 };
|
|
82
99
|
}
|
|
83
100
|
static {
|
|
84
|
-
this.styles =
|
|
101
|
+
this.styles = V;
|
|
85
102
|
}
|
|
86
103
|
async setFocus() {
|
|
87
104
|
this.buttonRef.value?.focus();
|
|
@@ -90,84 +107,84 @@ class D extends B {
|
|
|
90
107
|
this.buttonRef.value?.click();
|
|
91
108
|
}
|
|
92
109
|
connectedCallback() {
|
|
93
|
-
super.connectedCallback(), this.
|
|
110
|
+
super.connectedCallback(), this.hasUpdated && this.identityTask.run();
|
|
111
|
+
}
|
|
112
|
+
disconnectedCallback() {
|
|
113
|
+
super.disconnectedCallback(), this.identityTask.abort(), this.detailsRequest?.abort();
|
|
94
114
|
}
|
|
95
|
-
|
|
96
|
-
|
|
115
|
+
willUpdate(e) {
|
|
116
|
+
(e.has("item") || e.has("user") || e.has("username") || e.has("fullName") || e.has("portal") || e.has("checkOnline")) && (this.detailsRequest?.abort(), this.itemUserInfo = void 0, this.groups = void 0, this.total = void 0, this.isPopoverOpen = !1);
|
|
117
|
+
}
|
|
118
|
+
updated(e) {
|
|
119
|
+
e.has("isPopoverOpen") && this.isPopoverOpen && this.setPopoverOpen(!0);
|
|
97
120
|
}
|
|
98
121
|
get resolvedBaseUrl() {
|
|
99
|
-
return this.baseUrl ||
|
|
100
|
-
}
|
|
101
|
-
async init() {
|
|
102
|
-
const { item: t, username: r, portal: o, fullName: e, messages: a } = this;
|
|
103
|
-
if (!(!a._lang || !o)) {
|
|
104
|
-
if (t) {
|
|
105
|
-
this.itemUserInfo = await E(t, o, a._lang, this.checkOnline);
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
if (r) {
|
|
109
|
-
const n = await f(r, o, this.checkOnline);
|
|
110
|
-
!n.fullName && e && (n.fullName = e), this.itemUserInfo = n;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
122
|
+
return this.baseUrl || S({ portal: this.portal });
|
|
113
123
|
}
|
|
114
124
|
async fetchItemsAndGroups() {
|
|
115
|
-
const { user:
|
|
116
|
-
if (!
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
125
|
+
const { user: e, itemUserInfo: r, item: o, portal: t, username: s, checkOnline: p } = this, n = s || e?.username || o?.owner || r?.username;
|
|
126
|
+
if (!n || !t)
|
|
127
|
+
return;
|
|
128
|
+
this.detailsRequest?.abort();
|
|
129
|
+
const c = new AbortController();
|
|
130
|
+
this.detailsRequest = c;
|
|
131
|
+
const { signal: a } = c;
|
|
132
|
+
try {
|
|
133
|
+
const i = this.groups ?? await j(n, t, p);
|
|
134
|
+
a.throwIfAborted();
|
|
135
|
+
const u = await J(n, t, p);
|
|
136
|
+
a.throwIfAborted(), this.groups = i, this.total = u;
|
|
137
|
+
} catch (i) {
|
|
138
|
+
!a.aborted && !v(i) && $("error", this, "Unable to load the owner's groups and items.", { detail: { error: i } });
|
|
122
139
|
}
|
|
123
140
|
}
|
|
124
|
-
setPopoverOpen(
|
|
141
|
+
setPopoverOpen(e) {
|
|
125
142
|
requestAnimationFrame(() => {
|
|
126
|
-
this.popoverRef.value && (this.popoverRef.value.open =
|
|
143
|
+
this.popoverRef.value && (this.popoverRef.value.open = e);
|
|
127
144
|
});
|
|
128
145
|
}
|
|
129
|
-
openLink(
|
|
130
|
-
|
|
146
|
+
openLink(e, r) {
|
|
147
|
+
e.preventDefault(), window.open(r, "_blank");
|
|
131
148
|
}
|
|
132
|
-
renderOrgButtons(
|
|
133
|
-
const { messages: r } = this,
|
|
134
|
-
return
|
|
149
|
+
renderOrgButtons(e) {
|
|
150
|
+
const { messages: r } = this, t = ("url" in e && typeof e.url == "string" && e.url || this.resolvedBaseUrl).replace(/\/$/u, "");
|
|
151
|
+
return m`<calcite-button appearance=outline-fill kind=neutral .href=${t} target=_blank @click=${(s) => this.openLink(s, t)}>${r.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${t}/gallery.html`} target=_blank @click=${(s) => this.openLink(s, `${t}/gallery.html`)}>${r.gallery}</calcite-button>`;
|
|
135
152
|
}
|
|
136
|
-
renderUserButtons(
|
|
137
|
-
const { total: r, groups: o, messages:
|
|
153
|
+
renderUserButtons(e) {
|
|
154
|
+
const { total: r, groups: o, messages: t } = this, s = e.username || "";
|
|
138
155
|
if (typeof r != "number" || !o)
|
|
139
|
-
return
|
|
140
|
-
const
|
|
141
|
-
return
|
|
142
|
-
this.openLink(
|
|
143
|
-
}}>${
|
|
144
|
-
this.openLink(
|
|
145
|
-
}}>${
|
|
146
|
-
this.openLink(
|
|
147
|
-
}}>${
|
|
156
|
+
return m`<calcite-loader .label=${t.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;
|
|
157
|
+
const n = k({ baseUrl: this.resolvedBaseUrl, user: { username: s }, type: "groups" }), c = k({ baseUrl: this.resolvedBaseUrl, user: { username: s }, type: "content" }), a = `${this.resolvedBaseUrl.replace(/\/$/u, "")}/user.html?user=${encodeURIComponent(s)}`;
|
|
158
|
+
return m`${!!o.total && m`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${n} target=_blank @click=${(i) => {
|
|
159
|
+
this.openLink(i, n), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all groups" });
|
|
160
|
+
}}>${t.groups.replace("${number}", new Intl.NumberFormat(t._lang).format(o.total))}</calcite-button>` || ""}${!!r && m`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${c} target=_blank @click=${(i) => {
|
|
161
|
+
this.openLink(i, c), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all content" });
|
|
162
|
+
}}>${t.items.replace("${number}", new Intl.NumberFormat(t._lang).format(r))}</calcite-button>` || ""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${a} target=_blank @click=${(i) => {
|
|
163
|
+
this.openLink(i, a), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view profile" });
|
|
164
|
+
}}>${t.profile}</calcite-button>`;
|
|
148
165
|
}
|
|
149
166
|
render() {
|
|
150
|
-
const { user:
|
|
151
|
-
if (!
|
|
152
|
-
return
|
|
153
|
-
const
|
|
154
|
-
return
|
|
167
|
+
const { user: e, itemUserInfo: r, portal: o, item: t, appearance: s, scale: p, isPopoverOpen: n, showName: c, showUsername: a, messages: i } = this, u = e || r;
|
|
168
|
+
if (!i._lang || !u)
|
|
169
|
+
return m`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;
|
|
170
|
+
const f = t && U(t) === "public_authoritative", d = u.username || "", h = F(u.description || "") || "", O = G(u, i._lang), R = f ? i.itemManagedBy.replace("${username}", d) : d;
|
|
171
|
+
return m`<button class=${b({
|
|
155
172
|
button: !0,
|
|
156
|
-
"button--outline":
|
|
173
|
+
"button--outline": s === "outline"
|
|
157
174
|
})} @click=${() => {
|
|
158
175
|
this.isPopoverOpen || (this.isPopoverOpen = !0), this.fetchItemsAndGroups();
|
|
159
|
-
}} ${
|
|
176
|
+
}} ${_(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${u} .scale=${p} .portal=${o} .showName=${c} .description=${a ? d : ""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${n && this.buttonRef.value && u && m`<calcite-popover class="popover" .label=${O} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${d}-popover`} auto-close style=${L({ "--calcite-popover-z-index": this.zIndex?.toString() || "12" })} @calcitePopoverOpen=${() => {
|
|
160
177
|
this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "open profile popup" });
|
|
161
178
|
}} @calcitePopoverClose=${() => {
|
|
162
179
|
this.isPopoverOpen = !1, this.arcgisUserPopupClose.emit();
|
|
163
|
-
}} @keydown=${(
|
|
164
|
-
|
|
180
|
+
}} @keydown=${(B) => {
|
|
181
|
+
B.key === "Escape" && setTimeout(() => {
|
|
165
182
|
this.buttonRef.value?.focus();
|
|
166
183
|
}, 200);
|
|
167
|
-
}} ${
|
|
184
|
+
}} ${_(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${u} scale=l .portal=${o} show-name .description=${R} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!h && m`<p class="popover__description">${z(I(h))}</p>` || ""}${!!h && m`<div class="popover__fade"></div>` || ""}<div class=${b({ popover__buttons: !0, "popover__buttons--no-description": !h })}>${f ? this.renderOrgButtons(u) : this.renderUserButtons(u)}</div></div></div></calcite-popover>` || ""}`;
|
|
168
185
|
}
|
|
169
186
|
}
|
|
170
|
-
|
|
187
|
+
C("arcgis-portal-user-popup", K);
|
|
171
188
|
export {
|
|
172
|
-
|
|
189
|
+
K as ArcgisPortalUserPopup
|
|
173
190
|
};
|
|
@@ -8,7 +8,7 @@ import { PortalBrowserFilterItem as g } from "../portal-browser/components/porta
|
|
|
8
8
|
import { PortalBrowserFilters as me } from "../portal-browser/components/portal-browser-filters/customElement.js";
|
|
9
9
|
import { g as ue, a as ge, b as be, c as fe, d as he } from "../../chunks/query.js";
|
|
10
10
|
function ye(U) {
|
|
11
|
-
const { browserMessages:
|
|
11
|
+
const { browserMessages: $, slot: y, filters: l, hasIndoorsSpaces: O, isFilterActive: b, messages: t, portal: v, selectedAccess: D, selectedGroupsByUser: N, selectedMemberOrg: j, selectedMembership: z, selectedOwner: H, selectedSpecialGroup: J, specialGroupOptions: K, store: k, handleRemove: c, handleSelect: n, handleUpsert: o, handleUserFilterChange: W } = U, I = v.isPortal, q = v.user, S = pe(q), B = q?.username ?? "", X = (e) => e === B ? u(t.groupsByUser.me, { username: e }) : e, C = (e, r) => e === "owner" ? r : e === "outsideOrg" && S ? t.owner.someoneElse : e === "inOrg" ? t.owner.inOrg : e === "outsideOrg" ? t.owner.outsideOrg : r, w = l.owner, T = H ?? w?.props?.owner ?? null, x = w?.props?.username ?? B, Y = v.id ?? "", Z = S ? ["owner", "outsideOrg"] : ["owner", "inOrg", "outsideOrg"], P = l.membership, M = z ?? P?.props?.membership ?? null, V = ["org", "collaboration", "anyOrg"], G = l.memberOrg, A = j ?? G?.props?.memberOrg ?? null, ee = G?.props?.orgId ?? "", re = ["myOrg", "anotherOrg"], F = l.specialGroups, Q = J ?? F?.props?.specialGroup ?? null, E = l.access, L = D ?? E?.props?.access ?? null, se = ["public", "org", "private"], f = l.groupsByUser, _ = f?.props?.usernames ?? [], te = f?.props?.selectedUsername ?? N ?? _[0] ?? B, i = $.filter.clear, p = (e, r) => {
|
|
12
12
|
const s = l[e];
|
|
13
13
|
s && (s.props = { ...s.props, expanded: r });
|
|
14
14
|
}, ae = (e) => {
|
|
@@ -18,16 +18,16 @@ function ye(U) {
|
|
|
18
18
|
}
|
|
19
19
|
e.removeAttribute("data-has-before-filters");
|
|
20
20
|
};
|
|
21
|
-
return me({ slot: y, store: k, title: a`<div class="filters-title"><h2 class="filters-title__heading">${t.filters.title}</h2><slot name=before-filters @slotchange=${(e) => ae(e.currentTarget)}></slot></div>`, children: a`${!!
|
|
21
|
+
return me({ slot: y, store: k, title: a`<div class="filters-title"><h2 class="filters-title__heading">${t.filters.title}</h2><slot name=before-filters @slotchange=${(e) => ae(e.currentTarget)}></slot></div>`, children: a`${!!f?.enabled && g({ heading: t.groupsByUser.title, expanded: !!f?.props?.expanded, setExpanded: (e) => p("groupsByUser", e), clearLabel: i, onRemove: () => {
|
|
22
22
|
n({
|
|
23
23
|
kind: "groupsByUser",
|
|
24
|
-
value:
|
|
24
|
+
value: f?.props?.selectedUsername ?? B
|
|
25
25
|
});
|
|
26
26
|
}, children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
27
27
|
const r = e.target.selectedItems?.[0]?.dataset.username ?? "";
|
|
28
28
|
n({ kind: "groupsByUser", value: r }), W(r);
|
|
29
29
|
}}>${_.map((e) => a`<calcite-tree-item data-username=${e ?? m} .selected=${e === te}><a class="groups-by-user__label">${X(e)}</a></calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!w?.enabled && g({ heading: t.owner.title, expanded: !!w?.props?.expanded, setExpanded: (e) => p("owner", e), active: b("owner"), clearLabel: i, onRemove: () => c("owner"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
30
|
-
const r = "owner", s =
|
|
30
|
+
const r = "owner", s = h(T, e, r);
|
|
31
31
|
if (!s) {
|
|
32
32
|
c(r);
|
|
33
33
|
return;
|
|
@@ -43,8 +43,8 @@ function ye(U) {
|
|
|
43
43
|
owner: s,
|
|
44
44
|
username: x
|
|
45
45
|
}), n({ kind: r, value: s });
|
|
46
|
-
}}>${Z.filter((e) => !(I ||
|
|
47
|
-
const r = "memberOrg", s =
|
|
46
|
+
}}>${Z.filter((e) => !(I || O) || e !== "outsideOrg").map((e) => a`<calcite-tree-item data-owner=${e ?? m} .selected=${T === e}>${C(e, x)}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!(G?.enabled && !I) && g({ heading: t.memberOrg.title, expanded: !!G?.props?.expanded, setExpanded: (e) => p("memberOrg", e), active: b("memberOrg"), clearLabel: i, onRemove: () => c("memberOrg"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
47
|
+
const r = "memberOrg", s = h(A, e, r);
|
|
48
48
|
if (!s) {
|
|
49
49
|
c(r);
|
|
50
50
|
return;
|
|
@@ -58,8 +58,8 @@ function ye(U) {
|
|
|
58
58
|
}), n({ kind: r, value: s });
|
|
59
59
|
}}>${re.map((e) => a`<calcite-tree-item data-member-org=${e ?? m} .selected=${A === e}>${t.memberOrg[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!(P?.enabled && // https://devtopia.esri.com/WebGIS/arcgis-portal-app/issues/44198
|
|
60
60
|
!I && // https://devtopia.esri.com/webgis/arcgis-portal-app/issues/37831
|
|
61
|
-
!
|
|
62
|
-
const r = "membership", s =
|
|
61
|
+
!O) && g({ heading: t.membership.title, expanded: !!P?.props?.expanded, setExpanded: (e) => p("membership", e), active: b("membership"), clearLabel: i, onRemove: () => c("membership"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
62
|
+
const r = "membership", s = h(M, e, r);
|
|
63
63
|
if (!s) {
|
|
64
64
|
c(r);
|
|
65
65
|
return;
|
|
@@ -68,16 +68,16 @@ function ye(U) {
|
|
|
68
68
|
id: r,
|
|
69
69
|
label: u(t.membership.label, { label: t.membership[s] }),
|
|
70
70
|
param: "q",
|
|
71
|
-
value: be(s,
|
|
71
|
+
value: be(s, O),
|
|
72
72
|
membership: s
|
|
73
73
|
}), n({ kind: r, value: s });
|
|
74
74
|
}}>${V.map((e) => a`<calcite-tree-item data-membership=${e ?? m} .selected=${M === e}>${t.membership[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${F?.enabled && g({ heading: t.specialGroups.title, expanded: !!F.props?.expanded, setExpanded: (e) => p("specialGroups", e), active: b("specialGroups"), clearLabel: i, onRemove: () => c("specialGroups"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${async (e) => {
|
|
75
|
-
const r = "specialGroups", s =
|
|
75
|
+
const r = "specialGroups", s = h(Q, e, r);
|
|
76
76
|
if (!s) {
|
|
77
77
|
c(r);
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
const R = await fe(s,
|
|
80
|
+
const R = await fe(s, v);
|
|
81
81
|
o({
|
|
82
82
|
id: "specialGroups",
|
|
83
83
|
label: u(t.specialGroups.label, { label: t.specialGroups[s] }),
|
|
@@ -87,7 +87,7 @@ function ye(U) {
|
|
|
87
87
|
}), n({ kind: "specialGroups", value: s });
|
|
88
88
|
}}>${K.map((e) => a`<calcite-tree-item data-special-groups=${e ?? m} .selected=${Q === e}><span class="special-groups-settings-option">${t.specialGroups[e]}${e === "settings" && a`<span class="special-groups-settings-icon"><calcite-icon id=portal-group-browser-special-groups-settings-info icon=information scale=s text-label=${t.specialGroups.tooltipLabel ?? m}></calcite-icon><calcite-tooltip placement=bottom-end reference-element=portal-group-browser-special-groups-settings-info>${t.specialGroups.tooltip}</calcite-tooltip></span>` || ""}</span></calcite-tree-item>`)}</calcite-tree>` }) || ""}${["modified", "created"].filter((e) => l[e]?.enabled).map((e) => {
|
|
89
89
|
const r = l[e]?.props, s = k.filters[e], R = !!r?.includeNever, le = s?.range ?? r?.range ?? null, ce = s?.start ?? r?.start, ne = s?.end ?? r?.end, oe = r?.serverProperty, ie = r?.expanded;
|
|
90
|
-
return de({ property: e, filterDateMessages:
|
|
90
|
+
return de({ property: e, filterDateMessages: $.filterDate, clearLabel: i, expanded: ie, setExpanded: (d) => p(e, d), includeNever: R, range: le, start: ce, end: ne, serverProperty: oe, onRemove: () => {
|
|
91
91
|
o({
|
|
92
92
|
id: e,
|
|
93
93
|
label: "",
|
|
@@ -109,7 +109,7 @@ function ye(U) {
|
|
|
109
109
|
});
|
|
110
110
|
} });
|
|
111
111
|
})}${!!E?.enabled && g({ heading: t.access.title, expanded: !!E?.props?.expanded, setExpanded: (e) => p("access", e), active: b("access"), clearLabel: i, onRemove: () => c("access"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
112
|
-
const r = "access", s =
|
|
112
|
+
const r = "access", s = h(L, e, r);
|
|
113
113
|
if (!s) {
|
|
114
114
|
c(r);
|
|
115
115
|
return;
|
|
@@ -123,8 +123,8 @@ function ye(U) {
|
|
|
123
123
|
}), n({ kind: r, value: s });
|
|
124
124
|
}}>${se.map((e) => a`<calcite-tree-item data-access=${e ?? m} .selected=${L === e}>${t.access[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}` });
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
const l =
|
|
126
|
+
const h = (U, $, y) => {
|
|
127
|
+
const l = $.target.selectedItems?.[0]?.dataset[y];
|
|
128
128
|
return U === l ? null : l ?? null;
|
|
129
129
|
};
|
|
130
130
|
export {
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { html as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { html as i } from "lit";
|
|
3
|
+
import { formatDate as y } from "@arcgis/core/intl.js";
|
|
4
|
+
import { nothing as b } from "@arcgis/lumina";
|
|
5
|
+
import { g as I } from "../../chunks/user2.js";
|
|
6
|
+
import { g as B } from "../../chunks/url.js";
|
|
7
|
+
function S({ item: e, owner: n, portal: c, user: o, lang: d, modifiedLabel: l, showAccessInfo: _ = !0, access: t = { level: e.access }, relatedItemsCount: $ = 0, relatedItemsCountTitle: s, onRelatedItemsClick: g }) {
|
|
8
|
+
const a = "inRecycleBin" in e && e.inRecycleBin === !0, r = c && !a ? `${B({ portal: c })}/item.html?id=${e.id}` : void 0, p = e.title ?? "", m = y(e.modified ?? void 0, { dateStyle: "medium" }), v = l ? l.replace("${date}", m ?? "") : m ?? "", h = {
|
|
7
9
|
public: "globe",
|
|
8
|
-
private: "
|
|
10
|
+
private: "user",
|
|
9
11
|
org: "organization",
|
|
10
|
-
shared: "
|
|
11
|
-
}[t.
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
}}><span slot=content-start><arcgis-portal-item-type .item=${
|
|
15
|
-
|
|
16
|
-
}}>${
|
|
12
|
+
shared: "user"
|
|
13
|
+
}[t.level], f = !!t.groupIds?.length || t.level === "shared";
|
|
14
|
+
return i`<calcite-list-item .label=${p} @calciteListItemSelect=${() => {
|
|
15
|
+
r && window.open(r, "_blank", "noopener,noreferrer");
|
|
16
|
+
}}><span slot=content-start><arcgis-portal-item-type .item=${e} .portal=${c} .user=${o} hide-text></arcgis-portal-item-type></span><div slot=content class="item"><div class="item__content"><span class="item__title">${p}</span><div class="item__details"><span class="item__type"><arcgis-portal-item-type .item=${e} .user=${o} .portal=${c} scale=s hide-icon></arcgis-portal-item-type></span>|<span class="item__details-owner">${n ? I(n, d) : e.owner}</span>|<span class="item__details-modified">${v}</span></div></div></div><div slot=content-end class="item__content-end">${a && i`<calcite-icon class="item__status-icon" icon=recycle-bin scale=s></calcite-icon>` || ""}${$ > 0 && i`<calcite-chip .label=${s} title=${s ?? b} icon=launch @click=${(u) => {
|
|
17
|
+
u.stopPropagation(), g?.();
|
|
18
|
+
}}>${s}</calcite-chip>` || ""}${_ && !a && i`<span class="item__access"><calcite-icon .icon=${h} scale=s class="item__access-icon"></calcite-icon>${f && i`<calcite-icon icon=plus scale=s></calcite-icon><calcite-icon icon=group scale=s class="item__access-icon"></calcite-icon>` || ""}</span>` || ""}</div></calcite-list-item>`;
|
|
17
19
|
}
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
S as RelatedItemsListItem
|
|
20
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
2
2
|
import "../arcgis-portal-item-type/index.js";
|
|
3
|
-
import "@esri/calcite-components/components/calcite-chip";
|
|
4
3
|
import "@esri/calcite-components/components/calcite-icon";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-chip";
|
|
5
5
|
export * from "./customElement.js";
|