@arcgis/portal-components 6.0.0-next.3 → 6.0.0-next.30
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/234TH32X.js +106 -0
- package/dist/cdn/{Z6R3C4AK.js → 2W3O3KBH.js} +1 -1
- package/dist/cdn/2XRZP4QI.js +2 -0
- package/dist/cdn/365ICWHN.js +2 -0
- package/dist/cdn/{RHCRPJWS.js → 47EZWWY7.js} +1 -1
- package/dist/cdn/4PL5CXXD.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
- package/dist/cdn/{JPUUMGX5.js → 4XFXM76G.js} +1 -1
- package/dist/cdn/5BVGWSPJ.js +2 -0
- package/dist/cdn/{2TDHJSMP.js → 5MZ64QM7.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → 657KMT6Y.js} +1 -1
- package/dist/cdn/{JWBUJT43.js → 6P7WYZZS.js} +1 -1
- package/dist/cdn/76IANSI7.js +2 -0
- package/dist/cdn/7DBQRL5U.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → 7ECLKNGV.js} +1 -1
- package/dist/cdn/7HNMTPSD.js +2 -0
- package/dist/cdn/AEJPC2Q5.js +2 -0
- package/dist/cdn/AHJDGTDG.js +2 -0
- package/dist/cdn/{D2YQWKME.js → ASID6YW7.js} +2 -2
- package/dist/cdn/{IN4JPZTY.js → BDMPW4YT.js} +1 -1
- package/dist/cdn/{NWVLGU2C.js → BNDM7DRY.js} +1 -1
- package/dist/cdn/BPFX6I6Z.js +2 -0
- package/dist/cdn/{SGDDFWCJ.js → CB3UEA5V.js} +1 -1
- package/dist/cdn/CFNR4XS2.js +91 -0
- package/dist/cdn/CHJAALGF.js +2 -0
- package/dist/cdn/{JE2376SE.js → COET6FWR.js} +1 -1
- package/dist/cdn/DOU2QZP5.js +2 -0
- package/dist/cdn/{QTAYXO5T.js → DSJOBYW5.js} +1 -1
- package/dist/cdn/EQZYUMUN.js +2 -0
- package/dist/cdn/{TRMFL7PT.js → ESKKH4DE.js} +1 -1
- package/dist/cdn/EY37MGL2.js +2 -0
- package/dist/cdn/{DDBXEXOV.js → F5T3DTCW.js} +1 -1
- package/dist/cdn/FCGMSMBW.js +2 -0
- package/dist/cdn/FGRMURKX.js +2 -0
- package/dist/cdn/FICE62PO.js +2 -0
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/GJP72ONW.js +2 -0
- package/dist/cdn/GQTAE72S.js +2 -0
- package/dist/cdn/{M5PPX4ZX.js → GRQLUOSD.js} +1 -1
- package/dist/cdn/{EY5S6ICQ.js → GW6SI25C.js} +1 -1
- package/dist/cdn/H6OQOEHS.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → HH5DBWJ2.js} +1 -1
- package/dist/cdn/HNVQMOOU.js +2 -0
- package/dist/cdn/IMFTTYIV.js +2 -0
- package/dist/cdn/{J5NPDIZM.js → ITGOCCZZ.js} +1 -1
- package/dist/cdn/{GAF4YT5N.js → IUIFCQQU.js} +1 -1
- package/dist/cdn/JD6QT6IC.js +2 -0
- package/dist/cdn/JTSFNRWR.js +2 -0
- package/dist/cdn/K3GAZFRI.js +63 -0
- package/dist/cdn/K6NEES4K.js +2 -0
- package/dist/cdn/K6YTIB74.js +2 -0
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → KWZIYNDC.js} +1 -1
- package/dist/cdn/{3NSHGKZA.js → L2P23REA.js} +1 -1
- package/dist/cdn/L3A3L7FY.js +2 -0
- package/dist/cdn/L3JSQQUK.js +2 -0
- package/dist/cdn/LGRW3SGR.js +2 -0
- package/dist/cdn/MDOMTVQY.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → MDYX3ON3.js} +1 -1
- package/dist/cdn/{AXOBMX3S.js → MLTZSPZQ.js} +1 -1
- package/dist/cdn/MSOJ4BDB.js +2 -0
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/NHVPNSNH.js +2 -0
- package/dist/cdn/{JN23JH3T.js → NK474LV6.js} +1 -1
- package/dist/cdn/{24QSQLRY.js → NNILBERZ.js} +1 -1
- package/dist/cdn/NO5VHQVY.js +2 -0
- package/dist/cdn/{VNU4QX7M.js → NQ2IAQKL.js} +17 -17
- package/dist/cdn/{7LMZHJZG.js → NYOXMT6S.js} +1 -1
- package/dist/cdn/{OR6T5SB3.js → O2H6SPV3.js} +1 -1
- package/dist/cdn/O4YFPGD5.js +2 -0
- package/dist/cdn/OHAQPQAP.js +2 -0
- package/dist/cdn/OHEJPZ35.js +2 -0
- package/dist/cdn/OQ2JULON.js +2 -0
- package/dist/cdn/OUFJRLPQ.js +4 -0
- package/dist/cdn/OW67EEOH.js +2 -0
- package/dist/cdn/P4XDOAK2.js +2 -0
- package/dist/cdn/PU7NVVTN.js +2 -0
- package/dist/cdn/{CFRJU6VA.js → QE64NUUD.js} +1 -1
- package/dist/cdn/R3IQ7OYN.js +70 -0
- package/dist/cdn/R5LNWMD4.js +2 -0
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/{TWCJJCPC.js → S4Y7FPSQ.js} +1 -1
- package/dist/cdn/SCZ2GY3E.js +2 -0
- package/dist/cdn/{URQML7KV.js → SF7P7MND.js} +1 -1
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/{74T6IXSN.js → TABWX4F2.js} +1 -1
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TOVMYLXB.js +2 -0
- package/dist/cdn/TP5IFB74.js +2 -0
- package/dist/cdn/TRPOPI34.js +2 -0
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/UOY4FZLR.js +2 -0
- package/dist/cdn/{DHMNNIXZ.js → UPVGSEFX.js} +1 -1
- package/dist/cdn/{JIJO4CAS.js → VZPUDARW.js} +1 -1
- package/dist/cdn/W2MFAJEG.js +2 -0
- package/dist/cdn/W5AV2JMK.js +2 -0
- package/dist/cdn/WFPUAEJQ.js +3 -0
- package/dist/cdn/{7ZWYUHGK.js → WQOCWSJC.js} +1 -1
- package/dist/cdn/WRP5SUB4.js +2 -0
- package/dist/cdn/{2YZWRFCI.js → WUPQROF4.js} +1 -1
- package/dist/cdn/X4EHFUD4.js +2 -0
- package/dist/cdn/XLR4JEUA.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → XMFA6QY6.js} +1 -1
- package/dist/cdn/XX6BL3DR.js +2 -0
- package/dist/cdn/YF4HTCBB.js +2 -0
- package/dist/cdn/{5HZNBMW6.js → YG5ZZUE4.js} +1 -1
- package/dist/cdn/YKFYCIOS.js +2 -0
- package/dist/cdn/YMVVEC2R.js +2 -0
- package/dist/cdn/{BKD7JSV2.js → YWWBQUH2.js} +1 -1
- package/dist/cdn/Z55T6COF.js +2 -0
- package/dist/cdn/Z7DRFGQ6.js +2 -0
- package/dist/cdn/ZJQ55GQG.js +2 -0
- 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-share-summary/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- 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/loadClassificationData.js +26 -27
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +6 -6
- package/dist/chunks/portal2.js +11 -11
- 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 +1 -1
- 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/utils.js +35 -22
- package/dist/chunks/utils2.js +4 -4
- package/dist/chunks/utils3.js +88 -657
- package/dist/chunks/utils4.js +664 -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-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 +34 -32
- 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 +93 -99
- package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +14 -14
- 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-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 +352 -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-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.js +1 -1
- 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-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-popup/customElement.d.ts +1 -1
- package/dist/components/arcgis-portal-user-popup/customElement.js +17 -16
- 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.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +31 -0
- package/dist/index.js +300 -6
- package/dist/loader.js +13 -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 +11 -11
- package/dist/types/lumina.d.ts +31 -11
- package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
- package/dist/types/portalEntityPicker.d.ts +3 -0
- package/dist/types/preact.d.ts +34 -11
- package/dist/types/react.d.ts +37 -11
- package/dist/types/services.d.ts +27 -1
- package/dist/types/stencil.d.ts +31 -11
- 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 +10 -10
- package/dist/cdn/23NXHNPU.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/A2SQ4EMZ.js +0 -2
- package/dist/cdn/AICPYLWE.js +0 -4
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BYHX3UWV.js +0 -2
- package/dist/cdn/CD5UWSCP.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/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/JOUR2FB2.js +0 -3
- 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/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
|
@@ -7,18 +7,19 @@ import { unsafeHTML as T } from "lit/directives/unsafe-html.js";
|
|
|
7
7
|
import { u as C } from "../../chunks/useT9n.js";
|
|
8
8
|
import { f } from "../../chunks/user.js";
|
|
9
9
|
import { s as k } from "../../chunks/dom.js";
|
|
10
|
-
import {
|
|
10
|
+
import { d as z, g as H } from "../../chunks/string.js";
|
|
11
11
|
import { g as M } from "../../chunks/user2.js";
|
|
12
|
+
import { g as q } from "../../chunks/url.js";
|
|
12
13
|
import { f as y, r as U } from "../../chunks/request.js";
|
|
13
|
-
import {
|
|
14
|
-
import { f as
|
|
15
|
-
const
|
|
14
|
+
import { g as I } from "../../chunks/portal.js";
|
|
15
|
+
import { f as F } from "../../chunks/verified.js";
|
|
16
|
+
const E = L`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`, x = (s) => (
|
|
16
17
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
17
18
|
s?.sourceJSON?.contentStatus === "public_authoritative"
|
|
18
19
|
);
|
|
19
|
-
async function
|
|
20
|
+
async function G(s, t, r, o) {
|
|
20
21
|
if (x(s)) {
|
|
21
|
-
const e = s.owner || "", a = await
|
|
22
|
+
const e = s.owner || "", a = await F(s, r, t, o);
|
|
22
23
|
if (!a)
|
|
23
24
|
return await f(e, t, o);
|
|
24
25
|
const { description: n, name: i, thumbnail: u, url: m } = a;
|
|
@@ -33,7 +34,7 @@ async function E(s, t, r, o) {
|
|
|
33
34
|
}
|
|
34
35
|
return await f(s.owner || "", t, o);
|
|
35
36
|
}
|
|
36
|
-
async function
|
|
37
|
+
async function S(s, t, r) {
|
|
37
38
|
const o = r ? "https://www.arcgis.com/sharing/rest/" : I(t), e = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
|
38
39
|
return await y({
|
|
39
40
|
requester: async () => await U({
|
|
@@ -49,7 +50,7 @@ async function G(s, t, r) {
|
|
|
49
50
|
id: s
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
async function
|
|
53
|
+
async function D(s, t, r) {
|
|
53
54
|
const o = r ? "https://www.arcgis.com/sharing/rest/" : I(t), e = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
|
54
55
|
return await y({
|
|
55
56
|
requester: async () => (await U({
|
|
@@ -73,7 +74,7 @@ function _({
|
|
|
73
74
|
const o = z(s), e = encodeURIComponent(t.username || "");
|
|
74
75
|
return e ? `${o}/${r}.html?user=${e}` : `${o}/${r}.html`;
|
|
75
76
|
}
|
|
76
|
-
class
|
|
77
|
+
class J extends B {
|
|
77
78
|
constructor() {
|
|
78
79
|
super(...arguments), this.messages = C({ blocking: !0 }), this.buttonRef = $(), this.popoverRef = $(), this.isPopoverOpen = !1, this.scale = "m", this.showAvatar = !0, this.showName = !0, this.showUsername = !1, this.appearance = "transparent", this.arcgisUserPopupInternalUIAction = g(), this.arcgisUserPopupClose = g();
|
|
79
80
|
}
|
|
@@ -81,7 +82,7 @@ class D extends B {
|
|
|
81
82
|
this.properties = { itemUserInfo: 16, groups: 16, total: 16, isPopoverOpen: 16, user: 0, username: 1, fullName: 1, item: 0, scale: 3, portal: 0, baseUrl: 1, underline: 5, showAvatar: 5, showName: 5, showUsername: 5, wrap: 5, appearance: 1, zIndex: 9, avatarAriaHidden: 5, checkOnline: 5 };
|
|
82
83
|
}
|
|
83
84
|
static {
|
|
84
|
-
this.styles =
|
|
85
|
+
this.styles = E;
|
|
85
86
|
}
|
|
86
87
|
async setFocus() {
|
|
87
88
|
this.buttonRef.value?.focus();
|
|
@@ -96,13 +97,13 @@ class D extends B {
|
|
|
96
97
|
t.has("isPopoverOpen") && this.isPopoverOpen && this.setPopoverOpen(!0);
|
|
97
98
|
}
|
|
98
99
|
get resolvedBaseUrl() {
|
|
99
|
-
return this.baseUrl ||
|
|
100
|
+
return this.baseUrl || q({ portal: this.portal });
|
|
100
101
|
}
|
|
101
102
|
async init() {
|
|
102
103
|
const { item: t, username: r, portal: o, fullName: e, messages: a } = this;
|
|
103
104
|
if (!(!a._lang || !o)) {
|
|
104
105
|
if (t) {
|
|
105
|
-
this.itemUserInfo = await
|
|
106
|
+
this.itemUserInfo = await G(t, o, a._lang, this.checkOnline);
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
108
109
|
if (r) {
|
|
@@ -115,10 +116,10 @@ class D extends B {
|
|
|
115
116
|
const { user: t, itemUserInfo: r, item: o, portal: e, username: a, checkOnline: n } = this, i = a || t?.username || o?.owner || r?.username;
|
|
116
117
|
if (!(!i || !e)) {
|
|
117
118
|
if (!this.groups) {
|
|
118
|
-
const u = await
|
|
119
|
+
const u = await S(i, e, n);
|
|
119
120
|
this.groups = u;
|
|
120
121
|
}
|
|
121
|
-
this.total = await
|
|
122
|
+
this.total = await D(i, e, n);
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
setPopoverOpen(t) {
|
|
@@ -167,7 +168,7 @@ class D extends B {
|
|
|
167
168
|
}} ${w(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${o} show-name .description=${O} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!h && l`<p class="popover__description">${T(k(h))}</p>` || ""}${!!h && l`<div class="popover__fade"></div>` || ""}<div class=${b({ popover__buttons: !0, "popover__buttons--no-description": !h })}>${v ? this.renderOrgButtons(c) : this.renderUserButtons(c)}</div></div></div></calcite-popover>` || ""}`;
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
|
-
R("arcgis-portal-user-popup",
|
|
171
|
+
R("arcgis-portal-user-popup", J);
|
|
171
172
|
export {
|
|
172
|
-
|
|
173
|
+
J as ArcgisPortalUserPopup
|
|
173
174
|
};
|
|
@@ -8,7 +8,7 @@ import { PortalBrowserFilterItem as g } from "../portal-browser/components/porta
|
|
|
8
8
|
import { PortalBrowserFilters as me } from "../portal-browser/components/portal-browser-filters/customElement.js";
|
|
9
9
|
import { g as ue, a as ge, b as be, c as fe, d as he } from "../../chunks/query.js";
|
|
10
10
|
function ye(U) {
|
|
11
|
-
const { browserMessages:
|
|
11
|
+
const { browserMessages: $, slot: y, filters: l, hasIndoorsSpaces: O, isFilterActive: b, messages: t, portal: v, selectedAccess: D, selectedGroupsByUser: N, selectedMemberOrg: j, selectedMembership: z, selectedOwner: H, selectedSpecialGroup: J, specialGroupOptions: K, store: k, handleRemove: c, handleSelect: n, handleUpsert: o, handleUserFilterChange: W } = U, I = v.isPortal, q = v.user, S = pe(q), B = q?.username ?? "", X = (e) => e === B ? u(t.groupsByUser.me, { username: e }) : e, C = (e, r) => e === "owner" ? r : e === "outsideOrg" && S ? t.owner.someoneElse : e === "inOrg" ? t.owner.inOrg : e === "outsideOrg" ? t.owner.outsideOrg : r, w = l.owner, T = H ?? w?.props?.owner ?? null, x = w?.props?.username ?? B, Y = v.id ?? "", Z = S ? ["owner", "outsideOrg"] : ["owner", "inOrg", "outsideOrg"], P = l.membership, M = z ?? P?.props?.membership ?? null, V = ["org", "collaboration", "anyOrg"], G = l.memberOrg, A = j ?? G?.props?.memberOrg ?? null, ee = G?.props?.orgId ?? "", re = ["myOrg", "anotherOrg"], F = l.specialGroups, Q = J ?? F?.props?.specialGroup ?? null, E = l.access, L = D ?? E?.props?.access ?? null, se = ["public", "org", "private"], f = l.groupsByUser, _ = f?.props?.usernames ?? [], te = f?.props?.selectedUsername ?? N ?? _[0] ?? B, i = $.filter.clear, p = (e, r) => {
|
|
12
12
|
const s = l[e];
|
|
13
13
|
s && (s.props = { ...s.props, expanded: r });
|
|
14
14
|
}, ae = (e) => {
|
|
@@ -18,16 +18,16 @@ function ye(U) {
|
|
|
18
18
|
}
|
|
19
19
|
e.removeAttribute("data-has-before-filters");
|
|
20
20
|
};
|
|
21
|
-
return me({ slot: y, store: k, title: a`<div class="filters-title"><h2 class="filters-title__heading">${t.filters.title}</h2><slot name=before-filters @slotchange=${(e) => ae(e.currentTarget)}></slot></div>`, children: a`${!!
|
|
21
|
+
return me({ slot: y, store: k, title: a`<div class="filters-title"><h2 class="filters-title__heading">${t.filters.title}</h2><slot name=before-filters @slotchange=${(e) => ae(e.currentTarget)}></slot></div>`, children: a`${!!f?.enabled && g({ heading: t.groupsByUser.title, expanded: !!f?.props?.expanded, setExpanded: (e) => p("groupsByUser", e), clearLabel: i, onRemove: () => {
|
|
22
22
|
n({
|
|
23
23
|
kind: "groupsByUser",
|
|
24
|
-
value:
|
|
24
|
+
value: f?.props?.selectedUsername ?? B
|
|
25
25
|
});
|
|
26
26
|
}, children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
27
27
|
const r = e.target.selectedItems?.[0]?.dataset.username ?? "";
|
|
28
28
|
n({ kind: "groupsByUser", value: r }), W(r);
|
|
29
29
|
}}>${_.map((e) => a`<calcite-tree-item data-username=${e ?? m} .selected=${e === te}><a class="groups-by-user__label">${X(e)}</a></calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!w?.enabled && g({ heading: t.owner.title, expanded: !!w?.props?.expanded, setExpanded: (e) => p("owner", e), active: b("owner"), clearLabel: i, onRemove: () => c("owner"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
30
|
-
const r = "owner", s =
|
|
30
|
+
const r = "owner", s = h(T, e, r);
|
|
31
31
|
if (!s) {
|
|
32
32
|
c(r);
|
|
33
33
|
return;
|
|
@@ -43,8 +43,8 @@ function ye(U) {
|
|
|
43
43
|
owner: s,
|
|
44
44
|
username: x
|
|
45
45
|
}), n({ kind: r, value: s });
|
|
46
|
-
}}>${Z.filter((e) => !(I ||
|
|
47
|
-
const r = "memberOrg", s =
|
|
46
|
+
}}>${Z.filter((e) => !(I || O) || e !== "outsideOrg").map((e) => a`<calcite-tree-item data-owner=${e ?? m} .selected=${T === e}>${C(e, x)}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!(G?.enabled && !I) && g({ heading: t.memberOrg.title, expanded: !!G?.props?.expanded, setExpanded: (e) => p("memberOrg", e), active: b("memberOrg"), clearLabel: i, onRemove: () => c("memberOrg"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
47
|
+
const r = "memberOrg", s = h(A, e, r);
|
|
48
48
|
if (!s) {
|
|
49
49
|
c(r);
|
|
50
50
|
return;
|
|
@@ -58,8 +58,8 @@ function ye(U) {
|
|
|
58
58
|
}), n({ kind: r, value: s });
|
|
59
59
|
}}>${re.map((e) => a`<calcite-tree-item data-member-org=${e ?? m} .selected=${A === e}>${t.memberOrg[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!(P?.enabled && // https://devtopia.esri.com/WebGIS/arcgis-portal-app/issues/44198
|
|
60
60
|
!I && // https://devtopia.esri.com/webgis/arcgis-portal-app/issues/37831
|
|
61
|
-
!
|
|
62
|
-
const r = "membership", s =
|
|
61
|
+
!O) && g({ heading: t.membership.title, expanded: !!P?.props?.expanded, setExpanded: (e) => p("membership", e), active: b("membership"), clearLabel: i, onRemove: () => c("membership"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
62
|
+
const r = "membership", s = h(M, e, r);
|
|
63
63
|
if (!s) {
|
|
64
64
|
c(r);
|
|
65
65
|
return;
|
|
@@ -68,16 +68,16 @@ function ye(U) {
|
|
|
68
68
|
id: r,
|
|
69
69
|
label: u(t.membership.label, { label: t.membership[s] }),
|
|
70
70
|
param: "q",
|
|
71
|
-
value: be(s,
|
|
71
|
+
value: be(s, O),
|
|
72
72
|
membership: s
|
|
73
73
|
}), n({ kind: r, value: s });
|
|
74
74
|
}}>${V.map((e) => a`<calcite-tree-item data-membership=${e ?? m} .selected=${M === e}>${t.membership[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${F?.enabled && g({ heading: t.specialGroups.title, expanded: !!F.props?.expanded, setExpanded: (e) => p("specialGroups", e), active: b("specialGroups"), clearLabel: i, onRemove: () => c("specialGroups"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${async (e) => {
|
|
75
|
-
const r = "specialGroups", s =
|
|
75
|
+
const r = "specialGroups", s = h(Q, e, r);
|
|
76
76
|
if (!s) {
|
|
77
77
|
c(r);
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
const R = await fe(s,
|
|
80
|
+
const R = await fe(s, v);
|
|
81
81
|
o({
|
|
82
82
|
id: "specialGroups",
|
|
83
83
|
label: u(t.specialGroups.label, { label: t.specialGroups[s] }),
|
|
@@ -87,7 +87,7 @@ function ye(U) {
|
|
|
87
87
|
}), n({ kind: "specialGroups", value: s });
|
|
88
88
|
}}>${K.map((e) => a`<calcite-tree-item data-special-groups=${e ?? m} .selected=${Q === e}><span class="special-groups-settings-option">${t.specialGroups[e]}${e === "settings" && a`<span class="special-groups-settings-icon"><calcite-icon id=portal-group-browser-special-groups-settings-info icon=information scale=s text-label=${t.specialGroups.tooltipLabel ?? m}></calcite-icon><calcite-tooltip placement=bottom-end reference-element=portal-group-browser-special-groups-settings-info>${t.specialGroups.tooltip}</calcite-tooltip></span>` || ""}</span></calcite-tree-item>`)}</calcite-tree>` }) || ""}${["modified", "created"].filter((e) => l[e]?.enabled).map((e) => {
|
|
89
89
|
const r = l[e]?.props, s = k.filters[e], R = !!r?.includeNever, le = s?.range ?? r?.range ?? null, ce = s?.start ?? r?.start, ne = s?.end ?? r?.end, oe = r?.serverProperty, ie = r?.expanded;
|
|
90
|
-
return de({ property: e, filterDateMessages:
|
|
90
|
+
return de({ property: e, filterDateMessages: $.filterDate, clearLabel: i, expanded: ie, setExpanded: (d) => p(e, d), includeNever: R, range: le, start: ce, end: ne, serverProperty: oe, onRemove: () => {
|
|
91
91
|
o({
|
|
92
92
|
id: e,
|
|
93
93
|
label: "",
|
|
@@ -109,7 +109,7 @@ function ye(U) {
|
|
|
109
109
|
});
|
|
110
110
|
} });
|
|
111
111
|
})}${!!E?.enabled && g({ heading: t.access.title, expanded: !!E?.props?.expanded, setExpanded: (e) => p("access", e), active: b("access"), clearLabel: i, onRemove: () => c("access"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
|
|
112
|
-
const r = "access", s =
|
|
112
|
+
const r = "access", s = h(L, e, r);
|
|
113
113
|
if (!s) {
|
|
114
114
|
c(r);
|
|
115
115
|
return;
|
|
@@ -123,8 +123,8 @@ function ye(U) {
|
|
|
123
123
|
}), n({ kind: r, value: s });
|
|
124
124
|
}}>${se.map((e) => a`<calcite-tree-item data-access=${e ?? m} .selected=${L === e}>${t.access[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}` });
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
const l =
|
|
126
|
+
const h = (U, $, y) => {
|
|
127
|
+
const l = $.target.selectedItems?.[0]?.dataset[y];
|
|
128
128
|
return U === l ? null : l ?? null;
|
|
129
129
|
};
|
|
130
130
|
export {
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { html as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { html as i } from "lit";
|
|
3
|
+
import { formatDate as y } from "@arcgis/core/intl.js";
|
|
4
|
+
import { nothing as b } from "@arcgis/lumina";
|
|
5
|
+
import { g as I } from "../../chunks/user2.js";
|
|
6
|
+
import { g as B } from "../../chunks/url.js";
|
|
7
|
+
function S({ item: e, owner: n, portal: c, user: o, lang: d, modifiedLabel: l, showAccessInfo: _ = !0, access: t = { level: e.access }, relatedItemsCount: $ = 0, relatedItemsCountTitle: s, onRelatedItemsClick: g }) {
|
|
8
|
+
const a = "inRecycleBin" in e && e.inRecycleBin === !0, r = c && !a ? `${B({ portal: c })}/item.html?id=${e.id}` : void 0, p = e.title ?? "", m = y(e.modified ?? void 0, { dateStyle: "medium" }), v = l ? l.replace("${date}", m ?? "") : m ?? "", h = {
|
|
7
9
|
public: "globe",
|
|
8
|
-
private: "
|
|
10
|
+
private: "user",
|
|
9
11
|
org: "organization",
|
|
10
|
-
shared: "
|
|
11
|
-
}[t.
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
}}><span slot=content-start><arcgis-portal-item-type .item=${
|
|
15
|
-
|
|
16
|
-
}}>${
|
|
12
|
+
shared: "user"
|
|
13
|
+
}[t.level], f = !!t.groupIds?.length || t.level === "shared";
|
|
14
|
+
return i`<calcite-list-item .label=${p} @calciteListItemSelect=${() => {
|
|
15
|
+
r && window.open(r, "_blank", "noopener,noreferrer");
|
|
16
|
+
}}><span slot=content-start><arcgis-portal-item-type .item=${e} .portal=${c} .user=${o} hide-text></arcgis-portal-item-type></span><div slot=content class="item"><div class="item__content"><span class="item__title">${p}</span><div class="item__details"><span class="item__type"><arcgis-portal-item-type .item=${e} .user=${o} .portal=${c} scale=s hide-icon></arcgis-portal-item-type></span>|<span class="item__details-owner">${n ? I(n, d) : e.owner}</span>|<span class="item__details-modified">${v}</span></div></div></div><div slot=content-end class="item__content-end">${a && i`<calcite-icon class="item__status-icon" icon=recycle-bin scale=s></calcite-icon>` || ""}${$ > 0 && i`<calcite-chip .label=${s} title=${s ?? b} icon=launch @click=${(u) => {
|
|
17
|
+
u.stopPropagation(), g?.();
|
|
18
|
+
}}>${s}</calcite-chip>` || ""}${_ && !a && i`<span class="item__access"><calcite-icon .icon=${h} scale=s class="item__access-icon"></calcite-icon>${f && i`<calcite-icon icon=plus scale=s></calcite-icon><calcite-icon icon=group scale=s class="item__access-icon"></calcite-icon>` || ""}</span>` || ""}</div></calcite-list-item>`;
|
|
17
19
|
}
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
S as RelatedItemsListItem
|
|
20
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
2
2
|
import "../arcgis-portal-item-type/index.js";
|
|
3
|
-
import "@esri/calcite-components/components/calcite-chip";
|
|
4
3
|
import "@esri/calcite-components/components/calcite-icon";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-chip";
|
|
5
5
|
export * from "./customElement.js";
|