@esri/solutions-components 5.1.0 → 5.1.2

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.
Files changed (173) hide show
  1. package/dist/cdn/{NXX22DHX.js → 3CSSTWYC.js} +1 -1
  2. package/dist/cdn/{BT6SXXE2.js → 3DNEBMT3.js} +1 -1
  3. package/dist/cdn/{4SORDX5Z.js → 3FIRDPVD.js} +1 -1
  4. package/dist/cdn/{5UW2NTSN.js → 3KYCZII7.js} +1 -1
  5. package/dist/cdn/{MIV34H66.js → 3NI2BJYO.js} +1 -1
  6. package/dist/cdn/{G2H3X6NS.js → 3W7ANZME.js} +1 -1
  7. package/dist/cdn/{CVXDL2AT.js → 4MAH5ULJ.js} +1 -1
  8. package/dist/cdn/{SWY74BKB.js → 4RH7N22O.js} +1 -1
  9. package/dist/cdn/{RCWYHGZ5.js → 5F6WBFDO.js} +1 -1
  10. package/dist/cdn/{TWN7DOAU.js → 5FW45CM6.js} +1 -1
  11. package/dist/cdn/{5FWKODDH.js → 5IO4VX4R.js} +1 -1
  12. package/dist/cdn/{463CZQF6.js → 5Q64VY2E.js} +1 -1
  13. package/dist/cdn/{TWJ6DAY5.js → 65I4AUS4.js} +1 -1
  14. package/dist/cdn/{54A4C4RG.js → 65OXHGCN.js} +1 -1
  15. package/dist/cdn/{LGWAEUZM.js → 6F6YFDOY.js} +1 -1
  16. package/dist/cdn/{KTW6BSEC.js → 6KBY56R4.js} +1 -1
  17. package/dist/cdn/{6HZBPFHA.js → 6L6JOGWD.js} +1 -1
  18. package/dist/cdn/{MDWJ6JLF.js → 6OKLCUSH.js} +1 -1
  19. package/dist/cdn/{LV5KMTCD.js → 6RQBPR56.js} +1 -1
  20. package/dist/cdn/{Y6JJY3IC.js → 74Z5A6E2.js} +1 -1
  21. package/dist/cdn/{JHOJZDXC.js → 7AHZBLTM.js} +1 -1
  22. package/dist/cdn/{KSIYOSLP.js → 7EJXZVSX.js} +1 -1
  23. package/dist/cdn/{BOFA5RH7.js → 7NQYBMRX.js} +1 -1
  24. package/dist/cdn/{HIB4BVGK.js → 7XPOQHB4.js} +1 -1
  25. package/dist/cdn/A4KEZALJ.js +2 -0
  26. package/dist/cdn/{OYRMCWNZ.js → AS7PVOU3.js} +1 -1
  27. package/dist/cdn/{TZHRYPII.js → B7CVHLVL.js} +1 -1
  28. package/dist/cdn/{LO35PCP7.js → BFFHQBDI.js} +1 -1
  29. package/dist/cdn/{MKSUYITL.js → BKIKLE4Z.js} +1 -1
  30. package/dist/cdn/{WNVC3PSY.js → BWNEUQZZ.js} +1 -1
  31. package/dist/cdn/{KFRHOPZY.js → BZWJ3KFS.js} +129 -129
  32. package/dist/cdn/{SEG43OPO.js → C2GWD5VP.js} +1 -1
  33. package/dist/cdn/{KRP5SGSU.js → C3SIGIJC.js} +1 -1
  34. package/dist/cdn/CC7JGR5Q.js +2 -0
  35. package/dist/cdn/{KDDHPA54.js → CKPQTIAF.js} +1 -1
  36. package/dist/cdn/{VUXNHQGR.js → CRTJERAB.js} +1 -1
  37. package/dist/cdn/{5X43GK3C.js → CVKCFLNY.js} +1 -1
  38. package/dist/cdn/{VPXGD2H4.js → CVNW2AU2.js} +1 -1
  39. package/dist/cdn/{X3YRR4BO.js → CXTHIJOC.js} +65 -73
  40. package/dist/cdn/{RLYEATAS.js → DE7GSGUB.js} +1 -1
  41. package/dist/cdn/{YUI2MSOK.js → DEVAXAP7.js} +1 -1
  42. package/dist/cdn/{2TEBTKD4.js → DF2U7HIU.js} +1 -1
  43. package/dist/cdn/{7P57UVVG.js → DLV7AZZ6.js} +1 -1
  44. package/dist/cdn/DQJ36YEL.js +2 -0
  45. package/dist/cdn/{ZHCAZ2TH.js → DXI5HEQM.js} +1 -1
  46. package/dist/cdn/E3O6DPAL.js +2 -0
  47. package/dist/cdn/{X257ACPD.js → E5YZOOW3.js} +1 -1
  48. package/dist/cdn/{I4QWYULN.js → EBDDUQNC.js} +1 -1
  49. package/dist/cdn/{47FRMYZ4.js → ECUD4NU6.js} +1 -1
  50. package/dist/cdn/{EUI2Y6R4.js → EHIUCEAX.js} +1 -1
  51. package/dist/cdn/{AIM7NSD3.js → EJRV6YWD.js} +1 -1
  52. package/dist/cdn/EX4K4RKP.js +2 -0
  53. package/dist/cdn/{M6AOD7GG.js → FDNEF4QD.js} +1 -1
  54. package/dist/cdn/{Y2MAVMNV.js → FSFVH74N.js} +1 -1
  55. package/dist/cdn/{XYKQ6M25.js → GHVPHEOH.js} +1 -1
  56. package/dist/cdn/GPIIJWNM.js +2 -0
  57. package/dist/cdn/{BHLMO6KY.js → GRVDJVOF.js} +1 -1
  58. package/dist/cdn/{2AWUR4ZA.js → GSI62QHB.js} +1 -1
  59. package/dist/cdn/{O4DB2EXV.js → GSLDFLWZ.js} +1 -1
  60. package/dist/cdn/{3A3CPQX4.js → GWIC6C6P.js} +1 -1
  61. package/dist/cdn/{2R7Y2ZVX.js → GZZMHIFA.js} +1 -1
  62. package/dist/cdn/{G4V4JPFI.js → HOSSEVH5.js} +1 -1
  63. package/dist/cdn/{6WNKGSHD.js → HQFL3NGM.js} +1 -1
  64. package/dist/cdn/{IXRFWVBT.js → IGY23J7D.js} +1 -1
  65. package/dist/cdn/{FQTDRS3G.js → INFZEU32.js} +1 -1
  66. package/dist/cdn/{56DNSWXG.js → IVMHEGLY.js} +1 -1
  67. package/dist/cdn/{SGQEHPTT.js → J7DTCWOP.js} +1 -1
  68. package/dist/cdn/{F4MS4NQL.js → JB5XLSNA.js} +1 -1
  69. package/dist/cdn/{IAEFPE3L.js → JF2ASXUT.js} +1 -1
  70. package/dist/cdn/{6GBSXKKJ.js → KB7CXY4N.js} +1 -1
  71. package/dist/cdn/{5IDPOFIN.js → KLZWOBGK.js} +1 -1
  72. package/dist/cdn/{UIZL3C3H.js → KMY4AVEA.js} +1 -1
  73. package/dist/cdn/{XQ7SXIHI.js → KPEPW4QL.js} +1 -1
  74. package/dist/cdn/{3JCHYXHA.js → KPKJ2OVD.js} +1 -1
  75. package/dist/cdn/{SJLSYFK3.js → L6XSVTY3.js} +1 -1
  76. package/dist/cdn/LCDURBN6.js +3 -0
  77. package/dist/cdn/{D22STVK5.js → LFIP5DV3.js} +1 -1
  78. package/dist/cdn/{5N4KGIIY.js → LK6WQCXQ.js} +1 -1
  79. package/dist/cdn/{XKFX43FE.js → LKVPVQIC.js} +1 -1
  80. package/dist/cdn/{GUSPFJUQ.js → LQFA6HOT.js} +1 -1
  81. package/dist/cdn/{UCYR537P.js → LRGW6G5E.js} +1 -1
  82. package/dist/cdn/{ZZZPISEE.js → LSDYUCCZ.js} +1 -1
  83. package/dist/cdn/{H4LZV33O.js → LSMP2ZCO.js} +1 -1
  84. package/dist/cdn/{376KPQCJ.js → LXJI7FYN.js} +1 -1
  85. package/dist/cdn/{NX7HKBFH.js → MHMM4RFR.js} +1 -1
  86. package/dist/cdn/{2RL6H5TB.js → MVSQRD5M.js} +1 -1
  87. package/dist/cdn/{PIAGRMMB.js → MVXK7UGO.js} +47 -47
  88. package/dist/cdn/MXPZF4RB.js +2 -0
  89. package/dist/cdn/{HOCCKT72.js → MZ5XI2CY.js} +1 -1
  90. package/dist/cdn/{3BG6WS6Q.js → NIUKLQOT.js} +1 -1
  91. package/dist/cdn/{BI3I22IR.js → NJSQ3NUT.js} +3 -3
  92. package/dist/cdn/{SXEL7KTE.js → NVNB4L52.js} +1 -1
  93. package/dist/cdn/{CLHUIZMU.js → NWOPIQFN.js} +1 -1
  94. package/dist/cdn/{5LSNDSHW.js → O6HS2AMH.js} +1 -1
  95. package/dist/cdn/{HM2QALUN.js → O6IGMQN7.js} +1 -1
  96. package/dist/cdn/{RRWG2OJP.js → OPWMEQVM.js} +1 -1
  97. package/dist/cdn/{FSF3T3OT.js → OVAQRVFG.js} +1 -1
  98. package/dist/cdn/{PM4EFNB2.js → P2FSR5OV.js} +1 -1
  99. package/dist/cdn/{BIX5DRQP.js → PQVA7SKB.js} +1 -1
  100. package/dist/cdn/{4CSMWYIO.js → PSM4UX7K.js} +1 -1
  101. package/dist/cdn/{SXTON3QW.js → Q5N7I65T.js} +1 -1
  102. package/dist/cdn/{BWWX52HV.js → Q6CXYCV6.js} +1 -1
  103. package/dist/cdn/{PLQEDCUG.js → QMQAQSIA.js} +1 -1
  104. package/dist/cdn/{GFBJLNEH.js → QODVIACF.js} +1 -1
  105. package/dist/cdn/{FFZ2XVRE.js → QTCXH2O3.js} +1 -1
  106. package/dist/cdn/{FYJMHXWV.js → QVD3AXIP.js} +1 -1
  107. package/dist/cdn/{6FY64JKN.js → RAL6IXW5.js} +1 -1
  108. package/dist/cdn/{NNY2YF2L.js → RJLEYL7O.js} +1 -1
  109. package/dist/cdn/{7QKF26VG.js → RNNEZRGA.js} +1 -1
  110. package/dist/cdn/{77753TPX.js → RPL5Q7IL.js} +1 -1
  111. package/dist/cdn/{4PDT6TEX.js → RQVXDCWL.js} +1 -1
  112. package/dist/cdn/{GSR2GEY7.js → SD3DV4KO.js} +1 -1
  113. package/dist/cdn/SQEPSAKG.js +2 -0
  114. package/dist/cdn/{V5UJ5VTY.js → T7O4WZGU.js} +1 -1
  115. package/dist/cdn/{7O4E4IAA.js → UDWEFNJE.js} +1 -1
  116. package/dist/cdn/{AZKNC2SR.js → UILBHLN7.js} +1 -1
  117. package/dist/cdn/{BXSBR2GT.js → V24CDHGH.js} +1 -1
  118. package/dist/cdn/{DIBK4RSG.js → VSRNGZ43.js} +1 -1
  119. package/dist/cdn/{R27S3IDW.js → WNYAZ4ME.js} +1 -1
  120. package/dist/cdn/{PUYJYHQM.js → WRMREY3V.js} +1 -1
  121. package/dist/cdn/{EWS72RFR.js → WVCL5OUK.js} +1 -1
  122. package/dist/cdn/{VKHBBAXO.js → XA6ZDTKA.js} +1 -1
  123. package/dist/cdn/{37P3IMFV.js → XIUYVZYL.js} +1 -1
  124. package/dist/cdn/{ARFBMFQW.js → XXRBPKMI.js} +1 -1
  125. package/dist/cdn/{INLWMPGE.js → XYAVR2MM.js} +1 -1
  126. package/dist/cdn/{743J2ZUC.js → Y2KRCLNN.js} +1 -1
  127. package/dist/cdn/{4RCC4KA2.js → Y7Z6LFBH.js} +1 -1
  128. package/dist/cdn/{GMAAQEP7.js → YBJ6AHAG.js} +1 -1
  129. package/dist/cdn/{QEUKNYOL.js → YHF3Q7QB.js} +1 -1
  130. package/dist/cdn/{HKFXHTYU.js → YVNBCXBJ.js} +1 -1
  131. package/dist/cdn/{Q4UI3ZGH.js → Z6CZ7GFZ.js} +1 -1
  132. package/dist/cdn/ZB5UCRCG.js +2 -0
  133. package/dist/cdn/{SSCE4O7V.js → ZHVO477V.js} +1 -1
  134. package/dist/cdn/{A6ZTIX3P.js → ZSATEDPE.js} +1 -1
  135. package/dist/cdn/{NIYY6XUQ.js → ZXGNDW3R.js} +1 -1
  136. package/dist/cdn/index.js +1 -1
  137. package/dist/chunks/converter.js +88 -88
  138. package/dist/chunks/interfaces.js +19 -19
  139. package/dist/chunks/runtime.js +2 -2
  140. package/dist/chunks/solution-builder-assistant.js +1 -1
  141. package/dist/components/arcgis-solutions-assistant/customElement.js +374 -358
  142. package/dist/components/create-feature/customElement.js +23 -18
  143. package/dist/components/create-related-feature/customElement.js +8 -6
  144. package/dist/components/crowdsource-manager/customElement.d.ts +0 -6
  145. package/dist/components/crowdsource-manager/customElement.js +14 -11
  146. package/dist/components/layer-table/customElement.js +3 -3
  147. package/dist/components/map-tools/customElement.js +1 -1
  148. package/dist/docs/api.json +1 -1
  149. package/dist/docs/docs.json +1 -1
  150. package/dist/docs/vscode.html-custom-data.json +1 -1
  151. package/dist/docs/web-types.json +1 -1
  152. package/dist/loader.js +1 -1
  153. package/dist/solutions-components_commit.txt +6 -6
  154. package/dist/types/lumina.d.ts +1 -1
  155. package/dist/types/preact.d.ts +1 -1
  156. package/dist/types/react.d.ts +1 -1
  157. package/dist/types/stencil.d.ts +1 -1
  158. package/dist/utils/interfaces.d.ts +1 -0
  159. package/package.json +5 -7
  160. package/dist/cdn/E3F63VW4.js +0 -2
  161. package/dist/cdn/F7XCLL7U.js +0 -3
  162. package/dist/cdn/FSHV53TK.js +0 -2
  163. package/dist/cdn/HIPZRG2Q.js +0 -2
  164. package/dist/cdn/IXPNZCW6.js +0 -2
  165. package/dist/cdn/J3SDL3LR.js +0 -2
  166. package/dist/cdn/JO6WZKYF.js +0 -2
  167. package/dist/cdn/KR2PPIBX.js +0 -2
  168. package/dist/cdn/OGH565H7.js +0 -3
  169. package/dist/cdn/QH343537.js +0 -56
  170. package/dist/cdn/QPHNKFC6.js +0 -2
  171. package/dist/cdn/S4GBMN37.js +0 -2
  172. package/dist/cdn/UUKV62PY.js +0 -109
  173. package/dist/cdn/ZPEVEBJD.js +0 -121
