@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,18 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import d from "@arcgis/core/core/Accessor.js";
|
|
3
3
|
import { property as n, subclass as p } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return a && r && w(t, s, r), r;
|
|
4
|
+
import { a as m, v as u } from "./requests.js";
|
|
5
|
+
import { makeAccessorController as h } from "@arcgis/lumina-toolkit/useAccessor";
|
|
6
|
+
import { Task as C } from "@lit/task";
|
|
7
|
+
var v = Object.defineProperty, w = Object.getOwnPropertyDescriptor, e = (i, a, s, t) => {
|
|
8
|
+
for (var r = t > 1 ? void 0 : t ? w(a, s) : a, l = i.length - 1, c; l >= 0; l--)
|
|
9
|
+
(c = i[l]) && (r = (t ? c(a, s, r) : c(r)) || r);
|
|
10
|
+
return t && r && v(a, s, r), r;
|
|
12
11
|
};
|
|
13
12
|
let o = class extends d {
|
|
14
13
|
constructor() {
|
|
15
|
-
super(...arguments), this.fetching = !1, this.status = "idle", this.error = void 0, this.portalUrl = void 0, this._itemClassificationValidationErrors = /* @__PURE__ */ new Map(), this.fetchingPromise =
|
|
14
|
+
super(...arguments), this.fetching = !1, this.status = "idle", this.error = void 0, this.portalUrl = void 0, this._itemClassificationValidationErrors = /* @__PURE__ */ new Map(), this.fetchingPromise = Promise.withResolvers();
|
|
16
15
|
}
|
|
17
16
|
// #endregion
|
|
18
17
|
// #region Accessors
|
|
@@ -29,9 +28,9 @@ let o = class extends d {
|
|
|
29
28
|
*/
|
|
30
29
|
setPortalClassificationData({
|
|
31
30
|
portalUrl: i,
|
|
32
|
-
schema:
|
|
31
|
+
schema: a
|
|
33
32
|
}) {
|
|
34
|
-
this.portalUrl = i, this.portalClassificationSchema =
|
|
33
|
+
this.portalUrl = i, this.portalClassificationSchema = a, this.status = "loaded", this.fetchingPromise.resolve(!0);
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
37
36
|
* Sets the fetching state.
|
|
@@ -42,23 +41,23 @@ let o = class extends d {
|
|
|
42
41
|
/**
|
|
43
42
|
* Loads and sets the classification schema from the portal.
|
|
44
43
|
*/
|
|
45
|
-
async loadPortalClassificationData(i, { signal:
|
|
44
|
+
async loadPortalClassificationData(i, { signal: a }) {
|
|
46
45
|
this.status = "loading";
|
|
47
|
-
const { result: s, error:
|
|
48
|
-
if (
|
|
49
|
-
|
|
46
|
+
const { result: s, error: t } = await m(i, a);
|
|
47
|
+
if (t) {
|
|
48
|
+
t.name === "AbortError" ? console.log("Request aborted.") : (this.error = t, this.status = "error", this.fetchingPromise.reject(t));
|
|
50
49
|
return;
|
|
51
50
|
} else
|
|
52
51
|
this.setPortalClassificationData({ schema: s, portalUrl: i });
|
|
53
52
|
}
|
|
54
|
-
async validateClassification(i,
|
|
55
|
-
if (!
|
|
53
|
+
async validateClassification(i, a, s, t) {
|
|
54
|
+
if (!a)
|
|
56
55
|
return "";
|
|
57
56
|
const r = i ? this._itemClassificationValidationErrors.get(i) : void 0;
|
|
58
57
|
if (r)
|
|
59
58
|
return await r;
|
|
60
59
|
const l = (async () => {
|
|
61
|
-
const { error: c } = await u(s,
|
|
60
|
+
const { error: c } = await u(s, a, t ?? {});
|
|
62
61
|
return c ? c?.details.raw.messages.join(", ") : "";
|
|
63
62
|
})();
|
|
64
63
|
return i && this._itemClassificationValidationErrors.set(i, l), i ? await this._itemClassificationValidationErrors.get(i) : await l;
|
|
@@ -87,27 +86,27 @@ o = e([
|
|
|
87
86
|
p("custom.ClassificationModel")
|
|
88
87
|
], o);
|
|
89
88
|
let f;
|
|
90
|
-
function
|
|
89
|
+
function g(i) {
|
|
91
90
|
return f ??= new o(i), f;
|
|
92
91
|
}
|
|
93
|
-
const
|
|
94
|
-
task: async ([
|
|
95
|
-
if (!
|
|
92
|
+
const b = h(g), U = (i) => new C(i, {
|
|
93
|
+
task: async ([a], { signal: s }) => {
|
|
94
|
+
if (!a)
|
|
96
95
|
throw new Error("Portal item is required to load classification data");
|
|
97
|
-
if (
|
|
96
|
+
if (a.loaded || await a.load({ signal: s }), i.itemClassification = a.classification, i.classificationModel.status === "loading" && await i.classificationModel.fetchingPromise.promise, !i.portalItem?.portal.hasClassificationSchema) {
|
|
98
97
|
i.classificationModel.setPortalClassificationData({
|
|
99
|
-
portalUrl:
|
|
98
|
+
portalUrl: a.portal.restUrl,
|
|
100
99
|
schema: void 0
|
|
101
100
|
});
|
|
102
101
|
return;
|
|
103
102
|
}
|
|
104
103
|
// Only fetch if the data has not been fetched
|
|
105
104
|
(i.classificationModel.status === "idle" || // or if the portal url changes
|
|
106
|
-
i.classificationModel.status === "loaded" && i.classificationModel.portalUrl !==
|
|
105
|
+
i.classificationModel.status === "loaded" && i.classificationModel.portalUrl !== a.portal.restUrl) && await i.classificationModel.loadPortalClassificationData(a.portal.restUrl, { signal: s });
|
|
107
106
|
},
|
|
108
107
|
args: () => [i.portalItem]
|
|
109
108
|
});
|
|
110
109
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
U as c,
|
|
111
|
+
b as u
|
|
113
112
|
};
|
|
@@ -5,7 +5,7 @@ import { LitElement as h } from "@arcgis/lumina";
|
|
|
5
5
|
import { u as p } from "./useT9n.js";
|
|
6
6
|
import { s as u } from "./portal-related-items-list-item.js";
|
|
7
7
|
import { RelatedItemsListItem as g } from "../components/portal-related-items-list-item/customElement.js";
|
|
8
|
-
import {
|
|
8
|
+
import { g as f } from "./url.js";
|
|
9
9
|
import { substitute as d } from "@arcgis/core/intl.js";
|
|
10
10
|
const w = c`:host{display:block}calcite-notice{margin-top:.75rem}calcite-list{margin-block:.75rem}`;
|
|
11
11
|
function k(n, s, t, e) {
|
|
@@ -9,7 +9,7 @@ import { a as x, b as u, i as $, c as E, d as f, g as b, e as K, f as L, h as O
|
|
|
9
9
|
import { i as _ } from "./users.js";
|
|
10
10
|
import { g as U } from "./user2.js";
|
|
11
11
|
import { f as H } from "./verified.js";
|
|
12
|
-
import {
|
|
12
|
+
import { i as w, a as m } from "./info.js";
|
|
13
13
|
const q = C`.badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #dfeffa);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #00619b);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #00619b);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #dfeffa);border:0}.badge--colored{--calcite-chip-icon-color: var(--calcite-color-brand)}.authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #e4f0e4);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #1a6324);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #1a6324);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #e4f0e4)}.deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #fadfdc);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #a82b1e);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #a82b1e);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #fadfdc)}.beta{border:0}.narrow{box-sizing:border-box;width:2rem;--calcite-chip-spacing-unit-l: 0}.narrow--s{width:1.5rem}.narrow--l{width:2.75rem}.tooltip-title{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);margin:0 0 .25rem;padding:0}.tooltip-text{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-1);margin:0;padding:0}:host-context(.calcite-mode-dark) .badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #214155);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #9fd4f3);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #9fd4f3);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #214155)}:host-context(.calcite-mode-dark) .authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #2b472a);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #a2e4ab);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #a2e4ab);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #2b472a)}:host-context(.calcite-mode-dark) .deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #5e241e);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #5e241e)}`, G = [
|
|
14
14
|
"Operations Dashboard Add In",
|
|
15
15
|
"Operations Dashboard Extension",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { css as e } from "lit";
|
|
3
|
-
const i = e`.item{display:block;color:var(--calcite-color-text-1)}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item__content-end{display:flex;align-items:center;gap:.5rem}.item__access{display:flex;align-items:center;color:var(--calcite-color-text-2);
|
|
3
|
+
const i = e`.item{display:block;color:var(--calcite-color-text-1)}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item__content-end{display:flex;align-items:center;gap:.5rem}.item__status-icon{color:var(--calcite-color-text-2)}.item__access{display:flex;align-items:center;gap:var(--calcite-spacing-unit);color:var(--calcite-color-text-2);padding:7px;border:1px solid var(--calcite-color-border-1);border-radius:1rem}`;
|
|
4
4
|
export {
|
|
5
5
|
i as s
|
|
6
6
|
};
|
package/dist/chunks/portal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { i } from "./functionalities.js";
|
|
3
|
-
import { a,
|
|
3
|
+
import { a, b as c } from "./url.js";
|
|
4
4
|
function y(e) {
|
|
5
5
|
return a(e.restUrl);
|
|
6
6
|
}
|
|
@@ -86,13 +86,13 @@ function k(e) {
|
|
|
86
86
|
return e?.isPortal ? t.supportsHostedNotebooks : !(i(["Trial Developer", "Trial", "Trial Press"], t.subscriptionInfo?.type) || t.subscriptionInfo?.options?.includes("Developer"));
|
|
87
87
|
}
|
|
88
88
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
P as a,
|
|
90
|
+
S as b,
|
|
91
91
|
s as c,
|
|
92
92
|
H as d,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
u as e,
|
|
94
|
+
m as f,
|
|
95
|
+
y as g,
|
|
96
96
|
w as h,
|
|
97
97
|
T as i,
|
|
98
98
|
k as n
|
package/dist/chunks/portal2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import o from "@arcgis/core/request.js";
|
|
3
3
|
import { f as n, r as i } from "./request.js";
|
|
4
|
-
import { a } from "./portal.js";
|
|
5
|
-
import {
|
|
4
|
+
import { g as a } from "./portal.js";
|
|
5
|
+
import { c as r } from "./requests.js";
|
|
6
6
|
async function p(e) {
|
|
7
7
|
const s = `${e.restUrl}/portals/${e.id}/approvedApps`;
|
|
8
8
|
return await r(s, { query: { returnAllApps: !1 } });
|
|
@@ -26,14 +26,14 @@ async function u(e) {
|
|
|
26
26
|
async function w(e) {
|
|
27
27
|
return e?.user ? (await u(e))?.blockedApps || [] : [];
|
|
28
28
|
}
|
|
29
|
-
async function
|
|
29
|
+
async function $(e) {
|
|
30
30
|
return (await n({
|
|
31
31
|
requester: async () => await o(`${a(e)}portals/self/userDefaultSettings`, { query: { f: "json" } }),
|
|
32
32
|
key: "memberDefaults",
|
|
33
33
|
id: e.id
|
|
34
34
|
})).data;
|
|
35
35
|
}
|
|
36
|
-
async function
|
|
36
|
+
async function S(e) {
|
|
37
37
|
try {
|
|
38
38
|
return { result: await n({
|
|
39
39
|
requester: async () => await i({
|
|
@@ -49,11 +49,11 @@ async function $(e) {
|
|
|
49
49
|
}
|
|
50
50
|
export {
|
|
51
51
|
$ as a,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
p as b,
|
|
53
|
+
m as c,
|
|
54
|
+
u as d,
|
|
55
|
+
d as e,
|
|
56
|
+
y as f,
|
|
57
|
+
S as g,
|
|
58
|
+
w as h
|
|
59
59
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import t from "zod";
|
|
3
|
+
const l = ["item", "group", "user"], u = t.object({
|
|
4
|
+
entityType: t.enum(l),
|
|
5
|
+
searchTerm: t.string().trim().min(1).optional().describe("Suggested search text from the unresolved name or title. Omit when no search text is known.")
|
|
6
|
+
}), m = u.extend({
|
|
7
|
+
kind: t.literal("portal-entity-selection"),
|
|
8
|
+
portalContext: t.object({
|
|
9
|
+
portalUrl: t.string().min(1),
|
|
10
|
+
username: t.string().min(1)
|
|
11
|
+
}).optional()
|
|
12
|
+
}), s = t.string().trim().min(1), a = t.string().trim().min(1), c = t.discriminatedUnion("entityType", [
|
|
13
|
+
t.object({ entityType: t.literal("item"), id: a, label: s }),
|
|
14
|
+
t.object({ entityType: t.literal("group"), id: a, label: s }),
|
|
15
|
+
t.object({
|
|
16
|
+
entityType: t.literal("user"),
|
|
17
|
+
id: a.optional(),
|
|
18
|
+
label: s,
|
|
19
|
+
username: t.string().trim().min(1)
|
|
20
|
+
})
|
|
21
|
+
]);
|
|
22
|
+
function d(n) {
|
|
23
|
+
return l.filter((e) => n?.[e] !== !1);
|
|
24
|
+
}
|
|
25
|
+
function p(n) {
|
|
26
|
+
const e = m.safeParse(n);
|
|
27
|
+
return e.success ? e.data : void 0;
|
|
28
|
+
}
|
|
29
|
+
function f(n) {
|
|
30
|
+
const { entity: e, entityType: i } = n, r = i === "user" ? {
|
|
31
|
+
entityType: i,
|
|
32
|
+
id: e.id || void 0,
|
|
33
|
+
label: e.fullName || e.username,
|
|
34
|
+
username: e.username
|
|
35
|
+
} : { entityType: i, id: e.id, label: e.title || e.id }, o = c.safeParse(r);
|
|
36
|
+
return o.success ? o.data : void 0;
|
|
37
|
+
}
|
|
38
|
+
function b(n, e) {
|
|
39
|
+
if (typeof n == "string")
|
|
40
|
+
try {
|
|
41
|
+
const i = JSON.parse(n), r = c.safeParse(i);
|
|
42
|
+
return r.success && r.data.entityType === e ? r.data : void 0;
|
|
43
|
+
} catch {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
d as a,
|
|
49
|
+
c as b,
|
|
50
|
+
p as g,
|
|
51
|
+
u as p,
|
|
52
|
+
b as r,
|
|
53
|
+
f as t
|
|
54
|
+
};
|
package/dist/chunks/query.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { a as p } from "./functionalities.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { e as y } from "./groups.js";
|
|
4
|
+
import { b as l } from "./url.js";
|
|
5
|
+
import { g as O, a as g } from "./portal2.js";
|
|
6
6
|
import { c as R, h as d, d as m } from "./portal.js";
|
|
7
7
|
const f = '-typekeywords:("MapAreaPackage") -type:("Map Area" OR "Indoors Map Configuration" OR "Code Attachment")';
|
|
8
8
|
async function b(e) {
|
|
@@ -30,7 +30,7 @@ async function b(e) {
|
|
|
30
30
|
r = n(c, r);
|
|
31
31
|
});
|
|
32
32
|
} else u && s.push(u);
|
|
33
|
-
s.forEach((a) => {
|
|
33
|
+
if (s.forEach((a) => {
|
|
34
34
|
r = n(a, r);
|
|
35
35
|
}), e.featuredGroups?.forEach((a) => {
|
|
36
36
|
if ("id" in a && a.id) {
|
|
@@ -40,15 +40,15 @@ async function b(e) {
|
|
|
40
40
|
const i = `(${Object.entries(a).map((c) => `${c[0]}:"${c[1]}"`).join(" ")})`;
|
|
41
41
|
r = n(i, r, !0);
|
|
42
42
|
}
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
}), e.user)
|
|
44
|
+
try {
|
|
45
|
+
(await g(e))?.groups?.forEach((o) => {
|
|
46
|
+
const i = `id:${o}`;
|
|
47
|
+
r = n(i, r);
|
|
48
|
+
});
|
|
49
|
+
} catch (a) {
|
|
50
|
+
console.warn("Error fetching member defaults:", a);
|
|
51
|
+
}
|
|
52
52
|
return r.length > 0 ? `(${r.join(" OR ")})` : "";
|
|
53
53
|
}
|
|
54
54
|
function n(e, t, r) {
|
package/dist/chunks/request.js
CHANGED
|
@@ -1,65 +1,71 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import
|
|
2
|
+
import q from "@arcgis/core/identity/IdentityManager.js";
|
|
3
3
|
import w from "@arcgis/core/request.js";
|
|
4
|
-
import { i as
|
|
5
|
-
const
|
|
6
|
-
async function A({ requester: t, key: e, id: n, cacheOption:
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
const { expireAfter: d, getExpireAfterFromResult:
|
|
14
|
-
|
|
4
|
+
import { i as R, b, g } from "./portal.js";
|
|
5
|
+
const o = {}, a = {}, s = {};
|
|
6
|
+
async function A({ requester: t, key: e, id: n, cacheOption: r }) {
|
|
7
|
+
const i = s[e]?.[n]?.expireAt, c = !!i && (/* @__PURE__ */ new Date()).getTime() > i;
|
|
8
|
+
if (o[e]?.[n] && !c)
|
|
9
|
+
return o[e][n];
|
|
10
|
+
a[e] || (a[e] = {}), (!a[e][n] || c) && (a[e][n] = t());
|
|
11
|
+
const u = await a[e][n];
|
|
12
|
+
if (o[e] || (o[e] = {}), s[e] || (s[e] = {}), o[e][n] = u, r) {
|
|
13
|
+
const { expireAfter: d, getExpireAfterFromResult: f } = r, h = f || d ? (/* @__PURE__ */ new Date()).getTime() + (f?.(u) ?? d ?? 0) : null;
|
|
14
|
+
s[e][n] = { ...s[e][n], expireAt: h };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return u;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
function W(t, e) {
|
|
19
|
+
return o[t]?.[e];
|
|
20
|
+
}
|
|
21
|
+
function X(t, e) {
|
|
22
|
+
e ? (delete o[t]?.[e], delete a[t]?.[e], delete s[t]?.[e]) : (Reflect.deleteProperty(o, t), Reflect.deleteProperty(a, t), Reflect.deleteProperty(s, t));
|
|
23
|
+
}
|
|
24
|
+
async function j({
|
|
19
25
|
url: t,
|
|
20
26
|
portal: e,
|
|
21
27
|
params: n = {},
|
|
22
|
-
options:
|
|
23
|
-
method:
|
|
24
|
-
abortControllerId:
|
|
25
|
-
excludeJson:
|
|
28
|
+
options: r = {},
|
|
29
|
+
method: i,
|
|
30
|
+
abortControllerId: c,
|
|
31
|
+
excludeJson: u
|
|
26
32
|
}) {
|
|
27
|
-
const d =
|
|
28
|
-
if (!t.includes("f=") && !
|
|
29
|
-
|
|
30
|
-
else if (
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
+
const d = E(c)?.signal, { customToken: f, addTokenManually: h, addSSL: x, useProxy: C } = r, p = { ...n };
|
|
34
|
+
if (!t.includes("f=") && !u && (p.f = "json"), f)
|
|
35
|
+
p.token = f;
|
|
36
|
+
else if (h !== !1) {
|
|
37
|
+
const m = await M(e);
|
|
38
|
+
m && (p.token = m);
|
|
33
39
|
}
|
|
34
|
-
const
|
|
35
|
-
query:
|
|
36
|
-
method:
|
|
37
|
-
...
|
|
38
|
-
timeout:
|
|
39
|
-
useProxy:
|
|
40
|
-
...
|
|
41
|
-
},
|
|
42
|
-
return
|
|
40
|
+
const P = x ? U(t, e) : t, S = {
|
|
41
|
+
query: p,
|
|
42
|
+
method: i || "auto",
|
|
43
|
+
...r,
|
|
44
|
+
timeout: r.timeout || 0,
|
|
45
|
+
useProxy: C,
|
|
46
|
+
...r?.disableIdentityLookup ? { authMode: "anonymous" } : {}
|
|
47
|
+
}, T = await w(P, { signal: d, ...S });
|
|
48
|
+
return c && (l[c] = void 0), T.data;
|
|
43
49
|
}
|
|
44
50
|
const l = {};
|
|
45
|
-
function
|
|
51
|
+
function E(t) {
|
|
46
52
|
if (t)
|
|
47
53
|
return l[t] && l[t].abort(), l[t] = new AbortController(), l[t];
|
|
48
54
|
}
|
|
49
55
|
async function M(t) {
|
|
50
|
-
const e =
|
|
56
|
+
const e = R(t);
|
|
51
57
|
if (!t?.isPortal || !e)
|
|
52
|
-
return
|
|
58
|
+
return b(t);
|
|
53
59
|
const n = t?.user;
|
|
54
60
|
if (!n && e)
|
|
55
61
|
return;
|
|
56
|
-
const { token:
|
|
62
|
+
const { token: r } = await A({
|
|
57
63
|
requester: async () => await L(t),
|
|
58
64
|
key: "platformSelf",
|
|
59
65
|
id: n?.id ?? t.id ?? "<unknown>",
|
|
60
|
-
cacheOption: { getExpireAfterFromResult: (
|
|
66
|
+
cacheOption: { getExpireAfterFromResult: (i) => i.expires_in }
|
|
61
67
|
});
|
|
62
|
-
return
|
|
68
|
+
return r;
|
|
63
69
|
}
|
|
64
70
|
const L = async (t) => {
|
|
65
71
|
const n = {
|
|
@@ -73,7 +79,7 @@ const L = async (t) => {
|
|
|
73
79
|
method: "post"
|
|
74
80
|
})).data;
|
|
75
81
|
}, v = async (t) => (await A({
|
|
76
|
-
requester: async () => await
|
|
82
|
+
requester: async () => await q.getCredential(g(t), { oAuthPopupConfirmation: !1 }),
|
|
77
83
|
key: "credential",
|
|
78
84
|
id: t.user?.id ?? "<unknown>"
|
|
79
85
|
})).oAuthState?.appId ?? "arcgisonline";
|
|
@@ -81,7 +87,9 @@ function U(t, e) {
|
|
|
81
87
|
return window.location.protocol === "https:" || e.allSSL ? t.replace("http:", "https:") : t;
|
|
82
88
|
}
|
|
83
89
|
export {
|
|
90
|
+
X as c,
|
|
84
91
|
A as f,
|
|
85
92
|
M as g,
|
|
86
|
-
|
|
93
|
+
W as i,
|
|
94
|
+
j as r
|
|
87
95
|
};
|
package/dist/chunks/requests.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import o from "@arcgis/core/request.js";
|
|
3
3
|
import { once as h } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
-
async function
|
|
4
|
+
async function j(r, s) {
|
|
5
5
|
const t = `${r}/portals/self/classification/classificationSchema`, c = {};
|
|
6
6
|
try {
|
|
7
7
|
const e = (await o(t, { query: { f: "json" }, signal: s })).data;
|
|
@@ -14,7 +14,7 @@ async function g(r, s) {
|
|
|
14
14
|
}
|
|
15
15
|
return c;
|
|
16
16
|
}
|
|
17
|
-
async function
|
|
17
|
+
async function R(r, s, t) {
|
|
18
18
|
const c = `${r}/portals/self/classification/validateClassification`, a = { classificationValue: JSON.stringify(s), f: "json" }, e = {};
|
|
19
19
|
try {
|
|
20
20
|
const n = await o(c, { query: a, method: "post", signal: t.signal });
|
|
@@ -107,11 +107,11 @@ async function U(r, s, t = "results", c = !1) {
|
|
|
107
107
|
}), e;
|
|
108
108
|
}
|
|
109
109
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
j as a,
|
|
111
|
+
C as b,
|
|
112
|
+
y as c,
|
|
113
113
|
U as f,
|
|
114
|
-
|
|
114
|
+
x as r,
|
|
115
115
|
$ as u,
|
|
116
|
-
|
|
116
|
+
R as v
|
|
117
117
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
const c = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function r(t, e) {
|
|
4
|
+
c.set(t, [...c.get(t) ?? [], e]);
|
|
5
|
+
}
|
|
6
|
+
function a(t, e) {
|
|
7
|
+
const o = c.get(t) ?? [];
|
|
8
|
+
return o.filter(({ text: n }) => {
|
|
9
|
+
const s = e.indexOf(n), i = s + n.length;
|
|
10
|
+
return (
|
|
11
|
+
// The selected text must still appear exactly once in the submitted message.
|
|
12
|
+
s !== -1 && !e.includes(n, s + 1) && // Different selections with the same text cannot be resolved to a single ID.
|
|
13
|
+
o.filter((d) => d.text === n).length === 1 && // Require a whole mention, not a substring inside another token.
|
|
14
|
+
(s === 0 || /\s/u.test(e[s - 1])) && (i === e.length || /\s/u.test(e[i]))
|
|
15
|
+
);
|
|
16
|
+
}).map(({ part: n }) => n);
|
|
17
|
+
}
|
|
18
|
+
function g(t) {
|
|
19
|
+
c.delete(t);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
r as a,
|
|
23
|
+
g as c,
|
|
24
|
+
a as g
|
|
25
|
+
};
|
package/dist/chunks/services.js
CHANGED
package/dist/chunks/string.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { s as a } from "./dom.js";
|
|
3
|
-
function
|
|
3
|
+
function i(e) {
|
|
4
4
|
const r = /(https?:\/\/[^\s]+)/gu;
|
|
5
5
|
return e?.replace(r, (t) => `<a href="${t}" target="_blank">${t}</a>`);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function c(e) {
|
|
8
8
|
return e?.replace(/(?:\r)/gu, " ").replace(/(?:\n)/gu, " ");
|
|
9
9
|
}
|
|
10
10
|
function s(e) {
|
|
@@ -22,21 +22,25 @@ function u(e = "") {
|
|
|
22
22
|
const r = a(e);
|
|
23
23
|
return ["id:", "title:", "type:", "typekeywords:", "owner:"].some((n) => e.includes(n)) ? r.replace(/[<>\/\\?]/gu, "\\$&").trim() : r.replace(/[\[\]\{\}\(\)\-+:<>\/\\?]/gu, "\\$&").trim();
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function m(e) {
|
|
26
26
|
const r = u(e.replace(/\s+/gu, " "));
|
|
27
27
|
if (r)
|
|
28
28
|
return `title:"${r.replace(/"/gu, '\\"')}"`;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
30
|
+
function g(...e) {
|
|
31
|
+
return e.map((r) => r?.trim()).filter((r) => !!r).map((r) => `(${r})`).join(" AND ");
|
|
32
32
|
}
|
|
33
33
|
function f(e) {
|
|
34
|
+
return o(c(i(s(e))));
|
|
35
|
+
}
|
|
36
|
+
function T(e) {
|
|
34
37
|
return e?.endsWith("/") ? e.slice(0, e.length - 1) : e;
|
|
35
38
|
}
|
|
36
39
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
f as
|
|
40
|
+
g as a,
|
|
41
|
+
u as b,
|
|
42
|
+
m as c,
|
|
43
|
+
T as d,
|
|
44
|
+
f as g,
|
|
45
|
+
d as r
|
|
42
46
|
};
|
package/dist/chunks/ui.js
CHANGED
package/dist/chunks/url.js
CHANGED
package/dist/chunks/user.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { f, r as a } from "./request.js";
|
|
3
|
-
import {
|
|
4
|
-
import { f as c,
|
|
3
|
+
import { g as u, b as y } from "./portal.js";
|
|
4
|
+
import { f as c, b as l, c as d } from "./requests.js";
|
|
5
5
|
async function U(s, r, e) {
|
|
6
6
|
const t = `${e ? "https://www.arcgis.com/sharing/rest/" : u(r)}community/users/${s}`, o = t?.includes("www.arcgis.com") && r.isPortal, m = t?.includes(".arcgis.com") && !r.isPortal && !r.user, p = o || m ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
|
7
7
|
return await f({
|
|
@@ -51,7 +51,7 @@ async function q(s, r) {
|
|
|
51
51
|
"provisionedListings"
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
|
-
async function
|
|
54
|
+
async function b(s, r) {
|
|
55
55
|
const e = `${i(s, r)}/linkedUsers`;
|
|
56
56
|
try {
|
|
57
57
|
return await c(e, { num: 10 }, "linkedUsers");
|
|
@@ -59,7 +59,7 @@ async function L(s, r) {
|
|
|
59
59
|
return console.error("Error fetching linked accounts:", n), [];
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
async function
|
|
62
|
+
async function L(s, r, e) {
|
|
63
63
|
try {
|
|
64
64
|
return await c(
|
|
65
65
|
`https://${s.portalHostname}/sharing/rest/community/users/${r}/linkedUsers`,
|
|
@@ -70,7 +70,7 @@ async function v(s, r, e) {
|
|
|
70
70
|
return console.error(n), [];
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
async function
|
|
73
|
+
async function v({
|
|
74
74
|
portal: s,
|
|
75
75
|
user: r,
|
|
76
76
|
targetUser: e,
|
|
@@ -82,7 +82,7 @@ async function O({
|
|
|
82
82
|
});
|
|
83
83
|
return o.error && console.error(o.error), o;
|
|
84
84
|
}
|
|
85
|
-
async function
|
|
85
|
+
async function O({
|
|
86
86
|
portal: s,
|
|
87
87
|
user: r,
|
|
88
88
|
linkedUsername: e
|
|
@@ -91,13 +91,13 @@ async function R({
|
|
|
91
91
|
return t.error && console.error(t.error), t;
|
|
92
92
|
}
|
|
93
93
|
export {
|
|
94
|
-
|
|
94
|
+
b as a,
|
|
95
95
|
$ as b,
|
|
96
96
|
P as c,
|
|
97
97
|
q as d,
|
|
98
98
|
A as e,
|
|
99
99
|
U as f,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
L as g,
|
|
101
|
+
v as l,
|
|
102
|
+
O as u
|
|
103
103
|
};
|