@esri/solutions-components 5.1.0-next.141 → 5.1.0-next.143
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/{D4MZYBH7.js → 4JGB6WLL.js} +1 -1
- package/dist/cdn/{7NAC32PQ.js → 4MAZNAHZ.js} +1 -1
- package/dist/cdn/{Z6UCVV4K.js → 4RLG6MXK.js} +1 -1
- package/dist/cdn/56A5UMZG.js +9 -0
- package/dist/cdn/{SAJPXZDW.js → 56XVVIG7.js} +1 -1
- package/dist/cdn/{W5FWW67G.js → 5LIR6BQY.js} +1 -1
- package/dist/cdn/{OYBEDO63.js → 5MPYPIR2.js} +1 -1
- package/dist/cdn/{HO4GBQJG.js → 6Z3DXRF6.js} +1 -1
- package/dist/cdn/{HT2HC33W.js → 7FJTZ7VA.js} +1 -1
- package/dist/cdn/{GPL6FNKN.js → 7GXMCAWQ.js} +1 -1
- package/dist/cdn/{E5EU4SVV.js → 7WD3GNG4.js} +1 -1
- package/dist/cdn/{3UJAJDSF.js → AGB374BK.js} +1 -1
- package/dist/cdn/{2KSXH2TC.js → AHB7W7RI.js} +1 -1
- package/dist/cdn/{6ID6N5BF.js → BGLTC5SO.js} +1 -1
- package/dist/cdn/{SSH4MSHE.js → BVSSQNES.js} +1 -1
- package/dist/cdn/{CEWRVOKP.js → C4OXBZJK.js} +1 -1
- package/dist/cdn/{SXVCHOTK.js → DFZZNKPK.js} +3 -6
- package/dist/cdn/{B33EUN4X.js → DKEYOEI7.js} +1 -1
- package/dist/cdn/{5UIJ4Z3C.js → DNPN62O5.js} +1 -1
- package/dist/cdn/{QTZMCFZB.js → E5E6J57F.js} +22 -22
- package/dist/cdn/{KEOBSFBN.js → EPOIEXNS.js} +1 -1
- package/dist/cdn/{JMCZPJDW.js → FVOCVCEE.js} +1 -1
- package/dist/cdn/{PV6MK2E6.js → FYT4Q5GJ.js} +1 -1
- package/dist/cdn/H2UL463J.js +2 -0
- package/dist/cdn/{FMTXVLZB.js → I22C4HE4.js} +1 -1
- package/dist/cdn/{SRT2KXZG.js → IEOFEUZI.js} +1 -1
- package/dist/cdn/ILLTWR2W.js +2 -0
- package/dist/cdn/{P2TNN5UL.js → J3HJC4SO.js} +1 -1
- package/dist/cdn/K4TDKKPB.js +18 -0
- package/dist/cdn/{23LRX7AS.js → KSQHSNTW.js} +1 -1
- package/dist/cdn/{CB7QDBRG.js → KUGXNF5Y.js} +1 -1
- package/dist/cdn/{52QHFDTC.js → LEK4P4OY.js} +1 -1
- package/dist/cdn/LKZFKOG4.js +2 -0
- package/dist/cdn/{TSYIZSCP.js → LYAXTCCM.js} +11 -1
- package/dist/cdn/{TFTW5B3R.js → MC5ARLKZ.js} +1 -1
- package/dist/cdn/{DNZ5U52C.js → MT5J66WR.js} +1 -1
- package/dist/cdn/{IFI66PVI.js → MVF7I3RU.js} +1 -1
- package/dist/cdn/{F3NG6RFP.js → NIHPHDXG.js} +31 -18
- package/dist/cdn/{UFPB7JD3.js → P67K4TAX.js} +1 -1
- package/dist/cdn/{ZIX74MNU.js → PPRV6EZZ.js} +1 -1
- package/dist/cdn/{PZW6JMSM.js → PUCDO65D.js} +1 -1
- package/dist/cdn/Q5TICZRX.js +15 -0
- package/dist/cdn/{GSD6O5J7.js → QHDEVLC3.js} +1 -1
- package/dist/cdn/{HNWINTTY.js → QQEYWBVV.js} +1 -1
- package/dist/cdn/{CUJ3M6UT.js → RRD4QUQS.js} +1 -1
- package/dist/cdn/{GWWU6HWB.js → RSCBZIAN.js} +17 -19
- package/dist/cdn/RUF6QBY7.js +2 -0
- package/dist/cdn/{UY5JVVRO.js → S5AQVTR2.js} +1 -1
- package/dist/cdn/S6U6SXMD.js +2 -0
- package/dist/cdn/{H7J2FXMS.js → SGQBWAPU.js} +1 -1
- package/dist/cdn/{MEDCFXMB.js → SOLCNPHW.js} +1 -1
- package/dist/cdn/{BQE2XAKC.js → SSIUWTQX.js} +1 -1
- package/dist/cdn/{AYQT4HC4.js → SYZEWVHU.js} +1 -1
- package/dist/cdn/{KGSB4I6Y.js → TWJSFINX.js} +1 -1
- package/dist/cdn/{VEDAG7UO.js → TX3LBQ6V.js} +1 -1
- package/dist/cdn/{ATHNXWV4.js → U3CNAJQZ.js} +115 -115
- package/dist/cdn/{RMCQZMLA.js → U4RHWD57.js} +1 -1
- package/dist/cdn/{UM3P3Q52.js → U6JZYJ4D.js} +1 -1
- package/dist/cdn/{PQNFWMST.js → ULFPP7PF.js} +1 -1
- package/dist/cdn/{N5D5ABJ6.js → UOGZGAJD.js} +1 -1
- package/dist/cdn/{NWCKV677.js → VBJSVR6T.js} +1 -1
- package/dist/cdn/WGS5W6W5.js +2 -0
- package/dist/cdn/{RPEQD2MH.js → WLM4HMMF.js} +1 -1
- package/dist/cdn/{MOH6GREK.js → X6JL6SAH.js} +1 -1
- package/dist/cdn/{DGNAMFJN.js → XBFG3KX6.js} +6 -2
- package/dist/cdn/{TIF36KTA.js → XXGM7HGO.js} +1 -1
- package/dist/cdn/{BLCW2CZO.js → Y77RX7KL.js} +1 -1
- package/dist/cdn/{ICSHJV2N.js → ZCSF2MJ5.js} +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +2 -2
- package/dist/chunks/assistantResponse.js +17 -19
- package/dist/chunks/cardsHelpers.js +12 -12
- package/dist/chunks/classifyIntent.js +31 -18
- package/dist/chunks/converter.js +114 -105
- package/dist/chunks/description.js +7 -3
- package/dist/chunks/designSolution.js +11 -1
- package/dist/chunks/downloadUtils.js +5 -5
- package/dist/chunks/getRelatedInfos.js +1 -1
- package/dist/chunks/helpers.js +75 -55
- package/dist/chunks/initialAssessment.js +3 -6
- package/dist/chunks/interfaces.js +45 -41
- package/dist/chunks/mapViewUtils.js +9 -9
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/queryUtils.js +3 -3
- package/dist/chunks/responseOptionsBuilderExclusion.js +12 -0
- package/dist/chunks/responseOptionsDefault.js +18 -0
- package/dist/chunks/solution-builder-assistant.js +58 -28
- package/dist/chunks/solution-deploy-dialog.js +157 -153
- package/dist/chunks/solutions-deploy-app-nav.js +3 -4
- package/dist/chunks/templates.js +6 -6
- package/dist/chunks/updateDesign.js +1 -1
- package/dist/chunks/validators.js +6 -6
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +8 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +262 -191
- package/dist/components/arcgis-solutions-assistant/index.js +1 -0
- package/dist/components/card-manager/customElement.js +6 -6
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +2 -2
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +2 -2
- package/dist/components/map-card/customElement.js +2 -2
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +2 -2
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +2 -2
- package/dist/components/refine-selection/customElement.js +2 -2
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-builder-assistant/customElement.d.ts +8 -2
- package/dist/components/solution-builder-assistant/customElement.js +3 -2
- package/dist/components/solution-builder-assistant/index.js +1 -0
- package/dist/components/solution-configure-titles/customElement.js +6 -6
- package/dist/components/solution-delete-dialog/customElement.js +2 -2
- package/dist/components/solution-deployed-card/customElement.js +2 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +3 -3
- package/dist/components/solution-details-card/customElement.js +2 -2
- package/dist/components/solution-details-panel/customElement.js +2 -2
- package/dist/components/solution-resource-card/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +2 -2
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-user-avatar/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +160 -32
- package/dist/components/solutions-deploy-app/index.js +1 -1
- package/dist/components/solutions-deployed-list/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/utils/interfaces.d.ts +1 -6
- package/package.json +1 -1
- package/dist/cdn/7J2F4TFI.js +0 -18
- package/dist/cdn/EXC566PM.js +0 -2
- package/dist/cdn/LDNPRHOM.js +0 -2
- package/dist/cdn/NN52IXXG.js +0 -2
- package/dist/cdn/SFFLZSAY.js +0 -2
- package/dist/cdn/WPGT2HLS.js +0 -2
- package/dist/cdn/XC3IZAIH.js +0 -2
package/dist/chunks/converter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
function
|
|
2
|
+
function h() {
|
|
3
3
|
return {
|
|
4
4
|
renderer: {
|
|
5
5
|
type: "simple",
|
|
@@ -248,7 +248,7 @@ function m() {
|
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function b() {
|
|
252
252
|
return {
|
|
253
253
|
renderer: {
|
|
254
254
|
type: "simple",
|
|
@@ -276,6 +276,13 @@ class u {
|
|
|
276
276
|
polygon: "esriGeometryPolygon"
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
+
static {
|
|
280
|
+
this.simpleTypeLookup = {
|
|
281
|
+
esriGeometryPoint: "Point",
|
|
282
|
+
esriGeometryPolyline: "Polyline",
|
|
283
|
+
esriGeometryPolygon: "Polygon"
|
|
284
|
+
};
|
|
285
|
+
}
|
|
279
286
|
static {
|
|
280
287
|
this.drawingToolLookup = {
|
|
281
288
|
esriGeometryPoint: "esriFeatureEditToolPoint",
|
|
@@ -301,59 +308,61 @@ class u {
|
|
|
301
308
|
);
|
|
302
309
|
}
|
|
303
310
|
dumpToLlmTemplate() {
|
|
304
|
-
const e = this.structure?.buildSolution?.solution, i = Object.entries(e?.strings || {}).map(([s,
|
|
311
|
+
const e = this.structure?.buildSolution?.solution, i = Object.entries(e?.strings || {}).map(([s, o]) => ({
|
|
305
312
|
key: s,
|
|
306
|
-
value:
|
|
307
|
-
description:
|
|
313
|
+
value: o.value,
|
|
314
|
+
description: o.description
|
|
308
315
|
})), t = {
|
|
309
316
|
title: e?.title,
|
|
310
317
|
description: e?.description,
|
|
311
318
|
tags: e?.tags,
|
|
312
319
|
strings: i
|
|
313
|
-
},
|
|
320
|
+
}, r = this.structure?.buildSolution?.items, l = Object.entries(r || {}).map(([s, o]) => ({
|
|
314
321
|
id: s,
|
|
315
|
-
title:
|
|
316
|
-
description:
|
|
317
|
-
type:
|
|
322
|
+
title: o.title,
|
|
323
|
+
description: o.description,
|
|
324
|
+
type: o.type
|
|
318
325
|
}));
|
|
319
|
-
let
|
|
320
|
-
for (const [s,
|
|
321
|
-
if (
|
|
326
|
+
let n = null;
|
|
327
|
+
for (const [s, o] of Object.entries(r || {})) {
|
|
328
|
+
if (o.type !== "Feature Layer (hosted)")
|
|
322
329
|
continue;
|
|
323
|
-
const
|
|
324
|
-
for (const
|
|
325
|
-
const
|
|
326
|
-
|
|
327
|
-
id: p.id,
|
|
330
|
+
const p = [];
|
|
331
|
+
for (const d of o.service?.layers || []) {
|
|
332
|
+
const y = this.getFields(d), c = {
|
|
333
|
+
id: d.id,
|
|
328
334
|
type: "",
|
|
329
|
-
|
|
335
|
+
typeMutable: !0,
|
|
336
|
+
name: d.name,
|
|
330
337
|
customFields: [],
|
|
331
|
-
requiredFields:
|
|
338
|
+
requiredFields: y,
|
|
332
339
|
systemFields: []
|
|
333
|
-
}
|
|
340
|
+
};
|
|
341
|
+
d.geometryType && (c.type = u.simpleTypeLookup[d.geometryType] || "", c.typeMutable = !1), p.push(c);
|
|
334
342
|
}
|
|
335
|
-
for (const
|
|
336
|
-
const
|
|
337
|
-
|
|
338
|
-
id:
|
|
343
|
+
for (const d of o.service?.tables || []) {
|
|
344
|
+
const y = this.getFields(d);
|
|
345
|
+
p.push({
|
|
346
|
+
id: d.id,
|
|
339
347
|
type: "Table",
|
|
340
|
-
|
|
348
|
+
typeMutable: !1,
|
|
349
|
+
name: d.name,
|
|
341
350
|
customFields: [],
|
|
342
|
-
requiredFields:
|
|
351
|
+
requiredFields: y,
|
|
343
352
|
systemFields: []
|
|
344
353
|
});
|
|
345
354
|
}
|
|
346
|
-
|
|
355
|
+
n = {
|
|
347
356
|
itemId: s,
|
|
348
|
-
addLayers:
|
|
349
|
-
layers:
|
|
357
|
+
addLayers: o.addLayers,
|
|
358
|
+
layers: p
|
|
350
359
|
};
|
|
351
360
|
break;
|
|
352
361
|
}
|
|
353
362
|
return {
|
|
354
363
|
solution: t,
|
|
355
|
-
items:
|
|
356
|
-
featureLayer:
|
|
364
|
+
items: l,
|
|
365
|
+
featureLayer: n ?? {
|
|
357
366
|
itemId: "",
|
|
358
367
|
addLayers: !1,
|
|
359
368
|
layers: []
|
|
@@ -392,124 +401,124 @@ class u {
|
|
|
392
401
|
for (const s of e.featureLayer.layers)
|
|
393
402
|
this.llmFsLookup[e.featureLayer.itemId][s.id] = s;
|
|
394
403
|
}
|
|
395
|
-
for (const [s,
|
|
396
|
-
|
|
404
|
+
for (const [s, o] of Object.entries(this.buildSolution.items))
|
|
405
|
+
o.type === "Feature Layer (hosted, view)" && (this.llmFsLookup[s] = { ...this.llmFsLookup[o.source] });
|
|
397
406
|
i.title = e.solution.title, i.description = e.solution.description, i.tags = e.solution.tags;
|
|
398
407
|
const t = i.strings;
|
|
399
408
|
for (const s of e.solution.strings)
|
|
400
409
|
t[s.key] && (t[s.key].value = s.value);
|
|
401
|
-
const
|
|
410
|
+
const r = {}, l = /* @__PURE__ */ new Set(), n = this.buildSolution.items;
|
|
402
411
|
for (const s of e.items) {
|
|
403
|
-
const
|
|
404
|
-
if (
|
|
405
|
-
if (
|
|
406
|
-
this.applyWebMap(
|
|
407
|
-
else if (
|
|
408
|
-
this.applyFeatureService(
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
} else
|
|
412
|
+
const o = n[s.id];
|
|
413
|
+
if (o)
|
|
414
|
+
if (o.title = s.title, o.description = s.description, o.type === "Web Map")
|
|
415
|
+
this.applyWebMap(o);
|
|
416
|
+
else if (o.type === "Feature Layer (hosted)") {
|
|
417
|
+
this.applyFeatureService(o, s.id, !1);
|
|
418
|
+
const p = g(o);
|
|
419
|
+
o.data = p, r[s.id] = p;
|
|
420
|
+
} else o.type === "Feature Layer (hosted, view)" && (this.applyFeatureService(o, s.id, !0), l.add(s.id));
|
|
412
421
|
}
|
|
413
|
-
for (const s of
|
|
414
|
-
const
|
|
415
|
-
|
|
422
|
+
for (const s of l) {
|
|
423
|
+
const o = n[s];
|
|
424
|
+
o.data = r[o.source];
|
|
416
425
|
}
|
|
417
426
|
return this.structure;
|
|
418
427
|
}
|
|
419
428
|
applyWebMap(e) {
|
|
420
429
|
if (!e.layerSources)
|
|
421
430
|
return;
|
|
422
|
-
for (const
|
|
423
|
-
const [
|
|
424
|
-
s && (
|
|
431
|
+
for (const r of [...e.layers || [], ...e.tables || []]) {
|
|
432
|
+
const [l, n] = this.extractIdAndLayerId(r.url), s = this.llmFsLookup[l]?.[n];
|
|
433
|
+
s && (r.title = s.name);
|
|
425
434
|
}
|
|
426
435
|
if (!(e.layers?.length === 0 && e.tables?.length === 0))
|
|
427
436
|
return;
|
|
428
437
|
const t = crypto.randomUUID().replace(/-/gu, "").substring(0, 10);
|
|
429
|
-
for (const
|
|
430
|
-
const
|
|
431
|
-
if (
|
|
432
|
-
for (const [
|
|
433
|
-
const
|
|
434
|
-
id: `${t}-layer-${
|
|
438
|
+
for (const r of e.layerSources) {
|
|
439
|
+
const l = this.llmFsLookup[r];
|
|
440
|
+
if (l)
|
|
441
|
+
for (const [n, s] of Object.entries(l)) {
|
|
442
|
+
const o = Number(n), p = s.type.toLowerCase() === "table", d = {
|
|
443
|
+
id: `${t}-layer-${o}`,
|
|
435
444
|
title: s.name,
|
|
436
|
-
url: `{{${
|
|
437
|
-
itemId: `{{${
|
|
445
|
+
url: `{{${r}.layer${o}.url}}`,
|
|
446
|
+
itemId: `{{${r}.layer${o}.itemId}}`
|
|
438
447
|
};
|
|
439
|
-
|
|
448
|
+
p ? e.tables.push(d) : (d.layerType = "ArcGISFeatureLayer", e.layers.push(d));
|
|
440
449
|
}
|
|
441
450
|
}
|
|
442
451
|
}
|
|
443
452
|
extractIdAndLayerId(e) {
|
|
444
|
-
const i = e.replace(/[{}]/gu, "").split("."), t = i[0],
|
|
445
|
-
return [t,
|
|
453
|
+
const i = e.replace(/[{}]/gu, "").split("."), t = i[0], r = Number.parseInt(i[1].replace("layer", ""));
|
|
454
|
+
return [t, r];
|
|
446
455
|
}
|
|
447
456
|
applyFeatureService(e, i, t = !1) {
|
|
448
|
-
const
|
|
457
|
+
const r = e.source || i, l = this.llmFsLookup[r];
|
|
449
458
|
for (const s of [...e.service.layers, ...e.service.tables])
|
|
450
|
-
this.applyLayer(s,
|
|
451
|
-
e.addLayers && !t && this.addNewLayers(e,
|
|
452
|
-
const
|
|
453
|
-
t &&
|
|
459
|
+
this.applyLayer(s, l, t);
|
|
460
|
+
e.addLayers && !t && this.addNewLayers(e, l);
|
|
461
|
+
const n = e.service.layers?.length === 0 && e.service.tables?.length === 0;
|
|
462
|
+
t && n && this.addNewViewLayers(e, i, l);
|
|
454
463
|
}
|
|
455
464
|
addNewLayers(e, i) {
|
|
456
|
-
for (const [t,
|
|
457
|
-
const
|
|
458
|
-
this.applyLayer(
|
|
465
|
+
for (const [t, r] of Object.entries(i)) {
|
|
466
|
+
const n = { id: Number(t) };
|
|
467
|
+
this.applyLayer(n, i), r.type.toLowerCase() === "table" ? e.service.tables.push(n) : e.service.layers.push(n);
|
|
459
468
|
}
|
|
460
469
|
}
|
|
461
470
|
addNewViewLayers(e, i, t) {
|
|
462
|
-
const
|
|
463
|
-
for (const [
|
|
464
|
-
const s = Number(
|
|
471
|
+
const r = e.source;
|
|
472
|
+
for (const [l, n] of Object.entries(t)) {
|
|
473
|
+
const s = Number(l), o = n.type.toLowerCase() === "table", p = {
|
|
465
474
|
adminLayerInfo: {
|
|
466
|
-
geometryField:
|
|
475
|
+
geometryField: o ? null : { name: "Shape" },
|
|
467
476
|
viewLayerDefinition: {
|
|
468
|
-
sourceServiceName: `{{${
|
|
477
|
+
sourceServiceName: `{{${r}.name}}`,
|
|
469
478
|
sourceLayerId: s,
|
|
470
479
|
sourceLayerFields: "*"
|
|
471
480
|
}
|
|
472
481
|
},
|
|
473
482
|
id: s,
|
|
474
|
-
name:
|
|
483
|
+
name: n.name,
|
|
475
484
|
extent: `{{${i}.solutionExtent}}`,
|
|
476
485
|
maxRecordCount: 2e3
|
|
477
486
|
};
|
|
478
|
-
|
|
487
|
+
o ? e.service.tables.push(p) : e.service.layers.push(p);
|
|
479
488
|
}
|
|
480
489
|
}
|
|
481
490
|
applyLayer(e, i, t = !1) {
|
|
482
|
-
const
|
|
483
|
-
if (!
|
|
491
|
+
const r = i[e.id];
|
|
492
|
+
if (!r || (e.name = r.name, t))
|
|
484
493
|
return;
|
|
485
|
-
const
|
|
486
|
-
|
|
494
|
+
const l = u.typeLookup[r.type.toLowerCase()] || r.type;
|
|
495
|
+
l.toLowerCase() === "table" ? e.type = l : e.geometryType = l, e.editFieldsInfo = this.editFieldsInfo(), e.globalIdField = "globalid", e.objectIdField = "objectid", e.uniqueIdField = { name: "objectid", isSystemMaintained: !0 }, e.hasAttachments = !0, this.updateRelationships(e, i), this.updateFields(e, r), this.updateTemplates(e), this.updateDrawingInfo(e);
|
|
487
496
|
}
|
|
488
497
|
updateRelationships(e, i) {
|
|
489
498
|
const t = e.relationships || [];
|
|
490
|
-
for (const
|
|
491
|
-
const
|
|
492
|
-
|
|
499
|
+
for (const r of t) {
|
|
500
|
+
const l = i[r.relatedTableId];
|
|
501
|
+
l && (r.name = l.name);
|
|
493
502
|
}
|
|
494
503
|
}
|
|
495
504
|
updateFields(e, i) {
|
|
496
|
-
const t = [],
|
|
505
|
+
const t = [], r = [
|
|
497
506
|
[!1, i.customFields],
|
|
498
507
|
[!0, i.requiredFields],
|
|
499
508
|
[!0, i.systemFields]
|
|
500
509
|
];
|
|
501
|
-
for (const [
|
|
502
|
-
if (Array.isArray(
|
|
503
|
-
for (const s of
|
|
504
|
-
const
|
|
510
|
+
for (const [l, n] of r)
|
|
511
|
+
if (Array.isArray(n))
|
|
512
|
+
for (const s of n) {
|
|
513
|
+
const o = {
|
|
505
514
|
name: s.name,
|
|
506
515
|
alias: s.alias,
|
|
507
516
|
type: u.fieldTypeToEsri[s.type] || s.type,
|
|
508
517
|
description: JSON.stringify({ value: s.description, fieldValueType: "" }, null, 0),
|
|
509
518
|
domain: this.createDomain(s.choiceList, s.name),
|
|
510
|
-
required:
|
|
519
|
+
required: l
|
|
511
520
|
};
|
|
512
|
-
s.type?.toLowerCase() === "string" && (
|
|
521
|
+
s.type?.toLowerCase() === "string" && (o.length = s.length ?? 256), (s.type === "oid" || s.type === "globalid") && (o.editable = !1, o.nullable = !1), t.push(o);
|
|
513
522
|
}
|
|
514
523
|
e.fields = t;
|
|
515
524
|
}
|
|
@@ -525,7 +534,7 @@ class u {
|
|
|
525
534
|
}
|
|
526
535
|
updateDrawingInfo(e) {
|
|
527
536
|
if (e.drawingTool === "esriGeometryPoint")
|
|
528
|
-
e.drawingInfo =
|
|
537
|
+
e.drawingInfo = b();
|
|
529
538
|
else
|
|
530
539
|
return;
|
|
531
540
|
}
|
|
@@ -545,7 +554,7 @@ class u {
|
|
|
545
554
|
};
|
|
546
555
|
}
|
|
547
556
|
}
|
|
548
|
-
function
|
|
557
|
+
function g(a) {
|
|
549
558
|
const e = a.service, i = {
|
|
550
559
|
layers: [],
|
|
551
560
|
tables: []
|
|
@@ -553,19 +562,19 @@ function b(a) {
|
|
|
553
562
|
for (const t of e.layers || [])
|
|
554
563
|
i.layers.push({
|
|
555
564
|
id: t.id,
|
|
556
|
-
formInfo:
|
|
565
|
+
formInfo: m(t),
|
|
557
566
|
popupInfo: f(t),
|
|
558
|
-
layerDefinition:
|
|
567
|
+
layerDefinition: F(t)
|
|
559
568
|
});
|
|
560
569
|
for (const t of e.tables || [])
|
|
561
570
|
i.tables.push({
|
|
562
571
|
id: t.id,
|
|
563
|
-
formInfo:
|
|
572
|
+
formInfo: m(t),
|
|
564
573
|
popupInfo: f(t)
|
|
565
574
|
});
|
|
566
575
|
return i;
|
|
567
576
|
}
|
|
568
|
-
function
|
|
577
|
+
function m(a) {
|
|
569
578
|
const e = [];
|
|
570
579
|
for (const t of a.fields)
|
|
571
580
|
t.required || e.push({
|
|
@@ -573,7 +582,7 @@ function y(a) {
|
|
|
573
582
|
type: "field",
|
|
574
583
|
editableExpression: "expr/system/true",
|
|
575
584
|
fieldName: t.name,
|
|
576
|
-
inputType:
|
|
585
|
+
inputType: L(t.type, t.domain, t.length)
|
|
577
586
|
});
|
|
578
587
|
const i = a.relationships || [];
|
|
579
588
|
for (const t of i)
|
|
@@ -598,11 +607,11 @@ function y(a) {
|
|
|
598
607
|
}
|
|
599
608
|
function f(a) {
|
|
600
609
|
const e = [], i = [];
|
|
601
|
-
for (const
|
|
602
|
-
|
|
603
|
-
fieldName:
|
|
610
|
+
for (const r of a.fields)
|
|
611
|
+
r.required || i.push({
|
|
612
|
+
fieldName: r.name,
|
|
604
613
|
isEditable: !0,
|
|
605
|
-
label:
|
|
614
|
+
label: r.alias,
|
|
606
615
|
visible: !0
|
|
607
616
|
});
|
|
608
617
|
e.push({
|
|
@@ -612,14 +621,14 @@ function f(a) {
|
|
|
612
621
|
});
|
|
613
622
|
const t = a.relationships || [];
|
|
614
623
|
if (t.length && a.type !== "Table")
|
|
615
|
-
for (const
|
|
624
|
+
for (const r of t)
|
|
616
625
|
e.push({
|
|
617
626
|
type: "relationship",
|
|
618
627
|
description: "",
|
|
619
628
|
displayCount: 3,
|
|
620
629
|
displayType: "list",
|
|
621
630
|
orderByFields: [{ field: "created_date", order: "asc" }],
|
|
622
|
-
relationshipId:
|
|
631
|
+
relationshipId: r.id
|
|
623
632
|
});
|
|
624
633
|
return e.push({
|
|
625
634
|
type: "attachments",
|
|
@@ -632,10 +641,10 @@ function f(a) {
|
|
|
632
641
|
title: a.name
|
|
633
642
|
};
|
|
634
643
|
}
|
|
635
|
-
function
|
|
636
|
-
return a.geometryType === "esriGeometryPoint" ? { drawingInfo:
|
|
644
|
+
function F(a) {
|
|
645
|
+
return a.geometryType === "esriGeometryPoint" ? { drawingInfo: h() } : { drawingInfo: {} };
|
|
637
646
|
}
|
|
638
|
-
function
|
|
647
|
+
function L(a, e, i) {
|
|
639
648
|
return a === "esriFieldTypeString" && !e ? { type: "text-box", maxLength: i || 255, minLength: 0 } : a === "esriFieldTypeString" && e ? { type: "combo-box", noValueOptionLabel: "No value", showNoValueOption: !0 } : ["esriFieldTypeInteger", "esriFieldTypeDouble"].includes(a) ? { type: "text-box", minLength: 0 } : a === "esriFieldTypeDate" ? { type: "datetime-picker", includeTime: !1 } : { type: "text-box", maxLength: i || 255, minLength: 0 };
|
|
640
649
|
}
|
|
641
650
|
export {
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
const
|
|
2
|
+
const e = `The Solutions Assistant Agent is the single entry point for ArcGIS Solutions assistant requests.\r
|
|
3
3
|
\r
|
|
4
4
|
It classifies each incoming request and routes it to the most appropriate specialist flow:\r
|
|
5
5
|
- Explorer flow for discovery, documentation, and general ArcGIS Solutions questions.\r
|
|
6
6
|
- Builder flow for creating, designing, or updating a solution design.\r
|
|
7
7
|
- Other flow for unsupported, unclear, or off-topic requests.\r
|
|
8
8
|
\r
|
|
9
|
-
|
|
9
|
+
This agent will also respond to all unsupported, unclear, off-topic requests\r
|
|
10
|
+
\r
|
|
11
|
+
**Important behavior**\r
|
|
12
|
+
- Always select this agent for any request\r
|
|
13
|
+
- When selecting this agent 'requiresFollowUp' should ALWAYS be false`;
|
|
10
14
|
export {
|
|
11
|
-
|
|
15
|
+
e as default
|
|
12
16
|
};
|
|
@@ -48,7 +48,7 @@ Please review the draft design and let me know if you’d like to make any chang
|
|
|
48
48
|
\r
|
|
49
49
|
## Feature Layers\r
|
|
50
50
|
- Generate a detailed, normalized database schema for each Feature Layer\r
|
|
51
|
-
- Supported layer types: \`Point\`, \`
|
|
51
|
+
- Supported layer types: \`Point\`, \`Polyline\`, \`Polygon\`, \`Table\`\r
|
|
52
52
|
\r
|
|
53
53
|
### Layer Naming Rules\r
|
|
54
54
|
- Layer \`name\` values are user-facing and must be written in Title Case\r
|
|
@@ -59,9 +59,19 @@ Please review the draft design and let me know if you’d like to make any chang
|
|
|
59
59
|
- If \`addLayers: false\`:\r
|
|
60
60
|
- Layers cannot be added or removed\r
|
|
61
61
|
- Layer \`id\` values are immutable\r
|
|
62
|
+
- Do not edit the \`typeMutable\` property of layers\r
|
|
62
63
|
- If \`addLayers: true\`:\r
|
|
63
64
|
- Layers may be added or removed\r
|
|
64
65
|
- Each new layer must receive a unique \`id\` starting at 0\r
|
|
66
|
+
- Each new layer must have \`typeMutable\` property set to true\r
|
|
67
|
+
\r
|
|
68
|
+
### Layer Type Mutability Rule\r
|
|
69
|
+
- If \`typeMutable: true\`:\r
|
|
70
|
+
- The layer type must be chosen: \`Point\`, \`Polyline\`, \`Polygon\`, \`Table\`\r
|
|
71
|
+
- The layer type may be changed without restriction\r
|
|
72
|
+
- If \`typeMutable: false\`:\r
|
|
73
|
+
- The layer type may never be changed\r
|
|
74
|
+
- Requests to change the layer type should be ignored\r
|
|
65
75
|
\r
|
|
66
76
|
### Required Fields\r
|
|
67
77
|
- Fields in \`requiredFields\` are protected:\r
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { jsPDF as k } from "jspdf";
|
|
3
3
|
import { g as G } from "./runtime.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as W } from "./queryUtils.js";
|
|
5
5
|
import { Sanitizer as $ } from "@esri/arcgis-html-sanitizer";
|
|
6
6
|
import * as I from "@esri/solution-common";
|
|
7
7
|
import * as S from "@arcgis/core/arcade.js";
|
|
@@ -1138,11 +1138,11 @@ async function lt(s, t) {
|
|
|
1138
1138
|
return Promise.resolve(i);
|
|
1139
1139
|
}
|
|
1140
1140
|
export {
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1141
|
+
R as _,
|
|
1142
|
+
gt as a,
|
|
1143
|
+
_ as b,
|
|
1144
1144
|
M as c,
|
|
1145
1145
|
dt as d,
|
|
1146
|
-
|
|
1146
|
+
E as e,
|
|
1147
1147
|
N as r
|
|
1148
1148
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { x as D } from "./interfaces.js";
|
|
3
3
|
import { getItemRelatedItems as g } from "@esri/solution-common";
|
|
4
4
|
async function R(o, r) {
|
|
5
5
|
const s = await h(r, o);
|