@esri/solutions-components 5.1.0 → 5.1.1
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/{LV5KMTCD.js → 224NND54.js} +1 -1
- package/dist/cdn/{Y2MAVMNV.js → 2MDEEI52.js} +1 -1
- package/dist/cdn/{R27S3IDW.js → 3BL4GCSN.js} +1 -1
- package/dist/cdn/{MKSUYITL.js → 3T56IY7B.js} +1 -1
- package/dist/cdn/{SEG43OPO.js → 4G5PYXFM.js} +1 -1
- package/dist/cdn/{CVXDL2AT.js → 4MAH5ULJ.js} +1 -1
- package/dist/cdn/4RWJ22V3.js +2 -0
- package/dist/cdn/{PIAGRMMB.js → 4SYZADNV.js} +47 -47
- package/dist/cdn/{FSHV53TK.js → 4VP3KTLL.js} +1 -1
- package/dist/cdn/{EWS72RFR.js → 5A5W5PLO.js} +1 -1
- package/dist/cdn/{TWN7DOAU.js → 5FW45CM6.js} +1 -1
- package/dist/cdn/{YUI2MSOK.js → 5VUSSAPX.js} +1 -1
- package/dist/cdn/{5UW2NTSN.js → 5YD3IE6V.js} +1 -1
- package/dist/cdn/{TWJ6DAY5.js → 65I4AUS4.js} +1 -1
- package/dist/cdn/{GMAAQEP7.js → 67KMG355.js} +1 -1
- package/dist/cdn/{2R7Y2ZVX.js → 6CVQ3V2G.js} +1 -1
- package/dist/cdn/{RCWYHGZ5.js → 6FNUCCS3.js} +1 -1
- package/dist/cdn/{OYRMCWNZ.js → 7GVLJERR.js} +1 -1
- package/dist/cdn/{BI3I22IR.js → AIM6JKQK.js} +3 -3
- package/dist/cdn/{DIBK4RSG.js → AIZ2P72X.js} +1 -1
- package/dist/cdn/{KSIYOSLP.js → AXEZNIEX.js} +1 -1
- package/dist/cdn/{TZHRYPII.js → B7CVHLVL.js} +1 -1
- package/dist/cdn/{3A3CPQX4.js → B7TH7XYI.js} +1 -1
- package/dist/cdn/{JO6WZKYF.js → BQ2LFMED.js} +1 -1
- package/dist/cdn/{VPXGD2H4.js → CJJEWE3Q.js} +1 -1
- package/dist/cdn/{WNVC3PSY.js → D25JFQEK.js} +1 -1
- package/dist/cdn/D5OMLQMV.js +2 -0
- package/dist/cdn/{6FY64JKN.js → DEATAJID.js} +1 -1
- package/dist/cdn/{LGWAEUZM.js → DGY2VKHA.js} +1 -1
- package/dist/cdn/{5X43GK3C.js → DJXQKOIX.js} +1 -1
- package/dist/cdn/DQPIAF2T.js +3 -0
- package/dist/cdn/{V5UJ5VTY.js → DXQBDTBG.js} +1 -1
- package/dist/cdn/{BIX5DRQP.js → E4OPUBGE.js} +1 -1
- package/dist/cdn/{NXX22DHX.js → E5A7A2YY.js} +1 -1
- package/dist/cdn/{47FRMYZ4.js → ECUD4NU6.js} +1 -1
- package/dist/cdn/EL34IIAJ.js +2 -0
- package/dist/cdn/{Y6JJY3IC.js → ERQAH6G3.js} +1 -1
- package/dist/cdn/{SXTON3QW.js → EWIPITVN.js} +1 -1
- package/dist/cdn/{7O4E4IAA.js → F6LBLCUM.js} +1 -1
- package/dist/cdn/{M6AOD7GG.js → FDNEF4QD.js} +1 -1
- package/dist/cdn/{SXEL7KTE.js → G772MFBV.js} +1 -1
- package/dist/cdn/{O4DB2EXV.js → GSLDFLWZ.js} +1 -1
- package/dist/cdn/{6GBSXKKJ.js → GSOMYPWB.js} +1 -1
- package/dist/cdn/{Q4UI3ZGH.js → GV3GU3O3.js} +1 -1
- package/dist/cdn/{PUYJYHQM.js → GYVIOOMC.js} +1 -1
- package/dist/cdn/{PM4EFNB2.js → HMZ4VIJQ.js} +1 -1
- package/dist/cdn/{G4V4JPFI.js → HOSSEVH5.js} +1 -1
- package/dist/cdn/{RRWG2OJP.js → HQIM7CQS.js} +1 -1
- package/dist/cdn/{IXRFWVBT.js → IGY23J7D.js} +1 -1
- package/dist/cdn/{56DNSWXG.js → IVMHEGLY.js} +1 -1
- package/dist/cdn/{F4MS4NQL.js → JB5XLSNA.js} +1 -1
- package/dist/cdn/{IAEFPE3L.js → JF2ASXUT.js} +1 -1
- package/dist/cdn/{7QKF26VG.js → JGSZS6VC.js} +1 -1
- package/dist/cdn/{D22STVK5.js → JKUPRPWA.js} +1 -1
- package/dist/cdn/{2TEBTKD4.js → K5EP7XDM.js} +1 -1
- package/dist/cdn/{BOFA5RH7.js → K6GC6RUA.js} +1 -1
- package/dist/cdn/{SJLSYFK3.js → KENYVRIH.js} +1 -1
- package/dist/cdn/{CLHUIZMU.js → KLFAQLC6.js} +1 -1
- package/dist/cdn/{5IDPOFIN.js → KLZWOBGK.js} +1 -1
- package/dist/cdn/{XQ7SXIHI.js → KPEPW4QL.js} +1 -1
- package/dist/cdn/{3JCHYXHA.js → KPKJ2OVD.js} +1 -1
- package/dist/cdn/{BHLMO6KY.js → KWOBLDUS.js} +1 -1
- package/dist/cdn/{463CZQF6.js → KXANPOG5.js} +1 -1
- package/dist/cdn/LADUP3BG.js +2 -0
- package/dist/cdn/{HOCCKT72.js → LIEHXKWK.js} +1 -1
- package/dist/cdn/{XKFX43FE.js → LKVPVQIC.js} +1 -1
- package/dist/cdn/{GUSPFJUQ.js → LQFA6HOT.js} +1 -1
- package/dist/cdn/{UCYR537P.js → LRGW6G5E.js} +1 -1
- package/dist/cdn/{H4LZV33O.js → LSMP2ZCO.js} +1 -1
- package/dist/cdn/{5LSNDSHW.js → M5VGNDPK.js} +1 -1
- package/dist/cdn/{NX7HKBFH.js → MHMM4RFR.js} +1 -1
- package/dist/cdn/{2RL6H5TB.js → MVSQRD5M.js} +1 -1
- package/dist/cdn/MXPZF4RB.js +2 -0
- package/dist/cdn/{ZHCAZ2TH.js → MZOWOFAE.js} +1 -1
- package/dist/cdn/{54A4C4RG.js → N5D7USS3.js} +1 -1
- package/dist/cdn/{7P57UVVG.js → NEZAEPUJ.js} +1 -1
- package/dist/cdn/{SSCE4O7V.js → NQP26Q5H.js} +1 -1
- package/dist/cdn/{3BG6WS6Q.js → NWNUNME7.js} +1 -1
- package/dist/cdn/{HM2QALUN.js → O6IGMQN7.js} +1 -1
- package/dist/cdn/{ZZZPISEE.js → ONAAPGO3.js} +1 -1
- package/dist/cdn/{NIYY6XUQ.js → OSOSX7F3.js} +1 -1
- package/dist/cdn/{QEUKNYOL.js → OTTBXOCQ.js} +1 -1
- package/dist/cdn/{UIZL3C3H.js → OU4VLS5H.js} +1 -1
- package/dist/cdn/{BT6SXXE2.js → OYMJFSWN.js} +1 -1
- package/dist/cdn/{MIV34H66.js → P2QNOVPZ.js} +1 -1
- package/dist/cdn/{SWY74BKB.js → P4ZYEBFM.js} +1 -1
- package/dist/cdn/{2AWUR4ZA.js → P734JXTN.js} +1 -1
- package/dist/cdn/{5N4KGIIY.js → PDJXTJHO.js} +1 -1
- package/dist/cdn/{4PDT6TEX.js → PEI3LZZL.js} +1 -1
- package/dist/cdn/{KTW6BSEC.js → PGFW2YO5.js} +1 -1
- package/dist/cdn/{SGQEHPTT.js → Q5LSIHQ4.js} +1 -1
- package/dist/cdn/{MDWJ6JLF.js → Q5XHG472.js} +1 -1
- package/dist/cdn/{BWWX52HV.js → Q6CXYCV6.js} +1 -1
- package/dist/cdn/{37P3IMFV.js → QKPUJ5CZ.js} +1 -1
- package/dist/cdn/{FQTDRS3G.js → QKQXW6OQ.js} +1 -1
- package/dist/cdn/{PLQEDCUG.js → QMQAQSIA.js} +1 -1
- package/dist/cdn/{FFZ2XVRE.js → QTCXH2O3.js} +1 -1
- package/dist/cdn/{4CSMWYIO.js → QWQ535RX.js} +1 -1
- package/dist/cdn/{RLYEATAS.js → R6ANOQU2.js} +1 -1
- package/dist/cdn/{KDDHPA54.js → R7DGMKJ5.js} +1 -1
- package/dist/cdn/{GFBJLNEH.js → RPUUOIRT.js} +1 -1
- package/dist/cdn/{EUI2Y6R4.js → RY7S2ICL.js} +1 -1
- package/dist/cdn/{5FWKODDH.js → S57RXN34.js} +1 -1
- package/dist/cdn/{GSR2GEY7.js → SD3DV4KO.js} +1 -1
- package/dist/cdn/{77753TPX.js → SEII6Y3C.js} +1 -1
- package/dist/cdn/{I4QWYULN.js → SUOJTOE2.js} +1 -1
- package/dist/cdn/{HIB4BVGK.js → SWUMBQ6T.js} +1 -1
- package/dist/cdn/{6WNKGSHD.js → TDDVICGP.js} +1 -1
- package/dist/cdn/{KRP5SGSU.js → US5ONKMV.js} +1 -1
- package/dist/cdn/{BXSBR2GT.js → V24CDHGH.js} +1 -1
- package/dist/cdn/{376KPQCJ.js → VEBBZ2RS.js} +1 -1
- package/dist/cdn/{XYKQ6M25.js → VIZY55AV.js} +1 -1
- package/dist/cdn/{KFRHOPZY.js → VNYXOWZX.js} +113 -113
- package/dist/cdn/{AZKNC2SR.js → VPHEAUEZ.js} +1 -1
- package/dist/cdn/{4SORDX5Z.js → VTRC64F6.js} +1 -1
- package/dist/cdn/{FSF3T3OT.js → VX3K6KJB.js} +1 -1
- package/dist/cdn/{FYJMHXWV.js → VXIWNY5G.js} +1 -1
- package/dist/cdn/{743J2ZUC.js → VZ2ZZK3Y.js} +1 -1
- package/dist/cdn/{X257ACPD.js → W3SEKNJO.js} +1 -1
- package/dist/cdn/{JHOJZDXC.js → WJRVHF3G.js} +1 -1
- package/dist/cdn/WNM5Z4SM.js +2 -0
- package/dist/cdn/{AIM7NSD3.js → WZHA7MTK.js} +1 -1
- package/dist/cdn/{VKHBBAXO.js → XA6ZDTKA.js} +1 -1
- package/dist/cdn/{X3YRR4BO.js → XDLYXP3W.js} +58 -58
- package/dist/cdn/{ARFBMFQW.js → XXRBPKMI.js} +1 -1
- package/dist/cdn/{INLWMPGE.js → XYAVR2MM.js} +1 -1
- package/dist/cdn/{6HZBPFHA.js → XYJU325L.js} +1 -1
- package/dist/cdn/{NNY2YF2L.js → Y3PEQHDX.js} +1 -1
- package/dist/cdn/{4RCC4KA2.js → Y7Z6LFBH.js} +1 -1
- package/dist/cdn/YJ3DKEEZ.js +2 -0
- package/dist/cdn/{HKFXHTYU.js → YVNBCXBJ.js} +1 -1
- package/dist/cdn/{VUXNHQGR.js → Z324WI3X.js} +1 -1
- package/dist/cdn/{A6ZTIX3P.js → ZSATEDPE.js} +1 -1
- package/dist/cdn/{LO35PCP7.js → ZX5GQTIE.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/converter.js +88 -88
- package/dist/chunks/interfaces.js +19 -19
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/solution-builder-assistant.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +331 -321
- package/dist/components/create-feature/customElement.js +23 -18
- package/dist/components/create-related-feature/customElement.js +8 -6
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-tools/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 +4 -7
- package/package.json +5 -5
- package/dist/cdn/E3F63VW4.js +0 -2
- package/dist/cdn/F7XCLL7U.js +0 -3
- package/dist/cdn/HIPZRG2Q.js +0 -2
- package/dist/cdn/IXPNZCW6.js +0 -2
- package/dist/cdn/J3SDL3LR.js +0 -2
- package/dist/cdn/KR2PPIBX.js +0 -2
- package/dist/cdn/QPHNKFC6.js +0 -2
- package/dist/cdn/S4GBMN37.js +0 -2
|
@@ -5,14 +5,14 @@ import { u as A } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { css as M, html as o, nothing as y } from "lit";
|
|
6
6
|
import { createRef as d, ref as h } from "lit-html/directives/ref.js";
|
|
7
7
|
import { LitElement as E, createEvent as c, noShadowRoot as k, safeClassMap as v } from "@arcgis/lumina";
|
|
8
|
-
import { p as
|
|
9
|
-
import
|
|
8
|
+
import { p as P } from "../../chunks/queryUtils.js";
|
|
9
|
+
import L from "@arcgis/core/form/ExpressionInfo.js";
|
|
10
10
|
import F from "@arcgis/core/layers/FeatureLayer.js";
|
|
11
11
|
import C from "@arcgis/core/form/elements/FieldElement.js";
|
|
12
12
|
import S from "@arcgis/core/form/FormTemplate.js";
|
|
13
13
|
import $ from "@arcgis/core/views/MapView.js";
|
|
14
14
|
import V from "@arcgis/core/Graphic.js";
|
|
15
|
-
import * as
|
|
15
|
+
import * as m from "@arcgis/core/core/reactiveUtils.js";
|
|
16
16
|
import * as R from "@arcgis/core/rest/locator.js";
|
|
17
17
|
import b from "@arcgis/core/request.js";
|
|
18
18
|
import * as T from "exifr";
|
|
@@ -128,10 +128,10 @@ class N extends E {
|
|
|
128
128
|
render() {
|
|
129
129
|
const e = this._currentPage === "loading" ? "" : "display-none", t = this.isMobile && this.updateMapPosition ? "show-map" : "display-none", i = this._inValidGeometryDrawn ? "danger" : "success", a = this._inValidGeometryDrawn ? "exclamation-mark-triangle" : "lightbulb", s = this.showLayerVisibilityMsg && this._currentPage === "templatePicker", r = (this.showGuidingMsg || s) && this._currentPage !== "loading" && this._currentPage !== "drawingMultipleFeatures";
|
|
130
130
|
let n = this._translations.chooseCategoryMsg;
|
|
131
|
-
const l = this._aiAnalysisInfo?.results?.filter((u) => !u.success && u.key !== _), p = l?.length ? !0 : this._analysisFailed,
|
|
131
|
+
const l = this._aiAnalysisInfo?.results?.filter((u) => !u.success && u.key !== _), p = l?.length ? !0 : this._analysisFailed, f = this._getAnalysisErrorMessage(l?.length), g = this._aiAnalysisInfo?.canUseAI && ["chooseReportType", "analyzingImage", "analyzingMessage", "imageUpload", "messageInput"].includes(this._currentPage);
|
|
132
132
|
return this._inValidGeometryDrawn ? n = this.reportingAreaMessage || this._translations.reportOutsideAreaMessage : this._currentPage === "drawing" || this._currentPage === "editing" ? n = this._translations.provideLocationMsg : this._currentPage === "featureForm" ? n = this._aiAnalysisInfo?.results?.filter((u) => u.success).length ? this._analysisMode === "text" ? this._translations.textReviewMsg : this._translations.formReviewMsg : this._translations.provideDetailsMsg : s && (n = this._translations.enableFeatureTemplatesMessage), o`${p && o`<calcite-alert auto-close icon=x-octagon kind=danger label @calciteAlertClose=${() => {
|
|
133
133
|
this._analysisFailed = !1;
|
|
134
|
-
}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${
|
|
134
|
+
}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${f}</div></calcite-alert>` || ""}${g && o`<calcite-panel>${this._currentPage === "chooseReportType" && this._getReportTypePage() || ""}${this._currentPage === "imageUpload" && this._aiImageExtractionPage() || ""}${this._currentPage === "messageInput" && this._aiTextExtractionPage() || ""}${this._currentPage === "analyzingImage" && this._getAnalyzingImagePage() || ""}${this._currentPage === "analyzingMessage" && this._getAnalyzingMessagePage() || ""}</calcite-panel>` || ""}${!g && o`${r && o`<calcite-notice class="notice-msg" .icon=${a} .kind=${i} open ${h(this._calciteNotice)}><div slot=message .innerHTML=${n ?? ""} ${h(this._guidingMessageRefNode)}></div></calcite-notice>` || ""}${this._selectedImageBase64 && this._currentPage === "featureForm" && o`<div class="image-preview-container"><calcite-label>${this._translations.photo}</calcite-label><img class="width-full" src=${this._selectedImageBase64 ?? y}></div>` || ""}<calcite-loader class=${v(e)} label scale=s></calcite-loader>${this._currentPage === "featureForm" && this.isMobile && o`<calcite-button appearance=transparent class="edit-location-btn" icon-start=pin @click=${this.editLocation}>${this._translations.editLocationLabel}</calcite-button>` || ""}${this._showSearchComponent && this._updatedMapView && this._selectedLayer && this._getSearchComponent() || ""}${this._getEditor()}` || ""}<div class=${v(t)} ${h(this._mapViewContainer)}></div>`;
|
|
135
135
|
}
|
|
136
136
|
async init() {
|
|
137
137
|
this.mapView && this.selectedLayerId && (this._updatedMapView = this.mapView, await (this.isMobile && this.updateMapPosition ? this.createMobileMapView() : this._loadLayerInfos()));
|
|
@@ -254,7 +254,7 @@ class N extends E {
|
|
|
254
254
|
longitude: r.longitude,
|
|
255
255
|
latitude: r.latitude,
|
|
256
256
|
spatialReference: new z({ wkid: 4326 })
|
|
257
|
-
}), l = await
|
|
257
|
+
}), l = await P(n, this.mapView.spatialReference);
|
|
258
258
|
this._aiAnalysisInfo && (this._aiAnalysisInfo.location = l);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
@@ -368,21 +368,26 @@ class N extends E {
|
|
|
368
368
|
}
|
|
369
369
|
async _onEditorPropertyChange() {
|
|
370
370
|
const e = this._editor.value;
|
|
371
|
-
e?.state && (this._drawingHandler || (this._drawingHandler =
|
|
371
|
+
e?.state && (this._drawingHandler || (this._drawingHandler = m.watch(() => e.state, async (t) => {
|
|
372
372
|
const i = this._editor.value?.activeWorkflow, a = i?.formViewModel;
|
|
373
373
|
if (t === "creating-features" && (a?.status === "not-loaded" || a?.state === "disabled") && (this._mapViewContainer.value?.classList.replace("hide-map", "show-map"), this._selectedLayer && !this._selectedLayer.isTable && (this._currentPage = "drawing", this.progressStatus.emit(50), i?.sketchViewModel?.createGraphic && this._aiAnalysisInfo?.location && (await this._goToAndWaitForStationary({ center: this._aiAnalysisInfo.location }), this._selectedLayer.geometryType === "point" && await this._initializeSketchPoint(this._aiAnalysisInfo.location.clone()))), this.isMobile && this._adjustPanelContentHeight(), this._searchRef.value && await this._searchRef.value.setFocus()), t === "adding-attachment" || t === "editing-attachment" ? (this._addingAttachment = !0, this.editingAttachment.emit(!0)) : this._addingAttachment && (this.editingAttachment.emit(!1), this._addingAttachment = !1), !this._featureFormHandler) {
|
|
374
374
|
const r = this._editor.value?.activeWorkflow?.formViewModel;
|
|
375
|
-
this._featureFormHandler =
|
|
376
|
-
this._currentPage !== "editing" &&
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
});
|
|
375
|
+
r.state ? this._featureFormHandler = m.watch(() => r?.state, (n) => {
|
|
376
|
+
this._currentPage !== "editing" && n === "ready" ? this.initFeatureFormPage() : this.allowMultipleCreation && this._currentPage !== "editing" && n === "disabled" && (this._currentPage = "drawingMultipleFeatures");
|
|
377
|
+
}) : r.status && (this._featureFormHandler = m.watch(() => r?.status, (n) => {
|
|
378
|
+
this._currentPage !== "editing" && n === "loaded" ? this.initFeatureFormPage() : this.allowMultipleCreation && this._currentPage !== "editing" && n === "not-loaded" && (this._currentPage = "drawingMultipleFeatures");
|
|
379
|
+
}));
|
|
380
380
|
}
|
|
381
|
-
this.allowMultipleCreation && e.activeWorkflow && (this._activeFeatureCountHandler || (this._activeFeatureCountHandler =
|
|
381
|
+
this.allowMultipleCreation && e.activeWorkflow && (this._activeFeatureCountHandler || (this._activeFeatureCountHandler = m.watch(() => e.activeWorkflow?.data?.viewModel?.activeFeatureCount, (s) => {
|
|
382
382
|
s === 0 && (this._currentPage = "drawing"), this.activeFeatureCountChange.emit(s);
|
|
383
383
|
})));
|
|
384
384
|
})), await this.hideEditorsElements());
|
|
385
385
|
}
|
|
386
|
+
initFeatureFormPage() {
|
|
387
|
+
this._mapViewContainer.value?.classList?.replace("show-map", "hide-map"), setTimeout(() => {
|
|
388
|
+
this._setFloorLevel(this.floorLevel), this._aiAnalysisInfo?.results && this._setAttributeValuesFromAIAnalysis();
|
|
389
|
+
}, 500), !this.allowMultipleCreation && this._editor.value?.activeWorkflow && (this._editor.value.activeWorkflow.data.creationInfo.maxFeatures = 1), this._currentPage = "featureForm", this.progressStatus.emit(100), this.drawComplete.emit(!1);
|
|
390
|
+
}
|
|
386
391
|
_adjustPanelContentHeight() {
|
|
387
392
|
setTimeout(() => {
|
|
388
393
|
const e = document.querySelector("arcgis-editor");
|
|
@@ -417,7 +422,7 @@ class N extends E {
|
|
|
417
422
|
animate: !0,
|
|
418
423
|
duration: this.isMobile ? 1200 : 800,
|
|
419
424
|
easing: "ease-in-out"
|
|
420
|
-
}), await
|
|
425
|
+
}), await m.whenOnce(() => t.stationary));
|
|
421
426
|
}
|
|
422
427
|
async _initializeSketchPoint(e) {
|
|
423
428
|
this.isMobile && await new Promise((s) => setTimeout(s, 1e3));
|
|
@@ -471,7 +476,7 @@ class N extends E {
|
|
|
471
476
|
const r = this._editor.value?.activeWorkflow?.formViewModel;
|
|
472
477
|
r.status === "loaded" ? await r.setValueForFieldName?.(a.name, e, r.features) : r.state === "ready" && r.setValue?.(a.name, e), a.editable = !1;
|
|
473
478
|
} else if (t.formTemplate && this.formElements) {
|
|
474
|
-
const s = new
|
|
479
|
+
const s = new L({
|
|
475
480
|
expression: `'${e}'`,
|
|
476
481
|
name: "floor-info-test",
|
|
477
482
|
title: "Floor Info",
|
|
@@ -488,12 +493,12 @@ class N extends E {
|
|
|
488
493
|
valueExpression: s.name
|
|
489
494
|
});
|
|
490
495
|
this._updatedMapView?.map.editableLayers.forEach((n) => {
|
|
491
|
-
const l = this.formElements.orgElements, p = this.formElements.orgExpressionInfos,
|
|
492
|
-
if (
|
|
496
|
+
const l = this.formElements.orgElements, p = this.formElements.orgExpressionInfos, f = [...l];
|
|
497
|
+
if (f.push(r), n.type === "feature") {
|
|
493
498
|
const g = n, u = new S({
|
|
494
499
|
title: g?.formTemplate?.title,
|
|
495
500
|
description: g?.formTemplate?.description,
|
|
496
|
-
elements:
|
|
501
|
+
elements: f,
|
|
497
502
|
expressionInfos: [s].concat(p)
|
|
498
503
|
});
|
|
499
504
|
n.formTemplate = u;
|
|
@@ -4,19 +4,21 @@ import { css as f, html as d } from "lit";
|
|
|
4
4
|
import { u as p } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as g, createEvent as n, noShadowRoot as b, safeClassMap as w } from "@arcgis/lumina";
|
|
6
6
|
import { createRef as y, ref as _ } from "lit-html/directives/ref.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as c from "@arcgis/core/core/reactiveUtils.js";
|
|
8
8
|
const v = f`@layer{:host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar,.display-none{display:none!important}.esri-editor__panel-content{padding-block:10px!important}.notice-msg{padding:10px;width:calc(100% - 20px)}}`;
|
|
9
9
|
class k extends g {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments), this.customizeSubmit = !1, this.enableSnapping = !1, this.showGuidingMsg = !0, this._editorLoading = !1, this._translations = p({ name: "create-related-feature", blocking: !0 }), this._addingAttachment = !1, this._editor = y(), this._isSubmitBtnClicked = !1, this.success = n(), this.fail = n(), this.isActionPending = n(), this.formReady = n(), this._onEditorPropertyChange = () => {
|
|
12
12
|
const t = this._editor.value;
|
|
13
13
|
if (t) {
|
|
14
|
-
|
|
14
|
+
c.watch(() => t.state, (e) => {
|
|
15
15
|
e === "adding-attachment" || e === "editing-attachment" ? (this._addingAttachment = !0, this.isActionPending.emit(!0)) : this._addingAttachment && (this.isActionPending.emit(!1), this._addingAttachment = !1);
|
|
16
16
|
});
|
|
17
17
|
const i = t.activeWorkflow?.formViewModel;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
i.state ? c.watch(() => i.state, (e) => {
|
|
19
|
+
e === "ready" && this.formReady.emit();
|
|
20
|
+
}) : i.status && c.watch(() => i.status, (e) => {
|
|
21
|
+
e === "loaded" && this.formReady.emit();
|
|
20
22
|
});
|
|
21
23
|
}
|
|
22
24
|
};
|
|
@@ -57,8 +59,8 @@ class k extends g {
|
|
|
57
59
|
template: l
|
|
58
60
|
};
|
|
59
61
|
await this._editor.value?.startCreateFeaturesWorkflowAtFeatureCreation(u), await this.hideEditorsElements();
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
+
const h = this._editor.value?.activeWorkflow?.formViewModel;
|
|
63
|
+
h && this._editor.value?.activeWorkflow?.formViewModel?.addHandles(h.on("submit", this.submitted.bind(this)));
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -632,7 +632,7 @@ class M extends A {
|
|
|
632
632
|
tempHighlightOnHover(e) {
|
|
633
633
|
if (this._removeTempHighlight(), this._selectedLayerView) {
|
|
634
634
|
const t = e.feature;
|
|
635
|
-
t && (this._temporaryFeatureHandle = this._selectedLayerView?.highlight([t], { name: "temporary" }));
|
|
635
|
+
t?.geometry && (this._temporaryFeatureHandle = this._selectedLayerView?.highlight([t], { name: "temporary" }));
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
_removeTempHighlight() {
|
|
@@ -74,7 +74,7 @@ class x extends L {
|
|
|
74
74
|
render() {
|
|
75
75
|
this._setZoomToolsSize();
|
|
76
76
|
const t = this.layout === "horizontal" ? "display-flex" : "", e = this._getToggleIcon(), s = !this._showTools && !this._showSelectionTools ? "display-none" : t, i = this._showEllipsisTools ? "" : "display-none", l = this._showSearchWidget ? "" : "display-none", o = this._showBasemapWidget ? "" : "display-none", c = this._showLegendWidget ? "" : "display-none", p = this._showFloorFilter ? "" : "display-none", d = this._showLayersListWidget ? "" : "display-none", g = this._showTools ? this._translations.collapse : this._translations.expand, f = !this.enableBasemap && !this.enableFullscreen && !this.enableLegend && !this.enableLayerList && !this.enableSearch && !this.enableMapPicker && !this.enableMapLayerPicker ? "display-none" : "", w = document.dir === "rtl" ? "margin-right-1-2" : "margin-left-1-2", u = this.enableSingleExpand ? this.layout === "horizontal" ? w : "margin-top-1-2" : "", y = this._ellipsisTools.length > 0 && this._showTools ? "" : "display-none", m = this.stackTools && this._ellipsisTools.length === 0 ? "box-shadow" : "", b = this._showSelectionTools ? this.selectionTools : this._mapTools;
|
|
77
|
-
return a`<div class=${`${f} ${t} height-0`}>${this.enableSingleExpand ? a`<div class=${h(m)}>${this._getActionGroup(e, !1, g || "", () => this._toggleTools())}</div>` : void 0}<div class=${`${u} ${m} ${s}`}>${this._getMapWidgets(b)}</div><div><div class=${h(y)}>${this._getActionGroup("ellipsis", !1, "", () => this._toggleEllipsisTools())}<div class=${h(i)}>${this._getMapWidgets(this._ellipsisTools)}</div></div></div></div><map-basemap-gallery .basemapConfig=${this.basemapConfig} class=${h(o)} .mapView=${this.mapView} ${r(this._basemapElement)}></map-basemap-gallery><map-search class=${h(l)} .mapView=${this.mapView} result-graphic-enabled .searchConfiguration=${this.searchConfiguration} ${r(this._searchElement)}></map-search><map-legend class=${h(c)} .mapView=${this.mapView} ${r(this._legendElement)}></map-legend><layer-list-widget class=${h(d)} .mapView=${this.mapView} .visibilityIcon=${this.visibilityIcon} ${r(this._layerListWidgetElement)}></layer-list-widget><map-floor-filter class=${h(p)} .enabled=${this.enableFloorFilter} .mapView=${this.mapView} ${r(this._floorFilterElement)}></map-floor-filter><selection-tool .mapView=${this.mapView} @drawingComplete=${() => {
|
|
77
|
+
return a`<div class=${`${f} ${t} height-0`}>${this.enableSingleExpand ? a`<div class=${h(m)}>${this._getActionGroup(e, !1, g || "", () => this._toggleTools())}</div>` : void 0}<div class=${`${u} ${m} ${s}`}>${this._getMapWidgets(b)}</div><div><div class=${h(y)}>${this._getActionGroup("ellipsis", !1, "", () => this._toggleEllipsisTools())}<div class=${h(i)}>${this._getMapWidgets(this._ellipsisTools)}</div></div></div></div><map-basemap-gallery .basemapConfig=${this.basemapConfig} class=${h(o)} .mapView=${this.mapView} ${r(this._basemapElement)}></map-basemap-gallery><map-search class=${h(l)} .mapView=${this.mapView} result-graphic-enabled .searchConfiguration=${this.searchConfiguration} ${r(this._searchElement)}></map-search><map-legend class=${h(c)} .mapView=${this.mapView} ${r(this._legendElement)}></map-legend><layer-list-widget class=${h(d)} .mapView=${this.mapView} .visibilityIcon=${this.visibilityIcon} ${r(this._layerListWidgetElement)}></layer-list-widget><map-floor-filter class=${h(p)} .enabled=${this.enableFloorFilter && this._hasFloorInfo} .mapView=${this.mapView} ${r(this._floorFilterElement)}></map-floor-filter><selection-tool .mapView=${this.mapView} @drawingComplete=${() => {
|
|
78
78
|
this._rectangleSelectionToolActive = !1, this._lassoSelectionToolActive = !1;
|
|
79
79
|
}} .selectedLayerId=${this.selectedLayer?.id} ${r(this._selectionToolElement)}></selection-tool>${this.enableMapPicker && a`<map-picker class=mapPickerClass .height=${(this.parentComponentHeight ?? 0) - 25} id=map-picker .mapInfos=${this.mapInfos} reference-element=map .selectedWebMapId=${this.selectedWebMapId} show-map-list-in-popover></map-picker>` || ""}${this.enableMapLayerPicker && this.selectedLayer && a`<map-layer-picker appearance=transparent .configLayerOrderDefined=${this.configLayerOrderDefined} .defaultLayerId=${this.defaultLayerId} .enabledLayerIds=${this.enabledLayerIds} .height=${(this.parentComponentHeight ?? 0) - 25} .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} reference-element=layers scale=s .selectedIds=${this.selectedLayer ? [this.selectedLayer.id] : []} show-layers-list-in-popover show-tables type=dropdown></map-layer-picker>` || ""}`;
|
|
80
80
|
}
|