@@ -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 L } from "../../chunks/queryUtils.js";
9
- import P from "@arcgis/core/form/ExpressionInfo.js";
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 f from "@arcgis/core/core/reactiveUtils.js";
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, m = this._getAnalysisErrorMessage(l?.length), g = this._aiAnalysisInfo?.canUseAI && ["chooseReportType", "analyzingImage", "analyzingMessage", "imageUpload", "messageInput"].includes(this._currentPage);
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>${m}</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>`;
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 L(n, this.mapView.spatialReference);
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 = f.watch(() => e.state, async (t) => {
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 = f.watch(() => r?.status !== void 0 ? r?.status : r?.state, (n) => {
376
- this._currentPage !== "editing" && (n === "loaded" || n === "ready") ? (this._mapViewContainer.value?.classList?.replace("show-map", "hide-map"), setTimeout(() => {
377
- this._setFloorLevel(this.floorLevel), this._aiAnalysisInfo?.results && this._setAttributeValuesFromAIAnalysis();
378
- }, 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)) : this.allowMultipleCreation && this._currentPage !== "editing" && (n === "not-loaded" || n === "disabled") && (this._currentPage = "drawingMultipleFeatures");
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 = f.watch(() => e.activeWorkflow?.data?.viewModel?.activeFeatureCount, (s) => {
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 f.whenOnce(() => t.stationary));
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 P({
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, m = [...l];
492
- if (m.push(r), n.type === "feature") {
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: m,
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 h from "@arcgis/core/core/reactiveUtils.js";
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
- h.watch(() => t.state, (e) => {
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
- h.watch(() => i?.status !== "undefined" ? i.status : i.state, (e) => {
19
- (e === "loaded" || e === "ready") && this.formReady.emit();
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 c = this._editor.value?.activeWorkflow?.formViewModel;
61
- c && this._editor.value?.activeWorkflow?.formViewModel?.addHandles(c.on("submit", this.submitted.bind(this)));
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
  }
@@ -123,12 +123,6 @@ export abstract class CrowdsourceManager extends LitElement {
123
123
  * @default true
124
124
  */
125
125
  accessor enableColumnReorder: boolean;
126
- /**
127
- * boolean: when true the copy and paste actions will be available
128
- *
129
- * @default true
130
- */
131
- accessor enableCopyPaste: boolean;
132
126
  /**
133
127
  * boolean: when true the export to csv button will be available
134
128
  *
@@ -4,16 +4,16 @@ import { g as $ } from "../../chunks/mapViewUtils.js";
4
4
  import { defineCustomElements as v } from "@arcgis/instant-apps-components/dist/loader";
5
5
  import { u as C } from "../../chunks/useT9n.js";
6
6
  import { css as I, html as s, nothing as L } from "lit";
7
- import { createRef as c, ref as u } from "lit-html/directives/ref.js";
8
- import { LitElement as M, createEvent as _, noShadowRoot as x, safeClassMap as b, safeStyleMap as T } from "@arcgis/lumina";
7
+ import { createRef as p, ref as u } from "lit-html/directives/ref.js";
8
+ import { LitElement as M, createEvent as _, noShadowRoot as x, safeClassMap as f, safeStyleMap as T } from "@arcgis/lumina";
9
9
  import { setupViewFocusKeyboardWatcher as S } from "templates-common-library/functionality/keyboardUtils";
10
10
  const F = I`@layer{:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-surface-2)}.padding-1-2{padding:.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.z-index-2{z-index:2!important}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-top{border-top:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none!important}.adjusted-height-50_25{height:calc(50% + 25px)}.display-grid{display:grid}.padding-inline-start-75{padding-inline-start:.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button,.esri-floor-filter__level-button,.esri-floor-filter__browse-button{width:40px!important;height:40px!important}.position-absolute-0{position:absolute;inset:0}.visibility-hidden{visibility:hidden;height:0px}.border-width-0{border-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;margin:100px 0;z-index:1}.left-0{left:0}.right-0{right:0}.floating-container .floating-button{box-shadow:0 10px 25px #5c5d5e99;-webkit-transform:translatey(5px);transform:translatey(5px);-webkit-transition:all .3s;transition:all .3s}.z-index-0{z-index:0!important}.z-index-1{z-index:1!important}.filter-content-space{--calcite-dialog-content-space: 0px}.background-dark{background:var(--calcite-color-surface-1)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`;
11
11
  class V extends M {
12
12
  constructor() {
13
- super(), this.coverPageEnabled = !1, this.customInfoText = "", this.defaultCenter = "", this.defaultGlobalId = "", this.defaultLayer = "", this.defaultLevel = "", this.defaultOid = "", this.defaultWebmap = "", this.honorMapFieldSettings = !1, this.introductionWindowEnabled = !1, this.enableAutoRefresh = !1, this.enableBasemap = !0, this.enableColumnReorder = !0, this.enableCSV = !0, this.enableFloorFilter = !0, this.enableFullscreen = !0, this.enableHome = !0, this.enableLegend = !0, this.enableLayerList = !0, this.enableMapList = !0, this.visibilityIcon = "eyeball", this.enableSearch = !0, this.enableShare = !1, this.enableSnapping = !0, this.enableZoom = !0, this.mapInfos = [], this.onlyShowUpdatableLayers = !1, this.popupHeaderColor = "", this.popupHeaderHoverColor = "", this.popupHeaderHoverTextColor = "", this.popupHeaderTextColor = "", this.shareIncludeEmbed = !1, this.shareIncludeSocial = !1, this.showNewestFirst = !0, this.theme = "light", this.zoomAndScrollToSelected = !1, this.enableSelectionTool = !0, this.featureSelectionMode = "multiple", this.enableCopyPaste = !0, this._deleteDialogOpen = !1, this._enableCreateFeatures = !0, this._hideFooter = !1, this._hideTable = !1, this._isMobile = !1, this._translations = C({ name: "crowdsource-manager", blocking: !0 }), this._layoutMode = "GRID", this._panelOpen = !0, this._numSelected = 0, this._filterOpen = !1, this._showInformationHeader = !0, this._layerExpressions = [], this._layerIds = [], this._isLoading = !0, this._mapExtentFilterChecked = !1, this._deleteIds = [], this._showInvalidMapAlert = !1, this._currentMapInfos = [], this._pasteEnabled = !1, this._showCopyPasteActions = !1, this._defaultAppLayoutHonored = !1, this._defaultCenterHonored = !1, this._defaultLevelHonored = !1, this._layerTable = c(), this._shouldSetMapView = !1, this._filterList = c(), this._mapCard = c(), this._isMapViewOnLoad = !1, this.showIntroductionWindow = _(), this.showCoverPage = _(), this.listenOn(window, "featureSelectionChange", this.featureSelectionChange), this.listenOn(window, "popupClosed", this.popupClosed), this.listenOn(window, "layoutChanged", this.layoutChanged), this.listenOn(window, "mapChanged", this.mapChanged), this.listenOn(window, "layerSelectionChange", this.layerSelectionChange), this.listenOn(window, "showDelete", this.showDelete), this.listenOn(window, "noLayersFound", this.noLayersFound), this.listenOn(window, "clearSelection", this.clearSelection), this.listenOn(window, "relatedRecordToggled", this.relatedRecordToggled), this.listenOn(window, "creatingFeature", this.creatingFeature), this.listenOn(window, "featuresCopied", this.featuresCopied), this.listenOn(window, "disablePaste", this.disablePaste), this.listenOn(window, "idsFound", this.idsFound), v(window);
13
+ super(), this.coverPageEnabled = !1, this.customInfoText = "", this.defaultCenter = "", this.defaultGlobalId = "", this.defaultLayer = "", this.defaultLevel = "", this.defaultOid = "", this.defaultWebmap = "", this.honorMapFieldSettings = !1, this.introductionWindowEnabled = !1, this.enableAutoRefresh = !1, this.enableBasemap = !0, this.enableColumnReorder = !0, this.enableCSV = !0, this.enableFloorFilter = !0, this.enableFullscreen = !0, this.enableHome = !0, this.enableLegend = !0, this.enableLayerList = !0, this.enableMapList = !0, this.visibilityIcon = "eyeball", this.enableSearch = !0, this.enableShare = !1, this.enableSnapping = !0, this.enableZoom = !0, this.mapInfos = [], this.onlyShowUpdatableLayers = !1, this.popupHeaderColor = "", this.popupHeaderHoverColor = "", this.popupHeaderHoverTextColor = "", this.popupHeaderTextColor = "", this.shareIncludeEmbed = !1, this.shareIncludeSocial = !1, this.showNewestFirst = !0, this.theme = "light", this.zoomAndScrollToSelected = !1, this.enableSelectionTool = !0, this.featureSelectionMode = "multiple", this._deleteDialogOpen = !1, this._enableCreateFeatures = !0, this._hideFooter = !1, this._hideTable = !1, this._isMobile = !1, this._translations = C({ name: "crowdsource-manager", blocking: !0 }), this._layoutMode = "GRID", this._panelOpen = !0, this._numSelected = 0, this._filterOpen = !1, this._showInformationHeader = !0, this._layerExpressions = [], this._layerIds = [], this._isLoading = !0, this._mapExtentFilterChecked = !1, this._deleteIds = [], this._showInvalidMapAlert = !1, this._currentMapInfos = [], this._pasteEnabled = !1, this._showCopyPasteActions = !1, this._defaultAppLayoutHonored = !1, this._defaultCenterHonored = !1, this._defaultLevelHonored = !1, this._layerTable = p(), this._shouldSetMapView = !1, this._filterList = p(), this._mapCard = p(), this._isMapViewOnLoad = !1, this.showIntroductionWindow = _(), this.showCoverPage = _(), this.listenOn(window, "featureSelectionChange", this.featureSelectionChange), this.listenOn(window, "popupClosed", this.popupClosed), this.listenOn(window, "layoutChanged", this.layoutChanged), this.listenOn(window, "mapChanged", this.mapChanged), this.listenOn(window, "layerSelectionChange", this.layerSelectionChange), this.listenOn(window, "showDelete", this.showDelete), this.listenOn(window, "noLayersFound", this.noLayersFound), this.listenOn(window, "clearSelection", this.clearSelection), this.listenOn(window, "relatedRecordToggled", this.relatedRecordToggled), this.listenOn(window, "creatingFeature", this.creatingFeature), this.listenOn(window, "featuresCopied", this.featuresCopied), this.listenOn(window, "disablePaste", this.disablePaste), this.listenOn(window, "idsFound", this.idsFound), v(window);
14
14
  }
15
15
  static {
16
- this.properties = { appLayout: 1, appProxies: 1, basemapConfig: 0, coverPageEnabled: 5, customInfoText: 1, defaultAppLayout: 1, defaultCenter: 1, defaultGlobalId: 1, defaultLayer: 1, defaultLevel: 1, defaultOid: 1, defaultWebmap: 1, honorMapFieldSettings: 5, introductionWindowEnabled: 5, enableAutoRefresh: 5, enableBasemap: 5, enableColumnReorder: 5, enableCSV: 5, enableFloorFilter: 5, enableFullscreen: 5, enableHome: 5, enableLegend: 5, enableLayerList: 5, enableMapList: 5, visibilityIcon: 1, enableSearch: 5, enableShare: 5, enableSnapping: 5, enableZoom: 5, mapInfos: 0, onlyShowUpdatableLayers: 5, popupHeaderColor: 1, popupHeaderHoverColor: 1, popupHeaderHoverTextColor: 1, popupHeaderTextColor: 1, searchConfiguration: 0, shareIncludeEmbed: 5, shareIncludeSocial: 5, showNewestFirst: 5, theme: 1, zoomAndScrollToSelected: 5, zoomToScale: 9, enableSelectionTool: 5, featureSelectionMode: 1, enableCopyPaste: 5, _deleteDialogOpen: 16, _enableCreateFeatures: 16, _hideFooter: 16, _hideTable: 16, _isMobile: 16, _translations: 16, _layer: 16, _layoutMode: 16, _mapInfo: 16, _mapView: 16, _panelOpen: 16, _numSelected: 16, _filterOpen: 16, _showInformationHeader: 16, _layerExpressions: 16, _layerIds: 16, _isLoading: 16, _mapExtentFilterChecked: 16, _deleteIds: 16, _showInvalidMapAlert: 16, _currentMapInfos: 16, _pasteEnabled: 16, _showCopyPasteActions: 16 };
16
+ this.properties = { appLayout: 1, appProxies: 1, basemapConfig: 0, coverPageEnabled: 5, customInfoText: 1, defaultAppLayout: 1, defaultCenter: 1, defaultGlobalId: 1, defaultLayer: 1, defaultLevel: 1, defaultOid: 1, defaultWebmap: 1, honorMapFieldSettings: 5, introductionWindowEnabled: 5, enableAutoRefresh: 5, enableBasemap: 5, enableColumnReorder: 5, enableCSV: 5, enableFloorFilter: 5, enableFullscreen: 5, enableHome: 5, enableLegend: 5, enableLayerList: 5, enableMapList: 5, visibilityIcon: 1, enableSearch: 5, enableShare: 5, enableSnapping: 5, enableZoom: 5, mapInfos: 0, onlyShowUpdatableLayers: 5, popupHeaderColor: 1, popupHeaderHoverColor: 1, popupHeaderHoverTextColor: 1, popupHeaderTextColor: 1, searchConfiguration: 0, shareIncludeEmbed: 5, shareIncludeSocial: 5, showNewestFirst: 5, theme: 1, zoomAndScrollToSelected: 5, zoomToScale: 9, enableSelectionTool: 5, featureSelectionMode: 1, _deleteDialogOpen: 16, _enableCreateFeatures: 16, _hideFooter: 16, _hideTable: 16, _isMobile: 16, _translations: 16, _layer: 16, _layoutMode: 16, _mapInfo: 16, _mapView: 16, _panelOpen: 16, _numSelected: 16, _filterOpen: 16, _showInformationHeader: 16, _layerExpressions: 16, _layerIds: 16, _isLoading: 16, _mapExtentFilterChecked: 16, _deleteIds: 16, _showInvalidMapAlert: 16, _currentMapInfos: 16, _pasteEnabled: 16, _showCopyPasteActions: 16 };
17
17
  }
18
18
  static {
19
19
  this.styles = F;
@@ -22,7 +22,7 @@ class V extends M {
22
22
  this.shadowRootOptions = x;
23
23
  }
24
24
  willUpdate(e) {
25
- e.has("appLayout") && this.appLayout && this.appLayoutWatchHandler(this.appLayout, e.get("appLayout")), e.has("enableZoom") && (this.hasUpdated || this.enableZoom !== !0) && this.enableZoomWatchHandler(), e.has("mapInfos") && this.hasUpdated && this.mapInfosWatchHandler(), e.has("_isMobile") && this.hasUpdated && this._handleCopyPasteActions(), e.has("enableCopyPaste") && this.hasUpdated && this._handleCopyPasteActions();
25
+ e.has("appLayout") && this.appLayout && this.appLayoutWatchHandler(this.appLayout, e.get("appLayout")), e.has("enableZoom") && (this.hasUpdated || this.enableZoom !== !0) && this.enableZoomWatchHandler(), e.has("mapInfos") && this.hasUpdated && this.mapInfosWatchHandler(), e.has("_isMobile") && this.hasUpdated && this._handleCopyPasteActions();
26
26
  }
27
27
  appLayoutWatchHandler(e, t) {
28
28
  e !== t && (this._layerTable.value?.validateTableUpdate(e === "splitView"), this._setActiveLayout(e), this.appLayout === "mapView" && this._layer?.isTable && this._mapCard.value && this._mapCard.value.updateLayer(), this._isMapViewOnLoad && this._layerTable.value && this._layerTable.value.refresh());
@@ -83,7 +83,7 @@ class V extends M {
83
83
  }
84
84
  render() {
85
85
  const e = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "", t = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light", i = this._translations.invalidWebMapMsg?.replace("{{web_map}}", this._mapInfo?.name || "");
86
- return s`${this._showInvalidMapAlert && s`<calcite-alert auto-close class=${b(t)} icon=check-circle kind=danger label @calciteAlertClose=${() => {
86
+ return s`${this._showInvalidMapAlert && s`<calcite-alert auto-close class=${f(t)} icon=check-circle kind=danger label @calciteAlertClose=${() => {
87
87
  this._showInvalidMapAlert = !1;
88
88
  }} open placement=top><div slot=message>${i}</div></calcite-alert>` || ""}<calcite-shell class="position-relative"><calcite-panel class=${`width-full height-full ${e}`} .loading=${this._isLoading}>${this._getBody(this._layoutMode, this._panelOpen, this._hideTable)}</calcite-panel>${this._getFooter()}</calcite-shell>${this._filterModal()}${!this._isMobile && this._deleteModal() || ""}`;
89
89
  }
@@ -172,8 +172,8 @@ class V extends M {
172
172
  }} .pasteEnabled=${this._pasteEnabled} .selectedFeaturesIds=${this._layerTable.value?.selectedIds} .selectingFeatureFromMap=${this.appLayout === "mapView"} .showCopyPasteActions=${this._showCopyPasteActions} .showSketchWidgets=${l?.geometryType !== "point"} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected}></card-manager></div>`;
173
173
  }
174
174
  _getTable(e, t, i) {
175
- const a = this.appLayout === "mapView", l = this.appLayout === "tableView", o = i && this._isMobile ? "visibility-hidden" : a ? "display-none" : "", r = a ? "height-full width-full z-index-0" : "display-none", h = this._getTableSizeClass(e, t), n = e === "HORIZONTAL" ? "horizontal" : "vertical", d = e === "HORIZONTAL" ? "header" : "panel-start", p = this.defaultWebmap && this.defaultLayer, m = this._isMobile ? "border-top" : "", f = this.defaultGlobalId ? this.defaultGlobalId?.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId] : void 0, g = this.defaultOid ? this.defaultOid?.indexOf(",") > -1 ? this.defaultOid.split(",").map((y) => Number.parseInt(y, 10)) : [Number.parseInt(this.defaultOid, 10)] : void 0;
176
- return s`<calcite-shell class=${`${h} ${m} border-bottom z-index-1`}>${this._isMobile ? void 0 : s`<calcite-action-bar class="border-sides" expand-disabled .layout=${n} slot=${d ?? L}>${this.getActions(e, t)}</calcite-action-bar>`}<div class=${`width-full height-full position-relative z-index-0 ${o}`}><layer-table .appLayout=${this.appLayout} .defaultGlobalId=${p ? f : void 0} .defaultLayerId=${p ? this.defaultLayer : ""} .defaultOid=${p && !f ? g : void 0} .enableAutoRefresh=${this.enableAutoRefresh} .enableCSV=${this.enableCSV} .enableColumnReorder=${this.enableColumnReorder} .enableInlineEdit=${this?._mapInfo?.enableInlineEdit} .enableTableAutosave=${this._mapInfo?.enableTableAutosave !== void 0 ? this._mapInfo?.enableTableAutosave : !0} .enableShare=${this.enableShare} .featureSelectionMode=${this.featureSelectionMode} .honorMapFieldSettings=${this.honorMapFieldSettings} .isMobile=${this._isMobile} .mapHidden=${l} .mapInfo=${this._mapInfo} .mapView=${this?._mapView} .pasteEnabled=${this._pasteEnabled} .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} .showNewestFirst=${this.showNewestFirst} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected} .zoomToScale=${this.zoomToScale} .showCopyPasteActions=${this._showCopyPasteActions} .layerIds=${this._layerIds} ${u(this._layerTable)}></layer-table></div><div class=${b(r)} id=full-map-view></div></calcite-shell>`;
175
+ const a = this.appLayout === "mapView", l = this.appLayout === "tableView", o = i && this._isMobile ? "visibility-hidden" : a ? "display-none" : "", r = a ? "height-full width-full z-index-0" : "display-none", h = this._getTableSizeClass(e, t), n = e === "HORIZONTAL" ? "horizontal" : "vertical", d = e === "HORIZONTAL" ? "header" : "panel-start", c = this.defaultWebmap && this.defaultLayer, m = this._isMobile ? "border-top" : "", b = this.defaultGlobalId ? this.defaultGlobalId?.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId] : void 0, g = this.defaultOid ? this.defaultOid?.indexOf(",") > -1 ? this.defaultOid.split(",").map((y) => Number.parseInt(y, 10)) : [Number.parseInt(this.defaultOid, 10)] : void 0;
176
+ return s`<calcite-shell class=${`${h} ${m} border-bottom z-index-1`}>${this._isMobile ? void 0 : s`<calcite-action-bar class="border-sides" expand-disabled .layout=${n} slot=${d ?? L}>${this.getActions(e, t)}</calcite-action-bar>`}<div class=${`width-full height-full position-relative z-index-0 ${o}`}><layer-table .appLayout=${this.appLayout} .defaultGlobalId=${c ? b : void 0} .defaultLayerId=${c ? this.defaultLayer : ""} .defaultOid=${c && !b ? g : void 0} .enableAutoRefresh=${this.enableAutoRefresh} .enableCSV=${this.enableCSV} .enableColumnReorder=${this.enableColumnReorder} .enableInlineEdit=${this?._mapInfo?.enableInlineEdit} .enableTableAutosave=${this._mapInfo?.enableTableAutosave !== void 0 ? this._mapInfo?.enableTableAutosave : !0} .enableShare=${this.enableShare} .featureSelectionMode=${this.featureSelectionMode} .honorMapFieldSettings=${this.honorMapFieldSettings} .isMobile=${this._isMobile} .mapHidden=${l} .mapInfo=${this._mapInfo} .mapView=${this?._mapView} .pasteEnabled=${this._pasteEnabled} .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} .showNewestFirst=${this.showNewestFirst} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected} .zoomToScale=${this.zoomToScale} .showCopyPasteActions=${this._showCopyPasteActions} .layerIds=${this._layerIds} ${u(this._layerTable)}></layer-table></div><div class=${f(r)} id=full-map-view></div></calcite-shell>`;
177
177
  }
178
178
  getActions(e, t) {
179
179
  const i = this._getDividerIcon(e, t), a = t ? this._translations.close : this._translations.open, l = "toggle-layout";
@@ -191,7 +191,7 @@ class V extends M {
191
191
  }
192
192
  _mapExtentFilter() {
193
193
  const e = this._layerExpressions?.length === 0;
194
- return s`<calcite-panel><div><calcite-block class=${b(this.theme === "dark" ? "background-dark" : "")} heading menu-placement=bottom-end open><div class="filter-extent-container"><div class="filter-extent-message"><span>${this._translations.filterByExtentMsg}</span><calcite-icon icon=information id=filter-message-info scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top reference-element=filter-message-info>${this._translations.filterByExtentTooltipMsg}</calcite-tooltip></div><calcite-switch .checked=${this._mapExtentFilterChecked} @calciteSwitchChange=${(t) => {
194
+ return s`<calcite-panel><div><calcite-block class=${f(this.theme === "dark" ? "background-dark" : "")} heading menu-placement=bottom-end open><div class="filter-extent-container"><div class="filter-extent-message"><span>${this._translations.filterByExtentMsg}</span><calcite-icon icon=information id=filter-message-info scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top reference-element=filter-message-info>${this._translations.filterByExtentTooltipMsg}</calcite-tooltip></div><calcite-switch .checked=${this._mapExtentFilterChecked} @calciteSwitchChange=${(t) => {
195
195
  const a = !!(t.target.checked || this._filterList.value?.filterCount && this._filterList.value?.filterCount > 0);
196
196
  this._layerTable.value && this._layerTable.value?.filterUpdate(a, t.target.checked), this._mapCard.value && this._mapCard.value?.updateFilterState(a), this._mapExtentFilterChecked = t.target.checked;
197
197
  }} scale=m></calcite-switch></div></calcite-block>${e && s`<div class="filter-modal-buttons" slot=footer><calcite-button appearance=outline @click=${this._handleFilterListReset} width=full>${this._translations.Resetfilter}</calcite-button><calcite-button @click=${this._closeFilter} width=full>${this._translations.close}</calcite-button></div>` || ""}</div></calcite-panel>`;
@@ -218,7 +218,7 @@ class V extends M {
218
218
  this._filterOpen = !this._filterOpen;
219
219
  }
220
220
  _handleFilterListReset() {
221
- this._mapExtentFilterChecked = !1, this._mapCard.value && this._mapCard.value.resetFilter(), this._layerTable.value && this._layerTable.value?.isFilterActive() && this._layerTable.value.filterReset();
221
+ this._mapExtentFilterChecked = !1, this._mapCard.value && this._mapCard.value.resetFilter(), this._layerTable.value && this._layerTable.value.filterReset();
222
222
  }
223
223
  async _closeFilter() {
224
224
  this._filterOpen && (this._filterOpen = !1, this._layerTable.value && this._layerTable.value.closeFilter());
@@ -231,7 +231,10 @@ class V extends M {
231
231
  this._currentMapInfos = this.mapInfos, !this.enableMapList && this.defaultWebmap && (this._currentMapInfos = this.mapInfos.filter((e) => e.id === this.defaultWebmap));
232
232
  }
233
233
  _handleCopyPasteActions() {
234
- this._layer && (this._showCopyPasteActions = this.enableCopyPaste && !this._isMobile);
234
+ if (this._layer) {
235
+ const e = this._mapInfo?.enableCopyPaste !== !1;
236
+ this._showCopyPasteActions = e && !this._isMobile;
237
+ }
235
238
  }
236
239
  _toggleLayout() {
237
240
  this._panelOpen = !this._panelOpen;
@@ -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() {
@@ -689,8 +689,8 @@ class M extends A {
689
689
  async _applyPastedFeatureHighlights() {
690
690
  const e = [...this._pastedFeaturesIds];
691
691
  await new Promise((t) => {
692
- requestAnimationFrame(() => {
693
- this._table?.highlightIds.addMany(e), this._pastedFeaturesIds = [], t();
692
+ requestAnimationFrame(async () => {
693
+ await new Promise((i) => setTimeout(i, 300)), this._table?.highlightIds.addMany(e), this._pastedFeaturesIds = [], t();
694
694
  });
695
695
  });
696
696
  }
@@ -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
  }