@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
|
@@ -3,15 +3,16 @@ import { c as F } from "./runtime.js";
|
|
|
3
3
|
import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
4
|
import * as p from "@arcgis/core/intl.js";
|
|
5
5
|
import { substitute as g } from "@arcgis/core/intl.js";
|
|
6
|
-
import { LitElement as S, createEvent as m, safeClassMap as
|
|
7
|
-
import { css as
|
|
8
|
-
import { createRef as
|
|
6
|
+
import { LitElement as S, createEvent as m, safeClassMap as o, safeStyleMap as v } from "@arcgis/lumina";
|
|
7
|
+
import { css as P, html as r } from "lit";
|
|
8
|
+
import { createRef as B, ref as C } from "lit/directives/ref.js";
|
|
9
9
|
import { u as R } from "./useT9n.js";
|
|
10
10
|
import { c as u } from "./dom.js";
|
|
11
|
-
import { i as
|
|
11
|
+
import { i as k } from "./functionalities.js";
|
|
12
12
|
import "../components/arcgis-portal-browser-filter-status/customElement.js";
|
|
13
13
|
import { c as E, o as T, a as W, i as z } from "./store.js";
|
|
14
|
-
|
|
14
|
+
import "../components/arcgis-portal-preview-panel/customElement.js";
|
|
15
|
+
const I = P`:host{position:relative;display:flex;height:100%;flex-direction:column;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-color-background);--arcgis-browser-max-width: 100%;--arcgis-browser-pane-width: 18.75rem;--arcgis-browser-pane-z-index: 11;container-type:inline-size;container-name:portal-browser}:host([height="auto"]){height:auto;min-height:100%;flex:1 1 100%}.wrapper{display:flex;height:100%;flex-direction:column;overflow:hidden}.wrapper--fixed{overflow:hidden}.wrapper--auto{flex:1 1 100%}.wrapper--full{transform:translate(0)}.panel{display:flex;height:100%;flex-direction:column;overflow:hidden}.panel--fixed{transform:translateZ(0)}.top-bar{position:sticky;top:0;right:0;left:0;z-index:20;flex-shrink:0;flex-grow:0;border-bottom:1px solid var(--calcite-color-border-3)}.scrolling{position:relative;display:flex;min-height:0px;width:100%;flex:1 1 0%;flex-direction:column}.scrolling--panel{overflow-y:scroll}@supports (scrollbar-gutter: stable){.scrolling--panel{scrollbar-gutter:stable;overflow-y:auto}}.scrolling--full{overflow:hidden}.preview-position{position:absolute;inset:0;margin-inline:auto;width:100%;max-width:var(--arcgis-browser-max-width)}.preview-position--with-top-bar{top:3rem}.two-up{margin-left:auto;margin-right:auto;display:flex;width:100%;flex:1 1 auto;flex-direction:row;max-width:var(--arcgis-browser-max-width)}.two-up.small{margin-top:-1px}.two-up--fullscreen{height:100%;overflow:hidden}.content__start{margin-inline-end:.25rem;padding-inline:1rem}.content{position:relative;display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;overflow:hidden}.content--full{overflow-y:scroll}@supports (scrollbar-gutter: stable){.content--full{scrollbar-gutter:stable;overflow-y:auto}}.content__top{position:relative;display:flex;height:1.5rem;flex-grow:0;align-items:center;justify-content:space-between;padding-top:1.25rem;padding-bottom:.75rem;font-size:1.125rem;color:var(--calcite-color-text-1);z-index:2}.content__top__end{margin-inline-start:auto;display:grid;gap:.5rem;grid-auto-flow:column}.actions,.filter-status{flex:1 1 0%}.content__view{margin-inline-end:.25rem;min-width:0px;flex:1 1 0%;padding-inline:var(--arcgis-browser-content-padding, 1rem)}.content__view--padded-bottom{padding-bottom:1rem}.content__view--no-filters{margin-inline-start:.25rem;padding-inline-start:var(--arcgis-browser-content-padding, 1rem)}arcgis-portal-preview-panel{--arcgis-portal-preview-panel-width: var(--arcgis-browser-pane-width);--arcgis-portal-preview-panel-z-index: var(--arcgis-browser-pane-z-index)}arcgis-portal-preview-panel[open]{box-shadow:#0000000f 4px 0 16px}.filter-panel,.preview-panel{position:relative;height:100%;background-color:var(--calcite-color-background)}.filter-panel__content{padding:.75rem 1rem 0}.filter-status--mobile{width:100%}.filter-status--active{display:block}.popover-contents{width:var(--arcgis-browser-popover-width);height:var(--arcgis-browser-popover-height)}.sheet{pointer-events:none;position:fixed;inset:0;z-index:110}.sheet--top-bar{top:3rem;overflow:hidden}.sheet__background{position:absolute;inset:0;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;background-color:#0003}.sheet__background--hidden{display:none}.sheet--active .sheet__background{opacity:1}.sheet--active{pointer-events:auto;opacity:1}.sheet__contents{position:absolute;inset:0;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;top:3rem;transform:translate3d(0,24px,0)}.sheet__contents--full{top:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-inline-end:0;width:100%;border:1px solid var(--calcite-color-border-3);border-inline-start:1px solid var(--calcite-color-border-3);transform:translate3d(0,24px,0)}.sheet--active .sheet__contents{opacity:1;transform:translateZ(0)}.hide{display:none}.aria-hidden{height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;position:absolute;top:0;bottom:0;width:0px;inset-inline-end:0}.content__view--flex{display:flex;flex-direction:column}.cover{display:flex;flex:1 1 0%;align-items:flex-start;justify-content:center;overflow:auto;padding-bottom:1rem;padding-top:.25rem}.no-results{height:100%;width:100%;flex:1 1 0%;text-align:center;font-size:.875rem;color:var(--calcite-color-text-2)}::slotted([slot="no-results"]){width:100%}::slotted([slot="no-content"]){width:100%}.results-wrapper{flex:1 1 0%}.results-wrapper--spaced{padding-top:1.5rem}.loader{margin-top:min(8rem,30vh);--calcite-loader-padding: 0}.filters{box-sizing:border-box;flex-grow:0;padding-inline:1.5rem 0;width:var(--arcgis-browser-pane-width)}.filters--sticky{position:sticky;top:0;height:100%}.filters__content{overflow-y:auto;height:100%;padding-top:1.5rem;box-sizing:border-box;scrollbar-gutter:stable}.filters--empty{display:none}.filters--active{opacity:1;transform:translateZ(0)}.filters__title{margin:0 0 1rem;padding:0 0 1rem;font-size:1.125rem;font-weight:500;color:var(--calcite-color-text-1);padding-inline-start:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.range{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;color:var(--calcite-color-text-1)}.container{display:flex;height:100%;width:100%;flex-direction:column;background-color:var(--calcite-color-background)}.container__header{display:flex;flex:0 1 auto;flex-direction:row;background-color:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3)}.container__header__text{margin:0;flex:1 1 0%;padding:.875rem .75rem;font-size:1rem;font-weight:500;color:var(--calcite-color-text-2)}.container__content{flex:1 1 0%;overflow:auto}.container__footer{box-sizing:border-box;width:100%;flex:0 1 auto;background-color:var(--calcite-color-foreground-1);padding:.5rem}.small .filters{padding:0}.small .filters__content{padding-left:1rem;padding-right:1rem}.small .content__view{padding-inline:.5rem;margin-inline:0}.small .content__view--panel{padding-inline:0}.small .content__start{margin-inline:0;padding-inline:.5rem}@container portal-browser (max-width: 640px){:host{--arcgis-browser-pane-width: 100%}}.scrim__find{margin-top:3.5rem;opacity:.6;transition-property:opacity;transition-duration:.15s;--calcite-scrim-background: rgba(0, 0, 0, .6)}`;
|
|
15
16
|
function f(c) {
|
|
16
17
|
return {
|
|
17
18
|
...c,
|
|
@@ -20,9 +21,9 @@ function f(c) {
|
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
function U(c, t = {}) {
|
|
23
|
-
const { hiddenFilterIds: e, preservedFilterIds: i } = t,
|
|
24
|
+
const { hiddenFilterIds: e, preservedFilterIds: i } = t, a = /* @__PURE__ */ new Set([...e || [], ...i || []]);
|
|
24
25
|
return Object.entries(c).reduce(
|
|
25
|
-
(
|
|
26
|
+
(s, [n, d]) => a.has(n) ? (s[n] = d, s) : (s[n] = f(d), s),
|
|
26
27
|
{}
|
|
27
28
|
);
|
|
28
29
|
}
|
|
@@ -30,13 +31,13 @@ function q(c) {
|
|
|
30
31
|
const t = Math.max(c?.total ?? 0, 0), e = c?.results?.length ?? 0;
|
|
31
32
|
if (!t || !e)
|
|
32
33
|
return { start: 0, end: 0, total: t };
|
|
33
|
-
const i = Math.max(c?.start ?? 1, 1),
|
|
34
|
-
return { start: i, end:
|
|
34
|
+
const i = Math.max(c?.start ?? 1, 1), a = Math.min(i + e - 1, t);
|
|
35
|
+
return { start: i, end: a, total: t };
|
|
35
36
|
}
|
|
36
37
|
const A = 49;
|
|
37
38
|
class H extends S {
|
|
38
39
|
constructor() {
|
|
39
|
-
super(...arguments), this._messages = R({ blocking: !0 }), this._previewContainer =
|
|
40
|
+
super(...arguments), this._messages = R({ blocking: !0 }), this._previewContainer = B(), this.toggleScrim = (t) => {
|
|
40
41
|
this.scrimActive = t.detail;
|
|
41
42
|
}, this.checkFlowItem = () => {
|
|
42
43
|
this.flowItem = u(this.el, "calcite-flow-item");
|
|
@@ -49,11 +50,11 @@ class H extends S {
|
|
|
49
50
|
const t = this._previewContainer.value?.getBoundingClientRect();
|
|
50
51
|
if (!t)
|
|
51
52
|
return;
|
|
52
|
-
const { x: e, y: i, height:
|
|
53
|
+
const { x: e, y: i, height: a, right: s, width: n } = t, d = a + i, h = window.innerWidth - document.body.offsetWidth, w = window.innerWidth < n || window.innerWidth < window.outerWidth && window.innerWidth <= n + h;
|
|
53
54
|
this.previewBoundingBox = {
|
|
54
55
|
top: Math.max(i, 0),
|
|
55
56
|
left: e,
|
|
56
|
-
right:
|
|
57
|
+
right: w ? 0 : window.outerWidth - s - h,
|
|
57
58
|
bottom: d > window.innerHeight ? 0 : window.innerHeight - d
|
|
58
59
|
};
|
|
59
60
|
}, this.pageRangeText = "", this.noResults = !1, this.initialHide = !0, this.scrimActive = !1, this.panel = !1, this.preview = !1, this.loading = !1, this.hideContentTop = !1, this.alwaysShowSelection = !1, this.alwaysShowContent = !1, this.response = {
|
|
@@ -62,7 +63,7 @@ class H extends S {
|
|
|
62
63
|
results: [],
|
|
63
64
|
start: 1,
|
|
64
65
|
total: 0
|
|
65
|
-
}, this.store = E(), this.formFactor = "large", this.searchTerm = "", this.height = "full", this.arcgisAriaUpdate = m(), this.arcgisBrowserFilterClear = m(), this.arcgisBrowserFilterRemove = m(), this.ariaUpdate = m();
|
|
66
|
+
}, this.store = E(), this.formFactor = "large", this.searchTerm = "", this.height = "full", this.arcgisAriaUpdate = m(), this.arcgisBrowserFilterClear = m(), this.arcgisBrowserFilterRemove = m(), this.arcgisPreviewClose = m(), this.ariaUpdate = m();
|
|
66
67
|
}
|
|
67
68
|
static {
|
|
68
69
|
this.properties = { pageRangeText: 16, noResults: 16, previewBoundingBox: 16, initialHide: 16, scrimActive: 16, flowItem: 16, panel: 5, preview: 5, loading: 5, hideContentTop: 5, hideTopBar: 5, selected: 0, alwaysShowSelection: 5, alwaysShowContent: 5, response: 0, store: 0, formFactor: 1, searchTerm: 1, height: 3, hideFilters: 5, showPreSearch: 5, rangeFormatter: 0, alwaysShowPagination: 5 };
|
|
@@ -113,36 +114,36 @@ class H extends S {
|
|
|
113
114
|
this.pageRangeText = e, this.arcgisAriaUpdate.emit(i), this.el.dispatchEvent(new CustomEvent("ariaUpdate", { detail: i })), this.noResults = W(this.store) && this.store.recycleBin ? t.results.length === 0 : (t?.total ?? 0) === 0, this.initialHide = !1;
|
|
114
115
|
}
|
|
115
116
|
async updatePageRange(t) {
|
|
116
|
-
const { start: e, end: i, total:
|
|
117
|
+
const { start: e, end: i, total: a } = q(t), s = p.formatNumber(e, { maximumFractionDigits: 0 }), n = p.formatNumber(i, { maximumFractionDigits: 0 }), h = `${p.formatNumber(a, { maximumFractionDigits: 0 })}${a >= 1e4 ? "+" : ""}`, w = p.formatNumber(t.results?.length ?? 0, { maximumFractionDigits: 0 }), x = p.formatNumber(Math.max(Math.ceil(e / Math.max(t.num || 1, 1)), 1), {
|
|
117
118
|
maximumFractionDigits: 0
|
|
118
119
|
});
|
|
119
120
|
if (this.rangeFormatter)
|
|
120
121
|
return await this.rangeFormatter({
|
|
121
|
-
start:
|
|
122
|
-
end:
|
|
122
|
+
start: s,
|
|
123
|
+
end: n,
|
|
123
124
|
total: h,
|
|
124
|
-
results: { items:
|
|
125
|
+
results: { items: w, page: x }
|
|
125
126
|
});
|
|
126
127
|
const b = this._messages.browser.pageRange, _ = this._messages.browser.pageRangeAria, y = g(b, {
|
|
127
|
-
start:
|
|
128
|
-
end:
|
|
128
|
+
start: s,
|
|
129
|
+
end: n,
|
|
129
130
|
total: h
|
|
130
131
|
}), $ = g(_, {
|
|
131
|
-
start:
|
|
132
|
-
end:
|
|
132
|
+
start: s,
|
|
133
|
+
end: n,
|
|
133
134
|
total: h
|
|
134
135
|
});
|
|
135
136
|
return [y, $];
|
|
136
137
|
}
|
|
137
138
|
hasActiveFilter(t) {
|
|
138
|
-
return Object.values(t.filters).filter(({ id: e }) => !
|
|
139
|
+
return Object.values(t.filters).filter(({ id: e }) => !k(z, e)).some((e) => !!e.value || e.id === "collaborations");
|
|
139
140
|
}
|
|
140
141
|
removeFilter(t) {
|
|
141
142
|
const e = this.store.filters[t];
|
|
142
143
|
if (!e)
|
|
143
144
|
return;
|
|
144
|
-
const i = f(e),
|
|
145
|
-
this.store.filters =
|
|
145
|
+
const i = f(e), a = { ...this.store.filters, [t]: i };
|
|
146
|
+
this.store.filters = a, this.arcgisBrowserFilterRemove.emit(t);
|
|
146
147
|
}
|
|
147
148
|
clearFilters() {
|
|
148
149
|
const t = U(this.store.filters, {
|
|
@@ -153,63 +154,65 @@ class H extends S {
|
|
|
153
154
|
}
|
|
154
155
|
renderNoResults() {
|
|
155
156
|
const t = this.noResults && !this.loading && !this.showPreSearch, e = this.hasActiveFilter(this.store) || !!this.searchTerm;
|
|
156
|
-
return t ?
|
|
157
|
+
return t ? r`<div class="cover"><div class="no-results">${e ? r`<slot name=no-results></slot>` : r`<slot name=no-content></slot>`}</div></div>` : null;
|
|
157
158
|
}
|
|
158
159
|
renderPopoverContents(t, e, i) {
|
|
159
|
-
const
|
|
160
|
-
return this.el.style.setProperty("--arcgis-browser-popover-width", i ? "100%" : `${this.store.width || 0}px`), this.el.style.setProperty("--arcgis-browser-popover-height", i ? "100%" : `${
|
|
160
|
+
const a = this.flowItem ? this.flowItem.offsetHeight : this.store.height, s = this.formFactor === "small" && this.hasActiveFilter(this.store) && !this.hideFilters;
|
|
161
|
+
return this.el.style.setProperty("--arcgis-browser-popover-width", i ? "100%" : `${this.store.width || 0}px`), this.el.style.setProperty("--arcgis-browser-popover-height", i ? "100%" : `${a || 0}px`), r`<div class="popover-contents"><div class=${o({ hide: !e, "preview-panel": !0 })}><slot name=preview></slot></div><div class=${o({ hide: !t, "filter-panel": !0 })}><article class="container"><header class="container__header"><h2 class="container__header__text">${this._messages.browser?.refineContent}</h2><calcite-action .text=${this._messages.browser?.close} scale=m icon=x @click=${() => {
|
|
161
162
|
this.store.filtersExpanded = !1;
|
|
162
|
-
}}></calcite-action></header><div class="container__content"><div class="container__content__scroll"><slot name=filters-top></slot>${(this.store.panel || i) &&
|
|
163
|
+
}}></calcite-action></header><div class="container__content"><div class="container__content__scroll"><slot name=filters-top></slot>${(this.store.panel || i) && r`<div class="filter-container__content"><slot name=sort></slot></div>` || ""}<slot name=filters></slot></div></div><div class=${o({ "filter-status--mobile": !0, container__footer: !0, hide: !s })}><arcgis-portal-browser-filter-status class="filter-status" .filters=${this.store.filters} .hiddenFilterIds=${this.store.hiddenFilters || []} .componentWidth=${this.store.width || this.flowItem?.offsetWidth || window.innerWidth} .browserWidth=${window.innerWidth} @arcgisBrowserFilterClear=${() => this.clearFilters()} @arcgisBrowserFilterRemove=${(n) => this.removeFilter(n.detail)}></arcgis-portal-browser-filter-status></div></article></div></div>`;
|
|
163
164
|
}
|
|
164
165
|
renderFlow() {
|
|
165
|
-
const t = !!this.store.panel, e = !!this.store.filtersExpanded && (!this.store.filtersEmpty || !this.store.sortEmpty && t), i = !!this.store.preview,
|
|
166
|
-
return
|
|
166
|
+
const t = !!this.store.panel, e = !!this.store.filtersExpanded && (!this.store.filtersEmpty || !this.store.sortEmpty && t), i = !!this.store.preview, a = !this.store.panel && document.documentElement.clientWidth > (this.store.width || 0);
|
|
167
|
+
return r`<div class=${o({ panel: !0, "panel--fixed": a })}>${!this.hideTopBar && r`<div class=${o({ "top-bar": !0, "top-bar--small": this.formFactor === "small" })}><slot name=top-bar></slot></div>` || ""}<div class="scrolling scrolling--panel"><div class=${o({ "two-up": !0, [this.formFactor]: !0 })}><div class="content"><div><slot name=primary-filter></slot></div><div class="content__start"><slot name=content-start></slot></div>${this.loading && !this.alwaysShowContent && r`<div class="content__view content__view--flex"><div class="cover"><calcite-loader class="loader" label></calcite-loader></div></div>` || ""}${this.noResults && !this.loading && r`<div class="content__view content__view--flex"><div class="cover">${this.renderNoResults()}</div></div>` || ""}<div class=${o({
|
|
167
168
|
hide: this.loading || this.noResults,
|
|
168
169
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
169
170
|
content__view: !0,
|
|
170
171
|
"content__view--panel": !!this.store.panel,
|
|
171
172
|
"content__view--flex": !this.loading && !this.noResults
|
|
172
|
-
})}>${!this.store.panel && !this.hideContentTop &&
|
|
173
|
+
})}>${!this.store.panel && !this.hideContentTop && r`<div class="content__top"><span class=${o({ selection: !0, hide: !this.alwaysShowSelection })}><slot name=selection></slot></span>${!this.loading && r`<span class="range">${this.pageRangeText}</span>` || ""}<span class="actions"><slot name=actions></slot></span><div class="content__top__end"><slot name=view></slot>${!t && r`<slot name=sort></slot>` || ""}</div></div>` || ""}<div class="flow-content"><slot name=content></slot></div><slot name=pagination></slot><slot name=content-end></slot></div></div></div><slot name=scroll-end></slot></div>${!this.store.panel || window.innerWidth < (this.store.width || 0) * 2 ? r`<div class=${o({
|
|
173
174
|
sheet: !0,
|
|
174
175
|
"sheet--active": e || i,
|
|
175
|
-
"sheet--top-bar":
|
|
176
|
-
})}><div class=${
|
|
177
|
-
(!this.store.panel || window.innerWidth < (this.store.width || 0) * 2) && (
|
|
176
|
+
"sheet--top-bar": a
|
|
177
|
+
})}><div class=${o({ sheet__background: !0, "sheet__background--hidden": a })}></div><div class=${o({ sheet__contents: !0, "sheet__contents--full": a })}>${this.renderPopoverContents(e, i, !0)}</div></div>` : r`<calcite-popover overlay-positioning=fixed .open=${i || e} label=filters .referenceElement=${this.flowItem || this.el} offset-skidding=0 offset-distance=0 trigger-disabled pointer-disabled .placement=${this.store.panel ? "trailing" : "auto"} @calcitePopoverOpen=${(s) => {
|
|
178
|
+
(!this.store.panel || window.innerWidth < (this.store.width || 0) * 2) && (s.currentTarget.style.transform = "none");
|
|
178
179
|
}} .focusTrapOptions=${{
|
|
179
|
-
setReturnFocus: (
|
|
180
|
-
if (!(
|
|
181
|
-
return
|
|
182
|
-
const
|
|
183
|
-
return
|
|
180
|
+
setReturnFocus: (s) => {
|
|
181
|
+
if (!(s instanceof HTMLElement))
|
|
182
|
+
return s;
|
|
183
|
+
const n = u(s, "arcgis-portal-item-card, arcgis-portal-group-card");
|
|
184
|
+
return n?.restoreFocus ? (n.restoreFocus(), !1) : s;
|
|
184
185
|
}
|
|
185
186
|
}}>${this.renderPopoverContents(e, i)}</calcite-popover>`}</div>`;
|
|
186
187
|
}
|
|
187
188
|
render() {
|
|
188
|
-
const t = this.height === "auto", e = this.height === "full", i = !!this.store.preview,
|
|
189
|
-
return this.formFactor === "small" ? this.renderFlow() :
|
|
189
|
+
const t = this.height === "auto", e = this.height === "full", i = !!this.store.preview, a = `${(this.store.height || window.innerHeight) - A}px`, s = t ? {} : { maxHeight: a };
|
|
190
|
+
return this.formFactor === "small" ? this.renderFlow() : r`<div class=${o({
|
|
190
191
|
wrapper: !0,
|
|
191
192
|
"wrapper--fixed": !!this.store.filtersExpanded,
|
|
192
193
|
"wrapper--auto": t,
|
|
193
194
|
"wrapper--full": e
|
|
194
|
-
})}>${!this.hideTopBar &&
|
|
195
|
+
})}>${!this.hideTopBar && r`<div class="top-bar"><slot name=top-bar></slot></div>` || ""}<slot name=top-bar-end></slot><div class=${o({ "preview-position": !0, "preview-position--with-top-bar": !this.store.topbarEmpty })} ${C(this._previewContainer)}><arcgis-portal-preview-panel .open=${i} .fixed=${t} @arcgisClose=${(n) => {
|
|
196
|
+
n.stopPropagation(), this.arcgisPreviewClose.emit();
|
|
197
|
+
}} style=${v(t && this.previewBoundingBox ? {
|
|
195
198
|
top: `${this.previewBoundingBox.top || 0}px`,
|
|
196
199
|
...document.dir === "rtl" ? { right: `${this.previewBoundingBox.right || 0}px` } : { left: `${this.previewBoundingBox.left || 0}px` },
|
|
197
200
|
bottom: `${this.previewBoundingBox.bottom || 0}px`
|
|
198
|
-
} : {})}><
|
|
201
|
+
} : {})}><slot name=preview></slot></arcgis-portal-preview-panel></div><div class=${o({ scrolling: !0, "scrolling--full": !t || this.panel })}>${this.scrimActive && r`<calcite-scrim class="scrim__find"></calcite-scrim>` || ""}<div class=${o({ "two-up": !0, "two-up--fullscreen": e, [this.formFactor]: !0 })}><div class=${o({
|
|
199
202
|
filters: !0,
|
|
200
203
|
"filters--sticky": !t,
|
|
201
204
|
"filters--empty": this.store.filtersEmpty && !this.store.preview,
|
|
202
205
|
"filters--active": !!this.store.filtersExpanded
|
|
203
|
-
})} style=${
|
|
206
|
+
})} style=${v(e ? {} : s)}><div class="filters__content" style=${v(e ? {} : s)}><slot name=filters></slot></div></div><div class=${o({ content: !0, "content--full": e })}><div class="content__start"><slot name=content-start></slot></div><div class=${o({
|
|
204
207
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
205
208
|
content__view: !0,
|
|
206
209
|
"content__view--no-filters": this.store.filtersEmpty && !this.store.preview,
|
|
207
210
|
"content__view--flex": !0
|
|
208
|
-
})}>${!this.hideContentTop &&
|
|
211
|
+
})}>${!this.hideContentTop && r`<div class="content__top">${this.showPreSearch ? null : r`<div class="content__top__summary"><span class=${o({ selection: !0, hide: !this.alwaysShowSelection })}><slot name=selection></slot></span>${!this.loading && r`<span class="range">${this.pageRangeText}<slot name=range-end></slot></span>` || ""}</div>`}<span class="actions"><slot name=actions></slot></span><div class="content__top__end"><slot name=view></slot><slot name=sort></slot></div></div>` || ""}${this.loading && (!this.alwaysShowContent || this.initialHide) && r`<div class="cover"><calcite-loader class="loader" .label=${this._messages.browser?.loading ?? ""}></calcite-loader></div>` || ""}${this.renderNoResults()}${!this.loading && this.showPreSearch && r`<div class="cover"><div class="no-results"><slot name=pre-search></slot></div></div>` || ""}<div class=${o({
|
|
209
212
|
hide: !!this.showPreSearch || this.loading && !this.alwaysShowContent || !this.loading && this.noResults || this.initialHide,
|
|
210
213
|
"results-wrapper--spaced": this.hideContentTop,
|
|
211
214
|
"results-wrapper": !0
|
|
212
|
-
})}><slot name=content></slot></div><div class=${
|
|
215
|
+
})}><slot name=content></slot></div><div class=${o({ hide: this.loading || this.noResults && !this.alwaysShowPagination })}><slot name=pagination></slot><slot name=content-end></slot></div></div></div></div><slot name=scroll-end></slot></div></div>`;
|
|
213
216
|
}
|
|
214
217
|
}
|
|
215
218
|
F("arcgis-portal-browser", H);
|
|
@@ -5,7 +5,7 @@ import { LitElement as h } from "@arcgis/lumina";
|
|
|
5
5
|
import { u as p } from "./useT9n.js";
|
|
6
6
|
import { s as u } from "./portal-related-items-list-item.js";
|
|
7
7
|
import { RelatedItemsListItem as g } from "../components/portal-related-items-list-item/customElement.js";
|
|
8
|
-
import {
|
|
8
|
+
import { g as f } from "./url.js";
|
|
9
9
|
import { substitute as d } from "@arcgis/core/intl.js";
|
|
10
10
|
const w = c`:host{display:block}calcite-notice{margin-top:.75rem}calcite-list{margin-block:.75rem}`;
|
|
11
11
|
function k(n, s, t, e) {
|
|
@@ -9,7 +9,7 @@ import { a as x, b as u, i as $, c as E, d as f, g as b, e as K, f as L, h as O
|
|
|
9
9
|
import { i as _ } from "./users.js";
|
|
10
10
|
import { g as U } from "./user2.js";
|
|
11
11
|
import { f as H } from "./verified.js";
|
|
12
|
-
import {
|
|
12
|
+
import { i as w, a as m } from "./info.js";
|
|
13
13
|
const q = C`.badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #dfeffa);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #00619b);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #00619b);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #dfeffa);border:0}.badge--colored{--calcite-chip-icon-color: var(--calcite-color-brand)}.authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #e4f0e4);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #1a6324);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #1a6324);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #e4f0e4)}.deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #fadfdc);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #a82b1e);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #a82b1e);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #fadfdc)}.beta{border:0}.narrow{box-sizing:border-box;width:2rem;--calcite-chip-spacing-unit-l: 0}.narrow--s{width:1.5rem}.narrow--l{width:2.75rem}.tooltip-title{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);margin:0 0 .25rem;padding:0}.tooltip-text{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-1);margin:0;padding:0}:host-context(.calcite-mode-dark) .badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #214155);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #9fd4f3);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #9fd4f3);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #214155)}:host-context(.calcite-mode-dark) .authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #2b472a);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #a2e4ab);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #a2e4ab);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #2b472a)}:host-context(.calcite-mode-dark) .deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #5e241e);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #5e241e)}`, G = [
|
|
14
14
|
"Operations Dashboard Add In",
|
|
15
15
|
"Operations Dashboard Extension",
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { c as y } from "./runtime.js";
|
|
3
|
+
import { isAbortError as l } from "@arcgis/core/core/promiseUtils.js";
|
|
4
|
+
import { LitElement as b, createEvent as v, safeClassMap as g } from "@arcgis/lumina";
|
|
5
|
+
import { log as n } from "@arcgis/toolkit/log";
|
|
6
|
+
import { Task as h, TaskStatus as w } from "@lit/task";
|
|
7
|
+
import { css as m, html as o } from "lit";
|
|
8
|
+
import { u as T } from "./useT9n.js";
|
|
9
|
+
import { s as $, h as k } from "./dom.js";
|
|
10
|
+
import { g as S } from "./utils3.js";
|
|
11
|
+
import p from "@arcgis/core/layers/support/Field.js";
|
|
12
|
+
import { a as I, b as L, f as E, g as x } from "./layers.js";
|
|
13
|
+
import { r as A } from "./request.js";
|
|
14
|
+
import { b as f } from "./items.js";
|
|
15
|
+
import { a as F } from "./portal.js";
|
|
16
|
+
import "../components/arcgis-portal-item-preview-field/customElement.js";
|
|
17
|
+
function R(i) {
|
|
18
|
+
return ["Feature Service", "Layer Template", "Feature Collection"].includes(i.type ?? "") && !f(i).some(
|
|
19
|
+
(e) => ["Route Layer", "Markup", "Map Notes", "markup", "IndoorPositioningDataService"].includes(e)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function u(i, e) {
|
|
23
|
+
let t;
|
|
24
|
+
if (e.type === "Feature Service" && e.url) {
|
|
25
|
+
const r = new URL(e.url);
|
|
26
|
+
r.pathname = r.pathname.replace(/\/$/u, ""), /\/\d+$/u.test(r.pathname) || (r.pathname += `/${i.id}`), t = r.href;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
id: i.id,
|
|
30
|
+
title: i.title,
|
|
31
|
+
type: i.type,
|
|
32
|
+
description: i.description,
|
|
33
|
+
sourceJSON: i.sourceJSON,
|
|
34
|
+
url: t,
|
|
35
|
+
geometryType: i.geometryType === "table" || !i.geometryType ? "nonspatial" : i.geometryType === "esriGeometryEnvelope" ? "extent" : i.geometryType
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
async function Y(i, e, t) {
|
|
39
|
+
try {
|
|
40
|
+
if (t.throwIfAborted(), i.type === "Image Service") {
|
|
41
|
+
if (!i.url)
|
|
42
|
+
throw new Error("The imagery item has no service URL.");
|
|
43
|
+
const a = await L(e, i.url, t);
|
|
44
|
+
return t.throwIfAborted(), a.result ? {
|
|
45
|
+
result: {
|
|
46
|
+
sublayers: [],
|
|
47
|
+
serviceInfo: {
|
|
48
|
+
hasMultidimensions: a.result.hasMultidimensions,
|
|
49
|
+
sourceType: a.result.serviceSourceType === "esriImageServiceSourceTypeMosaicDataset" ? "mosaic-dataset" : void 0
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
} : { error: a.error ?? { code: "unhandledError" } };
|
|
53
|
+
}
|
|
54
|
+
if (!R(i))
|
|
55
|
+
return { result: { sublayers: [] } };
|
|
56
|
+
if (i.type === "Layer Template" && f(i).some((a) => a.toLowerCase() === "service template")) {
|
|
57
|
+
const a = await A({
|
|
58
|
+
url: `${F(e)}content/items/${i.id}/data`,
|
|
59
|
+
portal: e,
|
|
60
|
+
options: { signal: t, disableIdentityLookup: !0 }
|
|
61
|
+
});
|
|
62
|
+
return t.throwIfAborted(), {
|
|
63
|
+
result: {
|
|
64
|
+
sublayers: [...a.layers ?? [], ...(a.tables ?? []).map((s) => ({ ...s, type: "Table" }))].map(
|
|
65
|
+
(s) => {
|
|
66
|
+
if (s.id === void 0)
|
|
67
|
+
throw new Error("The layer template contains a layer without an ID.");
|
|
68
|
+
return u(
|
|
69
|
+
{ ...s, id: s.id, title: s.title || s.name || "", sourceJSON: s },
|
|
70
|
+
i
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const r = await E({ item: i, portal: e, signal: t });
|
|
78
|
+
return t.throwIfAborted(), r.result ? { result: { sublayers: r.result.sublayers.map((a) => u(a, i)) } } : { error: r.error ?? { code: "unhandledError" } };
|
|
79
|
+
} catch (r) {
|
|
80
|
+
if (t.aborted || l(r))
|
|
81
|
+
throw r;
|
|
82
|
+
return n("error", "portal.itemPreview", "Unable to load preview layers.", { detail: { error: r } }), {
|
|
83
|
+
error: {
|
|
84
|
+
code: x(r).messageCode === "SB_0006" ? "serviceNotExist" : "unhandledError"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
async function D(i, e, t) {
|
|
90
|
+
try {
|
|
91
|
+
t.throwIfAborted();
|
|
92
|
+
const r = i.url ? await I(e, i.url, t) : void 0;
|
|
93
|
+
if (t.throwIfAborted(), r && !r.result)
|
|
94
|
+
return { error: r.error ?? { code: "unhandledError" } };
|
|
95
|
+
const a = r?.result ?? i.sourceJSON ?? {}, s = (a.fields ?? i.sourceJSON?.fields ?? []).map((c) => {
|
|
96
|
+
if (!c.name || !c.type)
|
|
97
|
+
throw new Error("The layer returned a field without a name or type.");
|
|
98
|
+
if (c.type === "esriFieldTypeBoolean" || c.type === "boolean")
|
|
99
|
+
return { name: c.name, alias: c.alias ?? c.name, type: "boolean" };
|
|
100
|
+
const d = p.fromJSON(c);
|
|
101
|
+
if (!(d instanceof p))
|
|
102
|
+
throw new Error("The layer returned an invalid field definition.");
|
|
103
|
+
return d;
|
|
104
|
+
});
|
|
105
|
+
return {
|
|
106
|
+
result: {
|
|
107
|
+
...i,
|
|
108
|
+
description: a.description ?? i.description,
|
|
109
|
+
fields: s,
|
|
110
|
+
editingInfo: a.editingInfo ?? i.sourceJSON?.editingInfo
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
} catch (r) {
|
|
114
|
+
if (t.aborted || l(r))
|
|
115
|
+
throw r;
|
|
116
|
+
return n("error", "portal.itemPreview", "Unable to read preview layer details.", { detail: { error: r } }), { error: { code: "unhandledError" } };
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async function U(i, e, t) {
|
|
120
|
+
e.throwIfAborted();
|
|
121
|
+
const { default: r } = await import("@arcgis/core/layers/FeatureLayer.js");
|
|
122
|
+
e.throwIfAborted();
|
|
123
|
+
const a = new r({ url: i, apiKey: t ?? void 0 });
|
|
124
|
+
try {
|
|
125
|
+
return await a.load({ signal: e }), e.throwIfAborted(), a;
|
|
126
|
+
} catch (s) {
|
|
127
|
+
throw a.destroy(), s;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const z = m`:host{display:block;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);line-height:1.35}.heading{display:flex;align-items:center;margin:0;padding:1rem 1rem .5rem;background:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}calcite-tab-nav{padding-inline:1rem;background:var(--calcite-color-foreground-1)}.fields{background:var(--calcite-color-foreground-1)}.fields,.overview{margin-block-start:-.5rem}calcite-block{margin:0}.overview{display:flex;flex-direction:column;gap:1rem;padding:2rem 1.25rem;background:var(--calcite-color-background)}.detail>h4{margin:0 0 .25rem;color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-medium)}.detail>p{margin:0;overflow-wrap:anywhere}.empty,.empty-message{color:var(--calcite-color-text-1)}.empty-message{margin:0;padding:1rem}.error{padding:1rem}`, q = m`.rich-text{overflow-wrap:anywhere;a{color:var(--calcite-color-text-link)}img,video{max-inline-size:100%;block-size:auto}table{display:block;max-inline-size:100%;overflow:auto}}.description{overflow:auto;padding-block-end:.25rem;*{max-inline-size:100%;font-size:.875rem!important}table{display:table;inline-size:100%;background:var(--calcite-color-foreground-1);border-collapse:collapse;border-spacing:0;text-align:start;border:1px solid var(--calcite-color-border-2)}th,td{padding:.5rem;text-align:start;font-weight:var(--calcite-font-weight-light);border-inline:1px solid var(--calcite-color-border-2)}tr,thead{border-block-end:1px solid var(--calcite-color-border-2)}tfoot{border-block-start:1px solid var(--calcite-color-border-2)}tr:last-child{border-block-end:none}}`;
|
|
131
|
+
class C extends b {
|
|
132
|
+
constructor() {
|
|
133
|
+
super(...arguments), this.messages = T({ name: "portal-item-preview", blocking: !0 }), this.statisticsRequestActive = !1, this.statisticsTask = new h(this, {
|
|
134
|
+
autoRun: !1,
|
|
135
|
+
task: async (e, { signal: t }) => {
|
|
136
|
+
if (!this.layer?.url)
|
|
137
|
+
throw new Error("Field statistics require a service layer URL.");
|
|
138
|
+
const r = await U(this.layer.url, t, this.item?.apiKey);
|
|
139
|
+
return t.aborted && (r.destroy(), t.throwIfAborted()), r;
|
|
140
|
+
},
|
|
141
|
+
onComplete: (e) => {
|
|
142
|
+
this.statisticsLayer = e, this.statisticsRequestActive = !1;
|
|
143
|
+
},
|
|
144
|
+
onError: (e) => {
|
|
145
|
+
this.statisticsRequestActive = !1, l(e) || n("error", this, "Unable to load the field statistics layer.", { detail: { error: e } });
|
|
146
|
+
}
|
|
147
|
+
}), this.detailTask = new h(this, {
|
|
148
|
+
args: () => [this.item, this.portal, this.portal?.user, this.layer],
|
|
149
|
+
task: async ([, e, , t], { signal: r }) => (this.releaseStatisticsLayer(), !e || !t ? { error: { code: "unhandledError" } } : await D(t, e, r)),
|
|
150
|
+
onError: (e) => {
|
|
151
|
+
l(e) || n("error", this, "Unable to load preview layer details.", { detail: { error: e } });
|
|
152
|
+
}
|
|
153
|
+
}), this.tab = "fields", this.showFieldStatistics = !1, this.arcgisInternalUIAction = v();
|
|
154
|
+
}
|
|
155
|
+
static {
|
|
156
|
+
this.properties = { tab: 16, item: 0, portal: 0, layer: 0, externalLinkHandler: 0, showFieldStatistics: 5 };
|
|
157
|
+
}
|
|
158
|
+
static {
|
|
159
|
+
this.styles = [q, z];
|
|
160
|
+
}
|
|
161
|
+
connectedCallback() {
|
|
162
|
+
super.connectedCallback(), this.hasUpdated && this.detailTask.run();
|
|
163
|
+
}
|
|
164
|
+
willUpdate(e) {
|
|
165
|
+
e.has("showFieldStatistics") && !this.showFieldStatistics && this.releaseStatisticsLayer(), e.has("layer") && (this.tab = "fields"), this.language !== this.messages._lang && (this.language = this.messages._lang, this.dateFormatter = new Intl.DateTimeFormat(this.language, {
|
|
166
|
+
year: "numeric",
|
|
167
|
+
month: "short",
|
|
168
|
+
day: "numeric"
|
|
169
|
+
}));
|
|
170
|
+
}
|
|
171
|
+
disconnectedCallback() {
|
|
172
|
+
super.disconnectedCallback(), this.detailTask.abort(), this.releaseStatisticsLayer();
|
|
173
|
+
}
|
|
174
|
+
changeTab(e) {
|
|
175
|
+
this.tab = e, this.arcgisInternalUIAction.emit({ action: "click", category: "panel action", details: `sublayer ${e}` });
|
|
176
|
+
}
|
|
177
|
+
date(e) {
|
|
178
|
+
return e == null ? "" : this.dateFormatter.format(new Date(e));
|
|
179
|
+
}
|
|
180
|
+
releaseStatisticsLayer() {
|
|
181
|
+
this.statisticsTask.abort(), this.statisticsRequestActive = !1, this.statisticsLayer?.destroy(), this.statisticsLayer = void 0;
|
|
182
|
+
}
|
|
183
|
+
requestStatistics() {
|
|
184
|
+
!this.showFieldStatistics || this.item?.type !== "Feature Service" || !this.layer?.url || this.statisticsLayer || this.statisticsRequestActive || (this.statisticsRequestActive = !0, this.statisticsTask.run());
|
|
185
|
+
}
|
|
186
|
+
renderDetail(e, t, r, a = !1) {
|
|
187
|
+
return o`<div class="detail"><h4>${e}</h4>${a && t ? o`<div class="rich-text description" .innerHTML=${$(k(t)) ?? ""} @click=${this.externalLinkHandler}></div>` : o`<p class=${g({ empty: !t })}>${t || r}</p>`}</div>`;
|
|
188
|
+
}
|
|
189
|
+
renderContent(e) {
|
|
190
|
+
const { messages: t } = this, r = e.fields.filter((s) => s.name !== "OBJECTID"), a = S({ type: e.type, geometry: e.geometryType });
|
|
191
|
+
return o`<calcite-tabs layout=center><calcite-tab-nav slot=title-group><calcite-tab-title tab=fields .selected=${this.tab === "fields"} @calciteTabsActivate=${() => this.changeTab("fields")}>${t.fields}</calcite-tab-title><calcite-tab-title tab=overview .selected=${this.tab === "overview"} @calciteTabsActivate=${() => this.changeTab("overview")}>${t.overview}</calcite-tab-title></calcite-tab-nav><calcite-tab tab=fields .selected=${this.tab === "fields"}><div class="fields">${r.length ? r.map((s) => o`<arcgis-portal-item-preview-field .field=${s} .showStatistics=${this.showFieldStatistics && this.item?.type === "Feature Service" && !!e.url && s.type !== "boolean"} .layer=${this.statisticsLayer} .failed=${this.statisticsTask.status === w.ERROR} @arcgisInternalRequestStatistics=${this.requestStatistics}></arcgis-portal-item-preview-field>`) : o`<p class="empty-message">${t.noFields}</p>`}</div></calcite-tab><calcite-tab tab=overview .selected=${this.tab === "overview"}><div class="overview">${this.renderDetail(a.isGeometry ? t.geometryTypeTitle : t.layerTypeTitle, t.layerTypes[a.type])}${this.renderDetail(t.description, e.description, t.noDescription, !0)}${!this.portal?.isPortal && o`${this.renderDetail(t.dataUpdated, this.date(e.editingInfo?.dataLastEditDate))}${this.renderDetail(t.schemaUpdated, this.date(e.editingInfo?.schemaLastEditDate))}` || ""}${e.url && o`<arcgis-portal-item-preview-copy .heading=${t.url} .label=${t.copyURL} .text=${e.url} section=layers></arcgis-portal-item-preview-copy>` || ""}</div></calcite-tab></calcite-tabs>`;
|
|
192
|
+
}
|
|
193
|
+
renderError(e = !1) {
|
|
194
|
+
return o`<div class="error"><calcite-notice open icon kind=warning scale=s width=full><div slot=title>${this.messages.sublayerErrorTitle}</div><div slot=message>${e ? this.messages.noServiceMessage : this.messages.sublayerErrorMessage}</div><calcite-button slot=link appearance=transparent @click=${() => {
|
|
195
|
+
this.detailTask.run();
|
|
196
|
+
}}>${this.messages.retry}</calcite-button></calcite-notice></div>`;
|
|
197
|
+
}
|
|
198
|
+
render() {
|
|
199
|
+
const e = () => o`<calcite-loader .label=${this.messages.loadingSublayer} scale=s></calcite-loader>`;
|
|
200
|
+
return o`<h3 class="heading"><arcgis-portal-sublayer-type .name=${this.layer?.title} .geometry=${this.layer?.geometryType} .type=${this.layer?.type} hide-type scale=s></arcgis-portal-sublayer-type></h3>${this.detailTask.render({
|
|
201
|
+
initial: e,
|
|
202
|
+
pending: e,
|
|
203
|
+
error: () => this.renderError(),
|
|
204
|
+
complete: ({ result: t, error: r }) => t ? this.renderContent(t) : this.renderError(r?.code === "serviceNotExist")
|
|
205
|
+
})}`;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
y("arcgis-portal-item-preview-sublayer", C);
|
|
209
|
+
export {
|
|
210
|
+
C as A,
|
|
211
|
+
Y as f,
|
|
212
|
+
R as h,
|
|
213
|
+
q as s
|
|
214
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { c as n } from "./runtime.js";
|
|
3
|
+
import { css as o, html as i } from "lit";
|
|
4
|
+
import { LitElement as c, createEvent as l, safeClassMap as d } from "@arcgis/lumina";
|
|
5
|
+
import { createRef as m, ref as p } from "lit/directives/ref.js";
|
|
6
|
+
import "../components/arcgis-portal-item-card/customElement.js";
|
|
7
|
+
import { u } from "./useT9n.js";
|
|
8
|
+
import { g } from "./url.js";
|
|
9
|
+
function h(a) {
|
|
10
|
+
switch (a) {
|
|
11
|
+
case "needEditableLayers":
|
|
12
|
+
return {
|
|
13
|
+
i18nKey: "sharingPDCEnabled",
|
|
14
|
+
kind: "info"
|
|
15
|
+
};
|
|
16
|
+
case "needPubliclyEditableLayers":
|
|
17
|
+
case "needDataCollectionLayers":
|
|
18
|
+
return {
|
|
19
|
+
i18nKey: "pdc",
|
|
20
|
+
kind: "danger"
|
|
21
|
+
};
|
|
22
|
+
case "premiumLayers":
|
|
23
|
+
return {
|
|
24
|
+
i18nKey: "premium",
|
|
25
|
+
kind: "info"
|
|
26
|
+
};
|
|
27
|
+
case "notEditableLayers":
|
|
28
|
+
return {
|
|
29
|
+
i18nKey: "noPermission",
|
|
30
|
+
kind: "danger"
|
|
31
|
+
};
|
|
32
|
+
case "needAuthentication":
|
|
33
|
+
return {
|
|
34
|
+
i18nKey: "needsAuthentication",
|
|
35
|
+
kind: "danger"
|
|
36
|
+
};
|
|
37
|
+
case "needsShareLevelUpdateLayers":
|
|
38
|
+
return null;
|
|
39
|
+
default:
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const f = o`.status-banner{display:flex;align-items:center;padding:.25rem 1rem;border-block-end:1px solid var(--calcite-color-border-2);color:var(--calcite-color-text-2);font-size:.75rem}.status-banner>calcite-icon{margin-inline-end:.5rem;color:var(--calcite-color-status-danger)}.status-banner>span{margin-block-start:.125rem}.status-banner--info>calcite-icon{color:var(--calcite-color-status-info)}.open-item{margin-inline-start:.25rem;padding-inline-start:.25rem;border-inline-start:1px solid var(--calcite-color-border-1)}`;
|
|
44
|
+
class b extends c {
|
|
45
|
+
constructor() {
|
|
46
|
+
super(...arguments), this.messages = u({ blocking: !0 }), this.card = m(), this.previewed = !1, this.arcgisItemBrowserCardPreview = l();
|
|
47
|
+
}
|
|
48
|
+
static {
|
|
49
|
+
this.properties = { item: 0, state: 1, portal: 0, previewed: 5 };
|
|
50
|
+
}
|
|
51
|
+
static {
|
|
52
|
+
this.styles = f;
|
|
53
|
+
}
|
|
54
|
+
async restoreFocus() {
|
|
55
|
+
await this.card.value?.restoreFocus();
|
|
56
|
+
}
|
|
57
|
+
openItemDetails(e) {
|
|
58
|
+
e.preventDefault(), e.stopPropagation();
|
|
59
|
+
const t = this.item?.id;
|
|
60
|
+
if (!t)
|
|
61
|
+
return;
|
|
62
|
+
const r = `${g({ portal: this.portal })}/item.html?id=${t}`;
|
|
63
|
+
window.open(r, "_blank", "noopener");
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
if (!this.item || !this.portal || !this.messages._lang)
|
|
67
|
+
return;
|
|
68
|
+
const e = h(this.state), t = e?.kind === "info", r = e ? this.messages.status?.[e.i18nKey] : void 0;
|
|
69
|
+
return i`<arcgis-portal-item-card .item=${this.item} .portal=${this.portal} preview=top .previewed=${this.previewed} @arcgisItemBrowserCardPreview=${(s) => {
|
|
70
|
+
s.stopPropagation(), this.arcgisItemBrowserCardPreview.emit(s.detail);
|
|
71
|
+
}} show-owner show-date-updated show-item-type show-summary show-badges ${p(this.card)}>${e && r && i`<div slot=content-top class=${d({
|
|
72
|
+
"status-banner": !0,
|
|
73
|
+
"status-banner--info": t
|
|
74
|
+
})}><calcite-icon .icon=${t ? "information" : "exclamationMarkTriangle"} scale=s></calcite-icon><span>${r.notice}</span></div>` || ""}<div slot=actions-end class="open-item"><calcite-button scale=s appearance=transparent kind=neutral @click=${(s) => this.openItemDetails(s)}>${this.messages.goToItem}</calcite-button></div></arcgis-portal-item-card>`;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
n("arcgis-portal-item-status-card", b);
|
|
78
|
+
export {
|
|
79
|
+
b as A,
|
|
80
|
+
h as g
|
|
81
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { css as e } from "lit";
|
|
3
|
-
const i = e`.item{display:block;color:var(--calcite-color-text-1)}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item__content-end{display:flex;align-items:center;gap:.5rem}.item__access{display:flex;align-items:center;color:var(--calcite-color-text-2);
|
|
3
|
+
const i = e`.item{display:block;color:var(--calcite-color-text-1)}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item__content-end{display:flex;align-items:center;gap:.5rem}.item__status-icon{color:var(--calcite-color-text-2)}.item__access{display:flex;align-items:center;gap:var(--calcite-spacing-unit);color:var(--calcite-color-text-2);padding:7px;border:1px solid var(--calcite-color-border-1);border-radius:1rem}`;
|
|
4
4
|
export {
|
|
5
5
|
i as s
|
|
6
6
|
};
|