@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
|
@@ -6,21 +6,20 @@ import { substitute as f } from "@arcgis/core/intl.js";
|
|
|
6
6
|
import { LitElement as L, createEvent as g, nothing as U, safeClassMap as Q } from "@arcgis/lumina";
|
|
7
7
|
import { u as R } from "../../chunks/useT9n.js";
|
|
8
8
|
import { a as $, i as w } from "../../chunks/functionalities.js";
|
|
9
|
-
import {
|
|
9
|
+
import { b as z, a as V, r as T } from "../../chunks/string.js";
|
|
10
10
|
import { i as H } from "../../chunks/users.js";
|
|
11
11
|
import "../arcgis-portal-browser-search/customElement.js";
|
|
12
12
|
import "../arcgis-portal-browser-top-bar/customElement.js";
|
|
13
|
-
import { c as N, a as
|
|
13
|
+
import { c as N, a as j } from "../../chunks/portal-browser.js";
|
|
14
14
|
import "../arcgis-portal-group-card/customElement.js";
|
|
15
15
|
import "../arcgis-portal-group-browser-card/customElement.js";
|
|
16
16
|
import "../arcgis-portal-group-browser-preview/customElement.js";
|
|
17
|
-
import { c as
|
|
18
|
-
import { i as
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import { a as te } from "../../chunks/portal.js";
|
|
22
|
-
import { g as b, a as v, d as x, w as ie } from "../../chunks/portal-browser-filter-date.js";
|
|
17
|
+
import { c as K } from "../../chunks/store.js";
|
|
18
|
+
import { i as J, g as X, b as Y, a as Z, c as ee, d as re } from "../../chunks/query.js";
|
|
19
|
+
import { s as se } from "../../chunks/groups2.js";
|
|
20
|
+
import { g as b, a as v, d as x, w as te } from "../../chunks/portal-browser-filter-date.js";
|
|
23
21
|
import { b as O } from "../../chunks/ui.js";
|
|
22
|
+
import { c as ie } from "../../chunks/previewSessionController.js";
|
|
24
23
|
import { watch as oe } from "@arcgis/core/core/reactiveUtils.js";
|
|
25
24
|
import { PortalGroupBrowserSort as ae } from "../portal-group-browser-sort/customElement.js";
|
|
26
25
|
import { PortalGroupBrowserPagination as ne } from "../portal-group-browser-pagination/customElement.js";
|
|
@@ -30,30 +29,22 @@ const M = {
|
|
|
30
29
|
preview: "arcgisGroupBrowserCardPreview"
|
|
31
30
|
}, ce = q`:host{position:relative;background-color:var(--calcite-color-background);display:flex;flex-direction:column;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;--portal-group-browser-max-width: var(--group-browser-max-width, 100%);--portal-group-browser-pane-width: 18.75rem;--portal-group-browser-pane-z-index: 11;container-type:inline-size;container-name:portal-group-browser}arcgis-portal-browser{--arcgis-browser-max-width: var(--portal-group-browser-max-width);--arcgis-browser-pane-width: var(--portal-group-browser-pane-width);--arcgis-browser-pane-z-index: var(--portal-group-browser-pane-z-index)}.filters-title__heading{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.2;margin:0;padding:1rem .5rem}.filters-title:has(>slot[name=before-filters][data-has-before-filters=true]) .filters-title__heading{border-bottom:1px solid var(--calcite-color-border-2)}.filters-shell{display:block}.filters-shell__top{padding:0}.filters-shell__top--padded{padding:0 1rem 1rem}.filter__accordion-item{--calcite-accordion-item-content-space: .75rem .25rem;--calcite-accordion-icon-margin: .5rem;border-top:1px solid var(--calcite-color-border-1)}.filter__actions-slot{display:flex;align-self:center;align-items:center;line-height:0}.filter__content{margin:0}.filter__content--padded{margin:-.75rem .5rem 0}.filter__content>calcite-tree>calcite-tree-item>a{padding-block:.25rem}.clear-button{line-height:1;margin-inline:.25rem}.custom-date-picker{margin-block:.5rem;margin-inline-start:1.75rem;width:12.75rem}.groups-by-user__label{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.special-groups-settings-option{display:inline-flex;align-items:center;gap:.25rem}.special-groups-settings-icon{display:inline-flex;align-items:center}.group-browser__results{display:grid;gap:.5rem}.group-browser__results--compact{gap:0}.group-browser__result-card{margin:0}@container portal-group-browser (max-width: 640px){arcgis-portal-browser{--portal-group-browser-pane-width: 100%}}.empty-text-slot{width:100%;height:100%;display:flex;justify-content:center}.empty-text-slot__default{@apply max-w-lg mx-auto px-6 pb-16;max-width:32rem;margin-inline:auto;padding-inline:1.5rem;padding-bottom:4rem;margin-top:min(8rem,30vh)}`;
|
|
32
31
|
async function he(t, e) {
|
|
33
|
-
const r =
|
|
34
|
-
if (!
|
|
32
|
+
const r = me(e), s = ue(e), i = !!e.searchUser?.trim();
|
|
33
|
+
if (!r.trim() && !i)
|
|
35
34
|
return {
|
|
36
35
|
nextStart: -1,
|
|
37
36
|
num: 0,
|
|
38
|
-
q:
|
|
39
|
-
queryParams: { ...
|
|
37
|
+
q: r,
|
|
38
|
+
queryParams: { ...s, q: r },
|
|
40
39
|
results: [],
|
|
41
40
|
start: 0,
|
|
42
41
|
total: 0
|
|
43
42
|
};
|
|
44
|
-
const
|
|
45
|
-
url: r,
|
|
46
|
-
portal: t,
|
|
47
|
-
params: a
|
|
48
|
-
}), c = o.results.map((l) => {
|
|
49
|
-
const p = re.fromJSON(l);
|
|
50
|
-
return p.portal = t, p;
|
|
51
|
-
});
|
|
43
|
+
const n = { ...s, q: r };
|
|
52
44
|
return {
|
|
53
|
-
...
|
|
54
|
-
q:
|
|
55
|
-
queryParams:
|
|
56
|
-
results: c
|
|
45
|
+
...await se(t, n),
|
|
46
|
+
q: r,
|
|
47
|
+
queryParams: n
|
|
57
48
|
};
|
|
58
49
|
}
|
|
59
50
|
const de = ["created", "modified", "owner", "title"];
|
|
@@ -62,12 +53,12 @@ function pe(t) {
|
|
|
62
53
|
}
|
|
63
54
|
function me(t) {
|
|
64
55
|
const e = [], r = t.baseQuery?.trim();
|
|
65
|
-
r && e.push(
|
|
56
|
+
r && e.push(r);
|
|
66
57
|
const s = t.searchTerm?.trim();
|
|
67
|
-
s && e.push(
|
|
58
|
+
s && e.push(z(s));
|
|
68
59
|
for (const i of Object.values(t.filters ?? {}))
|
|
69
|
-
typeof i.value == "string" && i.value.trim() && e.push(
|
|
70
|
-
return e
|
|
60
|
+
typeof i.value == "string" && i.value.trim() && e.push(i.value), typeof i.additionalParams == "string" && i.additionalParams.trim() && e.push(i.additionalParams);
|
|
61
|
+
return V(...e);
|
|
71
62
|
}
|
|
72
63
|
function ue(t) {
|
|
73
64
|
return {
|
|
@@ -89,7 +80,7 @@ function ge(t, e, r) {
|
|
|
89
80
|
case "today":
|
|
90
81
|
return [b(), v()];
|
|
91
82
|
case "last7":
|
|
92
|
-
return [b() -
|
|
83
|
+
return [b() - te, v()];
|
|
93
84
|
case "last30":
|
|
94
85
|
return [b() - x * 30, v()];
|
|
95
86
|
case "never":
|
|
@@ -100,7 +91,7 @@ function ge(t, e, r) {
|
|
|
100
91
|
return $(t);
|
|
101
92
|
}
|
|
102
93
|
}
|
|
103
|
-
const we = ["created", "modified", "owner", "relevance", "title"], fe = ["asc", "desc"], be = ["custom", "last7", "last30", "never", "today", "yesterday"], ve = ["inOrg", "outsideOrg", "owner"], ye = ["anyOrg", "collaboration", "org"],
|
|
94
|
+
const we = ["created", "modified", "owner", "relevance", "title"], fe = ["asc", "desc"], be = ["custom", "last7", "last30", "never", "today", "yesterday"], ve = ["inOrg", "outsideOrg", "owner"], ye = ["anyOrg", "collaboration", "org"], Ge = ["anotherOrg", "myOrg"], Se = ["admin", "distributed", "openData", "settings", "sharedUpdate"], Fe = ["org", "private", "public"], Oe = [
|
|
104
95
|
"access",
|
|
105
96
|
"created",
|
|
106
97
|
"created_from",
|
|
@@ -147,19 +138,19 @@ function I(t) {
|
|
|
147
138
|
...i ? { start: i } : {},
|
|
148
139
|
...n ? { num: n } : {},
|
|
149
140
|
filters: {
|
|
150
|
-
...w(
|
|
141
|
+
...w(Fe, a) ? { access: a } : {},
|
|
151
142
|
...h ? { created: h } : {},
|
|
152
|
-
...w(
|
|
143
|
+
...w(Ge, o) ? { memberOrg: o } : {},
|
|
153
144
|
...w(ye, c) ? { membership: c } : {},
|
|
154
145
|
...m ? { modified: m } : {},
|
|
155
146
|
...w(ve, l) ? { owner: l } : {},
|
|
156
|
-
...w(
|
|
147
|
+
...w(Se, p) ? { specialGroups: p } : {}
|
|
157
148
|
}
|
|
158
149
|
};
|
|
159
150
|
}
|
|
160
151
|
function B(t) {
|
|
161
|
-
const e = I(t), { filters: r, num: s, sortField: i, sortOrder: n, start: a } = e, { access: o, created: c, memberOrg: l, membership: p, modified: h, owner: m, specialGroups:
|
|
162
|
-
return
|
|
152
|
+
const e = I(t), { filters: r, num: s, sortField: i, sortOrder: n, start: a } = e, { access: o, created: c, memberOrg: l, membership: p, modified: h, owner: m, specialGroups: C } = r, d = {}, P = t.get("searchTerm")?.trim() || void 0, _ = t.get("q")?.trim() || void 0;
|
|
153
|
+
return P && (d.searchTerm = P), _ && (d.q = _), i && (d.sortField = i), n && (d.sortOrder = n), a && (d.start = a), s && (d.num = s), o && (d.access = o), m && (d.owner = m), p && (d.membershipAccess = p), l && (d.memberOrgIds = l), C && (d.specialGroups = C), c?.range && (d.created = c.range), c?.start && (d.createdFrom = c.start.getTime()), c?.end && (d.createdTo = c.end.getTime()), h?.range && (d.modified = h.range), h?.start && (d.modifiedFrom = h.start.getTime()), h?.end && (d.modifiedTo = h.end.getTime()), d;
|
|
163
154
|
}
|
|
164
155
|
function Be(t) {
|
|
165
156
|
const e = new URLSearchParams(t.currentSearchParams);
|
|
@@ -178,7 +169,7 @@ function Be(t) {
|
|
|
178
169
|
r.specialGroup && e.set("specialGroups", r.specialGroup);
|
|
179
170
|
break;
|
|
180
171
|
case "memberOrg":
|
|
181
|
-
r.memberOrg && e.set("memberorgids", r.memberOrg);
|
|
172
|
+
r.memberOrg && r.value && e.set("memberorgids", r.memberOrg);
|
|
182
173
|
break;
|
|
183
174
|
case "membership":
|
|
184
175
|
r.membership && e.set("membershipaccess", r.membership);
|
|
@@ -194,7 +185,7 @@ function Be(t) {
|
|
|
194
185
|
}
|
|
195
186
|
}), e;
|
|
196
187
|
}
|
|
197
|
-
function
|
|
188
|
+
function G(t, e = "desc") {
|
|
198
189
|
switch (t) {
|
|
199
190
|
case "owner":
|
|
200
191
|
case "title":
|
|
@@ -208,35 +199,6 @@ function F(t, e = "desc") {
|
|
|
208
199
|
}
|
|
209
200
|
}
|
|
210
201
|
function $e(t) {
|
|
211
|
-
return !t || !(t instanceof HTMLElement) ? null : t;
|
|
212
|
-
}
|
|
213
|
-
async function Pe(t) {
|
|
214
|
-
if (t) {
|
|
215
|
-
if (t.restoreFocus) {
|
|
216
|
-
await t.restoreFocus();
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
if (t.setFocus) {
|
|
220
|
-
await t.setFocus();
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
t.focus?.();
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
function Ce(t) {
|
|
227
|
-
let e = null;
|
|
228
|
-
const r = async (i = {}) => {
|
|
229
|
-
t.onClose(), i.restoreFocus && await Pe(e);
|
|
230
|
-
};
|
|
231
|
-
return { handlePreview: (i, n) => {
|
|
232
|
-
if (!i?.id) {
|
|
233
|
-
r();
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
e = $e(n), t.onOpen({ preview: i });
|
|
237
|
-
}, closePreview: r };
|
|
238
|
-
}
|
|
239
|
-
function _e(t) {
|
|
240
202
|
let e, r, s;
|
|
241
203
|
const i = () => {
|
|
242
204
|
e?.();
|
|
@@ -287,7 +249,7 @@ function _e(t) {
|
|
|
287
249
|
updateResponsiveLayout: n
|
|
288
250
|
};
|
|
289
251
|
}
|
|
290
|
-
function
|
|
252
|
+
function Ce(t) {
|
|
291
253
|
let e = !1;
|
|
292
254
|
const r = () => !!t.getSearchParamInteraction()?.read, s = () => !!t.getSearchParamInteraction()?.write;
|
|
293
255
|
return { hydrateFromLocation: async () => {
|
|
@@ -319,7 +281,7 @@ function Ue(t) {
|
|
|
319
281
|
});
|
|
320
282
|
} };
|
|
321
283
|
}
|
|
322
|
-
const
|
|
284
|
+
const S = ["title", "relevance", "modified"], F = {
|
|
323
285
|
queryParams: void 0,
|
|
324
286
|
nextStart: -1,
|
|
325
287
|
results: [],
|
|
@@ -333,9 +295,9 @@ const G = ["title", "relevance", "modified"], S = {
|
|
|
333
295
|
"admin",
|
|
334
296
|
"settings"
|
|
335
297
|
];
|
|
336
|
-
class
|
|
298
|
+
class Pe extends L {
|
|
337
299
|
constructor() {
|
|
338
|
-
super(), this._messages = R({ name: "portal-group-browser", blocking: !0 }), this._browserMessages = R({ name: "portal-browser", blocking: !0 }), this.responsiveLayoutController =
|
|
300
|
+
super(), this._messages = R({ name: "portal-group-browser", blocking: !0 }), this._browserMessages = R({ name: "portal-browser", blocking: !0 }), this.responsiveLayoutController = $e({
|
|
339
301
|
el: this.el,
|
|
340
302
|
getStore: () => this.store,
|
|
341
303
|
getViewportWidth: () => this.viewportWidth,
|
|
@@ -350,14 +312,14 @@ class Re extends L {
|
|
|
350
312
|
setResponsiveFormFactor: (e) => {
|
|
351
313
|
this.responsiveFormFactor = e;
|
|
352
314
|
}
|
|
353
|
-
}), this.previewSessionController =
|
|
315
|
+
}), this.previewSessionController = ie({
|
|
354
316
|
onOpen: ({ preview: e }) => {
|
|
355
317
|
this.store.preview = e.id, this.arcgisGroupBrowserPreview.emit(e);
|
|
356
318
|
},
|
|
357
319
|
onClose: () => {
|
|
358
320
|
this.store.preview = null, this.arcgisGroupBrowserPreview.emit(null), this.arcgisGroupBrowserSublayerPreview.emit(null);
|
|
359
321
|
}
|
|
360
|
-
}), this.browserResponse = this.getBrowserResponseFromQueryResponse(
|
|
322
|
+
}), this.browserResponse = this.getBrowserResponseFromQueryResponse(F), this.previewGroupsById = /* @__PURE__ */ new Map(), this.searchParamController = Ce({
|
|
361
323
|
applySearchParams: async (e) => {
|
|
362
324
|
await this.applySearchParams(e);
|
|
363
325
|
},
|
|
@@ -374,7 +336,7 @@ class Re extends L {
|
|
|
374
336
|
this.handleGroupCardSelect(e);
|
|
375
337
|
}, this.onDelegatedGroupCardPreview = (e) => {
|
|
376
338
|
this.handleGroupCardPreview(e);
|
|
377
|
-
}, this.selectedOwner = null, this.selectedMembership = null, this.selectedMemberOrg = null, this.selectedSpecialGroup = null, this.selectedAccess = null, this.selectedGroups = [], this.queryResponse =
|
|
339
|
+
}, this.selectedOwner = null, this.selectedMembership = null, this.selectedMemberOrg = null, this.selectedSpecialGroup = null, this.selectedAccess = null, this.selectedGroups = [], this.queryResponse = F, this.specialGroupOptions = A, this.responsiveFormFactor = "large", this.viewportWidth = typeof window > "u" ? O.lg : window.innerWidth, this.hostWidth = 0, this.store = K({
|
|
378
340
|
type: "group-browser",
|
|
379
341
|
width: window?.innerWidth ?? O.lg,
|
|
380
342
|
hiddenFilters: [],
|
|
@@ -387,7 +349,7 @@ class Re extends L {
|
|
|
387
349
|
}), this.filters = {}, this.loading = !1, this.formFactor = "large", this.height = "full", this.searchTerm = "", this.messageOverrides = {}, this.hideTopBar = !1, this.cards = {}, this.preview = "top", this.q = "", this.num = 60, this.sort = {
|
|
388
350
|
enabled: !0,
|
|
389
351
|
props: {
|
|
390
|
-
options:
|
|
352
|
+
options: S
|
|
391
353
|
}
|
|
392
354
|
}, this.searchParamInteraction = {
|
|
393
355
|
read: !1,
|
|
@@ -424,7 +386,7 @@ class Re extends L {
|
|
|
424
386
|
updated(e) {
|
|
425
387
|
e.has("view") && (this.store.view = this.view), e.has("store") && (this.view !== void 0 && (this.store.view = this.view), this.responsiveLayoutController.refreshStoreWatcher(), this.responsiveLayoutController.updateResponsiveLayout(), this.syncFiltersEmptyFromConfig()), e.has("filters") && this.syncFiltersEmptyFromConfig(), e.has("selected") && (this.selectedGroups = this.selected || []);
|
|
426
388
|
const r = e.get("num");
|
|
427
|
-
r !== void 0 && r !== this.num && this.fetchGroups(), (e.has("portal") || e.has("hasIndoorsSpaces")) && this.updateSpecialGroupOptions(), e.has("sort") && this.syncSortFromConfig();
|
|
389
|
+
r !== void 0 && r !== this.num && this.fetchGroups(), (e.has("portal") || e.has("hasIndoorsSpaces") || e.has("filters")) && this.updateSpecialGroupOptions(), e.has("sort") && this.syncSortFromConfig();
|
|
428
390
|
}
|
|
429
391
|
disconnectedCallback() {
|
|
430
392
|
this.responsiveLayoutController.disconnect(), window.removeEventListener("resize", this.responsiveLayoutController.handleWindowResize), super.disconnectedCallback();
|
|
@@ -486,7 +448,7 @@ class Re extends L {
|
|
|
486
448
|
this.store.filtersEmpty = !r;
|
|
487
449
|
}
|
|
488
450
|
syncSortFromConfig() {
|
|
489
|
-
const e = this.sort, r = e.props?.options ??
|
|
451
|
+
const e = this.sort, r = e.props?.options ?? S;
|
|
490
452
|
if (!e.enabled) {
|
|
491
453
|
this.sortField = void 0, this.sortOrder = void 0;
|
|
492
454
|
return;
|
|
@@ -496,16 +458,16 @@ class Re extends L {
|
|
|
496
458
|
return;
|
|
497
459
|
}
|
|
498
460
|
const s = e.props?.field, i = s && r.includes(s) ? s : r[0];
|
|
499
|
-
this.sortField = i, this.sortOrder = e.props?.order ??
|
|
461
|
+
this.sortField = i, this.sortOrder = e.props?.order ?? G(i, this.sortOrder);
|
|
500
462
|
}
|
|
501
463
|
async updateSpecialGroupOptions(e = !0) {
|
|
502
|
-
if (!this.portal) {
|
|
464
|
+
if (!this.portal || !this.filters.specialGroups?.enabled) {
|
|
503
465
|
this.specialGroupOptions = [];
|
|
504
466
|
return;
|
|
505
467
|
}
|
|
506
468
|
let r = "";
|
|
507
469
|
try {
|
|
508
|
-
r = await
|
|
470
|
+
r = await J(this.portal);
|
|
509
471
|
} catch {
|
|
510
472
|
r = "";
|
|
511
473
|
}
|
|
@@ -524,8 +486,8 @@ class Re extends L {
|
|
|
524
486
|
async applySearchParams(e) {
|
|
525
487
|
const r = I(e);
|
|
526
488
|
if (!this.searchTerm && r.searchTerm && (this.searchTerm = r.searchTerm), this.sort.enabled) {
|
|
527
|
-
const s = this.sort.props?.options ??
|
|
528
|
-
r.sortField && this.sort.props?.field === void 0 && s.includes(r.sortField) && (this.sortField = r.sortField), r.sortOrder && this.sort.props?.order === void 0 ? this.sortOrder = r.sortOrder : r.sortField && this.sort.props?.order === void 0 && (this.sortOrder =
|
|
489
|
+
const s = this.sort.props?.options ?? S;
|
|
490
|
+
r.sortField && this.sort.props?.field === void 0 && s.includes(r.sortField) && (this.sortField = r.sortField), r.sortOrder && this.sort.props?.order === void 0 ? this.sortOrder = r.sortOrder : r.sortField && this.sort.props?.order === void 0 && (this.sortOrder = G(r.sortField, this.sortOrder));
|
|
529
491
|
}
|
|
530
492
|
await this.applyFilterSearchParams(r.filters);
|
|
531
493
|
}
|
|
@@ -541,37 +503,41 @@ class Re extends L {
|
|
|
541
503
|
label: this.getOwnerOptionLabel(e.owner, o, i)
|
|
542
504
|
}),
|
|
543
505
|
param: "q",
|
|
544
|
-
value:
|
|
506
|
+
value: X(e.owner, o, { isPublicUser: i, orgId: this.portal.id ?? "" }),
|
|
545
507
|
owner: e.owner,
|
|
546
508
|
username: o
|
|
547
509
|
}, this.selectedOwner = e.owner, s = !0;
|
|
548
510
|
}
|
|
549
|
-
e.membership && this.filters.membership?.enabled && !this.filters.membership.props?.membership && (r.membership = {
|
|
511
|
+
if (e.membership && this.filters.membership?.enabled && !this.filters.membership.props?.membership && (r.membership = {
|
|
550
512
|
id: "membership",
|
|
551
513
|
label: f(this._messages.membership.label, { label: this._messages.membership[e.membership] }),
|
|
552
514
|
param: "q",
|
|
553
|
-
value:
|
|
515
|
+
value: Y(e.membership, this.hasIndoorsSpaces),
|
|
554
516
|
membership: e.membership
|
|
555
|
-
}, this.selectedMembership = e.membership, s = !0), e.memberOrg && this.filters.memberOrg?.enabled && !this.filters.memberOrg.props?.memberOrg
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
517
|
+
}, this.selectedMembership = e.membership, s = !0), e.memberOrg && this.filters.memberOrg?.enabled && !this.filters.memberOrg.props?.memberOrg) {
|
|
518
|
+
const o = this.filters.memberOrg.props?.orgId ?? "";
|
|
519
|
+
r.memberOrg = {
|
|
520
|
+
id: "memberOrg",
|
|
521
|
+
label: f(this._messages.memberOrg.label, { label: this._messages.memberOrg[e.memberOrg] }),
|
|
522
|
+
param: "q",
|
|
523
|
+
value: Z(e.memberOrg, o),
|
|
524
|
+
memberOrg: e.memberOrg,
|
|
525
|
+
orgId: o
|
|
526
|
+
}, this.selectedMemberOrg = e.memberOrg, s = !0;
|
|
527
|
+
}
|
|
528
|
+
e.specialGroups && this.filters.specialGroups?.enabled && !this.filters.specialGroups.props?.specialGroup && (r.specialGroups = {
|
|
563
529
|
id: "specialGroups",
|
|
564
530
|
label: f(this._messages.specialGroups.label, {
|
|
565
531
|
label: this._messages.specialGroups[e.specialGroups]
|
|
566
532
|
}),
|
|
567
533
|
param: "q",
|
|
568
|
-
value: await
|
|
534
|
+
value: await ee(e.specialGroups, this.portal),
|
|
569
535
|
specialGroup: e.specialGroups
|
|
570
536
|
}, this.selectedSpecialGroup = e.specialGroups, s = !0), e.access && this.filters.access?.enabled && !this.filters.access.props?.access && (r.access = {
|
|
571
537
|
id: "access",
|
|
572
538
|
label: f(this._messages.access.label, { label: this._messages.access[e.access] }),
|
|
573
539
|
param: "q",
|
|
574
|
-
value:
|
|
540
|
+
value: re(e.access),
|
|
575
541
|
access: e.access
|
|
576
542
|
}, this.selectedAccess = e.access, s = !0);
|
|
577
543
|
const n = this.getDateFilterDetailFromSearchParams("created", e.created);
|
|
@@ -616,7 +582,7 @@ class Re extends L {
|
|
|
616
582
|
}, this.resetSelectionByFilterId(e), this.publishFilterStateChange(), this.fetchGroups());
|
|
617
583
|
}
|
|
618
584
|
clearFiltersInternal() {
|
|
619
|
-
this.store.filters =
|
|
585
|
+
this.store.filters = j(this.store.filters, {
|
|
620
586
|
hiddenFilterIds: this.store.hiddenFilters
|
|
621
587
|
}), this.resetAllFilterSelections(), this.publishFilterStateChange(), this.fetchGroups();
|
|
622
588
|
}
|
|
@@ -682,7 +648,7 @@ class Re extends L {
|
|
|
682
648
|
this.previewSessionController.closePreview(e);
|
|
683
649
|
}
|
|
684
650
|
async handleSortFieldChange(e) {
|
|
685
|
-
this.sortField = e, this.sortOrder =
|
|
651
|
+
this.sortField = e, this.sortOrder = G(e, this.sortOrder), this.loading = !0, this.arcgisGroupBrowserLoading.emit();
|
|
686
652
|
const r = this.createQuery({ start: 1, total: 0 });
|
|
687
653
|
await this.fetchAndEmit(r, this.searchTerm);
|
|
688
654
|
}
|
|
@@ -735,7 +701,7 @@ class Re extends L {
|
|
|
735
701
|
await this.fetchAndEmit(i, this.searchTerm);
|
|
736
702
|
}
|
|
737
703
|
getBrowserResponseFromQueryResponse(e) {
|
|
738
|
-
const { nextStart: r, num: s, queryParams: i, results: n, start: a, total: o } = e ??
|
|
704
|
+
const { nextStart: r, num: s, queryParams: i, results: n, start: a, total: o } = e ?? F;
|
|
739
705
|
return {
|
|
740
706
|
nextStart: r ?? -1,
|
|
741
707
|
num: s ?? i?.num ?? 0,
|
|
@@ -776,7 +742,9 @@ class Re extends L {
|
|
|
776
742
|
}
|
|
777
743
|
render() {
|
|
778
744
|
const e = this.responsiveFormFactor === "small" ? "small" : this.formFactor, r = this.previewGroupsById.get(this.store.preview ?? "");
|
|
779
|
-
return u`<arcgis-portal-browser .store=${this.store} .response=${this.browserResponse} .loading=${this.loading} .formFactor=${e} .height=${this.height} .searchTerm=${this.searchTerm} .rangeFormatter=${this.formatRange} .selected=${this.selectedGroups} .alwaysShowSelection=${this.alwaysShowSelection} @arcgisBrowserFilterClear=${this.handleBrowserFilterClear} @arcgisBrowserFilterRemove=${this.handleBrowserFilterRemove} @
|
|
745
|
+
return u`<arcgis-portal-browser .store=${this.store} .response=${this.browserResponse} .loading=${this.loading} .formFactor=${e} .height=${this.height} .searchTerm=${this.searchTerm} .rangeFormatter=${this.formatRange} .selected=${this.selectedGroups} .alwaysShowSelection=${this.alwaysShowSelection} @arcgisBrowserFilterClear=${this.handleBrowserFilterClear} @arcgisBrowserFilterRemove=${this.handleBrowserFilterRemove} @arcgisPreviewClose=${(s) => {
|
|
746
|
+
s.stopPropagation(), this.closePreview({ restoreFocus: !0 });
|
|
747
|
+
}} @arcgisAriaUpdate=${(s) => {
|
|
780
748
|
this.arcgisAriaUpdate.emit(s.detail);
|
|
781
749
|
}}>${!this.hideTopBar && u`<slot name=top-bar slot=top-bar>${this.renderTopBar()}</slot>` || ""}<slot name=content-start slot=content-start></slot><slot name=selection slot=selection></slot><slot name=actions slot=actions></slot><slot name=view slot=view></slot>${ae({ slot: "sort", sort: this.sort, formFactor: e, sortField: this.sortField, sortOrder: this.sortOrder, onSortFieldChange: (s) => {
|
|
782
750
|
this.handleSortFieldChange(s);
|
|
@@ -799,7 +767,7 @@ class Re extends L {
|
|
|
799
767
|
} })}</arcgis-portal-browser>`;
|
|
800
768
|
}
|
|
801
769
|
}
|
|
802
|
-
E("arcgis-portal-group-browser",
|
|
770
|
+
E("arcgis-portal-group-browser", Pe);
|
|
803
771
|
export {
|
|
804
|
-
|
|
772
|
+
Pe as ArcgisPortalGroupBrowser
|
|
805
773
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type PortalGroup from "@arcgis/core/portal/PortalGroup.js";
|
|
2
|
+
import type { PortalGroupSearchParams } from "../../services/groups.js";
|
|
2
3
|
import type { SearchResult } from "../../types/search.js";
|
|
3
4
|
import type { PortalBrowserSortField, PortalBrowserSortOrder } from "../arcgis-portal-browser-sort/utils.js";
|
|
4
5
|
import type { BrowserPageDetail } from "../arcgis-portal-browser/utils/types.js";
|
|
@@ -135,14 +136,8 @@ export interface PortalGroupBrowserSortDetail {
|
|
|
135
136
|
sortOrder?: PortalBrowserSortOrder;
|
|
136
137
|
}
|
|
137
138
|
|
|
138
|
-
export interface PortalGroupBrowserQueryParams {
|
|
139
|
-
num?: number;
|
|
140
|
-
q?: string;
|
|
141
|
-
searchUserAccess?: string;
|
|
142
|
-
searchUserName?: string;
|
|
139
|
+
export interface PortalGroupBrowserQueryParams extends PortalGroupSearchParams {
|
|
143
140
|
sortField?: PortalGroupBrowserQuery["sortField"];
|
|
144
|
-
sortOrder?: PortalGroupBrowserQuery["sortOrder"];
|
|
145
|
-
start?: number;
|
|
146
141
|
}
|
|
147
142
|
|
|
148
143
|
export type PortalGroupBrowserOwner = "inOrg" | "outsideOrg" | "owner";
|
|
@@ -174,6 +169,7 @@ export interface PortalGroupBrowserMembershipSelection {
|
|
|
174
169
|
|
|
175
170
|
export interface PortalGroupBrowserMemberOrgSelection {
|
|
176
171
|
memberOrg: PortalGroupBrowserMemberOrg | null;
|
|
172
|
+
/** Scopes "anotherOrg" to a specific organization. Omit to match groups with any external members. */
|
|
177
173
|
orgId: string;
|
|
178
174
|
}
|
|
179
175
|
|
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
import { c as w } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as _ } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
|
-
import { substitute as
|
|
5
|
+
import { substitute as u } from "@arcgis/core/intl.js";
|
|
6
6
|
import { LitElement as b, createEvent as v, safeClassMap as y } from "@arcgis/lumina";
|
|
7
7
|
import { css as $, html as s } from "lit";
|
|
8
8
|
import { createRef as x, ref as k } from "lit/directives/ref.js";
|
|
9
9
|
import { u as I } from "../../chunks/useT9n.js";
|
|
10
|
-
import { a as
|
|
11
|
-
import {
|
|
12
|
-
import { g as
|
|
10
|
+
import { a as A, s as C } from "../../chunks/dom.js";
|
|
11
|
+
import { e as p } from "../../chunks/groups.js";
|
|
12
|
+
import { g as G } from "../../chunks/url.js";
|
|
13
13
|
import { g as T } from "../../chunks/user2.js";
|
|
14
|
-
import { e as P, h as
|
|
14
|
+
import { e as P, h as z, f as M } from "../../chunks/query.js";
|
|
15
15
|
import "../arcgis-portal-group-browser-preview-card/customElement.js";
|
|
16
|
-
import { f as
|
|
17
|
-
const
|
|
16
|
+
import { f as q } from "../../chunks/user.js";
|
|
17
|
+
const B = $`:host{display:flex;block-size:100%;inline-size:100%;flex:1 1 0%;flex-direction:column;background-color:var(--calcite-color-background)}.preview{box-sizing:border-box;display:flex;flex-direction:column;gap:0;height:100%;min-height:0;overflow:auto;padding:0;position:relative}.preview__header{align-items:center;background:var(--calcite-color-foreground-1);display:flex;justify-content:space-between;padding:0;padding-inline-start:.75rem}.preview__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.375;margin:0;overflow-wrap:anywhere;flex:1 1 auto}.preview__accordion{--calcite-accordion-item-header-background-color: var(--calcite-color-foreground-1);--calcite-accordion-item-heading-text-size: var(--calcite-font-size-0)}.preview__accordion calcite-accordion-item{--calcite-internal-accordion-item-padding: 1rem 1rem;border-bottom:1px solid var(--calcite-color-border-2);box-sizing:border-box;width:100%}.preview__section{background:var(--calcite-color-background);line-height:1.35;margin:-1rem;padding:1rem}.preview__section--tight{padding:0}.preview__summary{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);line-height:1.45;margin:0}.preview__description{--item-browser-table-border: 1px solid var(--calcite-color-border-2);color:var(--calcite-color-text-2);line-height:1.35;overflow-wrap:anywhere;*{font-size:.875rem;max-width:100%}a{color:var(--calcite-color-text-link)}img,video{height:auto;max-width:100%}table{background:var(--calcite-color-foreground-1);border:var(--item-browser-table-border);border-collapse:collapse;border-spacing:0;font-size:var(--calcite-font-size--2);overflow:auto;text-align:start;width:100%}table>thead{background:var(--calcite-color-foreground-1);border-bottom:var(--item-browser-table-border);font-weight:var(--calcite-font-weight-normal)}table>tbody{overflow:auto;width:100%}table>tfoot{border-top:var(--item-browser-table-border)}th,td{border-inline:var(--item-browser-table-border);font-weight:var(--calcite-font-weight-light);padding:.5rem;text-align:start}tr{border-bottom:var(--item-browser-table-border);text-align:start}tr:last-child{border-bottom:none}}.preview__empty{color:var(--calcite-color-text-1);margin:0}.preview__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:.5rem;padding:.5rem}.preview__loading-placeholder{min-height:2rem}.preview__empty-icon{color:var(--calcite-color-text-1);height:3rem;width:3rem}.preview__badges{margin-top:1rem}.preview__badges[empty]{display:none}.preview__full-card-wrapper{padding:.75rem .5rem 0}.preview__card{margin:0}.preview__card-body{display:grid;gap:.125rem}.preview__user-popup{overflow:hidden}.preview__settings-title{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);margin:0}.preview__settings-text{color:var(--calcite-color-text-1);margin:0;line-height:1.4}.preview__link-wrap{margin-top:.75rem;padding:0 .25rem 1rem}.preview__footer-actions{width:100%;display:flex;flex-direction:column}.preview__footer-actions--spaced{gap:.5rem}.preview__card-container{display:flex;flex-direction:column;gap:.25rem}.preview__settings-section{display:flex;flex-direction:column;gap:1.25rem}.preview__settings-row{display:grid;gap:.25rem}.preview__link-wrap--settings{padding-inline:0}`, F = async (c, e) => {
|
|
18
18
|
try {
|
|
19
19
|
const t = c.id ? (await e.queryGroups({ query: `id:${c.id}`, num: 1 })).results[0] ?? c : c;
|
|
20
20
|
t.portal = e;
|
|
21
|
-
const
|
|
22
|
-
n ?
|
|
21
|
+
const a = p(t), r = a.properties?.featuredItemIds ?? [], n = !!(a.properties?.isFeatured && r.length), [{ items: d, total: m }, l] = await Promise.all([
|
|
22
|
+
n ? H(t, r) : S(t),
|
|
23
23
|
t.fetchMembers()
|
|
24
|
-
]),
|
|
24
|
+
]), o = [l.owner, ...l.admins.filter((g) => g !== l.owner)], i = await Promise.all(o.map(async (g) => await q(g, e)));
|
|
25
25
|
return { result: { group: t, items: d, total: m, members: l, managers: i } };
|
|
26
26
|
} catch (t) {
|
|
27
27
|
return console.error(t), { error: { code: "unhandledError" } };
|
|
28
28
|
}
|
|
29
|
-
},
|
|
30
|
-
async function
|
|
29
|
+
}, h = 4;
|
|
30
|
+
async function H(c, e) {
|
|
31
31
|
const t = await c.queryItems({
|
|
32
|
-
num: Math.min(
|
|
33
|
-
query: `id:(${e.slice(0,
|
|
32
|
+
num: Math.min(h, e.length),
|
|
33
|
+
query: `id:(${e.slice(0, h).join(" OR ")})`
|
|
34
34
|
});
|
|
35
35
|
return { items: e.map((r) => t.results.find((n) => n.id === r)).filter((r) => !!r), total: t.total || e.length };
|
|
36
36
|
}
|
|
37
|
-
async function
|
|
38
|
-
const { sortField: e = "modified", sortOrder: t = "desc" } = p(c),
|
|
37
|
+
async function S(c) {
|
|
38
|
+
const { sortField: e = "modified", sortOrder: t = "desc" } = p(c), a = P(c) || z, r = await c.queryItems({ num: h, sortField: e, sortOrder: t, query: a });
|
|
39
39
|
return { items: r.results || [], total: r.total || 0 };
|
|
40
40
|
}
|
|
41
|
-
class
|
|
41
|
+
class D extends b {
|
|
42
42
|
constructor() {
|
|
43
43
|
super(...arguments), this.messages = I({ name: "portal-group-browser", blocking: !0 }), this.requestId = 0, this.flowItemEl = x(), this.loading = !1, this.contentItems = [], this.contentTotal = 0, this.managers = [], this.fullGroup = null, this.hideBadges = !1, this.hidePreviewFooter = !1, this.previewFooterActionsSpaced = !1, this.arcgisGroupBrowserPreviewClose = v(), this.arcgisGroupBrowserInternalUIAction = v();
|
|
44
44
|
}
|
|
@@ -46,7 +46,7 @@ class E extends b {
|
|
|
46
46
|
this.properties = { loading: 16, contentItems: 16, contentTotal: 16, managers: 16, fullGroup: 16, group: 0, portal: 0, user: 0, hideBadges: 5, hidePreviewFooter: 5, currentResponse: 0, previewFooterActionsSpaced: 5 };
|
|
47
47
|
}
|
|
48
48
|
static {
|
|
49
|
-
this.styles =
|
|
49
|
+
this.styles = B;
|
|
50
50
|
}
|
|
51
51
|
async setFocus() {
|
|
52
52
|
this.flowItemEl.value?.setFocus();
|
|
@@ -57,26 +57,31 @@ class E extends b {
|
|
|
57
57
|
willUpdate(e) {
|
|
58
58
|
(e.has("group") || e.has("portal")) && this.loadPreviewData();
|
|
59
59
|
}
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
super.disconnectedCallback(), this.requestId++;
|
|
62
|
+
}
|
|
60
63
|
getGroupSummary(e) {
|
|
61
|
-
return
|
|
64
|
+
return A(e.snippet || "");
|
|
62
65
|
}
|
|
63
66
|
getGroupDescriptionHtml(e) {
|
|
64
|
-
return
|
|
67
|
+
return C(e.description || "");
|
|
65
68
|
}
|
|
66
69
|
async loadPreviewData() {
|
|
67
|
-
const { group: e, portal: t } = this,
|
|
70
|
+
const { group: e, portal: t } = this, a = ++this.requestId;
|
|
71
|
+
if (!e || !t)
|
|
72
|
+
return;
|
|
68
73
|
this.loading = !0, this.contentItems = [], this.contentTotal = 0, this.managers = [], this.fullGroup = null;
|
|
69
|
-
const { result: r, error: n } = await
|
|
70
|
-
|
|
74
|
+
const { result: r, error: n } = await F(e, t);
|
|
75
|
+
a === this.requestId && (this.loading = !1, !(n || !r) && a === this.requestId && (this.contentItems = r.items, this.contentTotal = r.total, this.managers = r.managers, this.fullGroup = r.group, this.flowItemEl.value?.setFocus()));
|
|
71
76
|
}
|
|
72
77
|
getPreviewPosition(e) {
|
|
73
78
|
if (!e)
|
|
74
79
|
return;
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
80
|
+
const a = this.currentResponse?.results?.findIndex((n) => n.id === e);
|
|
81
|
+
if (a == null || a < 0)
|
|
77
82
|
return;
|
|
78
83
|
const r = this.currentResponse?.start ?? 1;
|
|
79
|
-
return
|
|
84
|
+
return a + r;
|
|
80
85
|
}
|
|
81
86
|
isAccordionItem(e) {
|
|
82
87
|
return e instanceof HTMLElement && e.tagName === "CALCITE-ACCORDION-ITEM";
|
|
@@ -95,6 +100,12 @@ class E extends b {
|
|
|
95
100
|
details: e
|
|
96
101
|
});
|
|
97
102
|
}
|
|
103
|
+
closePreview() {
|
|
104
|
+
this.arcgisGroupBrowserInternalUIAction.emit({
|
|
105
|
+
action: "close panel",
|
|
106
|
+
category: "group panel action"
|
|
107
|
+
}), this.arcgisGroupBrowserPreviewClose.emit();
|
|
108
|
+
}
|
|
98
109
|
getAccessText(e) {
|
|
99
110
|
switch (p(e).access) {
|
|
100
111
|
case "public":
|
|
@@ -117,21 +128,19 @@ class E extends b {
|
|
|
117
128
|
return t.autoJoin ? this.messages.preview.byAutojoin : e.isInvitationOnly ? this.messages.preview.byInvitation : t.providerGroupName ? this.messages.preview.byEnterprise : this.messages.preview.byRequest;
|
|
118
129
|
}
|
|
119
130
|
render() {
|
|
120
|
-
const e = this.fullGroup ?? this.group
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}), this.arcgisGroupBrowserPreviewClose.emit();
|
|
126
|
-
}} ${k(this.flowItemEl)}><div slot=header-content class="preview__header"><h3 class="preview__title">${e.title || this.messages.preview.titleFallback}</h3></div><section class="preview">${f(e.id, s`<calcite-accordion icon-position=start appearance=transparent class="preview__accordion"><calcite-accordion-item .heading=${this.messages.preview.overview} .expanded=${!!t} @click=${(i) => this.isAccordionItem(i.target) && this.handleAccordionItemClick(i.currentTarget, "overview")}><div class="preview__section">${t ? s`<p class="preview__summary">${t}</p>` : s`<p class="preview__empty">${this.messages.preview.noSummary}</p>`}${this.hideBadges ? null : s`<arcgis-portal-group-badges .group=${e} .portal=${this.portal} width=full scale=s appearance=outline-fill class="preview__badges"></arcgis-portal-group-badges>`}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.description} @click=${(i) => this.isAccordionItem(i.target) && this.handleAccordionItemClick(i.currentTarget, "description")}><div class="preview__section">${o ? s`<div class="preview__description" .innerHTML=${o ?? ""}></div>` : s`<p class="preview__empty">${a.noDescription}</p>`}</div></calcite-accordion-item><calcite-accordion-item .heading=${h(a.content, { count: String(this.contentTotal) })} expanded @click=${(i) => this.isAccordionItem(i.target) && this.handleAccordionItemClick(i.currentTarget, "content")}><div class="preview__section preview__section--tight">${this.contentItems.length ? s`<div class="preview__full-card-wrapper"><div class="preview__card-container">${_(this.contentItems, (i) => i.id, (i) => s`<arcgis-portal-group-browser-preview-card class="preview__card" .item=${i} .portal=${this.portal} .user=${this.user}></arcgis-portal-group-browser-preview-card>`)}</div><div class="preview__link-wrap"><calcite-link .href=${n} @click=${() => {
|
|
131
|
+
const e = this.fullGroup ?? this.group;
|
|
132
|
+
if (!e || !this.portal)
|
|
133
|
+
return null;
|
|
134
|
+
const t = this.getGroupSummary(e), a = this.getGroupDescriptionHtml(e), { group: r, content: n, members: d, settings: m } = M(this.portal, e), l = this.user?.username === e.owner, o = this.messages.preview;
|
|
135
|
+
return s`<calcite-flow><calcite-flow-item .loading=${this.loading} ${k(this.flowItemEl)}><calcite-action slot=header-actions-end .text=${o.close} icon=x @click=${this.closePreview}></calcite-action><div slot=header-content class="preview__header"><h3 class="preview__title">${e.title || this.messages.preview.titleFallback}</h3></div><section class="preview">${f(e.id, s`<calcite-accordion icon-position=start appearance=transparent class="preview__accordion"><calcite-accordion-item .heading=${this.messages.preview.overview} .expanded=${!!t} @click=${(i) => this.isAccordionItem(i.target) && this.handleAccordionItemClick(i.currentTarget, "overview")}><div class="preview__section">${t ? s`<p class="preview__summary">${t}</p>` : s`<p class="preview__empty">${this.messages.preview.noSummary}</p>`}${this.hideBadges ? null : s`<arcgis-portal-group-badges .group=${e} .portal=${this.portal} width=full scale=s appearance=outline-fill class="preview__badges"></arcgis-portal-group-badges>`}</div></calcite-accordion-item><calcite-accordion-item .heading=${o.description} @click=${(i) => this.isAccordionItem(i.target) && this.handleAccordionItemClick(i.currentTarget, "description")}><div class="preview__section">${a ? s`<div class="preview__description" .innerHTML=${a ?? ""}></div>` : s`<p class="preview__empty">${o.noDescription}</p>`}</div></calcite-accordion-item><calcite-accordion-item .heading=${u(o.content, { count: String(this.contentTotal) })} expanded @click=${(i) => this.isAccordionItem(i.target) && this.handleAccordionItemClick(i.currentTarget, "content")}><div class="preview__section preview__section--tight">${this.contentItems.length ? s`<div class="preview__full-card-wrapper"><div class="preview__card-container">${_(this.contentItems, (i) => i.id, (i) => s`<arcgis-portal-group-browser-preview-card class="preview__card" .item=${i} .portal=${this.portal} .user=${this.user}></arcgis-portal-group-browser-preview-card>`)}</div><div class="preview__link-wrap"><calcite-link .href=${n} @click=${() => {
|
|
127
136
|
this.handleDetailsClick("view all content");
|
|
128
|
-
}}>${this.messages.preview.viewContent}</calcite-link></div></div>` : this.loading ? s`<div class="preview__loading-placeholder"></div>` : s`<div class="preview__empty-wrap"><calcite-icon scale=l icon=files class="preview__empty-icon"></calcite-icon><p class="preview__empty">${this.messages.preview.noContent}</p></div>`}</div></calcite-accordion-item><calcite-accordion-item .heading=${
|
|
137
|
+
}}>${this.messages.preview.viewContent}</calcite-link></div></div>` : this.loading ? s`<div class="preview__loading-placeholder"></div>` : s`<div class="preview__empty-wrap"><calcite-icon scale=l icon=files class="preview__empty-icon"></calcite-icon><p class="preview__empty">${this.messages.preview.noContent}</p></div>`}</div></calcite-accordion-item><calcite-accordion-item .heading=${u(o.groupManagers, { count: String(this.managers.length) })} expanded @click=${(i) => this.isAccordionItem(i.target) && this.handleAccordionItemClick(i.currentTarget, "managers")}><div class="preview__section preview__section--tight"><div class="preview__full-card-wrapper">${this.managers.length ? s`<div class="preview__card-container">${this.managers.map((i) => s`<calcite-card class="preview__card"><div class="preview__card-body"><arcgis-portal-user-popup class="preview__user-popup" .fullName=${i.username === e.owner ? u(o.groupOwner, {
|
|
129
138
|
fullName: T(i, this.messages._lang)
|
|
130
|
-
}) : i.fullName} show-name show-username .user=${i} .portal=${this.portal} .baseUrl=${
|
|
139
|
+
}) : i.fullName} show-name show-username .user=${i} .portal=${this.portal} .baseUrl=${G({ portal: this.portal })}></arcgis-portal-user-popup></div></calcite-card>`)}</div>` : this.loading ? s`<div class="preview__loading-placeholder"></div>` : s`<p class="preview__empty">${o.noManagers}</p>`}<div class="preview__link-wrap"><calcite-link .href=${d} @click=${() => {
|
|
131
140
|
this.handleDetailsClick("open members page");
|
|
132
|
-
}}>${
|
|
141
|
+
}}>${o.openMembers}</calcite-link></div></div></div></calcite-accordion-item><calcite-accordion-item .heading=${o.settings} .expanded=${l} @click=${(i) => this.isAccordionItem(i.target) && this.handleAccordionItemClick(i.currentTarget, "settings")}><div class="preview__section preview__settings-section"><div class="preview__settings-row"><h4 class="preview__settings-title">${o.viewableBy}:</h4><p class="preview__settings-text">${this.getAccessText(e)}</p></div><div class="preview__settings-row"><h4 class="preview__settings-title">${o.contributors}:</h4><p class="preview__settings-text">${this.getContributorsText(e)}</p></div>${l ? s`<div class="preview__settings-row"><h4 class="preview__settings-title">${o.joinMethod}:</h4><p class="preview__settings-text">${this.getJoinMethodText(e)}</p><div class="preview__link-wrap preview__link-wrap--settings"><calcite-link .href=${m} @click=${() => {
|
|
133
142
|
this.handleDetailsClick("open settings");
|
|
134
|
-
}}>${
|
|
143
|
+
}}>${o.openSettings}</calcite-link></div></div>` : null}</div></calcite-accordion-item></calcite-accordion>`)}</section>${!this.hidePreviewFooter && s`<div slot=footer class=${y({
|
|
135
144
|
"preview__footer-actions": !0,
|
|
136
145
|
"preview__footer-actions--spaced": this.previewFooterActionsSpaced
|
|
137
146
|
})}><calcite-button appearance=solid kind=neutral width=full .href=${r} @click=${() => {
|
|
@@ -141,10 +150,10 @@ class E extends b {
|
|
|
141
150
|
details: "view group details",
|
|
142
151
|
position: this.getPreviewPosition(e.id)
|
|
143
152
|
});
|
|
144
|
-
}}>${
|
|
153
|
+
}}>${o.openGroupPage}</calcite-button><slot name=footer-action></slot></div>` || ""}</calcite-flow-item></calcite-flow>`;
|
|
145
154
|
}
|
|
146
155
|
}
|
|
147
|
-
w("arcgis-portal-group-browser-preview",
|
|
156
|
+
w("arcgis-portal-group-browser-preview", D);
|
|
148
157
|
export {
|
|
149
|
-
|
|
158
|
+
D as ArcgisPortalGroupBrowserPreview
|
|
150
159
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-flow";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-flow-item";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
3
4
|
import "@esri/calcite-components/components/calcite-accordion";
|
|
4
5
|
import "@esri/calcite-components/components/calcite-accordion-item";
|
|
5
6
|
import "../arcgis-portal-group-badges/index.js";
|