@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
|
@@ -1,37 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { createRef as
|
|
6
|
-
import { Task as
|
|
7
|
-
import * as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import { i as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
n.set("guid", "key");
|
|
20
|
-
n.set("global-id", "key");
|
|
21
|
-
n.set("blob", "binary");
|
|
22
|
-
n.set("integer", "integer");
|
|
23
|
-
n.set("small-integer", "integer");
|
|
24
|
-
n.set("big-integer", "integer");
|
|
25
|
-
n.set("single", "number");
|
|
26
|
-
n.set("double", "number");
|
|
27
|
-
n.set("long", "number");
|
|
28
|
-
n.set("number", "number");
|
|
29
|
-
n.set("date", "date-time");
|
|
30
|
-
n.set("date-only", "calendar");
|
|
31
|
-
n.set("time-only", "clock");
|
|
32
|
-
n.set("timestamp-offset", "time-zone");
|
|
33
|
-
n.set("string", "string");
|
|
34
|
-
const H = ({ fieldType: I }) => f`<calcite-icon scale=s .icon=${n.get(I)}></calcite-icon>`, K = [
|
|
2
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as x, html as c } from "lit";
|
|
4
|
+
import { LitElement as M, createEvent as F, renderElement as E } from "@arcgis/lumina";
|
|
5
|
+
import { createRef as w, ref as I } from "lit/directives/ref.js";
|
|
6
|
+
import { Task as k } from "@lit/task";
|
|
7
|
+
import * as P from "@arcgis/core/core/lang.js";
|
|
8
|
+
import O from "@arcgis/core/layers/support/FeatureTemplate.js";
|
|
9
|
+
import L from "@arcgis/core/Graphic.js";
|
|
10
|
+
import S from "@arcgis/core/identity/IdentityManager.js";
|
|
11
|
+
import _ from "@arcgis/core/request.js";
|
|
12
|
+
import * as B from "@arcgis/core/applications/PortalApp/layerUtils.js";
|
|
13
|
+
import { i as T, c as j, g as U, a as z, b as q, d as R } from "../../chunks/fieldAddDelete.js";
|
|
14
|
+
import { F as J } from "../../chunks/FieldIcons.js";
|
|
15
|
+
import { a as N } from "../../chunks/portal.js";
|
|
16
|
+
import { u as W } from "../../chunks/useT9n.js";
|
|
17
|
+
import { log as y, composeMissingPropertyMessage as D, composeEmptyPropertyMessage as V } from "@arcgis/toolkit/log";
|
|
18
|
+
const G = [
|
|
35
19
|
"esrignss_speed",
|
|
36
20
|
"esrignss_direction",
|
|
37
21
|
"esrisnsr_azimuth",
|
|
@@ -121,24 +105,24 @@ const H = ({ fieldType: I }) => f`<calcite-icon scale=s .icon=${n.get(I)}></calc
|
|
|
121
105
|
"esrignss_worst_v_rms",
|
|
122
106
|
"esrignss_worst_fixtype",
|
|
123
107
|
"esrignss_manual_locations"
|
|
124
|
-
],
|
|
125
|
-
class
|
|
108
|
+
], H = x`.dialog{--calcite-dialog-max-size-y: 60%}.dialog-content-wrapper{position:relative;min-height:100px}.hide-overflow{overflow:hidden}.field-icons{padding:0 var(--calcite-space-lg);display:flex;align-items:center}.warning{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);margin-bottom:var(--calcite-space-md)}.warning-message{font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold)}.loader-container{position:absolute;height:100%;width:100%;top:0;right:0;display:none;z-index:40;overflow:hidden;background:#fffffff2;padding:0}.active{display:flex;flex-direction:column;align-items:center;justify-content:center}.loader{padding:0}.loader-text{font-weight:var(--calcite-font-weight-medium);text-align:center;margin-right:6.25rem;margin-left:6.25rem}`;
|
|
109
|
+
class K extends M {
|
|
126
110
|
constructor() {
|
|
127
|
-
super(...arguments), this.arcadeExpMap = /* @__PURE__ */ new Map(), this.cancelNode =
|
|
111
|
+
super(...arguments), this.arcadeExpMap = /* @__PURE__ */ new Map(), this.cancelNode = w(), this.dialogNode = w(), this.layerFields = [], this.layerFieldsMap = /* @__PURE__ */ new Map(), this.messages = W({ blocking: !0 }), this.deleteInProgress = !1, this.fieldsAreDeletable = !1, this._propWatcherTask = new k(this, {
|
|
128
112
|
task: async ([e, s]) => {
|
|
129
|
-
const t =
|
|
130
|
-
if (
|
|
113
|
+
const t = T(e) && T(s);
|
|
114
|
+
if (T(e) || y("error", this, D("layer")), T(s) || y("error", this, D("fieldNames")), !t)
|
|
131
115
|
throw new Error("Required properties are missing");
|
|
132
116
|
this._propWatcherTask.autoRun = !1, await this.processProps();
|
|
133
117
|
},
|
|
134
118
|
args: () => [this.layer, this.fieldNames]
|
|
135
|
-
}), this.arcgisBeforeModalClose =
|
|
119
|
+
}), this.arcgisBeforeModalClose = F(), this.arcgisClose = F(), this.arcgisBeforeDelete = F(), this.arcgisFieldsDeleted = F();
|
|
136
120
|
}
|
|
137
121
|
static {
|
|
138
122
|
this.properties = { config: 0, fieldNames: 0, layer: 0, mapView: 0, options: 0 };
|
|
139
123
|
}
|
|
140
124
|
static {
|
|
141
|
-
this.styles =
|
|
125
|
+
this.styles = H;
|
|
142
126
|
}
|
|
143
127
|
async processProps() {
|
|
144
128
|
const { layer: e, mapView: s, fieldNames: t } = this;
|
|
@@ -151,28 +135,28 @@ class X extends P {
|
|
|
151
135
|
if (!this.layerFields?.length || l)
|
|
152
136
|
this.fieldsAreDeletable = !1;
|
|
153
137
|
else {
|
|
154
|
-
const o = await Promise.all(this.layerFields.map(async (a) => await
|
|
138
|
+
const o = await Promise.all(this.layerFields.map(async (a) => await j(s, e, a, this.options)));
|
|
155
139
|
if (this.fieldsAreDeletable = o.every((a) => a), !this.fieldsAreDeletable)
|
|
156
140
|
return;
|
|
157
141
|
}
|
|
158
|
-
if (this.layerFieldsMap = await
|
|
142
|
+
if (this.layerFieldsMap = await U(e), this.options?.ignorePopupTemplate || (this.arcadeExpMap = z(e.popupTemplate)), this.portal = e.portalItem?.portal ?? this.options?.portal, this.item = e.portalItem ?? this.options?.item, !this.item) {
|
|
159
143
|
this.fieldsAreDeletable = !1;
|
|
160
144
|
return;
|
|
161
145
|
}
|
|
162
|
-
await
|
|
146
|
+
await S.getCredential(this.item.url.replace("rest/services", "rest/admin/services"));
|
|
163
147
|
}
|
|
164
148
|
getFieldLabel(e) {
|
|
165
149
|
const { layer: s, arcadeExpMap: t } = this;
|
|
166
150
|
if (this.options?.ignorePopupTemplate)
|
|
167
151
|
return this.getFieldDisplayNameFromLayerFields(e);
|
|
168
152
|
{
|
|
169
|
-
const o = (s.popupTemplate ?? s.createPopupTemplate())
|
|
170
|
-
return o ?
|
|
153
|
+
const o = (s.popupTemplate ?? s.createPopupTemplate())?.fieldInfos?.find((a) => a.fieldName === e);
|
|
154
|
+
return o ? q(s, o, t) : this.getFieldDisplayNameFromLayerFields(e);
|
|
171
155
|
}
|
|
172
156
|
}
|
|
173
157
|
getFieldDisplayNameFromLayerFields(e) {
|
|
174
158
|
const { layer: s } = this, t = this.layerFieldsMap.get(e);
|
|
175
|
-
return
|
|
159
|
+
return B.supportsFieldConfiguration(s) ? s.getFieldAlias(e) : t.alias ?? t.name;
|
|
176
160
|
}
|
|
177
161
|
async deleteFields() {
|
|
178
162
|
const { layer: e, fieldNames: s } = this, t = `${e.url.replace("/rest/services", "/rest/admin/services")}/${e.layerId}/deleteFromDefinition`, l = {
|
|
@@ -182,22 +166,22 @@ class X extends P {
|
|
|
182
166
|
}, o = {
|
|
183
167
|
deleteFromDefinition: JSON.stringify(l)
|
|
184
168
|
};
|
|
185
|
-
await
|
|
169
|
+
await _(t, {
|
|
186
170
|
query: { ...o, f: "json", async: !1 },
|
|
187
171
|
method: "post",
|
|
188
172
|
responseType: "json"
|
|
189
173
|
}).then(async (a) => {
|
|
190
174
|
if (a.data?.success) {
|
|
191
|
-
const
|
|
175
|
+
const f = `${e.url}/${e.layerId}`;
|
|
192
176
|
s.forEach((i) => {
|
|
193
177
|
e.type === "feature" && e.floorInfo?.floorField === i && (e.floorInfo = null);
|
|
194
178
|
});
|
|
195
|
-
const h = await
|
|
179
|
+
const h = await _(f, { query: { f: "json" }, responseType: "json" });
|
|
196
180
|
if (h) {
|
|
197
181
|
const i = h.data;
|
|
198
182
|
this.currentLayerInfo = h.data, i && (this.updateTypesAndTemplatesOnLayer(), s.forEach((r) => {
|
|
199
|
-
i.templates?.length ? i.templates.forEach((
|
|
200
|
-
|
|
183
|
+
i.templates?.length ? i.templates.forEach((d) => delete d.prototype.attributes[r]) : i.types?.forEach((d) => {
|
|
184
|
+
d.templates.forEach((m) => delete m.prototype.attributes[r]);
|
|
201
185
|
});
|
|
202
186
|
}), this.updateFeatureService(i));
|
|
203
187
|
} else
|
|
@@ -221,19 +205,19 @@ class X extends P {
|
|
|
221
205
|
updateTemplatesList(e) {
|
|
222
206
|
const { currentLayerInfo: s, messages: t } = this, l = [];
|
|
223
207
|
return (e ?? []).forEach((o) => {
|
|
224
|
-
const a = new
|
|
208
|
+
const a = new O();
|
|
225
209
|
a.description = o.description ?? "", a.name = o.name || t.newFeature, a.drawingTool = o.drawingTool || "point";
|
|
226
|
-
const
|
|
210
|
+
const f = {};
|
|
227
211
|
s.fields.forEach((i) => {
|
|
228
212
|
let r = !1;
|
|
229
|
-
for (let
|
|
230
|
-
if (o.prototype.attributes[
|
|
231
|
-
r = !0,
|
|
213
|
+
for (let d = 0; d < o.prototype.attributes.length; d++)
|
|
214
|
+
if (o.prototype.attributes[d] === i.name) {
|
|
215
|
+
r = !0, f[i.name] = o.prototype.attributes[i.name];
|
|
232
216
|
break;
|
|
233
217
|
}
|
|
234
|
-
!r && i.editable && !
|
|
218
|
+
!r && i.editable && !G.includes(i.name) && (f[i.name] = i.defaultValue || null);
|
|
235
219
|
});
|
|
236
|
-
const h = new
|
|
220
|
+
const h = new L({ attributes: f });
|
|
237
221
|
a.prototype = h, l.push(a);
|
|
238
222
|
}), l;
|
|
239
223
|
}
|
|
@@ -248,65 +232,65 @@ class X extends P {
|
|
|
248
232
|
f: "json",
|
|
249
233
|
updateDefinition: JSON.stringify(l)
|
|
250
234
|
};
|
|
251
|
-
await
|
|
235
|
+
await _(o, {
|
|
252
236
|
query: { ...a, f: "json" },
|
|
253
237
|
method: "post",
|
|
254
238
|
responseType: "json"
|
|
255
|
-
}).then(async (
|
|
256
|
-
if (
|
|
257
|
-
const h = `${
|
|
239
|
+
}).then(async (f) => {
|
|
240
|
+
if (f.data?.success) {
|
|
241
|
+
const h = `${N(this.portal)}content/items/${this.item.id}/data`;
|
|
258
242
|
if (this.options?.ignorePopupTemplate || t.forEach((i) => {
|
|
259
|
-
s.popupTemplate?.fieldInfos && (s.popupTemplate.fieldInfos = s.popupTemplate.fieldInfos.filter((r) => r.fieldName !== i)), s.popupTemplate?.content?.forEach((r,
|
|
260
|
-
r.type === "fields" && r.fieldInfos && ((s.popupTemplate?.content)[
|
|
243
|
+
s.popupTemplate?.fieldInfos && (s.popupTemplate.fieldInfos = s.popupTemplate.fieldInfos.filter((r) => r.fieldName !== i)), s.popupTemplate?.content?.forEach((r, d) => {
|
|
244
|
+
r.type === "fields" && r.fieldInfos && ((s.popupTemplate?.content)[d].fieldInfos = (s.popupTemplate?.content)[d].fieldInfos?.filter((m) => m.fieldName !== i));
|
|
261
245
|
});
|
|
262
246
|
}), s.attributeTableTemplate) {
|
|
263
247
|
const i = s.attributeTableTemplate.clone();
|
|
264
248
|
i.elements = i.elements.filter((r) => !(r.type === "field" && t.includes(r.fieldName))), i.orderByFields = i.orderByFields.filter((r) => !t.includes(r.field)), s.attributeTableTemplate = i;
|
|
265
249
|
}
|
|
266
250
|
if (s.fieldConfigurations?.length) {
|
|
267
|
-
const r =
|
|
251
|
+
const r = P.clone(s.fieldConfigurations).filter((d) => !t.includes(d.name));
|
|
268
252
|
s.fieldConfigurations = r;
|
|
269
253
|
}
|
|
270
|
-
await
|
|
254
|
+
await _(h, {
|
|
271
255
|
query: { f: "json" },
|
|
272
256
|
responseType: "json"
|
|
273
257
|
}).then(async (i) => {
|
|
274
258
|
const r = i.data;
|
|
275
259
|
if (r?.layers || r?.tables) {
|
|
276
|
-
const
|
|
277
|
-
if (t.forEach((
|
|
278
|
-
p?.attributeTableInfo?.attributeTableElements && (p.attributeTableInfo.attributeTableElements = p.attributeTableInfo.attributeTableElements.map((
|
|
279
|
-
if (
|
|
280
|
-
return
|
|
281
|
-
if (
|
|
282
|
-
const v =
|
|
260
|
+
const d = s.isTable, m = d ? r.tables : r.layers, p = m?.find((g) => g.id === s.layerId);
|
|
261
|
+
if (t.forEach((g) => {
|
|
262
|
+
p?.attributeTableInfo?.attributeTableElements && (p.attributeTableInfo.attributeTableElements = p.attributeTableInfo.attributeTableElements.map((n) => {
|
|
263
|
+
if (n.type === "field")
|
|
264
|
+
return n.fieldName === g ? void 0 : n;
|
|
265
|
+
if (n.type === "group" && Array.isArray(n.attributeTableElements)) {
|
|
266
|
+
const v = n.attributeTableElements.filter((u) => !(u.type === "field" && u.fieldName === g));
|
|
283
267
|
return v.length ? {
|
|
284
|
-
...
|
|
268
|
+
...n,
|
|
285
269
|
attributeTableElements: v
|
|
286
270
|
} : void 0;
|
|
287
271
|
}
|
|
288
|
-
return
|
|
289
|
-
}).filter(Boolean), p.attributeTableInfo.orderByFields = p.attributeTableInfo.orderByFields.filter((
|
|
290
|
-
}), p?.layerDefinition?.fieldConfigurations && (p.layerDefinition.fieldConfigurations = p.layerDefinition.fieldConfigurations.filter((
|
|
291
|
-
t.forEach((
|
|
292
|
-
p.popupInfo.fieldInfos = p.popupInfo.fieldInfos.filter((
|
|
293
|
-
|
|
272
|
+
return n;
|
|
273
|
+
}).filter(Boolean), p.attributeTableInfo.orderByFields = p.attributeTableInfo.orderByFields.filter((n) => n.field !== g));
|
|
274
|
+
}), p?.layerDefinition?.fieldConfigurations && (p.layerDefinition.fieldConfigurations = p.layerDefinition.fieldConfigurations.filter((g) => !t.includes(g.name))), p?.popupInfo) {
|
|
275
|
+
t.forEach((u) => {
|
|
276
|
+
p.popupInfo.fieldInfos = p.popupInfo.fieldInfos.filter((b) => b.fieldName !== u), p.popupInfo.popupElements?.forEach((b, $) => {
|
|
277
|
+
b.type === "fields" && b.fieldInfos && (p.popupInfo.popupElements[$].fieldInfos = p.popupInfo.popupElements[$].fieldInfos.filter((A) => A.fieldName !== u));
|
|
294
278
|
});
|
|
295
279
|
});
|
|
296
|
-
const
|
|
297
|
-
|
|
280
|
+
const g = `${N(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`, n = {};
|
|
281
|
+
d ? (n.tables = m, r.layers && (n.layers = r.layers)) : (n.layers = m, r.tables && (n.tables = r.tables));
|
|
298
282
|
const v = {
|
|
299
283
|
f: "json",
|
|
300
|
-
text: JSON.stringify(
|
|
284
|
+
text: JSON.stringify(n)
|
|
301
285
|
};
|
|
302
|
-
await
|
|
286
|
+
await _(g, {
|
|
303
287
|
query: {
|
|
304
288
|
...v
|
|
305
289
|
},
|
|
306
290
|
method: "post",
|
|
307
291
|
responseType: "json"
|
|
308
|
-
}).then((
|
|
309
|
-
|
|
292
|
+
}).then((u) => {
|
|
293
|
+
u.data?.success ? this.handleSuccess() : this.handleError();
|
|
310
294
|
}, () => this.handleError());
|
|
311
295
|
} else
|
|
312
296
|
this.handleSuccess();
|
|
@@ -323,50 +307,52 @@ class X extends P {
|
|
|
323
307
|
}
|
|
324
308
|
displaySuccessAlert() {
|
|
325
309
|
const { messages: e, fieldNames: s } = this;
|
|
326
|
-
this.successAlertNode && (this.successAlertNode.parentElement?.removeChild(this.successAlertNode), this.successAlertNode = void 0), this.successAlertNode =
|
|
310
|
+
this.successAlertNode && (this.successAlertNode.parentElement?.removeChild(this.successAlertNode), this.successAlertNode = void 0), this.successAlertNode = E(c`<calcite-alert .label=${s.length === 1 ? e.fieldDeleted : e.fieldsDeleted} kind=success icon=check-circle auto-close open><div slot=message>${s.length === 1 ? e.fieldDeleted : e.fieldsDeleted}</div></calcite-alert>`), document.body.append(this.successAlertNode);
|
|
327
311
|
}
|
|
328
312
|
displayErrorAlert() {
|
|
329
313
|
const { messages: e } = this;
|
|
330
|
-
this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode =
|
|
314
|
+
this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = E(c`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close open><div slot=message>${e.fieldDeletionUnsuccessful}</div></calcite-alert>`), document.body.append(this.errorAlertNode);
|
|
331
315
|
}
|
|
332
316
|
displayReadOnlyErrorAlert() {
|
|
333
317
|
const { messages: e, portal: s } = this;
|
|
334
|
-
this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode =
|
|
318
|
+
this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = E(c`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close auto-close-duration=slow open><div slot=title>${e.error}</div><div slot=message>${s.isPortal ? e.readOnlyErrorMessageEnterprise : e.readOnlyErrorMessage}</div>${!s.isPortal && c`<calcite-link slot=link target=_blank href=https://status.arcgis.com>${e.healthDashboard}</calcite-link>` || ""}</calcite-alert>`), document.body.append(this.errorAlertNode);
|
|
335
319
|
}
|
|
336
320
|
render() {
|
|
337
321
|
const { messages: e, fieldsAreDeletable: s, fieldNames: t, deleteInProgress: l } = this;
|
|
338
|
-
return this._propWatcherTask.render({
|
|
339
|
-
|
|
340
|
-
|
|
322
|
+
return c`<calcite-dialog class="dialog" width=s open modal outside-close-disabled escape-disabled @calciteDialogClose=${() => this.arcgisClose.emit()} .heading=${t?.length === 1 ? e.deleteField : e.deleteFields} ${I(this.dialogNode)}>${this._propWatcherTask.render({
|
|
323
|
+
pending: () => c`<div class="dialog-content-wrapper hide-overflow"><div class="loader-container active"><calcite-loader class="loader" .label=${e.fields}></calcite-loader></div></div>`,
|
|
324
|
+
error: () => c`<div class="dialog-content-wrapper">${this.renderError()}</div>`,
|
|
325
|
+
complete: () => (s || (t?.length ? t?.length === 1 ? y("error", this, "Field cannot be deleted") : y("error", this, "One or more fields cannot be deleted") : y("error", this, V("fieldNames"))), s ? c`<div class=${`dialog-content-wrapper ${l ? "hide-overflow" : ""}`}>${this.renderDeleteLoader()}<calcite-label>${t.length === 1 ? e.deletePrompt : e.deleteMultiplePrompt}</calcite-label>${this.renderFieldsPreview()}</div>${this.renderCancelButton()}${this.renderDeleteButton()}` : c`<div class="dialog-content-wrapper">${this.renderError()}</div>`)
|
|
326
|
+
})}</calcite-dialog>`;
|
|
341
327
|
}
|
|
342
328
|
renderError() {
|
|
343
329
|
const { messages: e } = this;
|
|
344
|
-
return
|
|
330
|
+
return c`<div class="loader-container active"><div class="loader-text">${e.errorOccurred}</div></div>`;
|
|
345
331
|
}
|
|
346
332
|
renderDeleteLoader() {
|
|
347
333
|
const { messages: e, fieldNames: s, deleteInProgress: t } = this;
|
|
348
|
-
return
|
|
334
|
+
return c`<div class=${`loader-container ${t ? "active" : ""}`}><calcite-loader class="loader" .label=${s.length === 1 ? e.deletingField : e.deletingFields} .hidden=${!t}></calcite-loader><div class="loader-text">${s.length === 1 ? e.deletingField : e.deletingFields}</div></div>`;
|
|
349
335
|
}
|
|
350
336
|
renderFieldsPreview() {
|
|
351
337
|
const { fieldNames: e, layerFields: s, layerFieldsMap: t, arcadeExpMap: l, messages: o } = this;
|
|
352
|
-
return
|
|
353
|
-
const
|
|
354
|
-
return
|
|
338
|
+
return c`<calcite-list .label=${o.fields}>${e.map((a) => {
|
|
339
|
+
const f = s.find((h) => h.name === a);
|
|
340
|
+
return c`<calcite-list-item .label=${this.getFieldLabel(a)} .description=${`{${a}}`} .value=${a} .disabled=${!f.editable}><div slot=actions-end class="field-icons">${J({ fieldType: R(a, t, l) })}</div></calcite-list-item>`;
|
|
355
341
|
})}</calcite-list>`;
|
|
356
342
|
}
|
|
357
343
|
renderCancelButton() {
|
|
358
344
|
const { messages: e } = this;
|
|
359
|
-
return
|
|
345
|
+
return c`<calcite-button @click=${() => this.dialogNode.value.open = !1} slot=footer-end appearance=outline ${I(this.cancelNode)}>${e.cancel}</calcite-button>`;
|
|
360
346
|
}
|
|
361
347
|
renderDeleteButton() {
|
|
362
348
|
const { messages: e, fieldNames: s } = this;
|
|
363
|
-
return
|
|
349
|
+
return c`<calcite-button kind=danger slot=footer-end @click=${async (t) => {
|
|
364
350
|
const { portal: l } = this;
|
|
365
351
|
t.currentTarget.disabled = !0, this.cancelNode.value.disabled = !0, this.dialogNode.value.closeDisabled = !0, l.sourceJSON?.isReadOnly ? this.handleError(!0) : (this.deleteInProgress = !0, this.requestUpdate(), this.arcgisBeforeDelete.emit(), await this.deleteFields());
|
|
366
352
|
}}>${s.length === 1 ? e.deleteField : e.deleteFieldsWithNumber.replace("${number}", `${s.length}`)}</calcite-button>`;
|
|
367
353
|
}
|
|
368
354
|
}
|
|
369
|
-
|
|
355
|
+
C("arcgis-portal-field-delete", K);
|
|
370
356
|
export {
|
|
371
|
-
|
|
357
|
+
K as ArcgisPortalFieldDelete
|
|
372
358
|
};
|
|
@@ -2,8 +2,8 @@ import "@esri/calcite-components/components/calcite-icon";
|
|
|
2
2
|
import "@esri/calcite-components/components/calcite-alert";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-link";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-dialog";
|
|
5
|
-
import "@esri/calcite-components/components/calcite-label";
|
|
6
5
|
import "@esri/calcite-components/components/calcite-loader";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-label";
|
|
7
7
|
import "@esri/calcite-components/components/calcite-list";
|
|
8
8
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
9
9
|
import "@esri/calcite-components/components/calcite-button";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { nothing as
|
|
2
|
+
import { c as g } from "../../chunks/runtime.js";
|
|
3
|
+
import { nothing as h, safeClassMap as m, LitElement as u } from "@arcgis/lumina";
|
|
4
4
|
import { u as b } from "../../chunks/useT9n.js";
|
|
5
5
|
import { html as c, css as f } from "lit";
|
|
6
6
|
import { i as w } from "../../chunks/functionalities.js";
|
|
7
|
-
import {
|
|
7
|
+
import { g as $, a as x, b as G, i as y, c as I, d as O } from "../../chunks/groups.js";
|
|
8
8
|
const C = ({ appearance: a, badgeType: t, class: e, messages: s, scale: o, showTooltip: i, width: n }) => {
|
|
9
9
|
const r = s[t] ?? { title: t, tooltip: "" }, d = v[t], l = n === "narrow", p = `portal-group-badge-${t}`;
|
|
10
|
-
return c`<calcite-chip id=${p ??
|
|
10
|
+
return c`<calcite-chip id=${p ?? h} class=${m({
|
|
11
11
|
badge: !0,
|
|
12
12
|
"badge--colored": w(["OpenData", "Partnered"], t),
|
|
13
13
|
narrow: l,
|
|
@@ -45,7 +45,7 @@ class _ extends u {
|
|
|
45
45
|
return e.map((n) => C({ appearance: t, badgeType: n, class: "portal-group-badges__badge", messages: this._messages, scale: s, showTooltip: o, width: i }));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
g("arcgis-portal-group-badges", _);
|
|
49
49
|
export {
|
|
50
50
|
_ as ArcgisPortalGroupBadges
|
|
51
51
|
};
|