@arcgis/portal-components 6.0.0-next.4 → 6.0.0-next.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/2574FNAZ.js +2 -0
- package/dist/cdn/3DOZPC3W.js +2 -0
- package/dist/cdn/3HZI6MKD.js +2 -0
- package/dist/cdn/3KGSWW6B.js +2 -0
- package/dist/cdn/3OL7A2UC.js +2 -0
- package/dist/cdn/3Q7UJKKN.js +2 -0
- package/dist/cdn/43A74S72.js +2 -0
- package/dist/cdn/46HNNQAD.js +2 -0
- package/dist/cdn/46MYBPSS.js +2 -0
- package/dist/cdn/{2TDHJSMP.js → 47DKAGRV.js} +1 -1
- package/dist/cdn/4CBRO7JP.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
- package/dist/cdn/5M25PCH2.js +2 -0
- package/dist/cdn/5MLBK66O.js +2 -0
- package/dist/cdn/5RBH3LGK.js +2 -0
- package/dist/cdn/5ZHNRQOW.js +2 -0
- package/dist/cdn/62TL6V4N.js +2 -0
- package/dist/cdn/66VV7NHO.js +2 -0
- package/dist/cdn/6AHPTR2E.js +2 -0
- package/dist/cdn/6APPSZ7E.js +2 -0
- package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
- package/dist/cdn/6QI7DAS2.js +2 -0
- package/dist/cdn/6ZJNZZPC.js +2 -0
- package/dist/cdn/75CT6IMW.js +2 -0
- package/dist/cdn/7J22VLBO.js +2 -0
- package/dist/cdn/7VPB6Q55.js +63 -0
- package/dist/cdn/7ZU43BL6.js +2 -0
- package/dist/cdn/A5QLPZ57.js +2 -0
- package/dist/cdn/AZTAWZI5.js +2 -0
- package/dist/cdn/{OR6T5SB3.js → BNWJUQDF.js} +1 -1
- package/dist/cdn/BUYOYUA2.js +2 -0
- package/dist/cdn/BX7Q3V2Y.js +43 -0
- package/dist/cdn/BXPNB7VJ.js +2 -0
- package/dist/cdn/BZEKNJUA.js +2 -0
- package/dist/cdn/C6RUWLEJ.js +2 -0
- package/dist/cdn/C7SNE6YG.js +2 -0
- package/dist/cdn/DENQY4OE.js +2 -0
- package/dist/cdn/DT4HGMLS.js +2 -0
- package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
- package/dist/cdn/DU2R3VC4.js +2 -0
- package/dist/cdn/E5HCHRAI.js +2 -0
- package/dist/cdn/EBL7YSRM.js +2 -0
- package/dist/cdn/EDGE3T36.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
- package/dist/cdn/FFL2L4X5.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → FIAEPK5L.js} +1 -1
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/FTKSVLDI.js +2 -0
- package/dist/cdn/G272JPUS.js +2 -0
- package/dist/cdn/GFUKRB6D.js +2 -0
- package/dist/cdn/{SGDDFWCJ.js → GG6U75ZA.js} +1 -1
- package/dist/cdn/{FRE56NBG.js → GZ4ONSFV.js} +1 -1
- package/dist/cdn/HOIZXTOD.js +2 -0
- package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
- package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
- package/dist/cdn/IAWL475A.js +2 -0
- package/dist/cdn/IGLODZPX.js +2 -0
- package/dist/cdn/IOF72CDU.js +2 -0
- package/dist/cdn/ITRJGXFV.js +93 -0
- package/dist/cdn/ITWLFQI4.js +2 -0
- package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
- package/dist/cdn/JFGXTJY4.js +2 -0
- package/dist/cdn/JIU6MBGB.js +2 -0
- package/dist/cdn/JLT5GCLY.js +2 -0
- package/dist/cdn/JTA223NH.js +2 -0
- package/dist/cdn/KA2MXQTR.js +2 -0
- package/dist/cdn/KAK6CNI7.js +2 -0
- package/dist/cdn/KPZGBBDG.js +2 -0
- package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/KWL2D56D.js +3 -0
- package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
- package/dist/cdn/L3YOPSRB.js +135 -0
- package/dist/cdn/LEESUFWE.js +2 -0
- package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
- package/dist/cdn/LTD5KLLE.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → LUJGCYQY.js} +1 -1
- package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
- package/dist/cdn/MSL36HAR.js +2 -0
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/N3WRMPM6.js +2 -0
- package/dist/cdn/N47MW5HI.js +9 -0
- package/dist/cdn/N7XYFVOI.js +2 -0
- package/dist/cdn/NHVPNSNH.js +2 -0
- package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
- package/dist/cdn/O2GPTWGF.js +3 -0
- package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
- package/dist/cdn/OPI4P6VO.js +2 -0
- package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
- package/dist/cdn/OQ2JULON.js +2 -0
- package/dist/cdn/OXF2WDSW.js +2 -0
- package/dist/cdn/P3FFM322.js +2 -0
- package/dist/cdn/QAXFE5DD.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
- package/dist/cdn/R26RBXQW.js +2 -0
- package/dist/cdn/R6KJVAX3.js +99 -0
- package/dist/cdn/RA2NMLMP.js +2 -0
- package/dist/cdn/RJXIU4GH.js +2 -0
- package/dist/cdn/RKHNP3KL.js +2 -0
- package/dist/cdn/RR56BOTV.js +2 -0
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/RTZ2TKM5.js +2 -0
- package/dist/cdn/RX64JXHI.js +170 -0
- package/dist/cdn/RXMM6CFK.js +2 -0
- package/dist/cdn/S4N5QMSN.js +2 -0
- package/dist/cdn/SCLYGIHM.js +2 -0
- package/dist/cdn/{JIJO4CAS.js → SLK7PV62.js} +1 -1
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/SUN4MBT3.js +2 -0
- package/dist/cdn/SYXCSFIA.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TP7V25GT.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
- package/dist/cdn/UIK6LPA7.js +2 -0
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
- package/dist/cdn/VWOBCSD6.js +4 -0
- package/dist/cdn/{JE2376SE.js → W3JJBZYX.js} +1 -1
- package/dist/cdn/W6WVMRGQ.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
- package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
- package/dist/cdn/WTKLB3R6.js +2 -0
- package/dist/cdn/X7W4VJO7.js +2 -0
- package/dist/cdn/XCOP6QHA.js +2 -0
- package/dist/cdn/XE3DCC5D.js +2 -0
- package/dist/cdn/XVV75AX3.js +2 -0
- package/dist/cdn/XYHIVGUK.js +2 -0
- package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
- package/dist/cdn/Y7ZCEONL.js +73 -0
- package/dist/cdn/YELHAJB3.js +2 -0
- package/dist/cdn/YH2OFXPU.js +2 -0
- package/dist/cdn/YYVLFAFT.js +2 -0
- package/dist/cdn/{74T6IXSN.js → ZDH4KVAV.js} +1 -1
- package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
- package/dist/cdn/ZG7OW456.js +2 -0
- package/dist/cdn/{NWVLGU2C.js → ZLNBCJE4.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.js} +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/FieldIcons.js +24 -0
- package/dist/chunks/constants.js +7 -0
- package/dist/chunks/contextUsage.js +208 -0
- package/dist/chunks/createPortalTool.js +18 -0
- package/dist/chunks/fieldAddDelete.js +6 -6
- package/dist/chunks/functionalities.js +14 -9
- package/dist/chunks/groups.js +8 -61
- package/dist/chunks/groups2.js +23 -8
- package/dist/chunks/help.js +22 -0
- package/dist/chunks/info.js +2 -2
- package/dist/chunks/item.js +135 -33
- package/dist/chunks/item2.js +96 -122
- package/dist/chunks/itemThumbnail.js +21 -21
- package/dist/chunks/items.js +11 -11
- package/dist/chunks/layers.js +196 -0
- package/dist/chunks/loadClassificationData.js +26 -27
- package/dist/chunks/portal-browser.js +49 -46
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-item-preview-sublayer.js +214 -0
- package/dist/chunks/portal-item-status-card.js +81 -0
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +5 -5
- package/dist/chunks/portal2.js +22 -22
- package/dist/chunks/portalEntitySelection.js +61 -0
- package/dist/chunks/previewSessionController.js +33 -0
- package/dist/chunks/query.js +13 -13
- package/dist/chunks/request.js +49 -41
- package/dist/chunks/requests.js +7 -7
- package/dist/chunks/selectedMentions.js +25 -0
- package/dist/chunks/services.js +5 -5
- package/dist/chunks/string.js +19 -11
- package/dist/chunks/ui.js +1 -0
- package/dist/chunks/url.js +2 -2
- package/dist/chunks/user.js +67 -53
- package/dist/chunks/user2.js +10 -10
- package/dist/chunks/utils.js +35 -22
- package/dist/chunks/utils3.js +88 -657
- package/dist/chunks/utils4.js +663 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
- package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
- package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
- package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
- package/dist/components/arcgis-portal-browser/customElement.js +3 -2
- package/dist/components/arcgis-portal-browser/index.js +1 -0
- package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
- package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
- package/dist/components/arcgis-portal-delete-items/index.js +1 -2
- package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
- package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
- package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
- package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
- package/dist/components/arcgis-portal-field-delete/index.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
- package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
- package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
- package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
- package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
- package/dist/components/arcgis-portal-item-card/customElement.d.ts +26 -10
- package/dist/components/arcgis-portal-item-card/customElement.js +90 -80
- package/dist/components/arcgis-portal-item-card/index.js +2 -1
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
- package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
- package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
- package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
- package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview/index.js +20 -0
- package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
- package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
- package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
- package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
- package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
- package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
- package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
- package/dist/components/arcgis-portal-navigation/customElement.d.ts +6 -4
- package/dist/components/arcgis-portal-navigation/customElement.js +371 -374
- package/dist/components/arcgis-portal-navigation/index.js +1 -2
- package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
- package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
- package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
- package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
- package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
- package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
- package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
- package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
- package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
- package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
- package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
- package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
- package/dist/components/portal-group-browser-filters/customElement.js +15 -15
- package/dist/components/portal-related-items-list-item/customElement.js +16 -14
- package/dist/components/portal-related-items-list-item/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +87 -0
- package/dist/index.js +305 -6
- package/dist/loader.js +22 -11
- package/dist/services/group.d.ts +17 -0
- package/dist/services/groups.d.ts +9 -0
- package/dist/services/item.d.ts +9 -0
- package/dist/types/item.d.ts +19 -11
- package/dist/types/layer.d.ts +27 -0
- package/dist/types/lumina.d.ts +82 -12
- package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
- package/dist/types/portalEntityPicker.d.ts +3 -0
- package/dist/types/preact.d.ts +93 -12
- package/dist/types/react.d.ts +104 -12
- package/dist/types/services.d.ts +28 -1
- package/dist/types/stencil.d.ts +82 -12
- package/dist/types/user.d.ts +14 -10
- package/dist/utils/generateEmbeddings.d.ts +7 -0
- package/dist/utils/semanticSearch.d.ts +60 -0
- package/dist/utils/types.d.ts +10 -0
- package/package.json +14 -13
- package/dist/cdn/23NXHNPU.js +0 -2
- package/dist/cdn/24QSQLRY.js +0 -2
- package/dist/cdn/2CN754CY.js +0 -2
- package/dist/cdn/2FQKDFEE.js +0 -2
- package/dist/cdn/2MPQ5IWJ.js +0 -2
- package/dist/cdn/3CQKCUM5.js +0 -2
- package/dist/cdn/3EYB5GQX.js +0 -2
- package/dist/cdn/3FSPL34I.js +0 -170
- package/dist/cdn/3LEQ37YT.js +0 -68
- package/dist/cdn/4KTRAA2J.js +0 -2
- package/dist/cdn/4MUB6TL6.js +0 -2
- package/dist/cdn/4PRXQFCV.js +0 -2
- package/dist/cdn/4QFTKB6T.js +0 -2
- package/dist/cdn/4TSXFX3M.js +0 -2
- package/dist/cdn/5C5GHX4D.js +0 -2
- package/dist/cdn/7LMZHJZG.js +0 -2
- package/dist/cdn/A2SQ4EMZ.js +0 -2
- package/dist/cdn/AICPYLWE.js +0 -4
- package/dist/cdn/AXOBMX3S.js +0 -2
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BYHX3UWV.js +0 -2
- package/dist/cdn/CD5UWSCP.js +0 -2
- package/dist/cdn/D2YQWKME.js +0 -135
- package/dist/cdn/DDBXEXOV.js +0 -2
- package/dist/cdn/DHMNNIXZ.js +0 -2
- package/dist/cdn/DLI4XKJ3.js +0 -2
- package/dist/cdn/DYO5P3F2.js +0 -2
- package/dist/cdn/E66BDC6N.js +0 -2
- package/dist/cdn/EEAVX4PP.js +0 -2
- package/dist/cdn/EMJQI4MA.js +0 -2
- package/dist/cdn/EY5S6ICQ.js +0 -2
- package/dist/cdn/FIBQAMJ3.js +0 -2
- package/dist/cdn/FIQZPIIK.js +0 -2
- package/dist/cdn/FNLBJ4ZQ.js +0 -2
- package/dist/cdn/GGDOGNH4.js +0 -150
- package/dist/cdn/GSOBDGLK.js +0 -2
- package/dist/cdn/GXM3XY3J.js +0 -2
- package/dist/cdn/HCNTXLUT.js +0 -2
- package/dist/cdn/I273CANO.js +0 -2
- package/dist/cdn/I6NVKNZJ.js +0 -2
- package/dist/cdn/J5FKIZAM.js +0 -2
- package/dist/cdn/J5NPDIZM.js +0 -2
- package/dist/cdn/JOUR2FB2.js +0 -3
- package/dist/cdn/JWBUJT43.js +0 -2
- package/dist/cdn/LISDTBEX.js +0 -2
- package/dist/cdn/LYLQCBVX.js +0 -2
- package/dist/cdn/MQK63FV7.js +0 -2
- package/dist/cdn/N4VOTJ25.js +0 -2
- package/dist/cdn/N5QLV56W.js +0 -2
- package/dist/cdn/OD5WXP7J.js +0 -2
- package/dist/cdn/OXPXXIWL.js +0 -2
- package/dist/cdn/PKA745KL.js +0 -2
- package/dist/cdn/PMRFXB4F.js +0 -2
- package/dist/cdn/PNIFJ5DQ.js +0 -2
- package/dist/cdn/PZDI5ZDC.js +0 -2
- package/dist/cdn/QROXYP6V.js +0 -2
- package/dist/cdn/QUOLQGKP.js +0 -2
- package/dist/cdn/QWHGLE3O.js +0 -2
- package/dist/cdn/R3PK7XOP.js +0 -2
- package/dist/cdn/REM3KCX6.js +0 -2
- package/dist/cdn/RNWICLRH.js +0 -2
- package/dist/cdn/RQYNPDN3.js +0 -2
- package/dist/cdn/S6F7U36E.js +0 -400
- package/dist/cdn/SMX2LEJB.js +0 -2
- package/dist/cdn/SVROAT3Z.js +0 -2
- package/dist/cdn/TBZXKKGP.js +0 -2
- package/dist/cdn/TNUCSWBN.js +0 -2
- package/dist/cdn/TOICLGFK.js +0 -2
- package/dist/cdn/TOTWYGB3.js +0 -2
- package/dist/cdn/TUUUK3VX.js +0 -2
- package/dist/cdn/U3KMGSVH.js +0 -2
- package/dist/cdn/UEP2NYJK.js +0 -2
- package/dist/cdn/UZP4YMTE.js +0 -2
- package/dist/cdn/VNU4QX7M.js +0 -41
- package/dist/cdn/XYMBRPC7.js +0 -2
- package/dist/cdn/YB3DR4VO.js +0 -2
- package/dist/cdn/YYTEJVBL.js +0 -2
- package/dist/cdn/Z3HGPBOR.js +0 -2
- package/dist/cdn/ZDDN7UKS.js +0 -2
- package/dist/cdn/ZXNF77OB.js +0 -2
- package/dist/chunks/functional.js +0 -9
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
- /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
- /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
package/dist/types/stencil.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { ArcgisPortalAccountSwitcherList } from "../components/arcgis-porta
|
|
|
5
5
|
import type { ArcgisPortalAccountSwitcherSignout } from "../components/arcgis-portal-account-switcher-signout/customElement.js";
|
|
6
6
|
import type { ArcgisPortalAddGpsMetadata } from "../components/arcgis-portal-add-gps-metadata/customElement.js";
|
|
7
7
|
import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
|
|
8
|
+
import type { ArcgisPortalAiAssistantDiagnostics } from "../components/arcgis-portal-ai-assistant-diagnostics/customElement.js";
|
|
8
9
|
import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
|
|
9
10
|
import type { ArcgisPortalBrowser } from "../components/arcgis-portal-browser/customElement.js";
|
|
10
11
|
import type { ArcgisPortalBrowserActions } from "../components/arcgis-portal-browser-actions/customElement.js";
|
|
@@ -36,13 +37,23 @@ import type { ArcgisPortalItemActions } from "../components/arcgis-portal-item-a
|
|
|
36
37
|
import type { ArcgisPortalItemBadges } from "../components/arcgis-portal-item-badges/customElement.js";
|
|
37
38
|
import type { ArcgisPortalItemBadge } from "../components/arcgis-portal-item-badge/customElement.js";
|
|
38
39
|
import type { ArcgisPortalItemCard } from "../components/arcgis-portal-item-card/customElement.js";
|
|
40
|
+
import type { ArcgisPortalItemCardSublayerSelect } from "../components/arcgis-portal-item-card-sublayer-select/customElement.js";
|
|
39
41
|
import type { ArcgisPortalItemFavorite } from "../components/arcgis-portal-item-favorite/customElement.js";
|
|
40
42
|
import type { ArcgisPortalItemPicker } from "../components/arcgis-portal-item-picker/customElement.js";
|
|
43
|
+
import type { ArcgisPortalItemPreview } from "../components/arcgis-portal-item-preview/customElement.js";
|
|
44
|
+
import type { ArcgisPortalItemPreviewCopy } from "../components/arcgis-portal-item-preview-copy/customElement.js";
|
|
45
|
+
import type { ArcgisPortalItemPreviewField } from "../components/arcgis-portal-item-preview-field/customElement.js";
|
|
46
|
+
import type { ArcgisPortalItemPreviewSublayer } from "../components/arcgis-portal-item-preview-sublayer/customElement.js";
|
|
47
|
+
import type { ArcgisPortalItemShareSummary } from "../components/arcgis-portal-item-share-summary/customElement.js";
|
|
48
|
+
import type { ArcgisPortalItemShareSummaryEditable } from "../components/arcgis-portal-item-share-summary-editable/customElement.js";
|
|
41
49
|
import type { ArcgisPortalItemThumbnail } from "../components/arcgis-portal-item-thumbnail/customElement.js";
|
|
42
50
|
import type { ArcgisPortalItemType } from "../components/arcgis-portal-item-type/customElement.js";
|
|
43
51
|
import type { ArcgisPortalMentionableTextArea } from "../components/arcgis-portal-mentionable-text-area/customElement.js";
|
|
44
52
|
import type { ArcGISPortalNavigation } from "../components/arcgis-portal-navigation/customElement.js";
|
|
53
|
+
import type { ArcgisPortalPreviewPanel } from "../components/arcgis-portal-preview-panel/customElement.js";
|
|
45
54
|
import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
55
|
+
import type { ArcgisPortalReviewLayerSharing } from "../components/arcgis-portal-review-layer-sharing/customElement.js";
|
|
56
|
+
import type { ArcgisPortalItemStatusCard } from "../components/arcgis-portal-item-status-card/customElement.js";
|
|
46
57
|
import type { ArcgisPortalReviewRelatedItems } from "../components/arcgis-portal-review-related-items/customElement.js";
|
|
47
58
|
import type { ArcgisPortalSublayerType } from "../components/arcgis-portal-sublayer-type/customElement.js";
|
|
48
59
|
import type { ArcgisPortalUserAvatar } from "../components/arcgis-portal-user-avatar/customElement.js";
|
|
@@ -74,16 +85,20 @@ interface StencilArcgisPortalAccountSwitcherSignout extends Partial<Pick<ArcgisP
|
|
|
74
85
|
onArcgisSignOutSwitchAccount?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutSwitchAccount"]>;
|
|
75
86
|
}
|
|
76
87
|
|
|
77
|
-
interface StencilArcgisPortalAddGpsMetadata extends Partial<Pick<ArcgisPortalAddGpsMetadata, "item" | "itemId" | "portal">>, StencilJsx.HTMLAttributes<ArcgisPortalAddGpsMetadata> {
|
|
88
|
+
interface StencilArcgisPortalAddGpsMetadata extends Partial<Pick<ArcgisPortalAddGpsMetadata, "item" | "itemId" | "messageOverrides" | "portal">>, StencilJsx.HTMLAttributes<ArcgisPortalAddGpsMetadata> {
|
|
78
89
|
onArcgisGPSMetadataFieldsAdded?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisGPSMetadataFieldsAdded"]>;
|
|
90
|
+
onArcgisPropertyChange?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisPropertyChange"]>;
|
|
79
91
|
onArcgisReadOnlyMode?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisReadOnlyMode"]>;
|
|
80
92
|
}
|
|
81
93
|
|
|
82
|
-
interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "disabledAgents" | "
|
|
94
|
+
interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "currentContext" | "defaultClosed" | "disabledAgents" | "entityToolPresets" | "navigationTargetMap" | "observabilityEnabled" | "portal" | "tools" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistant> {
|
|
83
95
|
onArcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
|
|
84
96
|
}
|
|
85
97
|
|
|
86
|
-
interface
|
|
98
|
+
interface StencilArcgisPortalAiAssistantDiagnostics extends Partial<Pick<ArcgisPortalAiAssistantDiagnostics, "contextUsages" | "registeredTools">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistantDiagnostics> {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
interface StencilArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "entityRequest" | "message" | "options" | "portal" | "requestId" | "showOtherOption" | "type">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistantInterrupt> {
|
|
87
102
|
onArcgisCancel?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisCancel"]>;
|
|
88
103
|
onArcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
|
|
89
104
|
}
|
|
@@ -92,6 +107,8 @@ interface StencilArcgisPortalBrowser extends Partial<Pick<ArcgisPortalBrowser, "
|
|
|
92
107
|
onArcgisAriaUpdate?: EventHandler<ArcgisPortalBrowser["arcgisAriaUpdate"]>;
|
|
93
108
|
onArcgisBrowserFilterClear?: EventHandler<ArcgisPortalBrowser["arcgisBrowserFilterClear"]>;
|
|
94
109
|
onArcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowser["arcgisBrowserFilterRemove"]>;
|
|
110
|
+
onArcgisPreviewClose?: EventHandler<ArcgisPortalBrowser["arcgisPreviewClose"]>;
|
|
111
|
+
/** @deprecated Use arcgisAriaUpdate instead. */
|
|
95
112
|
onAriaUpdate?: EventHandler<ArcgisPortalBrowser["ariaUpdate"]>;
|
|
96
113
|
}
|
|
97
114
|
|
|
@@ -140,8 +157,8 @@ interface StencilArcgisPortalClassificationFormElement extends Partial<Pick<Arcg
|
|
|
140
157
|
onArcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
141
158
|
}
|
|
142
159
|
|
|
143
|
-
interface StencilArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteItems, "active" | "disableLinks" | "items" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalDeleteItems> {
|
|
144
|
-
|
|
160
|
+
interface StencilArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteItems, "active" | "disableLinks" | "itemIds" | "items" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalDeleteItems> {
|
|
161
|
+
onArcgisClose?: EventHandler<ArcgisPortalDeleteItems["arcgisClose"]>;
|
|
145
162
|
onArcgisConfirm?: EventHandler<ArcgisPortalDeleteItems["arcgisConfirm"]>;
|
|
146
163
|
onArcgisError?: EventHandler<ArcgisPortalDeleteItems["arcgisError"]>;
|
|
147
164
|
}
|
|
@@ -149,7 +166,7 @@ interface StencilArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDelete
|
|
|
149
166
|
interface StencilArcgisPortalDeleteItemsReview extends Partial<Pick<ArcgisPortalDeleteItemsReview, "items" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalDeleteItemsReview> {
|
|
150
167
|
}
|
|
151
168
|
|
|
152
|
-
interface StencilArcgisPortalEntityPicker extends Partial<Pick<ArcgisPortalEntityPicker, "entityType" | "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalEntityPicker> {
|
|
169
|
+
interface StencilArcgisPortalEntityPicker extends Partial<Pick<ArcgisPortalEntityPicker, "entityType" | "icon" | "initialScope" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "scopeSelectionDisabled" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalEntityPicker> {
|
|
153
170
|
onArcgisSelectionChange?: EventHandler<ArcgisPortalEntityPicker["arcgisSelectionChange"]>;
|
|
154
171
|
}
|
|
155
172
|
|
|
@@ -202,7 +219,7 @@ interface StencilArcgisPortalGroupCard extends Partial<Pick<ArcgisPortalGroupCar
|
|
|
202
219
|
onArcgisGroupCardSelect?: EventHandler<ArcgisPortalGroupCard["arcgisGroupCardSelect"]>;
|
|
203
220
|
}
|
|
204
221
|
|
|
205
|
-
interface StencilArcgisPortalGroupPicker extends Partial<Pick<ArcgisPortalGroupPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupPicker> {
|
|
222
|
+
interface StencilArcgisPortalGroupPicker extends Partial<Pick<ArcgisPortalGroupPicker, "icon" | "initialScope" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "scopeSelectionDisabled" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupPicker> {
|
|
206
223
|
onArcgisSelectionChange?: EventHandler<ArcgisPortalGroupPicker["arcgisSelectionChange"]>;
|
|
207
224
|
}
|
|
208
225
|
|
|
@@ -225,21 +242,49 @@ interface StencilArcgisPortalItemBadges extends Partial<Pick<ArcgisPortalItemBad
|
|
|
225
242
|
interface StencilArcgisPortalItemBadge extends Partial<Pick<ArcgisPortalItemBadge, "appearance" | "badgeType" | "item" | "portal" | "scale" | "showTooltip" | "useProduction" | "user" | "width">>, StencilJsx.HTMLAttributes<ArcgisPortalItemBadge> {
|
|
226
243
|
}
|
|
227
244
|
|
|
228
|
-
interface StencilArcgisPortalItemCard extends Partial<Pick<ArcgisPortalItemCard, "actions" | "disabled" | "disableSelection" | "hideActionsStart" | "item" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "recycleBin" | "selected" | "selection" | "showAccess" | "showBadges" | "showBadgeTooltips" | "showDateUpdated" | "showFavorite" | "showFavoriteInActionsMenu" | "showItemType" | "showItemTypeHosted" | "showOwner" | "showSummary" | "showThumbnail" | "user" | "userPopupZIndex" | "view">>, StencilJsx.HTMLAttributes<ArcgisPortalItemCard> {
|
|
245
|
+
interface StencilArcgisPortalItemCard extends Partial<Pick<ArcgisPortalItemCard, "actions" | "allowedGeometries" | "disabled" | "disableSelection" | "groups" | "hideActionsStart" | "item" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "recycleBin" | "selected" | "selectedItems" | "selection" | "showAccess" | "showBadges" | "showBadgeTooltips" | "showDateUpdated" | "showFavorite" | "showFavoriteInActionsMenu" | "showItemType" | "showItemTypeHosted" | "showOwner" | "showSummary" | "showThumbnail" | "useProduction" | "user" | "userGroups" | "userPopupZIndex" | "view">>, StencilJsx.HTMLAttributes<ArcgisPortalItemCard> {
|
|
229
246
|
onArcgisItemBrowserCardPreview?: EventHandler<ArcgisPortalItemCard["arcgisItemBrowserCardPreview"]>;
|
|
230
247
|
onArcgisItemCardActionsOpen?: EventHandler<ArcgisPortalItemCard["arcgisItemCardActionsOpen"]>;
|
|
231
248
|
onArcgisItemCardInternalUIAction?: EventHandler<ArcgisPortalItemCard["arcgisItemCardInternalUIAction"]>;
|
|
232
249
|
onArcgisItemCardSelect?: EventHandler<ArcgisPortalItemCard["arcgisItemCardSelect"]>;
|
|
250
|
+
onArcgisItemCardSelectError?: EventHandler<ArcgisPortalItemCard["arcgisItemCardSelectError"]>;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
interface StencilArcgisPortalItemCardSublayerSelect extends Partial<Pick<ArcgisPortalItemCardSublayerSelect, "allowedGeometries" | "appearance" | "disabled" | "item" | "messageOverrides" | "portal" | "selectedItems" | "selection" | "width">>, StencilJsx.HTMLAttributes<ArcgisPortalItemCardSublayerSelect> {
|
|
254
|
+
onArcgisItemCardSelect?: EventHandler<ArcgisPortalItemCardSublayerSelect["arcgisItemCardSelect"]>;
|
|
255
|
+
onArcgisItemCardSelectError?: EventHandler<ArcgisPortalItemCardSublayerSelect["arcgisItemCardSelectError"]>;
|
|
233
256
|
}
|
|
234
257
|
|
|
235
258
|
interface StencilArcgisPortalItemFavorite extends Partial<Pick<ArcgisPortalItemFavorite, "iconOnly" | "item" | "portal" | "scale" | "showTooltip" | "user" | "width">>, StencilJsx.HTMLAttributes<ArcgisPortalItemFavorite> {
|
|
236
259
|
onArcgisItemFavoriteUpdate?: EventHandler<ArcgisPortalItemFavorite["arcgisItemFavoriteUpdate"]>;
|
|
237
260
|
}
|
|
238
261
|
|
|
239
|
-
interface StencilArcgisPortalItemPicker extends Partial<Pick<ArcgisPortalItemPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalItemPicker> {
|
|
262
|
+
interface StencilArcgisPortalItemPicker extends Partial<Pick<ArcgisPortalItemPicker, "icon" | "initialScope" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "scopeSelectionDisabled" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalItemPicker> {
|
|
240
263
|
onArcgisSelectionChange?: EventHandler<ArcgisPortalItemPicker["arcgisSelectionChange"]>;
|
|
241
264
|
}
|
|
242
265
|
|
|
266
|
+
interface StencilArcgisPortalItemPreview extends Partial<Pick<ArcgisPortalItemPreview, "groups" | "item" | "matchedSublayerIds" | "portal" | "showFieldStatistics" | "showHosted" | "user" | "userGroups">>, StencilJsx.HTMLAttributes<ArcgisPortalItemPreview> {
|
|
267
|
+
onArcgisClose?: EventHandler<ArcgisPortalItemPreview["arcgisClose"]>;
|
|
268
|
+
onArcgisExternalLink?: EventHandler<ArcgisPortalItemPreview["arcgisExternalLink"]>;
|
|
269
|
+
onArcgisSublayerChange?: EventHandler<ArcgisPortalItemPreview["arcgisSublayerChange"]>;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
interface StencilArcgisPortalItemPreviewCopy extends Partial<Pick<ArcgisPortalItemPreviewCopy, "heading" | "label" | "section" | "text">>, StencilJsx.HTMLAttributes<ArcgisPortalItemPreviewCopy> {
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
interface StencilArcgisPortalItemPreviewField extends Partial<Pick<ArcgisPortalItemPreviewField, "failed" | "field" | "layer" | "showStatistics">>, StencilJsx.HTMLAttributes<ArcgisPortalItemPreviewField> {
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
interface StencilArcgisPortalItemPreviewSublayer extends Partial<Pick<ArcgisPortalItemPreviewSublayer, "externalLinkHandler" | "item" | "layer" | "portal" | "showFieldStatistics">>, StencilJsx.HTMLAttributes<ArcgisPortalItemPreviewSublayer> {
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
interface StencilArcgisPortalItemShareSummary extends Partial<Pick<ArcgisPortalItemShareSummary, "autoFetchGroups" | "groups" | "item" | "messageOverrides" | "overlayPositioning" | "portal" | "scale" | "showHoverText" | "showText" | "userGroups">>, StencilJsx.HTMLAttributes<ArcgisPortalItemShareSummary> {
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
interface StencilArcgisPortalItemShareSummaryEditable extends Partial<Pick<ArcgisPortalItemShareSummaryEditable, "allowEdit" | "autoFetchGroups" | "groups" | "item" | "messageOverrides" | "overlayPositioning" | "portal" | "scale" | "showHoverText" | "showText" | "userGroups">>, StencilJsx.HTMLAttributes<ArcgisPortalItemShareSummaryEditable> {
|
|
285
|
+
onArcgisItemShareSummaryRequest?: EventHandler<ArcgisPortalItemShareSummaryEditable["arcgisItemShareSummaryRequest"]>;
|
|
286
|
+
}
|
|
287
|
+
|
|
243
288
|
interface StencilArcgisPortalItemThumbnail extends Partial<Pick<ArcgisPortalItemThumbnail, "cacheString" | "generate" | "item" | "portal" | "serviceInfo" | "useProduction" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalItemThumbnail> {
|
|
244
289
|
onArcgisItemThumbnailGenerated?: EventHandler<ArcgisPortalItemThumbnail["arcgisItemThumbnailGenerated"]>;
|
|
245
290
|
}
|
|
@@ -255,18 +300,32 @@ interface StencilArcgisPortalMentionableTextArea extends Partial<Pick<ArcgisPort
|
|
|
255
300
|
onArcgisUserMentionableTextAreaKeyDown?: EventHandler<ArcgisPortalMentionableTextArea["arcgisUserMentionableTextAreaKeyDown"]>;
|
|
256
301
|
}
|
|
257
302
|
|
|
258
|
-
interface StencilArcgisPortalNavigation extends Partial<Pick<ArcGISPortalNavigation, "clientId" | "currentPathname" | "disableNotebookServer" | "disableTrackViewer" | "maxWidth" | "portal" | "portalItem" | "product" | "productHref" | "projectMenuIcon" | "projectMenuOptions" | "projectMenuSaveIndicator" | "projectTitle" | "projectTitleSave">>, StencilJsx.HTMLAttributes<ArcGISPortalNavigation> {
|
|
303
|
+
interface StencilArcgisPortalNavigation extends Partial<Pick<ArcGISPortalNavigation, "clientId" | "currentPathname" | "disableNotebookServer" | "disableTrackViewer" | "maxWidth" | "portal" | "portalItem" | "product" | "productHref" | "projectMenuIcon" | "projectMenuOptions" | "projectMenuSaveIndicator" | "projectTitle" | "projectTitleSave" | "showNotifications">>, StencilJsx.HTMLAttributes<ArcGISPortalNavigation> {
|
|
259
304
|
onArcgisNavigate?: EventHandler<ArcGISPortalNavigation["arcgisNavigate"]>;
|
|
260
305
|
onArcgisNavigationProjectMenuClick?: EventHandler<ArcGISPortalNavigation["arcgisNavigationProjectMenuClick"]>;
|
|
261
306
|
onArcgisNavigationSignIn?: EventHandler<ArcGISPortalNavigation["arcgisNavigationSignIn"]>;
|
|
262
307
|
onArcgisNavigationSignOut?: EventHandler<ArcGISPortalNavigation["arcgisNavigationSignOut"]>;
|
|
263
308
|
}
|
|
264
309
|
|
|
310
|
+
interface StencilArcgisPortalPreviewPanel extends Partial<Pick<ArcgisPortalPreviewPanel, "fixed" | "open">>, StencilJsx.HTMLAttributes<ArcgisPortalPreviewPanel> {
|
|
311
|
+
onArcgisClose?: EventHandler<ArcgisPortalPreviewPanel["arcgisClose"]>;
|
|
312
|
+
onArcgisOpen?: EventHandler<ArcgisPortalPreviewPanel["arcgisOpen"]>;
|
|
313
|
+
}
|
|
314
|
+
|
|
265
315
|
interface StencilArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect, "itemId" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalReplacementItemRedirect> {
|
|
266
316
|
onArcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
267
317
|
}
|
|
268
318
|
|
|
269
|
-
interface
|
|
319
|
+
interface StencilArcgisPortalReviewLayerSharing extends Partial<Pick<ArcgisPortalReviewLayerSharing, "items" | "open" | "portal">>, StencilJsx.HTMLAttributes<ArcgisPortalReviewLayerSharing> {
|
|
320
|
+
onArcgisClose?: EventHandler<ArcgisPortalReviewLayerSharing["arcgisClose"]>;
|
|
321
|
+
onArcgisComplete?: EventHandler<ArcgisPortalReviewLayerSharing["arcgisComplete"]>;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
interface StencilArcgisPortalItemStatusCard extends Partial<Pick<ArcgisPortalItemStatusCard, "item" | "portal" | "previewed" | "state">>, StencilJsx.HTMLAttributes<ArcgisPortalItemStatusCard> {
|
|
325
|
+
onArcgisItemBrowserCardPreview?: EventHandler<ArcgisPortalItemStatusCard["arcgisItemBrowserCardPreview"]>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
interface StencilArcgisPortalReviewRelatedItems extends Partial<Pick<ArcgisPortalReviewRelatedItems, "portal" | "relatedItems" | "relatedItemsCount" | "showDependentItems" | "sourceItem" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalReviewRelatedItems> {
|
|
270
329
|
}
|
|
271
330
|
|
|
272
331
|
interface StencilArcgisPortalSublayerType extends Partial<Pick<ArcgisPortalSublayerType, "geometry" | "hideIcon" | "hideName" | "hideType" | "name" | "renderer" | "scale" | "type" | "underline">>, StencilJsx.HTMLAttributes<ArcgisPortalSublayerType> {
|
|
@@ -275,7 +334,7 @@ interface StencilArcgisPortalSublayerType extends Partial<Pick<ArcgisPortalSubla
|
|
|
275
334
|
interface StencilArcgisPortalUserAvatar extends Partial<Pick<ArcgisPortalUserAvatar, "checkOnline" | "description" | "heading" | "hideAvatar" | "portal" | "scale" | "showName" | "underline" | "user" | "username" | "wrap">>, StencilJsx.HTMLAttributes<ArcgisPortalUserAvatar> {
|
|
276
335
|
}
|
|
277
336
|
|
|
278
|
-
interface StencilArcgisPortalUserPicker extends Partial<Pick<ArcgisPortalUserPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalUserPicker> {
|
|
337
|
+
interface StencilArcgisPortalUserPicker extends Partial<Pick<ArcgisPortalUserPicker, "icon" | "initialScope" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "scopeSelectionDisabled" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalUserPicker> {
|
|
279
338
|
onArcgisSelectionChange?: EventHandler<ArcgisPortalUserPicker["arcgisSelectionChange"]>;
|
|
280
339
|
}
|
|
281
340
|
|
|
@@ -299,6 +358,7 @@ interface ExposedElements {
|
|
|
299
358
|
"arcgis-portal-account-switcher-signout": StencilArcgisPortalAccountSwitcherSignout;
|
|
300
359
|
"arcgis-portal-add-gps-metadata": StencilArcgisPortalAddGpsMetadata;
|
|
301
360
|
"arcgis-portal-ai-assistant": StencilArcgisPortalAiAssistant;
|
|
361
|
+
"arcgis-portal-ai-assistant-diagnostics": StencilArcgisPortalAiAssistantDiagnostics;
|
|
302
362
|
"arcgis-portal-ai-assistant-interrupt": StencilArcgisPortalAiAssistantInterrupt;
|
|
303
363
|
"arcgis-portal-browser": StencilArcgisPortalBrowser;
|
|
304
364
|
"arcgis-portal-browser-actions": StencilArcgisPortalBrowserActions;
|
|
@@ -330,13 +390,23 @@ interface ExposedElements {
|
|
|
330
390
|
"arcgis-portal-item-badges": StencilArcgisPortalItemBadges;
|
|
331
391
|
"arcgis-portal-item-badge": StencilArcgisPortalItemBadge;
|
|
332
392
|
"arcgis-portal-item-card": StencilArcgisPortalItemCard;
|
|
393
|
+
"arcgis-portal-item-card-sublayer-select": StencilArcgisPortalItemCardSublayerSelect;
|
|
333
394
|
"arcgis-portal-item-favorite": StencilArcgisPortalItemFavorite;
|
|
334
395
|
"arcgis-portal-item-picker": StencilArcgisPortalItemPicker;
|
|
396
|
+
"arcgis-portal-item-preview": StencilArcgisPortalItemPreview;
|
|
397
|
+
"arcgis-portal-item-preview-copy": StencilArcgisPortalItemPreviewCopy;
|
|
398
|
+
"arcgis-portal-item-preview-field": StencilArcgisPortalItemPreviewField;
|
|
399
|
+
"arcgis-portal-item-preview-sublayer": StencilArcgisPortalItemPreviewSublayer;
|
|
400
|
+
"arcgis-portal-item-share-summary": StencilArcgisPortalItemShareSummary;
|
|
401
|
+
"arcgis-portal-item-share-summary-editable": StencilArcgisPortalItemShareSummaryEditable;
|
|
335
402
|
"arcgis-portal-item-thumbnail": StencilArcgisPortalItemThumbnail;
|
|
336
403
|
"arcgis-portal-item-type": StencilArcgisPortalItemType;
|
|
337
404
|
"arcgis-portal-mentionable-text-area": StencilArcgisPortalMentionableTextArea;
|
|
338
405
|
"arcgis-portal-navigation": StencilArcgisPortalNavigation;
|
|
406
|
+
"arcgis-portal-preview-panel": StencilArcgisPortalPreviewPanel;
|
|
339
407
|
"arcgis-portal-replacement-item-redirect": StencilArcgisPortalReplacementItemRedirect;
|
|
408
|
+
"arcgis-portal-review-layer-sharing": StencilArcgisPortalReviewLayerSharing;
|
|
409
|
+
"arcgis-portal-item-status-card": StencilArcgisPortalItemStatusCard;
|
|
340
410
|
"arcgis-portal-review-related-items": StencilArcgisPortalReviewRelatedItems;
|
|
341
411
|
"arcgis-portal-sublayer-type": StencilArcgisPortalSublayerType;
|
|
342
412
|
"arcgis-portal-user-avatar": StencilArcgisPortalUserAvatar;
|
package/dist/types/user.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type PortalUser from "@arcgis/core/portal/PortalUser.js";
|
|
1
2
|
import type { PortalUserProperties } from "@arcgis/core/portal/PortalUser.js";
|
|
2
3
|
import type { PortalGroupSourceJSON, MemberType } from "./group.js";
|
|
3
4
|
import type { StandardAccessLevel } from "./item.js";
|
|
@@ -63,15 +64,8 @@ export interface SearchResultUser {
|
|
|
63
64
|
thumbnail?: string | null;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
/**
|
|
67
|
-
export
|
|
68
|
-
description: string;
|
|
69
|
-
fullName: string;
|
|
70
|
-
username: string;
|
|
71
|
-
thumbnail: string | null;
|
|
72
|
-
id: string;
|
|
73
|
-
url: string;
|
|
74
|
-
}
|
|
67
|
+
/** User or verified-organization information supported by portal presentation components. */
|
|
68
|
+
export type UserPresentation = CommunityUser | ItemUserInfo | PortalUser | SearchResultUser;
|
|
75
69
|
|
|
76
70
|
export type LinkedAccount = {
|
|
77
71
|
clientAppAccessAllowed: boolean;
|
|
@@ -84,4 +78,14 @@ export type LinkedAccount = {
|
|
|
84
78
|
thumbnail: string;
|
|
85
79
|
userType: string;
|
|
86
80
|
username: string;
|
|
87
|
-
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** Short user info made specifically for the UI */
|
|
84
|
+
export interface ItemUserInfo {
|
|
85
|
+
description: string;
|
|
86
|
+
fullName: string;
|
|
87
|
+
username: string;
|
|
88
|
+
thumbnail: string | null;
|
|
89
|
+
id: string;
|
|
90
|
+
url: string;
|
|
91
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Searchable catalog fields. Additional consumer fields are preserved in matches. */
|
|
2
|
+
export interface SemanticSearchItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
hints?: readonly string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Multiple vectors may refer to one item; its strongest similarity is used. */
|
|
10
|
+
export interface SemanticSearchEmbedding {
|
|
11
|
+
itemId: string;
|
|
12
|
+
vector: readonly number[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SemanticSearchMatch<T extends SemanticSearchItem> {
|
|
16
|
+
item: T;
|
|
17
|
+
/** Reciprocal Rank Fusion ordering score, not a confidence or probability. */
|
|
18
|
+
score: number;
|
|
19
|
+
keywordRank?: number;
|
|
20
|
+
keywordScore?: number;
|
|
21
|
+
semanticRank?: number;
|
|
22
|
+
semanticScore?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SemanticSearchResult<T extends SemanticSearchItem> {
|
|
26
|
+
/** True when semantic ranking is unavailable and only keywords were used. */
|
|
27
|
+
degraded: boolean;
|
|
28
|
+
degradedReason?: string;
|
|
29
|
+
matches: SemanticSearchMatch<T>[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface SemanticSearchOptions {
|
|
33
|
+
/** Ready-to-use catalog vectors. Without vectors or a loader, search is keyword-only. */
|
|
34
|
+
embeddings?: readonly SemanticSearchEmbedding[];
|
|
35
|
+
/** Optional loader for callers that want to wait for catalog vectors. Takes precedence over embeddings. */
|
|
36
|
+
loadEmbeddings?: () => Promise<readonly SemanticSearchEmbedding[]>;
|
|
37
|
+
/** Defaults to the SDK's signed-in default Portal session. */
|
|
38
|
+
embedQuery?: (query: string) => Promise<readonly number[]>;
|
|
39
|
+
/** Maximum distinct matches. Defaults to 5; non-positive values return no matches. */
|
|
40
|
+
topN?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Searches a consumer-supplied catalog with weighted BM25 keywords and cosine
|
|
45
|
+
* similarity, combining both rankings with Reciprocal Rank Fusion.
|
|
46
|
+
*
|
|
47
|
+
* Titles, hints, and descriptions have keyword weights of 3, 2, and 1.
|
|
48
|
+
* Semantic matches require a cosine similarity of at least 0.65. Ties are
|
|
49
|
+
* resolved by semantic score, keyword score, then item ID.
|
|
50
|
+
*
|
|
51
|
+
* Catalogs must have unique IDs. Treat the catalog as immutable and pass a new
|
|
52
|
+
* array when its searchable fields change; keyword indexes are cached by array.
|
|
53
|
+
* Embedding failures return keyword matches with explicit degraded diagnostics.
|
|
54
|
+
* Catalog embedding generation and caching are owned by the caller.
|
|
55
|
+
*
|
|
56
|
+
* @param query
|
|
57
|
+
* @param catalog
|
|
58
|
+
* @param options
|
|
59
|
+
*/
|
|
60
|
+
export function searchCatalog<T extends SemanticSearchItem>(query: string, catalog: readonly T[], options?: SemanticSearchOptions): Promise<SemanticSearchResult<T>>;
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -9,6 +9,16 @@ export interface IConfig {
|
|
|
9
9
|
helpBase?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/** A generic API response interface */
|
|
13
|
+
export interface APIResponse {
|
|
14
|
+
success?: boolean;
|
|
15
|
+
code?: number;
|
|
16
|
+
messageCode?: string;
|
|
17
|
+
message?: string;
|
|
18
|
+
details?: unknown[];
|
|
19
|
+
status?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
export interface FieldDeleteOptions {
|
|
13
23
|
item: PortalItem;
|
|
14
24
|
portal: Portal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/portal-components",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.40",
|
|
4
4
|
"description": "ArcGIS Portal Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -38,23 +38,24 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcgis/ai-components": "6.0.0-next.
|
|
42
|
-
"@arcgis/
|
|
43
|
-
"@arcgis/lumina
|
|
44
|
-
"@arcgis/
|
|
45
|
-
"@arcgis/
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@langchain/
|
|
41
|
+
"@arcgis/ai-components": "6.0.0-next.40",
|
|
42
|
+
"@arcgis/common-components": "6.0.0-next.40",
|
|
43
|
+
"@arcgis/lumina": "6.0.0-next.40",
|
|
44
|
+
"@arcgis/lumina-toolkit": "6.0.0-next.40",
|
|
45
|
+
"@arcgis/map-components": "6.0.0-next.40",
|
|
46
|
+
"@arcgis/toolkit": "6.0.0-next.40",
|
|
47
|
+
"@esri/arcgis-html-sanitizer": "~4.2.0",
|
|
48
|
+
"@langchain/core": "^1.4.0",
|
|
49
|
+
"@langchain/langgraph": "^1.7.3",
|
|
49
50
|
"@lit/task": "^1.0.3",
|
|
50
51
|
"lit": "^3.3.0",
|
|
51
|
-
"marked": "~18.
|
|
52
|
+
"marked": "~18.2.0",
|
|
52
53
|
"tslib": "^2.8.1",
|
|
53
|
-
"zod": "^4.
|
|
54
|
+
"zod": "^4.6.7"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
|
-
"@arcgis/core": "6.0.0-next.
|
|
57
|
-
"@esri/calcite-components": "^5.2.
|
|
57
|
+
"@arcgis/core": "6.0.0-next.40",
|
|
58
|
+
"@esri/calcite-components": "^5.2.1"
|
|
58
59
|
},
|
|
59
60
|
"css.customData": [
|
|
60
61
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/23NXHNPU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./URQML7KV.js";import"./4MUB6TL6.js";import"./KV4ZZSNW.js";import"./EMJQI4MA.js";import"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([a])=>{return a},a)
|
package/dist/cdn/24QSQLRY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import c from"./DHMNNIXZ.js";import b from"./XYMBRPC7.js";import"./K75JTQPW.js";import"./KV4ZZSNW.js";import"./EMJQI4MA.js";import{a as f}from"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{L as d,M as h,O as p,R as g,S as y,h as m,j as a}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([,{b:x}])=>{var $=m`:host{display:inline-flex;align-items:center}:host([scale="s"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--2);--arcgis-portal-item-type-spacing: 1rem}:host([scale="m"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--1);--arcgis-portal-item-type-spacing: 1rem}:host([scale="l"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size-0);--arcgis-portal-item-type-spacing: 1rem}.icon{display:block;flex-grow:0;flex-shrink:0;width:var(--arcgis-portal-item-type-spacing);height:var(--arcgis-portal-item-type-spacing)}.text{color:var(--calcite-text-color-2);font-size:var(--arcgis-portal-item-type-font-size);line-height:1.25rem}.text--ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.text--spaced{margin-inline-start:calc(var(--arcgis-portal-item-type-spacing) / 2);word-wrap:break-word;word-break:break-word}`,n=class extends d{constructor(){super(...arguments),this.messages=f({blocking:!0}),this.icon=null,this.displayName="",this.displayNameHosted="",this.scale="s"}static{this.properties={icon:16,displayName:16,displayNameHosted:16,item:0,serviceInfo:0,portal:0,user:0,scale:3,hideText:5,hideIcon:5,ellipsis:5,showHosted:5}}static{this.styles=$}async load(){this.item&&await this.getItemDisplayInformation()}async getItemDisplayInformation(){let{messages:o,user:r,serviceInfo:l,portal:e,item:t}=this,{displayName:i,displayNameHosted:c,icon:s}=await x({item:t,messages:o,serviceInfo:l,user:r,portal:e||t.portal});this.displayName=i,this.displayNameHosted=c,this.icon=s}render(){let{showHosted:o,displayNameHosted:r,scale:l,icon:e,hideText:t,hideIcon:i,ellipsis:c}=this;if(!e)return null;let s=o?r:this.displayName,v=s?.includes("(")?"":"‭",w=y(`./assets/portal-item-type/icons/${e}16.svg`),u=this.hideText?s:void 0;return a`${!i&&a`<span class="icon"><img src=${w??p} alt=${(u||"")??p} class=${`icon icon--${l}`}></span>`||""}${!t&&a`<span class=${h({text:!0,"text--spaced":!i,"text--ellipsis":c})} .innerHTML=${`${v}${s}`}></span>`||""}`}};g("arcgis-portal-item-type",n);return n},b,c)
|
package/dist/cdn/2CN754CY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import g from"./Z3HGPBOR.js";import"./PNIFJ5DQ.js";import f from"./URQML7KV.js";import e from"./QROXYP6V.js";import"./4KTRAA2J.js";import d from"./JIJO4CAS.js";import"./PKA745KL.js";import"./JOUR2FB2.js";import"./4MUB6TL6.js";import"./VDXESPJK.js";import"./DAAON2UO.js";import c from"./RQYNPDN3.js";import b from"./ROX3GKKA.js";import"./TWCJJCPC.js";import"./AXOBMX3S.js";import a from"./PMRFXB4F.js";import"./K75JTQPW.js";import"./KV4ZZSNW.js";import"./EMJQI4MA.js";import"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{R as r}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([,,,,,,e])=>{var t=class extends e{constructor(){super(...arguments),this.entityType="group",this.selected=null}static{this.properties={entityType:32,selected:0}}};r("arcgis-portal-group-picker",t);return t},a,b,c,d,e,f,g)
|
package/dist/cdn/2FQKDFEE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./QROXYP6V.js";import"./4KTRAA2J.js";import"./KV4ZZSNW.js";import"./EMJQI4MA.js";import"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([a])=>{return a},a)
|
package/dist/cdn/2MPQ5IWJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./SGDDFWCJ.js";import"./U3KMGSVH.js";import"./4KTRAA2J.js";import"./K75JTQPW.js";import"./KV4ZZSNW.js";import"./EMJQI4MA.js";import"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([a])=>{return a},a)
|
package/dist/cdn/3CQKCUM5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as _}from"./ZDDN7UKS.js";import f from"./XYMBRPC7.js";import e from"./CD5UWSCP.js";import c from"./N5QLV56W.js";import"./TOTWYGB3.js";import"./PKA745KL.js";import a from"./PMRFXB4F.js";import"./K75JTQPW.js";import{c as x}from"./KV4ZZSNW.js";import"./EMJQI4MA.js";import{a as B}from"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{L as b,O as $,R as S,h as k,j as d,w as I}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([P,T,{b:f},{a:R},,{b:h}])=>{async function L(i,e,t=!1){try{let n=new Map;for(let s of i){let{id:a,owner:l}=s,c=n.get(l)??[];c.push(a),n.set(l,c)}let r=[];for(let[s,a]of n){let l=`${e.restUrl}/content/users/${encodeURIComponent(s)}/deleteItems`;for(let c of _(a,100)){let o=P(l,{method:"post",query:{f:"json",items:c.join(","),permanentDelete:t}});r.push(o.then(({data:u})=>u))}}return{result:(await Promise.all(r)).flatMap(({results:s})=>s)}}catch{return{error:{code:"unhandledError"}}}}async function C(i){let{item:e,portal:t,permanentlyDelete:n}=i,{id:r,owner:s}=e;if(!r||!s)return{error:{code:"unhandledError"}};let a=t.recycleBinEnabled&&!n?"/canRecycle":"/canDelete",l=`${t.restUrl}/content/users/${encodeURIComponent(s)}/items/${r}${a}`;try{return{result:(await P(l,{query:{f:"json"}})).data}}catch(c){let o=c.details?.raw;switch(o?.messageCode){case"CONT_00481":case"CONT_00483":case"CONT_00484":return{error:{code:"itemHasDependentItems"}};case"CONT_0048":return{error:{code:"itemDeleteProtected"}};default:return{error:{code:"unhandledError",message:o?.message}}}}}function F(i,e){return(i.relatedItems??[]).map(t=>A(t,e))}function A(i,e){return i instanceof T?i:new T({...i,portal:e})}async function y({itemId:i,portal:e,relationship:t,includeRecycleBin:n,nextkey:r}){let{relationshipType:s,direction:a}=t,l=`${e.restUrl}/content/items/${i}/relatedItems`;try{let c=await f({url:l,portal:e,params:{includeRecycleBin:n,f:"json",relationshipType:s?Array.isArray(s)?s.join(","):s:void 0,direction:a,nextkey:r}});return{success:!0,result:{...c,relatedItems:F(c,e)}}}catch(c){return{success:!1,error:c}}}async function N({itemId:i,portal:e,relationship:t,includeRecycleBin:n,num:r,nextkey:s}){let{relationshipRules:a,direction:l}=t,c=`${e.restUrl}/content/items/${i}/relatedItems`;try{let o=await f({url:c,portal:e,params:{includeRecycleBin:n,f:"json",...a?.length?{relationshipRules:a.join(",")}:{},includeSystemManaged:"true",excludedFlags:"legacy,exclude",num:r,direction:l,nextkey:s}});return{success:!0,result:{...o,relatedItems:F(o,e)}}}catch(o){return{success:!1,error:o}}}async function E(i,e){let{id:t,type:n,typeKeywords:r=[]}=i;if(!t)return null;let s=["Scene Service","Map Service","WFS","OGCFeatureServer","Vector Tile Service","3DTiles Service"].includes(n),a=["Map Service","Vector Tile Service"].includes(n),l=o=>o?.typeKeywords?.includes("View Service")??!1,c=()=>s?[{relationshipType:["Service2Service"],direction:"reverse"},{relationshipType:["Service2Data"],direction:"forward"}]:r.includes("Bulk Published Service")?{relationshipType:["DataStore2BPService"],direction:"reverse"}:n==="Geoprocessing Service"&&r.includes("Notebook Web Tool")?{relationshipType:["Notebook2WebTool"],direction:"reverse"}:r.includes("Route Layer")?{relationshipType:["Service2Route"],direction:"reverse"}:n==="Mobile Application"?{relationshipType:["MobileApp2Code"],direction:"reverse"}:n==="Map Package"?{relationshipType:["Area2Package"],direction:"reverse"}:n==="Feature Service"?{relationshipType:["Service2Layer"],direction:"reverse"}:r.includes("Document")?{relationshipType:["Item2Attachment"],direction:"reverse"}:n==="Application Configuration"?{relationshipType:["Map2AppConfig"],direction:"reverse"}:{relationshipType:["Service2Data"],direction:"forward"};try{let o=c();if(!o)return null;if(!Array.isArray(o))return{sourceData:(await y({itemId:t,portal:e,relationship:o})).result?.relatedItems?.[0]??null,relationship:o};if(s){let u={relationshipType:["Service2Service"],direction:"reverse"},v=await y({itemId:t,portal:e,relationship:u}),g=v.result?.total?v.result.relatedItems.shift()??null:null;if(a&&!l(g)||!g){u={relationshipType:["Service2Data"],direction:"forward"};let w=await y({itemId:t,portal:e,relationship:u});return{sourceData:w.result?.total?w.result.relatedItems.shift()??g:g,relationship:u}}return{sourceData:g,relationship:u}}return null}catch(o){return console.error(o),{sourceData:null,relationship:{direction:"forward"}}}}async function H(i,e){let{id:t,type:n,typeKeywords:r=[]}=i;try{let s=n==="Notebook"?{relationshipType:["Notebook2WebTool"],direction:"forward"}:r.includes("Has Related Route Layers")?{relationshipType:["Service2Route"],direction:"forward"}:r.includes("Hosted Service")||n==="Feature Service"?{relationshipType:["Service2Service"],direction:n==="Feed"?"reverse":"forward"}:n==="Data Store"||r.includes("ArcGIS Server")?{relationshipType:["DataStore2BPService"],direction:"forward"}:{relationshipType:["Service2Data"],direction:"reverse"},a=await y({itemId:t,portal:e,relationship:s});return{resultData:{items:a.result?.total?a.result.relatedItems:null,count:a.result?.total??0},relationship:s}}catch(s){return console.error(s),{resultData:{items:null,count:0},relationship:{direction:"forward"}}}}async function W(i,e){let{id:t}=i;try{return(await y({itemId:t,portal:e,relationship:{relationshipType:["ReplacementItem2Item"],direction:"forward"}})).result?.relatedItems??[]}catch(n){return console.error(n),[]}}function U(i){return!!(i&&"inRecycleBin"in i&&i.inRecycleBin===!0)}function m(i){return i.updatedStatus??i.kind}function p(i){return{...i,originalStatus:i.originalStatus??i.kind}}function j(i,e){return{...i,kind:e,originalStatus:i.originalStatus??i.kind}}async function q(i,e){let t=await N({itemId:i.id,portal:e,relationship:{direction:"forward"}}),n=await E(i,e),r=await H(i,e),s=await W(i,e),a={usedByItems:t.result?.relatedItems??[],sourceData:n?.sourceData??null,resultData:r.resultData.items,replacementItemFor:s.length?s:null},{result:l,error:c}=await C({item:i,portal:e,permanentlyDelete:!1});if(c)switch(c.code){case"itemHasDependentItems":return p({item:i,...a,kind:"cannotDelete",reason:"hasDependentItems"});case"itemDeleteProtected":return p({item:i,...a,kind:"cannotDelete",reason:"deleteProtected"});default:return p({item:i,...a,kind:"cannotDelete",reason:"uncaught"})}if(!l?.success){let{result:o}=await C({item:i,portal:e,permanentlyDelete:!0});return o?.success?p({item:i,...a,kind:"permanentlyDelete",reason:"notSupported"}):p({item:i,...a,kind:"cannotDelete",reason:"uncaught"})}return p({item:i,...a,kind:"recycle"})}async function O(i,e){let t=await Promise.all(i.map(async n=>await q(n,e)));return z(t)}function z(i){let e=new Map;for(let t of i)t.item.id&&e.set(t.item.id,t);return i.map(t=>{if(t.kind!=="cannotDelete"||t.reason!=="hasDependentItems"||!t.item.id)return t;let n=G(t.resultData,e);if(n.length===0)return t;let r=n.every(a=>e.has(a)),s=n.every(a=>!e.get(a)?.item.protected);return r&&s?j(t,"recycle"):t})}function G(i,e,t=new Set){if(!i?.length)return[];let n=i.filter(s=>!U(s)),r=new Set;for(;n.length>0;){let s=n.shift().id;if(!s||t.has(s))continue;t.add(s),r.add(s);let a=e.get(s)?.resultData??[];n.push(...a.filter(l=>!U(l)))}return[...r]}var K=k`:host{display:block}calcite-dialog{--calcite-dialog-content-space: 0;--calcite-dialog-background-color: var(--calcite-color-background)}calcite-panel{display:flex;flex-direction:column;gap:.75rem;>*{margin-inline:.75rem}}.panel__content{width:100%;box-sizing:border-box}.bucket__content{display:flex;align-items:flex-start;gap:.75rem;width:100%}.bucket__icon{flex-shrink:0}.bucket__details{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.bucket__header{font-weight:500}.bucket__label{margin-inline-end:.25rem}.bucket__description{line-height:1.35;font-size:var(--calcite-font-size--1)}.bucket__link{display:flex;align-items:center;min-height:1.5rem}.panel__checkbox{width:100%;padding-block:.75rem;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1)}.panel__related-items{margin-top:1rem;border:1px solid var(--calcite-color-border-2)}.panel__related-items-icon{color:var(--calcite-color-status-warning)}.panel__related-items-notice{padding-bottom:.75rem}arcgis-portal-review-related-items{margin-bottom:.75rem}.discouraged-items-warning{margin-bottom:.75rem}.header-description{font-size:var(--calcite-font-size--1);font-weight:400}`;function V({recycleItems:i,cannotDeleteItems:e,permanentlyDeleteItems:t}){return[...i,...e,...t]}function J(i){return i.map(({item:e,sourceData:t,resultData:n,replacementItemFor:r})=>({item:e,sourceData:t,resultData:n,replacementItemFor:r}))}function Q(i,e,t){return!e&&!!t?.length&&!h(i)}function X({selectedItems:i}){let e=[];return e.push(...i.flatMap(({item:t,sourceData:n,resultData:r,replacementItemFor:s})=>{let a=Q(t,n,r),l=!!(r?.some(c=>!c.inRecycleBin)&&!Y(t,r)&&!Z(t,r));return a&&l?[{item:t,reason:"dependent",offendingItems:r??void 0}]:s&&s?.length>0?[{item:t,reason:"replacement",offendingItems:s}]:[]})),e}function Y(i,e){let t=e[0];return i.type==="Feed"&&h(i)&&e.length===1&&t?.type==="Feature Service"&&h(t)}function Z(i,e){let t=e[0];return i.type==="Feature Service"&&h(i)&&e.length===1&&t?.type==="Feed"&&h(t)}function M({id:i,linkText:e,label:t,placement:n,items:r,portal:s,user:a}){return d`<calcite-link id=${i??$}>${e}</calcite-link><calcite-popover .label=${t} .referenceElement=${i} .placement=${n} auto-close><calcite-list .label=${t} selection-mode=none>${r.map(l=>d`<calcite-list-item .label=${l.title??""} @calciteListItemSelect=${()=>{let c=l.itemPageUrl;c&&window.open(c.replace("sharing/rest/",""),"_blank","noopener,noreferrer")}}><span slot=content-start><arcgis-portal-item-type .item=${l} .portal=${s} .user=${a} hide-text></arcgis-portal-item-type></span><span slot=content>${l.title}</span></calcite-list-item>`)}</calcite-list></calcite-popover>`}var D=class extends b{constructor(){super(...arguments),this.deleteStatusRequestId=0,this.updatedCannotDeleteItemIds=new Set,this.messages=B({blocking:!0}),this.isLoading=!0,this.hasConfirmedReview=!1,this.hasReviewedSelectedItems=!1,this.cannotDeleteItems=[],this.recycleItems=[],this.permanentlyDeleteItems=[],this.deprecateItems=[],this.excludeItems=[],this.reviewingDirectlyUsedByItems=!1,this.reviewDecision=null,this.active=!0,this.items=[],this.user=null,this.disableLinks=!1,this.arcgisCancel=I(),this.arcgisConfirm=I(),this.arcgisError=I()}static{this.properties={isLoading:16,hasConfirmedReview:16,hasReviewedSelectedItems:16,cannotDeleteItems:16,recycleItems:16,permanentlyDeleteItems:16,deprecateItems:16,excludeItems:16,reviewingDirectlyUsedByItems:16,reviewDecision:16,active:5,items:0,portal:0,user:0,disableLinks:5}}static{this.styles=K}willUpdate(e){let t=e.has("items")||e.has("portal")||e.has("user")||e.has("active");this.active&&t&&(this.user??=this.portal?.user||null,this.resetState(),this.determineDeleteStatus(++this.deleteStatusRequestId))}async handleReviewDecision(e){let t=this.itemsWithImpactedItems.map(({item:a})=>a),n=e==="delete"?"recycle":e==="deprecate"?"deprecate":"exclude",r=[...this.recycleItems,...this.deprecateItems,...this.excludeItems],s=e==="delete"&&r.some(a=>m(a)!=="recycle"&&t.some(({id:l})=>l===a.item.id));for(let a of r){if(!t.some(({id:c})=>c===a.item.id))continue;let l=a.originalStatus??a.kind;a.originalStatus=l,a.updatedStatus=n}if(this.reviewDecision={action:e,items:t},this.hasConfirmedReview=!0,this.reviewingDirectlyUsedByItems=!1,this.recycleItems=r.filter(a=>m(a)==="recycle"),this.deprecateItems=r.filter(a=>m(a)==="deprecate"),this.excludeItems=r.filter(a=>m(a)==="exclude"),e!=="delete"||s){this.isLoading=!0;let a=[...this.cannotDeleteItems,...this.recycleItems,...this.permanentlyDeleteItems].map(({item:l})=>l);await this.determineDeleteStatus(++this.deleteStatusRequestId,a)}}async handleDelete(){let{result:e=[]}=await L(this.recycleItems.map(({item:t})=>t),{restUrl:this.portal.restUrl});this.closeDialog(),this.arcgisConfirm.emit({deletedItems:e,permanentlyDeletedItems:[],deletedItemsCount:e.length,permanentlyDeletedItemsCount:0})}handleDialogClose(){this.active&&(this.closeDialog(),this.arcgisCancel.emit())}closeDialog(){this.active=!1,this.resetState()}resetState(){this.isLoading=!0,this.hasConfirmedReview=!1,this.hasReviewedSelectedItems=!1,this.cannotDeleteItems=[],this.recycleItems=[],this.permanentlyDeleteItems=[],this.deprecateItems=[],this.excludeItems=[],this.reviewingDirectlyUsedByItems=!1,this.reviewDecision=null,this.updatedCannotDeleteItemIds.clear(),++this.deleteStatusRequestId}async determineDeleteStatus(e,t=this.items){let n=new Set(this.recycleItems.map(({item:s})=>s.id).filter(s=>!!s)),r=await O(t,this.portal);if(e===this.deleteStatusRequestId){this.cannotDeleteItems=r.filter(s=>m(s)==="cannotDelete");for(let s of this.cannotDeleteItems)s.item.id&&n.has(s.item.id)&&this.updatedCannotDeleteItemIds.add(s.item.id);this.recycleItems=r.filter(s=>m(s)==="recycle"),this.permanentlyDeleteItems=r.filter(s=>m(s)==="permanentlyDelete"),this.isLoading=!1}}get itemsWithImpactedItems(){let e=new Set(this.items.map(({id:t})=>t));return[...this.recycleItems,...this.deprecateItems,...this.excludeItems].map(t=>({...t,usedByItems:t.usedByItems.filter(({id:n})=>!e.has(n))})).filter(({usedByItems:t})=>t.length>0)}get itemsHaveImpactedItems(){return this.itemsWithImpactedItems.length>0}get itemsNeedReview(){return this.itemsWithImpactedItems.some(e=>m(e)==="recycle")}get deleteButtonEnabled(){return!this.isLoading&&(!this.itemsNeedReview||this.hasConfirmedReview)}get markedForDeprecation(){return this.reviewDecision?.action==="deprecate"?this.reviewDecision.items:[]}get deleteMode(){return[this.recycleItems,this.deprecateItems,this.excludeItems,this.permanentlyDeleteItems].filter(e=>e.length>0).length>1?"mixed":this.markedForDeprecation.length>0?"deprecate":this.permanentlyDeleteItems.length>0?"permanentlyDelete":this.recycleItems.length>0?"delete":(this.cannotDeleteItems.length>0,"none")}getHeaderText(){return this.reviewingDirectlyUsedByItems?this.messages.reviewItemsCount.replace("{count}",`${this.itemsWithImpactedItems.length}`):this.items.length===1?this.messages.deleteItem:this.messages.deleteItems}getHeaderDescription(){return this.items.length<=1?"":this.reviewingDirectlyUsedByItems?this.messages.reviewItemsDescription:this.messages.selectedItems.replace("{count}",`${this.items.length}`)}getConfirmButtonText(){switch(this.deleteMode){case"mixed":return this.messages.confirm;case"deprecate":return this.messages.deprecate;case"permanentlyDelete":return this.messages.permanentlyDelete;case"delete":return this.messages.delete;default:return this.messages.delete}}renderBucket({icon:e,label:t,description:n,link:r,bucket:s,updated:a=!1}){return d`<calcite-block scale=l expanded><div class="bucket__content"><calcite-icon class="bucket__icon" scale=l .icon=${e}></calcite-icon><div class="bucket__details"><div class="bucket__header"><span class="bucket__label">${t}</span><span>${this.renderBucketItems(s)}</span></div><span class="bucket__description">${n}</span>${r&&d`<div class="bucket__link"><calcite-link .href=${r.href} target=_blank icon-start=launch>${r.text??this.messages.moreInfo}</calcite-link></div>`||""}</div>${a&&d`<calcite-chip .label=${t}>Updated</calcite-chip>`||""}</div></calcite-block>`}renderBucketItems(e=[]){if(e.length===0)return null;if(e.length===1){let r=e[0].item,s=x({portal:this.portal});return d`<calcite-link .href=${s} target=_blank><arcgis-portal-item-type .item=${r} .portal=${this.portal} .user=${this.user} hide-text></arcgis-portal-item-type>${r.title}</calcite-link>`}let t=`delete-items-bucket-${e.map(({item:r})=>r.id).join("-")}`,n=e.map(({item:r})=>r);return M({id:t,linkText:e.length,label:this.messages.bucketItems.replace("{count}",String(e.length)),placement:"bottom-start",items:n,portal:this.portal,user:this.user})}renderRelatedItemsPopover(e){let t=e.flatMap(({usedByItems:n})=>n);return e.length>1||t.length===0?null:M({id:"delete-items-directly-used-by",linkText:R(this.messages._t9nLocale,this.messages.usedByOtherItems,t.length),label:this.messages.usedByPopover,placement:"auto",items:t,portal:this.portal,user:this.user})}renderDirectlyUsedByItems(){let e=V({recycleItems:this.recycleItems,cannotDeleteItems:this.cannotDeleteItems,permanentlyDeleteItems:this.permanentlyDeleteItems}),t=e.flatMap(({usedByItems:r})=>r),n=X({selectedItems:J(e)});return d`${this.items.length===1&&this.deleteMode==="delete"&&n.length>0?d`<div class="discouraged-items-warning"><calcite-notice kind=warning open><div slot=message>${this.messages.deleteDiscouraged}</div><calcite-link icon-end=launch slot=link>${this.messages.learnMoreAboutDeletingSourceItems}</calcite-link></calcite-notice></div>`:null}<arcgis-portal-review-related-items .sourceItem=${this.items[0]??null} .relatedItems=${t} .portal=${this.portal} .user=${this.user}></arcgis-portal-review-related-items>`}renderDirectlyUsedByItemsNotice(){let e=new Set(this.itemsWithImpactedItems.flatMap(({usedByItems:n})=>n.map(({id:r})=>r))),t=this.messages.reviewRelatedItems.multiple.replace("{totalCount}",String(e.size));return d`<div class="panel__related-items-notice"><calcite-notice .kind=${this.reviewDecision?"brand":"warning"} icon open><div slot=message>${this.reviewDecision?this.messages.relatedItemsReviewed:t}</div><calcite-button appearance=transparent slot=actions-end @click=${()=>{this.hasReviewedSelectedItems=!0,this.reviewingDirectlyUsedByItems=!0}}>${this.messages.reviewItems}</calcite-button></calcite-notice></div>`}renderDeleteSummary(){return d`<div class="panel__content">${this.isLoading?d`<calcite-scrim loading></calcite-scrim>`:d`<calcite-panel>${this.renderRecycleBucket()}${this.renderDeprecateBucket()}${this.renderExcludeBucket()}${this.renderCannotDeleteBucket()}${this.renderPermanentlyDeleteBucket()}${this.items.length===1&&this.renderDirectlyUsedByItems()||""}${this.itemsHaveImpactedItems&&d`<div>${this.items.length>1?this.renderDirectlyUsedByItemsNotice():null}</div>`||""}</calcite-panel>`}</div>${this.itemsNeedReview&&!this.hasReviewedSelectedItems&&d`<calcite-checkbox slot=content-bottom class="panel__checkbox" .checked=${this.hasConfirmedReview} @calciteCheckboxChange=${e=>{this.hasConfirmedReview=e.target.checked}} .labelText=${this.messages.reviewImpactedItems}></calcite-checkbox>`||""}<calcite-button slot=footer-end appearance=outline-fill @click=${this.handleDialogClose}>${this.messages.cancel}</calcite-button>${this.deleteMode!=="none"&&d`<calcite-button .disabled=${!this.deleteButtonEnabled} kind=danger slot=footer-end @click=${async()=>await this.handleDelete()}>${this.getConfirmButtonText()}</calcite-button>`||""}`}renderReviewItems(){return d`<div class="panel__content"><calcite-panel><arcgis-portal-delete-items-review .items=${this.itemsWithImpactedItems} .portal=${this.portal} .user=${this.user}></arcgis-portal-delete-items-review></calcite-panel></div><calcite-button slot=footer-start appearance=solid kind=neutral @click=${async()=>await this.handleReviewDecision("exclude")}>${this.messages.exclude}</calcite-button><calcite-button slot=footer-end appearance=outline-fill kind=danger @click=${async()=>await this.handleReviewDecision("deprecate")}>${this.messages.deprecateInstead}</calcite-button><calcite-button slot=footer-end appearance=solid kind=danger @click=${async()=>await this.handleReviewDecision("delete")}>${this.messages.proceedToDelete}</calcite-button>`}renderRecycleBucket(){return!this.recycleItems||this.recycleItems.length===0?null:this.renderBucket({icon:"recycle-bin",label:this.messages.summary.willBeRecycled,description:this.messages.summary.canBeRecovered.single.replace("{days}","14"),updated:this.recycleItems.some(({kind:e,updatedStatus:t})=>t==="recycle"&&t!==e),bucket:this.recycleItems})}renderDeprecateBucket(){return this.deprecateItems.length===0?null:this.renderBucket({icon:"circle-disallowed",label:this.messages.summary.deprecate.label,description:this.messages.summary.deprecate.message,updated:this.deprecateItems.some(({kind:e,updatedStatus:t})=>t!==e&&t==="deprecate"),bucket:this.deprecateItems})}renderExcludeBucket(){return this.excludeItems.length===0?null:this.renderBucket({icon:"remove-from-list",label:this.messages.summary.exclude.label,description:this.messages.summary.exclude.message,updated:this.excludeItems.some(({kind:e,updatedStatus:t})=>t!==e&&t==="exclude"),bucket:this.excludeItems})}renderCannotDeleteBucket(){if(!this.cannotDeleteItems||this.cannotDeleteItems.length===0)return null;let e=this.cannotDeleteItems?.[0]?.reason;return this.renderBucket({icon:"security",label:this.messages.summary.cannotDelete,description:e==="hasDependentItems"?this.messages.summary.protectedGroup.hasDependentItemsDescription.singleOneDependentItem:this.messages.summary.protectedGroup.deleteProtectedDescription,bucket:this.cannotDeleteItems,updated:this.cannotDeleteItems.some(({item:t})=>t.id&&this.updatedCannotDeleteItemIds.has(t.id))})}renderPermanentlyDeleteBucket(){return!this.permanentlyDeleteItems||this.permanentlyDeleteItems.length===0?null:this.renderBucket({icon:"trash",label:this.messages.summary.permanentlyDelete,description:this.messages.summary.permanentDelete.notSupported.single,bucket:this.permanentlyDeleteItems})}render(){let{items:e,portal:t}=this;return!e||!t?null:d`<calcite-dialog modal .open=${this.active} width=s .heading=${this.getHeaderText()} heading-level=2 outside-close-disabled escape-disabled kind=danger @calciteDialogClose=${this.handleDialogClose}><div slot=heading><span>${this.getHeaderText()}</span><br><span class="header-description">${this.getHeaderDescription()}</span></div>${this.reviewingDirectlyUsedByItems?this.renderReviewItems():this.renderDeleteSummary()}</calcite-dialog>`}};S("arcgis-portal-delete-items",D);return D},"request","portal/PortalItem",a,c,e,f)
|
package/dist/cdn/3EYB5GQX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as m}from"./YZTBAUIO.js";import{a as h}from"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{L as b,O as a,R as d,h as c,j as i,w as u}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";var g=c`.spacing-y{margin:var(--calcite-spacing-md) 0}.portal-classification-form-element-tooltip{display:flex;justify-content:space-between;align-items:center}`;function s(o,e){return o.uiElement===e}var n=class extends b{constructor(){super(...arguments),this.messages=h(),this.isRequiredErrors=new Set,this.arcgisAttributeValueChange=u()}static{this.properties={validationMsg:16,attributeKey:1,attribute:0,value:0,renderingInfo:0,isRequiredErrors:0}}static{this.styles=g}willUpdate(e){(e.has("renderingInfo")||e.has("isRequiredErrors"))&&(this.validationMsg=this._getValidationMessage())}_getValidationMessage(){if(this.renderingInfo?.attributeValidationResult)return this.renderingInfo.attributeValidationResult;if(this.isRequiredErrors.has(this.attributeKey))return this.messages.requiredfield??"This is a required field."}renderCheckbox(){return s(this.attribute,"checkbox")?i`<calcite-label class="spacing-y" .for=${this.attributeKey} layout=inline><calcite-checkbox .checked=${this.value} id=${this.attributeKey??a} @calciteCheckboxChange=${e=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.checked})} .required=${this.attribute.isRequired??!1} .status=${this.validationMsg?"invalid":"valid"}></calcite-checkbox>${this.attribute.label}</calcite-label>`:null}renderDateInput(){return s(this.attribute,"date")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-input-date-picker id=${this.attributeKey??a} .name=${this.attribute.label} @calciteInputDatePickerChange=${e=>this.isConnected&&this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.value})} overlay-positioning=fixed .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}></calcite-input-date-picker></calcite-label>`:null}renderTextInput(){if(!s(this.attribute,"text"))return null;let e=this.attribute.label,t=this.attribute.description;return i`<calcite-label .for=${this.attributeKey}><div class="portal-classification-form-element-tooltip">${e}${this.attribute.labelTooltip&&i`<div><calcite-icon scale=s icon=information .id=${`tooltip-button-${this.attribute.bannerLabel}`} text-label=${this.messages.information??"Information"??a}></calcite-icon><calcite-tooltip .referenceElement=${`tooltip-button-${this.attribute.bannerLabel}`} placement=right>${this.attribute.labelTooltip}</calcite-tooltip></div>`||""}</div><calcite-input-text id=${this.attributeKey??a} .label=${e} .name=${this.attributeKey} @calciteInputTextChange=${r=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:r.target.value})} .placeholder=${t} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}></calcite-input-text></calcite-label>`}renderSingleSelect(){return s(this.attribute,"single-select")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox selection-mode=single id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.value})} .placeholder=${this.attribute.description??this.messages.selectanoption} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} overlay-positioning=fixed validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value} data-testid=${`single-select-${this.attributeKey}`}>${this._renderSingleSelectComboboxOptions()}</calcite-combobox></calcite-label>`:null}_renderSingleSelectComboboxOptions(){if(!Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return m(this.renderingInfo?.valueExpressionResult,t=>t.label,t=>i`<calcite-combobox-item .selected=${e===t.value} .heading=${t.label} .value=${t.value} data-testid=${`single-combobox-item-${t.value}`}></calcite-combobox-item>`)}_renderComboboxOptions(){if(!Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return this.renderingInfo?.valueExpressionResult.map(t=>i`<calcite-combobox-item .selected=${e?.includes(t.value)} .heading=${t.label} .value=${t.value} data-testid=${`combobox-item-${t.value}`}></calcite-combobox-item>`)}renderMultiSelect(){return s(this.attribute,"multi-select")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>{let t=e.target.value;this.arcgisAttributeValueChange.emit({[this.attributeKey]:t?Array.isArray(t)?t:[t]:void 0})}} .placeholder=${this.attribute.description??this.messages.selectoptions} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}>${this._renderComboboxOptions()}</calcite-combobox></calcite-label>`:null}_renderGroupedComboboxOptions(){if(!this.renderingInfo?.valueExpressionResult||Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return Object.entries(this.renderingInfo?.valueExpressionResult).map(([t,r])=>i`<calcite-combobox-item .selected=${e?.includes(t)} .heading=${t} .value=${t}>${r.map(l=>i`<calcite-combobox-item .selected=${e?.includes(l.value)} .heading=${l.label} .value=${l.value} data-testid=${`grouped-combobox-item-${l.value}`}></calcite-combobox-item>`)}</calcite-combobox-item>`)}renderMultiGroupedSelectNested(){return s(this.attribute,"multi-grouped-select-nested")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>{let t=e.target.value;this.arcgisAttributeValueChange.emit({[this.attributeKey]:t?Array.isArray(t)?t:[t]:void 0})}} .placeholder=${this.attribute.description??this.messages.selectoptions} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}>${this._renderGroupedComboboxOptions()}</calcite-combobox></calcite-label>`:null}render(){switch(this.attribute.uiElement){case"checkbox":return this.renderCheckbox();case"date":return this.renderDateInput();case"multi-select":return this.renderMultiSelect();case"multi-grouped-select-nested":return this.renderMultiGroupedSelectNested();case"single-select":return this.renderSingleSelect();case"text":return this.renderTextInput();default:return i`<div>Not Implemented Yet.</div>`}}};d("arcgis-portal-classification-form-element",n);export{n as ArcgisPortalClassificationFormElement};
|