@arcgis/portal-components 6.0.0-next.3 → 6.0.0-next.31
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/22DNGXFY.js +2 -0
- package/dist/cdn/234TH32X.js +106 -0
- package/dist/cdn/25K5D5HL.js +2 -0
- package/dist/cdn/2CC4MNQP.js +2 -0
- package/dist/cdn/365ICWHN.js +2 -0
- package/dist/cdn/3CXU5CCM.js +2 -0
- package/dist/cdn/3DTSKTHB.js +2 -0
- package/dist/cdn/3MUI6DF4.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → 3QWNGHAK.js} +1 -1
- package/dist/cdn/3T3QBPC3.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
- package/dist/cdn/4X4EYM3Q.js +2 -0
- package/dist/cdn/4Y73LE7P.js +2 -0
- package/dist/cdn/5CEFJTG4.js +2 -0
- package/dist/cdn/5VFGR7LA.js +2 -0
- package/dist/cdn/5Y32T5IJ.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → 6EMK2BU6.js} +1 -1
- package/dist/cdn/6HNKQNS5.js +2 -0
- package/dist/cdn/{NWVLGU2C.js → 7BFTXD5J.js} +1 -1
- package/dist/cdn/{URQML7KV.js → 7DAB2CEU.js} +1 -1
- package/dist/cdn/7ZWYPQMW.js +2 -0
- package/dist/cdn/AM3UTQWH.js +4 -0
- package/dist/cdn/{D2YQWKME.js → ASID6YW7.js} +2 -2
- package/dist/cdn/ASLKTYLX.js +2 -0
- package/dist/cdn/{7ZWYUHGK.js → B343BOVA.js} +1 -1
- package/dist/cdn/BHZKSSVZ.js +2 -0
- package/dist/cdn/BOEGDK4D.js +2 -0
- package/dist/cdn/{QTAYXO5T.js → BRWHEYLW.js} +1 -1
- package/dist/cdn/{74T6IXSN.js → BX2LXI3N.js} +1 -1
- package/dist/cdn/{JE2376SE.js → C3F24ZOM.js} +1 -1
- package/dist/cdn/C4GK263H.js +2 -0
- package/dist/cdn/CBFFZMX4.js +2 -0
- package/dist/cdn/CJ4S56BE.js +2 -0
- package/dist/cdn/{IN4JPZTY.js → CMNTOT5D.js} +1 -1
- package/dist/cdn/CVU6YKOA.js +2 -0
- package/dist/cdn/D52TYBRX.js +2 -0
- package/dist/cdn/DMS3R2W5.js +2 -0
- package/dist/cdn/{TWCJJCPC.js → DV57AOBF.js} +1 -1
- package/dist/cdn/EDQSL2P3.js +2 -0
- package/dist/cdn/ERBRAY5U.js +2 -0
- package/dist/cdn/{TRMFL7PT.js → ESKKH4DE.js} +1 -1
- package/dist/cdn/FAZVQI4K.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → FGDSHTJ5.js} +1 -1
- package/dist/cdn/FGRMURKX.js +2 -0
- package/dist/cdn/{2TDHJSMP.js → FKOSVY5D.js} +1 -1
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/FOWOLUC3.js +2 -0
- package/dist/cdn/FVHP6PFG.js +2 -0
- package/dist/cdn/G7DJPREL.js +2 -0
- package/dist/cdn/GBXFX37Y.js +2 -0
- package/dist/cdn/{K2XSYDAP.js → GC4BV7IZ.js} +1 -1
- package/dist/cdn/H6MGSC3Y.js +2 -0
- package/dist/cdn/H6OQOEHS.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → HBO7XTIL.js} +1 -1
- package/dist/cdn/HKHDBGNN.js +2 -0
- package/dist/cdn/HVQ7FKJ5.js +2 -0
- package/dist/cdn/HXR7GUM3.js +91 -0
- package/dist/cdn/IGOSZ2LL.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → IUIFCQQU.js} +1 -1
- package/dist/cdn/IX4WEZZ2.js +2 -0
- package/dist/cdn/JA3GGSJJ.js +2 -0
- package/dist/cdn/{M5PPX4ZX.js → JEVNGG2O.js} +1 -1
- package/dist/cdn/JLT5GCLY.js +2 -0
- package/dist/cdn/K3GAZFRI.js +63 -0
- package/dist/cdn/KHA6NJ4N.js +2 -0
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/KTTPPUQ7.js +2 -0
- package/dist/cdn/L25GEXL6.js +2 -0
- package/dist/cdn/LBW47BJG.js +2 -0
- package/dist/cdn/LR33CLTB.js +2 -0
- package/dist/cdn/{CFRJU6VA.js → M664QA6J.js} +1 -1
- package/dist/cdn/MJVKDAYF.js +2 -0
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/MVC6LIQ6.js +2 -0
- package/dist/cdn/NENAFJEC.js +2 -0
- package/dist/cdn/NHVPNSNH.js +2 -0
- package/dist/cdn/NLFBHNSX.js +2 -0
- package/dist/cdn/{VNU4QX7M.js → NQ2IAQKL.js} +17 -17
- package/dist/cdn/{2YZWRFCI.js → NYBLHT3F.js} +1 -1
- package/dist/cdn/O4YFPGD5.js +2 -0
- package/dist/cdn/OHAQPQAP.js +2 -0
- package/dist/cdn/OQ2JULON.js +2 -0
- package/dist/cdn/{JIJO4CAS.js → PJZZIITX.js} +1 -1
- package/dist/cdn/PRBP4AP6.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → PST62OKJ.js} +1 -1
- package/dist/cdn/Q2CCAKI4.js +2 -0
- package/dist/cdn/QF626JXP.js +2 -0
- package/dist/cdn/QMIVFHQE.js +2 -0
- package/dist/cdn/QRHXMIMW.js +2 -0
- package/dist/cdn/R5LNWMD4.js +2 -0
- package/dist/cdn/RJ3SU3EV.js +2 -0
- package/dist/cdn/RJRTGF33.js +2 -0
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → SO3IBFEU.js} +1 -1
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/SUA7ZZUH.js +2 -0
- package/dist/cdn/SV6SGTR6.js +2 -0
- package/dist/cdn/TAZDV6DB.js +2 -0
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TJANHZ25.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → TO666HVV.js} +1 -1
- package/dist/cdn/UBPCKCW2.js +2 -0
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/US37IXWO.js +2 -0
- package/dist/cdn/UZW2KV4X.js +2 -0
- package/dist/cdn/{Z6R3C4AK.js → VFECPSKA.js} +1 -1
- package/dist/cdn/VLD3MVSG.js +2 -0
- package/dist/cdn/VWV2LCNA.js +2 -0
- package/dist/cdn/WC3MDSMP.js +70 -0
- package/dist/cdn/WCZJXBW3.js +2 -0
- package/dist/cdn/WFPUAEJQ.js +3 -0
- package/dist/cdn/{OR6T5SB3.js → WIUFH5SJ.js} +1 -1
- package/dist/cdn/{5HZNBMW6.js → WZFGZEQI.js} +1 -1
- package/dist/cdn/XE3DCC5D.js +2 -0
- package/dist/cdn/{JN23JH3T.js → XEVOU7SJ.js} +1 -1
- package/dist/cdn/{BKD7JSV2.js → XH6RD5BO.js} +1 -1
- package/dist/cdn/XJNEK5Q7.js +2 -0
- package/dist/cdn/XK3WIW4R.js +2 -0
- package/dist/cdn/XOM3GLYF.js +2 -0
- package/dist/cdn/YGZICQBT.js +2 -0
- package/dist/cdn/YP7T6NKR.js +2 -0
- package/dist/cdn/{RHCRPJWS.js → YYKKXL62.js} +1 -1
- package/dist/cdn/Z5OZYZYV.js +2 -0
- package/dist/cdn/{SGDDFWCJ.js → ZGSAH7Z7.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-type/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/FieldIcons.js +24 -0
- package/dist/chunks/fieldAddDelete.js +7 -7
- package/dist/chunks/functionalities.js +14 -9
- package/dist/chunks/groups.js +8 -61
- package/dist/chunks/groups2.js +23 -8
- package/dist/chunks/info.js +2 -2
- package/dist/chunks/item.js +131 -33
- package/dist/chunks/item2.js +63 -125
- package/dist/chunks/itemThumbnail.js +21 -21
- 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-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +6 -6
- package/dist/chunks/portal2.js +23 -23
- package/dist/chunks/portalEntitySelection.js +61 -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/utils2.js +4 -4
- 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 +26 -17
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +546 -2655
- package/dist/components/arcgis-portal-ai-assistant/index.js +4 -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 +8 -1
- package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +39 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +67 -27
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -1
- 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 +446 -330
- 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 +96 -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-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.js +7 -8
- package/dist/components/arcgis-portal-navigation/index.js +4 -4
- 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-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 +63 -0
- package/dist/index.js +300 -6
- package/dist/loader.js +18 -10
- 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 +17 -11
- package/dist/types/layer.d.ts +27 -0
- package/dist/types/lumina.d.ts +63 -11
- package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
- package/dist/types/portalEntityPicker.d.ts +3 -0
- package/dist/types/preact.d.ts +71 -11
- package/dist/types/react.d.ts +79 -11
- package/dist/types/services.d.ts +28 -1
- package/dist/types/stencil.d.ts +63 -11
- 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 +11 -10
- 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/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/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/FRE56NBG.js +0 -2
- 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/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/{GGDOGNH4.js → U2HTYOBB.js} +0 -0
|
@@ -4,13 +4,13 @@ import { LitElement as E, createEvent as F, safeClassMap as v, nothing as D } fr
|
|
|
4
4
|
import { css as V, html as w } from "lit";
|
|
5
5
|
import { i as O } from "../../chunks/functionalities.js";
|
|
6
6
|
import { a as g, b as S, g as R } from "../../chunks/itemThumbnail.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { k as x, u as k } from "../../chunks/item.js";
|
|
8
|
+
import { b as A } from "../../chunks/portal.js";
|
|
9
9
|
import { execute as B } from "@arcgis/core/rest/geoprocessor.js";
|
|
10
10
|
function G(e) {
|
|
11
11
|
return e ? `${e.xmin},${e.ymin},${e.xmax},${e.ymax}` : "";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function U(e) {
|
|
14
14
|
return e && e.xmin >= -180 && e.xmax <= 180 && e.ymin >= -90 && e.ymax <= 90 && e.xmin <= e.xmax && e.ymin <= e.ymax ? [
|
|
15
15
|
[e.xmin, e.ymin],
|
|
16
16
|
[e.xmax, e.ymax]
|
|
@@ -129,7 +129,7 @@ async function _(e, t) {
|
|
|
129
129
|
i?.destroy(), r?.destroy();
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
async function
|
|
132
|
+
async function $({
|
|
133
133
|
webMap: e,
|
|
134
134
|
extent: t,
|
|
135
135
|
portal: r,
|
|
@@ -182,9 +182,9 @@ async function C({
|
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
};
|
|
185
|
-
return await
|
|
185
|
+
return await $({
|
|
186
186
|
webMap: c,
|
|
187
|
-
extent:
|
|
187
|
+
extent: U(e.extent),
|
|
188
188
|
portal: t,
|
|
189
189
|
spatialReference: { wkid: 4326 }
|
|
190
190
|
});
|
|
@@ -216,9 +216,9 @@ async function W({
|
|
|
216
216
|
authoringAppVersion: "5.3",
|
|
217
217
|
version: "2.10"
|
|
218
218
|
};
|
|
219
|
-
return await
|
|
219
|
+
return await $({
|
|
220
220
|
webMap: i,
|
|
221
|
-
extent:
|
|
221
|
+
extent: U(e.extent),
|
|
222
222
|
portal: t,
|
|
223
223
|
spatialReference: { wkid: 102100 }
|
|
224
224
|
});
|
|
@@ -237,21 +237,21 @@ async function j({
|
|
|
237
237
|
}
|
|
238
238
|
return { result: a ?? i };
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function z(e, t) {
|
|
241
241
|
if (!e)
|
|
242
242
|
return !1;
|
|
243
243
|
const r = e.includes("thumbnail/ago_downloaded."), i = e.includes("Utilities/PrintingTools");
|
|
244
244
|
return !e.includes("images/transparent.gif") && (t?.isPortal ? !i : !r);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
const r = !!t &&
|
|
246
|
+
function q(e, t) {
|
|
247
|
+
const r = !!t && k(e, t), i = e.type === "Dashboard";
|
|
248
248
|
return !S(e) && r && i;
|
|
249
249
|
}
|
|
250
250
|
function J(e, t, r) {
|
|
251
|
-
const i = S(e), n =
|
|
251
|
+
const i = S(e), n = z(i, t), a = ["Feature Service", "Vector Tile Service"].includes(e.type) && !n, l = e.type === "Feature Service" && e.typeKeywords?.includes("Location Tracking Service"), c = e.typeKeywords?.includes("Table");
|
|
252
252
|
if (e.type === "Image" || i && !a || l || c)
|
|
253
253
|
return !1;
|
|
254
|
-
const s = e.typeKeywords?.includes("Tiled Imagery"), p = e.type === "Image Service" && !s || e.type === "Map Service", m = !!r &&
|
|
254
|
+
const s = e.typeKeywords?.includes("Tiled Imagery"), p = e.type === "Image Service" && !s || e.type === "Map Service", m = !!r && k(e, r);
|
|
255
255
|
return m && p || m && e.type === "Feature Service" || e.type === "Vector Tile Service" || m && e.type === "KML";
|
|
256
256
|
}
|
|
257
257
|
const H = V`:host{display:block;height:100%;position:relative;width:100%}.outer{position:relative;width:100%;height:100%;aspect-ratio:3 / 2;min-height:0}.inner{position:absolute;inset:0;background-color:var(--calcite-color-background)}.inner--loading{animation:thumbnail-shimmer 1s linear infinite;background-image:linear-gradient(to right,var(--calcite-color-background) 0%,var(--calcite-color-foreground-2),var(--calcite-color-background) 40%,var(--calcite-color-background) 100%);background-repeat:no-repeat;background-size:800px 100%}.thumbnail{display:block;width:100%;height:100%;object-fit:cover;opacity:1;transition:opacity .3s linear}.thumbnail--loading{opacity:0}.fallback{display:flex;height:100%;width:100%;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-3)}@keyframes thumbnail-shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}`;
|
|
@@ -287,7 +287,7 @@ class Y extends E {
|
|
|
287
287
|
async updateThumbnail() {
|
|
288
288
|
const { item: t, portal: r, user: i } = this;
|
|
289
289
|
this.imageError = !1, this.useDefaultThumbnail = !1;
|
|
290
|
-
const n = this.generate && J(t, r, i), a = this.generate &&
|
|
290
|
+
const n = this.generate && J(t, r, i), a = this.generate && q(t, i);
|
|
291
291
|
n && await this.generateThumbnail() || (this.thumbnailUri = a ? g(t) : R(r, t, !1, this.useProduction, this.cacheString), a && await this.generateThumbnail(!0));
|
|
292
292
|
}
|
|
293
293
|
render() {
|
|
@@ -3,7 +3,7 @@ import type Portal from "@arcgis/core/portal/Portal.js";
|
|
|
3
3
|
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
4
4
|
import type PortalUser from "@arcgis/core/portal/PortalUser.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
|
-
import type {
|
|
6
|
+
import type { ItemServiceInfo } from "../../types/item.js";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
8
|
|
|
9
9
|
export abstract class ArcgisPortalItemType extends LitElement {
|
|
@@ -35,12 +35,13 @@ export abstract class ArcgisPortalItemType extends LitElement {
|
|
|
35
35
|
utilityNetwork: string;
|
|
36
36
|
parcelFabric: string;
|
|
37
37
|
parcelFabricHosted: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
meshLayer: string;
|
|
39
|
+
object3dLayer: string;
|
|
40
|
+
pointCloudLayer: string;
|
|
41
|
+
point3dLayer: string;
|
|
42
|
+
buildingLayer: string;
|
|
43
|
+
voxelLayer: string;
|
|
44
|
+
gaussianSplatLayer: string;
|
|
44
45
|
dataStore: {
|
|
45
46
|
bigdata: string;
|
|
46
47
|
cloud: string;
|
|
@@ -64,12 +65,13 @@ export abstract class ArcgisPortalItemType extends LitElement {
|
|
|
64
65
|
utilityNetwork: string;
|
|
65
66
|
parcelFabric: string;
|
|
66
67
|
parcelFabricHosted: string;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
meshLayer: string;
|
|
69
|
+
object3dLayer: string;
|
|
70
|
+
pointCloudLayer: string;
|
|
71
|
+
point3dLayer: string;
|
|
72
|
+
buildingLayer: string;
|
|
73
|
+
voxelLayer: string;
|
|
74
|
+
gaussianSplatLayer: string;
|
|
73
75
|
dataStore: {
|
|
74
76
|
bigdata: string;
|
|
75
77
|
cloud: string;
|
|
@@ -81,7 +83,7 @@ export abstract class ArcgisPortalItemType extends LitElement {
|
|
|
81
83
|
accessor portal: Portal | undefined;
|
|
82
84
|
/** @default "s" */
|
|
83
85
|
accessor scale: "l" | "m" | "s";
|
|
84
|
-
accessor serviceInfo:
|
|
86
|
+
accessor serviceInfo: ItemServiceInfo | undefined;
|
|
85
87
|
/**
|
|
86
88
|
* Display additional information about the item (views, extensions, photos, etc)
|
|
87
89
|
* will only display for users who can update or edit
|
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u } from "../../chunks/useT9n.js";
|
|
6
|
-
import { g as
|
|
7
|
-
const
|
|
8
|
-
class
|
|
2
|
+
import { g as f, c as y } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as u, nothing as o, safeClassMap as x } from "@arcgis/lumina";
|
|
4
|
+
import { css as v, html as i } from "lit";
|
|
5
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
6
|
+
import { g as I } from "../../chunks/utils4.js";
|
|
7
|
+
const $ = v`:host{display:inline-flex;align-items:center}:host([scale="s"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--2);--arcgis-portal-item-type-spacing: 1rem}:host([scale="m"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--1);--arcgis-portal-item-type-spacing: 1rem}:host([scale="l"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size-0);--arcgis-portal-item-type-spacing: 1rem}.icon{display:block;flex-grow:0;flex-shrink:0;width:var(--arcgis-portal-item-type-spacing);height:var(--arcgis-portal-item-type-spacing)}.text{color:var(--calcite-text-color-2);font-size:var(--arcgis-portal-item-type-font-size);line-height:1.25rem}.text--ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.text--spaced{margin-inline-start:calc(var(--arcgis-portal-item-type-spacing) / 2);word-wrap:break-word;word-break:break-word}`;
|
|
8
|
+
class z extends u {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(...arguments), this.messages =
|
|
10
|
+
super(...arguments), this.messages = w({ blocking: !0 }), this.scale = "s";
|
|
11
11
|
}
|
|
12
12
|
static {
|
|
13
|
-
this.properties = {
|
|
13
|
+
this.properties = { displayInfo: 16, item: 0, serviceInfo: 0, portal: 0, user: 0, scale: 3, hideText: 5, hideIcon: 5, ellipsis: 5, showHosted: 5 };
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
|
-
this.styles =
|
|
16
|
+
this.styles = $;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
portal: s || e.portal
|
|
28
|
-
});
|
|
29
|
-
this.displayName = i, this.displayNameHosted = l, this.icon = t;
|
|
18
|
+
willUpdate(t) {
|
|
19
|
+
const s = this.messages._lang;
|
|
20
|
+
(t.has("item") || t.has("serviceInfo") || t.has("portal") || t.has("user") || s !== this.displayLanguage) && (this.displayLanguage = s, this.displayInfo = this.item && s ? I({
|
|
21
|
+
item: this.item,
|
|
22
|
+
messages: this.messages,
|
|
23
|
+
serviceInfo: this.serviceInfo,
|
|
24
|
+
portal: this.portal ?? this.item.portal,
|
|
25
|
+
user: this.user
|
|
26
|
+
}) : void 0);
|
|
30
27
|
}
|
|
31
28
|
render() {
|
|
32
|
-
const {
|
|
33
|
-
if (!
|
|
29
|
+
const { displayInfo: t, showHosted: s, scale: l, hideText: c, hideIcon: a, ellipsis: n } = this;
|
|
30
|
+
if (!t)
|
|
34
31
|
return null;
|
|
35
|
-
const t =
|
|
36
|
-
return
|
|
32
|
+
const { icon: p, displayName: m, displayNameHosted: h } = t, e = s ? h : m, g = e?.includes("(") ? "" : "‭", d = f(`./assets/portal-item-type/icons/${p}16.svg`), r = this.hideText ? e : void 0;
|
|
33
|
+
return i`${!a && i`<span class="icon"><img src=${d ?? o} alt=${(r || "") ?? o} class=${`icon icon--${l}`}></span>` || ""}${!c && i`<span class=${x({ text: !0, "text--spaced": !a, "text--ellipsis": n })} .innerHTML=${`${g}${e}`}></span>` || ""}`;
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
|
-
|
|
36
|
+
y("arcgis-portal-item-type", z);
|
|
40
37
|
export {
|
|
41
|
-
|
|
38
|
+
z as ArcgisPortalItemType
|
|
42
39
|
};
|
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as A } from "../../chunks/runtime.js";
|
|
3
|
-
import { safeClassMap as T, LitElement as
|
|
4
|
-
import { html as
|
|
5
|
-
import { ref as
|
|
6
|
-
import { makeGenericController as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { S as
|
|
9
|
-
import { q as
|
|
10
|
-
import { s as
|
|
11
|
-
import { b as
|
|
3
|
+
import { safeClassMap as T, LitElement as P, createEvent as v } from "@arcgis/lumina";
|
|
4
|
+
import { html as h, css as k } from "lit";
|
|
5
|
+
import { ref as C, createRef as E } from "lit/directives/ref.js";
|
|
6
|
+
import { makeGenericController as U } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { debounce as D } from "@arcgis/toolkit/function";
|
|
8
|
+
import { S as L, M as y, g as O, c as R } from "../../chunks/utils.js";
|
|
9
|
+
import { q as _ } from "../../chunks/groups2.js";
|
|
10
|
+
import { s as F } from "../../chunks/item2.js";
|
|
11
|
+
import { b as Q } from "../../chunks/user.js";
|
|
12
12
|
import { f as $ } from "../../chunks/request.js";
|
|
13
|
-
import { keyed as
|
|
14
|
-
|
|
13
|
+
import { keyed as N } from "lit/directives/keyed.js";
|
|
14
|
+
import { c as g, a as K } from "../../chunks/selectedMentions.js";
|
|
15
|
+
const M = (r) => y.includes(r) ? r : "@", V = U((r) => {
|
|
15
16
|
let e = [];
|
|
16
17
|
const i = async (s) => await $({
|
|
17
|
-
requester: async () => await
|
|
18
|
+
requester: async () => await F(r.portal, s, { num: 3 }),
|
|
18
19
|
key: "items",
|
|
19
20
|
id: s
|
|
20
21
|
}), n = async (s) => await $({
|
|
21
|
-
requester: async () => await
|
|
22
|
+
requester: async () => await _(r.portal, { query: `title:${s}`, num: 3 }),
|
|
22
23
|
key: "groups",
|
|
23
24
|
id: s
|
|
24
|
-
}),
|
|
25
|
-
|
|
25
|
+
}), a = D(async (s, c) => {
|
|
26
|
+
r.isFetchingEntities = !0;
|
|
26
27
|
const l = s.toLowerCase();
|
|
27
|
-
switch (
|
|
28
|
+
switch (M(c)) {
|
|
28
29
|
case "@":
|
|
29
|
-
const
|
|
30
|
-
|
|
30
|
+
const m = 10;
|
|
31
|
+
r.filteredItemsInfo = {
|
|
31
32
|
type: "user",
|
|
32
33
|
items: e.filter(
|
|
33
|
-
(
|
|
34
|
-
).slice(0,
|
|
34
|
+
(f) => f.username?.toLowerCase().includes(l) || f.fullName?.toLowerCase().includes(l)
|
|
35
|
+
).slice(0, m)
|
|
35
36
|
};
|
|
36
37
|
break;
|
|
37
38
|
case "#":
|
|
38
|
-
const { result:
|
|
39
|
-
|
|
39
|
+
const { result: d } = await i(l);
|
|
40
|
+
r.filteredItemsInfo = { type: "item", items: d?.results ?? [] };
|
|
40
41
|
break;
|
|
41
42
|
case "$":
|
|
42
|
-
const { results:
|
|
43
|
-
|
|
43
|
+
const { results: I } = await n(l);
|
|
44
|
+
r.filteredItemsInfo = { type: "group", items: I };
|
|
44
45
|
break;
|
|
45
46
|
}
|
|
46
|
-
(
|
|
47
|
-
},
|
|
47
|
+
(r.filteredItemsInfo?.items?.length ?? 0) === 0 && await r.closePopover(), r.isFetchingEntities = !1;
|
|
48
|
+
}, L);
|
|
48
49
|
return { fetchUsers: async () => {
|
|
49
50
|
try {
|
|
50
|
-
const { users: s } = await
|
|
51
|
+
const { users: s } = await Q(r.portal);
|
|
51
52
|
e = s ?? [];
|
|
52
53
|
} catch (s) {
|
|
53
54
|
e = [], console.error("error fetching org users:", s);
|
|
54
55
|
}
|
|
55
|
-
}, filterItems:
|
|
56
|
+
}, filterItems: a, getItemText: (s, c) => {
|
|
56
57
|
let l = "";
|
|
57
|
-
switch (
|
|
58
|
+
switch (M(c)) {
|
|
58
59
|
case "@":
|
|
59
60
|
l = s.username;
|
|
60
61
|
break;
|
|
@@ -67,16 +68,16 @@ const y = (a) => g.includes(a) ? a : "@", Q = E((a) => {
|
|
|
67
68
|
}
|
|
68
69
|
return l.trim();
|
|
69
70
|
} };
|
|
70
|
-
}),
|
|
71
|
+
}), w = ({ id: r, label: e, selected: i, description: n, contentStart: a, onSelect: o }) => N(r, h`<calcite-list-item class=${T({ selected: i })} .label=${e} .description=${n} .selected=${i} @pointerdown=${async (t) => {
|
|
71
72
|
t.preventDefault(), t.stopPropagation(), await o();
|
|
72
|
-
}} ${
|
|
73
|
+
}} ${C((t) => {
|
|
73
74
|
i && t && t.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
74
|
-
})}>${
|
|
75
|
-
class
|
|
75
|
+
})}>${a}</calcite-list-item>`), q = k`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`;
|
|
76
|
+
class G extends P {
|
|
76
77
|
constructor() {
|
|
77
|
-
super(...arguments), this.calciteTextAreaRef =
|
|
78
|
+
super(...arguments), this.calciteTextAreaRef = E(), this.mentionableEntityController = V(this), this.handleInput = (e) => {
|
|
78
79
|
const { bubbleNewValueChange: i, checkForMention: n } = this, o = e.target.value;
|
|
79
|
-
this._value = o, i(this._value);
|
|
80
|
+
o || g(this.el), this._value = o, i(this._value);
|
|
80
81
|
const t = this.nativeTextAreaRef?.selectionStart ?? 0;
|
|
81
82
|
n(o, t);
|
|
82
83
|
}, this.handleKeyDown = (e) => {
|
|
@@ -103,30 +104,30 @@ class K extends S {
|
|
|
103
104
|
}, this.bubbleNewValueChange = (e) => {
|
|
104
105
|
this.arcgisUserMentionableTextAreaChange.emit(e), this.arcgisMentionableTextAreaChange.emit(e);
|
|
105
106
|
}, this.checkForMention = (e, i) => {
|
|
106
|
-
const n = e.substring(0, i),
|
|
107
|
-
if (
|
|
108
|
-
const { starter: o } =
|
|
109
|
-
this.currentStarter = o, this.filterMentionItems(
|
|
107
|
+
const n = e.substring(0, i), a = O(n, this.starters ?? y);
|
|
108
|
+
if (a) {
|
|
109
|
+
const { starter: o } = a;
|
|
110
|
+
this.currentStarter = o, this.filterMentionItems(a), this.popoverOpen = !0;
|
|
110
111
|
return;
|
|
111
112
|
}
|
|
112
113
|
this.handleClosePopover();
|
|
113
114
|
}, this.filterMentionItems = (e) => {
|
|
114
|
-
const { mentionText: i, query: n, starter:
|
|
115
|
+
const { mentionText: i, query: n, starter: a, startIndex: o } = e;
|
|
115
116
|
this.currentMentionQuery = i, this.mentionStartPosition = o;
|
|
116
117
|
const t = n.toLowerCase();
|
|
117
|
-
this.mentionableEntityController.filterItems(t,
|
|
118
|
-
}, this.popoverOpen = !1, this.currentMentionQuery = "", this.mentionStartPosition = 0, this.selectedItemIndex = 0, this.currentStarter = null, this._value = "", this.filteredItemsInfo = null, this.isFetchingEntities = !1, this.popoverPlacement = "bottom-start", this.disabled = !1, this.scale = "m", this.rows = 3, this.starters =
|
|
118
|
+
this.mentionableEntityController.filterItems(t, a), this.selectedItemIndex = 0;
|
|
119
|
+
}, this.popoverOpen = !1, this.currentMentionQuery = "", this.mentionStartPosition = 0, this.selectedItemIndex = 0, this.currentStarter = null, this._value = "", this.filteredItemsInfo = null, this.isFetchingEntities = !1, this.popoverPlacement = "bottom-start", this.disabled = !1, this.scale = "m", this.rows = 3, this.starters = y, this.readOnly = !1, this.arcgisMentionableSelectedIndexChange = v(), this.arcgisMentionableTextAreaChange = v(), this.arcgisMentionableTextAreaKeyDown = v(), this.arcgisUserMentionableTextAreaChange = v(), this.arcgisUserMentionableTextAreaKeyDown = v(), this.renderItemInfo = () => {
|
|
119
120
|
const { filteredItemsInfo: e, selectedItemIndex: i, portal: n } = this;
|
|
120
121
|
if (!e)
|
|
121
122
|
return null;
|
|
122
|
-
const { items:
|
|
123
|
+
const { items: a, type: o } = e;
|
|
123
124
|
switch (o) {
|
|
124
125
|
case "user":
|
|
125
|
-
return
|
|
126
|
+
return a.map((t, s) => w({ id: t.id, label: `@${t.username}`, description: t.fullName, selected: s === i, contentStart: h`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${n} scale=m></arcgis-portal-user-avatar>`, onSelect: async () => await this.selectItem(t) }));
|
|
126
127
|
case "item":
|
|
127
|
-
return
|
|
128
|
+
return a.map((t, s) => w({ id: t.id ?? `item-${s}`, label: `#${t.title}`, description: t.id ?? void 0, selected: s === i, onSelect: async () => await this.selectItem(t), contentStart: h`<calcite-avatar slot=content-start .fullName=${t.title ?? void 0} .thumbnail=${t.thumbnailUrl ?? void 0} scale=m></calcite-avatar>` }));
|
|
128
129
|
case "group":
|
|
129
|
-
return
|
|
130
|
+
return a.map((t, s) => w({ id: t.id ?? `group-${s}`, label: `${t.title}`, description: t.id ?? void 0, selected: s === i, onSelect: async () => await this.selectItem(t), contentStart: h`<calcite-avatar slot=content-start .fullName=${t.title ?? void 0} .thumbnail=${t.thumbnailUrl ?? void 0} scale=m></calcite-avatar>` }));
|
|
130
131
|
}
|
|
131
132
|
};
|
|
132
133
|
}
|
|
@@ -134,7 +135,7 @@ class K extends S {
|
|
|
134
135
|
this.properties = { popoverOpen: 16, currentMentionQuery: 16, mentionStartPosition: 16, selectedItemIndex: 16, currentStarter: 16, _value: 16, filteredItemsInfo: 16, isFetchingEntities: 16, popoverListLabel: 1, popoverPlacement: 1, disabled: 5, portal: 0, user: 0, scale: 1, value: 1, maxLength: 9, rows: 9, starters: 0, placeholder: 1, readOnly: 5 };
|
|
135
136
|
}
|
|
136
137
|
static {
|
|
137
|
-
this.styles =
|
|
138
|
+
this.styles = q;
|
|
138
139
|
}
|
|
139
140
|
get filteredItems() {
|
|
140
141
|
return this.filteredItemsInfo?.items ?? [];
|
|
@@ -146,16 +147,19 @@ class K extends S {
|
|
|
146
147
|
await this.calciteTextAreaRef.value?.setFocus();
|
|
147
148
|
}
|
|
148
149
|
async selectItem(e) {
|
|
149
|
-
const { currentStarter: i, _value: n, mentionStartPosition:
|
|
150
|
+
const { currentStarter: i, _value: n, mentionStartPosition: a, currentMentionQuery: o, handleClosePopover: t, calciteTextAreaRef: s, nativeTextAreaRef: c, bubbleNewValueChange: l } = this;
|
|
150
151
|
if (!e || !i)
|
|
151
152
|
return;
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
const u = this.mentionableEntityController.getItemText(e, i), p = u.replaceAll('"', "").trim(), m = /\s/u.test(p) ? `${i}"${p}"` : `${i}${p}`, d = (n ?? "").substring(0, a), I = (n ?? "").substring(a + o.length), f = `${d}${m} ${I}`, b = R(e, i, u);
|
|
154
|
+
b && K(this.el, {
|
|
155
|
+
text: m,
|
|
156
|
+
part: b
|
|
157
|
+
}), this._value = f, l(this._value);
|
|
158
|
+
const x = a + m.length + 1;
|
|
159
|
+
t(), await this.updateComplete, s.value?.setFocus(), c && (c.selectionEnd = x);
|
|
156
160
|
}
|
|
157
161
|
willUpdate(e) {
|
|
158
|
-
e.has("value") && (this._value = this.value ?? ""), e.has("selectedItemIndex") && this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex);
|
|
162
|
+
e.has("value") && (this._value = this.value ?? "", this._value || g(this.el)), (e.has("portal") || e.has("user")) && g(this.el), e.has("selectedItemIndex") && this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex);
|
|
159
163
|
}
|
|
160
164
|
loaded() {
|
|
161
165
|
this.updateComplete.then(() => {
|
|
@@ -164,11 +168,11 @@ class K extends S {
|
|
|
164
168
|
}), this.mentionableEntityController.fetchUsers();
|
|
165
169
|
}
|
|
166
170
|
render() {
|
|
167
|
-
const { popoverPlacement: e, scale: i, _value: n, maxLength:
|
|
168
|
-
return
|
|
171
|
+
const { popoverPlacement: e, scale: i, _value: n, maxLength: a, rows: o, placeholder: t, readOnly: s, popoverOpen: c, closePopover: l, handleInput: u, handleKeyDown: p, disabled: m, isFetchingEntities: d, filteredItemsInfo: I, renderItemInfo: f, popoverListLabel: b } = this, x = this.calciteTextAreaRef.value, S = I?.items ?? [];
|
|
172
|
+
return h`<calcite-text-area .placeholder=${t} .value=${n} .maxLength=${a} .rows=${o} .scale=${i} .readOnly=${s} .disabled=${m} @blur=${l} @calciteTextAreaInput=${u} @keydown=${p} ${C(this.calciteTextAreaRef)}></calcite-text-area>${x && h`<calcite-popover .open=${c} .placement=${e} class="mention-popover" .label=${b} .referenceElement=${x} trigger-disabled pointer-disabled focus-trap-disabled><div class=${T({ "mentionable-list": !0, "mentionable-list--loading": d })}>${d && h`<calcite-scrim .loading=${d}></calcite-scrim>` || ""}${S.length > 0 && h`<calcite-list .label=${b}>${f()}</calcite-list>` || ""}</div></calcite-popover>` || ""}`;
|
|
169
173
|
}
|
|
170
174
|
}
|
|
171
|
-
A("arcgis-portal-mentionable-text-area",
|
|
175
|
+
A("arcgis-portal-mentionable-text-area", G);
|
|
172
176
|
export {
|
|
173
|
-
|
|
177
|
+
G as ArcgisPortalMentionableTextArea
|
|
174
178
|
};
|
|
@@ -4,25 +4,24 @@ import { safeStyleMap as Ie, safeClassMap as re, LitElement as At, createEvent a
|
|
|
4
4
|
import { u as kt } from "../../chunks/useT9n.js";
|
|
5
5
|
import { nothing as M, html as c, svg as xt, css as St } from "lit";
|
|
6
6
|
import { formatDate as It, substitute as X, getLocale as Pt } from "@arcgis/core/intl.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { b as ce, g as Pe } from "../../chunks/url.js";
|
|
8
|
+
import { c as B } from "../../chunks/requests.js";
|
|
9
9
|
import { repeat as U } from "lit/directives/repeat.js";
|
|
10
10
|
import { m as Nt } from "../../chunks/icons.js";
|
|
11
11
|
import { i as T, c as ge, a as Tt } from "../../chunks/user2.js";
|
|
12
|
-
import {
|
|
12
|
+
import { b as Ct, c as Mt, d as Ot, e as Lt, f as Et } from "../../chunks/portal2.js";
|
|
13
13
|
import { c as jt, d as Dt, e as zt } from "../../chunks/user.js";
|
|
14
|
-
import { i as Ne, a as Gt } from "../../chunks/
|
|
15
|
-
import { e as Ut } from "../../chunks/
|
|
14
|
+
import { i as Ne, a as Gt } from "../../chunks/utils4.js";
|
|
15
|
+
import { e as Ut, g as Te } from "../../chunks/item2.js";
|
|
16
16
|
import { g as Bt } from "../../chunks/request.js";
|
|
17
|
-
import { g as Te } from "../../chunks/item.js";
|
|
18
17
|
import { keyed as le } from "lit/directives/keyed.js";
|
|
19
|
-
import {
|
|
18
|
+
import { a as ue, n as Rt, g as de, e as J, b as Ft } from "../../chunks/portal.js";
|
|
20
19
|
import { ref as W, createRef as F } from "lit/directives/ref.js";
|
|
21
20
|
import { c as Wt, g as Vt } from "../../chunks/dom.js";
|
|
22
21
|
import { debounce as be } from "@arcgis/toolkit/function";
|
|
23
22
|
import Ht from "@arcgis/core/identity/IdentityManager.js";
|
|
24
23
|
import { t as qt } from "../../chunks/functionalities.js";
|
|
25
|
-
import {
|
|
24
|
+
import { b as Jt } from "../../chunks/string.js";
|
|
26
25
|
function ve({ portal: e, productInfo: t }) {
|
|
27
26
|
const { name: i, glyph: n } = t || {};
|
|
28
27
|
return c`<img alt class="logo__glyph" src=${n ?? M}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name && c`<span class="logo__subtitle">${e.name}</span>` || ""}</span>`;
|
|
@@ -2,14 +2,14 @@ import "@esri/calcite-components/components/calcite-chip";
|
|
|
2
2
|
import "@esri/calcite-components/components/calcite-tooltip";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-action";
|
|
5
|
+
import "../arcgis-portal-item-type/index.js";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-button";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-input";
|
|
5
9
|
import "@esri/calcite-components/components/calcite-icon";
|
|
6
10
|
import "@esri/calcite-components/components/calcite-popover";
|
|
7
|
-
import "@esri/calcite-components/components/calcite-list";
|
|
8
|
-
import "../arcgis-portal-item-type/index.js";
|
|
9
11
|
import "@esri/calcite-components/components/calcite-loader";
|
|
10
|
-
import "@esri/calcite-components/components/calcite-button";
|
|
11
12
|
import "@esri/calcite-components/components/calcite-dropdown-item";
|
|
12
|
-
import "@esri/calcite-components/components/calcite-input";
|
|
13
13
|
import "@esri/calcite-components/components/calcite-dropdown";
|
|
14
14
|
import "../arcgis-portal-user-avatar/index.js";
|
|
15
15
|
import "@esri/calcite-components/components/calcite-dropdown-group";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
+
|
|
4
|
+
declare module "@arcgis/lumina" {
|
|
5
|
+
export interface DeclareCssProperties {
|
|
6
|
+
/** Inline size of the overlay, limited by its parent. */
|
|
7
|
+
"--arcgis-portal-preview-panel-width": "*";
|
|
8
|
+
/** Stacking order within the parent. */
|
|
9
|
+
"--arcgis-portal-preview-panel-z-index": "*";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The shared desktop browser preview container, also usable inside an ordinary
|
|
15
|
+
* sized, positioned parent. The host owns selection and focus via its preview session.
|
|
16
|
+
*
|
|
17
|
+
* @slot [default] - Item, group, or other preview content.
|
|
18
|
+
*/
|
|
19
|
+
export abstract class ArcgisPortalPreviewPanel extends LitElement {
|
|
20
|
+
/**
|
|
21
|
+
* Allows the browser's auto-height layout to provide viewport-relative bounds.
|
|
22
|
+
*
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
accessor fixed: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Controls the slide transition. Closed content stays mounted but is inert and hidden.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
accessor open: boolean;
|
|
32
|
+
/** Requests closing when Escape is pressed. The host updates open. */
|
|
33
|
+
readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
34
|
+
/** Signals that the pane is visible so the host can focus its content. */
|
|
35
|
+
readonly arcgisOpen: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
36
|
+
readonly "@eventTypes": {
|
|
37
|
+
arcgisClose: ArcgisPortalPreviewPanel["arcgisClose"]["detail"];
|
|
38
|
+
arcgisOpen: ArcgisPortalPreviewPanel["arcgisOpen"]["detail"];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as n, createEvent as e, nothing as s } from "@arcgis/lumina";
|
|
4
|
+
import { css as a, html as o } from "lit";
|
|
5
|
+
const r = a`:host{position:absolute;inset-block:0;inset-inline-start:0;inline-size:min(100%,var(--arcgis-portal-preview-panel-width, 24rem));z-index:var(--arcgis-portal-preview-panel-z-index, 1);overflow:hidden;pointer-events:none}:host([fixed]){position:fixed}.pane{display:flex;flex-direction:column;block-size:100%;min-inline-size:0;overflow:auto;box-sizing:border-box;background:var(--calcite-color-background);border-inline:1px solid var(--calcite-color-border-3);visibility:hidden;opacity:0;transform:translate(-100%);transition:transform var(--calcite-animation-timing, .25s) ease,opacity var(--calcite-animation-timing, .25s) ease,visibility 0s var(--calcite-animation-timing, .25s)}:host(:dir(rtl)) .pane{transform:translate(100%)}:host([open]) .pane{pointer-events:auto;visibility:visible;opacity:1;transform:translate(0);transition-delay:0s}::slotted(*){flex:1;min-block-size:0}@media(prefers-reduced-motion:reduce){.pane{transition:none}}`;
|
|
6
|
+
class l extends n {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments), this.#e = !1, this.open = !1, this.fixed = !1, this.arcgisClose = e(), this.arcgisOpen = e();
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.properties = { open: 7, fixed: 7 };
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.styles = r;
|
|
15
|
+
}
|
|
16
|
+
#e;
|
|
17
|
+
#i;
|
|
18
|
+
updated(i) {
|
|
19
|
+
i.has("open") && (this.#e = this.open, this.#i !== void 0 && cancelAnimationFrame(this.#i), this.open && (this.#i = requestAnimationFrame(() => {
|
|
20
|
+
this.el.shadowRoot.querySelector(".pane").getAnimations().length || this.notifyOpen();
|
|
21
|
+
})));
|
|
22
|
+
}
|
|
23
|
+
disconnectedCallback() {
|
|
24
|
+
super.disconnectedCallback(), this.#i !== void 0 && cancelAnimationFrame(this.#i);
|
|
25
|
+
}
|
|
26
|
+
notifyOpen() {
|
|
27
|
+
this.open && this.#e && (this.#e = !1, this.arcgisOpen.emit());
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return o`<div class="pane" .inert=${!this.open} aria-hidden=${(this.open ? void 0 : "true") ?? s} @transitionend=${(i) => {
|
|
31
|
+
i.target === i.currentTarget && i.propertyName === "transform" && this.notifyOpen();
|
|
32
|
+
}} @keydown=${(i) => {
|
|
33
|
+
i.key === "Escape" && !i.defaultPrevented && this.open && (i.preventDefault(), this.arcgisClose.emit());
|
|
34
|
+
}}><slot></slot></div>`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
t("arcgis-portal-preview-panel", l);
|
|
38
|
+
export {
|
|
39
|
+
l as ArcgisPortalPreviewPanel
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as u, createEvent as I, nothing as R } from "@arcgis/lumina";
|
|
4
|
-
import { g } from "../../chunks/
|
|
5
|
-
import { u as
|
|
4
|
+
import { g as f } from "../../chunks/item.js";
|
|
5
|
+
import { u as g } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as b, ref as $ } from "lit/directives/ref.js";
|
|
7
7
|
import { unsafeHTML as v } from "lit/directives/unsafe-html.js";
|
|
8
8
|
import { css as w, html as c } from "lit";
|
|
9
|
-
import {
|
|
9
|
+
import { a as A, i as T, b as U } from "../../chunks/info.js";
|
|
10
10
|
import { g as y, a as k } from "../../chunks/itemThumbnail.js";
|
|
11
11
|
import o from "@arcgis/core/portal/PortalItem.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { b as C } from "../../chunks/url.js";
|
|
13
|
+
import { h as B } from "../../chunks/portal2.js";
|
|
14
14
|
import { f as D } from "../../chunks/user.js";
|
|
15
15
|
import { g as P } from "../../chunks/user2.js";
|
|
16
|
-
import {
|
|
16
|
+
import { f as _ } from "../../chunks/portal.js";
|
|
17
17
|
const O = w`.thumbnail{object-fit:cover;max-height:8rem}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`, p = 5e3;
|
|
18
18
|
class H extends u {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(...arguments), this.replacementId = null, this.itemOwnerName = "", this.replacementItemInRecycleBin = !1, this.hasInaccessibleReplacementItem = !1, this.replacementItemSupportsOpenActions = !1, this.thumbnailUrl = null, this.timer = void 0, this.messages =
|
|
20
|
+
super(...arguments), this.replacementId = null, this.itemOwnerName = "", this.replacementItemInRecycleBin = !1, this.hasInaccessibleReplacementItem = !1, this.replacementItemSupportsOpenActions = !1, this.thumbnailUrl = null, this.timer = void 0, this.messages = g({ blocking: !0 }), this.primaryActionRef = b(), this.getItemDetailsUrl = ({ portal: e, itemId: t, redirect: i }) => {
|
|
21
21
|
const r = C({ portal: e, usePortalHostname: !this.user });
|
|
22
22
|
return r ? `${`${r}/home`}/item.html?id=${t}${i ? "&performRedirectAction=true" : ""}` : "";
|
|
23
23
|
}, this.performRedirectAction = () => {
|
|
@@ -67,7 +67,7 @@ class H extends u {
|
|
|
67
67
|
portal: t
|
|
68
68
|
});
|
|
69
69
|
this.item = await r?.load();
|
|
70
|
-
const a = await
|
|
70
|
+
const a = await f(e, t, {
|
|
71
71
|
relationshipType: "ReplacementItem2Item",
|
|
72
72
|
direction: "reverse"
|
|
73
73
|
}, !0), n = a.data?.relatedItems?.[0];
|