@arcgis/portal-components 6.0.0-next.2 → 6.0.0-next.21
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/{MKSFNVXL.js → 22TDAUX4.js} +1 -1
- package/dist/cdn/234TH32X.js +106 -0
- package/dist/cdn/2D3FQXJ4.js +2 -0
- package/dist/cdn/{BKD7JSV2.js → 2DXO6FVX.js} +1 -1
- package/dist/cdn/{TWCJJCPC.js → 2XJX2JUO.js} +1 -1
- package/dist/cdn/{SGDDFWCJ.js → 3EQGUCO4.js} +1 -1
- package/dist/cdn/{OR6T5SB3.js → 3J3ISO3E.js} +1 -1
- package/dist/cdn/3RTST3I6.js +2 -0
- package/dist/cdn/3XH3JHOI.js +2 -0
- package/dist/cdn/4ONCJSSP.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
- package/dist/cdn/4WQA7UAJ.js +2 -0
- package/dist/cdn/5OWIWCEQ.js +2 -0
- package/dist/cdn/{7ZWYUHGK.js → 5R4JJWGB.js} +1 -1
- package/dist/cdn/63HYFDRU.js +2 -0
- package/dist/cdn/6MATPHXT.js +79 -0
- package/dist/cdn/7IP3RVPH.js +2 -0
- package/dist/cdn/7ISSDO2T.js +2 -0
- package/dist/cdn/AKTIIRJQ.js +2 -0
- package/dist/cdn/ASID6YW7.js +135 -0
- package/dist/cdn/B3HV5JVN.js +2 -0
- package/dist/cdn/B6666VUQ.js +2 -0
- package/dist/cdn/BOO7GG5L.js +2 -0
- package/dist/cdn/CZ4FC4GM.js +2 -0
- package/dist/cdn/D3LZFIHV.js +2 -0
- package/dist/cdn/{NWVLGU2C.js → D3Q72PPN.js} +1 -1
- package/dist/cdn/DABNV2OO.js +2 -0
- package/dist/cdn/DELNTRCT.js +2 -0
- package/dist/cdn/DOCNBKQZ.js +2 -0
- package/dist/cdn/EP7NWEC5.js +2 -0
- package/dist/cdn/EQRBP6H6.js +66 -0
- package/dist/cdn/{ABORO35R.js → ESKKH4DE.js} +1 -1
- package/dist/cdn/EUQQZIRW.js +2 -0
- package/dist/cdn/F2HT5PVQ.js +2 -0
- package/dist/cdn/FE3O23SE.js +2 -0
- package/dist/cdn/FGRMURKX.js +2 -0
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → FYVATGMR.js} +1 -1
- package/dist/cdn/{RHCRPJWS.js → G3WDR53S.js} +1 -1
- package/dist/cdn/GAU6DNV5.js +2 -0
- package/dist/cdn/GPAIXN52.js +2 -0
- package/dist/cdn/GRSBU4PD.js +2 -0
- package/dist/cdn/{JWBUJT43.js → H7FA5HFE.js} +1 -1
- package/dist/cdn/HHGKNVCH.js +4 -0
- package/dist/cdn/HJLWIQDI.js +2 -0
- package/dist/cdn/I3EWDYTU.js +2 -0
- package/dist/cdn/{24QSQLRY.js → IKPVMXXW.js} +1 -1
- package/dist/cdn/{5HZNBMW6.js → IOFXDIWC.js} +1 -1
- package/dist/cdn/IPHBVKMY.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → IUIFCQQU.js} +1 -1
- package/dist/cdn/{ZKZDKJ6D.js → IVDZGUNZ.js} +1 -1
- package/dist/cdn/J6SI4Z4F.js +2 -0
- package/dist/cdn/K3GAZFRI.js +63 -0
- package/dist/cdn/K7LYYLUF.js +2 -0
- package/dist/cdn/{74T6IXSN.js → KDORI7H4.js} +1 -1
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/LGJWULAW.js +2 -0
- package/dist/cdn/LTMPXQTC.js +2 -0
- package/dist/cdn/M5STJJRX.js +2 -0
- package/dist/cdn/M7J7RAM4.js +2 -0
- package/dist/cdn/{AXOBMX3S.js → MLTZSPZQ.js} +1 -1
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/{L64UURQB.js → N4ZRMYZL.js} +1 -1
- package/dist/cdn/NBCYYUHP.js +2 -0
- package/dist/cdn/NHVPNSNH.js +2 -0
- package/dist/cdn/NQ2IAQKL.js +41 -0
- package/dist/cdn/NXGTEDK4.js +2 -0
- package/dist/cdn/{7LMZHJZG.js → NYOXMT6S.js} +1 -1
- package/dist/cdn/O3JP4FQ3.js +2 -0
- package/dist/cdn/O4YFPGD5.js +2 -0
- package/dist/cdn/{JIJO4CAS.js → ODSA6NNS.js} +1 -1
- package/dist/cdn/OHAQPQAP.js +2 -0
- package/dist/cdn/OOXTSCQT.js +2 -0
- package/dist/cdn/OQ2JULON.js +2 -0
- package/dist/cdn/OVH4YLTS.js +2 -0
- package/dist/cdn/QB5BGHLA.js +2 -0
- package/dist/cdn/QKCRNS75.js +2 -0
- package/dist/cdn/{2YZWRFCI.js → RKMW4FUN.js} +1 -1
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/SKHFISBA.js +2 -0
- package/dist/cdn/SKIDJ4QI.js +2 -0
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/{IN4JPZTY.js → SSCKCDXD.js} +1 -1
- package/dist/cdn/T66G7GIR.js +2 -0
- package/dist/cdn/{RQYNPDN3.js → TIMYD2HM.js} +1 -1
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TJWJ3LTU.js +2 -0
- package/dist/cdn/{DHMNNIXZ.js → TMR4BRFI.js} +1 -1
- package/dist/cdn/{JN23JH3T.js → TTQGRN2V.js} +1 -1
- package/dist/cdn/{MLYQGIJU.js → U2HTYOBB.js} +13 -13
- package/dist/cdn/{YZTBAUIO.js → UHOW7Q65.js} +1 -1
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/{Z6R3C4AK.js → US3N5L73.js} +1 -1
- package/dist/cdn/W5POIPYP.js +2 -0
- package/dist/cdn/{TLM457Z5.js → WJWWYBZ7.js} +1 -1
- package/dist/cdn/WNEPEEPZ.js +2 -0
- package/dist/cdn/WPAZDJHU.js +2 -0
- package/dist/cdn/WT72SOAU.js +2 -0
- package/dist/cdn/XJGKRAN5.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → XS5EOWBK.js} +1 -1
- package/dist/cdn/Y5VUMGKH.js +3 -0
- package/dist/cdn/{EQDYQOOT.js → YCIFVZ4J.js} +1 -1
- package/dist/cdn/{3NSHGKZA.js → YDXJHNDI.js} +1 -1
- package/dist/cdn/{32BWFMTC.js → YIOJIA4Y.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → YK6FCXWU.js} +1 -1
- package/dist/cdn/YPDHSE2J.js +2 -0
- package/dist/cdn/{M5PPX4ZX.js → YQLFXHFG.js} +1 -1
- package/dist/cdn/YSVPB3BO.js +2 -0
- package/dist/cdn/YUOVGTP5.js +2 -0
- package/dist/cdn/Z5CA4C6H.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → ZD6XJVGV.js} +1 -1
- package/dist/cdn/ZHQXYCPA.js +2 -0
- package/dist/cdn/{DLI4XKJ3.js → ZOX4RLS4.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-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 +58 -26
- package/dist/chunks/item2.js +34 -30
- 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 +54 -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 +14 -10
- package/dist/chunks/ui.js +1 -0
- package/dist/chunks/url.js +2 -2
- package/dist/chunks/user.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 +664 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.js +28 -26
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +4 -4
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +8 -8
- package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +4 -4
- package/dist/components/arcgis-portal-account-switcher-list/customElement.js +6 -6
- package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +5 -5
- package/dist/components/arcgis-portal-account-switcher-signout/customElement.js +3 -3
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +6 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +153 -130
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +25 -15
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +574 -2409
- 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/types/assistantTools.d.ts +51 -0
- package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +14 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +39 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +63 -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 +36 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.js +202 -120
- package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
- package/dist/components/arcgis-portal-field-delete/customElement.js +33 -31
- 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 +2 -2
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-card/customElement.js +18 -18
- 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 +101 -91
- 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 +1 -1
- 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 +45 -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.js +28 -28
- 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 +30 -0
- package/dist/index.js +155 -6
- package/dist/loader.js +15 -12
- package/dist/services/groups.d.ts +9 -0
- package/dist/services/item.d.ts +9 -0
- package/dist/types/item.d.ts +9 -9
- package/dist/types/lumina.d.ts +36 -17
- package/dist/types/preact.d.ts +39 -17
- package/dist/types/react.d.ts +42 -17
- package/dist/types/services.d.ts +27 -1
- package/dist/types/stencil.d.ts +36 -17
- 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/23FS4XTG.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/3LEQ37YT.js +0 -68
- package/dist/cdn/46BUEBWS.js +0 -2
- package/dist/cdn/4AI52H7C.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/5PPZNVWG.js +0 -2
- package/dist/cdn/66XWNGQ2.js +0 -2
- package/dist/cdn/6F4SJDRR.js +0 -2
- package/dist/cdn/6RZEXOK3.js +0 -2
- package/dist/cdn/A2SQ4EMZ.js +0 -2
- package/dist/cdn/AICPYLWE.js +0 -4
- package/dist/cdn/AJQT7UXB.js +0 -2
- package/dist/cdn/APSYZEPP.js +0 -209
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BSTA5KI5.js +0 -2
- package/dist/cdn/CD5UWSCP.js +0 -2
- package/dist/cdn/CXXV6WJT.js +0 -2
- package/dist/cdn/DDBXEXOV.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/EITRZQSC.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/GUO7HKSP.js +0 -463
- package/dist/cdn/GX7U3727.js +0 -2
- package/dist/cdn/GXM3XY3J.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/JL52W3Z4.js +0 -2
- package/dist/cdn/JOUR2FB2.js +0 -3
- package/dist/cdn/LISDTBEX.js +0 -2
- package/dist/cdn/LWFACY3F.js +0 -2
- package/dist/cdn/LYLQCBVX.js +0 -2
- package/dist/cdn/N4VOTJ25.js +0 -2
- package/dist/cdn/N5QLV56W.js +0 -2
- package/dist/cdn/NRMQDCM3.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/RVYSVTPQ.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/WC3FPLYQ.js +0 -2
- package/dist/cdn/XYMBRPC7.js +0 -2
- package/dist/cdn/YTODQCOG.js +0 -2
- package/dist/cdn/YYTEJVBL.js +0 -2
- package/dist/cdn/ZDDN7UKS.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/components/arcgis-portal-ai-assistant/{agents/types.d.ts → types/navigation.d.ts} +0 -0
- /package/dist/components/arcgis-portal-ai-assistant/{agents → types}/portalRouteKeys.d.ts +0 -0
|
@@ -1,86 +1,76 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as E } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { keyed as
|
|
3
|
+
import { css as L, html as u } from "lit";
|
|
4
|
+
import { keyed as q } from "lit/directives/keyed.js";
|
|
5
5
|
import { substitute as f } from "@arcgis/core/intl.js";
|
|
6
|
-
import { LitElement as
|
|
6
|
+
import { LitElement as D, createEvent as g, nothing as U, safeClassMap as Q } from "@arcgis/lumina";
|
|
7
7
|
import { u as R } from "../../chunks/useT9n.js";
|
|
8
8
|
import { a as $, i as w } from "../../chunks/functionalities.js";
|
|
9
|
-
import {
|
|
10
|
-
import { i as
|
|
9
|
+
import { b as z, a as H, r as T } from "../../chunks/string.js";
|
|
10
|
+
import { i as V } from "../../chunks/users.js";
|
|
11
11
|
import "../arcgis-portal-browser-search/customElement.js";
|
|
12
12
|
import "../arcgis-portal-browser-top-bar/customElement.js";
|
|
13
|
-
import { c as N, a as
|
|
13
|
+
import { c as N, a as j } from "../../chunks/portal-browser.js";
|
|
14
14
|
import "../arcgis-portal-group-card/customElement.js";
|
|
15
15
|
import "../arcgis-portal-group-browser-card/customElement.js";
|
|
16
16
|
import "../arcgis-portal-group-browser-preview/customElement.js";
|
|
17
|
-
import { c as
|
|
18
|
-
import { i as
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import { a as te } from "../../chunks/portal.js";
|
|
22
|
-
import { g as b, a as v, d as x, w as ie } from "../../chunks/portal-browser-filter-date.js";
|
|
17
|
+
import { c as K } from "../../chunks/store.js";
|
|
18
|
+
import { i as J, g as X, b as Y, a as Z, c as ee, d as re } from "../../chunks/query.js";
|
|
19
|
+
import { s as se } from "../../chunks/groups2.js";
|
|
20
|
+
import { g as b, a as v, d as x, w as te } from "../../chunks/portal-browser-filter-date.js";
|
|
23
21
|
import { b as O } from "../../chunks/ui.js";
|
|
24
|
-
import { watch as
|
|
25
|
-
import { PortalGroupBrowserSort as
|
|
26
|
-
import { PortalGroupBrowserPagination as
|
|
27
|
-
import { PortalGroupBrowserFilters as
|
|
22
|
+
import { watch as ie } from "@arcgis/core/core/reactiveUtils.js";
|
|
23
|
+
import { PortalGroupBrowserSort as oe } from "../portal-group-browser-sort/customElement.js";
|
|
24
|
+
import { PortalGroupBrowserPagination as ae } from "../portal-group-browser-pagination/customElement.js";
|
|
25
|
+
import { PortalGroupBrowserFilters as ne } from "../portal-group-browser-filters/customElement.js";
|
|
28
26
|
const M = {
|
|
29
27
|
select: "arcgisGroupCardSelect",
|
|
30
28
|
preview: "arcgisGroupBrowserCardPreview"
|
|
31
|
-
},
|
|
32
|
-
async function
|
|
33
|
-
const r =
|
|
34
|
-
if (!
|
|
29
|
+
}, le = L`:host{position:relative;background-color:var(--calcite-color-background);display:flex;flex-direction:column;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;--portal-group-browser-max-width: var(--group-browser-max-width, 100%);--portal-group-browser-pane-width: 18.75rem;--portal-group-browser-pane-z-index: 11;container-type:inline-size;container-name:portal-group-browser}arcgis-portal-browser{--arcgis-browser-max-width: var(--portal-group-browser-max-width);--arcgis-browser-pane-width: var(--portal-group-browser-pane-width);--arcgis-browser-pane-z-index: var(--portal-group-browser-pane-z-index)}.filters-title__heading{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.2;margin:0;padding:1rem .5rem}.filters-title:has(>slot[name=before-filters][data-has-before-filters=true]) .filters-title__heading{border-bottom:1px solid var(--calcite-color-border-2)}.filters-shell{display:block}.filters-shell__top{padding:0}.filters-shell__top--padded{padding:0 1rem 1rem}.filter__accordion-item{--calcite-accordion-item-content-space: .75rem .25rem;--calcite-accordion-icon-margin: .5rem;border-top:1px solid var(--calcite-color-border-1)}.filter__actions-slot{display:flex;align-self:center;align-items:center;line-height:0}.filter__content{margin:0}.filter__content--padded{margin:-.75rem .5rem 0}.filter__content>calcite-tree>calcite-tree-item>a{padding-block:.25rem}.clear-button{line-height:1;margin-inline:.25rem}.custom-date-picker{margin-block:.5rem;margin-inline-start:1.75rem;width:12.75rem}.groups-by-user__label{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.special-groups-settings-option{display:inline-flex;align-items:center;gap:.25rem}.special-groups-settings-icon{display:inline-flex;align-items:center}.group-browser__results{display:grid;gap:.5rem}.group-browser__results--compact{gap:0}.group-browser__result-card{margin:0}@container portal-group-browser (max-width: 640px){arcgis-portal-browser{--portal-group-browser-pane-width: 100%}}.empty-text-slot{width:100%;height:100%;display:flex;justify-content:center}.empty-text-slot__default{@apply max-w-lg mx-auto px-6 pb-16;max-width:32rem;margin-inline:auto;padding-inline:1.5rem;padding-bottom:4rem;margin-top:min(8rem,30vh)}`;
|
|
30
|
+
async function ce(t, e) {
|
|
31
|
+
const r = pe(e), s = me(e), i = !!e.searchUser?.trim();
|
|
32
|
+
if (!r.trim() && !i)
|
|
35
33
|
return {
|
|
36
34
|
nextStart: -1,
|
|
37
35
|
num: 0,
|
|
38
|
-
q:
|
|
39
|
-
queryParams: { ...
|
|
36
|
+
q: r,
|
|
37
|
+
queryParams: { ...s, q: r },
|
|
40
38
|
results: [],
|
|
41
39
|
start: 0,
|
|
42
40
|
total: 0
|
|
43
41
|
};
|
|
44
|
-
const
|
|
45
|
-
url: r,
|
|
46
|
-
portal: t,
|
|
47
|
-
params: a
|
|
48
|
-
}), c = o.results.map((l) => {
|
|
49
|
-
const p = re.fromJSON(l);
|
|
50
|
-
return p.portal = t, p;
|
|
51
|
-
});
|
|
42
|
+
const n = { ...s, q: r };
|
|
52
43
|
return {
|
|
53
|
-
...
|
|
54
|
-
q:
|
|
55
|
-
queryParams:
|
|
56
|
-
results: c
|
|
44
|
+
...await se(t, n),
|
|
45
|
+
q: r,
|
|
46
|
+
queryParams: n
|
|
57
47
|
};
|
|
58
48
|
}
|
|
59
|
-
const
|
|
60
|
-
function
|
|
61
|
-
return !!t &&
|
|
49
|
+
const he = ["created", "modified", "owner", "title"];
|
|
50
|
+
function de(t) {
|
|
51
|
+
return !!t && he.includes(t);
|
|
62
52
|
}
|
|
63
|
-
function
|
|
53
|
+
function pe(t) {
|
|
64
54
|
const e = [], r = t.baseQuery?.trim();
|
|
65
|
-
r && e.push(
|
|
55
|
+
r && e.push(r);
|
|
66
56
|
const s = t.searchTerm?.trim();
|
|
67
|
-
s && e.push(
|
|
57
|
+
s && e.push(z(s));
|
|
68
58
|
for (const i of Object.values(t.filters ?? {}))
|
|
69
|
-
typeof i.value == "string" && i.value.trim() && e.push(
|
|
70
|
-
return e
|
|
59
|
+
typeof i.value == "string" && i.value.trim() && e.push(i.value), typeof i.additionalParams == "string" && i.additionalParams.trim() && e.push(i.additionalParams);
|
|
60
|
+
return H(...e);
|
|
71
61
|
}
|
|
72
|
-
function
|
|
62
|
+
function me(t) {
|
|
73
63
|
return {
|
|
74
64
|
num: t.num,
|
|
75
65
|
start: t.start,
|
|
76
66
|
...t.searchUser ? { searchUserAccess: "groupMember", searchUserName: t.searchUser } : {},
|
|
77
|
-
...t.sortField === "relevance" || !
|
|
67
|
+
...t.sortField === "relevance" || !de(t.sortField) ? {} : {
|
|
78
68
|
sortField: t.sortField,
|
|
79
69
|
sortOrder: t.sortOrder
|
|
80
70
|
}
|
|
81
71
|
};
|
|
82
72
|
}
|
|
83
|
-
function
|
|
73
|
+
function ue(t, e, r) {
|
|
84
74
|
switch (t) {
|
|
85
75
|
case "yesterday": {
|
|
86
76
|
const s = b();
|
|
@@ -89,7 +79,7 @@ function ge(t, e, r) {
|
|
|
89
79
|
case "today":
|
|
90
80
|
return [b(), v()];
|
|
91
81
|
case "last7":
|
|
92
|
-
return [b() -
|
|
82
|
+
return [b() - te, v()];
|
|
93
83
|
case "last30":
|
|
94
84
|
return [b() - x * 30, v()];
|
|
95
85
|
case "never":
|
|
@@ -100,7 +90,7 @@ function ge(t, e, r) {
|
|
|
100
90
|
return $(t);
|
|
101
91
|
}
|
|
102
92
|
}
|
|
103
|
-
const
|
|
93
|
+
const ge = ["created", "modified", "owner", "relevance", "title"], we = ["asc", "desc"], fe = ["custom", "last7", "last30", "never", "today", "yesterday"], be = ["inOrg", "outsideOrg", "owner"], ve = ["anyOrg", "collaboration", "org"], ye = ["anotherOrg", "myOrg"], Fe = ["admin", "distributed", "openData", "settings", "sharedUpdate"], Ge = ["org", "private", "public"], Se = [
|
|
104
94
|
"access",
|
|
105
95
|
"created",
|
|
106
96
|
"created_from",
|
|
@@ -127,7 +117,7 @@ function y(t) {
|
|
|
127
117
|
}
|
|
128
118
|
function k(t, e) {
|
|
129
119
|
const r = t.get(e);
|
|
130
|
-
if (!w(
|
|
120
|
+
if (!w(fe, r))
|
|
131
121
|
return;
|
|
132
122
|
if (r !== "custom")
|
|
133
123
|
return { range: r };
|
|
@@ -142,28 +132,28 @@ function I(t) {
|
|
|
142
132
|
const e = t.get("searchTerm")?.trim() || t.get("q")?.trim() || void 0, r = t.get("sortField"), s = t.get("sortOrder"), i = y(t.get("start")), n = y(t.get("num")), a = t.get("access"), o = t.get("memberorgids"), c = t.get("membershipaccess"), l = t.get("owner"), p = t.get("specialGroups"), h = k(t, "created"), m = k(t, "modified");
|
|
143
133
|
return {
|
|
144
134
|
...e ? { searchTerm: e } : {},
|
|
145
|
-
...w(
|
|
146
|
-
...w(
|
|
135
|
+
...w(ge, r) ? { sortField: r } : {},
|
|
136
|
+
...w(we, s) ? { sortOrder: s } : {},
|
|
147
137
|
...i ? { start: i } : {},
|
|
148
138
|
...n ? { num: n } : {},
|
|
149
139
|
filters: {
|
|
150
|
-
...w(
|
|
140
|
+
...w(Ge, a) ? { access: a } : {},
|
|
151
141
|
...h ? { created: h } : {},
|
|
152
|
-
...w(
|
|
153
|
-
...w(
|
|
142
|
+
...w(ye, o) ? { memberOrg: o } : {},
|
|
143
|
+
...w(ve, c) ? { membership: c } : {},
|
|
154
144
|
...m ? { modified: m } : {},
|
|
155
|
-
...w(
|
|
156
|
-
...w(
|
|
145
|
+
...w(be, l) ? { owner: l } : {},
|
|
146
|
+
...w(Fe, p) ? { specialGroups: p } : {}
|
|
157
147
|
}
|
|
158
148
|
};
|
|
159
149
|
}
|
|
160
150
|
function B(t) {
|
|
161
|
-
const e = I(t), { filters: r, num: s, sortField: i, sortOrder: n, start: a } = e, { access: o, created: c, memberOrg: l, membership: p, modified: h, owner: m, specialGroups:
|
|
162
|
-
return
|
|
151
|
+
const e = I(t), { filters: r, num: s, sortField: i, sortOrder: n, start: a } = e, { access: o, created: c, memberOrg: l, membership: p, modified: h, owner: m, specialGroups: C } = r, d = {}, P = t.get("searchTerm")?.trim() || void 0, _ = t.get("q")?.trim() || void 0;
|
|
152
|
+
return P && (d.searchTerm = P), _ && (d.q = _), i && (d.sortField = i), n && (d.sortOrder = n), a && (d.start = a), s && (d.num = s), o && (d.access = o), m && (d.owner = m), p && (d.membershipAccess = p), l && (d.memberOrgIds = l), C && (d.specialGroups = C), c?.range && (d.created = c.range), c?.start && (d.createdFrom = c.start.getTime()), c?.end && (d.createdTo = c.end.getTime()), h?.range && (d.modified = h.range), h?.start && (d.modifiedFrom = h.start.getTime()), h?.end && (d.modifiedTo = h.end.getTime()), d;
|
|
163
153
|
}
|
|
164
|
-
function
|
|
154
|
+
function Oe(t) {
|
|
165
155
|
const e = new URLSearchParams(t.currentSearchParams);
|
|
166
|
-
return
|
|
156
|
+
return Se.forEach((r) => {
|
|
167
157
|
e.delete(r);
|
|
168
158
|
}), t.searchTerm?.trim() && e.set("searchTerm", t.searchTerm.trim()), t.sortField && e.set("sortField", t.sortField), t.sortOrder && e.set("sortOrder", t.sortOrder), Object.values(t.filters ?? {}).forEach((r) => {
|
|
169
159
|
if (r)
|
|
@@ -178,7 +168,7 @@ function Be(t) {
|
|
|
178
168
|
r.specialGroup && e.set("specialGroups", r.specialGroup);
|
|
179
169
|
break;
|
|
180
170
|
case "memberOrg":
|
|
181
|
-
r.memberOrg && e.set("memberorgids", r.memberOrg);
|
|
171
|
+
r.memberOrg && r.value && e.set("memberorgids", r.memberOrg);
|
|
182
172
|
break;
|
|
183
173
|
case "membership":
|
|
184
174
|
r.membership && e.set("membershipaccess", r.membership);
|
|
@@ -207,10 +197,10 @@ function F(t, e = "desc") {
|
|
|
207
197
|
return e;
|
|
208
198
|
}
|
|
209
199
|
}
|
|
210
|
-
function
|
|
200
|
+
function Be(t) {
|
|
211
201
|
return !t || !(t instanceof HTMLElement) ? null : t;
|
|
212
202
|
}
|
|
213
|
-
async function
|
|
203
|
+
async function $e(t) {
|
|
214
204
|
if (t) {
|
|
215
205
|
if (t.restoreFocus) {
|
|
216
206
|
await t.restoreFocus();
|
|
@@ -226,21 +216,21 @@ async function Pe(t) {
|
|
|
226
216
|
function Ce(t) {
|
|
227
217
|
let e = null;
|
|
228
218
|
const r = async (i = {}) => {
|
|
229
|
-
t.onClose(), i.restoreFocus && await
|
|
219
|
+
t.onClose(), i.restoreFocus && await $e(e);
|
|
230
220
|
};
|
|
231
221
|
return { handlePreview: (i, n) => {
|
|
232
222
|
if (!i?.id) {
|
|
233
223
|
r();
|
|
234
224
|
return;
|
|
235
225
|
}
|
|
236
|
-
e =
|
|
226
|
+
e = Be(n), t.onOpen({ preview: i });
|
|
237
227
|
}, closePreview: r };
|
|
238
228
|
}
|
|
239
|
-
function
|
|
229
|
+
function Pe(t) {
|
|
240
230
|
let e, r, s;
|
|
241
231
|
const i = () => {
|
|
242
232
|
e?.();
|
|
243
|
-
const l =
|
|
233
|
+
const l = ie(
|
|
244
234
|
() => t.getStore().width,
|
|
245
235
|
() => {
|
|
246
236
|
n();
|
|
@@ -287,7 +277,7 @@ function _e(t) {
|
|
|
287
277
|
updateResponsiveLayout: n
|
|
288
278
|
};
|
|
289
279
|
}
|
|
290
|
-
function
|
|
280
|
+
function _e(t) {
|
|
291
281
|
let e = !1;
|
|
292
282
|
const r = () => !!t.getSearchParamInteraction()?.read, s = () => !!t.getSearchParamInteraction()?.write;
|
|
293
283
|
return { hydrateFromLocation: async () => {
|
|
@@ -333,9 +323,9 @@ const G = ["title", "relevance", "modified"], S = {
|
|
|
333
323
|
"admin",
|
|
334
324
|
"settings"
|
|
335
325
|
];
|
|
336
|
-
class
|
|
326
|
+
class Ue extends D {
|
|
337
327
|
constructor() {
|
|
338
|
-
super(), this._messages = R({ name: "portal-group-browser", blocking: !0 }), this._browserMessages = R({ name: "portal-browser", blocking: !0 }), this.responsiveLayoutController =
|
|
328
|
+
super(), this._messages = R({ name: "portal-group-browser", blocking: !0 }), this._browserMessages = R({ name: "portal-browser", blocking: !0 }), this.responsiveLayoutController = Pe({
|
|
339
329
|
el: this.el,
|
|
340
330
|
getStore: () => this.store,
|
|
341
331
|
getViewportWidth: () => this.viewportWidth,
|
|
@@ -357,7 +347,7 @@ class Re extends L {
|
|
|
357
347
|
onClose: () => {
|
|
358
348
|
this.store.preview = null, this.arcgisGroupBrowserPreview.emit(null), this.arcgisGroupBrowserSublayerPreview.emit(null);
|
|
359
349
|
}
|
|
360
|
-
}), this.browserResponse = this.getBrowserResponseFromQueryResponse(S), this.previewGroupsById = /* @__PURE__ */ new Map(), this.searchParamController =
|
|
350
|
+
}), this.browserResponse = this.getBrowserResponseFromQueryResponse(S), this.previewGroupsById = /* @__PURE__ */ new Map(), this.searchParamController = _e({
|
|
361
351
|
applySearchParams: async (e) => {
|
|
362
352
|
await this.applySearchParams(e);
|
|
363
353
|
},
|
|
@@ -374,7 +364,7 @@ class Re extends L {
|
|
|
374
364
|
this.handleGroupCardSelect(e);
|
|
375
365
|
}, this.onDelegatedGroupCardPreview = (e) => {
|
|
376
366
|
this.handleGroupCardPreview(e);
|
|
377
|
-
}, this.selectedOwner = null, this.selectedMembership = null, this.selectedMemberOrg = null, this.selectedSpecialGroup = null, this.selectedAccess = null, this.selectedGroups = [], this.queryResponse = S, this.specialGroupOptions = A, this.responsiveFormFactor = "large", this.viewportWidth = typeof window > "u" ? O.lg : window.innerWidth, this.hostWidth = 0, this.store =
|
|
367
|
+
}, this.selectedOwner = null, this.selectedMembership = null, this.selectedMemberOrg = null, this.selectedSpecialGroup = null, this.selectedAccess = null, this.selectedGroups = [], this.queryResponse = S, this.specialGroupOptions = A, this.responsiveFormFactor = "large", this.viewportWidth = typeof window > "u" ? O.lg : window.innerWidth, this.hostWidth = 0, this.store = K({
|
|
378
368
|
type: "group-browser",
|
|
379
369
|
width: window?.innerWidth ?? O.lg,
|
|
380
370
|
hiddenFilters: [],
|
|
@@ -398,7 +388,7 @@ class Re extends L {
|
|
|
398
388
|
this.properties = { selectedGroupsByUser: 16, selectedOwner: 16, selectedMembership: 16, selectedMemberOrg: 16, selectedSpecialGroup: 16, selectedAccess: 16, selectedGroups: 16, queryResponse: 16, specialGroupOptions: 16, sortField: 16, sortOrder: 16, responsiveFormFactor: 16, viewportWidth: 16, hostWidth: 16, store: 0, filters: 0, loading: 5, formFactor: 1, height: 3, searchTerm: 1, messageOverrides: 0, hideTopBar: 5, selected: 0, view: 1, cards: 0, preview: 1, q: 1, portal: 0, num: 9, sort: 0, fetch: 0, preflight: 0, searchUser: 1, searchParamInteraction: 0, selection: 1, alwaysShowSelection: 5, hidePreviewFooter: 5, hidePreviewBadges: 5, hasIndoorsSpaces: 5 };
|
|
399
389
|
}
|
|
400
390
|
static {
|
|
401
|
-
this.styles =
|
|
391
|
+
this.styles = le;
|
|
402
392
|
}
|
|
403
393
|
get currentUsername() {
|
|
404
394
|
return this.portal.user?.username ?? "";
|
|
@@ -424,7 +414,7 @@ class Re extends L {
|
|
|
424
414
|
updated(e) {
|
|
425
415
|
e.has("view") && (this.store.view = this.view), e.has("store") && (this.view !== void 0 && (this.store.view = this.view), this.responsiveLayoutController.refreshStoreWatcher(), this.responsiveLayoutController.updateResponsiveLayout(), this.syncFiltersEmptyFromConfig()), e.has("filters") && this.syncFiltersEmptyFromConfig(), e.has("selected") && (this.selectedGroups = this.selected || []);
|
|
426
416
|
const r = e.get("num");
|
|
427
|
-
r !== void 0 && r !== this.num && this.fetchGroups(), (e.has("portal") || e.has("hasIndoorsSpaces")) && this.updateSpecialGroupOptions(), e.has("sort") && this.syncSortFromConfig();
|
|
417
|
+
r !== void 0 && r !== this.num && this.fetchGroups(), (e.has("portal") || e.has("hasIndoorsSpaces") || e.has("filters")) && this.updateSpecialGroupOptions(), e.has("sort") && this.syncSortFromConfig();
|
|
428
418
|
}
|
|
429
419
|
disconnectedCallback() {
|
|
430
420
|
this.responsiveLayoutController.disconnect(), window.removeEventListener("resize", this.responsiveLayoutController.handleWindowResize), super.disconnectedCallback();
|
|
@@ -461,7 +451,7 @@ class Re extends L {
|
|
|
461
451
|
this.selectedGroupsByUser = this.filters.groupsByUser?.props?.selectedUsername ?? this.currentUsername, this.selectedOwner = null, this.selectedMembership = null, this.selectedMemberOrg = null, this.selectedSpecialGroup = null, this.selectedAccess = null;
|
|
462
452
|
}
|
|
463
453
|
getSearchParamsSnapshot(e, r) {
|
|
464
|
-
return
|
|
454
|
+
return Oe({
|
|
465
455
|
currentSearchParams: typeof window > "u" ? void 0 : new URLSearchParams(window.location.search),
|
|
466
456
|
filters: this.store.filters,
|
|
467
457
|
searchTerm: r,
|
|
@@ -499,13 +489,13 @@ class Re extends L {
|
|
|
499
489
|
this.sortField = i, this.sortOrder = e.props?.order ?? F(i, this.sortOrder);
|
|
500
490
|
}
|
|
501
491
|
async updateSpecialGroupOptions(e = !0) {
|
|
502
|
-
if (!this.portal) {
|
|
492
|
+
if (!this.portal || !this.filters.specialGroups?.enabled) {
|
|
503
493
|
this.specialGroupOptions = [];
|
|
504
494
|
return;
|
|
505
495
|
}
|
|
506
496
|
let r = "";
|
|
507
497
|
try {
|
|
508
|
-
r = await
|
|
498
|
+
r = await J(this.portal);
|
|
509
499
|
} catch {
|
|
510
500
|
r = "";
|
|
511
501
|
}
|
|
@@ -532,7 +522,7 @@ class Re extends L {
|
|
|
532
522
|
async applyFilterSearchParams(e) {
|
|
533
523
|
const r = { ...this.store.filters };
|
|
534
524
|
let s = !1;
|
|
535
|
-
const i =
|
|
525
|
+
const i = V(this.portal.user);
|
|
536
526
|
if (e.owner && this.filters.owner?.enabled && !this.filters.owner.props?.owner) {
|
|
537
527
|
const o = this.filters.owner.props?.username ?? this.currentUsername;
|
|
538
528
|
r.owner = {
|
|
@@ -541,37 +531,41 @@ class Re extends L {
|
|
|
541
531
|
label: this.getOwnerOptionLabel(e.owner, o, i)
|
|
542
532
|
}),
|
|
543
533
|
param: "q",
|
|
544
|
-
value:
|
|
534
|
+
value: X(e.owner, o, { isPublicUser: i, orgId: this.portal.id ?? "" }),
|
|
545
535
|
owner: e.owner,
|
|
546
536
|
username: o
|
|
547
537
|
}, this.selectedOwner = e.owner, s = !0;
|
|
548
538
|
}
|
|
549
|
-
e.membership && this.filters.membership?.enabled && !this.filters.membership.props?.membership && (r.membership = {
|
|
539
|
+
if (e.membership && this.filters.membership?.enabled && !this.filters.membership.props?.membership && (r.membership = {
|
|
550
540
|
id: "membership",
|
|
551
541
|
label: f(this._messages.membership.label, { label: this._messages.membership[e.membership] }),
|
|
552
542
|
param: "q",
|
|
553
|
-
value:
|
|
543
|
+
value: Y(e.membership, this.hasIndoorsSpaces),
|
|
554
544
|
membership: e.membership
|
|
555
|
-
}, this.selectedMembership = e.membership, s = !0), e.memberOrg && this.filters.memberOrg?.enabled && !this.filters.memberOrg.props?.memberOrg
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
545
|
+
}, this.selectedMembership = e.membership, s = !0), e.memberOrg && this.filters.memberOrg?.enabled && !this.filters.memberOrg.props?.memberOrg) {
|
|
546
|
+
const o = this.filters.memberOrg.props?.orgId ?? "";
|
|
547
|
+
r.memberOrg = {
|
|
548
|
+
id: "memberOrg",
|
|
549
|
+
label: f(this._messages.memberOrg.label, { label: this._messages.memberOrg[e.memberOrg] }),
|
|
550
|
+
param: "q",
|
|
551
|
+
value: Z(e.memberOrg, o),
|
|
552
|
+
memberOrg: e.memberOrg,
|
|
553
|
+
orgId: o
|
|
554
|
+
}, this.selectedMemberOrg = e.memberOrg, s = !0;
|
|
555
|
+
}
|
|
556
|
+
e.specialGroups && this.filters.specialGroups?.enabled && !this.filters.specialGroups.props?.specialGroup && (r.specialGroups = {
|
|
563
557
|
id: "specialGroups",
|
|
564
558
|
label: f(this._messages.specialGroups.label, {
|
|
565
559
|
label: this._messages.specialGroups[e.specialGroups]
|
|
566
560
|
}),
|
|
567
561
|
param: "q",
|
|
568
|
-
value: await
|
|
562
|
+
value: await ee(e.specialGroups, this.portal),
|
|
569
563
|
specialGroup: e.specialGroups
|
|
570
564
|
}, this.selectedSpecialGroup = e.specialGroups, s = !0), e.access && this.filters.access?.enabled && !this.filters.access.props?.access && (r.access = {
|
|
571
565
|
id: "access",
|
|
572
566
|
label: f(this._messages.access.label, { label: this._messages.access[e.access] }),
|
|
573
567
|
param: "q",
|
|
574
|
-
value:
|
|
568
|
+
value: re(e.access),
|
|
575
569
|
access: e.access
|
|
576
570
|
}, this.selectedAccess = e.access, s = !0);
|
|
577
571
|
const n = this.getDateFilterDetailFromSearchParams("created", e.created);
|
|
@@ -583,7 +577,7 @@ class Re extends L {
|
|
|
583
577
|
const s = this.filters[e];
|
|
584
578
|
if (!s?.enabled || s.props?.range || s.props?.start || s.props?.end || !r?.range)
|
|
585
579
|
return;
|
|
586
|
-
const i =
|
|
580
|
+
const i = ue(r.range, r.start, r.end);
|
|
587
581
|
if (!i)
|
|
588
582
|
return;
|
|
589
583
|
const n = this._browserMessages.filterDate[r.range], [a, o] = i;
|
|
@@ -616,7 +610,7 @@ class Re extends L {
|
|
|
616
610
|
}, this.resetSelectionByFilterId(e), this.publishFilterStateChange(), this.fetchGroups());
|
|
617
611
|
}
|
|
618
612
|
clearFiltersInternal() {
|
|
619
|
-
this.store.filters =
|
|
613
|
+
this.store.filters = j(this.store.filters, {
|
|
620
614
|
hiddenFilterIds: this.store.hiddenFilters
|
|
621
615
|
}), this.resetAllFilterSelections(), this.publishFilterStateChange(), this.fetchGroups();
|
|
622
616
|
}
|
|
@@ -704,7 +698,7 @@ class Re extends L {
|
|
|
704
698
|
}), this.writeSearchParams(i);
|
|
705
699
|
}
|
|
706
700
|
async queryGroups(e) {
|
|
707
|
-
return await (this.fetch?.(e) ??
|
|
701
|
+
return await (this.fetch?.(e) ?? ce(this.portal, e));
|
|
708
702
|
}
|
|
709
703
|
async fetchAndEmit(e, r) {
|
|
710
704
|
this.preflight && (e = await this.preflight(e));
|
|
@@ -771,24 +765,24 @@ class Re extends L {
|
|
|
771
765
|
}), n = i.length > 0 && s === "compact";
|
|
772
766
|
return u`<div slot=content class=${Q({ "group-browser__results": !0, "group-browser__results--compact": n })} .part=${"results"}>${r ? u`<slot name=group-cards></slot>` : u`<slot name=group-cards>${i.map(({ group: a, cardProps: o }) => {
|
|
773
767
|
const c = a.id;
|
|
774
|
-
return
|
|
768
|
+
return q(c, u`<arcgis-portal-group-card class="group-browser__result-card" .portal=${this.portal} .group=${a} .user=${o.user} .indeterminate=${o.indeterminate} .view=${s} .selection=${this.selection} .selected=${e.has(c)} .preview=${o.preview ?? this.preview} .previewed=${o.previewed ?? this.store.preview === c} .name=${o.name} .showSummary=${o.showSummary ?? !0} .hideBadges=${o.hideBadges ?? !1} .hideDateUpdated=${o.hideDateUpdated ?? !1} .showDateCreated=${o.showDateCreated ?? !1} .hideViewableBy=${o.hideViewableBy ?? !1} .hideOwner=${o.hideOwner ?? !1} .link=${o.link} .linkHandler=${o.linkHandler} .newTab=${o.newTab ?? !1} .disabled=${o.disabled ?? !1}></arcgis-portal-group-card>`);
|
|
775
769
|
})}</slot>`}</div>`;
|
|
776
770
|
}
|
|
777
771
|
render() {
|
|
778
772
|
const e = this.responsiveFormFactor === "small" ? "small" : this.formFactor, r = this.previewGroupsById.get(this.store.preview ?? "");
|
|
779
773
|
return u`<arcgis-portal-browser .store=${this.store} .response=${this.browserResponse} .loading=${this.loading} .formFactor=${e} .height=${this.height} .searchTerm=${this.searchTerm} .rangeFormatter=${this.formatRange} .selected=${this.selectedGroups} .alwaysShowSelection=${this.alwaysShowSelection} @arcgisBrowserFilterClear=${this.handleBrowserFilterClear} @arcgisBrowserFilterRemove=${this.handleBrowserFilterRemove} @arcgisAriaUpdate=${(s) => {
|
|
780
774
|
this.arcgisAriaUpdate.emit(s.detail);
|
|
781
|
-
}}>${!this.hideTopBar && u`<slot name=top-bar slot=top-bar>${this.renderTopBar()}</slot>` || ""}<slot name=content-start slot=content-start></slot><slot name=selection slot=selection></slot><slot name=actions slot=actions></slot><slot name=view slot=view></slot>${
|
|
775
|
+
}}>${!this.hideTopBar && u`<slot name=top-bar slot=top-bar>${this.renderTopBar()}</slot>` || ""}<slot name=content-start slot=content-start></slot><slot name=selection slot=selection></slot><slot name=actions slot=actions></slot><slot name=view slot=view></slot>${oe({ slot: "sort", sort: this.sort, formFactor: e, sortField: this.sortField, sortOrder: this.sortOrder, onSortFieldChange: (s) => {
|
|
782
776
|
this.handleSortFieldChange(s);
|
|
783
777
|
}, onSortOrderChange: (s) => {
|
|
784
778
|
this.handleSortOrderChange(s);
|
|
785
|
-
} })}${this.renderDefaultContent()}${
|
|
779
|
+
} })}${this.renderDefaultContent()}${ae({ slot: "pagination", store: this.store, total: this.queryResponse.total, start: this.queryResponse?.queryParams?.start ?? 1, num: this.queryResponse?.queryParams?.num ?? this.num, onPage: (s) => {
|
|
786
780
|
this.handlePage(s);
|
|
787
781
|
} })}<slot name=content-end slot=content-end></slot><slot name=preview slot=preview>${r && u`<arcgis-portal-group-browser-preview .group=${r} .portal=${this.portal} .user=${this.portal.user ?? void 0} .hideBadges=${this.hidePreviewBadges} .hidePreviewFooter=${this.hidePreviewFooter} .currentResponse=${this.queryResponse} .previewFooterActionsSpaced=${!this.getPreviewFooterActionsEmpty()} @arcgisGroupBrowserInternalUIAction=${(s) => {
|
|
788
782
|
this.arcgisGroupBrowserInternalUIAction.emit(s.detail);
|
|
789
783
|
}} @arcgisGroupBrowserPreviewClose=${() => {
|
|
790
784
|
this.closePreview({ restoreFocus: !0 });
|
|
791
|
-
}}><slot name=preview-footer-action slot=footer-action></slot></arcgis-portal-group-browser-preview>` || ""}</slot>${this.renderEmptyTextSlot("no-results", this._messages.content.noResults)}${this.renderEmptyTextSlot("no-content", this._messages.content.noContent)}<slot name=scroll-end slot=scroll-end></slot>${
|
|
785
|
+
}}><slot name=preview-footer-action slot=footer-action></slot></arcgis-portal-group-browser-preview>` || ""}</slot>${this.renderEmptyTextSlot("no-results", this._messages.content.noResults)}${this.renderEmptyTextSlot("no-content", this._messages.content.noContent)}<slot name=scroll-end slot=scroll-end></slot>${ne({ slot: "filters", filters: this.filters, messages: this._messages, browserMessages: this._browserMessages, store: this.store, portal: this.portal, hasIndoorsSpaces: this.hasIndoorsSpaces, selectedGroupsByUser: this.selectedGroupsByUser, selectedOwner: this.selectedOwner, selectedMembership: this.selectedMembership, selectedMemberOrg: this.selectedMemberOrg, selectedSpecialGroup: this.selectedSpecialGroup, specialGroupOptions: this.specialGroupOptions, selectedAccess: this.selectedAccess, isFilterActive: (s) => this.isFilterActive(s), handleSelect: (s) => {
|
|
792
786
|
this.setFilterSelection(s);
|
|
793
787
|
}, handleUserFilterChange: (s) => {
|
|
794
788
|
this.arcgisGroupBrowserUserFilterChange.emit(s);
|
|
@@ -799,7 +793,7 @@ class Re extends L {
|
|
|
799
793
|
} })}</arcgis-portal-browser>`;
|
|
800
794
|
}
|
|
801
795
|
}
|
|
802
|
-
E("arcgis-portal-group-browser",
|
|
796
|
+
E("arcgis-portal-group-browser", Ue);
|
|
803
797
|
export {
|
|
804
|
-
|
|
798
|
+
Ue as ArcgisPortalGroupBrowser
|
|
805
799
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type PortalGroup from "@arcgis/core/portal/PortalGroup.js";
|
|
2
|
+
import type { PortalGroupSearchParams } from "../../services/groups.js";
|
|
2
3
|
import type { SearchResult } from "../../types/search.js";
|
|
3
4
|
import type { PortalBrowserSortField, PortalBrowserSortOrder } from "../arcgis-portal-browser-sort/utils.js";
|
|
4
5
|
import type { BrowserPageDetail } from "../arcgis-portal-browser/utils/types.js";
|
|
@@ -135,14 +136,8 @@ export interface PortalGroupBrowserSortDetail {
|
|
|
135
136
|
sortOrder?: PortalBrowserSortOrder;
|
|
136
137
|
}
|
|
137
138
|
|
|
138
|
-
export interface PortalGroupBrowserQueryParams {
|
|
139
|
-
num?: number;
|
|
140
|
-
q?: string;
|
|
141
|
-
searchUserAccess?: string;
|
|
142
|
-
searchUserName?: string;
|
|
139
|
+
export interface PortalGroupBrowserQueryParams extends PortalGroupSearchParams {
|
|
143
140
|
sortField?: PortalGroupBrowserQuery["sortField"];
|
|
144
|
-
sortOrder?: PortalGroupBrowserQuery["sortOrder"];
|
|
145
|
-
start?: number;
|
|
146
141
|
}
|
|
147
142
|
|
|
148
143
|
export type PortalGroupBrowserOwner = "inOrg" | "outsideOrg" | "owner";
|
|
@@ -174,6 +169,7 @@ export interface PortalGroupBrowserMembershipSelection {
|
|
|
174
169
|
|
|
175
170
|
export interface PortalGroupBrowserMemberOrgSelection {
|
|
176
171
|
memberOrg: PortalGroupBrowserMemberOrg | null;
|
|
172
|
+
/** Scopes "anotherOrg" to a specific organization. Omit to match groups with any external members. */
|
|
177
173
|
orgId: string;
|
|
178
174
|
}
|
|
179
175
|
|
|
@@ -8,8 +8,8 @@ import { css as $, html as s } from "lit";
|
|
|
8
8
|
import { createRef as x, ref as k } from "lit/directives/ref.js";
|
|
9
9
|
import { u as I } from "../../chunks/useT9n.js";
|
|
10
10
|
import { a as G, s as A } from "../../chunks/dom.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { e as p } from "../../chunks/groups.js";
|
|
12
|
+
import { b as C } from "../../chunks/url.js";
|
|
13
13
|
import { g as T } from "../../chunks/user2.js";
|
|
14
14
|
import { e as P, h as M, f as z } from "../../chunks/query.js";
|
|
15
15
|
import "../arcgis-portal-group-browser-preview-card/customElement.js";
|
|
@@ -6,7 +6,7 @@ import { css as _, html as r } from "lit";
|
|
|
6
6
|
import { createRef as p, ref as h } from "lit/directives/ref.js";
|
|
7
7
|
import { g as f } from "../../chunks/items.js";
|
|
8
8
|
import { g } from "../../chunks/itemThumbnail.js";
|
|
9
|
-
import {
|
|
9
|
+
import { b } from "../../chunks/url.js";
|
|
10
10
|
const y = _`:host{display:block;min-width:0;container-type:inline-size}.preview-card{position:relative;display:flex;width:100%;height:100%;flex-direction:column;color:var(--calcite-color-text-1);opacity:0;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-border-3);transition:background-color .15s ease-in-out,opacity .15s ease-in-out}.preview-card--loaded{opacity:1}.preview-card--hoverable{cursor:pointer}.preview-card--hoverable .preview-card__upper:hover{background-color:var(--calcite-color-background)}.preview-card__upper{display:flex;align-items:stretch;min-width:0;flex:1 1 auto;padding:.75rem;background-color:var(--calcite-color-foreground-1)}.preview-card__upper--link{color:var(--calcite-color-text-1);text-decoration:none}.preview-card__top{display:flex;align-self:stretch;flex:0 0 auto}.preview-card__thumbnail{box-sizing:border-box;display:grid;place-items:center;width:4rem;height:100%;margin:0;margin-inline-start:.75rem;border-radius:2px;overflow:hidden;background-color:var(--calcite-color-foreground-2)}.preview-card__thumbnail-image{width:100%;height:100%;object-fit:cover}.preview-card__thumbnail--fallback{color:var(--calcite-color-text-3)}.preview-card__content{min-width:0;flex:1 1 auto}.preview-card__body{display:grid;min-width:0;gap:.25rem}.preview-card__title{margin:0;height:2rem;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.preview-card__title--padded{margin-bottom:.125rem}.preview-card__title-span{position:relative}.preview-card__summary{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2);line-height:1.35;margin:0;overflow:hidden;text-overflow:ellipsis}.preview-card__details{align-items:center;display:flex;flex-wrap:wrap;gap:.25rem}.preview-card__detail,.preview-card__meta{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--2);margin:0}.preview-card__meta{color:var(--calcite-color-text-2)}.preview-card__status{--calcite-chip-background-color: var(--calcite-color-foreground-2);text-transform:capitalize}.preview-card__divider{align-items:center;display:flex;flex:0 0 auto}.preview-card__divider:before{content:"";height:1rem;width:1px;margin-inline-end:.5rem;background-color:var(--calcite-color-border-2)}.preview-card__details :first-child.preview-card__divider:before{display:none}.preview-card__footer{align-items:center;border-top:1px solid var(--calcite-color-border-2);display:flex;margin-top:auto;min-height:2.25rem;padding:.375rem .75rem}.preview-card__footer-start{align-items:center;display:flex;flex:1 1 auto;min-width:0}.preview-card__owner{min-width:0}@container (max-width: 480px){.preview-card__upper{padding:.625rem}.preview-card__thumbnail{width:3.5rem;margin-inline-start:.5rem}.preview-card__footer{padding:.25rem .625rem}}`;
|
|
11
11
|
class $ extends v {
|
|
12
12
|
constructor() {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as b } from "../../chunks/runtime.js";
|
|
3
3
|
import { substitute as h, formatDate as _ } from "@arcgis/core/intl.js";
|
|
4
|
-
import { LitElement as v, createEvent as m, safeClassMap as g, nothing as
|
|
4
|
+
import { LitElement as v, createEvent as m, safeClassMap as g, nothing as c } from "@arcgis/lumina";
|
|
5
5
|
import { css as w, html as t } from "lit";
|
|
6
6
|
import { createRef as $, ref as f } from "lit/directives/ref.js";
|
|
7
7
|
import { u as x } from "../../chunks/useT9n.js";
|
|
8
8
|
import { a as y } from "../../chunks/functionalities.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { e as k } from "../../chunks/groups.js";
|
|
10
|
+
import { b as C } from "../../chunks/url.js";
|
|
11
11
|
const B = w`:host{display:block;min-width:0;container-type:inline-size;container-name:portal-group-card}.group-card{position:relative;display:flex;height:100%;flex-direction:column;color:var(--calcite-color-text-1);opacity:0;box-shadow:none;transition-duration:.15s;outline-color:transparent;background-color:var(--calcite-color-foreground-1);transition-property:background-color,outline,outline-offset,opacity;border:1px solid var(--calcite-color-border-3);&:focus{z-index:10;outline:2px solid var(--calcite-color-brand);outline-offset:-2px}}.group-card--loaded{opacity:1}.group-card--selected{border-color:var(--calcite-color-brand)}.group-card--hoverable{cursor:pointer}.group-card--disabled{opacity:.5}.group-card__top{padding:.75rem}.group-card__upper{flex:1 1 0%;background-color:var(--calcite-color-foreground-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s}.group-card__upper:hover{background-color:var(--calcite-color-background)}.group-card__upper--compact{display:flex;align-items:flex-start;padding:.5rem .75rem}.group-card__upper--link{color:var(--calcite-color-text-1);text-decoration-line:none;outline-color:transparent;&:focus{z-index:10;outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.group-card__title__span{position:relative;display:inline;border-style:none;background-color:transparent;padding:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;background-image:linear-gradient(transparent,transparent);background-position-x:0%,100%;background-position-y:min(1.25em,100%);background-repeat:no-repeat,no-repeat;background-size:100% 1px,100% 1px}.group-card--previewed .group-card__title__span{background-image:linear-gradient(var(--calcite-color-text-3),var(--calcite-color-text-3))}.group-card__content{display:flex;min-width:0;flex:1 1 0%;flex-direction:column}.group-card__details{display:flex;flex-direction:column;margin-top:.25rem;position:relative}.group-card__details .group-card__divider:before{display:none}.group-card__detail{font-size:.75rem;line-height:1.35;color:var(--calcite-color-text-2);margin:.25rem 0}.group-card__detail__icon{margin-inline-end:.5rem}.group-card__footer{margin-top:auto;display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);padding:.25rem .75rem;border-top:1px solid var(--calcite-color-border-3)}.group-card__footer__start{display:flex;min-width:0;flex:1 1 0%;align-items:center;overflow:hidden;margin-inline-end:.75rem}.group-card__footer__end{display:flex}.group-card__profile-wrap{max-width:100%;padding:.25rem}.group-card__divider{display:flex;align-items:center;flex:0 0 auto}.group-card__divider:not([empty]):before{content:"";height:1.25rem;width:1px;background-color:var(--calcite-color-border-1);margin-inline:.75rem;display:none}.group-card-flex{display:flex}.group-card-flex-1{min-width:0;flex:1 1 0%}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.group-card__input{margin-inline-end:1rem;margin-top:.125rem}.group-card__input--compact{height:100%;display:flex;align-items:center}.group-card__title{margin:0;overflow-wrap:break-word;padding:0;font-size:.875rem;font-weight:500;line-height:1.375}.group-card__title--compact{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-inline-end:1rem}.group-card__title--padded{margin-bottom:.25rem}.group-card__summary{margin:.25rem 0;flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-size:.875rem;line-height:1.25}.group-card__thumbnail{margin-inline-end:1rem;padding-inline-start:.75rem;width:4.25rem}.group-card__thumbnail--compact{width:2.75rem;height:2.75rem;flex-shrink:0}.group-card__upper--compact .group-card-flex-1{display:flex;justify-content:space-between;align-items:center;gap:.25rem;height:100%}.group-card__badges--compact{margin-top:.125rem;max-width:100%}.group-card__badges{margin-top:.25rem}.group-card__badges-measurement{inset:0;position:absolute;visibility:hidden;pointer-events:none}.group-card__badges--measurement{width:max-content}.group-card__owner{min-width:0}@container portal-group-card (min-width: 321px){.group-card__thumbnail{padding-inline-start:.5rem;width:5rem}}@container portal-group-card (min-width: 641px){.group-card__top{padding:1rem}.group-card__title{font-size:1rem}.group-card__title--padded{margin-bottom:0}.group-card__detail{font-size:.875rem;line-height:normal;margin:0}.group-card__footer{padding:.5rem 1rem}.group-card__thumbnail{padding-inline-start:0;width:auto}}@container portal-group-card (min-width: 769px){.group-card__details{flex-direction:row}.group-card__details .group-card__divider:not([empty])+.group-card__divider:not([empty]):before{display:block}}`;
|
|
12
12
|
class S extends v {
|
|
13
13
|
constructor() {
|
|
@@ -67,7 +67,7 @@ class S extends v {
|
|
|
67
67
|
const d = Array.from(e.children), o = d.indexOf(r);
|
|
68
68
|
if (o < 0)
|
|
69
69
|
return e.clientWidth;
|
|
70
|
-
const n = Number.parseFloat(i.columnGap || i.gap || "0") || 0, l = d.slice(0, o).reduce((s,
|
|
70
|
+
const n = Number.parseFloat(i.columnGap || i.gap || "0") || 0, l = d.slice(0, o).reduce((s, p) => s + p.getBoundingClientRect().width, 0);
|
|
71
71
|
return e.clientWidth - l - n * o;
|
|
72
72
|
}
|
|
73
73
|
getAccessInfo(e) {
|
|
@@ -136,19 +136,19 @@ class S extends v {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
renderCompactView() {
|
|
139
|
-
const { group: e, selection: r, isLoaded: i, disabled: d, link: o, newTab: n, linkHandler: l, handleCardClick: s, selected:
|
|
139
|
+
const { group: e, selection: r, isLoaded: i, disabled: d, link: o, newTab: n, linkHandler: l, handleCardClick: s, selected: p } = this, a = this.getThumbnailGroup(e);
|
|
140
140
|
return t`<section class=${g({
|
|
141
141
|
"group-card": !0,
|
|
142
142
|
"group-card--hoverable": r !== "none",
|
|
143
|
-
"group-card--selected":
|
|
143
|
+
"group-card--selected": p,
|
|
144
144
|
"group-card--disabled": d,
|
|
145
145
|
"group-card--loaded": i
|
|
146
146
|
})} tabindex=-1 @click=${o ? void 0 : s} @mouseover=${() => {
|
|
147
147
|
this.hover = !0;
|
|
148
148
|
}} @mouseout=${() => {
|
|
149
149
|
this.hover = !1;
|
|
150
|
-
}} ${f(this.sectionEl)}>${o ? t`<a class="group-card__upper group-card__upper--compact group-card__upper--link" href=${o ??
|
|
151
|
-
l && !
|
|
150
|
+
}} ${f(this.sectionEl)}>${o ? t`<a class="group-card__upper group-card__upper--compact group-card__upper--link" href=${o ?? c} target=${(n ? "_blank" : void 0) ?? c} rel=${(n ? "noopener noreferrer" : void 0) ?? c} @click=${(u) => {
|
|
151
|
+
l && !u.ctrlKey && !u.metaKey && (u.preventDefault(), l(this.group));
|
|
152
152
|
}}>${t`${this.renderSelectionInput()}<div class="group-card__thumbnail group-card__thumbnail--compact"><arcgis-portal-group-thumbnail .group=${a} .portal=${this.portal} scale=l></arcgis-portal-group-thumbnail></div><div class="group-card-flex-1"><h3 class="group-card__title group-card__title--compact"><span class="group-card__title__span">${e.title}</span></h3>${this.renderCompactBadges(e)}</div><slot name=content-end></slot>`}</a>` : t`<div class="group-card__upper group-card__upper--compact">${this.renderSelectionInput()}<div class="group-card__thumbnail group-card__thumbnail--compact"><arcgis-portal-group-thumbnail .group=${a} .portal=${this.portal} scale=l></arcgis-portal-group-thumbnail></div><div class="group-card-flex-1"><h3 class="group-card__title group-card__title--compact"><span class="group-card__title__span">${e.title}</span></h3>${this.renderCompactBadges(e)}</div><slot name=content-end></slot></div>`}</section>`;
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
@@ -157,17 +157,17 @@ class S extends v {
|
|
|
157
157
|
return;
|
|
158
158
|
if (this.view === "compact")
|
|
159
159
|
return this.renderCompactView();
|
|
160
|
-
const n = this.getAccessInfo(e.access ?? "private"), l = this.getThumbnailGroup(e), s = this.preview === "top" && !o,
|
|
160
|
+
const n = this.getAccessInfo(e.access ?? "private"), l = this.getThumbnailGroup(e), s = this.preview === "top" && !o, p = this.previewed;
|
|
161
161
|
return t`<section class=${g({
|
|
162
162
|
"group-card": !0,
|
|
163
163
|
"group-card--hoverable": r !== "none",
|
|
164
164
|
"group-card--selected": this.selected,
|
|
165
165
|
"group-card--disabled": d,
|
|
166
166
|
"group-card--loaded": i,
|
|
167
|
-
"group-card--previewed":
|
|
168
|
-
})} @click=${o ? void 0 : this.handleCardClick} tabindex=${(s ? 0 : void 0) ??
|
|
167
|
+
"group-card--previewed": p
|
|
168
|
+
})} @click=${o ? void 0 : this.handleCardClick} tabindex=${(s ? 0 : void 0) ?? c} .role=${s ? "button" : void 0} aria-haspopup=${(s ? "dialog" : void 0) ?? c} @keydown=${(a) => {
|
|
169
169
|
s && (a.key === "Enter" || a.key === " ") && (a.preventDefault(), this.handleCardClick());
|
|
170
|
-
}} ${f(this.sectionEl)}><slot name=content-top></slot>${o ? t`<a class="group-card__upper group-card__upper--link" href=${this.link ??
|
|
170
|
+
}} ${f(this.sectionEl)}><slot name=content-top></slot>${o ? t`<a class="group-card__upper group-card__upper--link" href=${this.link ?? c} target=${(this.newTab ? "_blank" : void 0) ?? c} rel=${(this.newTab ? "noopener noreferrer" : void 0) ?? c} @mouseover=${() => {
|
|
171
171
|
this.hover = !0;
|
|
172
172
|
}} @mouseout=${() => {
|
|
173
173
|
this.hover = !1;
|
|
@@ -176,17 +176,17 @@ class S extends v {
|
|
|
176
176
|
a.preventDefault(), this.linkHandler(this.group);
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
|
|
179
|
+
const u = a.target;
|
|
180
|
+
u instanceof HTMLElement && u.closest(".group-card__footer") && a.preventDefault();
|
|
181
181
|
}}>${this.renderListContent(e, l, n)}</a>` : t`<div class="group-card__upper" @mouseover=${() => {
|
|
182
182
|
this.hover = !0;
|
|
183
183
|
}} @mouseout=${() => {
|
|
184
184
|
this.hover = !1;
|
|
185
|
-
}}>${this.renderListContent(e, l, n)}</div>`}<div class="group-card__footer"><div class="group-card__footer__start"><slot name=actions-start></slot>${!this.hideOwner && t`<div class="group-card__profile-wrap"><arcgis-portal-user-popup .baseUrl=${this.getResolvedBaseUrl()} class="group-card__owner" .portal=${this.portal} .username=${e.owner ?? void 0} underline @arcgisUserPopupInternalUIAction=${(
|
|
186
|
-
|
|
187
|
-
}}></arcgis-portal-user-popup></div>` || ""}</div><div class="group-card__footer__end">${this.preview === "action" && t`<calcite-button scale=s .appearance=${
|
|
185
|
+
}}>${this.renderListContent(e, l, n)}</div>`}<div class="group-card__footer"><div class="group-card__footer__start"><slot name=actions-start></slot>${!this.hideOwner && t`<div class="group-card__profile-wrap"><arcgis-portal-user-popup .baseUrl=${this.getResolvedBaseUrl()} class="group-card__owner" .portal=${this.portal} .username=${e.owner ?? void 0} underline @arcgisUserPopupInternalUIAction=${(a) => {
|
|
186
|
+
a.stopPropagation(), this.arcgisGroupBrowserInternalUIAction.emit(a.detail);
|
|
187
|
+
}}></arcgis-portal-user-popup></div>` || ""}</div><div class="group-card__footer__end">${this.preview === "action" && t`<calcite-button scale=s .appearance=${p ? "solid" : "outline-fill"} kind=neutral @click=${() => {
|
|
188
188
|
this.arcgisGroupBrowserCardPreview.emit(this.group);
|
|
189
|
-
}}>${
|
|
189
|
+
}}>${p ? this.messages.hidePreview : this.messages.preview}</calcite-button>` || ""}<div @click=${(a) => {
|
|
190
190
|
a.stopPropagation();
|
|
191
191
|
}}><slot name=actions-end></slot></div></div></div></section>`;
|
|
192
192
|
}
|