@arcgis/portal-components 6.0.0-next.2 → 6.0.0-next.20
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/225AERRK.js +2 -0
- package/dist/cdn/2267AKWE.js +2 -0
- package/dist/cdn/{Z6R3C4AK.js → 2XIDYV73.js} +1 -1
- package/dist/cdn/3ZC26CT6.js +4 -0
- package/dist/cdn/4B2URSFO.js +2 -0
- package/dist/cdn/{JWBUJT43.js → 4I7NKRIH.js} +1 -1
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
- package/dist/cdn/565U4WSN.js +2 -0
- package/dist/cdn/{TWCJJCPC.js → 57MT7FOI.js} +1 -1
- package/dist/cdn/5D5INKHG.js +106 -0
- package/dist/cdn/{RHCRPJWS.js → 5SKCVK2P.js} +1 -1
- package/dist/cdn/{YYTEJVBL.js → 5VAV267L.js} +1 -1
- package/dist/cdn/67QXUNKX.js +2 -0
- package/dist/cdn/6BQUKFTK.js +2 -0
- package/dist/cdn/6T4X4RAB.js +2 -0
- package/dist/cdn/{2YZWRFCI.js → 6XAFP5OI.js} +1 -1
- package/dist/cdn/723D3EKN.js +2 -0
- package/dist/cdn/{EQDYQOOT.js → 7PBECSW5.js} +1 -1
- package/dist/cdn/7XBN6ZF4.js +2 -0
- package/dist/cdn/{ABORO35R.js → AAWXEOVL.js} +1 -1
- package/dist/cdn/{5C5GHX4D.js → AEPP4WJM.js} +1 -1
- package/dist/cdn/APLSVK3C.js +135 -0
- package/dist/cdn/{BKD7JSV2.js → AXKMKCEW.js} +1 -1
- package/dist/cdn/{7ZWYUHGK.js → AYHYABMC.js} +1 -1
- package/dist/cdn/B474WTYE.js +2 -0
- package/dist/cdn/{5HZNBMW6.js → C5FTQSU6.js} +1 -1
- package/dist/cdn/{XYMBRPC7.js → C7KQT5QW.js} +1 -1
- package/dist/cdn/CL5FABMT.js +2 -0
- package/dist/cdn/CUJG43PQ.js +2 -0
- package/dist/cdn/DELNTRCT.js +2 -0
- package/dist/cdn/E26PFYPI.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → EHHFEPC2.js} +1 -1
- package/dist/cdn/{TLM457Z5.js → EQTGOMBD.js} +1 -1
- package/dist/cdn/{DHMNNIXZ.js → EXEAVQRP.js} +1 -1
- package/dist/cdn/FLUCWAMC.js +2 -0
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/{FIQZPIIK.js → FTT33ZZJ.js} +1 -1
- package/dist/cdn/FXTPC2Q5.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → GDCXUNOL.js} +1 -1
- package/dist/cdn/GJNGP34L.js +2 -0
- package/dist/cdn/GOUAS2Q5.js +2 -0
- package/dist/cdn/{L64UURQB.js → HIPJAMO4.js} +1 -1
- package/dist/cdn/{OR6T5SB3.js → HXFKOELM.js} +1 -1
- package/dist/cdn/{7LMZHJZG.js → I3ECBIYX.js} +1 -1
- package/dist/cdn/{24QSQLRY.js → I4ZRFXQ3.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → I57CRKF7.js} +1 -1
- package/dist/cdn/IAK4F5SX.js +2 -0
- package/dist/cdn/IRCWBDGJ.js +79 -0
- package/dist/cdn/JOQEFKCE.js +2 -0
- package/dist/cdn/K3GAZFRI.js +63 -0
- package/dist/cdn/{OXPXXIWL.js → K5Q4ZROX.js} +1 -1
- package/dist/cdn/K6LF5U7K.js +2 -0
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/LVUKORME.js +2 -0
- package/dist/cdn/LY7NVMME.js +2 -0
- package/dist/cdn/MK2KDBUL.js +66 -0
- package/dist/cdn/{AXOBMX3S.js → MLTZSPZQ.js} +1 -1
- package/dist/cdn/{RQYNPDN3.js → MOE6L5RN.js} +1 -1
- package/dist/cdn/{JPUUMGX5.js → MSP6STQ7.js} +1 -1
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/MUW2YNAS.js +2 -0
- package/dist/cdn/{JIJO4CAS.js → MXUHZ474.js} +1 -1
- package/dist/cdn/NDCMZLMU.js +2 -0
- package/dist/cdn/O4YFPGD5.js +2 -0
- package/dist/cdn/O5MB4QQ2.js +2 -0
- package/dist/cdn/OQ3OHDEB.js +2 -0
- package/dist/cdn/OQE662U3.js +2 -0
- package/dist/cdn/OQUQ7Z3E.js +2 -0
- package/dist/cdn/P74FP43E.js +2 -0
- package/dist/cdn/PVPTFK7N.js +2 -0
- package/dist/cdn/PXG2SRSN.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → QJB32L7F.js} +1 -1
- package/dist/cdn/QKGHH3FS.js +2 -0
- package/dist/cdn/QSRWVCWP.js +2 -0
- package/dist/cdn/RA75BDVB.js +2 -0
- package/dist/cdn/RAWBYOFF.js +2 -0
- package/dist/cdn/{LWFACY3F.js → RLI7T32U.js} +1 -1
- package/dist/cdn/RYPYVJ5U.js +2 -0
- package/dist/cdn/SASCLFKY.js +2 -0
- package/dist/cdn/{SGDDFWCJ.js → SCRIVOPW.js} +1 -1
- package/dist/cdn/SHGPWFEC.js +2 -0
- package/dist/cdn/SQCDEL42.js +2 -0
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TKTMO2NO.js +2 -0
- package/dist/cdn/TLZO6KZO.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → TNRHHR67.js} +1 -1
- package/dist/cdn/{32BWFMTC.js → TRFH3KNJ.js} +1 -1
- package/dist/cdn/U4PHGRXB.js +2 -0
- package/dist/cdn/UD4KPMGF.js +2 -0
- package/dist/cdn/{U3KMGSVH.js → UL3XBQUT.js} +1 -1
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → ULTSLT4L.js} +1 -1
- package/dist/cdn/{NWVLGU2C.js → UYROTXZP.js} +1 -1
- package/dist/cdn/VAJV46OF.js +2 -0
- package/dist/cdn/VH2IMPMN.js +2 -0
- package/dist/cdn/VNVGVYX6.js +41 -0
- package/dist/cdn/{3EYB5GQX.js → VRGGPMVR.js} +1 -1
- package/dist/cdn/{IN4JPZTY.js → VXDDXPD7.js} +1 -1
- package/dist/cdn/VXYEF3XW.js +2 -0
- package/dist/cdn/WQWJVM5B.js +2 -0
- package/dist/cdn/XT6IKL7A.js +2 -0
- package/dist/cdn/{MLYQGIJU.js → XYT4533U.js} +13 -13
- package/dist/cdn/Y5VUMGKH.js +3 -0
- package/dist/cdn/{DLI4XKJ3.js → Y6WQZMYW.js} +1 -1
- package/dist/cdn/{74T6IXSN.js → Y72W3QFF.js} +1 -1
- package/dist/cdn/YERFI6P2.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → YTVLEHJT.js} +1 -1
- package/dist/cdn/{M5PPX4ZX.js → ZJCG6JI7.js} +1 -1
- package/dist/cdn/{JN23JH3T.js → ZJWAM6OL.js} +1 -1
- package/dist/cdn/{GAF4YT5N.js → ZS3JUQN3.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-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 +17 -17
- package/dist/chunks/itemThumbnail.js +1 -1
- 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 +25 -25
- 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 +1 -1
- package/dist/components/arcgis-portal-account-switcher/customElement.js +27 -25
- 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-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/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 +6 -2
- package/dist/components/arcgis-portal-item-card/customElement.js +91 -90
- package/dist/components/arcgis-portal-item-card/index.js +1 -1
- 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.js +10 -10
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
- package/dist/components/arcgis-portal-navigation/customElement.js +6 -7
- package/dist/components/arcgis-portal-navigation/index.js +5 -5
- 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-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 +20 -0
- package/dist/index.js +155 -6
- package/dist/loader.js +14 -12
- package/dist/services/groups.d.ts +9 -0
- package/dist/services/item.d.ts +9 -0
- package/dist/types/item.d.ts +3 -3
- package/dist/types/lumina.d.ts +28 -17
- package/dist/types/preact.d.ts +30 -17
- package/dist/types/react.d.ts +32 -17
- package/dist/types/services.d.ts +24 -1
- package/dist/types/stencil.d.ts +28 -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/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/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/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/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/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/WC3FPLYQ.js +0 -2
- package/dist/cdn/YTODQCOG.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/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,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
-
import { html as
|
|
3
|
+
import { html as c, css as M } from "lit";
|
|
4
4
|
import { LitElement as P, createEvent as T, renderElement as $ } from "@arcgis/lumina";
|
|
5
5
|
import { createRef as N, ref as D } from "lit/directives/ref.js";
|
|
6
6
|
import { Task as O } from "@lit/task";
|
|
@@ -10,8 +10,8 @@ import B from "@arcgis/core/Graphic.js";
|
|
|
10
10
|
import j from "@arcgis/core/identity/IdentityManager.js";
|
|
11
11
|
import y from "@arcgis/core/request.js";
|
|
12
12
|
import * as U from "@arcgis/core/applications/PortalApp/layerUtils.js";
|
|
13
|
-
import { i as E,
|
|
14
|
-
import {
|
|
13
|
+
import { i as E, c as z, g as q, a as R, b as J, d as W } from "../../chunks/fieldAddDelete.js";
|
|
14
|
+
import { g as A } from "../../chunks/portal.js";
|
|
15
15
|
import { u as V } from "../../chunks/useT9n.js";
|
|
16
16
|
import { log as b, composeMissingPropertyMessage as C, composeEmptyPropertyMessage as G } from "@arcgis/toolkit/log";
|
|
17
17
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -31,7 +31,7 @@ n.set("date-only", "calendar");
|
|
|
31
31
|
n.set("time-only", "clock");
|
|
32
32
|
n.set("timestamp-offset", "time-zone");
|
|
33
33
|
n.set("string", "string");
|
|
34
|
-
const H = ({ fieldType:
|
|
34
|
+
const H = ({ fieldType: w }) => c`<calcite-icon scale=s .icon=${n.get(w)}></calcite-icon>`, K = [
|
|
35
35
|
"esrignss_speed",
|
|
36
36
|
"esrignss_direction",
|
|
37
37
|
"esrisnsr_azimuth",
|
|
@@ -166,7 +166,7 @@ class X extends P {
|
|
|
166
166
|
if (this.options?.ignorePopupTemplate)
|
|
167
167
|
return this.getFieldDisplayNameFromLayerFields(e);
|
|
168
168
|
{
|
|
169
|
-
const o = (s.popupTemplate ?? s.createPopupTemplate())
|
|
169
|
+
const o = (s.popupTemplate ?? s.createPopupTemplate())?.fieldInfos?.find((a) => a.fieldName === e);
|
|
170
170
|
return o ? J(s, o, t) : this.getFieldDisplayNameFromLayerFields(e);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -196,8 +196,8 @@ class X extends P {
|
|
|
196
196
|
if (h) {
|
|
197
197
|
const i = h.data;
|
|
198
198
|
this.currentLayerInfo = h.data, i && (this.updateTypesAndTemplatesOnLayer(), s.forEach((r) => {
|
|
199
|
-
i.templates?.length ? i.templates.forEach((
|
|
200
|
-
|
|
199
|
+
i.templates?.length ? i.templates.forEach((p) => delete p.prototype.attributes[r]) : i.types?.forEach((p) => {
|
|
200
|
+
p.templates.forEach((u) => delete u.prototype.attributes[r]);
|
|
201
201
|
});
|
|
202
202
|
}), this.updateFeatureService(i));
|
|
203
203
|
} else
|
|
@@ -226,8 +226,8 @@ class X extends P {
|
|
|
226
226
|
const g = {};
|
|
227
227
|
s.fields.forEach((i) => {
|
|
228
228
|
let r = !1;
|
|
229
|
-
for (let
|
|
230
|
-
if (o.prototype.attributes[
|
|
229
|
+
for (let p = 0; p < o.prototype.attributes.length; p++)
|
|
230
|
+
if (o.prototype.attributes[p] === i.name) {
|
|
231
231
|
r = !0, g[i.name] = o.prototype.attributes[i.name];
|
|
232
232
|
break;
|
|
233
233
|
}
|
|
@@ -256,15 +256,15 @@ class X extends P {
|
|
|
256
256
|
if (g.data?.success) {
|
|
257
257
|
const h = `${A(this.portal)}content/items/${this.item.id}/data`;
|
|
258
258
|
if (this.options?.ignorePopupTemplate || t.forEach((i) => {
|
|
259
|
-
s.popupTemplate?.fieldInfos && (s.popupTemplate.fieldInfos = s.popupTemplate.fieldInfos.filter((r) => r.fieldName !== i)), s.popupTemplate?.content?.forEach((r,
|
|
260
|
-
r.type === "fields" && r.fieldInfos && ((s.popupTemplate?.content)[
|
|
259
|
+
s.popupTemplate?.fieldInfos && (s.popupTemplate.fieldInfos = s.popupTemplate.fieldInfos.filter((r) => r.fieldName !== i)), s.popupTemplate?.content?.forEach((r, p) => {
|
|
260
|
+
r.type === "fields" && r.fieldInfos && ((s.popupTemplate?.content)[p].fieldInfos = (s.popupTemplate?.content)[p].fieldInfos?.filter((u) => u.fieldName !== i));
|
|
261
261
|
});
|
|
262
262
|
}), s.attributeTableTemplate) {
|
|
263
263
|
const i = s.attributeTableTemplate.clone();
|
|
264
264
|
i.elements = i.elements.filter((r) => !(r.type === "field" && t.includes(r.fieldName))), i.orderByFields = i.orderByFields.filter((r) => !t.includes(r.field)), s.attributeTableTemplate = i;
|
|
265
265
|
}
|
|
266
266
|
if (s.fieldConfigurations?.length) {
|
|
267
|
-
const r = L.clone(s.fieldConfigurations).filter((
|
|
267
|
+
const r = L.clone(s.fieldConfigurations).filter((p) => !t.includes(p.name));
|
|
268
268
|
s.fieldConfigurations = r;
|
|
269
269
|
}
|
|
270
270
|
await y(h, {
|
|
@@ -273,9 +273,9 @@ class X extends P {
|
|
|
273
273
|
}).then(async (i) => {
|
|
274
274
|
const r = i.data;
|
|
275
275
|
if (r?.layers || r?.tables) {
|
|
276
|
-
const
|
|
276
|
+
const p = s.isTable, u = p ? r.tables : r.layers, f = u?.find((m) => m.id === s.layerId);
|
|
277
277
|
if (t.forEach((m) => {
|
|
278
|
-
|
|
278
|
+
f?.attributeTableInfo?.attributeTableElements && (f.attributeTableInfo.attributeTableElements = f.attributeTableInfo.attributeTableElements.map((d) => {
|
|
279
279
|
if (d.type === "field")
|
|
280
280
|
return d.fieldName === m ? void 0 : d;
|
|
281
281
|
if (d.type === "group" && Array.isArray(d.attributeTableElements)) {
|
|
@@ -286,15 +286,15 @@ class X extends P {
|
|
|
286
286
|
} : void 0;
|
|
287
287
|
}
|
|
288
288
|
return d;
|
|
289
|
-
}).filter(Boolean),
|
|
290
|
-
}),
|
|
289
|
+
}).filter(Boolean), f.attributeTableInfo.orderByFields = f.attributeTableInfo.orderByFields.filter((d) => d.field !== m));
|
|
290
|
+
}), f?.layerDefinition?.fieldConfigurations && (f.layerDefinition.fieldConfigurations = f.layerDefinition.fieldConfigurations.filter((m) => !t.includes(m.name))), f?.popupInfo) {
|
|
291
291
|
t.forEach((_) => {
|
|
292
|
-
|
|
293
|
-
F.type === "fields" && F.fieldInfos && (
|
|
292
|
+
f.popupInfo.fieldInfos = f.popupInfo.fieldInfos.filter((F) => F.fieldName !== _), f.popupInfo.popupElements?.forEach((F, I) => {
|
|
293
|
+
F.type === "fields" && F.fieldInfos && (f.popupInfo.popupElements[I].fieldInfos = f.popupInfo.popupElements[I].fieldInfos.filter((x) => x.fieldName !== _));
|
|
294
294
|
});
|
|
295
295
|
});
|
|
296
296
|
const m = `${A(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`, d = {};
|
|
297
|
-
|
|
297
|
+
p ? (d.tables = u, r.layers && (d.layers = r.layers)) : (d.layers = u, r.tables && (d.tables = r.tables));
|
|
298
298
|
const v = {
|
|
299
299
|
f: "json",
|
|
300
300
|
text: JSON.stringify(d)
|
|
@@ -323,44 +323,46 @@ class X extends P {
|
|
|
323
323
|
}
|
|
324
324
|
displaySuccessAlert() {
|
|
325
325
|
const { messages: e, fieldNames: s } = this;
|
|
326
|
-
this.successAlertNode && (this.successAlertNode.parentElement?.removeChild(this.successAlertNode), this.successAlertNode = void 0), this.successAlertNode = $(
|
|
326
|
+
this.successAlertNode && (this.successAlertNode.parentElement?.removeChild(this.successAlertNode), this.successAlertNode = void 0), this.successAlertNode = $(c`<calcite-alert .label=${s.length === 1 ? e.fieldDeleted : e.fieldsDeleted} kind=success icon=check-circle auto-close open><div slot=message>${s.length === 1 ? e.fieldDeleted : e.fieldsDeleted}</div></calcite-alert>`), document.body.append(this.successAlertNode);
|
|
327
327
|
}
|
|
328
328
|
displayErrorAlert() {
|
|
329
329
|
const { messages: e } = this;
|
|
330
|
-
this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = $(
|
|
330
|
+
this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = $(c`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close open><div slot=message>${e.fieldDeletionUnsuccessful}</div></calcite-alert>`), document.body.append(this.errorAlertNode);
|
|
331
331
|
}
|
|
332
332
|
displayReadOnlyErrorAlert() {
|
|
333
333
|
const { messages: e, portal: s } = this;
|
|
334
|
-
this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = $(
|
|
334
|
+
this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = $(c`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close auto-close-duration=slow open><div slot=title>${e.error}</div><div slot=message>${s.isPortal ? e.readOnlyErrorMessageEnterprise : e.readOnlyErrorMessage}</div>${!s.isPortal && c`<calcite-link slot=link target=_blank href=https://status.arcgis.com>${e.healthDashboard}</calcite-link>` || ""}</calcite-alert>`), document.body.append(this.errorAlertNode);
|
|
335
335
|
}
|
|
336
336
|
render() {
|
|
337
337
|
const { messages: e, fieldsAreDeletable: s, fieldNames: t, deleteInProgress: l } = this;
|
|
338
|
-
return this._propWatcherTask.render({
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
return c`<calcite-dialog class="dialog" width=s open modal outside-close-disabled escape-disabled @calciteDialogClose=${() => this.arcgisClose.emit()} .heading=${t?.length === 1 ? e.deleteField : e.deleteFields} ${D(this.dialogNode)}>${this._propWatcherTask.render({
|
|
339
|
+
pending: () => c`<div class="dialog-content-wrapper hide-overflow"><div class="loader-container active"><calcite-loader class="loader" .label=${e.fields}></calcite-loader></div></div>`,
|
|
340
|
+
error: () => c`<div class="dialog-content-wrapper">${this.renderError()}</div>`,
|
|
341
|
+
complete: () => (s || (t?.length ? t?.length === 1 ? b("error", this, "Field cannot be deleted") : b("error", this, "One or more fields cannot be deleted") : b("error", this, G("fieldNames"))), s ? c`<div class=${`dialog-content-wrapper ${l ? "hide-overflow" : ""}`}>${this.renderDeleteLoader()}<calcite-label>${t.length === 1 ? e.deletePrompt : e.deleteMultiplePrompt}</calcite-label>${this.renderFieldsPreview()}</div>${this.renderCancelButton()}${this.renderDeleteButton()}` : c`<div class="dialog-content-wrapper">${this.renderError()}</div>`)
|
|
342
|
+
})}</calcite-dialog>`;
|
|
341
343
|
}
|
|
342
344
|
renderError() {
|
|
343
345
|
const { messages: e } = this;
|
|
344
|
-
return
|
|
346
|
+
return c`<div class="loader-container active"><div class="loader-text">${e.errorOccurred}</div></div>`;
|
|
345
347
|
}
|
|
346
348
|
renderDeleteLoader() {
|
|
347
349
|
const { messages: e, fieldNames: s, deleteInProgress: t } = this;
|
|
348
|
-
return
|
|
350
|
+
return c`<div class=${`loader-container ${t ? "active" : ""}`}><calcite-loader class="loader" .label=${s.length === 1 ? e.deletingField : e.deletingFields} .hidden=${!t}></calcite-loader><div class="loader-text">${s.length === 1 ? e.deletingField : e.deletingFields}</div></div>`;
|
|
349
351
|
}
|
|
350
352
|
renderFieldsPreview() {
|
|
351
353
|
const { fieldNames: e, layerFields: s, layerFieldsMap: t, arcadeExpMap: l, messages: o } = this;
|
|
352
|
-
return
|
|
354
|
+
return c`<calcite-list .label=${o.fields}>${e.map((a) => {
|
|
353
355
|
const g = s.find((h) => h.name === a);
|
|
354
|
-
return
|
|
356
|
+
return c`<calcite-list-item .label=${this.getFieldLabel(a)} .description=${`{${a}}`} .value=${a} .disabled=${!g.editable}><div slot=actions-end class="field-icons">${H({ fieldType: W(a, t, l) })}</div></calcite-list-item>`;
|
|
355
357
|
})}</calcite-list>`;
|
|
356
358
|
}
|
|
357
359
|
renderCancelButton() {
|
|
358
360
|
const { messages: e } = this;
|
|
359
|
-
return
|
|
361
|
+
return c`<calcite-button @click=${() => this.dialogNode.value.open = !1} slot=footer-end appearance=outline ${D(this.cancelNode)}>${e.cancel}</calcite-button>`;
|
|
360
362
|
}
|
|
361
363
|
renderDeleteButton() {
|
|
362
364
|
const { messages: e, fieldNames: s } = this;
|
|
363
|
-
return
|
|
365
|
+
return c`<calcite-button kind=danger slot=footer-end @click=${async (t) => {
|
|
364
366
|
const { portal: l } = this;
|
|
365
367
|
t.currentTarget.disabled = !0, this.cancelNode.value.disabled = !0, this.dialogNode.value.closeDisabled = !0, l.sourceJSON?.isReadOnly ? this.handleError(!0) : (this.deleteInProgress = !0, this.requestUpdate(), this.arcgisBeforeDelete.emit(), await this.deleteFields());
|
|
366
368
|
}}>${s.length === 1 ? e.deleteField : e.deleteFieldsWithNumber.replace("${number}", `${s.length}`)}</calcite-button>`;
|
|
@@ -2,8 +2,8 @@ import "@esri/calcite-components/components/calcite-icon";
|
|
|
2
2
|
import "@esri/calcite-components/components/calcite-alert";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-link";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-dialog";
|
|
5
|
-
import "@esri/calcite-components/components/calcite-label";
|
|
6
5
|
import "@esri/calcite-components/components/calcite-loader";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-label";
|
|
7
7
|
import "@esri/calcite-components/components/calcite-list";
|
|
8
8
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
9
9
|
import "@esri/calcite-components/components/calcite-button";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { nothing as
|
|
2
|
+
import { c as g } from "../../chunks/runtime.js";
|
|
3
|
+
import { nothing as h, safeClassMap as m, LitElement as u } from "@arcgis/lumina";
|
|
4
4
|
import { u as b } from "../../chunks/useT9n.js";
|
|
5
5
|
import { html as c, css as f } from "lit";
|
|
6
6
|
import { i as w } from "../../chunks/functionalities.js";
|
|
7
|
-
import {
|
|
7
|
+
import { g as $, a as x, b as G, i as y, c as I, d as O } from "../../chunks/groups.js";
|
|
8
8
|
const C = ({ appearance: a, badgeType: t, class: e, messages: s, scale: o, showTooltip: i, width: n }) => {
|
|
9
9
|
const r = s[t] ?? { title: t, tooltip: "" }, d = v[t], l = n === "narrow", p = `portal-group-badge-${t}`;
|
|
10
|
-
return c`<calcite-chip id=${p ??
|
|
10
|
+
return c`<calcite-chip id=${p ?? h} class=${m({
|
|
11
11
|
badge: !0,
|
|
12
12
|
"badge--colored": w(["OpenData", "Partnered"], t),
|
|
13
13
|
narrow: l,
|
|
@@ -45,7 +45,7 @@ class _ extends u {
|
|
|
45
45
|
return e.map((n) => C({ appearance: t, badgeType: n, class: "portal-group-badges__badge", messages: this._messages, scale: s, showTooltip: o, width: i }));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
g("arcgis-portal-group-badges", _);
|
|
49
49
|
export {
|
|
50
50
|
_ as ArcgisPortalGroupBadges
|
|
51
51
|
};
|