@arcgis/portal-components 5.2.0-next.147 → 5.2.0-next.149
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/{ZAIRH5DL.js → 24PB4CMZ.js} +1 -1
- package/dist/cdn/{R3QN5WF2.js → 2QH66WX5.js} +1 -1
- package/dist/cdn/{4ZTWQN6Q.js → 33J7647P.js} +1 -1
- package/dist/cdn/{AE574B3G.js → 3D3X4POQ.js} +1 -1
- package/dist/cdn/{C5VUNN4M.js → 3SRD2O7D.js} +1 -1
- package/dist/cdn/{Y3YIMI2Z.js → 3WHDCXCM.js} +2 -2
- package/dist/cdn/{3R4PPD5N.js → 4NM7IXBT.js} +1 -1
- package/dist/cdn/{QSAZVVVL.js → 5GTO7PTH.js} +1 -1
- package/dist/cdn/{5FOWUL6I.js → 7EOHRU5A.js} +1 -1
- package/dist/cdn/{QUOPWSRC.js → 7G7MPSXD.js} +1 -1
- package/dist/cdn/7GHMHFBI.js +2 -0
- package/dist/cdn/{D6QHNXEH.js → A3MNR4AI.js} +1 -1
- package/dist/cdn/{LRHPL6B5.js → AOZUSTFQ.js} +1 -1
- package/dist/cdn/{DKIYHE4A.js → APVJI5AQ.js} +1 -1
- package/dist/cdn/{MCX22B23.js → AQBDDI5G.js} +1 -1
- package/dist/cdn/AYO4VV3K.js +2 -0
- package/dist/cdn/{LP4IB3PV.js → BLCHSMT7.js} +1 -1
- package/dist/cdn/{UQKT5JQZ.js → BQZ34JPU.js} +1 -1
- package/dist/cdn/{UKHCSMA4.js → BYWI4K4N.js} +1 -1
- package/dist/cdn/{WDMNL6PJ.js → D6SIWTME.js} +1 -1
- package/dist/cdn/EEGDBRHR.js +2 -0
- package/dist/cdn/{NXFE6R2N.js → EL6F7I65.js} +1 -1
- package/dist/cdn/{ZSILF72K.js → F575CWKZ.js} +1 -1
- package/dist/cdn/{6EY5GHKE.js → FAOIT32R.js} +1 -1
- package/dist/cdn/{M6BRGNH3.js → FORXD2BX.js} +1 -1
- package/dist/cdn/{2A4BYZOS.js → GQ72VSNC.js} +1 -1
- package/dist/cdn/{DF5GVVDW.js → HJE457T5.js} +1 -1
- package/dist/cdn/{MY7AYBBR.js → IFN5ZRZD.js} +1 -1
- package/dist/cdn/{G6WPLOLV.js → JDIMTYM2.js} +1 -1
- package/dist/cdn/JDUO5LCR.js +2 -0
- package/dist/cdn/JITIK4H7.js +2 -0
- package/dist/cdn/{AXNTYD46.js → JME5I4VO.js} +1 -1
- package/dist/cdn/{QKK6N2AN.js → K6PWSEML.js} +1 -1
- package/dist/cdn/LCQW3IG6.js +2 -0
- package/dist/cdn/MC3LJZSI.js +2 -0
- package/dist/cdn/{5FDUO7J4.js → MFJVE4UZ.js} +1 -1
- package/dist/cdn/{E3FQ4QWE.js → MSO7PIO4.js} +1 -1
- package/dist/cdn/{R57DISOR.js → NUEXG7VJ.js} +1 -1
- package/dist/cdn/NUQ72OYU.js +2 -0
- package/dist/cdn/{B4YHTYJB.js → OV4DNSQV.js} +1 -1
- package/dist/cdn/{47PU5HDG.js → PJGJZYBY.js} +1 -1
- package/dist/cdn/PRIG3TBV.js +2 -0
- package/dist/cdn/{ADSPENPN.js → Q6BRXAQD.js} +1 -1
- package/dist/cdn/QQ53FYON.js +2 -0
- package/dist/cdn/{XUPYBBRI.js → QU2JYXVL.js} +1 -1
- package/dist/cdn/{NDRCB2K3.js → QVMZCD3A.js} +1 -1
- package/dist/cdn/{GEZH4D32.js → R54T4WBW.js} +1 -1
- package/dist/cdn/{FFLIAQOL.js → REJN2DGR.js} +1 -1
- package/dist/cdn/{C5U7YKVI.js → RT6SXACX.js} +1 -1
- package/dist/cdn/{6MWSS5YF.js → RUTSKSEA.js} +1 -1
- package/dist/cdn/{2I5SLQC5.js → S5HIKMGQ.js} +1 -1
- package/dist/cdn/{BRJE3G3H.js → TAREB43U.js} +1 -1
- package/dist/cdn/{JUDF3TYJ.js → TMG43PBB.js} +1 -1
- package/dist/cdn/UBABQKPV.js +2 -0
- package/dist/cdn/{GTZ4LKEQ.js → V2OG75CK.js} +1 -1
- package/dist/cdn/{XNEYNX5G.js → V7GVZLEG.js} +1 -1
- package/dist/cdn/{MHNYLHFR.js → WDMKBY5P.js} +1 -1
- package/dist/cdn/WDUH4TEH.js +2 -0
- package/dist/cdn/{IXSEMBHA.js → WPZ5FJSC.js} +1 -1
- package/dist/cdn/{KOLH76KG.js → WXD774JG.js} +1 -1
- package/dist/cdn/{FSACXOM3.js → X4LJOMMF.js} +1 -1
- package/dist/cdn/{GH4VBEMN.js → XDSQPXSO.js} +1 -1
- package/dist/cdn/{ZHADFIZO.js → YEMT55I6.js} +1 -1
- package/dist/cdn/{KC4FTTKP.js → YGF6ENPU.js} +1 -1
- package/dist/cdn/{T2HQNZ36.js → YJS5PGLO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/item.js +127 -33
- package/dist/chunks/item2.js +69 -126
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/query.js +10 -10
- package/dist/chunks/utils3.js +1 -1
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +6 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +10 -10
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.js +344 -313
- package/dist/components/arcgis-portal-group-browser/customElement.js +8 -8
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
- package/dist/components/arcgis-portal-navigation/customElement.js +1 -2
- package/dist/components/arcgis-portal-navigation/index.js +4 -4
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +1 -1
- package/dist/components/arcgis-portal-review-related-items/customElement.js +35 -20
- package/dist/components/portal-related-items-list-item/customElement.js +14 -14
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cdn/3SO52LKS.js +0 -2
- package/dist/cdn/5EFYJYWM.js +0 -2
- package/dist/cdn/6CF3XEXH.js +0 -2
- package/dist/cdn/6EE4B3MI.js +0 -2
- package/dist/cdn/7NK6UF47.js +0 -2
- package/dist/cdn/7NTJF34Z.js +0 -2
- package/dist/cdn/EJN2JQOX.js +0 -2
- package/dist/cdn/P5SDWQYI.js +0 -2
- package/dist/cdn/QCOJMMT3.js +0 -2
- package/dist/cdn/QH7GBLDC.js +0 -2
- package/dist/cdn/QKBGX2OY.js +0 -2
- package/dist/cdn/RCCCE5IV.js +0 -2
- package/dist/cdn/T3RJKB2A.js +0 -2
- package/dist/chunks/functional.js +0 -9
- /package/dist/cdn/{TJYPEMON.js → VDOEP33G.js} +0 -0
|
@@ -3,9 +3,9 @@ import { c as F } from "../../chunks/runtime.js";
|
|
|
3
3
|
import q from "@arcgis/core/layers/Layer.js";
|
|
4
4
|
import O from "@arcgis/core/portal/PortalItem.js";
|
|
5
5
|
import { LitElement as P, createEvent as h } from "@arcgis/lumina";
|
|
6
|
-
import { css as V, html as
|
|
6
|
+
import { css as V, html as m } from "lit";
|
|
7
7
|
import { u as S } from "../../chunks/useT9n.js";
|
|
8
|
-
import
|
|
8
|
+
import c from "@arcgis/core/request.js";
|
|
9
9
|
import { r as b } from "../../chunks/request.js";
|
|
10
10
|
const D = V`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}`;
|
|
11
11
|
async function v({
|
|
@@ -16,7 +16,7 @@ async function v({
|
|
|
16
16
|
if (!l)
|
|
17
17
|
return { result: a };
|
|
18
18
|
try {
|
|
19
|
-
const i = (await
|
|
19
|
+
const i = (await c(l, {
|
|
20
20
|
query: { f: "json" },
|
|
21
21
|
responseType: "json"
|
|
22
22
|
})).data;
|
|
@@ -29,7 +29,7 @@ async function v({
|
|
|
29
29
|
const t = l.replace(/\/$/u, "");
|
|
30
30
|
return await Promise.all(
|
|
31
31
|
i.layers.map(async ({ id: n }) => {
|
|
32
|
-
const r = (await
|
|
32
|
+
const r = (await c(`${t}/${n}`, {
|
|
33
33
|
query: { f: "json" },
|
|
34
34
|
responseType: "json"
|
|
35
35
|
})).data;
|
|
@@ -123,7 +123,7 @@ async function L(s) {
|
|
|
123
123
|
if (!e)
|
|
124
124
|
return { error: { code: "unhandledError" } };
|
|
125
125
|
try {
|
|
126
|
-
return { result: (await
|
|
126
|
+
return { result: (await c(e, { query: { f: "json" } })).data };
|
|
127
127
|
} catch (l) {
|
|
128
128
|
return console.error("Error getting service info:", l), { error: { code: "unhandledError" } };
|
|
129
129
|
}
|
|
@@ -1190,10 +1190,10 @@ function $(s) {
|
|
|
1190
1190
|
const B = ["point", "polyline", "polygon"], T = (s) => s?.type === "Feature Service";
|
|
1191
1191
|
class k extends P {
|
|
1192
1192
|
constructor() {
|
|
1193
|
-
super(...arguments), this.messages = S({ blocking: !0 }), this.initCount = 0, this.supportsAttachments = !1, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.loadedItem = null, this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.initializing = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1, this.addingGPSFieldMetadata = [], this.item = null, this.itemId = null, this.arcgisGPSMetadataFieldsAdded = h(), this.arcgisReadOnlyMode = h();
|
|
1193
|
+
super(...arguments), this.messages = S({ blocking: !0 }), this.initCount = 0, this.supportsAttachments = !1, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.loadedItem = null, this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.initializing = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1, this.addingGPSFieldMetadata = [], this.item = null, this.itemId = null, this.messageOverrides = {}, this.arcgisGPSMetadataFieldsAdded = h(), this.arcgisReadOnlyMode = h();
|
|
1194
1194
|
}
|
|
1195
1195
|
static {
|
|
1196
|
-
this.properties = { loadedItem: 16, gpsFieldFixesBySet: 16, addFieldsDisabled: 16, initializing: 16, hasLineOrPolygonLayer: 16, hasPointFeatureLayer: 16, addingGPSFieldMetadata: 16, item: 0, itemId: 1, portal: 0 };
|
|
1196
|
+
this.properties = { loadedItem: 16, gpsFieldFixesBySet: 16, addFieldsDisabled: 16, initializing: 16, hasLineOrPolygonLayer: 16, hasPointFeatureLayer: 16, addingGPSFieldMetadata: 16, item: 0, itemId: 1, portal: 0, messageOverrides: 0 };
|
|
1197
1197
|
}
|
|
1198
1198
|
static {
|
|
1199
1199
|
this.styles = D;
|
|
@@ -1316,12 +1316,12 @@ class k extends P {
|
|
|
1316
1316
|
renderAddFieldsControl(e, l = !1) {
|
|
1317
1317
|
const a = this.gpsFieldFixesBySet;
|
|
1318
1318
|
if (!l && a && !this.hasFieldChanges(e))
|
|
1319
|
-
return
|
|
1319
|
+
return m`<span slot=actions-end class="added"><calcite-icon icon=check-circle scale=s aria-hidden></calcite-icon>${this.messages.added}</span>`;
|
|
1320
1320
|
const i = this.isLoading(e);
|
|
1321
|
-
return
|
|
1321
|
+
return m`<calcite-button slot=actions-end appearance=outline-fill .disabled=${l || !a || i || this.addFieldsDisabled} .loading=${i} @click=${async () => await this.addFields(e)}>${i ? this.messages.addingFields : this.messages.addFields}</calcite-button>`;
|
|
1322
1322
|
}
|
|
1323
1323
|
render() {
|
|
1324
|
-
return this.canShowAddGPSMetadata() ?
|
|
1324
|
+
return this.canShowAddGPSMetadata() ? m`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing && m`<calcite-scrim loading></calcite-scrim>` || ""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields() && m`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>` || ""}</calcite-list></calcite-block></div>` : null;
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
1327
1327
|
F("arcgis-portal-add-gps-metadata", k);
|
|
@@ -16,7 +16,7 @@ import { a as F, t as Ze, b as W } from "../../chunks/functionalities.js";
|
|
|
16
16
|
import { createChatModel as H } from "@arcgis/ai-components/orchestrator/models/chatModel.js";
|
|
17
17
|
import { ChatPromptTemplate as X } from "@langchain/core/prompts";
|
|
18
18
|
import { tool as Te } from "@langchain/core/tools";
|
|
19
|
-
import { s as et, a as tt } from "../../chunks/
|
|
19
|
+
import { s as et, a as tt } from "../../chunks/item2.js";
|
|
20
20
|
import { g as at, e as nt, i as ot, c as rt, a as it } from "../../chunks/groups2.js";
|
|
21
21
|
import { getEmbeddings as st } from "@arcgis/ai-components/orchestrator/embeddings/getEmbeddings.js";
|
|
22
22
|
import ct from "@arcgis/core/portal/Portal.js";
|