@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,17 +1,29 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { formatDate as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { createRef as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { g as
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { c as R } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as U, html as r } from "lit";
|
|
4
|
+
import { formatDate as I, substitute as v } from "@arcgis/core/intl.js";
|
|
5
|
+
import { LitElement as B, createEvent as h, safeClassMap as l, nothing as u } from "@arcgis/lumina";
|
|
6
|
+
import { createRef as S, ref as T } from "lit/directives/ref.js";
|
|
7
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
8
|
+
import { b as C } from "../../chunks/ui.js";
|
|
9
|
+
import { a as E } from "../../chunks/functionalities.js";
|
|
10
|
+
import { g as N } from "../../chunks/items.js";
|
|
11
|
+
import { c as D } from "../../chunks/portal.js";
|
|
12
|
+
import { g as z } from "../../chunks/url.js";
|
|
13
|
+
function M(f) {
|
|
14
|
+
return {
|
|
15
|
+
"10.7": "1.0",
|
|
16
|
+
"10.7.0": "1.0",
|
|
17
|
+
"10.7.1": "2.0",
|
|
18
|
+
"10.8": "3.0",
|
|
19
|
+
"10.8.0": "3.0",
|
|
20
|
+
"10.8.1": "4.0"
|
|
21
|
+
}[f] || f;
|
|
22
|
+
}
|
|
23
|
+
const O = U`:host{display:block;min-width:0;container-type:inline-size;container-name:portal-item-card}.item-card{position:relative;display:flex;min-height:100%;flex-direction:column;color:var(--calcite-color-text-1);opacity:0;box-shadow:none;transition-duration:.15s;outline-color:transparent;background-color:var(--calcite-color-foreground-1);transition-property:background-color,outline,outline-offset,opacity;border:1px solid var(--calcite-color-border-3);&:focus{z-index:10;outline:2px solid var(--calcite-color-brand);outline-offset:-2px}}.item-card--loaded{opacity:1}.item-card--selected{border-color:var(--calcite-color-brand)}.item-card--previewed{outline:1px solid var(--calcite-color-brand);outline-offset:-2px}.item-card--hoverable{cursor:pointer}.item-card--disabled{opacity:.5;pointer-events:none}.item-card__upper{flex:1 1 0%;background-color:var(--calcite-color-foreground-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s}.item-card__upper:hover{background-color:var(--calcite-color-background)}.item-card__upper--link{color:var(--calcite-color-text-1);text-decoration-line:none;outline-color:transparent;&:focus{z-index:10;outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.item-card__upper:hover .item-card__hover-text,.item-card:focus .item-card__hover-text{opacity:1}.item-card__top{padding:.75rem}.item-card__content{display:flex;min-width:0;flex:1 1 0%;flex-direction:column}.item-card__content-end{min-width:0;margin-block-start:.25rem}.item-card__title{margin:0;overflow-wrap:break-word;padding:0;font-size:.875rem;font-weight:500;line-height:1.375}.item-card__title--grid{font-size:.875rem}.item-card__title--padded{margin-bottom:.25rem}.item-card__title__span{position:relative;display:inline;border-style:none;background-color:transparent;padding:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;background-image:linear-gradient(transparent,transparent);background-position-x:0%,100%;background-position-y:min(1.25em,100%);background-repeat:no-repeat,no-repeat;background-size:100% 1px,100% 1px}.item-card--previewed .item-card__title__span,.item-card__upper--link:hover .item-card__title__span{background-image:linear-gradient(var(--calcite-color-text-3),var(--calcite-color-text-3))}.item-card__summary{margin:0;flex:1 1 0%;color:var(--calcite-color-text-2);display:none;overflow-wrap:break-word;padding:0;font-size:.875rem;line-height:1.25}.item-card__detail--updated-full.item-card__divider{display:none}.item-card__details{margin-block-start:.25rem;display:flex;flex-direction:row}.item-card__detail{font-size:.75rem;line-height:1.35;color:var(--calcite-color-text-2)}.item-card__divider{display:flex;align-items:center;flex:0 0 auto}.item-card__divider:not([empty]):before{content:"";height:1.25rem;width:1px;background-color:var(--calcite-color-border-1);margin-inline:.75rem}.item-card__divider:first-child:before{display:none}.item-card__thumbnail{margin:0;width:5rem;height:3.5rem;margin-inline-start:.5rem;flex:0 0 auto;overflow:hidden;border-radius:.125rem}.item-card__thumbnail--grid{position:relative;width:100%;height:auto;aspect-ratio:16 / 9;margin:0;margin-inline-start:0;border-radius:0;border-bottom:1px solid var(--calcite-color-foreground-2)}.item-card__thumbnail-image{width:100%;height:100%;object-fit:cover;display:block}.item-card__thumbnail-media{display:block;width:100%;height:100%}.item-card__thumbnail-fallback{width:100%;height:100%;background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-3);display:flex;align-items:center;justify-content:center}.item-card__hover-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;color:var(--calcite-color-foreground-1);background-color:var(--calcite-color-transparent-scrim);font-size:.75rem;font-weight:500;text-align:center;transition:opacity var(--calcite-animation-timing) ease-in-out}.item-card__badges{display:flex;flex-wrap:wrap}.item-card__badges--compact{max-width:100%}.item-card__badges--responsive{display:none}.item-card__notebook-runtime-wrap{margin-block-start:.375rem;display:flex;gap:var(--calcite-space-sm);align-items:center}.item-card__notebook-runtime-info{font-size:.875rem;line-height:1rem}.item-card__notebook-runtime-retired-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.item-card__notebook-runtime-outdated-warning{--calcite-icon-color: var(--calcite-color-status-warning)}.item-card__footer{margin-top:auto;display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);padding:.25rem .75rem;border-top:1px solid var(--calcite-color-border-3)}.item-card__footer__start{display:flex;min-width:0;flex:1 1 0%;align-items:center;overflow:hidden;width:100%;margin-inline-end:.75rem}.item-card__footer__start--owner{margin-inline-start:-.25rem}.item-card__profile-wrap{max-width:100%;padding:.25rem}.item-card__owner{min-width:0}.item-card__footer-divider{height:1.25rem;width:1px;margin-inline:.75rem;background-color:var(--calcite-color-border-input)}.item-card__preview-button{margin-inline-end:.5rem}.item-card__footer arcgis-portal-item-favorite,.item-card__footer arcgis-portal-item-actions{display:inline-flex;align-items:center}.item-card__access-wrap{display:flex;align-items:center}.item-card-flex{display:flex}.item-card-flex-1{min-width:0;flex:1 1 0%}.item-card__input{margin-inline-end:1rem;margin-top:.125rem}.item-card__title+.item-card__input{margin-inline-start:1rem;margin-inline-end:0}.item-card__input--compact{height:100%;display:flex;align-items:center}.item-card-item-type{min-width:0}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}@container portal-item-card (max-width: 320px){.item-card__title,.item-card__title--grid{font-size:.75rem}.item-card:not(.item-card--grid) .item-card__thumbnail{width:3.4375rem;margin-inline-start:.75rem}.item-card__footer__start{margin-inline-end:.5rem}.item-card__detail--updated-short{display:none}}@container portal-item-card (min-width: 321px) and (max-width: 480px){.item-card__title{font-size:.875rem}}@container portal-item-card (min-width: 481px){.item-card__top{padding:1rem}.item-card__title{font-size:1.125rem}.item-card__title--padded{margin-bottom:.5rem}.item-card__detail{font-size:.875rem}.item-card__footer{padding:.5rem 1rem}.item-card:not(.item-card--grid) .item-card__thumbnail{width:8rem;margin-inline-start:2rem}.item-card__summary{display:block}}@container portal-item-card (min-width: 641px){.item-card__badges--compact{display:none}.item-card__badges--responsive{display:flex}.item-card__summary{display:block}.item-card__footer{flex-wrap:nowrap;gap:0}.item-card__footer__start{width:auto;margin-inline-end:.75rem}.item-card__detail--updated-short{display:none}.item-card__detail--updated-full.item-card__divider{display:flex}.item-card:not(.item-card--grid) .item-card__thumbnail{height:4rem}}`;
|
|
24
|
+
class W extends B {
|
|
13
25
|
constructor() {
|
|
14
|
-
super(
|
|
26
|
+
super(), this.messages = F({ blocking: !0 }), this.sectionEl = S(), this.linkEl = S(), this.notebookRuntimeTooltipId = `portal-item-card-runtime-${Math.random().toString(36).slice(2, 10)}`, this.handleCardClick = (e) => {
|
|
15
27
|
if (!(this.link || this.disabled || e?.target?.closest(".item-card__footer"))) {
|
|
16
28
|
if (this.preview === "top" && !this.recycleBin) {
|
|
17
29
|
this.arcgisItemBrowserCardPreview.emit(this.item);
|
|
@@ -23,16 +35,31 @@ class O extends U {
|
|
|
23
35
|
}
|
|
24
36
|
this.selection === "multiple" && (this.selected = !this.selected, this.arcgisItemCardSelect.emit({ item: this.item, selected: this.selected }));
|
|
25
37
|
}
|
|
26
|
-
}, this.isLoaded = !1, this.selected = !1, this.selection = "none", this.view = "list", this.previewed = !1, this.showOwner = !0, this.showDateUpdated = !0, this.showItemType = !0, this.showItemTypeHosted = !1, this.showSummary = !1, this.showBadges = !0, this.showBadgeTooltips = !0, this.showFavorite = !1, this.showFavoriteInActionsMenu = !1, this.showAccess = !1, this.showThumbnail = !0, this.newTab = !1, this.disableSelection = !1, this.disabled = !1, this.actions = [], this.recycleBin = !1, this.arcgisItemBrowserCardPreview =
|
|
38
|
+
}, this.isLoaded = !1, this.cardWidth = 0, this.selected = !1, this.selection = "none", this.selectedItems = [], this.allowedGeometries = [], this.view = "list", this.previewed = !1, this.showOwner = !0, this.showDateUpdated = !0, this.showItemType = !0, this.showItemTypeHosted = !1, this.showSummary = !1, this.showBadges = !0, this.showBadgeTooltips = !0, this.showFavorite = !1, this.showFavoriteInActionsMenu = !1, this.showAccess = !1, this.showThumbnail = !0, this.useProduction = !1, this.newTab = !1, this.disableSelection = !1, this.disabled = !1, this.actions = [], this.recycleBin = !1, this.arcgisItemBrowserCardPreview = h(), this.arcgisItemCardActionsOpen = h(), this.arcgisItemCardInternalUIAction = h(), this.arcgisItemCardSelect = h(), this.arcgisItemCardSelectError = h(), this.manager.onLifecycle(() => {
|
|
39
|
+
let e;
|
|
40
|
+
const i = new ResizeObserver(([a]) => {
|
|
41
|
+
e !== void 0 && (cancelAnimationFrame(e), e = void 0);
|
|
42
|
+
const o = a.contentRect.width;
|
|
43
|
+
o > 0 && o !== this.cardWidth && (e = requestAnimationFrame(() => {
|
|
44
|
+
e = void 0, this.cardWidth = o;
|
|
45
|
+
}));
|
|
46
|
+
});
|
|
47
|
+
return i.observe(this.el), () => {
|
|
48
|
+
i.disconnect(), e !== void 0 && cancelAnimationFrame(e);
|
|
49
|
+
};
|
|
50
|
+
});
|
|
27
51
|
}
|
|
28
52
|
static {
|
|
29
|
-
this.properties = { isLoaded: 16, item: 0, user: 0, portal: 0, selected: 7, selection: 1, view: 1, preview: 1, previewed: 5, name: 1, showOwner: 5, showDateUpdated: 5, showItemType: 5, showItemTypeHosted: 5, showSummary: 5, showBadges: 5, showBadgeTooltips: 5, showFavorite: 5, showFavoriteInActionsMenu: 5, showAccess: 5, showThumbnail: 5, link: 1, linkHandler: 0, newTab: 5, disableSelection: 5, disabled: 7, userPopupZIndex: 9, actions: 0, recycleBin: 5, hideActionsStart: 5 };
|
|
53
|
+
this.properties = { isLoaded: 16, cardWidth: 16, item: 0, user: 0, portal: 0, selected: 7, selection: 1, selectedItems: 0, allowedGeometries: 0, view: 1, preview: 1, previewed: 5, name: 1, showOwner: 5, showDateUpdated: 5, showItemType: 5, showItemTypeHosted: 5, showSummary: 5, showBadges: 5, showBadgeTooltips: 5, notebookRuntimeStatus: 1, showFavorite: 5, showFavoriteInActionsMenu: 5, showAccess: 5, groups: 0, userGroups: 0, showThumbnail: 5, useProduction: 5, link: 1, linkHandler: 0, newTab: 5, disableSelection: 5, disabled: 7, userPopupZIndex: 9, actions: 0, recycleBin: 5, hideActionsStart: 5 };
|
|
30
54
|
}
|
|
31
55
|
static {
|
|
32
|
-
this.styles =
|
|
56
|
+
this.styles = O;
|
|
33
57
|
}
|
|
34
58
|
get sourceJSON() {
|
|
35
|
-
return
|
|
59
|
+
return N(this.item);
|
|
60
|
+
}
|
|
61
|
+
get sublayerSelection() {
|
|
62
|
+
return this.selection === "multiple-sublayer" ? "multiple" : this.selection === "single-sublayer" ? "single" : void 0;
|
|
36
63
|
}
|
|
37
64
|
async restoreFocus() {
|
|
38
65
|
if (await this.updateComplete, this.link && this.linkEl.value) {
|
|
@@ -46,117 +73,129 @@ class O extends U {
|
|
|
46
73
|
this.isLoaded = !0;
|
|
47
74
|
});
|
|
48
75
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
icon: "globe",
|
|
53
|
-
text: this.messages.everyone
|
|
54
|
-
},
|
|
55
|
-
private: {
|
|
56
|
-
icon: "lock",
|
|
57
|
-
text: this.messages.owner
|
|
58
|
-
},
|
|
59
|
-
org: {
|
|
60
|
-
icon: "organization",
|
|
61
|
-
text: this.messages.organization
|
|
62
|
-
},
|
|
63
|
-
shared: {
|
|
64
|
-
icon: "group",
|
|
65
|
-
text: this.messages.group
|
|
66
|
-
}
|
|
67
|
-
}[e];
|
|
68
|
-
}
|
|
69
|
-
getMessage(e, a = "") {
|
|
70
|
-
const s = this.messages[e];
|
|
71
|
-
return typeof s == "string" ? s : a;
|
|
76
|
+
getMessage(e, i = "") {
|
|
77
|
+
const a = this.messages[e];
|
|
78
|
+
return typeof a == "string" ? a : i;
|
|
72
79
|
}
|
|
73
80
|
getResolvedBaseUrl() {
|
|
74
|
-
return this.portal ?
|
|
81
|
+
return this.portal ? z({ portal: this.portal }) : "";
|
|
82
|
+
}
|
|
83
|
+
handleSharingSlotChange() {
|
|
84
|
+
this.requestUpdate();
|
|
75
85
|
}
|
|
76
86
|
renderUpdatedDetails(e) {
|
|
77
|
-
return
|
|
78
|
-
date:
|
|
87
|
+
return r`<span class="item-card__detail item-card__detail--updated-short item-card__divider">${I(e, { dateStyle: "medium" })}</span><span class="item-card__detail item-card__detail--updated-full item-card__divider">${v(this.messages.lastUpdated ?? "", {
|
|
88
|
+
date: I(e, { dateStyle: "medium" })
|
|
79
89
|
})}</span>`;
|
|
80
90
|
}
|
|
81
|
-
renderSelectionInput(e,
|
|
82
|
-
const { selection:
|
|
91
|
+
renderSelectionInput(e, i = !1) {
|
|
92
|
+
const { selection: a, disableSelection: o, name: w, messages: _, item: c } = this, d = {
|
|
83
93
|
"item-card__input": !0,
|
|
84
|
-
"item-card__input--compact":
|
|
94
|
+
"item-card__input--compact": i
|
|
85
95
|
};
|
|
86
|
-
switch (
|
|
96
|
+
switch (a) {
|
|
87
97
|
case "single":
|
|
88
|
-
return
|
|
89
|
-
|
|
98
|
+
return r`<calcite-radio-button class=${l(d)} .checked=${e} .disabled=${o} .value=${c.title ?? ""} .name=${w} @click=${(s) => {
|
|
99
|
+
s.stopPropagation();
|
|
90
100
|
}} @calciteRadioButtonChange=${() => {
|
|
91
101
|
this.selected = !0, this.arcgisItemCardSelect.emit({ item: c, selected: !0 });
|
|
92
|
-
}}><span class="screen-readers-only">${v(
|
|
102
|
+
}}><span class="screen-readers-only">${v(_.select ?? "", { title: c.title ?? "" })}</span></calcite-radio-button>`;
|
|
93
103
|
case "multiple":
|
|
94
|
-
return
|
|
95
|
-
|
|
104
|
+
return r`<calcite-checkbox class=${l(d)} .checked=${e} .disabled=${o} @click=${(s) => {
|
|
105
|
+
s.stopPropagation(), s.preventDefault();
|
|
96
106
|
}} @calciteCheckboxChange=${() => {
|
|
97
107
|
this.selected = !e, this.arcgisItemCardSelect.emit({ item: c, selected: !e });
|
|
98
108
|
}}><span class="screen-readers-only">${c.title ?? ""}</span></calcite-checkbox>`;
|
|
99
109
|
case "none":
|
|
110
|
+
case "multiple-sublayer":
|
|
111
|
+
case "single-sublayer":
|
|
100
112
|
return null;
|
|
101
113
|
default:
|
|
102
|
-
return
|
|
114
|
+
return E(a);
|
|
103
115
|
}
|
|
104
116
|
}
|
|
105
|
-
renderThumbnail(e,
|
|
106
|
-
return this.showThumbnail ?
|
|
117
|
+
renderThumbnail(e, i) {
|
|
118
|
+
return this.showThumbnail ? i ? r`<figure class="item-card__thumbnail item-card__thumbnail--grid"><arcgis-portal-item-thumbnail class="item-card__thumbnail-media" .item=${e} .portal=${this.portal} .user=${this.user} .useProduction=${this.useProduction}></arcgis-portal-item-thumbnail>${this.preview === "top" && !this.link && r`<div class="item-card__hover-text">${this.previewed ? this.messages.closePreview : this.messages.preview}</div>` || ""}${this.link?.includes(`item.html?id=${e.id}`) && r`<div class="item-card__hover-text">${this.messages.viewItemDetails}</div>` || ""}</figure>` : r`<figure class="item-card__thumbnail"><arcgis-portal-item-thumbnail class="item-card__thumbnail-media" .item=${e} .portal=${this.portal} .user=${this.user} .useProduction=${this.useProduction}></arcgis-portal-item-thumbnail></figure>` : null;
|
|
107
119
|
}
|
|
108
|
-
renderAccess(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
renderAccess() {
|
|
121
|
+
if (!this.showAccess)
|
|
122
|
+
return null;
|
|
123
|
+
const e = Array.from(this.el.children).some((i) => i.getAttribute("slot") === "share-summary");
|
|
124
|
+
return r`<div class="item-card__access-wrap" @click=${(i) => {
|
|
125
|
+
i.preventDefault(), i.stopPropagation();
|
|
126
|
+
}} @keydown=${(i) => {
|
|
127
|
+
(i.key === "Enter" || i.key === " ") && i.stopPropagation();
|
|
128
|
+
}}><slot name=share-summary @slotchange=${this.handleSharingSlotChange}>${!e && r`<arcgis-portal-item-share-summary .item=${this.item} .portal=${this.portal} .groups=${this.groups} .userGroups=${this.userGroups} .autoFetchGroups=${this.groups === void 0} .scale=${this.cardWidth <= C.xxs ? "s" : "m"} .showText=${this.view !== "grid" && this.cardWidth > C.md} overlay-positioning=fixed></arcgis-portal-item-share-summary>` || ""}</slot></div>`;
|
|
112
129
|
}
|
|
113
130
|
renderBadges() {
|
|
114
|
-
return !this.showBadges || !this.item || !this.portal ? null : this.view === "grid" ?
|
|
131
|
+
return !this.showBadges || !this.item || !this.portal ? null : this.view === "grid" ? r`<arcgis-portal-item-badges class="item-card__badges item-card__divider" .item=${this.item} .portal=${this.portal} .user=${this.user} scale=s appearance=outline-fill .showTooltips=${this.showBadgeTooltips} width=narrow></arcgis-portal-item-badges>` : r`<arcgis-portal-item-badges class="item-card__badges item-card__badges--compact item-card__divider" .item=${this.item} .portal=${this.portal} .user=${this.user} scale=s appearance=outline-fill .showTooltips=${this.showBadgeTooltips} width=narrow></arcgis-portal-item-badges><arcgis-portal-item-badges class="item-card__badges item-card__badges--responsive item-card__divider" .item=${this.item} .portal=${this.portal} .user=${this.user} scale=s appearance=outline-fill .showTooltips=${this.showBadgeTooltips} width=full></arcgis-portal-item-badges>`;
|
|
132
|
+
}
|
|
133
|
+
renderNotebookRuntime() {
|
|
134
|
+
const e = this.sourceJSON, i = e?.properties?.notebookRuntimeName, a = e?.properties?.notebookRuntimeVersion, o = [
|
|
135
|
+
i,
|
|
136
|
+
a ? M(a) : void 0
|
|
137
|
+
].filter(Boolean).join(" - ");
|
|
138
|
+
return o ? r`<span class="item-card__notebook-runtime-info">${o}</span>` : null;
|
|
139
|
+
}
|
|
140
|
+
renderNotebookRuntimeWarning() {
|
|
141
|
+
const { notebookRuntimeStatus: e } = this;
|
|
142
|
+
if (e !== "retired" && e !== "outdated")
|
|
143
|
+
return null;
|
|
144
|
+
const i = e === "retired", a = this.portal.isPortal && D(this.portal), o = i ? this.getMessage("retiredRuntimeWarning", "This notebook uses a retired runtime. Update the runtime before opening.") : this.getMessage(a ? "outdatedRuntimeWarningK8s" : "outdatedRuntimeWarning", a ? "This notebook uses a runtime that is no longer in general availability and will not receive further software updates or patches. Update the runtime before opening." : "New runtimes are available. Update notebook runtime to access the latest features and improvements.");
|
|
145
|
+
return r`<calcite-tooltip placement=top class="calcite-mode-dark" .referenceElement=${this.notebookRuntimeTooltipId}>${o}</calcite-tooltip><calcite-icon class=${l({
|
|
146
|
+
"item-card__notebook-runtime-warning": !0,
|
|
147
|
+
"item-card__notebook-runtime-retired-warning": i,
|
|
148
|
+
"item-card__notebook-runtime-outdated-warning": !i
|
|
149
|
+
})} icon=exclamation-mark-triangle id=${this.notebookRuntimeTooltipId ?? u} scale=s .textLabel=${o}></calcite-icon>`;
|
|
115
150
|
}
|
|
116
151
|
render() {
|
|
117
|
-
const { item: e, portal:
|
|
118
|
-
if (!e || !
|
|
152
|
+
const { item: e, portal: i, user: a, selection: o, isLoaded: w, disabled: _, link: c, newTab: d } = this;
|
|
153
|
+
if (!e || !i || !this.messages._lang)
|
|
119
154
|
return;
|
|
120
|
-
const
|
|
121
|
-
return
|
|
155
|
+
const s = this.sourceJSON, g = s.modified || e.modified, n = this.view === "grid", b = this.sublayerSelection, m = b ? this.selectedItems.some((t) => ("item" in t ? t.item.id : t.id) === e.id) : this.selected, $ = this.preview === "action" && !this.recycleBin, y = this.actions.length > 0 || this.showFavoriteInActionsMenu, k = this.showFavorite && !this.showFavoriteInActionsMenu && !this.useProduction && !!a, A = y || k || $, P = (this.showAccess || n && this.showOwner) && A, p = this.preview === "top" && !c;
|
|
156
|
+
return r`<section class=${l({
|
|
122
157
|
"item-card": !0,
|
|
123
|
-
"item-card--grid":
|
|
124
|
-
"item-card--hoverable":
|
|
125
|
-
"item-card--selected":
|
|
126
|
-
"item-card--disabled":
|
|
127
|
-
"item-card--loaded":
|
|
128
|
-
"item-card--previewed": this.previewed &&
|
|
129
|
-
})} @click=${c ? void 0 : this.handleCardClick} .tabIndex=${
|
|
130
|
-
|
|
131
|
-
}} ${
|
|
158
|
+
"item-card--grid": n,
|
|
159
|
+
"item-card--hoverable": o !== "none",
|
|
160
|
+
"item-card--selected": m,
|
|
161
|
+
"item-card--disabled": _,
|
|
162
|
+
"item-card--loaded": w,
|
|
163
|
+
"item-card--previewed": this.previewed && p
|
|
164
|
+
})} @click=${c ? void 0 : this.handleCardClick} .tabIndex=${p ? 0 : -1} .role=${p ? "button" : void 0} aria-haspopup=${(p ? "dialog" : void 0) ?? u} @keydown=${(t) => {
|
|
165
|
+
!p || t.target !== t.currentTarget || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.handleCardClick());
|
|
166
|
+
}} ${T(this.sectionEl)}><slot name=content-top></slot>${c ? r`<a class="item-card__upper item-card__upper--link" href=${c ?? u} target=${(d ? "_blank" : void 0) ?? u} rel=${(d ? "noopener noreferrer" : void 0) ?? u} @click=${(t) => {
|
|
132
167
|
if (this.linkHandler && !t.ctrlKey && !t.metaKey) {
|
|
133
168
|
t.preventDefault(), this.linkHandler(this.item);
|
|
134
169
|
return;
|
|
135
170
|
}
|
|
136
171
|
const x = t.target;
|
|
137
172
|
x instanceof HTMLElement && x.closest(".item-card__footer") && t.preventDefault();
|
|
138
|
-
}} ${
|
|
173
|
+
}} ${T(this.linkEl)}>${r`${n && this.renderThumbnail(e, !0) || ""}<div class="item-card-flex item-card__top">${!n && this.renderSelectionInput(m, !0) || ""}<div class="item-card-flex-1"><div class="item-card-flex"><div class="item-card__content"><div class="item-card-flex"><h3 class=${l({
|
|
139
174
|
"item-card__title": !0,
|
|
140
|
-
"item-card__title--grid":
|
|
141
|
-
"item-card__title--padded": this.showItemType || this.showSummary && !!
|
|
175
|
+
"item-card__title--grid": n,
|
|
176
|
+
"item-card__title--padded": this.showItemType || this.showSummary && !!s.snippet,
|
|
142
177
|
"item-card-flex-1": !0
|
|
143
|
-
})}><span class="item-card__title__span">${
|
|
178
|
+
})}><span class="item-card__title__span">${s.title ?? e.title ?? ""}</span></h3>${n && this.renderSelectionInput(m) || ""}</div>${this.showSummary && !!s.snippet && r`<p class="item-card__summary">${s.snippet.length > 250 ? `${s.snippet.substring(0, 250)}...` : s.snippet}</p>` || ""}<div class="item-card__details">${this.showItemType && r`<arcgis-portal-item-type class="item-card__divider item-card-item-type" ellipsis .user=${a} .showHosted=${this.showItemTypeHosted} scale=s .item=${e} .portal=${i}></arcgis-portal-item-type>` || ""}${this.showDateUpdated && !!g && this.renderUpdatedDetails(g) || ""}${this.renderBadges()}</div>${e.type === "Notebook" && r`<div class="item-card__notebook-runtime-wrap">${this.renderNotebookRuntime()}${this.renderNotebookRuntimeWarning()}</div>` || ""}</div>${!n && this.renderThumbnail(e, !1) || ""}</div><div class="item-card__content-end"><slot name=content-end></slot></div></div></div>`}</a>` : r`<div class="item-card__upper">${n && this.renderThumbnail(e, !0) || ""}<div class="item-card-flex item-card__top">${!n && this.renderSelectionInput(m, !0) || ""}<div class="item-card-flex-1"><div class="item-card-flex"><div class="item-card__content"><div class="item-card-flex"><h3 class=${l({
|
|
144
179
|
"item-card__title": !0,
|
|
145
|
-
"item-card__title--grid":
|
|
146
|
-
"item-card__title--padded": this.showItemType || this.showSummary && !!
|
|
180
|
+
"item-card__title--grid": n,
|
|
181
|
+
"item-card__title--padded": this.showItemType || this.showSummary && !!s.snippet,
|
|
147
182
|
"item-card-flex-1": !0
|
|
148
|
-
})}><span class="item-card__title__span">${
|
|
183
|
+
})}><span class="item-card__title__span">${s.title ?? e.title ?? ""}</span></h3>${n && this.renderSelectionInput(m) || ""}</div>${this.showSummary && !!s.snippet && r`<p class="item-card__summary">${s.snippet.length > 250 ? `${s.snippet.substring(0, 250)}...` : s.snippet}</p>` || ""}<div class="item-card__details">${this.showItemType && r`<arcgis-portal-item-type class="item-card__divider item-card-item-type" ellipsis .user=${a} .showHosted=${this.showItemTypeHosted} scale=s .item=${e} .portal=${i}></arcgis-portal-item-type>` || ""}${this.showDateUpdated && !!g && this.renderUpdatedDetails(g) || ""}${this.renderBadges()}</div>${e.type === "Notebook" && r`<div class="item-card__notebook-runtime-wrap">${this.renderNotebookRuntime()}${this.renderNotebookRuntimeWarning()}</div>` || ""}</div>${!n && this.renderThumbnail(e, !1) || ""}</div><div class="item-card__content-end"><slot name=content-end></slot></div></div></div></div>`}<div class="item-card__footer"><div class=${l({ "item-card__footer__start": !0, "item-card__footer__start--owner": this.showOwner })}>${!this.hideActionsStart && r`<slot name=actions-start></slot>` || ""}${this.showOwner && !!s.owner && r`<div class="item-card__profile-wrap"><arcgis-portal-user-popup class="item-card__owner" .portal=${i} .username=${s.owner} .baseUrl=${this.getResolvedBaseUrl()} underline .zIndex=${this.userPopupZIndex} @arcgisUserPopupInternalUIAction=${(t) => {
|
|
149
184
|
t.stopPropagation(), this.arcgisItemCardInternalUIAction.emit(t.detail);
|
|
150
|
-
}}></arcgis-portal-user-popup></div>` || ""}</div>${this.renderAccess(
|
|
185
|
+
}}></arcgis-portal-user-popup></div>` || ""}</div>${this.renderAccess()}${P && r`<span class="item-card__footer-divider"></span>` || ""}${k && r`<slot name=favorite-action><arcgis-portal-item-favorite .item=${e} .portal=${i} .user=${a} icon-only scale=s show-tooltip @arcgisItemFavoriteUpdate=${() => {
|
|
151
186
|
this.arcgisItemCardInternalUIAction.emit({
|
|
152
187
|
category: "card action",
|
|
153
188
|
action: "favorite"
|
|
154
189
|
});
|
|
155
|
-
}}></arcgis-portal-item-favorite></slot>` || ""}${
|
|
190
|
+
}}></arcgis-portal-item-favorite></slot>` || ""}${$ && r`<calcite-button scale=s class="item-card__preview-button" .appearance=${this.previewed ? "solid" : "outline"} kind=neutral @click=${(t) => {
|
|
156
191
|
t.preventDefault(), t.stopPropagation(), this.arcgisItemBrowserCardPreview.emit(this.item);
|
|
157
|
-
}}>${this.messages.preview}</calcite-button>` || ""}${b &&
|
|
158
|
-
|
|
159
|
-
}
|
|
192
|
+
}}>${this.messages.preview}</calcite-button>` || ""}${b && r`<arcgis-portal-item-card-sublayer-select .item=${e} .portal=${i} .selection=${b} .selectedItems=${this.selectedItems} .allowedGeometries=${this.allowedGeometries} .disabled=${_ || this.disableSelection} @arcgisItemCardSelect=${(t) => {
|
|
193
|
+
t.stopPropagation(), this.arcgisItemCardSelect.emit(t.detail);
|
|
194
|
+
}} @arcgisItemCardSelectError=${(t) => {
|
|
195
|
+
t.stopPropagation(), this.arcgisItemCardSelectError.emit(t.detail);
|
|
196
|
+
}}></arcgis-portal-item-card-sublayer-select>` || ""}${y && r`<arcgis-portal-item-actions .item=${e} .portal=${i} .user=${a} .actions=${this.actions} .label=${v(this.getMessage("itemActions", "Item actions for {title}"), {
|
|
197
|
+
title: s.title ?? e.title ?? ""
|
|
198
|
+
})} .showFavorite=${this.showFavoriteInActionsMenu && !!a} @arcgisItemActionsOpen=${(t) => {
|
|
160
199
|
t.stopPropagation(), this.arcgisItemCardActionsOpen.emit({
|
|
161
200
|
actions: this.actions,
|
|
162
201
|
el: t.detail.el
|
|
@@ -177,7 +216,7 @@ class O extends U {
|
|
|
177
216
|
}}><slot name=actions-end></slot></div></div></section>`;
|
|
178
217
|
}
|
|
179
218
|
}
|
|
180
|
-
|
|
219
|
+
R("arcgis-portal-item-card", W);
|
|
181
220
|
export {
|
|
182
|
-
|
|
221
|
+
W as ArcgisPortalItemCard
|
|
183
222
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-radio-button";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-checkbox";
|
|
3
3
|
import "../arcgis-portal-item-thumbnail/index.js";
|
|
4
|
-
import "
|
|
4
|
+
import "../arcgis-portal-item-share-summary/index.js";
|
|
5
5
|
import "../arcgis-portal-item-badges/index.js";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-tooltip";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
6
8
|
import "../arcgis-portal-item-type/index.js";
|
|
7
9
|
import "../arcgis-portal-user-popup/index.js";
|
|
8
10
|
import "../arcgis-portal-item-favorite/index.js";
|
|
9
11
|
import "@esri/calcite-components/components/calcite-button";
|
|
12
|
+
import "../arcgis-portal-item-card-sublayer-select/index.js";
|
|
10
13
|
import "../arcgis-portal-item-actions/index.js";
|
|
11
14
|
export * from "./customElement.js";
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
3
|
+
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
4
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
|
+
import type { SearchResultSublayerGeometry } from "../../types/item.js";
|
|
6
|
+
import type { PortalItemCardSelectedItem, PortalItemCardSelectErrorDetail, PortalItemCardSublayerSelectDetail } from "./types.js";
|
|
7
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
|
+
import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Selects layers, tables, or tasks from a portal item.
|
|
12
|
+
* Selection is controlled by the parent through selectedItems and arcgisItemCardSelect.
|
|
13
|
+
* Parents can coordinate alerts using arcgisItemCardSelectError.
|
|
14
|
+
*/
|
|
15
|
+
export abstract class ArcgisPortalItemCardSublayerSelect extends LitElement {
|
|
16
|
+
/** Allowed geometries. Other geometries are disabled with an explanatory tooltip. An empty array permits all geometries. */
|
|
17
|
+
accessor allowedGeometries: SearchResultSublayerGeometry[];
|
|
18
|
+
/**
|
|
19
|
+
* Appearance of the select layers button (will always be solid if layers are selected)
|
|
20
|
+
*
|
|
21
|
+
* @default "outline"
|
|
22
|
+
*/
|
|
23
|
+
accessor appearance: Button["appearance"];
|
|
24
|
+
/**
|
|
25
|
+
* Disable user selection and service requests.
|
|
26
|
+
*
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
accessor disabled: boolean;
|
|
30
|
+
/** Portal item to select from. Search-index sublayers are read from sourceJSON. */
|
|
31
|
+
accessor item: PortalItem;
|
|
32
|
+
/** Overrides for localized messages. */
|
|
33
|
+
accessor messageOverrides: {
|
|
34
|
+
select?: string | undefined;
|
|
35
|
+
selectLayers?: string | undefined;
|
|
36
|
+
geometryNotAllowed?: string | undefined;
|
|
37
|
+
selectedSingle?: string | undefined;
|
|
38
|
+
selectedLayers?: string | undefined;
|
|
39
|
+
selectedName?: string | undefined;
|
|
40
|
+
selectedTask?: string | undefined;
|
|
41
|
+
errorTitle?: string | undefined;
|
|
42
|
+
errorBody?: string | undefined;
|
|
43
|
+
notebookErrorBody?: string | undefined;
|
|
44
|
+
retry?: string | undefined;
|
|
45
|
+
selectTask?: string | undefined;
|
|
46
|
+
selectTaskFrom?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
protected messages: {
|
|
50
|
+
select: string;
|
|
51
|
+
selectLayers: string;
|
|
52
|
+
geometryNotAllowed: string;
|
|
53
|
+
selectedSingle: string;
|
|
54
|
+
selectedLayers: string;
|
|
55
|
+
selectedName: string;
|
|
56
|
+
selectedTask: string;
|
|
57
|
+
errorTitle: string;
|
|
58
|
+
errorBody: string;
|
|
59
|
+
notebookErrorBody: string;
|
|
60
|
+
retry: string;
|
|
61
|
+
selectTask: string;
|
|
62
|
+
selectTaskFrom: string;
|
|
63
|
+
} & T9nMeta<{
|
|
64
|
+
select: string;
|
|
65
|
+
selectLayers: string;
|
|
66
|
+
geometryNotAllowed: string;
|
|
67
|
+
selectedSingle: string;
|
|
68
|
+
selectedLayers: string;
|
|
69
|
+
selectedName: string;
|
|
70
|
+
selectedTask: string;
|
|
71
|
+
errorTitle: string;
|
|
72
|
+
errorBody: string;
|
|
73
|
+
notebookErrorBody: string;
|
|
74
|
+
retry: string;
|
|
75
|
+
selectTask: string;
|
|
76
|
+
selectTaskFrom: string;
|
|
77
|
+
}>;
|
|
78
|
+
/** Current Portal instance */
|
|
79
|
+
accessor portal: Portal;
|
|
80
|
+
/** Current parent-controlled selection. Replace the array to accept a selection event; ignored events leave the UI unchanged. */
|
|
81
|
+
accessor selectedItems: PortalItemCardSelectedItem[];
|
|
82
|
+
/**
|
|
83
|
+
* Type of selection
|
|
84
|
+
*
|
|
85
|
+
* @default "single"
|
|
86
|
+
*/
|
|
87
|
+
accessor selection: "multiple" | "single";
|
|
88
|
+
/**
|
|
89
|
+
* Width of the selection dropdown trigger
|
|
90
|
+
*
|
|
91
|
+
* @default "auto"
|
|
92
|
+
*/
|
|
93
|
+
accessor width: "auto" | "full";
|
|
94
|
+
/** Requests a selection change; the parent updates selectedItems. */
|
|
95
|
+
readonly arcgisItemCardSelect: import("@arcgis/lumina").TargetedEvent<this, PortalItemCardSublayerSelectDetail>;
|
|
96
|
+
/** Reports service failures. Alert coordination, if desired, belongs to the parent. */
|
|
97
|
+
readonly arcgisItemCardSelectError: import("@arcgis/lumina").TargetedEvent<this, PortalItemCardSelectErrorDetail>;
|
|
98
|
+
readonly "@eventTypes": {
|
|
99
|
+
arcgisItemCardSelect: ArcgisPortalItemCardSublayerSelect["arcgisItemCardSelect"]["detail"];
|
|
100
|
+
arcgisItemCardSelectError: ArcgisPortalItemCardSublayerSelect["arcgisItemCardSelectError"]["detail"];
|
|
101
|
+
};
|
|
102
|
+
}
|